/* ==========================================================
   グラン レ・ジェイド葉山 LP
   - デザインデータ（0831_葉山セカンドLP_pdf.ai）を基に実装
   - スライダーは Swiper 11（CDN）を使用
   - 動画・写真は「差し替え予定」のためプレースホルダーで実装
     （index.html の .media 内コメント参照）
   ========================================================== */
:root {
    --c-blue: #3d6ae2;
    /* ボタン（物件エントリー／詳しく見る／拡大する） */
    --c-blue-d: #2f56c4;
    --c-black: #000000;
    /* ダークセクション背景 */
    --c-gray-l: #efefef;
    /* ライトセクション背景 */
    --c-gray-f: #595757;
    /* フッター背景 */
    --c-red: #7e0000;;
    /* ENTRYボタン */
    --c-gold: #9A7B3F;
    /* 限定サイトボタン */
    --c-text: #222222;
    --font-sans: 'hiragino-kaku-gothic-pron', "Noto Sans JP", "Yu Gothic", sans-serif;
    --font-serif: "Hiragino Mincho ProN", "Noto Serif JP", "Yu Mincho", serif;
    --font-en: "Cormorant Garamond", "Times New Roman", serif;
    --header-h: 72px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

/*
  メインビジュアルのセクション境界への吸着。
  SPでもPCと同じく「1スワイプ=1セクション」にするため mandatory（必ず吸着）
  を使うが、html に常時付けるとメインビジュアルより下のコンテンツでも
  吸着が働いてしまい、スクロールが引き戻されたりアンカーリンクが
  効かなくなる。そのため .is-mv-snap クラスで出し入れし、
  メインビジュアルが画面中央のラインをまたいでいる間だけ有効にする。
  （クラスの付け外しは slp.js の snapObserver が行う）

  吸着対象は scroll-snap-align を持つ .main-visual .hero の4枚だけ。
*/
html.is-mv-snap {
    scroll-snap-type: y mandatory;
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    /* 視差軽減設定時はJS側のホイール制御も無効化されるため、
       吸着も外して完全に通常スクロールに委ねる */
    html.is-mv-snap {
        scroll-snap-type: none;
    }
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
body {
    font-family: var(--font-sans);
    color: var(--c-text);
    font-size: 16px;
    line-height: 2;
    letter-spacing: .06em;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
ul {
    list-style: none;
}
footer,
header {
    line-height: 1;
    font-family: "Shippori Mincho", serif;
    letter-spacing: 0.1em;
}

/* ---------- 共通ボタン ---------- */
.slp-btn {
    display: block;
    width: 161px;
    margin: 0 auto;
    background: var(--c-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    padding: 12px 44px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background .25s;
}
.slp-btn:hover {
    background: var(--c-blue-d);
}
.slp-btn:focus-visible {
    outline: 3px solid rgba(61, 106, 226, .45);
    outline-offset: 2px;
}

/* ---------- メディア（動画・画像）プレースホルダー ---------- */
.media {
    position: relative;
    overflow: hidden;
    background: #3a3f3a;
}
.media-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 24px, transparent 24px 48px), linear-gradient(160deg, #42493f, #20261f);
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
    letter-spacing: .2em;
}
.media-src {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-credit {
    position: absolute;
    right: 12px;
    bottom: 8px;
    color: rgba(255, 255, 255, .85);
    font-size: 10px;
    letter-spacing: .08em;
    text-shadow: 0 0 4px rgba(0, 0, 0, .6);
}
.media-credit.black {
    position: absolute;
    right: 20%;
    bottom: 0px;
    color: #000;
    text-shadow: 0 0 4px rgba(255, 255, 255, .6);
}

/* ---------- フローティングバナー ---------- */
.floating-entry {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 16px);
    z-index: 90;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 6px 20px;
    border-radius: 999px;
    padding: 14px 56px;
    font-size: 15px;
    width: unset;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    white-space: nowrap;
}

.floating-entry.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

/* ---------- ヒーロー／各セクション共通の全面メディア ---------- */
.hero {
    position: relative;
    height: 100svh;
    min-height: 640px;
    display: flex;
    align-items: center;
    color: #fff;
}
.hero .media,
.hero .media-placeholder {
    position: absolute;
    inset: 0;
}
.hero .media-bg {
    position: absolute;
    z-index: 2;
    inset: 0;
}
.hero .media-bg img {
    height: 100%;
    width: 85%;
    object-fit: contain;
}
.hero__inner {
    position: relative;
    z-index: 5;
    width: min(820px, 82%);
    margin: 0 auto;
}
.hero h1,
.hero .hero__title {
    font-size: clamp(40px, 16.818px + 3.091vw, 57px);
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .35), 0 2px 24px rgba(0, 0, 0, .35);
}
.hero__lead {
    margin-top: 23.5vh;
    font-size: clamp(14px, 5.818px + 1.091vw, 20px);
    font-weight: 600;
    line-height: 2.4;
    letter-spacing: .1em;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .5), 0 1px 12px rgba(0, 0, 0, .5);
}
.hero.movie04 .hero__inner{
    padding: 0 0 50vh;
}
.hero--sub {
    height: 88vh;
    min-height: 560px;
}
.hero--short {
    display: block;
    min-height: unset;
    height: unset;
}
.hero--short .media {
    position: relative;
}
.hero--short .movie {
    aspect-ratio: 1305 / 334;
    height: unset;
}
.hero--short .structure {
    aspect-ratio: 1302 / 548;
    height: unset;
    background: #fff;
}
.hero--short .media {
    background: #fff;
}
.hero--short .hero__inner {
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translateX(-50%);
}

.main-visual {
    position: relative;
}
.main-visual .hero {
    height: 100svh;
    min-height: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.hero-pagination {
    display: none;
}

.main-visual .hero__inner h1,
.main-visual .hero__inner .hero__title,
.main-visual .hero__inner .hero__lead {
    opacity: 0;
    transform: translateY(30px);
}

.main-visual .hero.is-inview .hero__inner h1,
    .main-visual .hero.is-inview .hero__inner .hero__title {
animation: heroTextUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
           animation-delay: 0.2s;
    }

.main-visual .hero.is-inview .hero__inner .hero__lead {
animation: heroTextUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
           animation-delay: 0.5s; /* タイトルより少し遅れて表示 */
}

@keyframes heroTextUp {
    from {
opacity: 0;
transform: translateY(30px);
    }
    to {
opacity: 1;
transform: translateY(0);
    }
}

/* ---------- リード文（セクション下・白／黒帯） ---------- */
.section-lead {
    text-align: center;
    padding: 72px 5% 56px;
    font-size: clamp(16px, 10.545px + 0.727vw, 20px);
    font-weight: 600;
    line-height: 2.4;
}
.bg-dark {
    background: var(--c-black);
    color: #fff;
}
.bg-light {
    background: var(--c-gray-l);
}

/* ---------- アクセスセクション ---------- */
#access .hero__inner {
    padding: 13vh 0 0;
}
.access__figure {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-en);
    margin: 5vh 0;
}
.access__lead {
    font-size: clamp(24px, 9.000px + 2vw, 35px);
    margin-top: 44.8vh;
    line-height: 1;
}
.access__lead02{
    font-size: clamp(14px, 13.189px + 0.216vw, 16px);
    margin-top: 20px;
    line-height: 1;
}
.access__lead span{
    display: inline-block;
    position:relative;
}
.access__lead span sup{
    display: inline-block;
    position:absolute;
    top: -10px;
    right: 0;
    font-size: clamp(8px, 5.568px + 0.649vw, 14px);
}
.access__lead02 + .slp-btn {
    display: block;
    width: 161px;
    margin: 60px auto 0;
}

/* ---------- カードスライダー（Swiper） ---------- */
.slider {
    position: relative;
    width: min(1300px, 92%);
    margin: 0 auto;
}
.slider .swiper {
    overflow: hidden;
    padding: 4px;
    /* カードの影の見切れ防止 */
}
.slider .swiper-wrapper {
    align-items: stretch;
}
.slider .swiper-slide {
    /* fitモード：幅はSwiperがslidesPerViewから自動計算するため指定しない
       （width を指定すると端が見切れる挙動に戻ります） */
    height: auto;
}
.slide .media {
    aspect-ratio: 4/3;
    background: unset;
}
.slide .media img {
    height: auto;
    object-fit: unset;
}
.slide--square .media {
    aspect-ratio: 1/1;
}
.slide__title {
    margin-top: 14px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
}
.slide__note {
    text-align: center;
    font-size: 11px;
    letter-spacing: .05em;
    line-height: 1.6;
    opacity: .85;
}
/* Swiper ナビゲーション（前へ／次へ 共通） */
.slider .swiper-button-next,
.slider .swiper-button-prev {
    top: 38%;
    width: 40px;
    height: 40px;
    margin-top: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    color: #333;
}
.slider .swiper-button-next {
    right: -8px;
}
.slider .swiper-button-prev {
    left: -8px;
}
.slider .swiper-button-next::after,
.slider .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 700;
}
/* 端に到達したら非表示。
   ただし loop 有効時は端に到達しないため、実質常に表示されます
   （ループしないスライダーが混在した場合の保険として残しています）。 */
.slider .swiper-button-next.swiper-button-disabled,
.slider .swiper-button-prev.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}
/* Swiper ページネーション（ドット） */
.slider .swiper-pagination {
    position: static;
    margin-top: 28px;
}
.slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 5px;
    background: #b5b5b5;
    opacity: 1;
    transition: background .2s;
}
.slider .swiper-pagination-bullet-active {
    background: #333;
}
.bg-dark .slider .swiper-pagination-bullet {
    background: #555;
}
.bg-dark .slider .swiper-pagination-bullet-active {
    background: #fff;
}
.slider-wrap {
    padding-bottom: 88px;
}

/* ---------- リビング＋間取り（横並び） ---------- */
.living {
    width: min(1160px, 92%);
    margin: 0 auto;
    padding: 24px 0 72px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: stretch;
}
.living__media {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    min-height: 420px;
}
.living__media .media {
    position: absolute;
    inset: 0;
}
.living__media .living__label {
    position: absolute;
    left: 24px;
    bottom: 18px;
    z-index: 2;
    color: #fff;
    font-family: var(--font-en);
    font-size: clamp(22px, 2.2vw, 32px);
    letter-spacing: .3em;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}
.living.js-slider {
    display: block;
    width: min(1160px, 92%);
    max-width: none;
    margin: 0 auto;
    padding: 24px 0 72px;
}
.living.js-slider .swiper {
    width: 100%;
}
/* .living は autoモード（写真854px＋カード370pxで幅が不均一）。
   非起動時も起動時もCSSで幅を指定し、gapは40pxを維持する。 */
.living.js-slider:not(.is-swiper-active) .swiper-wrapper {
    display: flex;
    gap: 40px;
    align-items: stretch;
    justify-content: center;
}
.living.js-slider:not(.is-swiper-active) .swiper-slide.living__media {
    width: 854px;
    aspect-ratio: 854 / 665;
}
.living.js-slider:not(.is-swiper-active) .swiper-slide.plan-card {
    width: 370px;
}
/* 起動時：autoモードなのでCSSのwidthがそのまま使われる */
.living.js-slider.is-swiper-active .swiper {
    padding: 0 0 50px;
}
.living.js-slider.is-swiper-active .swiper-slide.living__media {
    width: 854px;
    aspect-ratio: 854 / 665;
}
.living.js-slider.is-swiper-active .swiper-slide.plan-card {
    width: 370px;
}
.plan-card {
    background: #fff;
    border-radius: 10px;
    padding: 28px 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    text-align: center;
}
.plan-card__drawing {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9a9a94;
    font-size: 12px;
    letter-spacing: .2em;
    position: relative;
}
.plan-card__drawing img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.plan-card__text {
    padding: 0 28px;
}
.plan-card__type {
    font-family: var(--font-sans);
    font-size: 16px;
    letter-spacing: .06em;
    font-weight: 600;
}
.plan-card__type .name {
    font-size: 250%;
    margin-right: 6px;
}
.plan-card__type .fplan {
    font-size: 125%;
}
.plan-card__type small {
    font-size: 75%;
}
.plan-card__area {
    font-size: 9px;
    font-family: var(--font-sans);
    font-weight: 600;
    line-height: 1.8;
}
.plan-card__area strong {
    font-size: 20px;
    font-family: var(--font-sans);
    font-weight: 600;
    line-height: 1.2;
}
.plan-card__notes {
    font-size: 8px;
    line-height: 1.7;
    color: #555;
}
.plan-card__fbox {
    display: flex;
    justify-content: center;
    gap: 5px;
}
.plan-card__fbox .plan-card__area {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}
.plan-card__fbox .plan-card__area .plan-card__notes {
    width: 100%;
}
#plan .plan-card__text{
    min-height: 80px !important;
}

/* ---------- サービスカード（FunBase／ドッグラン） ---------- */
.service-card {
    width: min(980px, 92%);
    margin: 0 auto 96px;
    background: var(--c-gray-l);
    border-radius: 14px;
    padding: 56px 6% 60px;
}
.bg-dark .service-card {
    background: #f2f2f2;
    color: var(--c-text);
}
.service-card--white {
    background: #fff;
    color: #221714;
}
.service-card__title {
    text-align: center;
    font-size: clamp(24px, 14.541px + 1.261vw, 31px);
    font-weight: 700;
    margin-bottom: 36px;
}
.service-card__body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}
.service-card__media .media {
    aspect-ratio: 4/3;
    border-radius: 8px;
    background: transparent;
}
.service-card__sub {
    font-size: clamp(20px, 13.243px + 0.901vw, 25px);
    font-weight: 600;
    margin-bottom: 14px;
}
.service-card__text {
    font-size: clamp(17px, 12.946px + 0.541vw, 20px);
    font-weight: 600;
    line-height: 1.9;
}
.service-card__name {
    margin-top: 16px;
    font-size: 17px;
    font-weight: 600;
}
.service-card__name small {
    display: block;
    font-weight: 400;
    font-size: 11px;
    color: #666;
}
.service-card .slp-btn {
    margin-top: 14px;
    padding: 10px 34px;
    font-size: 13px;
}
.service-card .slp-btn {
    display: inline-block;
    width: unset;
}
.service-card__aside {
    font-size: 12px;
    margin-top: 10px;
    color: #555;
    display: inline-block;
}

/* ---------- ゴルフ場カード ---------- */
.swiper-slide.golf-slide .media {
    aspect-ratio: 567 / 322;
    border-radius: 10px;
}
.golf-card {
    background: #b9b9b9;
    color: #1c1c1c;
    border-radius: 6px;
    padding: 34px 30px 38px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}
.golf-card__title {
    text-align: center;
    font-size: 19px;
    font-weight: 700;
}
.golf-card .media {
    aspect-ratio: 404/269;
    border-radius: 10px;
}
.golf-card__text {
    font-size: 13.5px;
    line-height: 2;
}
.golf-card__notes {
    font-size: clamp(9px, 8.189px + 0.216vw, 11px);
    line-height: 1.9;
    text-align: center;
}
.golf-card .btn {
    align-self: center;
    padding: 9px 32px;
    font-size: 12.5px;
}
.slider .swiper-slide.slide--golf {
    /* 幅はSwiperが自動計算（fitモード） */
    display: flex;
}

/* ---------- 間取り一覧 ---------- */
.plans {
    background: var(--c-gray-l);
    padding: 96px 0 80px;
}
.plans__grid {
    width: min(1300px, 94%);
    margin: 0 auto;
    display: block;
}
.plans__grid .swiper {
    padding: 0 0 50px;
}
.plans .plan-card {
    padding: 32px 0 36px;
}

/* ---------- 注意書き ---------- */
.notes {
    width: min(1200px, 94%);
    margin: 0 auto;
    padding: 48px 0 64px;
    font-size: 11px;
    line-height: 1.9;
    color: #444;
    letter-spacing: .03em;
}
.notes li {
    text-indent: -1em;
    padding-left: 1em;
}

/* ---------- エントリーセクション ---------- */
.entry {
    background: var(--c-black);
    color: #fff;
    padding: 88px 0 96px;
    text-align: center;
}
.entry__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: min(1000px, 92%);
    margin-inline: auto;
}
.entry-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: min(460px, 86%);
    min-height: 58px;
    position: relative;
    font-family: var(--font-en);
    letter-spacing: .4em;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, .55);
    outline: 1px solid rgba(255, 255, 255, .25);
    outline-offset: -5px;
    transition: opacity .25s;
}
.entry-btn:hover {
    opacity: .85;
}
.entry-btn::after {
    content: "\00BB";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    letter-spacing: 0;
}
.entry-btn--red {
    background: var(--c-red);
}
.entry-btn--gold {
    background: var(--c-gold);
}
.entry-btn--gold small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .1em;
    margin-top: 2px;
}
.entry__lead {
    margin: 56px 0 32px;
    font-size: 14.5px;
    font-weight: 700;
}
.entry__thumbs {
    width: min(1000px, 92%);
    margin: 0 auto 72px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.entry__thumb .media {
    aspect-ratio: 16/10;
}
.entry__thumb figcaption {
    font-size: 12px;
    margin-top: 10px;
    line-height: 1.6;
}
.entry__movie-lead {
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 32px;
}
.movie-banner {
    width: min(640px, 88%);
    margin: 0 auto;
    display: block;
    position: relative;
}
.movie-banner .media {
    aspect-ratio: 819/505;
}
.movie-banner__title {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-en);
    text-shadow: 0 1px 14px rgba(0, 0, 0, .4);
}
.movie-banner__title .l1 {
    font-size: clamp(30px, 3.4vw, 44px);
    letter-spacing: .18em;
}
.movie-banner__title .l2 {
    font-size: clamp(26px, 3vw, 40px);
    letter-spacing: .14em;
}
.movie-banner__title .l2 i {
    font-style: italic;
    margin-right: .4em;
    font-size: .8em;
}
.movie-banner__view {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: rgba(20, 16, 12, .85);
    color: #fff;
    font-family: var(--font-en);
    font-size: 15px;
    letter-spacing: .4em;
    padding: 12px 0;
    text-align: center;
}
footer.footer .bnr-wrap .banner,
footer.footer .bnr-wrap .btn_box {
    display: none;
}

/* ---------- SP ---------- */
@media (max-width: 750px) {
    body {
        font-size: 14px;
    }
    .hero {
        min-height: 560px;
    }
    .hero--short {
        min-height: unset;
    }
    .hero h1,
    .hero .hero__title {
        font-size: 9vw;
    }
    .hero__inner {
        width: 85%;
    }
    .hero__lead {
        font-size: max( 12px,2.7vw);
        line-height: 2.3;
    }
    .access__lead02 {
        margin: 10px 0 0;
    }
    .hero__lead.landscape__lead {
        font-size: max( 20px,5vw);
        line-height: 2.3;
    }
    .hero.access {

    }
    .hero .media-bg{
        aspect-ratio: 698/ 547;
        width: 150%;
        top: 45%;
        transform: translateY(-50%);
        left: -15%;
    }
    .hero .media-bg img {
        height:  100%;
        object-fit: cover%;
    }
    .hero .hero__title.access__title {
        font-size: 6vw;
    }
    #access .hero__inner {
        padding: 50px 0 0;
    }
    .access__lead {
        font-size: 4.8vw;
        margin-top: max(160px, 16vh);
        line-height: 1.25;
    }
    .access__lead + .slp-btn {
    }
    .floating-entry {
        padding: 12px 44px;
        font-size: 14px;
        bottom: 60px;
    }
    .section-lead {
        padding: 56px 7% 40px;
    }
    .living {
        grid-template-columns: 1fr;
    }
    .living__media {
        min-height: 300px;
    }
    .living.js-slider.is-swiper-active{
    }
    .living.js-slider.is-swiper-active .swiper-wrapper{
    }
    .living.js-slider.is-swiper-active .swiper-slide{
    }
    .living.js-slider.is-swiper-active .swiper-slide.living__media {
        aspect-ratio: 612 / 870;
    }
    .living.js-slider.is-swiper-active .swiper-slide.plan-card {
    }
    .service-card {
        padding: 40px 7% 48px;
        margin-bottom: 72px;
    }
    .service-card__body {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .service-card__name {
        font-size: 19px;
        text-align: center;
    }
    .service-card .slp-btn{
        display: block;
        width: 161px;
        margin: 0 auto;
        text-align: center;
    }
    .service-card__aside{
        display: block;
        margin: 10px 0 0;
        text-align: center;
    }
    .hero--short .structure{
        margin: 10vw 0 0;
    }
    .hero--short .structure + .hero__inner{
        top: 10vw;
    }
    /* .slider .swiper-slide の幅はSwiperが自動計算（fitモード）。
       表示枚数を変えたい場合は HTML の data-min-slide で調整する。 */
    .plans__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        width: 88%;
    }
    .plans__grid .swiper {
        width: 100%;
        padding: 0 3%;
    }
    .entry__buttons {
        flex-direction: column;
    }
    .entry__thumbs {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-nav__grid {
        grid-template-columns: repeat(2, 1fr);
        width: min(420px, 86%);
    }
}
/* 非起動時：全スライドを横並びで表示。
   コンテナ幅は各セクション本来の指定（.slider / .living / .plans__grid）を
   そのまま使うため、ここで width を上書きしないこと。
   gapはSwiperのspaceBetween（PC32px / SP16px）と揃える。 */
.js-slider:not(.is-swiper-active) .swiper-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 32px;
}
@media (max-width: 860px) {
    .js-slider:not(.is-swiper-active) .swiper-wrapper {
        gap: 16px;
    }
}
/* fitモードのスライドは非起動時も均等配分にして、起動時と見た目を揃える */
.slider.js-slider:not(.is-swiper-active) .swiper-slide,
.plans__grid.js-slider:not(.is-swiper-active) .swiper-slide {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
}
/* 非起動時はナビ・ページネーションも不要なので非表示に */
.js-slider:not(.is-swiper-active) .swiper-button-next,
.js-slider:not(.is-swiper-active) .swiper-button-prev,
.js-slider:not(.is-swiper-active) .swiper-pagination {
    display: none;
}

/* ---------- 間取りカード：画像拡大モーダル ---------- */
.plan-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.plan-modal.is-visible {
    display: flex;
}
.plan-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.25s ease;
    cursor: pointer;
}
.plan-modal.is-open .plan-modal__overlay {
    opacity: 1;
}
.plan-modal__inner {
    position: relative;
    max-width: min(90vw, 700px);
    max-height: 90vh;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.plan-modal.is-open .plan-modal__inner {
    transform: scale(1);
    opacity: 1;
}
.plan-modal__img {
    display: block;
    padding: 20px;
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}
.plan-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 24px;
    line-height: 0.1;
    cursor: pointer;
}
body.plan-modal-open {
    overflow: hidden;
}
/* ---------- swiper-slide の時差付きフェードアップ ---------- */
.swiper-wrapper > .swiper-slide.m_down:nth-child(1) { transition-delay: 0s; }
.swiper-wrapper > .swiper-slide.m_down:nth-child(2) { transition-delay: 0.15s; }
.swiper-wrapper > .swiper-slide.m_down:nth-child(3) { transition-delay: 0.3s; }
.swiper-wrapper > .swiper-slide.m_down:nth-child(4) { transition-delay: 0.45s; }
.entry__thumbs > .entry__thumb.m_down:nth-child(1) { transition-delay: 0s; }
.entry__thumbs > .entry__thumb.m_down:nth-child(2) { transition-delay: 0.15s; }
.entry__thumbs > .entry__thumb.m_down:nth-child(3) { transition-delay: 0.3s; }
.entry__thumbs > .entry__thumb.m_down:nth-child(4) { transition-delay: 0.45s; }

/* ---------- hero__title（メインビジュアル以外）：はっきりしたフェードアップ ---------- */
.hero-title-pop {
    opacity: 0;
    transform: translateY(80px) scale(0.96);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-title-pop.hero-title-pop_on {
    opacity: 1;
    transform: translateY(0) scale(1);
}
