/* ===============================================
   基本スタイル (全デバイス共通 & スマホの基本表示)
   =============================================== */
:root {
    --color-text: #1a1a1a;
    --color-background: #ffffff;
    --color-muted: #888888;
    --color-accent: #164af3;
    --color-light-gray: #f5f5f5;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Georgia', 'Times New Roman', serif;
    --font-serif: 'Noto Serif JP', serif; 
    --font-sans: 'Noto Sans JP', sans-serif;
}
body {
    margin: 0;
    font-family: var(--font-main);
    background-color: var(--color-background);
    color: var(--color-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===============================================
   ヘッダー (スマホ表示) 【ここから修正】
   =============================================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.3s ease-in-out;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}


.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    color: var(--color-text);
    text-shadow: none;
}

.header .logo img {
    height: 30px; /* ★お好みのロゴの高さに調整してください */
    width: auto;
    display: block; /* 余白などがつかないように念の為指定 */
    transition: all 0.3s ease; /* スムーズな変化のため */
}


.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 1.5rem;
}
.header-nav {
    display: none; 
}

/* ★ スマホでもCTAボタンを表示 */
.header .cta-button {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.header .cta-button.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    font: bold;
}

/* ★ ハンバーガーメニューを削除 */
.menu-toggle {
    display: none;
}

/* ★★★ ヘッダーの予約ボタンを小さくする調整 ★★★ */
.header .cta-button {
    padding: 0.5rem 1.2rem;  /* 内側の余白を上下左右で調整 */
    font-size: 0.85rem;      /* 文字の大きさを調整 */
    font-weight: bold;        /* 文字の太さを少し細く */
}
/* ===============================================
   ヒーローセクション (スマホ表示) 
   =============================================== */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 90vh;
    padding: 3rem 1.5rem;
    text-align: center;
    color: white;
    background-image: 
        /* ★フィルターを少し濃くする (0.3 -> 0.4) */
        linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)),
        url('src/hero_main.jpg');
    background-size: cover;
    background-position: 47% center;
    position: relative;
}

.hero-title {
    font-family: var(--font-sans); /* ★フォントをおしゃれな明朝体に */
    font-size: 2rem; /* ★画面幅に応じてサイズが変わるように */
    font-weight: 700; /* ★フォントの太さを指定 (bold) */
    line-height: 1.4; /* ★行間を少し広げて、読みやすくエレガントに */
    letter-spacing: 0.05em; /* ★文字間を少し空けて、高級感を演出 */

    margin: 0 auto 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(50, 50, 50, 0.3);
    text-align: left; 
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95); /* 少し不透明度を上げて見やすく */
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); /* ★サブタイトルにも影を追加 */
    text-align: left; /* ★サブタイトルも左揃えに */
}

.hero-subsubtitle {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95); /* 少し不透明度を上げて見やすく */
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); /* ★サブタイトルにも影を追加 */
}

.hero-footer {
    position: absolute; /* ★通常フローから切り離す */
    bottom: 2rem;      /* ★親要素の下から2remの位置に配置 */
    left: 0; /* ★ 親要素の左端に合わせる */
    right: 0; /* ★ 親要素の右端に合わせる */
    padding: 0 1.5rem; /* ★ 左右の余白をpaddingで確保 */
    opacity: 0; /* 初期状態では非表示 */
    transform: translateY(20px); /* 少し下にずらしておく */
    transition: opacity 0.5s ease, transform 0.5s ease; /* スムーズなフェードイン */
    text-align: center; /* ★フッターのテキストを中央揃えに */
}
/* ===============================================
   汎用セクションスタイル (スマホ表示)
   =============================================== */
.section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 500;
    margin: 0 0 1rem;
}
.section-description {
    font-size: 1.1rem;
    color: var(--color-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}
.cta-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.cta-button-transparent {
    display: inline-block;
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 0.8rem 1.8rem;
    font-weight: bold;
    margin-top: 3rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ===============================================
   各セクションのレイアウト (スマホ表示)
   =============================================== */

/* キャビン紹介 【ここから修正】 */
.rooms-section { background-color: var(--color-light-gray); }
.room-grid { display: grid; grid-template-columns: 1fr; gap: 5rem; }
.room-card { display: flex; flex-direction: column; gap: 2rem; }



/* 新しい画像ギャラリーのスタイル */
.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; 
}
.main-image-container {
    position: relative;
}
.image-gallery .main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    background-color: #eee; /* 画像が読み込まれるまでの背景色 */
}
.image-gallery .main-image.loading {
    opacity: 0.5;
}

/* ナビゲーションボタンのスタイル */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff6;
    color: rgba(0, 0, 0, 0.86);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    opacity: 0.7; /* ★ スマホでも常に表示されるように半透明にする */
}




.gallery-nav.prev {
    left: 1rem;
}
.gallery-nav.next {
    right: 1rem;
}

.image-gallery .sub-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 0.5rem;
}
.image-gallery .sub-images img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 2px solid transparent; /* ★ 枠線用のスペース確保 */
}
.image-gallery .sub-images img:hover {
    opacity: 0.85;
    transform: scale(1.05);
}
/* ★ 現在表示されているサブ画像を目立たせる */
.image-gallery .sub-images img.active {
    border-color: var(--color-accent);
    transform: scale(1.05);
    opacity: 1;
}


.room-name { font-family: var(--font-sans); font-size: 2rem; font-weight: 500; margin: 0 0 0.5rem; }
.room-description { color: var(--color-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.room-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 1px solid #ddd; padding-top: 1.5rem; }
.spec-item { font-size: 0.9rem; }
.spec-item strong { display: block; font-size: 1rem; margin-bottom: 0.25rem; }
.spec-item span { color: var(--color-muted); }

/* 体験紹介 (LUGNの3つの特徴セクション) */
.excitement-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem; 
}

.excitement-card {
    background-color: var(--color-light-gray);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* 追加した画像用のスタイル */
.excitement-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.excitement-card h3 {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 0.5rem;
}

.excitement-card p {
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* アニメーション */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }


/* ===============================================
   資料請求セクション
   =============================================== */
.brochure-section {
    /* ★このセクションの上下の空間だけを指定 */
    padding: 4rem 0; 
    background-color: var(--color-light-gray); /* ★背景色をこちらに移動 */
}

.brochure-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.brochure-image img {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

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

.brochure-hook {
    color: var(--color-muted);
    margin: 0;
}

.brochure-main {
    font-size: 1.2rem;
    font-weight: 400;
    color:#888888;
    line-height: 1.5;
    margin: 0.5rem 0 2rem 0;
}

.cta-button-primary {
    background-color: var(--color-accent);
    font-weight: bold;
}
.cta-button-primary:hover {
    box-shadow: 0 10px 20px rgba(0,123,255,0.2);
}

/* ===============================================
   フッター
   =============================================== */
.footer {
    background-color: var(--color-text);
    color: #a0a0a0;
    padding: 20px 8px; /* 上下の余白 */
    font-size: 0.75rem;
    line-height: 1.6;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* 各ブロック間の隙間 */
}

.footer p {
    margin: 0;
}

/* 「株式会社Treqo」のタイトルのみをスタイリング */
.footer-content p:first-child strong {
    color: white;
    font-weight: 600; 
    font-size: 0.85rem;
}

/* 免責事項とコピーライトのブロック */
.footer-bottom {
    border-top: 1px solid #444; /* 上に区切り線 */
    padding-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem; /* 免責事項とコピーライトの間の隙間 */
    text-align: center; /* 全体を中央寄せ */
}

/* 免責事項のテキスト */
.disclaimer-text {
    color: #888; /* 通常のテキストより少しだけ控えめな色に */
    font-size: 10px;
}

/* コピーライト */
.footer-bottom p:last-child {
    font-size: 0.7rem;
    color: #777;
}


@media (min-width: 768px) {

    /* ヘッダー: ナビを表示し、ハンバーガーを非表示に */
    .header-nav { display: flex; align-items: center; gap: 2rem; }
    .menu-toggle { display: none; }
    .header .cta-button { display: inline-block; } /* 予約ボタンを表示 */

    /* ヒーロー: テキストを左揃えに */
    .hero {
        padding-top: 12rem;
        padding-bottom: 6rem;
        /* 親要素は、中の要素を中央に配置するよう指示するだけ */
        align-items: center; /* ★★★ これが最重要！★★★ 上下方向の中央 */
        justify-content: center; /* 念のため左右方向も中央に */
    }

    .hero .container {
        /* テキストブロック自体の設定 */
        text-align: left; /* ★ブロックの中のテキストは左揃えに */
        max-width: 800px; /* ★ブロックが横に広がりすぎないように制限 */
        /* align-items: flex-start; は不要なので削除 */
    }
    
    /* hero-title の横幅が広がりすぎないように最大幅を設定 */
    .hero-title {
        max-width: 800px;
    }

    .hero-footer {
        position: relative; /* ★通常フローから切り離す */
        bottom: 0rem;      /* ★親要素の下から2remの位置に配置 */
        left: 0; /* ★ 親要素の左端に合わせる */
        right: 0; /* ★ 親要素の右端に合わせる */
        padding: 0 1.5rem; /* ★ 左右の余白をpaddingで確保 */
        transform: translateY(20px); /* 少し下にずらしておく */
        transition: opacity 0.5s ease, transform 0.5s ease; /* スムーズなフェードイン */
        text-align: right; /* ★フッターのテキストを中央揃えに */
    }
    
    /* セクションの余白を少し広げる */
    .section { padding: 8rem 0; }

    /* キャビン紹介: 画像とテキストを横並びに */
    .room-grid { gap: 8rem; }
    .room-card {
        grid-template-columns: 1fr 1fr;
        display: grid;
        align-items: center;
        gap: 4rem;
    }
    .room-card:nth-child(even) .room-image { grid-column: 2 / 3; grid-row: 1 / 2; }
    .room-card:nth-child(even) .room-content { grid-column: 1 / 2; grid-row: 1 / 2; }

      /* ★ PCの時だけ、ボタンをホバーで表示する設定を追加 */
    .gallery-nav {
        opacity: 0;
        pointer-events: none;
    }
    .main-image-container:hover .gallery-nav {
        opacity: 1;
        pointer-events: auto;
    }

    /* 体験紹介: カードを横3列に */
    .excitement-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }


    /* ★★★ 資料請求のPC用スタイルを修正 ★★★ */
     .brochure-section {
        padding: 6rem 0; /* PCでは上下の余白を少し広げる */
    }

    .brochure-content {
        grid-template-columns: 1fr 1fr; /* PCでは2カラムに */
        gap: 5rem; 
    }
    .brochure-text {
        text-align: center; /* PCではテキストを左寄せに */
    }

 /* ★★★ フッターのPC用スタイルを修正 ★★★ */
    .footer {
        /* ★ PC用の余白も調整 */
        padding: 1em 0; 
        text-align: left;
    }
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 3rem; /* ★ 横の隙間も調整 */
    }
    .footer-company-info {
        flex: 1;
    }
    .footer-bottom {
        text-align: center;
    }
}

/* 背景の黒いオーバーレイ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* ★ display: none; に変更して、レイアウトから完全に除外する */
    display: flex; 
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

/* モーダルが表示されたときのスタイル */
.modal-overlay.is-visible {
    /* ★ 表示されるときだけ display: flex; を適用 */
    display: flex; 
    opacity: 1;
    visibility: visible;
}

/* モーダルのコンテンツ本体（白い部分） */
.modal-content {
    position: relative;
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 16px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    margin-top: 4rem; /* ★ モーダルの上に余白を追加 */
    
    transform: translateY(30px) scale(0.95);
    /* ★ transitionの対象をtransformのみにする */
    transition: transform 0.4s ease-out; 
}

.modal-overlay.is-visible .modal-content {
    transform: translateY(0) scale(1);
}

/* 閉じるボタン */
.modal-close-button {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    font-size: 2.5rem;
    font-weight: 300;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}
.modal-close-button:hover {
    color: #333;
}


/* --- 以下は plans-styles.css から持ってきたスタイル --- */
/* モーダル内のレイアウトを整える */
.modal-content .intro { 
    text-align: center; 
    margin-bottom: 1rem; 
}
.modal-content .intro h1 { font-family: var(--font-sans); font-size: 1.8rem; color: #2c2c2c; font-weight: 500; margin-bottom: 1rem; }
.modal-content .intro p { color: #666; max-width: 550px; margin: 0 auto; line-height: 1.6; }
.modal-content .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.modal-content .pricing-card { background-color: #fff; border: 1px solid #eee; border-radius: 12px; padding: 2rem; display: flex; flex-direction: column; text-align: left; }


.modal-content .plan-name { font-weight: 500; font-size: 0.9rem; color: #666; letter-spacing: 1px; }
.modal-content .plan-jp-name { font-family: var(--font-sans); font-size: 1.5rem; font-weight: 500; margin-top: 0.25rem; }
.modal-content .card-price { 
    font-size: 2.5rem; 
    font-weight: 300; 
    margin: 0.5rem 0; 
}
.modal-content .card-price .currency { font-size: 1.5rem; vertical-align: super; }

.pricing-card.free-plan .card-price {
    margin-top: 0.5rem; /* 上の余白を少しだけ増やして「無料」の文字を下に押し、見た目の間隔を揃える */
}

.modal-content .card-features { 
    list-style: none; 
    padding:0;
    margin-bottom: 0.5rem; 
    flex-grow: 1; 
}

.modal-content .card-features li { 
    display: flex;           /* ★ これを追加 */
    align-items: flex-start; /* ★ これも追加 */
    margin-bottom: 1rem; 
    color: #666; 
    line-height: 1.6; 
    
}
.modal-content .card-features li strong { color: #2c2c2c; font-weight: 800; }
.modal-content .card-features li::before {
    content: '✓';
    color: var(--color-accent);
    font-weight: bold;
    margin-right: 0.75rem;
    flex-shrink: 0;
}
.modal-content .card-button { display: block; width: 100%; padding: 1rem; border-radius: 8px; text-align: center; text-decoration: none; font-weight: bold; font-size: 1rem; transition: all 0.2s ease; font-family: var(--font-sans); background-color: var(--color-accent); color: white; }
.modal-content .card-button:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* モーダルのレスポンシブ対応 */
@media (max-width: 992px) {
    .modal-content .pricing-grid { grid-template-columns: 1fr; }
}