/* ============================================
   VET PHOTO TEMPLATE
   写真で見せる動物病院 — 紙色 × 墨 × クラインブルー1色
   エディトリアル（誌面風）、全幅写真、セリフ＋細いサンセリフ
============================================ */

:root {
  /* Color：モノトーン寄り＋差し色1色 */
  --paper: #f3f1ec;
  --paper-2: #e9e6df;
  --ink: #161616;
  --ink-2: #2b2b2b;
  --gray: #595752; /* 本文の補助色（紙色に対して約6.8:1） */
  --line: #cfcac0;
  --blue: #1d3fbf; /* 差し色（クラインブルー寄り） */
  --on-ink: #f3f1ec;
  --on-ink-sub: #bdb9b1;

  /* Font */
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --font-en: "Cormorant Garamond", "Noto Serif JP", serif;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-label: "Jost", "Noto Sans JP", sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 5vw, 64px);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 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-sans);
  font-weight: 300;
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
  line-height: 2;
  letter-spacing: 0.06em;
  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;
}

i {
  font-style: normal;
}

:focus-visible {
  outline: 1px solid var(--blue);
  outline-offset: 4px;
}

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

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

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

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

.sp-only {
  display: none;
}

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

.chapter {
  padding: clamp(88px, 12vw, 168px) 0;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: var(--on-ink);
  transition: color 0.4s;
}

/* 背景は疑似要素に（ヘッダー本体に背景効果を付けると fixed メニューが閉じ込められるため） */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.4s;
}

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

.header.is-scrolled::before {
  opacity: 1;
}

.header__inner {
  position: relative;
  max-width: none;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.logo__en {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 0.01em;
  line-height: 1;
}

.logo__ja {
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__list {
  display: flex;
  gap: 22px;
}

.nav__link {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  position: relative;
  white-space: nowrap;
}

.nav__link i {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 14px;
  margin-right: 6px;
  opacity: 0.75;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

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

.nav__cta {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  padding: 10px 20px;
  border: 1px solid currentColor;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}

.nav__cta:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white, #fff);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 4px;
  position: relative;
  z-index: 2;
}

.nav-toggle__text {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav-toggle__bars {
  position: relative;
  width: 28px;
  height: 10px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}

.nav-toggle__bars span:first-child {
  top: 0;
}

.nav-toggle__bars span:last-child {
  top: 9px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  top: 5px;
  transform: rotate(20deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  top: 5px;
  transform: rotate(-20deg);
}

/* ---------- Chapter head（号数＋見出し） ---------- */
.chapter__head {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.chapter__head--wide {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  gap: 16px 40px;
  align-items: end;
}

.chapter__head--wide .chapter__no {
  margin: 0;
}

.chapter__no {
  font-family: var(--font-en);
  font-size: 40px;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 18px;
}

.chapter__no i {
  font-style: italic;
  font-size: 18px;
  margin-right: 4px;
}

.chapter__title {
  white-space: normal;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.55;
  letter-spacing: 0.08em;
}

.chapter__lead {
  color: var(--gray);
  font-size: 15px;
  max-width: 28em;
}

/* ---------- Hero（全幅写真） ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  max-height: 1000px;
  color: var(--on-ink);
  background: var(--ink);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.55) contrast(1.05) brightness(0.82);
  transform: scale(1);
  transition: transform 2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 文字の下だけ暗くして、白文字を確実に読ませる */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.6) 100%);
}

/* JSが動くときだけ、写真をごくわずかに大きくしておき、ゆっくり等倍に戻す（枠を開く演出はしない） */
.js-ed .hero__media img {
  transform: scale(1.04);
}

.js-ed .hero.is-ready .hero__media img {
  transform: scale(1);
}

.hero__copy {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(48px, 9vh, 96px);
  max-width: 900px;
}

.js-ed .hero__copy > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js-ed .hero.is-ready .hero__copy > * {
  opacity: 1;
  transform: none;
}

.js-ed .hero.is-ready .hero__title {
  transition-delay: 0.1s;
}

.js-ed .hero.is-ready .hero__lead {
  transition-delay: 0.2s;
}

.hero__issue {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__issue span {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.02em;
  padding-right: 16px;
  border-right: 1px solid rgba(243, 241, 236, 0.5);
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(34px, 5.6vw, 76px);
  line-height: 1.4;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.hero__lead {
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
  color: #e9e6df;
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  padding-bottom: 72px;
}

.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 60px;
  background: currentColor;
  opacity: 0.6;
}


/* ---------- 01 About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-areas:
    "head quote"
    ". body";
  gap: 0 64px;
}

.about .chapter__head {
  grid-area: head;
}

.about__quote {
  grid-area: quote;
  margin-bottom: clamp(48px, 6vw, 88px);
  overflow: hidden;
}

.about__quote p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(26px, 3.6vw, 48px);
  line-height: 1.7;
  letter-spacing: 0.06em;
  word-break: keep-all;
}

.about__body {
  grid-area: body;
  column-count: 2;
  column-gap: 56px;
  column-rule: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
  text-align: justify;
}

.about__body p {
  margin-bottom: 1.4em;
}

.dropcap::first-letter {
  font-family: var(--font-serif);
  font-size: 3.4em;
  line-height: 1;
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--blue);
}

.about__fig {
  break-inside: avoid;
  margin-top: 8px;
}

.about__fig img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

figcaption {
  font-size: 13px;
  color: var(--gray);
  letter-spacing: 0.08em;
  line-height: 1.8;
  margin-top: 10px;
}

/* ---------- 全幅のパララックス帯 ---------- */
.band {
  position: relative;
  height: clamp(360px, 70vh, 760px);
  overflow: hidden;
  background: var(--ink);
}

.band--short {
  height: clamp(280px, 50vh, 560px);
}

.band img {
  position: absolute;
  left: 0;
  top: -15%;
  width: 100%;
  height: 130%;
  object-fit: cover;
  filter: grayscale(0.85) contrast(1.05);
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

.band__cap {
  position: absolute;
  left: var(--gutter);
  bottom: 24px;
  max-width: 30em;
  margin: 0;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
}

/* ---------- 02 Service（目次風） ---------- */
.service__wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

.toc {
  border-top: 1px solid var(--ink);
}

.toc__item {
  display: grid;
  grid-template-columns: 64px 280px 1fr;
  gap: 8px 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: padding 0.4s var(--ease-out), color 0.3s;
}

.toc__no {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 22px;
  color: var(--gray);
  transition: color 0.3s;
}

.toc__title {
  font-family: var(--font-serif);
  font-size: 21px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.toc__text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.9;
}

.toc__item.is-active,
.toc__item:hover {
  padding-left: 12px;
}

.toc__item.is-active .toc__no,
.toc__item:hover .toc__no {
  color: var(--blue);
}

.toc__preview {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  aspect-ratio: 9 / 11;
  overflow: hidden;
  background: var(--paper-2);
}

.toc__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: opacity 0.35s ease, transform 0.8s var(--ease-out);
}

.toc__preview.is-swapping img {
  opacity: 0;
  transform: scale(1.04);
}

.animals {
  margin-top: clamp(72px, 9vw, 120px);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.animals__fig img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(0.9);
}

.animals__title {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.animals__list li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.animals__list span {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: 0.1em;
  min-width: 5.5em;
  line-height: 1.5;
}

.animals__list small {
  font-size: 14px;
  color: var(--gray);
}

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

/* ---------- 03 Album（横スクロール） ---------- */
.album {
  background: var(--ink);
  color: var(--on-ink);
}

.album .chapter__no {
  color: #8fa6ff; /* 黒地では明るめの青（コントラスト確保） */
}

.album__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px 56px;
  align-items: end;
  margin-bottom: 48px;
}

.album__head .chapter__head {
  margin: 0;
}

.album__lead {
  font-size: 14px;
  color: var(--on-ink-sub);
  max-width: 30em;
}

.album__ctrl {
  display: flex;
  gap: 8px;
}

.album__btn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(243, 241, 236, 0.4);
  border-radius: 50%;
  color: var(--on-ink);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.album__btn:hover {
  background: var(--on-ink);
  color: var(--ink);
}

.album__btn:disabled {
  opacity: 0.3;
  cursor: default;
  background: none;
  color: var(--on-ink);
}

.album__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  padding: 0 var(--gutter) 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.album__track::-webkit-scrollbar {
  display: none;
}

.album__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.shot {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: calc(clamp(320px, 44vw, 560px) * 1.333);
  max-width: 82vw;
}

.shot--tall {
  width: calc(clamp(320px, 44vw, 560px) * 0.75);
}

.shot img {
  width: 100%;
  height: clamp(320px, 44vw, 560px);
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.8s ease;
  pointer-events: none;
}

.shot.is-color img,
.shot:hover img {
  filter: grayscale(0);
}

.shot figcaption {
  color: var(--on-ink-sub);
  margin-top: 12px;
}

.shot figcaption b {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 16px;
  color: var(--on-ink);
  margin-right: 12px;
}

.shot figcaption span {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 15px;
}

.album__progress {
  margin-top: 32px;
  height: 1px;
  background: rgba(243, 241, 236, 0.2);
  position: relative;
}

.album__progress span {
  position: absolute;
  left: 0;
  top: -1px;
  height: 3px;
  width: 20%;
  background: var(--on-ink);
  transition: width 0.2s linear;
}

/* ---------- 04 Doctor ---------- */
.doctor__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}

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

.doctor__portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.interview dt {
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  margin-bottom: 12px;
  color: var(--blue);
}

.interview dd {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 40px;
  text-align: justify;
}

.staff {
  border-top: 1px solid var(--ink);
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.staff__item {
  padding: 24px 24px 24px 0;
  border-bottom: 1px solid var(--line);
}

.staff__item--photo {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: center;
}

.staff__item--photo img {
  width: 140px;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1);
}

.staff__item:not(.staff__item--photo) + .staff__item {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.staff__role {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gray);
}

.staff__name {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.staff__text {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.9;
}

/* ---------- 05 Facility（写真エッセイ） ---------- */
.facility {
  background: var(--paper-2);
}

.facility__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px 24px;
}

.facility__fig--a {
  grid-column: 1 / span 8;
}

.facility__fig--b {
  grid-column: 9 / span 4;
  margin-top: 30%;
}

.facility__fig--c {
  grid-column: 3 / span 6;
}

.facility__spec {
  grid-column: 9 / span 4;
  align-self: end;
  border-top: 1px solid var(--ink);
}

.facility__spec li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 400;
}

.facility__fig img {
  width: 100%;
  object-fit: cover;
  filter: grayscale(0.9) contrast(1.03);
}

.facility__fig--a img {
  aspect-ratio: 14 / 9;
}

.facility__fig--b img {
  aspect-ratio: 9 / 11;
}

.facility__fig--c img {
  aspect-ratio: 3 / 2;
}

.facility__fig figcaption i {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 15px;
  color: var(--blue);
  margin-right: 10px;
}

/* ---------- Reveal（親を監視し、中身だけ隠す。幕で隠さず、うすく出す） ---------- */
.clip-img {
  overflow: hidden;
}

.js-ed [data-clip] .clip-img {
  opacity: 0;
  transition: opacity 0.9s ease-out;
}

.js-ed [data-clip] .clip-img img {
  transform: scale(1.04);
  transition: transform 1.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js-ed [data-clip].is-in .clip-img {
  opacity: 1;
}

.js-ed [data-clip].is-in .clip-img img {
  transform: scale(1);
}

.js-ed [data-clip] .clip-text {
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.8s ease-out;
}

.js-ed [data-clip].is-in .clip-text {
  transform: none;
  opacity: 1;
}

/* ---------- 06 First（初めての方へ） ---------- */
.first__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--ink);
}

.first__steps li {
  padding: 28px 24px 8px 0;
}

.first__steps li + li {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.first__num {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  color: var(--blue);
}

.first__steps h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.06em;
  margin: 18px 0 8px;
  line-height: 1.6;
}

.first__steps p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.9;
}

/* ---------- 07 Hours ---------- */
.hours {
  border-top: 1px solid var(--line);
}

.hours__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.hours__status {
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hours__status b {
  font-weight: 500;
  color: var(--blue);
  padding: 2px 12px;
  border: 1px solid var(--blue);
}

.hours__status.is-closed b {
  color: var(--gray);
  border-color: var(--gray);
}

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

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

.htable thead th {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 16px;
  border-bottom: 1px solid var(--ink);
}

.htable tbody th {
  text-align: left;
  font-family: var(--font-serif);
  font-weight: 400;
  white-space: nowrap;
}

.htable tbody th span {
  display: block;
  font-family: var(--font-en);
  font-size: 17px;
  color: var(--gray);
  letter-spacing: 0.04em;
}

.htable td {
  font-weight: 400;
}

.htable .is-off {
  color: var(--gray);
}

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

.htable .is-today {
  background: rgba(29, 63, 191, 0.07);
}

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

.week {
  display: none;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--gray);
}

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

.night {
  background: var(--ink);
  color: var(--on-ink);
  padding: 36px 32px;
}

.night__title {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.night > p {
  font-size: 14px;
  color: var(--on-ink-sub);
  line-height: 1.9;
}

.night__dl {
  margin: 20px 0;
  border-top: 1px solid rgba(243, 241, 236, 0.25);
}

.night__dl div {
  padding: 14px 0;
  border-bottom: 1px solid rgba(243, 241, 236, 0.25);
}

.night__dl dt {
  font-size: 13px;
  color: var(--on-ink-sub);
}

.night__dl dd {
  font-size: 15px;
  font-weight: 400;
}

.night__dl a {
  font-family: var(--font-en);
  font-size: 26px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid currentColor;
}

.night__small {
  font-size: 13px !important;
}

/* ---------- Journal（お知らせ） ---------- */
.journal {
  padding-top: 0;
}

.journal__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px 64px;
  border-top: 1px solid var(--line);
  padding-top: clamp(72px, 9vw, 120px);
}

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

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

.journal__list time {
  font-family: var(--font-en);
  font-size: 18px;
  color: var(--gray);
  line-height: 1.8;
}

.journal__list a {
  font-size: 15px;
  font-weight: 400;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out);
}

.journal__list a:hover {
  background-size: 100% 1px;
  color: var(--blue);
}

/* ---------- 09 Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 112px);
}

.contact__lead {
  color: var(--gray);
  margin-bottom: 28px;
  max-width: 26em;
}

.contact__links {
  border-top: 1px solid var(--ink);
}

.contact__link {
  display: flex;
  flex-direction: column;
  padding: 18px 40px 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: 0.06em;
  position: relative;
  transition: color 0.3s, padding 0.4s var(--ease-out);
}

.contact__link::after {
  content: "→";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-label);
  transition: transform 0.4s var(--ease-out);
}

.contact__link:hover {
  color: var(--blue);
  padding-left: 8px;
}

.contact__link:hover::after {
  transform: translate(4px, -50%);
}

.contact__link small {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray);
}

.contact__link--main {
  font-family: var(--font-en);
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.form__note {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 24px;
}

.form__row {
  margin-bottom: 24px;
}

.form__row label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.form input,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  font-size: 16px;
  font-weight: 400;
}

.form textarea {
  resize: vertical;
}

.form ::placeholder {
  color: #8a867e;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--blue);
}

.form__btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 54px;
  padding: 0 32px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.16em;
  transition: background 0.3s;
}

.form__btn:hover {
  background: var(--blue);
}

.form__msg {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 400;
  color: var(--blue);
}

.form__msg:empty {
  display: none;
}

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

.access__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: stretch;
}

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

.access__dl div:first-child {
  border-top: 1px solid var(--ink);
}

.access__dl dt {
  font-family: var(--font-serif);
}

.access__dl a {
  font-family: var(--font-en);
  font-size: 20px;
  border-bottom: 1px solid currentColor;
}

.access__map {
  min-height: 440px;
}

.access__map iframe {
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
  display: block;
  filter: grayscale(1) contrast(1.05);
}

/* ---------- Footer（奥付） ---------- */
.footer {
  background: var(--ink);
  color: var(--on-ink);
  padding: 80px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 40px 64px;
}

.footer__logo {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 40px;
  line-height: 1.1;
}

.footer__logo span {
  font-family: var(--font-label);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--on-ink-sub);
}

.footer__colophon div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(243, 241, 236, 0.15);
}

.footer__colophon dt {
  color: var(--on-ink-sub);
}

.footer__nav a {
  display: inline-block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--on-ink-sub);
  transition: color 0.3s;
}

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

.footer__copy {
  grid-column: 1 / -1;
  font-family: var(--font-label);
  color: var(--on-ink-sub);
  padding-top: 24px;
  border-top: 1px solid rgba(243, 241, 236, 0.15);
}

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

/* ============================================
   Responsive
============================================ */
@media (max-width: 1200px) {
  .nav__list {
    gap: 16px;
  }

  .nav__link i {
    display: none;
  }

  .toc__item {
    grid-template-columns: 52px 1fr;
  }

  .toc__text {
    grid-column: 2;
  }
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-flex;
  }

  /* 全画面の墨色メニュー */
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: var(--header-h) var(--gutter) 40px;
    background: var(--ink);
    color: var(--on-ink);
    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;
    gap: 0;
  }

  .nav__link {
    font-family: var(--font-serif);
    font-size: 24px;
    padding: 10px 0;
  }

  .nav__link i {
    display: inline;
    font-size: 18px;
    margin-right: 16px;
  }

  .nav__cta {
    font-size: 15px;
    padding: 14px 24px;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .header {
    color: var(--on-ink);
  }

  body.nav-open .header::before {
    opacity: 0;
  }

  .chapter__head--wide {
    grid-template-columns: 1fr;
  }

  .about__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "quote"
      "body";
  }

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

  .toc__preview {
    display: none;
  }

  .toc__item {
    grid-template-columns: 52px 220px 1fr;
  }

  .toc__text {
    grid-column: auto;
  }

  .album__head {
    grid-template-columns: 1fr auto;
  }

  .album__lead {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .doctor__grid {
    grid-template-columns: 1fr 1.4fr;
  }

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

  .first__steps li:nth-child(4) {
    padding-left: 0;
    border-left: none;
  }

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

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

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

@media (max-width: 767px) {
  body {
    font-size: 15px;
    letter-spacing: 0.04em;
  }

  .sp-only {
    display: inline;
  }

  .pc-only {
    display: none;
  }

  :root {
    --header-h: 64px;
  }

  .logo {
    flex-direction: column;
    gap: 2px;
  }

  .logo__en {
    font-size: 24px;
  }

  .logo__ja {
    font-size: 12px;
  }

  .hero {
    height: 92vh;
    min-height: 600px;
  }

  .hero__issue {
    font-size: 12px;
    gap: 12px;
    letter-spacing: 0.12em;
  }

  .hero__issue span {
    font-size: 19px;
    padding-right: 12px;
  }

  .hero__title {
    font-size: clamp(30px, 8.6vw, 40px);
  }

  .hero__lead {
    font-size: 14px;
  }

  .hero__scroll {
    display: none;
  }

  .about__body {
    column-count: 1;
  }

  .toc__item {
    grid-template-columns: 40px 1fr;
    padding: 20px 0;
  }

  .toc__text {
    grid-column: 2;
  }

  .toc__title {
    font-size: 19px;
  }

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

  .animals__fig img {
    aspect-ratio: 16 / 10;
  }

  .album__head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .album__lead {
    grid-row: auto;
  }

  .album__ctrl {
    order: 3;
  }

  .album__btn {
    width: 48px;
    height: 48px;
  }

  .shot img {
    height: 340px;
  }

  .shot {
    width: 82vw;
  }

  .shot--tall {
    width: 255px;
  }

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

  .doctor__portrait {
    position: static;
    max-width: 420px;
  }

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

  .staff__item,
  .staff__item:not(.staff__item--photo) + .staff__item {
    padding: 20px 0;
    border-left: none;
  }

  .staff__item--photo {
    grid-template-columns: 96px 1fr;
    gap: 16px;
  }

  .staff__item--photo img {
    width: 96px;
  }

  .facility__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }

  .facility__fig--a,
  .facility__fig--c,
  .facility__spec {
    grid-column: 1 / -1;
  }

  .facility__fig--b {
    grid-column: 1 / -1;
    margin: 0 0 0 30%;
  }

  .facility__fig--c {
    margin-right: 18%;
  }

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

  .first__steps li,
  .first__steps li + li,
  .first__steps li:nth-child(4) {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 0 12px;
    padding: 20px 0;
    border-left: none;
    border-bottom: 1px solid var(--line);
  }

  .first__num {
    grid-row: 1 / span 2;
    font-size: 30px;
  }

  .first__steps h3 {
    margin: 0 0 4px;
  }

  /* スマホは表をやめて、曜日ごとの行に */
  .htable {
    display: none;
  }

  .week {
    display: block;
    border-top: 1px solid var(--ink);
  }

  .week li {
    display: grid;
    grid-template-columns: 64px 1fr 1fr;
    gap: 8px;
    align-items: baseline;
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .week b {
    font-family: var(--font-serif);
    font-weight: 400;
  }

  .week span {
    font-family: var(--font-en);
    font-size: 18px;
  }

  .week li.is-closed span,
  .week span.is-off {
    color: var(--gray);
  }

  .week li.is-closed span,
  .week span.is-off {
    font-family: var(--font-sans);
    font-size: 15px;
  }

  .week li.is-today {
    background: rgba(29, 63, 191, 0.07);
    box-shadow: inset 3px 0 0 var(--blue);
  }

  .night {
    padding: 28px 20px;
  }

  .journal__list li {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact__link--main {
    font-size: 34px;
  }

  .form__btn {
    width: 100%;
    justify-content: center;
  }

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

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

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

  .footer__logo {
    font-size: 32px;
  }
}

/* ---------- 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;
    transition-delay: 0s !important;
  }

  .js-ed [data-clip] .clip-img {
    opacity: 1 !important;
  }

  .js-ed .hero__media img,
  .js-ed [data-clip] .clip-img img,
  .band img {
    transform: none !important;
  }

  .js-ed .hero__copy > *,
  .js-ed [data-clip] .clip-text {
    opacity: 1 !important;
    transform: none !important;
  }
}
