@charset "UTF-8";
/* ==========================================================================
   リンクス 展示会ツール専門サイト
   design/*.dc.html（Claude Design・方向性 2a）から実装したスタイルシート

   構成
     1. トークン
     2. ベース
     3. レイアウト
     4. ヘッダー / ナビ
     5. ヒーロー
     6. セクション見出し
     7. カード
     8. 商品カード
     9. 事例
    10. ステップ / FAQ
    11. ボタン / CTA
    12. フォーム
    13. フッター
    14. プレースホルダ
    15. レスポンシブ

   色・寸法を変えるときは 1. トークン だけを触れば全体に効く。
   ========================================================================== */

/* 1. トークン ------------------------------------------------------------ */

:root {
  /* 本体サイト links-net.co.jp のデザイントークン実測値 */
  --red: #d73b20;
  --red-dark: #a82c17;
  --red-pale: #f7ece9;
  --black: #1a1a1a;
  --white: #ffffff;

  /* 地と文字 */
  --ground: #f5f5f5;        /* 本体サイト links-net.co.jp の body 実測値 */
  --text: #1a1a1a;
  --text-body: #2a2a2a;
  --text-sub: #4a453f;
  --text-mute: #6b6560;
  --text-faint: #8a827a;

  /* 罫線・面 */
  --line: #ecebe8;
  --field: #f7f6f4;
  --field-line: #e6e4e0;
  --field-mark: #b9b4ae;
  --field-text: #9c968f;

  /* 影 */
  --shadow-card: 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-head: 0 2px 10px rgba(0, 0, 0, .05);
  --shadow-cta: 0 2px 12px rgba(0, 0, 0, .05);
  --shadow-photo: 0 6px 24px rgba(0, 0, 0, .12);

  /* 角丸 */
  --r-card: 16px;
  --r-panel: 20px;
  --r-cta: 24px;
  --r-img: 10px;
  --r-field: 12px;
  --r-pill: 999px;
  --r-btn: 28px;          /* ボタン高さの半分。本体サイトは h36 に対し 18px */

  /* 間隔 */
  --pad-x: 48px;          /* ページ左右 */
  --gap-section: 80px;    /* セクション間 */
  --gap-block: 36px;      /* セクション内の塊 */
  --gap-card: 20px;       /* カード同士 */

  /* 文字 */
  --font-display: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  /* ヘッダー・フッターは本体サイトと同じ Montserrat + Noto Sans JP を使う */
  --font-chrome: 'Montserrat', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;

  --fs-h1: 48px;
  --fs-h1-sub: 44px;      /* 下層ページの見出し */
  --fs-h2: 34px;
  --fs-h2-sub: 26px;
  --fs-h3: 19px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-fine: 13px;

  --page-max: 1280px;
}

/* 2. ベース -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 900; margin: 0; }
p { margin: 0; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* 3. レイアウト ---------------------------------------------------------- */

.page {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  background: var(--ground);
  overflow: hidden;   /* ヘッダー背後の赤い円をページ内に収める */
}

.section {
  padding: var(--gap-section) var(--pad-x) 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-block);
}

.section--flush { padding-left: 0; padding-right: 0; }

.stack { display: flex; flex-direction: column; }
.stack--sm { gap: 12px; }
.stack--md { gap: 20px; }
.stack--lg { gap: 32px; }

.grid { display: grid; gap: var(--gap-card); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }

/* 4. ヘッダー / ナビ ----------------------------------------------------- */

.masthead { position: relative; }

/* 背後の赤い円（2a の視覚語彙）。装飾なので読み上げ対象外 */
.masthead__ring,
.masthead__ring-outline {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.masthead__ring {
  top: -230px; right: -180px;
  width: 420px; height: 420px;
  background: var(--red);
}
.masthead__ring-outline {
  top: -190px; right: -140px;
  width: 340px; height: 340px;
  border: 26px solid var(--ground);
}
.masthead--sub .masthead__ring { top: -180px; right: -140px; }
.masthead--sub .masthead__ring-outline { top: -140px; right: -100px; }

.masthead__bar { padding: 24px 28px 0; }

/* 本体サイト実測: 白カード radius 16px / padding 24px 32px 24px 48px / 影なし / 高さ84px */
.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px 24px 48px;
  min-height: 84px;
  background: var(--white);
  border-radius: 16px;
  font-family: var(--font-chrome);
}

.brand { display: flex; align-items: center; gap: 16px; }
.brand__logo { display: inline-flex; align-items: center; }
.brand__logo img { display: block; width: 80px; height: 25px; }
/* 本体サイト実測: 12px / 500 / letter-spacing .06em */
.brand__tag { font-size: 12px; font-weight: 500; letter-spacing: .06em; color: #000; }

.header__actions { display: flex; align-items: center; gap: 32px; }

/* 本体サイト実測: nav gap 32px / リンク 14px / 700 / letter-spacing .06em / #000 */
.nav { display: flex; align-items: center; gap: 32px; }
.nav__link { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: #000; }
.nav__link:hover { color: var(--red); }
.nav__link[aria-current="page"] { color: var(--red); }

.nav-cta { flex: none; }
.nav-cta > span { display: inline; }

.nav-toggle { display: none; }

/* 5. ヒーロー ------------------------------------------------------------ */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 72px var(--pad-x) 56px;
  align-items: start;
}
.hero__title {
  font-size: var(--fs-h1);
  line-height: 1.5;
  letter-spacing: .04em;
}
.hero__title em { font-style: normal; color: var(--red); }
.hero__body { display: flex; flex-direction: column; gap: 32px; padding-top: 16px; }
.hero__lead {
  font-size: var(--fs-body);
  line-height: 2.3;
  color: var(--text-body);
  text-wrap: pretty;
  max-width: 40em;
}
.hero__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* 下層ページの見出し */
.pagehead {
  position: relative;
  padding: 64px var(--pad-x) 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
}
.pagehead__title { font-size: var(--fs-h1-sub); letter-spacing: .04em; }
.pagehead__lead {
  font-size: var(--fs-body);
  line-height: 2.2;
  color: var(--text-body);
  text-wrap: pretty;
}

/* 赤帯の中の写真 */
.hero-photo {
  position: relative;
  background: var(--red);
  padding: 40px var(--pad-x);
  display: flex;
  justify-content: center;
}
.hero-photo__frame {
  width: 100%;
  max-width: 880px;
  background: var(--white);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow-photo);
}

/* 6. セクション見出し ---------------------------------------------------- */

.sec-head { display: flex; flex-direction: column; gap: 14px; }

.sec-head__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
}
.sec-head__label::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.sec-head__title { font-size: var(--fs-h2); line-height: 1.5; letter-spacing: .03em; }
.sec-head__rule { width: 520px; max-width: 100%; height: 2px; background: var(--red); }

/* 下層ページ用（赤い上罫） */
.sub-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 3px solid var(--red);
  padding-top: 20px;
}
.sub-head__title { font-size: var(--fs-h2-sub); letter-spacing: .03em; }

/* 7. カード -------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--white);
  border-radius: var(--r-card);
  padding: 32px 28px 36px;
  box-shadow: var(--shadow-card);
}
.card__title { font-size: var(--fs-h3); font-weight: 700; }
.card__text { font-size: var(--fs-small); line-height: 2; color: var(--text-sub); }
.card__num { font-size: var(--fs-fine); font-weight: 700; color: var(--red); }

.card--num { gap: 12px; padding: 24px 20px 28px; }
.card--num .card__title { font-size: 17px; }
.card--num .card__text { font-size: var(--fs-fine); line-height: 1.9; }

.panel {
  background: var(--white);
  border-radius: var(--r-panel);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.icon { flex: none; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--ground);
}
.tag--plain { font-weight: 500; background: var(--white); }

/* 仕組みの図解 */
.formula {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.formula__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
.formula__badge {
  width: 72px; height: 72px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.formula__badge--neutral { background: #eceae6; }
.formula__badge--pale { background: var(--red-pale); }
.formula__badge--red { background: var(--red); }
.formula__name { font-size: var(--fs-fine); font-weight: 700; }
.formula__note { font-size: 11px; color: var(--text-mute); }
.formula__op { font-size: 20px; font-weight: 700; color: var(--red); }

/* 8. 商品カード ---------------------------------------------------------- */

.product {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border-radius: var(--r-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.product__body { display: flex; flex-direction: column; gap: 6px; padding: 0 4px 8px; }
.product__name { font-size: 16px; font-weight: 700; }
.product__alias { font-size: 11px; color: var(--text-faint); }
.product__use { font-size: var(--fs-fine); line-height: 1.8; color: var(--text-sub); }

.product__spec {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 4px;
}
.product__spec dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; }
.product__spec dt { font-size: 11px; font-weight: 700; color: var(--text-mute); }
.product__spec dd { margin: 0; font-size: 11px; }

.group { display: flex; flex-direction: column; gap: 16px; }
.group__title { font-size: 18px; font-weight: 700; }

/* 9. 事例 ---------------------------------------------------------------- */

.case { gap: 24px; }
.case__head { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--red); padding-top: 20px; }
.case__kicker { font-size: var(--fs-fine); font-weight: 700; color: var(--red); }
.case__name { font-size: 28px; letter-spacing: .03em; }
.case__media { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.case__detail { display: grid; grid-template-columns: 1fr 420px; gap: 32px; align-items: start; }
.case__text { font-size: 15px; line-height: 2.1; color: var(--text-body); text-wrap: pretty; }
.case__note { font-size: 12px; line-height: 1.9; color: var(--text-faint); }
.case__parts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--ground);
  border-radius: 14px;
  padding: 20px 22px;
}
.case__parts-label { font-size: 12px; font-weight: 700; color: var(--text-mute); }

/* 10. ステップ / FAQ ----------------------------------------------------- */

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border-radius: var(--r-card);
  padding: 24px 20px 28px;
  box-shadow: var(--shadow-card);
}
.step__no { font-size: 12px; font-weight: 700; color: var(--red); }
.step__title { font-size: 16px; font-weight: 700; line-height: 1.6; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: 14px;
  padding: 22px 26px;
  min-height: 44px;
  box-shadow: var(--shadow-card);
}
.faq-item__q {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  color: var(--red);
  flex: none;
}
.faq-item__text { font-size: 16px; font-weight: 700; flex: 1; }

/* 仕様表 */
.spec-table {
  display: grid;
  grid-template-columns: 240px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--r-img);
  overflow: hidden;
}
.spec-table__key {
  background: var(--ground);
  padding: 16px 20px;
  font-size: var(--fs-fine);
  font-weight: 700;
  border-right: 1px solid var(--line);
}
.spec-table__val { padding: 16px 20px; }
.spec-table__key:not(:first-of-type),
.spec-table__key:not(:first-of-type) + .spec-table__val { border-top: 1px solid var(--line); }

/* 11. ボタン / CTA ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 34px;
  /* 本体サイトのボタン形状: 左上だけ角、残り3隅は高さの半分 */
  border-radius: 0 var(--r-btn) var(--r-btn) var(--r-btn);
  font-family: var(--font-chrome);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  border: 0;
  cursor: pointer;
  text-align: center;
}
.btn::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  flex: none;
}
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); color: var(--white); }
.btn--red::after { background: var(--white); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { color: var(--white); opacity: .88; }
.btn--dark::after { background: var(--red); }
.btn--lg { min-height: 60px; padding: 0 40px; font-size: 17px; --r-btn: 30px; }
/* ヘッダーの CTA。本体サイト実測: h36 / padding 0 14px 0 22px / gap 8px / dot 8px */
.btn--sm {
  min-height: 36px;
  padding: 0 14px 0 22px;
  gap: 8px;
  font-size: 14px;
  --r-btn: 18px;
}
.btn--sm::after { width: 8px; height: 8px; }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

.link-under {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--red);
}
.link-under:hover { color: var(--red); }

.cta { padding: var(--gap-section) var(--pad-x) 88px; }
.cta__inner {
  position: relative;
  background: var(--white);
  border-radius: var(--r-cta);
  padding: 64px 56px;
  box-shadow: var(--shadow-cta);
  overflow: hidden;
}
.cta__inner::after {
  content: "";
  position: absolute;
  bottom: -120px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--red-pale);
}
.cta__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.cta__title { font-size: 36px; letter-spacing: .03em; }
.cta__text { font-size: 15px; line-height: 2; color: var(--text-sub); max-width: 620px; }

/* 赤地の帯（海外展示会） */
.band-red {
  background: var(--red);
  color: var(--white);
  padding: 64px var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: var(--gap-block);
}
.band-red .sec-head__label { color: var(--white); }
.band-red .card { color: var(--text); }
.band-red__note { font-size: 12px; line-height: 1.9; color: rgba(255, 255, 255, .9); }

/* 12. フォーム ----------------------------------------------------------- */

.form-section {
  background: var(--white);
  border-radius: var(--r-panel);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 28px;
  border: 0;
  margin: 0;
}
.form-section legend { padding: 0; }
.req { font-size: 12px; font-weight: 700; color: var(--red); }

.field { display: flex; flex-direction: column; gap: 10px; }
.field__label { font-size: var(--fs-small); font-weight: 700; }
.field__label .optional { font-weight: 500; color: var(--text-faint); }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: var(--r-field);
  font-family: var(--font-body);
  font-size: var(--fs-fine);
  color: var(--text);
}
.textarea { min-height: 140px; padding: 18px; line-height: 1.9; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--field-text); }
.select { appearance: none; cursor: pointer; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--field-text);
  border-bottom: 2px solid var(--field-text);
  transform: rotate(45deg);
  pointer-events: none;
}

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: var(--r-field);
  font-size: var(--fs-fine);
  font-weight: 500;
  cursor: pointer;
}
.check input { width: 18px; height: 18px; accent-color: var(--red); flex: none; margin: 0; }
.check:hover { border-color: var(--field-mark); }
.check--bare {
  background: none;
  border: 0;
  padding: 0;
  min-height: 44px;
}

.dropzone {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border: 2px dashed #d5d1cb;
  border-radius: var(--r-card);
  padding: 44px 24px;
  background: #faf9f7;
  text-align: center;
}
.dropzone__label { font-size: var(--fs-small); font-weight: 700; }

.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ground);
  border-radius: var(--r-field);
  padding: 16px 18px;
  font-size: var(--fs-fine);
  line-height: 1.8;
  color: var(--text-sub);
}
.notice--warn { background: var(--red-pale); color: var(--text); }

.thanks {
  background: var(--white);
  border-radius: var(--r-panel);
  padding: 64px 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
.thanks__mark {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--red-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 13. フッター ----------------------------------------------------------
   本体サイト links-net.co.jp 実測: 地は #f5f5f5（黒ではない）／
   inner max-width 1200px・padding 80px 0／タグライン12px・住所16px・
   ナビ項目14px、いずれも weight 500・letter-spacing .04em・色 #000 */

.footer {
  background: var(--ground);
  color: #000;
  font-family: var(--font-chrome);
  padding: 0 var(--pad-x);
  border-top: 1px solid rgba(0, 0, 0, .07);
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: start;
}

.footer__brand { display: flex; flex-direction: column; gap: 56px; }
.footer__tag { font-size: 12px; font-weight: 500; letter-spacing: .06em; color: #000; }
.footer__address {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: .04em;
  color: #000;
}

.footer__cols { display: flex; gap: 56px; }
.footer__col { display: flex; flex-direction: column; }
.footer__col-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #000;
  margin-bottom: 8px;
}
.footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  color: #000;
}
.footer__col a:hover { color: var(--red); }
/* 外部リンク（リンクス本体）の矢印。本体サイトのフッターと同じ記号 */
.footer__col a .ext, .footer__legal .ext { opacity: .55; flex: none; }
.footer__col a:hover .ext, .footer__legal:hover .ext { opacity: 1; }

.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__legal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  color: #000;
}
.footer__legal:hover { color: var(--red); }
.footer__copy { font-size: 12px; font-weight: 500; letter-spacing: .04em; color: #000; }

/* 14. プレースホルダ ------------------------------------------------------
   料金・仕様・写真が未受領のため、値を作らず画面に出す。
   実データが入ったらこの2クラスを消す。 */

.tbd {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  overflow-wrap: anywhere;
}
.tbd--lead { font-size: var(--fs-small); font-weight: 600; color: var(--red); }

.ph {
  border-radius: var(--r-img);
  background: repeating-linear-gradient(45deg, #f4f2ee 0 10px, #eae7e1 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  text-align: center;
  padding: 0 12px;
  line-height: 1.6;
}
.ph--1-1 { aspect-ratio: 1 / 1; }
.ph--4-3 { aspect-ratio: 4 / 3; }
.ph--16-9 { aspect-ratio: 16 / 9; }
.ph--hero {
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(45deg, #f0ede8 0 12px, #e7e3dc 12px 24px);
  font-size: 12px;
}

/* 15. レスポンシブ --------------------------------------------------------
   スマホの数値は design/MainSP.dc.html（TOP のスマホ版）から読み取った規則。
   TOP 以外の4ページはデザインが無く、同じ規則を適用した実装である。 */

@media (max-width: 1024px) {
  :root {
    --pad-x: 32px;
    --gap-section: 64px;
    --fs-h1: 40px;
    --fs-h2: 30px;
  }
  .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case__detail { grid-template-columns: 1fr; }
  .cta__inner { padding: 48px 36px; }
}

@media (max-width: 768px) {
  :root {
    --pad-x: 20px;
    --gap-section: 48px;
    --gap-block: 24px;
    --gap-card: 12px;
    --r-card: 14px;
    --r-panel: 16px;
    --r-cta: 20px;
    --fs-h1: 30px;
    --fs-h1-sub: 28px;
    --fs-h2: 23px;
    --fs-h2-sub: 21px;
    --fs-h3: 17px;
    --fs-body: 14px;
    --fs-small: 13.5px;
  }

  .masthead__ring { top: -150px; right: -120px; width: 280px; height: 280px; }
  .masthead__ring-outline { top: -124px; right: -96px; width: 228px; height: 228px; border-width: 18px; }
  .masthead--sub .masthead__ring { top: -150px; right: -120px; }
  .masthead--sub .masthead__ring-outline { top: -124px; right: -96px; }

  .masthead__bar { padding: 12px 12px 0; }
  .header { padding: 12px 16px; min-height: 60px; border-radius: 14px; gap: 12px; }
  .brand { flex-direction: column; align-items: flex-start; gap: 3px; }
  .brand__logo { min-height: 30px; }
  .brand__logo img { width: 68px; height: 21px; }
  .brand__tag { font-size: 11px; letter-spacing: .04em; }

  /* ナビはハンバーガーへ。開閉は assets/nav.js */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 0 11px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle span { height: 2px; background: var(--text); border-radius: 2px; }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow-head);
    z-index: 20;
  }
  .nav[hidden] { display: none; }
  .nav__link { display: flex; align-items: center; min-height: 48px; }

  .header__actions { gap: 8px; }
  .nav-cta { min-height: 44px; padding: 0 16px; font-size: 12px; }
  .nav-cta__tail { display: none; }   /* 「見積・入稿はこちら」→「見積・入稿」 */

  .hero { grid-template-columns: 1fr; gap: 24px; padding: 40px var(--pad-x) 32px; }
  .hero__title { line-height: 1.55; letter-spacing: .02em; }
  .hero__body { gap: 24px; padding-top: 0; }
  .hero__lead { line-height: 2.1; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .link-under { align-self: flex-start; }

  .hero-photo { padding: 20px 16px; }
  .hero-photo__frame { border-radius: 14px; padding: 8px; }

  .pagehead { padding: 40px var(--pad-x) 32px; gap: 16px; }

  .sec-head__label { font-size: 13px; }
  .sec-head__title { line-height: 1.6; letter-spacing: .02em; }
  .sec-head__rule { width: 120px; }
  .sub-head { padding-top: 16px; }

  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }

  .card { padding: 22px 20px 24px; }
  .card--num { padding: 20px; }
  .panel { padding: 24px 20px; }

  /* 仕組みの図解は縦積みに */
  .formula { grid-template-columns: 1fr; gap: 16px; }
  .formula__item { flex-direction: row; align-items: center; text-align: left; gap: 14px; }
  .formula__badge { width: 56px; height: 56px; }
  .formula__op { padding-left: 20px; font-size: 18px; }

  /* 商品カードは横並び（MainSP の様式） */
  .product { flex-direction: row; align-items: flex-start; gap: 14px; padding: 12px; }
  .product > .ph { width: 104px; height: 104px; flex: none; aspect-ratio: auto; font-size: 10.5px; padding: 0 8px; }
  .product__body { padding: 0; gap: 5px; }
  .product__name { font-size: 14px; }
  .product__spec { width: 100%; }

  .case__media { grid-template-columns: 1fr; gap: 12px; }
  .case__name { font-size: 22px; }
  .case { padding: 20px; }

  .spec-table { grid-template-columns: 1fr; }
  .spec-table__key { border-right: 0; border-top: 1px solid var(--line); }
  .spec-table__key:first-of-type { border-top: 0; }
  .spec-table__key + .spec-table__val { border-top: 0; }

  .faq-item { gap: 14px; padding: 18px 20px; border-radius: 12px; }
  .faq-item__text { font-size: 14.5px; }

  .band-red { padding: 40px var(--pad-x); }

  .cta { padding: var(--gap-section) var(--pad-x) 56px; }
  .cta__inner { padding: 36px 24px; }
  .cta__title { font-size: 25px; line-height: 1.55; }
  .cta__body .btn { width: 100%; }
  .cta__inner::after { bottom: -90px; right: -60px; width: 220px; height: 220px; }

  .form-section { padding: 24px 20px; gap: 24px; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; padding: 48px 0; }
  .footer__brand { gap: 32px; }
  .footer__address { font-size: 14px; }
  .footer__cols { flex-direction: column; gap: 24px; }
  .footer__bottom { padding-bottom: 32px; }
}

/* 印刷 */
@media print {
  .nav-toggle, .hero__actions, .cta { display: none; }
  body { background: #fff; }
  .card, .panel, .product { box-shadow: none; border: 1px solid #ddd; }
}
