@charset "UTF-8";

/* =========================================================
   あゆみ愛 共通ヘッダー & ナビゲーションスタイル (header.css)
   【パターンA: ハイブリッド型】
   ・PC: 主要メニュー3〜4個＋お問い合わせボタン＋「☰ メニュー」
   ・スマホ: ヘッダー常時固定＋「☰ メニュー」タップで快適ドロワー展開
   ========================================================= */

/* スムーズスクロールとアンカー位置のオフセット設定 */
html {
    scroll-behavior: smooth;
}

section[id],
div[id] {
    scroll-margin-top: 76px;
}

/* =========================================================
   ヘッダー本体
   ========================================================= */
#common-header,
header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    width: 100%;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#common-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* ロゴ & サイト名 */
#common-header .brand-box {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    flex-shrink: 0;
}

#common-header .brand-logo-img {
    height: 58px;
    width: auto;
    object-fit: contain;
    display: block;
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

#common-header .brand-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#common-header .brand-title {
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--primary-color, #23527c);
    line-height: 1.25;
    letter-spacing: 0.04em;
}

#common-header .brand-subtitle {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-top: 2px;
    line-height: 1.25;
}

/* =========================================================
   PC用ヘッダー右側ラッパー（主要ナビ + CTAボタン + ☰）
   ========================================================= */
.header-actions-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

/* 主要ナビゲーション（PC用：厳選3〜4項目） */
.header-primary-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-primary-nav li {
    margin: 0;
    padding: 0;
}

.header-primary-nav a {
    text-decoration: none;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 6px 4px;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.header-primary-nav a:hover {
    color: var(--accent-color, #e68a1d);
}

.header-primary-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color, #e68a1d);
    transition: width 0.25s ease, left 0.25s ease;
}

.header-primary-nav a:hover::after {
    width: 100%;
    left: 0;
}

/* PC/スマホ兼用 お問い合わせCTAボタン */
.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--accent-color, #e68a1d) 0%, #d97706 100%);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(230, 138, 29, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 138, 29, 0.4);
}

.header-cta-icon {
    font-size: 0.95rem;
}

/* =========================================================
   ハンバーガーメニューボタン（三）
   ========================================================= */
.hamburger-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid var(--border-color, #cbd5e1);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    user-select: none;
    gap: 4px;
}

.hamburger-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* 3本線のアイコン */
.hamburger-icon {
    width: 22px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color, #1e293b);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* メニュー文字 */
.hamburger-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--primary-color, #1e293b);
    line-height: 1;
    letter-spacing: 0.05em;
}

/* メニュー展開時の✕（バツ）アニメーション */
.hamburger-btn.is-active {
    background: #e2e8f0;
}

.hamburger-btn.is-active .hamburger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.is-active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.is-active .hamburger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   ドロワーメニュー（右からスライド展開）
   ========================================================= */
/* 背景オーバーレイ */
.ayumi-drawer-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(15, 23, 42, 0.45) !important;
    z-index: 99998 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
    will-change: opacity;
}

.ayumi-drawer-overlay.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* ドロワーパネル本体 */
.ayumi-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 330px !important;
    max-width: 86vw !important;
    height: 100% !important;
    height: 100dvh !important;
    background-color: #ffffff !important;
    z-index: 99999 !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
    transform: translate3d(100%, 0, 0) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.ayumi-drawer.is-open {
    transform: translate3d(0, 0, 0) !important;
}

/* ドロワーヘッダー */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.drawer-header-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color, #1e293b);
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-close-btn {
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawer-close-btn:hover {
    background: #cbd5e1;
    color: #0f172a;
    transform: rotate(90deg);
}

/* ドロワーコンテンツ（スクロール可能エリア） */
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

/* ドロワー内セクション */
.drawer-section {
    margin-bottom: 24px;
}

.drawer-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    border-left: 3px solid var(--accent-color, #e68a1d);
    padding-left: 8px;
    margin: 0 0 10px 0;
    letter-spacing: 0.05em;
}

/* ドロワー内リスト */
.drawer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.drawer-nav-list li {
    margin-bottom: 4px;
}

.drawer-nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.18s ease;
}

.drawer-nav-list a:hover {
    background-color: #f1f5f9;
    color: var(--primary-color, #23527c);
    padding-left: 16px;
}

.drawer-nav-list a::after {
    content: '›';
    font-size: 1.1rem;
    color: #94a3b8;
    transition: transform 0.18s ease;
}

.drawer-nav-list a:hover::after {
    color: var(--accent-color, #e68a1d);
    transform: translateX(3px);
}

.drawer-nav-list a.is-current {
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
}

/* ドロワー内お問い合わせカード */
.drawer-contact-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    margin-top: 10px;
}

.drawer-contact-tel-label {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 4px;
}

.drawer-contact-tel {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color, #23527c);
    letter-spacing: 0.03em;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    cursor: default;
    pointer-events: none; /* 誤タップ・誤発信を防止 */
    user-select: text;
    -webkit-user-select: text;
}

.drawer-contact-hours {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.4;
}

.drawer-contact-btn {
    display: block;
    background-color: var(--accent-color, #e68a1d);
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

.drawer-contact-btn:hover {
    background-color: #d97706;
}

/* =========================================================
   レスポンシブ対応（スマホ・タブレット）
   ========================================================= */
@media (max-width: 960px) {
    .header-primary-nav {
        gap: 12px;
    }
    .header-primary-nav a {
        font-size: 0.85rem;
    }
}

@media (max-width: 860px) {
    /* スマホ時もヘッダー上部固定を維持 */
    #common-header,
    header {
        position: sticky !important;
        top: 0 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        overflow: visible !important;
    }

    #common-header .header-content {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 12px !important;
        gap: 8px !important;
        overflow: visible !important;
    }

    #common-header .brand-box {
        gap: 8px !important;
        max-width: calc(100% - 120px) !important;
        min-width: 0 !important;
        flex-shrink: 1 !important;
    }

    #common-header .brand-logo-img {
        height: 42px !important;
        transform: none !important;
        flex-shrink: 0 !important;
    }

    #common-header .brand-text-group {
        min-width: 0 !important;
        overflow: hidden !important;
    }

    #common-header .brand-title {
        font-size: 1.05rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #common-header .brand-subtitle {
        font-size: 0.62rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* PC用主要ナビゲーションをスマホで非表示にし、ハンバーガーメニューに集約 */
    .header-primary-nav {
        display: none !important;
    }

    /* 各ページに元々あった冗長な nav-list を非表示にする */
    #common-header nav:not(.header-actions-wrap) {
        display: none !important;
    }

    .header-actions-wrap {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }

    /* スマホでのお問い合わせボタン（アイコン化して省スペース） */
    .header-cta-btn {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        border-radius: 20px !important;
    }

    /* スマホ時のハンバーガーボタン（視認性の高いデザイン） */
    .hamburger-btn {
        display: inline-flex !important;
        background: var(--primary-color, #003366) !important;
        border: none !important;
        border-radius: 8px !important;
        padding: 6px 10px !important;
        min-width: 44px !important;
        min-height: 40px !important;
        box-shadow: 0 2px 6px rgba(0, 51, 102, 0.25) !important;
    }

    .hamburger-icon {
        width: 20px !important;
        height: 14px !important;
    }

    .hamburger-icon span {
        background-color: #ffffff !important;
        height: 2px !important;
    }

    .hamburger-label {
        font-size: 0.65rem !important;
        color: #ffffff !important;
        font-weight: 700 !important;
    }

    .hamburger-btn.is-active {
        background: #1e293b !important;
    }
}

@media (max-width: 480px) {
    #common-header .brand-box {
        max-width: calc(100% - 60px) !important;
    }

    #common-header .brand-title {
        font-size: 0.95rem !important;
    }

    #common-header .brand-subtitle {
        display: none !important;
    }

    /* 480px以下ではヘッダー内のお問い合わせボタンを非表示（ドロワー内に常備）にし、ハンバーガーボタンを最大化 */
    .header-cta-btn {
        display: none !important;
    }
}


