/* ============================================================
   静寂庵 SHIJIMA-AN — スタイルシート
   ① CSS変数（デザイントークン）→ ② リセット → ③ 共通パーツ
   → ④ 各セクション の順番で書かれています
   ============================================================ */

/* ① ============ CSS変数（色・フォント）を一箇所にまとめる ============ */
:root {
    /* カラーパレット（Figmaのデザインカラーをそのまま転写） */
    --color-base: #f5f0e8; /* ページの基本背景色（薄いクリーム） */
    --color-sub-bg: #ede7db; /* 少し濃いクリーム（別セクション用） */
    --color-main: #3a2d20; /* メインカラー（濃い茶色） */
    --color-dark: #2a1f14; /* さらに濃い茶色（フッター背景） */
    --color-h: #2c2318; /* 見出し文字色 */
    --color-body: #665745; /* 本文テキスト色 */
    --color-muted: #998c7d; /* 小さいラベル・補足文字色 */
    --color-accent: #b28e5c; /* アクセントカラー（金色） */
    --color-line: #06c755; /* LINEグリーン */
    --color-white: #ffffff;

    /* フォントファミリー */
    --font-mincho: 'Shippori Mincho', serif; /* 見出し用明朝体 */
    --font-mincho-b: 'Shippori Mincho B1', serif; /* 特徴見出し（太め明朝） */
    --font-antique: 'Shippori Antique B1', serif; /* ナビ・ボタン用 */
    --font-noto: 'Noto Sans JP', sans-serif; /* 本文ゴシック体 */
    --font-serif-jp: 'Noto Serif JP', serif; /* 料理カードタイトル */

    /* レイアウト */
    --max-width: 1440px; /* ページ最大横幅 */
    --gutter: 80px; /* 左右の余白 */

    /* 以下を追加 */
    --width-inner: 1200px;
    --padding-sp: 20px;
}

/* ③ ============ 共通パーツ（どのセクションにも使われる要素） ============ */

/* セクションラベル（小さな英語テキスト "CONCEPT"など） */
.section-label {
    font-family: var(--font-noto);
    font-size: 11px;
    font-weight: 400;
    color: var(--color-muted);
    letter-spacing: 1.65px; /* 文字の間隔を広げてスッキリ見せる */
    line-height: 1.7;
    margin-bottom: 8px;
}

/* セクション見出し（各セクションの大見出し） */
.section-heading {
    font-family: var(--font-mincho);
    font-size: 30px;
    font-weight: 500;
    color: var(--color-h);
    line-height: 1;
    margin-bottom: 0;
}

/* ボタン共通スタイル */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-antique);
    font-size: 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: opacity 0.2s ease; /* ホバー時に少し透明になる */
}

.btn:hover {
    opacity: 0.8;
}

/* ヒーローセクション用ボタン */
.btn--hero {
    background: rgba(178, 142, 92, 0.57); /* 半透明の金色背景 */
    color: var(--color-white);
    padding: 14px 24px;
    width: 394px;
    justify-content: center;
    position: relative;
    font-size: 20px;
}

.btn__arrow {
    position: absolute;
    right: 24px;
}

/* アクセスセクション用ボタン */
.btn--access {
    max-width: 200px;
    display: inline-block;
    background: var(--color-accent); /* 金色の背景 */
    color: var(--color-base);
    border: 1px solid var(--color-main);
    border-radius: 4px;
    padding: 12px 24px;
    font-family: var(--font-noto);
    font-size: 14.5px;
    line-height: 2;
    transition: opacity 0.2s;
}

.btn--access:hover {
    opacity: 0.8;
}

/*  ============ ヘッダー ============ */

.header {
    /* 画面の上部に固定して常に表示 */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100; /* 他の要素の上に重ねる */
    height: 68px;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0 48px;
    backdrop-filter: blur(4px); /* 背景をぼかすガラス効果 */
    background: rgba(58, 45, 32, 0.2); /* 半透明の暗い背景 */
}

.header__logo {
    flex-shrink: 0; /* ロゴが縮まないようにする */
    width: 98px;
    padding: 7px 0;
}

.header__nav {
    display: flex;
    gap: 40px;
    flex: 1; /* 残りの横幅を全部使う */
    justify-content: center;
}

.h-nav-list {
    display: flex;
    gap: 40px;
    flex: 1; /* 残りの横幅を全部使う */
    justify-content: center;
}

.header__nav-link {
    font-family: var(--font-antique);
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1.65px;
    transition: color 0.2s;
}

.header__nav-link:hover {
    color: var(--color-accent);
}

.header__cta {
    flex-shrink: 0;
    background: rgba(178, 142, 92, 0.7); /* 半透明の金色 */
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-antique);
    font-size: 15px;
    border-radius: 30px;
    padding: 9px 22px;
    white-space: nowrap; /* 文字を折り返さない */
    transition: opacity 0.2s;
}

.header__cta:hover {
    opacity: 0.8;
}

/* 一時的に強制表示させる */
.fade-in {
    opacity: 1 !important;
    /* 0から1に変える */
    visibility: visible !important;
}

/* ============ ハンバーガーメニュー ============ */

/* PCではハンバーガーメニュー自体を非表示 */
.h-hamburger {
    display: none; /* PCでは丸ごと隠す */
}

/* ============ ヒーローセクション（固定スクロール） ============ */
.hero {
    position: relative;
    width: 100%;
    height: 300vh; /* 3画面分のスクロール領域（滑走路）を作る */
}

/* 追加したラッパーを画面にピタッと吸着させる */
.hero__sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* 以降の要素は sticky の中で絶対配置 */
.hero__bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__bg-wrapper .hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    will-change: opacity;
}

.hero__bg-wrapper .hero__bg.is-active {
    opacity: 1;
}

.hero__vertical-text {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-family: var(--font-noto);
    font-size: 11px;
    letter-spacing: 2.2px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 3;
}

.hero__content {
    position: absolute;
    left: 0;
    bottom: 80px;
    width: 900px;
    padding-left: 80px;
    z-index: 3;
}

.hero__heading {
    font-family: var(--font-mincho);
    font-size: 68px;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 3.4px;
    line-height: 1;
    margin-bottom: 40px;
    white-space: nowrap;
}

.hero__desc {
    font-family: 'Shippori Mincho B1', serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 2;
    margin-bottom: 40px;
}

/* ============ ⑥ コンセプトセクション（縦書きを解除・水平レイアウト版） ============ */
.concept {
    padding: 83.5px 120px;
    background: var(--color-base);
    position: relative;
    /* 表示のためのアニメーション用クラス（opacity:0の状態からスタート） */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* JSで付与される表示クラス */
.concept.is-visible {
    opacity: 1;
}

.concept__inner {
    /* margin: 83.5px 80px; */
    padding: 0 20px;
    display: flex;
    /* justify-content: center; */
    /* align-items: center; */
    position: relative;
    z-index: 2;
}

/* 左側のテキストエリア */
.concept__text {
    width: 490px;
    margin-right: 60px;
}

.concept__body {
    /* 縦書き設定を削除しました */
    display: block;
    margin-top: 40px;
}

.concept__lead {
    font-family: var(--font-mincho);
    font-size: 22px;
    color: var(--color-h);
    line-height: 1.8;
    margin-bottom: 24px;
}

.concept__desc {
    font-family: var(--font-noto);
    font-size: 15px;
    color: var(--color-body);
    line-height: 2;
}

/* 右側の画像エリア */
.concept__images {
    width: 540px;
    position: relative;
}

/* メイン写真：大 */
.concept__img-main {
    width: 350px;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 20px 40px rgba(42, 31, 20, 0.15);
}

.concept__img-main img {
    width: 100%;
    object-fit: cover;
}

/* サブ写真：小・重なる */
.concept__img-sub {
    width: 255px;

    position: absolute;
    bottom: -40%;
    right: 10%;
    /* box-shadow: 0 15px 30px rgba(42, 31, 20, 0.2); */
    /* border: 4px solid var(--color-base); */
    z-index: 2;
}

.concept__img-sub img {
    width: 100%;
}

/* 葉っぱの装飾画像 */
.concept__leaf {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.concept__leaf img {
    width: 140px;
    height: auto;
    opacity: 0.4;
}

/*  ============ 特徴セクション ============ */

.features {
    background: var(--color-sub-bg);
    padding: 80px 138px;
}

.features__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.features__text {
    display: flex;
    flex-direction: column;
    /* gap: 8px; */
    padding-left: 80px;
}

.features__list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.features__item-heading {
    font-family: var(--font-mincho-b);
    font-size: 15px;
    font-weight: 800;
    color: var(--color-h);
    line-height: 30px;
    margin-top: 8px;
}

.features__item-desc {
    font-family: var(--font-noto);
    font-size: 14.5px;
    color: var(--color-body);
    line-height: 32px;
}

/* 右側の写真（上が丸い変形） */
.features__image {
    height: 360px;
    border-radius: 122.5px 122.5px 302.5px 302.5px; /* 上が少し丸、下が大きく丸 */
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/*  ============ ギャラリーセクション ============ */

.gallery {
    background: var(--color-base);

    padding: 80px 120px 60px;
    position: relative;
}

.gallery__inner {
    /* padding-left: 80px; */
    margin: 0 auto;
}

.gallery__inner .section-label,
.gallery__inner .section-heading {
    margin-bottom: 8px;
}

.gallery__inner .section-heading {
    margin-bottom: 32px;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 0.2fr); /* 4列グリッド */
    gap: 12px;
    margin-top: 32px;
}

.gallery__item {
    height: 220px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    z-index: 10;
}

/* 写真の上に表示するラベル（「客室滞在」など） */
.gallery__item-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-noto);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 2;
}

/* ⑧ ============ 滞在セクション ============ */

.stay {
    background: var(--color-sub-bg);
    padding: 64px 218px;
}

.stay__inner {
    display: flex;
    flex-direction: column;
}

.stay__image-wrap {
    position: relative;
    margin-top: 16px;
}

.stay__image {
    width: 100%;
    height: 316px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
}

.stay__caption {
    /* 素自体を右へ */
    width: fit-content;
    margin-top: 24px;
    margin-left: auto;

    font-family: var(--font-mincho);
    font-size: 18px;
    color: var(--color-h);
    line-height: 1.8;

    /* テキストの頭を揃える */
    text-align: left;
}

/* ⑩ ============ 料理セクション ============ */

.cuisine {
    background: var(--color-base);
    padding: 49px 120px;
    position: relative;
}

.cuisine__inner {
    /* padding-left: 80px; */
    position: relative;
}

.cuisine__inner .section-label,
.cuisine__inner .section-heading {
    margin-bottom: 8px;
}

.cuisine__all {
    display: flex;
}

.cuisine__grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2列グリッド */
    grid-template-rows: auto auto;
    gap: 38px 50px;
    margin-top: 30px;
    max-width: 794px;
    padding-bottom: 30px;
}

/* 各カード（写真＋説明テキスト） */
.cuisine__card {
    display: flex;
    align-items: stretch;
}

/* 左側の季節写真エリア */
.cuisine__card-img {
    width: 186px;
    height: 160px;
    border-radius: 4px 0 0 4px; /* 左側だけ丸める */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* 春夏冬：グラデーション背景。秋：写真背景 */
.cuisine__card-img--spring {
    background-image: url('../img/cuisine_sp.jpg');
}
.cuisine__card-img--summer {
    background-image: url('../img/cuisine_sum.jpg');
}
.cuisine__card-img--autumn {
    background-image: url('../img/cuisine_autumu.jpg');
}
.cuisine__card-img--winter {
    background-image: url('../img/cuisine_winter.jpg');
}

/* 写真の上の「春」「夏」などのラベル */
.cuisine__card-season {
    z-index: 2;
    font-family: var(--font-noto);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* 右側の白いテキストカード */
.cuisine__card-body {
    flex: 1;
    background: #ffffff;
    border-radius: 0 8px 8px 0; /* 右側だけ丸める */
    box-shadow: 0 2px 16px rgba(44, 35, 24, 0.1); /* 薄い影 */
    padding: 15px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cuisine__card-title {
    font-family: var(--font-serif-jp);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-h);
    letter-spacing: 3.36px;
    line-height: 24px;
}

.cuisine__card-desc {
    font-family: var(--font-noto);
    font-size: 12px;
    color: var(--color-body);
    line-height: 20.4px;
}

/* 季節限定バッジ（全体のコンテナ：枠線はなし） */
.cuisine__badge {
    padding: 100px;

    

    display: flex;
    flex-direction: column;
    align-items: center; /* 左右の中央揃え */
    gap: 8px; /* 画像とテキスト枠の間の隙間 */
}

/* 上側の画像エリア */
.cuisine__badge-img {
    width: 100%;
    display: flex;
    justify-content: center;
}

.cuisine__badge-img .concept__ashirai {
    width: 90px; /* 画像のサイズ */
    height: auto;
    opacity: 0.5;
}

/* 💡 下側のテキストエリア（ここにだけボーダーを適用） */
.cuisine__badge-txt-wrap {
    width: 100%; /* 横幅いっぱい */
    border: 1px solid var(--color-accent); /* 金色のボーダー */
    border-radius: 8px; /* 角丸 */
    padding: 16px 12px; /* 枠線の中の上下左右の余白 */
    text-align: center;
    background-color: transparent; /* 背景を透明に（必要ならvar(--color-base)などに） */
}

/* テキスト自体のスタイル */
.cuisine__badge-text {
    font-family: var(--font-noto);
    font-size: 13px;
    color: var(--color-body);
    line-height: 1.6;
}

/* あしらい薄く配置 */
.concept__ashirai {
    opacity: 0.4;
    width: 280px;
    height: auto;
    margin-bottom: 18px;
}

/* .concept__right {
    position: relative;
} */

.gallery__ashirai {
    position: absolute;

    right: 0;
    bottom: 0;

    pointer-events: none;
    z-index: 0;
}



/* ⑪ ============ アクセスセクション ============ */

.access {
    background: var(--color-sub-bg);
    padding: 80px 138px;
}

.access__inner {
    display: flex;
    align-items: stretch;
    gap: 80px;
}

.access__info {
    flex: 0 0 540px; /* 幅540pxに固定 */
    display: flex;
    flex-direction: column;
    padding: 80px 80px 80px;
}

/* 地図プレースホルダー */
.access__map {
    width: 442px;
    height: 216px;
    border-radius: 8px;
    background: linear-gradient(107deg, #7b8c9e 0%, #4a5c6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0 16px;
    position: relative;
    overflow: hidden;
}

.access__map::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.2));
}

.access__map-label {
    font-family: var(--font-noto);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

/* 情報テーブル（住所・営業時間など） */
.access__dl {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2列 */
    gap: 0 40px;
    margin: 8px 0 16px;
}

.access__dl-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.access__dl-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ラベル（「住所」「定休日」など） */
.access__dt {
    font-family: var(--font-noto);
    font-size: 11px;
    color: var(--color-muted);
    letter-spacing: 1.65px;
    line-height: 1.7;
}

/* 値（実際の住所・時間など） */
.access__dd {
    font-family: var(--font-noto);
    font-size: 14.5px;
    color: var(--color-h);
    line-height: 2;
}

/* 右側の写真 */
.access__photo {
    flex: 1;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    min-height: 500px;
}

/*  ============ 予約セクション ============ */
/* ⑫ ============ 予約セクション ============ */

/* セクション全体の背景と余白 */
.reservation {
    background: var(--color-main); /* 濃い茶色の背景 */
    padding: 79px 80px;
}

/* インナー（コンテンツ幅の制限と中央寄せ） */
.reservation__inner {
    /* max-width: 840px; */
    margin: 0 auto;
}

/* 見出し */
.reservation__heading {
    font-family: var(--font-mincho);
    font-size: 30px;
    font-weight: 500;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 12px;
}

/* 説明文 */
.reservation__desc {
    font-family: var(--font-noto);
    font-size: 14.5px;
    color: var(--color-white);
    line-height: 2;
    margin-bottom: 28px;
}

/* 💡全体を横並びにするコンテナ */
.reservation__all {
    width: 100%;
    display: flex;
    align-items: center; /* 上下の中央を揃える */
    gap: 24px; /* カードと写真の間の隙間を作る */
}

/* 3つの予約方法カードを包む箱 */
.reservation__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列 */

    gap: 16px;
    width: 65%; /* カードの幅を確保するため50%から55%へ微調整 */
    /* flex-shrink: 0;  */
    /* 写真に押されて絶対に縮まないように固定 */
}

/* 各カード（ネット・電話・LINE） */
.reservation__card {
    display: flex;
    flex-direction: column;
    align-items: center;

    background: rgba(255, 255, 255, 0.08); /* 少し白い半透明 */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 20px 10px; /* 💡左右パディングを17pxから10pxに狭めて文字の横幅を確保 */
    height: 100%;
    gap: 4px;
}

/* アイコン */
.reservation__card-icon i {
    font-size: 24px; /* アイコンの大きさを調整 */
    color: var(--color-white);
}

/* マウスを乗せた（hover）ときに色を変える */
.reservation__card:hover .reservation__card-icon i {
    color: var(--color-main); /* マウスが乗ったら濃い茶色にする */
}

/* LINEアイコン専用カラー */
.reservation__card-icon .fa-line {
    font-size: 24px;
    color: var(--color-line); /* LINEの緑色（#06c755） */
}

/* カード内のタイトル */
.reservation__card-title {
    font-family: var(--font-noto);
    font-size: 14.5px;
    color: var(--color-white);
    text-align: center;
    line-height: 2;
}

/* LINE専用タイトルカラー */
.reservation__card-title--line {
    color: var(--color-line);
}

/* 電話番号の太文字 */
.reservation__card-tel {
    font-family: var(--font-noto);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-accent);
    text-align: center;
    line-height: 1.2;
}

/* カード内の補足テキスト */
.reservation__card-sub {
    font-family: var(--font-noto);
    font-size: 11px;
    color: var(--color-muted);
    text-align: center;
    letter-spacing: 1.65px;
    line-height: 1.7;
}

/* 花の写真の箱 */
.reservation__img {
    width: 35%; /* 💡写真側の幅を調整（合わせて100%） */
    padding: 0; /* 隙間はgapに任せて0に */
}

/* 写真画像自体の制御 */
.reservation__img img {
    width: 100%;
    height: auto;
    display: block;
}

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

.footer {
    background: var(--color-dark); /* 最も濃い茶色 */
    padding: 32px 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer__inner {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* 薄い下線 */
}

.footer__logo-wrap {
    flex-shrink: 0;
    width: 186px;
}

.footer__logo {
    font-family: var(--font-mincho);
    font-size: 22px;
    font-weight: 500;
    color: var(--color-white);
    letter-spacing: 4px;
}

.footer__address {
    font-family: var(--font-noto);
    font-size: 14.5px;
    color: var(--color-white);
    line-height: 2;
    white-space: nowrap;
}

.footer__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__nav-link {
    font-family: var(--font-noto);
    font-size: 11px;
    color: var(--color-white);
    letter-spacing: 1.65px;
    line-height: 1.7;
    transition: color 0.2s;
}

.footer__nav-link:hover {
    color: var(--color-accent);
}

/* SNSアイコンボタン */
.footer__sns {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer__sns-link {
    width: 36px;
    height: 36px;
    border-radius: 50%; /* 丸いボタン */
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    transition: background 0.2s;
}

.footer__sns-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* コピーライト */
.footer__copyright {
    font-family: var(--font-noto);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    letter-spacing: 0.5px;
}

/* ⑭ ============ ページトップへ戻るボタン ============ */

.back-to-top {
    position: fixed;
    right: 46px;
    bottom: 40px;
    width: 44px;
    height: 44px;
    border-radius: 22px; /* 丸いボタン */
    background: var(--color-accent);
    color: var(--color-h);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    opacity: 0; /* 最初は非表示 */
    visibility: hidden;
    transition:
        opacity 0.3s,
        visibility 0.3s;
    z-index: 99;
}

/* JavaScriptでスクロールしたら表示される */
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    opacity: 0.8;
}

/* ⑮ ============ スクロールアニメーション ============ */

/* 初期状態：見えない＋少し下にある */
/* .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
} */

/* JavaScriptで画面に入ったら付与するクラス */
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/*  ============ スクロールふわっと演出 ============ */
/* 1. 全セクションの初期状態（隠す＋少し下にずらす） */
.concept,
.features,
.gallery,
.stay,
.cuisine {
    opacity: 0;
    transform: translateY(30px); /* 少し下に配置 */
    transition:
        opacity 1.2s ease-out,
        transform 1.2s ease-out; /* ふわっと動かす設定 */
}

/* 2. JSで 'is-active' が付いた時の状態（見せる＋定位置に戻す） */
.concept.is-active,
.features.is-active,
.gallery.is-active,
.stay.is-active,
.cuisine.is-active {
    opacity: 1;
    transform: translateY(0);
}

/*  ============ stayに対して横から出す ============ */

/* 1. 初期状態：左側に少しずらして透明にしておく */
.stay__caption {
    opacity: 0;
    transform: translateX(-100px); /* 左から出てくる場合はマイナス */
    transition:
        opacity 1s ease,
        transform 1s ease; /* 1秒かけてふわっと移動 */
}

/* 2. 画像の設定（左から出現） */
.stay__image {
    opacity: 0;
    transform: translateX(-100px); /* 右に30pxずらす */
    transition:
        opacity 1s ease,
        transform 1s ease;
}

/* 2. 親要素(.stay)に .is-active が付与されたとき */
.stay.is-active .stay__caption,
.stay.is-active .stay__image {
    opacity: 1;
    transform: translateX(0); /* 元の位置に戻る */
    transition-delay: 0.3s; /* 0.3秒遅れて動く */
}

/* 文字の演出 */
/* 1文字ずつのアニメーション定義 */
.hero__heading .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px); /* 少し下から */
    animation: fadeInLetter 0.8s ease-out forwards;
}

/* アニメーションの動き */
@keyframes fadeInLetter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* scrollLine場合 */

/* 文字を上下にゆらゆら動かすアニメーション */
@keyframes textFloat {
    0%,
    100% {
        transform: translateY(0); /* 元の位置 */
        opacity: 1;
    }
    50% {
        transform: translateY(20px); /* 10px下に移動 */
        opacity: 0.7; /* 少しだけ薄くする */
    }
}

/* クラスへの適用 */
.hero__vertical-text {
    /* 既存のスタイルがあればそのまま残し、以下を追加 */
    animation: textFloat 3s infinite ease-in-out;

    /* 縦書きにする場合はこれを追加してください（もし未設定なら） */
    /* writing-mode: vertical-rl; */
}

/* -----------------------------ローディング画面 ここから----------------------------- */
/* ローディング全体 */
#loading {
    position: fixed;
    inset: 0;
    background: var(--color-base);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

/* 円のローダー */
.loader {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 6px solid var(--color-main);
    border-top: 6px solid var(--color-dark);
    animation: spin 1s linear infinite;
}

/* テキスト */
.loading-text {
    margin-top: 16px;
    font-size: 1rem;
    letter-spacing: 0.08em;
    font-family: var(--font-mincho-b);
    color: var(--color-main);
}

/* 回転アニメーション */
/* @keyframesは設計図、spin というアニメの動きを作る */
@keyframes spin {
    /* rotate(0deg) 回ってないスタート時 */
    0% {
        transform: rotate(0deg);
    }
    /* rotate(360deg) 1回転 終了時*/
    100% {
        transform: rotate(360deg);
    }
}
