@charset "UTF-8";

/* =========================================
   Base Styles & Fonts
   ========================================= */
body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: #ffffff;
    color: #333333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ユーティリティ: 明朝体 */
.font-serif {
    font-family: 'Noto Serif JP', serif;
}

/* アクセントカラー定義 */
:root {
    --accent-color: #da4c1f;
    --accent-hover: #b83e16;
    --dark-color: #333333;
}

/* =========================================
   Header Styles (共通)
   ========================================= */
#global-header {
    background-color: rgba(255, 255, 255, 0.95);
    color: #333333;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eeeeee;
    transition: all 0.3s ease;
}

/* スクロール時のヘッダー変化 */
#global-header.is-scrolled {
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* =========================================
   Hamburger Menu (共通・必須)
   ========================================= */
.hamburger-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 10px;
    z-index: 60;
    position: relative;
    display: block; /* デフォルトで表示 */
}

.hamburger-box {
    width: 24px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333333;
    transition: all 0.3s ease;
    transform-origin: center;
    border-radius: 2px;
}

/* アニメーション：開いた時 */
.hamburger-line.line-1.is-active { transform: translateY(9px) rotate(45deg); }
.hamburger-line.line-2.is-active { opacity: 0; }
.hamburger-line.line-3.is-active { transform: translateY(-9px) rotate(-45deg); }

/* -----------------------------------------
   ★ここが修正ポイント：モバイルメニュー
   ----------------------------------------- */
#js-mobile-menu {
    position: fixed;
    inset: 0; /* 画面いっぱいに広げる */
    z-index: 40; /* ヘッダーの下 */
    
    /* 背景色：薄い白（透過） */
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);

    /* レイアウト：上詰め・中央揃え */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    
    /* 余白調整：ヘッダーの高さ分を開ける */
    padding-top: 120px; 
    padding-bottom: 40px;
    
    /* スクロール対応 */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    /* アニメーション初期状態 */
    transition: opacity 0.3s, visibility 0.3s;
    visibility: hidden;
    opacity: 0;
}

#js-mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    height: 100vh;
}

/* PC用ナビゲーションエリア制御 */
.pc-nav-area {
    display: none; /* スマホでは非表示 */
    align-items: center;
    gap: 2rem;
}

/* レスポンシブ切り替え (1024px以上でPC表示) */
@media (min-width: 1024px) {
    .hamburger-btn { display: none; }
    .pc-nav-area { display: flex; }
}

/* =========================================
   Footer & Common CTA
   ========================================= */
footer {
    background-color: #ffffff;
    border-top: 1px solid #eeeeee;
    padding: 60px 0 50px;
    color: #666666;
}

/* CTAエリア共通スタイル */
.f-cta-area {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.f-cta-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px 0;
    font-weight: bold;
    border-radius: 4px;
    transition: .2s;
}
.f-cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* =========================================
   Lenis & Animations Utilities
   ========================================= */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

.fade-in-up { opacity: 0; transform: translateY(20px); }




/* --- common.css の末尾に追加 --- */

/* =========================================
   Back to Top Button
   ========================================= */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color, #da4c1f); /* 朱色 */
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 90; /* ヘッダー(95)より下、コンテンツより上 */
    
    /* フレックスでアイコン中央揃え */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* 影とトランジション */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    
    /* 初期状態は非表示 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

/* 表示状態 */
#back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ホバー時 */
#back-to-top:hover {
    background-color: var(--accent-hover, #b83e16);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.br-sp {
    display: none;
}

/* スマホ調整（少し小さく） */
@media (max-width: 640px) {
    .br-sp {
        display: block;
    }

    #back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }

    .f-cta-area .bg-white.p-8 {
        padding: 8% 6%;
        box-sizing: border-box;
    }

    .f-cta-area .text-gray-600.mb-8 {
        margin-bottom: 7%;
        font-size: 3.3vw;
    }
}