:root {
  color-scheme: light;
  --navy: #242640;
  --ink: #292b30;
  --muted: #555860;
  --line: #d9d7d0;
  --paper: #f4f2ed;
  --accent: #695740;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif;
  --gutter: clamp(1.125rem, 4vw, 3.25rem);
  font-family: "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  color: var(--ink);
  background: white;
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.8; overflow-wrap: anywhere; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { overflow-wrap: break-word; }
h1, h2 {
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .025em;
}
a { color: inherit; text-underline-offset: .24em; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.wrap {
  width: min(100%, 80rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute;
  z-index: 3;
  inset: .5rem auto auto .5rem;
  padding: .625rem 1rem;
  color: white;
  background: var(--navy);
  transform: translateY(calc(-100% - 1rem));
}
.skip:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand nav phone";
  align-items: center;
  min-height: 5.5rem;
  column-gap: clamp(.75rem, 2vw, 2rem);
}
.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  min-height: 2.75rem;
}
.brand img { width: clamp(11rem, 17vw, 13.75rem); height: auto; }
.urgent {
  grid-area: phone;
  display: grid;
  justify-items: start;
  padding: .35rem 0 .35rem 1rem;
  border-left: 1px solid var(--line);
  text-decoration: none;
  color: var(--navy);
  line-height: 1.3;
  white-space: nowrap;
}
.urgent span { font-size: .8125rem; font-weight: 600; }
.urgent strong, .contact-phone, .price {
  font-variant-numeric: lining-nums tabular-nums;
}
.urgent strong { font-size: clamp(1.125rem, 1.7vw, 1.4375rem); letter-spacing: .012em; }
.urgent:hover strong { text-decoration: underline; }
.nav {
  grid-area: nav;
  display: flex;
  justify-content: center;
  gap: clamp(.5rem, 1.65vw, 1.5rem);
}
.nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  color: var(--navy);
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.hero { background: var(--paper); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
  align-items: center;
  column-gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(2.25rem, 4.2vw, 4rem) clamp(1.75rem, 3vw, 2.875rem);
}
.hero-copy { container-type: inline-size; padding-bottom: 1.5rem; }
.hero-region {
  color: var(--accent);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
}
.hero h1 {
  margin-top: .65rem;
  font-size: clamp(1.5rem, 3.4vw, 3.25rem);
  font-size: clamp(1.375rem, 8.6cqi, 3.25rem);
  line-height: 1.28;
  letter-spacing: .012em;
}
.hero-description { max-width: 28em; margin-top: 1.15rem; }
.hero-figure figcaption {
  margin-top: .55rem;
  color: var(--muted);
  font-size: .8125rem;
  text-align: right;
}
.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #ddd6ca;
}

.buttons, .hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  margin-top: 1.5rem;
}
.hero-actions { gap: .55rem 1.25rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: .55rem 1rem;
  border: 1px solid var(--muted);
  background: white;
  color: var(--navy);
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.45;
  text-decoration: none;
}
.button:hover { background: var(--paper); }
.button-primary { border-color: var(--navy); background: var(--navy); color: white; }
.button-primary:hover { border-color: #3c405e; background: #3c405e; }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--navy);
  font-weight: 650;
}
.text-link:hover, .footer-links a:hover { text-decoration-thickness: 2px; }

.section { padding-block: clamp(2rem, 4.75vw, 4rem); }
.section-heading h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
.section-heading p { max-width: 23em; margin-top: .75rem; }
.station-section {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.5fr);
  align-items: start;
  gap: 1.25rem clamp(1.5rem, 5vw, 4rem);
}
.locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1rem, 3vw, 2.5rem);
  max-width: 57rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.locations li { border-bottom: 1px solid var(--line); }
.locations li:nth-child(-n+2) { border-top: 1px solid var(--line); }
.location-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  row-gap: .18rem;
  min-height: 4.75rem;
  height: 100%;
  padding-block: .6rem;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.5;
}
.location-link strong { text-decoration: underline; text-underline-offset: .24em; }
.location-link:hover strong { text-decoration-thickness: 2px; }
.location-link span { color: var(--muted); font-size: .875rem; }
.small-note { margin-top: .875rem; color: var(--muted); font-size: .9375rem; }
.band { border-top: 1px solid var(--line); background: #faf9f6; }
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 1.5rem;
  margin-top: 1.1rem;
}
.services a {
  min-height: 3.5rem;
  padding-block: .4rem;
  border-block: 1px solid var(--line);
}

.subpage { padding-block: .875rem clamp(3rem, 6vw, 5.5rem); min-height: 54vh; }
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 .5rem;
  margin-bottom: clamp(.625rem, 2vw, 1.5rem);
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
}
.breadcrumb a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.page-title { font-size: clamp(1.875rem, 3.9vw, 3.4rem); }
.title-note { display: inline-block; font-size: .68em; }
.intro { max-width: 47em; margin: .85rem 0 1.6rem; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
}
.detail-photo { width: 100%; height: auto; }
.facts { max-width: 54rem; margin: 0; border-bottom: 1px solid var(--line); }
.facts div {
  display: grid;
  grid-template-columns: minmax(6rem, 1fr) minmax(0, 2.65fr);
  gap: .5rem 1rem;
  padding-block: .75rem;
  border-top: 1px solid var(--line);
}
.facts dt { color: var(--navy); font-size: .9375rem; font-weight: 700; }
.facts dd { margin: 0; }
.annotation {
  max-width: 54rem;
  margin-bottom: 1.3rem;
  padding: .75rem 1rem;
  border-left: 2px solid var(--accent);
  background: var(--paper);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: 1.75rem .5rem;
  border-block: 1px solid var(--line);
}
.plan { padding: 1.5rem clamp(.8rem, 2.4vw, 1.75rem) 1.625rem; }
.plan:first-child { padding-inline-start: 0; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan h2 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); }
.price {
  margin-block: .5rem .75rem;
  color: var(--navy);
  font-size: clamp(1.85rem, 3.1vw, 2.5rem);
  line-height: 1.25;
  font-weight: 650;
}
.price span { margin-inline-start: .2em; font-size: .52em; }
.price small { color: var(--muted); font-size: .875rem; font-weight: 500; }
.plan ul { margin: .8rem 0 0; padding-left: 1.2em; font-size: .9375rem; }
.plan li + li { margin-top: .15rem; }

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
  align-items: center;
  gap: 1.25rem 2.5rem;
  padding-top: 1.75rem;
  margin-top: 2.25rem;
  border-top: 1px solid var(--line);
}
.editorial-text { display: block; max-width: 54rem; }
.editorial h2, .option-section h2, .flow-section > h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}
.editorial p, .option-section > p { max-width: 45em; margin-top: .65rem; }
.editorial > img {
  width: 100%;
  height: auto;
  max-height: 15rem;
  object-fit: cover;
}
.option-section {
  padding-top: 1.75rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.option-group { margin-top: 1.5rem; }
.option-group h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: .5rem; }
.option-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem clamp(1rem, 2.6vw, 2rem);
  max-width: 60rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.option-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper); }
.option-item img[src$="option-coffin.jpg"],
.option-item img[src$="option-urn.jpg"] { object-fit: contain; background-color: white; }
.option-item div { padding-block: .65rem; }
.option-item h4 { color: var(--navy); }
.option-item p { margin-top: .25rem; font-size: .9375rem; }
.flow-section { margin-top: 2.5rem; }
.flow-section > h2 { margin-bottom: .7rem; }
.flow {
  max-width: 54rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
  border-bottom: 1px solid var(--line);
}
.flow li {
  position: relative;
  padding: .9rem 0 .9rem 2.25rem;
  border-top: 1px solid var(--line);
  counter-increment: steps;
}
.flow li::before {
  content: counter(steps);
  position: absolute;
  inset: .9rem auto auto 0;
  color: var(--accent);
  font: 600 1.3rem/1.4 var(--serif);
}
.flow h3 { color: var(--navy); font-size: 1.125rem; margin-bottom: .2rem; }

.contact-band { background: var(--navy); color: white; }
.contact-band :focus-visible { outline-color: white; }
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .7fr);
  align-items: center;
  gap: 1.5rem 3rem;
  padding-block: clamp(2rem, 4.6vw, 3.75rem);
}
.contact-section h2 { color: white; font-size: clamp(1.5rem, 3vw, 2.15rem); }
.contact-section h2 + p { margin-top: .75rem; }
.contact-support {
  display: grid;
  justify-items: start;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  border-left: 1px solid #777997;
}
.contact-support p { color: #edecf4; font-size: .9375rem; }
.contact-phone {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.contact-phone:hover { text-decoration: underline; }
.contact-form-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .9375rem;
}
.footer-shell { border-top: 1px solid var(--line); }
.contact-band + .footer-shell { border-top: 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .35rem 1rem;
  padding-block: 1.125rem;
  color: var(--muted);
  font-size: .875rem;
}
.footer-operator { display: grid; }
.footer-operator strong { color: var(--navy); }
.footer-links, .footer-policies { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }

.inquiry-phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1.5rem;
  max-width: 49rem;
  padding: 1rem 1.25rem;
  background: var(--paper);
}
.inquiry-phone .button { font-size: clamp(1.25rem, 2.3vw, 1.5rem); }
.inquiry-phone h2, .inquiry-form h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
.inquiry-form { max-width: 49rem; margin-top: 2.5rem; }
.inquiry-form h2 { margin-bottom: .75rem; }
.contact-form { display: grid; gap: 1.125rem; }
.contact-form fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
.contact-form legend, .contact-form > label { color: var(--navy); font-weight: 700; }
.field-required, .field-optional, .field-help { color: var(--muted); font-weight: 400; font-size: .875rem; }
.field-required { color: #713b29; }
.field-required, .field-optional { margin-inline-start: .25rem; }
.contact-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.contact-form input:is([type=text], [type=email], [type=tel]), .contact-form textarea {
  display: block;
  width: 100%;
  min-height: 2.875rem;
  margin-top: .25rem;
  padding: .55rem;
  border: 1px solid #827c86;
  background: white;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}
.contact-form textarea { resize: vertical; }
.contact-check { display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; cursor: pointer; }
.contact-check input { flex: 0 0 auto; inline-size: 1.125rem; block-size: 1.125rem; accent-color: var(--navy); }
.contact-form button { justify-self: start; font-family: inherit; cursor: pointer; }
.form-result {
  padding: .65rem .85rem;
  border-left: 2px solid var(--accent);
  background: var(--paper);
  scroll-margin-top: 1rem;
}
.form-result ul { margin: .375rem 0 0; padding-left: 1.25em; }
.policy-section { max-width: 54rem; padding-block: 1.125rem; border-top: 1px solid var(--line); }
.policy-section h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.policy-section p + p, .policy-section .facts { margin-top: .85rem; }
.policy-section ul { margin: .5rem 0 0; padding-left: 1.25em; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1.35rem;
}
.guide-card { padding: 1rem 1.125rem; border: 1px solid var(--line); background: #fbfaf8; }
.guide-card h2, .guide-card h3 { color: var(--navy); font-size: 1.15rem; }
.guide-card p { margin-top: .45rem; }
.guide-price { font-size: 1.2rem; font-weight: 700; }
.guide-price small { font-size: .875rem; font-weight: 400; }
.page-links { display: flex; flex-wrap: wrap; gap: 0 1.15rem; margin-block: 1rem; }
.page-links a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--navy); }
.answers { max-width: 54rem; margin-top: 1.5rem; }
.answers section { border-top: 1px solid var(--line); padding-block: 1rem 1.125rem; }
.answers h2 { font-size: clamp(1.18rem, 3vw, 1.42rem); margin-bottom: .45rem; }
.source-note { margin-top: 2.25rem; border-top: 1px solid var(--line); padding-top: .75rem; font-size: .9rem; color: var(--muted); }
.source-note ul { margin: .25rem 0 0; padding-inline-start: 1.25em; }
.person-profile { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); align-items: center; gap: 1.25rem; margin-block: 1rem; }
.person-profile img { width: 100%; height: auto; }
.person-profile p + p { margin-top: .35rem; }
.cost-check { max-width: 49rem; margin-top: 1rem; padding: 1rem; background: var(--paper); }
.cost-check:not([hidden]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.cost-check label { display: flex; flex-direction: column; gap: .25rem; }
.cost-check :is(input, select) { width: 100%; min-height: 2.75rem; padding: .4rem; border: 1px solid #827c86; background: white; color: var(--ink); font: inherit; }
.cost-check > p { grid-column: 1 / -1; font-weight: 700; }
main section[id], main h2[id] { scroll-margin-top: 1.25rem; }

@media (max-width: 63rem) {
  .header-inner { grid-template-areas: "brand phone" "nav nav"; grid-template-columns: minmax(0, 1fr) auto; }
  .brand, .urgent { margin-block: .625rem; }
  .nav { justify-content: space-between; border-top: 1px solid var(--line); }
  .desktop-break { display: none; }
  .plan h2 { min-height: 2.8em; }
}

@media (max-width: 46rem) {
  .guide-grid, .cost-check:not([hidden]) { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; row-gap: 1.5rem; }
  .hero-copy { padding-bottom: 0; }
  .hero-description { margin-top: .85rem; }
  .hero-actions { margin-top: 1.125rem; }
  .station-section, .split, .editorial, .contact-section { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .services a + a { border-top: 0; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding-inline: 0; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .plan h2 { min-height: 0; }
  .editorial > img { max-width: 26rem; }
  .contact-support { border-left: 0; border-top: 1px solid #777997; padding: 1.25rem 0 0; }
}

@media (max-width: 33rem) {
  .person-profile { grid-template-columns: 1fr; }
  .person-profile img { max-width: 12rem; }
  .header-inner { column-gap: .5rem; }
  .brand img { width: min(11.5rem, 46vw); }
  .urgent { padding-left: .65rem; }
  .urgent span { font-size: .75rem; }
  .nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 .25rem; }
  .nav a:nth-child(n+4) { border-top: 1px solid var(--line); }
  .hero-actions { column-gap: .875rem; }
  .hero-actions .button, .hero-actions .text-link { font-size: .875rem; }
  .hero-actions .button { padding-inline: .65rem; }
  .locations, .option-list { grid-template-columns: 1fr; }
  .locations li:nth-child(2) { border-top: 0; }
  .location-link { min-height: 3.875rem; }
  .option-item { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: .875rem; }
  .option-item div { padding-block: 0; }
  .facts div { grid-template-columns: 1fr; gap: .2rem; }
  .footer-policies { display: contents; }
}
