/* 020 くすのき整骨院・鍼灸院 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #f6f5f0;
  --c-sage: #dfe9df;
  --c-deep: #1f3a2d;
  --c-green: #7fa88a;
  --c-accent-text: #2f5d46;
  --c-ink: #1f2d26;
  --c-light: #e7efe6;
  --c-line: #d9ddd3;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-ink-before: #b7c2b9; /* E02：染まる前の灰色（JSが動くときだけ使う） */
  --font: "Noto Sans JP", sans-serif;
  --font-ja: "Zen Old Mincho", serif;
  --font-en: "EB Garamond", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 2; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }
/* グリッドの中身が、表や写真の元の幅で列を押し広げないように */
[class*="__inner"] > * { min-width: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.en { font-family: var(--font-en); font-style: italic; font-size: 21px; line-height: 1.3; color: var(--c-accent-text); margin-bottom: 6px; }
.en--light { color: var(--c-sage); }
.h2 { font-family: var(--font-ja); font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.55; color: var(--c-ink); margin-bottom: 32px; }
.h2--light { color: #fff; }
.note { margin-top: 20px; font-size: 15px; color: var(--c-sub); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; text-decoration: none; white-space: nowrap; flex: none; border: 1.5px solid transparent; transition: background-color .3s, color .3s; }
.btn--green { background: var(--c-accent-text); color: #fff; }
.btn--green:hover { background: var(--c-deep); }
.btn--line { border-color: var(--c-accent-text); color: var(--c-accent-text); }
.btn--line:hover { background: var(--c-sage); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 17px; }

/* ヘッダー */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 12px 0 16px; background: rgba(246, 245, 240, .93); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line); }
.logo { display: flex; align-items: center; gap: 8px; min-height: 48px; text-decoration: none; color: var(--c-ink); white-space: nowrap; flex: none; }
.logo__mark { width: 32px; height: 32px; flex: none; }
.logo span { font-family: var(--font-ja); font-weight: 700; font-size: 20px; line-height: 1.2; }
.logo small { font-size: 15px; margin-left: 4px; color: var(--c-accent-text); }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; font-size: 15px; padding: 0 16px; }
@media (max-width: 419px) { .logo small { display: none; } }
@media (min-width: 1080px) {
  .header__inner { height: 76px; padding: 0 40px; }
  .gnav { display: flex; gap: 24px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; font-weight: 500; font-size: 15px; text-decoration: none; color: var(--c-ink); }
  .gnav a:hover { color: var(--c-accent-text); }
  .header__btn { margin-left: 0; }
}
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; color: var(--c-ink); }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -7px; } .spmenu__bar::after { top: 7px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-bg); padding: 8px 20px 20px; display: flex; flex-direction: column; box-shadow: 0 16px 32px rgba(31, 45, 38, .12); }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; font-family: var(--font-ja); font-weight: 700; font-size: 17px; color: var(--c-ink); text-decoration: none; border-bottom: 1px solid var(--c-line); }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== 演出①（F04）：アーチと丸の写真 ===== */
.arch { border-radius: 999px 999px 24px 24px; overflow: hidden; background: var(--c-sage); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.dot { border-radius: 50%; overflow: hidden; background: var(--c-sage); border: 6px solid var(--c-bg); }
.dot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.hero { padding: 88px 0 80px; }
.hero__inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: grid; gap: 36px; }
.hero__visual { position: relative; }
.hero__visual .arch { aspect-ratio: 4 / 5; width: 86%; }
.hero__visual .dot { position: absolute; right: 0; bottom: -24px; width: 38%; }
.hero__title { font-family: var(--font-ja); font-weight: 700; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.5; color: var(--c-ink); margin: 8px 0 18px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (min-width: 1080px) {
  .hero { padding: 130px 0 120px; }
  .hero__inner { padding: 0 48px; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 72px; }
  .hero__visual .arch { height: calc(100vh - 220px); min-height: 520px; max-height: 760px; aspect-ratio: auto; width: 82%; }
  .hero__visual .dot { width: 32%; bottom: -40px; }
  .hero__lead { font-size: 17px; }
}

/* ===== 演出②（E02）：染まる文章 ===== */
.message { background: var(--c-sage); padding: 104px 20px; border-radius: 48px 48px 0 0; }
.message__inner { max-width: 760px; margin: 0 auto; }
.message__text { font-family: var(--font-ja); font-weight: 500; font-size: clamp(19px, 2.2vw, 24px); line-height: 2.2; color: var(--c-ink); }
.message__text em { font-style: normal; color: var(--c-accent-text); font-weight: 700; background: linear-gradient(transparent 70%, rgba(127, 168, 138, .35) 0); }
.message__sign { margin-top: 32px; text-align: right; font-size: 15px; color: var(--c-sub); }
.is-motion .message__text .ch { color: var(--c-ink-before); transition: color .35s; }
.is-motion .message__text .ch.is-on { color: var(--c-ink); }
.is-motion .message__text em .ch.is-on { color: var(--c-accent-text); }
.is-motion .message__text em { background-size: 0 100%; background-repeat: no-repeat; transition: background-size .8s; }
.is-motion .message__text em.is-on { background-size: 100% 100%; }
@media (min-width: 900px) { .message { padding: 160px 20px; border-radius: 96px 96px 0 0; } }

/* ===== 演出③（B03）：こんなときに ===== */
.care { padding: 104px 0; }
.care__inner { padding: 0 20px; max-width: 1240px; margin: 0 auto; }
.care__visual { display: none; }
.citem { padding: 32px 0; border-top: 1px solid var(--c-line); }
.citem__img { border-radius: 999px 999px 20px 20px; overflow: hidden; margin-bottom: 20px; max-width: 360px; }
.citem__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.citem__no { font-family: var(--font-en); font-style: italic; font-size: 32px; line-height: 1; color: var(--c-accent-text); }
.citem h3 { font-family: var(--font-ja); font-weight: 700; font-size: 23px; color: var(--c-ink); margin: 8px 0; }
@media (min-width: 1080px) { .care { padding: 160px 0; } .care__inner { padding: 0 48px; } }
.is-motion-pc .care__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 7vw; align-items: start; }
.is-motion-pc .care__visual { display: block; position: sticky; top: 120px; height: calc(100vh - 180px); border-radius: 999px 999px 28px 28px; overflow: hidden; background: var(--c-sage); }
.is-motion-pc .care__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .8s, transform 1.6s; }
.is-motion-pc .care__visual img.is-on { opacity: 1; transform: none; }
.is-motion-pc .citem { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .5s; }
.is-motion-pc .citem.is-on { opacity: 1; }
.is-motion-pc .citem__img { display: none; }
.is-motion-pc .citem h3 { font-size: 30px; }

/* ===== 施術の流れ ===== */
.flow { padding: 104px 0; background: #fff; }
.flow__list { display: grid; gap: 40px; }
.flow__list li { position: relative; text-align: center; }
.dot--sm { width: 180px; margin: 0 auto 16px; border-color: #fff; box-shadow: 0 10px 24px rgba(31, 45, 38, .1); }
.flow__no { font-family: var(--font-en); font-style: italic; font-size: 28px; line-height: 1; color: var(--c-accent-text); }
.flow__list h3 { font-family: var(--font-ja); font-weight: 700; font-size: 21px; color: var(--c-ink); margin: 6px 0; }
@media (min-width: 900px) { .flow { padding: 150px 0; } .flow__list { grid-template-columns: repeat(4, 1fr); gap: 32px; } .dot--sm { width: 100%; max-width: 220px; } }

/* ===== 料金 ===== */
.price { padding: 104px 0; }
.price__list { display: grid; gap: 20px; }
.price__list li { background: #fff; border-radius: 28px; padding: 28px 24px; border-top: 6px solid var(--c-green); }
.price__list h3 { font-family: var(--font-ja); font-weight: 700; font-size: 21px; color: var(--c-ink); }
.price__value { font-family: var(--font-ja); font-weight: 700; font-size: 32px; color: var(--c-accent-text); margin: 6px 0 10px; }
.price__value small { font-family: var(--font); font-size: 15px; font-weight: 500; margin-left: 6px; color: var(--c-sub); }
@media (min-width: 900px) { .price { padding: 150px 0; } .price__list { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* ===== 受付時間・アクセス ===== */
.hours { background: var(--c-deep); color: var(--c-light); padding: 104px 0; }
.hours__inner { display: grid; gap: 48px; }
.table-scroll { overflow-x: auto; }
.hours__table { width: 100%; min-width: 360px; border-collapse: collapse; font-size: 15px; }
.hours__table th, .hours__table td { padding: 12px 6px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.hours__table thead th { color: var(--c-sage); }
.hours__table tbody th { color: #fff; font-weight: 500; text-align: left; white-space: nowrap; }
.hours__table td { color: #fff; }
.hours__note { margin-top: 12px; font-size: 15px; }
.info { margin-top: 24px; }
.info div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.info dt { font-weight: 700; color: #fff; }
.info a { color: #fff; }
.arch--sm { aspect-ratio: 4 / 5; max-width: 420px; width: 100%; justify-self: center; border: 6px solid rgba(255, 255, 255, .15); }
@media (min-width: 900px) { .hours { padding: 150px 0; } .hours__inner { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; } .info div { grid-template-columns: 4em 1fr; gap: 16px; } }

/* ===== フッター ===== */
.footer { background: var(--c-bg); padding: 56px 20px 32px; text-align: center; font-size: 15px; }
.footer__logo { font-family: var(--font-ja); font-weight: 700; font-size: 22px; color: var(--c-ink); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin: 12px 0; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--c-ink); font-weight: 500; }
.footer__fiction { margin-top: 24px; }

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