/* ============================================================
   若林浩光税理士事務所 — コーポレートサイト
   ============================================================ */

:root {
  /* Brand / navy palette */
  --navy:        #173a5e;
  --navy-dark:   #102a45;
  --navy-deep:   #0c2138;
  --blue:        #2f6cb0;
  --blue-light:  #4d86c9;

  /* Neutrals */
  --ink:         #2b3138;
  --ink-soft:    #515b66;
  --ink-faint:   #7c8794;
  --line:        #dfe4ea;
  --line-soft:   #eaeef2;
  --bg:          #ffffff;
  --bg-tint:     #f4f6f9;
  --bg-tint2:    #eef2f6;

  /* Type */
  --sans: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  /* Metrics */
  --maxw: 1180px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(16, 42, 69, 0.06);
  --shadow-md: 0 6px 22px rgba(16, 42, 69, 0.10);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Headings ---------- */
.sec-head {
  margin: 0 0 30px;
}
.sec-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  color: var(--navy);
  margin: 0 0 6px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.sec-head.center { text-align: center; margin-bottom: 38px; }
.sec-head.center h2 { margin-bottom: 0; }
.sec-head.center h2::after {
  content: "";
  display: block;
  width: 44px; height: 2px;
  background: var(--navy);
  margin: 18px auto 0;
}
.contact .sec-head.center h2::after { background: var(--blue-light); }
.sec-head .en {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 10px;
}
/* block-title used inside panels: navy bar + underline */
.block-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--navy);
  position: relative;
  letter-spacing: 0.04em;
}
.block-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 70px; height: 2px;
  background: var(--blue);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0 14px;
}
.brand .eyebrow {
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.brand .logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 27px;
  color: var(--navy);
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.header-info {
  display: flex;
  align-items: center;
  gap: 28px;
}
.info-block { text-align: right; }
.info-block .addr {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--ink-soft);
  justify-content: flex-end;
  margin-bottom: 2px;
}
.info-block .tel {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 27px;
  color: var(--navy);
  justify-content: flex-end;
  line-height: 1.1;
}
.info-block .tel svg { width: 22px; height: 22px; }
.info-block .hours {
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 3px;
}
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 22px 34px;
  border-radius: 3px;
  transition: background 0.2s;
  align-self: stretch;
}
.btn-contact:hover { background: var(--navy-dark); }
.btn-contact svg { width: 18px; height: 18px; }

/* primary nav */
.main-nav { border-top: 1px solid var(--line-soft); }
.nav-list {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  justify-content: space-between;
}
.nav-list > li { flex: 1; text-align: center; }
.nav-list > li > a {
  display: block;
  padding: 16px 8px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 0; height: 3px;
  background: var(--blue);
  transition: width 0.25s;
}
.nav-list > li > a:hover { color: var(--blue); }
.nav-list > li > a.active,
.nav-list > li > a:hover::after { }
.nav-list > li > a.active { color: var(--navy); font-weight: 700; }
.nav-list > li > a.active::after { width: 86px; }
.nav-list > li > a:hover::after { width: 86px; }

.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
}
.hero .hero-img {
  width: 100%;
  height: 460px;
  --slot-bg: linear-gradient(120deg,#dfe9f2,#cdd9e6);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.78) 34%, rgba(255,255,255,0.15) 58%, rgba(255,255,255,0) 75%);
  pointer-events: none;
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.hero-content .wrap { width: 100%; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 52px);
  color: var(--navy);
  line-height: 1.45;
  letter-spacing: 0.05em;
  margin: 0 0 26px;
  text-shadow: 0 1px 12px rgba(255,255,255,0.7);
}
.hero p.lead {
  font-size: 17px;
  color: var(--ink);
  line-height: 2;
  margin: 0 0 30px;
  max-width: 30em;
  text-shadow: 0 1px 8px rgba(255,255,255,0.8);
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 17px 40px;
  border-radius: 3px;
  transition: background 0.2s, transform 0.2s;
  box-shadow: var(--shadow-md);
}
.btn-hero:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn-hero svg { width: 16px; height: 16px; }

/* ============================================================
   INTRO (two-column)
   ============================================================ */
.intro { padding: 64px 0 72px; }
.intro-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

/* sidebar */
.side-panel { margin-bottom: 36px; }
.side-head {
  background: var(--navy);
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.08em;
  padding: 13px 18px;
}
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { border-bottom: 1px solid var(--line); }
.side-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
  transition: background 0.18s, color 0.18s, padding 0.18s;
}
.side-list a::after {
  content: "›";
  color: var(--ink-faint);
  font-size: 18px;
  line-height: 1;
  transition: color 0.18s, transform 0.18s;
}
.side-list a:hover {
  background: var(--bg-tint);
  color: var(--blue);
  padding-left: 20px;
}
.side-list a:hover::after { color: var(--blue); transform: translateX(3px); }

/* contact box in sidebar */
.side-contact {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  padding: 24px 22px;
  text-align: center;
}
.side-contact .label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.side-contact .label svg { width: 18px; height: 18px; color: var(--navy); }
.side-contact .tel {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.side-contact .hours {
  font-size: 12px;
  color: var(--ink-faint);
  margin: 4px 0 18px;
}
.side-contact .btn-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  padding: 14px;
  border-radius: 3px;
  transition: background 0.2s;
}
.side-contact .btn-form:hover { background: var(--navy-dark); }
.side-contact .btn-form svg { width: 16px; height: 16px; }

/* features */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 44px;
}
.feature {
  padding: 30px 22px 28px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.feature:last-child { border-right: none; }
.feature .ico {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  color: var(--navy);
}
.feature .ico svg { width: 100%; height: 100%; }
.feature h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: 0.03em;
}
.feature p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin: 0;
}

/* lower two-up: news + office */
.intro-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 12px;
  margin-bottom: 6px;
  position: relative;
}
.panel-head::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 64px; height: 2px;
  background: var(--blue);
}
.panel-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--navy);
  margin: 0;
  letter-spacing: 0.04em;
}
.panel-head .more {
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.panel-head .more:hover { color: var(--blue); border-color: var(--blue); }

/* news */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
}
.news-list a,
.news-list .nrow {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 2px;
  width: 100%;
}
.news-list time {
  color: var(--ink-faint);
  font-size: 13px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.news-list .tag {
  flex-shrink: 0;
  font-size: 11px;
  color: #fff;
  background: var(--blue);
  padding: 1px 9px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}
.news-list .txt { color: var(--ink); }
.news-list a:hover .txt { color: var(--blue); }

/* office mini table */
.office-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.office-table th {
  text-align: left;
  vertical-align: top;
  font-weight: 700;
  color: var(--navy);
  width: 92px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.office-table td {
  vertical-align: top;
  color: var(--ink-soft);
  padding: 12px 0 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.office-photo {
  width: 100%;
  height: 150px;
  margin-top: 18px;
  --slot-bg: linear-gradient(120deg,#e3e8ee,#d4dce5);
}

/* ============================================================
   ABOUT band
   ============================================================ */
.about { background: var(--bg-tint); padding: 80px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-body p { margin: 0 0 18px; color: var(--ink-soft); }
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: var(--navy); font-weight: 700; }
.about-points {
  list-style: none;
  margin: 30px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.about-points li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 11px; height: 11px;
  background: var(--blue);
  transform: rotate(45deg);
}
.about-photo {
  width: 100%;
  height: 360px;
  --slot-bg: linear-gradient(120deg,#dde4ec,#cdd7e2);
}

/* ============================================================
   SERVICES cards
   ============================================================ */
.services { padding: 80px 0; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.svc-card {
  display: flex;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  padding: 30px 30px 28px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.svc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.svc-card .num {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--bg-tint2);
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.svc-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin: 2px 0 12px;
  letter-spacing: 0.03em;
}
.svc-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { background: var(--bg-tint); padding: 80px 0; }
.price-note {
  font-size: 14px;
  color: var(--ink-soft);
  margin: -14px 0 28px;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.price-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 500;
  padding: 16px 22px;
  text-align: left;
  letter-spacing: 0.04em;
  font-size: 14.5px;
}
.price-table thead th:last-child { text-align: right; }
.price-table tbody th {
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.price-table tbody td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}
.price-table tbody td.amt {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.price-table tbody td.amt small { font-weight: 400; color: var(--ink-faint); }
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td { border-bottom: none; }
.price-foot {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 16px;
  line-height: 1.9;
}

/* ============================================================
   OFFICE OVERVIEW
   ============================================================ */
.overview { padding: 80px 0; }
.ov-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.ov-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ov-table th {
  text-align: left;
  vertical-align: top;
  font-weight: 700;
  color: var(--navy);
  width: 130px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-tint);
  padding-left: 18px;
}
.ov-table td {
  vertical-align: top;
  color: var(--ink-soft);
  padding: 16px 0 16px 22px;
  border-bottom: 1px solid var(--line);
}
.ov-map {
  width: 100%;
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.profile {
  display: flex;
  gap: 22px;
  margin-top: 26px;
  align-items: center;
  background: var(--bg-tint);
  padding: 22px;
}
.profile .avatar {
  width: 92px; height: 92px;
  flex-shrink: 0;
  --slot-bg: linear-gradient(120deg,#dde4ec,#ccd6e1);
}
.profile .role { font-size: 12.5px; color: var(--blue); font-weight: 600; letter-spacing: 0.08em; }
.profile .pname { font-family: var(--serif); font-size: 21px; color: var(--navy); font-weight: 700; margin: 2px 0 6px; }
.profile p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 80px 0; }
.faq-list { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  background: #fff;
}
.faq-q {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  padding: 20px 22px;
  letter-spacing: 0.02em;
}
.q-mark, .a-mark {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
}
.q-mark { background: var(--navy); color: #fff; }
.a-mark { background: var(--bg-tint2); color: var(--navy); }
.faq-toggle {
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
  width: 16px; height: 16px;
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--blue);
  transition: transform 0.25s;
}
.faq-toggle::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq-toggle::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item.open .faq-toggle::after { transform: scaleY(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner {
  display: flex;
  gap: 16px;
  padding: 4px 22px 22px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--navy); padding: 80px 0; color: #fff; }
.contact .sec-head h2 { color: #fff; }
.contact .sec-head .en { color: var(--blue-light); }
.contact-lead {
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 15.5px;
  margin: 0 auto 40px;
  max-width: 40em;
  line-height: 2;
}
.contact-tel-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 4px;
  padding: 22px;
  margin-bottom: 36px;
}
.contact-tel-band .ct-label { font-size: 14px; color: rgba(255,255,255,0.8); }
.contact-tel-band .ct-tel {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 34px;
  display: flex; align-items: center; gap: 12px;
}
.contact-tel-band .ct-tel svg { width: 26px; height: 26px; }
.contact-tel-band .ct-hours { font-size: 12.5px; color: rgba(255,255,255,0.7); }

.contact-card {
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  padding: 44px 48px 48px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-row label .req {
  font-size: 11px;
  color: #fff;
  background: #c0392b;
  padding: 1px 8px;
  border-radius: 2px;
  margin-left: 8px;
  font-weight: 500;
  vertical-align: middle;
}
.form-row input,
.form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-tint);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47,108,176,0.12);
}
.form-row textarea { resize: vertical; min-height: 140px; }
.form-row .err {
  display: none;
  font-size: 12.5px;
  color: #c0392b;
  margin-top: 6px;
}
.form-row.invalid input,
.form-row.invalid textarea { border-color: #c0392b; background: #fdf3f2; }
.form-row.invalid .err { display: block; }

.form-privacy {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  margin: 4px 0 22px;
}
.form-privacy a { color: var(--blue); border-bottom: 1px solid var(--blue); }
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 17px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}
.btn-submit:hover { background: var(--navy-dark); }
.btn-submit:active { transform: scale(0.99); }
.btn-submit svg { width: 16px; height: 16px; }

.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form-success.show { display: block; }
.form-success .check {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.form-success .check svg { width: 30px; height: 30px; color: #fff; }
.form-success h3 { font-family: var(--serif); font-size: 22px; color: var(--navy); margin: 0 0 12px; }
.form-success p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.78);
  padding: 48px 0 0;
}
.foot-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.foot-brand .logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.foot-brand .meta { font-size: 13px; line-height: 1.9; }
.foot-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 14px;
}
.foot-nav a { transition: color 0.2s; }
.foot-nav a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-bottom .links { display: flex; gap: 20px; font-size: 13px; }
.foot-bottom .copy { font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 0.02em; }

/* back to top */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 48px; height: 48px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s, background 0.2s;
  z-index: 40;
  box-shadow: var(--shadow-md);
  border: none;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--navy-dark); transform: translateY(-3px); }
.to-top svg { width: 18px; height: 18px; color: #fff; }

/* ============================================================
   MULTI-PAGE: brand link, page header, breadcrumb, CTA band
   ============================================================ */
.brand-link { display: block; color: inherit; }

/* sub-page title banner */
.page-head {
  background: var(--navy);
  color: #fff;
  padding: 52px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 140% at 88% -10%, rgba(255,255,255,0.10), rgba(255,255,255,0) 55%);
  pointer-events: none;
}
.page-head h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1.3;
}
.page-head .ph-sub {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.62);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}
.breadcrumb {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 12px 0;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after {
  content: "›";
  color: var(--ink-faint);
}
.breadcrumb a { color: var(--ink-soft); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb li:last-child { color: var(--navy); font-weight: 600; }

/* lead paragraph used at top of page sections */
.page-lead {
  text-align: center;
  max-width: 42em;
  margin: 0 auto 4px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 2;
}

/* CTA band before footer */
.cta-band {
  background: var(--navy-dark);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}
.cta-band p {
  color: rgba(255,255,255,0.8);
  margin: 0 0 28px;
  font-size: 15px;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-actions .tel {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cta-actions .tel svg { width: 24px; height: 24px; }
.cta-actions .tel .small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.7); letter-spacing: 0.04em; }
.cta-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  padding: 16px 36px;
  border-radius: 3px;
  transition: background 0.2s, transform 0.2s;
}
.cta-actions .btn:hover { background: var(--bg-tint2); transform: translateY(-2px); }
.cta-actions .btn svg { width: 16px; height: 16px; }

/* sub-page generic sections */
.page-section { padding: 76px 0; }
.page-section.tint { background: var(--bg-tint); }
.news-page { padding: 72px 0 80px; }
.news-page .news-list { max-width: 880px; margin: 0 auto; }
.contact-page { padding: 64px 0 84px; }
.contact-page .contact-tel-band {
  background: var(--navy);
  border-color: transparent;
  max-width: 760px;
  margin: 0 auto 36px;
}

@media (max-width: 860px) {
  .page-head { padding: 36px 0 34px; }
  .page-head h1 { font-size: 25px; }
  .cta-actions { flex-direction: column; gap: 18px; }
}

/* ============================================================
   EDITORIAL SYSTEM (bespoke, de-templated)
   ============================================================ */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
  margin: 0 0 20px;
  text-shadow: 0 1px 8px rgba(255,255,255,0.8);
}
.hero-eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--blue);
}

.editorial-head { margin-bottom: 44px; }
.editorial-head .kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin: 0 0 16px;
}
.editorial-head .kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--blue);
}
.editorial-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--navy);
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin: 0;
}
.editorial-head.center { text-align: center; }
.editorial-head.center .kicker { justify-content: center; }
.editorial-head.center .kicker::after {
  content: "";
  width: 26px; height: 1px;
  background: var(--blue);
}

/* philosophy band */
.philosophy {
  position: relative;
  padding: 96px 0;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.philosophy::before {
  content: "信";
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 340px;
  font-weight: 700;
  color: rgba(255,255,255,0.045);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.philosophy-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.ph-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--blue-light);
  margin: 0 0 18px;
}
.ph-statement h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.45;
  letter-spacing: 0.05em;
  margin: 0 0 26px;
}
.ph-body p {
  font-size: 16px;
  line-height: 2.1;
  color: rgba(255,255,255,0.86);
  margin: 0 0 22px;
}
.ph-body p:last-child { margin-bottom: 0; }
.ph-body strong { color: #fff; font-weight: 700; }
.seal {
  width: 116px; height: 116px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  margin-top: 6px;
}
.seal .s-top { font-size: 10px; letter-spacing: 0.2em; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.seal .s-main { font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: 0.08em; }

/* reasons */
.reasons { padding: 96px 0; }
.reason-list { border-top: 1px solid var(--line); margin-top: 8px; }
.reason {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 40px;
  align-items: baseline;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.reason .rnum {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--blue);
  letter-spacing: 0.1em;
  padding-top: 6px;
}
.reason .rnum span {
  display: block;
  font-size: 58px;
  color: var(--navy);
  line-height: 0.9;
  margin-top: 6px;
}
.reason h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  color: var(--navy);
  margin: 0 0 14px;
  letter-spacing: 0.03em;
}
.reason p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 2; max-width: 44em; }

/* flow steps */
.flow-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}
.flow-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 28px;
  position: relative;
  padding-bottom: 36px;
}
.flow-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px; top: 56px; bottom: -4px;
  width: 2px;
  background: var(--line);
}
.flow-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.flow-body { padding-top: 4px; }
.flow-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
  letter-spacing: 0.03em;
}
.flow-body p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.9; }

/* needs / こんな方へ */
.needs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
  margin-top: 40px;
  padding: 0;
}
.needs-grid li {
  list-style: none;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  padding: 20px 24px;
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.7;
}
.needs-grid li .nchk {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.needs-grid li .nchk svg { width: 13px; height: 13px; color: #fff; }

/* credo */
.credo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 40px;
}
.credo { background: #fff; padding: 34px 34px 32px; }
.credo .cn {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
}
.credo h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  color: var(--navy);
  margin: 8px 0 12px;
}
.credo p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.95; }

/* referral pull quote */
.referral { padding: 90px 0; background: var(--bg-tint); }
.referral-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.referral .rq {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--navy);
  line-height: 1.7;
  letter-spacing: 0.04em;
  margin: 0 0 28px;
}
.referral .rq em {
  font-style: normal;
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
}
.referral p { color: var(--ink-soft); font-size: 16px; line-height: 2.05; margin: 0 auto; max-width: 40em; }

@media (max-width: 860px) {
  .philosophy { padding: 60px 0; }
  .philosophy::before { font-size: 200px; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 32px; }
  .reasons { padding: 64px 0; }
  .reason { grid-template-columns: 1fr; gap: 8px; padding: 30px 0; }
  .reason .rnum span { font-size: 44px; }
  .needs-grid, .credo-grid { grid-template-columns: 1fr; }
  .referral { padding: 60px 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .info-block .addr { font-size: 12.5px; }
  .info-block .tel { font-size: 24px; }
}

@media (max-width: 920px) {
  .intro-grid { grid-template-columns: 1fr; gap: 0; }
  .intro-grid > aside { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
  .side-panel { margin-bottom: 0; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 76px; }
  .header-info { display: none; }
  .header-top { padding: 12px 0; }
  .brand .logo { font-size: 22px; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: var(--navy);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    padding: 0 11px;
  }
  .nav-toggle span { display: block; height: 2px; background: #fff; transition: transform 0.25s, opacity 0.2s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 560px; }
  .nav-list { flex-direction: column; }
  .nav-list > li { text-align: left; border-bottom: 1px solid var(--line-soft); }
  .nav-list > li > a { padding: 15px 24px; }
  .nav-list > li > a.active::after,
  .nav-list > li > a:hover::after { display: none; }

  .features { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(2) { border-right: none; }
  .feature:nth-child(1), .feature:nth-child(2) { border-bottom: 1px solid var(--line); }
  .intro-lower { grid-template-columns: 1fr; gap: 48px; }
  .about-grid, .svc-grid, .ov-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { height: 260px; }
  .hero .hero-img { height: 380px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.55)); }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .intro-grid > aside { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .feature { border-right: none; border-bottom: 1px solid var(--line); }
  .feature:last-child { border-bottom: none; }
  .contact-card { padding: 28px 22px 32px; }
  .hero h1 { font-size: 27px; }
  .sec-head h2, .panel-head h2, .block-title { font-size: 22px; }
  .btn-contact { display: none; }
}

/* ============================================================
   GLOBAL FIXES
   ============================================================ */

/* Contact page: tel number white on navy background */
.contact-page .contact-tel-band .ct-tel   { color: #fff; }
.contact-page .contact-tel-band .ct-label { color: rgba(255,255,255,0.85); }
.contact-page .contact-tel-band .ct-hours { color: rgba(255,255,255,0.65); }

/* About page: greeting grid (replaces inline style) */
.greeting-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

/* ============================================================
   MOBILE OPTIMIZATIONS
   ============================================================ */

.mob-bar { display: none; }

@media (max-width: 860px) {

  /* ── Fixed bottom CTA bar ── */
  .mob-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    height: 64px;
    box-shadow: 0 -3px 18px rgba(16,42,69,0.18);
  }
  .mob-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: opacity 0.15s;
  }
  .mob-bar a:active { opacity: 0.8; }
  .mob-bar a svg { width: 22px; height: 22px; flex-shrink: 0; }
  .mob-bar .mb-tel     { background: var(--navy); color: #fff; }
  .mob-bar .mb-contact { background: var(--blue);  color: #fff; }

  body { padding-bottom: 64px; }
  .to-top { bottom: 80px; right: 16px; width: 44px; height: 44px; }

  /* ── Hero ── */
  .hero { background: linear-gradient(135deg, #d6e7f5 0%, #c2d5e8 100%); }
  .hero .hero-img { height: 310px; }
  .hero-overlay {
    background: linear-gradient(180deg,
      rgba(255,255,255,0.96) 0%,
      rgba(255,255,255,0.84) 48%,
      rgba(255,255,255,0.22) 100%);
  }
  .hero-content { align-items: flex-start; padding-top: 26px; }
  .hero-eyebrow { font-size: 11.5px; margin-bottom: 12px; }
  .hero h1 { font-size: clamp(22px, 7vw, 34px); line-height: 1.55; margin-bottom: 14px; }
  .hero p.lead { font-size: 14.5px; line-height: 1.95; margin-bottom: 20px; max-width: 100%; }
  .btn-hero { padding: 14px 26px; font-size: 14.5px; gap: 8px; }

  /* ── About greeting: stack text first, image second ── */
  .greeting-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .greeting-grid > image-slot { order: 2; height: 220px !important; }
  .greeting-grid > div        { order: 1; }

  /* Force any inline-styled ov-grid to single column */
  .ov-grid { grid-template-columns: 1fr !important; gap: 28px !important; }

  /* ── Philosophy ── */
  .philosophy { padding: 56px 0; }
  .philosophy::before { font-size: 160px; }
  .philosophy-grid { gap: 28px; }
  .ph-statement h2 { font-size: clamp(30px, 9vw, 46px); margin-bottom: 20px; }
  .ph-body p { font-size: 15px; line-height: 2; overflow-wrap: break-word; }

  /* ── Reasons ── */
  .reasons { padding: 56px 0; }
  .reason { grid-template-columns: 1fr; gap: 4px; padding: 26px 0; }
  .reason .rnum {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
  }
  .reason .rnum span { display: inline; font-size: 42px; }
  .reason h3 { font-size: 19px; }
  .reason p  { font-size: 15px; }

  /* ── Referral quote ── */
  .referral { padding: 52px 0; }
  .referral .rq br { display: none; }
  .referral .rq { font-size: clamp(19px, 5.5vw, 28px); line-height: 1.8; }
  .referral p { font-size: 15px; line-height: 2; }

  /* ── Intro / sections ── */
  .intro       { padding: 44px 0 52px; }
  .overview,
  .about,
  .services,
  .pricing,
  .faq         { padding: 52px 0; }
  .page-section { padding: 52px 0; }

  /* ── CTA band ── */
  .cta-band    { padding: 44px 0; }
  .cta-band h2 { font-size: 21px; letter-spacing: 0.03em; }
  .cta-band p  { font-size: 14.5px; margin-bottom: 22px; }

  /* ── Price table: horizontal scroll ── */
  .price-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -18px;
    padding: 0 18px;
  }
  .price-table { min-width: 520px; }

  /* ── News list ── */
  .news-list a, .news-list .nrow { flex-wrap: wrap; gap: 5px 8px; }

  /* ── Tables ── */
  .office-table th { width: 72px; font-size: 13px; }
  .office-table td { font-size: 13px; padding-left: 10px; }
  .ov-table th     { width: 96px;  font-size: 13.5px; padding-left: 12px; }
  .ov-table td     { font-size: 13.5px; }

  /* ── FAQ ── */
  .faq-q { padding: 18px 16px; font-size: 15px; }

  /* ── Form: prevent iOS zoom (need ≥16px) ── */
  .form-row input, .form-row textarea { font-size: 16px; }

  /* ── Sidebar contact tel ── */
  .side-contact .tel { font-size: 24px; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 14px; }
  .hero .hero-img { height: 270px; }
  .hero p.lead { display: none; }
  .mob-bar { height: 60px; }
  body { padding-bottom: 60px; }
  .to-top { bottom: 76px; }
}
