/* =========================================================
   BEARS 物件紹介 テストページ：共通の見た目（＝レイアウト「クラシック」）
   色は js/app.js が html 要素に入れる次の値から作ります。
     --base / --accent / --pale              … 選んだ3色
     --on-base / --on-accent                 … その上に置く文字の色（白か黒を自動で選択）
     --c-ink                                 … 明るい地の上の文字色
     --c-accent-text                         … 明るい地の上で読める濃さに調整した差し色
     --c-accent-on-base / --c-accent-on-photo … ベース色・写真の上で読める差し色
     --shade                                 … 写真に重ねる暗い色
   ほかのレイアウトは layouts.css で、下の「派生の値」を上書きします。
   ========================================================= */
/* ---------------------------------------------------------
   文字サイズの考え方（BEARS MAGAZINE のテンプレートと同じ）
   html の文字サイズを 62.5%（ブラウザ標準16px × 62.5% ＝ 10px）にしておくと、
   1rem ＝ 10px になる。1.6rem ＝ 16px、1.4rem ＝ 14px のように、数字をそのまま読める。
   本文は body の 1.5rem（15px）。見出しなどは clamp(最小, 画面幅に合わせた値, 最大) で、
   画面の幅に合わせて最小〜最大の間で大きさが変わる。
   --------------------------------------------------------- */
html { font-size: 62.5%; }

:root {
  --base: #15130f; --accent: #b8955a; --pale: #efe8dc;
  --on-base: #fff; --on-accent: #1a1a1a; --shade: #0b0a08;
  --c-ink: #1d1d1d; --c-accent-text: #8a6a35; --c-accent-on-base: #b8955a; --c-accent-on-photo: #b8955a;

  /* 派生の値（レイアウトごとに上書きする） */
  --ink: var(--c-ink);
  --paper: color-mix(in srgb, var(--pale) 30%, #fff);
  --soft: var(--pale);
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --muted: color-mix(in srgb, var(--ink) 64%, var(--paper));
  --accent-text: var(--c-accent-text);
  --accent-on-base: var(--c-accent-on-base);
  --accent-on-photo: var(--c-accent-on-photo);

  --f-serif: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --f-en: "Cormorant Garamond", "Times New Roman", serif;
  /* 2026-11-26 BEARS さん「タイトルの明朝体ですべて統一」：本文（--f-sans）も明朝に。編集用のボタン・パネルだけはゴシック（--f-ui） */
  --f-ui: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-sans: var(--f-serif);
  --f-head: var(--f-serif);
  --w: 1120px;
  --sec-pad: clamp(80px, 11vw, 150px);
  --radius: 0px;
  --head-h: 64px; /* 2026-11-26 ロゴの下の「PREMIUM RESIDENCE」を外したので 76px → 64px に詰めた */
  --vh100: 100svh; /* 画面の高さ。撮影モード（?capture=1）では固定の高さにする */
}
/* 撮影モード：ページ全体を1枚の画像に撮るとき用。高さを固定し、浮かび上がる動きと設定欄を止める */
html.is-capture { --vh100: 900px; scroll-behavior: auto; }
html.is-capture .fade-up { opacity: 1; transform: none; transition: none; }
html.is-capture .tp { display: none; }
html.is-capture .site-head { position: absolute; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.6rem/2 var(--f-sans); letter-spacing: .04em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums; /* 英字書体の数字が上下にずれる（オールドスタイル）のを揃える */
  transition: background-color .5s, color .5s;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
.page { background: var(--paper); transition: background-color .5s; }
main { transition: opacity .25s; }
.is-switching main { opacity: 0; }

/* ---------- ヘッダー ---------- */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h);
  display: flex; align-items: center; gap: 32px; padding: 0 clamp(20px, 4vw, 48px);
  color: #fff; transition: background-color .4s, color .4s, box-shadow .4s, height .4s;
}
.site-head.is-scrolled {
  height: 56px; color: var(--ink); background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; flex-direction: column; gap: 6px; text-decoration: none; font: 600 2.2rem/1 var(--f-en); letter-spacing: .32em; }
.brand small { font-weight: 500; line-height: 1; font-family: var(--f-sans); letter-spacing: .34em; opacity: .75; }
.site-nav { display: flex; gap: 30px; margin-left: auto; font-weight: 500; line-height: 1; font-family: var(--f-en); letter-spacing: .22em; }
.site-nav a { text-decoration: none; opacity: .85; transition: opacity .2s, color .2s; }
.site-nav a:hover { opacity: 1; color: var(--accent-text); }
.site-head:not(.is-scrolled) .site-nav a:hover { color: inherit; }
.head-cta {
  padding: 11px 20px; border: 1px solid currentColor; border-radius: var(--radius);
  font-size: 1.6rem; line-height: 1; letter-spacing: .14em; text-decoration: none; white-space: nowrap; transition: .3s; /* 行の高さを詰めてヘッダー（64px）に収める（2026-11-26） */
}
.head-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 17px 36px; border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent);
  font: 500 1.6rem/1 var(--f-sans); letter-spacing: .2em; text-decoration: none; transition: .3s;
}
.btn::after { content: ""; width: 24px; height: 1px; background: currentColor; transition: width .3s; }
.btn:hover::after { width: 38px; }
.btn:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }

/* ---------- ファーストビュー ---------- */
.hero { position: relative; isolation: isolate; min-height: var(--vh100); display: grid; place-items: center; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media img + img { display: none; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--shade) 60%, transparent),
    color-mix(in srgb, var(--shade) 25%, transparent) 42%,
    color-mix(in srgb, var(--shade) 78%, transparent));
}
.hero-body { max-width: 920px; padding: 150px 24px 110px; text-align: center; }
.tier-label { display: inline-flex; align-items: center; gap: 2rem; margin-bottom: 3.6rem; font-weight: 500; line-height: 1; font-family: var(--f-en); letter-spacing: .36em; }
.tier-label::before, .tier-label::after { content: ""; width: 36px; height: 1px; background: var(--accent-on-photo); }
.hero-en { margin-bottom: 14px; font-weight: 400; line-height: 1.6; font-family: var(--f-en); letter-spacing: .42em; opacity: .9; }
.hero-title { margin: 0 0 28px; font: 500 clamp(3rem, 4.6vw, 5.8rem)/1.35 var(--f-head); letter-spacing: .12em; }
.hero-title .w { display: inline-block; }
.hero-lead { max-width: 38em; margin: 0 auto 36px; line-height: 2.1; opacity: .94; }
.hero-price { display: flex; align-items: baseline; justify-content: center; gap: 18px; margin-bottom: 42px; }
.hero-price span { font-weight: 500; line-height: 1; font-family: var(--f-en); letter-spacing: .32em; opacity: .8; }
.hero-price b { font: 500 clamp(2.4rem, 3vw, 3.6rem)/1 var(--f-head); letter-spacing: .06em; color: var(--accent-on-photo); }
/* 写真の上の差し色の文字（価格・帯の英字）
   黒い影で囲むと暗く重くなるので、影はごく薄く。価格は「すりガラスの帯」に載せて読みやすくする
   （帯：うしろの写真をぼかしてベース色を薄く重ね、上下に差し色の細い線。左右の端は透明に溶かす） */
:root {
  --photo-text-shadow: 0 1px 2px rgb(0 0 0 / .2);
  /* すりガラスの色：価格帯ごとのベース色（濃い色）を重ねる。文字は白（2026-11-18 ご要望） */
  --glass: color-mix(in srgb, var(--base) 42%, transparent);
  --glass-filter: blur(16px) saturate(1.1);
}
html:not([data-layout="split"], [data-layout="editorial"], [data-layout="gallery"], [data-layout="minimal"], [data-layout="card"]) .hero-price {
  --fade: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  position: relative; isolation: isolate;
  width: fit-content; margin-inline: auto; padding: 1.8rem clamp(4rem, 6vw, 7.2rem);
}
/* ガラスと線は後ろの層（::before）に描き、端を溶かすのはこの層だけ。文字は溶かさない（端の「PRICE」が薄くならないように） */
html:not([data-layout="split"], [data-layout="editorial"], [data-layout="gallery"], [data-layout="minimal"], [data-layout="card"]) .hero-price::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);
}
/* 写真の上の価格：文字は白で大きく読ませ、差し色は上下の細い線とボタンの枠に回す（2026-11-18 読みやすさのため） */
html:not([data-layout="split"], [data-layout="editorial"], [data-layout="gallery"], [data-layout="minimal"], [data-layout="card"]) .hero-price b { color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .3); }
html:not([data-layout="split"], [data-layout="editorial"], [data-layout="gallery"], [data-layout="minimal"], [data-layout="card"]) .hero-price span { color: #fff; opacity: .85; text-shadow: 0 1px 2px rgb(0 0 0 / .3); }
/* ファーストビューの「見学のご予約」も同じすりガラスに：塗りつぶさず、ぼかした写真＋差し色の細い枠＋白い文字。
   マウスを乗せると差し色で満たす */
html:not([data-layout="split"], [data-layout="editorial"], [data-layout="gallery"], [data-layout="minimal"], [data-layout="card"]) .hero .btn {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  border-color: color-mix(in srgb, var(--accent-on-photo) 75%, transparent); color: #fff;
}
html:not([data-layout="split"], [data-layout="editorial"], [data-layout="gallery"], [data-layout="minimal"], [data-layout="card"]) .hero .btn::after { background: var(--accent-on-photo); }
html:not([data-layout="split"], [data-layout="editorial"], [data-layout="gallery"], [data-layout="minimal"], [data-layout="card"]) .hero .btn:hover {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent); filter: none;
}
html:not([data-layout="split"], [data-layout="editorial"], [data-layout="gallery"], [data-layout="minimal"], [data-layout="card"]) .hero .btn:hover::after { background: currentColor; }

/* ---------- 各セクション共通 ---------- */
.sec { padding: var(--sec-pad) clamp(20px, 5vw, 48px); }
.sec > * { max-width: var(--w); margin-inline: auto; }
.sec-head { margin-bottom: clamp(48px, 6vw, 84px); text-align: center; }
.sec-head::after { content: ""; display: block; width: 1px; height: 44px; margin: 4rem auto 0; background: var(--accent); }
.sec-en { margin-bottom: 18px; font-weight: 500; line-height: 1.2; font-family: var(--f-en); letter-spacing: .42em; color: var(--accent-text); }
.sec-title { margin: 0; font: 500 clamp(2.2rem, 2.8vw, 3.4rem)/1.6 var(--f-head); letter-spacing: .1em; }

/* 物語 */
.story-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.story-text p { line-height: 2.1; } /* 大きさは ren15p。行間はゆとりを持たせて広めに */
.story-text p + p { margin-top: 1.6em; }
/* スマホ：ストーリーの文章は左右の端をそろえる（右側だけ空いて見えないように。2026-11-26 BEARS さんより） */
/* 2026-11-27：両端そろえで字の間が広がりすぎると言われたため、行は目いっぱいまで詰めて折り返す
   （text-wrap: pretty は Safari では段落全体の行の長さをならすため、行が早めに折り返されて字の間が広がっていた。
     後ろの「text-wrap: pretty」の指定に負けないよう、強めの指定で通常の折り返しに戻す） */
@media (max-width: 767px) { .story-text p, .story-text p.ren16p { text-align: justify; text-justify: inter-character; } }
@media (max-width: 767px) { html .story-text p { text-wrap: wrap; } }
.story-fig { margin: 0; }
.story-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-img, 0); }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); margin: clamp(64px, 8vw, 110px) auto 0; padding: 0; list-style: none; }
.point { padding-top: 3.6rem; border-top: 1px solid var(--line); }
.point-no { font: 400 3.6rem/1 var(--f-en); color: var(--accent-text); }
.point h3 { margin: 2rem 0 1.2rem; font-weight: 500; line-height: 1.6; font-family: var(--f-head); letter-spacing: .08em; }
.point p { line-height: 1.95; color: var(--muted); }

/* ギャラリー */
.sec--gallery { background: var(--soft); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid figure { position: relative; margin: 0; overflow: hidden; }
.gallery-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-img, 0); transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption { margin-top: 10px; font-weight: 500; line-height: 1; font-family: var(--f-en); letter-spacing: .32em; color: var(--muted); }

/* 物件概要 */
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto 56px; background: var(--base); color: var(--on-base); border-radius: var(--radius-box, 0); overflow: hidden; }
.keyfact { padding: 4rem 2.4rem; text-align: center; border-left: 1px solid color-mix(in srgb, var(--on-base) 16%, transparent); }
.keyfact:first-child { border-left: 0; }
.keyfact dt { margin-bottom: 1.6rem; font-weight: 500; line-height: 1; font-family: var(--f-en); letter-spacing: .32em; opacity: .72; }
.keyfact dd { margin: 0; font: 500 clamp(1.7rem, 1.8vw, 2.1rem)/1.4 var(--f-head); letter-spacing: .04em; }
.keyfact:first-child dd { color: var(--accent-on-base); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 2.6rem 2.4rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.9; }
.spec-table tr:first-child > * { border-top: 1px solid var(--line); }
.spec-table th { width: 26%; font-weight: 500; color: var(--muted); white-space: nowrap; }

/* 間取り・リノベーション */
/* リノベーションと付帯する家具は上下に並べる（2026-11-23 ご要望）。PCでは項目を2列に並べて、横に間延びしないように */
.plan-grid { display: grid; grid-template-columns: 1fr; gap: clamp(6.4rem, 8vw, 10.4rem); }
@media (min-width: 861px) { .plan-card .check-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(3.2rem, 5vw, 7.2rem); } }
/* 付帯する家具の写真：3枚を横に並べる（スマホでは縦に） */
.extras-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2vw, 2.4rem); margin: 0 0 4rem; }
.extras-figs figure { margin: 0; cursor: zoom-in; }
.extras-figs figure > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-img, 0); transition: opacity .6s; }
.extras-figs figure:hover > img { opacity: .85; }
.extras-figs figcaption { margin-top: 1.2rem; font-family: var(--f-en); letter-spacing: .28em; color: var(--muted); }
.extras-figs figure:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 767px) { .extras-figs { grid-template-columns: 1fr; } }
.plan-en { margin-bottom: 1.2rem; font-weight: 500; line-height: 1; font-family: var(--f-en); letter-spacing: .36em; color: var(--accent-text); }
.plan-card h3 { margin: 0 0 2.8rem; font-weight: 500; line-height: 1.6; font-family: var(--f-head); letter-spacing: .08em; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 2rem 1.2rem 2rem 3.6rem; border-bottom: 1px solid var(--line); line-height: 1.8; }
.check-list li::before { content: ""; position: absolute; left: .6rem; top: calc(2rem + .9em); width: 12px; height: 1px; background: var(--accent); }

/* アクセス */
.access-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 auto; padding: 0; list-style: none; }
.access-list li { display: flex; flex-direction: column; align-items: center; gap: .8rem; padding: 4rem 2.4rem; border: 1px solid var(--line); border-radius: var(--radius-box, 0); text-align: center; }
.access-line { color: var(--muted); }
.access-st { font-weight: 500; line-height: 1.6; font-family: var(--f-head); letter-spacing: .06em; }
.access-min { }
.access-min b { margin: 0 6px; font: 400 4.4rem/1 var(--f-en); color: var(--accent-text); }
.address { margin-top: 4rem; text-align: center; color: var(--muted); }

/* お問い合わせ */
.sec--contact { background: var(--base); color: var(--on-base); text-align: center; --line: color-mix(in srgb, var(--on-base) 20%, transparent); }
.sec--contact .sec-en { color: var(--accent-on-base); }
.sec--contact .sec-head::after { background: var(--accent-on-base); }
.contact-tel { margin: 30px 0 6px; font: 400 clamp(3.2rem, 4.2vw, 4.8rem)/1 var(--f-en); letter-spacing: .1em; }
.contact-hours { opacity: .75; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }

/* フッター */
.site-foot { padding: 44px 24px 120px; background: color-mix(in srgb, var(--base) 82%, #000); color: color-mix(in srgb, var(--on-base) 72%, transparent); text-align: center; letter-spacing: .12em; }
.foot-brand { margin-bottom: 14px; font: 600 2rem/1 var(--f-en); letter-spacing: .4em; color: var(--on-base); }

/* ---------- スクロールで浮かび上がる ---------- */
/* BEARS MAGAZINE の .fade-up と同じ動き：50px 下から、0.8秒で表示（js/app.js の reveal / checkFades）。
   Safari 向けに translate3d と backface-visibility で、動いている間だけ別の層として描く */
.fade-up {
  opacity: 0; -webkit-transform: translate3d(0, 50px, 0); transform: translate3d(0, 50px, 0);
  -webkit-transition: opacity .8s, -webkit-transform .8s; transition: opacity .8s, transform .8s;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.fade-up.is-show { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
.fade-up.is-done { -webkit-transform: none; transform: none; -webkit-backface-visibility: visible; backface-visibility: visible; }
/* すりガラスを含むもの（ファーストビューの文・帯のひとこと）：親は位置だけ動かし、透明から出すのは文字だけ。
   ガラスの板（価格・帯の英字・見学のご予約）は、せり上がり始めからすりガラスのまま一緒に上がってくる。
   （親ごと半透明にすると、半透明の親の中ではうしろの写真をぼかせず、上がりきるまで薄い色の板に見えるため） */
.fade-up.fade-glass { opacity: 1; }
.fade-up.fade-glass > :not(.hero-price, .band-en, .btn),
.fade-up.fade-glass :is(.hero-price, .band-en) > * { transition: opacity .8s; }
.fade-up.fade-glass:not(.is-show) > :not(.hero-price, .band-en, .btn),
.fade-up.fade-glass:not(.is-show) :is(.hero-price, .band-en) > * { opacity: 0; }
/* 見学のご予約：すりガラスのレイアウトでは板はそのまま、文字と横線だけ透明から出す。それ以外のレイアウトは、ボタンごと透明から */
.fade-up.fade-glass:not(.is-done) .btn { transition: opacity .8s, color .8s; }
.fade-up.fade-glass:not(.is-done) .btn::after { transition: opacity .8s; }
.fade-up.fade-glass:not(.is-show) .btn { opacity: 0; }
html:not([data-layout="split"], [data-layout="editorial"], [data-layout="gallery"], [data-layout="minimal"], [data-layout="card"]) .fade-up.fade-glass:not(.is-show) .btn { opacity: 1; color: transparent; }
html:not([data-layout="split"], [data-layout="editorial"], [data-layout="gallery"], [data-layout="minimal"], [data-layout="card"]) .fade-up.fade-glass:not(.is-show) .btn::after { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- スマホ ---------- */
@media (max-width: 860px) {
  :root { --head-h: 56px; }
  .site-head.is-scrolled { height: 56px; }
  .site-nav { display: none; }
  .head-cta { margin-left: auto; padding: 9px 14px; }
  .story-grid, .plan-grid { grid-template-columns: 1fr; }
  .points, .access-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .keyfacts { grid-template-columns: 1fr 1fr; }
  .keyfact:nth-child(3) { border-left: 0; }
  .keyfact:nth-child(n+3) { border-top: 1px solid color-mix(in srgb, var(--on-base) 16%, transparent); }
  .spec-table th { width: 34%; white-space: normal; }
  .spec-table th, .spec-table td { padding: 2rem 1.2rem; font-size: 1.6rem; }
}

/* =========================================================
   磨き込み（2026-11-11 追加）
   ========================================================= */

/* 見出しを語の切れ目で折り返す（Chrome は文節で、ほかのブラウザは通常どおり） */
.hero-title, .sec-title, .point h3, .plan-card h3, .band-quote { word-break: auto-phrase; text-wrap: balance; }

/* 英字書体（Cormorant）の数字が上下にずれないよう揃える。
   font の一括指定で毎回リセットされるため、数字を出すところに個別に効かせる */
.hero-price b, .point-no, .keyfact dd, .access-min b, .contact-tel, .band-en { font-variant-numeric: lining-nums !important; }

/* 縦書き用の漢数字の価格は、ふだんは隠す */
.price-kanji { display: none; }

/* ファーストビューの写真：ゆっくり寄っていく */
.hero-media { overflow: hidden; }
.hero-media img:first-child { animation: heroZoom 9s cubic-bezier(.2, .6, .2, 1) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* スクロールの目印（写真の上に文字を重ねるレイアウトだけで表示） */
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; z-index: 1; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: #fff; text-decoration: none; font: 500 1.6rem/1 var(--f-en); letter-spacing: .4em;
}
.scroll-cue::after { content: ""; width: 1px; height: 54px; background: linear-gradient(currentColor 50%, transparent 50%) 0 0 / 1px 200%; animation: cue 2.4s cubic-bezier(.6, 0, .3, 1) infinite; opacity: .8; }
@keyframes cue { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* 写真を大きく見せる帯 */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; min-height: calc(var(--vh100) * .78);
  color: #fff; text-align: center;
}
.band img { position: absolute; inset: -20% 0 auto 0; z-index: -2; width: 100%; height: 140%; object-fit: cover; will-change: transform; } /* パネルより40%大きく、上下に20%ずつはみ出させておく（パララックスで動かす分） */
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--shade) 42%, transparent); }
/* 帯のひとことは、中身の長さに合わせて縮めず、横長の枠（最大 100rem）の中で折り返す（2026-11-24 ご要望「もう少し横長に」） */
.band-quote { box-sizing: border-box; width: min(100%, 100rem); margin: 0; padding: 80px 24px; will-change: translate; font: 500 clamp(2.2rem, 3.2vw, 4rem)/1.9 var(--f-head); letter-spacing: .16em; text-shadow: 0 2px 30px rgb(0 0 0 / .3); }
.band-en { display: block; margin-top: 26px; font-weight: 500; line-height: 1; font-family: var(--f-en); letter-spacing: .42em; color: var(--accent-on-photo); text-shadow: var(--photo-text-shadow); }

/* ギャラリー：写真を大きく見る */
.gallery-grid figure { cursor: zoom-in; }
.gallery-grid figure:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lb {
  position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 64px 72px;
  background: color-mix(in srgb, var(--shade) 95%, transparent);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb img {
  max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 80px rgb(0 0 0 / .45); transform: scale(.97);
  transition: transform .55s cubic-bezier(.2, .7, .2, 1), opacity .5s ease, filter .55s ease;
}
/* 前後の写真へ移るとき（js/app.js の lbGo）：抜けるときは速く、入るときはゆっくり止まる */
.lb.is-open.is-leave-next img { opacity: 0; transform: translateX(-6%) scale(.98); filter: blur(4px); transition-duration: .3s; }
.lb.is-open.is-leave-prev img { opacity: 0; transform: translateX(6%) scale(.98); filter: blur(4px); transition-duration: .3s; }
.lb.is-open.is-enter-next img { opacity: 0; transform: translateX(6%) scale(.98); filter: blur(4px); transition: none; }
.lb.is-open.is-enter-prev img { opacity: 0; transform: translateX(-6%) scale(.98); filter: blur(4px); transition: none; }
.lb-cap { transition: opacity .4s ease; }
.lb:is(.is-leave-next, .is-leave-prev, .is-enter-next, .is-enter-prev) .lb-cap { opacity: 0; }
.lb:is(.is-enter-next, .is-enter-prev) .lb-cap { transition: none; }
@media (prefers-reduced-motion: reduce) { .lb img, .lb-cap { transition: none; } }
.lb.is-open img { transform: none; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 22px; color: #fff; text-align: center; font: 500 1.6rem/1 var(--f-en); letter-spacing: .36em; font-variant-numeric: lining-nums; }
.lb button { position: absolute; width: 56px; height: 56px; padding: 0; border: 0; background: none; color: #fff; font: 300 3.4rem/1 var(--f-en); cursor: pointer; opacity: .8; transition: opacity .2s; }
.lb button:hover, .lb button:focus-visible { opacity: 1; }
.lb-close { top: 10px; right: 12px; }
.lb-prev { top: 50%; left: 8px; translate: 0 -50%; }
.lb-next { top: 50%; right: 8px; translate: 0 -50%; }
html.lb-lock { overflow: hidden; }
/* 拡大表示の上の「SCROLL」：左右の線の中を、外へ向かって光が流れる（左右に送って見られる目印） */
.lb-cue {
  position: absolute; top: 26px; left: 50%; translate: -50% 0; margin: 0;
  display: flex; align-items: center; gap: 14px; pointer-events: none;
  color: #fff; font: 500 1.6rem/1 var(--f-en); letter-spacing: .4em; white-space: nowrap; opacity: .85;
}
.lb-cue span { margin-right: -.4em; } /* 字間の分だけ右にずれるのを戻して、真ん中にそろえる */
.lb-cue::before, .lb-cue::after {
  content: ""; width: 48px; height: 1px;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%) 0 0 / 200% 1px;
  animation: cueX 2.4s cubic-bezier(.6, 0, .3, 1) infinite;
}
.lb-cue::before { animation-direction: reverse; }
@keyframes cueX { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.lb.is-single .lb-cue { display: none; }
@media (prefers-reduced-motion: reduce) { .lb-cue::before, .lb-cue::after { animation: none; } }

@media (max-width: 860px) {
  .lb { padding: 56px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 6px; translate: none; }
  .band { min-height: calc(var(--vh100) * .6); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media img:first-child, .scroll-cue::after { animation: none; }
}
html.is-capture .hero-media img:first-child, html.is-capture .scroll-cue::after { animation: none; }

/* =========================================================
   右下のQRコード「スマートフォンからもアクセスできます。」
   ページの色（--paper / --ink / --accent）に合わせて見た目が変わる
   ========================================================= */
.qr-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 16px; padding: 12px 40px 12px 12px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: var(--radius-box, 0);
  box-shadow: 0 16px 44px rgb(0 0 0 / .16);
  font: 500 1.6rem/1.75 var(--f-head); letter-spacing: .08em;
  transition: background-color .5s, color .5s, border-color .5s;
}
.qr-float__code { flex: none; display: block; width: 86px; height: 86px; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: calc(var(--radius-box, 0px) / 2); overflow: hidden; }
.qr-float__code svg { display: block; width: 100%; height: 100%; }
.qr-float__text { margin: 0; white-space: nowrap; line-height: 1.75; }
.qr-float__text small { display: block; margin-bottom: 8px; font-weight: 500; line-height: 1; font-family: var(--f-en); letter-spacing: .34em; color: var(--accent-text); }
.qr-float__close { position: absolute; top: 4px; right: 6px; width: 28px; height: 28px; padding: 0; border: 0; background: none; color: var(--muted); font: 300 1.8rem/1 var(--f-en); cursor: pointer; }
.qr-float__close:hover { color: var(--ink); }
.qr-float.is-unreachable .qr-float__code { opacity: .35; }
.qr-open { display: none; }
/* 隠したときは、小さな「QR」ボタンだけ残す */
.qr-float.is-hidden { padding: 0; border: 0; background: none; box-shadow: none; }
.qr-float.is-hidden > :not(.qr-open) { display: none; }
.qr-float.is-hidden .qr-open {
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0; cursor: pointer;
  border: 1px solid var(--accent); border-radius: 50%; background: var(--base); color: var(--on-base);
  font: 600 1.6rem/1 var(--f-en); letter-spacing: .1em; box-shadow: 0 10px 30px rgb(0 0 0 / .2);
}

.qr-modal {
  position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center; padding: 24px;
  background: color-mix(in srgb, var(--shade) 82%, transparent);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.qr-modal.is-open { opacity: 1; visibility: visible; }
.qr-modal__card {
  position: relative; width: min(420px, 100%); max-height: 100%; overflow: auto; padding: 40px 32px 30px;
  background: var(--paper); color: var(--ink); text-align: center;
  border-top: 3px solid var(--accent); border-radius: var(--radius-box, 0);
}
.qr-modal__close { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--muted); font: 300 2.6rem/1 var(--f-en); cursor: pointer; }
.qr-modal__en { font: 500 1.6rem/1 var(--f-en); letter-spacing: .4em; color: var(--accent-text); }
.qr-modal__title { margin-top: 14px; font: 500 1.9rem/1.7 var(--f-head); letter-spacing: .1em; }
.qr-modal__code svg { display: block; width: min(280px, 64vw); height: auto; margin: 22px auto 18px; border-radius: calc(var(--radius-box, 0px) / 2); }
.qr-modal__note { font-size: 1.6rem; line-height: 1.8; color: var(--muted); }
.qr-modal__warn { margin-top: 10px; padding: 10px 12px; border: 1px solid #c0392b; color: #b3261e; background: #fdf0ee; font-size: 1.6rem; line-height: 1.7; text-align: left; }
.qr-modal__url { margin-top: 12px; font: 400 1.6rem/1.6 ui-monospace, Menlo, monospace; color: var(--muted); word-break: break-all; }
.qr-modal__save {
  display: inline-block; margin-top: 18px; padding: 12px 22px; border: 1px solid var(--accent); border-radius: var(--radius, 0);
  color: var(--ink); font-size: 1.6rem; letter-spacing: .14em; text-decoration: none; transition: .3s;
}
.qr-modal__save:hover { background: var(--accent); color: var(--on-accent); }

/* スマホで見ているときは、右下のQRは出さない（もうスマホで開いているため） */
@media (max-width: 600px) { .qr-float { display: none; } }
html.is-capture .qr-float { display: none; }
@media print { .qr-float, .qr-modal { display: none; } }

/* =========================================================
   BEARS のロゴ（index.html の #logo-bears を使う）
   色は --logo-color（js/app.js が、ロゴの後ろが暗ければ白・明るければ黒にする）
   ========================================================= */
.logo { display: block; width: 100%; height: 100%; overflow: visible; }
.logo-l { fill: currentColor; opacity: .55; }
.logo-d { fill: currentColor; }
.brand { color: var(--logo-color, currentColor); transition: color .35s; }
.brand .logo { width: 104px; height: auto; aspect-ratio: 220.5 / 51.4; }
.brand small { font-family: var(--f-en); letter-spacing: .38em; }
.site-head.is-scrolled .brand .logo { width: 92px; }
.foot-brand { display: flex; justify-content: center; margin-bottom: 18px; color: var(--foot-logo-color, currentColor) !important; } /* レイアウト側の文字色より、白黒の判定を優先 */
.foot-brand .logo { width: 120px; height: auto; aspect-ratio: 220.5 / 51.4; }
@media (max-width: 860px) { .brand .logo { width: 86px; } }

/* =========================================================
   言語の切り替え「JP / EN」（英語は自動翻訳：js/translate.js）
   スラッシュは差し色。後ろが写真や暗い地なら明るめ、明るい地なら濃いめ（--slash は js/app.js が入れる）
   レイアウトごとの形の違いは layouts.css の最後
   ========================================================= */
.lang-switch { display: flex; align-items: center; gap: .6rem; font: 500 1.6rem/1 var(--f-en); letter-spacing: .2em; white-space: nowrap; }
.lang-switch button {
  position: relative; padding: .6rem .2rem; border: 0; background: none; color: inherit; cursor: pointer;
  font: inherit; letter-spacing: inherit; opacity: .5; transition: opacity .25s, color .25s, background-color .25s;
}
.lang-switch button:hover, .lang-switch button.is-current { opacity: 1; }
.lang-switch button.is-current::after { content: ""; position: absolute; left: .2rem; right: .4rem; bottom: .1rem; height: 1px; background: var(--slash, var(--accent)); }
.lang-slash { display: inline-block; color: var(--slash, var(--accent)); font-size: 2rem; font-weight: 300; transform: translateY(-.04em); transition: color .35s; }
@media (max-width: 860px) {
  .lang-switch { margin-left: auto; }
  .site-head .head-cta { margin-left: 0; }
}

/* Google 翻訳が出す帯・吹き出し・ハイライトを隠す（ページのデザインを崩さないため） */
.gt-hidden, .skiptranslate > iframe, iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-yAWNEb-L7lbkb { display: none !important; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight, font[style*="background"] { background: none !important; box-shadow: none !important; }

/* =========================================================
   変な折り返しを防ぐ（2026-11-11）
   ・1行で見せるラベル（価格帯・価格・数字・ボタンなど）は折り返さない
   ・文章は、最後の行に1〜2文字だけ残らないように整える（text-wrap: pretty。対応していないブラウザは通常どおり）
   ・英字のラベルは、単語の途中では折り返さない
   ========================================================= */
.tier-label, .hero-price, .keyfact dd, .access-min, .access-line, .contact-tel, .contact-hours,
.btn, .head-cta, .plan-en, .band-en, .brand small, .lang-switch, .site-nav a, .spec-table th { white-space: nowrap; }
.hero-lead, .story-text p, .point p, .point h3, .plan-card h3, .check-list li, .spec-table td, .address,
.sec--contact .sec-body > p, .site-foot p, .band-quote { text-wrap: pretty; }
.sec-en, .hero-en { word-break: keep-all; overflow-wrap: normal; }
.contact-note { margin-top: .6rem; opacity: .6; }
/* スマホ：1行で見せたいものが収まるように、字間を詰めたり並べ方を変えたりする */
@media (max-width: 600px) {
  .sec-en { white-space: nowrap; letter-spacing: .24em; }
  .hero-en { letter-spacing: .22em; }
  .gallery-grid figcaption { letter-spacing: .18em; line-height: 1.5; }
  .site-head .brand small { display: none; }
  .spec-table th { width: auto; }
  /* 物件概要の4つの数字：1列にして、左に項目名・右に値 */
  .keyfacts { grid-template-columns: 1fr !important; }
  .keyfact { display: flex; align-items: baseline; justify-content: space-between; gap: 1.6rem; padding: 2rem 2.4rem; text-align: left; border-left: 0 !important; }
  .keyfact + .keyfact { border-top: 1px solid color-mix(in srgb, var(--on-base) 16%, transparent); }
  .keyfact dt { margin: 0; }
  .keyfact dd { text-align: right; }
}

/* 段落の最後の数文字（js/app.js の keepTails が付ける）。途中で折り返さない */
.nobr { white-space: nowrap; }

/* 少し狭い画面（861〜1200px）：ヘッダーのメニュー・JP / EN・お問い合わせが詰まらないように */
@media (min-width: 861px) and (max-width: 1200px) {
  .site-head { gap: 2.4rem; }
  .site-nav { gap: 2rem; letter-spacing: .12em; }
}

/* =========================================================
   間取り図・共用部・周辺環境（2026-11-12 追加）
   ========================================================= */
/* 間取り図：白い台紙に載せる（図面の白地が、どの色のページでも浮かないように） */
.floor-fig {
  max-width: 100rem; margin: 0 auto; padding: clamp(2.4rem, 4vw, 5.6rem);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-box, 0); cursor: zoom-in;
}
.floor-fig img { width: 100%; height: auto; }
.floor-cap { margin-top: 3.2rem; padding-top: 2.4rem; border-top: 1px solid #e3e0db; text-align: center; color: #3a3a3a; letter-spacing: .12em; }
.floor-fig:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* 共用部：写真と文章を左右交互に */
.common-list { display: grid; gap: clamp(6.4rem, 9vw, 12rem); }
.common-item { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(3.2rem, 6vw, 8.8rem); align-items: center; }
.common-item:nth-child(even) .common-fig { order: 2; }
.common-fig { margin: 0; overflow: hidden; border-radius: var(--radius-img, 0); cursor: zoom-in; }
.common-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.common-fig:hover img { transform: scale(1.04); }
.common-fig:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.common-en { margin-bottom: 1.6rem; font-family: var(--f-en); font-weight: 500; letter-spacing: .36em; color: var(--accent-text); }
.common-title { margin: 0 0 2.4rem; font-family: var(--f-head); font-weight: 500; letter-spacing: .08em; }
.common-text { line-height: 2.1; }

/* 周辺環境：分類ごとのリスト（名前の右に距離・徒歩分数） */
/* 周辺環境のはじめの写真（まくら）。横長1枚（2026-11-26） */
.around-lead { margin: 0 0 clamp(4.8rem, 6vw, 8rem); overflow: hidden; border-radius: var(--radius-img, 0); }
.around-lead img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.around-lead figcaption { margin-top: 1rem; text-align: right; font-family: var(--f-serif); letter-spacing: .16em; color: var(--muted); } /* 小さめ（tantan13p）・明朝（2026-11-26） */
@media (max-width: 767px) { .around-lead img { aspect-ratio: 3 / 2; } }
.around-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr)); gap: clamp(4rem, 5vw, 6.4rem) clamp(3.2rem, 5vw, 6.4rem); }
.around-title { margin: 0 0 1.2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--accent); font-family: var(--f-head); font-weight: 500; letter-spacing: .08em; }
.around-list { margin: 0; padding: 0; list-style: none; }
.around-list li { display: flex; flex-direction: column; gap: .4rem; padding: 1.8rem .4rem; border-bottom: 1px solid var(--line); } /* 名前の下に距離：3列でも名前が途中で折れないように */
.around-name { line-height: 1.6; word-break: auto-phrase; }
.around-dist { white-space: nowrap; color: var(--accent-text); letter-spacing: .06em; }
.around-note { margin-top: 4.8rem; text-align: center; color: var(--muted); }
/* 番号つきの施設（地図のピンと同じ番号）。マウスを乗せる・押すと地図のピンが目立つ */
.around-list li.has-num { position: relative; padding-left: 5rem; cursor: pointer; transition: background-color .3s; }
.around-list li.has-num:hover, .around-list li.is-active { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.around-list li.has-num:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.around-num {
  position: absolute; left: .6rem; top: 1.6rem; width: 3rem; height: 3rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); line-height: 1; font-variant-numeric: lining-nums; letter-spacing: 0;
  transition: background-color .3s, color .3s;
}
.around-list li.is-active .around-num { background: var(--base); color: var(--on-base); }

/* 周辺環境の地図（js/around-map.js） */
.around-map { position: relative; margin-top: 4.8rem; }
.around-map-canvas { height: clamp(40rem, 46vw, 60rem); border: 1px solid var(--line); background: var(--pale); }
.around-map.is-failed .around-map-canvas { display: grid; place-items: center; }
.around-map.is-failed .around-map-canvas > * { display: none !important; }
.around-map.is-failed .around-map-canvas::after { content: "地図を読み込めませんでした"; color: var(--muted); font-size: 1.6rem; }
.around-map .gm-style { font-family: var(--f-sans); }
.map-pin { position: absolute; translate: -50% -50%; font-family: var(--f-sans); }
.map-pin-num {
  display: grid; place-items: center; width: 3.2rem; height: 3.2rem; padding: 0; border: 2px solid #fff; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font: 700 1.6rem/1 var(--f-sans); font-variant-numeric: lining-nums;
  box-shadow: 0 3px 10px rgb(0 0 0 / .25); cursor: pointer; transition: transform .3s cubic-bezier(.2, .7, .2, 1), background-color .3s, color .3s;
}
.map-pin.is-hover .map-pin-num, .map-pin.is-open .map-pin-num { transform: scale(1.22); background: var(--base); color: var(--on-base); }
.map-pin-tip {
  position: absolute; left: 50%; bottom: calc(100% + 1.2rem); translate: -50% 6px; display: grid; gap: .2rem;
  padding: 1rem 1.6rem; background: #fff; color: var(--c-ink); white-space: nowrap; text-align: center;
  font-size: 1.6rem; line-height: 1.5; box-shadow: 0 8px 24px rgb(0 0 0 / .18);
  opacity: 0; pointer-events: none; transition: opacity .3s, translate .3s;
}
.map-pin-tip::after { content: ""; position: absolute; left: 50%; top: 100%; translate: -50% 0; border: 7px solid transparent; border-top-color: #fff; }
.map-pin-tip b { font-weight: 700; }
.map-pin-tip em { font-style: normal; color: var(--c-accent-text); }
.map-pin.is-hover .map-pin-tip, .map-pin.is-open .map-pin-tip { opacity: 1; translate: -50% 0; }
/* 物件の位置：BEARS のピン（紺の丸に「B」。img/pin-bears.svg。2026-11-26 BEARS さん）。ピンの先が物件の位置に来るように、上へずらす */
.map-pin--home { z-index: 2; translate: -50% -100%; }
.map-pin-home {
  display: block; width: 4.8rem; height: 6rem;
  background: url(../img/pin-bears.svg) center / contain no-repeat; filter: drop-shadow(0 3px 6px rgb(0 0 0 / .3));
}
.map-pin--home .map-pin-tip { bottom: calc(100% + .8rem); background: var(--base); color: var(--on-base); font-family: var(--f-serif); letter-spacing: .08em; }
.map-pin--home .map-pin-tip::after { border-top-color: var(--base); }

/* 1枚だけの拡大表示（間取り図など）は、前後の矢印を出さない */
.lb.is-single .lb-prev, .lb.is-single .lb-next { display: none; }

@media (max-width: 860px) {
  .common-item { grid-template-columns: 1fr; }
  .common-item:nth-child(even) .common-fig { order: 0; }
  .floor-fig { padding: 1.6rem; }
}

/* ---- 言語の切り替え：JP / EN の2つ（2026-11-24 に繁・简をやめた。スマホでも並べて出す） ---- */
.lang-list { display: flex; align-items: center; gap: inherit; } /* 間隔はレイアウトごとの .lang-switch の指定に合わせる */
.lang-switch button[lang] { font-family: var(--f-serif); letter-spacing: 0; }
.lang-now { display: none; }

/* 文字を大きく・太くしたので（2026-11-18）、1400px以下ではページ内メニューを省く（ヘッダーに入りきらないため） */
@media (max-width: 1400px) { /* 太字にしたので 1100px → 1400px に広げた */
  .site-nav { display: none; }
  .site-head .lang-switch { margin-left: auto; }
}

/* =========================================================
   すべての文字を太字に（2026-11-18 お客さまのご要望）
   レイアウトごとの細い・太いの指定（ミニマルの細字など）より優先する。
   太字の書体は index.html の Google Fonts で 700 を読み込んでいる
   ========================================================= */
.page, .page *, .qr-float, .qr-float *, .qr-modal, .qr-modal *, .lb-cap, .lb-cue { font-weight: 700 !important; }

/* =========================================================
   マウスのカーソルの動き（js/cursor.js。2026-11-18）
   ・中心の点（.cursor-dot）は差し色で塗る
   ・外側の枠・輪（.cursor-ring）は白で描いて背景と「差の絶対値」で合成し、どの背景の上でも見える
   ・形は html の class で切り替える：.cursor-bears（四角・BEARS らしい形）／.cursor-ruri（丸・るり工房 案B）
   ========================================================= */
/* 外側の箱（.cursor-ring／.cursor-dot）は位置だけ。大きさ0でマウスの位置に置き、形は内側の .cursor-shape で描く */
.cursor-ring, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 10001; /* 写真の拡大表示（.lb＝10000）より上 */ width: 0; height: 0; pointer-events: none; will-change: transform; transition: opacity .3s; }
.cursor-ring { mix-blend-mode: difference; }
.cursor-shape { position: absolute; left: 0; top: 0; translate: -50% -50%; }
.cursor-ring .cursor-shape {
  display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #fff;
  transition: width .45s cubic-bezier(.2, .7, .2, 1), height .45s cubic-bezier(.2, .7, .2, 1),
    rotate .45s cubic-bezier(.2, .7, .2, 1), background-color .4s, border-color .4s;
}
.cursor-dot .cursor-shape { width: 7px; height: 7px; background: var(--accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--on-accent) 35%, transparent); transition: rotate .45s cubic-bezier(.2, .7, .2, 1); }
.cursor-label { color: var(--on-accent); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor-ring.is-hidden, .cursor-dot.is-hidden { opacity: 0; }

/* ---- 丸（るり工房 案B）---- */
.cursor-ruri .cursor-shape { border-radius: 50%; }
.cursor-ruri .cursor-dot .cursor-shape { width: 6px; height: 6px; }
.cursor-ruri .cursor-ring.is-link .cursor-shape { width: 56px; height: 56px; background: #fff; }
.cursor-ruri .cursor-ring.is-label { mix-blend-mode: normal; }
.cursor-ruri .cursor-ring.is-label .cursor-shape { width: 88px; height: 88px; background: var(--accent); border-color: var(--accent); }
.cursor-ruri .cursor-label { font: italic 700 1.6rem/1 var(--f-en); letter-spacing: .08em; }

/* ---- 四角（BEARS らしい形）：ロゴの四角いブロックと、2段の濃淡（少しずらして重ねた薄い枠）から ---- */
.cursor-bears .cursor-ring .cursor-shape { width: 34px; height: 34px; }
.cursor-bears .cursor-ring .cursor-shape::before {
  content: ""; position: absolute; inset: 5px -5px -5px 5px; border: 1px solid #fff; opacity: .45;
  transition: opacity .3s, inset .45s cubic-bezier(.2, .7, .2, 1);
}
.cursor-bears .cursor-dot .cursor-shape { rotate: 45deg; }
.cursor-bears .cursor-ring.is-link .cursor-shape { width: 44px; height: 44px; rotate: 45deg; }
.cursor-bears .cursor-ring.is-link .cursor-shape::before { inset: 0; opacity: 0; }
.cursor-bears .cursor-dot.is-link .cursor-shape { rotate: 0deg; }
.cursor-bears .cursor-ring.is-label { mix-blend-mode: normal; }
.cursor-bears .cursor-ring.is-label .cursor-shape { width: 112px; height: 46px; background: var(--accent); border-color: var(--accent); }
.cursor-bears .cursor-ring.is-label .cursor-shape::before { inset: 5px -5px -5px 5px; border-color: var(--accent); opacity: .5; }
.cursor-bears .cursor-label { font: 700 1.6rem/1 var(--f-en); letter-spacing: .32em; text-transform: uppercase; translate: .16em 0; }

.cursor-ring.is-label .cursor-label { opacity: 1; }
.cursor-dot.is-label { opacity: 0; }

html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor label, html.has-cursor [role="button"],
html.has-cursor .gallery-grid figure, html.has-cursor .common-fig, html.has-cursor .floor-fig, html.has-cursor .extras-figs figure { cursor: none; }
/* 設定欄・QRの拡大表示の上では、ふつうのカーソルに戻す */
html.has-cursor :is(.tp, .qr-modal), html.has-cursor :is(.tp, .qr-modal) * { cursor: auto; }
html.has-cursor :is(.tp, .qr-modal) :is(a, button, select, label, input[type="color"]) { cursor: pointer; }
/* 写真の拡大表示：るり工房 案Bの横スクロールと同じく「← Scroll →」をカーソルに持たせる（js/cursor.js）
   カーソルが「Scroll」を持つので、上に置いていた「SCROLL」の目印は出さない（スマホ・カーソルOFFのときは残す） */
html.has-cursor .lb, html.has-cursor .lb * { cursor: none; }
html.has-cursor .lb.is-dragging, html.has-cursor .lb.is-dragging * { cursor: none; }
html.has-cursor .lb-cue { display: none; }
.cursor-ruri .cursor-ring.is-scroll .cursor-shape { width: 112px; height: 112px; }
.cursor-bears .cursor-ring.is-scroll .cursor-shape { width: 156px; }
.cursor-ring.is-scroll .cursor-label { display: flex; align-items: center; gap: 6px; }
.cursor-ring.is-scroll .cursor-label::before,
.cursor-ring.is-scroll .cursor-label::after { font-style: normal; letter-spacing: 0; animation: cursorNudge 1.2s ease-in-out infinite; }
.cursor-ring.is-scroll .cursor-label::before { content: "←"; --dir: -1; }
.cursor-ring.is-scroll .cursor-label::after { content: "→"; --dir: 1; }
@keyframes cursorNudge { 50% { transform: translateX(calc(var(--dir) * 4px)); } }
@media (hover: none) { .cursor-ring, .cursor-dot { display: none; } }

/* =========================================================
   ご見学の予約・資料請求のフォーム（js/inquiry.js。2026-11-23）
   ・お問い合わせの章（ベース色の地）の上に置く。入力欄は少しだけ明るい地＋細い線
   ・ラベルの横に「必須」（差し色）／「任意」（線だけ）の札。コーポレートサイトのお問い合わせと同じ考え方
   ・入力 → 確認 → 完了 の3段階
   ========================================================= */
.iq { max-width: 76rem; margin: 5.6rem auto 0; text-align: left; --iq-line: color-mix(in srgb, var(--on-base) 28%, transparent); --iq-bg: color-mix(in srgb, var(--on-base) 6%, transparent); }
.iq-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--iq-line); }
.iq-tabs[hidden] { display: none; }
.iq-tab {
  position: relative; padding: 2rem 1rem; border: 0; background: none; color: inherit; cursor: pointer;
  font-family: var(--f-head); letter-spacing: .16em; opacity: .55; transition: opacity .3s;
  -webkit-tap-highlight-color: transparent;
}
.iq-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent-on-base); transform: scaleX(0); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.iq-tab[aria-selected="true"] { opacity: 1; }
.iq-tab[aria-selected="true"]::after { transform: none; }
.iq-tab:hover { opacity: 1; }
.iq-tab:focus:not(:focus-visible) { outline: none; }
.iq-panel { padding-top: 4rem; }
.iq-steps { display: flex; justify-content: center; gap: 4.8rem; margin: 0 0 4rem; padding: 0; list-style: none; font-family: var(--f-en); letter-spacing: .3em; }
.iq-steps li { position: relative; opacity: .4; transition: opacity .3s; }
.iq-steps li + li::before { content: ""; position: absolute; right: calc(100% + 1.2rem); top: 50%; width: 2.4rem; height: 1px; background: currentColor; opacity: .6; }
.iq-steps li.is-on { opacity: 1; color: var(--accent-on-base); }
.iq-lead { margin: 0 0 3.2rem; line-height: 1.9; opacity: .85; text-align: center; word-break: auto-phrase; text-wrap: balance; }
/* 案内文の1文目（「…必須）。」まで）は途中で折り返さない。幅の狭いスマホだけ折り返してよい（2026-11-24） */
@media (min-width: 600px) { .iq-lead .iq-line { white-space: nowrap; } }
.iq-field { margin: 0 0 2.8rem; padding: 0; border: 0; min-width: 0; }
.iq-field[hidden] { display: none; }
.iq-label { display: flex; align-items: center; gap: 1rem; margin: 0 0 1rem; padding: 0; font-weight: 500; letter-spacing: .08em; }
.iq-badge { display: inline-block; padding: .4rem .8rem; border: 1px solid var(--accent); border-radius: 2px; background: var(--accent); color: var(--on-accent); font-size: 1.2rem; line-height: 1; letter-spacing: .1em; font-weight: 700; }
.iq-badge.is-opt { background: transparent; border-color: var(--iq-line); color: inherit; opacity: .75; }
.iq-input {
  display: block; width: 100%; padding: 1.4rem 1.6rem; border: 1px solid var(--iq-line); border-radius: var(--radius-box, 0);
  background: var(--iq-bg); color: inherit; font-family: var(--f-sans); font-size: 1.6rem; line-height: 1.6;
  transition: border-color .25s, background-color .25s; appearance: none; -webkit-appearance: none;
}
.iq-input.is-small { max-width: 22rem; }
.iq-input::placeholder { color: inherit; opacity: .4; }
.iq-input:focus { outline: none; border-color: var(--accent-on-base); background: color-mix(in srgb, var(--on-base) 10%, transparent); }
textarea.iq-input { resize: vertical; min-height: 14rem; }
.is-error > .iq-input, .is-error .iq-date, .is-error select.iq-input { border-color: #ff8a80; }
.iq-err { margin: .8rem 0 0; color: #ffb4ab; line-height: 1.6; }
.iq-err:empty { display: none; }
.iq-note { margin: -.2rem 0 1.6rem; opacity: .7; line-height: 1.7; }
/* ラジオ・チェック：丸・四角を自前で描く（地の色に合わせるため） */
.iq-radios { display: flex; flex-wrap: wrap; gap: 1.2rem 3.2rem; }
.iq-radio, .iq-check { position: relative; display: inline-flex; align-items: center; gap: 1.2rem; cursor: pointer; }
.iq-radio input, .iq-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.iq-radio span::before, .iq-check span::before {
  content: ""; display: inline-block; vertical-align: -.35em; width: 2rem; height: 2rem; margin-right: 1.2rem;
  border: 1px solid var(--iq-line); background: var(--iq-bg); transition: .25s;
}
.iq-radio span::before { border-radius: 50%; }
.iq-radio input:checked + span::before { border-color: var(--accent-on-base); box-shadow: inset 0 0 0 .5rem color-mix(in srgb, var(--base) 85%, #000), inset 0 0 0 2rem var(--accent-on-base); }
.iq-check input:checked + span::before { border-color: var(--accent-on-base); background: var(--accent-on-base) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 100% no-repeat; }
.iq-radio input:focus-visible + span::before, .iq-check input:focus-visible + span::before { outline: 2px solid var(--accent-on-base); outline-offset: 3px; }
/* 見学の希望日時（3つ） */
.iq-field--slots { padding: 2.4rem 2.4rem .8rem; border: 1px solid var(--iq-line); border-radius: var(--radius-box, 0); }
.iq-field--slots > .iq-label { float: left; width: 100%; margin-bottom: 1.6rem; } /* legend をふつうの見出しのように置く */
.iq-field--slots > .iq-label + * { clear: both; }
.iq-slot { margin: 0 0 2rem; }
.iq-slot-no { display: flex; align-items: center; gap: 1rem; margin: 0 0 .8rem; letter-spacing: .12em; }
.iq-slot-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.iq-date {
  flex: 1 1 24rem; display: flex; align-items: center; gap: 1.2rem; padding: 1.4rem 1.6rem; text-align: left;
  border: 1px solid var(--iq-line); border-radius: var(--radius-box, 0); background: var(--iq-bg); color: inherit; cursor: pointer;
  font-family: var(--f-sans); transition: border-color .25s; -webkit-tap-highlight-color: transparent;
}
.iq-date::before { content: ""; flex: none; width: 1.8rem; height: 1.8rem; background: currentColor; opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='16' rx='1'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='16' rx='1'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.iq-date:not(.is-set) .iq-date-text { opacity: .5; }
.iq-date:hover, .iq-date[aria-expanded="true"] { border-color: var(--accent-on-base); }
.iq-select { position: relative; flex: 0 1 18rem; }
.iq-select::after { content: ""; position: absolute; right: 1.6rem; top: 50%; width: .8rem; height: .8rem; border: solid currentColor; border-width: 0 1px 1px 0; translate: 0 -75%; rotate: 45deg; pointer-events: none; opacity: .7; }
.iq-select select { padding-right: 4rem; cursor: pointer; }
.iq-select select option { color: #1a1a1a; }
.iq-clear { padding: .6rem 0; border: 0; background: none; color: inherit; opacity: .7; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.iq-clear[hidden] { display: none; }
/* 同意 */
.iq-field--agree { margin-top: 4rem; text-align: center; }
.iq-agree-text { margin: 0 0 1.6rem; opacity: .85; }
.iq-agree-text a { color: var(--accent-on-base); text-underline-offset: 3px; }
/* ボタン */
.iq-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; margin-top: 4rem; }
.iq-actions .btn { min-width: 24rem; cursor: pointer; }
.iq-actions .btn:disabled { opacity: .6; cursor: wait; }
.iq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* 確認 */
.iq-dl { margin: 0; border-top: 1px solid var(--iq-line); }
.iq-dl > div { display: grid; grid-template-columns: 18rem 1fr; gap: 2.4rem; padding: 1.8rem .8rem; border-bottom: 1px solid var(--iq-line); }
.iq-dl dt { opacity: .7; letter-spacing: .08em; }
.iq-dl dd { margin: 0; word-break: break-word; }
.iq-send-err { margin: 2.4rem 0 0; padding: 1.6rem; border: 1px solid #ff8a80; color: #ffb4ab; line-height: 1.8; }
.iq-confirm:focus, .iq-done:focus { outline: none; }
/* 完了 */
.iq-done { text-align: center; }
.iq-done-en { margin: 0 0 1.6rem; font-family: var(--f-en); letter-spacing: .4em; color: var(--accent-on-base); }
.iq-done-title { margin: 0 0 2.4rem; font-family: var(--f-head); letter-spacing: .08em; }
.iq-done p { line-height: 2; }
.iq-test { margin-top: 3.2rem; padding: 2rem; border: 1px dashed var(--iq-line); text-align: left; }
.iq-test-title { margin: 0 0 1.2rem; color: var(--accent-on-base); }
.iq-test-mail + .iq-test-mail { margin-top: 2rem; }
.iq-test pre { margin: 1rem 0 0; padding: 1.6rem; background: var(--iq-bg); white-space: pre-wrap; font: 1.4rem/1.8 var(--f-ui); overflow: auto; max-height: 40rem; }
/* カレンダー（ページのいちばん外に置く。淡い地の上に） */
.iq-cal {
  position: fixed; z-index: 1200; width: 30rem; padding: 1.6rem; border-radius: var(--radius-box, 0);
  background: var(--paper); color: var(--ink); box-shadow: 0 18px 50px rgb(0 0 0 / .35); font-family: var(--f-ui);
}
.iq-cal[hidden] { display: none; }
.iq-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.iq-cal-title { margin: 0; font: 500 1.6rem/1 var(--f-head); letter-spacing: .12em; }
.iq-cal-nav { width: 3.6rem; height: 3.6rem; border: 0; background: none; color: inherit; font-size: 2.4rem; line-height: 1; cursor: pointer; border-radius: 50%; }
.iq-cal-nav:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.iq-cal-nav:disabled { opacity: .2; cursor: default; }
.iq-cal-week, .iq-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.iq-cal-week span { padding: .6rem 0; font-size: 1.2rem; opacity: .6; }
.iq-cal-days button { aspect-ratio: 1; margin: 1px; border: 0; border-radius: 50%; background: none; color: inherit; font: 500 1.4rem/1 var(--f-ui); font-variant-numeric: lining-nums tabular-nums; cursor: pointer; }
.iq-cal-days button:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.iq-cal-days button:disabled { opacity: .25; cursor: default; }
.iq-cal-days button.is-closed:disabled { text-decoration: line-through; }
.iq-cal-days button.is-picked { background: var(--accent); color: var(--on-accent); }
.iq-cal .w0:not(:disabled) { color: #c0392b; }
.iq-cal .w6:not(:disabled) { color: #2c5fa8; }
.iq-cal .is-picked.w0, .iq-cal .is-picked.w6 { color: var(--on-accent); }
.iq-cal-note { margin: 1rem 0 0; font-size: 1.2rem; line-height: 1.6; opacity: .7; }
@media (max-width: 767px) {
  .iq-steps { gap: 3.6rem; }
  .iq-field--slots { padding: 2rem 1.6rem .4rem; }
  .iq-select { flex: 1 1 100%; }
  .iq-dl > div { grid-template-columns: 1fr; gap: .6rem; }
  .iq-actions .btn { min-width: 0; width: 100%; }
}

/* =========================================================
   閲覧ページからの編集（js/edit.js。2026-11-23）
   ・直せる文章は点線で囲む。押すとその場で書き換えられる。書き換えた所は差し色の線＋うすい地
   ・写真には「写真を変える」ボタン
   ・下に編集の操作の帯（変更の件数・元に戻す・保存・終える）
   ========================================================= */
/* 「このページを編集」はいちばん下。左下の設定欄（.tp）はその上に置く（2026-11-24 ご要望：設定欄を開いてもボタンが隠れないように） */
.ed-toggle {
  position: fixed; left: 16px; bottom: 16px; z-index: 1100; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: 0; border-radius: 999px; background: #1a1a1a; color: #fff; cursor: pointer;
  font: 700 1.4rem/1 var(--f-ui); letter-spacing: .08em; box-shadow: 0 8px 24px rgb(0 0 0 / .28); -webkit-tap-highlight-color: transparent;
}
.ed-toggle[hidden] { display: none; }
.ed-toggle__icon { width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.2V21h3.8L17.9 9.9l-3.8-3.8L3 17.2zM20.7 7.0a1 1 0 0 0 0-1.4l-2.3-2.3a1 1 0 0 0-1.4 0l-1.8 1.8 3.8 3.8 1.7-1.9z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.2V21h3.8L17.9 9.9l-3.8-3.8L3 17.2zM20.7 7.0a1 1 0 0 0 0-1.4l-2.3-2.3a1 1 0 0 0-1.4 0l-1.8 1.8 3.8 3.8 1.7-1.9z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ed-bar {
  position: fixed; left: 50%; bottom: 16px; z-index: 1100; translate: -50% 0; width: min(96rem, calc(100% - 24px));
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 20px; padding: 14px 18px;
  border-radius: 12px; background: #1a1a1a; color: #fff; box-shadow: 0 14px 40px rgb(0 0 0 / .35); font-family: var(--f-ui);
}
.ed-bar[hidden] { display: none; }
.ed-bar p { margin: 0; }
.ed-bar__state { display: flex; flex-direction: column; gap: 4px; font-size: 1.4rem; white-space: nowrap; }
.ed-bar__state b { color: #f5c26b; letter-spacing: .1em; }
.ed-bar__count { opacity: .8; font-size: 1.3rem; }
.ed-bar__note { font-size: 1.2rem; line-height: 1.6; opacity: .75; }
.ed-bar__btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ed-bar__btns button { padding: 10px 14px; border: 1px solid rgb(255 255 255 / .3); border-radius: 6px; background: none; color: inherit; cursor: pointer; font: 700 1.3rem/1 var(--f-ui); white-space: nowrap; }
.ed-bar__btns button.is-main { border-color: #f5c26b; background: #f5c26b; color: #1a1a1a; }
.ed-bar__btns button:disabled { opacity: .35; cursor: default; }
.ed-flash { position: fixed; left: 50%; bottom: 110px; z-index: 1101; translate: -50% 0; margin: 0; padding: 12px 22px; border-radius: 999px; background: #2e7d32; color: #fff; font: 700 1.4rem/1 var(--f-ui); transition: opacity .5s; }
.ed-flash.is-out { opacity: 0; }
/* 編集中のページ */
html.is-editing #app [data-bp] { outline: 1px dashed color-mix(in srgb, var(--accent) 75%, transparent); outline-offset: 4px; cursor: text; transition: outline-color .2s, background-color .2s; }
html.is-editing #app [data-bp]:hover { outline-style: solid; }
html.is-editing #app [data-bp]:focus { outline: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
html.is-editing #app [data-bp].is-changed { outline: 2px solid #f5c26b; background: color-mix(in srgb, #f5c26b 14%, transparent); }
html.is-editing #app .fade-up { opacity: 1 !important; transform: none !important; } /* 編集中は、まだ出ていない所も見えるように */
html.is-editing .qr-float, html.is-editing .cursor-ring, html.is-editing .cursor-dot { display: none !important; }
html.has-cursor.is-editing, html.has-cursor.is-editing * { cursor: auto; }
html.has-cursor.is-editing [data-bp] { cursor: text; }
html.has-cursor.is-editing button, html.has-cursor.is-editing a { cursor: pointer; }
html.is-editing body { padding-bottom: 120px; }
/* 設定欄の位置：編集ボタンがあるときはその上、編集中は下の編集バーの上（--ed-bar-h は js/edit.js が入れる） */
html.has-edit .tp { bottom: 72px; max-height: calc(100svh - 88px); }
html.is-editing .tp { bottom: calc(var(--ed-bar-h, 80px) + 28px); max-height: calc(100svh - var(--ed-bar-h, 80px) - 44px); }
.ed-rel { position: relative; }
.ed-img {
  position: absolute; z-index: 6; top: 12px; right: 12px; padding: 8px 12px; border: 0; border-radius: 6px;
  background: rgb(26 26 26 / .85); color: #fff; cursor: pointer; font: 700 1.3rem/1 var(--f-ui); letter-spacing: .06em;
}
.hero-media .ed-img { top: calc(96px + var(--i, 0) * 40px); }
.ed-img:hover { background: #1a1a1a; }
@media (max-width: 767px) {
  .ed-toggle { left: 8px; bottom: 8px; padding: 10px 14px; }
  html.has-edit .tp { bottom: 58px; max-height: calc(62svh - 50px); }
  html.is-editing .tp { bottom: calc(var(--ed-bar-h, 120px) + 16px); max-height: calc(100svh - var(--ed-bar-h, 120px) - 32px); }
  .ed-bar { grid-template-columns: 1fr; bottom: 8px; padding: 12px; }
  .ed-bar__note { display: none; }
  .ed-bar__btns { justify-content: flex-start; }
}

/* ---- BEARS MAGAZINE の記事（2026-11-24）：1本なら写真と文字を左右に、2本以上なら並べる ---- */
.mag-list { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr)); gap: clamp(3.2rem, 4vw, 5.6rem); }
.mag-list.is-single { grid-template-columns: 1fr; max-width: 104rem; }
.mag-link { display: block; color: inherit; text-decoration: none; }
.is-single .mag-link { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2.4rem, 4vw, 6.4rem); align-items: center; }
.mag-fig { margin: 0; overflow: hidden; border-radius: var(--radius-img, 0); }
.mag-fig img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.mag-link:hover .mag-fig img { transform: scale(1.04); }
.mag-body { padding-top: 2.4rem; }
.is-single .mag-body { padding-top: 0; }
.mag-en { margin: 0 0 1.2rem; font-family: var(--f-en); letter-spacing: .32em; color: var(--accent); }
.mag-title { margin: 0 0 2.8rem; font-family: var(--f-head); font-weight: 500; line-height: 1.75; letter-spacing: .06em; word-break: auto-phrase; text-wrap: pretty; }
.mag-more { display: inline-flex; align-items: center; gap: 1.2rem; padding-bottom: .8rem; border-bottom: 1px solid var(--accent); font-family: var(--f-en); letter-spacing: .28em; }
.mag-arw { width: 2.4rem; height: 1px; background: currentColor; position: relative; transition: width .4s; }
.mag-arw::after { content: ""; position: absolute; right: 0; top: -.3rem; width: .7rem; height: .7rem; border-top: 1px solid currentColor; transform: rotate(45deg); transform-origin: right top; }
.mag-link:hover .mag-arw { width: 3.6rem; }
.mag-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
@media (max-width: 767px) {
  .is-single .mag-link { grid-template-columns: 1fr; }
  .is-single .mag-body { padding-top: 2.4rem; }
}
