/* くがに会計事務所（架空）制作イメージ ― ちゅらしるべ */
/* 配色：紺（#1b3a5c）と金（#b08d3c）。飾りの帯は沖縄のミンサー織の「五つと四つ」の模様から */

:root {
  --navy: #1b3a5c;
  --navy-dark: #10263d;
  --navy-soft: #e8eef5;
  --gold: #b08d3c;
  --gold-text: #7f6220; /* 白地で文字に使う濃い金（コントラスト確保） */
  --gold-light: #e2c982;
  --tint: #f5f7fa;
  --text: #2a2f36;
  --text-sub: #4b5563;
  --line: #d5dbe6;
  --notice: #efe6b0;
  --bg: #ffffff;
  --font-serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-sans: "Noto Sans JP", "Yu Gothic", "Hiragino Sans", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  /* スマホ下部の固定ボタンぶんの余白 */
  padding-bottom: 64px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.5; margin: 0; color: var(--navy-dark); }

p { margin: 0 0 1em; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }

/* ---------- 見本の表示 ---------- */
.demo-banner {
  background: var(--notice);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.5;
}

.demo-banner a { color: var(--navy-dark); }

.tag-sample {
  display: inline-block;
  margin: 0 6px;
  padding: 0 8px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--text);
  background: var(--notice);
  border-radius: 3px;
  vertical-align: middle;
}

/* ---------- ミンサー織の模様（五つと四つの四角）の帯 ---------- */
.minsa {
  height: 14px;
  background:
    repeating-linear-gradient(90deg,
      var(--gold) 0 10px, transparent 10px 14px,
      var(--gold) 14px 24px, transparent 24px 28px,
      var(--gold) 28px 38px, transparent 38px 42px,
      var(--gold) 42px 52px, transparent 52px 56px,
      var(--gold) 56px 66px, transparent 66px 90px,
      var(--gold) 90px 100px, transparent 100px 104px,
      var(--gold) 104px 114px, transparent 114px 118px,
      var(--gold) 118px 128px, transparent 128px 132px,
      var(--gold) 132px 142px, transparent 142px 166px);
  background-size: 166px 10px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.55;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-dark); }

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gold-light);
  background: var(--navy);
  border-radius: 2px;
}

.logo-text { font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.logo-text small { display: block; font-family: var(--font-sans); font-weight: 400; font-size: 0.6875rem; color: var(--text-sub); }

.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-dark);
  background: var(--bg);
  border: 1px solid var(--navy);
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
}

.global-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); }
.global-nav.is-open { display: block; }
.global-nav a { display: block; white-space: nowrap; padding: 14px 20px; color: var(--text); text-decoration: none; border-top: 1px solid var(--line); font-weight: 700; }
.global-nav a:hover { background: var(--tint); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  min-height: 52px;
  padding: 13px 28px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  line-height: 1.5;
  font-family: inherit;
  cursor: pointer;
}

.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-light); }

.btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-line:hover { background: rgba(255, 255, 255, 0.1); }

.btn:focus-visible, a:focus-visible, .nav-toggle:focus-visible,
input:focus, select:focus, textarea:focus, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- 写真（イメージ写真の表記つき） ---------- */
.photo { position: relative; margin: 0; overflow: hidden; background: var(--tint); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.photo figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #fff;
  background: rgba(16, 38, 61, 0.8);
  border-radius: 2px;
}

/* ---------- ファーストビュー ---------- */
.hero { position: relative; color: #fff; background: var(--navy-dark); padding: 48px 0 0; overflow: hidden; }

/* 右上にうっすら金の円（装飾） */
.hero::before {
  content: "";
  position: absolute;
  right: -160px;
  top: -160px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(226, 201, 130, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(226, 201, 130, 0.05), 0 0 0 80px rgba(226, 201, 130, 0.03);
}

.hero-inner { position: relative; display: grid; gap: 36px; padding-bottom: 48px; }

.hero-eyebrow { display: inline-block; margin-bottom: 14px; padding-bottom: 4px; font-size: 0.875rem; font-weight: 700; color: var(--gold-light); border-bottom: 1px solid var(--gold); }
.hero h1 { color: #fff; font-size: 2.125rem; line-height: 1.45; margin-bottom: 20px; letter-spacing: 0.04em; }
.hero-lead { color: #e3e9f1; margin-bottom: 28px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }

/* 月次レポートの見本カード */
.report { margin: 0; padding: 20px; color: var(--text); background: var(--bg); border-top: 4px solid var(--gold); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }
.report-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.report-title { margin: 0; font-family: var(--font-serif); font-weight: 700; color: var(--navy-dark); }

.report-kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.report-kpi div { padding: 10px 12px; background: var(--tint); }
.report-kpi dt { font-size: 0.8125rem; color: var(--text-sub); }
.report-kpi dd { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: 1.75rem; line-height: 1.3; color: var(--navy-dark); }
.report-kpi dd small { font-size: 0.875rem; margin-left: 2px; }
.report-kpi dd.up, .report-kpi dd.down { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700; }
.report-kpi dd.up { color: #1f6b45; }
.report-kpi dd.down { color: #9a3b2e; }

.report-chart { display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 8px; height: 120px; padding: 0 4px 22px; border-bottom: 1px solid var(--line); }
.report-chart span { position: relative; height: var(--h); background: var(--navy-soft); border-top: 2px solid #9fb2c9; }
.report-chart span.is-now { background: var(--navy); border-top-color: var(--gold); }
.report-chart i { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); font-style: normal; font-size: 0.75rem; color: var(--text-sub); white-space: nowrap; }

.report-comment { margin-top: 14px; padding: 12px 14px; font-size: 0.9375rem; line-height: 1.75; background: #fbf7ec; border-left: 3px solid var(--gold); }
.report-comment-who { display: block; font-size: 0.75rem; font-weight: 700; color: var(--gold-text); }

.hero .minsa { position: relative; }

/* ---------- 数字の帯 ---------- */
.facts { padding: 28px 0 20px; border-bottom: 1px solid var(--line); }
.facts-list { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.facts-list li { display: flex; flex-direction: column; padding: 0 4px; }
.facts-list li + li { border-left: 1px solid var(--line); }
.fact-num { font-family: var(--font-serif); font-weight: 700; font-size: 1.75rem; line-height: 1.3; color: var(--navy-dark); }
.fact-num small { font-size: 0.75rem; margin-left: 2px; }
.fact-label { font-size: 0.8125rem; color: var(--text-sub); line-height: 1.5; }
.facts-note { margin: 14px 0 0; text-align: center; font-size: 0.75rem; color: var(--text-sub); }

/* ---------- セクション共通 ---------- */
.section { padding: 64px 0; }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy-dark); color: #fff; }

.section-head { margin-bottom: 32px; }
.en { display: block; margin-bottom: 4px; font-family: var(--font-serif); font-size: 0.8125rem; letter-spacing: 0.24em; color: var(--gold-text); }
.section-head h2 { font-size: 1.5rem; }
.section-head p { margin: 10px 0 0; color: var(--text-sub); }

.section-navy .en { color: var(--gold-light); }
.section-navy .section-head h2 { color: #fff; }
.section-navy .section-head p { color: #d5dde8; }

.note { margin-top: 16px; font-size: 0.875rem; color: var(--text-sub); }

/* ---------- お悩み ---------- */
.worries { display: grid; gap: 10px; }
.worries li { position: relative; padding: 14px 16px 14px 44px; font-weight: 700; background: var(--tint); border-left: 3px solid var(--navy); }
.worries li::before { content: "？"; position: absolute; left: 14px; top: 13px; font-family: var(--font-serif); color: var(--gold-text); }
.worries-answer { margin: 28px 0 0; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--navy-dark); }
.worries-answer strong { background: linear-gradient(transparent 62%, rgba(226, 201, 130, 0.6) 62%); }

/* ---------- 毎月の訪問 ---------- */
.monthly { display: grid; gap: 28px; align-items: start; }
.monthly-photo { aspect-ratio: 3 / 2; }

.timeline { position: relative; }
.timeline li { position: relative; padding: 0 0 26px 30px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 12px; height: 12px; background: var(--gold); border-radius: 50%; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.timeline-when { font-size: 0.8125rem; font-weight: 700; color: var(--gold-text); }
.timeline h3 { font-size: 1.25rem; margin: 2px 0 6px; }
.timeline p { margin: 0; color: var(--text-sub); }

/* ---------- サービス ---------- */
.services { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { padding: 22px 20px; background: var(--bg); }
.service h3 { font-size: 1.125rem; margin-bottom: 6px; }
.service h3::before { content: ""; display: inline-block; width: 16px; height: 2px; margin: 0 8px 5px 0; vertical-align: middle; background: var(--gold); }
.service p { margin: 0; font-size: 0.9375rem; color: var(--text-sub); }

.industries { margin-top: 28px; }
.industries-title { margin-bottom: 8px; font-weight: 700; color: var(--navy-dark); }
.industries ul { display: flex; flex-wrap: wrap; gap: 8px; }
.industries li { padding: 4px 14px; font-size: 0.9375rem; border: 1px solid var(--navy); border-radius: 999px; }

/* ---------- 料金 ---------- */
.prices { display: grid; gap: 16px; }

.price { position: relative; padding: 26px 22px 22px; color: var(--text); background: var(--bg); border-top: 4px solid var(--navy-soft); }
.price.is-featured { border-top-color: var(--gold); }
.price-badge { position: absolute; top: -14px; left: 20px; padding: 2px 12px; font-size: 0.75rem; font-weight: 700; color: var(--navy-dark); background: var(--gold-light); }
.price h3 { font-size: 1.25rem; }
.price-amount { margin: 6px 0 14px; padding-bottom: 14px; font-weight: 700; color: var(--navy-dark); border-bottom: 1px solid var(--line); }
.price-amount strong { font-family: var(--font-serif); font-size: 2.25rem; margin: 0 2px; }
.price ul li { position: relative; padding: 4px 0 4px 22px; font-size: 0.9375rem; }
.price ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 10px; height: 6px; border: solid var(--gold); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.price-extra { margin: 12px 0 0; padding: 8px 12px; font-size: 0.875rem; background: var(--tint); }
.price-note { margin: 24px 0 0; color: #d5dde8; font-size: 0.9375rem; }

/* ---------- 代表あいさつ ---------- */
.greeting { display: grid; gap: 28px; align-items: start; }

.greeting-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  padding: 20px;
  text-align: center;
  color: var(--navy-dark);
  background: var(--tint);
  border: 1px solid var(--line);
  outline: 1px solid var(--gold);
  outline-offset: -10px;
}

.greeting-mark span:first-child { font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem; }
.greeting-mark-note { font-size: 0.8125rem; color: var(--text-sub); line-height: 1.6; }

.greeting-body h2 { font-size: 1.5rem; margin-bottom: 18px; }
.greeting-sign { margin-top: 20px; font-family: var(--font-serif); font-weight: 700; text-align: right; color: var(--navy-dark); }

/* ---------- お客さまの声 ---------- */
.voices { display: grid; gap: 16px; }
.voice { position: relative; margin: 0; padding: 28px 22px 20px; background: var(--bg); border: 1px solid var(--line); }
.voice::before { content: "“"; position: absolute; left: 16px; top: -6px; font-family: var(--font-serif); font-size: 3rem; line-height: 1; color: var(--gold); }
.voice p { margin: 0 0 10px; }
.voice .voice-who { margin: 0; font-size: 0.875rem; color: var(--text-sub); }

/* ---------- ご相談の流れ ---------- */
.flow { display: grid; gap: 10px; counter-reset: f; }
.flow li { position: relative; padding: 16px 16px 16px 64px; border: 1px solid var(--line); counter-increment: f; }
.flow li::before { content: counter(f); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 700; color: var(--gold-light); background: var(--navy); }
.flow h3 { font-size: 1.125rem; }
.flow p { margin: 0; font-size: 0.9375rem; color: var(--text-sub); }

/* ---------- よくある質問 ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); background: var(--bg); }
.faq-item summary { position: relative; padding: 16px 44px 16px 44px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; position: absolute; left: 16px; top: 14px; font-family: var(--font-serif); font-weight: 700; font-size: 1.125rem; color: var(--gold-text); }
.faq-item summary::after { content: "＋"; position: absolute; right: 16px; top: 15px; color: var(--navy); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 16px 16px 44px; }
.faq-answer p { margin: 0; }

/* ---------- 事務所案内 ---------- */
.office { display: grid; gap: 28px; align-items: start; }
.office-photo { aspect-ratio: 3 / 2; }
.office .section-head { margin-bottom: 18px; }
.office-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.office-table th, .office-table td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.office-table th { width: 6.5em; font-weight: 700; color: var(--navy-dark); }

.news { margin-top: 40px; padding: 20px; background: var(--tint); }
.news-title { font-size: 1.125rem; margin-bottom: 6px; }
.news-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 0.9375rem; }
.news-list li:last-child { border-bottom: 0; }
.news-list time { display: block; font-size: 0.8125rem; color: var(--text-sub); }
.news-list .tag-sample { margin-left: 0; }

/* ---------- 無料相談 ---------- */
.contact { background: var(--navy-dark); color: #fff; padding: 0 0 64px; }
.contact .minsa { margin-bottom: 56px; }
.contact .section-head h2 { color: #fff; }
.contact .en { color: var(--gold-light); }
.contact .section-head p { color: #d5dde8; }

.contact-grid { display: grid; gap: 20px; align-items: start; }
.contact-card { padding: 24px 20px; color: var(--text); background: var(--bg); }
.contact-card h3 { font-size: 1.125rem; margin-bottom: 10px; }
.tel { margin: 0; font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--navy-dark); letter-spacing: 0.02em; }
.contact-note { margin: 6px 0 0; font-size: 0.875rem; color: var(--text-sub); }

.form-2col { display: grid; gap: 0 12px; }
.form-row { margin-bottom: 14px; }
.form-row label, .form-label { display: block; font-weight: 700; margin-bottom: 4px; }
.form-row .req { margin-left: 6px; padding: 0 6px; font-size: 0.75rem; color: #fff; background: var(--navy); border-radius: 2px; }

.form-row input[type="text"], .form-row input[type="tel"], .form-row input[type="email"],
.form-row select, .form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #8a93a1;
  border-radius: 2px;
}

.form-row textarea { min-height: 120px; }

.radios { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.radios label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0; font-weight: 400; cursor: pointer; }
.radios input { width: 18px; height: 18px; accent-color: var(--navy); }

.form-message { margin: 12px 0 0; padding: 12px; font-size: 0.9375rem; background: var(--tint); }

/* ---------- フッター ---------- */
.site-footer { background: #0a1a2b; color: #cfd8e3; padding: 28px 0; font-size: 0.875rem; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #fff; }
.footer-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.125rem; color: #fff; }

/* ---------- スマホ下部の固定ボタン ---------- */
.fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
}

.fixed-cta a { display: flex; align-items: center; justify-content: center; min-height: 56px; font-weight: 700; text-decoration: none; color: var(--navy-dark); }
.fixed-cta a + a { background: var(--navy); color: #fff; }

/* ---------- タブレット・PC ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .fixed-cta { display: none; }
  .container { padding: 0 32px; }

  .hero { padding-top: 80px; }
  .hero-inner { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; padding-bottom: 80px; }
  .hero h1 { font-size: 2.5rem; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .report { padding: 24px 26px; }

  .facts-list li { flex-direction: row; justify-content: center; align-items: baseline; gap: 12px; }
  .fact-num { font-size: 2rem; }
  .fact-label { font-size: 0.9375rem; }

  .section { padding: 88px 0; }
  .section-head h2 { font-size: 2rem; }

  .worries { grid-template-columns: 1fr 1fr; }
  .monthly { grid-template-columns: 1fr 1fr; gap: 48px; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .prices { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .greeting { grid-template-columns: 260px 1fr; gap: 48px; }
  .greeting-mark { aspect-ratio: 4 / 5; }
  .voices { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: repeat(4, 1fr); }
  .flow li { padding: 64px 18px 18px; }
  .office { grid-template-columns: 1fr 1.2fr; gap: 48px; }
  .news { display: grid; grid-template-columns: 8em 1fr; gap: 16px; }
  .news-list li { display: flex; gap: 16px; align-items: baseline; }
  .news-list time { flex: none; }
  .form-2col { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 2fr 3fr; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .global-nav, .global-nav.is-open { display: block; position: static; border: 0; background: transparent; }
  .global-nav ul { display: flex; align-items: center; gap: 2px; }
  .global-nav a { border-top: 0; padding: 8px 12px; font-size: 0.9375rem; }
  .global-nav .nav-cta { margin-left: 8px; padding: 8px 20px; color: var(--navy-dark); background: var(--gold); }
  .global-nav .nav-cta:hover { background: var(--gold-light); }

  .hero h1 { font-size: 2.875rem; }
}
