/* ============================================
   VET EXOTIC TEMPLATE
   エキゾチックアニマル対応の動物病院
   ジャングルティール × マスタード × オフホワイト
   ボックス（ベント）グリッドで情報を区切る
============================================ */

:root {
  /* Color */
  --teal: #0f4f4a; /* ジャングルティール（メイン） */
  --teal-deep: #0a3934;
  --teal-mid: #1d6c63;
  --teal-soft: #d6e5df;
  --mustard: #e3a82b; /* マスタード（アクセント） */
  --mustard-deep: #b98315;
  --mustard-soft: #f4dc9c;
  --off: #f5f0e4; /* オフホワイト（背景） */
  --paper: #fffcf4; /* 白ボックス */
  --ink: #14221f; /* 文字・線 */
  --ink-soft: #4a5955;
  --warn: #b3412a; /* 注意書きのみ */

  /* Font */
  --font-head: "Dela Gothic One", "Zen Kaku Gothic New", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;

  /* Shape — 角丸は箱ごとに統一、影は付けずに線と色面で区切る */
  --line: 2px solid var(--ink);
  --radius: 20px;
  --radius-sm: 12px;
  --gap: 14px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  background: var(--off);
  color: var(--ink);
  line-height: 1.8;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
}

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

h1,
h2,
h3 {
  word-break: keep-all;
  overflow-wrap: anywhere;
  font-weight: 400;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sp-only {
  display: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: var(--line);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  transition:
    transform 0.25s var(--ease),
    background-color 0.25s ease,
    color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--mustard {
  background: var(--mustard);
}

.btn--mustard:hover {
  background: var(--mustard-soft);
}

.btn--line {
  background: transparent;
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.btn--line:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
  min-width: 220px;
}

.btn--ink:hover {
  background: var(--teal);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: var(--off);
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.header.is-scrolled {
  border-bottom-color: var(--ink);
}

.header__inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo__mark {
  flex-shrink: 0;
  display: flex;
}

.logo__text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1.25;
  white-space: nowrap;
}

.logo__text small {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  color: var(--teal-mid);
  letter-spacing: 0.08em;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  display: block;
  padding: 8px 11px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.nav__link:hover {
  background: var(--teal-soft);
}

.nav__link--cta {
  margin-left: 8px;
  background: var(--teal);
  color: var(--off);
  padding: 10px 16px;
}

.nav__link--cta:hover {
  background: var(--teal-deep);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: var(--line);
  background: var(--mustard);
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav-toggle span:nth-child(1) {
  top: 15px;
}
.nav-toggle span:nth-child(2) {
  top: 22px;
}
.nav-toggle span:nth-child(3) {
  top: 29px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Bento / Box（このテンプレの基本部品） ---------- */
.bento {
  display: grid;
  gap: var(--gap);
}

.box {
  position: relative;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(18px, 2.4vw, 28px);
  overflow: hidden;
  min-width: 0;
}

.box--teal {
  background: var(--teal);
  color: var(--off);
  border-color: var(--teal-deep);
}

.box--mustard {
  background: var(--mustard);
}

.box--line {
  background: transparent;
  border-style: dashed;
}

.box--photo {
  padding: 0;
  min-height: 180px;
  background: var(--teal-soft);
}

.box--photo > img,
.box--photo > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  transition: transform 0.8s var(--ease);
}

.box--photo:hover > img {
  transform: scale(1.03);
}

/* 写真の左下に付く小さな札 */
.tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 12px;
  background: var(--paper);
  border: var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 16px) 0 clamp(28px, 4vw, 48px);
}

.hero__bento {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(160px, auto);
  grid-template-areas:
    "t t t t r r"
    "t t t t r r"
    "s k k k b h"
    "f k k k b h";
}

.hero__title-box {
  grid-area: t;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  background: var(--paper);
  padding: clamp(24px, 4vw, 48px);
}

.hero__p1 {
  grid-area: r;
}
.hero__p2 {
  grid-area: b;
}
.hero__p3 {
  grid-area: k;
}
.hero__p4 {
  grid-area: h;
}
.hero__status {
  grid-area: s;
}
.hero__fact {
  grid-area: f;
}

.hero__kicker {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 12px;
  background: var(--teal-soft);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(34px, 5.4vw, 70px);
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.hero__title span {
  display: block;
}

.hero__title span:nth-child(2) {
  color: var(--teal);
}

.hero__title span:nth-child(3) {
  /* 下線代わりのマスタードの帯 */
  background: linear-gradient(transparent 68%, var(--mustard-soft) 68%, var(--mustard-soft) 92%, transparent 92%);
  display: inline;
}

.hero__lead {
  max-width: 34em;
  font-size: 15px;
  color: var(--ink-soft);
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 本日の診療ボックス */
.status__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--mustard-soft);
}

.status__now {
  white-space: pre-line;
  margin-top: 6px;
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1.45;
}

.status__now.is-open::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--mustard);
  vertical-align: 2px;
}

.status__note {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.85;
}


.fact__num {
  font-family: var(--font-head);
  font-size: 56px;
  line-height: 1;
}

.fact__num small {
  font-size: 18px;
  margin-left: 4px;
}

.fact__txt {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

/* ---------- News（帯） ---------- */
.news {
  padding-bottom: clamp(32px, 5vw, 56px);
}

.news__inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: start;
}

.news__title {
  font-family: var(--font-head);
  font-size: 22px;
  padding-top: 10px;
}

.news__list {
  border-top: var(--line);
}

.news__list li {
  display: grid;
  grid-template-columns: 104px 60px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(20, 34, 31, 0.25);
  font-size: 15px;
}

.news__list time {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--teal-mid);
  letter-spacing: 0.04em;
}

.news__cat {
  justify-self: start;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--teal);
  color: var(--off);
  font-size: 14px;
  font-weight: 700;
}

.news__cat--alt {
  background: var(--mustard);
  color: var(--ink);
}

.news__list a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}

.news__list a:hover {
  text-decoration-color: currentColor;
}

/* ---------- Section 共通 ---------- */
.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.sec-head {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.sec-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: end;
}

.sec-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.25;
}

.sec-lead {
  margin-top: 10px;
  max-width: 40em;
  color: var(--ink-soft);
  font-size: 15px;
}

.sec-head--split .sec-lead {
  margin-top: 0;
}

/* ---------- 診療対象：動物ごとの診療メモ（タブ） ---------- */
.animals {
  background: var(--teal);
  color: var(--off);
}

.animals .sec-lead {
  color: var(--teal-soft);
}

.zoo {
  border: 2px solid var(--off);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--teal-deep);
}

.zoo__tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 2px solid var(--off);
}

.zoo__tab {
  min-height: 60px;
  padding: 10px 8px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  color: var(--off);
  border-right: 2px solid var(--off);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.zoo__tab:last-child {
  border-right: 0;
}

.zoo__tab:hover {
  background: var(--teal-mid);
}

.zoo__tab.is-active {
  background: var(--mustard);
  color: var(--ink);
}

.zoo__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 420px;
}

.zoo__panel[hidden] {
  display: none;
}

.zoo__panel.is-active {
  animation: panelIn 0.35s ease-out;
}

@keyframes panelIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.zoo__photo {
  position: relative;
  min-height: 260px;
  border-right: 2px solid var(--off);
}

.zoo__photo img,
.zoo__photo svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zoo__memo {
  padding: clamp(22px, 3.4vw, 40px);
}

.zoo__name {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
  color: var(--mustard);
}

.zoo__intro {
  margin-top: 10px;
  font-size: 15px;
}

.memo {
  margin-top: 20px;
  border-top: 1px solid rgba(245, 240, 228, 0.35);
}

.memo__row {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(245, 240, 228, 0.35);
  font-size: 15px;
}

.memo__row dt {
  font-weight: 900;
  color: var(--mustard-soft);
}

.memo__warn {
  margin-top: 18px;
  padding: 12px 16px;
  background: var(--off);
  color: var(--warn);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
}

/* ---------- 診療科目 ---------- */
.service__bento {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
}

.svc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}

.svc--wide {
  grid-column: span 2;
}

.svc--tall {
  grid-row: span 2;
  justify-content: flex-end;
}

.svc--photo {
  min-height: 200px;
  grid-row: span 2;
}

.svc__no {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--teal-mid);
  letter-spacing: 0.08em;
}

.box--teal .svc__no {
  color: var(--mustard);
}

.box--mustard .svc__no {
  color: var(--ink);
}

.svc__name {
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1.35;
}

.svc--tall .svc__name {
  font-size: 30px;
}

.svc__note {
  margin-top: 8px;
  align-self: flex-start;
  padding: 2px 12px;
  border: var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

/* ---------- 診療時間 ---------- */
.hours {
  background: var(--paper);
  border-top: var(--line);
  border-bottom: var(--line);
}

.hours__wrap {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  grid-template-areas:
    "head head"
    "box side";
  gap: 20px;
}

.hours__head {
  grid-area: head;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}

.hours__today {
  font-weight: 700;
  font-size: 15px;
}

.hours__today.is-open {
  color: var(--teal);
}

.hours__today strong {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 12px;
  background: var(--mustard);
  border-radius: 6px;
}

.hours__box {
  grid-area: box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hours__side {
  grid-area: side;
  font-size: 15px;
  align-self: start;
}

.hours__side-title {
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.timetable {
  width: 100%;
  min-width: 330px;
  border-collapse: separate;
  border-spacing: 0;
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  table-layout: fixed;
  text-align: center;
}

.timetable th,
.timetable td {
  padding: 16px 4px;
  border-right: 1px solid rgba(20, 34, 31, 0.2);
  border-bottom: 1px solid rgba(20, 34, 31, 0.2);
  font-size: 16px;
}

.timetable tr > :last-child {
  border-right: 0;
}

.timetable tbody tr:last-child > * {
  border-bottom: 0;
}

.timetable thead th {
  background: var(--teal);
  color: var(--off);
  font-family: var(--font-head);
  font-weight: 400;
}

.timetable__corner {
  width: 128px;
}

.timetable tbody th {
  text-align: left;
  padding-left: 16px;
  font-weight: 900;
  line-height: 1.4;
}

.timetable tbody th span {
  display: block;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 今日の列（JSで .is-today を付ける） */
.timetable .is-today {
  background: var(--mustard-soft);
}

.timetable thead .is-today {
  background: var(--mustard);
  color: var(--ink);
}

.mk {
  display: inline-block;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}

.mk--on {
  color: var(--teal);
}

.mk--tri {
  color: var(--mustard-deep);
}

.mk--off {
  color: var(--ink-soft);
  font-size: 14px;
}

.mk sup {
  font-size: 12px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

.legend li {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

/* ---------- 獣医師・スタッフ ---------- */
.staff__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "main main sub"
    "main main team";
  gap: var(--gap);
}

.staff__main {
  grid-area: main;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  padding: 0;
}

.staff__sub {
  grid-area: sub;
  font-size: 15px;
}

.staff__team {
  grid-area: team;
  font-size: 15px;
}

.staff__photo {
  position: relative;
  min-height: 320px;
  border-right: var(--line);
}

.staff__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff__photo--sm {
  float: right;
  width: 96px;
  height: 96px;
  min-height: 0;
  margin: 0 0 10px 14px;
  border: 2px solid var(--off);
  border-radius: 50%;
  overflow: hidden;
}

.staff__body {
  padding: clamp(22px, 3vw, 36px);
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.staff__role {
  font-size: 14px;
  font-weight: 900;
  color: var(--teal-mid);
}

.box--teal .staff__role {
  color: var(--mustard);
}

.staff__name {
  font-family: var(--font-head);
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.staff__name small {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.75;
}

.staff__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.staff__tags li {
  padding: 2px 12px;
  background: var(--teal-soft);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.staff__quote {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--mustard-soft);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.staff__quote span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}

/* ---------- 設備 ---------- */
.facility {
  padding-top: 0;
}

.facility__bento {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(260px, auto);
}

.fac--big {
  grid-column: span 2;
  grid-row: span 2;
}

.fac figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 10px 14px;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.6;
}

.fac figcaption strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 17px;
}

.fac--list {
  font-size: 15px;
}

.fac__list-title {
  font-family: var(--font-head);
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--mustard);
}

.fac--list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(245, 240, 228, 0.3);
}

/* ---------- 初診の流れ ---------- */
.first {
  background: var(--mustard);
  border-top: var(--line);
  border-bottom: var(--line);
}

.first__wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.first__photo {
  position: relative;
  margin-top: 24px;
  aspect-ratio: 4 / 3;
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.first__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.first__photo figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 12px;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.steps {
  counter-reset: none;
  border-top: var(--line);
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: var(--line);
  font-size: 15px;
}

.step__no {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--ink);
  color: var(--mustard);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 26px;
}

.step__title {
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 4px;
}

/* ---------- ご予約・お問い合わせ ---------- */
.contact__bento {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "tel form form"
    "line form form"
    "ext form form";
}

.ct {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.25s var(--ease);
}

.ct:hover {
  transform: translateY(-3px);
}

.ct--tel {
  grid-area: tel;
}
.contact__bento .ct:nth-child(2) {
  grid-area: line;
}
.contact__bento .ct:nth-child(3) {
  grid-area: ext;
}

.ct__label {
  font-weight: 900;
  font-size: 15px;
}

.ct__big {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.3vw, 28px);
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
}

.ct__sub {
  font-size: 14px;
  line-height: 1.7;
}

.ct__arrow {
  position: absolute;
  right: 18px;
  top: 14px;
  font-family: var(--font-head);
  font-size: 20px;
}

.ct-form {
  grid-area: form;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ct-form__title {
  font-family: var(--font-head);
  font-size: 22px;
}

.ct-form__note {
  font-size: 14px;
  color: var(--ink-soft);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  min-width: 0;
}

.field em {
  margin-left: 8px;
  padding: 0 6px;
  font-style: normal;
  font-size: 12px;
  background: var(--warn);
  color: var(--paper);
  border-radius: 4px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: var(--line);
  border-radius: var(--radius-sm);
  background: var(--off);
  font-size: 16px;
  font-weight: 500;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--mustard);
}

.ct-form .btn {
  align-self: flex-start;
}

.ct-form__msg {
  min-height: 1.8em;
  font-weight: 700;
  color: var(--teal);
}

/* ---------- 夜間・緊急 ---------- */
.emergency {
  background: var(--ink);
  color: var(--off);
  padding: clamp(48px, 6vw, 80px) 0;
}

.emergency__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.emergency__title {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.35;
  margin-bottom: 14px;
}

.emergency__text > p {
  font-size: 15px;
  color: #cfd8d4;
}

.emergency__check {
  margin-top: 16px;
}

.emergency__check li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: 15px;
  font-weight: 700;
}

.emergency__check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--mustard);
}

.emergency__card {
  padding: 26px;
  border: 2px solid var(--mustard);
  border-radius: var(--radius);
}

.emergency__card-label {
  font-size: 14px;
  font-weight: 900;
  color: var(--mustard);
}

.emergency__card-name {
  font-weight: 700;
  margin: 4px 0 10px;
}

.emergency__tel {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: 0.04em;
  color: var(--mustard);
  border-bottom: 2px solid currentColor;
  line-height: 1.3;
}

.emergency__card-time {
  margin-top: 10px;
  font-size: 14px;
  color: #cfd8d4;
}

/* ---------- アクセス ---------- */
.access__bento {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "info map map"
    "park map map";
}

.access__info {
  grid-area: info;
}

.access__parking {
  grid-area: park;
  font-size: 15px;
}

.access__map {
  grid-area: map;
  min-height: 400px;
}

.access__dl {
  margin-top: 16px;
  font-size: 15px;
}

.access__dl div {
  display: grid;
  grid-template-columns: 3.5em 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(20, 34, 31, 0.2);
}

.access__dl dt {
  font-weight: 900;
  color: var(--teal-mid);
}

.access__dl a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.parking__num {
  font-family: var(--font-head);
  font-size: 60px;
  line-height: 1;
  margin-bottom: 8px;
}

.parking__num small {
  font-size: 20px;
  margin-left: 4px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--teal-deep);
  color: var(--off);
  padding: 48px 0 24px;
  font-size: 14px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer__name {
  font-family: var(--font-head);
  font-size: 20px;
  margin-bottom: 6px;
}

.footer__brand a {
  text-decoration: underline;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-content: flex-start;
}

.footer__nav a {
  display: inline-block;
  padding: 10px 2px;
}

.footer__nav a:hover {
  color: var(--mustard);
}

.footer__copy {
  margin-top: 28px;
  text-align: center;
  opacity: 0.7;
}

/* ---------- Page top ---------- */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  border: var(--line);
  background: var(--mustard);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s;
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- Scroll reveal（箱が順にすっと置かれる。拡大縮小はしない） ----------
   html.js-bento のときだけ隠す＝JSが動かなければ最初から見える */
.js-bento [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

.js-bento [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s ease-out,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__link {
    padding: 8px 8px;
    font-size: 13px;
  }
}

@media (max-width: 960px) {
  .pc-only {
    display: none;
  }

  /* モバイルメニュー：ティールの全画面パネル */
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: var(--teal);
    padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0.3s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav__link {
    padding: 14px 18px;
    font-family: var(--font-head);
    font-weight: 400;
    font-size: 20px;
    color: var(--off);
    border: 2px solid rgba(245, 240, 228, 0.4);
    border-radius: var(--radius-sm);
  }

  .nav__link:hover {
    background: var(--teal-mid);
  }

  .nav__link--cta {
    margin: 8px 0 0;
    background: var(--mustard);
    color: var(--ink);
    border-color: var(--mustard);
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .logo {
    position: relative;
    z-index: 120;
    color: var(--off);
  }

  .hero__bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "t t t t"
      "r r b b"
      "r r h h"
      "s s k k"
      "f f k k";
  }

  .sec-head--split {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .zoo__tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .zoo__tab:nth-child(3) {
    border-right: 0;
  }

  .zoo__tab:nth-child(-n + 3) {
    border-bottom: 2px solid var(--off);
  }

  .service__bento,
  .facility__bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hours__wrap {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "box"
      "side";
  }

  .staff__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "main main"
      "sub team";
  }

  .first__wrap {
    grid-template-columns: 1fr;
  }

  .first__photo {
    max-width: 520px;
  }

  .contact__bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "tel tel"
      "line ext"
      "form form";
  }

  .emergency__inner {
    grid-template-columns: 1fr;
  }

  .access__bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "info park"
      "map map";
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 64px;
    --gap: 10px;
    --radius: 16px;
  }

  .sp-only {
    display: inline;
  }

  .logo__text {
    font-size: 15px;
  }

  .logo__mark svg {
    width: 32px;
    height: 32px;
  }

  .hero__bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    grid-template-areas:
      "t t"
      "r r"
      "s s"
      "b h"
      "k k"
      "f f";
  }

  .hero__p1 {
    min-height: 260px;
  }

  .hero__p2,
  .hero__p4 {
    min-height: 200px;
  }

  .hero__btns .btn {
    flex: 1 1 100%;
  }

  .news__inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .news__list li {
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
  }

  .news__list a {
    grid-column: 1 / -1;
  }

  .zoo__tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zoo__tab {
    border-bottom: 2px solid var(--off);
    font-size: 15px;
  }

  .zoo__tab:nth-child(3) {
    border-right: 2px solid var(--off);
  }

  .zoo__tab:nth-child(2n) {
    border-right: 0;
  }

  .zoo__tab:nth-child(n + 5) {
    border-bottom: 0;
  }

  .zoo__panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .zoo__photo {
    min-height: 220px;
    border-right: 0;
    border-bottom: 2px solid var(--off);
  }

  .memo__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .service__bento,
  .facility__bento {
    grid-template-columns: 1fr;
  }

  .svc--wide,
  .fac--big {
    grid-column: auto;
  }

  .svc--tall,
  .fac--big {
    grid-row: auto;
  }

  .fac--big {
    min-height: 300px;
  }

  .facility__bento {
    grid-auto-rows: auto;
  }

  .fac {
    min-height: 260px;
  }

  .fac--list {
    min-height: 0;
  }

  /* 表は文字を少し詰めて375pxでも1画面に収める（念のため横スクロール枠つき） */
  .timetable th,
  .timetable td {
    padding: 12px 2px;
    font-size: 14px;
  }

  .timetable__corner {
    width: 76px;
  }

  .timetable tbody th {
    padding-left: 8px;
  }

  .timetable tbody th span {
    font-size: 14px;
    letter-spacing: 0;
  }

  .mk {
    font-size: 16px;
  }

  .staff__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "sub"
      "team";
  }

  .staff__main {
    grid-template-columns: 1fr;
  }

  .staff__photo {
    min-height: 300px;
    border-right: 0;
    border-bottom: var(--line);
  }

  .staff__photo--sm {
    min-height: 0;
    border-bottom: 2px solid var(--off);
  }

  .step {
    grid-template-columns: 52px 1fr;
    gap: 12px;
  }

  .step__no {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .contact__bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tel"
      "line"
      "ext"
      "form";
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .ct-form .btn {
    align-self: stretch;
  }

  .access__bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      "info"
      "park"
      "map";
  }

  .access__map {
    min-height: 300px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }

  .js-bento [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
