/* ============================================
   VET OUSHIN TEMPLATE
   動物病院・往診専門 — 生成り×深緑×からし黄
   ヒーローは往診エリアの地図が主役。罫線と表で「段取りのよさ」を見せる
============================================ */

:root {
  /* Color */
  --paper: #f3efe6; /* 生成り（地の色） */
  --paper-2: #e9e3d5; /* 一段濃い生成り */
  --green: #2f4a3a; /* 深緑（文字・面） */
  --green-2: #46644f;
  --green-pale: #dfe5dc;
  --mustard: #d9a93a; /* からし黄（アクセント） */
  --mustard-pale: #f4e6c2;
  --ink: #26302a; /* 本文 */
  --ink-soft: #5d665f;
  --line: #cfc7b4; /* 罫線 */
  --white: #fffdf8;
  --line-green: #06c755;

  /* Font */
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-num: "BIZ UDPGothic", "Zen Kaku Gothic New", sans-serif;

  --radius: 6px;
  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open {
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
ul,
ol {
  list-style: none;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3 {
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.pc {
  display: none;
}
@media (min-width: 900px) {
  .pc {
    display: inline;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--green);
  color: #fff;
  padding: 8px 14px;
  z-index: 200;
}
.skip-link:focus {
  left: 8px;
}

/* ---------- 共通パーツ ---------- */
.section {
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
}
.label {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 14px;
  color: var(--green-2);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.label::after {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
}
.label--light {
  color: var(--mustard-pale);
}
.h2 {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 900;
  color: var(--green);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn--solid {
  background: var(--green);
  color: #fff;
}
.btn--solid:hover {
  background: var(--green-2);
}
.btn--line {
  background: var(--white);
  color: var(--green);
  border-color: var(--green);
}
.btn--line:hover {
  background: var(--green-pale);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 239, 230, 0.96);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--gutter);
  max-width: 1400px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green);
}
.logo__mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.logo__text {
  font-weight: 900;
  font-size: 16px;
  line-height: 1.3;
}
.logo__text small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__list {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
}
.nav__list a {
  text-decoration: none;
  padding: 6px 0;
  background: linear-gradient(var(--mustard), var(--mustard)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease);
}
.nav__list a:hover {
  background-size: 100% 2px;
}
.nav__tel {
  text-decoration: none;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 18px;
  color: var(--green);
  line-height: 1.2;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.nav__tel span {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-soft);
}
.menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  background: transparent;
  position: relative;
  cursor: pointer;
}
.menu-btn span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--green);
  transition: transform 0.3s var(--ease);
}
.menu-btn span:first-child {
  top: 19px;
}
.menu-btn span:last-child {
  top: 27px;
}
.menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 1080px) {
  .menu-btn {
    display: block;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px var(--gutter) 40px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
  }
  .nav__list {
    flex-direction: column;
    gap: 0;
    font-size: 17px;
  }
  .nav__list a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    background: none;
  }
  .nav__tel {
    border: 0;
    padding: 24px 0 0;
    font-size: 26px;
  }
}

/* ---------- Hero（地図が主役） ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(48px, 6vw, 80px);
  max-width: 1400px;
  margin: 0 auto;
}
.hero__eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-2);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  color: var(--green);
  line-height: 1.5;
  margin-bottom: 20px;
}
.hero__lead {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.hero__today {
  font-size: 14px;
  padding: 10px 14px;
  border-left: 4px solid var(--mustard);
  background: var(--white);
}
.hero__today.is-open {
  border-left-color: var(--green-2);
}

.hero__map {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(12px, 2vw, 24px);
  position: relative;
}
.map {
  width: 100%;
  height: auto;
  display: block;
  background: #f7f3ea;
}
.zone {
  stroke: var(--green);
  stroke-width: 1.5;
}
.zone--c {
  fill: rgba(217, 169, 58, 0.12);
  stroke-dasharray: 2 6;
}
.zone--b {
  fill: rgba(217, 169, 58, 0.2);
  stroke-dasharray: 6 6;
}
.zone--a {
  fill: rgba(47, 74, 58, 0.16);
}
.zlabel {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 15px;
  fill: var(--green);
  paint-order: stroke;
  stroke: #f7f3ea;
  stroke-width: 4px;
}
.town circle {
  fill: var(--green);
}
.town text {
  font-size: 15px;
  font-weight: 700;
  fill: var(--ink);
  paint-order: stroke;
  stroke: #f7f3ea;
  stroke-width: 4px;
}
.office rect {
  fill: var(--mustard);
  stroke: var(--green);
  stroke-width: 2;
}
.office__label {
  font-size: 14px;
  font-weight: 900;
  fill: var(--green);
  paint-order: stroke;
  stroke: #f7f3ea;
  stroke-width: 4px;
}
.map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 14px;
  font-size: 14px;
  font-family: var(--font-num);
}
.map__legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sw {
  width: 16px;
  height: 16px;
  border: 1px solid var(--green);
  display: inline-block;
}
.sw--a {
  background: rgba(47, 74, 58, 0.3);
}
.sw--b {
  background: rgba(217, 169, 58, 0.4);
}
.sw--c {
  background: rgba(217, 169, 58, 0.18);
}
.map__note {
  color: var(--ink-soft);
  font-family: var(--font-body);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__map {
    order: -1;
  }
}

/* ---------- News ---------- */
.news {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
}
.news__title {
  font-size: 16px;
  font-weight: 900;
  color: var(--green);
  padding-top: 18px;
}
.news__list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.news__list li:last-child {
  border-bottom: 1px solid var(--line);
}
.news time {
  font-family: var(--font-num);
  color: var(--green-2);
  font-weight: 700;
}
@media (max-width: 640px) {
  .news {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .news__list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ---------- できること ---------- */
.can__head {
  max-width: 760px;
  margin-bottom: 40px;
}
.can__lead {
  color: var(--ink-soft);
}
.can__cols {
  display: grid;
  grid-template-columns: 3fr 2fr;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  overflow: hidden;
}
.can__col {
  padding: clamp(24px, 3vw, 40px);
}
.can__col h3 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.can__col--yes {
  background: var(--white);
}
.can__col--yes h3::before,
.can__col--no h3::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--green);
  flex-shrink: 0;
}
.can__col--no {
  background: var(--paper-2);
  border-left: 2px solid var(--green);
}
.can__col--no h3::before {
  border-radius: 0;
  border: 0;
  background: linear-gradient(45deg, transparent 44%, var(--green) 44% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--green) 44% 56%, transparent 56%);
}
.can__col--yes ul {
  columns: 2;
  column-gap: 32px;
}
.can__col li {
  break-inside: avoid;
  padding: 9px 0 9px 18px;
  border-bottom: 1px dashed var(--line);
  position: relative;
  font-size: 15px;
}
.can__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 7px;
  height: 7px;
  background: var(--mustard);
}
.can__col li small {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
}
.can__partner {
  margin-top: 20px;
  font-size: 14px;
  padding: 14px;
  background: var(--white);
  border-radius: var(--radius);
}
@media (max-width: 860px) {
  .can__cols {
    grid-template-columns: 1fr;
  }
  .can__col--no {
    border-left: 0;
    border-top: 2px solid var(--green);
  }
}
@media (max-width: 560px) {
  .can__col--yes ul {
    columns: 1;
  }
}

/* ---------- 往診の1日 ---------- */
.day {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.day__photo {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.day__photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.timeline {
  border-left: 2px solid var(--green);
  margin: 8px 0 24px 8px;
}
.timeline li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 0 0 22px 20px;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--green);
}
.timeline time {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 18px;
  color: var(--green);
  line-height: 1.5;
}
.timeline b {
  display: block;
  font-weight: 700;
}
.timeline div {
  font-size: 15px;
  color: var(--ink-soft);
}
.timeline b {
  color: var(--ink);
}
.day__note {
  font-size: 14px;
  background: var(--mustard-pale);
  padding: 14px 18px;
  border-radius: var(--radius);
}
@media (max-width: 860px) {
  .day {
    grid-template-columns: 1fr;
  }
  .day__photo {
    position: static;
  }
  .day__photo img {
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 480px) {
  .timeline li {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ---------- 料金 ---------- */
.price {
  border-top: 1px solid var(--line);
}
.price__head {
  max-width: 720px;
  margin-bottom: 36px;
}
.price__head p:not(.label) {
  color: var(--ink-soft);
}
.price__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ptable {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 15px;
}
.ptable caption {
  text-align: left;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--green);
}
.ptable th,
.ptable td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.ptable thead th {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.ptable tbody th {
  font-family: var(--font-num);
  font-size: 20px;
  color: var(--green);
  width: 64px;
}
.ptable .num {
  font-family: var(--font-num);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.ptable__note {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 12px;
}

.sim {
  background: var(--green);
  color: #f3efe6;
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
}
.sim h3 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 16px;
}
.sim fieldset {
  border: 0;
  margin-bottom: 18px;
}
.sim legend {
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  opacity: 0.85;
}
.seg {
  display: flex;
  gap: 8px;
}
.seg label {
  flex: 1;
}
.seg input {
  position: absolute;
  opacity: 0;
}
.seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(243, 239, 230, 0.5);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-num);
  font-weight: 700;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.seg input:checked + span {
  background: var(--mustard);
  border-color: var(--mustard);
  color: var(--green);
}
.seg input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.chk {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-bottom: 1px solid rgba(243, 239, 230, 0.2);
  font-size: 15px;
  cursor: pointer;
}
.chk input {
  width: 20px;
  height: 20px;
  accent-color: var(--mustard);
  flex-shrink: 0;
}
.chk em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-num);
  font-size: 14px;
  opacity: 0.85;
}
.sim__out {
  font-size: 16px;
  border-top: 2px solid var(--mustard);
  padding-top: 14px;
}
.sim__out strong {
  font-family: var(--font-num);
  font-size: 36px;
  color: var(--mustard);
  margin: 0 4px;
}
.sim__out small {
  display: block;
  font-size: 13px;
  opacity: 0.8;
}
.sim__note {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 6px;
}
@media (max-width: 860px) {
  .price__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 在宅ケア ---------- */
.care {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--green);
  color: #ece7da;
}
.care__img img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.care__text {
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  max-width: 640px;
}
.care__text .h2 {
  color: #fff;
}
.care__text p {
  margin-bottom: 16px;
  font-size: 15px;
}
.care__list {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.care__list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 15px;
}
@media (max-width: 860px) {
  .care {
    grid-template-columns: 1fr;
  }
  .care__img img {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}

/* ---------- 獣医師・往診車 ---------- */
.team {
  display: grid;
  grid-template-columns: 5fr 6fr;
  grid-template-areas:
    "car doc"
    "pets doc";
  gap: clamp(24px, 4vw, 56px);
}
.team__car {
  grid-area: car;
}
.team__car img {
  border-radius: var(--radius);
  aspect-ratio: 10 / 7;
  object-fit: cover;
}
.team__cap {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
}
.team__doc {
  grid-area: doc;
}
.person {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.person h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}
.person h3 span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: 8px;
}
.person p {
  font-size: 15px;
}
.team__pets {
  grid-area: pets;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.team__pets img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 860px) {
  .team {
    grid-template-columns: 1fr;
    grid-template-areas: "doc" "car" "pets";
  }
}

/* ---------- 受付時間 ---------- */
.hours {
  border-top: 1px solid var(--line);
}
.hours__head {
  max-width: 720px;
  margin-bottom: 28px;
}
.hours__head p:not(.label) {
  color: var(--ink-soft);
}
.htable {
  width: 100%;
  min-width: 340px;
  border-collapse: collapse;
  background: var(--white);
  font-family: var(--font-num);
  text-align: center;
  table-layout: fixed;
}
.htable th,
.htable td {
  padding: 14px 4px;
  border: 1px solid var(--line);
  font-size: 16px;
}
.htable thead th {
  background: var(--paper-2);
  font-weight: 700;
}
.htable tbody th {
  font-family: var(--font-body);
  font-weight: 700;
  width: 30%;
  font-size: 15px;
  line-height: 1.4;
}
.htable tbody th small {
  display: block;
  font-family: var(--font-num);
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-soft);
}
.htable td {
  color: var(--green);
  font-weight: 700;
}
.htable .is-today {
  background: var(--mustard-pale);
}
.htable thead .is-today {
  background: var(--mustard);
  color: var(--green);
}
.hours__note {
  font-size: 14px;
  margin-top: 14px;
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.acc {
  border-bottom: 1px solid var(--line);
}
.acc:first-child {
  border-top: 1px solid var(--line);
}
.acc__q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  font-weight: 700;
  font-size: 16px;
  padding: 18px 44px 18px 0;
  min-height: 56px;
  position: relative;
  cursor: pointer;
}
.acc__q i {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  transition: transform 0.35s var(--ease);
}
.acc__q i::before,
.acc__q i::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 2px;
  background: var(--green);
}
.acc__q i::after {
  transform: rotate(90deg);
}
.acc__q[aria-expanded="true"] i {
  transform: rotate(45deg);
}
.acc__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.acc__a > div {
  overflow: hidden;
  min-height: 0;
}
.acc__a p {
  padding: 0 0 20px;
  color: var(--ink-soft);
  font-size: 15px;
}
.acc.is-open .acc__a {
  grid-template-rows: 1fr;
}
@media (max-width: 760px) {
  .faq {
    grid-template-columns: 1fr;
  }
}

/* ---------- 依頼・お問い合わせ ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding-top: 0;
}
.contact__call {
  background: var(--green);
  color: #ece7da;
  padding: clamp(32px, 4vw, 56px);
  border-radius: var(--radius) 0 0 var(--radius);
}
.contact__call .h2 {
  color: #fff;
}
.contact__tel {
  display: block;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  color: var(--mustard);
  text-decoration: none;
  margin: 18px 0 2px;
  line-height: 1.2;
}
.contact__time {
  font-size: 14px;
  margin-bottom: 24px;
}
.contact__call .btn--line {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 14px;
}
.form h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--green);
}
.form__hint {
  font-size: 14px;
  color: var(--ink-soft);
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}
.form input,
.form textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 400;
  min-height: 48px;
}
.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--mustard);
  outline-offset: 1px;
}
.form__msg {
  font-size: 14px;
  color: var(--green-2);
  font-weight: 700;
}
@media (max-width: 860px) {
  .contact {
    grid-template-columns: 1fr;
  }
  .contact__call {
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .form {
    border-left: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
  }
}

/* ---------- 事務所 ---------- */
.access {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  border-top: 1px solid var(--line);
}
.access__info {
  padding: clamp(48px, 6vw, 80px) var(--gutter);
}
.access dl {
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: 12px 16px;
  font-size: 15px;
}
.access dt {
  font-weight: 700;
  color: var(--green);
}
.access__map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
  filter: saturate(0.6);
}
@media (max-width: 860px) {
  .access {
    grid-template-columns: 1fr;
  }
  .access dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .access dd {
    margin-bottom: 10px;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #cfd3cc;
  text-align: center;
  padding: 40px var(--gutter) 96px;
  font-size: 14px;
}
.footer__name {
  font-weight: 900;
  color: #fff;
  font-size: 16px;
  margin-bottom: 4px;
}
.footer__copy {
  margin-top: 12px;
  opacity: 0.7;
}

/* スマホ下部の電話ボタン */
.sp-call {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  background: var(--mustard);
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(38, 48, 42, 0.25);
}
@media (max-width: 760px) {
  .sp-call {
    display: flex;
  }
}

/* ---------- スクロール出現（JSが動いたときだけ） ---------- */
html.js .rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .rv.is-in {
  opacity: 1;
  transform: none;
}
html.js .hero .rv {
  transform: translateY(12px);
  transition-duration: 0.8s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html.js .rv {
    opacity: 1;
    transform: none;
  }
}

/* スマホでは地図の文字を大きく（SVGが縮むぶんを補う） */
@media (max-width: 600px) {
  .town text {
    font-size: 24px;
  }
  .zlabel,
  .office__label {
    font-size: 22px;
  }
}

/* 細かな折り返しの調整 */
.ptable th {
  white-space: nowrap;
}
.contact__tel {
  white-space: nowrap;
  font-size: clamp(28px, 7.5vw, 44px);
}
@media (max-width: 480px) {
  .htable th,
  .htable td {
    padding: 12px 2px;
    font-size: 15px;
  }
  .htable tbody th {
    font-size: 14px;
  }
  .htable tbody th small {
    font-size: 12px;
    white-space: nowrap;
    letter-spacing: 0;
  }
}
