:root {
  --bg: #f8f4ec;
  --surface: #fffdf9;
  --surface-strong: #f1e8d8;
  --ink: #2d2a26;
  --muted: #6f665e;
  --line: #d9cfbf;
  --accent: #6f2d2b;
  --accent-soft: #936c4d;
  --forest: #4d6550;
  --shadow: 0 18px 40px rgba(59, 45, 31, 0.08);
  --radius: 24px;
  --container: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.52), rgba(243, 234, 217, 0.5)),
    url("images2/washi.png"),
    linear-gradient(180deg, #f5f1e8 0%, #fcfaf5 20%, #f8f4ec 100%);
  background-size: auto, 560px auto, auto;
  background-repeat: repeat, repeat, no-repeat;
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  opacity: 0.82;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background:
    linear-gradient(180deg, rgba(248, 244, 236, 0.88), rgba(248, 244, 236, 0.8)),
    url("images2/washi.png");
  background-size: auto, 420px auto;
  border-bottom: 1px solid rgba(111, 102, 94, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 82px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ink);
}

.site-brand__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8f6f55, #534436);
  color: #fff8ef;
  font-family: "Noto Serif JP", serif;
  font-size: 1.25rem;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-brand__text strong {
  font-family: "Noto Serif JP", serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.site-brand__text span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font-size: 0.98rem;
  color: var(--ink);
}

.nav-button {
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: #f1e8d8;
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero__grid,
.welcome,
.split,
.access,
.family {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero__grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.hero__content,
.welcome__copy,
.split__copy,
.access__copy,
.family__copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--forest);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Noto Serif JP", serif;
  line-height: 1.35;
}

h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
}

.hero-title__line {
  display: inline;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 3vw, 3rem);
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.45rem;
}

.hero__lead,
.section-heading p,
.card p,
.split__copy p,
.access__copy p,
.welcome__copy p,
.family__copy p {
  font-size: 1.06rem;
}

.hero__lead span {
  display: inline;
}

.hero__actions,
.social-note__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
}

.button--primary {
  background: var(--accent);
  color: #fffaf5;
}

.button--secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero__highlights {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.hero__highlights li {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(147, 108, 77, 0.1);
  color: var(--ink);
  font-size: 0.95rem;
}

.guide-links {
  display: grid;
  gap: 0.8rem;
}

.guide-links--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.guide-tile {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 132px;
  overflow: hidden;
  border-radius: 6px;
  background: #2d2a26;
  background-position: center;
  background-size: cover;
  color: #fffdf9;
  box-shadow: var(--shadow);
}

.guide-tile::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(12, 10, 8, 0.72), rgba(12, 10, 8, 0.16) 70%),
    linear-gradient(180deg, rgba(12, 10, 8, 0.08), rgba(12, 10, 8, 0.28));
  transition: background 160ms ease;
}

.guide-tile:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.guide-tile:hover::before {
  background:
    linear-gradient(90deg, rgba(12, 10, 8, 0.62), rgba(12, 10, 8, 0.08) 70%),
    linear-gradient(180deg, rgba(12, 10, 8, 0.02), rgba(12, 10, 8, 0.22));
}

.guide-tile span {
  position: relative;
  z-index: 1;
  padding: 1.2rem 1.5rem;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 700;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.guide-tile--compact {
  min-height: 168px;
  align-items: flex-end;
  padding: 1.35rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.guide-tile--compact span {
  display: block;
  padding: 0;
}

.guide-tile__title {
  position: relative;
  z-index: 1;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  font-weight: 700;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.guide-tile--eidaikuyo .guide-tile__title {
  font-size: clamp(1.2rem, 1.8vw, 1.75rem);
}

.guide-tile--eidaikuyo {
  background-image: url("images/choreito.jpg");
}

.guide-tile--funeral {
  background-image: url("images/houji01.jpg");
}

.guide-tile--shakyo {
  background-image: url("images/shakyo-main.jpg");
}

.guide-tile--mizuko {
  background-image: url("images/jizo1.jpg");
}

.guide-tile--access {
  background-image: url("images/ikkehp04.jpg");
}

.guide-tile--history {
  background-image: url("images/temple-gate.jpg");
}

.family {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.family-section {
  padding-top: 3rem;
}

.family__photo {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.family__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 34%;
}

.family__copy {
  padding: 1rem 0;
}

.history-panel {
  padding: 2rem 1.8rem;
  border: 1px solid rgba(111, 102, 94, 0.12);
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.72);
  box-shadow: var(--shadow);
}

.content-block {
  max-width: 860px;
}

.content-block--narrow {
  max-width: 720px;
}

.detail-main {
  min-height: calc(100vh - 220px);
}

.detail-hero {
  padding: 5.5rem 0 6rem;
}

.detail-shell {
  max-width: 780px;
  padding: 2.5rem 0;
}

.detail-shell h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.detail-shell p {
  max-width: 680px;
  font-size: 1.08rem;
}

.detail-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

.detail-page {
  padding: 4.5rem 0 5.5rem;
}

.detail-page__hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.2rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.detail-page__hero img,
.detail-photo img {
  display: block;
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-page__hero img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-page__intro h1 {
  margin-bottom: 1rem;
}

.detail-section {
  margin-top: 2.2rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(111, 102, 94, 0.16);
}

.detail-section h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.45rem);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.detail-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.detail-card {
  padding: 1.45rem;
  border: 1px solid rgba(111, 102, 94, 0.12);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.78);
}

.detail-card h3 {
  font-size: 1.35rem;
}

.detail-card img,
.detail-photo img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 1rem;
}

.detail-photo--small img {
  max-width: 420px;
}

.map-frame {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.map-frame iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

.detail-list {
  padding-left: 1.2rem;
  margin: 1rem 0 0;
}

.detail-list li {
  margin-bottom: 0.55rem;
}

.detail-note {
  margin-top: 1.4rem;
  padding: 1.1rem 1.2rem;
  border-left: 4px solid var(--accent);
  background: rgba(111, 45, 43, 0.07);
}

.text-alert {
  color: var(--accent);
  font-weight: 700;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 1.4rem;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-panel p {
  margin: 0.2rem 0;
}

.section {
  padding: 5rem 0;
}

.section--soft {
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.48), rgba(255, 250, 241, 0.34)),
    url("images2/washi.png");
  background-size: auto, 520px auto;
}

.section--accent {
  background:
    linear-gradient(180deg, rgba(232, 221, 202, 0.76) 0%, rgba(239, 230, 215, 0.78) 100%),
    url("images2/washi.png");
  background-size: auto, 500px auto;
}

.section--split .split,
.welcome,
.access,
.family {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading p:only-child {
  margin-top: 0;
}

.cards {
  display: grid;
  gap: 1.35rem;
}

.cards--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.photo-card,
.access__card {
  background: var(--surface);
  border: 1px solid rgba(111, 102, 94, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 1.6rem;
}

.card__body {
  padding: 1.6rem;
}

.card__kicker {
  margin: 0 0 0.6rem;
  color: var(--accent-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card a,
.text-link {
  font-weight: 700;
}

.photo-card {
  overflow: hidden;
}

.photo-card__image {
  min-height: 280px;
  background-size: cover;
  background-position: center;
}

.photo-card--tall .photo-card__image {
  min-height: 560px;
}

.photo-card__caption {
  padding: 1rem 1.15rem 1.15rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.photo-card__image--gate {
  background:
    linear-gradient(180deg, rgba(21, 28, 21, 0.03), rgba(21, 28, 21, 0.1)),
    url("images2/azuma02.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: #f7f1e6;
}

.photo-card__image--couple {
  background:
    linear-gradient(180deg, rgba(65, 48, 35, 0.18), rgba(65, 48, 35, 0.06)),
    url("images/002s.jpg");
}

.photo-card__image--garden {
  background:
    linear-gradient(180deg, rgba(26, 41, 28, 0.08), rgba(26, 41, 28, 0.18)),
    url("images/003a.jpg");
}

.photo-card__image--hall {
  background:
    linear-gradient(180deg, rgba(28, 23, 18, 0.1), rgba(28, 23, 18, 0.16)),
    url("images/ikkehp02.jpg");
}

.photo-card__image--stone {
  background:
    linear-gradient(180deg, rgba(46, 43, 38, 0.08), rgba(46, 43, 38, 0.14)),
    url("images/003s.jpg");
}

.photo-card__image--trees {
  background:
    linear-gradient(180deg, rgba(34, 46, 33, 0.08), rgba(34, 46, 33, 0.16)),
    url("images/ikkehp01.jpg");
}

.photo-card__image--path {
  background:
    linear-gradient(180deg, rgba(48, 36, 26, 0.08), rgba(48, 36, 26, 0.16)),
    url("images/ikkehp04.jpg");
}

.card__image {
  min-height: 240px;
  background-size: cover;
  background-position: center;
}

.card__image--shakyo {
  background-image:
    linear-gradient(180deg, rgba(32, 24, 18, 0.1), rgba(32, 24, 18, 0.12)),
    url("images/album-7-s.jpg");
}

.card__image--shojin {
  background-image:
    linear-gradient(180deg, rgba(32, 24, 18, 0.08), rgba(32, 24, 18, 0.14)),
    url("images/album-8-s.jpg");
}

.card--event {
  padding: 0;
  overflow: hidden;
}

.card--event-wide {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-list {
  padding-left: 1.25rem;
  margin: 1.2rem 0 0;
}

.feature-list li {
  margin-bottom: 0.7rem;
}

.photo-stack,
.gallery {
  display: grid;
  gap: 1rem;
}

.photo-stack {
  grid-template-columns: 1fr;
}

.gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.social-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 2rem;
  padding: 1.3rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid rgba(111, 102, 94, 0.1);
}

.social-section {
  padding-top: 3rem;
}

.social-note h2 {
  margin-bottom: 0.7rem;
}

.social-note p {
  margin-bottom: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 190px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(111, 102, 94, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.86);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(59, 45, 31, 0.07);
}

.social-link__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.social-link--facebook .social-link__mark {
  background: #1877f2;
}

.social-link--instagram .social-link__mark {
  background:
    radial-gradient(circle at 30% 105%, #feda75 0 28%, transparent 29%),
    linear-gradient(135deg, #405de6, #833ab4 35%, #c13584 55%, #fd1d1d 78%, #fcb045);
}

.social-link strong,
.social-link small {
  display: block;
  line-height: 1.35;
}

.social-link small {
  color: var(--muted);
  font-size: 0.82rem;
}

.info-list {
  display: grid;
  gap: 1rem;
  margin: 1.8rem 0 0;
}

.info-list div {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(111, 102, 94, 0.18);
}

.info-list dt {
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.info-list dd {
  margin: 0;
}

.access__card {
  padding: 2rem;
}

.access__card--inline {
  width: fit-content;
  margin-top: 1.8rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.access__placeholder {
  min-height: 360px;
}

.line-qr {
  width: min(100%, 220px);
  height: auto;
  margin: 1.2rem 0;
  border-radius: 18px;
  border: 1px solid rgba(111, 102, 94, 0.14);
  background: #fff;
  box-shadow: 0 12px 28px rgba(59, 45, 31, 0.08);
}

.site-footer {
  padding: 2rem 0 3rem;
  background: #2d2a26;
  color: #f8f1e6;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #f8f1e6;
}

@media (max-width: 960px) {
  .hero__grid,
  .detail-page__hero,
  .detail-grid,
  .section--split .split,
  .welcome,
  .access,
  .family,
  .cards--three,
  .cards--two,
  .gallery {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .footer-inner,
  .social-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 0.85rem;
  }

  .card--event-wide {
    grid-template-columns: 1fr;
  }

  .guide-links--compact {
    grid-template-columns: 1fr;
  }

  .photo-card--tall .photo-card__image {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.75;
  }

  .header-inner {
    min-height: 72px;
  }

  .site-nav {
    max-width: 100%;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.55rem 0.7rem;
  }

  .site-nav a {
    flex: 0 0 auto;
    font-size: 0.84rem;
  }

  .nav-button {
    padding: 0.48rem 0.65rem;
  }

  .hero {
    padding-top: 2.8rem;
  }

  .detail-hero {
    padding: 4rem 0 4.5rem;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.35rem);
    word-break: normal;
  }

  .hero-title__line {
    display: block;
  }

  .hero__lead {
    font-size: 1rem;
    word-break: break-all;
  }

  .hero__lead span {
    display: block;
  }

  .section {
    padding: 3.6rem 0;
  }

  .button {
    width: 100%;
  }

  .hero__actions {
    flex-direction: column;
  }

  .detail-actions {
    flex-direction: column;
  }

  .hero__highlights {
    gap: 0.55rem;
  }

  .hero__highlights li {
    width: 100%;
    text-align: center;
  }

  .guide-tile {
    min-height: 92px;
  }

  .guide-tile--compact {
    min-height: 150px;
    padding: 1.15rem;
  }

  .guide-tile__title {
    font-size: 1.45rem;
  }

  .photo-card__image {
    min-height: 220px;
  }

  .event-gallery {
    grid-template-columns: 1fr;
  }

  .access__placeholder {
    display: none;
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-note__links,
  .social-link {
    width: 100%;
  }
}
