/* ==========================================================================
   訪問マッサージ てくてく — style.css
   モバイルファースト、素のCSS。ビルド不要。
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --sage:        #B6D9CC;  /* ロゴ本体から実測（最も確度の高いブランドグリーン） */
  --sage-tint:   #EEF6F1;  /* 白カード上のごく淡い緑 */
  --green:       #11591B;  /* 見出し用の濃い緑（白背景専用・コントラスト8.5:1） */
  --ink:         #333333;  /* ロゴ文字から実測。本文・緑背景上の見出しに使用 */
  --ink-muted:   #5C5C5C;  /* 補足・注記（白背景専用） */
  --ink-muted-on-sage: #454545; /* セージ背景上の補足・注記（6.4:1） */
  --white:       #FFFFFF;
  --accent:      #F0820A;  /* チラシ実測のオレンジ。罫・カード端など小面積の装飾のみに使用。
                              文字は乗せない（地としての最大コントラストが7.90:1に留まり、
                              高齢者には構造的に読みづらいため。2026-09 に運用変更）。 */
  --accent-wash: #FDF1E3;  /* ↑由来の極淡面。ここには文字を乗せられる */
  --accent-deep: #9A4600;  /* ↑由来の文字・アイコン用トーン（ブランド色そのものではなく用途派生） */
  --accent-pink: #DC6EAA;  /* チラシ実測のピンク。ワンポイントのみ */
  --line:        #D9E5DE;

  --font-body:    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-heading: "Zen Maru Gothic", var(--font-body);
  --font-logo:    "Noto Serif JP", "Hiragino Mincho ProN", serif;

  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;

  --section-pad-y: clamp(3rem, 8vw, 6rem);
  --space-head:    clamp(1.5rem, 4vw, 3rem);
  --gutter:        clamp(1.25rem, 5vw, 3rem);
  --measure:       42rem;
  --measure-wide:  72rem;

  --radius:    14px;  /* カード・写真など面のかたまり */
  --radius-sm: 10px;  /* バッジなど小さな面 */
  --card-pad:  clamp(1.5rem, 4vw, 2.5rem);
  /* ピル形状(border-radius:999px)は使わない。このサイトの操作はすべて「リンク」であり、
     塗られた角丸の箱ではなく文字の大きさ・太さ・アイコン・下線で示す（2026-09 廃止）。 */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Base typography ---------- */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.9;
  letter-spacing: .02em;
  text-align: left;
  line-break: strict;
  word-break: normal;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  font-feature-settings: "palt" 1; /* paltが効くのはNoto Sans JP(本文)のみ */
}

h1, h2, h3, h4, .display, .lede, .price-amount {
  font-family: var(--font-heading);
  line-height: 1.35;
  text-wrap: balance;
  word-break: auto-phrase;
}
h1, h2, h3, h4 {
  letter-spacing: -.01em;
  text-spacing-trim: trim-start;
}
.display, .section-title, .lede, .price-amount {
  letter-spacing: -.025em;
  text-spacing-trim: trim-start;
}

p, dd, address, li {
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  background: var(--accent-wash);
  color: var(--accent-deep);
  border: 1px solid rgba(154, 70, 0, .18);
  border-radius: var(--radius-sm);
  padding: .3rem .75rem;
  font-size: clamp(.8125rem, 1.4vw, .9375rem);
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: var(--sp-2);
}

.kicker {
  display: block;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink-muted);
  margin-bottom: .5rem;
}
.on-sage .kicker,
.on-tint .kicker { color: var(--ink-muted-on-sage); }
.kicker::after {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  margin-top: .5rem;
  background: var(--accent);
  border-radius: 2px;
}
.head.center .kicker::after { margin-inline: auto; }

.section-title {
  font-size: clamp(1.875rem, 4.8vw, 2.875rem);
  font-weight: 700;
  color: var(--green);
}
.on-sage .section-title,
.on-sage h1, .on-sage h2, .on-sage h3 { color: var(--ink); }

.head-sub {
  color: var(--green);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  margin-top: 1rem;
}
.on-sage .head-sub { color: var(--ink); }

.lede {
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  font-weight: 700;
}

.note {
  font-size: clamp(.9375rem, 1.2vw, 1rem);
  color: var(--ink-muted);
}
.on-sage .note,
.on-tint .note { color: var(--ink-muted-on-sage); }

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--measure-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.prose {
  max-width: var(--measure);
}
.prose.center { margin-inline: auto; text-align: left; }

section.block {
  padding-block: var(--section-pad-y);
  scroll-margin-top: 76px;
}
.on-sage { background: var(--sage); }
.on-tint { background: var(--sage-tint); }
.on-white { background: var(--white); }

.head { margin-bottom: var(--space-head); }
.head.center { text-align: center; }

.title-badge {
  display: inline-block;
  background: var(--white);
  border: 1px solid rgba(17, 89, 27, .18);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: 0 1px 2px rgba(17, 89, 27, .04), 0 6px 16px rgba(17, 89, 27, .06);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: .75rem;
  max-width: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { height: 34px; width: auto; }
.brand-text {
  font-family: var(--font-logo);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
}

.chip-nav {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: .25rem;
  flex: 1;
  min-width: 0;
}
.chip-nav::-webkit-scrollbar { display: none; }
.chip-nav a {
  flex-shrink: 0;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  padding-block: .5rem;
  border-bottom: 2px solid transparent;
}
.chip-nav a:hover, .chip-nav a:focus-visible { border-bottom-color: var(--green); }

.header-tel {
  display: none;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
  padding: .55rem .25rem .55rem 1rem;
  border-left: 1px solid var(--line);
  text-decoration: none;
  white-space: nowrap;
}
.header-tel .tel-icon { width: 1.15rem; height: 1.15rem; }
.header-tel-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--green);
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "palt" 0;
}
.header-tel[href]:hover .header-tel-number,
.header-tel[href]:focus-visible .header-tel-number {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .14em;
}
.header-tel:not([href]) { cursor: default; }

@media (min-width: 768px) {
  .header-tel { display: inline-flex; }
}

@media (max-width: 1023px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: .5rem; }
  .chip-nav {
    order: 3;
    flex-basis: 100%;
    padding-inline-end: 2rem;
    mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent);
  }
}

/* ---------- 電話番号の表示（押せるが、ボタンには見せない） ---------- */
.tel {
  display: grid;
  gap: .2rem;
  justify-items: start;
}
.tel--center { justify-items: center; text-align: center; margin-inline: auto; }

.tel-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--ink);
  letter-spacing: .02em;
}

.tel-number {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  font-size: clamp(1.75rem, 6.5vw, 2.375rem);
}
.tel--lg .tel-number { font-size: clamp(2rem, 7.5vw, 2.75rem); }

.tel-icon {
  width: .85em; height: .85em;
  flex-shrink: 0;
  color: var(--accent-deep);
}

.tel-number a {
  color: var(--green);
  text-decoration: none;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "palt" 0;
  padding-block: .1em;
}
.tel-number a:hover,
.tel-number a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .16em;
}
.tel-number a:not([href]) { cursor: default; }
.tel-number a:not([href]):hover { text-decoration: none; }

.tel-hours {
  font-size: clamp(.875rem, 1.2vw, 1rem);
  color: var(--ink-muted);
}

.on-sage .tel-number a      { color: var(--ink); }
.tel-emphasis .tel-number a { color: var(--green); }
.on-sage .tel-hours,
.on-tint .tel-hours { color: var(--ink-muted-on-sage); }

/* ---------- Hero ---------- */
.hero {
  background: var(--white);
}
.hero .wrap {
  display: grid;
  gap: var(--sp-4);
  align-items: center;
  padding-block: var(--section-pad-y);
}
.hero .wrap > * { min-width: 0; }
.hero-media {
  order: -1;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.96) contrast(1.02); }

.hero-logo { margin-bottom: var(--sp-3); max-width: min(340px, 100%); }

.hero-catch {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(1.375rem, 3.6vw, 1.875rem);
  line-height: 1.5;
  letter-spacing: -.01em;
  margin-bottom: var(--sp-4);
}

.tel--hero { margin-bottom: var(--sp-2); }

@media (min-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr 1fr; }
  .hero-media { order: 0; aspect-ratio: 1 / 1; }
}

/* ---------- Card system (共通) ---------- */
.price-card, .caremanager-section {
  background: var(--white);
  border: 1px solid rgba(17, 89, 27, .10);
  border-radius: var(--radius);
}
.price-card {
  padding: var(--card-pad);
  box-shadow: 0 1px 2px rgba(17, 89, 27, .04), 0 10px 28px rgba(17, 89, 27, .06);
}

/* ---------- Service (業務内容) ---------- */
.service-note {
  text-align: center;
  margin-bottom: var(--sp-5);
}

.service-list {
  max-width: var(--measure);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.service-list li, .hospitality-body li {
  display: grid;
  grid-template-columns: 1.5em 1fr;
  gap: .5rem;
  align-items: start;
}
.service-list li > :first-child,
.hospitality-body li > :first-child { text-align: center; }
.service-list .mark { color: var(--ink); }
.hospitality-body .mark { color: var(--green); }
.service-list .disclaimer { color: var(--ink-muted-on-sage); font-size: 1rem; }

.service-cta { text-align: center; margin-top: var(--sp-5); }

/* ---------- Symptoms (対象となる症状) ---------- */
.symptom-groups {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 768px) {
  .symptom-groups { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
}
.symptom-group h3 {
  display: inline-block;
  background: var(--white);
  border: 1px solid rgba(17, 89, 27, .18);
  border-radius: var(--radius);
  padding: .5rem 1.25rem;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  color: var(--green);
  margin-bottom: var(--sp-3);
  box-shadow: 0 1px 2px rgba(17, 89, 27, .04), 0 6px 16px rgba(17, 89, 27, .06);
}
.symptom-group figure { margin: 0 0 var(--sp-3); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.symptom-group img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.96) contrast(1.02); }
.symptom-list dt { font-weight: 700; font-size: clamp(1.125rem, 1.7vw, 1.3125rem); margin-top: var(--sp-3); }
.symptom-list dt:first-child { margin-top: 0; }
.symptom-list dd { color: var(--ink-muted); font-size: clamp(1rem, 1.3vw, 1.0625rem); margin-top: .2rem; }

/* ---------- Flow (ご利用の流れ) ---------- */
.flow-list {
  display: grid;
  gap: var(--sp-4);
  counter-reset: flow;
  max-width: var(--measure-wide);
  margin-inline: auto;
}
@media (min-width: 1024px) {
  .flow-list { grid-template-columns: repeat(4, 1fr); column-gap: var(--sp-4); row-gap: 0; }
}
.flow-step { position: relative; padding-left: 3.5rem; }
.flow-step .num {
  position: absolute;
  left: 0; top: 0;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent-pink);
  color: var(--green);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.flow-step h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: .4rem; }
.flow-step p { color: var(--ink-muted-on-sage); font-size: 1rem; }

@media (min-width: 1024px) {
  .flow-step { padding-left: 0; padding-top: 3.5rem; }
  .flow-step .num { left: 0; top: 0; }
}

.rep {
  display: grid;
  gap: var(--sp-2);
  justify-items: center;
  max-width: 40rem;
  margin: var(--sp-6) auto 0;
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(17, 89, 27, .10);
  border-top: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--card-pad);
  box-shadow: 0 1px 2px rgba(17,89,27,.04), 0 10px 28px rgba(17,89,27,.06);
}
.rep .tel { margin-top: var(--sp-2); }
.rep-photo {
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.rep-photo img { width: 100%; height: 100%; object-fit: cover; }
.rep-name { font-weight: 700; font-size: 1.0625rem; }
.rep .rep-heading {
  color: var(--green);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  margin-top: var(--sp-2);
}
.rep-hours { color: var(--ink-muted); font-size: .9375rem; margin-top: .25rem; }

/* ---------- Price ---------- */
.price-card {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}
.price-card .lead { font-size: 1rem; color: var(--ink-muted); margin-bottom: .5rem; }
.price-amount {
  font-weight: 700;
  color: var(--green);
  font-size: clamp(2rem, 6vw, 3rem);
  margin-block: .5rem;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "palt" 0;
}
.price-amount small {
  display: block;
  line-height: 1.6;
  margin-top: .5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-muted);
  font-variant-numeric: normal;
  font-feature-settings: "palt" 1;
}
.price-body { color: var(--ink-muted); font-size: .9375rem; text-align: left; margin-top: var(--sp-3); }
.price-body p { margin-top: .5rem; }

/* ---------- Area ---------- */
.area-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.area-chip {
  background: var(--white);
  border-radius: var(--radius);
  padding: .9rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
}
.area-note { text-align: center; color: var(--ink-muted-on-sage); margin-bottom: var(--sp-4); }

/* ---------- Hospitality ---------- */
.hospitality-body {
  max-width: var(--measure);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* ---------- About / ケアマネ / Footer ---------- */
.about-block h3 { font-size: 1.0625rem; margin-bottom: var(--sp-2); }
.about-block address { font-style: normal; color: var(--ink); line-height: 1.9; }
.about-block .hours { margin-top: var(--sp-3); }
#about .head img { margin-bottom: .5rem; }
.sns-row { display: flex; gap: .75rem; margin-top: var(--sp-3); }
.sns-row a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.sns-row svg { width: 22px; height: 22px; }

.caremanager-section {
  max-width: var(--measure);
  margin: var(--sp-6) auto 0;
  padding: var(--card-pad);
}
.caremanager-section h3 { color: var(--green); margin-bottom: var(--sp-3); font-size: clamp(1.25rem, 2.4vw, 1.5rem); text-align: center; }
.caremanager-section p { color: var(--ink); margin-top: .9rem; }
.caremanager-contact { margin-top: var(--sp-3); text-align: center; }
.caremanager-contact { font-weight: 700; color: var(--green); }
.caremanager-contact a { text-decoration: none; }

.site-footer-bottom {
  text-align: center;
  font-size: .875rem;
  color: var(--ink-muted-on-sage);
  padding-block: var(--sp-4);
  background: var(--sage);
}
.site-footer-bottom a { text-decoration: underline; }

/* ---------- Mobile fixed CTA ---------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--white);
  border-top: 3px solid var(--accent);
  box-shadow: 0 -2px 12px rgba(0,0,0,.10);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  text-decoration: none;
  padding: .6rem 1rem;
  padding-bottom: calc(.6rem + env(safe-area-inset-bottom, 0px));
}
.mobile-cta-text { display: grid; line-height: 1.4; }
.mobile-cta-label { font-family: var(--font-heading); font-weight: 700; font-size: .9375rem; color: var(--ink); }
.mobile-cta-hours { font-size: .8125rem; color: var(--ink-muted); }
.mobile-cta-number {
  display: flex; align-items: center; gap: .4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.125rem, 4.8vw, 1.3125rem);
  color: var(--green);
  line-height: 1.3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "palt" 0;
}
.mobile-cta .tel-icon { width: 1.1rem; height: 1.1rem; }
.mobile-cta a[href]:hover .mobile-cta-number,
.mobile-cta a[href]:focus-visible .mobile-cta-number {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .14em;
}
.mobile-cta a:not([href]) { cursor: default; }
.mobile-cta a:focus-visible { outline-offset: -4px; }

.cta-spacer { height: 0; }
.cta-spacer.is-active { height: calc(60px + env(safe-area-inset-bottom, 0px)); }

@media (min-width: 1024px) {
  .mobile-cta { display: none; }
}

/* ---------- Scroll reveal(JS前提。JS未実行時は常に表示) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: .75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: var(--gutter); top: var(--gutter); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
