/* レイアウト: 企業サイトの型。細い案内帯＋大きなメニュー → 画面幅いっぱいの大きな見出し → サービスの入口（主力2つを大きく）→ 数字の帯 → 事例 → エリア → お知らせ → 問い合わせ → 全ページが並ぶ大きなフッター。
   画面は2つ: トップ（#top）と、サービスごとのページの見本（#taikyo-tachiai） */
:root {
  --bg: #f4f7f8; --surface: #ffffff; --ink: #10242c; --muted: #55676e; --line: #d5dee1;
  --deep: #0c2f3b; --deep2: #124a5a; --deep-ink: #f1f7f8; --deep-muted: #a8c3c9;
  --accent: #b8322a; --accent-ink: #ffffff; --tint: #e4eef0; --ok: #1d6f5c; --point: #c8372d;
  --room-wall: #1b5567; --room-floor: #0f3e4c; --room-light: #f6e7b4; --room-line: #7fb0bb;
  --f-head: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --f-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --gut-l: max(16px, env(safe-area-inset-left, 0px)); --gut-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0d171b; --surface: #152329; --ink: #e6eef0; --muted: #9db0b6; --line: #2a3c43;
  --deep: #081f27; --deep2: #0e3441; --deep-ink: #f1f7f8; --deep-muted: #9bb6bd;
  --accent: #e2594f; --accent-ink: #1a0806; --tint: #1b2e35; --ok: #5cc3a8;
  --room-wall: #134352; --room-floor: #0b2c37; --room-light: #e9d79a; --room-line: #6c9aa5; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0d171b; --surface: #152329; --ink: #e6eef0; --muted: #9db0b6; --line: #2a3c43;
  --deep: #081f27; --deep2: #0e3441; --deep-ink: #f1f7f8; --deep-muted: #9bb6bd;
  --accent: #e2594f; --accent-ink: #1a0806; --tint: #1b2e35; --ok: #5cc3a8;
  --room-wall: #134352; --room-floor: #0b2c37; --room-light: #e9d79a; --room-line: #6c9aa5; color-scheme: dark }
* { box-sizing: border-box }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.85 }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface) }
a { color: inherit }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.35; margin: 0; text-wrap: balance }
p { margin: 0 }
.in { max-width: 1200px; margin: 0 auto; padding-left: var(--gut-l); padding-right: var(--gut-r) }

.draft { background: var(--tint); color: var(--muted); font-size: 13px; text-align: center; padding-block: 5px }
.util { background: var(--deep); color: var(--deep-muted); font-size: 12px }
.util .in { display: flex; justify-content: flex-end; gap: 22px; padding-block: 6px }
.util a { text-decoration: none }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--surface); border-bottom: 1px solid var(--line) }
.top .in { display: flex; align-items: center; gap: 26px; padding-block: 14px }
.logo { font-family: var(--f-head); font-weight: 900; font-size: 21px; text-decoration: none; display: flex; align-items: center; gap: 9px; white-space: nowrap; letter-spacing: .04em }
.sec-h .en::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--point); margin-right: 8px; vertical-align: 1px }
label em { color: var(--point) }
/* 理念 */
.rinen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start }
.rinen .mission { font-family: var(--f-head); font-weight: 900; font-size: clamp(28px, 4.2vw, 50px); line-height: 1.45 }
.rinen .mission i { font-style: normal; border-bottom: 3px solid var(--point); padding-bottom: 2px }
.rinen .vision { margin-top: 22px; color: var(--muted) }
.rinen .vision b { color: var(--ink); font-family: var(--f-head); display: block; font-size: 13px; letter-spacing: .1em; margin-bottom: 2px }
.rinen ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 }
.rinen li { padding-block: 18px; border-top: 1px solid var(--line) }
.rinen li:last-child { border-bottom: 1px solid var(--line) }
.rinen li b { font-family: var(--f-head); font-size: 19px; display: block }
.rinen li span { color: var(--muted); font-size: 15px }
@media (max-width: 860px) { .rinen { grid-template-columns: minmax(0, 1fr); gap: 28px } }
.logo i { width: 13px; height: 18px; background: var(--point); border-radius: 60% 60% 60% 60% / 40% 40% 75% 75%; transform: rotate(18deg); display: inline-block }
.nav { display: flex; gap: 26px; margin-left: auto; font-family: var(--f-head); font-weight: 700; font-size: 15px }
.nav a { text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent }
.nav a:hover { border-color: var(--accent) }
.top-tel { font-family: var(--f-head); font-weight: 900; font-size: 20px; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.2 }
.top-tel small { display: block; font-size: 11px; font-weight: 500; color: var(--muted) }
@media (max-width: 1020px) { .nav, .top-tel, .util { display: none } .top .in { justify-content: space-between } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--f-head); font-weight: 700; font-size: 16px; text-decoration: none; border-radius: 999px; padding: 15px 30px; border: 2px solid transparent; cursor: pointer }
.btn.main { background: var(--accent); color: var(--accent-ink) }
.btn.line { border-color: currentColor }
.btn.sm { padding: 9px 20px; font-size: 14px }
.more { font-family: var(--f-head); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px }
.more::after { content: "→"; transition: transform .15s }
a:hover > .more::after, .more:hover::after { transform: translateX(4px) }

/* 大きな見出し */
.hero { position: relative; background: linear-gradient(120deg, var(--deep) 0%, var(--deep2) 100%); color: var(--deep-ink); overflow: hidden }
.hero svg { position: absolute; right: 0; bottom: 0; height: 100%; width: auto; max-width: none; opacity: .9 }
.hero .in { position: relative; padding-block: clamp(64px, 11vw, 150px) clamp(56px, 9vw, 120px) }
.hero .eyebrow { font-size: 14px; letter-spacing: .2em; color: var(--deep-muted); margin-bottom: 20px }
.hero h1 { font-size: clamp(36px, 6.6vw, 84px); font-weight: 900; letter-spacing: .02em; line-height: 1.25 }
.hero .lead { margin-top: 26px; font-size: clamp(15px, 1.5vw, 19px); max-width: 30em; color: var(--deep-ink) }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px }
/* 顔を見せる: 見出しの横に代表の写真 */
html.no-rep [data-rep] { display: none !important }
[data-norep] { display: none }
html.no-rep [data-norep] { display: block }
.flow { margin: 0 }
.hero .flowsvg { position: static; display: block; width: 100%; max-width: 560px; height: auto; margin-inline: auto; opacity: 1; font-family: var(--f-head) }
.flowsvg .ring { fill: none; stroke: color-mix(in srgb, var(--deep-ink) 30%, transparent); stroke-width: 2 }
.flowsvg .sp line { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 5; opacity: .7 }
.flowsvg .ar path { fill: color-mix(in srgb, var(--deep-ink) 55%, transparent) }
.flowsvg .nd { fill: var(--surface); stroke: var(--line); stroke-width: 1.5 }
.flowsvg .nb { fill: var(--accent) } .flowsvg .nn { fill: var(--accent-ink); font-size: 12px; font-weight: 700; text-anchor: middle }
.flowsvg .nl { fill: var(--ink); font-size: 15px; font-weight: 700 } .flowsvg .ns { fill: var(--muted); font-size: 11.5px; font-family: var(--f-body) }
.flowsvg .nt { fill: var(--ink); font-size: 19px; font-weight: 900 } .flowsvg .fr { fill: color-mix(in srgb, var(--surface) 55%, transparent); stroke: var(--line); stroke-width: 1.5 }
.flowsvg .li circle { fill: var(--accent) } .flowsvg .li text { fill: var(--ink); font-size: 12.5px; font-family: var(--f-body) }
.flowsvg .base { fill: color-mix(in srgb, var(--accent) 12%, var(--surface)); stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 4 } .flowsvg .bt { fill: var(--ink); font-size: 16px; font-weight: 700; text-anchor: middle } .flowsvg .dk { fill: var(--muted); font-size: 13px; font-weight: 700; text-anchor: middle }
.flow figcaption.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
.flowsvg .hub { fill: var(--accent) } .flowsvg .h0, .flowsvg .h1, .flowsvg .h2 { fill: var(--accent-ink); text-anchor: middle }
.flowsvg .h0 { font-size: 13px; font-weight: 700 } .flowsvg .h1 { font-size: 21px; font-weight: 900 } .flowsvg .h2 { font-size: 12px; font-family: var(--f-body); opacity: .9 }
.flow figcaption { margin-top: 10px; font-family: var(--f-head); font-weight: 700; font-size: 17px; text-align: center }
.flow figcaption small { display: block; font-weight: 500; font-size: 13px; color: var(--deep-muted) }
.hero-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center }
.face { margin: 0 }
.face .shot { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px }
.greet .gshot { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px }
.face .slot { aspect-ratio: 4 / 5; max-width: 100%; border-radius: 999px 999px 6px 6px; background: color-mix(in srgb, var(--deep-ink) 9%, transparent); border: 1px solid color-mix(in srgb, var(--deep-ink) 28%, transparent); display: grid; place-items: center; text-align: center; font-size: 13px; color: var(--deep-muted); padding: 16px }
.face figcaption { margin-top: 12px; font-family: var(--f-head); font-weight: 700; font-size: 17px }
.face figcaption small { display: block; font-weight: 500; font-size: 13px; color: var(--deep-muted) }
@media (max-width: 860px) { .hero-g { grid-template-columns: minmax(0, 1fr); gap: 30px } }
.greet { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: center }
.greet .ph { aspect-ratio: 4 / 5; border-radius: 6px }
.greet blockquote { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.6 }
.greet p { color: var(--muted); margin-top: 16px; max-width: 38em }
.greet .sig { margin-top: 20px; font-family: var(--f-head); font-weight: 700; color: var(--ink) }
@media (max-width: 720px) { .greet { grid-template-columns: minmax(0, 1fr); gap: 24px } .greet .gshot { max-width: 260px } }

section { padding-block: clamp(48px, 7vw, 96px) }
section.alt { background: var(--surface) }
.sec-h { margin-bottom: 34px; display: flex; flex-direction: column; gap: 10px }
.sec-h .en { font-family: var(--f-head); font-size: 13px; letter-spacing: .22em; color: var(--accent); font-weight: 700 }
.sec-h h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 900 }
.sec-h p { color: var(--muted); max-width: 40em }
.grid { display: grid; gap: 20px }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)) }
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)) } .g3 { grid-template-columns: minmax(0, 1fr) } }
@media (max-width: 720px) { .g2, .g4 { grid-template-columns: minmax(0, 1fr) } }

/* 主力サービス（大きな入口） */
.big { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 340px; padding: 30px; border-radius: 4px; text-decoration: none; color: var(--deep-ink); background: linear-gradient(180deg, color-mix(in srgb, var(--deep2) 55%, transparent) 0%, var(--deep) 78%), repeating-linear-gradient(135deg, var(--deep2) 0 14px, var(--deep) 14px 28px) }
.big .slot { position: absolute; top: 14px; right: 16px; font-size: 12px; color: var(--deep-muted) }
.big .k { font-size: 13px; color: var(--deep-muted); letter-spacing: .1em }
.big h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 900 }
.big p { font-size: 15px; color: var(--deep-muted); max-width: 28em }
.small { display: flex; flex-direction: column; gap: 8px; padding: 24px 0 0; border-top: 3px solid var(--deep); text-decoration: none }
.small h3 { font-size: 19px }
.small p { font-size: 14px; color: var(--muted) }
.upsell { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; background: var(--tint); padding: 26px 30px; border-radius: 4px; text-decoration: none }
.upsell .k { font-size: 13px; color: var(--ok); font-weight: 700 }
.upsell h3 { font-size: 20px; margin: 2px 0 4px }
.upsell p { font-size: 14px; color: var(--muted) }
@media (max-width: 720px) { .upsell { grid-template-columns: minmax(0, 1fr) } .big { min-height: 260px } }

/* 数字の帯 */
.nums { background: var(--deep); color: var(--deep-ink); padding-block: clamp(40px, 6vw, 72px) }
.nums .in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px }
@media (max-width: 1020px) { .nums .in { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px } }
.nums b { font-family: var(--f-head); font-weight: 900; font-size: clamp(34px, 4.6vw, 60px); white-space: nowrap; line-height: 1.15; display: block; font-variant-numeric: tabular-nums }
.nums b small { font-size: .42em; margin-left: 4px }
.nums b small.pre { margin-left: 0; margin-right: 4px }
.nums span { color: var(--deep-muted); font-size: 15px }
.quals { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 22px }
.quals .in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px }
.quals .ql { margin: 0; font-family: var(--f-head); font-weight: 900; font-size: 15px; letter-spacing: .08em }
.quals ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px }
.quals li { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px 7px 9px; font-family: var(--f-head); font-weight: 700; font-size: 15px; background: var(--bg) }
.quals li svg { width: 18px; height: 18px; fill: var(--accent); stroke: var(--accent-ink); flex: none }
.quals .qn { margin: 0; color: var(--muted); font-size: 13px }
.nums .in > div { border-left: 1px solid color-mix(in srgb, var(--deep-ink) 25%, transparent); padding-left: 22px }
@media (max-width: 720px) { .nums .in { grid-template-columns: minmax(0, 1fr) } }

.reason h3 { font-size: 20px; margin-bottom: 8px }
.reason p { color: var(--muted); font-size: 15px }
.reason { padding-top: 22px; border-top: 1px solid var(--line) }
a.rlink { display: block; text-decoration: none; color: inherit } a.rlink .more { margin-top: 12px; font-size: 15px }
.ph { aspect-ratio: 4 / 3; max-width: 100%; background: repeating-linear-gradient(135deg, var(--tint) 0 12px, var(--bg) 12px 24px); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: 13px }
.case { display: flex; flex-direction: column; gap: 10px; text-decoration: none }
.case .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px }
.case h3 { font-size: 17px }
.case p { font-size: 14px; color: var(--muted) }
.tag { font-size: 12px; color: var(--ok); font-weight: 700 }

.area { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: center }
.tiles { display: grid; gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "gunma tochigi ibaraki" "saitama saitama ibaraki" "saitama saitama chiba" }
.tiles a small { display: block; font-size: 11px; font-weight: 500; opacity: .8 }
.tiles a { background: var(--deep); color: var(--deep-ink); padding: 18px 6px; text-align: center; font-family: var(--f-head); font-weight: 700; font-size: 15px; display: grid; place-items: center; text-decoration: none; border-radius: 2px }
.tiles a:hover { background: var(--deep2) }
.area .note { margin-top: 14px; color: var(--muted); font-size: 14px }
@media (max-width: 720px) { .area { grid-template-columns: minmax(0, 1fr); gap: 28px } .tiles { max-width: 340px; order: 2 } }

.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line) }
.news li { display: grid; grid-template-columns: 7.5em 6.5em minmax(0, 1fr); gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); font-size: 15px; align-items: baseline }
.news time { color: var(--muted); font-variant-numeric: tabular-nums }
.news .c { font-size: 12px; border: 1px solid var(--line); text-align: center; padding: 1px 6px; color: var(--muted) }
@media (max-width: 720px) { .news li { grid-template-columns: 7.5em minmax(0, 1fr) } .news .c { justify-self: start } .news li span:last-child { grid-column: 1 / -1 } }

.join { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; border: 1px solid var(--line); padding: 32px; border-radius: 4px; background: var(--surface) }
.join h2 { font-size: 24px; margin-bottom: 6px }
.join p { color: var(--muted); font-size: 15px }
@media (max-width: 720px) { .join { grid-template-columns: minmax(0, 1fr) } }

/* サービスごとのページ（見本） */
/* サービスのページ（写真と相談ボタンを中心にした、すっきりした型） */
.ph { aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 12px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; background: repeating-linear-gradient(135deg, var(--tint) 0 14px, var(--surface) 14px 28px) }
.ph.tall { aspect-ratio: 3 / 2 }
.lp-hero .in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center }
.lp-hero .cta { margin-top: 28px }
.lp-hero h1 { word-break: keep-all; overflow-wrap: anywhere }
.lp-cards { gap: 28px 24px }
.lp-card h3 { font-size: 20px; margin: 14px 0 4px; word-break: keep-all; overflow-wrap: anywhere }
.lp-card p { color: var(--muted); font-size: 15px; margin: 0 }
a.lp-card { display: block; text-decoration: none; color: inherit } a.lp-card .more { margin-top: 10px; font-size: 15px }
@media (min-width: 961px) { .lp-cards.g4 { gap: 28px 18px } }
.lp-cards.g2 .ph { aspect-ratio: 16 / 9 }
.lp-cta { background: var(--deep); color: var(--deep-ink); text-align: center }
.lp-cta h2 { font-size: clamp(22px, 3.2vw, 34px); font-weight: 900 }
.lp-cta p { margin: 14px auto 0; max-width: 36em; color: var(--deep-muted) }
.lp-cta .cta { margin-top: 26px; display: flex; justify-content: center }
.lp-cta .btn { padding: 18px 56px; font-size: 18px }
@media (max-width: 860px) { .lp-hero .in { grid-template-columns: minmax(0, 1fr); gap: 28px } }
@media (max-width: 960px) { .lp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 520px) { .lp-cards { gap: 24px 16px } .lp-card h3 { font-size: 16.5px; letter-spacing: 0 } .lp-card p { font-size: 14px } }
table.info { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line) }
table.info th, table.info td { text-align: left; vertical-align: top; padding: 18px 12px; border-bottom: 1px solid var(--line); font-size: 15px }
table.info th { width: 9.5em; font-family: var(--f-head); font-weight: 700; white-space: nowrap }
table.info td b { font-family: var(--f-head) } table.info td span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px }
.policy h2 { font-size: 19px; margin: 30px 0 8px } .policy h2:first-child { margin-top: 0 } .policy p { color: var(--muted); max-width: 46em }
@media (max-width: 520px) { table.info th { width: 6.2em; white-space: normal } table.info th, table.info td { padding: 14px 6px } }
.crumb { font-size: 13px; color: var(--muted); padding-block: 14px }
.crumb a { text-decoration: none }
.phead { background: linear-gradient(120deg, var(--deep) 0%, var(--deep2) 100%); color: var(--deep-ink); padding-block: clamp(44px, 7vw, 96px) }
.phead .k { color: var(--deep-muted); font-size: 14px; letter-spacing: .12em; margin-bottom: 12px }
.phead h1 { font-size: clamp(30px, 5vw, 56px); font-weight: 900 }
.phead p { margin-top: 18px; max-width: 36em; color: var(--deep-muted) }
.seo { border-left: 4px solid var(--ok); background: var(--tint); padding: 14px 18px; font-size: 14px; color: var(--muted); margin-bottom: 30px }
.seo b { color: var(--ink) }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px }
.steps li { counter-increment: s; border-top: 3px solid var(--deep); padding-top: 14px }
.steps li::before { content: "STEP " counter(s); font-family: var(--f-head); font-weight: 900; font-size: 13px; color: var(--accent); letter-spacing: .1em; display: block }
.steps b { font-family: var(--f-head); font-size: 18px; display: block; margin: 2px 0 4px }
.steps span { font-size: 14px; color: var(--muted) }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr) } }
details { border-bottom: 1px solid var(--line); padding-block: 16px }
details summary { font-family: var(--f-head); font-weight: 700; cursor: pointer; font-size: 17px }
details p { margin-top: 8px; color: var(--muted); font-size: 15px; max-width: 46em }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px }
.two ul { margin: 0; padding-left: 1.2em; color: var(--muted) }
@media (max-width: 720px) { .two { grid-template-columns: minmax(0, 1fr); gap: 20px } }

.contact { background: linear-gradient(120deg, var(--deep) 0%, var(--deep2) 100%); color: var(--deep-ink) }
.contact .in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px }
.contact h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 900 }
.contact .lead { color: var(--deep-muted); margin-top: 10px }
.tel-big { display: block; font-family: var(--f-head); font-weight: 900; font-size: clamp(34px, 6vw, 56px); text-decoration: none; line-height: 1.2; margin-top: 26px; font-variant-numeric: tabular-nums; user-select: all }
.tel-note { color: var(--deep-muted); font-size: 14px }
form { background: var(--surface); color: var(--ink); border-radius: 4px; padding: 26px; display: grid; gap: 14px }
label { font-size: 14px; font-weight: 500; display: grid; gap: 4px }
label em { font-style: normal; color: var(--accent); font-size: 12px; margin-left: 6px }
input, textarea, select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); width: 100% }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px }
#sent { font-size: 14px; color: var(--ok); font-weight: 700 }
@media (max-width: 860px) { .contact .in { grid-template-columns: minmax(0, 1fr); gap: 28px } }
@media (max-width: 520px) { .row2 { grid-template-columns: minmax(0, 1fr) } }

/* 全ページが並ぶフッター */
footer { background: var(--deep); color: var(--deep-muted); font-size: 14px; padding-block: 48px 30px }
.fmap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px }
.fmap h3 { font-size: 14px; color: var(--deep-ink); margin-bottom: 10px; letter-spacing: .06em }
.fmap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px }
.fmap a { text-decoration: none }
.fmap a:hover { color: var(--deep-ink) }
.fend { margin-top: 36px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--deep-ink) 20%, transparent); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 12px }
@media (max-width: 960px) { .fmap { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
/* 画面の下にいつも付いてくる帯（PC・スマホ共通）。問い合わせ欄が見えている間は隠す */
footer { padding-bottom: 110px }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px color-mix(in srgb, var(--ink) 12%, transparent);
  padding: 10px var(--gut-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gut-l) }
.bar-in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 10px }
.bar-msg { margin-right: auto; font-family: var(--f-head); font-weight: 700; font-size: 15px; line-height: 1.4 }
.bar-msg small { display: block; font-weight: 500; color: var(--muted); font-size: 12px }
.bar .btn { padding: 11px 22px; font-size: 15px; white-space: nowrap }
.bar .num { font-variant-numeric: tabular-nums }
@media (max-width: 860px) {
  .bar-msg, .bar .num { display: none }
  .bar-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px }
  .bar .btn { padding: 10px 4px; font-size: 13px }
}
.pal { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-left: 10px }
.pal button { font: inherit; font-size: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 2px 10px; cursor: pointer }
.pal button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink) }
/* 色の見本（試作用の切り替え）。明るい見た目に固定 */
:root[data-pal="sky"] { --bg: #f3f9fd; --surface: #ffffff; --ink: #0d2c45; --muted: #4c6579; --line: #d2e3ee;
  --deep: #0b74c0; --deep2: #2aa6e0; --deep-ink: #ffffff; --deep-muted: #dcf0fb; --accent: #c8372d; --accent-ink: #ffffff; --tint: #e1f1fa; --ok: #0b74c0;
  --room-wall: #58bdec; --room-floor: #2b93d3; --room-light: #fff6c9; --room-line: #e8f6fd; color-scheme: light }
:root[data-pal="leaf"] { --bg: #f5faf6; --surface: #ffffff; --ink: #14301f; --muted: #50685a; --line: #d3e4d8;
  --deep: #17804f; --deep2: #3fae6e; --deep-ink: #ffffff; --deep-muted: #def4e4; --accent: #c8372d; --accent-ink: #ffffff; --tint: #e2f3e6; --ok: #17804f;
  --room-wall: #6fce8f; --room-floor: #2f9c63; --room-light: #fff6c9; --room-line: #e9f8ee; color-scheme: light }
:root[data-pal="soft"] { --bg: #fbfdfa; --surface: #ffffff; --ink: #1c3a28; --muted: #5a7263; --line: #dbe9de;
  --deep: #dcf0df; --deep2: #f2f9ee; --deep-ink: #1c3a28; --deep-muted: #527060; --accent: #2f8a57; --accent-ink: #ffffff; --tint: #ebf6ed; --ok: #2f8a57;
  --room-wall: #cfead4; --room-floor: #b3dcbc; --room-light: #fff3b8; --room-line: #6bb586; color-scheme: light }
:root[data-pal="white"] { --bg: #ffffff; --surface: #ffffff; --ink: #0d2c45; --muted: #4c6579; --line: #d6e6ef;
  --deep: #dcf1fa; --deep2: #f3fbfe; --deep-ink: #0d2c45; --deep-muted: #44637a; --accent: #0a7fc9; --accent-ink: #ffffff; --tint: #eaf6fb; --ok: #0f7a8a;
  --room-wall: #cbe9f6; --room-floor: #a6d6ee; --room-light: #fff0a8; --room-line: #5aa9cf; color-scheme: light }

/* ロゴ: 社名の ee が目（左右対称）＋赤い小さな口 */
.logo .lw { font-family: "Baloo 2", var(--f-head); font-weight: 800; font-size: 27px; letter-spacing: 0; color: #129b74; line-height: 1 }
.logo .ee { position: relative; display: inline-block; white-space: nowrap }
.logo .ee svg { width: .6em; height: .6em; vertical-align: -.04em; margin: 0 .015em; stroke: var(--ink) }
.logo .ee svg .w { fill: var(--surface) } .logo .ee svg .p { fill: var(--ink); stroke: none }
.logo .ee svg.mo { position: absolute; left: 50%; bottom: -.2em; width: .34em; height: auto; transform: translateX(-50%); margin: 0; stroke: var(--point) }
.logo .lw { position: relative; z-index: 0; display: inline-block }
.logo .ee.peek { margin: 0 .27em }
.logo .ee.peek svg { stroke: #14312a } .logo .ee.peek svg .w { fill: #fff } .logo .ee.peek svg .p { fill: #14312a }
.logo .ee .anc { display: inline-block; width: 0; height: 0; position: relative; vertical-align: baseline }
.logo .ee .anc img.deco { position: absolute; left: -.597em; bottom: -.01em; width: 2.26em; height: auto; max-width: none; z-index: -1; pointer-events: none }
.logo .lp { height: 40px; width: auto; display: block; margin: -6px -2px -2px 0 }
@media (max-width: 640px) { .logo .lp { height: 34px } .logo .lw { font-size: 23px } }
/* プルシ（絵本風の案内役）: 見出しの横に小さく添える（今は使っていない） */
.prs { display: flex; align-items: flex-end; gap: 10px; flex: none }
.prs img { width: clamp(84px, 11vw, 128px); height: auto; display: block }
.prs .say { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 7px 13px; font-size: 14px; font-weight: 700; margin-bottom: 38%; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.05) }
.sec-h.with-prs { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 18px }
.sec-h.with-prs > div:first-child { display: flex; flex-direction: column; gap: 10px; min-width: 0 }
@media (max-width: 640px) { .prs .say { font-size: 12px; padding: 5px 10px } .prs img { width: 76px } }
.contact .prs { margin-top: 22px } .contact .prs .say { border-color: transparent }
/* 施工事例の写真にプルシ（ぬいぐるみ）を重ねる仕組み: 写真は書きかえず、上に置くだけ */
.shot-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); background: var(--tint) }
.shot-wrap > img.bg { width: 100%; height: 100%; object-fit: cover; display: block }
.shot-wrap > img.pp { position: absolute; left: var(--px, 60%); bottom: var(--py, 6%); width: var(--pw, 22%); height: auto; filter: drop-shadow(0 6px 5px rgba(60,40,10,.28)) brightness(1.04) }
.shot-wrap > .cap { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 3px }
.case .note { font-size: 12px; color: var(--muted) }

/* ロゴ：英字の左下にカタカナ。葉が上へ出るぶん、上に少しあける */
.logo { flex-direction: column; align-items: flex-start; gap: 0; margin-top: 12px }
.logo .kana { font-family: var(--f-head); font-weight: 700; font-size: 10.5px; letter-spacing: .34em; color: var(--muted); line-height: 1; margin-top: 5px; padding-left: 1px }
.top .in { padding-block: 10px 12px }
@media (max-width: 640px) { .logo .kana { font-size: 9.5px; letter-spacing: .3em } }
/* 線のアイコン */
.ic { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none }
.icb { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--tint); color: var(--accent); flex: none }
.rinen li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; align-items: center }
.rinen li .icb { grid-row: 1 / span 2; grid-column: 1 }
.rinen .mission { font-size: clamp(28px, 3.7vw, 44px) }
.rinen li b, .rinen li span { grid-column: 2 }
.small { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; align-items: start }
.small .icb { grid-row: 1 / span 3 } .small h3, .small p, .small .more { grid-column: 2 }
.upsell { grid-template-columns: 52px minmax(0, 1fr) auto }
.upsell .icb { background: var(--surface) }
@media (max-width: 720px) { .upsell { grid-template-columns: minmax(0, 1fr) } }
.nums .ic { width: 30px; height: 30px; display: block; margin-bottom: 10px; color: var(--deep-muted) }

/* 写真（いまは画像生成で作った仮の画像） */
img.ph { display: block; width: 100%; height: auto; object-fit: cover; padding: 0; background: var(--tint) }
.big.hasimg { min-height: 420px; background: linear-gradient(180deg, transparent 0%, transparent 20%, color-mix(in srgb, var(--deep) 95%, transparent) 50%, var(--deep) 100%), var(--bgimg) center top / 100% auto no-repeat, var(--deep) }
@media (max-width: 720px) { .big.hasimg { min-height: 360px } }

/* スマホ・タブレットで2列のとき、最後の1枚が余るなら横長にして幅いっぱいに */
@media (max-width: 960px) {
  .lp-cards.g3 > :last-child, .lp-cards:not(.g2):not(.g4):not(.g3) > :last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; align-content: center }
  .lp-cards.g3 > :last-child > .ph, .lp-cards:not(.g2):not(.g4):not(.g3) > :last-child:nth-child(odd) > .ph { grid-row: 1 / span 4 }
  .lp-cards.g3 > :last-child > :not(.ph), .lp-cards:not(.g2):not(.g4):not(.g3) > :last-child:nth-child(odd) > :not(.ph) { grid-column: 2; align-self: start }
  .lp-cards.g3 > :last-child > h3, .lp-cards:not(.g2):not(.g4):not(.g3) > :last-child:nth-child(odd) > h3 { margin-top: 4px; align-self: end }
}

/* 下に固定の帯：募集のページでは業者様向けの言葉にする */
.bar-msg .for-partner { display: none } .on-boshu .bar-msg .for-client { display: none } .on-boshu .bar-msg .for-partner { display: inline }
/* スマホ用の流れ図 */
.flow-m { display: none }
@media (max-width: 640px) {
  .hero .flowsvg { display: none }
  .flow-m { display: grid; gap: 10px; font-family: var(--f-head) }
  .fm-box { background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px }
  .fm-box > b { display: block; font-size: 19px; font-weight: 900; margin-bottom: 8px }
  .fm-box ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr; gap: 4px; font-family: var(--f-body); font-size: 14px }
  .fm-box li { padding-left: 14px; position: relative } .fm-box li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent) }
  .fm-item { border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 12px; margin-top: 8px; background: var(--bg) }
  .fm-item strong { display: block; font-size: 15px } .fm-item span { display: block; font-family: var(--f-body); font-size: 13px; color: var(--muted) }
  .fm-arrow { width: 0; height: 0; margin: 0 auto; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 11px solid color-mix(in srgb, var(--deep-ink) 55%, transparent) }
  .fm-base { border: 1.5px dashed var(--accent); border-radius: 10px; padding: 12px; text-align: center; font-weight: 700; font-size: 16px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)) }
  .fm-dakara { text-align: center; font-size: 13px; color: var(--deep-muted) }
  .fm-hubs { display: grid; grid-template-columns: 1fr; gap: 10px }
  .fm-hub { background: var(--accent); color: var(--accent-ink); border-radius: 12px; padding: 14px 12px; text-align: center }
  .fm-hub b { display: block; font-size: 18px; font-weight: 900; margin-bottom: 6px } .fm-hub span { display: block; font-family: var(--f-body); font-size: 12.5px; line-height: 1.6; opacity: .92 }
}

/* 料金の目安 */
.price { margin-top: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 22px 26px }
.price h3 { font-size: 17px; margin: 0 0 6px }
.price dl { margin: 0; display: grid; gap: 0 }
.price dl > div { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 4px 20px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line) }
.price dt { font-family: var(--f-head); font-weight: 700; font-size: 16px }
.price dd { margin: 0 } .price dd b { font-family: var(--f-head); font-weight: 900; font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1.1 }
.price dd .u { font-family: var(--f-head); font-weight: 700; font-size: 16px; margin-left: 3px }
.price dd small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px }
.price > p { margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px }
@media (max-width: 520px) { .price { padding: 18px 16px } .price dl > div { grid-template-columns: minmax(0, 1fr) } .price dd b { font-size: 26px } }

/* 対応エリアの地図 */
.amap-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start }
@media (max-width: 900px) { .amap-g { grid-template-columns: minmax(0, 1fr); gap: 24px } }
.amap-f { margin: 0 } .amap { display: block; width: 100%; height: auto }
.amap path { stroke: var(--bg); stroke-width: .6; stroke-linejoin: round }
.amap .a-in { fill: var(--accent) } .amap .a-part { fill: color-mix(in srgb, var(--accent) 42%, var(--bg)) } .amap .a-out { fill: color-mix(in srgb, var(--ink) 11%, var(--bg)) }
.amap text { font-family: var(--f-head); font-weight: 900; font-size: 17px; text-anchor: middle; fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round }
.amap-f figcaption { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13.5px; color: var(--muted) }
.amap-f figcaption span { display: inline-flex; align-items: center; gap: 6px }
.amap-f figcaption i { width: 16px; height: 12px; border-radius: 2px; display: inline-block }
.amap-f figcaption i.a-in { background: var(--accent) } .amap-f figcaption i.a-part { background: color-mix(in srgb, var(--accent) 42%, var(--bg)) } .amap-f figcaption i.a-out { background: color-mix(in srgb, var(--ink) 11%, var(--bg)) }
.amap-f figcaption small { flex-basis: 100%; font-size: 11.5px }
.price dd .u em { font-style: normal; font-weight: 500; font-size: 13px; color: var(--muted); margin-left: 4px }

/* 最初の画面の背景：筑波山からの眺め（たつやの写真から人を消して切り出したもの）。上から若葉色を重ねて、字と図を読めるようにする */
.hero { background: linear-gradient(180deg, color-mix(in srgb, var(--deep) 58%, transparent) 0%, color-mix(in srgb, var(--deep) 70%, transparent) 45%, color-mix(in srgb, var(--deep) 80%, transparent) 100%), url(/img/hero-tsukuba.jpg) center bottom / cover no-repeat, var(--deep) }

/* 施工事例：直す前／直した後 */
.case .pair { gap: 3px }
.ba { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--tint) }
.ba img { width: 100%; height: 100%; object-fit: cover; display: block }
.ba figcaption { position: absolute; left: 6px; top: 6px; font-family: var(--f-head); font-weight: 700; font-size: 12px; line-height: 1; padding: 5px 8px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 78%, transparent); color: #fff }
.ba figcaption.af { background: var(--accent); color: var(--accent-ink) }

/* ロゴ：葉が上の帯にはみ出さないよう、上をあける。目が頭の下の端からこぼれないよう、頭を少し下げる */
.logo { margin-top: 30px }
.top .in { padding-block: 6px 12px }
.logo .ee .anc img.deco { bottom: -.075em }
@media (max-width: 640px) { .logo { margin-top: 26px } }

/* 相談の帯：濃い地に、フォームと電話の2つの大きなボタン */
.lp-cta { background: var(--accent); color: var(--accent-ink) }
.lp-cta p { color: color-mix(in srgb, var(--accent-ink) 86%, transparent) }
.cta-pts { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px }
.cta-pts li { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-head); font-weight: 700; font-size: 14.5px; padding: 6px 14px 6px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent-ink) 16%, transparent) }
.cta-pts svg { width: 18px; height: 18px; fill: var(--accent-ink); stroke: var(--accent); flex: none }
.cta2 { margin: 26px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 760px; text-align: left }
.cbtn { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 14px; text-decoration: none; min-height: 84px; transition: transform .12s, box-shadow .12s }
.cbtn .ic { width: 32px; height: 32px }
.cbtn span { display: block; min-width: 0; flex: 1 } .cbtn b { display: block; font-family: var(--f-head); font-weight: 900; font-size: 21px; line-height: 1.25; font-variant-numeric: tabular-nums } .cbtn small { display: block; font-size: 13px; margin-top: 2px; opacity: .85 }
.cbtn i { font-style: normal; font-size: 22px; font-weight: 700 }
.cbtn.form { background: var(--surface); color: var(--accent); box-shadow: 0 6px 0 color-mix(in srgb, var(--ink) 30%, var(--accent)) }
.cbtn.form small { color: var(--muted); opacity: 1 }
.cbtn.tel { border: 2px solid color-mix(in srgb, var(--accent-ink) 75%, transparent); color: var(--accent-ink) }
.cbtn:hover { transform: translateY(-2px) } .cbtn.form:hover { box-shadow: 0 8px 0 color-mix(in srgb, var(--ink) 30%, var(--accent)) }
.cbtn.form:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--ink) 30%, var(--accent)) }
@media (max-width: 640px) { .cta2 { grid-template-columns: minmax(0, 1fr) } .cbtn b { font-size: 19px } .cta-pts li { font-size: 13.5px } }
/* フォーム：ご依頼したい内容 */
.want { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px 16px; margin: 0 0 16px; min-width: 0 }
.want legend { font-family: var(--f-head); font-weight: 700; font-size: 14px; padding: 0 6px } .want legend small { font-weight: 500; color: var(--muted); margin-left: 4px; display: inline-block }
.want .wg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px dashed var(--line) } .want .wg:first-of-type { border-top: 0; padding-top: 4px }
.want .wg > b { flex-basis: 100%; font-family: var(--f-head); font-size: 12.5px; color: var(--muted); letter-spacing: .06em }
.want label { display: inline-flex; margin: 0; cursor: pointer; position: relative }
.want input { position: absolute; opacity: 0; width: 1px; height: 1px }
.want label span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 14.5px; font-weight: 500; line-height: 1.2 }
.want label span::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--muted); border-radius: 3px; flex: none }
.want input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); font-weight: 700 }
.want input:checked + span::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--surface) }
.want input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px }
#f label em.opt { color: var(--muted) }

/* フォーム：写真の添付（5枚まで） */
.attach { margin: 2px 0 16px } .attach > label:first-child { margin-bottom: 8px }
.attach input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none }
.attach .pick { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1.5px dashed var(--accent); border-radius: 10px; color: var(--accent); font-family: var(--f-head); font-weight: 700; cursor: pointer; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); margin: 0 }
.attach input[type=file]:focus-visible + .pick { outline: 2px solid var(--accent); outline-offset: 2px }
.attach .hint { margin: 8px 0 0; font-size: 13px; color: var(--muted) }
#phl { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px }
#phl li { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--tint) }
#phl img { width: 100%; height: 100%; object-fit: cover; display: block }
#phl button { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ink) 80%, transparent); color: #fff; font-size: 15px; line-height: 1; cursor: pointer }
#phm { margin: 8px 0 0; font-size: 13.5px; color: var(--point); font-weight: 700 } #phm:empty { display: none }
#f [hidden] { display: none !important }
.quals li.etc { border: 0; background: none; padding: 7px 4px; font-weight: 500; color: var(--muted); font-size: 14px }

/* お問い合わせ：広い画面では、上に見出しと電話番号、下に横に広げたフォーム */
@media (min-width: 961px) {
  .contact .in { grid-template-columns: minmax(0, 1fr); gap: 30px }
  .contact .in > div:first-child { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: end }
  .contact .in > div:first-child h2 { grid-column: 1; grid-row: 1 } .contact .in > div:first-child .lead { grid-column: 1; grid-row: 2 }
  .contact .in > div:first-child .tel-big { grid-column: 2; grid-row: 1; margin-top: 0; text-align: right } .contact .in > div:first-child .tel-note { grid-column: 2; grid-row: 2; text-align: right; margin: 0; align-self: start }
  #f { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px; row-gap: 16px; padding: 34px 36px; align-items: start }
  #f > * { grid-column: 1 / -1 }
  #f > label[for=kind] { grid-column: 1; grid-row: 1 }
  #f > fieldset { grid-column: 1; grid-row: 2 / span 2; margin: 0 }
  #f > .row2 { grid-column: 2 } #f > .row2:nth-of-type(1) { grid-row: 1 } #f > .row2:nth-of-type(2) { grid-row: 2 }
  #f > #ar-w { grid-column: 2; grid-row: 3 }
  #f > label[for=ms] { grid-column: 1; grid-row: 4 } #f > label[for=ms] textarea { min-height: 150px }
  #f > #ph-w { grid-column: 2; grid-row: 4; margin: 0 }
  #f:has(#ph-w[hidden]) > label[for=ms] { grid-column: 1 / -1 }
  #f > button { grid-row: 5; justify-self: center; width: min(100%, 440px); margin-top: 6px }
  #f > #sent { grid-row: 6; text-align: center }
}


/* プルシ：いつも右下にいる。ふだんは立って待っていて、下へ進むと両手を上げて「上へ戻る」ボタンになる */
#totop { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: 96px; z-index: 40; width: 74px; height: 101px; padding: 0; border: 0; background: none; cursor: default; -webkit-tap-highlight-color: transparent }
#totop.up { cursor: pointer }
#totop img { position: absolute; left: 50%; bottom: 6px; height: auto; transform-origin: 50% 100%; filter: drop-shadow(0 5px 6px color-mix(in srgb, var(--ink) 28%, transparent)); transition: opacity .22s }
#totop .tt-wait { width: 58px; margin-left: -29px; opacity: 1; animation: tt-wait 4.2s ease-in-out infinite }
#totop .tt-up { width: 74px; margin-left: -37px; opacity: 0 }
#totop.up .tt-wait { opacity: 0; animation: none }
#totop.up .tt-up { opacity: 1; animation: tt-pop .45s cubic-bezier(.3, 1.6, .5, 1) 1, tt-sway 3.2s ease-in-out .45s infinite }
#totop::after { content: ""; position: absolute; left: 19%; bottom: 0; width: 62%; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 20%, transparent); filter: blur(2px) }
#totop .tt-say { position: absolute; left: 50%; top: -26px; transform: translate(-50%, 6px) scale(.8); opacity: 0; transition: transform .18s, opacity .18s; font-family: var(--f-head); font-weight: 900; font-size: 13px; line-height: 1; white-space: nowrap; padding: 6px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); pointer-events: none }
#totop .tt-say::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; background: var(--accent); transform: translateX(-50%) rotate(45deg) }
#totop.up:hover .tt-up, #totop.up:focus-visible .tt-up { animation: tt-hop .62s cubic-bezier(.3, .6, .4, 1) infinite }
#totop.up:hover::after, #totop.up:focus-visible::after { animation: tt-shadow .62s cubic-bezier(.3, .6, .4, 1) infinite }
#totop.up:hover .tt-say, #totop.up:focus-visible .tt-say { opacity: 1; transform: translate(-50%, 0) scale(1) }
#totop.up:active .tt-up { animation: none; transform: scale(1.06, .9) }
#totop:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 4px; border-radius: 12px }
@keyframes tt-wait { 0%, 100% { transform: scale(1, 1) } 50% { transform: scale(1.015, .975) } }
@keyframes tt-pop { 0% { transform: translateY(8px) scale(.9, .85) } 100% { transform: none } }
@keyframes tt-sway { 0%, 100% { transform: rotate(-2.5deg) } 50% { transform: rotate(2.5deg) } }
@keyframes tt-hop { 0%, 100% { transform: translateY(0) scale(1.04, .94) } 18% { transform: translateY(-4px) scale(.96, 1.05) } 50% { transform: translateY(-20px) scale(1, 1) rotate(3deg) } 82% { transform: translateY(-4px) scale(.98, 1.03) } }
@keyframes tt-shadow { 0%, 100% { transform: scale(1); opacity: 1 } 50% { transform: scale(.6); opacity: .5 } }
@media (max-width: 640px) { #totop { width: 60px; height: 82px; bottom: 84px; right: 10px } #totop .tt-wait { width: 47px; margin-left: -23.5px } #totop .tt-up { width: 60px; margin-left: -30px } }
@media (prefers-reduced-motion: reduce) { #totop img, #totop.up .tt-up, #totop.up:hover .tt-up, #totop.up:hover::after { animation: none } }

/* フォーム：ラベルと「必須・任意」を同じ行に置いて、左右の欄の上下をそろえる */
#f label { display: block } #f label > input, #f label > select, #f label > textarea { display: block; margin-top: 6px }
#f .want label { display: inline-flex } #f .attach .pick { display: inline-flex }
@media (min-width: 961px) {
  #f { align-items: stretch; grid-template-rows: auto auto auto 1fr auto auto auto }
  #f > fieldset { grid-column: 1; grid-row: 2 / span 3; margin: 0; align-self: stretch }
  #f > label[for=ms] { grid-column: 2; grid-row: 4 / span 2; display: flex; flex-direction: column } #f > label[for=ms] textarea { flex: 1; min-height: 120px }
  #f:has(#ph-w[hidden]) > label[for=ms] { grid-column: 2 }
  #f > #ph-w { grid-column: 1; grid-row: 5; margin: 0 }
  #f:has(#ph-w[hidden]) > fieldset { grid-row: 2 / span 4 }
  #f > button { grid-row: 6 } #f > #sent { grid-row: 7 }
}

/* SNS のボタン（いまは準備中。本番で data-sns ごとに行き先を入れる） */
.sns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 26px 0 4px }
.sns-l { font-family: var(--f-head); font-weight: 900; font-size: 13px; letter-spacing: .12em; color: var(--deep-ink); margin-right: 4px }
.sns-b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--deep-ink) 35%, transparent); color: var(--deep-ink); text-decoration: none; transition: background-color .15s, color .15s, transform .15s }
.sns-b svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.sns-b:hover, .sns-b:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px) }
.sns-b[aria-disabled="true"] { cursor: default }
.sns small { font-size: 12px; color: var(--deep-muted); margin-left: 4px }
/* 文の区切りのよい所でだけ折り返す（社名の途中で切れないように） */
.nb { display: inline-block }

/* ご依頼の流れ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: none }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px 18px 20px; display: grid; gap: 8px; align-content: start }
.steps li .no { font-family: "Baloo 2", var(--f-head); font-weight: 800; font-size: 30px; line-height: 1; color: var(--accent) }
.steps li b { font-family: var(--f-head); font-size: 18px; line-height: 1.35 }
.steps li span:last-child { color: var(--muted); font-size: 14px }
.steps li:not(:last-child)::after { content: ""; position: absolute; right: -11px; top: 50%; width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 9px solid var(--accent); transform: translateY(-50%); z-index: 1 }
@media (max-width: 960px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 16px }
  .steps li { grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px 18px }
  .steps li .no { grid-row: 1 / span 2; align-self: center } .steps li b, .steps li span:last-child { grid-column: 2 }
  .steps li:not(:last-child)::after { right: auto; left: 34px; top: auto; bottom: -13px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 9px solid var(--accent); border-bottom: 0; transform: none }
}
/* お客様の声 */
.voice { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 26px 24px 22px; position: relative }
.voice::before { content: "“"; position: absolute; left: 18px; top: 2px; font-family: Georgia, serif; font-size: 56px; line-height: 1; color: color-mix(in srgb, var(--accent) 35%, transparent) }
.voice blockquote { margin: 18px 0 14px; font-size: 15.5px; line-height: 1.85 }
.voice figcaption { font-family: var(--f-head); font-weight: 700; font-size: 13.5px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line) }
.voice.sample { border-style: dashed } .voice.sample blockquote { color: var(--muted) }
/* お役立ち情報 */
.col { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; color: inherit }
.col h3 { font-size: 18px; line-height: 1.5 } .col p { color: var(--muted); font-size: 14px; margin: 0 } .col .more { margin-top: auto; padding-top: 8px }
.col.soon { background: none; border-style: dashed } .col.soon h3 { color: var(--muted) }
a.col:hover { border-color: var(--accent) }
.article { max-width: 760px } .article ul { margin: 0 0 6px; padding-left: 1.3em; color: var(--muted) } .article li { margin: 4px 0 }
.article p { max-width: none; line-height: 1.95 }

/* サービスと流れをまとめた段（案A）。html.merge-sf のときだけ出て、元の2段は隠れる */
html:not(.merge-sf) #svcflow { display: none }
.merge-sf #service-old, .merge-sf #nagare, .merge-sf section#service:not(:has(.sf)) { display: none }
.sf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.7fr) minmax(0, .82fr) minmax(0, 1.7fr) minmax(0, .82fr); gap: 0 18px; position: relative; align-items: start }
.sf::before { content: ""; position: absolute; left: 4%; right: 4%; top: 23px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 30%, transparent), var(--accent) 22%, var(--accent) 78%, color-mix(in srgb, var(--accent) 30%, transparent)) }
.sf > li { position: relative; display: grid; justify-items: center; gap: 16px }
.sf .no { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-family: "Baloo 2", var(--f-head); font-weight: 800; font-size: 19px; line-height: 1; background: var(--surface); color: var(--accent); border: 3px solid var(--accent); box-shadow: 0 0 0 6px var(--bg) }
.sf-l .no { background: var(--accent); color: var(--accent-ink); width: 54px; height: 54px; margin-top: -3px; font-size: 21px }
.sf-b { text-align: center; padding: 6px 2px 0 } .sf-b b { display: block; font-family: var(--f-head); font-size: 18px; line-height: 1.4; margin-bottom: 8px } .sf-b p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; text-align: left }
.sf-card { display: block; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 10px 26px color-mix(in srgb, var(--ink) 9%, transparent); transition: transform .15s, box-shadow .15s }
a.sf-card:hover, .sf-card:has(a:hover) { transform: translateY(-3px); box-shadow: 0 16px 32px color-mix(in srgb, var(--ink) 14%, transparent) }
.sf-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 30% }
.sf-img { display: block }
.sf-cb { padding: 20px 22px 22px; display: grid; gap: 8px }
.sf-cb .k { font-size: 12.5px; letter-spacing: .08em; color: var(--muted) }
.sf-cb h3 { font-size: clamp(22px, 2.3vw, 28px); font-weight: 900; line-height: 1.3 } .sf-cb h3 a { color: inherit; text-decoration: none }
.sf-cb p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.8 }
.sf-sub { list-style: none; margin: 2px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px }
.sf-sub a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--tint); color: var(--ink); font-family: var(--f-head); font-weight: 700; font-size: 14px; text-decoration: none; border: 1px solid transparent }
.sf-sub a:hover { border-color: var(--accent) }
.sf-cb .more { margin-top: 4px }
.sf-note { margin: 26px 0 0; text-align: center; color: var(--muted); font-size: 14px }
.sf-more { margin-top: 30px; display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 12px 16px; align-items: stretch; background: var(--tint); border-radius: 14px; padding: 20px 22px }
.sf-ml { align-self: center; font-family: var(--f-head); font-weight: 700; font-size: 13.5px; color: var(--ok); max-width: 9em; line-height: 1.5 }
.sf-more a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface); text-decoration: none; color: inherit; border: 1px solid transparent }
.sf-more a:hover { border-color: var(--accent) }
.sf-more a .icb { width: 44px; height: 44px } .sf-more b { display: block; font-family: var(--f-head); font-size: 15.5px; line-height: 1.35 } .sf-more small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px }
@media (max-width: 1020px) {
  .sf { grid-template-columns: minmax(0, 1fr); gap: 22px }
  .sf::before { left: 26px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 30%, transparent), var(--accent) 12%, var(--accent) 88%, color-mix(in srgb, var(--accent) 30%, transparent)) }
  .sf > li { grid-template-columns: 54px minmax(0, 1fr); justify-items: stretch; align-items: start; gap: 14px }
  .sf .no { justify-self: center } .sf-l .no { margin-top: 0 }
  .sf-b { text-align: left; padding: 8px 0 0 } .sf-b b { margin-bottom: 4px }
  .sf-more { grid-template-columns: minmax(0, 1fr); padding: 18px 16px } .sf-ml { max-width: none }
  .sf-note { text-align: left }
}

/* まとめた段：カードの高さをそろえ、小さい段の字を読みやすく */
@media (min-width: 1021px) {
  .sf { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1fr); gap: 0 20px; align-items: stretch }
  .sf > li { grid-template-rows: auto 1fr; align-items: start }
  .sf-l .sf-card { height: 100%; display: flex; flex-direction: column } .sf-l .sf-cb { flex: 1; align-content: start } .sf-l .sf-cb .more { margin-top: auto; padding-top: 8px }
  .sf-s .sf-b { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px; width: 100% }
  .sf-b p { font-size: 14px }
}
.sf-sub span { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--tint); color: var(--ink); font-family: var(--f-head); font-weight: 700; font-size: 14px }

/* 保有資格の段 */
.qcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px 24px 24px; display: grid; gap: 10px; justify-items: start; border-top: 4px solid var(--accent) }
.qcard .icb { width: 56px; height: 56px } .qcard .ic { width: 30px; height: 30px }
.qcard h3 { font-size: 21px; font-weight: 900; line-height: 1.4 } .qcard p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.85 }

/* まとめた段の見直し：「詳しく見る」を下でそろえる／3つの項目を同じ幅の行にそろえる／システムは直下に独立 */
.sf-cb { display: flex; flex-direction: column; gap: 8px }
.sf-cb .more { margin-top: auto; padding-top: 14px }
.sf-sub { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 6px 0 0 }
.sf-sub a, .sf-sub span { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border-radius: 8px; background: var(--tint); border: 1px solid transparent; font-family: var(--f-head); font-weight: 700; font-size: 14.5px; line-height: 1.3; color: var(--ink); text-decoration: none }
.sf-sub svg { width: 16px; height: 16px; flex: none; stroke: var(--accent) }
.sf-sub a i { margin-left: auto; font-style: normal; font-size: 18px; line-height: 1; color: var(--accent) }
.sf-sub a:hover { border-color: var(--accent); background: var(--surface) }
.sf-more { grid-template-columns: auto repeat(2, minmax(0, 1fr)) }
.sf-sys { margin-top: 16px; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px 22px; align-items: center; padding: 24px 28px; border-radius: 14px; background: var(--surface); border: 2px solid var(--accent); text-decoration: none; color: inherit; box-shadow: 0 8px 22px color-mix(in srgb, var(--ink) 8%, transparent); transition: transform .15s, box-shadow .15s }
.sf-sys:hover { transform: translateY(-2px); box-shadow: 0 14px 28px color-mix(in srgb, var(--ink) 13%, transparent) }
.sf-sys .icb { width: 64px; height: 64px } .sf-sys .ic { width: 32px; height: 32px }
.sf-st .k { display: block; font-size: 12.5px; font-weight: 700; color: var(--ok); letter-spacing: .04em }
.sf-st b { display: block; font-family: var(--f-head); font-size: 22px; font-weight: 900; line-height: 1.4; margin: 2px 0 4px }
.sf-st small { display: block; color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 46em }
.sf-go { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-family: var(--f-head); font-weight: 700; font-size: 15px; white-space: nowrap } .sf-go i { font-style: normal }
@media (max-width: 1020px) { .sf-more { grid-template-columns: minmax(0, 1fr) } }
@media (max-width: 720px) { .sf-sys { grid-template-columns: 52px minmax(0, 1fr); padding: 20px 18px } .sf-sys .icb { width: 52px; height: 52px } .sf-go { grid-column: 1 / -1; justify-content: center } .sf-st b { font-size: 19px } }

/* スマホ：背景の景色が文字とカードに隠れるので、ボタンの下に景色だけの帯を出す */
.hero-ph { display: none }
@media (max-width: 640px) {
  .hero-ph { display: block; margin: -62px calc(var(--gut-r) * -1) -16px calc(var(--gut-l) * -1); height: 236px;
    background: linear-gradient(0deg, var(--deep) 0%, color-mix(in srgb, var(--deep) 78%, transparent) 12%, color-mix(in srgb, var(--deep) 32%, transparent) 27%, transparent 42%),
      linear-gradient(180deg, color-mix(in srgb, var(--deep) 100%, transparent) 0%, color-mix(in srgb, var(--deep) 72%, transparent) 14%, color-mix(in srgb, var(--deep) 30%, transparent) 32%, transparent 50%),
      url(/img/hero-tsukuba.jpg) 30% bottom / auto 400px no-repeat }
  .hero .in { padding-top: 30px }
  .hero-g > div:first-child { position: relative; z-index: 1 }
  .hero { background: var(--deep) }
  .hero .flow { position: relative }
}

/* システムの帯を、流れの全部を支える「土台」として見せる（各工程から線を下ろす） */
.sf-sys { position: relative; margin-top: 0; background: color-mix(in srgb, var(--tint) 70%, var(--surface)); align-items: center }
.sf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px }
.sf-chips i { font-style: normal; font-family: var(--f-head); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: var(--ink) }
.sf-note { margin-top: 20px }
@media (min-width: 1021px) {
  .sf > li { grid-template-rows: auto auto 1fr; padding-bottom: 0 }
  .sf > li.sf-l { grid-template-rows: auto 1fr auto }
  .sf > li::after { content: ""; justify-self: center; width: 0; height: 100%; min-height: 40px; margin-top: -6px; border-left: 2px dashed var(--accent) }
  .sf > li.sf-l::after { height: 40px }
  .sf > li::before { content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); border: 7px solid transparent; border-top: 9px solid var(--accent); border-bottom: 0; z-index: 1 }
}
@media (max-width: 1020px) {
  .sf-sys { margin-top: 34px }
  .sf-sys::before { content: ""; position: absolute; left: 25px; top: -36px; width: 3px; height: 26px; background: var(--accent); border-radius: 2px }
  .sf-sys::after { content: ""; position: absolute; left: 19.5px; top: -12px; border: 7px solid transparent; border-top: 9px solid var(--accent); border-bottom: 0 }
}
@media (max-width: 720px) { .sf-sys { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 20px 18px } .sf-sys .icb { width: 44px; height: 44px } .sf-sys .ic { width: 24px; height: 24px } }

/* ロゴまわり：カタカナをロゴの幅にそろえて両脇に線／横に事業の一言 */
.logo .kana { align-self: stretch; display: flex; align-items: center; gap: 7px; font-size: 11.5px; letter-spacing: .26em; color: #129b74; margin-top: 6px; padding-left: 0 }
.logo .kana::before, .logo .kana::after { content: ""; flex: 1; height: 1.5px; border-radius: 1px; background: color-mix(in srgb, #129b74 45%, transparent) }
.logo .kana::after { margin-left: -.26em }
.logo-tag { display: none; margin-top: 30px; padding-left: 18px; margin-left: -6px; border-left: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); line-height: 1.5; white-space: nowrap }
.logo-tag b { display: block; font-family: var(--f-head); font-weight: 700; font-size: 13.5px; color: var(--ink); letter-spacing: .06em }
.logo-tag small { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .08em }
@media (min-width: 1240px) { .logo-tag { display: block } }
@media (min-width: 700px) and (max-width: 1020px) { .logo-tag { display: block; margin-right: auto } }
@media (max-width: 640px) { .logo .kana { font-size: 10px; letter-spacing: .2em; gap: 5px } .logo .kana::after { margin-left: -.2em } }

/* ヘッダーの季節の動き（月で自動に切り替え。動きを減らす設定の端末では出さない） */
.seas { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-left: 10px }
.seas button { font: inherit; font-size: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 2px 10px; cursor: pointer }
.seas button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink) }
.top .in { position: relative; z-index: 1 }
.season { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0 }
.season i { position: absolute; top: -14px; display: block; opacity: 0; animation: sea-fall linear infinite; will-change: transform }
@keyframes sea-fall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0 }
  10% { opacity: var(--op, .8) }
  50% { transform: translate(calc(var(--dx) * -.35), 62px) rotate(calc(var(--rot) * .5)) }
  88% { opacity: var(--op, .8) }
  100% { transform: translate(var(--dx), 132px) rotate(var(--rot)); opacity: 0 }
}
.season.spring i { width: 10px; height: 8px; background: #f7b9cb; border-radius: 85% 15% 85% 15% }
.season.summer i { width: 11px; height: 7px; background: #9fd98f; border-radius: 0 90% 0 90% }
.season.autumn i { width: 12px; height: 9px; background: #e39a45; border-radius: 0 85% 10% 85% }
.season.autumn i:nth-child(3n) { background: #cf5f3f } .season.autumn i:nth-child(3n+1) { background: #e6bd4a }
.season.winter i { width: 7px; height: 7px; background: #c5dcef; border-radius: 50% }
.season.winter i:nth-child(2n) { width: 5px; height: 5px }
@media (max-width: 640px) { .season i:nth-child(n+6) { display: none } }
@media (prefers-reduced-motion: reduce) { .season { display: none } }

/* フッター：間取り図の形（html.foot-plan のときだけ。元の5列は .fmap） */
html:not(.foot-plan) .fplan { display: none } .foot-plan .fmap { display: none }
.fplan { --wall: color-mix(in srgb, var(--deep-ink) 62%, transparent); max-width: 1040px; margin-inline: auto }
.fp-cap { margin: 0 0 12px; font-size: 12px; letter-spacing: .1em; color: var(--deep-muted); max-width: none } .fp-cap b { font-family: "Baloo 2", var(--f-head); font-weight: 800; letter-spacing: .18em; color: var(--deep-ink); margin-right: 12px }
.fp-box { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); border: 4px solid var(--wall) }
.fp-room { position: relative; padding: 22px 24px 24px }
.r-svc { grid-row: 1 / 3; border-right: 2px solid var(--wall) }
.r-area { border-right: 2px solid var(--wall); border-bottom: 2px solid var(--wall) } .r-co { border-bottom: 2px solid var(--wall) }
.r-ct { grid-column: 2 / 4 }
.fp-h { margin: 0 0 12px; font-family: var(--f-head); font-weight: 900; font-size: 16px; color: var(--deep-ink); letter-spacing: .06em; max-width: none }
.fp-h small { display: block; font-family: "Baloo 2", var(--f-head); font-weight: 700; font-size: 10.5px; letter-spacing: .2em; color: var(--deep-muted); margin-bottom: 1px }
.fp-room ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px } .fp-room ul.two { display: block; columns: 2; column-gap: 18px } .fp-room ul.two li { break-inside: avoid; margin-bottom: 7px }
.fp-room li.sub { padding-left: 1em; position: relative } .fp-room li.sub::before { content: ""; position: absolute; left: 0; top: .75em; width: .6em; border-top: 1px solid var(--deep-muted) }
.fplan a { text-decoration: none } .fp-room a:hover, .fp-ent:hover span { color: var(--deep-ink) }
.fp-ct { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px }
.fp-tel { font-family: "Baloo 2", var(--f-head); font-weight: 800; font-size: 28px; line-height: 1.1; color: var(--deep-ink); letter-spacing: .02em }
.fp-form { margin-left: auto; font-family: var(--f-head); font-weight: 700; color: var(--deep-ink); border-bottom: 1.5px solid var(--wall); padding-bottom: 1px }
.fp-door { position: absolute; width: 40px; height: 40px; overflow: visible; fill: none; stroke: var(--wall); stroke-width: 2 }
.fp-door .gap { fill: var(--deep); stroke: none } .fp-door .arc { stroke-width: 1.2; stroke-dasharray: 3 3 }
.fp-door.d1 { right: -1px; bottom: 64px; transform: scaleX(-1) }
.fp-door.d2 { right: -1px; bottom: 22px; transform: scaleX(-1) }
.fp-ent { position: relative; display: inline-flex; align-items: flex-end; gap: 12px; margin: 0 0 0 46px; padding: 14px 0 0 54px; color: var(--deep-muted) }
.fp-ent img { width: 44px; height: auto; display: block } .fp-ent span { font-family: var(--f-head); font-weight: 700; font-size: 14px; line-height: 1.4; padding-bottom: 4px } .fp-ent small { display: block; font-size: 10.5px; letter-spacing: .2em; font-weight: 700 }
.fp-door.d3 { left: 0; top: -4px; transform: rotate(90deg) translate(0, -100%); transform-origin: 0 0 }
.fp-door.d3 .gap { x: -4px; width: 8px }
@media (max-width: 760px) {
  .fp-box { grid-template-columns: minmax(0, 1fr) } .fp-room { padding: 18px 18px 20px }
  .r-svc { grid-row: auto; border-right: 0; border-bottom: 2px solid var(--wall) } .r-area { border-right: 0 } .r-ct { grid-column: auto }
  .fp-room ul.two { columns: 1 }
  .fp-door.d1, .fp-door.d2 { display: none } .fp-form { margin-left: 0 } .fp-ent { margin-left: 18px }
}
.r-svc { display: flex; flex-direction: column }
.fp-sign { margin: auto 0 0; padding-top: 18px; font-size: 12.5px; color: var(--deep-muted); max-width: none; line-height: 1.6 } .fp-sign b { display: block; font-family: var(--f-head); font-weight: 900; font-size: 15px; letter-spacing: .12em; color: var(--deep-ink) }

/* 間取り図のフッター：SNS は玄関のプルシの右の「庭の植え込み」。地面の線から芽が出て、先に SNS のボタンが実る */
.fp-out { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 34px }
.fp-out .sns { position: relative; flex: 1 1 320px; margin: 0; padding: 0 6px 0 10px; gap: 0 22px; align-items: flex-end; flex-wrap: nowrap }
.fp-out .sns::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-top: 2px solid var(--wall); border-radius: 2px }
.fp-out .sns > * { position: relative }
.fp-out .sns-l { margin: 0 4px 16px 0; padding: 4px 10px; font-size: 11.5px; letter-spacing: .2em; background: var(--deep); border: 1.5px solid var(--wall); border-radius: 4px }
.fp-out .sns-l::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 16px; margin-left: -1px; background: var(--wall) }
.fp-out .sns-b { width: 42px; height: 42px; margin-bottom: 16px; background: var(--deep); border: 2px solid var(--wall); border-radius: 50%; overflow: visible }
.fp-out .sns-b:nth-of-type(2n) { margin-bottom: 26px }
.fp-out .sns-b::after { content: ""; position: absolute; left: 50%; top: calc(100% + 2px); width: 2px; height: 16px; margin-left: -1px; background: var(--accent); border-radius: 1px }
.fp-out .sns-b:nth-of-type(2n)::after { height: 26px }
.fp-out .sns-b::before { content: ""; position: absolute; left: 50%; top: -9px; width: 13px; height: 9px; background: var(--accent); border-radius: 0 85% 0 85%; transform: rotate(-18deg); transform-origin: 0 100% }
.fp-out .sns-b:nth-of-type(2n)::before { transform: scaleX(-1) rotate(-18deg); margin-left: -13px; transform-origin: 100% 100% }
.fp-out .sns-b:hover, .fp-out .sns-b:focus-visible { transform: translateY(-3px) }
.fp-out .sns small { margin: 0 0 8px auto; font-size: 12px }
@media (max-width: 760px) { .fp-out .sns { flex-basis: 100%; margin-left: 6px; gap: 0 12px; padding-left: 4px } .fp-out .sns-b { width: 38px; height: 38px } .fp-out .sns small { display: none } }

/* 相談フォーム：送れなかったときの知らせ */
#sent.ng { color: #b3261e }
.news a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px }
.news a:hover { color: var(--accent) }
