/* =========================================================
   レイアウト 10 パターン
   html の data-layout="..." で切り替えます。
   01 classic   … base.css のまま（ここには書かない）
   02 cinema    03 split    04 editorial  05 gallery  06 frame
   07 vertical  08 minimal  09 card       10 bold
   ========================================================= */

/* 写真の上に文字を重ねない形で使う共通の部品 */
html:is([data-layout="split"], [data-layout="editorial"], [data-layout="gallery"], [data-layout="minimal"], [data-layout="card"]) .hero { color: var(--ink); }
html:is([data-layout="split"], [data-layout="editorial"], [data-layout="gallery"], [data-layout="minimal"], [data-layout="card"]) .hero-media { position: relative; inset: auto; z-index: 0; }
html:is([data-layout="split"], [data-layout="editorial"], [data-layout="gallery"], [data-layout="minimal"], [data-layout="card"]) .hero-media::after { display: none; }
html:is([data-layout="split"], [data-layout="editorial"], [data-layout="gallery"], [data-layout="minimal"], [data-layout="card"]) .hero-price b { color: var(--accent-text); }
html:is([data-layout="split"], [data-layout="editorial"], [data-layout="gallery"], [data-layout="minimal"], [data-layout="card"]) .tier-label::before { display: none; }
html:is([data-layout="split"], [data-layout="editorial"], [data-layout="gallery"], [data-layout="minimal"], [data-layout="card"]) .tier-label::after { background: var(--accent); }
html:is([data-layout="split"], [data-layout="editorial"], [data-layout="gallery"], [data-layout="minimal"], [data-layout="card"]) .site-head:not(.is-scrolled) { color: var(--ink); }

/* 写真の上にキャプションを重ねる（雑誌風・ギャラリー） */
html:is([data-layout="editorial"], [data-layout="gallery"]) .gallery-grid img { height: 100%; aspect-ratio: auto; }
html:is([data-layout="editorial"], [data-layout="gallery"]) .gallery-grid figcaption {
  position: absolute; left: 14px; bottom: 12px; margin: 0; color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / .5);
}


/* ===================== 02 シネマ ===================== */
html[data-layout="cinema"] {
  --ink: var(--on-base); --paper: var(--base);
  --soft: color-mix(in srgb, var(--base) 90%, #fff);
  --line: color-mix(in srgb, var(--on-base) 16%, transparent);
  --muted: color-mix(in srgb, var(--on-base) 64%, var(--base));
  --accent-text: var(--accent-on-base);
  --sec-pad: clamp(110px, 14vw, 210px);
}
html[data-layout="cinema"] body { letter-spacing: .06em; }
html[data-layout="cinema"] .site-head.is-scrolled { background: color-mix(in srgb, var(--base) 86%, transparent); }
html[data-layout="cinema"] .hero { display: block; min-height: auto; padding-top: 110px; color: var(--on-base); }
html[data-layout="cinema"] .hero-media { position: relative; inset: auto; z-index: 0; margin: 0 clamp(16px, 4vw, 56px); }
html[data-layout="cinema"] .hero-media img:first-child { height: auto; aspect-ratio: 21 / 9; }
html[data-layout="cinema"] .hero-media::after { background: linear-gradient(180deg, transparent 55%, var(--base)); }
html[data-layout="cinema"] .hero-body { position: relative; margin: -40px auto 0; padding: 0 24px 40px; }
html[data-layout="cinema"] .hero-title { font-size: clamp(3.4rem, 5.4vw, 7.4rem); letter-spacing: .2em; font-weight: 400; }
html[data-layout="cinema"] .hero-price b { color: var(--accent-on-base); }
html[data-layout="cinema"] .tier-label::before, html[data-layout="cinema"] .tier-label::after { background: var(--accent-on-base); }
html[data-layout="cinema"] .story-fig img { aspect-ratio: 3 / 4; }
html[data-layout="cinema"] .gallery-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
html[data-layout="cinema"] .gallery-grid figure:nth-child(3n+1) { grid-column: span 2; }
html[data-layout="cinema"] .gallery-grid figure:nth-child(3n+1) img { aspect-ratio: 21 / 9; }
html[data-layout="cinema"] .gallery-grid figcaption { position: absolute; left: 18px; bottom: 14px; color: #fff; }
html[data-layout="cinema"] .keyfacts { background: transparent; border-block: 1px solid var(--accent-on-base); }
html[data-layout="cinema"] .sec--contact { background: color-mix(in srgb, var(--base) 78%, #000); }
html[data-layout="cinema"] .site-foot { background: color-mix(in srgb, var(--base) 65%, #000); }


/* ===================== 03 スプリット ===================== */
html[data-layout="split"] .hero { display: grid; grid-template-columns: minmax(360px, 5fr) 7fr; place-items: stretch; min-height: var(--vh100); }
html[data-layout="split"] .hero-media { order: 2; }
html[data-layout="split"] .hero-body {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: none;
  padding: 140px clamp(28px, 4vw, 72px) 80px; background: var(--pale); text-align: left;
}
html[data-layout="split"] .hero-lead { margin-left: 0; }
html[data-layout="split"] .hero-price { justify-content: flex-start; }
html[data-layout="split"] .site-head:not(.is-scrolled) { background: transparent; } /* スクロール後は通常どおり地の色を付ける */
html[data-layout="split"] .site-head .site-nav, html[data-layout="split"] .site-head .head-cta { color: #fff; }
html[data-layout="split"] .site-head.is-scrolled .site-nav, html[data-layout="split"] .site-head.is-scrolled .head-cta { color: var(--ink); }
html[data-layout="split"] .sec { display: grid; grid-template-columns: minmax(200px, 1fr) 3fr; gap: clamp(32px, 5vw, 88px); padding-inline: max(24px, calc((100% - var(--w)) / 2)); }
html[data-layout="split"] .sec > * { max-width: none; margin: 0; }
html[data-layout="split"] .sec-title { font-size: clamp(2rem, 2.1vw, 2.7rem); }
html[data-layout="split"] .sec-head { position: sticky; top: 110px; align-self: start; text-align: left; }
html[data-layout="split"] .sec-head::after { width: 44px; height: 1px; margin: 3.6rem 0 0; }
html[data-layout="split"] .story-grid { grid-template-columns: 1fr; }
html[data-layout="split"] .story-fig img { aspect-ratio: 16 / 10; }
html[data-layout="split"] .points { grid-template-columns: 1fr; gap: 0; }
html[data-layout="split"] .point { display: grid; grid-template-columns: 70px 1fr; column-gap: 2.4rem; padding-block: 3.6rem; }
html[data-layout="split"] .point-no { grid-row: span 2; }
html[data-layout="split"] .point h3 { margin-top: 0; }
html[data-layout="split"] .gallery-grid { grid-template-columns: 1fr 1fr; }
html[data-layout="split"] .sec--contact { display: block; }
html[data-layout="split"] .sec--contact .sec-head { position: static; text-align: center; }
html[data-layout="split"] .sec--contact .sec-head::after { margin-inline: auto; }
@media (max-width: 860px) {
  html[data-layout="split"] .hero { grid-template-columns: 1fr; }
  html[data-layout="split"] .hero-media { order: 0; height: calc(var(--vh100) * .56); }
  html[data-layout="split"] .hero-body { padding-top: 48px; }
  html[data-layout="split"] .sec { grid-template-columns: 1fr; }
  html[data-layout="split"] .sec-head { position: static; }
}


/* ===================== 04 雑誌風 ===================== */
html[data-layout="editorial"] main { counter-reset: sec; }
html[data-layout="editorial"] .sec { counter-increment: sec; }
html[data-layout="editorial"] .hero { display: grid; grid-template-columns: 7fr 5fr; place-items: stretch; min-height: var(--vh100); padding-top: 96px; }
html[data-layout="editorial"] .hero-media { margin: 0 0 56px clamp(16px, 4vw, 48px); }
html[data-layout="editorial"] .hero-body {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; max-width: none;
  margin-bottom: 56px; padding: 32px clamp(24px, 4vw, 56px) 0; border-left: 1px solid var(--line); text-align: left;
}
html[data-layout="editorial"] .hero-title { font-size: clamp(3.2rem, 4.2vw, 5.8rem); line-height: 1.3; }
html[data-layout="editorial"] .hero-lead { margin-left: 0; }
html[data-layout="editorial"] .hero-price { align-self: stretch; justify-content: space-between; padding: 2.6rem .4rem; border-block: 1px solid var(--ink); }
html[data-layout="editorial"] .sec-head {
  display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 32px;
  padding-bottom: 4rem; border-bottom: 1px solid var(--ink); text-align: left;
}
html[data-layout="editorial"] .sec-head::before { content: counter(sec, decimal-leading-zero); grid-row: span 2; font: 300 clamp(7.2rem, 10vw, 14.8rem)/.78 var(--f-en); color: var(--accent-text); }
html[data-layout="editorial"] .sec-head::after { display: none; }
html[data-layout="editorial"] .sec-en { margin-bottom: 10px; }
html[data-layout="editorial"] .story-grid { grid-template-columns: 1fr; }
html[data-layout="editorial"] .story-fig { order: -1; }
html[data-layout="editorial"] .story-fig img { aspect-ratio: 21 / 9; }
html[data-layout="editorial"] .story-text { column-count: 2; column-gap: 48px; }
html[data-layout="editorial"] .story-text p:first-child::first-letter { float: left; margin: 8px 12px 0 0; font: 500 6.4rem/1 var(--f-head); color: var(--accent-text); }
html[data-layout="editorial"] .sec--gallery { background: var(--paper); }
html[data-layout="editorial"] .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 10px; }
html[data-layout="editorial"] .gallery-grid figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
html[data-layout="editorial"] .gallery-grid figure:is(:nth-child(4), :nth-child(5), :nth-child(6)) { grid-column: span 2; }
html[data-layout="editorial"] .keyfacts { background: transparent; color: var(--ink); border-top: 4px solid var(--ink); border-bottom: 1px solid var(--ink); }
html[data-layout="editorial"] .keyfact { border-color: var(--line); }
html[data-layout="editorial"] .keyfact:first-child dd { color: var(--accent-text); }
html[data-layout="editorial"] .sec--contact .sec-head { border-color: var(--on-base); }
html[data-layout="editorial"] .sec--contact .sec-head::before { color: var(--accent-on-base); }
@media (max-width: 860px) {
  html[data-layout="editorial"] .hero { grid-template-columns: 1fr; }
  html[data-layout="editorial"] .hero-media { margin: 0 16px; height: calc(var(--vh100) * .50); }
  html[data-layout="editorial"] .hero-body { border-left: 0; margin-top: 24px; }
  html[data-layout="editorial"] .story-text { column-count: 1; }
  html[data-layout="editorial"] .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
}


/* ===================== 05 ギャラリー ===================== */
html[data-layout="gallery"] .hero { display: block; min-height: auto; padding: 88px 10px 0; }
html[data-layout="gallery"] .hero-media { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: min(calc(var(--vh100) * .76), 720px); }
html[data-layout="gallery"] .hero-media img { display: block; height: 100%; }
html[data-layout="gallery"] .hero-media img:first-child { grid-row: span 2; }
html[data-layout="gallery"] .hero-body {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 56px;
  max-width: var(--w); margin: 0 auto; padding: 64px 24px 16px; text-align: left;
}
html[data-layout="gallery"] .hero-body > * { grid-column: 1; }
html[data-layout="gallery"] .hero-price { grid-column: 2; grid-row: 3; margin: 0 0 28px; }
html[data-layout="gallery"] .btn { grid-column: 2; grid-row: 4; align-self: start; }
html[data-layout="gallery"] .hero-lead { margin: 0; }
html[data-layout="gallery"] .sec-head { display: flex; align-items: baseline; gap: 4rem; text-align: left; }
html[data-layout="gallery"] .sec-head::after { flex: 1; width: auto; height: 1px; margin: 0; }
html[data-layout="gallery"] .sec--gallery { padding-inline: 10px; background: var(--paper); }
html[data-layout="gallery"] .sec--gallery > .sec-head { max-width: var(--w); }
html[data-layout="gallery"] .sec--gallery > .sec-body { max-width: none; }
html[data-layout="gallery"] .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 26vw; grid-auto-flow: dense; gap: 10px; }
html[data-layout="gallery"] .gallery-grid figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
html[data-layout="gallery"] .gallery-grid figure:nth-child(6) { grid-column: 1 / -1; }
html[data-layout="gallery"] .hero-media img:first-child { animation: none; }
html[data-layout="gallery"] .sec--contact .sec-head { justify-content: center; }
html[data-layout="gallery"] .sec--contact .sec-head::after { display: none; }
@media (max-width: 860px) {
  html[data-layout="gallery"] .hero-media { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: calc(var(--vh100) * .70); }
  html[data-layout="gallery"] .hero-media img:first-child { grid-row: auto; grid-column: span 2; }
  html[data-layout="gallery"] .hero-body { grid-template-columns: 1fr; }
  html[data-layout="gallery"] .hero-price, html[data-layout="gallery"] .btn { grid-column: 1; grid-row: auto; }
  html[data-layout="gallery"] .hero-lead { margin-bottom: 24px; }
  html[data-layout="gallery"] .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 40vw; }
}


/* ===================== 06 額縁 ===================== */
html[data-layout="frame"] { --frame: 14px; }
html[data-layout="frame"] body { padding: var(--frame); background: var(--base); }
html[data-layout="frame"] .page { position: relative; outline: 1px solid var(--accent); outline-offset: -9px; }
html[data-layout="frame"] .site-head { inset: var(--frame) var(--frame) auto; }
html[data-layout="frame"] .hero { min-height: calc(var(--vh100) - var(--frame) * 2); margin: 0; }
html[data-layout="frame"] .hero-media { inset: 18px; }
html[data-layout="frame"] .hero-body {
  margin: 140px 24px 90px; padding: clamp(40px, 5vw, 64px) clamp(24px, 5vw, 80px);
  border: 1px solid color-mix(in srgb, var(--accent-on-photo) 70%, transparent);
  outline: 1px solid color-mix(in srgb, #fff 30%, transparent); outline-offset: 6px;
  background: color-mix(in srgb, var(--shade) 38%, transparent);
}
html[data-layout="frame"] .sec-en { display: flex; align-items: center; justify-content: center; gap: 2.8rem; }
html[data-layout="frame"] .sec-en::before, html[data-layout="frame"] .sec-en::after { content: ""; width: 48px; height: 1px; background: currentColor; }
html[data-layout="frame"] .sec-head::after { content: "◆"; width: auto; height: auto; margin-top: 22px; background: none; font-size: 1.6rem; line-height: 1; color: var(--accent-text); }
html[data-layout="frame"] .sec--contact .sec-head::after { color: var(--accent-on-base); background: none; }
html[data-layout="frame"] .story-fig { padding: 12px; border: 1px solid var(--accent); }
html[data-layout="frame"] .gallery-grid figure { padding: 10px 10px 14px; background: var(--paper); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
html[data-layout="frame"] .gallery-grid figcaption { text-align: center; }
html[data-layout="frame"] .keyfacts { outline: 1px solid var(--accent-on-base); outline-offset: -8px; }
html[data-layout="frame"] .spec-table tr:first-child > * { border-top: 3px double var(--accent); }
html[data-layout="frame"] .spec-table tr:last-child > * { border-bottom: 3px double var(--accent); }
html[data-layout="frame"] .access-list li { border-color: var(--accent); outline: 1px solid var(--line); outline-offset: 6px; }
html[data-layout="frame"] .btn { background: transparent; color: inherit; border-color: var(--accent-on-photo); }
html[data-layout="frame"] .sec--contact .btn { border-color: var(--accent-on-base); }
html[data-layout="frame"] .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
html[data-layout="frame"] .site-foot { background: var(--base); }
@media (max-width: 860px) {
  html[data-layout="frame"] { --frame: 8px; }
  html[data-layout="frame"] .hero-media { inset: 8px; }
}


/* ===================== 07 縦書き和風 ===================== */
html[data-layout="vertical"] { --paper: color-mix(in srgb, var(--pale) 62%, #fff); --soft: var(--pale); }
html[data-layout="vertical"] .hero { place-items: center end; }
html[data-layout="vertical"] .hero-media::after {
  background: linear-gradient(270deg, color-mix(in srgb, var(--shade) 82%, transparent) 0%, color-mix(in srgb, var(--shade) 68%, transparent) 45%, color-mix(in srgb, var(--shade) 15%, transparent) 85%);
}
html[data-layout="vertical"] .hero-body {
  writing-mode: vertical-rl; height: min(calc(var(--vh100) * .78), 660px); max-width: none;
  margin-right: clamp(20px, 7vw, 130px); padding: 0; text-align: start;
}
html[data-layout="vertical"] .tier-label { margin: 0 0 0 28px; padding: 2rem 1.4rem; border: 1px solid var(--accent-on-photo); color: var(--accent-on-photo); letter-spacing: .3em; }
html[data-layout="vertical"] .tier-label::before, html[data-layout="vertical"] .tier-label::after { display: none; }
html[data-layout="vertical"] .hero-en { margin: 0 0 0 18px; font-size: 1.6rem; }
html[data-layout="vertical"] .hero-title { margin: 0 0 0 36px; font-size: clamp(3rem, 4vw, 5.2rem); letter-spacing: .26em; line-height: 1.5; }
html[data-layout="vertical"] .hero-lead { max-width: none; max-height: 24em; margin: 0 0 0 44px; line-height: 2.3; }
html[data-layout="vertical"] .hero-price { display: block; margin: 0 0 0 36px; }
html[data-layout="vertical"] .hero-price span { margin-bottom: 14px; display: inline-block; }
html[data-layout="vertical"] .hero-price b { display: inline-block; letter-spacing: .14em; line-height: 1.2; }
html[data-layout="vertical"] .hero-price b.price-num { display: none; } /* 上の .hero-price b より強く指定する */
html[data-layout="vertical"] .price-kanji { display: inline-block; }
html[data-layout="vertical"] .btn { padding: 30px 16px; }
html[data-layout="vertical"] .btn::after { width: 1px; height: 24px; }
html[data-layout="vertical"] .btn:hover::after { width: 1px; height: 36px; }
html[data-layout="vertical"] .sec { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 100px); padding-inline: max(24px, calc((100% - var(--w)) / 2)); }
html[data-layout="vertical"] .sec > * { max-width: none; margin: 0; }
html[data-layout="vertical"] .sec-head {
  grid-column: 2; grid-row: 1; position: sticky; top: 110px; align-self: start;
  writing-mode: vertical-rl; max-height: calc(var(--vh100) * .82); padding-left: 3.6rem; border-left: 1px solid var(--accent); text-align: start;
}
html[data-layout="vertical"] .sec-head::after { display: none; }
html[data-layout="vertical"] .sec-en { margin: 0 0 0 14px; font-size: 1.6rem; }
html[data-layout="vertical"] .sec-title { font-size: clamp(2.2rem, 2.4vw, 3rem); letter-spacing: .24em; }
html[data-layout="vertical"] .sec-body { grid-column: 1; grid-row: 1; }
html[data-layout="vertical"] .points { counter-reset: pt; }
html[data-layout="vertical"] .point { counter-increment: pt; border-top: 0; border-right: 1px solid var(--line); padding: 0 3.2rem 0 0; }
html[data-layout="vertical"] .point-no { font-size: 0; }
html[data-layout="vertical"] .point-no::before { content: counter(pt, cjk-decimal); font: 500 3rem/1 var(--f-serif); color: var(--accent-text); }
html[data-layout="vertical"] .access-min b { font-family: var(--f-serif); font-size: 3.6rem; }
html[data-layout="vertical"] .gallery-grid figcaption { font-family: var(--f-serif); }
html[data-layout="vertical"] .sec--contact .sec-head { border-color: var(--accent-on-base); }
@media (max-width: 860px) {
  html[data-layout="vertical"] .hero { place-items: center; }
  html[data-layout="vertical"] .hero-body { height: calc(var(--vh100) * .66); margin: 90px auto 40px; }
  html[data-layout="vertical"] .hero-lead { display: none; }
  html[data-layout="vertical"] .sec { grid-template-columns: 1fr auto; gap: 20px; }
  html[data-layout="vertical"] .sec-head { position: static; padding-left: 2rem; }
}


/* ===================== 08 ミニマル ===================== */
html[data-layout="minimal"] { --f-head: var(--f-sans); --paper: #fff; --soft: #fff; --sec-pad: clamp(72px, 9vw, 128px); }
html[data-layout="minimal"] body { font-weight: 300; }
html[data-layout="minimal"] .site-head.is-scrolled { box-shadow: none; }
html[data-layout="minimal"] .hero { display: flex; flex-direction: column; min-height: auto; padding: 170px clamp(20px, 5vw, 64px) 0; }
html[data-layout="minimal"] .hero-body { width: 100%; }
html[data-layout="minimal"] .hero-media { order: 2; width: 100%; }
html[data-layout="minimal"] .hero-body {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 0 72px;
  max-width: var(--w); margin: 0 auto; padding: 0 0 64px; text-align: left;
}
html[data-layout="minimal"] .hero-body > * { grid-column: 1; }
html[data-layout="minimal"] .hero-lead, html[data-layout="minimal"] .hero-price, html[data-layout="minimal"] .btn { grid-column: 2; }
html[data-layout="minimal"] .hero-lead { grid-row: 1 / span 3; align-self: end; margin: 0; font-size: 1.6rem; }
html[data-layout="minimal"] .hero-price { grid-row: 4; justify-content: flex-start; margin: 32px 0 0; }
html[data-layout="minimal"] .btn { grid-row: 5; justify-self: start; }
html[data-layout="minimal"] .tier-label { font-family: var(--f-sans); font-size: 1.6rem; letter-spacing: .3em; }
html[data-layout="minimal"] .tier-label::after { width: 6px; height: 6px; border-radius: 50%; }
html[data-layout="minimal"] .hero-en { font-family: var(--f-sans); font-size: 1.6rem; letter-spacing: .3em; }
html[data-layout="minimal"] .hero-title { margin: 0; font-weight: 300; font-size: clamp(2.8rem, 3.4vw, 4.4rem); letter-spacing: .08em; }
html[data-layout="minimal"] .hero-price b { font-family: var(--f-sans); font-weight: 300; color: var(--ink); }
html[data-layout="minimal"] .hero-media { max-width: var(--w); margin: 0 auto; }
html[data-layout="minimal"] .hero-media img:first-child { height: auto; aspect-ratio: 16 / 9; }
html[data-layout="minimal"] .btn { padding: 1.2rem 0 1.6rem; background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid var(--accent); }
html[data-layout="minimal"] .head-cta { border-width: 0 0 1px; padding-inline: 0; }
html[data-layout="minimal"] .sec-head { display: flex; align-items: baseline; gap: 2.8rem; padding-top: 3.2rem; border-top: 1px solid var(--ink); text-align: left; }
html[data-layout="minimal"] .sec-head::after { display: none; }
html[data-layout="minimal"] .sec-en { order: 2; margin: 0 0 0 auto; font-family: var(--f-sans); font-size: 1.6rem; letter-spacing: .3em; }
html[data-layout="minimal"] .sec-title { font-size: 1.8rem; font-weight: 400; letter-spacing: .12em; }
html[data-layout="minimal"] .point { border-top: 0; padding-top: 0; }
html[data-layout="minimal"] .point-no { font-family: var(--f-sans); font-size: 1.6rem; font-weight: 400; }
html[data-layout="minimal"] .point h3 { font-size: 1.6rem; font-weight: 500; }
html[data-layout="minimal"] .gallery-grid { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
html[data-layout="minimal"] .keyfacts { background: transparent; color: var(--ink); border-block: 1px solid var(--line); }
html[data-layout="minimal"] .keyfact { border-color: var(--line); }
html[data-layout="minimal"] .keyfact dt { font-family: var(--f-sans); font-size: 1.6rem; }
html[data-layout="minimal"] .keyfact dd { font-family: var(--f-sans); font-weight: 300; font-size: 2rem; }
html[data-layout="minimal"] .keyfact:first-child dd { color: var(--ink); }
html[data-layout="minimal"] .access-list li { border: 0; border-top: 1px solid var(--line); align-items: flex-start; text-align: left; padding: 3.2rem 0 2rem; }
html[data-layout="minimal"] .access-st { font-family: var(--f-sans); font-weight: 400; font-size: 1.6rem; }
html[data-layout="minimal"] .access-min b { font-family: var(--f-sans); font-weight: 200; font-size: 3.6rem; color: var(--ink); }
html[data-layout="minimal"] .sec--contact { background: var(--paper); color: var(--ink); --line: color-mix(in srgb, var(--ink) 16%, transparent); }
html[data-layout="minimal"] .sec--contact .sec-en { color: var(--accent-text); }
html[data-layout="minimal"] .contact-tel { font-family: var(--f-sans); font-weight: 200; }
html[data-layout="minimal"] .contact-actions { gap: 40px; }
html[data-layout="minimal"] .site-foot { background: #fff; color: var(--muted); border-top: 1px solid var(--line); }
html[data-layout="minimal"] .foot-brand { color: var(--ink); }
@media (max-width: 860px) {
  html[data-layout="minimal"] .hero { padding-top: 120px; }
  html[data-layout="minimal"] .hero-body { grid-template-columns: 1fr; }
  html[data-layout="minimal"] .hero-body > * { grid-column: 1; grid-row: auto; }
  html[data-layout="minimal"] .hero-lead { margin-top: 24px; }
  html[data-layout="minimal"] .gallery-grid { grid-template-columns: 1fr; gap: 24px; }
}


/* ===================== 09 カード ===================== */
html[data-layout="card"] {
  --f-head: "Zen Kaku Gothic New", var(--f-sans); --paper: var(--pale); --soft: #fff; --card: #fff;
  --radius: 999px; --radius-img: 20px; --radius-box: 20px; --sec-pad: clamp(56px, 7vw, 96px);
}
html[data-layout="card"] body { letter-spacing: .03em; }
html[data-layout="card"] .site-head, html[data-layout="card"] .site-head.is-scrolled {
  inset: 12px 12px auto; height: 64px; padding: 0 12px 0 28px; border-radius: 999px;
  background: color-mix(in srgb, #fff 92%, transparent); color: var(--ink); box-shadow: 0 6px 24px rgb(0 0 0 / .08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
html[data-layout="card"] .head-cta { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
html[data-layout="card"] .hero { display: grid; grid-template-columns: 1.25fr 1fr; place-items: stretch; gap: 16px; min-height: auto; padding: 92px 16px 16px; }
html[data-layout="card"] .hero-media { min-height: 560px; border-radius: 28px; overflow: hidden; }
html[data-layout="card"] .hero-media img:first-child { position: absolute; inset: 0; }
html[data-layout="card"] .hero-body {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: none;
  padding: 48px clamp(24px, 4vw, 52px); background: var(--card); border-radius: 28px; text-align: left;
}
html[data-layout="card"] .tier-label { padding: 9px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-family: var(--f-sans); font-size: 1.6rem; letter-spacing: .2em; }
html[data-layout="card"] .tier-label::after { display: none; }
html[data-layout="card"] .hero-en { font-family: var(--f-sans); font-size: 1.6rem; letter-spacing: .2em; color: var(--muted); }
html[data-layout="card"] .hero-title { font-weight: 700; font-size: clamp(2.8rem, 3.2vw, 4.2rem); letter-spacing: .06em; }
html[data-layout="card"] .hero-lead { margin-left: 0; }
html[data-layout="card"] .hero-price { align-self: stretch; justify-content: space-between; padding: 2.4rem 2.8rem; border-radius: 16px; background: var(--pale); }
html[data-layout="card"] .hero-price b { font-weight: 700; }
html[data-layout="card"] .btn { font-weight: 700; letter-spacing: .12em; }
html[data-layout="card"] .sec { margin: 0 16px 16px; padding-inline: clamp(20px, 5vw, 64px); background: var(--card); border-radius: 28px; }
html[data-layout="card"] .sec-head::after { display: none; }
html[data-layout="card"] .sec-en { display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--pale); font-family: var(--f-sans); font-size: 1.6rem; letter-spacing: .24em; }
html[data-layout="card"] .sec-title { font-weight: 700; letter-spacing: .06em; }
html[data-layout="card"] .story-grid { align-items: stretch; }
html[data-layout="card"] .story-fig img { height: 100%; aspect-ratio: 4 / 3; }
html[data-layout="card"] .point { padding: 3.6rem 3.2rem; border: 0; border-radius: 20px; background: var(--pale); }
html[data-layout="card"] .point-no { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 1.6rem/1 var(--f-sans); }
html[data-layout="card"] .point h3 { font-weight: 700; }
html[data-layout="card"] .sec--gallery { background: var(--card); }
html[data-layout="card"] .keyfacts { gap: 10px; background: transparent; color: var(--ink); }
html[data-layout="card"] .keyfact { border: 0 !important; border-radius: 16px; background: var(--pale); }
html[data-layout="card"] .keyfact dt { font-family: var(--f-sans); color: var(--muted); opacity: 1; }
html[data-layout="card"] .keyfact dd { font-weight: 700; }
html[data-layout="card"] .keyfact:first-child { background: var(--base); color: var(--on-base); }
html[data-layout="card"] .keyfact:first-child dt { color: inherit; opacity: .75; }
html[data-layout="card"] .spec-table th, html[data-layout="card"] .spec-table td { border-color: var(--pale); }
html[data-layout="card"] .plan-card { padding: 4.4rem 4rem; border-radius: 20px; background: var(--pale); }
html[data-layout="card"] .plan-card h3 { font-weight: 700; }
html[data-layout="card"] .check-list li { border-color: color-mix(in srgb, var(--ink) 10%, transparent); }
html[data-layout="card"] .check-list li::before { top: 22px; width: 10px; height: 10px; border-radius: 50%; }
html[data-layout="card"] .access-list li { border: 0; background: var(--pale); }
html[data-layout="card"] .access-st { font-weight: 700; }
html[data-layout="card"] .access-min b { font-family: var(--f-sans); font-weight: 700; font-size: 3.8rem; }
html[data-layout="card"] .sec--contact { background: var(--base); }
html[data-layout="card"] .sec--contact .sec-en { background: color-mix(in srgb, var(--on-base) 12%, transparent); }
html[data-layout="card"] .contact-tel { font-family: var(--f-sans); font-weight: 700; }
html[data-layout="card"] .site-foot { background: transparent; color: var(--muted); }
html[data-layout="card"] .foot-brand { color: var(--ink); }
@media (max-width: 860px) {
  html[data-layout="card"] .hero { grid-template-columns: 1fr; }
  html[data-layout="card"] .hero-media { min-height: calc(var(--vh100) * .52); }
  html[data-layout="card"] .sec { margin-inline: 10px; }
}


/* ===================== 10 大胆 ===================== */
html[data-layout="bold"] { --f-head: var(--f-sans); }
html[data-layout="bold"] .hero { place-items: end start; }
html[data-layout="bold"] .hero-media::after { background: linear-gradient(0deg, color-mix(in srgb, var(--shade) 92%, transparent) 0%, color-mix(in srgb, var(--shade) 30%, transparent) 60%, color-mix(in srgb, var(--shade) 45%, transparent)); }
html[data-layout="bold"] .hero-body { width: 100%; max-width: none; padding: 140px clamp(20px, 4vw, 56px) clamp(40px, 6vw, 80px); text-align: left; }
html[data-layout="bold"] .tier-label::before { display: none; }
html[data-layout="bold"] .tier-label::after { width: 90px; }
html[data-layout="bold"] .hero-en { margin-bottom: 26px; font: 600 clamp(4.4rem, 8.6vw, 15rem)/.88 var(--f-en); letter-spacing: -.01em; opacity: 1; }
html[data-layout="bold"] .hero-title { display: inline-block; margin-bottom: 24px; padding: 4px 18px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: clamp(1.8rem, 2.2vw, 2.8rem); letter-spacing: .08em; }
html[data-layout="bold"] .hero-lead { margin: 0 0 30px; }
html[data-layout="bold"] .hero-price { justify-content: flex-start; margin-bottom: 34px; }
html[data-layout="bold"] .hero-price b { font: 600 clamp(3.2rem, 4.2vw, 6rem)/1 var(--f-en); letter-spacing: .02em; }
html[data-layout="bold"] .btn { font-weight: 700; }
html[data-layout="bold"] .sec-head { text-align: left; }
html[data-layout="bold"] .sec-head::after { display: none; }
html[data-layout="bold"] .sec-en { margin-bottom: 18px; font: 600 clamp(4.6rem, 8vw, 12rem)/.9 var(--f-en); letter-spacing: -.01em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px var(--accent-text); }
html[data-layout="bold"] .sec-title { font-weight: 700; letter-spacing: .06em; }
html[data-layout="bold"] .point-no { font: 600 7.2rem/1 var(--f-en); }
html[data-layout="bold"] .point h3 { font-weight: 700; }
/* セクションを交互にベース色で塗る（STORY・物件概要・アクセス） */
html[data-layout="bold"] main > :is(.sec--story, .sec--info, .sec--access) {
  background: var(--base); color: var(--on-base);
  --ink: var(--on-base); --line: color-mix(in srgb, var(--on-base) 18%, transparent);
  --muted: color-mix(in srgb, var(--on-base) 66%, var(--base)); --accent-text: var(--accent-on-base);
}
html[data-layout="bold"] .sec--gallery { background: var(--paper); }
html[data-layout="bold"] .gallery-grid { gap: 0; }
html[data-layout="bold"] .gallery-grid figcaption { position: absolute; left: 0; bottom: 0; margin: 0; padding: 8px 12px; background: var(--accent); color: var(--on-accent); }
html[data-layout="bold"] .keyfacts { background: var(--accent); color: var(--on-accent); }
html[data-layout="bold"] .keyfact { border-color: color-mix(in srgb, var(--on-accent) 20%, transparent); }
html[data-layout="bold"] .keyfact dd { font: 600 clamp(2rem, 2.2vw, 2.8rem)/1.3 var(--f-en); }
html[data-layout="bold"] .keyfact:first-child dd { color: inherit; }
html[data-layout="bold"] .access-min b { font-weight: 600; font-size: 5.6rem; }
html[data-layout="bold"] main > .sec--contact { background: var(--accent); color: var(--on-accent); --accent-text: var(--on-accent); --line: color-mix(in srgb, var(--on-accent) 20%, transparent); }
html[data-layout="bold"] .sec--contact .sec-en { -webkit-text-stroke-color: var(--on-accent); }
html[data-layout="bold"] .sec--contact .btn { background: var(--base); border-color: var(--base); color: var(--on-base); }
html[data-layout="bold"] .sec--contact .btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
html[data-layout="bold"] .contact-tel { font-weight: 600; }


/* =========================================================
   磨き込み（2026-11-11 追加）：スクロールの目印・写真の帯
   ========================================================= */
/* 写真の上に文字を重ねないレイアウトでは、スクロールの目印を出さない */
html:is([data-layout="cinema"], [data-layout="split"], [data-layout="editorial"], [data-layout="gallery"], [data-layout="minimal"], [data-layout="card"]) .scroll-cue { display: none; }
html[data-layout="vertical"] .scroll-cue { left: auto; right: clamp(20px, 7vw, 130px); translate: none; }
html[data-layout="frame"] .scroll-cue { bottom: 40px; }

/* シネマ：上下をベース色に溶かし込む */
html[data-layout="cinema"] .band { margin: 0 clamp(16px, 4vw, 56px); min-height: calc(var(--vh100) * .66); }
html[data-layout="cinema"] .band::after { background: linear-gradient(var(--base), transparent 22%, transparent 78%, var(--base)), color-mix(in srgb, var(--shade) 30%, transparent); }

/* スプリット：左に言葉、右に写真 */
html[data-layout="split"] .band { grid-template-columns: minmax(360px, 5fr) 7fr; place-items: stretch; min-height: calc(var(--vh100) * .7); color: var(--ink); text-align: left; }
html[data-layout="split"] .band img { position: relative; grid-column: 2; height: 100%; z-index: 0; }
html[data-layout="split"] .band::after { display: none; }
html[data-layout="split"] .band-quote { grid-column: 1; grid-row: 1; align-self: center; padding: 64px clamp(28px, 4vw, 72px); text-shadow: none; }
html[data-layout="split"] .band-en { color: var(--accent-text); }

/* 雑誌風：左下に大きな引用 */
html[data-layout="editorial"] .band { place-items: end start; text-align: left; }
html[data-layout="editorial"] .band::after { background: linear-gradient(20deg, color-mix(in srgb, var(--shade) 75%, transparent), transparent 65%); }
html[data-layout="editorial"] .band-quote { padding: 0 clamp(24px, 6vw, 96px) clamp(48px, 7vw, 96px); font-size: clamp(2.6rem, 3.8vw, 5.2rem); line-height: 1.6; }
html[data-layout="editorial"] .band-quote::before { content: "“"; display: block; height: .5em; font: 400 2.4em/1 var(--f-en); color: var(--accent-on-photo); }

/* ギャラリー：余白なしで写真をたっぷり */
html[data-layout="gallery"] .band { margin: 0 10px; min-height: calc(var(--vh100) * .86); }

/* 額縁：内側に細い線の額 */
html[data-layout="frame"] .band { margin: 0 18px; }
html[data-layout="frame"] .band::before { content: ""; position: absolute; inset: 22px; z-index: 0; border: 1px solid color-mix(in srgb, var(--accent-on-photo) 70%, transparent); pointer-events: none; }

/* 縦書き和風：言葉も縦に */
html[data-layout="vertical"] .band { min-height: calc(var(--vh100) * .86); }
html[data-layout="vertical"] .band::after { background: linear-gradient(270deg, color-mix(in srgb, var(--shade) 70%, transparent), color-mix(in srgb, var(--shade) 20%, transparent)); }
html[data-layout="vertical"] .band-quote { width: auto; writing-mode: vertical-rl; justify-self: end; margin-right: clamp(24px, 10vw, 180px); padding: 0; height: calc(var(--vh100) * .6); text-align: start; letter-spacing: .3em; line-height: 2.2; }
html[data-layout="vertical"] .band-en { margin: 0 32px 0 0; }

/* ミニマル：写真は枠の中に置き、言葉はその下に小さく */
html[data-layout="minimal"] .band { display: block; min-height: 0; padding: 0 clamp(20px, 5vw, 64px); color: var(--ink); text-align: left; }
html[data-layout="minimal"] .band img { position: static; display: block; width: 100%; max-width: var(--w); height: auto; aspect-ratio: 21 / 9; margin: 0 auto; }
html[data-layout="minimal"] .band::after { display: none; }
html[data-layout="minimal"] .band-quote { width: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; max-width: var(--w); margin: 0 auto; padding: 22px 0 0; font: 300 1.6rem/1.9 var(--f-sans); letter-spacing: .1em; text-shadow: none; }
html[data-layout="minimal"] .band-quote br { display: none; }
html[data-layout="minimal"] .band-en { margin: 0; font-family: var(--f-sans); font-size: 1.6rem; letter-spacing: .3em; color: var(--accent-text); }

/* カード：角の丸いカードの中に */
html[data-layout="card"] .band { margin: 0 16px 16px; border-radius: 28px; min-height: calc(var(--vh100) * .6); }
html[data-layout="card"] .band-quote { font-family: var(--f-head); font-weight: 700; letter-spacing: .08em; }
html[data-layout="card"] .band-en { display: inline-block; margin-top: 20px; padding: 8px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-family: var(--f-sans); letter-spacing: .2em; }

/* 大胆：大きな英字を前に */
html[data-layout="bold"] .band { place-items: center start; text-align: left; }
html[data-layout="bold"] .band-quote { display: flex; flex-direction: column-reverse; padding: 80px clamp(20px, 4vw, 56px); font: 700 clamp(2rem, 2.4vw, 3rem)/1.7 var(--f-sans); letter-spacing: .08em; }
html[data-layout="bold"] .band-en { margin: 0 0 20px; font: 600 clamp(4.8rem, 9vw, 15rem)/.88 var(--f-en); letter-spacing: -.01em; color: #fff; }

@media (max-width: 860px) {
  html[data-layout="split"] .band { grid-template-columns: 1fr; }
  html[data-layout="split"] .band img { grid-column: 1; grid-row: 1; height: 56vw; }
  html[data-layout="split"] .band-quote { grid-row: 2; }
  html[data-layout="minimal"] .band-quote { flex-direction: column; gap: 8px; }
  html[data-layout="vertical"] .band-quote { margin-right: 24px; height: calc(var(--vh100) * .5); }
  html:is([data-layout="cinema"], [data-layout="frame"], [data-layout="card"], [data-layout="gallery"]) .band { margin-inline: 8px; }
}

/* =========================================================
   言語の切り替え「JP / EN」：レイアウトごとに形を変える
   ========================================================= */
/* シネマ：字間を広く、細く長いスラッシュ */
html[data-layout="cinema"] .lang-switch { gap: 1rem; letter-spacing: .34em; }
html[data-layout="cinema"] .lang-slash { font-size: 2.6rem; font-weight: 300; transform: translateY(-.04em) scaleX(.6); }
html[data-layout="cinema"] .lang-switch button.is-current::after { display: none; }

/* 雑誌風：斜体の大きなスラッシュ */
html[data-layout="editorial"] .lang-switch { font-family: var(--f-serif); letter-spacing: .1em; }
html[data-layout="editorial"] .lang-slash { font: italic 400 2.2rem/1 var(--f-en); }

/* 額縁：かっこで囲む */
html[data-layout="frame"] .lang-switch::before, html[data-layout="frame"] .lang-switch::after { color: var(--slash, var(--accent)); font-size: 1.6rem; font-weight: 300; }
html[data-layout="frame"] .lang-switch::before { content: "["; }
html[data-layout="frame"] .lang-switch::after { content: "]"; }
html[data-layout="frame"] .lang-slash { font-size: 1.6rem; transform: none; }
html[data-layout="frame"] .lang-switch button.is-current::after { display: none; }

/* 縦書き和風：縦に並べる */
html[data-layout="vertical"] .lang-switch { gap: .4rem; font-size: 1.6rem; letter-spacing: .1em; } /* 4言語になったので横並びに（縦に4つは高すぎるため） */
html[data-layout="vertical"] .lang-switch button { padding: .1rem .4rem; }
html[data-layout="vertical"] .lang-slash { font-size: 1.6rem; transform: rotate(65deg); line-height: .6; }


/* ミニマル：文字を小さく、スラッシュは細い斜め線 */
html[data-layout="minimal"] .lang-switch { font: 400 1.6rem/1 var(--f-sans); letter-spacing: .24em; gap: 1rem; }
html[data-layout="minimal"] .lang-slash { width: 1px; height: 1.4rem; font-size: 0; background: var(--slash, var(--accent)); transform: rotate(22deg); }

/* カード：丸いスイッチ。選んでいる方を差し色で塗る */
html[data-layout="card"] .lang-switch { gap: .2rem; padding: .3rem; border-radius: 999px; background: var(--pale); font-family: var(--f-sans); font-weight: 700; letter-spacing: .1em; }
html[data-layout="card"] .lang-switch button { padding: .7rem 1.2rem; border-radius: 999px; }
html[data-layout="card"] .lang-switch button.is-current { background: var(--accent); color: var(--on-accent); }
html[data-layout="card"] .lang-switch button.is-current::after { display: none; }
html[data-layout="card"] .lang-slash { font-size: 1.6rem; opacity: .7; }

/* 大胆：太い英字と、大きく傾いたスラッシュ */
html[data-layout="bold"] .lang-switch { font: 600 1.6rem/1 var(--f-en); letter-spacing: .04em; gap: .4rem; }
html[data-layout="bold"] .lang-slash { font-size: 2.8rem; font-weight: 600; transform: skewX(-12deg) translateY(-.06em); }
html[data-layout="bold"] .lang-switch button.is-current::after { height: 3px; background: var(--slash, var(--accent)); }


/* =========================================================
   ファーストビュー：下の「SCROLL」の目印と、中身（ボタン・枠線）が重ならないように下に余白をとる
   （画面の高さが低いときに、目印がボタンや額縁の線にくっついていた：2026-11-11）
   ========================================================= */
html:is([data-layout="classic"], [data-layout="bold"], [data-layout="vertical"]) .hero { padding-bottom: 14rem; }
/* 縦書き：上はヘッダー（お問い合わせボタン）と重ならないよう、上下に余白をとって、その間に収める */
html[data-layout="vertical"] .hero { padding-top: 12rem; }
html[data-layout="vertical"] .hero-body { height: min(calc(var(--vh100) - 26rem), 66rem); min-height: 44rem; }
/* スプリット：お問い合わせは見出しの下の線と文章の間をあける（ほかの章は左右に分かれるので不要） */
html[data-layout="split"] .sec--contact .sec-head { margin-bottom: clamp(4.8rem, 6vw, 8.4rem); }
html[data-layout="classic"] .hero-body { padding-bottom: 4rem; }
html[data-layout="bold"] .hero-body { padding-bottom: 2rem; }
html[data-layout="frame"] .hero-body { margin-bottom: 16rem; }
/* 縦書きのボタン：文字と矢印の線の間をあける */
html[data-layout="vertical"] .btn { gap: 1.8rem; }

/* スマホ：ヘッダーの中身（ロゴ・JP/EN・お問い合わせ）が詰まって枠線にくっつかないように */
@media (max-width: 600px) {
  .site-head { gap: 1.6rem; }
  .site-head .head-cta { padding: .8rem 1.2rem; font-size: 1.6rem; letter-spacing: .08em; }
  /* 額縁：中身を枠線から離す */
  html[data-layout="frame"] .site-head { padding-inline: 2.6rem; }
  /* 価格帯の表示：途中で折り返さないよう、両脇の線を短くして1行に収める */
  .tier-label { white-space: nowrap; gap: 1.2rem; letter-spacing: .24em; }
  .tier-label::before, .tier-label::after { width: 2.4rem; }
  html[data-layout="frame"] .sec { padding-inline: 3.2rem; }
  html[data-layout="frame"] .hero-body { margin-inline: 2.4rem; }
  html[data-layout="frame"] .sec-en { gap: 1.2rem; }
  html[data-layout="frame"] .sec-en::before, html[data-layout="frame"] .sec-en::after { width: 2rem; }
}

/* 物件概要の4つの数字：細い列になるレイアウトでは 2×2 に並べて、「4LDK＋FC＋WIC」などが折れないように */
html:is([data-layout="split"], [data-layout="vertical"]) .keyfacts { grid-template-columns: 1fr 1fr; }
html:is([data-layout="split"], [data-layout="vertical"]) .keyfact:nth-child(3) { border-left: 0; }
html:is([data-layout="split"], [data-layout="vertical"]) .keyfact:nth-child(n+3) { border-top: 1px solid color-mix(in srgb, var(--on-base) 16%, transparent); }

/* スマホ：ギャラリーは見出しの横の線をやめて、見出しが画面からはみ出さないように／縦書きの小見出しは折り返してよい */
@media (max-width: 600px) {
  html[data-layout="gallery"] .sec-head { flex-wrap: wrap; gap: 1.2rem 2.4rem; }
  html[data-layout="gallery"] .sec-head::after { display: none; }
  html[data-layout="vertical"] .sec-en { white-space: normal; letter-spacing: .3em; }
}
@media (max-width: 600px) {
  /* 大胆：大きな英字の小見出しは、画面に収まるよう折り返してよい・少し小さく */
  html[data-layout="bold"] .sec-en { white-space: normal; letter-spacing: -.01em; font-size: clamp(3.2rem, 11vw, 4.6rem); }
  /* 縦書き和風：スマホでは章の見出しを横書きにして本文の上に置く（細い画面で2列にすると、はみ出すため）。ファーストビューは縦書きのまま */
  html[data-layout="vertical"] .sec { display: block; }
  html[data-layout="vertical"] .sec-head {
    writing-mode: horizontal-tb; position: static; max-height: none;
    margin-bottom: 4rem; padding: 0 0 2.4rem; border-left: 0; border-bottom: 1px solid var(--accent);
  }
  html[data-layout="vertical"] .sec-en { margin: 0 0 1.2rem; white-space: nowrap; letter-spacing: .24em; }
  html[data-layout="vertical"] .sec-title { letter-spacing: .14em; }
  html[data-layout="vertical"] .points { gap: 3.2rem; }
  html[data-layout="vertical"] .point { border-right: 0; border-top: 1px solid var(--line); padding: 3.2rem 0 0; }
}

/* ---- 間取り図・共用部・周辺環境：レイアウトごとの味付け ---- */
html[data-layout="frame"] .floor-fig { outline: 1px solid var(--accent); outline-offset: 8px; }
html[data-layout="frame"] .common-fig { padding: 1.2rem; border: 1px solid var(--accent); }
html[data-layout="minimal"] .floor-fig { border: 0; padding: 0; }
html[data-layout="minimal"] .around-title { border-color: var(--ink); }
html[data-layout="card"] .floor-fig { border: 0; border-radius: 20px; }
html[data-layout="card"] .around-group { padding: 3.2rem 3.2rem 2rem; border-radius: 20px; background: var(--pale); }
html[data-layout="card"] .around-list li { border-color: color-mix(in srgb, var(--ink) 10%, transparent); }
html[data-layout="card"] .around-title, html[data-layout="card"] .common-title { font-weight: 700; }
html[data-layout="bold"] .around-title { border-bottom-width: 3px; font-weight: 700; }
html[data-layout="bold"] .common-title { font-weight: 700; }
html[data-layout="editorial"] .common-item { grid-template-columns: 1fr; }
html[data-layout="editorial"] .common-fig img { aspect-ratio: 21 / 9; }
html[data-layout="editorial"] .common-item:nth-child(even) .common-fig { order: 0; }
html[data-layout="editorial"] .common-body { column-count: 1; max-width: 64rem; }
/* 細い列になるレイアウト：共用部は写真の下に文章 */
html:is([data-layout="split"], [data-layout="vertical"]) .common-item { grid-template-columns: 1fr; }
html:is([data-layout="split"], [data-layout="vertical"]) .common-item:nth-child(even) .common-fig { order: 0; }
/* ギャラリー：見出しの横の線に押されて、英字の小見出しが折れないように */
html[data-layout="gallery"] .sec-head .sec-en { flex: none; white-space: nowrap; }
/* ミニマル（スマホ）：見出しと英字を2行に分けて、英字が画面の端にかからないように */
@media (max-width: 600px) {
  html[data-layout="minimal"] .sec-head { flex-wrap: wrap; gap: .8rem 2rem; }
  html[data-layout="minimal"] .sec-en { order: 0; margin: 0; flex-basis: 100%; }
}
/* 雑誌風（スマホ）：英字の小見出しは字間を詰め、単語の区切りでは折り返してよい（章番号の横で幅が足りないため） */
@media (max-width: 600px) {
  html[data-layout="editorial"] .sec-en { white-space: normal; letter-spacing: .14em; }
}
html[data-layout="card"] .around-map-canvas { border-radius: 20px; overflow: hidden; border: 0; }

/* 写真の上に載せないときは、差し色の文字の影を外す（base.css の --photo-text-shadow） */
html:is([data-layout="split"], [data-layout="editorial"], [data-layout="gallery"], [data-layout="minimal"], [data-layout="card"]) .hero-price b,
html:is([data-layout="split"], [data-layout="minimal"]) .band-en { text-shadow: none; }

/* 価格のすりガラスの帯（base.css）：左寄せのレイアウトは左の端をそろえ、縦書きは上下の端を溶かす */
html[data-layout="bold"] .hero-price { margin-left: calc(-1 * clamp(4rem, 6vw, 7.2rem)); }
html[data-layout="vertical"] .hero-price { --fade: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); width: auto; margin-inline: 36px 0; padding: clamp(4rem, 6vw, 7.2rem) 1.8rem; }
html[data-layout="vertical"] .hero-price::before { border-block: 0; border-inline: 1px solid color-mix(in srgb, var(--accent-on-photo) 60%, transparent); }

/* 写真の帯の英字（HERITAGE & CRAFT など）も、価格と同じすりガラスに白い文字（2026-11-18 読みやすさのため）
   ガラスの色・ぼかしは base.css の --glass / --glass-filter。端を溶かすのは後ろの層（::before）だけ */
html:is([data-layout="classic"], [data-layout="cinema"], [data-layout="gallery"], [data-layout="frame"], [data-layout="editorial"], [data-layout="vertical"]) .band-en {
  --fade: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  position: relative; isolation: isolate; width: fit-content; margin: 28px auto 0; padding: 1.3rem clamp(3.6rem, 5vw, 6rem) 1.3rem calc(clamp(3.6rem, 5vw, 6rem) + .42em);
  color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .3);
}
html:is([data-layout="classic"], [data-layout="cinema"], [data-layout="gallery"], [data-layout="frame"], [data-layout="editorial"], [data-layout="vertical"]) .band-en::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--glass); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  border-block: 1px solid color-mix(in srgb, var(--accent-on-photo) 60%, transparent);
  -webkit-mask-image: var(--fade); mask-image: var(--fade);
}
html[data-layout="vertical"] .band-en { --fade: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); width: auto; margin: 0 32px 0 0; padding: clamp(3.6rem, 5vw, 6rem) 1.3rem; }
html[data-layout="vertical"] .band-en::before { border-block: 0; border-inline: 1px solid color-mix(in srgb, var(--accent-on-photo) 60%, transparent); }

/* ===== 2026-11-26 BEARS さんの直し ===== */
/* 言語の切り替え（JP / EN）をやめたので、「お問い合わせ」を右端に寄せる（ページ内メニューが出る 1401px 以上はメニューの隣） */
.site-head .head-cta { margin-left: auto; }
@media (min-width: 1401px) { .site-head .site-nav + .head-cta { margin-left: 0; } }
/* スマホのギャラリー：写真の名前は、どのレイアウトでも写真の左上に重ねる（BEARS さん） */
@media (max-width: 767px) {
  html[data-layout] .gallery-grid figcaption {
    position: absolute; inset: 0 auto auto 0; z-index: 1; margin: 0; padding: .6rem 1rem .5rem;
    background: rgb(0 0 0 / .4); color: #fff; font-size: 1.2rem; letter-spacing: .14em; line-height: 1.4; text-align: left;
  }
  html[data-layout="frame"] .gallery-grid figcaption { inset: 10px auto auto 10px; }
}
