/* =========================================================
   AI就活ラボ — 「赤ペン添削 × 紙」エディトリアルデザイン
   ES用紙と赤ペン（=人の目）のメタファー。
   紙色の背景・墨の文字・朱の一色差し。見出しは明朝。
   スマホファースト（375px基準 → 768px / 1080px で拡張）
   ========================================================= */

:root {
  --paper: #f7f4ec;        /* 紙 */
  --paper-warm: #fffdf6;   /* カードの紙 */
  --ink: #26221b;          /* 墨 */
  --ink-soft: #5c564b;     /* 薄墨 */
  --ink-faint: #918a7c;    /* 鉛筆 */
  --red: #c73e2c;          /* 朱（赤ペン） */
  --red-ink: #b03424;
  --red-wash: rgba(199, 62, 44, 0.07);
  --rule: #ddd6c6;         /* 罫線 */
  --rule-strong: #c9c1ad;
  --line-green: #06c755;   /* LINEボタン専用 */
  --line-green-dark: #05b34c;
  --serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  --shadow-paper: 3px 3px 0 rgba(38, 34, 27, 0.08);
  --radius: 3px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; }

a { color: var(--red-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

::selection { background: var(--red); color: var(--paper); }

/* ---------------------------------------------------------
   共通レイアウト
--------------------------------------------------------- */
.section { padding: 56px 0; }
.section-inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.section-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  position: relative;
  padding-left: 18px;
}
.section-title::before {
  /* 赤ペンの傍線 */
  content: "";
  position: absolute;
  left: 0; top: 0.35em; bottom: 0.3em;
  width: 4px;
  background: var(--red);
  transform: rotate(-1.5deg);
}

.section-more { margin-top: 24px; }
.section-more a { font-size: 14px; letter-spacing: 0.04em; }

/* ---------------------------------------------------------
   ボタン — 事務的でまっすぐ。装飾はホバーの朱だけ
--------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-align: center;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 13px 26px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translate(1px, 1px); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--red); border-color: var(--red); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); background: var(--red-wash); }

.btn-line {
  background: var(--line-green);
  border-color: var(--line-green);
  color: #fff;
  border-radius: 6px; /* LINEらしさのため少しだけ丸く */
}
.btn-line:hover { background: var(--line-green-dark); border-color: var(--line-green-dark); color: #fff; }

.btn-lg { padding: 16px 30px; font-size: 16px; width: 100%; }
.btn-block { display: block; width: 100%; }

.btn-text {
  background: none; border: none;
  font-family: var(--sans); font-size: 14px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 8px 0;
}
.btn-text:hover { color: var(--red); }

/* ---------------------------------------------------------
   ナビゲーション
--------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-strong);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.logo-mark {
  /* 朱印 */
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--red);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 22px; font-weight: 700;
  border-radius: 4px;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-paper);
}
.logo-text {
  display: flex; flex-direction: column;
  font-family: var(--serif);
  font-size: 19px; font-weight: 700; letter-spacing: 0.04em;
  line-height: 1.2;
}
.logo-text small {
  font-family: var(--sans);
  font-size: 10.5px; font-weight: 400;
  color: var(--ink-faint); letter-spacing: 0.08em;
  margin-top: 3px;
}

.nav-menu { display: none; }
.btn-nav-cta { display: none; }

.nav-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  padding: 10px;
}
.nav-burger span {
  display: block; height: 1.5px; width: 100%;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-strong);
  padding: 8px 20px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px dashed var(--rule); }
.mobile-menu a {
  display: block; padding: 14px 4px;
  color: var(--ink); text-decoration: none;
  font-size: 15px; letter-spacing: 0.04em;
}
.mobile-menu a:hover { color: var(--red); }
.mobile-menu-cta { margin-top: 18px; }
.mobile-menu-cta .btn { display: block; }

/* ---------------------------------------------------------
   ヒーロー — ES用紙の上に赤ペン
--------------------------------------------------------- */
.hero {
  /* 便箋の罫線 */
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0px, transparent 31px,
      rgba(38, 34, 27, 0.055) 31px, rgba(38, 34, 27, 0.055) 32px
    ),
    var(--paper);
  border-bottom: 1px solid var(--rule-strong);
  padding: 64px 0 72px;
}
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.hero-note {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.hero-note::before { content: "※ "; color: var(--red); }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 7.6vw, 52px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero h1 mark {
  background: transparent;
  color: var(--red);
  /* 赤ペンの下線 */
  background-image: linear-gradient(to right, transparent, var(--red) 8%, var(--red) 92%, transparent);
  background-size: 100% 3px;
  background-repeat: no-repeat;
  background-position: 0 96%;
}

.hero-lead {
  max-width: 560px;
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 34px;
}

.hero-btns { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }

/* 縦書きの一句（デスクトップのみ・ヒーロー右） */
.hero-side { display: none; }

/* ---------------------------------------------------------
   ツール紹介カード（トップ）
--------------------------------------------------------- */
.tools { background: var(--paper); }
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.tool-card-link {
  display: block;
  background: var(--paper-warm);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  padding: 26px 24px 22px;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tool-card-link:hover { border-color: var(--red); transform: translateY(-2px); color: var(--ink); }

.tool-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-family: var(--serif);
  font-size: 22px; font-weight: 700;
  border-radius: 4px;
  transform: rotate(-2deg);
  margin-bottom: 16px;
}
.tool-card-link h3 {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.tool-card-link p { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.tool-cta {
  font-size: 14px; font-weight: 700;
  color: var(--red);
  letter-spacing: 0.06em;
}
.tool-card-link:hover .tool-cta { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------
   使い方（3ステップ）— 朱の丸数字
--------------------------------------------------------- */
.steps { border-top: 1px solid var(--rule); }
.step-list { list-style: none; counter-reset: step; max-width: 640px; }
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 56px;
}
.step-list li:not(:last-child)::after {
  /* 点線でつなぐ */
  content: "";
  position: absolute; left: 19px; top: 44px; bottom: 6px;
  border-left: 1.5px dashed var(--rule-strong);
}
.step-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-family: var(--serif);
  font-size: 19px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--paper);
}
.step-list strong {
  display: block;
  font-family: var(--serif);
  font-size: 17.5px; font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.step-list span { font-size: 14px; color: var(--ink-soft); }

/* ---------------------------------------------------------
   LINE誘導バンド — 墨のバンドに朱の一言
--------------------------------------------------------- */
.line-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0;
}
.line-cta-inner { max-width: 680px; margin: 0 auto; padding: 0 20px; }

.line-cta-badge {
  display: inline-block;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--paper);
  border: 1px solid rgba(247, 244, 236, 0.45);
  padding: 5px 14px;
  margin-bottom: 22px;
}
.line-cta-title {
  font-family: var(--serif);
  font-size: clamp(22px, 5.4vw, 30px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
.line-cta-body {
  font-size: 14.5px;
  color: rgba(247, 244, 236, 0.82);
  margin-bottom: 28px;
}
.line-cta .btn-line { display: block; max-width: 420px; }
.line-cta-note {
  font-size: 12px;
  color: rgba(247, 244, 236, 0.55);
  margin-top: 16px;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------
   記事カード・記事本文
--------------------------------------------------------- */
.articles-sec { border-top: 1px solid var(--rule); }
.article-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }

.article-card {
  display: block;
  background: var(--paper-warm);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  padding: 22px 22px 18px;
  color: var(--ink); text-decoration: none;
  transition: border-color 0.15s ease;
}
.article-card:hover { border-color: var(--red); color: var(--ink); }
.article-card-date {
  font-size: 11.5px; color: var(--ink-faint);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.article-card h3 {
  font-family: var(--serif);
  font-size: 17px; font-weight: 700;
  line-height: 1.6;
  margin-bottom: 8px;
}
.article-card-desc {
  font-size: 13px; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.article-card-more { font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: 0.06em; }

.article { padding: 48px 0 12px; }
.article-inner { max-width: 720px; }
.article-date { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.12em; margin-bottom: 12px; }
.article h1 {
  font-family: var(--serif);
  font-size: clamp(24px, 5.8vw, 34px);
  font-weight: 700; line-height: 1.6;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.article-lead {
  font-size: 14px; color: var(--ink-soft);
  padding: 14px 18px;
  background: var(--red-wash);
  border-left: 3px solid var(--red);
  margin-bottom: 36px;
}

.article-body { font-size: 15.5px; }
.article-body h2 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700;
  letter-spacing: 0.03em; line-height: 1.6;
  margin: 48px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-strong);
  position: relative;
}
.article-body h2::after {
  /* 見出し下線に朱を重ねる */
  content: "";
  position: absolute; left: 0; bottom: -1px;
  width: 64px; height: 2px;
  background: var(--red);
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 18px; font-weight: 700;
  margin: 34px 0 12px;
}
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 6px; }
.article-body strong {
  font-weight: 700;
  background-image: linear-gradient(to right, transparent, rgba(199, 62, 44, 0.22) 6%, rgba(199, 62, 44, 0.22) 94%, transparent);
  background-size: 100% 8px;
  background-repeat: no-repeat;
  background-position: 0 88%;
}
.article-body blockquote {
  /* 例文＝提出書類の紙。便箋の罫線を敷く */
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0px, transparent 29px,
      rgba(38, 34, 27, 0.06) 29px, rgba(38, 34, 27, 0.06) 30px
    ),
    var(--paper-warm);
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  padding: 22px 22px 18px;
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 30px; /* 罫線と行を合わせる */
}
.article-body blockquote p { margin: 0; }

/* ---------------------------------------------------------
   ツールページ共通
--------------------------------------------------------- */
.tool-hero {
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0px, transparent 31px,
      rgba(38, 34, 27, 0.055) 31px, rgba(38, 34, 27, 0.055) 32px
    ),
    var(--paper);
  border-bottom: 1px solid var(--rule-strong);
  padding: 48px 0 52px;
}
.tool-hero h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 6.4vw, 40px);
  font-weight: 700; line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.tool-hero .hero-note { margin-bottom: 16px; }
.tool-hero .hero-lead { max-width: 600px; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 0; }

.tool-body { padding: 44px 0 8px; }

.tool-card {
  background: var(--paper-warm);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  padding: 30px 24px;
  max-width: 720px;
  margin: 0 auto 28px;
}

/* --- フォーム --- */
.field { margin-bottom: 24px; }
.field > label {
  display: block;
  font-family: var(--serif);
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.req {
  font-family: var(--sans);
  font-size: 11px; font-weight: 700;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 2px;
  padding: 1px 7px;
  margin-left: 8px;
  vertical-align: 2px;
  letter-spacing: 0.1em;
}

.field input[type="text"], .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 13px 14px;
  min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #b5af9f; font-size: 13.5px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-wash);
}

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--sans);
  font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 9px 16px;
  min-height: 40px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.selected {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.form-error {
  color: var(--red);
  font-size: 13.5px; font-weight: 700;
  margin-bottom: 14px;
}
.form-error::before { content: "✗ "; }

.privacy-note {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 14px;
  letter-spacing: 0.03em;
}

/* --- 生成結果 --- */
.result-card { border-top: 3px solid var(--red); }
.result-title {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.result-meta { font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.08em; margin-bottom: 16px; }

.result-text {
  /* 生成骨子＝提出書類の紙 */
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0px, transparent 31px,
      rgba(38, 34, 27, 0.06) 31px, rgba(38, 34, 27, 0.06) 32px
    ),
    #fff;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  font-size: 15px;
  line-height: 32px; /* 罫線に行を乗せる */
  margin-bottom: 18px;
}

.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.result-actions .btn { flex: 1; min-width: 150px; padding: 12px 14px; font-size: 14px; }

.tool-tip {
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--red-wash);
  border-left: 3px solid var(--red);
  padding: 12px 16px;
}

.next-step-card {
  max-width: 720px;
  margin: 0 auto 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 30px 24px;
}
.next-step-card h3 {
  font-family: var(--serif);
  font-size: 19px; font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.next-step-card p { font-size: 14px; color: rgba(247, 244, 236, 0.82); margin-bottom: 22px; }
.next-step-card .btn-line { display: block; }

.tool-cross {
  max-width: 720px; margin: 0 auto 28px;
  font-size: 14px;
  padding: 16px 20px;
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
}

/* ---------------------------------------------------------
   診断
--------------------------------------------------------- */
.start-card { text-align: left; }
.type-seals { display: flex; gap: 10px; margin-bottom: 20px; }
.type-seals span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-family: var(--serif);
  font-size: 19px; font-weight: 700;
  border-radius: 4px;
  background: var(--paper);
}
.type-seals span:nth-child(odd) { transform: rotate(-3deg); }
.type-seals span:nth-child(even) { transform: rotate(2deg); }

.start-card h2 {
  font-family: var(--serif);
  font-size: 23px; font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.start-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 24px; }
.start-card .btn { display: block; }

.sd-progress {
  height: 5px;
  background: var(--rule);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}
.sd-progress-bar {
  height: 100%; width: 0;
  background: var(--red);
  transition: width 0.25s ease;
}
.sd-qnum {
  font-family: var(--serif);
  font-size: 13px; font-weight: 700;
  color: var(--red);
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.sd-question {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.sd-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.sd-option {
  font-family: var(--sans);
  font-size: 14.5px; font-weight: 500;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 15px 16px;
  min-height: 54px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.sd-option:hover { border-color: var(--red); background: var(--red-wash); }
.sd-option:active { background: rgba(199, 62, 44, 0.14); }

/* --- 診断結果 = 成績表・賞状の紙 --- */
.type-card {
  border: 1.5px solid var(--ink);
  outline: 1px solid var(--rule-strong);
  outline-offset: 5px;
  text-align: center;
  padding: 40px 24px 30px;
}
.type-label {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  margin-bottom: 22px;
}
.type-label::before, .type-label::after { content: "—"; color: var(--rule-strong); margin: 0 10px; }

.type-seal {
  /* 朱印 */
  display: inline-flex; align-items: center; justify-content: center;
  width: 84px; height: 84px;
  background: var(--red);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 46px; font-weight: 700;
  border-radius: 8px;
  transform: rotate(-4deg);
  box-shadow: 4px 4px 0 rgba(38, 34, 27, 0.12);
  margin-bottom: 20px;
}
.type-name {
  font-family: var(--serif);
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.type-catch {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 22px;
}
.type-summary {
  font-size: 14.5px;
  color: var(--ink-soft);
  text-align: left;
  margin-bottom: 26px;
}

.type-detail { text-align: left; border-top: 1px dashed var(--rule-strong); padding-top: 22px; }
.type-detail h3 {
  font-family: var(--serif);
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--red);
  margin: 20px 0 8px;
}
.type-detail h3:first-child { margin-top: 0; }
.type-detail ul { list-style: none; }
.type-detail li {
  font-size: 14.5px;
  padding-left: 20px;
  position: relative;
  margin-bottom: 4px;
}
.type-detail li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.type-detail p { font-size: 14px; color: var(--ink-soft); }
.type-industries { letter-spacing: 0.02em; }
.type-note { font-size: 12px !important; color: var(--ink-faint) !important; margin-top: 10px; }

/* シェア流入バナー（?type= で友だちの結果を見に来た訪問者だけに表示） */
.friend-banner {
  max-width: 720px;
  margin: 0 auto 20px;
  padding: 16px 22px;
  background: var(--red-wash);
  border: 1.5px solid var(--red);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.friend-banner-text {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--red-ink);
  margin: 0;
}
.friend-banner .btn { flex-shrink: 0; }

.share-row { border-top: 1px dashed var(--rule-strong); margin-top: 26px; padding-top: 22px; }
.share-label { font-size: 12.5px; letter-spacing: 0.14em; color: var(--ink-faint); margin-bottom: 12px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn-share {
  font-family: var(--sans);
  font-size: 13.5px; font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 10px 18px;
  min-height: 42px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-share:hover { border-color: var(--ink); color: var(--ink); }
.btn-share-x { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-share-x:hover { opacity: 0.85; color: var(--paper); }
.btn-share-line { background: var(--line-green); border-color: var(--line-green); color: #fff; }
.btn-share-line:hover { background: var(--line-green-dark); color: #fff; }

#sd-retry { display: block; margin: 22px auto 0; }

/* ---------------------------------------------------------
   FAQ
--------------------------------------------------------- */
.faq { border-top: 1px solid var(--rule); }
.faq-grid { max-width: 720px; }
.faq-item {
  border-bottom: 1px solid var(--rule-strong);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 15.5px; font-weight: 600;
  line-height: 1.7;
  padding: 18px 30px 18px 34px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "問";
  position: absolute; left: 0; top: 19px;
  font-size: 13px; color: var(--red);
  border: 1px solid var(--red);
  border-radius: 2px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
}
.faq-item summary::after {
  content: "＋";
  position: absolute; right: 4px; top: 18px;
  color: var(--ink-faint);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { content: "−"; color: var(--red); }
.faq-item p {
  font-size: 14px; color: var(--ink-soft);
  padding: 0 4px 20px 34px;
}

/* ---------------------------------------------------------
   アフィリエイト枠（逆求人）
--------------------------------------------------------- */
.aff-box {
  max-width: 720px;
  margin: 0 auto 28px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--paper-warm);
  padding: 28px 24px;
}
.aff-title {
  font-family: var(--serif);
  font-size: 19px; font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.aff-lead { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 10px; }
.aff-disclosure { font-size: 11.5px; color: var(--ink-faint); margin-bottom: 14px; }
.aff-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
.aff-card {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px 18px;
}
.aff-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.aff-name { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.aff-type {
  font-size: 11px; font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  letter-spacing: 0.06em;
}
.aff-strength { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 8px; }
.aff-good { font-size: 13px; margin-bottom: 14px; }
.aff-good strong { font-weight: 700; }
.aff-btn {
  display: block;
  text-align: center;
  font-size: 14px; font-weight: 700;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 11px 16px;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.aff-btn:hover { background: var(--ink); color: var(--paper); }

/* ---------------------------------------------------------
   フッター
--------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: rgba(247, 244, 236, 0.75);
  margin-top: 56px;
  padding: 48px 0 0;
}
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 20px 36px;
  display: flex; flex-direction: column; gap: 32px;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700;
  color: var(--paper);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.footer-tag {
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--paper);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 2px solid var(--red);
}
.footer-note { font-size: 12px; line-height: 1.9; color: rgba(247, 244, 236, 0.55); max-width: 480px; }
.footer-cols { display: flex; gap: 48px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(247, 244, 236, 0.75);
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.04em;
}
.footer-links a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.footer-copy {
  border-top: 1px solid rgba(247, 244, 236, 0.14);
  text-align: center;
  font-size: 11.5px;
  color: rgba(247, 244, 236, 0.45);
  padding: 18px 20px;
  letter-spacing: 0.08em;
}

/* ---------------------------------------------------------
   タブレット以上（768px〜）
--------------------------------------------------------- */
@media (min-width: 768px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .section-title { font-size: 28px; }

  .hero { padding: 96px 0 104px; }
  .hero-lead { font-size: 15.5px; }
  .hero-btns { flex-direction: row; }
  .hero-btns .btn { width: auto; flex: 0 0 auto; }
  .btn-lg { width: auto; }

  .tool-grid { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: repeat(3, 1fr); }

  .line-cta { padding: 72px 0; }
  .line-cta .btn-line { display: inline-block; }

  .tool-card, .next-step-card, .aff-box { padding: 36px 40px; }
  .type-card { padding: 48px 40px 36px; }
  .aff-grid { grid-template-columns: 1fr 1fr; }

  .next-step-card .btn-line { display: inline-block; }

  .footer-inner { flex-direction: row; justify-content: space-between; }
}

/* ---------------------------------------------------------
   デスクトップ（1080px〜）: ナビ展開
--------------------------------------------------------- */
@media (min-width: 1080px) {
  .hero-inner { position: relative; }
  .hero-side {
    display: block;
    position: absolute;
    right: 24px; top: 8px;
    writing-mode: vertical-rl;
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--red);
    border-right: 1px solid var(--rule-strong);
    padding-right: 22px;
    height: 320px;
  }

  .nav-inner { padding: 14px 20px; }
  .nav-burger, .mobile-menu { display: none !important; }
  .nav-menu { display: block; margin-left: auto; }
  .nav-links { display: flex; gap: 30px; list-style: none; }
  .nav-links a {
    color: var(--ink); text-decoration: none;
    font-size: 14px; font-weight: 600;
    letter-spacing: 0.05em;
    padding-bottom: 3px;
  }
  .nav-links a:hover, .nav-links a[aria-current="page"] {
    color: var(--red);
    border-bottom: 2px solid var(--red);
  }
  .btn-nav-cta {
    display: inline-block;
    background: var(--line-green);
    color: #fff;
    font-size: 13.5px; font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 6px;
    padding: 10px 18px;
    transition: background 0.15s ease;
  }
  .btn-nav-cta:hover { background: var(--line-green-dark); color: #fff; }
}

/* ---------------------------------------------------------
   動きを減らす設定への配慮
--------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
