/* ==========================================================
   KaihoAI 公式サイト スタイル
   色や文字サイズは :root の中でまとめて変更できます
   ========================================================== */

:root {
  /* ブランドカラー：すべてこの1色の濃淡でまとめる */
  --brand: #0e20e9;
  --brand-hover: #0a17b8;   /* ボタンにマウスを乗せたとき */
  --brand-dark: #0a1450;    /* 見出し・フッター */
  --brand-soft: #eceefe;    /* うすい背景 */
  --text: #1c1f2e;
  --text-sub: #555a6e;
  --text-on-dark: #d9dcf2;
  --text-on-dark-sub: #a3a8cf;
  --bg: #ffffff;
  --bg-tinted: #f4f5fb;
  --border: #e1e3ef;
  --header-h: 68px;
  --radius: 12px;
  /* 英数字は Futura（入っていない端末では似た書体の Jost）、日本語は Noto Sans JP */
  --font: "Futura", "Futura PT", "Jost", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px); /* 固定ヘッダーに見出しが隠れないように */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;              /* 50〜60代の方にも読みやすい大きめの文字 */
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  padding-top: var(--header-h);
}

img { max-width: 100%; height: auto; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.45; margin: 0; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 820px; }

.sp-only { display: none; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-large { min-height: 60px; padding: 14px 36px; font-size: 18px; }
.btn:focus-visible,
a:focus-visible,
summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* ---------- ヘッダー（固定） ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  backdrop-filter: blur(6px);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: .02em;
}
.header-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.header-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.header-nav a:hover { color: var(--brand); }

/* ---------- ファーストビュー ---------- */
.hero {
  background: linear-gradient(160deg, var(--brand-soft) 0%, #ffffff 100%);
  padding: 140px 0 144px;
}
.hero-eyebrow {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .12em;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--brand-dark);
  letter-spacing: .03em;
  margin-bottom: 32px;
}
.hero-lead {
  font-size: 18px;
  color: var(--text-sub);
  max-width: 760px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-note { margin-top: 20px; font-size: 15px; color: var(--text-sub); }

/* ---------- 共通セクション ---------- */
.section { padding: 96px 0; }
.section-tinted { background: var(--bg-tinted); }
.section-label {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.section-title {   /* そのセクションで伝えたい「一文」 */
  font-size: 40px;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--brand-dark);
  text-align: center;
  margin-bottom: 24px;
}
.section-lead {
  text-align: center;
  color: var(--text-sub);
  font-size: 17px;
  max-width: 760px;
  margin: 0 auto 48px;
}

/* ---------- 2. お悩み ---------- */
.worry-list {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.worry-list li {
  background: var(--bg-tinted);
  border-radius: var(--radius);
  padding: 28px 28px 30px;
}
.worry-list li::before {   /* チェックマーク */
  content: "";
  display: block;
  width: 32px; height: 32px;
  border-radius: 50%;
  margin-bottom: 16px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230e20e9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.worry-list h3 { font-size: 20px; color: var(--brand-dark); margin-bottom: 8px; }
.worry-list p { font-size: 16px; color: var(--text-sub); }
.worry-closing {
  margin-top: 40px;
  text-align: center;
  color: var(--text-sub);
}

/* ---------- 3. KaihoAIとは ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
}
.feature h3 { font-size: 21px; color: var(--brand-dark); margin-bottom: 12px; }
.feature p { font-size: 16px; color: var(--text-sub); }

/* ---------- 4. 進め方 ---------- */
.step-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 820px;
  display: grid;
  grid-auto-rows: 1fr;   /* どの段も同じ高さにして、番号の間隔をそろえる */
  gap: 32px;
}
.step {
  display: flex;
  gap: 24px;
}
.step-num {
  flex: 0 0 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 21px; color: var(--brand-dark); margin: 10px 0 6px; }
.step p { color: var(--text-sub); font-size: 17px; }

/* ---------- 5. 提供サービス ---------- */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.flow-item {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
}
.flow-item:not(:last-child)::after {  /* 次の工程への矢印 */
  content: "";
  position: absolute;
  top: 50%;
  right: -22px;
  width: 16px; height: 16px;
  border-top: 4px solid var(--brand);
  border-right: 4px solid var(--brand);
  transform: translateY(-50%) rotate(45deg);
}
.flow-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.flow-item h3 { font-size: 20px; color: var(--brand-dark); margin-bottom: 12px; }
.flow-item p { font-size: 15px; color: var(--text-sub); line-height: 1.75; }
.service-note { text-align: center; margin-top: 40px; color: var(--text-sub); }

/* ---------- 6. よくある質問 ---------- */
.faq-list { margin-top: 40px; display: grid; gap: 12px; }
.faq {
  background: var(--bg-tinted);
  border-radius: var(--radius);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 20px 56px 20px 60px;
  font-weight: 700;
  color: var(--brand-dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q";
  position: absolute;
  left: 24px; top: 18px;
  font-size: 20px;
  color: var(--brand);
}
.faq summary::after {  /* 開閉の＋ / − */
  content: "+";
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 400;
  color: var(--brand);
}
.faq[open] summary::after { content: "−"; }
.faq p {
  position: relative;
  padding: 0 24px 22px 60px;
  color: var(--text-sub);
}
.faq p::before {
  content: "A";
  position: absolute;
  left: 24px; top: 0;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  color: var(--brand);
}

/* ---------- 7. お問い合わせ ---------- */
.form-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: block; margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.form-grid .field { margin: 0; }
.field-full { grid-column: 1 / -1; }
.form-grid + .field { margin-top: 28px; }
.field-label { display: block; font-size: 16px; font-weight: 700; color: var(--brand-dark); margin-bottom: 8px; padding: 0; }
.field-label em {
  font-style: normal;
  font-size: 12px;
  color: #fff;
  background: var(--brand);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 8px;
  vertical-align: 2px;
}
.field-label small { font-size: 13px; font-weight: 400; color: var(--text-sub); margin-left: 6px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: var(--bg-tinted);
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 12px 14px;
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: inline-block;
  font-size: 15px;
  background: var(--bg-tinted);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 8px 16px;
}
.choice input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 700; }
.choice input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 20px; font-size: 16px; }
.agree input { width: 20px; height: 20px; accent-color: var(--brand); }
.cf-turnstile { display: flex; justify-content: center; margin-bottom: 16px; }
.form-error {
  white-space: pre-line;
  color: #b42318;
  background: #fef3f2;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 15px;
}
.form-submit { display: flex; width: 100%; max-width: 360px; margin: 0 auto; }
.form-submit:disabled { opacity: .6; cursor: wait; }
.form-done { text-align: center; padding: 24px 0; }
.form-done:focus { outline: none; }
.form-done-title { font-size: 22px; font-weight: 700; color: var(--brand-dark); margin-bottom: 8px; }
.contact-mail { text-align: center; margin-top: 24px; }

/* ---------- 8. フッター ---------- */
.site-footer {
  background: var(--brand-dark);
  color: var(--text-on-dark);
  padding: 56px 0 24px;
  font-size: 15px;
}
.site-footer a { color: #fff; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-logo { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-info { margin: 0; display: grid; gap: 4px; }
.footer-info div { display: flex; gap: 16px; }
.footer-info dt { width: 4em; color: var(--text-on-dark-sub); }
.footer-info dd { margin: 0; }
.copyright {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-on-dark-sub);
}

/* ---------- プライバシーポリシー（privacy.html） ---------- */
.policy { padding: 72px 0 96px; }
.policy h1 { font-size: 32px; color: var(--brand-dark); margin-bottom: 32px; }
.policy h2 {
  font-size: 21px;
  color: var(--brand-dark);
  margin: 40px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--brand);
}
.policy p, .policy li { font-size: 17px; }
.policy ul { padding-left: 1.4em; margin: 8px 0 0; }
.policy-date { margin-top: 48px; color: var(--text-sub); text-align: right; }
.back-link { display: inline-block; margin-top: 32px; }

/* ---------- お知らせ（news） ---------- */
.breadcrumb { font-size: 14px; color: var(--text-sub); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-sub); }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-sub); margin-bottom: 12px; }
.article-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 2px 12px;
}
.article h1 { font-size: 30px; line-height: 1.5; }
.article-lead { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.policy ol { padding-left: 1.4em; margin: 8px 0 0; }
.policy ol li { margin-bottom: 8px; }
.policy .news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.news-list a {
  display: block;
  background: var(--bg-tinted);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  color: var(--brand-dark);
}
.news-list a:hover { background: var(--brand-soft); }
.news-list .article-meta { margin-bottom: 6px; }
.news-title { display: block; font-size: 18px; font-weight: 700; line-height: 1.6; }
.footer-links { display: flex; gap: 24px; }

/* ==========================================================
   タブレット
   ========================================================== */
@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr; gap: 32px; max-width: 640px; margin: 0 auto; }
  .flow-item:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }
  .header-nav { display: none; }
  .btn-header { margin-left: auto; }
}

/* ==========================================================
   スマホ
   ========================================================== */
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  body { font-size: 17px; }
  .container { padding: 0 16px; }
  .sp-only { display: inline; }
  .pc-only { display: none; }

  .logo { font-size: 19px; }
  .logo img { width: 28px; height: 28px; }
  .btn-header { min-height: 42px; padding: 8px 16px; font-size: 14px; }

  .hero { padding: 72px 0 80px; }
  .hero-eyebrow { font-size: 14px; }
  .hero-title { font-size: min(34px, 8.4vw); }  /* 画面幅に合わせて縮め、見出しを2行に収める */
  .hero-lead { font-size: 16px; margin-bottom: 32px; }
  .hero-actions .btn { width: 100%; }

  .section { padding: 64px 0; }
  .section-label { font-size: 13px; }
  .section-title { font-size: 27px; }
  .section-lead { text-align: left; margin-bottom: 36px; }

  .worry-list { grid-template-columns: 1fr; margin-top: 32px; }
  .worry-list li { padding: 22px 20px 24px; }
  .worry-closing { text-align: left; }

  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature { padding: 24px 20px; }

  .step { gap: 16px; }
  .step-num { flex-basis: 44px; height: 44px; font-size: 18px; }
  .step h3 { font-size: 19px; margin-top: 6px; }
  .step p { font-size: 16px; }


  .faq summary { padding: 16px 48px 16px 48px; }
  .faq summary::before { left: 16px; top: 14px; }
  .faq summary::after { right: 16px; }
  .faq p { padding: 0 16px 18px 48px; }
  .faq p::before { left: 16px; }

  .form-wrap { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .policy h1 { font-size: 26px; }
  .article h1 { font-size: 23px; }
  .news-list a { padding: 16px 18px; }
}
