/* KIRAMEKI consulting ホームページの見た目（第3版）
   ・背景は白、色は深緑と無彩色（灰色）だけ。クリーム色など暖色寄りの淡い色は使わない
   ・方針：飾りを足さず、文字の大きさ・太さ・余白と細い罫線だけで組む（パンフレットの紙面のように）
   ・文字は Noto Sans JP の1種類
   ・色を変えるときは、この :root の中の値だけを直す */
:root {
  --green: #14402f;        /* 基調の深緑（見出し・ボタン・お問い合わせ欄） */
  --green-hover: #1b5a41;  /* ボタンを押したとき */
  --ink: #222222;          /* 本文の文字 */
  --ink-soft: #5f5f5f;     /* 補足の文字 */
  --line: #dcdcdc;         /* 罫線（無彩色） */
  --paper: #f4f4f4;        /* ボタンを押したときの薄い灰色（無彩色） */
  --white: #ffffff;
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

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

html { background: var(--white); color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink);
  background: var(--white);
  overflow-wrap: anywhere;
  letter-spacing: 0.03em;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.5; }
p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; }

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

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; }
.brand span { font-weight: 500; font-size: 15px; letter-spacing: 0.08em; color: var(--green); }
.nav a { display: none; text-decoration: none; font-size: 14px; }
.nav .nav-cta { display: inline; white-space: nowrap; color: var(--green); font-weight: 700; border-bottom: 1px solid var(--green); padding-bottom: 2px; }

/* ---------- ボタン・リンク ---------- */
.button {
  display: inline-block; padding: 14px 36px;
  background: var(--green); color: var(--white);
  font-weight: 500; text-decoration: none; letter-spacing: 0.1em;
  border-radius: 2px; transition: background 0.2s;
}
.button:hover, .button:focus-visible { background: var(--green-hover); }
.button-light { background: var(--white); color: var(--green); }
.button-light:hover, .button-light:focus-visible { background: var(--paper); }
.text-link { color: var(--green); font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- 最初の画面（名刺と同じ並び：ロゴ・屋号・資格・代表名 → キャッチコピー） ---------- */
.hero { padding: 56px 0 56px; }
.hero-card { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.hero-brand { display: flex; align-items: center; gap: 16px; }
.hero-brand img { width: 56px; flex: none; }
.hero h1 { font-size: clamp(24px, 7.4vw, 30px); font-weight: 500; line-height: 1.3; letter-spacing: 0.06em; color: var(--green); }
.hero-credentials { margin-top: 20px; font-size: 13px; color: var(--ink-soft); letter-spacing: 0.1em; }
.hero-person { margin-top: 4px; font-size: 16px; font-weight: 500; letter-spacing: 0.12em; }
.hero-catch { margin-top: 28px; font-size: clamp(18px, 5.4vw, 21px); font-weight: 700; line-height: 1.6; letter-spacing: 0.04em; font-feature-settings: "palt" 1; }
.hero-catch span { display: inline-block; }
.hero-lead { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }

/* ---------- 信頼の根拠 ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-list div { padding: 18px 0; }
.trust-list div + div { border-top: 1px solid var(--line); }
.trust-list dt { font-weight: 700; color: var(--green); }
.trust-list dd { font-size: 14px; color: var(--ink-soft); }

/* ---------- セクション共通 ---------- */
.section { padding: 72px 0; }
.section-compact { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-size: 14px; font-weight: 700; letter-spacing: 0.16em; color: var(--green); padding-bottom: 10px; border-bottom: 2px solid var(--green); display: inline-block; }
.split-body { margin-top: 28px; }
.section-lead { color: var(--ink-soft); }

/* ---------- サービス ---------- */
.services { margin-top: 40px; border-top: 1px solid var(--ink); }
.service { padding: 28px 0; border-bottom: 1px solid var(--line); }
.service h3 { font-size: 18px; color: var(--green); }
.service > p { margin-top: 8px; }
.service ul { margin-top: 12px; list-style: none; font-size: 14px; color: var(--ink-soft); line-height: 1.85; }
.service li { position: relative; padding-left: 1.1em; }
.service li::before { content: "・"; position: absolute; left: -0.2em; }
.services-more { margin-top: 28px; font-weight: 500; }

/* ---------- 支援の流れ ---------- */
.flow { list-style: none; counter-reset: step; border-top: 1px solid var(--ink); }
.flow li { counter-increment: step; display: grid; grid-template-columns: 2.6em 1fr; column-gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.flow li::before { content: counter(step) "."; grid-row: span 2; font-weight: 700; color: var(--green); font-size: 18px; line-height: 1.6; }
.flow h3 { font-size: 17px; }
.flow p { color: var(--ink-soft); font-size: 15px; }

/* ---------- 代表紹介 ---------- */
.profile { display: flex; flex-direction: column; gap: 24px; }
.profile-photo { width: 240px; border: 1px solid var(--line); }
.profile-name { font-size: 26px; font-weight: 700; letter-spacing: 0.12em; line-height: 1.4; }
.profile-credentials { margin-top: 12px; font-weight: 500; color: var(--green); }
.profile-career { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); list-style: none; font-size: 15px; }
.message { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.message h3 { font-size: 20px; line-height: 1.7; color: var(--green); }
.message p { margin-top: 18px; }
.message-sign { text-align: right; font-size: 14px; color: var(--ink-soft); }

/* ---------- ブログ（note） ---------- */
.blog-list { list-style: none; border-top: 1px solid var(--ink); }
.blog-list li { border-bottom: 1px solid var(--line); }
.blog-list a { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 20px 0; text-decoration: none; }
.blog-list a:hover .blog-title { color: var(--green); text-decoration: underline; }
.blog-date { font-size: 14px; font-weight: 700; color: var(--green); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.blog-title { line-height: 1.8; }
.blog-more { margin-top: 32px; }

/* ---------- 事務所概要 ---------- */
.about { border-top: 1px solid var(--ink); }
.about div { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.about dt { font-size: 13px; color: var(--ink-soft); }

/* ---------- お問い合わせ ---------- */
.contact { background: var(--green); color: var(--white); }
.contact h2 { color: var(--white); border-bottom-color: var(--white); }
.contact p + p { margin-top: 16px; }
.contact-note a { color: inherit; }
.contact .contact-action { margin-top: 32px; }
.contact .contact-note { margin-top: 12px; font-size: 13px; opacity: 0.8; }

/* ---------- フッター ---------- */
.site-footer { padding: 32px 0; font-size: 13px; color: var(--ink-soft); }
.footer-links { margin-top: 4px; }
.footer-links a { color: inherit; }
.footer-copy { margin-top: 4px; }

/* ---------- プライバシーポリシー（privacy.html） ---------- */
.doc { padding: 56px 0 72px; }
.doc .container { max-width: 800px; }
.doc h1 { font-size: 24px; color: var(--green); letter-spacing: 0.06em; padding-bottom: 16px; border-bottom: 2px solid var(--green); }
.doc h2 { margin-top: 40px; font-size: 17px; color: var(--green); }
.doc p, .doc ul { margin-top: 12px; }
.doc ul { padding-left: 1.4em; }
.doc-date { margin-top: 48px; text-align: right; font-size: 14px; color: var(--ink-soft); }
.doc-back { margin-top: 40px; }

/* ==================== PC（幅 768px 以上） ==================== */
@media (min-width: 768px) {
  .container { padding: 0 48px; }
  .header-inner { height: 72px; }
  .brand img { width: 36px; }
  .brand span { font-size: 17px; }
  .nav { display: flex; align-items: center; gap: 32px; }
  .nav a { display: inline; }
  .nav a:not(.nav-cta):hover { color: var(--green); }

  .hero { padding: 104px 0 96px; }
  .hero-card { max-width: 760px; padding-bottom: 40px; }
  .hero h1 { white-space: nowrap; }
  .hero-brand { gap: 24px; }
  .hero-brand img { width: 84px; }
  .hero h1 { font-size: min(46px, 5.2vw); }
  .hero-credentials { margin-top: 28px; font-size: 14px; }
  .hero-person { font-size: 18px; }
  .hero-catch { margin-top: 40px; font-size: 26px; }
  .hero-lead { font-size: 16px; }

  .trust-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
  .trust-list div { padding: 28px 28px 28px 0; }
  .trust-list div + div { border-top: none; border-left: 1px solid var(--line); padding-left: 28px; }

  .section { padding: 112px 0; }
  .split { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 56px; }
  .split-body { margin-top: 0; }
  .section-compact { padding: 72px 0; }

  .services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }

  /* 支援の流れは横一列の4段階にして、他の欄と形を変える */
  .flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; border-top: none; }
  .flow li { display: block; padding: 16px 0 0; border-bottom: none; border-top: 2px solid var(--green); }
  .flow li::before { display: block; }
  .flow p { margin-top: 6px; font-size: 14px; }

  .profile { flex-direction: row; align-items: flex-start; gap: 40px; }
  .profile-photo { flex: none; width: 300px; }

  .blog-list a { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 24px 0; }
  .blog-date { font-size: 15px; }

  .about div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding: 12px 0; }
  .about dt { font-size: 14px; }

  .footer-inner { display: flex; justify-content: space-between; }
  .footer-links, .footer-copy { margin-top: 0; }
  .doc { padding: 80px 0 112px; }
  .doc h1 { font-size: 30px; }
}

@media (min-width: 1080px) {
  .hero h1 { font-size: 52px; }
}
