/* ============================================
   VET SKIN TEMPLATE
   動物病院・皮膚科 — サンド×オリーブ×さび色
   ヒーローは左右50/50の分割（左にオリーブの色面、右に矩形の写真2枚）
============================================ */

:root {
  /* Color */
  --sand: #ece4d6; /* 地の色 */
  --sand-2: #e2d8c6;
  --paper: #f7f3eb;
  --olive: #5d6b3a; /* オリーブ（面・見出し） */
  --olive-dark: #47532b;
  --olive-pale: #dfe2cf;
  --rust: #b5552b; /* さび色（アクセント） */
  --ink: #2f2a22;
  --ink-soft: #6a6255;
  --line: #cbbfa9;

  /* Font */
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --font-en: "Jost", "Noto Serif JP", sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1200px;
  --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-serif);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--sand);
  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-weight: 600;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--olive);
  color: #fff;
  padding: 8px 14px;
  z-index: 200;
}
.skip-link:focus {
  left: 8px;
}

.sec {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) var(--gutter) 0;
  box-sizing: content-box;
}
.sec__head {
  max-width: 680px;
  margin-bottom: 36px;
}
.sec__head > p:not(.sec__en) {
  color: var(--ink-soft);
  font-size: 15px;
}
.sec__en {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
}
.h2 {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--olive-dark);
  margin: 4px 0 14px;
}
.note {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 2px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn--light {
  background: var(--paper);
  color: var(--olive-dark);
}
.btn--light:hover {
  background: #fff;
}
.btn--ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn--olive {
  background: var(--olive);
  color: #fff;
}
.btn--olive:hover {
  background: var(--olive-dark);
}
.btn--line {
  border-color: var(--olive);
  color: var(--olive-dark);
}
.btn--line:hover {
  background: var(--olive-pale);
}
.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(--sand);
  border-bottom: 1px solid var(--line);
}
.logo {
  text-decoration: none;
  line-height: 1.25;
}
.logo__en {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--rust);
}
.logo__ja {
  font-weight: 700;
  font-size: 17px;
  color: var(--olive-dark);
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav ul {
  display: flex;
  gap: 18px;
  font-size: 14px;
}
.nav ul a {
  text-decoration: none;
}
.nav ul a:hover {
  color: var(--rust);
}
.nav__tel {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: var(--olive);
  color: #fff;
  padding: 8px 14px;
  border-radius: 2px;
  white-space: nowrap;
}
.menu {
  display: none;
  width: 48px;
  height: 48px;
  background: none;
  border: 0;
  position: relative;
  cursor: pointer;
}
.menu span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--olive-dark);
  transition: transform 0.3s var(--ease);
}
.menu span:first-child {
  top: 20px;
}
.menu span:last-child {
  top: 28px;
}
.menu[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(30deg);
}
.menu[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-30deg);
}
@media (max-width: 1100px) {
  .menu {
    display: block;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--olive);
    color: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 20px 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: 19px;
  }
  .nav ul a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .nav ul a:hover {
    color: #fff;
  }
  .nav__tel {
    background: var(--paper);
    color: var(--olive-dark);
    text-align: center;
    font-size: 16px;
    padding: 16px;
  }
}

/* ---------- Hero（50/50分割） ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h));
  max-height: 880px;
}
.hero__panel {
  background: var(--olive);
  color: #eef0e2;
  padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__label {
  font-size: 13px;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}
.hero__title {
  font-size: clamp(30px, 3.8vw, 52px);
  color: #fff;
  line-height: 1.45;
  margin-bottom: 22px;
}
.hero__lead {
  font-size: 15px;
  max-width: 30em;
  margin-bottom: 28px;
}
.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero__facts {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.hero__facts dt {
  font-size: 13px;
  opacity: 0.8;
}
.hero__facts dd {
  font-size: 16px;
}
.hero__facts b {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 32px;
  color: #fff;
}
.hero__photos {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  background: var(--sand);
  padding-left: 6px;
}
.hero__photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    max-height: none;
  }
  .hero__photos {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
    padding: 6px 0 0;
    order: -1;
  }
  .hero__photos img {
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 420px) {
  .hero__facts {
    gap: 20px;
  }
}

/* ---------- お知らせ ---------- */
.news {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) 0;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  box-sizing: content-box;
}
.news h2 {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 22px;
  color: var(--olive-dark);
}
.news ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news li {
  border-top: 1px solid var(--olive);
  padding-top: 10px;
  font-size: 14px;
}
.news time {
  font-family: var(--font-en);
  color: var(--rust);
  font-size: 14px;
}
@media (max-width: 860px) {
  .news {
    grid-template-columns: 1fr;
  }
  .news ul {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ---------- 症状から探す ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.chip {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--olive);
  border-radius: 999px;
  background: transparent;
  color: var(--olive-dark);
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.chip:hover {
  background: var(--olive-pale);
}
.chip.is-on {
  background: var(--olive);
  color: #fff;
}
.cases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cases li {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: opacity 0.3s var(--ease);
}
.cases li[hidden] {
  display: none;
}
.cases h3 {
  font-size: 17px;
  color: var(--olive-dark);
  margin-bottom: 6px;
}
.cases p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}
.cases__empty {
  padding: 20px;
  color: var(--ink-soft);
}
@media (max-width: 1000px) {
  .cases {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .cases {
    grid-template-columns: 1fr;
  }
}

/* ---------- 検査 ---------- */
.test {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.test > * {
  min-width: 0;
}
.test__img img {
  aspect-ratio: 9 / 11;
  object-fit: cover;
}
.ttable {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 15px;
}
.ttable th,
.ttable td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.ttable thead th {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--olive);
}
.ttable tbody th {
  font-weight: 600;
  color: var(--olive-dark);
}
.ttable td:nth-child(3),
.ttable td:last-child {
  white-space: nowrap;
}
.ttable td:last-child {
  text-align: right;
  font-family: var(--font-en);
}
@media (max-width: 860px) {
  .test {
    grid-template-columns: 1fr;
  }
  .test__img {
    max-width: 320px;
  }
  .test__img img {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- 治療の進め方 ---------- */
.treat {
  margin-top: clamp(72px, 10vw, 130px);
  background: var(--paper);
  padding: clamp(64px, 8vw, 110px) var(--gutter);
}
.treat__in {
  max-width: var(--max);
  margin: 0 auto;
}
.treat__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.treat__steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 18px;
  height: 1px;
  background: var(--olive);
}
.treat__steps li {
  padding: 0 20px 0 0;
  position: relative;
}
.treat__steps span {
  display: inline-block;
  background: var(--olive);
  color: #fff;
  font-size: 13px;
  padding: 6px 14px;
  margin-bottom: 18px;
  position: relative;
}
.treat__steps li:last-child span {
  background: var(--rust);
}
.treat__steps h3 {
  font-size: 19px;
  color: var(--olive-dark);
  margin-bottom: 6px;
}
.treat__steps p {
  font-size: 14px;
  color: var(--ink-soft);
}
@media (max-width: 860px) {
  .treat__steps {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 18px;
  }
  .treat__steps::before {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
  }
  .treat__steps span {
    margin-bottom: 8px;
  }
}

/* ---------- シャンプー・食事 ---------- */
.shampoo {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.shampoo__main > p:not(.note) {
  font-size: 15px;
}
.shampoo__price {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  border: 1px solid var(--olive);
}
.shampoo__price div {
  padding: 16px;
  text-align: center;
}
.shampoo__price div + div {
  border-left: 1px solid var(--olive);
}
.shampoo__price dt {
  font-size: 13px;
  color: var(--ink-soft);
}
.shampoo__price dd {
  font-family: var(--font-en);
  font-size: 22px;
  color: var(--olive-dark);
}
.shampoo__diet {
  background: var(--sand-2);
  padding: 0 0 24px;
}
.shampoo__diet img {
  aspect-ratio: 9 / 7;
  object-fit: cover;
  margin-bottom: 18px;
}
.shampoo__diet h3,
.shampoo__diet p {
  padding: 0 24px;
}
.shampoo__diet h3 {
  font-size: 19px;
  color: var(--rust);
  margin-bottom: 6px;
}
.shampoo__diet p {
  font-size: 14px;
}
@media (max-width: 860px) {
  .shampoo {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .shampoo__price dd {
    font-size: 18px;
  }
  .shampoo__price div {
    padding: 12px 4px;
  }
}

/* ---------- 季節 ---------- */
.season__wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.season__band {
  display: grid;
  grid-template-columns: repeat(12, minmax(78px, 1fr));
  border: 1px solid var(--olive);
}
.season__band li {
  padding: 14px 8px 18px;
  font-size: 13px;
  line-height: 1.6;
  border-right: 1px solid var(--line);
  background: var(--paper);
}
.season__band li:last-child {
  border-right: 0;
}
.season__band b {
  display: block;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 26px;
  color: var(--olive-dark);
  line-height: 1.2;
}
.season__band .is-hot {
  background: #f3dccd;
}
.season__band .is-now {
  background: var(--olive);
  color: #fff;
}
.season__band .is-now b {
  color: #fff;
}

/* ---------- FAQ ---------- */
.faq__list {
  border-top: 1px solid var(--olive);
}
.acc {
  border-bottom: 1px solid var(--line);
}
.acc__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  min-height: 60px;
  padding: 16px 48px 16px 0;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  cursor: pointer;
}
.acc__q i {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border: 1px solid var(--olive);
  border-radius: 50%;
  transition: transform 0.35s var(--ease);
}
.acc__q i::before,
.acc__q i::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 13px;
  height: 1px;
  background: var(--olive);
}
.acc__q i::after {
  transform: rotate(90deg);
}
.acc__q[aria-expanded="true"] i {
  transform: rotate(45deg);
}
.acc__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.acc__a > div {
  overflow: hidden;
  min-height: 0;
}
.acc__a p {
  padding: 0 0 18px;
  font-size: 15px;
  color: var(--ink-soft);
}
.acc.is-open .acc__a {
  grid-template-rows: 1fr;
}

/* ---------- 院長 ---------- */
.doctor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.doctor__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.doctor__photos img {
  aspect-ratio: 7 / 9;
  object-fit: cover;
}
.doctor__name {
  font-size: 30px;
  color: var(--olive-dark);
  margin: 4px 0 14px;
}
.doctor__name small {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
  margin-left: 12px;
}
.doctor__body > p:not(.sec__en) {
  font-size: 15px;
  margin-bottom: 14px;
}
.doctor__quote {
  border-left: 2px solid var(--rust);
  padding-left: 16px;
  font-weight: 600;
}
.doctor__cv li {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 860px) {
  .doctor {
    grid-template-columns: 1fr;
  }
}

/* ---------- 診療時間 ---------- */
.htable {
  width: 100%;
  min-width: 340px;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: center;
  background: var(--paper);
  font-size: 15px;
}
.htable th,
.htable td {
  padding: 14px 2px;
  border: 1px solid var(--line);
}
.htable thead th {
  background: var(--olive);
  color: #fff;
  font-weight: 400;
  border-color: var(--olive);
}
.htable tbody th {
  width: 28%;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 14px;
}
.htable .derm {
  color: var(--rust);
  font-weight: 700;
}
.htable .is-today {
  background: var(--olive-pale);
}
.htable thead .is-today {
  background: var(--rust);
  border-color: var(--rust);
}

/* ---------- お問い合わせ ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
}
.contact__lead p {
  font-size: 15px;
}
.contact__tel {
  display: block;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 54px);
  color: var(--olive-dark);
  text-decoration: none;
  margin: 12px 0 20px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.contact__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.form {
  background: var(--paper);
  padding: clamp(22px, 3vw, 36px);
  display: grid;
  gap: 12px;
}
.form__ttl {
  font-weight: 700;
  font-size: 18px;
  color: var(--olive-dark);
}
.form label {
  display: grid;
  gap: 4px;
  font-size: 14px;
}
.form input,
.form textarea {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  padding: 11px 12px;
  font-size: 16px;
  min-height: 46px;
  font-family: var(--font-serif);
}
.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--olive);
  outline-offset: 0;
}
.form__msg {
  font-size: 14px;
  color: var(--rust);
  font-weight: 600;
}
@media (max-width: 760px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

/* ---------- アクセス ---------- */
.access {
  margin-top: clamp(72px, 10vw, 130px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.access iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
  filter: sepia(0.2) saturate(0.8);
}
.access__info {
  background: var(--olive);
  color: #eef0e2;
  padding: clamp(36px, 5vw, 64px) var(--gutter);
  font-size: 15px;
}
.access__info .h2 {
  color: #fff;
}
.access__info p {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.access__info p:last-child {
  border: 0;
  padding-top: 18px;
}
.access__info img {
  width: 220px;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}
@media (max-width: 760px) {
  .access {
    grid-template-columns: 1fr;
  }
  .access iframe {
    min-height: 280px;
  }
}

/* ---------- Footer ---------- */
.footer {
  padding: 32px var(--gutter);
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}
.footer__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--olive-dark);
}

/* ---------- スクロール出現（JSが動いたときだけ） ---------- */
html.js .rv {
  opacity: 0;
  transform: translateY(18px);
  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__photos.rv {
  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 {
    opacity: 1;
    transform: none;
  }
}

/* 写真の見せたい位置 */
.hero__photos img:last-child {
  object-position: center 25%;
}
