/* =========================================================================
   さぬき動物霊園 — Brush-up design system
   Warm, gentle, rounded, generous whitespace. Gothic typography.
   Presets (data-preset on <html>): soft / clean / warm
   ========================================================================= */

:root {
  /* ---- type ---- */
  --font-head: "Zen Maru Gothic", "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-body: "Zen Kaku Gothic New", system-ui, sans-serif;

  /* ---- warm beige palette (refined) — white base, very light beige alt ---- */
  --bg:          #FFFFFF;
  --bg-alt:      #EDECE6;
  --surface:     #FFFFFF;
  --surface-2:   #EDECE6;
  --ink:         #463D35;
  --ink-soft:    #6E635A;
  --ink-faint:   #9D9085;
  --line:        #ECE1D3;
  --line-soft:   #F2EADF;

  /* accent (overridable via Tweaks as a palette) */
  --accent:      #F8B62D;
  --accent-deep: #C2820A;
  --accent-soft: #FCE3A8;
  --accent-tint: #FEF5DE;
  --on-accent:   #4A3500;

  /* coloured-section system (neco-republic style: gold + grain + wave) */
  --gold-section: #F4B13E;
  --on-gold:      #6E4A06;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --stripe: repeating-linear-gradient(180deg, rgba(150,120,80,.028) 0, rgba(150,120,80,.028) 1px, transparent 1px, transparent 6px);
  --wave-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,0 L1440,0 L1440,30 C1120,74 360,0 0,42 Z'/%3E%3C/svg%3E");
  --wave-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,70 L1440,70 L1440,40 C1120,-4 360,70 0,28 Z'/%3E%3C/svg%3E");

  /* nature green secondary */
  --sage:        #8C9E82;
  --sage-deep:   #6E815F;
  --sage-soft:   #E6ECDF;

  /* ---- radius (scaled by --rs from Tweaks) ---- */
  --rs: 1;
  --r-xs: calc(8px  * var(--rs));
  --r-sm: calc(14px * var(--rs));
  --r-md: calc(22px * var(--rs));
  --r-lg: calc(32px * var(--rs));
  --r-xl: calc(44px * var(--rs));
  --r-pill: 999px;

  /* ---- soft warm shadows ---- */
  --sh-sm: 0 2px 10px rgba(122, 92, 62, .06);
  --sh-md: 0 12px 34px rgba(122, 92, 62, .09);
  --sh-lg: 0 28px 64px rgba(122, 92, 62, .12);

  /* layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  color-scheme: light;
}

/* ---- preset: clean (すっきり) — tighter radius, less decoration ---- */
:root[data-preset="clean"] {
  --bg: #FFFFFF;
  --bg-alt: #FAF6EF;
  --rs: 0.72;
}
/* ---- preset: warm (あたたか) — deeper warmth, bigger type ---- */
:root[data-preset="warm"] {
  --bg: #F8EFE4;
  --bg-alt: #F1E3D2;
  --accent: #C07E54;
  --accent-deep: #A0623A;
  --accent-soft: #EFD6BF;
  --on-accent: #FFFFFF;
  --font-head: "M PLUS Rounded 1c", "Zen Maru Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image: var(--stripe);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .01em;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.nowrap { white-space: nowrap; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
  margin: 0;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================ buttons ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .03em;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s, border-color .25s;
  text-align: center;
  white-space: nowrap;
}
.btn .arr {
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
  display: inline-block;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover .arr { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 24px -8px rgba(174,113,73,.55);
}
.btn-primary:hover { background: var(--accent-deep); color: #fff; box-shadow: 0 16px 30px -10px rgba(174,113,73,.6); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--sh-sm);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

.btn-soft {
  background: var(--accent-tint);
  color: var(--accent-deep);
}
.btn-soft:hover { background: var(--accent-soft); }

.btn-lg { padding: 19px 36px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ============================ header ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.1) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -16px rgba(122,92,62,.4);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 84px;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px;
  flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--accent-tint);
  color: var(--accent-deep);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 19px; line-height: 1.2; letter-spacing: .04em; white-space: nowrap; }
.brand-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; line-height: 1; }
.brand-logo { display: block; height: 44px; width: auto; }
.brand-sub { font-size: 11px; color: var(--ink-faint); letter-spacing: .04em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 1px; margin-left: auto; }
.nav a {
  font-size: 13.5px; font-weight: 500;
  padding: 9px 10px;
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  transition: color .2s, background .2s;
  position: relative;
  white-space: nowrap;
}
.nav a:hover { color: var(--accent-deep); background: var(--accent-tint); }

.header-tel { display: flex; align-items: center; gap: 12px; }
.tel-block { text-align: right; line-height: 1.25; }
.tel-num {
  font-family: var(--font-head);
  font-weight: 700; font-size: 21px;
  color: var(--accent-deep);
  display: flex; align-items: center; gap: 7px;
}
.tel-num svg { width: 17px; height: 17px; }
.tel-hours { font-size: 11px; color: var(--ink-faint); letter-spacing: .08em; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 0;
  z-index: 90;
  background: var(--bg);
  padding: 96px var(--gutter) 40px;
  transform: translateY(-12px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  overflow-y: auto;
}
.mobile-nav.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav a {
  display: block;
  font-family: var(--font-head);
  font-size: 19px; font-weight: 500;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.mobile-close { position: absolute; top: 24px; right: var(--gutter); width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); font-size: 22px; cursor: pointer; }

/* ============================ hero ============================ */
.hero {
  position: relative;
  min-height: clamp(540px, 82vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-img { position: absolute; inset: 0; }
.hero-img image-slot { width: 100%; height: 100%; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* stacked rotating frames crossfade on a timer */
.hero-img .hero-frame { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-img .hero-frame.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-img .hero-frame { transition: none; }
}
/* each photo occupies its own half so the subject can be cropped into view */
.hero-img-left  { right: auto; width: 54%; overflow: hidden; }
.hero-img-right { left: auto; width: 54%; overflow: hidden; }
.hero-img-left img  { object-position: 50% 26%; }
.hero-img-right img { object-position: 56% 40%; transform: scale(1.4); transform-origin: 56% 40%; }
.hero-img-left image-slot { --slot-bg: var(--accent-soft); background: var(--accent-soft); }
.hero-img-right image-slot { --slot-bg: var(--sage-soft); background: var(--sage-soft); }
/* left photo gets the original gentle S-curve (mapped to the 54%-wide element) */
.hero-img-left {
  -webkit-clip-path: polygon(0 0, 92.6% 0, 94.4% 12%, 95.6% 26%, 95.2% 40%, 92.6% 50%, 90% 60%, 89.6% 74%, 90.7% 88%, 92.6% 100%, 0 100%);
  clip-path: polygon(0 0, 92.6% 0, 94.4% 12%, 95.6% 26%, 95.2% 40%, 92.6% 50%, 90% 60%, 89.6% 74%, 90.7% 88%, 92.6% 100%, 0 100%);
}
/* soft curved seam line */
.hero-seam {
  display: none;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}
.hero-seam path {
  fill: none;
  stroke: rgba(255,255,255,.7);
  stroke-width: .5;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.5));
}
/* legibility scrim over the photos */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 52%, rgba(45,33,24,.42), rgba(45,33,24,0) 72%),
    linear-gradient(180deg, rgba(45,33,24,.28) 0%, rgba(45,33,24,.12) 38%, rgba(45,33,24,.40) 100%);
}

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-copy { text-align: center; padding: 0 4px; max-width: 760px; margin-inline: auto; }
.hero-title {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.58;
  letter-spacing: .03em;
  margin-bottom: 24px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(40,28,18,.45), 0 1px 3px rgba(40,28,18,.4);
}
.hero-title .em { color: var(--accent-soft); }
.hero-lead {
  font-size: 15.5px;
  color: rgba(255,255,255,.94);
  line-height: 2.1;
  margin-bottom: 30px;
  text-shadow: 0 1px 10px rgba(40,28,18,.5);
}
.hero-cta { display: none; }

/* urgent floating card */
.urgent-card {
  position: absolute;
  right: clamp(16px, 4vw, 48px);
  bottom: clamp(74px, 9vw, 104px);
  width: 300px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: 22px 26px;
  border: 1px solid var(--line-soft);
  z-index: 6;
}
.urgent-card .ic { width: 40px; height: 40px; border-radius: var(--r-pill); background: var(--accent-tint); color: var(--accent-deep); display: grid; place-items: center; margin-bottom: 12px; }
.urgent-card .ic svg { width: 22px; height: 22px; }
.urgent-card h4 { color: var(--accent-deep); font-size: 16px; margin-bottom: 6px; }
.urgent-card p { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 14px; line-height: 1.8; }
.urgent-card .tel-num { font-size: 24px; }

/* ============================ news ticker ============================ */
.news-ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 50px;
  z-index: 7;
  padding-inline: var(--gutter);
}
.news-bar {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  height: 60px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-md);
  overflow: hidden;
}
.news-label {
  flex: none;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 22px 0 28px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--accent-deep);
  position: relative;
}
.news-label::after {
  content: "";
  position: absolute;
  right: 0; top: 18px; bottom: 18px;
  width: 1px;
  background: var(--line);
}
.news-viewport {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 94%, transparent 100%);
}
.news-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: news-scroll 46s linear infinite;
}
.news-ticker:hover .news-track { animation-play-state: paused; }
.news-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 38px;
  font-size: 14px;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color .2s;
}
.news-item:hover { color: var(--accent-deep); }
.news-date {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--accent-deep);
}
@keyframes news-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
:root[data-fade="off"] .news-track { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .news-track { animation: none; }
}

/* ============================ quick contact (right-edge slide-out) ============================ */
.quick-contact {
  position: fixed;
  top: 42%;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: stretch;
  transform: translateX(296px);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.quick-contact.open { transform: translateX(0); }

.quick-contact-tab {
  flex: none;
  width: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 0;
  border: 0;
  cursor: pointer;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--r-md) 0 0 var(--r-md);
  box-shadow: -8px 0 24px -12px rgba(122,92,62,.5);
  transition: background .25s;
}
.quick-contact-tab:hover { background: var(--accent-deep); }
.quick-contact-tab svg { width: 22px; height: 22px; }
.quick-contact-tab-label {
  writing-mode: vertical-rl;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .14em;
}
.quick-contact.open .quick-contact-tab { border-radius: var(--r-md) 0 0 var(--r-md); }

.quick-contact-panel {
  width: 296px;
  flex: none;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-right: 0;
  box-shadow: -16px 0 40px -16px rgba(122,92,62,.28);
  padding: 26px 28px 28px;
}
.quick-contact-panel h4 { color: var(--accent-deep); font-size: 17px; margin-bottom: 8px; }
.quick-contact-panel p { font-size: 13px; color: var(--ink-soft); line-height: 1.85; margin-bottom: 16px; }
.quick-contact-panel .btn-block { width: 100%; justify-content: center; }
.quick-contact-panel .btn-block + .btn-block { margin-top: 10px; }
.quick-tel-btn { font-family: var(--font-head); font-size: 19px; letter-spacing: .02em; gap: 9px; }
.quick-tel-btn svg { width: 18px; height: 18px; }

/* soft decorative blobs — used across content sections */
.blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0; pointer-events: none; opacity: .55; }
:root[data-decor="off"] .blob { display: none; }

/* ===== preset: clean — gentler S-curve seam ===== */
:root[data-preset="clean"] .hero-img-left {
  -webkit-clip-path: polygon(0 0, 92.6% 0, 93.7% 16%, 94.1% 30%, 93.3% 46%, 92.6% 52%, 91.5% 64%, 91.3% 74%, 91.9% 88%, 92.6% 100%, 0 100%);
  clip-path: polygon(0 0, 92.6% 0, 93.7% 16%, 94.1% 30%, 93.3% 46%, 92.6% 52%, 91.5% 64%, 91.3% 74%, 91.9% 88%, 92.6% 100%, 0 100%);
}
:root[data-preset="clean"] .urgent-card { box-shadow: var(--sh-md); }

/* ============================ section atoms ============================ */
.section { padding: clamp(60px, 9vw, 130px) 0; position: relative; overflow: hidden; }
/* coloured sections: gold base + grainy texture */
.section.alt, .section.warm-surface {
  background-color: var(--gold-section);
  background-image: var(--grain);
  background-size: 180px 180px;
  background-blend-mode: overlay;
}
.section > .wrap { position: relative; z-index: 1; }

/* the "心残り" section uses a much lighter, pale tint */
.section.warm-surface { background-color: #FBF2E0; }

/* gentle curved boundary — carve the coloured section itself with a wavy
   top & bottom and overlap neighbours, so the body texture shows through the
   curve instead of a flat white band */
.section.alt, .section.warm-surface {
  --wh: clamp(18px, 2.4vw, 36px);
  position: relative;
  z-index: 1;
  margin-block: calc(var(--wh) * -1);
  padding-top: calc(clamp(60px, 9vw, 130px) + var(--wh));
  padding-bottom: calc(clamp(60px, 9vw, 130px) + var(--wh));
  /* S-curve top & bottom (one full wave: crest left, trough right) */
  -webkit-clip-path: polygon(
    0% calc(var(--wh) * 0.5),
    12.5% calc(var(--wh) * 0.146), 25% 0%, 37.5% calc(var(--wh) * 0.146),
    50% calc(var(--wh) * 0.5),
    62.5% calc(var(--wh) * 0.854), 75% var(--wh), 87.5% calc(var(--wh) * 0.854),
    100% calc(var(--wh) * 0.5),
    100% calc(100% - var(--wh) * 0.5),
    87.5% calc(100% - var(--wh) * 0.146), 75% 100%, 62.5% calc(100% - var(--wh) * 0.146),
    50% calc(100% - var(--wh) * 0.5),
    37.5% calc(100% - var(--wh) * 0.854), 25% calc(100% - var(--wh)), 12.5% calc(100% - var(--wh) * 0.854),
    0% calc(100% - var(--wh) * 0.5)
  );
  clip-path: polygon(
    0% calc(var(--wh) * 0.5),
    12.5% calc(var(--wh) * 0.146), 25% 0%, 37.5% calc(var(--wh) * 0.146),
    50% calc(var(--wh) * 0.5),
    62.5% calc(var(--wh) * 0.854), 75% var(--wh), 87.5% calc(var(--wh) * 0.854),
    100% calc(var(--wh) * 0.5),
    100% calc(100% - var(--wh) * 0.5),
    87.5% calc(100% - var(--wh) * 0.146), 75% 100%, 62.5% calc(100% - var(--wh) * 0.146),
    50% calc(100% - var(--wh) * 0.5),
    37.5% calc(100% - var(--wh) * 0.854), 25% calc(100% - var(--wh)), 12.5% calc(100% - var(--wh) * 0.854),
    0% calc(100% - var(--wh) * 0.5)
  );
}
/* section directly under the hero: flat top (no S-curve where it overlaps
   the main visual), S-curve bottom only */
#first {
  margin-top: 0;
  -webkit-clip-path: polygon(
    0% 0%, 100% 0%,
    100% calc(100% - var(--wh) * 0.5),
    87.5% calc(100% - var(--wh) * 0.146), 75% 100%, 62.5% calc(100% - var(--wh) * 0.146),
    50% calc(100% - var(--wh) * 0.5),
    37.5% calc(100% - var(--wh) * 0.854), 25% calc(100% - var(--wh)), 12.5% calc(100% - var(--wh) * 0.854),
    0% calc(100% - var(--wh) * 0.5)
  );
  clip-path: polygon(
    0% 0%, 100% 0%,
    100% calc(100% - var(--wh) * 0.5),
    87.5% calc(100% - var(--wh) * 0.146), 75% 100%, 62.5% calc(100% - var(--wh) * 0.146),
    50% calc(100% - var(--wh) * 0.5),
    37.5% calc(100% - var(--wh) * 0.854), 25% calc(100% - var(--wh)), 12.5% calc(100% - var(--wh) * 0.854),
    0% calc(100% - var(--wh) * 0.5)
  );
}

/* readable accents on the gold sections */
.section.alt .eyebrow, .section.warm-surface .eyebrow { color: var(--on-gold); }
.section.alt .eyebrow::before, .section.alt .eyebrow::after,
.section.warm-surface .eyebrow::before, .section.warm-surface .eyebrow::after { background: var(--on-gold); }
.section.alt .section-lead, .section.warm-surface .section-lead { color: #5A4308; }
.section.alt .concern-title .em { color: var(--on-gold); }
.section.warm-surface .concern-title .em { color: var(--on-gold); }
.section.alt .concern-grid p, .section.warm-surface .concern-grid p { color: #6B5212; }
.section.alt .quote-chip, .section.warm-surface .quote-chip { background: rgba(255,255,255,.6); color: var(--on-gold); }
.section.alt .flow-compact .flow-step:not(:last-child)::after,
.section.alt .flow-compact .flow-step:nth-of-type(3)::after { color: var(--on-gold); }
.section.alt .access-list dt { color: var(--on-gold); }
.section.alt .faq-cat-title { color: var(--on-gold); border-bottom-color: rgba(110,74,6,.35); }
/* on the gold access section the map button is white */
.section.alt .access-info .btn-primary { background: #fff; color: var(--accent-deep); box-shadow: var(--sh-sm); }
.section.alt .access-info .btn-primary:hover { background: #fff; color: var(--accent-deep); box-shadow: var(--sh-md); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); }
.instagram-embed { max-width: 900px; margin-inline: auto; }
.instagram-embed .lightwidget-widget { display: block; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px; letter-spacing: .2em; font-weight: 700;
  color: var(--accent-deep);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 10px; border-radius: 2px; }
.eyebrow::after  { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--accent); vertical-align: middle; margin-left: 10px; border-radius: 2px; }
.section-title { font-size: clamp(24px, 3vw, 36px); line-height: 1.5; letter-spacing: .03em; }
.section-lead { margin-top: 18px; color: var(--ink-soft); font-size: 15px; }

/* ============================ concern (心残り) ============================ */
.concern-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.concern-title { font-size: clamp(23px, 2.8vw, 34px); line-height: 1.55; margin-bottom: 26px; }
.concern-title .em { color: var(--accent-deep); }
.concern-grid p { color: var(--ink-soft); font-size: 15.5px; line-height: 2.15; margin-bottom: 18px; }
.concern-photo {
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  align-self: stretch;
  min-height: 540px;
  /* break out of the container to the right window edge */
  margin-right: calc((var(--maxw) - 100vw) / 2 - var(--gutter));
}
/* crossfading photo stack */
.photo-rotate { position: relative; }
.photo-rotate .slot-frame {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.4s ease;
  pointer-events: none;
}
.photo-rotate .slot-frame.is-active { opacity: 1; pointer-events: auto; }
.photo-rotate .slot-frame image-slot { width: 100%; height: 100%; }
.quote-chip {
  display: inline-flex; align-items: flex-start; gap: 10px;
  background: var(--accent-tint); color: var(--accent-deep);
  border-radius: var(--r-md); padding: 16px 20px; font-size: 14.5px; font-weight: 500;
  margin: 6px 0 22px;
}
.quote-chip svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }

/* stacked concern voices */
.concern-voices { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 24px; }
.concern-voices .quote-chip { margin: 0; padding: 13px 18px; font-size: 14px; }

/* 選ばれる理由 — large numbered block inside the 心残り section */
.chosen { margin-top: clamp(48px, 6vw, 80px); }
.chosen-head { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.chosen-title { font-size: clamp(21px, 2.6vw, 30px); line-height: 1.5; letter-spacing: .02em; }
.section.warm-surface .chosen-title { color: var(--on-gold); }
.chosen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 24px); }
.chosen-item {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.5vw, 44px) clamp(22px, 2.5vw, 34px);
  box-shadow: var(--sh-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chosen-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: .02em;
}
.chosen-lead.nowrap-lines { white-space: nowrap; }
.chosen-lead {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.6;
  color: var(--ink);
  text-wrap: balance;
}

/* full-bleed photo marquee (edge to edge, scrolls left) */
.photo-marquee {
  margin-top: clamp(44px, 6vw, 76px);
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.photo-marquee {
  margin-top: clamp(44px, 6vw, 76px);
  width: 100%;
  overflow: hidden;
  padding-block: 34px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.photo-marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  width: max-content;
  animation: pm-scroll 48s linear infinite;
}
.photo-marquee:hover .photo-marquee-track { animation-play-state: paused; }
.pm-item {
  flex: none;
  width: clamp(220px, 24vw, 340px);
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sh-sm);
  background: var(--surface);
}
.pm-item image-slot { width: 100%; height: 100%; }
.pm-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* gentle wave stagger — period of 6 matches the 6 unique photos so the loop seam stays smooth */
.pm-item:nth-child(6n+1) { transform: translateY(-26px); }
.pm-item:nth-child(6n+2) { transform: translateY(-10px); }
.pm-item:nth-child(6n+3) { transform: translateY(10px); }
.pm-item:nth-child(6n+4) { transform: translateY(26px); }
.pm-item:nth-child(6n+5) { transform: translateY(10px); }
.pm-item:nth-child(6n+6) { transform: translateY(-10px); }
@keyframes pm-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - clamp(7px, 0.8vw, 11px))); }
}
:root[data-fade="off"] .photo-marquee-track { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .photo-marquee-track { animation: none; }
}

/* ============================ reasons ============================ */
.reasons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.reason-card {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 32px 22px 28px;
  text-align: center;
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-sm);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.reason-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.reason-ic {
  width: 72px; height: 72px; margin: 0 auto 18px;
  border-radius: var(--r-pill);
  background: var(--accent-tint);
  display: grid; place-items: center;
  color: var(--accent-deep);
}
.reason-card:nth-child(5) .reason-ic { background: var(--sage-soft); color: var(--sage-deep); }
.reason-ic svg { width: 34px; height: 34px; }
.reason-card h3 { font-size: 16px; line-height: 1.6; margin-bottom: 12px; }
.reason-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.9; }

/* ============================ flow (compact, icon-less) ============================ */
.flow-compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 14px 26px;
}
.flow-compact .flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 18px 14px 22px;
  box-shadow: var(--sh-sm);
  position: relative;
}
.flow-compact .flow-step .num {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-head);
  font-weight: 700; font-size: 14px;
  letter-spacing: 0;
  margin: 0;
}
.flow-compact .flow-step h4 {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .08em;
  white-space: nowrap;
  height: 168px;
}
.flow-compact .flow-step:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -19px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 700;
  font-size: 19px;
}
/* single horizontal row — the row-break is no longer used */
.flow-break { display: none; }
.flow-compact .flow-step:nth-of-type(3)::after { content: "›"; }
/* supplement note + button under the flow */
.flow-note {
  max-width: 680px;
  margin: clamp(36px, 5vw, 52px) auto 0;
  text-align: center;
}
.flow-note p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2.05;
  margin-bottom: 28px;
  text-wrap: pretty;
}

/* ============================ feature blocks ============================ */
.feature { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(30px, 5vw, 70px); align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
.feature:last-child { margin-bottom: 0; }
.feature.flip .feature-media { order: 2; }
.feature-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); aspect-ratio: 16/10.5; position: relative; }
.feature-media image-slot { width: 100%; height: 100%; display: block; }
.feature-badge { position: absolute; top: 18px; left: 18px; background: var(--sage); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 7px 16px; border-radius: var(--r-pill); box-shadow: var(--sh-sm); }
.feature-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .14em; font-weight: 700; color: var(--accent-deep); margin-bottom: 16px; }
.feature-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.feature h3 { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.5; margin-bottom: 20px; }
.feature p { color: var(--ink-soft); font-size: 15px; line-height: 2.1; margin-bottom: 26px; }
.feature.sage .feature-tag { color: var(--sage-deep); }
.feature.sage .feature-tag .dot { background: var(--sage); }

/* ============================ access ============================ */
.access-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}

/* ============================ contact form ============================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.contact-form-wrap {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: clamp(28px, 4vw, 52px);
}
.contact-form { display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 26px); }
.contact-form[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.field label, .consent {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: .02em;
}
.field label { display: flex; align-items: center; gap: 10px; }
.req {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 3px 9px;
  letter-spacing: .04em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid color-mix(in oklch, var(--ink) 14%, transparent);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.contact-form textarea { resize: vertical; min-height: 132px; line-height: 1.7; }
.contact-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A8895A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: color-mix(in oklch, var(--ink) 38%, transparent); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 16%, transparent);
}
.contact-form .invalid { border-color: #c0492f; box-shadow: 0 0 0 4px color-mix(in oklch, #c0492f 14%, transparent); }
.consent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; line-height: 1.6; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--accent); }
.consent a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.contact-submit { align-self: flex-start; margin-top: 4px; }
.form-note { font-size: 13px; color: color-mix(in oklch, var(--ink) 55%, transparent); margin: 0; }

/* ===== Contact Form 7 互換スタイル（さぬきフォーム） ===== */
.contact-form-wrap .wpcf7-form { display: flex; flex-direction: column; gap: clamp(20px, 2.6vw, 30px); }
.contact-form-wrap .hidden-fields-container { display: none; }          /* 隠しフィールド束：余分な隙間を作らない */
.contact-form-wrap .wpcf7-form-control-wrap { display: block; }         /* 入力の width:100% を効かせる */
/* autop が万一有効でも崩れないよう <p>/<br> を無害化 */
.contact-form-wrap .field > p,
.contact-form-wrap .contact-form-actions > p { margin: 0; display: flex; flex-direction: column; gap: 9px; }
.contact-form-wrap .field br,
.contact-form-wrap .contact-form-actions br { display: none; }

/* 入力欄（送信・ボタン・チェックボックス以外） */
.contact-form-wrap input:not([type="submit"]):not([type="button"]):not([type="checkbox"]),
.contact-form-wrap select,
.contact-form-wrap textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid color-mix(in oklch, var(--ink) 14%, transparent);
  border-radius: var(--r-sm);
  padding: 15px 16px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.contact-form-wrap textarea { resize: vertical; min-height: 168px; line-height: 1.7; }
.contact-form-wrap select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A8895A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px;
}
.contact-form-wrap input::placeholder,
.contact-form-wrap textarea::placeholder { color: color-mix(in oklch, var(--ink) 38%, transparent); }
.contact-form-wrap input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):focus,
.contact-form-wrap select:focus,
.contact-form-wrap textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 16%, transparent);
}
.contact-form-wrap .wpcf7-not-valid { border-color: #c0492f !important; box-shadow: 0 0 0 4px color-mix(in oklch, #c0492f 14%, transparent); }
.contact-form-wrap .wpcf7-not-valid-tip { color: #c0492f; font-size: 13px; font-weight: 500; margin-top: 6px; display: block; }

/* 同意チェック */
.contact-form-wrap .consent { display: block; }
.contact-form-wrap .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.contact-form-wrap .wpcf7-acceptance label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; }
.contact-form-wrap .wpcf7-acceptance input[type="checkbox"] { width: 20px; height: 20px; flex: none; accent-color: var(--accent); }

/* アクションボタン（戻る／確認／送信） */
.contact-form-wrap .contact-form-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; }
.contact-form-wrap .contact-form-actions input[type="submit"],
.contact-form-wrap .contact-form-actions input[type="button"] {
  font-family: var(--font-body); font-weight: 700; font-size: 16px; letter-spacing: .03em;
  padding: 18px 40px; border-radius: var(--r-pill); border: 1.5px solid transparent; cursor: pointer;
  min-width: 280px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s;
}
.contact-form-wrap .contact-form-actions input[type="submit"]:hover,
.contact-form-wrap .contact-form-actions input[type="button"]:hover { transform: translateY(-2px); }
.contact-form-wrap .wpcf7-confirm,
.contact-form-wrap .wpcf7-submit { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -8px rgba(174,113,73,.55); }
.contact-form-wrap .wpcf7-confirm:hover,
.contact-form-wrap .wpcf7-submit:hover { background: var(--accent-deep); color: #fff; }
.contact-form-wrap .wpcf7-back { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-sm); }
.contact-form-wrap .wpcf7-back:hover { border-color: var(--accent); color: var(--accent-deep); }
.contact-form-wrap .wpcf7-submit[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.contact-form-wrap .wpcf7-spinner { display: block; margin: 12px auto 0; }
.contact-form-wrap .wpcf7-response-output { margin: 18px 0 0; padding: 14px 18px; border-radius: var(--r-sm); font-size: 14.5px; line-height: 1.7; }
/* 完了／エラーメッセージを確実に表示（確認アドオンが display:none で隠すのを上書き） */
.contact-form-wrap .wpcf7-form.sent .wpcf7-response-output,
.contact-form-wrap .wpcf7-form.invalid .wpcf7-response-output,
.contact-form-wrap .wpcf7-form.failed .wpcf7-response-output,
.contact-form-wrap .wpcf7-form.spam .wpcf7-response-output,
.contact-form-wrap .wpcf7-form.unaccepted .wpcf7-response-output { display: block !important; }
.contact-form-wrap .wpcf7-form.sent .wpcf7-response-output {
  border: 1.5px solid #5aa86b; background: #f1f8f2; color: #2f6d3c; text-align: center; font-weight: 700;
}
.contact-form-wrap .wpcf7-form.invalid .wpcf7-response-output,
.contact-form-wrap .wpcf7-form.failed .wpcf7-response-output,
.contact-form-wrap .wpcf7-form.spam .wpcf7-response-output,
.contact-form-wrap .wpcf7-form.unaccepted .wpcf7-response-output {
  border: 1.5px solid #c0492f; background: #fcf1ef; color: #a8392a; font-weight: 500;
}

/* thank-you state */
.contact-thanks { text-align: center; padding: clamp(20px, 4vw, 48px) 0; }
.thanks-icon {
  width: 76px; height: 76px; margin: 0 auto clamp(18px, 2.5vw, 26px);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; background: var(--sage, #7C9A6B);
}
.thanks-icon svg { width: 38px; height: 38px; }
.contact-thanks h2 { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.45; margin-bottom: 16px; }
.contact-thanks p { color: color-mix(in oklch, var(--ink) 72%, transparent); line-height: 1.9; margin-bottom: clamp(22px, 3vw, 30px); }

/* aside */
.contact-aside { display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 24px); }
.aside-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: clamp(24px, 3vw, 34px);
}
.aside-card h3 { font-size: 17px; margin-bottom: 14px; }
.aside-tel {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  color: var(--accent-deep);
  letter-spacing: .02em;
  line-height: 1.1;
}
.aside-hours { font-size: 14px; color: color-mix(in oklch, var(--ink) 60%, transparent); margin: 8px 0 14px; }
.aside-note { font-size: 14px; line-height: 1.8; color: color-mix(in oklch, var(--ink) 72%, transparent); margin: 0; }
.aside-addr { font-size: 16px; line-height: 1.8; margin-bottom: 16px; }
.aside-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.aside-list div { display: flex; gap: 14px; font-size: 14px; }
.aside-list dt { flex: none; width: 72px; font-weight: 700; color: var(--accent-deep); }
.aside-list dd { margin: 0; color: color-mix(in oklch, var(--ink) 78%, transparent); }
.access-map {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  min-height: 380px;
  background: var(--surface);
}
.access-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.access-info { display: flex; flex-direction: column; }
.access-desc { color: var(--ink-soft); font-size: 15px; line-height: 2.1; margin-bottom: 26px; text-wrap: pretty; }
.access-list { margin: 0 0 28px; display: flex; flex-direction: column; gap: 0; }
.access-list > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
}
.access-list > div:first-child { border-top: 1px solid var(--line); }
.access-list dt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-deep);
}
.access-list dd { margin: 0; font-size: 14.5px; color: var(--ink); line-height: 1.7; }
.access-list dd a { color: var(--accent-deep); font-weight: 700; }
.access-info .btn { align-self: flex-start; }

/* ============================ FAQ + contact ============================ */
.bottom-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.faq-block h2, .contact-block h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; }
.faq-block .lead, .contact-block .lead { color: var(--ink-soft); font-size: 14px; margin-bottom: 26px; }

.faq-item { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; transition: box-shadow .25s; }
.faq-item.open { box-shadow: var(--sh-sm); }
.faq-q { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 22px; font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--ink); }
.faq-q .qmark { width: 26px; height: 26px; flex: none; border-radius: var(--r-pill); background: var(--accent-tint); color: var(--accent-deep); display: grid; place-items: center; font-family: var(--font-head); font-size: 14px; }
.faq-q .plus { margin-left: auto; width: 22px; height: 22px; position: relative; flex: none; transition: transform .3s; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; }
.faq-q .plus::before { width: 2px; height: 14px; left: 10px; top: 4px; transition: opacity .3s; }
.faq-q .plus::after { height: 2px; width: 14px; top: 10px; left: 4px; }
.faq-item.open .plus::before { opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 22px 22px 62px; color: var(--ink-soft); font-size: 14px; line-height: 1.95; }

.contact-card { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line-soft); box-shadow: var(--sh-md); overflow: hidden; }
.contact-photo { aspect-ratio: 16/7; }
.contact-body { padding: 28px 30px 32px; }
.contact-tel { font-family: var(--font-head); font-weight: 700; font-size: clamp(28px, 3.5vw, 38px); color: var(--accent-deep); display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.contact-tel svg { width: 26px; height: 26px; }
.contact-hours { font-size: 12.5px; color: var(--ink-faint); letter-spacing: .08em; margin-bottom: 22px; }

/* ============================ footer (light, centered — neco-republic style) ============================ */
.site-footer {
  background: var(--bg-alt);
  color: var(--ink);
  padding: clamp(56px, 7vw, 88px) 0 0;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.footer-brand .brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 27px);
  letter-spacing: .06em;
  color: var(--ink);
}
.footer-brand .brand-sub { font-size: 12.5px; letter-spacing: .08em; color: var(--ink-faint); }
.footer-logo { display: block; height: 44px; width: auto; margin-bottom: 8px; }
.footer-tagline { margin-top: 18px; font-size: 14px; color: var(--ink-soft); line-height: 1.9; text-align: center; }

.footer-tel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: .02em;
  color: var(--accent-deep);
}
.footer-tel svg { width: 26px; height: 26px; }
.footer-meta { margin-top: 12px; font-size: 13px; color: var(--ink-soft); line-height: 1.9; }
.footer-temple { margin-top: 8px; font-size: 13px; color: var(--ink-soft); line-height: 1.9; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  width: 100%;
  max-width: 820px;
}
.footer-nav a {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 4px 22px;
  position: relative;
  transition: color .2s;
}
.footer-nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 13px;
  background: var(--line);
}
.footer-nav a:hover { color: var(--accent-deep); }

.footer-bottom {
  width: 100%;
  margin-top: 44px;
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-bottom .legal { display: flex; gap: 26px; }
.footer-bottom .legal a { font-size: 12.5px; color: var(--ink-soft); transition: color .2s; }
.footer-bottom .legal a:hover { color: var(--accent-deep); }
.footer-bottom .copy { font-size: 12px; color: var(--ink-faint); letter-spacing: .04em; }

/* ============================ sub-page: header + flow detail ============================ */
.page-head {
  --wh: clamp(15px, 1.8vw, 26px);
  position: relative;
  overflow: hidden;
  z-index: 1;
  background-color: var(--gold-section);
  background-image: var(--grain);
  background-size: 180px 180px;
  background-blend-mode: overlay;
  padding: clamp(54px, 8vw, 96px) 0 calc(clamp(56px, 7vw, 88px) + var(--wh));
  margin-bottom: calc(var(--wh) * -1);
  text-align: center;
  -webkit-clip-path: polygon(0 0, 100% 0,
    100% calc(100% - var(--wh) * 0.5),
    87.5% calc(100% - var(--wh) * 0.146), 75% 100%, 62.5% calc(100% - var(--wh) * 0.146),
    50% calc(100% - var(--wh) * 0.5),
    37.5% calc(100% - var(--wh) * 0.854), 25% calc(100% - var(--wh)), 12.5% calc(100% - var(--wh) * 0.854),
    0 calc(100% - var(--wh) * 0.5));
  clip-path: polygon(0 0, 100% 0,
    100% calc(100% - var(--wh) * 0.5),
    87.5% calc(100% - var(--wh) * 0.146), 75% 100%, 62.5% calc(100% - var(--wh) * 0.146),
    50% calc(100% - var(--wh) * 0.5),
    37.5% calc(100% - var(--wh) * 0.854), 25% calc(100% - var(--wh)), 12.5% calc(100% - var(--wh) * 0.854),
    0 calc(100% - var(--wh) * 0.5));
}
.page-head::after {
  content: none;
}

/* page header with a full-bleed background photo (e.g. ドッグラン) */
.page-head.has-photo { background-image: none; color: #fff; }
.page-head.has-photo .page-head-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-head.has-photo .page-head-photo image-slot { width: 100%; height: 100%; --slot-bg: var(--sage-soft); background: var(--sage-soft); }
.page-head.has-photo .page-head-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* dark scrim so white text stays legible over any photo */
.page-head.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(40,30,12,.34) 0%, rgba(40,30,12,.30) 45%, rgba(40,30,12,.46) 100%);
  pointer-events: none;
}
.page-head.has-photo .blob { display: none; }
.page-head.has-photo .crumbs { color: rgba(255,255,255,.85); }
.page-head.has-photo .crumbs a { color: rgba(255,255,255,.85); }
.page-head.has-photo .crumbs a:hover { color: #fff; }
.page-head.has-photo .eyebrow { color: #fff; }
.page-head.has-photo .eyebrow::before, .page-head.has-photo .eyebrow::after { background: rgba(255,255,255,.8); }
.page-head.has-photo .page-title { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.3); }
.page-head.has-photo .page-lead { color: rgba(255,255,255,.94); text-shadow: 0 1px 10px rgba(0,0,0,.28); }
.page-head .page-blob-1, .page-head .page-blob-2 { display: none; }
.page-head > .wrap { position: relative; z-index: 2; }
.page-head .crumbs, .page-head .crumbs a { color: rgba(255,255,255,.8); }
.page-head .crumbs a:hover { color: #fff; }
.page-head .eyebrow { color: rgba(255,255,255,.92); }
.page-head .page-title { color: #fff; }
.page-head .page-lead { color: rgba(255,255,255,.95); }
.crumbs { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 12.5px; margin-bottom: 22px; }
.page-title { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: .04em; margin-top: 10px; }
.page-lead { max-width: 720px; margin: 22px auto 0; color: var(--ink-soft); font-size: 15px; line-height: 2.05; text-wrap: pretty; }

/* flow: step list + photo gallery side-by-side */
.flow-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  max-width: 1040px;
  margin-inline: auto;
}
.flow-list { list-style: none; margin: 0; padding: 0; }
.flow-list > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 16px 0;
}
.flow-list > li:not(:last-child) { border-bottom: 1px solid var(--line); }
.flow-list-num {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px; font-weight: 700;
  box-shadow: var(--sh-sm);
}
.flow-list h3 { font-family: var(--font-head); font-size: 16.5px; color: var(--accent-deep); margin: 4px 0 6px; }
.flow-list p { font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); }
.flow-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: sticky;
  top: 96px;
}
.flow-gallery .gal {
  margin: 0;
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  background: var(--surface-2);
}
.flow-gallery .gal--wide { grid-column: 1 / -1; aspect-ratio: 16/9; }
.flow-gallery .gal image-slot { width: 100%; height: 100%; display: block; }
@media (max-width: 880px) {
  .flow-layout { grid-template-columns: 1fr; }
  .flow-gallery { position: static; grid-template-columns: 1fr 1fr 1fr; margin-top: 8px; }
  .flow-gallery .gal--wide { grid-column: auto; aspect-ratio: 4/3; }
}
@media (max-width: 480px) {
  .flow-gallery { grid-template-columns: 1fr 1fr; }
}

/* top page: 葬儀の流れ ツリー図（PC横／SP縦） */
.gtree {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: nowrap; gap: 14px;
  max-width: 1120px; margin: 0 auto;
}
.gtree-linear { display: flex; align-items: center; gap: 10px; }
.gnode {
  writing-mode: vertical-rl;
  display: grid; place-items: center;
  width: 46px; height: 188px; padding: 14px 0; flex: none;
  border: 1.5px solid var(--accent-soft); border-radius: 10px;
  background: var(--surface);
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px; letter-spacing: .06em; line-height: 1; color: var(--ink);
}
.gnode--fill { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: inset 0 0 0 2px #fff; }
/* solid ▶ arrows in the fixed sequence (white) */
.gsep { flex: none; color: #fff; line-height: 1; }
.gsep::before { content: "\25B6"; font-size: 15px; }
/* branch: fixed-coordinate SVG stage with dashed white connectors */
.gbranch { position: relative; width: 610px; height: 294px; flex: none; }
.gbranch-sp { display: none; }
.gbranch-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.gb-card { position: absolute; z-index: 1; transform: translateY(-50%); }
.gcard { border: 1.5px solid var(--accent-soft); border-radius: 10px; overflow: hidden; background: var(--surface); }
.gcard-h { display: block; padding: 7px 6px; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--accent-deep); background: var(--accent-tint); }
.gcard-h--fill { color: #fff; background: var(--accent); }
.gcard-b { display: block; padding: 9px 6px; text-align: center; font-size: 13px; color: var(--ink); }
.gcard--out { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 11px 13px; }
.gcard--out .gcard-t { font-family: var(--font-head); font-weight: 700; font-size: 13.5px; color: var(--accent-deep); white-space: nowrap; }
.gcard--out .gcard-s { font-size: 11.5px; color: var(--ink-soft); }
.gtree-note { max-width: 1120px; margin: 14px auto 0; text-align: right; font-size: 12px; color: #000; }
@media (max-width: 960px) {
  .gtree, .gtree-linear { flex-direction: column; width: 100%; }
  .gnode {
    writing-mode: horizontal-tb;
    width: 100%; max-width: 320px; height: auto; padding: 13px;
    line-height: 1.45; margin-inline: auto;
  }
  .gsep { transform: rotate(90deg); }
  .gtree { gap: 2px; }
  .gbranch { display: none; }
  .gbranch-sp {
    display: block; position: relative;
    width: 320px; height: 474px; margin: 0 auto;
  }
  .gbranch-sp-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
  .gbs-card { position: absolute; z-index: 1; transform: translate(-50%, -50%); }
  .gbs-out {
    height: 132px; padding: 10px 7px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  }
  .gbs-out .gcard-t { writing-mode: vertical-rl; font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--accent-deep); }
  .gbs-out .gcard-s { writing-mode: vertical-rl; font-size: 11px; color: var(--ink-soft); }
  .gtree-note { text-align: center; }
}

/* branching flowchart */
.flowchart { display: flex; flex-direction: column; }
.fc-lead {
  background: var(--accent-tint);
  border: 1px solid var(--accent-soft);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  padding: 18px 20px;
  text-align: center;
}
.fc-lead h3 { font-family: var(--font-head); font-size: 16px; color: var(--accent-deep); margin: 0; }
.fc-badge {
  display: inline-block;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  color: #fff; background: var(--accent);
  border-radius: 999px; padding: 3px 12px; margin-bottom: 8px;
}
.fc-arrow { align-self: center; width: 2px; height: 26px; background: var(--line); position: relative; }
.fc-arrow::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 8px; height: 8px;
  border-right: 2px solid var(--line); border-bottom: 2px solid var(--line);
  transform: translate(-50%, 30%) rotate(45deg);
}
.fc-or {
  display: block; width: max-content; margin: 0 auto 12px;
  font-size: 11px; font-weight: 700; color: var(--accent-deep);
  background: var(--accent-soft); border-radius: 999px; padding: 4px 16px;
}
.fc-cards { display: grid; gap: 12px; }
.fc-cards-2 { grid-template-columns: 1fr 1fr; }
.fc-cards-4 { grid-template-columns: 1fr 1fr; }
.fc-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  padding: 16px;
  text-align: center;
  display: flex; flex-direction: column; justify-content: center;
}
.fc-card h3 { font-family: var(--font-head); font-size: 15px; color: var(--ink); margin: 0; }
.fc-card p { font-size: 12px; color: var(--ink-soft); line-height: 1.7; margin-top: 6px; }
.fc-card-sm { padding: 14px 12px; }
.fc-card-sm h3 { font-size: 14px; color: var(--accent-deep); }
.fc-arrows2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.fc-arrows2 .fc-arrow { justify-self: center; }
.fc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.fc-stack { display: grid; gap: 12px; align-content: start; }
.fc-branch { margin-top: 10px; }

/* timeline of detailed steps */
.flow-steps { list-style: none; margin: 0; padding: 0; counter-reset: none; max-width: 940px; margin-inline: auto; }
.flow-row {
  display: grid;
  grid-template-columns: 92px 1fr 280px;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  position: relative;
  padding-bottom: clamp(36px, 5vw, 56px);
}
.flow-row:not(:last-child) { margin-bottom: clamp(8px, 1.5vw, 16px); }
/* connecting line through the number column */
.flow-row-num { position: relative; display: flex; justify-content: center; }
.flow-row-num .n {
  width: 64px; height: 64px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-head);
  font-weight: 700; font-size: 21px;
  letter-spacing: .02em;
  box-shadow: 0 8px 20px -8px rgba(174,113,73,.5);
  z-index: 2;
}
.flow-row:not(:last-child) .flow-row-num::after {
  content: "";
  position: absolute;
  top: 64px; bottom: -16px;
  left: 50%; transform: translateX(-50%);
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--accent-soft) 0 7px, transparent 7px 14px);
  z-index: 1;
}
.flow-row-body { padding-top: 6px; }
.flow-row-body h2 { font-size: clamp(20px, 2.3vw, 26px); line-height: 1.5; margin-bottom: 12px; }
.flow-row-body p { color: var(--ink-soft); font-size: 14.5px; line-height: 2.05; margin-bottom: 16px; text-wrap: pretty; }
.flow-row-tag {
  display: inline-block;
  font-size: 12.5px; font-weight: 700;
  color: var(--accent-deep);
  background: var(--accent-tint);
  padding: 7px 16px;
  border-radius: var(--r-pill);
}
.flow-row-media { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm); aspect-ratio: 4/3; }

/* note cards */
.note-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.note-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 28px 26px;
  box-shadow: var(--sh-sm);
}
.note-card h3 { font-size: 17px; line-height: 1.5; margin-bottom: 12px; color: var(--accent-deep); }
.note-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.95; }

/* flow page CTA */
.flow-cta { text-align: center; max-width: 760px; margin-inline: auto; }
.flow-cta h2 { font-size: clamp(22px, 2.8vw, 32px); margin-bottom: 16px; }
.flow-cta p { color: var(--ink-soft); font-size: 15px; line-height: 2; margin-bottom: 30px; }
.flow-cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.flow-cta-actions .btn { min-width: 280px; justify-content: center; }
.flow-cta-actions .btn-primary { font-family: var(--font-head); font-size: 18px; gap: 10px; }
.flow-cta-actions .btn-primary svg { width: 18px; height: 18px; }
.flow-cta-pet { display: block; margin: 34px auto 0; width: clamp(160px, 22vw, 220px); height: auto; }
/* flow-cta-section 内ではセクション下辺にぴったり付ける（padding分を打ち消す） */
.flow-cta-section .flow-cta-pet { margin-bottom: calc(-1 * clamp(60px, 9vw, 130px)); }

/* cremation type compare */
.cremation-compare {
  max-width: 860px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 24px);
}
.compare-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  padding: 24px 24px 26px;
}
.compare-card h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.compare-card h3 span {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-faint);
}
.compare-card dl { margin: 0; }
.compare-card dl > div {
  display: flex;
  gap: 10px;
  padding: 9px 0;
}
.compare-card dl > div:not(:last-child) { border-bottom: 1px solid var(--line); }
.compare-card dt {
  flex: 0 0 4.5em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.compare-card dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink);
}
@media (max-width: 640px) {
  .cremation-compare { grid-template-columns: 1fr; }
}

/* price table */
.price-table-wrap { max-width: 860px; margin-inline: auto; }
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.price-table th, .price-table td { padding: 18px 22px; text-align: left; }
.price-table thead th {
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: .04em;
}
.price-table thead th:not(:first-child) { text-align: center; }
.price-table tbody tr:not(:last-child) td { border-bottom: 1px solid var(--line); }
.price-table tbody td { font-size: 15px; color: var(--ink); }
.price-table tbody td:not(:first-child) { text-align: center; font-family: var(--font-head); font-weight: 700; color: var(--accent-deep); }
.price-table tbody td strong { display: block; font-size: 15.5px; }
.price-table tbody td span { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 3px; }
.price-note { margin-top: 16px; font-size: 12.5px; color: var(--ink-faint); line-height: 1.8; text-align: center; }
.price-policy {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-policy li {
  position: relative;
  padding: 16px 20px 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-soft);
}
.price-policy li strong {
  display: block;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--accent-deep);
  margin-bottom: 4px;
}
.pay-logos { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; margin-top: 16px; }
.pay-logos img { width: auto; max-width: min(420px, 100%); height: auto; }

/* 持ち帰り商品 grid */
.goods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 30px); }
.goods-item { margin: 0; }
.goods-media {
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  background: var(--surface);
}
.goods-media image-slot { width: 100%; height: 100%; }
.goods-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.goods-item figcaption {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}

/* 納骨堂・合同墓 cards */
.nokotsu-notice { max-width: 940px; margin: 0 auto clamp(24px, 3vw, 36px); padding: clamp(16px, 2.4vw, 24px) clamp(18px, 3vw, 30px); border: 2px solid var(--accent-deep); border-radius: 16px; background: var(--accent-tint); }
.nokotsu-notice p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.9; font-weight: 500; }
.nokotsu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; max-width: 940px; margin-inline: auto; }
.nokotsu-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
}
.nokotsu-media { aspect-ratio: 4/3; }
.nokotsu-media image-slot { width: 100%; height: 100%; }
.nokotsu-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nokotsu-body { padding: 22px 22px 26px; }
.nokotsu-tag {
  display: inline-block;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--accent-deep);
  background: var(--accent-tint);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 10px;
}
.nokotsu-body h3 { font-size: clamp(18px, 2vw, 21px); line-height: 1.4; margin-bottom: 16px; }
.nokotsu-price { margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; }
.nokotsu-price > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.nokotsu-price > div:first-child { border-top: 1px solid var(--line); }
.nokotsu-price dt { font-size: 13px; color: var(--ink-soft); }
.nokotsu-price dt span { display: block; font-size: 10.5px; color: var(--ink-faint); }
.nokotsu-price dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--accent-deep); white-space: nowrap; }
.nokotsu-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.nokotsu-features li {
  position: relative;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.nokotsu-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-soft);
}

/* cashless payment callout */
.payment-callout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 760px;
  margin: clamp(28px, 4vw, 44px) auto 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  box-shadow: var(--sh-md);
}
.payment-ic {
  flex: none;
  width: 56px; height: 56px;
  border-radius: var(--r-pill);
  background: var(--accent-tint);
  color: var(--accent-deep);
  display: grid; place-items: center;
}
.payment-ic svg { width: 28px; height: 28px; }
.payment-body h3 { font-size: 18px; line-height: 1.5; margin-bottom: 10px; color: var(--accent-deep); }
.payment-body p { font-size: 14px; color: var(--ink-soft); line-height: 2; text-wrap: pretty; }

.price-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.price-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 26px 22px; box-shadow: var(--sh-sm); text-align: center; }
.price-card h3 { font-size: 15px; line-height: 1.5; margin-bottom: 12px; }
.price-card .amount { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--accent-deep); margin-bottom: 10px; }
.price-card p:not(.amount) { font-size: 12.5px; color: var(--ink-soft); line-height: 1.85; }

/* sage feature-tag variant */
.feature-tag.sage-tag { color: var(--sage-deep); }
.feature-tag.sage-tag .dot { background: var(--sage); }

/* dogrun intro + auto-scrolling photo marquee */
.dogrun-intro { max-width: 680px; margin-inline: auto; text-align: center; }
.dogrun-intro .feature-tag { justify-content: center; margin-bottom: 16px; }
.dogrun-intro h3 { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.5; margin-bottom: 20px; }
.dogrun-intro p { color: var(--ink-soft); font-size: 15px; line-height: 2.1; text-wrap: pretty; }

.photo-marquee {
  margin-top: clamp(40px, 5vw, 64px);
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.photo-marquee-track {
  display: flex;
  gap: clamp(14px, 1.6vw, 22px);
  width: max-content;
  animation: marquee-scroll 48s linear infinite;
}
.photo-marquee:hover .photo-marquee-track { animation-play-state: paused; }
.photo-marquee-item {
  flex: none;
  width: clamp(240px, 26vw, 360px);
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.photo-marquee-item image-slot { width: 100%; height: 100%; --slot-bg: var(--sage-soft); background: var(--sage-soft); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - clamp(7px, 0.8vw, 11px))); }
}
:root[data-fade="off"] .photo-marquee-track { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .photo-marquee-track { animation: none; }
}

/* FAQ category titles (FAQ page) */
.faq-cat { margin: clamp(28px, 4vw, 44px) 0 18px; }
.faq-cat:first-child { margin-top: 0; }
.faq-cat-title { font-size: 19px; color: var(--accent-deep); padding-bottom: 12px; border-bottom: 2px solid var(--accent-soft); }
.faq-list + .faq-cat { margin-top: clamp(40px, 5vw, 60px); }

/* ============================ commitment (固定火葬炉) ============================ */
.commitment-sub {
  margin-top: 18px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.9;
  letter-spacing: .03em;
  color: var(--accent-deep);
}
.commitment-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: start;
}
.commitment-text p { color: var(--ink-soft); font-size: 15px; line-height: 2.15; margin-bottom: 20px; text-wrap: pretty; }
.commitment-text p:last-child { margin-bottom: 0; }
.commitment-h {
  font-size: clamp(21px, 2.6vw, 30px);
  line-height: 1.5;
  letter-spacing: .02em;
  margin-bottom: 18px;
}
.section.warm-surface .commitment-h { color: var(--on-gold); }
.commitment-q {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.85;
  color: var(--accent-deep) !important;
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  background: var(--accent-tint);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.furnace-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.furnace-media { aspect-ratio: 16/10; }
.furnace-media image-slot { width: 100%; height: 100%; --slot-bg: var(--accent-tint); background: var(--accent-tint); }
.furnace-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.furnace-body { padding: 26px 28px 30px; }
.furnace-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .03em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.furnace-body h3 { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.5; margin-bottom: 14px; }
.furnace-body p { font-size: 14px; color: var(--ink-soft); line-height: 2.05; text-wrap: pretty; }

/* ============================ family message (near footer) ============================ */
.family-message { text-align: center; overflow: hidden; }
@keyframes fm-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: .4; }
  50% { transform: translateX(-50%) scale(1.28); opacity: .55; }
}
.family-message .fm-blob-1 { width: 300px; height: 300px; background: var(--accent-soft); top: -120px; left: 50%; transform: translateX(-50%); opacity: .4; animation: fm-pulse 8s ease-in-out infinite; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .family-message .fm-blob-1 { animation: none; } }
.fm-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.85;
  letter-spacing: .04em;
  color: var(--on-gold);
}
.fm-sub {
  margin-top: clamp(20px, 2.8vw, 30px);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 2.2;
  color: #6B5212;
}

/* ============================ dogrun guide extras ============================ */
.dogrun-philosophy {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 44px);
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.dogrun-philosophy-label {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  color: var(--sage-deep);
  margin-bottom: 12px;
}
.dogrun-philosophy-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.5;
  color: var(--ink);
}
.dogrun-block { margin-top: clamp(40px, 5vw, 64px); }
.dogrun-block-title {
  font-size: clamp(19px, 2.2vw, 24px);
  text-align: center;
  margin-bottom: clamp(22px, 3vw, 32px);
}
.dogrun-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dogrun-steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 16px 22px;
  box-shadow: var(--sh-sm);
}
.dogrun-step-num {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700; font-size: 16px;
}
.dogrun-steps p { font-size: 14.5px; line-height: 1.7; color: var(--ink); }
.dogrun-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dogrun-note {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 22px 24px;
  box-shadow: var(--sh-sm);
}
.dogrun-note h4 {
  font-size: 15px;
  color: var(--sage-deep);
  margin-bottom: 8px;
}
.dogrun-note p { font-size: 13px; color: var(--ink-soft); line-height: 1.85; }
.dogrun-note a { color: var(--accent-deep); font-weight: 700; font-family: var(--font-head); }

/* small cut-out pet image between an eyebrow and its heading */
.head-pet {
  width: 76px;
  height: 60px;
  margin: 6px auto 12px;
}
.head-pet image-slot {
  width: 100%; height: 100%;
  --slot-bg: transparent;
  --slot-frame-bg: transparent;
  background: transparent;
  font-size: 9px;
  color: var(--ink-faint);
}
.head-pet img { width: 100%; height: 100%; object-fit: contain; display: block; }
.page-head .head-pet { margin-top: 8px; }

/* ============================ image-slot styling ============================ */image-slot {
  --slot-bg: var(--accent-tint);
  background: var(--accent-tint);
  width: 100%; height: 100%;
  color: var(--accent-deep);
  font-family: var(--font-body);
  font-size: 13px;
}

/* ============================ reveal animation ============================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }
.reveal.d6 { transition-delay: .48s; }
:root[data-fade="off"] .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================ responsive ============================ */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .header-tel { margin-left: auto; }
  .reasons { grid-template-columns: repeat(3, 1fr); }
  .reason-card:nth-child(4), .reason-card:nth-child(5) { grid-column: span 1; }
  .chosen-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .header-tel .tel-block { display: none; }
  .hero { min-height: clamp(440px, 72vh, 600px); }
  .urgent-card { position: static; width: auto; margin: 28px var(--gutter) 0; }
  /* hero CTAs become a fixed bottom action bar on mobile */
  .hero-cta {
    display: flex;
    flex-direction: row;
    gap: 8px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--bg) 90%, #fff);
    backdrop-filter: saturate(1.1) blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(122,92,62,.45);
  }
  .hero-cta .btn {
    flex: 1;
    width: auto !important;
    justify-content: center;
    padding: 13px 6px;
    font-size: 12.5px;
    letter-spacing: 0;
  }
  .hero-cta .btn .arr { display: none; }
  body { padding-bottom: 74px; }
  .news-ticker { margin-top: 0; }
  .news-bar { height: 52px; border-radius: var(--r-md); }
  .news-label { padding: 0 14px 0 18px; font-size: 12px; }
  .news-item { font-size: 13px; padding: 0 26px; }
  .concern-grid { grid-template-columns: 1fr; }
  .concern-photo { order: -1; margin-right: 0; min-height: 280px; border-radius: var(--r-lg); }
  .chosen-grid { grid-template-columns: 1fr; }
  .bottom-grid { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .access-map { min-height: 300px; }
  .commitment-grid { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 40px); }
  .flow-row { grid-template-columns: 64px 1fr; }
  .flow-row-media { grid-column: 2; aspect-ratio: 16/9; margin-top: 4px; }
  .flow-row-num .n { width: 52px; height: 52px; font-size: 18px; }
  .flow-row:not(:last-child) .flow-row-num::after { top: 52px; }
  .note-cards { grid-template-columns: 1fr; }
  .dogrun-notes { grid-template-columns: 1fr; }
  .goods-grid { grid-template-columns: 1fr 1fr; }
  .nokotsu-grid { grid-template-columns: 1fr 1fr; }
  .price-cards { grid-template-columns: 1fr 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature .feature-media, .feature.flip .feature-media { order: -1; }
}
/* SP/PC line-break helpers (.sp shows only on smartphone) */
.sp { display: none; }

/* SP bottom action bar + contact chooser sheet (hidden on PC) */
.sp-actionbar { display: none; }
.sp-sheet {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: flex-end;
  visibility: hidden; opacity: 0;
  transition: opacity .28s ease, visibility 0s linear .28s;
}
.sp-sheet.is-open { visibility: visible; opacity: 1; transition: opacity .28s ease; }
.sp-sheet-backdrop { position: absolute; inset: 0; background: rgba(70,61,53,.5); }
.sp-sheet-panel {
  position: relative;
  width: 100%;
  background: var(--surface);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px -10px rgba(122,92,62,.35);
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
}
.sp-sheet.is-open .sp-sheet-panel { transform: translateY(0); }
.sp-sheet-title { font-family: var(--font-head); font-size: 15px; color: var(--ink); text-align: center; margin-bottom: 14px; }
.sp-sheet-text { font-size: 13px; color: var(--ink-soft); line-height: 1.85; text-align: center; margin: -4px 0 16px; }
.sp-sheet-panel .btn-block { width: 100%; justify-content: center; }
.sp-sheet-panel .btn-block + .btn-block { margin-top: 10px; }
.sp-sheet-cancel { display: block; width: 100%; margin-top: 12px; padding: 10px; background: none; border: 0; color: var(--ink-soft); font-size: 13px; cursor: pointer; }

@media (max-width: 900px) {
  /* replace the old fixed CTA bar with the new action bar */
  .hero-cta { display: none; }
  .sp-actionbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--bg) 90%, #fff);
    backdrop-filter: saturate(1.1) blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(122,92,62,.45);
  }
  .sp-act {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 12px 4px;
    border-radius: var(--r-md);
    border: 1px solid var(--accent);
    background: var(--surface);
    color: var(--accent-deep);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0;
    line-height: 1.3;
    cursor: pointer;
  }
  .sp-act-urgent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

  /* hide the right-edge お急ぎの方へ tab on SP (now in the bottom bar) */
  .quick-contact-tab { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .reason-card:nth-child(5) { grid-column: 1 / -1; }
  .price-cards { grid-template-columns: 1fr; }
  .payment-callout { flex-direction: column; gap: 14px; padding: 24px; }
  .nokotsu-grid { grid-template-columns: 1fr; }
  .hero { overflow: visible; }
  .news-ticker { bottom: -28px; z-index: 20; }
  .hero-title { font-size: clamp(24px, 3.2vw, 42px); }

  /* SP only: スライド2枚目の被写体を左右それぞれの半分の中心に寄せる。
     image-slot は Shadow DOM のため ::part(image) で内部 img の left を
     上書きする（JS が再適用するインライン left に !important で勝つ）。
     左=猫の顔を左半分中心 / 右=御本尊を右半分中心。 */
  #hero-left-2::part(image)  { left: 14% !important; }
  #hero-right-2::part(image) { left: 4% !important; }
  /* スライド1枚目の右側（僧侶）を少しだけ右へ */
  #hero-right-1::part(image) { left: 56% !important; }

  /* line-break helpers */
  br.pc { display: none; }
  .sp { display: block; }

  /* top flow: 1–7 as horizontal text stacked vertically; note left-aligned */
  .flow-compact { flex-direction: column; align-items: stretch; gap: 10px; }
  .flow-compact .flow-step {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 12px 16px;
  }
  .flow-compact .flow-step h4 {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    height: auto;
    white-space: normal;
    font-size: 15px;
    letter-spacing: .04em;
  }
  .flow-compact .flow-step:not(:last-child)::after { display: none; }
  .flow-note { text-align: left; }

  /* family message sub text left-aligned */
  .family-message .fm-sub { text-align: left; }

  /* quick contact: smaller & thinner so it doesn't overlap content */
  .quick-contact { transform: translateX(218px); }
  .quick-contact.open { transform: translateX(0); }
  .quick-contact-tab { width: 36px; padding: 12px 0; gap: 7px; }
  .quick-contact-tab svg { width: 16px; height: 16px; }
  .quick-contact-tab-label { font-size: 11px; letter-spacing: .1em; }
  .quick-contact-panel { width: 218px; padding: 16px 16px 18px; }
  .quick-contact-panel h4 { font-size: 14px; margin-bottom: 5px; }
  .quick-contact-panel p { font-size: 11.5px; line-height: 1.7; margin-bottom: 11px; }
  .quick-tel-btn { font-size: 16px; }
}

/* 個別納骨壇 3カラム（memorial ページ） */
.nokotsu-grid--trio { grid-template-columns: repeat(3, 1fr); max-width: 1040px; }
@media (max-width: 900px) {
  .nokotsu-grid--trio { grid-template-columns: 1fr; max-width: 460px; }
}
