/* ============================================
   あおば税理士事務所 — 制作サンプル (AIA Web Studio)
   ============================================ */

:root {
  --navy: #16294a;
  --navy-soft: #2a3f63;
  --ink: #1f2a3d;
  --ink-soft: #5a6679;
  --gold: #b9914f;
  --gold-deep: #9c7838;
  --bg: #ffffff;
  --bg-tint: #f3f5f8;
  --line: #dde3ec;
  --serif: "Noto Serif JP", serif;
  --sans: "Noto Sans JP", sans-serif;
  --header-h: 74px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.demo-bar {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  padding: 8px 20px;
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
}
.demo-bar a { text-decoration: underline; opacity: 0.85; }
.demo-bar a:hover { opacity: 1; }

/* Buttons */
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 14px 34px;
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 6px 18px rgba(185,145,79,0.35); }
.btn--gold:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn--line { border: 1.5px solid rgba(255,255,255,0.6); color: #fff; }
.btn--line:hover { background: rgba(255,255,255,0.12); }
.btn--wide { width: 100%; text-align: center; }

/* Header */
.header {
  position: sticky; top: 0; height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.header__inner {
  max-width: 1120px; height: 100%; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.header__logo { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--navy); }
.header__logo span { font-size: 12px; letter-spacing: 0.1em; color: var(--gold); margin-left: 6px; font-family: var(--sans); }
.header__nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.header__nav a:not(.header__cta):hover { color: var(--gold-deep); }
.header__cta { background: var(--navy); color: #fff; padding: 9px 22px; border-radius: 4px; font-weight: 700; }
.header__cta:hover { background: var(--navy-soft); }
.header__burger { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  display: grid; align-items: center;
  padding: 80px 28px;
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(16,28,52,0.93) 38%, rgba(16,28,52,0.62) 100%),
    url("img/hero.jpg") center / cover no-repeat,
    var(--navy);
}
.hero__inner { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; width: 100%; }
.hero__sub { font-size: 15px; letter-spacing: 0.08em; color: #d9c9a6; margin-bottom: 20px; }
.hero__title { font-family: var(--serif); font-size: clamp(30px, 5vw, 52px); font-weight: 700; line-height: 1.5; margin-bottom: 26px; }
.hero__lead { font-size: 16px; line-height: 1.9; margin-bottom: 38px; opacity: 0.95; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Stats */
.stats { background: var(--navy); padding: 0 28px; }
.stats__inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  transform: translateY(-50%);
}
.stat {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(16,28,52,0.14);
  text-align: center;
  padding: 32px 20px;
  margin: 0 10px;
}
.stat strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.stat em { font-style: normal; font-size: 38px; color: var(--gold-deep); margin: 0 2px; }
.stat span { font-size: 13px; color: var(--ink-soft); }

/* Sections */
.section { padding: 96px 28px; }
.section--tint { background: var(--bg-tint); }
.section__inner { max-width: 1120px; margin: 0 auto; }
.label { font-size: 13px; font-weight: 700; letter-spacing: 0.22em; color: var(--gold-deep); margin-bottom: 12px; }
.section__title { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 33px); font-weight: 700; line-height: 1.5; color: var(--navy); margin-bottom: 44px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 34px 28px; position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(16,28,52,0.1); }
.card__no { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--bg-tint); position: absolute; top: 18px; right: 22px; }
.card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--ink-soft); }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service { background: #fff; border-radius: 8px; padding: 30px 30px; border-left: 4px solid var(--gold); box-shadow: 0 8px 22px rgba(16,28,52,0.06); }
.service h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.service p { font-size: 14px; color: var(--ink-soft); }

/* Price */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 36px 28px; position: relative; }
.plan--main { border: 2px solid var(--gold); box-shadow: 0 14px 34px rgba(185,145,79,0.18); }
.plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 18px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 17px; font-weight: 700; color: var(--navy); text-align: center; margin-bottom: 14px; }
.plan__price { font-size: 16px; font-weight: 700; color: var(--ink); text-align: center; margin-bottom: 22px; }
.plan__price em { font-style: normal; font-family: var(--serif); font-size: 34px; color: var(--gold-deep); }
.plan ul { display: grid; gap: 10px; font-size: 14px; }
.plan li { padding-left: 24px; position: relative; color: var(--ink-soft); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.note { font-size: 13px; color: var(--ink-soft); margin-top: 28px; text-align: center; }

/* Profile */
.profile { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; }
.profile__photo { border-radius: 8px; overflow: hidden; box-shadow: 0 18px 40px rgba(16,28,52,0.16); aspect-ratio: 4/5; }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile__body p { color: var(--ink-soft); margin-bottom: 16px; }
.profile__body .label { color: var(--gold-deep); margin-bottom: 12px; }
.profile__sign { font-family: var(--serif); font-size: 17px; color: var(--navy); margin-top: 24px; font-weight: 600; }

/* Contact */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__text p { color: var(--ink-soft); margin-bottom: 24px; }
.contact__info { display: grid; gap: 14px; }
.contact__info div { border-top: 1px solid var(--line); padding-top: 14px; }
.contact__info dt { font-size: 13px; font-weight: 700; color: var(--gold-deep); }
.contact__info dd { font-size: 14px; color: var(--ink-soft); }
.contact__form { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 32px; display: grid; gap: 18px; box-shadow: 0 10px 30px rgba(16,28,52,0.06); }
.contact__form label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; color: var(--navy); }
.contact__form input, .contact__form textarea { font-family: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 6px; }
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--gold); }

/* Footer */
.footer { background: var(--navy); color: #fff; text-align: center; padding: 52px 24px; }
.footer__logo { font-family: var(--serif); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.footer__logo span { font-size: 12px; color: var(--gold); margin-left: 6px; font-family: var(--sans); }
.footer__copy { font-size: 12px; opacity: 0.7; }
.footer__credit { font-size: 11px; opacity: 0.45; margin-top: 8px; }

/* Animation */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 900px) {
  .cards, .plans { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .stats__inner { grid-template-columns: 1fr; gap: 12px; transform: translateY(-30px); }
  .stat { margin: 0; }
  .plan--main { order: -1; }
  .profile { grid-template-columns: 1fr; gap: 28px; }
  .profile__photo { max-width: 280px; margin: 0 auto; }
  .contact__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  .section { padding: 72px 22px; }
  .header__burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; z-index: 60; }
  .header__burger span { width: 22px; height: 2px; background: var(--navy); margin: 0 auto; transition: transform 0.25s ease, opacity 0.25s ease; }
  .header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header__burger.is-open span:nth-child(2) { opacity: 0; }
  .header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header__nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 6px 0 18px; transform: translateY(-10px); opacity: 0; visibility: hidden; transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s; }
  .header__nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .header__nav a { padding: 13px 28px; }
  .header__cta { margin: 10px 28px 0; text-align: center; }
}
