/*
Theme Name: HAPO-GRACE
Template: hapo-campus
Version: 6.1.20250128
Description: 美容サロン「AUTHENTIC BEAUTY」専用の子テーマ
Author: Your Name
Text Domain: hapo-grace
*/

/* 🔥 キャッシュバスター: 2025-01-28-08-45 - GREY HOVER 🔥 */

/* ========================================
   基本設定・リセット
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* E6修正: Windows環境での横はみ出し完全防止 */
html,
body {
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.8;
    background-color: #fff;
}

/* ========================================
   【最優先】スマホ専用：固定ボトムナビゲーション
   ※Chrome FOUC対策のため最前に配置
======================================== */

/* PC表示では非表示 */
.mobile-bottom-nav {
    display: none !important;
    visibility: hidden !important;
}

/* スマホ・タブレット表示でのみ表示 */
@media (max-width: 1024px) {
    .mobile-bottom-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important; /* E6修正: 100vw → 100% (Windows環境スクロールバー対応) */
        height: 70px !important;
        background-color: #ffffff !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
        z-index: 2147483647 !important; /* 最大値：親要素に負けないように */
        padding: 8px 0 !important;
        justify-content: space-around !important;
        align-items: center !important;
        overflow: hidden !important;
        /* --- 親要素のtransform影響を回避 --- */
        transform: translateZ(0) !important;
        will-change: transform !important;
        isolation: isolate !important;
        /* --- safe-area とChrome対策 --- */
        padding-bottom: env(safe-area-inset-bottom) !important;
    }
    
    @supports (padding: max(0px)) {
        .mobile-bottom-nav {
            padding-bottom: max(env(safe-area-inset-bottom), 8px) !important;
        }
    }
    
    .mobile-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
        max-width: 25% !important;
        padding: 8px 4px !important;
        text-decoration: none !important;
        color: #1a1a1a !important;
        transition: all 0.3s ease !important;
        border-radius: 8px !important;
        margin: 0 4px !important;
        overflow: hidden !important;
    }
    
    .mobile-nav-item:hover,
    .mobile-nav-item:active {
        background-color: rgba(0, 0, 0, 0.05) !important;
        transform: translateY(-2px) !important;
    }
    
    .mobile-nav-icon {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
        margin-bottom: 4px !important;
        color: #1a1a1a !important;
        flex-shrink: 0 !important;
        display: block !important;
    }
    
    .mobile-nav-label {
        font-size: 11px !important;
        font-weight: 400 !important;
        color: #1a1a1a !important;
        white-space: nowrap !important;
    }
    
    /* コンテンツが隠れないように */
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
    }
}

/* 極小スマホ対応 */
@media (max-width: 480px) {
    .mobile-bottom-nav {
        padding: 6px 0 !important;
    }
    
    .mobile-nav-item {
        padding: 6px 2px !important;
    }
    
    .mobile-nav-icon {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
        max-width: 22px !important;
        max-height: 22px !important;
    }
    
    .mobile-nav-label {
        font-size: 10px !important;
    }
}

/* ========================================
   B1追加: SP only - 下部3ボタンのアニメ表示制御（フェード + 下スライド）
======================================== */
@media (max-width: 1024px) {
  .mobile-bottom-nav {
    /* 既存指定は保持。アニメーションだけ追加 */
    transition: opacity .28s ease, transform .28s ease;
    opacity: 1;
    transform: translateY(0);
    will-change: opacity, transform;
  }

  /* ヒーロー可視中 / メニュー開時は隠す（pointer無効で誤タップ防止） */
  body.is-hero-visible .mobile-bottom-nav,
  body.is-menu-open .mobile-bottom-nav,
  body.is-hero-visible .fixed-bottom-menu,
  body.is-menu-open .fixed-bottom-menu {
    opacity: 0 !important;
    transform: translateY(14px) !important;
    pointer-events: none !important;
  }

  /* バーを隠している間は下余白もゼロに（白帯防止） */
  body.is-hero-visible,
  body.is-menu-open {
    padding-bottom: 0 !important;
  }

  /* 実機の動的アドレスバー対策：ヒーローが 100svh 相当を満たすよう保険 */
  .hero-section {
    height: auto !important;
    min-height: 100svh !important; /* 実機でのIO判定が安定 */
  }

  /* 動きが苦手な利用者向け（OS設定に追従）：アニメを無効化 */
  @media (prefers-reduced-motion: reduce) {
    .mobile-bottom-nav {
      transition: none !important;
    }
  }
}

/* fixed-bottom-menuを完全非表示（フェイルセーフ） */
.fixed-bottom-menu {
    display: none !important;
    visibility: hidden !important;
}

/* ========================================
   左側縦型ヘッダー（サイドメニュー）- 白背景版
======================================== */

.site-header,
.ab-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 280px !important;  /* 200px → 280px（幅を広げる） */
    height: 100vh !important;
    min-height: 100svh !important; /* iOSアドレスバー対応 */
    background-color: #ffffff !important;
    color: #333 !important;
    z-index: 1000 !important;
    border-right: 1px solid #E5E5E5 !important;
}

.ab-sidebar__inner {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    min-height: 100svh !important;
    padding: 24px 20px !important;
    gap: 0 !important;
}

/* ロゴ（上固定） */
.site-logo,
.ab-brand {
    text-align: left !important;  /* center → left（左寄せに変更） */
    margin-bottom: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

.site-logo h1,
.ab-brand h1 {
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 2px !important;
    line-height: 1.6 !important;
    color: #1a1a1a !important;
    font-family: 'Cormorant Garamond', serif !important;
}

.site-logo h1 a,
.ab-brand h1 a {
    color: #1a1a1a !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease !important;
}

.site-logo h1 a:hover,
.ab-brand h1 a:hover {
    opacity: 0.7 !important;
}

/* ナビゲーション（下寄せ） */
.main-navigation,
.ab-nav {
    width: 100% !important;
    margin-top: auto !important; /* 下寄せの核心 */
    padding-top: 20px !important;
}

.main-navigation ul,
.ab-nav__list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.main-navigation li,
.ab-nav__item {
    margin-bottom: 0 !important;
}

/* 通常のナビゲーションリンク */
.main-navigation a,
.ab-nav__item:not(.ab-nav__item--box) a {
    display: block !important;
    padding: 12px 30px !important;
    color: #000 !important; /* 黒色に変更 */
    text-decoration: none !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
    transition: all 0.2s ease !important;
    border-left: 3px solid transparent !important;
}

.main-navigation a:hover,
.main-navigation a.active,
.ab-nav__item:not(.ab-nav__item--box) a:hover,
.ab-nav__item:not(.ab-nav__item--box) a.active {
    color: #000 !important; /* 黒色 */
    background-color: rgba(0, 0, 0, 0.03) !important;
    border-left-color: #999 !important;
}

.main-navigation a:focus-visible,
.ab-nav__item a:focus-visible {
    outline: 2px solid #9EC5FE !important;
    outline-offset: 2px !important;
}

/* ========================================
   特別メニュー項目（instagram / ご予約）
   通常メニューと同じスタイル + 常時赤い線
======================================== */

.ab-nav__item--special {
    margin-bottom: 0 !important;
}

/* 通常状態：ボックススタイル（背景と枠線が同じ色） */
.ab-nav__item--special a {
    display: block !important;
    padding: 12px 30px !important;           /* 左右の余白を増やして横幅を広げる */
    margin: 4px 0 !important;                 /* 2つのボックスを近づける（左右余白をゼロに） */
    color: #000 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
    font-weight: 500 !important;
    text-align: left !important;             /* 左寄せに変更 */
    transition: all 0.25s ease !important;
    
    /* ボックススタイル：背景と枠線が同じ色 */
    background-color: #f5f5f5 !important;
    border: 1px solid #f5f5f5 !important;
    border-radius: 3px !important;           /* 控えめな角丸（8px → 3px） */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

/* ホバー時：少し濃い色 + 影を強調 */
.ab-nav__item--special a:hover {
    color: #000 !important;
    text-align: left !important;             /* ホバー時も左寄せ */
    background-color: #e8e8e8 !important;
    border-color: #e8e8e8 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-1px) !important;
}

/* フォーカス時 */
.ab-nav__item--special a:focus-visible {
    outline: 2px solid #9EC5FE !important;
    outline-offset: 2px !important;
}



/* ========================================
   メインコンテンツエリア
======================================== */

.site-content {
    margin-left: 280px;  /* 200px → 280px（サイドバーの幅に合わせる） */
    min-height: 100vh;
}

/* ========================================
   セクション共通スタイル
======================================== */

.section {
    padding: 80px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 32px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 3px;
    font-family: 'Cormorant Garamond', serif;
    color: #1a1a1a;
}

.section-subtitle {
    font-size: 14px;
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

/* ========================================
   ヒーローセクション
======================================== */

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 56px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 20px;
    font-family: 'Cormorant Garamond', serif;
}

.hero-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-description {
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* ========================================
   CONCEPTセクション
======================================== */

/* 🔧 CONCEPTセクション - 背景は固定、コンテンツだけスケール調整 */
.concept-section {
    background-color: #f8f8f8;
    padding: 100px 60px;
    /* 背景は固定（transformは使用しない） */
}

/* ⭐ コンテンツ部分だけスケール調整のマスターコントロール */
/* 背景画像は動かず、中身だけ拡大縮小できます */
.concept-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;  /* コンテンツの最大幅（例: 900px, 1100px, 1300px） */
    margin: 0 auto;
    transform: scale(0.9);  /* ⭐ コンテンツのスケール（0.8 = 80%, 1 = 100%標準, 1.2 = 120%） */
    transform-origin: center;  /* スケールの基準点（center = 中央基準） */
}

/* 🎨 CONCEPTセクション - 画像の詳細調整 */
.concept-image {
    flex: 1;  /* 画像エリアの幅比率（0.5 = 小さめ, 1 = 標準, 1.5 = 大きめ） */
    max-width: 500px;  /* 画像の最大幅（例: 400px, 500px, 600px） */
    overflow: hidden;
}

.concept-image img {
    width: 100%;
    height: auto;
    max-height: 600px;  /* 画像の最大高さ（例: 400px, 500px, 600px） */
    object-fit: cover;  /* cover = トリミング, contain = 全体表示 */
    display: block;
}

.concept-text {
    flex: 1;
}

.concept-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-family: 'Cormorant Garamond', serif;
}

.concept-text p {
    font-size: 14px;
    line-height: 2;
    color: #555;
    margin-bottom: 15px;
}

/* ========================================
   STYLEセクション
======================================== */

/* 🔧 STYLEセクション - 背景は固定、コンテンツだけスケール調整 */
.style-section {
    padding: 100px 60px;
    background-color: #fff;
    /* 背景は固定（transformは使用しない） */
}

/* ⭐ コンテンツ部分だけスケール調整のマスターコントロール */
/* 背景画像は動かず、中身だけ拡大縮小できます */
.style-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;  /* グリッドの最大幅（例: 900px, 1100px, 1300px） */
    margin: 0 auto;
    transform: scale(1);  /* ⭐ コンテンツのスケール（0.8 = 80%, 1 = 100%標準, 1.2 = 120%） */
    transform-origin: center;  /* スケールの基準点（center = 中央基準） */
}

.style-item {
    text-align: center;
}

/* 🎨 STYLEセクション - 画像の詳細調整 */
.style-item-image {
    width: 100%;
    height: 250px;  /* 画像の高さ（例: 200px, 250px, 300px, 350px） */
    max-width: 400px;  /* 画像の最大幅（例: 300px, 400px, 500px） */
    aspect-ratio: auto;  /* アスペクト比（16/9, 4/3, 1/1（正方形）, auto（高さ固定）） */
    overflow: hidden;
    margin: 0 auto 20px;
}

.style-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* cover = トリミング, contain = 全体表示 */
    object-position: center;  /* 画像の位置（center, top, bottom） */
}

.style-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-family: 'Cormorant Garamond', serif;
}

.style-item p {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
}

/* ========================================
   SERVICEセクション
======================================== */

.service-section {
    padding: 100px 60px;
    background-color: #f8f8f8;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    gap: 20px;
    background-color: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-item-image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.service-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-item-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-family: 'Cormorant Garamond', serif;
}

.service-item-content .service-label {
    display: inline-block;
    background-color: #d4af37;
    color: #fff;
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.service-item-content p {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
}

.service-more {
    text-align: center;
    margin-top: 50px;
}

.service-more a {
    display: inline-block;
    padding: 15px 50px;
    background-color: #1a1a1a;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.service-more a:hover {
    background-color: #333;
}

/* ========================================
   STAFFセクション
======================================== */

.staff-section {
    padding: 100px 60px;
    background-color: #fff;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.staff-item {
    text-align: center;
}

.staff-item-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 4px;
}

.staff-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-family: 'Cormorant Garamond', serif;
}

.staff-item .staff-role {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.staff-item p {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
    text-align: left;
}

/* ========================================
   ABOUTセクション
======================================== */

.about-section {
    padding: 100px 60px;
    background-color: #f0e6e6;
    text-align: center;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 30px;
    letter-spacing: 2px;
    font-family: 'Cormorant Garamond', serif;
}

.about-content p {
    font-size: 14px;
    line-height: 2;
    color: #555;
    margin-bottom: 15px;
}

/* ========================================
   ACCESSセクション
======================================== */

.access-section {
    padding: 100px 60px;
    background-color: #fff;
}

.access-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.access-info {
    margin-bottom: 30px;
}

.access-info h3 {
    font-size: 20px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    font-family: 'Cormorant Garamond', serif;
}

.access-info p {
    font-size: 14px;
    line-height: 2;
    color: #555;
    margin-bottom: 8px;
}

.access-info .info-label {
    display: inline-block;
    width: 120px;
    text-align: left;
    font-weight: 500;
    color: #333;
}

/* ========================================
   フッター
======================================== */

.site-footer {
    margin-left: 280px;
    background-color: #1a1a1a;
    color: #ccc;
    padding: 60px 60px 30px;
    width: 100%;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;  /* space-between → center（中央揃え） */
    align-items: flex-start;
    gap: 60px;  /* 各カラムの間に一定の余白を確保 */
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
    text-align: center;  /* 中央寄せ */
}

.footer-logo h2 {
    font-size: 18px;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 15px;
    font-family: 'Cormorant Garamond', serif;
}

.footer-logo p {
    font-size: 12px;
    line-height: 1.8;
    color: #999;
}

.footer-logo,
.footer-info,
.footer-hours {
    flex: 1;
    text-align: center;  /* 各カラム内のテキストを中央寄せ */
}

.footer-info h3,
.footer-hours h3 {
    font-size: 14px;
    margin-bottom: 15px;
    color: #fff;
    letter-spacing: 1px;
}

.footer-info p,
.footer-hours p {
    font-size: 12px;
    line-height: 1.8;
    color: #999;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    font-size: 11px;
    color: #666;
}

/* ========================================
   予約モーダルウィンドウ
======================================== */

/* E6修正: 予約モーダルを画面中央に固定表示 */
.reservation-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    z-index: 10001 !important;
    overflow: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

.reservation-modal.active {
    display: block !important;
}

/* E6修正: モーダルを完全に画面中央に配置 */
.modal-content {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background-color: #fff !important;
    border-radius: 3px !important;
    padding: 50px 40px !important;
    max-width: 500px !important;
    width: calc(100% - 40px) !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    margin: 0 !important;
    animation: modalFadeIn 0.3s ease !important;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-header {
    text-align: center !important;
    margin-bottom: 40px !important;
}

.modal-title {
    font-size: 24px !important;
    font-weight: 500 !important;
    margin-bottom: 10px !important;
    color: #1a1a1a !important;
    letter-spacing: 1px !important;
}

.modal-subtitle {
    font-size: 13px !important;
    color: #666 !important;
    letter-spacing: 0.5px !important;
}

.reservation-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
}

.reservation-option {
    background-color: #f8f8f8 !important;
    padding: 20px !important;
    border-radius: 3px !important;  /* 8px → 3px（角丸を統一） */
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 2px solid #e0e0e0 !important;
    text-align: center !important;
    font-family: inherit !important;
    width: 100% !important;
}

.reservation-option:hover {
    background-color: #fff !important;
    border-color: #999 !important;  /* #d4af37（ゴールド） → #999（グレー） */
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;  /* ゴールドの影 → グレーの影 */
}

.reservation-option:focus-visible {
    outline: 2px solid #9EC5FE !important;
    outline-offset: 2px !important;
}

.option-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    color: #1a1a1a !important;
}

.option-detail {
    font-size: 13px !important;
    color: #666 !important;
}

.modal-close-btn {
    display: block !important;
    margin: 0 auto !important;
    padding: 12px 20px !important;  /* 40px → 20px */
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;  /* 25px → 3px（角丸を統一） */
    font-size: 14px !important;
    color: #666 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    width: 100% !important;  /* 上の3つのボックスと同じ幅に */
}

.modal-close-btn:hover {
    background-color: #f5f5f5 !important;
    border-color: #bbb !important;
}

.modal-close-btn:focus-visible {
    outline: 2px solid #9EC5FE !important;
    outline-offset: 2px !important;
}

/* ========================================
   レスポンシブ対応（モバイル）
======================================== */

@media (max-width: 768px) {
    .ab-sidebar__inner {
        padding: 16px !important;
    }
    
    .ab-nav__list {
        gap: 8px !important;
    }
    
    .site-content {
        margin-left: 0;
    }
}

/* ========================================
   ユーティリティクラス
======================================== */

.text-center {
    text-align: center;
}

.mb-small {
    margin-bottom: 15px;
}

.mb-medium {
    margin-bottom: 30px;
}

.mb-large {
    margin-bottom: 60px;
}

/* Google Fontsの読み込み */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ========================================
   🔥 最終上書き：instagram / ご予約のボックススタイルを確実に適用 🔥
   ファイルの最後 = 最優先で適用される
======================================== */

/* 特別メニュー項目（instagram / ご予約）— ボックススタイル */
.ab-nav__item--special a,
.ab-nav__item.ab-nav__item--special > a,
li.ab-nav__item--special a {
    display: block !important;
    padding: 12px 30px !important;           /* 左右の余白を増やして横幅を広げる */
    margin: 4px 0 !important;                 /* 2つのボックスを近づける（左右余白をゼロに） */
    color: #000 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
    font-weight: 500 !important;
    text-align: left !important;             /* 左寄せに変更 */
    transition: all 0.25s ease !important;
    
    /* ボックススタイル：背景と枠線が同じ色 */
    background-color: #f5f5f5 !important;
    border: 1px solid #f5f5f5 !important;
    border-radius: 3px !important;           /* 控えめな角丸（8px → 3px） */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

/* ホバー時：少し濃い色 + 影を強調 */
.ab-nav__item--special a:hover,
.ab-nav__item.ab-nav__item--special > a:hover,
li.ab-nav__item--special a:hover {
    color: #000 !important;
    text-align: left !important;             /* ホバー時も左寄せ */
    background-color: #e8e8e8 !important;
    border-color: #e8e8e8 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-1px) !important;
}

/* ボックス構造（ab-cta）でも同じスタイルを適用 */
.ab-nav__item--box.ab-nav__item--special > a,
.ab-nav__item--special a.ab-cta.ab-cta--instagram,
.ab-nav__item--special a.ab-cta.ab-cta--reserve,
a.ab-cta.ab-cta--instagram.ab-nav__item--special,
a.ab-cta.ab-cta--reserve.ab-nav__item--special {
    padding: 12px 30px !important;
    margin: 4px 0 !important;
    text-align: left !important;
    background-color: #f5f5f5 !important;
    border: 1px solid #f5f5f5 !important;
    border-radius: 3px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.ab-nav__item--box.ab-nav__item--special > a:hover,
.ab-nav__item--special a.ab-cta.ab-cta--instagram:hover,
.ab-nav__item--special a.ab-cta.ab-cta--reserve:hover {
    background-color: #e8e8e8 !important;
    border-color: #e8e8e8 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-1px) !important;
}

/* フォーカス時 */
.ab-nav__item--special a:focus-visible {
    outline: 2px solid #9EC5FE !important;
    outline-offset: 2px !important;
}

/* ========================================
   🔥 キャッシュバスター用コメント
   最終更新: 2025-01-28 06:30
======================================== */

/* ========================================
   フッタースタイルは footer.php で完全制御
   ※ style.css からはフッター定義を削除しました
======================================== */

/* ========================================
   Win/Mac サイズ感統一（UA差の吸収）
======================================== */

/* 箱モデル統一 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

/* タイポ基準を固定（OS差の縮小） */
html {
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-size: 1.6rem; /* 16px相当 */
    line-height: 1.6; /* 単位なしで安定 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: 0.02em; /* 和文の行長ブレ軽減 */
}

/* Windowsのスクロールバー幅差で横ズレしない */
html {
    scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
    html {
        overflow-y: scroll;
    }
}

/* 100vwのはみ出し対策＆共通余白ルール */
:root {
    --container-max: 1200px;
    --container-pad: 16px;
    /* Windows環境での左側空き緩和用：可変パディング */
    --sidebar-pad-l: clamp(10px, 1.2vw, 20px);
    --nav-pad-l:     clamp(14px, 1.6vw, 30px);
}

/* ===== Single only: Footer mobile stack & text-length underline ===== */
@media (max-width: 768px) {
  /* 1) レイアウトを縦並びに強制（wrapper 名が違っていても上書きできるよう網羅） */
  .single .site-footer .footer-inner,
  .single .site-footer .footer-wrapper,
  .single .site-footer .footer-content,
  .single .site-footer .footer-columns,
  .single .site-footer .footer-grid {
    display: block !important;
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  /* 2) 各カラムを全幅に */
  .single .site-footer .footer-col,
  .single .site-footer .footer-column,
  .single .site-footer .footer-brand,
  .single .site-footer .footer-info,
  .single .site-footer .footer-hours {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 24px 0 !important;
    text-align: center !important;
    border-left: none !important;  /* PC用の区切り線が残っていたら消す */
    border-right: none !important;
  }

  /* 3) 見出しは "文字幅＝下線" に統一 */
  .single .site-footer h1,
  .single .site-footer h2,
  .single .site-footer h3,
  .single .site-footer .footer-title,
  .single .site-footer .footer-info h3,
  .single .site-footer .footer-hours h3 {
    display: inline-block !important;
    width: auto !important;
    border-bottom: 1px solid rgba(255,255,255,0.32) !important;
    padding-bottom: 12px !important;
    line-height: 1.25 !important;
    vertical-align: bottom !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* 4) 全幅下線を作る疑似要素が残っているケースを無効化 */
  .single .site-footer h1::after,
  .single .site-footer h2::after,
  .single .site-footer h3::after,
  .single .site-footer .footer-title::after {
    content: none !important;
  }
}

/* ===== Mobile Nav: only ONE active item shows the left bar ===== */
@media (max-width: 768px) {
  /* a の border-left を透明に固定 */
  .main-navigation a {
    position: relative; /* 疑似要素用の基準 */
    border-left: 4px solid transparent !important;
  }
  /* 疑似要素で線を作っているテーマにも対応（初期は非表示） */
  .main-navigation a::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: transparent !important;
  }
  /* is-active のみ可視化 */
  .main-navigation a.is-active {
    border-left-color: rgba(160,160,160,0.95) !important;
  }
  .main-navigation a.is-active::before {
    background: rgba(160,160,160,0.95) !important;
  }

  /* メニュー展開時に全リンクへ色を当てる既存指定の完全抑止 */
  .menu-open .main-navigation a,
  .drawer-open .main-navigation a,
  .nav-open .main-navigation a {
    border-left-color: transparent !important;
  }
  .menu-open .main-navigation a::before,
  .drawer-open .main-navigation a::before,
  .nav-open .main-navigation a::before {
    background: transparent !important;
  }
  /* ただし .is-active のみ例外で可視化 */
  .menu-open .main-navigation a.is-active,
  .drawer-open .main-navigation a.is-active,
  .nav-open .main-navigation a.is-active {
    border-left-color: rgba(160,160,160,0.95) !important;
  }
  .menu-open .main-navigation a.is-active::before,
  .drawer-open .main-navigation a.is-active::before,
  .nav-open .main-navigation a.is-active::before {
    background: rgba(160,160,160,0.95) !important;
  }

  /* タッチ端末の擬似ホバー残留を無効化 */
  @media (hover: none) and (pointer: coarse) {
    .main-navigation a:hover {
      border-left-color: transparent !important;
      background: transparent !important;
    }
    .main-navigation a:hover::before {
      background: transparent !important;
    }
  }
}

.container,
.wrap,
.section,
header,
main,
footer {
    width: min(100%, var(--container-max));
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* 画面高利用要素の安定化（vhの罠回避） */
.hero,
.full-height {
    min-height: 100svh;
    min-height: 100vh;
}

/* フォーム/ボタンのUA差縮小 */
button,
input,
select,
textarea {
    font: inherit;
    letter-spacing: inherit;
}

/* メディアはみ出し防止 */
img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Service 一括コントロール（最下部に追加。既存を上書き）
   カード全体サイズ・画像・余白・距離を一元管理
======================================== */
.service-section {
  /* ▼ カード全体の拡大縮小（1.0=標準、0.9=小さく、1.1=大きく） */
  --svc-card-scale: 1;

  /* ▼ 画像：基準のアスペクト比＆幅 */
  --svc-img-ratio: 4/3;              /* 例: 1/1, 3/2, 16/9 など */
  --svc-img-width-base: 150px;       /* 基準幅（scaleで拡縮される） */

  /* ▼ 白いボックス内側余白：基準値 */
  --svc-box-pad-x-base: 10px;        /* 基準値（scaleで拡縮） */
  --svc-box-pad-y-base: 5px;

  /* ▼ カード同士の距離（列/行） */
  --svc-gap-x: 40px;                 /* 既存 gap:40px と同値 */
  --svc-gap-y: 40px;

  /* ▼ 下段カード → CTA距離 */
  --svc-cta-gap: 50px;               /* 既存 margin-top:50px と同値 */
}

/* グリッドの隙間を一括調整 */
.service-section .service-grid {
  column-gap: var(--svc-gap-x) !important;
  row-gap: var(--svc-gap-y) !important;
}

/* 白いボックスの内側余白（card-scaleで拡縮） */
.service-section .service-item {
  padding: calc(var(--svc-box-pad-y-base) * var(--svc-card-scale)) calc(var(--svc-box-pad-x-base) * var(--svc-card-scale)) !important;
}

/* 画像サイズ＆比率（card-scaleで拡縮、高さは比率で自動） */
.service-section .service-item-image {
  width: calc(var(--svc-img-width-base) * var(--svc-card-scale)) !important;
  height: auto !important;
  aspect-ratio: var(--svc-img-ratio) !important;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 4px;
}

.service-section .service-item-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
}

/* テキスト部分もcard-scaleで拡縮 */
.service-section .service-item-content {
  font-size: calc(1em * var(--svc-card-scale));
}

.service-section .service-item-content h3 {
  font-size: calc(16px * var(--svc-card-scale)) !important;
}

.service-section .service-item-content p {
  font-size: calc(13px * var(--svc-card-scale)) !important;
}

.service-section .service-item-content .service-label {
  font-size: calc(10px * var(--svc-card-scale)) !important;
  padding: calc(4px * var(--svc-card-scale)) calc(12px * var(--svc-card-scale)) !important;
}

/* CTAとの距離も変数で一括管理 */
.service-section .service-more {
  margin-top: var(--svc-cta-gap) !important;
}

/* ========================================
   使い方（運用早見表）
   ────────────────────────────────────
   変えたいこと                      変える場所                    変える値の例
   ────────────────────────────────────
   カード全体のサイズ（一括拡縮）    --svc-card-scale             0.85(小), 1.0(標準), 1.15(大)
   画像のアスペクト比                --svc-img-ratio              1/1(正方形), 4/3, 16/9
   画像の基準幅                      --svc-img-width-base         320px, 360px, 420px
   白いボックス内の余白（横）基準    --svc-box-pad-x-base         24px, 30px, 36px
   白いボックス内の余白（縦）基準    --svc-box-pad-y-base         18px, 24px, 30px
   カード同士の距離（列）            --svc-gap-x                  28px, 40px, 48px
   カード同士の距離（行）            --svc-gap-y                  24px, 36px, 44px
   CTAまでの距離                     --svc-cta-gap                24px, 50px, 64px
   ────────────────────────────────────
   
   【変更例1：カード全体を小さく（最も簡単）】
   .service-section {
     --svc-card-scale: 0.85;    ← カード全体を15%小さく
   }
   → 画像・余白・テキストすべてが0.85倍に縮小
   
   【変更例2：カード全体を大きく】
   .service-section {
     --svc-card-scale: 1.15;    ← カード全体を15%大きく
   }
   → 画像・余白・テキストすべてが1.15倍に拡大
   
   【変更例3：コンパクトレイアウト（細かく調整）】
   .service-section {
     --svc-card-scale: 0.9;     ← 少し小さく
     --svc-img-ratio: 1/1;      ← 正方形
     --svc-gap-x: 28px;         ← カード距離狭く
     --svc-gap-y: 24px;
     --svc-cta-gap: 24px;       ← ボタン近く
   }
   
   【変更例4：ワイド横長レイアウト】
   .service-section {
     --svc-card-scale: 1.1;     ← 少し大きく
     --svc-img-ratio: 16/9;     ← 横長
     --svc-gap-x: 48px;         ← ゆったり
     --svc-gap-y: 44px;
   }
   
   【変更例5：基準値を直接変更（古いブラウザ対応）】
   .service-section {
     --svc-img-width-base: 320px;   ← 基準幅を直接変更
     --svc-box-pad-x-base: 24px;    ← 基準余白を直接変更
   }
   ※ calc()の乗算に対応していないブラウザ向け
======================================== */

/* ========================================
   【注意】mobile-bottom-nav のCSSは28-145行目に移動済み
   Chrome FOUC対策のため、ファイル先頭に配置しています
======================================== */

/* ========================================
   E6修正：最終追加 - Windows環境での横はみ出し完全防止
======================================== */
html,
body {
    overflow-x: hidden !important;
}

/* ========================================
   ブログ系ページでフッターを強制的に中央寄せ
======================================== */
.single .site-footer,
.archive .site-footer,
.blog .site-footer,
.home .site-footer {
    margin-left: 0 !important;
    width: 100% !important;
}

.single .footer-content,
.archive .footer-content,
.blog .footer-content,
.home .footer-content {
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    position: static !important;
    left: auto !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 40px !important;
}

/* ========================================
   Windows環境での左側空き緩和：可変パディング（デスクトップのみ）
   ※モバイル（768px以下）は既存の余白を維持
======================================== */
@media (min-width: 769px) {
    .ab-sidebar__inner {
        /* 既存の上下・右は維持。左だけ変数で上書き */
        padding-left: var(--sidebar-pad-l) !important;
        box-sizing: border-box;
    }
    
    .main-navigation a,
    .ab-nav__item:not(.ab-nav__item--box) a {
        /* 既存の上下・右は維持。左だけ変数で上書き */
        padding-left: var(--nav-pad-l) !important;
        box-sizing: border-box;
    }
}

/* ========================================
   Single Post: News Nav (scoped)
======================================== */
.hapo-news-nav{
  display:flex;
  flex-wrap:wrap;                 /* 上段/下段に分ける前提 */
  justify-content:center;         /* 各段の中央寄せ */
  align-items:center;
  column-gap:16px;                /* 横方向の間隔 */
  row-gap:12px;                   /* 縦方向の間隔（段間） */
  margin:40px 0;
  text-align:center;
}
.hapo-news-nav a{
  text-decoration:none; line-height:1;
  color:#1a1a1a;              /* 既定リンク色(青/紫)を抑止 */
}
.hapo-news-nav a:visited{ color:#1a1a1a; }  /* 既訪問の紫も抑止 */
.hapo-news-nav__all{
  /* 見た目：左右余白を最小限（文字のすぐそば） */
  padding:8px 4px;                       /* ← 左右余白をさらに狭く */
  border:1px solid #DDD;
  border-radius:2px;                     /* 角丸は2pxで統一 */
  font-weight:normal;                    /* 太字を解除 */
  display:inline-flex; justify-content:center; align-items:center;
  color:#1a1a1a;                         /* ボタン文字色を統一 */

  /* 配置：常に下段・中央 */
  order:4;                               /* 下段に固定 */
  flex:0 0 auto;                         /* 幅は中身にフィット */
  margin-top:12px; margin-left:auto; margin-right:auto;
}
.hapo-news-nav__arrow{
  display:inline-flex; align-items:center; gap:8px; font-size:0.95rem;
  order:1;                               /* 上段 */
  flex:0 0 auto;                         /* 自然幅で横に並べる */
  margin:0 4px;                          /* 矢印同士の最小間隔 */
}
.hapo-news-nav__arrow--next{ order:2; } /* 次の記事を右側に */
.hapo-news-nav__arrowbox{
  width:38px; height:38px; border:1px solid #DDD; border-radius:10px;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:1.05rem; min-width:38px;
}
.hapo-news-nav__arrow[aria-disabled="true"]{opacity:.4; pointer-events:none;}
@media (max-width: 480px){
  .hapo-news-nav{column-gap:12px; row-gap:10px;}
  .hapo-news-nav__all{padding:7px 4px;} /* モバイルも左右余白をさらに狭く */
  .hapo-news-nav__arrowbox{width:34px; height:34px; min-width:34px;}
}

/* PCでも上下配置を強制（左右並びに戻らないように明示） */
@media (min-width: 769px){
  .hapo-news-nav{justify-content:center;}
  .hapo-news-nav__arrow{order:1; flex:0 0 auto;}
  .hapo-news-nav__all{
    order:4;
    flex-basis:100%;                     /* 下段で幅100%を確保して改行させる */
    max-width:100%;                      /* 親要素の幅を超えないように */
    margin-left:auto;
    margin-right:auto;
  }
}