/* 和紙と紺（世界観をそろえた案。2026-10-21 本人承認）
   正本: ~/Developer/masaken-kawara/design/2026-10_HPトップ_世界観の統一/トンマナ.md と gen.mjs
   theme が wa の時だけ site.css の後に読み込む。色と書体は tokens-wa.css。 */

body { background: var(--c-washi) var(--washi-tex); color: var(--c-text); }
h1, h2, h3, .section-title, .page-header__title { font-family: var(--font-heading); }

/* ---------- 面: 和紙（明）と紺（暗）を交互に。下の端は軒先の瓦 ---------- */
.section { position: relative; padding-block: calc(var(--gap-section) + var(--eave)) var(--gap-section); --eave-c: var(--c-washi); }
.section:not([class*="tone-"]) + .section:not([class*="tone-"]) { padding-top: calc(var(--gap-section) * .5); }
.section::after, .page-header::after, .wa-oni::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(var(--eave) * -1); height: var(--eave); z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 24px 0, var(--eave-c) 23.5px, transparent 24px) 0 0 / 48px var(--eave) repeat-x;
}
.section:not([class*="tone-"]), .tone-muted { background: var(--c-washi) var(--washi-tex); }
.section:not([class*="tone-"]) + .section:not([class*="tone-"])::before { content: none; }
.tone-muted { --eave-c: var(--c-washi); }
.tone-inverse { background: var(--c-accent); color: #fff; --eave-c: var(--c-accent); }
.tone-accent { background: var(--g-kon); color: #fff; --eave-c: var(--c-accent); }
main > .section:last-child::after, .wcta::after { content: none; }
@media (max-width: 47.5rem) {
  .section::after, .page-header::after, .wa-oni::after { background: radial-gradient(circle at 16px 0, var(--eave-c) 15.5px, transparent 16px) 0 0 / 32px var(--eave) repeat-x; }
}

/* ---------- 紺の面の文字と部品 ---------- */
.tone-inverse, .tone-accent { --c-text: #fff; --c-text-muted: rgb(255 255 255 / .8); --c-line: rgb(255 255 255 / .25); }
.tone-inverse a:not(.button):not(.wbtn), .tone-accent a:not(.button):not(.wbtn) { color: #fff; }
.tone-inverse .card, .tone-accent .card { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .3); box-shadow: none; color: #fff; }
.tone-inverse .card p, .tone-accent .card p { color: rgb(255 255 255 / .82); }

/* ---------- ヘッダー（紺の帯）とフッター（夜） ---------- */
.site-header { background: var(--c-accent); color: #fff; border-bottom: 0; backdrop-filter: none; }
.site-header[data-scrolled] { border-bottom-color: transparent; box-shadow: 0 2px 12px rgb(0 0 0 / .18); }
.site-header a { color: #fff; }
.site-logo__name { font-family: var(--font-heading); letter-spacing: .08em; }
.site-nav__list a::after { background: #fff; }
.header-tel__num { color: #fff; }
.header-tel__hours { color: var(--c-ai-l); }
.site-header .button--primary { background: #fff; color: var(--c-accent); }
.site-header .button--primary:hover { background: var(--c-washi); }
.menu-toggle { color: #fff; }
@media (max-width: 59.9375rem) {
  .js .site-nav { background: var(--c-accent); color: #fff; }
}
.site-footer { background: var(--c-night); }

/* ---------- ボタン: 角を立てる（判子のような四角） ---------- */
.button { border-radius: 0; }
.button--primary { background: var(--c-accent); color: #fff; }
.tone-inverse .button--primary, .tone-accent .button--primary { background: #fff; color: var(--c-accent); }
.button--secondary { border-radius: 0; }
.wbtns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.wbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 28px; font-weight: 700; font-size: 16px; line-height: 1.3; text-decoration: none; transition: filter var(--dur-1, .2s); }
.wbtn:hover { filter: brightness(1.08); }
.wbtn--line { background: var(--c-line-app); color: #fff; }
.wbtn--tel { background: #fff; color: var(--c-accent); outline: 1px solid var(--c-accent); outline-offset: -1px; }

/* ---------- 見出し: 筆の一文字＋小見出し＋明朝＋かすれた筆の線 ---------- */
.section-head { max-width: none; margin-bottom: 48px; }
.section-head .sh { display: flex; align-items: center; gap: 24px; }
.section-head--center .sh { justify-content: center; text-align: left; }
.sh__fude { font-family: var(--font-fude); font-size: 112px; line-height: 1; color: var(--c-accent); flex: none; }
.sh__text { flex: 1; min-width: 0; }
.section-head--center .sh__text { flex: 0 1 auto; }
.eyebrow { font-family: var(--font-heading); font-size: 14px; letter-spacing: .3em; color: var(--c-ai); text-transform: none; font-weight: 500; margin-bottom: 4px; }
.section-title { font-weight: 700; font-size: clamp(25px, 3vw, 34px); line-height: 1.5; letter-spacing: .06em; color: var(--c-accent); }
.section-head .stroke { display: block; width: 220px; height: 16px; margin-top: 8px; color: var(--c-accent); }
.section-lead { margin-top: 20px; font-size: 15px; max-width: 720px; color: var(--c-text-muted); }
.section-head--center .section-lead { margin-inline: auto; }
.tone-inverse .sh__fude, .tone-inverse .section-title, .tone-inverse .section-head .stroke,
.tone-accent .sh__fude, .tone-accent .section-title, .tone-accent .section-head .stroke { color: #fff; }
.tone-inverse .eyebrow, .tone-accent .eyebrow { color: var(--c-ai-l); }
@media (max-width: 47.5rem) {
  .section-head { margin-bottom: 32px; }
  .section-head .sh { gap: 14px; flex-wrap: wrap; }
  .sh__fude { font-size: 72px; }
  .section-title { font-size: 19px; }
  .section-head .stroke { width: 160px; }
  .section-lead { margin-top: 14px; }
}

/* ---------- らむくん: 1つの面に1体。面に入るとひょこっと出る ---------- */
.ramu-say { position: relative; z-index: 4; flex: none; display: flex; align-items: center; gap: 6px; }
.ramu-say img { display: block; width: 100%; height: auto; }
.say { position: absolute; z-index: 1; white-space: nowrap; background: #fff; color: var(--c-accent); border: 1.5px solid var(--c-accent); font-weight: 700; font-size: 14px; line-height: 1.5; padding: 10px 16px; border-radius: 18px; }
.say::after { content: ""; position: absolute; width: 12px; height: 12px; background: #fff; border: 1.5px solid var(--c-accent); border-top: 0; border-left: 0; }
.say--r::after { right: -7px; top: 50%; margin-top: -6px; transform: rotate(-45deg); }
.say--b::after { bottom: -7px; left: 50%; margin-left: -6px; transform: rotate(45deg); }
.ramu-say img { transform: translateY(30%) scale(.9); opacity: 0; transform-origin: 50% 100%; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1), opacity .3s; }
.ramu-say .say { opacity: 0; transform: scale(.6); transform-origin: right center; transition: opacity .3s .5s, transform .4s cubic-bezier(.34, 1.56, .64, 1) .5s; }
.ramu-say.is-in img, .ramu-say.is-in .say { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ramu-say img, .ramu-say .say { opacity: 1; transform: none; transition: none; }
}
@media print { .ramu-say img, .ramu-say .say { opacity: 1; transform: none; } }

/* 見出しの右のらむくん */
.sh__ramu .say { position: relative; }
.sh__ramu img { width: 120px; }
@media (max-width: 47.5rem) {
  .sh__ramu { order: 3; width: 100%; justify-content: flex-end; margin-top: -8px; }
  .sh__ramu img { width: 84px; }
  .say { font-size: 12px; padding: 8px 12px; }
}

/* ---------- 番号は筆文字の漢数字 ---------- */
.num { font-family: var(--font-fude); font-weight: 400; color: var(--c-accent); font-size: 48px; line-height: 1; }
.tone-inverse .num, .tone-accent .num { color: var(--c-ai-l); }

/* ---------- 札・カード: 角を立て、紺の細い二重線 ---------- */
.card { border-radius: 0; background: var(--c-washi-l); border: 1px solid rgb(31 44 69 / .55); box-shadow: inset 0 0 0 5px var(--c-washi-l), inset 0 0 0 6px rgb(31 44 69 / .22); }
.card-title { font-family: var(--font-heading); color: var(--c-accent); letter-spacing: .04em; }
.tone-inverse .card-title, .tone-accent .card-title { color: #fff; }

/* お困りごと（4枚の札） */
.fuda { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fuda li { background: var(--c-washi-l); border: 1px solid rgb(31 44 69 / .55); box-shadow: inset 0 0 0 5px var(--c-washi-l), inset 0 0 0 6px rgb(31 44 69 / .22); padding: 30px 24px 28px; color: var(--c-text); }
.fuda__num { display: block; font-family: var(--font-fude); font-size: 56px; line-height: 1; color: var(--c-accent); }
.fuda h3 { font-size: 20px; margin: 14px 0 8px; letter-spacing: .04em; color: var(--c-accent); line-height: 1.5; }
.fuda p { font-size: 14px; line-height: 1.8; }
.fuda--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 59.9375rem) { .fuda, .fuda--3 { grid-template-columns: 1fr 1fr; } }
/* スマホは1列にし、漢数字を左、見出しと文を右に置く（2列だと1行が8字ほどになり読みにくい） */
@media (max-width: 47.5rem) {
  .fuda, .fuda--3 { grid-template-columns: 1fr; gap: 10px; }
  .fuda li { padding: 18px 18px 18px 16px; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
  .fuda__num { font-size: 38px; grid-row: span 2; text-align: center; }
  .fuda h3 { font-size: 17px; margin: 2px 0 4px; }
  .fuda p { font-size: 14px; line-height: 1.75; }
}

/* 途中の相談の帯（最初の画面と同じグラデーションと内側の線） */
.band-wrap { position: relative; margin-top: 150px; }
.band { position: relative; z-index: 1; background: var(--g-kon); color: #fff; padding: 34px 230px 34px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.band::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgb(255 255 255 / .25); pointer-events: none; }
.band p { position: relative; font-family: var(--font-heading); font-size: 20px; letter-spacing: .04em; line-height: 1.6; }
.band p small { display: block; font-family: var(--font-sans); font-size: 13px; opacity: .85; letter-spacing: 0; }
.band .wbtns { position: relative; flex: none; margin-top: 0; }
.band .wbtn { padding: 14px 22px; }
.band__ramu { position: absolute; width: 130px; right: 40px; bottom: 20px; z-index: 0; }
.band-wrap--plain { margin-top: 64px; }
.band-wrap--plain .band { padding-right: 40px; }
@media (max-width: 59.9375rem) {
  .band { flex-direction: column; align-items: stretch; padding: 24px 20px; }
  .band-wrap { margin-top: 120px; }
  .band__ramu { width: 100px; right: 16px; bottom: auto; top: -112px; }
}

/* ---------- 写真: 少し離した細い枠 ---------- */
.split__media img, .feature-rows img, .case-card img, .member img { border-radius: 0; outline: 1px solid rgb(31 44 69 / .35); outline-offset: 6px; }
.tone-inverse .split__media img, .tone-inverse .feature-rows img { outline-color: rgb(255 255 255 / .3); }

/* 施工事例（工事の途中の写真と、施工前・施工後） */
.case-h { font-family: var(--font-heading); font-size: 21px; margin-bottom: 18px; padding-left: 14px; border-left: 3px solid var(--c-ai-l); line-height: 1.4; }
.wsteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wsteps figure { position: relative; margin: 0; }
.wsteps img { display: block; width: 100%; height: auto; aspect-ratio: 540 / 474; object-fit: cover; outline: 1px solid rgb(255 255 255 / .3); outline-offset: 5px; }
.wsteps figcaption { margin-top: 16px; font-size: 14px; font-weight: 700; display: flex; gap: 10px; align-items: baseline; }
.wsteps figcaption b { font-family: var(--font-fude); font-size: 26px; font-weight: 400; color: var(--c-ai-l); }
.wsteps figure:not(:last-child)::after { content: ""; position: absolute; right: -13px; top: 38%; border: 6px solid transparent; border-left: 9px solid currentColor; }
.wpair { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 24px; align-items: center; margin-top: 72px; }
.wpair figure { position: relative; margin: 0; }
.wpair figure img { display: block; width: 100%; height: auto; outline: 1px solid rgb(255 255 255 / .3); outline-offset: 5px; }
.wpair figcaption { position: absolute; top: 0; left: 0; background: #fff; color: var(--c-accent); font-size: 12px; font-weight: 700; padding: 4px 12px; }
.wpair .is-after figcaption { background: var(--c-ai); color: #fff; }
.wpair__txt { position: relative; padding-bottom: 120px; }
.wpair__txt p { font-size: 15px; margin-top: 4px; }
.wpair__ramu { position: absolute; width: 130px; right: 0; bottom: -60px; }
.wpair__ramu .say { right: 130px; top: 40px; }
.section:not([class*="tone-"]) .wsteps img, .section:not([class*="tone-"]) .wpair figure img { outline-color: rgb(31 44 69 / .35); }
.section:not([class*="tone-"]) .wpair figcaption { background: var(--c-accent); color: #fff; }
.section:not([class*="tone-"]) .wpair .is-after figcaption { background: var(--c-ai); }
.section:not([class*="tone-"]) .wsteps figcaption b { color: var(--c-ai); }
.more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 2px; text-decoration: none; }
@media (max-width: 47.5rem) {
  .wsteps { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .wsteps figure:nth-child(2)::after { display: none; }
  .wpair { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
  .wpair__txt { grid-column: 1 / -1; padding-bottom: 0; }
  .wpair__ramu { position: relative; right: auto; bottom: auto; width: 96px; margin: 12px 0 -20px auto; }
  .wpair__ramu .say { right: 100px; top: 20px; }
}

/* 入口2つ（写真の上に縦書きの題） */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.door { position: relative; display: block; aspect-ratio: 4 / 3; color: #fff; overflow: hidden; text-decoration: none; }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.door:hover img { transform: scale(1.04); }
.door::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(200deg, rgb(20 28 46 / .15) 20%, rgb(20 28 46 / .88) 85%); }
.door::after { content: ""; position: absolute; inset: 10px; z-index: 1; border: 1px solid rgb(255 255 255 / .4); }
.door h3 { position: absolute; z-index: 2; top: 34px; right: 34px; writing-mode: vertical-rl; font-size: 30px; letter-spacing: .18em; font-weight: 700; color: #fff; text-shadow: 0 2px 10px rgb(0 0 0 / .4); }
.door__in { position: absolute; z-index: 2; left: 34px; bottom: 30px; right: 110px; }
.door__in small { font-size: 13px; opacity: .85; }
.door__in p { font-size: 14px; line-height: 1.8; margin-top: 4px; color: #fff; }
.door__go { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; border-bottom: 1px solid #fff; }
@media (max-width: 47.5rem) {
  .doors { grid-template-columns: 1fr; gap: 16px; }
  .door { aspect-ratio: 4 / 3.4; }
  .door h3 { font-size: 24px; top: 24px; right: 24px; }
  .door__in { left: 22px; bottom: 20px; right: 80px; }
}

/* 社長（縦書きの名前と写真） */
.boss { display: grid; grid-template-columns: auto 360px 1fr; gap: 56px; align-items: center; }
.boss__name { display: flex; gap: 12px; align-items: flex-start; writing-mode: vertical-rl; font-family: var(--font-heading); }
.boss__name h2 { font-size: 38px; font-weight: 700; line-height: 1.2; letter-spacing: .25em; color: inherit; }
.boss__role { font-size: 15px; opacity: .8; letter-spacing: .3em; padding-top: .4em; }
.boss__photo { outline: 1px solid rgb(255 255 255 / .3); outline-offset: 8px; }
.boss__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.boss__txt { position: relative; padding-bottom: 40px; }
.boss__list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.boss__list li { font-size: 14px; padding-left: 20px; position: relative; }
.boss__list li::before { content: ""; position: absolute; left: 0; top: .75em; width: 10px; height: 1px; background: var(--c-ai-l); }
.boss__ramu { position: absolute; width: 140px; right: 0; bottom: -120px; }
.boss__ramu .say { right: 140px; top: 40px; }
@media (max-width: 59.9375rem) {
  .boss { grid-template-columns: 1fr; gap: 28px; }
  .boss__name { writing-mode: horizontal-tb; flex-direction: column; gap: 0; }
  .boss__name h2 { font-size: 28px; letter-spacing: .12em; }
  .boss__photo { max-width: 260px; }
  .boss__txt { padding-bottom: 0; }
  .boss__ramu { position: relative; right: auto; bottom: auto; width: 96px; margin: 16px 0 -24px auto; }
  .boss__ramu .say { right: 100px; top: 20px; }
}

/* 流れ（筆の輪に漢数字、輪の間は点線） */
.wflow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.wflow--3 { grid-template-columns: repeat(3, 1fr); }
.wflow--5 { grid-template-columns: repeat(5, 1fr); }
.wflow li { text-align: center; position: relative; }
.wflow li:not(:last-child)::after { content: ""; position: absolute; top: 44px; left: calc(50% + 54px); right: calc(-50% + 34px); border-top: 1px dashed rgb(31 44 69 / .5); }
.wflow__c { position: relative; width: 88px; height: 88px; margin: 0 auto 14px; display: grid; place-items: center; color: var(--c-accent); }
.wflow__c svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wflow__c span { position: relative; font-family: var(--font-fude); font-size: 38px; }
.wflow h3 { font-size: 18px; color: var(--c-accent); }
.wflow p { font-size: 14px; margin-top: 6px; line-height: 1.7; }
.wflow__dur { color: var(--c-ai); font-weight: 700; }
.tone-inverse .wflow__c, .tone-inverse .wflow h3 { color: #fff; }
.tone-inverse .wflow li:not(:last-child)::after { border-color: rgb(255 255 255 / .4); }
@media (max-width: 59.9375rem) {
  .wflow, .wflow--3, .wflow--5 { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .wflow li::after { display: none; }
}
/* スマホは縦に1列。輪を左、見出しと文を右に置き、輪の間を縦の点線でつなぐ */
@media (max-width: 47.5rem) {
  .wflow, .wflow--3, .wflow--5 { grid-template-columns: 1fr; gap: 22px; }
  .wflow li { text-align: left; display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; align-content: start; }
  .wflow__c { width: 64px; height: 64px; margin: 0; grid-row: span 3; }
  .wflow__c span { font-size: 28px; }
  .wflow h3 { margin-top: 4px; }
  .wflow p { margin-top: 4px; }
  .wflow li:not(:last-child)::after { display: block; top: 70px; bottom: -18px; left: 32px; right: auto; border-top: 0; border-left: 1px dashed rgb(31 44 69 / .5); }
  .tone-inverse .wflow li:not(:last-child)::after { border-color: rgb(255 255 255 / .4); }
}

/* ---------- 問い合わせの面（グラデーション） ---------- */
.section.section--cta.wcta { background: var(--g-kon); color: #fff; --c-text: #fff; --c-text-muted: rgb(255 255 255 / .85); }
.section:not([class*="tone-"]) + .wcta, .wcta { padding-top: calc(var(--gap-section) + var(--eave)); }
.section.section--cta.wcta::before { content: ""; position: absolute; inset: calc(24px + var(--eave)) 24px 24px; border: 1px solid rgb(255 255 255 / .2); pointer-events: none; }
.wcta__in { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.wcta .section-head { margin-bottom: 28px; }
.wcta .sh__fude, .wcta .section-title, .wcta .section-head .stroke { color: #fff; }
.wcta .eyebrow { color: var(--c-ai-l); }
.wcta__tel { display: block; font-size: clamp(36px, 5vw, 58px); font-weight: 700; letter-spacing: .04em; line-height: 1.2; color: #fff; text-decoration: none; }
.wcta__hours { font-size: 14px; opacity: .9; }
.wcta__form { display: inline-block; font-size: 14px; margin-top: 4px; padding: 12px 0 2px; color: #fff; border-bottom: 1px solid rgb(255 255 255 / .6); text-decoration: none; }
.wcta__ramu { width: 230px; }
.wcta__ramu .say { right: 200px; top: 10px; }
@media (max-width: 47.5rem) {
  .wcta::before { inset: calc(12px + var(--eave)) 12px 12px; }
  .wcta__in { grid-template-columns: 1fr; }
  .wcta__ramu { width: 140px; margin-left: auto; }
  .wcta__ramu .say { right: 130px; top: 6px; }
}

/* ---------- 下層の見出し（グラデーションに筆の一文字） ---------- */
.page-header { position: relative; background: var(--g-kon); color: #fff; --eave-c: var(--c-accent); padding-block: clamp(4rem, 3rem + 4vw, 7rem) calc(clamp(3rem, 2rem + 3vw, 5rem) + var(--eave)); }
.page-header::before { content: ""; position: absolute; inset: 16px 16px calc(16px + var(--eave)); border: 1px solid rgb(255 255 255 / .25); pointer-events: none; }
.page-header__inner { display: flex; align-items: center; gap: 32px; position: relative; }
.page-header__fude { font-family: var(--font-fude); font-size: clamp(88px, 10vw, 140px); line-height: 1; flex: none; }
.page-header__text { flex: 1; min-width: 0; }
.page-header .eyebrow { color: var(--c-ai-l); }
.page-header__title { color: #fff; letter-spacing: .06em; font-weight: 700; }
.page-header .stroke { display: block; width: 220px; height: 16px; margin-top: 10px; color: #fff; }
.page-header__lead { color: rgb(255 255 255 / .88); font-size: 15px; }
.page-header + .section { padding-top: calc(var(--gap-section) + var(--eave)); }
@media (max-width: 47.5rem) {
  .page-header__inner { gap: 16px; }
  .page-header__fude { font-size: 56px; align-self: flex-start; margin-top: 1.2em; }
  .page-header__title { font-size: clamp(24px, 7vw, 28px); line-height: 1.5; }
  .page-header .stroke { width: 160px; }
}

/* ---------- そのほかの部品 ---------- */
.faq__q { font-family: var(--font-heading); }
.faq__q::before { font-family: var(--font-fude); }
.info-table th { font-family: var(--font-heading); color: var(--c-accent); }
.info-table th, .info-table td { border-color: rgb(31 44 69 / .2); }
.field input, .field select, .field textarea { border-radius: 0; background: #fff; }
.prose h2, .prose h3 { color: var(--c-accent); }
.tone-inverse .prose h2, .tone-inverse .prose h3 { color: #fff; }
.mobile-bar { border-radius: 0; }

/* ---------- トップの一枚目（01 の名刺の色のまま） ---------- */
.wa-hero { position: relative; overflow: hidden; display: grid; place-items: center; min-height: calc(100svh - var(--header-h)); background: var(--g-kon); color: #fff; }
.wa-hero::before { content: ""; position: absolute; inset: 24px; border: 1px solid rgb(255 255 255 / .25); pointer-events: none; }
.wa-hero__in { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 40px 96px; padding-block: 72px; }
.wa-hero__logo { width: min(380px, 60vw); height: auto; }
.wa-hero__title { writing-mode: vertical-rl; text-orientation: upright; font-size: clamp(34px, 4vw, 50px); font-weight: 700; line-height: 1.7; letter-spacing: .12em; height: 9.2em; color: #fff; }
.wa-hero__lead { grid-column: 1 / -1; max-width: 640px; margin: 0 auto; font-size: 15px; opacity: .92; text-align: center; }
.wa-hero .wbtns { grid-column: 1 / -1; justify-content: center; margin-top: 0; }
@media (max-width: 47.5rem) {
  .wa-hero::before { inset: 12px; }
  .wa-hero__in { grid-template-columns: 1fr; gap: 28px; justify-items: center; padding-block: 56px; }
  .wa-hero__logo { width: 200px; }
  .wa-hero__title { writing-mode: horizontal-tb; height: auto; font-size: 28px; text-align: center; }
  .wa-hero .wbtn { flex: 1 1 100%; }
}

/* ---------- 鬼瓦の帯 ---------- */
.wa-oni { position: relative; color: #fff; background: var(--c-night); --eave-c: var(--c-night); }
.wa-oni__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 45%; }
.wa-oni::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(20 28 46 / .05) 0%, rgb(20 28 46 / .35) 45%, rgb(20 28 46 / .92) 75%); }
.wa-oni__in { position: relative; z-index: 1; min-height: 640px; display: flex; justify-content: flex-end; align-items: center; gap: 48px; padding-block: 80px; }
.wa-oni__title { writing-mode: vertical-rl; text-orientation: upright; font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; line-height: 1.7; letter-spacing: .12em; height: 9em; color: #fff; }
.wa-oni__txt { width: 460px; }
.wa-oni__txt > p { font-size: 15px; opacity: .92; }
.wa-oni__cap { position: absolute; left: 24px; bottom: calc(18px + var(--eave)); z-index: 1; font-size: 12px; opacity: .85; }
.wa-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 24px 0 0; background: rgb(255 255 255 / .25); border: 1px solid rgb(255 255 255 / .25); }
.wa-nums div { background: rgb(20 28 46 / .6); padding: 16px 18px; }
.wa-nums dt { font-family: var(--font-heading); font-size: 30px; line-height: 1.3; letter-spacing: .04em; font-weight: 700; }
.wa-nums dt small { font-size: 15px; margin-left: 2px; }
.wa-nums dd { margin: 0; font-size: 13px; opacity: .85; }
.wa-oni + .section { padding-top: calc(var(--gap-section) + var(--eave)); }
@media (max-width: 47.5rem) {
  .wa-oni::before { background: linear-gradient(180deg, rgb(20 28 46 / .1) 0%, rgb(20 28 46 / .5) 35%, rgb(20 28 46 / .95) 60%); }
  .wa-oni__img { height: 55%; object-position: 22% 0; }
  .wa-oni__in { flex-direction: column; align-items: flex-start; justify-content: flex-end; min-height: 720px; gap: 16px; padding-block: 80px 56px; }
  .wa-oni__title { writing-mode: horizontal-tb; height: auto; font-size: 28px; }
  .wa-oni__txt { width: 100%; }
  .wa-oni__cap { left: auto; right: 16px; top: 16px; bottom: auto; }
  .wa-nums dt { font-size: 24px; }
  .wa-nums div { padding: 14px 12px; }
  .wa-nums dd { font-size: 12px; line-height: 1.6; }
}

.band p small, .wa-nums dt small { color: inherit; }

/* 紹介が1人（らむくん）だけの時は、写真と文を横に並べる */
.section--members .card-grid:has(> .member:only-child) { grid-template-columns: 1fr; }
.section--members .card-grid > .member:only-child { max-width: 760px; display: flex; align-items: center; gap: 40px; }
.section--members .member:only-child .member__photo { flex: 0 0 280px; }
/* らむくんは絵なので切り抜かずに全身を見せ、札と同じ紺の細い二重線で囲む */
.section--members .member:only-child .member__photo { background: #fff; border: 1px solid rgb(31 44 69 / .55); box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px rgb(31 44 69 / .22); padding: 18px; }
.section--members .member:only-child .member__photo img { aspect-ratio: auto; object-fit: contain; outline: 0; margin: 0; max-height: 420px; width: auto; max-width: 100%; display: block; margin-inline: auto; }
@media (max-width: 640px) {
  .section--members .card-grid > .member:only-child { display: block; margin-inline: auto; }
  .section--members .member:only-child .member__photo { width: min(100%, 260px); margin: 0 auto 20px; padding: 14px; }
  .section--members .member:only-child .member__photo img { max-height: 340px; }
  .section--members .member:only-child .member__txt { text-align: center; }
}

/* 札が5枚の時は、PC で1列に並べて1枚だけ下に残らないようにする */
@media (min-width: 60rem) {
  .fuda:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .fuda:has(> li:nth-child(5):last-child) li { padding: 26px 18px 24px; }
  .fuda:has(> li:nth-child(5):last-child) h3 { font-size: 18px; }
}

/* 施工事例の「工事前・工事・仕上がり」。項目名を1行に収め、紺の面では薄藍にして読めるようにする */
.case__facts > div { grid-template-columns: 4.5em 1fr; }
.case__facts dt { white-space: nowrap; }
.tone-inverse .case__facts dt { color: var(--c-ai-l); }
.tone-inverse .case__facts dd { color: rgb(254 254 254 / .82); }
.case__facts--post { margin: 0 0 var(--sp-7); padding: 18px 20px; border: 1px solid rgb(31 44 69 / .35); box-shadow: inset 0 0 0 3px var(--c-bg), inset 0 0 0 4px rgb(31 44 69 / .2); font-size: var(--fs-base); }

/* 右下のらむくん: 宙に浮かせず、画面の下の端から顔をのぞかせる（スマホは電話と LINE の帯の後ろから）。
   絵の下の透明な所と肩の切れ目を端の下に隠し、影と揺れは付けない */
.ramu-corner { right: 18px; bottom: 0; width: 7.5rem; transform: translateY(100%); transition: transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.ramu-corner.is-in { transform: translateY(17%); animation: none; }
.ramu-corner img { filter: none; }
.ramu-corner__bubble { right: 92%; top: 22%; padding: 8px 14px; font-size: 13px; border-radius: 18px; opacity: 0; transition: opacity .3s .6s; }
.ramu-corner.is-in .ramu-corner__bubble { opacity: 1; }
@media (max-width: 959px) {
  .ramu-corner { right: 10px; bottom: calc(4rem + env(safe-area-inset-bottom, 0px)); width: 4.75rem; z-index: 44; }
  .ramu-corner.is-in { transform: translateY(19%); }
}
@media (prefers-reduced-motion: reduce) { .ramu-corner, .ramu-corner__bubble { transition: none; } }

/* 言葉の途中で改行しない。改行してよい位置はビルド時に文節ごとの <wbr> で入れてある（site.yml の phraseWrap） */
body { word-break: keep-all; overflow-wrap: anywhere; }
/* 改行の位置を決めてある所（吹き出しは \n で改行）では、文節の区切りを使わない */
.say wbr, .case__facts dt wbr { display: none; }
