/* ============================================
   VET EMERGENCY TEMPLATE
   24時間・夜間救急の動物病院 — ほぼ黒の濃紺 × 救急レッド × アンバー
   太いゴシック＋コンデンス英数字、画面下の大きな電話ボタン
============================================ */

:root {
  /* Color（本文は背景とのコントラスト比 7:1 以上を目安に） */
  --bg: #0a0e15; /* ほぼ黒の濃紺 */
  --bg-2: #0f1520;
  --panel: #151d2b;
  --panel-2: #1b2536;
  --line: #2a3649;
  --text: #eef2f7;
  --text-sub: #c0c9d6;
  --muted: #95a1b4;
  --red: #d42a22; /* ボタン地（白文字で約5:1） */
  --red-deep: #a81d17;
  --red-text: #ff6f63; /* 暗い背景にのせる赤文字 */
  --amber: #ffb627;
  --amber-dim: #3a2b0c;
  --slate: #9ec0e6; /* LEVEL3・日中の色 */
  --white: #ffffff;

  /* Font */
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Barlow Condensed", "Zen Kaku Gothic New", sans-serif;

  /* Shape：角はほぼ立てる。丸は「ライブの点」だけ */
  --radius: 4px;
  --radius-sm: 2px;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --callbar-h: 76px;
}

/* ---------- 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(--bg);
  color: var(--text);
  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(--amber);
  outline-offset: 3px;
}

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

h1,
h2,
h3 {
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 400;
  padding: 8px 16px;
  background: var(--amber);
  color: #000;
  font-weight: 700;
}

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

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

.pc-only {
  display: inline;
}

.sp-only {
  display: none;
}

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

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

/* ---------- Status bar（いま受付中） ---------- */
.statusbar {
  background: #05070b;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.statusbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 2px 10px 2px 8px;
  border: 1px solid var(--red-text);
  color: var(--red-text);
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.live__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red-text);
}

.live.is-day {
  border-color: var(--slate);
  color: var(--slate);
}

.live.is-day .live__dot {
  background: var(--slate);
}

.statusbar__msg {
  color: var(--text-sub);
  flex: 1;
  min-width: 0;
}

.statusbar__clock {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 21, 0.97);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}

.header.is-scrolled {
  background: #070a10;
}

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--red-text);
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.logo__text small {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.header__tel {
  order: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--red);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.header__tel small {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.header__tel:hover {
  background: var(--red-deep);
}

.nav {
  margin-left: auto;
}

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

.nav__link {
  display: block;
  white-space: nowrap;
  padding: 10px 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
  position: relative;
  transition: color 0.2s;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav__link:hover {
  color: var(--white);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__link--line {
  border: 1px solid var(--line);
  margin-left: 6px;
}

.nav__tel {
  display: none;
}

.nav-toggle {
  display: none;
  order: 4;
  width: 48px;
  height: 48px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  position: absolute;
  left: 13px;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle span:nth-child(1) {
  top: 16px;
}
.nav-toggle span:nth-child(2) {
  top: 23px;
}
.nav-toggle span:nth-child(3) {
  top: 30px;
}

.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);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.2s;
}

.btn--red {
  background: var(--red);
  color: var(--white);
}

.btn--red:hover {
  background: var(--red-deep);
}

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px 16px 22px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: background 0.2s;
}

.call-btn:hover {
  background: var(--red-deep);
}

.call-btn span {
  display: flex;
  flex-direction: column;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1;
  letter-spacing: 0.03em;
}

.call-btn small {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

/* ---------- Section head（番号＋日本語見出し。英語の二段重ねはしない） ---------- */
.sec-head {
  margin-bottom: clamp(36px, 5vw, 56px);
}

.sec-head--split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px 64px;
  align-items: end;
}

.sec-head__no {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: 14px;
}

.sec-head__title {
  font-weight: 900;
  font-size: clamp(28px, 4.2vw, 48px);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.sec-head__note {
  color: var(--text-sub);
  font-size: 15px;
  border-left: 3px solid var(--line);
  padding-left: 18px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 52%;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.8);
}

/* 写真の左側を背景色に溶かして、文字の下は必ず暗くする */
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(10, 14, 21, 0.75) 30%, rgba(10, 14, 21, 0.1) 70%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px var(--gutter) 64px;
}

.hero__kicker {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-sub);
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 18px;
}

.hero__num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: var(--amber);
}

.hero__sep {
  font-family: var(--font-en);
  font-size: 40px;
  color: var(--line);
  margin: 0 8px;
}

.hero__title {
  font-weight: 900;
  font-size: clamp(36px, 6.4vw, 76px);
  line-height: 1.22;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  max-width: 13em;
}

.hero__title em {
  font-style: normal;
  color: var(--red-text);
}

.hero__lead {
  color: var(--text-sub);
  font-size: 17px;
  max-width: 34em;
  margin-bottom: 32px;
}

.hero__call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-bottom: 44px;
}

.hero__sub {
  font-weight: 700;
  font-size: 15px;
  padding: 12px 0;
  border-bottom: 2px solid var(--amber);
}

.hero__sub:hover {
  color: var(--amber);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  max-width: 620px;
}

.hero__stats div {
  flex: 1 1 0;
  min-width: 150px;
  padding: 16px 20px 0 0;
}

.hero__stats div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.hero__stats dt {
  font-size: 14px;
  color: var(--muted);
}

.hero__stats dd {
  font-weight: 700;
  color: var(--text-sub);
}

.hero__stats b {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 40px;
  color: var(--text);
  margin-right: 4px;
}

/* ---------- Triage（症状別の緊急度） ---------- */
.triage {
  background: var(--bg-2);
}

.triage__search {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  align-items: center;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 28px;
}

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

.triage__input {
  width: 100%;
  min-height: 50px;
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--text);
}

.triage__input::placeholder {
  color: var(--muted);
}

.triage__input:focus {
  border-color: var(--amber);
  outline: none;
}

.triage__chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.chip:hover,
.chip.is-active {
  border-color: var(--amber);
  color: var(--amber);
}

.chip.is-active {
  background: var(--amber-dim);
}

.triage__result {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--text-sub);
  min-height: 0;
}

.triage__result:empty {
  display: none;
}

.triage__levels {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.85fr;
  gap: 16px;
  align-items: start;
}

.level {
  background: var(--panel);
  border-top: 6px solid var(--lv);
  border-radius: 0 0 var(--radius) var(--radius);
}

.level--1 {
  --lv: var(--red);
  background: linear-gradient(180deg, #2a1416 0%, var(--panel) 160px);
}

.level--2 {
  --lv: var(--amber);
}

.level--3 {
  --lv: var(--slate);
}

.level__head {
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--line);
}

.level__tag {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: #000;
  background: var(--lv);
  padding: 1px 10px;
  margin-bottom: 10px;
}

.level--1 .level__tag {
  color: var(--white);
}

.level__title {
  font-weight: 900;
  font-size: clamp(24px, 2.6vw, 30px);
  margin-bottom: 8px;
}

.level--1 .level__title {
  font-size: clamp(28px, 3.2vw, 38px);
  color: var(--red-text);
}

.level__desc {
  font-size: 15px;
  color: var(--text-sub);
}

.level__list {
  padding: 8px 22px 18px;
}

.level__list li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
  line-height: 1.7;
}

.level__list li:last-child {
  border-bottom: none;
}

.level__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 9px;
  height: 9px;
  background: var(--lv);
}

.level__list li.is-hit {
  color: var(--white);
}

.level__list li.is-hit mark {
  background: var(--amber);
  color: #000;
  padding: 0 2px;
}

.level__list li.is-hidden {
  display: none;
}

.level.is-empty {
  opacity: 0.45;
}

.triage__empty {
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid var(--amber);
  color: var(--text);
  font-weight: 700;
}

.triage__empty a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Before（来院前にやること） ---------- */
.before__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.before__main .sec-head__title {
  margin-bottom: 36px;
}

.checklist {
  counter-reset: none;
  border-top: 1px solid var(--line);
}

.checklist__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.checklist__no {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 46px;
  line-height: 1;
  color: var(--amber);
}

.checklist__item h3 {
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 6px;
}

.checklist__item p {
  color: var(--text-sub);
  font-size: 15px;
}

.before__aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.before__photo {
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
}

.before__photo img {
  width: 100%;
  aspect-ratio: 9 / 7;
  object-fit: cover;
  filter: saturate(0.8);
}

.dont {
  background: #24110f;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 22px 22px 16px;
}

.dont__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 20px;
  color: var(--red-text);
  margin-bottom: 10px;
}

.dont li {
  position: relative;
  padding: 10px 0 10px 26px;
  font-size: 15px;
  border-top: 1px solid rgba(255, 111, 99, 0.25);
}

.dont li::before {
  content: "×";
  position: absolute;
  left: 2px;
  top: 8px;
  font-weight: 900;
  color: var(--red-text);
}

/* ---------- Hours（2本立て） ---------- */
.hours {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hours__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.hours__block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  min-width: 0;
}

.hours__block--night {
  background: #120f1a;
  border-color: #3a2130;
}

.hours__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 19px;
  margin-bottom: 20px;
}

.hours__tag {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.16em;
  padding: 2px 10px;
  color: #000;
}

.hours__tag--day {
  background: var(--slate);
}

.hours__tag--night {
  background: var(--red);
  color: var(--white);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.htable {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  text-align: center;
  font-size: 15px;
}

.htable th,
.htable td {
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
}

.htable thead th {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-sub);
  border-bottom: 2px solid var(--line);
}

.htable tbody th {
  text-align: left;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 18px;
  white-space: nowrap;
  padding-right: 12px;
}

.htable tbody th span {
  color: var(--muted);
  margin: 0 2px;
}

.htable td {
  font-weight: 700;
  font-size: 17px;
  color: var(--slate);
}

.htable .is-tri {
  color: var(--amber);
}

.htable .is-off {
  color: var(--muted);
  font-size: 15px;
}

/* 今日の列（JSで付与） */
.htable .is-today {
  background: rgba(255, 182, 39, 0.12);
}

.htable thead th.is-today {
  color: var(--amber);
  box-shadow: inset 0 3px 0 var(--amber);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-sub);
}

.legend b {
  color: var(--slate);
  margin-right: 4px;
}

.legend b.is-tri {
  color: var(--amber);
}

.legend b.is-off {
  color: var(--muted);
}

.hours__note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-sub);
}

.nightlist li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #3a2130;
}

.nightlist li.is-today .nightlist__day::after {
  content: "今日";
  margin-left: 8px;
  font-size: 12px;
  padding: 1px 6px;
  background: var(--amber);
  color: #000;
  vertical-align: 2px;
}

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

.nightlist__time {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 24px;
  color: var(--red-text);
  text-align: right;
}

.nightlist li:last-child .nightlist__time {
  font-family: var(--font-body);
  font-size: 16px;
}

.dayline {
  margin-top: 24px;
}

.dayline__bar {
  position: relative;
  height: 18px;
  background: var(--bg);
}

.dayline__seg {
  position: absolute;
  top: 0;
  bottom: 0;
}

.dayline__seg--night {
  background: var(--red);
}

.dayline__seg--day {
  background: var(--slate);
}

.dayline__seg--gap {
  background: repeating-linear-gradient(45deg, #6a5320 0 4px, #2a2414 4px 8px);
}

.dayline__now {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 3px;
  background: var(--white);
  display: none;
}

.dayline__now.is-on {
  display: block;
}

.dayline__ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.dayline__legend {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-sub);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
}

.dayline__legend i {
  display: inline-block;
  width: 14px;
  height: 10px;
  margin-right: 4px;
  vertical-align: 0;
}

.k-night {
  background: var(--red);
}
.k-day {
  background: var(--slate);
}
.k-gap {
  background: repeating-linear-gradient(45deg, #6a5320 0 3px, #2a2414 3px 6px);
}

.hours__today {
  margin-top: 20px;
  font-weight: 700;
  font-size: 16px;
  color: var(--amber);
}

.hours__today:empty {
  display: none;
}

/* ---------- Service（対象動物・診療科目） ---------- */
.animals {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-bottom: 56px;
}

.animals__photo {
  border-radius: var(--radius);
  overflow: hidden;
}

.animals__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.animals__title {
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 12px;
}

.animals__list li {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 4px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.animals__list b {
  font-weight: 900;
  font-size: 19px;
}

.animals__list span {
  color: var(--text-sub);
  font-size: 15px;
}

.animals__note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.menu__item {
  padding: 26px 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}

.menu__item:hover {
  background: var(--panel);
}

.menu__item:first-child {
  background: #1d1214;
}

.menu__no {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
}

.menu__item:first-child .menu__no {
  color: var(--red-text);
}

.menu__item h3 {
  font-weight: 900;
  font-size: 19px;
  margin-bottom: 8px;
}

.menu__item p {
  font-size: 15px;
  color: var(--text-sub);
}

/* ---------- Facility（大1・小3） ---------- */
.facility {
  background: var(--bg-2);
}

.facility__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: repeat(3, auto);
  gap: 16px;
}

.fac {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  display: grid;
  grid-template-columns: 42% 1fr;
}

.fac--main {
  grid-row: 1 / span 3;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
}

.fac img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75);
  min-height: 140px;
}

.fac--main img {
  aspect-ratio: 3 / 2;
}

.fac figcaption {
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-sub);
}

.fac figcaption b {
  display: block;
  font-weight: 900;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 4px;
}

.fac--main figcaption {
  padding: 22px 24px;
  font-size: 15px;
}

.fac--main figcaption b {
  font-size: 22px;
}

/* ---------- Team（名簿） ---------- */
.roster {
  border-top: 1px solid var(--line);
}

.roster__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(20px, 4vw, 48px);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.roster__img {
  width: 180px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(0.4);
}

.roster__role {
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
}

.roster__name {
  font-weight: 900;
  font-size: 26px;
  margin-bottom: 8px;
}

.roster__name span {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-left: 10px;
}

.roster__text {
  color: var(--text-sub);
  font-size: 15px;
  margin-bottom: 12px;
}

.roster__quote {
  font-size: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--red);
  max-width: 40em;
}

.team__more {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-sub);
}

/* ---------- Flow（横一列のタイムライン） ---------- */
.flow {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;
  height: 2px;
  background: var(--line);
}

.steps__item {
  position: relative;
  padding: 44px 18px 0 0;
}

.steps__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  background: var(--bg-2);
  border: 3px solid var(--amber);
}

.steps__item:first-child::before {
  background: var(--red);
  border-color: var(--red);
}

.steps__time {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--amber);
}

.steps__item h3 {
  font-weight: 900;
  font-size: 19px;
  margin: 2px 0 8px;
}

.steps__item p {
  font-size: 15px;
  color: var(--text-sub);
}

/* ---------- Contact（予約・お問い合わせ窓口） ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.contact__lead .sec-head__title {
  margin-bottom: 18px;
}

.contact__lead > p {
  color: var(--text-sub);
  font-size: 15px;
  margin-bottom: 24px;
}

.channels {
  display: grid;
  gap: 10px;
}

.channel {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.2s;
}

.channel:hover {
  border-color: var(--amber);
}

.channel__label {
  font-size: 14px;
  color: var(--text-sub);
}

.channel__main {
  font-weight: 900;
  font-size: 19px;
}

.channel--tel {
  background: var(--red);
  border-color: var(--red);
}

.channel--tel .channel__label {
  color: var(--white);
}

.channel--tel .channel__main {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 38px;
  line-height: 1.1;
}

.channel--tel:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
}

.form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 36px);
}

.form__title {
  font-weight: 900;
  font-size: 21px;
  margin-bottom: 6px;
}

.form__note {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 20px;
}

.form__row {
  margin-bottom: 16px;
}

.form__row label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}

.req {
  font-size: 12px;
  padding: 1px 6px;
  margin-left: 6px;
  background: var(--red);
  color: var(--white);
  vertical-align: 1px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--text);
}

.form textarea {
  resize: vertical;
}

.form ::placeholder {
  color: var(--muted);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--amber);
  outline: none;
}

.form .btn {
  width: 100%;
  margin-top: 6px;
}

.form__msg {
  margin-top: 14px;
  font-weight: 700;
  color: var(--amber);
}

.form__msg:empty {
  display: none;
}

/* ---------- News ---------- */
.news {
  border-top: 1px solid var(--line);
}

.news__grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px 48px;
}

.news__list li {
  display: grid;
  grid-template-columns: 110px 64px 1fr;
  gap: 8px 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.news__list li:first-child {
  border-top: 1px solid var(--line);
}

.news__list time {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 18px;
  color: var(--muted);
}

.news__cat {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 1px 0;
  border: 1px solid var(--line);
  color: var(--text-sub);
}

.news__cat--alert {
  border-color: var(--red-text);
  color: var(--red-text);
}

.news__list a {
  font-size: 15px;
}

.news__list a:hover {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Access ---------- */
.access {
  background: var(--bg-2);
}

.access__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.access__map {
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.access__map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  filter: grayscale(0.6) invert(0.9) hue-rotate(180deg) contrast(0.9);
}

.access__photo {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.access__photo img {
  width: 100%;
  aspect-ratio: 9 / 5;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.85);
}

.access__dl div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.access__dl dt {
  font-weight: 700;
  color: var(--amber);
}

.access__dl a {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 20px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.backup {
  margin-top: 40px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px dashed var(--amber);
  border-radius: var(--radius);
}

.backup__title {
  font-weight: 900;
  font-size: 20px;
  color: var(--amber);
  margin-bottom: 8px;
}

.backup > p {
  color: var(--text-sub);
  font-size: 15px;
  margin-bottom: 14px;
}

.backup__list li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 4px 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.backup__list b {
  font-weight: 700;
}

.backup__list a {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  color: var(--red-text);
  margin-left: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.footer {
  background: #05070b;
  border-top: 1px solid var(--line);
  padding: 44px 0 36px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px 40px;
}

.footer__name {
  font-weight: 900;
  font-size: 18px;
}

.footer__addr {
  font-size: 14px;
  color: var(--text-sub);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.footer__nav a {
  display: inline-block;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-sub);
}

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

.footer__copy {
  width: 100%;
  color: var(--muted);
  font-family: var(--font-en);
  letter-spacing: 0.06em;
}

.footer__copy small {
  font-size: 14px;
}

/* ---------- Call bar（スマホだけ表示する画面下の固定電話ボタン） ---------- */
.callbar {
  display: none;
}

/* ---------- Reveal（html.js-er のときだけ隠す） ---------- */
.js-er [data-rise] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease-out, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js-er [data-rise].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 1100px) {
  .nav__link {
    padding: 10px 7px;
  }

  .nav__link::after {
    left: 7px;
    right: 7px;
  }

  .header__tel {
    font-size: 22px;
  }

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

  .level--1 {
    grid-column: 1 / -1;
  }

  .level--1 .level__list {
    columns: 2;
    column-gap: 32px;
  }

  .level--1 .level__list li {
    break-inside: avoid;
  }
}

@media (max-width: 1180px) {
  .header__inner {
    gap: 12px;
  }

  .header__tel {
    margin-left: auto;
    font-size: 20px;
    padding: 6px 12px;
  }

  .nav-toggle {
    display: block;
  }

  /* 全画面メニュー（ヘッダーに backdrop-filter を付けないので fixed が画面基準になる） */
  .nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--bg);
    padding: calc(var(--header-h) + 60px) 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: 0;
  }

  .nav__link {
    font-size: 19px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
  }

  .nav__link::after {
    display: none;
  }

  .nav__link--line {
    border: none;
    border-bottom: 1px solid var(--line);
    margin: 0;
  }

  .nav__tel {
    display: block;
    margin-top: 28px;
    padding: 18px;
    text-align: center;
    background: var(--red);
    color: var(--white);
    font-weight: 900;
    font-size: 19px;
    border-radius: var(--radius);
  }

  .logo,
  .header__tel,
  .nav-toggle {
    position: relative;
    z-index: 95;
  }

  body.nav-open {
    overflow: hidden;
  }

}

@media (max-width: 960px) {
  :root {
    --header-h: 64px;
  }

  .statusbar__clock {
    display: none;
  }

  .sec-head--split,
  .before__grid,
  .contact__grid,
  .access__grid,
  .news__grid {
    grid-template-columns: 1fr;
  }

  .before__aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    align-items: start;
  }

  .before__photo {
    margin: 0;
  }

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

  .animals {
    grid-template-columns: 240px 1fr;
  }

  .animals__list li {
    grid-template-columns: 1fr;
  }

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

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

  .fac--main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

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

  .fac:last-child {
    grid-column: 1 / -1;
    grid-template-columns: 42% 1fr;
  }

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

  .steps::before {
    left: 7px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }

  .steps__item {
    padding: 0 0 28px 44px;
  }

  .steps__item::before {
    top: 6px;
  }

  .hero__photo {
    width: 70%;
  }

  .hero__photo::after {
    background: linear-gradient(90deg, var(--bg) 0%, rgba(10, 14, 21, 0.85) 45%, rgba(10, 14, 21, 0.35) 100%);
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom, 0px));
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: inline;
  }

  .statusbar__inner {
    flex-wrap: wrap;
    gap: 4px 10px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .statusbar__msg {
    font-size: 13px;
    flex-basis: 100%;
  }

  .header__tel {
    display: none;
  }

  .nav-toggle {
    margin-left: auto;
  }

  .logo__text {
    font-size: 15px;
  }

  .logo__text small {
    font-size: 12px;
  }

  .hero {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: 260px;
    order: -1;
  }

  .hero__photo::after {
    background: linear-gradient(180deg, rgba(10, 14, 21, 0) 40%, var(--bg) 100%);
  }

  .hero__inner {
    padding-top: 8px;
    padding-bottom: 48px;
  }

  .hero__num {
    font-size: 44px;
  }

  .hero__lead {
    font-size: 16px;
  }

  .hero__call {
    margin-bottom: 32px;
  }

  .call-btn {
    width: 100%;
  }

  .hero__stats div {
    min-width: 0;
    padding-right: 10px;
  }

  .hero__stats div + div {
    padding-left: 10px;
  }

  .hero__stats dt {
    font-size: 13px;
    line-height: 1.5;
  }

  .hero__stats b {
    font-size: 30px;
  }

  .triage__search {
    grid-template-columns: 1fr;
    padding: 16px;
  }

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

  .level--1 .level__list {
    columns: 1;
  }

  .level__head {
    padding: 18px 18px 14px;
  }

  .level__list {
    padding: 4px 18px 12px;
  }

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

  .checklist__no {
    font-size: 36px;
  }

  .checklist__item h3 {
    font-size: 18px;
  }

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

  .nightlist__time {
    font-size: 21px;
  }

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

  .animals__photo img {
    aspect-ratio: 16 / 9;
  }

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

  .menu__item {
    padding: 20px 18px;
  }

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

  .fac,
  .fac:last-child {
    grid-column: auto;
    grid-template-columns: 38% 1fr;
  }

  .fac--main {
    grid-template-columns: 1fr;
  }

  .fac figcaption {
    padding: 12px 14px;
  }

  .roster__row {
    grid-template-columns: 96px 1fr;
    gap: 16px;
    padding: 22px 0;
  }

  .roster__img {
    width: 96px;
  }

  .roster__name {
    font-size: 22px;
  }

  .roster__name span {
    display: block;
    margin: 0;
    font-size: 13px;
  }

  .roster__quote {
    grid-column: 1 / -1;
  }

  .channel--tel .channel__main {
    font-size: 32px;
  }

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

  .news__cat {
    padding: 0 8px;
  }

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

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

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

  .backup__list li {
    grid-template-columns: 1fr;
  }

  .backup__list a {
    margin-left: 0;
    display: inline-block;
  }

  /* 画面下の固定電話ボタン */
  .callbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: #05070b;
    border-top: 1px solid var(--line);
  }

  .callbar__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 60px;
    background: var(--red);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 900;
    font-size: 21px;
  }

  .callbar__btn span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }

  .callbar__btn small {
    font-size: 12px;
    font-weight: 700;
  }

  .callbar__sub {
    width: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text-sub);
  }
}

@media (max-width: 400px) {
  .hero__kicker {
    font-size: 16px;
  }

  .sec-head__title {
    font-size: 27px;
  }

  .htable {
    min-width: 420px;
  }

  .fac,
  .fac:last-child {
    grid-template-columns: 1fr;
  }
}

/* ---------- 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-er [data-rise] {
    opacity: 1 !important;
    transform: none !important;
  }
}
