@charset "UTF-8";
/* ==========================================================================
   株式会社LLY — 総合リフォーム
   デザインの正：mockup.html
   --------------------------------------------------------------------------
    1. デザイントークン（CSS変数）
    2. リセット
    3. ベースタイポグラフィ
    4. 共通パーツ（ボタン／セクション見出し）
    5. ヘッダー
    6. フッター
    7. ヒーロー（トップページ）
    8. ページヘッダー（下層ページ）
    9. 選ばれる理由
   10. 事業内容
   11. 実績・事例
   12. ご依頼の流れ
   13. 会社概要・料金（表組み）
   14. お問い合わせ（フォーム）
   15. CTA
   16. 404
   17. レスポンシブ
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. デザイントークン（CSS変数）
   -------------------------------------------------------------------------- */
:root {
  /* --- 色 --------------------------------------------------------------- */
  --navy:        #14293f;  /* メイン（見出し・濃色面） */
  --navy-deep:   #0e1f31;
  --ink:         #22303d;  /* 本文（白背景でコントラスト13.5:1） */
  --muted:       #5b6875;  /* 補足文（白背景でコントラスト5.7:1） */
  --line:        #d9dfe5;
  --line-soft:   #e8edf1;
  --base:        #f5f7f8;  /* 淡いベース地色 */
  --paper:       #ffffff;
  --accent:      #d66a1f;  /* アクセント：装飾・大きな文字用 */
  --accent-deep: #b1520f;  /* アクセント：小さな文字・白抜きボタン用（4.9:1） */
  --accent-soft: #fdf0e6;
  --accent-tint: #fff8f2;
  --accent-lite: #f0975a;  /* 濃色面上のアクセント文字 */

  /* --- フォント（Google Fonts のみ） ------------------------------------ */
  --font-serif: "Zen Old Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-sans:  "Zen Kaku Gothic New", system-ui, -apple-system, sans-serif;

  /* --- 余白スケール（8pxの倍数） ---------------------------------------- */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;
  --s8: 128px;

  /* --- レイアウト -------------------------------------------------------- */
  --wrap: 1160px;
  --header-h: 82px;
}

/* --------------------------------------------------------------------------
   2. リセット
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* --------------------------------------------------------------------------
   3. ベースタイポグラフィ
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  color: var(--ink);
  background: var(--base);
  -webkit-font-smoothing: antialiased;
}
main { display: block; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* スキップリンク */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--navy);
  color: #fff;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   4. 共通パーツ
   -------------------------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin-inline: auto; }

section { position: relative; padding: clamp(72px, 9vw, 128px) clamp(20px, 5vw, 72px); }

.section-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
}
.section-inner > .col { min-width: 0; }

/* 縦組みのセクションラベル（シグネチャー要素） */
.side-label {
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .16em;
  justify-self: start;
  padding-top: 6px;
}
.side-label::after {
  content: "";
  display: block;
  width: 1px;
  height: 56px;
  margin: 18px auto 0;
  background: var(--accent);
}

.eyebrow {
  display: block;
  color: var(--accent-deep);
  font-size: 11px;
  letter-spacing: .2em;
  font-weight: 700;
}

h2 {
  margin: 10px 0 var(--s3);
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: clamp(25px, 3.6vw, 46px);
  line-height: 1.35;
  letter-spacing: .01em;
  font-weight: 900;
}
h3 { font-weight: 700; }

/* 日本語の禁則対策：見出しの最終行に1〜2文字だけ残る「孤立文字」を防ぐ。
   非対応ブラウザでは無視されるだけで害はない */
h1, h2, h3 { text-wrap: balance; }
p, .lead { text-wrap: pretty; }
h1, h2, h3, p { line-break: strict; overflow-wrap: break-word; }

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17px);
  max-width: 34em;
}

/* 手描き風の下線あしらい（シグネチャー要素）
   淡い帯は要素自身の background で描く。擬似要素を z-index:-1 にすると
   親の背景の裏に回り込んで見えなくなるため使わない */
.handline {
  position: relative;
  display: inline-block;
  padding-inline: 6px;
  margin-inline: -6px;
  background-image: linear-gradient(to top, var(--accent-soft) 0 .34em, transparent .34em);
  background-repeat: no-repeat;
}
.handline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: 3px;
  background: var(--accent);
  transform: rotate(-.6deg);
  transform-origin: left center;
}

/* ボタン */
.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--accent-deep);
  background: var(--accent-deep);
  color: #fff;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(177,82,15,.26); }
.btn.sub { color: var(--navy); background: transparent; border-color: var(--line); }
.btn.sub:hover { border-color: var(--accent); background: var(--accent-tint); box-shadow: none; }
.btn-note { margin: 0; font-size: 13px; color: var(--muted); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* --------------------------------------------------------------------------
   5. ヘッダー
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20,41,63,.08);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark { width: 40px; height: 50px; object-fit: contain; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 900;
  color: var(--navy);
  font-size: 18px;
  letter-spacing: .04em;
  white-space: nowrap;
  line-height: 1.3;
}
.brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--muted);
  line-height: 1.4;
}

.header-right { display: flex; align-items: center; gap: var(--s3); }

.nav { display: flex; gap: 26px; align-items: center; font-size: 13px; font-weight: 700; color: var(--navy); }
.nav a { position: relative; padding: 4px 0; white-space: nowrap; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--accent-deep); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-tel {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  padding: 6px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  line-height: 1.3;
  transition: border-color .25s ease, background .25s ease;
}
.header-tel small { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--accent-deep); }
.header-tel strong { font-family: var(--font-serif); font-size: 19px; color: var(--navy); letter-spacing: .02em; }
.header-tel:hover { border-color: var(--accent); background: var(--accent-tint); }

.header-cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  background: var(--accent-deep);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 2px;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(177,82,15,.28); }

/* ハンバーガー */
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* スマホ用ドロワー */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 25;
  background: var(--paper);
  padding: var(--s4) clamp(20px, 6vw, 40px) var(--s6);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
}
.drawer[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
.drawer-nav { display: grid; }
.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
  min-height: 56px;
}
.drawer-nav a[aria-current="page"] { color: var(--accent-deep); }
.drawer-nav a::after {
  content: "";
  width: 8px; height: 8px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  transform: rotate(45deg);
}
.drawer-foot { margin-top: var(--s5); display: grid; gap: var(--s2); }
.drawer-foot .btn { width: 100%; }
.drawer-tel {
  display: block;
  text-align: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.drawer-tel small { display: block; font-size: 11px; color: var(--accent-deep); font-weight: 700; letter-spacing: .1em; }
.drawer-tel strong { font-family: var(--font-serif); font-size: 24px; color: var(--navy); }

body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   6. フッター
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--paper);
  padding: var(--s6) clamp(20px, 5vw, 72px) var(--s4);
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s5);
}
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: var(--s2); }
.footer-brand img { width: 36px; height: 46px; object-fit: contain; }
.footer-info { color: var(--muted); font-size: 14px; margin: 0; }
.footer-info a:hover { color: var(--accent-deep); }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px var(--s3); font-size: 14px; align-content: start; }
.footer-nav a { color: var(--muted); transition: color .2s ease; }
.footer-nav a:hover { color: var(--accent-deep); }
.copyright {
  max-width: var(--wrap);
  margin: var(--s5) auto 0;
  padding-top: var(--s3);
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   7. ヒーロー（トップページ）
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  padding: var(--header-h) 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 41vw);
  background: var(--paper);
}
.hero-photo { position: relative; min-height: calc(100vh - var(--header-h)); overflow: hidden; background: var(--photo, #cfd5db); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255,255,255,.5);
  transform: translateY(16px);
  pointer-events: none;
}
.hero-band {
  position: relative;
  display: grid;
  align-content: center;
  gap: var(--s3);
  padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 68px);
  background:
    linear-gradient(90deg, transparent 0 89%, var(--accent-soft) 89%),
    var(--paper);
}
.vertical-note {
  position: absolute;
  top: 110px;
  right: 26px;
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  color: var(--accent-deep);
  font-weight: 900;
  letter-spacing: .14em;
  font-size: 14px;
}
.hero-kicker { margin: 0; color: var(--accent-deep); font-weight: 700; font-size: 12px; letter-spacing: .18em; }
.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--navy);
  /* 帯の幅（41vw − 左右パディング）に「直して終わり、」7文字が
     収まるサイズ。大きくすると行の途中で折り返して禁則が崩れる */
  font-size: clamp(34px, 3.9vw, 58px);
  line-height: 1.28;
  letter-spacing: .01em;
  font-weight: 900;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-top: var(--s1);
}
.hero-meta div { padding: 14px 8px 0 0; }
.hero-meta strong {
  display: block;
  font-family: var(--font-serif);
  /* 3列に「住宅・店舗」5文字が1行で収まるサイズに抑える */
  font-size: clamp(16px, 1.7vw, 24px);
  line-height: 1.3;
  color: var(--navy);
  white-space: nowrap;
}
.hero-meta span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; }

/* --------------------------------------------------------------------------
   8. ページヘッダー（下層ページ）
   -------------------------------------------------------------------------- */
.page-header {
  position: relative;
  margin-top: var(--header-h);
  min-height: 340px;
  display: grid;
  align-items: end;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px) clamp(32px, 4vw, 56px);
  overflow: hidden;
  background: var(--navy);
}
.page-header-photo { position: absolute; inset: 0; }
.page-header-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-header-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(14,31,49,.88) 0 38%, rgba(14,31,49,.62) 72%, rgba(14,31,49,.5));
}
.page-header-inner { position: relative; max-width: var(--wrap); margin: 0 auto; width: 100%; }
.page-header .eyebrow { color: var(--accent-lite); }
.page-header h1 {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  color: #fff;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: .02em;
}
.page-header p { margin: var(--s2) 0 0; color: rgba(255,255,255,.84); max-width: 36em; font-size: 15px; }

/* パンくず */
.breadcrumb {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--s2) clamp(20px, 5vw, 72px);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.breadcrumb-bar { background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.breadcrumb a:hover { color: var(--accent-deep); }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "／"; color: var(--line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; }

/* --------------------------------------------------------------------------
   9. 選ばれる理由
   -------------------------------------------------------------------------- */
.reasons { background: linear-gradient(180deg, var(--base), var(--paper) 60%); }
.reason-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.reason-list { display: grid; margin-top: var(--s4); }
.reason { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: var(--s3) 0; border-top: 1px solid var(--line); }
.reason:last-child { border-bottom: 1px solid var(--line); }
.reason-num { font-family: var(--font-serif); color: var(--accent); font-size: 28px; font-weight: 900; line-height: 1.3; }
.reason h3 { margin: 0 0 4px; color: var(--navy); font-size: 19px; font-family: var(--font-serif); font-weight: 900; }
.reason p { margin: 0; color: var(--muted); font-size: 15px; }

/* 手描き風の丸囲み・矢印あしらい（シグネチャー要素） */
/* 画像の比率は「枠」側で決め、img は枠を埋める。
   （HTMLのwidth/height属性は presentational hint として height を指定するため、
     img側の aspect-ratio だけでは縦に伸びてしまう） */
.circle-note { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.circle-note img { width: 100%; height: 100%; object-fit: cover; }
.circle-note::before {
  content: "";
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border: 3px solid var(--accent);
  border-radius: 50%;
  right: -8%; top: 14%;
  transform: rotate(-8deg);
  opacity: .85;
  pointer-events: none;
}
.circle-note::after {
  content: "";
  position: absolute;
  width: 110px; height: 48px;
  right: 12%; bottom: 14%;
  border-bottom: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  transform: skewX(-18deg);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   10. 事業内容
   -------------------------------------------------------------------------- */
.services { background: var(--paper); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: var(--s4);
}
.service {
  min-height: 230px;
  padding: var(--s4) var(--s3);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper), #fafbfc);
  transition: background .25s ease, transform .25s ease;
}
.service:hover { background: var(--accent-tint); transform: translateY(-4px); }
.service .mark { width: 32px; height: 32px; border: 2px solid var(--accent); border-radius: 50%; margin-bottom: var(--s4); position: relative; }
.service .mark::after {
  content: "";
  position: absolute;
  width: 20px; height: 2px;
  background: var(--accent);
  right: -15px; top: 14px;
  transform: rotate(-24deg);
}
.service h3 { margin: 0 0 10px; font-family: var(--font-serif); color: var(--navy); font-size: 21px; font-weight: 900; }
.service p { margin: 0; color: var(--muted); font-size: 14px; }
/* 3列グリッドで最終行に1つだけ残るとき（7つ目のイベント設営）は、横いっぱいの
   写真つきタイルにして空きマスを作らない。新しいサービスを目立たせる意図もある */
.service-grid > .service-wide {
  grid-column: 1 / -1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr minmax(0, .82fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.service-grid > .service-wide:hover { transform: none; }
.service-wide p { max-width: 34em; }
.service-wide-photo { aspect-ratio: 16 / 9; overflow: hidden; }
.service-wide-photo img { width: 100%; height: 100%; object-fit: cover; }

/* サービス詳細（service.html：写真つきの交互レイアウト） */
.svc-detail { display: grid; gap: clamp(48px, 7vw, 96px); margin-top: var(--s5); }
.svc-item { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.svc-item:nth-child(even) .svc-figure { order: 2; }
.svc-figure { position: relative; aspect-ratio: 4 / 3; }
.svc-figure img { width: 100%; height: 100%; object-fit: cover; }
.svc-figure::after {
  content: "";
  position: absolute;
  inset: auto -12px -12px auto;
  width: 84px; height: 84px;
  border-right: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  pointer-events: none;
}
.svc-body .num { font-family: var(--font-serif); color: var(--accent); font-size: 15px; font-weight: 900; letter-spacing: .1em; }
.svc-body h3 { margin: var(--s1) 0 var(--s2); font-family: var(--font-serif); color: var(--navy); font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; }
.svc-body p { margin: 0; color: var(--muted); }

/* --------------------------------------------------------------------------
   11. 実績・事例
   -------------------------------------------------------------------------- */
.gallery { background: linear-gradient(180deg, #eef2f4, var(--paper)); overflow: hidden; }
.film {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 33vw);
  gap: 18px;
  overflow-x: auto;
  padding: var(--s2) 0 var(--s3);
  scroll-snap-type: x mandatory;
  margin-top: var(--s4);
}
.film-item { scroll-snap-align: start; align-content: start; }
.film-shot { position: relative; border-left: 8px solid var(--navy); overflow: hidden; aspect-ratio: 4 / 3; }
.film-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.film-item:hover .film-shot img { transform: scale(1.04); }
.film-tag {
  position: absolute;
  left: 16px; bottom: 16px;
  color: #fff;
  background: rgba(20,41,63,.9);
  padding: 5px 12px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
}
.film-item h3 { margin: var(--s2) 0 4px; font-family: var(--font-serif); color: var(--navy); font-size: 17px; font-weight: 900; }
.film-item p { margin: 0; color: var(--muted); font-size: 14px; }

.film-hint { margin: var(--s2) 0 0; font-size: 12px; color: var(--muted); }

/* 実績一覧（works.html） */
.works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: var(--s5); }
.work-card { display: grid; grid-template-rows: auto 1fr; }
.work-shot { position: relative; overflow: hidden; border-left: 8px solid var(--navy); aspect-ratio: 4 / 3; }
.work-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-card:hover .work-shot img { transform: scale(1.03); }
.work-body { padding-top: var(--s3); border-top: 1px solid var(--line); margin-top: var(--s3); }
.work-body .tag { display: inline-block; color: var(--accent-deep); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.work-body h3 { margin: var(--s1) 0 var(--s1); font-family: var(--font-serif); color: var(--navy); font-size: clamp(19px, 2.2vw, 24px); font-weight: 900; }
.work-body p { margin: 0; color: var(--muted); font-size: 15px; }

/* --------------------------------------------------------------------------
   12. ご依頼の流れ（寸法線モチーフ）
   -------------------------------------------------------------------------- */
.flow { background: var(--base); }
.measure { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--navy); margin-top: var(--s5); }
.measure > div { position: relative; padding: var(--s4) var(--s2) var(--s3) 0; min-height: 190px; }
.measure > div::before {
  content: "";
  position: absolute;
  top: -7px; left: 0;
  width: 1px; height: 14px;
  background: var(--accent);
}
.measure > div:last-child::after {
  content: "";
  position: absolute;
  top: -7px; right: 0;
  width: 1px; height: 14px;
  background: var(--accent);
}
.measure .step { display: block; color: var(--accent-deep); font-size: 11px; font-weight: 700; letter-spacing: .18em; margin-bottom: var(--s1); }
.measure h3 { margin: 0 0 var(--s1); font-family: var(--font-serif); color: var(--navy); font-size: 18px; font-weight: 900; }
.measure p { margin: 0; color: var(--muted); font-size: 14px; }

/* 流れ詳細（flow.html：縦の寸法線） */
.flow-steps { display: grid; margin-top: var(--s5); border-left: 1px solid var(--navy); }
.flow-step { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: clamp(16px, 3vw, 40px); padding: var(--s5) 0 var(--s5) var(--s5); }
.flow-step::before {
  content: "";
  position: absolute;
  left: 0; top: var(--s5);
  width: 22px; height: 1px;
  background: var(--accent);
}
.flow-step::after {
  content: "";
  position: absolute;
  left: -4px; top: calc(var(--s5) - 3px);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.flow-step .num { font-family: var(--font-serif); color: var(--accent); font-size: clamp(34px, 5vw, 56px); font-weight: 900; line-height: 1; }
.flow-step .num small { display: block; font-family: var(--font-sans); font-size: 11px; letter-spacing: .18em; color: var(--accent-deep); margin-bottom: 6px; }
.flow-step h3 { margin: 0 0 var(--s2); font-family: var(--font-serif); color: var(--navy); font-size: clamp(20px, 2.4vw, 27px); font-weight: 900; }
.flow-step p { margin: 0; color: var(--muted); }

/* --------------------------------------------------------------------------
   13. 表組み（会社概要・料金）
   -------------------------------------------------------------------------- */
.data-table { margin-top: var(--s4); border-top: 1px solid var(--navy); }
.data-table th, .data-table td { text-align: left; padding: var(--s3) var(--s2); border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.data-table th {
  width: 220px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-weight: 900;
  background: rgba(20,41,63,.02);
  white-space: nowrap;
}
.data-table td { color: var(--muted); }
.data-table td a:hover { color: var(--accent-deep); }
.table-note { margin: var(--s3) 0 0; font-size: 13px; color: var(--muted); }

/* 料金表 */
.price-table { margin-top: var(--s4); border-top: 2px solid var(--navy); }
.price-table th, .price-table td { padding: var(--s3) var(--s2); border-bottom: 1px solid var(--line); font-size: 15px; }
.price-table thead th { font-size: 12px; letter-spacing: .12em; color: var(--accent-deep); font-family: var(--font-sans); font-weight: 700; padding-block: var(--s2); background: none; }
.price-table tbody th { text-align: left; font-family: var(--font-serif); font-weight: 900; color: var(--navy); width: auto; background: none; white-space: normal; }
.price-table td { text-align: right; font-family: var(--font-serif); color: var(--navy); font-weight: 700; white-space: nowrap; }
.price-table td span { font-size: 13px; color: var(--muted); font-family: var(--font-sans); font-weight: 400; }

/* 費用の考え方（3項目） */
.policy-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s4); }
.policy {
  padding: var(--s4) var(--s3);
  background: var(--paper);
  border-top: 3px solid var(--accent);
}
.policy h3 { margin: 0 0 var(--s1); font-family: var(--font-serif); color: var(--navy); font-size: 18px; font-weight: 900; }
.policy p { margin: 0; color: var(--muted); font-size: 14px; }

/* 代表あいさつ */
.greeting { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.greeting-figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.greeting-figure img { width: 100%; height: 100%; object-fit: cover; }
.greeting-body p { margin: 0 0 var(--s3); color: var(--muted); }
.greeting-body p:last-child { margin-bottom: 0; }
.signature { font-family: var(--font-serif); color: var(--navy); font-weight: 900; font-size: 17px; }
.signature small { display: block; font-family: var(--font-sans); font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: .1em; }

/* --------------------------------------------------------------------------
   14. お問い合わせ（フォーム）
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-direct { display: grid; gap: var(--s3); }
.contact-card { padding: var(--s4) var(--s3); background: var(--paper); border: 1px solid var(--line); }
.contact-card h3 { margin: 0 0 var(--s1); font-family: var(--font-serif); color: var(--navy); font-size: 17px; font-weight: 900; }
.contact-card .big {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  color: var(--navy);
  word-break: break-all;
  transition: color .25s ease;
}
.contact-card .big:hover { color: var(--accent-deep); }
/* メールアドレスは長いので、途中で折り返さないサイズに落とす */
.contact-card .big.mail { font-size: clamp(15px, 1.55vw, 21px); word-break: normal; overflow-wrap: anywhere; }
.contact-card p { margin: var(--s1) 0 0; font-size: 13px; color: var(--muted); }

.form { display: grid; gap: var(--s3); }
.field { display: grid; gap: var(--s1); }
.field label { font-weight: 700; color: var(--navy); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.req {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  background: var(--accent-deep);
  color: #fff;
  padding: 2px 8px;
  border-radius: 2px;
}
.opt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 1px 7px;
  border-radius: 2px;
}

/* スパム対策のハニーポット：人には見せず、自動入力プログラムには入力させる囮の項目。
   display:none / visibility:hidden は一部のプログラムに読み飛ばされるため、画面外へ飛ばして隠す */
.form input[name="_gotcha"] {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 200px; resize: vertical; line-height: 1.8; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.form .btn { width: 100%; }

/* --------------------------------------------------------------------------
   15. CTA
   -------------------------------------------------------------------------- */
.cta { color: #fff; background: linear-gradient(100deg, var(--navy-deep), var(--navy)); }
.cta .side-label, .cta h2 { color: #fff; }
.cta .side-label::after { background: var(--accent-lite); }
.cta .eyebrow { color: var(--accent-lite); }
.cta .lead { color: rgba(255,255,255,.84); }
.cta-box { margin-top: var(--s4); display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.24); }
.cta-item { padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 1px solid rgba(255,255,255,.24); }
.cta-item b { display: block; color: var(--accent-lite); font-size: 11px; letter-spacing: .18em; font-weight: 700; }
.cta-item a {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 900;
  word-break: break-all;
  transition: color .25s ease;
}
.cta-item a:hover { color: var(--accent-lite); }
.cta-actions { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: 14px; }
.cta .btn.sub { color: #fff; border-color: rgba(255,255,255,.4); }
.cta .btn.sub:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* --------------------------------------------------------------------------
   16. 404／送信完了（中央寄せのメッセージページ）
   -------------------------------------------------------------------------- */
.notfound, .thanks { margin-top: var(--header-h); min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound .code, .thanks .code { font-family: var(--font-serif); font-size: clamp(64px, 12vw, 140px); color: var(--navy); line-height: 1; font-weight: 900; }
.notfound h1, .thanks h1 { margin: var(--s3) 0 var(--s2); font-family: var(--font-serif); color: var(--navy); font-size: clamp(22px, 3vw, 30px); font-weight: 900; }
.notfound .btn-row, .thanks .btn-row { justify-content: center; margin-top: var(--s4); }
.notfound .lead, .thanks .lead { margin-inline: auto; }

/* 送信完了ページの、チェックマークのしるし（自作のインラインSVG） */
.thanks-mark {
  width: 88px;
  height: 88px;
  margin: 0 auto var(--s2);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.thanks-mark svg { width: 40px; height: 40px; }
.thanks-mark path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   17. レスポンシブ
   -------------------------------------------------------------------------- */
/* 横並びナビを隠す幅と、ハンバーガーを出す幅は必ず揃える
   （ずらすと、どちらも出ない「ナビ不在の帯」ができてしまう） */
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .site-header { padding-inline: 16px; gap: var(--s2); }
  .header-tel { display: none; }
  .brand-mark { width: 32px; height: 40px; }
  .brand-name { font-size: 16px; }
  .header-cta { padding: 10px 16px; font-size: 13px; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { min-height: 0; order: 2; }
  .hero-photo img { aspect-ratio: 4 / 3; height: auto; }
  .hero-band { padding-right: 56px; padding-block: var(--s6); }

  .section-inner { grid-template-columns: 1fr; }
  .side-label { writing-mode: horizontal-tb; font-size: 16px; letter-spacing: .1em; padding-top: 0; }
  .side-label::after { width: 40px; height: 1px; margin: 10px 0 0; }

  .reason-grid, .cta-box, .footer-inner, .contact-grid, .greeting { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid > .service-wide { grid-template-columns: 1fr; gap: var(--s3); }
  .svc-item { grid-template-columns: 1fr; }
  .svc-item:nth-child(even) .svc-figure { order: 0; }
  .works-grid { grid-template-columns: 1fr; }
  .policy-list { grid-template-columns: 1fr; }
  .film { grid-auto-columns: 78vw; }
  .measure { grid-template-columns: 1fr; border-top: none; }
  .measure > div { border-top: 1px solid var(--line); min-height: 0; padding: var(--s3) 0; }
  .measure > div::before { top: -1px; height: 10px; }
  .measure > div:last-child::after { display: none; }
  .flow-step { grid-template-columns: 1fr; gap: var(--s2); padding-left: var(--s4); padding-block: var(--s4); }
  .flow-step::before { top: var(--s4); width: 16px; }
  .flow-step::after { top: calc(var(--s4) - 3px); }
  .page-header { min-height: 260px; }
  .data-table th, .data-table td { display: block; width: auto; }
  .data-table th { border-bottom: 0; padding-bottom: 0; background: none; }
  .data-table td { padding-top: 4px; }
}

/* 社名とCTAボタンがぶつからないよう、狭い幅では詰める */
@media (max-width: 600px) {
  .brand { min-width: 0; overflow: hidden; }
  .brand-name { font-size: 15px; }
  .header-right { gap: var(--s1); }
  .header-cta { padding: 10px 12px; font-size: 12px; }
}

@media (max-width: 380px) {
  .brand-sub { display: none; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  section { padding-inline: 18px; }
  /* 番号の列を詰めて、見出しが折り返しにくいようにする */
  .reason { grid-template-columns: 44px 1fr; gap: 12px; }
  .reason-num { font-size: 24px; }
  .reason h3 { font-size: 17px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta div { border-top: 1px solid var(--line-soft); padding-top: 10px; }
  .hero-meta div:first-child { border-top: none; }
  .footer-nav { grid-template-columns: 1fr; }
  .price-table th, .price-table td { padding-inline: var(--s1); font-size: 14px; }
  .breadcrumb { padding-inline: 18px; }
}

/* 動きを減らす設定の尊重 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
