/* ============================================================
   山浦瑞貴公認会計士事務所 — Water Depth
   軽量・依存ゼロ。フォントはBIZ UDPGothic一本。
   ============================================================ */
:root {
  --deep-navy: #0D1F33;
  --mid-navy: #1E4060;
  --twilight: #1A6FA0;
  --thermocline: #2A8FBF;
  --neutral-dark: #3A6080;
  --foam: #F0F7FB;
  --gold: #C9A24B;
  --gold-pale: #FBF1DA;
  --mist: #C9D6E0;
  --ink: #0D1F33;
  --paper: #FFFFFF;
  --sidebar-w: 244px;
  --maxw: 760px;
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: 0;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: .02em;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

a { color: var(--twilight); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- レイアウト ---------- */
.layout { display: flex; min-height: 100vh; }

.content {
  margin-left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
}

/* ---------- サイドバー（PC） ---------- */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--deep-navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 32px 26px;
  z-index: 50;
}
.brand { display: block; margin-bottom: 8px; }
.brand-logo { display: block; }
.sidebar .brand-logo { width: 124px; height: auto; margin-bottom: 16px; }
.brand .mark {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: .08em;
  color: #fff;
}
.brand .sub-en {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--mist);
  font-weight: 400;
}
.nav { margin-top: 40px; flex: 1; }
.nav a {
  display: block;
  color: var(--mist);
  font-size: 14.5px;
  padding: 11px 0;
  letter-spacing: .06em;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: color .2s, border-color .2s;
}
.nav a:hover { color: #fff; text-decoration: none; }
.nav a.active {
  color: #fff;
  border-left-color: var(--thermocline);
}
.side-cta {
  display: block;
  text-align: center;
  background: var(--gold);
  color: var(--deep-navy);
  font-weight: 700;
  padding: 13px;
  border-radius: 6px;
  letter-spacing: .08em;
  font-size: 14.5px;
}
.side-cta:hover { background: #d8b25f; text-decoration: none; }

/* ---------- モバイルトップバー＋ハンバーガー ---------- */
.topbar {
  display: none;
  position: fixed; top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--deep-navy);
  color: #fff;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 60;
}
.topbar-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.topbar-brand:hover { text-decoration: none; }
.topbar .brand-logo { height: 30px; width: auto; }
.topbar .mark { font-weight: 700; font-size: 15px; letter-spacing: .06em; }
.hamburger {
  width: 30px; height: 22px;
  position: relative; cursor: pointer;
  background: none; border: 0; padding: 0;
}
.hamburger span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: #fff; transition: transform .25s, opacity .25s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(13,31,51,.98);
  z-index: 55;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
body.menu-open .overlay { display: flex; }
.overlay a {
  color: var(--mist);
  font-size: 19px;
  padding: 14px;
  letter-spacing: .08em;
}
.overlay a:hover { color: #fff; text-decoration: none; }
.overlay .side-cta { margin-top: 18px; width: 220px; }

/* ---------- セクション共通 ---------- */
section {
  scroll-snap-align: start;
  padding: 96px 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}
.inner { width: 100%; max-width: var(--maxw); }
.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: .26em;
  color: var(--neutral-dark);
  font-weight: 700;
  margin-bottom: 20px;
}
h2 { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.5; color: var(--deep-navy); font-weight: 700; }
.subhead { margin-top: 16px; font-size: clamp(16px, 2.2vw, 20px); font-weight: 700; color: var(--mid-navy); line-height: 1.65; }
.profile .subhead { color: #cdd9e4; }
.lead { margin-top: 22px; font-size: 16px; color: #28384a; }

/* ---------- ①ファーストビュー ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(42,143,191,.42) 0%, rgba(26,111,160,.18) 38%, rgba(13,31,51,0) 66%),
    linear-gradient(160deg, #0D1F33 0%, #16314c 55%, #1E4060 100%);
  color: #fff;
  min-height: 100vh;
}
.hero .inner { max-width: 820px; }
.hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .03em;
}
.hero .hsub {
  margin-top: 26px;
  font-size: clamp(14px, 2vw, 17px);
  color: var(--mist);
  line-height: 1.9;
}
.hero .hero-cta {
  display: inline-block;
  margin-top: 40px;
  background: var(--gold);
  color: var(--deep-navy);
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 7px;
  letter-spacing: .1em;
  font-size: 15px;
}
.hero .hero-cta:hover { background: #d8b25f; text-decoration: none; }

/* ---------- ②提供価値 ---------- */
.approach { background: var(--foam); }
.approach .body { margin-top: 26px; font-size: 16.5px; color: #20303f; }

/* ---------- ③専門領域 ---------- */
.services { background: #fff; }
.cards { margin-top: 36px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background: var(--foam);
  border-radius: 12px;
  padding: 20px 22px 22px;
  transition: box-shadow .25s ease;
}
.card:hover { box-shadow: 0 12px 30px rgba(13, 31, 51, .06); }
.card h3 { font-size: 17px; color: var(--mid-navy); font-weight: 700; letter-spacing: .04em; }
.card p { margin-top: 10px; font-size: 14px; color: #3a4a5a; line-height: 1.8; }
.card .ico { width: 30px; height: 30px; margin-bottom: 12px; color: var(--twilight); }
.svc-label { margin-top: 30px; }
.svc-label + .cards { margin-top: 16px; }
.also { margin-top: 40px; }
.also-label { font-size: 14px; font-weight: 700; color: var(--mid-navy); letter-spacing: .06em; }
.also-note { margin-top: 8px; font-size: 13.5px; color: #5b6b7a; }
.also .chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.also .chips span { background: var(--foam); color: #3a4a5a; font-size: 13.5px; line-height: 1; padding: 10px 16px; border-radius: 999px; letter-spacing: .03em; }

/* ---------- ④プロフィール ---------- */
.profile { background: var(--deep-navy); color: #fff; }
.profile h2 { color: #fff; }
.profile .eyebrow { color: var(--mist); }
.profile .pwrap { margin-top: 34px; display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.profile img { width: 100%; height: auto; border-radius: 10px; display: block; background: #fff; }
.profile .pname { font-size: 21px; font-weight: 700; letter-spacing: .06em; }
.profile .ptitle { margin-top: 6px; font-size: 13px; color: var(--mist); letter-spacing: .1em; }
.profile .phistory { margin-top: 22px; }
.profile .phistory > div { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 9px 0; }
.profile .phistory dt { font-size: 13px; color: var(--mist); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.profile .phistory dd { margin: 0; font-size: 14.5px; color: #d7e2ec; line-height: 1.75; }

/* ---------- ⑤お問い合わせ ---------- */
.contact { background: var(--foam); }
.contact .lead { color: #28384a; }
form { margin-top: 32px; max-width: 560px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--mid-navy); margin-bottom: 7px; letter-spacing: .04em; }
.field label .req { color: var(--gold); margin-left: 6px; font-size: 12px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--mist);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--twilight); box-shadow: 0 0 0 3px rgba(26,111,160,.12);
}
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit {
  background: var(--gold); color: var(--deep-navy);
  font-weight: 700; border: 0; border-radius: 7px;
  padding: 15px 44px; font-size: 15px; letter-spacing: .1em; cursor: pointer;
  font-family: inherit;
}
.submit:hover { background: #d8b25f; }
.privacy { margin-top: 20px; font-size: 12.5px; color: #5a6b7a; line-height: 1.8; }
.mailto-fallback { margin-top: 14px; font-size: 13px; color: #3a4a5a; }
.form-note { padding: 14px 16px; border-radius: 6px; margin-bottom: 22px; font-size: 14px; }
.form-note.ok { background: var(--gold-pale); border: 1px solid var(--gold); color: #6a531f; }
.form-note.err { background: #fdecec; border: 1px solid #e0a3a3; color: #8a3030; }

/* ---------- フッター ---------- */
footer {
  margin-left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
  background: var(--deep-navy);
  color: var(--mist);
  padding: 30px 8vw;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  letter-spacing: .04em;
}
footer a { color: var(--mist); }
.foot-left { display: flex; flex-direction: column; gap: 6px; }
.social { display: flex; align-items: center; gap: 20px; }
.social a { display: inline-flex; align-items: center; color: #fff; opacity: .78; transition: opacity .2s; }
.social a:hover { opacity: 1; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.social img.note-logo { height: 16px; width: auto; display: block; }

/* ============================================================
   レスポンシブ（スマホ：左寄せハンバーガー＋オーバーレイ）
   ============================================================ */
@media (max-width: 920px) {
  html { scroll-padding-top: 56px; }
  .sidebar { display: none; }
  .topbar { display: flex; }
  .content { margin-left: 0; width: 100%; }
  section { padding: 84px 26px 72px; min-height: auto; }
  .hero { min-height: calc(100vh - 56px); padding-top: 100px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 14px 14px 16px; }
  .card h3 { font-size: 15px; }
  .card p { margin-top: 6px; font-size: 12.5px; line-height: 1.6; }
  .profile .pwrap { grid-template-columns: 1fr; gap: 24px; }
  .profile img { max-width: 200px; }
  footer { margin-left: 0; width: 100%; flex-direction: column; align-items: flex-start; }
}
