/* tento0528.co.jp（株式会社天翔）— deploy/tento/build.py が書き出すページの見た目。
 *
 * 黒を基調に、信頼感と職人のかっこよさ（高橋の指示、2026-10-19）。配色は暗い1種類だけにしてある
 * （利用者の明暗の設定では切り替えない）。
 *
 * 色は墨・胡粉・亜鉛（足場の鋼管のめっきの銀）だけ。ロゴも銀と墨だけなので、差し色は持たない。
 * 写真の足場に付いている橙は、写真の中にだけある。
 * 形は足場から取った。左に1本通した細い縦線が建地（たてじ）で、段の名前はそれに縦書きで沿い、
 * 名前の頭で短い横線（布）が建地を横切る。許可・登録は、現場に掲げる標識の白い板の体裁にする。
 * 見出しはロゴの筆の明朝に合わせて明朝、本文はゴシック。
 */
:root {
  --sumi: #0d0d0c;
  --sumi-2: #161615;
  --kofun: #ebe8e1;
  --aen: #a9aeb3;
  --nibi: #858a8f;
  --line: rgba(235, 232, 225, .13);
  --line-2: rgba(235, 232, 225, .28);
  --wrap: min(1180px, 100% - 32px);
  --rail: 3rem;
  --gap: clamp(20px, 3.4vw, 52px);
  --serif: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  color-scheme: dark;
}
.lang-zh { --serif: "Noto Serif SC", "Songti SC", serif; --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--sumi); color: var(--kofun); font: 400 16px/1.9 var(--sans); overflow-x: hidden; }
/* 日本語は、書き出すときに BudouX が入れた <wbr>（文節の切れ目）でだけ折り返す（confiture と同じ）。
 * 中国語に keep-all を当てると折り返さなくなるので、日本語のページだけ。 */
html[lang="ja"] body { word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--kofun); text-decoration-color: var(--line-2); text-underline-offset: 4px; }
a:hover { color: #fff; text-decoration-color: currentColor; }
:focus-visible { outline: 1px solid var(--kofun); outline-offset: 4px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.muted { color: var(--nibi); }
.lead { font-size: 1.06rem; margin: 0 0 .8rem; }

/* ボタン（送信と、下層ページの「お問い合わせ」だけ） */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; min-width: 12em; padding: .8em 1.8em; border: 1px solid var(--kofun); background: var(--kofun); color: var(--sumi);
  font: 700 1rem/1 var(--sans); letter-spacing: .14em; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: var(--kofun); }
.btn.ghost { background: transparent; color: var(--kofun); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--kofun); }
.btn:disabled { opacity: .5; cursor: default; }

/* ヘッダー */
.bar { position: sticky; top: 0; z-index: 30; background: var(--sumi); border-bottom: 1px solid var(--line); }
.bar-in { width: var(--wrap); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand-logo { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-main a { display: block; padding: .5em .9em; color: var(--kofun); text-decoration: none; font-size: .88rem; letter-spacing: .08em; }
.nav-main a:hover, .nav-main a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 8px; }
.nav-tel { font: 600 1.05rem/1 var(--serif); letter-spacing: .06em; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav-tel span { font: 700 .62rem/1 var(--sans); letter-spacing: .2em; color: var(--nibi); margin-right: .7em; vertical-align: 2px; }
.langs { gap: 2px; }
.langs a { display: block; font-size: .76rem; color: var(--nibi); padding: .3em .45em; text-decoration: none; letter-spacing: .04em; }
.langs a:hover { color: var(--kofun); }
.langs a[aria-current] { color: var(--kofun); text-decoration: underline; text-underline-offset: 6px; }
.nav-toggle, .nav-button { display: none; }
@media (max-width: 1000px) {
  .nav-button { display: grid; gap: 6px; padding: 12px; margin-right: -12px; cursor: pointer; }
  .nav-button span { display: block; width: 24px; height: 1px; background: var(--kofun); transition: transform .2s, opacity .2s; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--sumi); border-bottom: 1px solid var(--line); display: none; padding: 4px 16px 20px; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav-main a { padding: 1em .2em; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-tel { padding: 1.1em .2em; font-size: 1.3rem; }
  .langs { flex-direction: row !important; gap: 4px; margin-left: -.6em !important; }
  .langs a { font-size: .92rem; padding: .7em .6em; }  /* 指で押せる大きさに */
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav-toggle:checked + .nav-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-button span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* 建地: 本文の左に1本、段をまたいで通す。写真の段（トップ・下層の見出し）はその上にかぶさる */
main { position: relative; }
main::before { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; pointer-events: none; width: 1px; background: var(--line-2);
  left: calc((100% - var(--wrap)) / 2 + var(--rail)); }
.hero, .page-head { position: relative; z-index: 2; }

/* 段 */
.sec { padding: clamp(72px, 10vw, 136px) 0; }
.rail { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: var(--gap); }
.rail-h { position: sticky; top: 96px; align-self: start; justify-self: end; margin: 0; padding-right: .9rem;
  writing-mode: vertical-rl; font: 600 1rem/1 var(--serif); letter-spacing: .55em; color: var(--aen); white-space: nowrap; }
/* 名前の頭で建地を横切る布 */
.rail-h:not(:empty)::after { content: ""; position: absolute; top: -.2em; right: -9px; width: 18px; height: 1px; background: var(--aen); }
.lang-en .rail-h { grid-column: 2; grid-row: 1; justify-self: start; writing-mode: horizontal-tb; letter-spacing: .14em; padding: 0; margin-bottom: 2.4rem; position: relative; top: auto; }
.lang-en .rail-h::after { top: .5em; right: auto; left: calc(-1 * var(--gap) - 9px); }
.lang-en .rail-body { grid-column: 2; }
@media (max-width: 760px) {
  main::before { display: none; }
  .rail { grid-template-columns: minmax(0, 1fr); }
  .rail-h, .lang-en .rail-h { position: static; grid-column: 1; justify-self: stretch; writing-mode: horizontal-tb; letter-spacing: .3em; padding: 0 0 .9rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line-2); }
  .rail-h:empty { display: none; }
  .rail-h::after { display: none; }
  .lang-en .rail-body { grid-column: 1; }
  .lang-en .rail-h { letter-spacing: .1em; }
}

/* トップの写真。日本語のキャッチは右に縦書き（読みはじめが右上） */
.hero { min-height: min(90vh, 860px); display: grid; grid-template-rows: 1fr auto; overflow: hidden; isolation: isolate;
  background: var(--hero) center 30% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13, 13, 12, .55) 0%, rgba(13, 13, 12, .62) 55%, var(--sumi) 100%); }
.hero-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; padding: clamp(72px, 10vw, 128px) 0 clamp(48px, 6vw, 72px); }
.catch { margin: 0; font: 700 clamp(2.6rem, min(1.4rem + 5vw, 7.4vh), 6.2rem)/1.3 var(--serif); letter-spacing: .14em; display: flex; text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
/* 縦書きでは column が左右（行の進む向き）になる。2行目は1段下げ、足場の段のようにずらす */
.lang-ja .catch { writing-mode: vertical-rl; flex-direction: column; gap: .15em; align-self: flex-start; }
.lang-ja .catch-line { white-space: nowrap; }
.lang-ja .catch-line:nth-child(2) { margin-top: 1.8em; }
.lang-en .catch, .lang-zh .catch { order: -1; flex-direction: column; letter-spacing: .03em; }
.lang-zh .catch { letter-spacing: .12em; }
.hero-side { max-width: 520px; display: grid; justify-items: start; gap: 1.1rem; }
/* ルビは小さくしすぎると写真の上で読めない（.52em では 9px だった） */
.hero-sub rt { font: 500 max(.62em, 11px)/1 var(--sans); letter-spacing: .1em; color: var(--kofun); opacity: .85; }
.hero-sub { margin: 0; font: 500 1.12rem/1.8 var(--serif); letter-spacing: .08em; }
.hero-tel { font: 600 clamp(1.7rem, 1.3rem + 1.3vw, 2.3rem)/1 var(--serif); letter-spacing: .05em; text-decoration: none; font-variant-numeric: tabular-nums; }
.hero-tel span { font: 700 .66rem/1 var(--sans); letter-spacing: .22em; color: var(--aen); margin-right: .8em; vertical-align: .5em; }
.hero-note { margin: -.5rem 0 0; font-size: .88rem; color: var(--aen); }
.hero-note a { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero-link { font-size: .95rem; letter-spacing: .1em; text-decoration: underline; text-underline-offset: 7px; }
.hero-lic { margin: 0 auto; padding: 14px 0 18px; border-top: 1px solid var(--line); font-size: .78rem; letter-spacing: .08em; color: var(--nibi); }
.hero-lic span { margin-right: 1.4em; color: var(--aen); }
@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero-in { flex-direction: column; align-items: flex-start; gap: 36px; padding-top: 56px; }
  .lang-ja .catch { writing-mode: horizontal-tb; align-self: auto; order: -1; gap: 0; }
  .lang-ja .catch-line:nth-child(2) { margin-top: 0; padding-left: 1em; }
}

/* 天翔の仕事（3つの事実を、一覧表のように） */
.creed-sec { padding-bottom: clamp(40px, 5vw, 64px); }
.creed { margin: 0; border-top: 1px solid var(--line-2); }
.creed-row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 8px 40px; align-items: baseline; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.creed dt { font: 600 clamp(1.4rem, 1rem + 1.4vw, 2.05rem)/1.4 var(--serif); letter-spacing: .08em; }
.creed dd { margin: 0; color: var(--aen); }
@media (max-width: 640px) { .creed-row { grid-template-columns: 1fr; } }

/* 事業内容: 柱は足場と解体。ほかの工事はその下に並べる */
.svc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-main { list-style: none; margin: 0 0 1.6rem; padding: 0; font: 700 clamp(2.2rem, 1.1rem + 4vw, 4.4rem)/1.25 var(--serif); letter-spacing: .1em; }
.svc-main li { text-wrap: balance; }
.svc-more { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.svc-more li { padding: .95rem 0; border-bottom: 1px solid var(--line); font: 500 clamp(1.05rem, .95rem + .5vw, 1.3rem)/1.5 var(--serif); letter-spacing: .08em; }
@media (max-width: 480px) { .svc-more { grid-template-columns: 1fr; } }
.svc-note { margin: 1.4rem 0 0; color: var(--aen); font-size: .95rem; }
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.75) contrast(1.05); }
/* 欧文に和文の字間を当てると間延びする */
.lang-en .svc-main, .lang-en .area-names { letter-spacing: .01em; }
.lang-en .svc-more li, .lang-en .creed dt { letter-spacing: .02em; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } .photo img { aspect-ratio: 4 / 3; } }

/* 許可・登録: 現場の標識の体裁（白い板・黒の罫・左に項目） */
.board { margin: 0; background: var(--kofun); color: #141413; border: 2px solid #141413; box-shadow: 0 0 0 7px var(--kofun); max-width: 860px; margin-left: 7px; }
.bd-row { display: grid; grid-template-columns: 13.5em minmax(0, 1fr); border-top: 1px solid #141413; }
.bd-row:first-child { border-top: 0; }
.board dt { padding: 1rem 1.1rem; border-right: 1px solid #141413; font: 700 .92rem/1.6 var(--sans); letter-spacing: .06em; display: flex; align-items: center; }
.board dd { margin: 0; }
.board dd p { margin: 0; padding: .95rem 1.2rem; display: grid; gap: .1rem; }
.board dd p + p { border-top: 1px solid rgba(20, 20, 19, .35); }
.bd-no { font: 700 clamp(1.05rem, .95rem + .5vw, 1.3rem)/1.5 var(--serif); letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.bd-note { font-size: .8rem; color: #4a4c4f; }
@media (max-width: 640px) {
  .bd-row { grid-template-columns: 1fr; }
  .board dt { border-right: 0; border-bottom: 1px solid #141413; padding: .6rem 1rem; background: #dedad2; }
  .board dd p { padding: .8rem 1rem; }
  .bd-no { font-size: 1rem; letter-spacing: .02em; }
}

/* 対応エリア */
.area-names { margin: 0 0 1.6rem; display: flex; flex-wrap: wrap; gap: 0 .9em; font: 700 clamp(2.6rem, 1.3rem + 5vw, 5.4rem)/1.2 var(--serif); letter-spacing: .1em; }
.area-names span + span::before { content: ""; display: inline-block; width: 1px; height: .8em; background: var(--line-2); margin-right: .9em; vertical-align: -.02em; }

.area-more { list-style: none; margin: 0 0 2rem; padding: 1rem 0 0; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: .3em 2.2em; font: 600 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1.5 var(--serif); letter-spacing: .1em; }
.lang-en .area-more { letter-spacing: .02em; }
/* 狭い画面では地名が折り返すので、区切りの線は行の頭に残らないよう消して間だけで分ける */
@media (max-width: 560px) { .area-names span + span::before { display: none; } .area-more { gap: .2em 1.1em; } }

/* 地図（OpenStreetMap の形を線画に。make_maps.py）。製図のように細い線だけで描く */
.map { margin: 2.4rem 0 0; }
.map svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: #0a0a09; }
.map-area { max-width: 900px; }
.map-local { margin-top: 1.6rem; }
.map text { font-family: var(--serif); }
.m-coast { fill: none; stroke: var(--kofun); stroke-opacity: .55; stroke-width: 1; stroke-linejoin: round; }
.m-border { fill: none; stroke: var(--aen); stroke-opacity: .5; stroke-width: 1; stroke-dasharray: 5 4; }
.m-ward { fill: var(--kofun); fill-opacity: .9; stroke: var(--sumi); stroke-width: .8; }
.m-rings circle { fill: none; stroke: var(--aen); stroke-opacity: .45; stroke-width: 1; stroke-dasharray: 1 5; stroke-linecap: round; }
.m-rings text { fill: var(--aen); font: 600 11px/1 var(--sans); letter-spacing: .1em; text-anchor: middle; paint-order: stroke; stroke: #0a0a09; stroke-width: 4px; }
.m-pref text { fill: var(--kofun); font-size: 19px; font-weight: 700; letter-spacing: .3em; text-anchor: middle; paint-order: stroke; stroke: #0a0a09; stroke-width: 5px; }
.lang-en .m-pref text { font-size: 15px; letter-spacing: .22em; }
.m-sea { fill: var(--aen); font-size: 13px; letter-spacing: .4em; text-anchor: middle; font-style: italic; }
.m-lead { fill: none; stroke: var(--kofun); stroke-width: 1; }
.m-hq { fill: var(--sumi); stroke: var(--kofun); stroke-width: 2; }
.m-callout { fill: #fff; font-size: 16px; font-weight: 700; letter-spacing: .12em; paint-order: stroke; stroke: #0a0a09; stroke-width: 5px; }
.lang-en .m-callout, .lang-en .m-target-name { letter-spacing: .02em; }  /* 欧文は字間を詰めないと図の右端で切れる */
.m-water { fill: var(--aen); fill-opacity: .14; stroke: none; }
.m-river { fill: none; stroke: var(--aen); stroke-opacity: .35; stroke-width: 1; }
.m-mid { fill: none; stroke: var(--kofun); stroke-opacity: .45; stroke-width: 2; }
.m-major { fill: none; stroke: var(--kofun); stroke-opacity: .7; stroke-width: 4; stroke-linecap: round; }
.m-rail { fill: none; stroke: var(--kofun); stroke-opacity: .55; stroke-width: 2.5; stroke-dasharray: 10 4; }
.m-subway { fill: none; stroke: var(--aen); stroke-opacity: .5; stroke-width: 1.5; stroke-dasharray: 2 4; }  /* 地下を走る線 */
.m-sta rect { fill: #0a0a09; stroke: var(--kofun); stroke-width: 1.5; }
.m-sta text { fill: var(--kofun); font-size: 12px; letter-spacing: .1em; text-anchor: middle; paint-order: stroke; stroke: #0a0a09; stroke-width: 4px; }
.m-sta.big rect { fill: var(--kofun); }
.m-sta.big text { fill: #fff; font-size: 15px; font-weight: 700; }
.m-road text { fill: var(--aen); font-size: 12px; letter-spacing: .14em; text-anchor: middle; paint-order: stroke; stroke: #0a0a09; stroke-width: 4px; }
.map-local .m-lead { stroke-width: 1.6; }
.m-pin { fill: #fff; stroke: #0a0a09; stroke-width: 1.5; }
.m-pin-dot { fill: #0a0a09; }
.m-target-name { fill: #fff; font-size: 17px; font-weight: 700; letter-spacing: .14em; text-anchor: end; paint-order: stroke; stroke: #0a0a09; stroke-width: 5px; }
.m-target-addr { fill: var(--kofun); font: 600 12px/1 var(--sans); letter-spacing: .08em; text-anchor: end; paint-order: stroke; stroke: #0a0a09; stroke-width: 4px; }
.m-north path { fill: var(--kofun); }
.m-north text, .m-scale text { fill: var(--aen); font: 600 11px/1 var(--sans); letter-spacing: .12em; text-anchor: middle; }
.m-scale path { fill: none; stroke: var(--aen); stroke-width: 1.2; }
/* 狭い画面では地図ごと縮むので、図の中の文字を大きくして、縮んだあとも 11px ほどに保つ */
@media (max-width: 560px) {
  .m-pref text { font-size: 34px; stroke-width: 8px; letter-spacing: .2em; }
  .lang-en .m-pref text { font-size: 26px; }
  .m-callout { font-size: 30px; stroke-width: 8px; }
  .lang-en .m-callout { font-size: 20px; }
  .m-rings text { font-size: 20px; stroke-width: 6px; }
  .m-sea { font-size: 22px; }
  .m-target-name { font-size: 28px; stroke-width: 7px; }
  .m-target-addr { font-size: 19px; stroke-width: 6px; }
  .m-road text { font-size: 19px; stroke-width: 6px; }
  .m-sta text { font-size: 18px; stroke-width: 6px; }
  .lang-en .m-target-name { font-size: 22px; }
  .map-local .m-lead { stroke-width: 2.6; }  /* 縮むと 1px の線は消えて見える */
  .lang-en .m-target-addr { font-size: 15px; }
  .m-sta.big text { font-size: 22px; }
  .m-north text, .m-scale text { font-size: 18px; }
}
.map-credit { margin: .4rem 0 0; font-size: .7rem; color: var(--nibi); text-align: right; letter-spacing: .04em; }
.map-credit a { color: var(--nibi); }

/* 会社概要の表 */
.table { margin: 0; border-top: 1px solid var(--line-2); max-width: 860px; }
.table .row { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 4px 28px; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.table dt { color: var(--aen); font-size: .9rem; letter-spacing: .06em; }
.table dd { margin: 0; }
@media (max-width: 640px) { .table .row { grid-template-columns: 1fr; } }
.more { display: inline-block; margin-top: 1.8rem; text-decoration: underline; text-underline-offset: 7px; letter-spacing: .08em; }

/* お問い合わせ */
.contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.lang-note { margin: 0 0 1.6rem; padding: 1rem 1.2rem; border: 1px solid var(--line-2); font-size: .95rem; }
.tel { display: grid; gap: .35rem; padding: 1.1rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.tel + .tel { border-bottom: 1px solid var(--line); }
.tel-label { font-size: .72rem; letter-spacing: .22em; color: var(--nibi); }
.tel-label em { font-style: normal; letter-spacing: .06em; color: var(--aen); margin-left: 1.2em; }
.tel-num { font: 600 clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem)/1.1 var(--serif); letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.tel:hover .tel-num { color: #fff; }
.addr { margin: 1.4rem 0 0; color: var(--aen); font-size: .92rem; }
.addr span { display: block; font-size: .72rem; letter-spacing: .22em; color: var(--nibi); margin-bottom: .2rem; }
.imel-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 560px) { .imel-form .grid2 { grid-template-columns: 1fr; } }
.imel-form .row { margin-bottom: 1.2rem; }
.imel-form label { display: block; font-size: .86rem; letter-spacing: .06em; color: var(--aen); margin-bottom: .45rem; }
.imel-form label em { font-style: normal; font-size: .72rem; color: var(--nibi); margin-left: .8em; }
.imel-form input, .imel-form select, .imel-form textarea { width: 100%; font: inherit; font-size: 16px; color: var(--kofun); background: var(--sumi-2); border: 1px solid var(--line); padding: .75em .9em; border-radius: 0; }
.imel-form textarea { resize: vertical; min-height: 168px; }
.imel-form input:focus, .imel-form select:focus, .imel-form textarea:focus { outline: none; border-color: var(--kofun); }
.imel-form .err { display: block; color: #f0a191; font-size: .85rem; margin-top: .3rem; }
.imel-form .bad input, .imel-form .bad textarea { border-color: #f0a191; }
.imel-form .cf-turnstile { margin: .4rem 0 1.2rem; }
.imel-form .form-status { margin: .8rem 0 0; font-weight: 700; min-height: 1.5em; }
.imel-form .form-status.ok { color: #a9dcb6; }
.imel-form .form-status.ng { color: #f0a191; }

/* 下層ページの見出し */
.page-head { padding: clamp(88px, 11vw, 140px) 0 clamp(44px, 5vw, 64px); background: var(--band) center 35% / cover no-repeat; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 13, 12, .72), var(--sumi)); }
.page-head + .sec { padding-top: clamp(48px, 6vw, 80px); }
.crumbs { margin: 0 0 1.4rem; font-size: .78rem; color: var(--nibi); letter-spacing: .08em; }
.crumbs a { color: var(--nibi); }
.crumbs span { margin: 0 .7em; }
.page-title { margin: 0; font: 700 clamp(2rem, 1.3rem + 2.8vw, 3.4rem)/1.3 var(--serif); letter-spacing: .1em; text-wrap: balance; }

/* 文章だけのページ（404）。基本方針は旧サイトの HTML をそのまま返すので、ここでは装わない */
.prose p { font-size: 1rem; }

/* フッター */
.foot { background: #080808; border-top: 1px solid var(--line); padding: 56px 0 24px; }
.foot-in { width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.foot-logo { height: 34px; width: auto; margin-bottom: 1.2rem; }
.foot-brand p { margin: 0 0 .6rem; color: var(--aen); font-size: .88rem; }
.foot-lic { font-size: .8rem !important; color: var(--nibi) !important; }
.foot-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; align-content: start; }
.foot-nav a { text-decoration: none; font-size: .88rem; letter-spacing: .04em; }
.foot-nav a:hover { text-decoration: underline; }
.copy { width: var(--wrap); margin: 36px auto 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--nibi); letter-spacing: .04em; }
@media (max-width: 720px) { .foot-in { grid-template-columns: 1fr; } }
