/* ============================================
   AI検索太鼓判 サービスサイト共通CSS（デザイン版 v3）
   方針：Sansan/freee/SmartHR 的な、落ち着いた信頼感のあるBtoBトーン
   配色：白＋濃紺＋ブルーの2色構成（AIツールっぽさ・グラデーション廃止）
   書体：BIZ UDPGothic
   ターゲット：50代男性・中小企業の経営者
   ============================================ */

:root {
  --ink:#222222;
  --white:#ffffff;
  --bg-tint:#f5f7fa;
  --text-sub:#5b6470;

  --navy:#0f4c81;
  --navy-dark:#0b3a63;
  --navy-tint:#eaf1f8;

  --blue:#123a5e;
  --blue-dark:#0b283f;

  --gold:#b8933f;
  --logo-orange:#ef7d1a;

  --line:#e3e6ea;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .005em;
}

a { color: inherit; text-decoration: none; }

.wrap {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}
.wrap.narrow { width: min(760px, calc(100% - 48px)); }

/* ============ ヘッダー ============ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
}
.site-logo {
  display: block;
  height: 34px;
  width: auto;
  flex: 0 0 auto;
}
.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}
.logo-text .ai { color: var(--navy); }
.logo-text .rest { color: var(--logo-orange); }
.brand-tagline {
  margin-left: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: .03em;
  white-space: nowrap;
}
@media (max-width: 800px) {
  .brand-tagline { display: none; }
}
nav.gnav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}
nav.gnav a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
nav.gnav a:hover,
nav.gnav a.current {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* ============ セクション共通 ============ */
section {
  padding: 68px 0;
  border-bottom: none;
}
section.bg-white { background: var(--white); }
section.bg-cream { background: var(--bg-tint); }
section.bg-yellow { background: var(--bg-tint); }
section.bg-navy { background: var(--navy-dark); color: #fff; }
section.bg-beige { background: var(--bg-tint); }
section.bg-photo-mtg {
  background-image: linear-gradient(rgba(245,247,250,.92), rgba(245,247,250,.92)), url('images/photo-online-mtg.png');
  background-size: cover;
  background-position: center;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.45;
}
h2.section-title {
  margin: 0 0 26px;
  border-left: none;
  padding-left: 0;
  font-size: clamp(25px, 2.9vw, 32px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.45;
  position: relative;
  padding-bottom: 12px;
}
h2.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 0;
  background: var(--gold);
}
section.bg-navy h2.section-title::after { background: var(--gold); }
h3 { font-size: 20px; margin: 22px 0 8px; font-weight: 700; line-height: 1.5; }

p { margin: 0 0 1em; }
p.sub { color: var(--text-sub); font-size: 17px; }
section.bg-navy p.sub { color: #d7e2ee; }
p.note {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 14px;
  border-radius: 4px;
  background: var(--navy-tint);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
}

/* ============ プレースホルダー（写真差し替え前提） ============ */
.ph-box {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f2f3f5;
  color: #8a919c;
  text-align: center;
  padding: 56px 16px;
  font-size: 14px;
  font-weight: 700;
}

/* ============ 実写真（object-fit cover） ============ */
.photo-box {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  object-fit: cover;
}

/* ============ バッジ（1色に統一） ============ */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.badge {
  border: 1px solid var(--line);
  background: var(--bg-tint);
  border-radius: 4px;
  padding: 8px 16px;
  color: var(--text-sub);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
}
section.bg-navy .badge { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); color: #eaf1f8; }

/* ============ CTA / ボタン ============ */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .01em;
  transition: background .15s;
}
.btn.primary {
  background: var(--blue);
  color: #fff;
}
.btn.primary:hover { background: var(--blue-dark); }
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
}
.btn.secondary:hover { border-color: var(--navy); color: var(--navy); }

/* ============ テーブル ============ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
th, td {
  border: 1px solid var(--line);
  padding: 15px 17px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
th { background: var(--navy-tint); color: var(--navy); font-weight: 700; }
section.bg-navy table { color: var(--ink); }
.fit-table td:first-child { font-weight: 700; white-space: nowrap; }

/* ============ お悩みリスト（課題提起） ============ */
ul.problem-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.problem-list li {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 16px 0 16px 30px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.55;
}
ul.problem-list li:first-child { border-top: 1px solid var(--line); }
ul.problem-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 17px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}

/* ============ Before/After 比較（引用ボックス調） ============ */
.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 18px;
}
.chat-mock {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  background: #fff;
}
.chat-mock .label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--bg-tint);
  color: var(--text-sub);
  border: 1px solid var(--line);
}
.before-after-grid > div:nth-child(2) .label {
  background: var(--navy-tint);
  color: var(--navy);
  border-color: #cfe0ef;
}
.chat-mock .user-msg {
  color: var(--ink);
  padding: 0;
  margin-bottom: 12px;
  font-size: 14.5px;
  font-weight: 700;
}
.chat-mock .user-msg::before { content: "Q. "; color: var(--text-sub); font-weight: 700; }
.chat-mock .ai-msg {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.65;
}
.chat-mock .ai-msg .ai-tag {
  display: block;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--text-sub);
}
.chat-mock .ai-msg.before { color: #7a828c; background: var(--bg-tint); }
.chat-mock .ai-msg.before .ai-tag { color: #9aa1a9; }
.chat-mock .ai-msg.after { border-color: var(--navy); background: var(--navy-tint); }
.chat-mock .ai-msg.after .ai-tag { color: var(--navy); }
.chat-mock .ai-msg.after strong { color: var(--navy); }

/* ============ STEPフロー ============ */
.step-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-top: 8px;
}
.step-flow .step {
  flex: 1 1 160px;
  padding: 10px 4px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  border-top: 2px solid var(--navy);
}
.step-flow .arrow {
  flex: 0 0 auto;
  font-size: 18px;
  color: var(--text-sub);
  font-weight: 400;
}

/* ============ POINTリスト（カード化せず、区切り線のみのリスト） ============ */
.point-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 4px;
}
.point-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
section.bg-navy .point-card {
  border-bottom-color: rgba(255,255,255,.2);
}
.point-card .num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--navy);
  white-space: nowrap;
}
section.bg-navy .point-card .num { color: var(--gold); }
.point-card h3 { margin: 0 0 6px; font-size: 18px; grid-column: 2; }
.point-card p { margin: 0; color: var(--text-sub); font-size: 15px; line-height: 1.6; grid-column: 2; }
section.bg-navy .point-card p { color: #dbe5ef; }
@media (max-width: 600px) {
  .point-card { grid-template-columns: 1fr; gap: 4px; }
  .point-card h3, .point-card p { grid-column: 1; }
}

/* ============ FAQ（装飾を排し文字のみで構成／アコーディオン） ============ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.faq-item .q {
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq-item .q::-webkit-details-marker { display: none; }
.faq-item .q::before {
  content: "Q";
  color: var(--navy);
  font-weight: 700;
}
.faq-item .q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}
.faq-item[open] .q::after {
  content: "−";
}
.faq-item .a {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.6;
}
.faq-item .a::before {
  content: "A";
  color: var(--text-sub);
  font-weight: 700;
}

/* ============ スコアカード ============ */
.scorecard {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 20px 22px;
  font-size: 15px;
}
.scorecard .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--line);
  padding: 11px 0;
  gap: 12px;
}
.scorecard .row:last-child { border-bottom: none; }
.scorecard .rank {
  font-weight: 700;
  border-radius: 4px;
  background: var(--navy-tint);
  color: var(--navy);
  padding: 3px 12px;
  white-space: nowrap;
}

/* ============ フォーム ============ */
form.wf-form label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 6px;
}
form.wf-form .req::after {
  content: " ※必須";
  color: var(--blue);
  font-weight: 700;
  font-size: 12px;
}
form.wf-form input[type="text"],
form.wf-form input[type="email"],
form.wf-form textarea,
form.wf-form select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
}
form.wf-form input:focus,
form.wf-form textarea:focus {
  outline: none;
  border-color: var(--navy);
}
form.wf-form .helper {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 6px;
}
.radio-group label {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 20px;
}
.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  margin: 0;
}

/* ============ フッター ============ */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  font-size: 13px;
  color: var(--text-sub);
  text-align: center;
  background: var(--white);
}

/* ============ コラム一覧 ============ */
.column-list { display: grid; gap: 14px; }
.column-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 20px;
}
.column-card .date { font-size: 13px; color: var(--text-sub); font-weight: 700; }
.column-card .tag {
  display: inline-block;
  border-radius: 4px;
  background: var(--navy-tint);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 11px;
  margin-right: 8px;
}

/* ============ 注記ボックス ============ */
.note-box {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 15px 18px;
  font-size: 14px;
  background: var(--bg-tint);
  color: var(--text-sub);
  line-height: 1.6;
}

/* ============ ヒーロー（TOPファーストビュー） ============ */
.hero-section {
  position: relative;
  padding: 56px 0 60px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 48px;
}
.hero-section h1 em {
  color: var(--navy);
  font-style: normal;
}

/* ヒーロー右側：診断レポートのプレビュー（実物イメージ・フラット） */
.report-preview {
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: 4px;
  background: #fff;
  padding: 34px 32px;
  box-shadow: 0 12px 28px rgba(15,30,45,.06);
}
.report-preview-head {
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: .02em;
}
.report-preview-line {
  height: 10px;
  border-radius: 2px;
  background: var(--bg-tint);
  margin-bottom: 12px;
}
.report-preview .scorecard {
  margin-top: 20px;
  border: none;
  padding: 0;
  font-size: 16px;
}

/* ============ 実績・信頼セクション ============ */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.trust-strip .trust-item {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 18px 20px;
}
.trust-strip .trust-item .num {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.trust-strip .trust-item .desc {
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.5;
}

/* ============ 図解：時代の変化 ============ */
.era-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}
.era-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 24px 22px;
  text-align: center;
}
.era-card.era-after { border-color: var(--navy); }
.era-card h4 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.era-card p { margin: 0; font-size: 14.5px; color: var(--text-sub); line-height: 1.6; }
.era-arrow {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

/* ============ 図解：市場データ（対応状況の比率） ============ */
.stat-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
}
.stat-highlight .stat-box {
  flex: 1 1 220px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 22px 20px;
  text-align: center;
}
.stat-highlight .stat-box strong {
  display: block;
  color: var(--navy);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
}
.stat-highlight .stat-box span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-sub);
  font-weight: 700;
}

.ratio-chart {
  margin-top: 20px;
  padding: 22px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.ratio-chart .ratio-grid {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 4px;
  margin-bottom: 14px;
}
.ratio-chart .ratio-grid span {
  display: block;
  aspect-ratio: 1;
  border-radius: 2px;
  background: #e3e6ea;
}
.ratio-chart .ratio-grid span.on {
  background: var(--navy);
}
.ratio-chart .ratio-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
}
.ratio-chart .ratio-caption .dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: -1px;
}
.ratio-chart .ratio-caption .dot.on { background: var(--navy); }
.ratio-chart .ratio-caption .dot.off { background: #e3e6ea; }
.ratio-chart .ratio-note {
  margin-top: 12px;
  font-size: 12px;
  color: #8a919c;
}

/* ============ テキストリンク ============ */
.text-link {
  border-bottom: 2px solid currentColor;
  font-weight: 700;
  color: var(--navy);
}

/* ============ 写真＋テキストの2カラムグリッド ============ */
.flow-photo-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 800px) {
  .flow-photo-grid { grid-template-columns: 1fr; }
}

/* ============ sp-only / pc-only ============ */
.sp-only { display: none; }

/* ============ 中央寄せの見出し（クロージングCTA等） ============ */
.section-title.center {
  display: block;
  padding-bottom: 18px;
  margin-bottom: 30px;
}
.section-title.center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ============ 下層ページ共通：ページ見出し ============ */
.page-hero {
  padding: 44px 0 40px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin: 0; font-size: clamp(28px, 3.6vw, 40px); }
.page-hero p.sub { margin-top: 10px; }

/* ============ 下層ページ共通：本文リスト（装飾なしul） ============ */
.wrap ul:not([class]) {
  margin: 0;
  padding-left: 1.3em;
}
.wrap ul:not([class]) li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* ============ レスポンシブ ============ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .era-diagram { grid-template-columns: 1fr; }
  .era-arrow { transform: rotate(90deg); text-align: center; }
}
@media (max-width: 800px) {
  body { font-size: 16.5px; }
  .wrap { width: min(100% - 32px, 560px); }
  section { padding: 52px 0; }
  header.site-header { padding: 14px 0; }
  nav.gnav ul { gap: 4px 14px; font-size: 12.5px; }
  .point-grid, .before-after-grid, .stat-highlight { grid-template-columns: 1fr; }
  .hero-section { padding: 40px 0 48px; }
  .cta-group { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .sp-only { display: block; }
  .ratio-chart .ratio-grid { grid-template-columns: repeat(15, 1fr); }
}
