/* にじのはしペット霊園 — pastel watercolor sky, rounded type, clouds and paw prints.
   Stage-driven alterations: the rainbow turns upside down, the sky greys, paw prints spread over the page. */
:root {
  --sky: #dcedfa;
  --sky-2: #eef6fc;
  --cream: #fffaf2;
  --card: #ffffff;
  --ink: #4a4962;
  --muted: #8a88a1;
  --line: #ebe6f1;
  --pink: #f8cbd6;
  --peach: #fcd9bf;
  --butter: #fbeeb4;
  --mint: #cbeedb;
  --blue: #c3e1f5;
  --lav: #dccff2;
  --rose: #e8869f;
  --rose-deep: #c05a78;
  --blue-deep: #4f84b0;
  --mint-deep: #3f9470;
  --warn: #c8506d;
  --warn-soft: #fdecef;
  --f-ja: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Kosugi Maru", "Yu Gothic", system-ui, sans-serif;
  --f-hand: "Klee One", "Zen Maru Gothic", cursive;
  --r-lg: 34px;
  --r: 24px;
  --r-sm: 14px;
  --shadow: 0 14px 36px rgba(106, 138, 190, .16), 0 2px 6px rgba(106, 138, 190, .08);
  --shadow-s: 0 6px 18px rgba(106, 138, 190, .14);
  color-scheme: light;
}
html[data-stage="2"] { --sky: #e2e6f6; --sky-2: #f0f1fa; }
html[data-stage="3"], html[data-stage="4"] { --sky: #dcd9e8; --sky-2: #eceaf2; --cream: #f8f5f3; --rose: #c98aa6; --rose-deep: #9c5a7d; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body {
  margin: 0; position: relative; overflow-x: hidden;
  background: linear-gradient(180deg, var(--sky) 0, var(--sky-2) 680px, var(--cream) 1400px) var(--cream);
  color: var(--ink); font-family: var(--f-ja); font-size: 15.5px; line-height: 1.9; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased; transition: background-color .8s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue-deep) 55%, transparent); outline-offset: 3px; border-radius: 8px; }
.container { max-width: 1140px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.hand { font-family: var(--f-hand); font-weight: 600; }
.nb { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* stage visibility helpers */
html[data-stage="0"] :is(.from-1, .from-2, .from-3, .from-4),
html[data-stage="1"] :is(.from-2, .from-3, .from-4),
html[data-stage="2"] :is(.from-3, .from-4),
html[data-stage="3"] .from-4,
html:is([data-stage="1"], [data-stage="2"], [data-stage="3"], [data-stage="4"]) .until-1,
html:is([data-stage="2"], [data-stage="3"], [data-stage="4"]) .until-2,
html:is([data-stage="3"], [data-stage="4"]) .until-3 { display: none !important; }

/* ---------- top line & header ---------- */
.topline { font-size: 12.5px; color: var(--muted); }
.topline .container { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; min-height: 36px; }
.topline .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rose); display: inline-block; margin-right: 6px; vertical-align: 2px; }
.topline .odd { margin-left: auto; color: var(--rose-deep); font-family: var(--f-hand); font-weight: 600; }

.site-header { position: sticky; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 60; padding-inline: max(12px, env(safe-area-inset-left, 0px)); }
.site-header .bar { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 22px; padding: 10px 12px 10px 22px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 999px; box-shadow: var(--shadow-s); position: relative; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo svg { width: 44px; height: 30px; overflow: visible; }
.logo .word { font-weight: 700; font-size: 17px; line-height: 1.1; letter-spacing: .06em; }
.logo .word small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: .32em; margin-top: 3px; }
.logo .arc { transition: transform 1.2s cubic-bezier(.5, 0, .2, 1); transform-origin: 22px 22px; }
html:is([data-stage="2"], [data-stage="3"], [data-stage="4"]) .logo .arc { transform: rotate(180deg) translateY(-8px); }
.nav { display: flex; gap: 2px; margin-left: auto; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink); padding: 7px 13px; border-radius: 999px; transition: background .2s; white-space: nowrap; }
.nav a:hover { background: var(--sky-2); }
.nav a[aria-current="page"] { background: var(--sky); }
.tel { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--rose); color: #fff; border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: 0 6px 14px color-mix(in srgb, var(--rose) 35%, transparent); }
.tel small { font-weight: 500; font-size: 11px; opacity: .9; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sky-2); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); margin: 4px auto; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 13px 26px; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; background: var(--rose); color: #fff; cursor: pointer; box-shadow: 0 8px 18px color-mix(in srgb, var(--rose) 30%, transparent); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.soft { background: #fff; color: var(--ink); box-shadow: var(--shadow-s); }
.btn.sky { background: var(--blue-deep); box-shadow: 0 8px 18px rgba(79, 132, 176, .3); }
.btn.sm { padding: 9px 18px; font-size: 13.5px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 11px; background: var(--sky-2); color: var(--blue-deep); white-space: nowrap; }
.chip.pink { background: #fdeef2; color: var(--rose-deep); }
.chip.mint { background: #e7f7ee; color: var(--mint-deep); }
.chip.butter { background: #fdf5d3; color: #9a7b14; }
.chip.lav { background: #f1ebfb; color: #7a62ad; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: 34px 70px; overflow: hidden; overflow: clip; }
.hero .sky { position: absolute; inset: -40px 0 0; background: url(../img/wc-sky.webp) center top / cover no-repeat; opacity: .9; -webkit-mask: linear-gradient(#000 55%, transparent); mask: linear-gradient(#000 55%, transparent); pointer-events: none; }
.rainbow { position: absolute; left: 50%; top: 16px; width: min(1260px, 128vw); transform: translateX(-50%); opacity: .62; -webkit-mask: linear-gradient(#000 62%, transparent 96%); mask: linear-gradient(#000 62%, transparent 96%); pointer-events: none; transition: transform 1.6s cubic-bezier(.6, 0, .2, 1), filter 1.2s, opacity 1.2s; }
.rainbow img { width: 100%; }
html:is([data-stage="2"], [data-stage="3"], [data-stage="4"]) .rainbow { transform: translateX(-50%) rotate(180deg) translateY(-18%); }
html:is([data-stage="3"], [data-stage="4"]) .rainbow { filter: saturate(.45) hue-rotate(-20deg); opacity: .6; }
.cloud { position: absolute; width: 180px; opacity: .9; pointer-events: none; animation: drift 26s ease-in-out infinite alternate; }
.cloud.c2 { width: 120px; animation-duration: 34s; animation-delay: -10s; }
@keyframes drift { to { transform: translateX(60px); } }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(color-mix(in srgb, var(--sky-2) 0%, transparent), var(--sky-2)); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero .container.st { display: block; }
.hero .container:not(.st) { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; gap: 10px; align-items: center; font-family: var(--f-hand); font-weight: 600; font-size: 14px; color: var(--blue-deep); background: rgba(255,255,255,.75); border-radius: 999px; padding: 4px 16px; }
.hero h1 { font-size: clamp(30px, 4.1vw, 50px); line-height: 1.45; font-weight: 700; margin: 18px 0 16px; letter-spacing: .06em; text-wrap: balance; text-shadow: 0 2px 18px rgba(255,255,255,.8); }
.hero h1 .soft { color: var(--rose-deep); }
.hero .lead { margin: 0 0 28px; max-width: 30em; color: #5d5c77; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo { position: relative; }
.hero-photo .frame { border-radius: 46% 54% 44% 56% / 52% 46% 54% 48%; overflow: hidden; border: 10px solid #fff; box-shadow: var(--shadow); aspect-ratio: 16 / 12; }
.hero-photo .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .badge { position: absolute; right: 2%; bottom: 4%; background: #fff; border-radius: 22px; padding: 10px 16px; box-shadow: var(--shadow-s); font-size: 12.5px; line-height: 1.5; }
.hero-photo .badge b { display: block; font-size: 20px; color: var(--rose-deep); }
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 46px; max-width: 980px; margin-inline: auto; }
.stat { background: rgba(255,255,255,.88); border-radius: var(--r); padding: 14px 18px; box-shadow: var(--shadow-s); text-align: center; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 24px; font-weight: 700; line-height: 1.4; }
.stat .v small { font-size: 13px; font-weight: 500; margin-left: 2px; }

/* ---------- sections ---------- */
section.sec { position: relative; padding-block: 76px; }
section.sec.alt { background: var(--sky-2); }
section.sec.alt::before, section.sec.alt::after { content: ""; position: absolute; left: 0; right: 0; height: 26px; background: var(--sky-2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='26'%3E%3Cpath d='M0 26 Q0 12 14 12 Q18 0 36 4 Q48 -2 60 8 Q74 2 84 12 Q100 4 112 14 Q126 6 140 14 Q160 10 160 26 Z' fill='%23000'/%3E%3C/svg%3E") repeat-x bottom / 160px 26px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='26'%3E%3Cpath d='M0 26 Q0 12 14 12 Q18 0 36 4 Q48 -2 60 8 Q74 2 84 12 Q100 4 112 14 Q126 6 140 14 Q160 10 160 26 Z' fill='%23000'/%3E%3C/svg%3E") repeat-x bottom / 160px 26px; }
section.sec.alt::before { top: -25px; }
section.sec.alt::after { bottom: -25px; transform: scaleY(-1); }
.sec-head { text-align: center; margin: 0 auto 38px; max-width: 40em; }
.sec-head .label { font-family: var(--f-hand); font-weight: 600; color: var(--blue-deep); font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.sec-head .label::before, .sec-head .label::after { content: ""; width: 22px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M3 11 Q0 11 0 8 Q0 5 4 5.5 Q5 1 9.5 1.5 Q13 0 15 4 Q19 3 20 6.5 Q22 7 22 9 Q22 11 19 11 Z' fill='%23c3e1f5'/%3E%3C/svg%3E") center / contain no-repeat; }
.sec-head h2 { font-size: clamp(24px, 3vw, 32px); margin: 6px 0 10px; line-height: 1.45; letter-spacing: .08em; text-wrap: balance; }
.sec-head h2::after { content: ""; display: block; width: 74px; height: 6px; margin: 12px auto 0; border-radius: 6px; background: linear-gradient(90deg, var(--pink) 0 20%, var(--peach) 20% 40%, var(--butter) 40% 60%, var(--mint) 60% 80%, var(--blue) 80%); }
.sec-head p { margin: 0; color: var(--muted); }

/* news */
.news { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 10px 28px; max-width: 900px; margin: 0 auto; }
.news li { list-style: none; display: grid; grid-template-columns: 8.5em 6.5em 1fr; gap: 12px; align-items: baseline; padding: 15px 0; border-bottom: 1px dashed var(--line); }
.news li:last-child { border-bottom: 0; }
.news ul { margin: 0; padding: 0; }
.news time { color: var(--muted); font-size: 13.5px; }
.news a { text-decoration-color: var(--blue); text-underline-offset: 4px; }
.news li.new .t { color: var(--rose-deep); font-weight: 700; }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column; transition: transform .25s; }
.svc:hover { transform: translateY(-4px); }
.svc .ph { aspect-ratio: 4 / 3; overflow: hidden; }
.svc .ph img { width: 100%; height: 100%; object-fit: cover; }
.svc .b { padding: 20px 24px 24px; }
.svc h3 { margin: 0 0 6px; font-size: 19px; }
.svc p { margin: 0; color: var(--muted); font-size: 14px; }
.svc .more { display: inline-block; margin-top: 10px; color: var(--blue-deep); font-weight: 700; font-size: 14px; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.plan { background: #fff; border-radius: var(--r); padding: 22px 24px; box-shadow: var(--shadow-s); border-top: 8px solid var(--c, var(--blue)); }
.plan h3 { margin: 0 0 4px; font-size: 18px; }
.plan .from { font-size: 13px; color: var(--muted); }
.plan .from b { font-size: 24px; color: var(--ink); margin-right: 2px; }
.plan ul { margin: 10px 0 0; padding-left: 1.2em; font-size: 14px; }
.plan .alt-note { color: var(--rose-deep); font-weight: 700; font-size: 13.5px; margin: 8px 0 0; }
.table-wrap { overflow-x: auto; border-radius: var(--r); background: #fff; box-shadow: var(--shadow-s); }
table.price { width: 100%; border-collapse: collapse; min-width: 600px; font-size: 14.5px; }
table.price th, table.price td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--line); }
table.price thead th { font-size: 13px; font-weight: 700; }
table.price thead th:nth-child(2) { background: #e7f7ee; }
table.price thead th:nth-child(3) { background: #e9f4fc; }
table.price thead th:nth-child(4) { background: #fdeef2; }
table.price thead th:first-child { width: 26%; }
table.price td.num { font-weight: 700; }
table.price tbody th { text-align: left; font-weight: 700; white-space: nowrap; }
table.price tbody th small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
table.price tr:last-child :is(th, td) { border-bottom: 0; }
.price-notes { margin: 16px 4px 0; padding-left: 1.2em; font-size: 13px; color: var(--muted); }
.options { margin-top: 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.opt { background: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow-s); font-size: 14px; }
.opt b { display: block; font-size: 17px; }
.opt.okaeri { background: linear-gradient(135deg, #fdeef2, #eef6fc); color: var(--rose-deep); }
.with-photo { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: center; margin-bottom: 30px; }
.with-photo img { border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* facility */
.facility { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.fac { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.fac img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.fac .b { padding: 22px 24px; align-self: center; }
.fac h3 { margin: 0 0 6px; font-size: 18px; }
.fac p { margin: 0; color: var(--muted); font-size: 14px; }
.fac.odd { box-shadow: 0 0 0 3px var(--pink), var(--shadow); }

/* flow */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 0; margin: 0; counter-reset: s; }
.flow.six { grid-template-columns: repeat(6, 1fr); }
.flow li { list-style: none; counter-increment: s; background: #fff; border-radius: var(--r); padding: 20px 18px; box-shadow: var(--shadow-s); text-align: center; }
.flow li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 8px; border-radius: 50%; background: var(--sky); color: var(--blue-deep); font-weight: 700; }
.flow li.odd::before { background: var(--pink); color: #fff; }
.flow h3 { margin: 0 0 4px; font-size: 16px; }
.flow p { margin: 0; font-size: 13px; color: var(--muted); text-align: left; }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 20px; }
.review { background: #fff; border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-s); position: relative; }
.review::after { content: ""; position: absolute; left: 34px; bottom: -11px; width: 22px; height: 22px; background: #fff; border-radius: 4px; transform: rotate(45deg); box-shadow: 6px 6px 10px rgba(106, 138, 190, .06); }
.review .stars { color: #f0b84a; letter-spacing: 2px; font-size: 13px; }
.review p { margin: 6px 0 0; font-size: 14.5px; }
.review .who { margin-top: 12px; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.review.odd p { color: var(--rose-deep); }

/* faq */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border-radius: 22px; box-shadow: var(--shadow-s); }
.faq summary { cursor: pointer; list-style: none; padding: 17px 22px; font-weight: 700; display: flex; gap: 14px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sky); color: var(--blue-deep); font-size: 13px; }
.faq summary::after { content: "＋"; margin-left: auto; color: var(--muted); }
.faq details[open] summary::after { content: "－"; }
.faq .a { padding: 0 24px 20px 64px; color: #66657e; }
.faq details.odd summary::before { background: var(--pink); color: #fff; }

/* access */
.access { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; }
.map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; background: #eef7ef; position: relative; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.addr { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px 28px; }
.addr dl { margin: 0; display: grid; grid-template-columns: 6.5em 1fr; gap: 10px 14px; font-size: 14.5px; }
.addr dt { color: var(--muted); }
.addr dd { margin: 0; }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: 40px; background: #fff; padding-block: 60px 30px; font-size: 13.5px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -25px; height: 26px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='26'%3E%3Cpath d='M0 26 Q0 12 14 12 Q18 0 36 4 Q48 -2 60 8 Q74 2 84 12 Q100 4 112 14 Q126 6 140 14 Q160 10 160 26 Z' fill='%23000'/%3E%3C/svg%3E") repeat-x bottom / 160px 26px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='26'%3E%3Cpath d='M0 26 Q0 12 14 12 Q18 0 36 4 Q48 -2 60 8 Q74 2 84 12 Q100 4 112 14 Q126 6 140 14 Q160 10 160 26 Z' fill='%23000'/%3E%3C/svg%3E") repeat-x bottom / 160px 26px; }
.site-footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.site-footer h4 { margin: 0 0 8px; font-size: 13.5px; color: var(--blue-deep); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .okaeri-line { color: var(--rose-deep); font-family: var(--f-hand); font-weight: 600; margin-top: 10px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 18px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.site-footer .legal button { background: var(--sky-2); border: 0; border-radius: 999px; padding: 3px 14px; font-size: 12px; color: var(--muted); cursor: pointer; }

/* ---------- sub pages ---------- */
.page-head { position: relative; text-align: center; padding-block: 46px 34px; overflow-x: clip; }
.page-head .crumb { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.page-head .crumb a { text-decoration: none; }
.page-head h1 { font-size: clamp(28px, 4vw, 42px); margin: 14px 0 8px; letter-spacing: .08em; line-height: 1.4; }
.page-head p { margin: 0 auto; max-width: 36em; color: #66657e; }
.page-head ~ * { position: relative; }
.page-head .rainbow { top: -40px; width: min(900px, 120vw); opacity: .5; }

/* banner notes */
.notice { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: var(--r); padding: 16px 20px; box-shadow: var(--shadow-s); font-size: 14px; margin-bottom: 26px; }
.notice .ic { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--butter); display: grid; place-items: center; }
.notice.pink { background: #fff6f8; }
.notice.pink .ic { background: var(--pink); }
.notice p { margin: 0; }

/* ---------- memorial board ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.filters button { border: 0; background: #fff; border-radius: 999px; padding: 7px 18px; cursor: pointer; box-shadow: var(--shadow-s); font-size: 14px; }
.filters button[aria-pressed="true"] { background: var(--blue-deep); color: #fff; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; padding-bottom: 60px; }
.post { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-s); overflow: hidden; animation: post-in .6s ease-out both; }
@keyframes post-in { from { opacity: 0; transform: translateY(10px); } }
.post .ph { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--sky-2); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.post .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post .ph:hover img { transform: scale(1.03); }
.post .ph .count { position: absolute; right: 10px; bottom: 10px; background: rgba(255,255,255,.92); border-radius: 999px; font-size: 12px; padding: 2px 10px; font-weight: 700; }
.post .b { padding: 16px 20px 18px; }
.post h3 { margin: 0; font-size: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.post h3 small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.post .rb { margin: 4px 0 0; font-size: 13px; color: var(--blue-deep); display: flex; gap: 6px; align-items: center; }
.post .rb svg { width: 20px; height: 12px; flex: none; }
.post .msg { margin: 10px 0 0; font-size: 14.5px; white-space: pre-line; }
.post .meta { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.post .acts { display: flex; gap: 8px; margin-top: 10px; }
.post .acts button { border: 0; background: var(--sky-2); border-radius: 999px; padding: 3px 12px; font-size: 12.5px; cursor: pointer; }
.post .acts button.on { background: #fdeef2; color: var(--rose-deep); }
.post .reply { margin: 10px 0 0; background: var(--sky-2); border-radius: 14px; padding: 8px 12px; font-size: 13px; }
.post .reply b { color: var(--blue-deep); }
.post.self { box-shadow: 0 0 0 2px var(--lav), var(--shadow-s); }
.post.self .msg { font-family: var(--f-hand); font-size: 17px; letter-spacing: .2em; }
.board-empty { text-align: center; color: var(--muted); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 85; background: rgba(74, 73, 98, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 18px; }
.lb-box { background: #fff; border-radius: var(--r-lg); width: min(900px, 100%); max-height: calc(100vh - 36px); overflow: auto; padding: 18px; box-shadow: 0 30px 80px rgba(40, 40, 70, .35); }
.lb-photo { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; background: #222; }
.lb-photo img { width: 100%; height: 100%; object-fit: cover; }
.lb-cap { display: flex; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 12px 6px 4px; font-size: 13.5px; }
.lb-cap .msg { flex: 1 1 360px; margin: 0; }
.lb-cap .when { color: var(--muted); font-size: 12.5px; }
.lb-thumbs { display: flex; gap: 10px; padding: 8px 6px 2px; flex-wrap: wrap; }
.lb-thumbs button { border: 0; padding: 0; border-radius: 14px; overflow: hidden; width: 104px; cursor: pointer; background: none; opacity: .55; transition: opacity .2s; position: relative; }
.lb-thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 3px var(--blue); }
.lb-thumbs img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.lb-thumbs span { position: absolute; left: 6px; bottom: 4px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px #000; }
.lb-close { display: block; margin: 10px auto 0; }
.eyes { position: absolute; transform: translate(-50%, -50%); border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 50%; z-index: 2; }
.eyes:focus-visible { outline: 2px solid rgba(200, 255, 210, .8); }
.eye-glow { position: absolute; width: 2.6%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(245, 255, 240, .95) 0, rgba(190, 255, 205, .6) 32%, rgba(150, 255, 180, 0) 70%); mix-blend-mode: screen; animation: eye 3.6s ease-in-out infinite; }
.eye-glow::after { content: ""; position: absolute; inset: -120%; border-radius: 50%; background: radial-gradient(circle, rgba(170, 255, 200, .25), rgba(170, 255, 200, 0) 60%); }
@keyframes eye { 0%, 100% { opacity: .6; } 40% { opacity: 1; } 46% { opacity: .05; } 50% { opacity: 1; } }
.lb-photo.stare img { animation: stare .9s ease-in-out; }
@keyframes stare { 50% { transform: scale(1.06); filter: brightness(.7) contrast(1.2); } }

/* ---------- online offering ---------- */
.kuyou { display: grid; grid-template-columns: 380px 1fr; gap: 30px; align-items: start; padding-bottom: 70px; }
.altar-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px; position: sticky; top: 96px; }
.altar-card h2 { margin: 0 0 4px; font-size: 19px; }
.altar-card p.s { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field .lbl { font-size: 13.5px; font-weight: 700; }
.field label small, .field .lbl small { font-weight: 500; color: var(--muted); margin-left: 6px; }
.field input[type="text"], .field input[type="date"], .field select, .field textarea { width: 100%; padding: 11px 16px; border: 2px solid var(--line); border-radius: 16px; background: var(--cream); font-size: 15px; transition: border-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; background: #fff; }
.field .help { font-size: 12.5px; color: var(--muted); margin: 0; }
.err { margin: 0 0 12px; min-height: 1.4em; font-size: 13.5px; font-weight: 700; color: var(--warn); }
.err:empty { min-height: 0; margin: 0; }
.my-candle { margin-top: 16px; display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; background: var(--sky-2); border-radius: 20px; padding: 12px; }
.my-candle p { margin: 0; font-size: 13.5px; }
.my-candle .hint { color: var(--blue-deep); font-weight: 700; }
.candles-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.candles-head h2 { margin: 0; font-size: 20px; }
.candles-head .total { font-size: 14px; color: var(--muted); }
.candles-head .total b { font-size: 26px; color: var(--ink); margin: 0 4px; transition: color .6s; }
.candles-head .total b.up { color: var(--rose-deep); }
.candles { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.candle { position: relative; display: block; width: 100%; font: inherit; color: inherit; border: 0; padding: 0; background: #c2deea; border-radius: 20px; overflow: hidden; cursor: default; text-align: center; box-shadow: var(--shadow-s); animation: post-in .7s ease-out both; }
.candle .cv { position: relative; display: block; aspect-ratio: 1; }
.candle .cv img { width: 100%; height: 100%; object-fit: cover; }
.candle .nm { display: block; font-family: var(--f-hand); font-weight: 600; font-size: 14px; padding: 2px 6px 8px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #c2deea; }
.candle.mine { box-shadow: 0 0 0 3px var(--rose), var(--shadow-s); }
.candle.visitor { cursor: pointer; background: #e4e0f3; }
.candle.visitor .nm { background: #e4e0f3; color: #6f5aa3; }
.candle.visitor .cv img { filter: hue-rotate(40deg) saturate(.8); }
.candle.call { box-shadow: 0 0 0 3px #b7a5e6, 0 0 26px rgba(183, 165, 230, .9); animation: post-in .7s ease-out both, call 2.6s ease-in-out infinite; }
@keyframes call { 50% { box-shadow: 0 0 0 5px #cfc2f2, 0 0 40px rgba(183, 165, 230, 1); } }
.flame { position: absolute; left: var(--fx, 50%); top: var(--fy, 30%); width: 11%; aspect-ratio: 1 / 2.3; transform: translate(-50%, -100%); transform-origin: 50% 100%; pointer-events: none; }
.flame::before { content: ""; position: absolute; inset: 0; border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%; background: radial-gradient(ellipse 50% 60% at 50% 72%, #fff 0 22%, #fff3b8 36%, #ffc35a 58%, rgba(255, 140, 40, 0) 78%); filter: blur(.5px); animation: flick 1.7s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.flame::after { content: ""; position: absolute; left: 50%; top: 62%; width: 520%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 140, .55), rgba(255, 220, 140, 0) 65%); mix-blend-mode: screen; animation: halo 2.3s ease-in-out infinite alternate; }
.candle.visitor .flame::before { background: radial-gradient(ellipse 50% 60% at 50% 72%, #fff 0 22%, #e7e2ff 38%, #a99af0 60%, rgba(140, 120, 240, 0) 78%); }
.candle.call .flame::before { background: radial-gradient(ellipse 50% 60% at 50% 72%, #fff 0 18%, #ffd6e2 30%, #fff1a6 42%, #bde9d2 54%, #b7d9f5 64%, rgba(190, 170, 240, 0) 80%); }
html:is([data-stage="3"], [data-stage="4"]) .candle.visitor .flame { transform: translate(-50%, 0) rotate(180deg); }
@keyframes flick { 0% { transform: scale(1, 1) skewX(0); } 30% { transform: scale(.94, 1.06) skewX(2deg); } 60% { transform: scale(1.04, .96) skewX(-2deg); } 100% { transform: scale(.97, 1.04) skewX(1deg); } }
@keyframes halo { from { opacity: .7; } to { opacity: 1; } }
.candle .unlit { display: none; }
.light-anim { animation: ignite .9s ease-out; }
@keyframes ignite { 0% { opacity: 0; transform: translate(-50%, -100%) scale(.2); } 60% { opacity: 1; transform: translate(-50%, -100%) scale(1.25); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: #fff; border-radius: 999px; padding: 10px 22px; box-shadow: var(--shadow); font-size: 14px; max-width: calc(100% - 32px); text-align: center; }
.toast b { color: #6f5aa3; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 85; background: rgba(74, 73, 98, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 18px; }
.modal-box { background: #fff; border-radius: var(--r-lg); width: min(520px, 100%); padding: 30px 28px; text-align: center; box-shadow: 0 30px 80px rgba(40, 40, 70, .35); max-height: calc(100vh - 36px); overflow: auto; }
.modal-box h3 { margin: 0 0 10px; font-size: 20px; }
.modal-box p { margin: 0 0 12px; }
.modal-box .voice { font-family: var(--f-hand); font-weight: 600; font-size: 19px; color: #6f5aa3; background: #f4f0fc; border-radius: 18px; padding: 12px 16px; }
.modal-box .act { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ---------- okaeri plan ---------- */
.ok-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; margin-bottom: 40px; }
.ok-hero figure { margin: 0; }
.ok-hero img { border-radius: var(--r-lg); box-shadow: var(--shadow); }
.ok-hero figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.ok-points { display: grid; gap: 12px; }
.ok-points div { background: #fff; border-radius: 20px; padding: 14px 18px; box-shadow: var(--shadow-s); }
.ok-points b { display: block; color: var(--rose-deep); }
.ok-price { text-align: center; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px; margin-bottom: 36px; }
.ok-price .yen { font-size: 46px; font-weight: 700; color: var(--rose-deep); line-height: 1.2; }
.ok-price p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.ok-form { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; align-items: start; padding-bottom: 70px; }
.ok-form .card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px; }
.ok-form h2 { margin: 0 0 14px; font-size: 20px; }
.fixed-note { font-size: 12.5px; color: var(--rose-deep); font-weight: 700; margin: 0; min-height: 1.4em; }
#ok-name.rewriting { color: var(--rose-deep); }
.terms { max-height: 300px; overflow: auto; background: var(--cream); border-radius: 18px; padding: 14px 18px; font-size: 13.5px; }
.terms ol { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; margin: 14px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--rose); }

/* done overlay */
.done { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; text-align: center; padding: 24px; cursor: pointer; background: linear-gradient(180deg, #cfd6ea, #efe9f1); overflow: hidden; }
.done .rainbow { top: auto; bottom: -6%; transform: translateX(-50%) rotate(180deg); opacity: .8; animation: flipin 2.4s cubic-bezier(.6, 0, .2, 1) both; }
@keyframes flipin { from { transform: translateX(-50%) rotate(0deg); } }
.done .cap { position: relative; z-index: 2; max-width: 36em; }
.done .cap h2 { font-size: clamp(22px, 3.4vw, 32px); margin: 0 0 10px; letter-spacing: .1em; }
.done .cap p { margin: 0; color: #5d5c77; }
.done .cap small { display: block; margin-top: 22px; font-size: 12.5px; letter-spacing: .2em; color: var(--muted); }

/* ---------- soft 404 ---------- */
.nf { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.nf .code { font-size: 92px; font-weight: 700; line-height: 1; color: #fff; text-shadow: 0 6px 24px rgba(106, 138, 190, .25); }
.nf h1 { font-size: 21px; margin: 16px 0 6px; }
.nf p { color: var(--muted); margin: 0 0 22px; }

/* ---------- paw prints ---------- */
.paws { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 55; overflow: hidden; }
.paw { position: absolute; width: 40px; height: 40px; opacity: 0; animation: paw-in .5s ease-out forwards; mix-blend-mode: multiply; }
.paw img { width: 100%; height: 100%; }
@keyframes paw-in { from { opacity: 0; transform: var(--t) scale(.6); } to { opacity: var(--o, .5); transform: var(--t); } }

/* ---------- alteration overlay ---------- */
.alter { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; cursor: pointer; background: #000; }
.alter canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.alter .msg { position: relative; text-align: center; color: #fff; font-size: clamp(22px, 4vw, 40px); font-weight: 700; letter-spacing: .12em; text-shadow: 3px 0 #ff5f8f, -3px 0 #6fd6ff; animation: jit .18s steps(2) infinite; padding: 0 16px; }
.alter .msg small { display: block; margin-top: 18px; font-size: 13px; letter-spacing: .3em; text-shadow: none; color: #bbb; animation: none; }
@keyframes jit { 50% { transform: translate(2px, -1px); text-shadow: -3px 0 #ff5f8f, 3px 0 #6fd6ff; } }
html.glitching body { animation: gl .45s steps(3); }
@keyframes gl { 33% { filter: hue-rotate(120deg) contrast(1.3); transform: translateX(3px); } 66% { filter: invert(1); transform: translateX(-3px); } }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .nav a { padding: 7px 9px; font-size: 13.5px; }
  .tel small { display: none; }
}
@media (max-width: 960px) {
  .hero .container:not(.st), .access, .kuyou, .ok-hero, .ok-form, .with-photo { grid-template-columns: 1fr; }
  .services, .reviews, .plans, .board { grid-template-columns: 1fr 1fr; }
  .facility { grid-template-columns: 1fr; }
  .flow, .flow.six { grid-template-columns: repeat(3, 1fr); }
  .options { grid-template-columns: 1fr 1fr; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .altar-card { position: static; }
  .with-photo img { max-width: min(420px, 100%); }
  .nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; gap: 2px; background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: 12px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 16px; font-size: 15px; }
  .menu-btn { display: block; }
  .site-header .bar { gap: 10px; }
  .tel { margin-left: auto; }
  .menu-btn { margin-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .topline .odd { margin-left: 0; }
  .site-header .bar { padding: 8px 8px 8px 16px; }
  .logo .word { font-size: 15px; }
  .logo .word small { letter-spacing: .2em; }
  .tel { padding: 8px 14px; font-size: 13px; }
  .tel .long { display: none; }
  .services, .reviews, .plans, .options, .board { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .fac { grid-template-columns: 1fr; }
  .flow, .flow.six { grid-template-columns: 1fr 1fr; }
  .news { padding: 6px 20px; }
  .news li { grid-template-columns: 1fr auto; gap: 2px 10px; }
  .news li .t { grid-column: 1 / -1; }
  .site-footer .container { grid-template-columns: 1fr; }
  section.sec { padding-block: 58px; }
  .faq .a { padding-left: 24px; }
  .candles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .candle .nm { font-size: 12.5px; }
  .my-candle { grid-template-columns: 86px 1fr; }
  .lb-box { padding: 12px; }
  .lb-thumbs button { width: 76px; }
  .addr dl { grid-template-columns: 5.5em 1fr; }
}
