/* =========================================================
   犬猫動物病院（デザイン見本用ダミー） トップページ
   配色：ミント × 生成り ／ 見出し：Zen Maru Gothic ／ 本文：Noto Sans JP
   ========================================================= */
:root {
  --mint: #2e9d84;
  --mint-dark: #23806b;     /* 白文字ボタン用（コントラスト確保） */
  --mint-pale: #c6e8de;
  --mint-light: #e3f3ee;
  --ecru: #f5efe6;
  --ecru-dark: #ece3d6;
  --white: #fff;
  --text: #3f3a35;
  --heading: #4b3426;
  --muted: #7a716a;
  --peach: #f0a37a;
  --line: #d9e9e3;

  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", sans-serif;

  --content: 1080px;
  --radius-xl: 48px;
  --shadow: 0 10px 30px rgba(63, 58, 53, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; border-radius: 6px; }

/* ---------- 共通：見出し ---------- */
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head__en {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
  color: var(--mint);
}
.sec-head__ja {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.4;
  color: var(--heading);
  margin-top: 2px;
}

/* ---------- 共通：ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 16px 14px 34px;
  background: var(--mint-dark);
  color: #fff;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .08em;
  text-decoration: none;
  border-radius: 999px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--mint); transform: translateY(-2px); }
.btn__icon {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  background: #fff; color: var(--mint-dark);
  border-radius: 50%;
}
.btn__icon svg { width: 16px; height: 16px; }
.btn--sm { font-size: 16px; padding: 11px 12px 11px 28px; }
.btn--sm .btn__icon { width: 26px; height: 26px; }

/* ---------- 波形 ---------- */
.wave { position: absolute; left: 0; right: 0; height: 60px; pointer-events: none; }
.wave--top { top: -59px; }

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: 84px;
  padding: 0 32px 0 0;
  transition: background .3s, box-shadow .3s, height .3s;
}
.site-header.is-scrolled { background: rgba(255,255,255,.96); box-shadow: 0 2px 16px rgba(63,58,53,.08); height: 72px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  height: 100%;
  padding: 0 34px 0 30px;
  background: #fff;
  border-radius: 0 0 40px 0;
  text-decoration: none;
  flex-shrink: 0;
}
.logo__mark { width: 38px; height: 38px; fill: var(--mint); }
.logo__text { font-family: var(--font-round); font-weight: 700; font-size: 25px; color: var(--heading); letter-spacing: .06em; }

.gnav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.gnav__list { display: flex; gap: 26px; }
.gnav__list a {
  font-family: var(--font-round); font-weight: 700; font-size: 15px;
  color: var(--heading); text-decoration: none; letter-spacing: .06em;
  position: relative; padding: 6px 0;
}
.gnav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--mint); border-radius: 2px; transform: scaleX(0); transition: transform .2s;
}
.gnav__list a:hover::after { transform: scaleX(1); }
.gnav__tel, .header-tel {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-round); font-weight: 700; font-size: 22px; letter-spacing: .04em;
  color: var(--heading); text-decoration: none; white-space: nowrap;
}
.gnav__tel svg, .header-tel svg { width: 20px; height: 20px; fill: var(--heading); }
.gnav__reserve, .header-tel { display: none; }
.menu-btn { display: none; }

/* =========================================================
   ファーストビュー
   ========================================================= */
.hero { position: relative; padding: 12px 12px 0; background: var(--ecru); }
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 40px;
  min-height: 720px;
  padding: 120px max(48px, calc((100% - 1180px) / 2)) 110px;
  background: var(--mint-pale);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
}
.hero__inner::before { /* 丘 */
  content: ""; position: absolute; left: -10%; bottom: -120px; width: 70%; height: 300px;
  background: #b3dfd2; border-radius: 50%;
}
.hero__copy { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; height: 100%; }
.hero__title {
  writing-mode: vertical-rl;
  font-family: var(--font-round); font-weight: 700;
  font-size: clamp(32px, 3.3vw, 46px);
  line-height: 1.7; letter-spacing: .14em;
  color: var(--heading);
  align-self: flex-start;
  margin-top: 10px;
}
.hero__walker { position: relative; width: min(300px, 60%); margin-left: -20px; margin-bottom: -20px; }
.hero__visual { position: relative; }
.hero__photo {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 40%;
  border-radius: 64px;
  box-shadow: var(--shadow);
}
.hero__sun { position: absolute; z-index: 1; width: 180px; right: -30px; top: -70px; }

.news {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 22px;
  width: min(880px, calc(100% - 40px));
  margin: -38px auto 0;
  padding: 18px 30px;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.news__label { font-family: var(--font-round); font-weight: 700; color: var(--mint); letter-spacing: .12em; padding-right: 22px; border-right: 1px solid var(--line); }
.news__date { font-family: var(--font-round); font-weight: 700; color: var(--muted); }
.news__title { flex: 1; text-decoration: none; font-weight: 500; }
.news__title:hover { color: var(--mint-dark); text-decoration: underline; }
.news__arrow { width: 20px; height: 20px; color: var(--mint); }

/* =========================================================
   当院について
   ========================================================= */
.about { background: var(--ecru); text-align: center; padding: 90px 20px 150px; }
.about .sec-head { margin-bottom: 28px; }
.about__text { max-width: 760px; margin: 0 auto 40px; font-size: 18px; }

/* =========================================================
   診療案内
   ========================================================= */
.service { position: relative; background: #fff; padding: 60px 20px 120px; }
.service .wave--top { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C180 0 360 0 540 30 S900 70 1080 30 S1320 0 1440 30 V60 H0Z' fill='%23fff'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.service__list { display: grid; gap: 80px; max-width: var(--content); margin: 0 auto; }
.svc {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  min-height: 330px;
  background: #fff;
  border-radius: 170px;
  box-shadow: 0 12px 40px rgba(63, 58, 53, .09);
  overflow: hidden;
}
.svc__photo { height: 100%; }
.svc__photo img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; border-radius: 170px; }
.svc__body { padding: 40px 56px; }
.svc__title { font-family: var(--font-round); font-weight: 700; font-size: 30px; color: var(--heading); line-height: 1.4; }
.svc__text { margin: 12px 0 24px; }
.svc--rev .svc__photo { order: 2; }
.svc--rev .svc__body { padding-left: 64px; padding-right: 32px; }

/* =========================================================
   アクセス
   ========================================================= */
.access { background: #fff; padding: 40px 20px 60px; }
.access__panel {
  position: relative;
  max-width: var(--content); margin: 0 auto;
  padding: 56px 64px 60px;
  background: var(--ecru);
  border-radius: 80px;
}
.access__addr { text-align: center; font-family: var(--font-round); font-weight: 700; font-size: 22px; color: var(--heading); margin-bottom: 28px; }
.map { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 7; background: #eceae4; box-shadow: var(--shadow); }
.map iframe, .map__dummy, .map__dummy svg { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__note {
  position: absolute; left: 16px; top: 16px;
  padding: 8px 14px; background: #fff; border-radius: 6px;
  font-size: 14px; color: var(--muted); box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.map__zoom { position: absolute; right: 16px; bottom: 16px; display: grid; background: #fff; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.map__zoom i { font-style: normal; width: 40px; height: 40px; display: grid; place-items: center; color: #666; font-size: 20px; }
.map__zoom i + i { border-top: 1px solid #eee; }
.access__info { display: flex; justify-content: center; gap: 48px; margin: 28px 0 0; }
.access__info div { display: flex; gap: 12px; align-items: baseline; }
.access__info dt {
  font-family: var(--font-round); font-weight: 700; font-size: 14px;
  background: var(--mint-dark); color: #fff; padding: 2px 14px; border-radius: 999px;
}
.access__info dd { margin: 0; }
.access__dog { position: absolute; right: -40px; bottom: -40px; width: 130px; }

/* =========================================================
   よくある質問（上下余白 1.5倍）
   ========================================================= */
.faq { background: #fff; padding: 150px 20px 210px; }
.faq__list { display: grid; gap: 18px; max-width: 820px; margin: 0 auto; }
.faq__item { background: #fff; border-radius: 28px; box-shadow: 0 6px 24px rgba(63, 58, 53, .09); }
.faq__item summary {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 26px;
  font-family: var(--font-round); font-weight: 700; font-size: 18px; color: var(--heading);
  cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q, .faq__a-mark {
  flex-shrink: 0; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  font-family: var(--font-round); font-weight: 700; font-size: 18px; line-height: 1;
}
.faq__q { background: var(--mint); color: #fff; }
.faq__a-mark { background: var(--mint-light); color: var(--mint-dark); }
.faq__plus { position: relative; width: 26px; height: 26px; margin-left: auto; border-radius: 50%; background: var(--mint-light); }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--mint-dark); transform: translate(-50%, -50%); transition: transform .2s; }
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { display: flex; gap: 16px; padding: 0 26px 22px; }
.faq__a p { padding-top: 3px; }

/* =========================================================
   フッター（上下余白 1.5倍・診療時間表を大きく）
   ========================================================= */
.site-footer { position: relative; background: var(--ecru); padding: 120px 20px 0; }
.site-footer .wave--top { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C240 -10 480 70 720 30 S1200 -10 1440 30 V60 H0Z' fill='%23f5efe6'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.footer__inner { max-width: 900px; margin: 0 auto; text-align: center; }
.footer__logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-round); font-weight: 700; font-size: 32px; color: var(--heading); letter-spacing: .06em; }
.footer__logo svg { width: 44px; height: 44px; fill: var(--mint); }
.footer__addr { margin-top: 10px; }
.footer__tel { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-round); font-weight: 700; font-size: 28px; color: var(--heading); text-decoration: none; }
.footer__tel svg { width: 24px; height: 24px; fill: var(--heading); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; margin: 24px 0 56px; }
.footer__nav a { font-family: var(--font-round); font-weight: 700; font-size: 15px; text-decoration: none; }
.footer__nav a:hover { color: var(--mint-dark); text-decoration: underline; }

.hours__scroll { overflow-x: auto; }
.hours__table {
  width: 100%; min-width: 560px;
  border-collapse: separate; border-spacing: 0;
  background: #fff;
  border: 2px solid var(--mint-pale);
  border-radius: 20px; overflow: hidden;
  font-family: var(--font-round); font-weight: 700;
  font-size: 22px;
}
.hours__table th, .hours__table td { padding: 16px 6px; text-align: center; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.hours__table tr > :first-child { border-left: 0; }
.hours__table thead th { border-top: 0; background: var(--mint-pale); color: var(--heading); }
.hours__table thead th:first-child { width: 28%; }
.hours__table tbody th { color: var(--heading); white-space: nowrap; }
.hours__table i { display: inline-block; vertical-align: middle; }
.hours__table .on { width: 22px; height: 22px; border-radius: 50%; background: var(--mint); }
.hours__table .off { width: 20px; height: 3px; border-radius: 2px; background: #b9b2aa; }
.hours__closed { margin-top: 18px; font-family: var(--font-round); font-weight: 700; font-size: 20px; color: var(--heading); }

.footer__copy { text-align: center; font-size: 13px; color: var(--muted); padding: 120px 0 36px; }

/* ---------- 予約ボタン（固定） ---------- */
.reserve {
  position: fixed; right: 0; bottom: 28px; z-index: 40;
  display: grid; justify-items: center; gap: 2px;
  width: 92px; padding: 16px 8px 14px;
  background: var(--mint-dark); color: #fff;
  border-radius: 24px 0 0 24px;
  font-family: var(--font-round); font-weight: 700; font-size: 14px; letter-spacing: .06em;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background .2s;
}
.reserve:hover { background: var(--mint); }
.reserve svg { width: 30px; height: 30px; }

/* =========================================================
   タブレット
   ========================================================= */
@media (max-width: 1180px) {
  .gnav__list { gap: 18px; }
  .gnav__list a { font-size: 14px; }
  .gnav__tel { font-size: 19px; }
}

/* =========================================================
   スマホ・タブレット（メニューを開閉式に）
   ========================================================= */
@media (max-width: 1023px) {
  body { font-size: 16.5px; }
  .site-header { height: 68px; padding-right: 12px; }
  .site-header.is-scrolled { height: 64px; }
  .logo { padding: 0 22px 0 16px; border-radius: 0 0 28px 0; }
  .logo__mark { width: 30px; height: 30px; }
  .logo__text { font-size: 20px; }
  .header-tel { display: flex; margin-left: auto; font-size: 17px; }
  .header-tel svg { width: 16px; height: 16px; }

  .menu-btn {
    display: grid; place-content: center; gap: 6px;
    width: 52px; height: 52px; flex-shrink: 0;
    background: var(--mint-dark); border: 0; border-radius: 50%; cursor: pointer;
    position: relative; z-index: 60;
  }
  .menu-btn span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .gnav {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 96px 28px 40px;
    background: var(--ecru);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .gnav.is-open { opacity: 1; visibility: visible; }
  .gnav__list { flex-direction: column; gap: 0; }
  .gnav__list a { display: block; padding: 16px 4px; font-size: 18px; border-bottom: 1px solid var(--ecru-dark); }
  .gnav__list a::after { display: none; }
  .gnav__tel { justify-content: center; font-size: 24px; margin-top: 8px; }
  .gnav__reserve {
    display: block; text-align: center; padding: 16px; border-radius: 999px;
    background: var(--mint-dark); color: #fff; text-decoration: none;
    font-family: var(--font-round); font-weight: 700; font-size: 18px;
  }
  body.menu-open { overflow: hidden; }
  .logo { position: relative; z-index: 60; }
}

@media (max-width: 767px) {
  .sec-head { margin-bottom: 32px; }
  .sec-head__ja { font-size: 27px; }

  .hero { padding: 0; }
  .hero__inner {
    grid-template-columns: 1fr; gap: 28px;
    min-height: 0;
    padding: 92px 20px 80px;
    border-radius: 0 0 36px 36px;
  }
  .hero__inner::before { width: 140%; left: -20%; bottom: auto; top: 340px; height: 220px; }
  .hero__copy { height: auto; justify-content: center; }
  .hero__title { font-size: 28px; }
  .hero__walker { width: 170px; margin-left: 0; margin-bottom: 0; }
  .hero__photo { border-radius: 36px; aspect-ratio: 4 / 3; }
  .hero__sun { width: 110px; right: -6px; top: -48px; }

  .news { flex-wrap: wrap; gap: 4px 14px; border-radius: 24px; padding: 14px 20px; margin-top: -40px; }
  .news__label { padding-right: 14px; }
  .news__title { flex-basis: 100%; }
  .news__arrow { display: none; }

  .about { padding: 64px 20px 110px; }
  .about__text { font-size: 16.5px; text-align: left; }
  .about__text br { display: none; }

  .service { padding: 40px 16px 80px; }
  .service__list { gap: 48px; }
  .svc, .svc--rev { grid-template-columns: 1fr; border-radius: 32px; min-height: 0; }
  .svc--rev .svc__photo { order: 0; }
  .svc__photo img { min-height: 0; aspect-ratio: 4 / 3; border-radius: 32px 32px 0 0; }
  .svc__body, .svc--rev .svc__body { padding: 26px 26px 32px; }
  .svc__title { font-size: 24px; }

  .access { padding: 24px 16px 40px; }
  .access__panel { padding: 36px 18px 40px; border-radius: 36px; }
  .access__addr { font-size: 17px; }
  .map { aspect-ratio: 4 / 3; border-radius: 18px; }
  .access__info { flex-direction: column; gap: 10px; align-items: flex-start; }
  .access__dog { width: 84px; right: -6px; bottom: -44px; }

  .faq { padding: 110px 16px 150px; }
  .faq__item summary { padding: 16px 18px; font-size: 16.5px; gap: 12px; }
  .faq__q, .faq__a-mark { width: 32px; height: 32px; font-size: 16px; }
  .faq__a { padding: 0 18px 18px; gap: 12px; }

  .site-footer { padding: 90px 16px 0; }
  .footer__logo { font-size: 26px; }
  .footer__logo svg { width: 36px; height: 36px; }
  .footer__tel { font-size: 24px; }
  .footer__nav { gap: 6px 18px; margin-bottom: 40px; }
  .hours__table { min-width: 0; font-size: 15px; border-radius: 14px; }
  .hours__table th, .hours__table td { padding: 12px 2px; }
  .hours__table thead th:first-child { width: 30%; font-size: 13px; }
  .hours__table tbody th { font-size: 13px; }
  .hours__table .on { width: 16px; height: 16px; }
  .hours__table .off { width: 14px; }
  .hours__closed { font-size: 16.5px; }
  .footer__copy { padding: 90px 0 110px; }

  .reserve { width: auto; left: 16px; right: 16px; bottom: 14px; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 14px; border-radius: 999px; font-size: 17px; }
  .reserve svg { width: 24px; height: 24px; }
}

@media (max-width: 520px) {
  .site-header { gap: 10px; }
  .header-tel { width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: #fff; }
  .header-tel__num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .header-tel svg { width: 20px; height: 20px; fill: var(--mint-dark); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
