:root {
  --green-900: #163a2e;
  --green-800: #1f4a3a;
  --green-700: #2c5e4b;
  --green-100: #e3ece6;
  --paper: #f7f5f0;
  --white: #ffffff;
  --ink: #23292a;
  --muted: #59625e;
  --line: #dcdfd7;
  --gold: #a8874f;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-700); text-underline-offset: 0.2em; }

a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3 { margin: 0; }

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.narrow { max-width: 760px; }

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--green-800);
  text-decoration: none;
  white-space: nowrap;
}

.nav { display: none; }

.header-tel { display: none; }

@media (min-width: 900px) {
  .nav {
    display: flex;
    gap: 22px;
    margin-left: auto;
    font-size: 15px;
  }
  .nav a {
    color: var(--ink);
    text-decoration: none;
  }
  .nav a:hover { color: var(--green-700); text-decoration: underline; }
  .header-tel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 18px;
    color: var(--green-800);
    text-decoration: none;
    letter-spacing: 0.04em;
  }
  .header-tel svg { width: 18px; height: 18px; fill: currentColor; }
}

section { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ヒーロー */
.hero {
  background: var(--green-800);
  background-image: linear-gradient(160deg, var(--green-800) 0%, var(--green-900) 100%);
  color: #fff;
  padding: 40px 0 48px;
}

.hero-inner {
  display: grid;
  gap: 32px;
}

.hero-eyebrow {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: #cfe0d5;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 8vw, 46px);
  line-height: 1.4;
  letter-spacing: 0.04em;
  margin: 10px 0 14px;
  word-break: keep-all;
}

.hero-lead {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 17px;
  word-break: keep-all;
}

.hero-actions {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

@media (min-width: 800px) {
  .hero { padding: 80px 0 88px; text-align: center; }
  .hero-text { max-width: 680px; margin: 0 auto; }
  .hero-lead { display: inline-block; padding: 18px 2em 0; }
  .hero-actions {
    grid-template-columns: auto auto;
    justify-content: center;
  }
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
}

.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }

.btn-light {
  background: #fff;
  color: var(--green-800);
}

.btn-light strong { font-size: 21px; letter-spacing: 0.05em; }

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-primary {
  background: var(--green-800);
  color: #fff;
}

.btn-primary:hover { background: var(--green-700); }

/* セクション共通 */
.section { padding: 60px 0; }

.section-white { background: var(--white); }

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 5.8vw, 28px);
  letter-spacing: 0.08em;
  color: var(--green-800);
}

.section-title::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
  flex: none;
}

@media (min-width: 800px) {
  body { font-size: 18px; }
  .section { padding: 88px 0; }
}

/* ごあいさつ */
.container.mid { max-width: 920px; }

.greeting-grid {
  display: grid;
  gap: 32px;
}

.greeting-photo {
  margin: 0 auto;
  width: 100%;
  max-width: 240px;
}

.greeting-photo img {
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(31, 74, 58, 0.18);
}

@media (min-width: 720px) {
  .greeting-grid {
    grid-template-columns: 240px 1fr;
    align-items: start;
    gap: 44px;
  }
  .greeting-photo { margin: 0; }
}

.greeting p { margin: 0 0 1.1em; }

.signature {
  text-align: right;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.1em;
}

/* 業務内容 */
.services {
  display: grid;
  gap: 20px;
}

.service {
  background: var(--paper);
  border-top: 4px solid var(--green-800);
  border-radius: 6px;
  padding: 24px 22px 10px;
}

.service h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.08em;
  color: var(--green-800);
  margin-bottom: 14px;
}

.service dl { margin: 0; }

.service dt {
  font-weight: 700;
  font-size: 17px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.service dt:first-child { border-top: 0; padding-top: 0; }

.service dd {
  margin: 4px 0 14px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
}

@media (min-width: 900px) {
  .services { grid-template-columns: repeat(3, 1fr); }
}

/* 経歴 */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--green-100);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 4.8em 1fr;
  gap: 4px 14px;
  padding: 12px 0 12px 22px;
}

@media (min-width: 600px) {
  .timeline li { grid-template-columns: 6.5em 1fr; gap: 4px 16px; }
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 21px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--green-700);
}

.timeline li:last-child::before { background: var(--green-700); }

.tl-year {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--green-800);
  line-height: 1.5;
}

.tl-year small {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}

.tl-text { line-height: 1.6; padding-top: 1px; word-break: keep-all; }

/* 事務所案内・アクセス */
.access-grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 900px) {
  .access-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
}

.info {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
}

.info dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-700);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.info dt:first-child { border-top: 0; padding-top: 0; }

.info dd {
  margin: 2px 0 14px;
  overflow-wrap: anywhere;
}

@media (min-width: 600px) {
  .info { grid-template-columns: 6.5em 1fr; }
  .info dt, .info dd {
    padding: 14px 0;
    margin: 0;
    border-top: 1px solid var(--line);
  }
  .info dt:first-child, .info dt:first-child + dd { border-top: 0; padding-top: 0; }
  .info dt { font-size: 15px; }
}

.routes {
  background: var(--paper);
  border-radius: 6px;
  padding: 22px 20px;
}

.routes h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--green-800);
  margin-bottom: 10px;
}

.routes ul { list-style: none; margin: 0; padding: 0; }

.routes li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  line-height: 1.8;
}

.routes li:first-child { border-top: 0; }

.routes strong {
  display: block;
  font-size: 16.5px;
  color: var(--ink);
}

.map-figure {
  margin: 40px -20px 0;
}

.map-figure img {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.map-figure figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 8px 20px 0;
}

@media (min-width: 600px) {
  .map-figure { margin: 40px 0 0; }
  .map-figure img { border: 1px solid var(--line); border-radius: 6px; }
  .map-figure figcaption { margin: 8px 0 0; }
}

.gmap {
  margin-top: 28px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--green-100);
}

@media (min-width: 800px) {
  .gmap { aspect-ratio: 16 / 7; }
}

.gmap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.gmap-link {
  margin: 16px 0 0;
  text-align: center;
}

.gmap-link .btn { width: 100%; max-width: 420px; }

/* フッター */
.site-footer {
  background: var(--green-900);
  color: #dfe9e3;
  padding: 36px 0;
  font-size: 14px;
  line-height: 1.8;
}

.site-footer p { margin: 0; }

.footer-name {
  font-family: var(--serif);
  font-size: 17px;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 8px !important;
}

.footer-address { word-break: keep-all; }

.copyright {
  margin-top: 16px !important;
  font-size: 12px;
  color: #a9bfb2;
}

/* スマホ下部の固定ボタン */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

.callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}

.callbar svg { width: 22px; height: 22px; fill: currentColor; }

.callbar-tel { background: var(--green-800); color: #fff; }

.callbar-map {
  border: 1.5px solid var(--green-800);
  color: var(--green-800);
  background: #fff;
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
}
