/* 2026-09-14: 読み物・図版・操作の表示検品で確認した不具合の修正。 */
html.gx-doc-open { overflow: hidden; }
html.gx-doc-big .gx-station { padding-bottom: 13svh; }
.gx-modal { grid-template-rows:max-content minmax(0,1fr) max-content; }
.gx-modal__head { padding-right:88px!important; }
.gx-modal__head::before { font-size:16px!important; letter-spacing:.12em!important; }
.gx-modal__title { overflow-wrap:anywhere; text-wrap:balance; }
.gx-modal > .gx-modal__body,
.gx-modal.jw-hasshot > .gx-modal__body,
.gx-modal:not(.jw-hasshot) > .gx-modal__body {
  display:flex; flex-direction:column; justify-content:flex-start;
  min-width:0; gap:0; overscroll-behavior:contain;
  scrollbar-width:thin; scrollbar-color:#b08d55 transparent;
}
.gx-modal .gx-modal__body::-webkit-scrollbar { width:5px; }
.gx-modal .jw-doc__text {
  flex:0 0 auto; width:100%; max-width:42rem;
  margin:auto; min-width:0; overflow-wrap:anywhere;
}
.gx-modal .jw-doc__text > h3 { margin-top:0; font-size:clamp(18px,1.2vw,22px); line-height:1.65; }
.gx-modal .jw-doc__text > p { font-size:clamp(18px,1.18vw,22px)!important; line-height:1.9!important; }
.gx-modal .jw-doc__text > p:first-of-type { font-size:clamp(22px,1.65vw,30px)!important; line-height:1.8!important; }
.gx-modal .jw-doc__text strong { background:none; box-shadow:none; color:inherit; }
.gx-modal:not(.jw-hasshot) > .gx-modal__head,
.gx-modal:not(.jw-hasshot) > .dyn-docback { text-align:center; }
.gx-modal:not(.jw-hasshot) > .gx-modal__head { padding-inline:80px!important; }
.gx-modal:not(.jw-hasshot) .jw-doc__text { max-width:52rem; text-align:center; }
.gx-modal:not(.jw-hasshot) .jw-doc__text > * { width:100%; max-width:none; margin-inline:0; text-align:center; }
.gx-modal:not(.jw-hasshot) .jw-doc__text > h3 { border:0; padding:0; }
.gx-modal:not(.jw-hasshot) .jw-doc__text h3::before { text-align:center; }
.gx-modal .dyn-docback button { min-height:44px; font-size:18px; }
.gx-modal .gx-modal__body:focus-visible { outline:2px solid #b08d55; outline-offset:-5px; }

/* 壁の説明は同じ階層の5項目。先頭だけをリードに拡大しない。 */
.jw-wall-details { display:grid; gap:20px; }
.gx-modal .jw-wall-details > p { margin:0; font-family:var(--dyn-text); font-size:clamp(18px,1.18vw,22px)!important; line-height:1.85!important; }
.jw-wall-details strong { display:block; margin-bottom:4px; font-weight:700; background:none!important; }

/* 画像に焼かれた細字をHTMLへ。図の枠と補足は別の箱で高さを確保する。 */
.jw-wall-figure {
  color:#31291f; background:#e9e4d9; margin:24px 0; padding:24px;
  font-family:'Zen Kaku Gothic New',sans-serif; box-sizing:border-box;
}
.jw-wall-sheet { border:1px solid #6b5138; outline:1px solid #b4a28a; outline-offset:-7px; padding:clamp(20px,2.2vw,38px); }
.jw-wall-figure figcaption { font-family:'Shippori Mincho B1',serif; text-align:center; font-size:clamp(28px,2.5vw,44px); font-weight:700; letter-spacing:.14em; line-height:1.4; }
.jw-wall-figure figcaption > span { display:block; font-family:'Cormorant Garamond',serif; font-size:16px; letter-spacing:.24em; margin-top:8px; }
.jw-wall-direction { text-align:center; font-size:18px; line-height:1.7; margin:18px 0; }
.jw-wall-layers { padding:0; margin:0; list-style:none; display:grid; }
.jw-wall-layers > li { display:grid; grid-template-columns:minmax(70px,.9fr) minmax(0,1.1fr); align-items:stretch; min-height:calc(62px * var(--weight)); margin:0; gap:clamp(16px,2.5vw,44px); }
.jw-wall-swatch { display:grid; place-items:center; color:#302519; font-family:Georgia,serif; font-size:24px; border:1px solid #473727; border-bottom:0; background:repeating-linear-gradient(0deg,transparent 0 4px,#30201010 4px 5px),var(--layer); }
.jw-wall-layers > li:last-child .jw-wall-swatch { border-bottom:1px solid #473727; }
.jw-wall-layers > li > div { align-self:center; position:relative; font-size:clamp(16px,1.35vw,24px); line-height:1.45; padding-block:9px; }
.jw-wall-layers > li > div::before { content:''; position:absolute; width:clamp(10px,1.8vw,32px); height:1px; background:#6b5138; top:50%; right:calc(100% + 5px); }
.jw-wall-layers b { display:block; font-weight:700; }
.jw-wall-layers li div > span { display:block; font-size:clamp(16px,1.1vw,20px); margin-top:3px; }
.jw-wall-figure .jw-wall-scale { margin:20px 0 0; font-size:16px!important; line-height:1.7!important; text-align:center; color:#574b3b!important; }
.jw-wall-notes { padding:22px 8px 0; }
.jw-wall-figure .jw-wall-notes p { margin:0 0 6px; font-size:clamp(18px,1.18vw,22px)!important; line-height:1.75!important; text-align:center; color:#31291f!important; }
.gx-modal.jw-hasshot > .jw-wall-figure.jw-shot {
  display:flex; flex-direction:column; justify-content:safe center;
  background:#e9e4d9; height:100%; padding:clamp(20px,2.3vw,40px);
  overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin;
}
.gx-modal > .jw-wall-figure > * { flex:none; width:100%; max-width:720px; margin-inline:auto; }

/* 日本語の補足と操作も、実表示で16px以上。 */
.jw-gate__lede,.jw-gate__status { font-size:16px; }
.jw-gate__open { font-size:18px; }
.jw-gate__in { max-height:100svh; overflow-y:auto; overscroll-behavior:contain; }
.gx-more,.has-3d:not(.is-tour) .gx-station.is-live .gx-more,
.jw-look,.gx-hud__skip,.dyn-teach__big,.dyn-teach__small,
.dyn-menu__cap,.dyn-menu__lock,.dyn-menu__foot,.dyn-menu__btn,
.dyn-foot,.dyn-footline,.gx-footer .gx-meta { font-size:16px!important; }
.dyn-menu__ja { font-size:18px!important; line-height:1.65; }
.dyn-menu__item { min-width:0; flex-wrap:wrap; }
.dyn-menu__item--sub .dyn-menu__ja { white-space:normal; }
.gx-hud__dot[data-name]::after { font-size:16px; letter-spacing:.04em; }
.jw-tip { font-size:16px!important; letter-spacing:.04em; }
.gx-station[data-reading] .dyn-read p,.gx-secret p { font-size:18px; }
.gx-station[data-reading] .gx-meta,.gx-read-gate .gx-meta,.gx-read-gate__count,.gx-read-gate button { font-size:16px!important; }

/* 間取りは読める幅を取り、スマホでは任意に開く。 */
.jw-map { width:264px; max-width:calc(100vw - 28px); }
.jw-map__tab { min-height:44px; font-size:18px; }
.jw-map__room text,.jw-map__room text.jw-map__sub,.jw-map__sub { font-size:14px; letter-spacing:0; }
.jw-map__note { font-size:16px; line-height:1.65; }
.jw-map__toggle { display:none; }
@media(max-width:899px) {
  .gx-modal__title { font-size:clamp(24px,4.3vw,34px)!important; }
  .gx-modal.jw-hasshot > .gx-modal__body { display:block; }
  .gx-modal .jw-doc__text { margin:0 auto; }
  .gx-modal:not(.jw-hasshot) .jw-doc__text { margin:auto; }
  .gx-modal.jw-hasshot > .jw-wall-figure.jw-shot { height:auto; min-height:0; overflow:visible; padding:18px; }
  .jw-wall-sheet { padding:22px 16px; }
  .jw-wall-layers > li { grid-template-columns:minmax(64px,.7fr) minmax(0,1.3fr); gap:18px; }
  .jw-wall-layers > li > div { font-size:18px; }
  .jw-wall-notes { padding-inline:0; }
}
@media(max-width:700px) {
  .jw-map { width:264px; padding:10px; }
  .jw-map__room text { font-size:14px; }
  .jw-map__toggle { display:block; width:100%; min-height:44px; padding:8px 12px; background:none; border:0; color:#fff4df; font:700 16px 'Zen Kaku Gothic New',sans-serif; text-align:left; }
  .jw-map:not(.is-expanded) { width:132px; }
  .jw-map:not(.is-expanded) > :not(.jw-map__toggle) { display:none; }
  .jw-map.is-expanded .jw-map__note { display:block; }
  .gx-modal:not(.jw-hasshot) > .gx-modal__head { padding-left:20px!important; padding-right:76px!important; text-align:left; }
  .gx-modal__head { padding-right:76px!important; }
  .gx-modal__head::before { letter-spacing:.04em!important; }
  .gx-modal .jw-doc__text > p:first-of-type { font-size:22px!important; }
  .gx-modal__body { padding:24px 20px!important; }
  .dyn-menu__foot { letter-spacing:.03em; }
  .dyn-menu__item--sub { padding-inline:12px; }
  .gx-hud__dot[data-name]::after { max-width:140px; }
  .gx-hud__dot:first-child[data-name]::after { left:0; transform:none; }
}
@media(max-height:540px) {
  .gx-modal__head { padding-block:12px!important; }
  .gx-modal__head::before { display:none!important; }
  .gx-modal__title { font-size:24px!important; }
  .gx-modal .dyn-docback { padding-block:10px!important; }
  .jw-gate__in { padding-block:24px; }
}

/* 資料請求・見学のページ。日本語のラベル、必須・任意、入力補足を揃える。 */
.hd-logo i,.hd-nav a,.hd-burger,.row label,.row .hint,.req,.opt,
.items span,.note,.form-note,.ft ul,.ft-copy,.ft-note { font-size:16px!important; }
.row label { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.row label span { font-size:16px!important; }
.row .hint { color:#625240; line-height:1.8; }
.items span { line-height:1.85; }
.ft-note { color:#e9dfcf; }
.hd-nav { flex-wrap:wrap; }
@media(max-width:380px) { .hd { padding-inline:12px; gap:8px; } .hd-logo { padding-inline:0; } .hd-logo i { max-width:11em; line-height:1.5; } .hd-burger { padding:8px; letter-spacing:.06em; } }
/* 大きなPCでも壁の5項目と図の補足が一望できる余白配分。 */
.gx-modal:not(.jw-hasshot) > .dyn-docback { justify-content:center; }
.gx-modal__head::before { color:#dbc28f!important; }
@media(min-width:900px) {
  .gx-modal:has(> .jw-wall-figure) { grid-template-columns:minmax(0,52%) minmax(0,48%); }
  .gx-modal.jw-hasshot > .jw-wall-figure.jw-shot { padding:24px; }
  .gx-modal .jw-wall-sheet { padding:24px; }
  .gx-modal .jw-wall-figure figcaption { font-size:36px; }
  .gx-modal .jw-wall-direction { margin-block:12px; }
  .gx-modal .jw-wall-layers > li { min-height:calc(47px * var(--weight)); }
  .gx-modal .jw-wall-layers > li > div { font-size:22px; padding-block:6px; }
  .gx-modal .jw-wall-layers li div > span { font-size:18px; }
  .gx-modal .jw-wall-scale { margin-top:12px; }
  .gx-modal .jw-wall-notes { padding-top:16px; }
  .gx-modal .jw-wall-notes p { font-size:18px!important; }
  .gx-modal .jw-wall-details { gap:14px; }
  .gx-modal .jw-wall-details > p { font-size:18px!important; line-height:1.75!important; }
  .gx-modal .jw-wall-details strong { margin-bottom:2px; }
}
/* 書類の図版は、画面幅で縮む画像文字に依存せず原文を組版する。 */
.jw-record-figure { margin:24px 0; padding:24px; background:#e9e4d9; color:#31291f; font-family:'Zen Kaku Gothic New',sans-serif; }
.jw-record-sheet { width:100%; max-width:680px; margin:auto; padding:clamp(24px,2.4vw,40px); border:1px solid #6b5138; outline:1px solid #b4a28a; outline-offset:-7px; }
.jw-record-figure figcaption { font-family:'Shippori Mincho B1',serif; text-align:center; font-size:clamp(26px,2.5vw,40px); font-weight:700; line-height:1.5; text-wrap:balance; }
.jw-record-figure figcaption > span { display:block; font:500 16px/1.6 'Cormorant Garamond',serif; letter-spacing:.16em; margin-top:8px; }
.jw-record-figure dl { margin:28px 0 24px; padding:0; }
.jw-record-figure dl > div { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:16px; padding:13px 0; border-bottom:1px solid #b4a28a; }
.jw-record-figure dt,.jw-record-figure dd { margin:0; font-size:18px; line-height:1.65; overflow-wrap:anywhere; }
.jw-record-figure dd { font-weight:700; }
.jw-record-figure .jw-record-note { margin:0; color:#31291f!important; font-size:18px!important; line-height:1.8!important; }
.jw-record-figure .jw-record-sample { margin:20px 0 0; color:#645642!important; font-size:16px!important; line-height:1.7!important; }
.jw-stamp-art { display:block; width:min(100%,320px); height:auto; margin:24px auto 0; }
.gx-modal.jw-hasshot > .jw-record-figure.jw-shot { display:flex; padding:24px; background:#e9e4d9; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.gx-modal > .jw-record-figure .jw-record-sheet { flex:none; }
.gx-modal > .jw-record-figure:focus-visible,.gx-modal > .jw-wall-figure:focus-visible { outline:2px solid #8a6a37; outline-offset:-6px; }
.sec[id] { scroll-margin-top:128px; }
@media(max-width:899px) {
 .gx-modal.jw-hasshot > .jw-record-figure.jw-shot { height:auto; overflow:visible; padding:18px; }
 .jw-record-sheet { padding:24px 18px; }
 .jw-record-figure dl > div { grid-template-columns:1fr; gap:4px; padding:12px 0; }
 .jw-record-figure dt { color:#655440; font-size:16px; }
 .jw-record-figure dd { font-size:18px; }
}
@media(min-width:900px) { .gx-modal:has(> .jw-wall-figure) > .gx-modal__body { padding-block:24px!important; } }
.sec p,.faq dd { font-size:18px; line-height:1.9; }

/* 通常表示・見るだけ表示の補足にも同じ可読下限を適用。 */
.jw-thresh .gx-meta,.jw-thresh__wait,.jw-thresh__more,
.is-tour .gx-station .gx-meta,.no-3d .gx-station .gx-meta,
.is-tour .gx-sub,.no-3d .gx-sub,.is-tour .gx-hotspot,.no-3d .gx-hotspot,
.ft-line { font-size:16px!important; }

/* 3D用の画面外グラデーションを、読み物カードへ持ち越さない。 */
html.is-tour .gx-station__inner::before { display:none; }
