/* ============================================
   あおば税理士事務所（デザインサンプル）
   シック＆フォーマル：チャコール×ワインレッド
   ============================================ */

:root {
  --ink: #2b2b30;
  --sub: #6b6660;
  --bg: #fbfaf8;
  --bg-alt: #f3f0ea;
  --accent: #7a2e3a;
  --accent-dark: #5e2230;
  --line: #e2ddd4;
  --radius: 4px;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 15px;
}

img { max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 248, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif);
  font-weight: 700; font-size: 1.1rem;
  color: var(--ink); text-decoration: none;
}

.site-nav { display: flex; align-items: center; gap: 22px; }

.site-nav a {
  color: var(--ink); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
}

.site-nav a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 700;
}

.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle { display: none; }

/* ---------- ヒーロー ---------- */
.hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.hero-inner {
  max-width: 1100px; margin: 0 auto; padding: 64px 20px;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.hero-badges span {
  font-size: 0.78rem; font-weight: 700;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 12px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 2.1rem; line-height: 1.5;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead { color: var(--sub); margin-bottom: 26px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }

.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700; font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  background: #fff; color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-secondary:hover { background: var(--accent); color: #fff; }

.btn-primary.large { padding: 16px 34px; font-size: 1.1rem; }

.hero-note { font-size: 0.82rem; color: var(--sub); }

/* ---------- 写真共通 ---------- */
.photo {
  display: block; width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.photo-hero { height: 340px; box-shadow: 0 10px 30px rgba(43, 43, 48, 0.12); }
.photo-flow { height: 300px; }
.photo-director { height: 280px; }

/* 画像注記（AI生成／サンプル画像・差し替え可能の表示） */
.photo-frame { position: relative; display: block; }
.photo-note {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  background: rgba(10, 8, 6, 0.62);
  color: #fff;
  font-size: 9.5px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  padding: 3px 7px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
}

/* ---------- セクション共通 ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

.section-eyebrow {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  margin-bottom: 34px;
}

/* ---------- お悩み ---------- */
.worry-list { list-style: none; max-width: 720px; }

.worry-list li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px 14px 46px;
  margin-bottom: 10px;
}

.worry-list li::before {
  content: "";
  position: absolute; left: 16px; top: 50%;
  width: 18px; height: 18px;
  transform: translateY(-50%);
  background: var(--accent);
  border-radius: 50%;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z" fill="black"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z" fill="black"/></svg>') center / contain no-repeat;
}

.worry-msg { margin-top: 24px; }
.worry-msg strong { color: var(--accent); }

/* ---------- 取扱業務 ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-service {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 14px 16px 8px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--sub);
  margin: 0 16px 18px;
}

/* ---------- 料金 ---------- */
.fee-list { max-width: 760px; }

.fee-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 22px;
  margin-bottom: 10px;
}

.fee-name { font-weight: 700; }

.fee-name span {
  display: block;
  font-weight: 400; font-size: 0.8rem;
  color: var(--sub);
}

.fee-price {
  font-family: var(--serif);
  font-size: 1.15rem; font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.fee-price small { font-size: 0.72rem; color: var(--sub); font-weight: 400; }

.fee-note { margin-top: 18px; font-size: 0.82rem; color: var(--sub); }

/* ---------- ご相談の流れ ---------- */
.flow-wrap {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 40px; align-items: center;
}

.flow-list { list-style: none; }

.flow-list li {
  display: flex; gap: 18px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}

.flow-list li:last-child { border-bottom: none; }

.flow-list li > span {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.flow-list h3 { font-size: 1rem; margin-bottom: 4px; }
.flow-list p { font-size: 0.88rem; color: var(--sub); }

/* ---------- 代表あいさつ ---------- */
.greeting {
  display: grid; grid-template-columns: 320px 1fr;
  gap: 36px; align-items: start;
}

.greeting-name {
  font-family: var(--serif);
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 14px;
}

.greeting-name span { font-size: 0.82rem; color: var(--sub); font-weight: 400; }

.greeting-text p + p { margin-top: 12px; }

/* ---------- 事務所概要・アクセス ---------- */
.access-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 28px; align-items: stretch;
}

.info-table {
  width: 100%; border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-table th, .info-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.92rem;
  vertical-align: top;
}

.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

.info-table th {
  width: 110px;
  background: var(--bg-alt);
  font-weight: 700;
  white-space: nowrap;
}

.info-table a { color: var(--accent); }

.map-ph {
  display: grid; place-items: center;
  gap: 6px; text-align: center;
  min-height: 220px;
  background: repeating-linear-gradient(45deg, #eee9e0, #eee9e0 12px, #e7e1d6 12px, #e7e1d6 24px);
  border: 1px dashed #cfc7b8;
  border-radius: var(--radius);
  color: var(--sub);
  font-size: 0.9rem;
  align-content: center;
}

/* ---------- CTA・お問い合わせ ---------- */
.cta {
  background: var(--accent-dark);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}

.cta h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.cta > .container > p { color: rgba(255, 255, 255, 0.85); margin-bottom: 26px; }

.cta-actions {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 14px; margin-bottom: 40px;
}

.cta .btn-primary { background: #fff; color: var(--accent-dark); }
.cta .btn-primary:hover { background: #f3e9e5; }

.contact-form {
  max-width: 560px; margin: 0 auto;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 30px 28px;
  text-align: left;
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.9rem;
  margin-bottom: 6px;
}

.req {
  font-size: 0.68rem; font-weight: 700;
  color: #fff; background: var(--accent);
  border-radius: 2px;
  padding: 1px 6px;
}

.form-row input, .form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  font: inherit;
  background: var(--bg);
}

.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

.btn-submit {
  display: block; width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px;
  font: inherit; font-weight: 700; font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover { background: var(--accent-dark); }

.form-note { margin-top: 12px; font-size: 0.78rem; color: var(--sub); }

.form-done {
  text-align: center;
  padding: 30px 0;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- フッター ---------- */
.site-footer {
  background: #26262b;
  color: #d8d4cd;
  text-align: center;
  padding: 34px 0;
  font-size: 0.85rem;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.05rem; font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer-copy { margin-top: 10px; font-size: 0.75rem; color: #97928a; }

/* ---------- フェードイン ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 10px;
    background: none; border: none; cursor: pointer;
  }

  .nav-toggle span {
    display: block; height: 2px; width: 100%;
    background: var(--ink);
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
    display: none;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }

  .site-nav a:last-child { border-bottom: none; }

  .nav-cta { margin-top: 12px; text-align: center; border-radius: var(--radius); }

  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding: 44px 20px; }

  .hero h1 { font-size: 1.65rem; }

  .photo-hero { height: 240px; }

  .section { padding: 52px 0; }

  .flow-wrap { grid-template-columns: 1fr; gap: 24px; }

  .photo-flow { height: 220px; }

  .greeting { grid-template-columns: 1fr; gap: 22px; }

  .photo-director { max-width: 320px; margin: 0 auto; width: 100%; }

  .access-grid { grid-template-columns: 1fr; }

  .fee-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; }

  .btn-primary, .btn-secondary { justify-content: center; }
}
