@charset "UTF-8";

/* ========================================
   阿部興産 ヘッダーオーバーレイ
   既存デザインに影響を与えず、PC時のみ表示
   アイコン + フォーカス処理のみ追加
   ======================================== */

/* PC表示時のみ適用 */
@media screen and (min-width: 768px) {
    
    /* 既存ヘッダーのナビゲーション部分を完全に削除 */
    .header_nav {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* header_topの高さをautoにして、内容に応じた高さに */
    .header_top {
        height: auto !important;
        min-height: 0 !important;
    }
    
    /* ナビゲーション削除分を.frで相殺は不要 */
    .header_top .fr {
        margin-top: 0 !important;
    }
    
    /* オーバーレイヘッダー - 常時表示 */
    .overlay_header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 8px rgba(0, 40, 141, 0.08);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 10000;
        /* 常時表示 */
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: background 0.3s ease, box-shadow 0.3s ease;
    }
    
    .overlay_header.scrolled {
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 3px 12px rgba(0, 40, 141, 0.12);
    }
    
    /* コンテナ */
    .overlay_container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 40px;
        height: 70px;
    }
    
    .overlay_header.scrolled .overlay_container {
        height: 65px;
    }
    
    /* ロゴ */
    .overlay_logo {
        display: flex;
        align-items: center;
    }
    
    .overlay_logo a {
        display: flex;
        align-items: center;
        text-decoration: none;
    }
    
    .overlay_logo img {
        height: 45px;
        width: auto;
        transition: none;
    }
    
    /* ロゴ内のテキストを表示 */
    .overlay_logo span {
        display: inline-block;
        margin-left: 10px;
        font-size: 16px;
        font-weight: 600;
        color: #00288d;
        white-space: nowrap;
    }
    
    /* スクロール時のロゴサイズ変更を削除 */
    .overlay_header.scrolled .overlay_logo img {
        height: 45px;
    }
    
    .overlay_logo:hover {
        opacity: 0.85;
    }
    
    /* ナビゲーション */
    .overlay_nav {
        display: flex;
        align-items: center;
        gap: 4px;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    /* メニューアイテム */
    .overlay_item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        text-decoration: none;
        color: #00288d;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.05em;
        transition: all 0.3s ease;
        position: relative;
        white-space: nowrap;
        border-radius: 8px;
    }
    
    /* アイコン */
    .overlay_icon {
        width: 26px;
        height: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
        border-radius: 7px;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }
    
    .overlay_icon svg {
        width: 16px;
        height: 16px;
        color: #0086d3;
        transition: all 0.3s ease;
    }
    
    /* テキスト */
    .overlay_text {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .overlay_title {
        font-family: 'Zen Kaku Gothic New', sans-serif;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.05em;
        line-height: 1.2;
        color: #00288d;
        transition: all 0.3s ease;
    }
    
    .overlay_subtitle {
        font-family: 'Roboto', sans-serif;
        font-size: 9px;
        font-weight: 500;
        letter-spacing: 0.1em;
        line-height: 1.2;
        color: #0086d3;
        opacity: 0.85;
        transition: all 0.3s ease;
    }
    
    /* ホバーエフェクト */
    .overlay_item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 134, 211, 0.08) 0%, rgba(0, 40, 141, 0.05) 100%);
        border-radius: 8px;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
    }
    
    .overlay_item:hover::before {
        opacity: 1;
    }
    
    .overlay_item:hover {
        transform: translateY(-2px);
    }
    
    .overlay_item:hover .overlay_icon {
        background: linear-gradient(135deg, #0086d3 0%, #00288d 100%);
        transform: scale(1.1) rotate(5deg);
    }
    
    .overlay_item:hover .overlay_icon svg {
        color: #ffffff;
    }
    
    .overlay_item:hover .overlay_title {
        color: #0086d3;
    }
    
    /* フォーカス処理 */
    .overlay_item:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 134, 211, 0.3);
    }
    
    .overlay_item:focus::before {
        opacity: 1;
    }
    
    .overlay_item:focus .overlay_icon {
        background: linear-gradient(135deg, #0086d3 0%, #00288d 100%);
        transform: scale(1.1);
    }
    
    .overlay_item:focus .overlay_icon svg {
        color: #ffffff;
    }

    /* 試験結果確認ボタン（電話番号と同じスタイル） */
    .overlay_phone {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: 12px;
        padding: 10px 20px;
        background: linear-gradient(135deg, rgba(0, 134, 211, 0.1) 0%, rgba(0, 40, 141, 0.08) 100%);
        visibility: hidden; /* 一時的に非表示 */
        border-radius: 50px;
        color: #00288d;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        letter-spacing: 0.05em;
        transition: all 0.3s ease;
        border: 2px solid rgba(0, 134, 211, 0.15);
        white-space: nowrap;
    }

    .overlay_phone_icon {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #0086d3 0%, #00288d 100%);
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .overlay_phone_icon svg {
        width: 16px;
        height: 16px;
        color: #ffffff;
    }

    .overlay_phone:hover {
        background: linear-gradient(135deg, #0086d3 0%, #00288d 100%);
        color: #ffffff;
        border-color: #0086d3;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 134, 211, 0.25);
    }

    .overlay_phone:hover .overlay_phone_icon {
        background: rgba(255, 255, 255, 0.25);
        transform: rotate(15deg) scale(1.1);
    }

    .overlay_phone:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 134, 211, 0.3);
    }
}

/* タブレット調整 */
@media screen and (min-width: 768px) and (max-width: 1200px) {
    .overlay_container {
        padding: 0 30px;
    }
    
    .overlay_nav {
        gap: 2px;
    }
    
    .overlay_item {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .overlay_icon {
        width: 24px;
        height: 24px;
    }
    
    .overlay_icon svg {
        width: 15px;
        height: 15px;
    }
    
    .overlay_title {
        font-size: 13px;
    }
    
    .overlay_subtitle {
        font-size: 8px;
    }

    .overlay_phone {
        font-size: 13px;
        padding: 8px 18px;
    }

    .overlay_phone_icon {
        width: 26px;
        height: 26px;
    }
}

/* モバイルでは非表示（既存のヘッダーを使用） */
@media screen and (max-width: 767px) {
    .overlay_header {
        display: none !important;
    }
}
