@charset "UTF-8";
/* ============================================================
   有限会社LEVEL 公式サイト 共通スタイル
   ブランドカラー #00479d（ロゴ実測）を基準に構築
   ============================================================ */

:root {
  /* --- ブランドカラー（ロゴの #00479d から展開） --- */
  --brand:      #00479d;
  --brand-900:  #00182f;
  --brand-850:  #001e3f;
  --brand-800:  #002a5c;
  --brand-700:  #003a80;
  --brand-600:  #00479d;
  --brand-500:  #1a62b8;
  --brand-300:  #7aa6dc;
  --brand-100:  #d9e5f6;
  --brand-50:   #eef3fb;
  --gold:       #c9a227;

  /* --- 文字 --- */
  --ink:      #0b1727;
  --ink-sub:  #566579;
  --ink-inv:  #ffffff;
  --ink-inv-sub: #b6c8de;

  --line:     #dbe4f0;
  --line-inv: rgba(255, 255, 255, .16);

  /* --- 書体 --- */
  --font-jp: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Meiryo', sans-serif;
  /* 見出しも本文と同じゴシック。太さと字間で差をつける */
  --font-serif: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --font-en: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --maxw: 1160px;
  --gutter: 24px;
  --ease: cubic-bezier(.22, .68, .18, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: #fff;
  line-height: 2.0;
  font-size: 16px;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 860px; }

/* ============ 出現アニメーション ============ */
.reveal {
  opacity: 0;
  transform: translate(0, 1rem);
  transition: opacity .37s ease-in-out, transform .37s ease-in-out;
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }
.reveal.d5 { transition-delay: .35s; }

/* 線が伸びる */
.grow-line { transform: scaleX(0); transform-origin: left; transition: transform .5s ease-in-out; }
.grow-line.is-in { transform: scaleX(1); }

/* ============ ヘッダー ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .45s var(--ease), border-color .45s var(--ease), padding .45s var(--ease);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(10px);
}
.header.is-clear {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 16px;
}
.header-logo { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.header-logo img { height: 46px; width: auto; transition: filter .45s var(--ease); }
.header-logo .lockup {
  display: block; padding-left: 14px;
  border-left: 1px solid var(--line);
  transition: border-color .45s var(--ease);
}
.header-logo .wm {
  display: block; font-family: var(--font-en); font-weight: 700;
  font-size: 18px; letter-spacing: .12em; line-height: 1;
  text-indent: .12em;
}
.header-logo .tg {
  display: block; font-family: var(--font-en); font-weight: 600;
  font-size: 8px; color: var(--ink-sub);
  letter-spacing: .02em; line-height: 1; margin-top: 8px; white-space: nowrap;
  text-indent: .02em;
  transition: color .45s var(--ease);
}
.header.is-clear .header-logo .lockup { border-left-color: rgba(255,255,255,.3); }
.header.is-clear .header-logo { color: #fff; }
.header.is-clear .header-logo img { filter: brightness(0) invert(1); }
.header.is-clear .header-logo .tg { color: var(--brand-300); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 9px 11px; font-size: 13.5px; font-weight: 500; white-space: nowrap;
  text-decoration: none; color: var(--ink); border-radius: 3px;
  transition: color .25s, background .25s;
}
.nav a:hover { background: var(--brand-50); color: var(--brand); }
.nav a.is-current { color: var(--brand); font-weight: 700; }
.header.is-clear .nav a { color: #e8f0f9; }
.header.is-clear .nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.nav .btn-tel {
  margin-left: 10px; background: var(--brand); color: #fff; font-weight: 700;
  font-family: var(--font-en); letter-spacing: .04em;
}
.nav .btn-tel:hover { background: var(--brand-700); color: #fff; }
.header.is-clear .nav .btn-tel { background: #fff; color: var(--brand); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 3px; background: #fff; cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--ink); transition: .25s;
}
.nav-toggle::before { top: 14px; }
.nav-toggle span { top: 21px; }
.nav-toggle::after { bottom: 14px; }
.nav-toggle[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::after { bottom: 21px; transform: rotate(-45deg); }

/* ============ セクション ============ */
.section { padding: 130px 0; }
.section.tight { padding: 86px 0; }
.section.pale { background: var(--brand-50); }
.section.navy { background: var(--brand-850); color: var(--ink-inv); }
.section.navy .eyebrow { color: var(--brand-300); }
.section.navy .big { color: #fff; }
.section.navy p { color: var(--ink-inv-sub); }

/* 英語の小見出し */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-en); font-size: 11px; font-weight: 700;
  letter-spacing: .28em; color: var(--brand-500);
  margin: 0 0 26px; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 40px; height: 1px; background: currentColor;
  display: block; flex: none;
}

/* 大見出し */
.big {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(31px, 4.9vw, 58px);
  line-height: 1.45; letter-spacing: -.02em; color: var(--ink);
}
.big.sm { font-size: clamp(25px, 3.4vw, 39px); }

.body-text { font-size: 16px; line-height: 2.2; }
.body-text.sub { color: var(--ink-sub); }
.lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 2.2; }
.note { font-size: 13px; color: var(--ink-sub); line-height: 1.95; }

/* ============ ページ見出し ============ */
.page-head {
  background: linear-gradient(115deg, var(--brand-900) 0%, var(--brand-850) 48%, var(--brand-800) 100%);
  color: #fff; padding: 168px 0 84px; position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%;
  right: -180px; top: -200px; border: 1px solid rgba(255,255,255,.07);
  background: radial-gradient(circle at 35% 35%, rgba(122,166,220,.16), transparent 65%);
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head .eyebrow { color: var(--brand-300); }
.page-head h1 {
  margin: 0; font-weight: 700;
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(29px, 4.3vw, 50px); line-height: 1.45; letter-spacing: -.02em;
}
.page-head p { margin: 22px 0 0; color: var(--ink-inv-sub); font-size: 15px; }

.breadcrumb { font-size: 12px; color: var(--ink-sub); padding: 18px 0; }
.breadcrumb a { color: var(--ink-sub); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ============ 部品 ============ */
.btn {
  display: inline-block; padding: 17px 38px;
  background: var(--brand); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 15px; letter-spacing: .05em;
  border: 1px solid var(--brand); border-radius: 2px;
  position: relative; overflow: hidden; transition: color .35s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; background: var(--brand-800);
  transform: translateY(101%); transition: transform .42s var(--ease); z-index: 0;
}
.btn:hover::after { transform: translateY(0); }
.btn > span, .btn { z-index: 1; }
.btn span { position: relative; z-index: 1; }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost::after { background: var(--brand); }
.btn.ghost:hover { color: #fff; }
.btn.on-navy { background: #fff; color: var(--brand-850); border-color: #fff; }
.btn.on-navy::after { background: var(--brand-100); }

/* 語りブロック */
.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; margin-top: 58px; }
.voices .v { border-top: 1px solid var(--line); padding: 32px 0 36px; }
.voices .v p { margin: 0; font-size: 16px; line-height: 2.05; }
.voices .v.full { grid-column: 1 / -1; }
.section.navy .voices .v { border-top-color: var(--line-inv); }
.section.navy .voices .v p { color: #dbe7f5; }

/* 3つの柱 */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; margin-top: 62px; }
.pillars .p { border-top: 1px solid var(--line); padding: 28px 0 0; }
.pillars .p h3 { margin: 0 0 14px; font-size: 18px; font-weight: 700; letter-spacing: .06em; }
.pillars .p p { margin: 0; font-size: 14px; line-height: 2.05; color: var(--ink-sub); }
.section.navy .pillars .p { border-top-color: var(--line-inv); }
.section.navy .pillars .p h3 { color: #fff; }

/* 相談の入口 */
.doors { margin-top: 58px; border-top: 1px solid var(--line); }
.door {
  display: grid; grid-template-columns: 80px 1fr 44px;
  align-items: center; gap: 0 10px;
  padding: 34px 24px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  position: relative; overflow: hidden;
  transition: color .4s var(--ease);
}
.door::before {
  content: ""; position: absolute; inset: 0; background: var(--brand-50);
  transform: translateX(-100%); transition: transform .5s var(--ease); z-index: 0;
}
.door:hover::before { transform: translateX(0); }
.door > * { position: relative; z-index: 1; }
.door .num { font-family: var(--font-en); font-size: 13px; font-weight: 600; color: var(--ink-sub); letter-spacing: .12em; }
.door h3 { margin: 0 0 8px; font-family: var(--font-serif); font-size: clamp(20px, 2.3vw, 27px); font-weight: 700; letter-spacing: -.01em; line-height: 1.55; }
.door p { margin: 0; font-size: 14px; color: var(--ink-sub); line-height: 1.9; }
.door .arrow { font-size: 20px; text-align: right;
  transition: transform .42s var(--ease), color .22s var(--ease); }

/* 押せる場所だと、触れた時点で分かるように
   ─ 文字が青くなる／矢印が動く／左に線が出る */
.door h3, .door .num { transition: color .22s var(--ease); }
.door::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand); z-index: 1;
  transform: scaleY(0); transform-origin: center;
  transition: transform .34s var(--ease);
}
.door:hover h3, .door:focus-visible h3 { color: var(--brand); }
.door:hover .num, .door:focus-visible .num { color: var(--brand); }
.door:hover .arrow, .door:focus-visible .arrow { transform: translateX(7px); color: var(--brand); }
.door:hover::after, .door:focus-visible::after { transform: scaleY(1); }

/* 指で触る画面にはホバーがない。最初から押せると分かるようにしておく */
@media (hover: none) {
  .door .arrow { color: var(--brand); }
  .door:active::before { transform: translateX(0); }
  .door:active h3, .door:active .num { color: var(--brand); }
  .door:active::after { transform: scaleY(1); }
}
.door .tag {
  display: inline-block; margin-left: 12px; vertical-align: 4px;
  font-family: var(--font-en); font-size: 10px; font-weight: 700; letter-spacing: .1em;
  background: var(--brand-100); color: var(--brand-700);
  padding: 4px 11px; border-radius: 99px;
}

/* 数字 */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.figures .f { border-top: 1px solid var(--line); padding-top: 24px; }
.figures .n {
  font-family: var(--font-en); font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700; letter-spacing: .01em; line-height: 1.15; margin: 0; color: var(--brand);
}
.figures .n .u { font-family: var(--font-jp); font-size: 15px; font-weight: 700; color: var(--ink); }
.figures .l { font-size: 13px; color: var(--ink-sub); margin: 10px 0 0; }
.section.navy .figures .f { border-top-color: var(--line-inv); }
.section.navy .figures .n { color: #fff; }
.section.navy .figures .n .u { color: var(--brand-300); }

/* 写真 */
.photo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-row figure { margin: 0; overflow: hidden; background: var(--brand-100); }
.photo-row img {
  aspect-ratio: 4/3; object-fit: cover; width: 100%;
  transition: transform 1.1s var(--ease);
}
.photo-row figure:hover img { transform: scale(1.07); }

/* テーブル */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 22px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { width: 200px; font-weight: 700; }

/* ============ フッター ============ */
.footer { background: var(--brand-900); color: var(--ink-inv-sub); padding: 88px 0 32px; font-size: 14px; }
.footer a { color: var(--ink-inv-sub); text-decoration: none; transition: color .25s; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 48px; }
.footer h3 { color: #fff; font-family: var(--font-en); font-size: 11px; margin: 0 0 18px; letter-spacing: .24em; font-weight: 700; }
.footer .flogo { display: flex; align-items: center; margin-bottom: 22px; }
.footer .flogo img { height: 52px; width: auto; filter: brightness(0) invert(1); }
.footer .flogo .lockup { display: block; padding-left: 16px; border-left: 1px solid var(--line-inv); }
.footer .flogo b { display: block; color: #fff; font-family: var(--font-en); font-size: 20px; letter-spacing: .12em; font-weight: 700; line-height: 1; text-indent: .12em; }
.footer .flogo > span > span { display: block; font-family: var(--font-en); font-size: 9px; letter-spacing: .02em; color: var(--brand-300); margin-top: 9px; line-height: 1; text-indent: .02em; }
.footer .addr { margin: 0; line-height: 2.0; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 11px; }
/* 画面上のQRは読み取れないので、他サイトと同じアイコン表示にする。
   アイコンだけだと何か分からないので、下に名前を出す */
.sns { display: flex; gap: 18px; margin-top: 22px; }
.sns a {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-decoration: none;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.sns a i {
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
}
.sns svg { width: 19px; height: 19px; fill: #fff; display: block; }
.sns b {
  font-family: var(--font-en); font-size: 10px; font-weight: 600;
  letter-spacing: .07em; line-height: 1; color: var(--ink-inv-sub);
  transition: color .25s var(--ease);
}
.sns a:hover { transform: translateY(-2px); }
.sns a:hover b { color: #fff; }
.sns-insta i { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.sns-note  i { background: #41C9B4; }
.sns-line  i { background: #06C755; }

/* LINEの固定ボタン（他サイトと同じ見た目） */
.line-float-btn {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 50px;
  background: #06C755; color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(6,199,85,.45);
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.line-float-btn svg { width: 24px; height: 24px; fill: #fff; flex: none; }
.line-float-btn:hover {
  background: #05a847; transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(6,199,85,.55);
}
@media (max-width: 480px) {
  .line-float-btn { padding: 14px; border-radius: 50%; right: 16px; bottom: 16px; }
  .line-float-btn span { display: none; }
}
@media print { .line-float-btn { display: none; } }
.group-links { margin-top: 18px; }
.group-links a {
  display: inline-block; padding: 10px 16px; border-radius: 2px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  background: #9c2a1f; color: #fff;
}
.group-links a:hover { background: #bd3425; color: #fff; }
.copyright {
  margin-top: 62px; padding-top: 24px;
  border-top: 1px solid var(--line-inv); font-size: 12px; text-align: center;
  font-family: var(--font-en); letter-spacing: .08em;
}

/* ============ レスポンシブ ============ */
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; gap: 0; }
  .pillars .p { padding: 26px 0; }
  .figures { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .photo-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  body { font-size: 15px; line-height: 1.95; }
  .section { padding: 76px 0; }
  .section.tight { padding: 56px 0; }
  .page-head { padding: 118px 0 54px; }
  .voices { grid-template-columns: 1fr; gap: 0; margin-top: 38px; }
  .voices .v { padding: 24px 0 26px; }
  .doors { margin-top: 38px; }
  .door { grid-template-columns: 46px 1fr 26px; padding: 26px 6px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px var(--gutter) 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 15px 6px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink) !important; }
  .nav .btn-tel { margin: 16px 0 0; text-align: center; border-bottom: 0; background: var(--brand) !important; color: #fff !important; }
  .header.is-clear { background: rgba(0, 24, 47, .5); backdrop-filter: blur(8px); }
  .table th, .table td { display: block; width: 100%; padding: 15px 0; }
  .table th { border-bottom: 0; padding-bottom: 0; color: var(--ink-sub); font-size: 13px; }
}

/* ============ 動きを減らす設定への配慮 ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .grow-line { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ============ 見出しの約物詰め（kerning.js と対）============ */
.k { display: inline-block !important; vertical-align: baseline; }
/* 約物とその直前（または直後）の1文字を、離れない塊にする。
   これをしないと「。」だけが次の行に落ちる。 */
.kw { white-space: nowrap; }
.k-l { margin-right: -.44em; }      /* 、。」）など：右のアキを削る */
.k-l.k-end { margin-right: -.28em; } /* 文末は少し残す */
.k-r { margin-left: -.42em; }        /* 「（など：左のアキを削る */

/* 日本語の禁則をきちんと効かせる（行頭に「。」を落とさない） */
h1, h2, h3, h4, p, li, dd, dt, .big, .closing {
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
}
/* 見出し・ボタンは行の長さを均す（最終行に2文字だけ残さない） */
h1, h2, h3, h4, .big, .closing, .btn span, .cat-label {
  text-wrap: balance;
}
/* 本文は最終行に1〜2文字だけ取り残さない */
p, li, dd { text-wrap: pretty; }
/* 数字と単位は離さない（「2005 / 年」を防ぐ） */
.figures .n, .figures .f > .n { white-space: nowrap; }

.marquee-outer { overflow: hidden; }

/* ============ 現れ方のバリエーション（ページのリズム）============ */
.reveal-l { opacity: 0; transform: translate(-2.2rem, 0);
  transition: opacity .55s ease-out, transform .55s cubic-bezier(.16,1,.3,1); }
.reveal-r { opacity: 0; transform: translate(2.2rem, 0);
  transition: opacity .55s ease-out, transform .55s cubic-bezier(.16,1,.3,1); }
.reveal-s { opacity: 0; transform: scale(.94);
  transition: opacity .6s ease-out, transform .7s cubic-bezier(.16,1,.3,1); }
.reveal-l.is-in, .reveal-r.is-in, .reveal-s.is-in { opacity: 1; transform: none; }
.reveal-l.d1, .reveal-r.d1, .reveal-s.d1 { transition-delay: .07s; }
.reveal-l.d2, .reveal-r.d2, .reveal-s.d2 { transition-delay: .14s; }
.reveal-l.d3, .reveal-r.d3, .reveal-s.d3 { transition-delay: .21s; }
.reveal-l.d4, .reveal-r.d4, .reveal-s.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-l, .reveal-r, .reveal-s { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ロゴは画像のみ（文字組みは廃止） */
.header-logo .lockup, .footer .flogo .lockup { display: none; }
@media (max-width: 960px) { .header-logo img { height: 40px; } }


/* ===================== 図面のレイヤー =====================
   ベタ塗りの地の上に、方眼・通り芯・隅出し・寸法線を薄く重ねる。
   「図面を書くみたいに線を引く」ための共通の地。 */
:root {
  --plan-fine:   rgba(0, 71, 157, .050);
  --plan-bold:   rgba(0, 71, 157, .105);
  --plan-fine-i: rgba(255, 255, 255, .052);
  --plan-bold-i: rgba(255, 255, 255, .105);
}

.section { position: relative; overflow-x: clip; }
.section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--plan-fine) 1px, transparent 1px),
    linear-gradient(to bottom, var(--plan-fine) 1px, transparent 1px),
    linear-gradient(to right,  var(--plan-bold) 1px, transparent 1px),
    linear-gradient(to bottom, var(--plan-bold) 1px, transparent 1px);
  background-size: 30px 30px, 30px 30px, 150px 150px, 150px 150px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 74%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 74%, transparent 100%);
}
.section.navy::before {
  background-image:
    linear-gradient(to right,  var(--plan-fine-i) 1px, transparent 1px),
    linear-gradient(to bottom, var(--plan-fine-i) 1px, transparent 1px),
    linear-gradient(to right,  var(--plan-bold-i) 1px, transparent 1px),
    linear-gradient(to bottom, var(--plan-bold-i) 1px, transparent 1px);
}

/* 隅出し（四隅の合わせ線） */
.section.pale::after,
.section.navy::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: clamp(26px, 3.4vw, 52px) clamp(16px, 4vw, 64px);
  --c: var(--plan-bold);
  background:
    linear-gradient(var(--c),var(--c)) left  top   /24px 1px no-repeat,
    linear-gradient(var(--c),var(--c)) left  top   /1px 24px no-repeat,
    linear-gradient(var(--c),var(--c)) right top   /24px 1px no-repeat,
    linear-gradient(var(--c),var(--c)) right top   /1px 24px no-repeat,
    linear-gradient(var(--c),var(--c)) left  bottom/24px 1px no-repeat,
    linear-gradient(var(--c),var(--c)) left  bottom/1px 24px no-repeat,
    linear-gradient(var(--c),var(--c)) right bottom/24px 1px no-repeat,
    linear-gradient(var(--c),var(--c)) right bottom/1px 24px no-repeat;
}
.section.navy::after { --c: var(--plan-bold-i); }

/* 平面図の線画（地としてうっすら） */
.plan-art {
  position: absolute; z-index: -1; pointer-events: none;
  right: -4%; bottom: -6%;
  width: min(58vw, 760px); aspect-ratio: 900/620;
  background: url("images/plan-line.svg") right bottom / contain no-repeat;
  opacity: .14;
  -webkit-mask-image: linear-gradient(200deg, transparent 4%, #000 42%);
          mask-image: linear-gradient(200deg, transparent 4%, #000 42%);
}
.section.navy .plan-art { opacity: .16; filter: invert(1) brightness(2.2); }

/* 寸法線（見出しの上などに置く小さな印） */
.dim {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 20px;
  font-family: var(--font-en); font-size: 10px; font-weight: 600;
  letter-spacing: .24em; color: var(--brand-500); opacity: .5;
}
.dim i { position: relative; display: block; height: 1px; background: currentColor;
  width: clamp(48px, 8vw, 120px); flex: none; }
.dim i::before, .dim i::after {
  content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: currentColor;
}
.dim i::before { left: 0; } .dim i::after { right: 0; }
.dim span { white-space: nowrap; }
.section.navy .dim { color: var(--brand-300); opacity: .6; }

@media (max-width: 720px) {
  .section::before { background-size: 22px 22px, 22px 22px, 110px 110px, 110px 110px; }
  .plan-art { width: 94vw; right: -10%; opacity: .1; }
}
@media print { .section::before, .section::after, .plan-art { display: none; } }
