@charset "UTF-8";
/* ==========================================================================
   木本歯科 — 静的1ページ
   FLOCSS（l- / c- / p- / u-）・流動 rem（Figma px ÷ 10 = rem）
   PC: デザイン幅 1440px ／ SP: デザイン幅 375px（1179px 以下は SP レイアウト）
   ========================================================================== */

/* Foundation
   ========================================================================== */
:root {
  --c-text: #2f302d;
  --c-sub: #686862;
  --c-sub2: #56564f;
  --c-green: #3a8763;
  --c-green-pale: #e7f1eb;
  --c-blue: #0068b0;
  --c-bg: #e8e6de;
  --c-base: #fcfcf9;
  --c-beige: #f1efe8;
  --c-line: #e2e0d8;
  --c-map: #e6e4dc;
  --c-alert: #b3261e;
  --ff-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --ff-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", var(--ff-body);
  --ff-en: "Outfit", var(--ff-body);
  --ease-out: cubic-bezier(.22,.61,.36,1);
}

html {
  font-size: calc(100vw / 144); /* PC: 1440px で 1rem = 10px */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (min-width: 1920px) {
  html { font-size: 13.333px; }
}
@media (max-width: 1179px) {
  html { font-size: min(calc(100vw / 37.5), 14px); } /* SP: 375px で 1rem = 10px */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-body);
  font-size: 1.4rem;
  line-height: 1.8;
  letter-spacing: .04em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  line-break: strict;
  word-break: auto-phrase; /* 和文を文節で折り返す（対応ブラウザのみ） */
}
p, h1, h2, h3, dd, li, figcaption { text-wrap: pretty; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--ff-head); font-weight: 700; }
small { font-size: inherit; }

/* Layout
   ========================================================================== */
.l-header { display: none; }

.l-wrapper {
  display: grid;
  grid-template-columns: 34rem 104rem;
  grid-template-areas:
    "side hero"
    "side main";
  column-gap: 2rem;
  justify-content: center;
  padding: 2rem;
}

.l-side {
  grid-area: side;
  align-self: start;
  position: sticky;
  top: 2rem;
}
.l-side__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3.2rem 4.4rem;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 .8rem 2.4rem rgba(102, 77, 51, .06);
}
.l-side__brand img { width: 20rem; }
.l-side__brand p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--c-sub);
}
.l-side__address {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--c-sub);
}

.l-main {
  grid-area: main;
  background: var(--c-base);
  border-radius: 0 0 1.2rem 1.2rem;
  overflow: hidden;
}

.l-section { padding: 10rem 8rem; }
.l-section--beige { background: var(--c-beige); }

.l-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 5.6rem 8rem;
  background: var(--c-beige);
}
.l-footer__info { display: flex; flex-direction: column; gap: .6rem; }
.l-footer__name {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.5;
  letter-spacing: .16em;
}
.l-footer__address { font-size: 1.2rem; line-height: 1.7; color: var(--c-sub); }
.l-footer__blog {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  width: fit-content;
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.6;
  letter-spacing: .06em;
  color: var(--c-green);
  text-decoration: underline;
  text-underline-offset: .3em;
}
.l-footer__blog img { width: 1.2rem; }
.l-footer__copy {
  font-family: var(--ff-en);
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--c-sub);
}
.l-footer__badge { display: flex; align-items: center; gap: 1.2rem; }
.l-footer__badge img { width: 6.4rem; }
.l-footer__badge p { font-size: 1.1rem; line-height: 1.7; color: var(--c-sub); }

@media (max-width: 1179px) {
  .l-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2rem;
    background: #fff;
  }
  .l-header { gap: 1rem; }
  .l-header__logo { margin-right: auto; }
  .l-header__logo img { width: 13rem; }

  /* ハンバーガー：2本線 → × */
  .l-header__burger {
    position: relative;
    width: 4rem;
    height: 4rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--c-text);
    cursor: pointer;
  }
  .l-header__burger span {
    position: absolute;
    left: 1rem;
    width: 2rem;
    height: 1.5px;
    background: currentColor;
    transition: transform .3s var(--ease-out), top .3s var(--ease-out);
  }
  .l-header__burger span:nth-child(1) { top: 1.6rem; }
  .l-header__burger span:nth-child(2) { top: 2.3rem; }
  .is-menuOpen .l-header__burger span:nth-child(1) { top: 1.95rem; transform: rotate(45deg); }
  .is-menuOpen .l-header__burger span:nth-child(2) { top: 1.95rem; transform: rotate(-45deg); }

  /* メニュー：ヘッダーの下に開くパネル＋うしろを薄く覆う */
  .l-drawer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100dvh;
    background: rgba(47, 48, 45, .2);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .l-drawer__inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: .8rem 2rem 3.2rem;
    background: #fff;
    border-top: 1px solid var(--c-line);
    transform: translateY(-.8rem);
    transition: transform .4s var(--ease-out);
  }
  .l-drawer .p-guide { border-top: 0; }
  .l-drawer__address { font-size: 1.2rem; line-height: 1.8; color: var(--c-sub); }
  .is-menuOpen .l-drawer { opacity: 1; visibility: visible; }
  .is-menuOpen .l-drawer__inner { transform: none; }
  html.is-menuOpen { overflow: hidden; }

  .l-wrapper {
    display: block;
    padding: 0;
    background: var(--c-base);
  }
  .l-side { position: static; }
  .l-side__inner {
    padding: 3.6rem 2rem 4rem;
    border-radius: 0;
    box-shadow: none;
  }
  .l-side__brand { display: none; }

  .l-main { border-radius: 0; }
  .l-section { padding: 7.2rem 2rem; }

  .l-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.4rem;
    padding: 4.8rem 2rem;
  }
}

/* Component
   ========================================================================== */
/* 見出し：青い角マーカー＋英字ラベル＋和文 */
.c-heading { display: flex; flex-direction: column; gap: 1rem; margin: 0; }
.c-heading__en {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: .12em;
  color: var(--c-green);
}
.c-heading__en::before {
  content: "";
  width: .8rem;
  height: .8rem;
  border-radius: .2rem;
  background: var(--c-blue);
}
.c-heading__title {
  font-size: 3.4rem;
  line-height: 1.5;
  letter-spacing: .04em;
}
.c-heading__title--m { font-size: 3.1rem; letter-spacing: .02em; }
@media (max-width: 1179px) {
  .c-heading__title { font-size: 2.6rem; }
  .c-heading__title--m { font-size: 2.4rem; }
}

.c-circle-arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--c-beige);
  color: var(--c-green);
  font-size: 1.3rem;
  line-height: 1;
}
.c-circle-arrow img { width: 1.3rem; }

.c-btn-tel {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.4rem .8rem 1.2rem;
  border-radius: .6rem;
  background: var(--c-green);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1.5;
}
.c-btn-tel__icon { width: 1.8rem; height: 1.8rem; fill: currentColor; }

/* 施設基準のアコーディオン（details / summary） */
.c-accordion { border-bottom: 1px solid var(--c-line); }
.c-accordion__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 0;
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
.c-accordion__head::-webkit-details-marker { display: none; }
.c-accordion__head::after {
  content: "+";
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
  color: var(--c-green);
}
.c-accordion[open] .c-accordion__head::after { content: "−"; }
.c-accordion__head:focus-visible { outline: 2px solid var(--c-green); outline-offset: 2px; }
.c-accordion__body {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding-bottom: 2.2rem;
  font-size: 1.3rem;
  line-height: 1.9;
  color: var(--c-sub);
}
.c-accordion__body li::before { content: "・"; }

/* Project
   ========================================================================== */
/* --- Hero --- */
.p-hero {
  grid-area: hero;
  position: relative;
  height: 70rem;
  border-radius: 1.2rem 1.2rem 0 0;
  overflow: hidden;
}
.p-hero__slides { position: relative; height: 100%; background: var(--c-beige); }
.p-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-hero__img:not(:first-child) { opacity: 0; }
.p-hero__card {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 46.8rem;
  padding: 4.8rem 6.4rem 4.4rem 5.6rem;
  background: var(--c-base);
  border-radius: 0 1.6rem 0 0;
}
.p-hero__en {
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: .16em;
  color: var(--c-green);
}
.p-hero__title {
  white-space: nowrap;
  font-size: 4.8rem;
  line-height: 1.5;
  letter-spacing: .04em;
}
.p-hero__lead {
  font-size: 1.4rem;
  line-height: 1.95;
  color: var(--c-sub);
}
@media (max-width: 1179px) {
  .p-hero {
    height: auto;
    border-radius: 0;
    background: var(--c-base);
  }
  .p-hero__slides { height: 46rem; }
  .p-hero__img:nth-child(2) { object-position: 70% 50%; }
  .p-hero__img:nth-child(3) { object-position: 65% 50%; }
  .p-hero__card {
    position: relative;
    gap: 1.4rem;
    width: calc(100% - 3.2rem);
    max-width: 52rem;
    margin-top: -6rem;
    padding: 2.8rem 2.4rem;
  }
  .p-hero__title { font-size: 3.2rem; }
}

/* --- サイドバーの中身 --- */
.p-hours {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem 2rem;
  background: var(--c-beige);
  border-radius: .8rem;
}
.p-hours__title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.5;
}
.p-hours__list { display: flex; }
.p-hours__item { display: flex; flex-direction: column; gap: .2rem; }
.p-hours__item + .p-hours__item {
  margin-left: 1.4rem;
  padding-left: 1.6rem;
  border-left: 1px solid #dcdad0;
}
.p-hours__item dt { font-size: 1.2rem; line-height: 1.5; color: var(--c-sub); }
.p-hours__item dd {
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.3;
  letter-spacing: .02em;
}
.p-hours__closed { font-size: 1.2rem; line-height: 1.5; color: var(--c-sub); }

.p-contact { display: flex; flex-direction: column; gap: .4rem; }
.p-contact__label { font-size: 1.2rem; line-height: 1.5; color: var(--c-sub); }
.p-contact__tel {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: 3rem;
  line-height: 1.2;
  letter-spacing: .02em;
}
.p-contact__tel svg { width: 2.4rem; height: 2.4rem; fill: var(--c-green); }

.p-guide { border-top: 1px solid var(--c-line); }
.p-guide li { border-bottom: 1px solid var(--c-line); }
.p-guide__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.3rem 0;
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.5;
}

/* --- 強み --- */
.p-strength {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  padding: 5.6rem 8rem 2.4rem;
}
.p-strength__item { display: flex; flex-direction: column; gap: .8rem; padding: 0 3.2rem; }
.p-strength__item:first-child { padding-left: 0; }
.p-strength__item + .p-strength__item { border-left: 1px solid var(--c-line); }
.p-strength__en {
  font-family: var(--ff-en);
  font-weight: 300;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: .12em;
  color: var(--c-green);
}
.p-strength__title { font-size: 1.9rem; line-height: 1.5; }
.p-strength__text {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--c-sub);
}
@media (max-width: 1179px) {
  .p-strength {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    padding: 4.8rem 2rem;
  }
  .p-strength__item { padding: 0; }
  .p-strength__item + .p-strength__item {
    padding-top: 2.4rem;
    border-left: 0;
    border-top: 1px solid var(--c-line);
  }
  .p-strength__title { font-size: 1.8rem; }
}

/* --- 診療方針 --- */
.p-policy {
  display: flex;
  align-items: center;
  gap: 4.8rem;
  padding: 8rem 8rem 10rem;
}
.p-policy__body { display: flex; flex-direction: column; gap: 2.8rem; width: 38.1rem; flex-shrink: 0; }
.p-policy__text { font-size: 1.5rem; line-height: 2; color: var(--c-sub); }
.p-policy__cards { display: flex; flex-direction: column; gap: 1.6rem; }
.p-policy__card {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: 39.5rem;
  padding: 2.4rem 3.2rem 2.4rem 2.8rem;
  background: var(--c-green-pale);
  border-radius: .8rem;
}
.p-policy__card:nth-child(2) { margin-left: 2.8rem; }
.p-policy__card:nth-child(3) { margin-left: 5.6rem; }
.p-policy__num {
  font-family: var(--ff-en);
  font-weight: 300;
  font-size: 4.4rem;
  line-height: 1;
  color: var(--c-green);
}
.p-policy__card-title { font-size: 1.7rem; line-height: 1.5; margin-bottom: .4rem; }
.p-policy__card-text { font-size: 1.3rem; line-height: 1.8; color: var(--c-sub); }
@media (max-width: 1179px) {
  .p-policy { flex-direction: column; align-items: stretch; gap: 4rem; padding: 7.2rem 2rem; }
  .p-policy__body { width: auto; }
  .p-policy__card { width: auto; gap: 1.6rem; padding: 2.4rem 2rem; }
  .p-policy__card:nth-child(2) { margin-left: 1.2rem; }
  .p-policy__card:nth-child(3) { margin-left: 2.4rem; }
  .p-policy__card-title { font-size: 1.7rem; }
}

/* --- 院長 --- */
.p-doctor { display: flex; gap: 6.4rem; }
.p-doctor__photo {
  width: 36rem;
  height: 56.6rem;
  object-fit: cover;
  border-radius: .8rem;
  flex-shrink: 0;
}
.p-doctor__body { display: flex; flex-direction: column; gap: 1.8rem; width: 45.6rem; }
.p-doctor__body .c-heading { gap: 1.8rem; }
.p-doctor__body .c-heading__title { font-size: 3rem; line-height: 1.6; letter-spacing: .04em; }
.p-doctor__text { font-size: 1.5rem; line-height: 2; color: var(--c-sub); }
.p-doctor__sign { display: flex; flex-direction: column; gap: .2rem; padding-top: .8rem; }
.p-doctor__name { display: flex; align-items: baseline; gap: 1.4rem; }
.p-doctor__role { font-size: 1.2rem; color: var(--c-sub); }
.p-doctor__kanji {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1.5;
  letter-spacing: .14em;
}
.p-doctor__kana { font-size: 1.2rem; letter-spacing: .06em; color: var(--c-sub); }
.p-doctor__title { font-size: 1.3rem; line-height: 1.4; letter-spacing: .06em; color: var(--c-sub); }

.p-career { padding-top: 2rem; border-top: 1px solid #dedcd3; }
.p-career__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.5;
}
.p-career__head span {
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: .12em;
  color: var(--c-green);
}
.p-career__list { display: flex; flex-direction: column; gap: .4rem; }
.p-career__list div { display: flex; gap: 1.4rem; font-size: 1.2rem; line-height: 1.65; }
.p-career__list dt {
  flex-shrink: 0;
  width: 3.6rem;
  font-family: var(--ff-en);
  font-weight: 300;
  letter-spacing: .02em;
  color: var(--c-green);
}
.p-career__list dd { color: var(--c-sub2); }
@media (max-width: 1179px) {
  .p-doctor { flex-direction: column; gap: 3.2rem; }
  .p-doctor__photo { width: 100%; max-width: 40rem; height: auto; aspect-ratio: 4 / 5; }
  .p-doctor__body { width: auto; }
  .p-doctor__body .c-heading__title { font-size: 2.4rem; }
}

/* --- 痛み・怖さへの配慮 --- */
.p-care { display: flex; gap: 5.6rem; }
.p-care__body { display: flex; flex-direction: column; gap: 2.4rem; flex: 1; }
.p-care__list { border-top: 1px solid var(--c-line); }
.p-care__list li {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--c-line);
}
.p-care__list h3 { font-size: 1.7rem; line-height: 1.6; }
.p-care__list p { font-size: 1.3rem; line-height: 1.8; color: var(--c-sub); }
.p-care__img {
  width: 38rem;
  height: 50rem;
  object-fit: cover;
  border-radius: .8rem;
  flex-shrink: 0;
}
@media (max-width: 1179px) {
  .p-care { flex-direction: column; gap: 3.2rem; }
  .p-care__img { width: 100%; height: 26rem; }
  .p-care .c-heading__title { font-size: 2.6rem; }
}

/* --- 院内の様子 --- */
.p-gallery { display: flex; flex-direction: column; gap: 5.6rem; }
.p-gallery__head { display: flex; align-items: flex-end; justify-content: space-between; }
.p-gallery__lead { font-size: 1.3rem; line-height: 1.9; color: var(--c-sub); }
.p-gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.8rem 2rem;
}
.p-gallery__item img,
.p-gallery__rooms img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: .8rem;
}
.p-gallery__rooms { grid-column: 1 / -1; }
.p-gallery__rooms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.p-gallery__rooms img { aspect-ratio: 4 / 3; }
.p-gallery figcaption {
  margin-top: 1rem;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--c-sub);
}
@media (max-width: 1179px) {
  .p-gallery { gap: 3.2rem; }
  .p-gallery__head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .p-gallery .c-heading__title { font-size: 2.6rem; }
  .p-gallery__grid { gap: 2rem 1.2rem; }
  .p-gallery__item img { aspect-ratio: 4 / 3; }
  .p-gallery__rooms-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
}

/* --- 診療科目 --- */
.p-treatment { display: flex; flex-direction: column; gap: 5.6rem; }
.p-treatment__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.p-treatment__list { border-top: 1px solid var(--c-line); }
.p-treatment__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--c-line);
}
.p-treatment__item h3 { font-size: 1.7rem; line-height: 1.5; }
.p-treatment__item p { font-size: 1.3rem; line-height: 1.7; color: var(--c-sub); }
@media (max-width: 1179px) {
  .p-treatment { gap: 3.2rem; }
  .p-treatment .c-heading__title { font-size: 2.6rem; }
  /* SP は2列を1本の並びにして「まずはご相談」を最後へ（PC の並びはそのまま） */
  .p-treatment__cols { display: flex; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--c-line); }
  .p-treatment__list { display: contents; }
  .p-treatment__item--last { order: 1; }
}

/* --- はじめての方へ --- */
.p-first { display: flex; flex-direction: column; gap: 5.6rem; padding-top: 2rem; }
.p-first__flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 2.7rem;
}
.p-first__flow::before {
  content: "";
  position: absolute;
  top: 2.7rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--c-line);
}
.p-first__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}
.p-first__step div { display: flex; flex-direction: column; gap: 1.2rem; }
.p-first__num {
  display: grid;
  place-items: center;
  width: 5.6rem;
  height: 5.6rem;
  border: 1.5px solid var(--c-green);
  border-radius: 50%;
  background: #fff;
  color: var(--c-green);
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
}
.p-first__step.is-current .p-first__num { background: var(--c-green); color: #fff; }
.p-first__step h3 { font-size: 1.5rem; line-height: 1.5; }
.p-first__step p { font-size: 1.2rem; line-height: 1.7; color: var(--c-sub); }

.p-first__notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.p-first__note {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.6rem;
  background: var(--c-beige);
  border-radius: .4rem;
}
.p-first__note h3 { font-size: 1.5rem; line-height: 1.5; }
.p-first__note p { font-size: 1.25rem; line-height: 1.8; color: var(--c-sub); }
@media (min-width: 1180px) {
  /* 幅が狭いカードは文節折り返しだと3行になるので、通常の折り返しで2行に収める */
  .p-first__note p { word-break: normal; text-wrap: wrap; }
}
@media (max-width: 1179px) {
  .p-first { gap: 3.6rem; padding-top: 0; }
  .p-first .c-heading__title { font-size: 2.6rem; }
  .p-first__flow { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 0; }
  .p-first__flow::before { display: none; }
  .p-first__step { flex-direction: row; align-items: flex-start; gap: 1.6rem; text-align: left; }
  .p-first__step div { gap: .4rem; padding-top: .2rem; }
  .p-first__num { width: 4.4rem; height: 4.4rem; flex-shrink: 0; }
  .p-first__notes { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* --- 建物（アクセス前の全幅写真） --- */
.p-building img { width: 100%; height: 32rem; object-fit: cover; }
@media (max-width: 1179px) {
  .p-building img { height: 18rem; object-position: 45% 50%; }
}

/* --- アクセス --- */
.p-access { display: flex; flex-direction: column; gap: 5.6rem; }
.p-access__body { display: flex; gap: 2.4rem; align-items: flex-start; }
.p-access__map {
  width: 50rem;
  height: 42rem;
  flex-shrink: 0;
  border-radius: .8rem;
  overflow: hidden;
  background: var(--c-map);
}
.p-access__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.p-access__info { flex: 1; border-top: 1px solid var(--c-line); }
.p-access__info div {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--c-line);
}
.p-access__info dt {
  flex-shrink: 0;
  width: 7.2rem;
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--c-green);
}
.p-access__info dd { font-size: 1.4rem; line-height: 1.7; }
.p-access__tel {
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: 2.2rem;
  line-height: 1.4;
  letter-spacing: .02em;
}
@media (max-width: 1179px) {
  .p-access { gap: 3.2rem; }
  .p-access .c-heading__title { font-size: 2.6rem; }
  .p-access__body { flex-direction: column; }
  .p-access__map { width: 100%; height: 24rem; }
  .p-access__info { width: 100%; }
}

/* --- 施設基準・保険診療 --- */
.p-disclosure { display: flex; flex-direction: column; gap: 2.4rem; }
.p-disclosure__title { font-size: 2rem; line-height: 1.5; }
.p-disclosure__list { border-top: 1px solid var(--c-line); }
@media (max-width: 1179px) {
  .p-disclosure__title { font-size: 1.8rem; }
  }

/* Motion（控えめに。動きを減らす設定の人には出さない）
   ========================================================================== */

/* 読み込み時：ヒーロー写真がゆっくり落ち着き、文字が順に出る */
@keyframes fade-up { from { opacity: 0; transform: translateY(1.2rem); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes kv-slide {
  0%    { opacity: 0; transform: scale(1.06); }
  6.5%  { opacity: 1; }
  25%   { opacity: 1; }
  31.5% { opacity: 0; transform: scale(1); }
  100%  { opacity: 0; transform: scale(1); }
}

/* スクロールで出る要素（JS が付ける） */
.c-reveal {
  opacity: 0;
  transform: translateY(1.6rem);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.c-reveal.is-shown { opacity: 1; transform: none; }

/* はじめての方へ：ステップをつなぐ線が左から伸びる（PC） */
.p-first__flow.c-reveal { opacity: 1; transform: none; }
.p-first__flow.c-reveal::before { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out) .2s; }
.p-first__flow.c-reveal.is-shown::before { transform: none; }
.p-first__flow.c-reveal .p-first__step { opacity: 0; transform: translateY(1.2rem); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.p-first__flow.c-reveal.is-shown .p-first__step { opacity: 1; transform: none; }
.p-first__flow.c-reveal .p-first__step:nth-child(2) { transition-delay: .12s; }
.p-first__flow.c-reveal .p-first__step:nth-child(3) { transition-delay: .24s; }
.p-first__flow.c-reveal .p-first__step:nth-child(4) { transition-delay: .36s; }
.p-first__flow.c-reveal .p-first__step:nth-child(5) { transition-delay: .48s; }

/* ホバー：矢印が少し動く・リンクの色が変わる程度 */
.c-circle-arrow { transition: background-color .3s, color .3s, transform .3s var(--ease-out); }
.p-guide__link { transition: color .3s; }
.c-btn-tel, .p-contact__tel { transition: opacity .3s; }
.l-footer__blog { transition: opacity .3s; }
@media (hover: hover) {
  .p-guide__link:hover { color: var(--c-green); }
  .p-guide__link:hover .c-circle-arrow { background: var(--c-green); color: #fff; transform: translateX(.3rem); }
  .p-guide__link:hover .c-circle-arrow img { filter: brightness(0) invert(1); }
  .c-btn-tel:hover, .p-contact__tel:hover, .l-footer__blog:hover { opacity: .75; }
}

/* アコーディオン：開閉をなめらかに（対応ブラウザのみ） */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .c-accordion::details-content {
    height: 0;
    overflow: clip;
    transition: height .4s var(--ease-out), content-visibility .4s allow-discrete;
  }
  .c-accordion[open]::details-content { height: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .p-hero__img { animation: kv-slide 24s linear infinite both; }
  .p-hero__img:nth-child(1) { animation-delay: -1.2s; } /* 1枚目は最初から見えている状態で始める */
  .p-hero__img:nth-child(2) { animation-delay: 4.8s; }
  .p-hero__img:nth-child(3) { animation-delay: 10.8s; }
  .p-hero__img:nth-child(4) { animation-delay: 16.8s; }
  .p-hero__slides { animation: fade-in 1.4s var(--ease-out) both; }
  .p-hero__card > * { animation: fade-up 1s var(--ease-out) both; }
  .p-hero__card > :nth-child(1) { animation-delay: .5s; }
  .p-hero__card > :nth-child(2) { animation-delay: .65s; }
  .p-hero__card > :nth-child(3) { animation-delay: .8s; }
  .l-side__inner { animation: fade-in 1s var(--ease-out) .3s both; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Utility
   ========================================================================== */
.u-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
@media (max-width: 1179px) {
  .u-pc { display: none !important; }
}
@media (min-width: 1180px) {
  .u-sp { display: none !important; }
}

/* SP: 追従ヘッダーぶんアンカー位置をずらす */
@media (max-width: 1179px) {
  [id] { scroll-margin-top: 6rem; }
}
