/* ============================================
   VET COUNTRY TEMPLATE
   動物病院・大型犬も安心の郊外 — 深緑×クリーム×赤土
   ヒーローは全面写真。見出しは写真の下端にかかるクリーム色の横長の帯に置く
============================================ */

:root {
  /* Color */
  --forest: #1f3326; /* 深緑 */
  --forest-2: #2e4a37;
  --cream: #efe8d6; /* クリーム */
  --cream-2: #e4dcc6;
  --clay: #a64b2a; /* 赤土 */
  --clay-dark: #8a3c20;
  --ink: #23291f;
  --ink-soft: #5c6156;
  --line: #cfc5ad;

  /* Font */
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-slab: "Zilla Slab", "Noto Sans JP", serif;

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
body.nav-open {
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
ul,
ol {
  list-style: none;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3 {
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.sp {
  display: none;
}
@media (max-width: 640px) {
  .sp {
    display: inline;
  }
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--forest);
  color: #fff;
  padding: 8px 14px;
  z-index: 200;
}
.skip-link:focus {
  left: 8px;
}

.eyebrow {
  font-family: var(--font-slab);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--clay);
}
.eyebrow--light {
  color: #e6a184;
}
.h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  color: var(--forest);
  margin: 4px 0 18px;
}
.note {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  font-weight: 900;
  text-decoration: none;
  border: 3px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn--red {
  background: var(--clay);
  color: #fff;
}
.btn--red:hover {
  background: var(--clay-dark);
}
.btn--line {
  border-color: var(--forest);
  color: var(--forest);
}
.btn--line:hover {
  background: var(--forest);
  color: var(--cream);
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
  background: var(--forest);
  color: var(--cream);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.06em;
}
.logo svg {
  color: #e6a184;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav ul {
  display: flex;
  gap: 22px;
  font-size: 15px;
  font-weight: 700;
}
.nav ul a {
  text-decoration: none;
}
.nav ul a:hover {
  color: #e6a184;
}
.nav__tel {
  font-family: var(--font-slab);
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  white-space: nowrap;
}
.nav__tel small {
  font-size: 13px;
  margin-right: 6px;
  color: #e6a184;
}
.menu {
  display: none;
  width: 52px;
  height: 52px;
  background: var(--clay);
  border: 0;
  border-radius: 6px;
  position: relative;
  cursor: pointer;
}
.menu span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.menu span:first-child {
  top: 20px;
}
.menu span:last-child {
  top: 29px;
}
.menu[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}
.menu[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}
@media (max-width: 1000px) {
  .menu {
    display: block;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--forest);
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    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;
    gap: 0;
    font-size: 20px;
  }
  .nav ul a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(239, 232, 214, 0.15);
  }
  .nav__tel {
    background: var(--clay);
    text-align: center;
    padding: 14px;
    border-radius: 6px;
    font-size: 28px;
  }
}

/* ---------- Hero（全面写真＋下端の帯） ---------- */
.hero {
  position: relative;
}
.hero__photo {
  height: calc(100vh - var(--header-h));
  min-height: 460px;
  max-height: 860px;
  overflow: hidden;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero__band {
  position: relative;
  margin: -120px var(--gutter) 0;
  z-index: 2;
}
.hero__band-in {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--cream);
  padding: clamp(24px, 3.4vw, 44px) clamp(20px, 3.4vw, 48px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px clamp(24px, 4vw, 56px);
  align-items: end;
  border-top: 8px solid var(--clay);
}
.hero__title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900;
  color: var(--forest);
  line-height: 1.2;
}
.hero__meta p {
  font-size: 15px;
  margin-bottom: 16px;
}
.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 860px) {
  .hero__photo {
    height: 64vh;
    min-height: 320px;
  }
  .hero__band {
    margin-top: -64px;
  }
  .hero__band-in {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .hero__band {
    margin: -48px 12px 0;
  }
  .hero__btns .btn {
    flex: 1 1 100%;
  }
}

/* ---------- お知らせ ---------- */
.news {
  padding: 48px var(--gutter) 0;
}
.news__in {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
}
.news h2 {
  font-size: 18px;
  font-weight: 900;
  color: var(--forest);
}
.news li {
  padding: 12px 0;
  border-bottom: 2px dotted var(--line);
  font-size: 15px;
}
.news time {
  font-family: var(--font-slab);
  font-weight: 700;
  font-size: 18px;
  color: var(--clay);
  margin-right: 14px;
}
@media (max-width: 640px) {
  .news__in {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .news time {
    display: block;
  }
}

/* ---------- 大型犬のこと ---------- */
.big {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) var(--gutter) 0;
  display: grid;
  grid-template-columns: 5fr 7fr;
  grid-template-areas:
    "head list"
    "photos list";
  gap: 32px clamp(32px, 5vw, 80px);
  box-sizing: content-box;
}
.big__head {
  grid-area: head;
}
.big__head p:last-child {
  color: var(--ink-soft);
  font-size: 15px;
}
.big__list {
  grid-area: list;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.big__list li {
  background: #f8f4e9;
  padding: 26px 24px;
  border-radius: 6px;
}
.big__no {
  font-family: var(--font-slab);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--clay);
}
.big__list h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--forest);
  margin: 10px 0 6px;
}
.big__list p {
  font-size: 15px;
  color: var(--ink-soft);
}
.big__photos {
  grid-area: photos;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.big__photos img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}
@media (max-width: 860px) {
  .big {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "list" "photos";
    box-sizing: border-box;
  }
}
@media (max-width: 560px) {
  .big__list {
    grid-template-columns: 1fr;
  }
}

/* ---------- 車内待機 ---------- */
.car {
  margin-top: clamp(72px, 10vw, 130px);
  background: var(--forest);
  color: var(--cream);
  padding: clamp(64px, 8vw, 110px) var(--gutter);
}
.car__in {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.car .h2 {
  color: #fff;
}
.car__text p:not(.eyebrow) {
  margin-bottom: 14px;
  font-size: 15px;
}
.car__steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 2px solid var(--forest-2);
  font-weight: 700;
  font-size: 17px;
}
.car__steps b {
  width: 64px;
  height: 64px;
  border: 3px solid #e6a184;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-slab);
  font-size: 30px;
  color: #e6a184;
}
@media (max-width: 860px) {
  .car__in {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .car__steps li {
    grid-template-columns: 48px 1fr;
    font-size: 15px;
  }
  .car__steps b {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

/* ---------- 山・川のあと ---------- */
.outdoor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.outdoor__img img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
.outdoor__body {
  padding: clamp(56px, 8vw, 110px) var(--gutter);
  max-width: 680px;
}
.outdoor__check li {
  padding: 14px 0;
  border-top: 2px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}
.outdoor__check b {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--clay);
}
@media (max-width: 860px) {
  .outdoor {
    grid-template-columns: 1fr;
  }
  .outdoor__img img {
    min-height: 0;
    aspect-ratio: 7 / 5;
  }
}

/* ---------- 診療案内 ---------- */
.medical {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) var(--gutter) 0;
  box-sizing: content-box;
}
.mtable {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
  background: #f8f4e9;
}
.mtable th,
.mtable td {
  padding: 16px 18px;
  border-bottom: 2px solid var(--cream);
  text-align: left;
}
.mtable thead th {
  background: var(--forest);
  color: var(--cream);
  font-size: 14px;
}
.mtable tbody th {
  font-weight: 900;
  color: var(--forest);
  white-space: nowrap;
}
.mtable td:last-child {
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

/* ---------- 院長 ---------- */
.doctor {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) var(--gutter) 0;
  display: grid;
  grid-template-columns: 5fr 7fr;
  grid-template-areas: "img body" "img pups";
  gap: 24px clamp(32px, 5vw, 80px);
  box-sizing: content-box;
}
.doctor > img:first-child {
  grid-area: img;
  aspect-ratio: 10 / 11;
  object-fit: cover;
  border-radius: 6px;
}
.doctor__body {
  grid-area: body;
}
.doctor__name {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
  color: var(--forest);
  margin: 4px 0 14px;
}
.doctor__name small {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: 12px;
}
.doctor__body p:not(.eyebrow) {
  font-size: 15px;
  margin-bottom: 14px;
}
.doctor__quote {
  font-weight: 700;
  font-size: 17px !important;
  border-left: 6px solid var(--clay);
  padding-left: 16px;
}
.doctor__pups {
  grid-area: pups;
  width: 46%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
}
@media (max-width: 860px) {
  .doctor {
    grid-template-columns: 1fr;
    grid-template-areas: "body" "img" "pups";
    box-sizing: border-box;
  }
  .doctor > img:first-child {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- 診療時間 ---------- */
.hours {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) var(--gutter) clamp(72px, 10vw, 130px);
  box-sizing: content-box;
}
.htable {
  width: 100%;
  min-width: 340px;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: center;
  background: #f8f4e9;
}
.htable th,
.htable td {
  padding: 16px 2px;
  border: 2px solid var(--cream);
  font-size: 16px;
  font-weight: 700;
}
.htable thead th {
  background: var(--forest);
  color: var(--cream);
}
.htable tbody th {
  width: 28%;
  font-family: var(--font-slab);
  font-size: 17px;
}
.htable td {
  color: var(--forest);
}
.htable .is-today {
  background: #f3d8c9;
}
.htable thead .is-today {
  background: var(--clay);
  color: #fff;
}
@media (max-width: 480px) {
  .htable tbody th {
    font-size: 14px;
  }
}

/* ---------- アクセス ---------- */
.access {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: var(--forest);
  color: var(--cream);
}
.access__info {
  padding: clamp(56px, 7vw, 96px) var(--gutter);
}
.access .h2 {
  color: #fff;
}
.access dl {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 12px 16px;
  font-size: 15px;
  margin-bottom: 24px;
}
.access dt {
  font-weight: 900;
  color: #e6a184;
}
.access__info img {
  aspect-ratio: 9 / 5;
  object-fit: cover;
  border-radius: 6px;
}
.access iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}
@media (max-width: 860px) {
  .access {
    grid-template-columns: 1fr;
  }
  .access dl {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .access dd {
    margin-bottom: 12px;
  }
  .access iframe {
    min-height: 300px;
  }
}

/* ---------- お問い合わせ ---------- */
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  box-sizing: content-box;
}
.contact__lead p {
  font-size: 15px;
}
.contact__tel {
  display: block;
  font-family: var(--font-slab);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 68px);
  color: var(--clay);
  text-decoration: none;
  margin: 12px 0 20px;
  white-space: nowrap;
  line-height: 1.1;
}
.form {
  background: #f8f4e9;
  border-radius: 6px;
  padding: clamp(22px, 3vw, 36px);
  display: grid;
  gap: 12px;
  border-top: 8px solid var(--forest);
}
.form__ttl {
  font-weight: 900;
  font-size: 18px;
  color: var(--forest);
}
.form label {
  display: grid;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
}
.form input,
.form textarea {
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 11px 12px;
  font-size: 16px;
  font-weight: 400;
  min-height: 48px;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--clay);
}
.form__msg {
  font-size: 14px;
  font-weight: 700;
  color: var(--clay);
}
@media (max-width: 760px) {
  .contact {
    grid-template-columns: 1fr;
    box-sizing: border-box;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #c4c8bb;
  text-align: center;
  padding: 40px var(--gutter);
  font-size: 13px;
}
.footer__name {
  font-weight: 900;
  font-size: 20px;
  color: var(--cream);
}

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

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

/* 写真の見せたい位置・見出しの折り返し調整 */
.hero__photo img {
  object-position: center 55%;
}
.outdoor .h2 {
  font-size: clamp(26px, 3vw, 40px);
}
