/* ============================================================
   DiCrea コーポレートサイト CSS（2026-10-05 初回デザイン・カンプ準拠）
   ------------------------------------------------------------
   ★規律：ブランド色の直値をここに書かない。色は必ず var() を参照する
     （トークンは parts/theme.php が site.php の3色から生成する）。
     白の透過rgba等、ブランドと無関係な値だけ直値でよい。
   ★デザインシステム（カンプ共通）：
     地＝ミルキーホワイト（--bg）／淡いグレーの面（--surface）／文字と主ボタン＝濃紺（--ink）
     見出しの型＝小さな英字ラベル（字間広め）＋細い横線（右端に点）→ 大きな日本語見出し
     細い罫線で区切る・余白を広く・ゴシック体
     ボタンは2種類だけ＝濃紺の塗り（.btn）と下線付きテキストリンク（.lnk／外部は .lnk--ext）
   ★アニメは控えめなフェードインだけ。prefers-reduced-motion: reduce で全停止
   ★繰り返し要素はタグでなくクラスで当てる
   ============================================================ */

/* ── フォント（欧文のみself-host。和文はシステムスタック＝theme.php） ── */
@font-face {
  font-family: 'BrandEn';
  src: url('/assets/fonts/brand-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* ── レイアウト定数（色は theme.php。寸法だけここで持つ） ── */
:root {
  --wrap: 1200px;
  --gutter: 40px;
  --pad-sec: clamp(56px, 6.5vw, 96px);
  --pad-tight: clamp(20px, 2.4vw, 32px);
  --panel-x: clamp(24px, 3.6vw, 52px);
  --panel-y: clamp(32px, 4vw, 56px);
}
@media (max-width: 767px) {
  :root { --gutter: 20px; --pad-sec: clamp(48px, 12vw, 64px); }
}

/* ── リセット・ベース ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;              /* 保険。横スクロールは要素側で出さないのが本筋 */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
.en { font-family: var(--font-en); letter-spacing: .04em; }
.pc-br { display: none; }
@media (min-width: 768px) { .pc-br { display: inline; } }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ── スクロール出現（[data-rev]）＝控えめなフェードインだけ ───────── */
html.js [data-rev] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,.65,.3,1);
  transition-delay: var(--d, 0s);
}
html.js [data-rev].on,
html.js.rev-safe [data-rev] { opacity: 1; transform: none; }

/* ============================================================
   共通部品
   ============================================================ */
/* セクション */
.sec { padding-block: var(--pad-sec); }
.sec--tight { padding-block: var(--pad-tight); }
.sec__h { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: .04em; line-height: 1.5; margin-top: 22px; }

/* 見出しの型：英字ラベル＋線（.sh--dot＝右端に点） */
.sh { display: flex; align-items: center; gap: 20px; }
.sh__lbl {
  flex: none; font-family: var(--font-en);
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); line-height: 1.4;
}
.sh__line { position: relative; flex: 1 1 auto; height: 1px; background: var(--line-strong); }
.sh--dot .sh__line::after {
  content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink);
}

/* 淡いグレーの面 */
.panel { background: var(--surface); padding: var(--panel-y) var(--panel-x); }
.panel .sh__line { background: var(--line-strong); }

/* 濃紺の塗りボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 22px;
  background: var(--band); color: var(--on-band);
  font-size: 15px; font-weight: 700; letter-spacing: .06em; line-height: 1.4;
  padding: 18px 34px; border: 1px solid var(--band); border-radius: var(--r-btn);
  cursor: pointer; transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.btn svg { width: 24px; height: 8px; flex: none; transition: transform .25s ease; }
.btn:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn:hover svg { transform: translateX(5px); }
.btn--lg { padding: 22px 52px; font-size: 16px; gap: 28px; }
.btn--wide { width: 100%; justify-content: space-between; }
.btn:disabled { opacity: .6; cursor: default; }

/* 下線付きテキストリンク（→／外部は ↗） */
.lnk {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 600; letter-spacing: .02em; line-height: 1.5;
  text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px;
  transition: text-decoration-color .2s ease;
}
.lnk svg { width: 22px; height: 7px; flex: none; transition: transform .25s ease; }
.lnk:hover { text-decoration-thickness: 2px; }
.lnk:hover svg { transform: translateX(4px); }
.lnk--ext svg { width: 12px; height: 12px; }
.lnk--ext:hover svg { transform: translate(2px, -2px); }
.lnk--back svg { width: 22px; height: 7px; }
.lnk--back:hover svg { transform: translateX(-4px); }
/* URL未受領の仮置き（data-pending）はカーソルだけ既定に戻す。見た目はそのまま */
.lnk[data-pending] { cursor: default; }

/* ============================================================
   ヘッダー（地色のソリッドバー・非オーバーレイ）
   ============================================================ */
.hd {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  transition: box-shadow .3s ease;
}
.hd.stuck { box-shadow: 0 1px 0 var(--line); }
.hd__in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo--text {
  font-family: var(--font-en); font-weight: 800; font-size: 26px;
  letter-spacing: .01em; color: var(--ink); line-height: 1;
}
.logo--light { color: var(--on-band); }
.hd__r { display: flex; align-items: center; gap: 34px; }
.hd__nav { display: flex; gap: 32px; }
.hd__link {
  position: relative; font-size: 14px; font-weight: 700; letter-spacing: .04em;
  padding-block: 8px;
}
.hd__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left center; transition: transform .25s ease;
}
.hd__link:hover::after, .hd__link[aria-current="page"]::after { transform: scaleX(1); }
.hd__cta {
  display: inline-flex; align-items: center;
  background: var(--band); color: var(--on-band);
  font-size: 13.5px; font-weight: 700; letter-spacing: .06em;
  padding: 13px 26px; border-radius: var(--r-btn);
  transition: background .25s ease, color .25s ease;
}
.hd__cta:hover { background: var(--brand); color: var(--on-brand); }

/* バーガー（〜1024pxで表示） */
.burger { display: none; }
@media (max-width: 1024px) {
  .hd__nav, .hd__cta { display: none; }
  .burger {
    position: relative; z-index: 101;
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 10px; margin-right: -10px;
    background: none; border: 0; cursor: pointer;
  }
  .burger i { display: block; height: 1.5px; background: var(--ink); transition: transform .3s ease, opacity .3s ease; }
  body.nav-open .burger i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .burger i:nth-child(2) { opacity: 0; }
  body.nav-open .burger i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ドロワー（スマホのメニュー） */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  overflow-y: auto; padding-top: 96px;
}
.drawer.on { opacity: 1; visibility: visible; transform: none; }
.drawer__in { padding: 0 var(--gutter) 48px; }
.drawer__nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 4px; font-size: 17px; font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.drawer__link svg { width: 22px; height: 7px; }
.drawer__cta { margin-top: 32px; }
.drawer__cta .btn { width: 100%; justify-content: space-between; }

/* ============================================================
   フッター（濃紺の帯）
   ============================================================ */
.ft { background: var(--band); color: var(--on-band); padding-block: 30px; }
.ft__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.ft__l { display: flex; align-items: baseline; gap: 18px; }
.ft__logo .logo--text { font-size: 26px; }
.ft__area { font-size: 13px; opacity: .8; letter-spacing: .04em; }
.ft__tag { font-size: 13px; opacity: .8; }
.ft__r { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.ft__nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.ft__nav a { font-size: 13.5px; font-weight: 600; opacity: .9; transition: opacity .2s ease; }
.ft__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.ft__copy { font-size: 13px; opacity: .85; border-left: 1px solid rgba(255,255,255,.35); padding-left: 28px; line-height: 1.4; }
.ft__sample { border-top: 1px solid rgba(255,255,255,.16); margin-top: 20px; padding-top: 16px; }
.ft__sample p { font-size: 12.5px; line-height: 1.9; opacity: .66; max-width: 76ch; }

/* ============================================================
   問い合わせ帯（CONTACT：事業内容・会社概要の末尾）
   ============================================================ */
.cta { padding-block: clamp(40px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.cta__in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(24px, 3.6vw, 48px); margin-top: 26px; }
.cta__h { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; letter-spacing: .04em; line-height: 1.5; }
.cta__note { font-size: 14px; color: var(--muted); border-left: 1px solid var(--line-strong); padding-left: clamp(24px, 3.6vw, 48px); line-height: 1.9; }
.cta__act { justify-self: end; text-align: center; }
.cta__bnote { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ============================================================
   下層ページのタイトル部分（左＝ラベル＋線＋ページ名／右＝写真／右上＝パンくず）
   ============================================================ */
.ph { position: relative; overflow: hidden; }
/* 写真＝画面幅いっぱいの帯。左側を地色へフェードさせ、その上にページ名を重ねる */
.ph__media { position: absolute; inset: 0; }
.ph__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
/* 左は地色で塗りつぶし→中央で抜ける（高解像度に差し替えても同じ見え方になる） */
.ph__media::after {
  content: ''; position: absolute; inset: 0;
  /* ★--veil-* は明るい地色の案件では濃紺（FV用）になるので使わない。地色そのものでフェードさせる。
     塗りつぶしの終わり＝画面中央の少し左（最低600px）＝ページ名の右端より外。そこから360pxで抜ける */
  --ph-solid: max(calc(50% - 60px), 600px);
  background: linear-gradient(90deg, var(--bg) 0, var(--bg) var(--ph-solid), transparent calc(var(--ph-solid) + 360px));
}
.ph__in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; grid-template-areas: "bc" "body";
  min-height: clamp(300px, 27vw, 420px); padding-block: 20px clamp(28px, 3vw, 40px);
}
.ph__bc { grid-area: bc; justify-self: end; align-self: start; font-size: 12px; letter-spacing: .03em; color: var(--muted); }
.ph:not(.ph--noimg) .ph__bc { background: color-mix(in srgb, var(--bg) 88%, transparent); padding: 4px 12px; color: var(--ink); }
.ph__bc ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ph__bc li { display: inline-flex; align-items: center; gap: 12px; }
.ph__bc li + li::before { content: '\2192'; color: var(--muted); }
.ph__bc a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ph__bc span { color: var(--ink); }
.ph__body { grid-area: body; align-self: center; max-width: 560px; padding-block: clamp(16px, 2vw, 28px); }
/* 長いページ名（プライバシーポリシー等）は1段小さく＝page-hero.php が7文字以上で .ph__h--long を付ける */
.ph__h--long { font-size: clamp(30px, 3.6vw, 48px) !important; }
.ph__h { font-size: clamp(38px, 5.6vw, 72px); font-weight: 800; letter-spacing: .04em; line-height: 1.25; margin-top: clamp(24px, 3vw, 44px); }
.ph--noimg .ph__in { min-height: 0; }
/* 〜1024px：写真を重ねると文字の逃げ場が無いので、パンくず→ページ名→全幅の写真の縦積み */
@media (max-width: 1024px) {
  .ph { display: flex; flex-direction: column; }
  .ph__in { width: 100%; min-height: 0; padding-block: 16px 20px; }   /* flexの子＋margin-inline:auto で縮んで中央寄せになるのを防ぐ */
  .ph__bc { justify-self: start; }
  .ph:not(.ph--noimg) .ph__bc { background: none; padding: 0; color: var(--muted); }
  .ph__body { padding-block: 12px 0; max-width: none; }
  .ph__media { position: relative; inset: auto; order: 2; aspect-ratio: 5 / 2; }
  .ph__media::after { background: linear-gradient(180deg, var(--bg) 0%, transparent 35%); }
}

/* ============================================================
   TOP
   ============================================================ */
/* FV：画面幅いっぱいの写真。文字はコンテンツ幅（.wrap）の左端に揃える */
.fv { padding-top: 0; }
.fv__box { position: relative; height: clamp(420px, 48vw, 760px); overflow: hidden; }
.fv__media { display: contents; }
.fv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 文字の可読性を作るベール（左ほど濃い。色はトークン参照） */
.fv__box::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--veil-2) 0%, var(--veil-3) 48%, transparent 78%);
}
.fv__frame { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; }
.fv__copy { color: #fff; max-width: 100%; }
.fv__catch {
  font-family: var(--font-en); font-weight: 300; letter-spacing: .01em;
  font-size: clamp(36px, 5.4vw, 72px); line-height: 1.18;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.fv__line { display: block; }
.fv__cap { font-weight: 800; }
.fv__sub {
  margin-top: clamp(14px, 2vw, 24px);
  font-size: clamp(14px, 1.5vw, 19px); font-weight: 500; letter-spacing: .12em;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.fv__cap-note { margin-top: 14px; font-size: 12px; letter-spacing: .1em; color: var(--muted); }
/* FV登場（ページロード時のフェードだけ） */
html.js .fv__line { opacity: 0; animation: fv-fade .9s ease forwards; animation-delay: calc(.1s + var(--i, 0) * .14s); }
html.js .fv__sub { opacity: 0; animation: fv-fade .9s ease forwards .6s; }
@keyframes fv-fade { to { opacity: 1; } }

/* OUR DECLARATION */
.decl__in { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); margin-top: 28px; }
.decl__h { font-size: clamp(30px, 3.3vw, 44px); font-weight: 800; letter-spacing: .02em; line-height: 1.45; }
.decl__r { padding-top: 10px; }
.decl__note { font-size: 15px; line-height: 2; }
.decl__r .lnk { margin-top: 26px; }

/* BUSINESS 01（淡グレー面） */
.biz1__in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 64px); margin-top: 28px; align-items: start; }
/* 写真ありの型：右の写真をパネルの右端まで出す（右の余白を食う） */
.biz1__in--img { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
.biz1__in--img .biz1__h { font-size: clamp(26px, 2.6vw, 38px); text-wrap: balance; }
.biz1__media { margin-right: calc(-1 * var(--panel-x)); aspect-ratio: 3 / 2; overflow: hidden; }
.biz1__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.biz1__h { font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; letter-spacing: .02em; line-height: 1.3; }
.biz1__catch { font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; margin-top: 20px; line-height: 1.7; }
.biz1__lead { font-size: 15px; line-height: 2; color: var(--muted-surface); margin-top: 16px; }
.biz1__items { padding-top: 8px; }
.biz1__in--img .biz1__items { margin-top: clamp(20px, 2.4vw, 32px); padding-top: 0; max-width: 560px; }
.biz1__in--img .biz1__items li { font-size: clamp(15px, 1.3vw, 17px); padding: 14px 0; }
.biz1__items li { font-size: clamp(16px, 1.5vw, 19px); font-weight: 500; padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.biz1__act { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: clamp(32px, 4vw, 48px); }
.biz1__act .lnk { padding-left: 32px; border-left: 1px solid var(--line-strong); }

/* BUSINESS 02・03（1行の行組み） */
.bizrow__list { border-top: 1px solid var(--line-strong); }
.bizrow { border-bottom: 1px solid var(--line-strong); }
.bizrow__a {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
  align-items: center; gap: clamp(24px, 3.6vw, 56px);
  padding: clamp(28px, 3.4vw, 44px) 0; transition: background .25s ease;
}
/* 写真ありの型：左＝横長の写真／右＝ラベル・事業名・説明 */
.bizrow__a--img { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) 40px; padding: clamp(14px, 1.4vw, 20px) 0; }
.bizrow__media { display: block; aspect-ratio: 16 / 5; overflow: hidden; margin-left: clamp(0px, 1vw, 16px); }
.bizrow__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.bizrow__a--img:hover .bizrow__media img { transform: scale(1.03); }
.bizrow__a--img .bizrow__l { padding-left: 0; gap: 10px; }
.bizrow__a--img .bizrow__desc { border-left: 0; padding-left: 0; margin-top: 4px; max-width: 34em; }
.bizrow__l { display: flex; flex-direction: column; gap: 12px; padding-left: clamp(0px, 1vw, 16px); }
.bizrow__name { font-size: clamp(22px, 2.8vw, 34px); font-weight: 800; letter-spacing: .02em; line-height: 1.4; }
.bizrow__desc { font-size: 15px; line-height: 1.9; color: var(--muted); border-left: 1px solid var(--line-strong); padding-left: clamp(24px, 3.6vw, 56px); }
.bizrow__arr { display: inline-flex; justify-content: flex-end; }
.bizrow__arr svg { width: 26px; height: 8px; transition: transform .25s ease; }
.bizrow__a:hover .bizrow__arr svg { transform: translateX(5px); }
.bizrow__a:hover .bizrow__name { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }

/* REPRESENTATIVE */
.rep__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.rep__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.rep__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rep__h { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: .02em; line-height: 1.45; margin-top: 24px; }
.rep__sub { font-size: clamp(16px, 1.5vw, 19px); font-weight: 700; line-height: 1.8; margin-top: 18px; }
.rep__text { margin-top: 22px; }
.rep__text p { font-size: 15px; line-height: 2.1; color: var(--muted); }
.rep__text p + p { margin-top: 6px; }
.rep__sign { margin-top: 24px; font-size: 15px; }
.rep__name { font-size: 18px; font-weight: 700; margin-left: 1em; letter-spacing: .06em; }
.rep__body .btn { margin-top: 30px; }

/* NEWS ＋ COMPANY（2カラム） */
.nc__in { display: grid; grid-template-columns: 1.3fr 1fr; }
.nc__news { padding-right: clamp(32px, 5vw, 72px); }
.nc__co { padding-left: clamp(32px, 5vw, 72px); border-left: 1px solid var(--line-strong); }
.nc__h { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: .04em; margin-top: 22px; line-height: 1.5; }
.nc__news .plist { margin-top: 18px; }
.nc__more { margin-top: 22px; }
.nc__area { font-size: 14px; color: var(--muted); margin-top: 4px; }
.nc__co .btn { margin-top: 28px; }

/* ============================================================
   お知らせ一覧（日付｜縦線｜タイトル｜→）
   ============================================================ */
.plist { border-top: 1px solid var(--line-strong); }
.plist__item { border-bottom: 1px solid var(--line-strong); }
.plist__a {
  display: grid; grid-template-columns: 160px minmax(0, 1fr) 40px; align-items: center;
  padding: clamp(24px, 3vw, 40px) 16px; transition: background .25s ease;
}
.plist__a:hover { background: var(--tint-1); }
.plist__date { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.plist__title { font-size: clamp(17px, 2vw, 24px); font-weight: 700; line-height: 1.6; border-left: 1px solid var(--line-strong); padding-left: clamp(20px, 3vw, 48px); }
.plist__arr { display: inline-flex; justify-content: flex-end; }
.plist__arr svg { width: 26px; height: 8px; transition: transform .25s ease; }
.plist__a:hover .plist__arr svg { transform: translateX(5px); }
/* TOPの詰めた行 */
.plist--compact .plist__a { grid-template-columns: 110px minmax(0, 1fr) 30px; padding: 18px 4px; }
.plist--compact .plist__date { font-size: 13px; }
.plist--compact .plist__title { font-size: 15px; font-weight: 600; border-left: 0; padding-left: 0; }
.plist--compact .plist__arr svg { width: 22px; height: 7px; }
.plist__item[hidden] { display: none; }

/* ============================================================
   お知らせ記事
   ============================================================ */
.article__in { max-width: 860px; }
.article__date { display: block; font-size: 15px; color: var(--muted); letter-spacing: .04em; }
.article__h { font-size: clamp(24px, 3.2vw, 40px); font-weight: 800; letter-spacing: .02em; line-height: 1.5; margin-top: 12px; }
.article__head { padding-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line-strong); }
.article__eye { margin: 32px 0 0; overflow: hidden; }
.article__eye img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.article__body { padding-block: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line-strong); }
.article__body p { font-size: 16px; line-height: 2.2; }
.article__body p + p { margin-top: 20px; }
.article__body h2 { font-size: 20px; font-weight: 800; line-height: 1.6; margin: 44px 0 14px; padding-left: 14px; border-left: 3px solid var(--ink); }
.article__body h3 { font-size: 18px; font-weight: 800; line-height: 1.6; margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-strong); }
.article__body h4 { font-size: 16.5px; font-weight: 800; line-height: 1.7; margin: 30px 0 10px; }
.article__body h2 + p, .article__body h3 + p, .article__body h4 + p { margin-top: 0; }
.article__body ul, .article__body ol { padding-left: 1.5em; margin-top: 18px; }
.article__body ul li, .article__body ol li { font-size: 16px; line-height: 2.1; }
.article__body ul li { list-style: disc; }
.article__body ol li { list-style: decimal; }
.article__body blockquote { margin: 30px 0; padding: 20px 22px; border-left: 3px solid var(--ink); background: var(--surface); }
.article__body blockquote p { margin: 0; font-size: 15px; color: var(--muted-surface); }
.article__body strong { font-weight: 800; }
.article__body a { text-decoration: underline; text-underline-offset: 4px; }
.article__back { margin-top: clamp(32px, 4vw, 48px); text-align: center; }
.article__meta { margin-bottom: 12px; }

/* ============================================================
   事業内容
   ============================================================ */
.sintro__h { font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; letter-spacing: .02em; line-height: 1.5; }
.sintro__body { margin-top: 18px; max-width: 760px; }
.sintro__body p { font-size: 16px; line-height: 2; }
.sintro__body p + p { margin-top: 12px; }

/* BUSINESS 01（淡グレー面・写真あり・項目3つ横並び） */
.sbiz1__in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: 28px; align-items: center; }
.sbiz1__h { font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; letter-spacing: .02em; line-height: 1.3; }
.sbiz1__lead { font-size: 15px; line-height: 2; color: var(--muted-surface); margin-top: 20px; }
.sbiz1__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.sbiz1__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sbiz1__items {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(28px, 3.6vw, 44px);
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
}
.sbiz1__items li { padding: 24px 20px; text-align: center; font-size: 16px; font-weight: 500; line-height: 1.7; }
.sbiz1__items li + li { border-left: 1px solid var(--line-strong); }
.sbiz1__links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: clamp(24px, 3vw, 36px); }
.sbiz1__links .lnk + .lnk { padding-left: 32px; border-left: 1px solid var(--line-strong); }

/* BUSINESS 02・03（左＝名前と説明／右＝項目リスト） */
.sbiz { padding-block: clamp(40px, 5vw, 72px); }
.sbiz__in { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 64px); margin-top: 26px; align-items: start; }
.sbiz__h { font-size: clamp(24px, 3.2vw, 40px); font-weight: 800; letter-spacing: .02em; line-height: 1.4; }
.sbiz__lead { font-size: 15px; line-height: 2; color: var(--muted); margin-top: 18px; }
.sbiz__items { border-left: 1px solid var(--line-strong); padding-left: clamp(24px, 3vw, 44px); }
.sbiz__items li { font-size: 16px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--line-strong); }

/* ご相談の流れ／お問い合わせの流れ（横並びのステップ＋矢印） */
.steps { display: flex; margin-top: clamp(28px, 3.4vw, 40px); }
.step { flex: 1 1 0; position: relative; display: flex; flex-direction: column; min-width: 0; }
.step + .step { padding-left: clamp(44px, 5vw, 72px); }
/* ステップ間の矢印（線＋矢じり。色は文字色に追従） */
.step + .step::before {
  content: ''; position: absolute; left: 4px; top: 2.35em;
  width: clamp(22px, 2.6vw, 36px); height: 1px; background: var(--ink);
}
.step + .step::after {
  content: ''; position: absolute; left: calc(4px + clamp(22px, 2.6vw, 36px) - 7px); top: calc(2.35em - 3.5px);
  width: 7px; height: 7px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink);
  transform: rotate(45deg);
}
.step__no { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--muted); }
.step__name { font-size: clamp(18px, 1.9vw, 24px); font-weight: 800; letter-spacing: .02em; margin-top: 8px; line-height: 1.5; }
.step__desc { font-size: 13.5px; line-height: 1.9; color: var(--muted); margin-top: 6px; }

/* ============================================================
   会社概要
   ============================================================ */
.phic__sub { font-size: 16px; margin-top: 26px; letter-spacing: .04em; }
.phic__st { font-size: clamp(30px, 4.4vw, 56px); font-weight: 800; letter-spacing: .02em; line-height: 1.45; margin-top: 8px; }

/* 社名に込めた想い（淡グレー面） */
.origin__panel { position: relative; }
.origin__h { font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; letter-spacing: .02em; margin-top: 26px; line-height: 1.4; }
.origin__letters { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(24px, 3vw, 40px); }
.origin__letter { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 16px 24px; }
.origin__letter + .origin__letter { border-left: 1px solid var(--line-strong); }
.origin__big { font-size: clamp(64px, 9vw, 120px); font-weight: 800; line-height: 1; letter-spacing: 0; }
.origin__word { font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; margin-top: 8px; }
.origin__jp { font-size: 15px; margin-top: 2px; }
.origin__rows { margin-top: clamp(20px, 2.4vw, 32px); border-top: 1px solid var(--line-strong); }
.origin__row { display: grid; grid-template-columns: minmax(180px, 32%) 1fr; padding: clamp(20px, 2.4vw, 28px) 0; border-bottom: 1px solid var(--line-strong); }
.origin__row dt { font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; letter-spacing: .02em; }
.origin__row dd { font-size: 15px; line-height: 2; color: var(--muted-surface); border-left: 1px solid var(--line-strong); padding-left: clamp(20px, 3vw, 40px); margin: 0; }
.origin__brand { text-align: right; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: .01em; margin-top: 12px; line-height: 1.2; }

/* 代表挨拶（写真なし。左＝ラベル／右＝lead＋本文＋右寄せ署名） */
.msg__in { display: grid; grid-template-columns: minmax(160px, 24%) 1fr; gap: clamp(20px, 3vw, 40px); margin-top: 28px; }
.msg__h { font-size: 17px; font-weight: 700; letter-spacing: .04em; padding-top: 6px; }
.msg__lead { font-size: clamp(24px, 3.2vw, 40px); font-weight: 800; letter-spacing: .02em; line-height: 1.5; }
.msg__p { font-size: 16px; line-height: 2.1; margin-top: 22px; }
.msg__lead + .msg__p { margin-top: 20px; }
.msg__sign { margin-top: 28px; text-align: right; font-size: 15px; }
.msg__name { font-size: 18px; font-weight: 700; margin-left: 1em; letter-spacing: .06em; }

/* 会社情報の表 */
.profile__tbl { margin-top: 30px; border-top: 1px solid var(--line-strong); }
.profile__row { display: grid; grid-template-columns: 220px 1fr; padding: 22px 16px; border-bottom: 1px solid var(--line-strong); }
.profile__row dt { font-weight: 700; font-size: 15px; }
.profile__row dd { font-size: 15px; line-height: 1.9; border-left: 1px solid var(--line-strong); padding-left: 28px; margin: 0; }

/* ============================================================
   お問い合わせ
   ============================================================ */
.cf { padding-top: clamp(40px, 5vw, 64px); }
.cf__h { font-size: clamp(21px, 2.6vw, 30px); font-weight: 800; letter-spacing: .02em; line-height: 1.7; }
.cf__note { font-size: 16px; margin-top: 12px; }
.cf__form { margin-top: clamp(28px, 3.6vw, 44px); }
.cf__fnote { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.f-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.f-row { display: grid; grid-template-columns: 240px 1fr; border-top: 1px solid var(--line-strong); padding: clamp(20px, 2.6vw, 30px) 0; border-width: 1px 0 0; min-width: 0; }
.f-row:last-of-type { border-bottom: 1px solid var(--line-strong); }
.f-row__l { padding-top: 14px; }
.f-row__l label, .f-row__l legend { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; }
.f-row__r { border-left: 1px solid var(--line-strong); padding-left: clamp(20px, 3vw, 36px); min-width: 0; }
.f-row--radio .f-row__l { padding-top: 6px; }
.f-req, .f-opt {
  display: inline-block; padding: 2px 9px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; line-height: 1.6;
  border-radius: 2px;
}
.f-req { background: var(--band); color: var(--on-band); }
.f-opt { border: 1px solid var(--line-strong); color: var(--muted); }
.f-row input[type="text"], .f-row input[type="email"], .f-row input[type="tel"], .f-row textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 3px; padding: 15px 18px;
  transition: border-color .2s ease, background .2s ease;
}
.f-row textarea { min-height: 180px; resize: vertical; }
/* ★プレースホルダは灰色面の上なので --muted-surface（面基準で 4.5:1 を満たす色） */
.f-row input::placeholder, .f-row textarea::placeholder { color: var(--muted-surface); opacity: 1; }
.f-row input:focus, .f-row textarea:focus { outline: none; border-color: var(--ink); background: var(--bg); }
.f-radios { display: flex; flex-direction: column; gap: 6px; }
.f-radios li { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.f-radios input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.f-radios label { font-size: 16px; }
.is-err { border-color: #c33a52 !important; background: #fdeaee !important; }
.f-err { display: none; font-size: 12.5px; color: #c33a52; margin-top: 6px; }
.f-err.on { display: block; }
.f-alert { display: none; font-size: 14px; font-weight: 700; color: #c33a52; background: #fdeaee; border-radius: 3px; padding: 12px 16px; margin-bottom: 20px; }
.f-alert.on { display: block; }
.f-foot { padding-top: clamp(24px, 3vw, 36px); padding-left: calc(240px + clamp(20px, 3vw, 36px)); }
.f-agree { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.f-agree label { display: inline-flex; align-items: center; gap: 12px; }
.f-agree a { text-decoration: underline; text-underline-offset: 4px; }
.f-agree input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.f-foot .act { margin-top: 24px; }
.is-sending { opacity: .6; pointer-events: none; }
.f-sample { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13.5px; line-height: 1.85; }

.cflow { padding-top: clamp(40px, 5vw, 64px); }
.cflow__mail { margin-top: clamp(24px, 3vw, 36px); font-size: 13.5px; color: var(--muted); }
.cflow__mail a { text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }
.calt { padding-top: clamp(32px, 4vw, 48px); }
.calt__h { font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; letter-spacing: .02em; margin-top: 24px; }
.calt .lnk { margin-top: 20px; }

/* ============================================================
   送信完了・404・プライバシーポリシー
   ============================================================ */
.thx__in { max-width: 720px; }
.thx__h { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: .02em; line-height: 1.6; }
.thx__lead { margin-top: 20px; }
.thx__lead p { font-size: 15.5px; line-height: 2; }
.thx__lead p + p { margin-top: 14px; }
.thx__lead a { text-decoration: underline; text-underline-offset: 4px; }
.thx .act { margin-top: 34px; }
.nf__code { font-size: clamp(56px, 9vw, 96px); font-weight: 800; line-height: 1; color: var(--line-strong); margin-bottom: 20px; }

.pp__in { max-width: 860px; }
.pp__in h2 { font-size: 18px; font-weight: 800; margin: 40px 0 12px; padding-left: 14px; border-left: 3px solid var(--ink); line-height: 1.6; }
.pp__in p { font-size: 15.5px; line-height: 2; }
.pp__in ul { padding-left: 1.4em; margin-top: 8px; }
.pp__in ul li { list-style: disc; font-size: 15.5px; line-height: 2; }
.pp__in a { text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   互換（ブログ式カード・検索。この案件では未使用。崩れないよう最低限） ────
   ============================================================ */
.blog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; margin-top: 32px; }
.blog__link { display: grid; gap: 14px; }
.blog__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.blog__thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog__thumb--none { display: grid; place-items: center; }
.blog__thumb-ph { font-weight: 800; font-size: 18px; letter-spacing: .24em; opacity: .17; }
.blog__body { display: grid; gap: 9px; }
.blog__meta { display: flex; align-items: center; gap: 12px; }
.blog__cat { background: var(--band); color: var(--on-band); padding: 4px 13px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.blog__date { font-size: 13px; font-weight: 600; color: var(--muted); }
.blog__title { font-size: 15.5px; font-weight: 700; line-height: 1.75; }
.blog__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.blog__tab { border: 1px solid var(--line-strong); padding: 9px 20px; font-size: 13.5px; font-weight: 700; }
.blog__tab.is-current { background: var(--band); border-color: var(--band); color: var(--on-band); }
.blog__card[hidden] { display: none; }
.psearch { margin-bottom: 28px; }
.psearch__label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.psearch__row { display: flex; gap: 10px; max-width: 520px; }
.psearch__input { flex: 1 1 auto; min-width: 0; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); padding: 11px 15px; font: inherit; font-size: 14.5px; }
.psearch__clear { flex: none; border: 1px solid var(--line-strong); background: transparent; padding: 0 16px; font-size: 13px; font-weight: 700; cursor: pointer; }
.psearch__count { margin-top: 8px; min-height: 1.5em; font-size: 12.5px; color: var(--muted); }
.psearch__empty { padding: 28px 0; text-align: center; font-size: 14.5px; color: var(--muted); }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1024px) {
  .decl__in { grid-template-columns: 1fr; gap: 24px; }
  .biz1__in, .sbiz1__in, .sbiz__in { grid-template-columns: 1fr; gap: 28px; }
  .biz1__media { margin-inline: calc(-1 * var(--panel-x)); }
  .rep__in { grid-template-columns: 1fr; gap: 32px; }
  .rep__media { aspect-ratio: 16 / 10; }
  .nc__in { grid-template-columns: 1fr; gap: 48px; }
  .nc__news { padding-right: 0; }
  .nc__co { padding-left: 0; border-left: 0; padding-top: 0; }
  .f-row { grid-template-columns: 200px 1fr; }
  .f-foot { padding-left: calc(200px + clamp(20px, 3vw, 36px)); }
  .blog { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  /* 見出しの孤立行対策 */
  .decl__h, .biz1__h, .rep__h, .sintro__h, .sbiz1__h, .sbiz__h, .phic__st, .msg__lead, .cf__h, .cta__h, .thx__h, .sec__h { text-wrap: pretty; }

  /* ヘッダー */
  .hd__in { height: 64px; }
  .logo--text { font-size: 22px; }

  /* FV */
  .fv__box { height: clamp(400px, 118vw, 540px); }
  .fv__catch { font-size: clamp(34px, 11vw, 46px); }
  .fv__sub { font-size: 13px; letter-spacing: .04em; }

  /* 面・行組み */
  .panel { padding: 32px 20px; }
  .biz1__act { gap: 16px 0; }
  .biz1__act .btn { width: 100%; justify-content: space-between; }
  .biz1__act .lnk { padding-left: 0; border-left: 0; margin-right: 24px; }
  .bizrow__a { grid-template-columns: 1fr 32px; gap: 14px 16px; }
  .bizrow__desc { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .bizrow__arr { grid-row: 1; grid-column: 2; }
  .bizrow__l { grid-row: 1; grid-column: 1; }
  .bizrow__a--img { grid-template-columns: 1fr 32px; padding: 20px 0 24px; }
  .bizrow__a--img .bizrow__media { grid-row: 1; grid-column: 1 / -1; margin-left: 0; aspect-ratio: 16 / 7; }
  .bizrow__a--img .bizrow__l { grid-row: 2; grid-column: 1; }
  .bizrow__a--img .bizrow__arr { grid-row: 2; grid-column: 2; align-self: start; padding-top: 30px; }
  .biz1__media { margin-inline: -20px; }   /* SPの .panel は padding 20px（--panel-x ではない） */


  /* お知らせ */
  .plist__a { grid-template-columns: 1fr 28px; gap: 6px 12px; padding: 22px 4px; }
  .plist__title { grid-column: 1; border-left: 0; padding-left: 0; }
  .plist__arr { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
  .plist--compact .plist__a { grid-template-columns: 1fr 24px; padding: 16px 0; }

  /* 事業内容 */
  .sbiz1__items { grid-template-columns: 1fr; }
  .sbiz1__items li { text-align: left; padding: 14px 4px; }
  .sbiz1__items li + li { border-left: 0; border-top: 1px solid var(--line-strong); }
  .sbiz1__links .lnk + .lnk { padding-left: 0; border-left: 0; }
  .sbiz__items { border-left: 0; padding-left: 0; }

  /* ステップ：縦積み。矢印は伏せて罫線で区切る */
  .steps { flex-direction: column; }
  .step + .step { padding-left: 0; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-strong); }
  .step + .step::before, .step + .step::after { display: none; }

  /* 問い合わせ帯・フッター */
  .cta__in { grid-template-columns: 1fr; gap: 18px; }
  .cta__note { border-left: 0; padding-left: 0; }
  .cta__act { justify-self: start; }
  .cta__act .btn { width: 100%; justify-content: space-between; }
  .ft__in { flex-direction: column; align-items: flex-start; gap: 22px; }
  .ft__r { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ft__copy { border-left: 0; padding-left: 0; }

  /* 会社概要 */
  .origin__letters { grid-template-columns: 1fr; }
  .origin__letter { flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 16px; text-align: left; padding: 14px 0; }
  .origin__letter + .origin__letter { border-left: 0; border-top: 1px solid var(--line-strong); }
  .origin__big { font-size: 56px; min-width: 56px; }
  .origin__word { margin-top: 0; }
  .origin__row { grid-template-columns: 1fr; gap: 8px; }
  .origin__row dd { border-left: 0; padding-left: 0; }
  .msg__in { grid-template-columns: 1fr; gap: 14px; }
  .profile__row { grid-template-columns: 1fr; gap: 6px; padding: 16px 4px; }
  .profile__row dd { border-left: 0; padding-left: 0; }

  /* お問い合わせ */
  .f-row { grid-template-columns: 1fr; gap: 10px; }
  .f-row__l { padding-top: 0; }
  .f-row__r { border-left: 0; padding-left: 0; }
  .f-foot { padding-left: 0; }
  .f-foot .act .btn { width: 100%; }
  .f-agree { align-items: flex-start; }
  .f-agree input { margin-top: 4px; }
  .f-agree label { flex-wrap: wrap; row-gap: 6px; }

  .blog { grid-template-columns: 1fr; }
}

/* ============================================================
   reduced-motion：全アニメ停止
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-rev] { opacity: 1; transform: none; transition: none; }
  html.js .fv__line, html.js .fv__sub { animation: none; opacity: 1; }
  .btn, .btn svg, .lnk svg, .plist__arr svg, .bizrow__arr svg, .bizrow__media img, .hd__link::after, .drawer, .hd, .plist__a { transition: none; }
  .btn:hover svg, .lnk:hover svg, .plist__a:hover .plist__arr svg, .bizrow__a:hover .bizrow__arr svg { transform: none; }
  .lnk--ext:hover svg { transform: none; }
}
