@charset "utf-8";
/* ==========================================================================
   サイト工房 v8.10 サービスサイト共通スタイル
   - index.html / works.html / contact.html で使用
   - フレームワーク・ビルド工程なし（素のCSS）
   - v8.9の方針：角丸カードの連続をやめ、文字の大小・余白・罫線・番号で
     情報を整理するエディトリアルレイアウトへ全面刷新
   ========================================================================== */

/* ==========================================================================
   1. トークン
   ========================================================================== */
:root {
  --ink: #171411;
  --ink-soft: #5c554d;
  --ink-mute: #6f675e;
  --brand: #c8362a;
  --brand-dark: #98271f;
  --brand-tint: #fbeeea;
  --paper: #f7f3ea;
  --surface: #fffdf8;
  --line: #d9d1c3;
  --line-soft: #e6e0d4;
  --ink-rev: #fffdf8;

  --font-display: "Zen Kaku Gothic New", "Noto Sans JP", "Noto Sans CJK JP",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-body: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  --font-num: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1240px;
  --pad: 16px;
  --gap: 24px;
  --sec-y: clamp(56px, 7.4vw, 112px);
}

@media (min-width: 768px) {
  :root { --pad: 32px; --gap: 28px; }
}
@media (min-width: 1024px) {
  :root { --pad: 40px; --gap: 32px; }
}

/* ==========================================================================
   2. ベース
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: -0.005em;
}

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

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; }
.skip:focus {
  left: 8px; top: 8px;
  background: var(--brand); color: #fff;
  padding: 10px 16px; border-radius: 3px; font-weight: 700;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

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

/* 12カラムの土台。モバイルは自然に1列へ落とします。 */
.g12 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(22px, 3.4vw, 40px);
}
@media (min-width: 1024px) {
  .g12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

/* ==========================================================================
   3. 共通の見出しまわり
   ========================================================================== */
.sec { padding-block: var(--sec-y); border-top: 1px solid var(--line); }
.sec--plain { border-top: 0; }
.sec--tint { background: var(--surface); }

.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--brand);
  margin: 0 0 12px;
}
.eyebrow .n {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-mute);
  font-weight: 600;
}

/* セクション見出し：360pxでも一行で収まる大きさにしています。 */
.h2 {
  font-size: clamp(21px, 3.2vw, 40px);
  line-height: 1.26;
}
.h3 {
  font-size: clamp(18px, 3.1vw, 26px);
  line-height: 1.34;
}

.lead {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: clamp(14.5px, 1.15vw, 16.5px);
  line-height: 2;
  max-width: 46em;
}
.lead strong { color: var(--ink); font-weight: 700; }

.sec-head { margin-bottom: clamp(30px, 4.2vw, 56px); }
@media (min-width: 1024px) {
  /* 見出し側を広く取り、指定6画面幅で一行を維持します。 */
  .sec-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: var(--gap); align-items: end; }
  .sec-head .lead { margin-top: 0; }
}
.sec-head-aside { display: flex; align-items: flex-end; gap: 18px; }
.sec-head-aside .lead { min-width: 0; }
/* 見出し横の装飾は、文章を圧迫しないモバイルでは表示しません。 */
.sec-head-aside .mt { display: none; }
@media (min-width: 768px) { .sec-head-aside .mt { display: block; } }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-mute);
}
.note strong { color: var(--ink-soft); }

.fine {
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-mute);
}

/* ==========================================================================
   4. ボタン
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border: 1.5px solid transparent;
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 1.1vw, 16.5px);
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ink-rev); }
.btn--wide { width: 100%; }
.btn .ext { flex: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 2.8vw, 30px);
}
.btn-row .btn { flex: 1 1 auto; min-width: min(100%, 240px); }
@media (min-width: 560px) {
  .btn-row .btn { flex: 0 0 auto; min-width: 0; }
}

/* テキストリンク（下線＋矢印） */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  line-height: 1.6;
}
.tlink:hover { color: var(--brand-dark); }

/* ==========================================================================
   5. ヘッダー
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: var(--paper); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding-block: 10px;
}
@media (min-width: 1024px) { .header-inner { min-height: 76px; } }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: .01em;
}
.brand-sub {
  display: block;
  font-size: clamp(9.2px, 2.55vw, 10.5px);
  line-height: 1.4;
  color: var(--ink-mute);
  letter-spacing: .01em;
  white-space: nowrap;
}

.gnav { display: none; }
@media (min-width: 1024px) {
  .gnav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); }
  .gnav a {
    position: relative;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 0;
    color: var(--ink);
  }
  .gnav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 1.5px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .24s ease;
  }
  .gnav a:hover::after, .gnav a:focus-visible::after { transform: scaleX(1); }
}

.header-cta { display: none; }
@media (min-width: 1024px) {
  .header-cta { display: inline-flex; min-height: 46px; padding: 10px 20px; font-size: 14.5px; }
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { padding: 6px var(--pad) 4px; }
.mobile-nav li + li { border-top: 1px solid var(--line-soft); }
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 2px;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
}
.mobile-nav .mobile-cta { padding: 12px var(--pad) 22px; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

/* ==========================================================================
   6. まるとら（アクセント）
   ========================================================================== */
.mt { display: block; width: auto; flex: none; }
.mt img { width: 100%; height: auto; }
.mt--xs { width: 76px; }
.mt--sm { width: 104px; }
.mt--md { width: 132px; }
.mt--lg { width: 168px; }
@media (min-width: 768px) {
  .mt--xs { width: 92px; }
  .mt--sm { width: 124px; }
  .mt--md { width: 156px; }
  .mt--lg { width: 180px; }
}

/* --------------------------------------------------------------------------
   まるとらの背景投影（装飾）
   前景のまるとらとは別レイヤーです。本文の位置と高さは変えません。
   -------------------------------------------------------------------------- */
.page-home .hero,
.page-home #pricing,
.page-works .page-hero,
.page-contact #contact {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.page-home .hero > .wrap,
.page-home #pricing > .wrap,
.page-works .page-hero > .wrap,
.page-contact #contact > .wrap {
  position: relative;
  z-index: 1;
}
.page-home .hero::before,
.page-home #pricing::before,
.page-works .page-hero::before,
.page-contact #contact::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

/* トップ：ヒーロー右奥 */
.page-home .hero::before {
  background-image: url("../marutora/marutora-hearing.webp");
  width: 260px; height: 260px;
  right: -70px; top: 6px;
  opacity: .03;
}
/* トップ：料金セクション左下 */
.page-home #pricing::before {
  background-image: url("../marutora/marutora-build.webp");
  width: 240px; height: 240px;
  left: -84px; bottom: -46px;
  opacity: .035;
}
/* 制作例一覧：ページヒーロー右奥
   「おまかせください！」の吹き出しは箱の上へ逃がして写しません。 */
.page-works .page-hero::before {
  background-image: url("../marutora/marutora-work.png");
  background-size: 100% auto;
  background-position: center bottom;
  width: 240px; height: 221px;
  right: -84px; bottom: -26px;
  opacity: .04;
}
/* 問い合わせ：フォーム外周（左下） */
.page-contact #contact::before {
  background-image: url("../marutora/marutora-support.webp");
  width: 240px; height: 240px;
  left: -86px; bottom: -40px;
  opacity: .03;
}

@media (min-width: 768px) {
  .page-home .hero::before {
    width: 430px; height: 430px;
    right: -104px; top: 6px;
    opacity: .05;
  }
  .page-home #pricing::before {
    width: 400px; height: 400px;
    left: -118px; bottom: -70px;
    opacity: .05;
  }
  .page-works .page-hero::before {
    width: 380px; height: 350px;
    right: -110px; bottom: -34px;
    opacity: .055;
  }
  .page-contact #contact::before {
    width: 400px; height: 400px;
    left: -104px; bottom: -60px;
    opacity: .045;
  }
}

@media (min-width: 1280px) {
  .page-home .hero::before {
    width: 600px; height: 600px;
    right: -140px; top: 8px;
    opacity: .05;
  }
  .page-home #pricing::before {
    width: 560px; height: 560px;
    left: -132px; bottom: -96px;
    opacity: .055;
  }
  .page-works .page-hero::before {
    width: 520px; height: 480px;
    right: -128px; bottom: -40px;
    opacity: .06;
  }
  .page-contact #contact::before {
    width: 560px; height: 560px;
    left: -120px; bottom: -80px;
    opacity: .05;
  }
}

/* ==========================================================================
   7. ファーストビュー
   ========================================================================== */
.hero {
  padding-top: clamp(30px, 4.4vw, 60px);
  padding-bottom: clamp(38px, 5vw, 72px);
  position: relative;
  overflow: clip;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(12.5px, 1.05vw, 14.5px);
  letter-spacing: .1em;
  color: var(--brand);
}
.hero-kicker::before {
  content: "";
  width: 30px; height: 3px;
  background: var(--brand);
  flex: none;
}

/* H1：16文字。360pxから1920pxまで一行で表示します。 */
.hero h1 {
  margin-top: 14px;
  font-size: clamp(15px, 4.02vw, 55px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.hero h1 .em { color: var(--brand); }

.hero-body {
  margin-top: clamp(20px, 2.6vw, 34px);
  display: grid;
  gap: clamp(20px, 2.6vw, 30px);
}
@media (min-width: 1024px) {
  .hero-body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(32px, 4vw, 72px);
    align-items: start;
  }
}

.hero-lead {
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.95;
  color: var(--ink-soft);
  max-width: 30em;
}

.hero-side { display: grid; gap: 14px; }

.hero-claim {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(19px, 2.1vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.hero-claim .em { color: var(--brand); }

.hero-roles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.hero-roles > div {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.hero-roles dt {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--brand);
}
.hero-roles dd { font-size: 13.5px; line-height: 1.8; color: var(--ink-soft); }

/* まるとらは罫線に腰掛けるように、見出しと価格より小さく添えます。
   モバイルでは役割リストの横へ置き、文章とCTAを押し下げないようにします。 */
.hero-figure { margin-top: 4px; justify-self: start; }
@media (max-width: 1023px) {
  .hero-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 14px;
    align-items: start;
  }
  .hero-claim { grid-column: 1; grid-row: 1; }
  .hero-roles { grid-column: 1; grid-row: 2; }
  .hero-figure { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 76px; margin-top: 0; }
}
@media (min-width: 1024px) {
  /* 主見出しと価格より視覚的に弱くなるサイズへ抑えます。 */
  .hero-figure { justify-self: end; margin-top: 10px; width: 104px; }
}

/* --- ファーストビューの料金4項目 ---
   v8.12：カード（塗り背景・外周枠・カード内余白）を廃止し、
   見出しの強弱・余白・細い下罫線だけでまとまりを作ります。 */
.stats {
  margin-top: clamp(26px, 3.4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2vw, 26px); }
}

.stat-group { min-width: 0; }
/* グループ見出しは料金ボードの .fee-group-title と同じ体裁にそろえます。 */
.stat-group-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--brand);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.stat-cards {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 768px) { .stat-cards { gap: 14px; } }

.stat {
  padding: 12px 0 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  border-bottom: 1px solid var(--line-soft);
}
.stat--span { grid-column: 1 / -1; }
@media (min-width: 768px) { .stat--span { grid-column: auto; } }

.stat--lead { background: var(--ink); border-color: var(--ink); color: var(--ink-rev); }
.stat--lead .stat-label { color: #f0c9c3; }
.stat--lead .stat-sub { color: #cdc4b8; }

@media (min-width: 768px) { .stat { padding: 14px 0 15px; } }

.stat-label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--brand);
}
.stat-value {
  font-family: var(--font-num);
  font-weight: 600;
  /* v8.10：1グループ2枚になったため、札の幅に収まる上限へ調整します。 */
  font-size: clamp(25px, 3.4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.stat-value .yen { font-size: .56em; margin-left: .06em; letter-spacing: 0; }
.stat-value .mo { font-size: .56em; margin-right: .06em; letter-spacing: 0; }
/* 納期は数字書体ではなく本文書体で見せます。 */
.stat-value--text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(19px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.stat-sub { font-size: 12px; color: var(--ink-mute); line-height: 1.6; }

.hero-actions { margin-top: clamp(22px, 2.8vw, 32px); }
.hero-actions .btn-row { margin-top: 0; }
.hero-foot {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

/* ==========================================================================
   8. 制作例と実績
   ========================================================================== */
.wgroup + .wgroup { margin-top: clamp(48px, 6vw, 84px); }

.wgroup-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.wgroup-head .h3 { margin-right: auto; }

.wtag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11.5px;
  letter-spacing: .12em;
  line-height: 1;
  padding: 5px 9px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.wtag--sample { color: var(--ink); }
.wtag--client { color: var(--brand); }
.wgroup-count {
  font-family: var(--font-num);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: .04em;
}
.wgroup-lead {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-soft);
  max-width: 52em;
}

/* サンプル3件：画像主体の3列 */
.wlist {
  margin-top: clamp(24px, 3vw, 38px);
  display: grid;
  gap: clamp(30px, 3.4vw, 40px);
}
@media (min-width: 768px) {
  .wlist--trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
}

.witem { min-width: 0; }
.witem + .witem { border-top: 1px solid var(--line); padding-top: clamp(28px, 3.2vw, 36px); }
@media (min-width: 768px) {
  .wlist--trio .witem + .witem { border-top: 0; padding-top: 0; }
}

.wthumb {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.wthumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  transition: transform .4s ease;
}
.witem a:hover .wthumb img { transform: scale(1.025); }

.wmeta { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.wkind {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1;
  padding: 4px 7px;
  border: 1.2px solid currentColor;
}
.wkind--sample { color: var(--ink-soft); }
.wkind--client { color: var(--brand); }
.wfield {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.5;
  min-width: 0;
}

.witem h4 {
  margin-top: 8px;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.4;
}
.witem p { margin-top: 8px; font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); }
.wfiction { color: var(--ink-mute); font-size: 12px; }

.wgo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--brand);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  line-height: 1.5;
}
.witem a { text-decoration: none; display: block; }
.witem a:hover .wgo { color: var(--brand-dark); }

/* 実績2件：横長の2列（画像と文章） */
.wlist--pair { gap: clamp(34px, 4vw, 48px); }
@media (min-width: 900px) {
  .wlist--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 3vw, 40px); }
  .wlist--pair .witem + .witem { border-top: 0; padding-top: 0; }
  .wlist--pair .witem a { display: grid; grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1200px) {
  .wlist--pair .witem a {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    column-gap: 22px;
    align-items: start;
  }
  .wlist--pair .wmeta { margin-top: 0; }
}

.works-foot {
  margin-top: clamp(34px, 4vw, 52px);
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   制作例の下部：ほかの制作用途のご提案
   独立したカードではなく、罫線と通し番号で整理した読み物として並べます。
   -------------------------------------------------------------------------- */
.works-ideas {
  margin-top: clamp(34px, 4vw, 52px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 2px solid var(--ink);
}
.works-ideas-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 18.5px);
  line-height: 1.85;
  letter-spacing: .01em;
}
.works-ideas-list {
  margin-top: clamp(14px, 1.8vw, 20px);
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: works-idea;
  border-top: 1px solid var(--line);
}
.works-ideas-list > li {
  counter-increment: works-idea;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.works-ideas-list > li::before {
  content: counter(works-idea, decimal-leading-zero);
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 2.16;
  color: var(--brand);
}
@media (min-width: 900px) {
  .works-ideas-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(24px, 3vw, 40px);
  }
  .works-ideas-list > li { padding: 13px 0 15px; }
}
.works-ideas-close {
  margin-top: clamp(14px, 1.8vw, 20px);
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-soft);
  max-width: 52em;
}

/* ==========================================================================
   9. AIと人の役割
   ========================================================================== */
.roles {
  margin-top: clamp(6px, 1vw, 10px);
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 4vw, 72px); }
}

.role {
  padding: clamp(24px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(14px, 1.8vw, 24px);
  align-items: start;
}
.role-no {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: .9;
  color: var(--brand);
  letter-spacing: -0.03em;
}
.role--human .role-no { color: var(--ink); }
.role h3 { font-size: clamp(18px, 2vw, 25px); }
.role p { margin-top: 12px; font-size: 14.5px; line-height: 2; color: var(--ink-soft); }
.role-with { display: flex; align-items: flex-end; gap: 14px; }

.pull {
  margin-top: clamp(30px, 3.8vw, 48px);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(17px, 2.05vw, 29px);
  line-height: 1.62;
  letter-spacing: -0.012em;
  max-width: 22em;
}
.pull .em { color: var(--brand); }

/* ==========================================================================
   10. 料金
   ========================================================================== */
/* v8.12：料金表の外枠・塗り背景・カード内余白を廃止し、
   見出しの強弱と細い罫線だけで一つのまとまりとして読ませます。 */
.board {
  margin-top: clamp(10px, 1.6vw, 20px);
  margin-bottom: clamp(10px, 1.6vw, 20px);
}

.board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.board-head h3 { font-size: clamp(18px, 1.9vw, 24px); }
.board-head p { font-size: 12.5px; color: var(--ink-mute); }

.fee-group { margin-top: clamp(20px, 2.4vw, 30px); }
.fee-group-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--brand);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.fee-rows { margin-top: 2px; }
.fee-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 14px;
  row-gap: 2px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 768px) {
  .fee-row {
    grid-template-columns: minmax(0, 15em) minmax(0, 1fr) auto;
    column-gap: 20px;
    padding: 15px 0;
  }
}
.fee-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.55;
  min-width: 0;
}
.fee-desc {
  grid-column: 1 / -1;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-mute);
}
@media (min-width: 768px) {
  .fee-desc { grid-column: auto; font-size: 13px; }
}
.fee-price {
  grid-row: 1;
  grid-column: 2;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}
@media (min-width: 768px) { .fee-price { grid-column: 3; } }
.fee-num {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: clamp(16px, 1.7vw, 22px);
  letter-spacing: -0.01em;
}
.fee-tax { font-size: 11.5px; color: var(--ink-mute); margin-left: 2px; }
/* v8.10：単位を含む金額は、単位を小さい文字で示し、狭い画面で折り返します。 */
.fee-price--unit { white-space: normal; }
.fee-price--unit .fee-num { white-space: nowrap; }
.fee-unit {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}
@media (max-width: 767px) {
  .fee-price--unit {
    grid-row: auto;
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
    margin-top: 4px;
  }
}
/* 見積り項目は数字書体を使わず、金額と誤読されないようにします。 */
.fee-price--quote { white-space: normal; }
.fee-price--quote .fee-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(12.5px, 1.15vw, 15px);
  letter-spacing: 0;
  color: var(--brand);
  line-height: 1.5;
  display: inline-block;
}
.fee-cond {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-soft);
  border-left: 2px solid var(--brand);
  padding-left: 10px;
}

.board-foot {
  margin-top: clamp(18px, 2.2vw, 26px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* --- 料金の内容説明（罫線付きの定義リスト） --- */
.deflist { margin-top: 6px; border-top: 1px solid var(--line); }
.deflist > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .deflist > div {
    grid-template-columns: minmax(0, 13em) minmax(0, 1fr);
    column-gap: 24px;
    align-items: baseline;
  }
}
.deflist dt { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; line-height: 1.6; }
.deflist dd { font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); }

.cols2 {
  margin-top: clamp(34px, 4vw, 56px);
  display: grid;
  gap: clamp(30px, 3.4vw, 48px);
}
@media (min-width: 900px) {
  .cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 4vw, 64px); }
}
.block-title {
  font-size: clamp(16px, 1.6vw, 20px);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.block-note { margin-top: 12px; font-size: 13.5px; line-height: 1.95; color: var(--ink-soft); }

.ticks { margin-top: 12px; }
.ticks li {
  position: relative;
  padding: 9px 0 9px 24px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.75;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: 17px;
  width: 10px; height: 5px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.ticks--minus li::before {
  border-left: 0;
  border-bottom: 2px solid var(--ink-mute);
  transform: none;
  top: 21px;
  width: 11px; height: 0;
}

.payline { margin-top: clamp(28px, 3.2vw, 40px); display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) {
  .payline { grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 0; }
}
.payline li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.7;
}
@media (min-width: 768px) {
  .payline li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    border-bottom: 0;
    border-top: 2px solid var(--ink);
    padding: 12px 16px 12px 0;
  }
}
.payline .n {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 14px;
  color: var(--brand);
}
.payline b { font-weight: 700; }

/* ==========================================================================
   11. 制作の流れ（縦タイムライン）
   ========================================================================== */
.steps { margin-top: clamp(24px, 3vw, 40px); }
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(16px, 2.4vw, 34px);
  padding: clamp(20px, 2.6vw, 30px) 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-no {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: clamp(26px, 3.8vw, 46px);
  line-height: 1;
  color: var(--brand);
  letter-spacing: -0.03em;
  min-width: 1.6em;
}
.step-body { min-width: 0; }
.step-body h3 { font-size: clamp(16.5px, 1.65vw, 22px); }
.step-body p { margin-top: 10px; font-size: 14px; line-height: 1.95; color: var(--ink-soft); }
.step-alert {
  margin-top: 12px !important;
  border-left: 2px solid var(--brand);
  padding-left: 12px;
  color: var(--ink) !important;
  font-size: 13.5px !important;
}
.step-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--brand);
  border: 1.2px solid var(--brand);
  padding: 3px 8px;
  line-height: 1.5;
}
.step-with { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.step-with > div { min-width: 0; }

/* ==========================================================================
   12. FAQ
   ========================================================================== */
.faq { margin-top: clamp(20px, 2.6vw, 32px); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 17px 2px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.7;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 13px; height: 13px;
  margin-top: 8px;
  margin-left: auto;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform .24s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }
.faq summary:hover { color: var(--brand); }
.faq-q {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 13px;
  color: var(--brand);
  flex: none;
  padding-top: 3px;
}
.faq-a { padding: 0 2px 20px 33px; }
.faq-a p { font-size: 14px; line-height: 2; color: var(--ink-soft); }
.faq-a p + p { margin-top: 10px; }
.faq-a strong { color: var(--ink); font-weight: 700; }

/* ==========================================================================
   13. 最終CTA・フッター
   ========================================================================== */
.final {
  background: var(--ink);
  color: var(--ink-rev);
  padding-block: clamp(48px, 6.4vw, 96px);
}
.final h2 { font-size: clamp(21px, 4.2vw, 44px); line-height: 1.24; }
.final p { margin-top: 18px; font-size: 14.5px; line-height: 2; color: #d5cec4; max-width: 40em; }
.final .btn--ghost { border-color: var(--ink-rev); color: var(--ink-rev); }
.final .btn--ghost:hover { background: var(--ink-rev); color: var(--ink); }
.final-note { font-size: 12.5px; color: #b3aaa0; margin-top: 14px; }
.final-note strong { color: var(--ink-rev); }
.final-grid { display: grid; gap: clamp(26px, 3vw, 40px); }
@media (min-width: 900px) {
  .final-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: clamp(32px, 4vw, 64px);
    align-items: end;
  }
}
.final-figure { justify-self: start; }
@media (min-width: 900px) { .final-figure { justify-self: end; } }

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-block: clamp(34px, 4vw, 56px);
  font-size: 13px;
}
.footer-top { display: grid; gap: 22px; }
@media (min-width: 768px) {
  .footer-top { grid-template-columns: auto minmax(0, 1fr); column-gap: 40px; align-items: start; }
}
.footer-brand .brand-name { font-size: 17px; }
.footer-org { margin-top: 4px; font-size: 12px; color: var(--ink-mute); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (min-width: 768px) { .footer-nav { justify-content: flex-end; } }
.footer-nav a { font-size: 13px; font-weight: 700; text-decoration: none; padding: 4px 0; display: inline-block; }
.footer-nav a:hover { color: var(--brand); }
.footer-legal { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-legal p { font-size: 12px; line-height: 1.9; color: var(--ink-mute); }
.footer-legal p + p { margin-top: 8px; }
.copyright { margin-top: 18px !important; font-family: var(--font-num); font-size: 11.5px; letter-spacing: .03em; }

/* ==========================================================================
   14. パンくず（works.html）
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--ink-mute); }
.crumbs li + li::before { content: "／"; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

.page-hero { padding-block: clamp(30px, 4vw, 56px) clamp(30px, 4vw, 52px); }
.page-hero h1 {
  margin-top: 16px;
  font-size: clamp(24px, 4.8vw, 60px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.page-hero-body { margin-top: clamp(18px, 2.4vw, 28px); display: grid; gap: 22px; }
@media (min-width: 1024px) {
  .page-hero-body { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(32px, 4vw, 64px); align-items: end; }
}
.page-hero-figure { justify-self: start; }
@media (min-width: 1024px) { .page-hero-figure { justify-self: end; } }

/* ==========================================================================
   15. 無料相談フォーム（contact.html）
   --------------------------------------------------------------------------
   v8.9の配色・書体・ボタンをそのまま使います。新しいテーマは作りません。
   - 1列で読み進められる構成
   - 操作領域は44px以上
   - 必須は色だけでなく「必須」の文字でも示します
   - エラーは項目付近（.field-err）と全体通知（.form-alert）の両方で伝えます
   ========================================================================== */
.wrap--form { max-width: 780px; }

/* <button class="btn"> をリンクのボタンと同じ見え方にそろえます。 */
button.btn { cursor: pointer; -webkit-appearance: none; appearance: none; }
button.btn[disabled] { opacity: .55; cursor: default; }

.cform { margin-top: clamp(4px, 1vw, 12px); }
.cform[hidden] { display: none; }
.cform-note {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.field {
  margin: 0;
  padding: clamp(18px, 2.4vw, 26px) 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  min-width: 0;
}
.field-head, .field-legend { display: block; width: 100%; padding: 0; }
.field-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
}
.req, .opt {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1;
  padding: 4px 7px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  white-space: nowrap;
}
.req { color: var(--brand); }
.opt { color: var(--ink-mute); }
.req--legend { margin-left: 0; margin-right: 2px; }

.field-help {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-mute);
}
.field-example {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-soft);
  border-left: 2px solid var(--line);
  padding-left: 10px;
}
.field-count { margin-top: 6px; font-size: 12px; color: var(--ink-mute); }

.input {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--font-body);
  /* スマートフォンで入力時に画面が拡大しないよう16pxにします。 */
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  -webkit-appearance: none;
  appearance: none;
}
.textarea { min-height: 168px; resize: vertical; }
.field.is-invalid .input { border-color: var(--brand); background: var(--brand-tint); }

.choices { margin-top: 12px; display: grid; gap: 8px; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 11px 12px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.7;
  cursor: pointer;
  min-width: 0;
}
.choice:hover { border-color: var(--ink); }
.choice:focus-within { border-color: var(--brand); }
.choice > span { min-width: 0; overflow-wrap: anywhere; }
.choice input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--brand);
}
.field.is-invalid .choice { border-color: var(--brand); }

.field-err {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.8;
  color: var(--brand);
  border-left: 3px solid var(--brand);
  padding-left: 10px;
}

.cform-actions { margin-top: clamp(24px, 3vw, 34px); }
.cform-actions .note { margin-top: 12px; text-align: center; }

.form-alert {
  margin-bottom: clamp(20px, 2.6vw, 28px);
  padding: clamp(14px, 2vw, 20px);
  background: var(--brand-tint);
  border: 1.5px solid var(--brand);
}
.form-alert-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  color: var(--brand);
}
.form-alert-list {
  margin: 10px 0 0;
  padding-left: 1.2em;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.form-done {
  padding: clamp(22px, 3vw, 36px);
  background: var(--surface);
  border: 1.5px solid var(--ink);
}
.form-done-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(19px, 2.4vw, 27px);
  line-height: 1.4;
  margin-bottom: 12px;
}
.form-done p { font-size: 14px; line-height: 1.95; color: var(--ink-soft); }
.form-done-back { margin-top: 20px; }

.cform-fallback {
  margin-top: clamp(28px, 3.4vw, 44px);
  padding-top: clamp(18px, 2.2vw, 24px);
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-soft);
}
.cform-fallback-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 6px;
}
.cform-fallback p + p { margin-top: 10px; }
.cform-fallback-action { margin-top: 14px; }
.cform-fallback.is-emphasized {
  padding: clamp(16px, 2vw, 22px);
  border: 1.5px solid var(--brand);
  background: var(--brand-tint);
}

/* ==========================================================================
   16. 入場アニメーション
   --------------------------------------------------------------------------
   初期状態は「表示済み」です。site-motion.js が動いた環境でだけ動きます。
   ========================================================================== */
.motion-on [data-anim] {
  opacity: 0;
  transition: opacity .42s ease, transform .42s ease;
  transition-delay: var(--anim-delay, 0ms);
  will-change: opacity, transform;
}
.motion-on [data-anim="up"] { transform: translateY(16px); }
.motion-on [data-anim="left"] { transform: translateX(-16px); }
.motion-on [data-anim="right"] { transform: translateX(16px); }
.motion-on [data-anim="pop"] { transform: scale(.965); }
.motion-on [data-anim].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .motion-on [data-anim] { opacity: 1 !important; transform: none !important; }
}

@media print {
  .site-header, .nav-toggle, .mobile-nav { display: none !important; }
  body { background: #fff; }
}

/* ==========================================================================
   17. トップページのお申し込み導線（v8.13で追加）
   --------------------------------------------------------------------------
   カード・外周枠・影は使わず、中央配置と余白だけでまとめています。
   ========================================================================== */
.apply-lead { text-align: center; }
.apply-lead .lead { margin-inline: auto; max-width: 40em; }
.apply-lead .btn-row { justify-content: center; }
@media (min-width: 560px) {
  .apply-lead .btn-row .btn { min-width: 280px; }
}
