/* ============================================
   VET SENIOR TEMPLATE
   動物病院・シニア犬猫のケア — 生成り×栗色×苔緑
   ヒーローは広い余白と小さな写真1枚。本文は17pxで、「文字を大きく」で20pxに
   文字の大きさはすべて rem なので、html の font-size だけで全体が大きくなる
============================================ */

:root {
  /* Color */
  --paper: #f6f1e7; /* 生成り */
  --paper-2: #ede5d5;
  --brown: #5a3a2a; /* 栗色（見出し・濃い面） */
  --brown-2: #7b5541;
  --moss: #7a8a5a; /* 苔緑（アクセント） */
  --moss-pale: #e3e6d6;
  --ink: #3a2c24; /* 本文 */
  --ink-soft: #6e5f55;
  --line: #d9cdb8;

  /* Font */
  --font-head: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --font-body: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", sans-serif;

  --gutter: clamp(18px, 6vw, 96px);
  --max: 1080px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 106.25%; /* 17px */
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
html.is-large {
  font-size: 125%; /* 20px：「文字を大きく」 */
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
body.nav-open {
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
ul,
ol {
  list-style: none;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--brown);
  color: #fff;
  padding: 8px 14px;
  z-index: 200;
}
.skip-link:focus {
  left: 8px;
}

.sec {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gutter) 0;
  box-sizing: content-box;
}
.sec__head {
  max-width: 40em;
  margin-bottom: 48px;
}
.sec__head p:not(.sec__no) {
  color: var(--ink-soft);
}
.sec__no {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--moss);
  margin-bottom: 8px;
}
.sec__no::before {
  content: "其の";
  font-size: 0.8em;
  margin-right: 2px;
}
.sec__no--light {
  color: #c8cfae;
}
.h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--brown);
  margin-bottom: 20px;
}
.note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid var(--brown);
  border-radius: 4px;
  background: transparent;
  color: var(--brown);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover {
  background: var(--brown);
  color: #fff;
}
.btn--solid {
  background: var(--brown);
  color: #fff;
}
.btn--solid:hover {
  background: var(--brown-2);
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 231, 0.97);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 24px;
  padding: 10px var(--gutter);
}
.logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brown);
  text-decoration: none;
  letter-spacing: 0.1em;
}
.header__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.fontsize {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
}
.fontsize__label {
  color: var(--ink-soft);
  margin-right: 4px;
}
.fontsize button {
  min-height: 44px;
  min-width: 56px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}
.fontsize button[data-size="large"] {
  font-size: 1rem;
}
.fontsize button[aria-pressed="true"] {
  background: var(--moss);
  border-color: var(--moss);
  color: #fff;
}
.header__tel {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brown);
  text-decoration: none;
  white-space: nowrap;
}
.menu {
  display: none;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--brown);
  background: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--brown);
}
.nav {
  grid-column: 1 / -1;
}
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  font-size: 0.88rem;
}
.nav a {
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
}
.nav a:hover {
  color: var(--moss);
}
@media (max-width: 900px) {
  .header__tel {
    display: none;
  }
  .menu {
    display: block;
  }
  .header {
    grid-template-columns: 1fr auto;
  }
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--nav-top, 64px);
    bottom: 0;
    background: var(--paper);
    padding: 16px var(--gutter) 40px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
  }
  .nav ul {
    flex-direction: column;
    font-size: 1.1rem;
  }
  .nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 520px) {
  .logo {
    font-size: 1.05rem;
  }
  .fontsize__label {
    display: none;
  }
  .fontsize button {
    min-width: 48px;
    padding: 0 6px;
  }
  .header__tools {
    gap: 8px;
  }
  .menu {
    padding: 0 10px;
  }
}

/* ---------- Hero（余白多め・小さな写真） ---------- */
.hero {
  padding: clamp(80px, 14vw, 200px) var(--gutter) clamp(72px, 10vw, 140px);
}
.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.hero__since {
  font-size: 0.85rem;
  color: var(--moss);
  letter-spacing: 0.2em;
  margin-bottom: 32px;
}
.hero__title {
  font-size: clamp(1.55rem, 3.6vw, 2.8rem);
  color: var(--brown);
  line-height: 1.75;
  letter-spacing: 0.08em;
}
.hero__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: clamp(48px, 8vw, 110px);
}
.hero__lead {
  max-width: 26em;
  color: var(--ink-soft);
}
.hero__photo {
  width: clamp(150px, 18vw, 220px);
  flex-shrink: 0;
}
.hero__photo img {
  aspect-ratio: 1;
  object-fit: cover;
}
.hero__photo figcaption {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 8px;
  text-align: right;
}
.hero__tel {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.hero__tel a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brown);
  text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .hero__row {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 28px;
  }
}

/* ---------- お知らせ ---------- */
.news {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--gutter);
  background: var(--paper-2);
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 16px;
  box-sizing: content-box;
}
.news h2 {
  font-size: 1.1rem;
  color: var(--brown);
}
.news dl {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 10px 20px;
  font-size: 0.95rem;
}
.news dt {
  color: var(--moss);
  font-weight: 700;
}
@media (max-width: 640px) {
  .news {
    grid-template-columns: 1fr;
  }
  .news dl {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .news dd {
    margin-bottom: 14px;
  }
}

/* ---------- 7歳からの変化 ---------- */
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.checklist label {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.checklist label:nth-of-type(odd) {
  border-right: 1px solid var(--line);
}
.checklist input {
  width: 24px;
  height: 24px;
  accent-color: var(--moss);
  flex-shrink: 0;
}
.checklist__out {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--moss-pale);
  border-left: 4px solid var(--moss);
}
@media (max-width: 640px) {
  .checklist {
    grid-template-columns: 1fr;
  }
  .checklist label:nth-of-type(odd) {
    border-right: 0;
  }
}

/* ---------- シニア健診 ---------- */
.kenshin {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.kenshin__img img {
  aspect-ratio: 9 / 11;
  object-fit: cover;
}
.kenshin__body > p:not(.sec__no):not(.note) {
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.ktable {
  width: 100%;
  min-width: 400px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.ktable th,
.ktable td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.ktable thead th {
  font-family: var(--font-head);
  color: var(--brown);
  border-bottom: 2px solid var(--brown);
}
.ktable tbody th {
  text-align: left;
  font-weight: 400;
}
.ktable td {
  color: var(--moss);
  font-weight: 700;
  white-space: nowrap;
}
.ktable__price th,
.ktable__price td {
  color: var(--brown);
  font-weight: 700;
  background: var(--paper-2);
}
@media (max-width: 760px) {
  .kenshin {
    grid-template-columns: 1fr;
  }
  .kenshin__img {
    max-width: 260px;
  }
}

/* ---------- 介護のご相談 ---------- */
.kaigo__list > div {
  display: grid;
  grid-template-columns: 11em 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.kaigo__list > div:last-child {
  border-bottom: 1px solid var(--line);
}
.kaigo__list dt {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--brown);
}
.kaigo__photo {
  margin-top: 48px;
  margin-left: auto;
  width: min(100%, 560px);
}
.kaigo__photo img {
  aspect-ratio: 12 / 7;
  object-fit: cover;
}
@media (max-width: 640px) {
  .kaigo__list > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ---------- 通院の工夫 ---------- */
.tsuin__list {
  counter-reset: t;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 64px;
}
.tsuin__list li {
  counter-increment: t;
  position: relative;
  padding-left: 3.2em;
  color: var(--ink-soft);
}
.tsuin__list li::before {
  content: counter(t);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2em;
  height: 2.2em;
  border: 1px solid var(--moss);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  color: var(--moss);
  line-height: 1;
}
.tsuin__list b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 4px;
}
@media (max-width: 760px) {
  .tsuin__list {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- お別れのこと ---------- */
.wakare {
  margin-top: clamp(80px, 12vw, 160px);
  background: var(--brown);
  color: #eee4d6;
  display: grid;
  grid-template-columns: 3fr 2fr;
}
.wakare__in {
  padding: clamp(56px, 8vw, 120px) var(--gutter);
  max-width: 760px;
}
.wakare .h2 {
  color: #fff;
}
.wakare p:not(.sec__no) {
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.wakare img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
  opacity: 0.92;
}
@media (max-width: 760px) {
  .wakare {
    grid-template-columns: 1fr;
  }
  .wakare img {
    min-height: 0;
    aspect-ratio: 9 / 7;
  }
}

/* ---------- 院長の手紙 ---------- */
.letter {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.letter__paper {
  background: #fffdf8;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  background-image: repeating-linear-gradient(transparent 0 calc(1.95em - 1px), #ece4d4 calc(1.95em - 1px) 1.95em);
  background-position: 0 clamp(28px, 5vw, 64px);
}
.letter__paper p:not(.sec__no) {
  margin-bottom: 1.95em;
}
.letter__sign {
  text-align: right;
  font-family: var(--font-head);
  color: var(--brown);
  margin-bottom: 0 !important;
}
.letter__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.letter__photos img {
  aspect-ratio: 7 / 8;
  object-fit: cover;
}
.letter__photos img:last-child {
  margin-top: 48px;
}
@media (max-width: 760px) {
  .letter {
    grid-template-columns: 1fr;
  }
}

/* ---------- 診療時間 ---------- */
.htable {
  width: 100%;
  min-width: 340px;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: center;
  background: #fffdf8;
}
.htable th,
.htable td {
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
}
.htable thead th {
  font-family: var(--font-head);
  color: var(--brown);
  border-bottom: 2px solid var(--brown);
}
.htable tbody th {
  width: 30%;
  text-align: left;
  padding-left: 8px;
  font-weight: 400;
  line-height: 1.4;
}
.htable tbody th small {
  display: block;
  font-size: 0.8rem;
  color: var(--moss);
  font-weight: 700;
}
.htable__senior {
  background: var(--moss-pale);
}
.htable td {
  color: var(--brown);
}
.htable .is-today {
  outline: 2px solid var(--moss);
  outline-offset: -2px;
}
.htable thead .is-today {
  background: var(--moss);
  color: #fff;
}
@media (max-width: 480px) {
  .htable {
    font-size: 0.9rem;
  }
  .htable tbody th {
    padding-left: 4px;
    font-size: 0.82rem;
  }
}

/* ---------- お問い合わせ ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
}
.contact__tel {
  display: block;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--brown);
  text-decoration: none;
  margin-top: 20px;
  white-space: nowrap;
  line-height: 1.3;
}
.contact__lead .btn {
  margin-top: 24px;
}
.form {
  display: grid;
  gap: 16px;
}
.form__ttl {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--brown);
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}
.form input,
.form textarea {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fffdf8;
  padding: 12px 14px;
  font-size: 1rem;
  min-height: 52px;
}
.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--moss);
  outline-offset: 1px;
}
.form__msg {
  color: var(--moss);
  font-weight: 700;
}
@media (max-width: 760px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

/* ---------- アクセス ---------- */
.access {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  padding-bottom: clamp(80px, 10vw, 140px);
}
.access__info p {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.access iframe {
  width: 100%;
  min-height: 340px;
  border: 0;
  display: block;
  filter: sepia(0.25);
}
@media (max-width: 760px) {
  .access {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--paper-2);
  padding: 40px var(--gutter);
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.footer__name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--brown);
}

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

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

/* グリッドの子が表の幅に押し広げられないように */
.kenshin > *,
.letter > *,
.contact > *,
.access > * {
  min-width: 0;
}

/* スマホの細かな調整 */
.ktable thead th {
  white-space: nowrap;
}
@media (max-width: 520px) {
  .logo {
    white-space: nowrap;
    letter-spacing: 0.02em;
  }
  .hero__title {
    font-size: 1.32rem;
    letter-spacing: 0.02em;
  }
  .htable {
    min-width: 460px; /* 時間帯が読める幅を確保して枠内で横スクロール */
  }
}

/* ヘッダーのボタンが折り返さないように／ファーストビューに写真が入るように */
.fontsize button,
.menu {
  white-space: nowrap;
}
.hero {
  padding-top: clamp(56px, 9vw, 130px);
}
.hero__row {
  margin-top: clamp(36px, 5vw, 64px);
}
@media (max-width: 520px) {
  .logo {
    font-size: 0.95rem;
    letter-spacing: 0;
  }
  .fontsize button {
    min-width: 44px;
    padding: 0 6px;
    font-size: 0.8rem;
  }
  .fontsize button[data-size="large"] {
    font-size: 0.9rem;
  }
  .menu {
    padding: 0 8px;
    font-size: 0.8rem;
  }
}
