/**
 * Company Selection Buttons CSS
 * ヒーローセクション用会社選択ボタンスタイル
 */

/* 会社選択コンテナ */
.company-selection-container {
    max-width: 800px;
    margin: 0 auto;
}

.company-buttons {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.company-buttons:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* シンプルテキストボタンスタイル */
.glass-btn {
    background: #475569;
    border: none;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    min-height: 60px;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    box-shadow: 0 0 10px rgba(71, 85, 105, 0.4);
    text-shadow: none;
    cursor: pointer;
    animation: buttonPulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.glass-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    --top-left-x: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0 10px, transparent 10px);
    --top-left-y: linear-gradient(rgba(255, 255, 255, 0.9) 0 10px, transparent 10px);
    --bottom-right-x: linear-gradient(90deg, transparent 0 calc(100% - 10px), rgba(255, 255, 255, 0.9) calc(100% - 10px));
    --bottom-right-y: linear-gradient(transparent 0 calc(100% - 10px), rgba(255, 255, 255, 0.9) calc(100% - 10px));
    background-image:
        var(--top-left-x),
        var(--top-left-y),
        var(--bottom-right-x),
        var(--bottom-right-y);
    background-repeat: no-repeat;
    background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%;
    background-position: top left, top left, bottom right, bottom right;
    pointer-events: none;
}

.glass-btn:hover::before {
    width: 100%;
}

.glass-btn:hover {
    border: none;
    transform: none;
    box-shadow: 0 0 20px rgba(100, 116, 139, 0.8) !important;
    color: rgba(255, 255, 255, 1.0);
    filter: brightness(1.2);
}



.glass-btn:active {
    transform: none;
    background: #1e293b;
    box-shadow: 0 0 15px rgba(30, 41, 59, 0.6);
}

.glass-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.5);
}

/* 選択状態 */
.glass-btn.active {
    background: #1e293b;
    border: none;
    color: rgba(255, 255, 255, 1.0);
    box-shadow: 0 0 25px rgba(30, 41, 59, 0.8);
    transform: none;
    text-shadow: none;
    animation: none;
}

.glass-btn.active::before {
    width: 100%;
}

/* テキストスタイル */
.glass-btn-text {
    line-height: 1.3;
    display: block;
    text-align: center;
}

/* PC表示時のボタン高さ統一 */
@media (min-width: 769px) {
    .glass-btn {
        height: 75px;
        min-height: 75px;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .company-buttons {
        padding: 2rem 1.5rem !important;
        margin: 0 1rem;
    }
    
    .glass-btn {
        margin-bottom: 0.5rem;
        min-height: 55px;
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    
    .company-selection-container {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .company-buttons .row {
        flex-direction: column;
    }
    
    .glass-btn {
        min-height: 50px;
        font-size: 0.75rem;
    }
}

/* アニメーション効果 */
@keyframes companyButtonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.company-btn:focus {
    animation: companyButtonPulse 0.5s ease;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* ローディング状態 */
.company-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.company-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ボタン明滅アニメーション */
@keyframes buttonPulse {
    0% { 
        background: #334155;
        box-shadow: 0 0 10px rgba(51, 65, 85, 0.4);
    }
    50% { 
        background: #cbd5e1;
        box-shadow: 0 0 30px rgba(203, 213, 225, 1.0);
    }
    100% { 
        background: #334155;
        box-shadow: 0 0 10px rgba(51, 65, 85, 0.4);
    }
}
