/*
Theme Name: 雨引山楽法寺(樹木葬)
Theme URI: https://www.amabiki.or.jp/
Author: marco-g
Description: 雨引山楽法寺の樹木葬・永代供養サイト用テーマ
Version: 1.0.0
Text Domain: amabiki-rakuhoji
*/

:root {
  --header-height: 40px;
  --green-deep: #2d5a27;
  --green-mid: #4a7c3f;
  --green-light: #7aad6a;
  --green-pale: #c8e6c0;
  --gold: #c9a84c;
  --gold-light: #e8d5a3;
  --cream: #f9f5ee;
  --stone: #8a7b6a;
  --text-dark: #2a2420;
  --text-mid: #4a3f35;
  --white: #ffffff;
  --red-accent: #c0392b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

.hero-title,
.hero-sub,
.section-title,
.highlight-card h4,
.plan-name,
.worry-callout-title,
.access-info h4,
.cta-title {
  font-family: 'Zen Antique Soft', serif;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(16, 33, 13, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-18px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0s linear 0.45s;
}

.site-header.is-ready {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0s;
}

.site-header.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-22px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0s linear 0.28s;
}

.site-header-inner {
  width: 100%;
  margin: 0;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
}

.site-logo img {
  display: block;
  width: min(170px, 32vw);
  height: auto;
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 1.5px;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-nav a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-family: 'Zen Antique Soft', serif;
  font-size: 17px;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 4px;
  text-shadow:
    0 0 6px rgba(255,255,255,0.34),
    0 0 14px rgba(210, 244, 220, 0.18);
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

@media (max-width: 700px) {
  .site-header-inner {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .site-logo img {
    width: min(150px, 42vw);
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .site-header-inner {
    padding: 12px 20px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(16, 33, 13, 0.94);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.24);
    opacity: 0;
    visibility: hidden;
    transform: scaleY(0.2) scaleX(0.92);
    transform-origin: top right;
    transition:
      opacity 0.22s ease,
      transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
      visibility 0s linear 0.28s;
  }

  .site-nav a {
    font-size: 16px;
    padding-bottom: 2px;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1) scaleX(1);
    transition:
      opacity 0.22s ease,
      transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
      visibility 0s;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  background: url('img/top-sky.webp') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--header-height) 0 0;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(216,241,255,0) 0%, rgba(216,241,255,0.38) 38%, rgba(255,255,255,0.82) 74%, rgba(255,255,255,1) 100%);
  z-index: 12;
  pointer-events: none;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 16%, rgba(255,255,255,0.68), rgba(255,255,255,0.12) 30%, transparent 48%),
    linear-gradient(180deg, rgba(235, 249, 255, 0.22) 0%, rgba(194, 229, 250, 0.08) 48%, rgba(112, 157, 201, 0.06) 100%);
  animation: heroBackdropIn 1.2s ease both;
}

.hero-content {
  position: relative;
  z-index: 30;
  width: 80%;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 0 32px;
}

.hero-image-wrap {
  position: absolute;
  inset: var(--header-height) 0 150px 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.hero-image-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  border-radius: 0;
  box-shadow: none;
  mask-image: linear-gradient(180deg, #000 0%, #000 80%, rgba(0,0,0,0.28) 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 80%, rgba(0,0,0,0.28) 92%, transparent 100%);
}

.hero-leaf-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
}

.hero-sparkle-stream {
  position: absolute;
  inset: var(--header-height) 0 auto 0;
  z-index: 25;
  height: 32%;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-sparkle-stream.is-active {
  opacity: 1;
}

.hero-sparkle {
  position: absolute;
  left: -8%;
  top: 0;
  width: var(--spark-size, 28px);
  height: var(--spark-size, 28px);
  opacity: 1;
  background: center / contain no-repeat url('img/star.svg');
  filter:
    drop-shadow(0 0 10px rgba(255,255,255,1))
    drop-shadow(0 0 20px rgba(255, 250, 214, 0.95))
    drop-shadow(0 0 34px rgba(255,255,255,0.75));
  animation:
    sparkleDrift var(--spark-duration, 6.6s) linear forwards,
    sparklePulse var(--spark-pulse-duration, 1.8s) steps(1, end) var(--spark-pulse-delay, 0s) infinite;
}

.hero-leaf {
  position: absolute;
  top: 0;
  width: min(40.8vw, 60vh, 672px);
  height: auto;
  max-width: 52.8%;
  max-height: calc(74vh - var(--header-height) * 0.18);
  opacity: 0.96;
  filter: drop-shadow(0 12px 28px rgba(61, 92, 44, 0.22));
}

.hero-leaf-left {
  left: -6vw;
  transform-origin: left top;
  animation: leafCurtainLeft 1.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-leaf-right {
  right: -6vw;
  transform-origin: right top;
  animation: leafCurtainRight 1.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-badge-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 18px;
  max-width: 100%;
}

.badge {
  background: rgba(255, 247, 239, 0.62);
  border: none;
  color: #6c442e;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: clamp(13px, 1.25vw, 20px);
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 10px rgba(255,255,255,0.22),
    0 0 22px rgba(255, 241, 214, 0.28),
    0 10px 24px rgba(76, 49, 31, 0.08);
  line-height: 1.2;
  white-space: nowrap;
}

.hero-badge-item {
  opacity: 0;
  transform: translateX(-26px);
  animation: slideInLeft 0.7s ease forwards;
}

.hero-badge-item:nth-child(1) { animation-delay: 2.2s; }
.hero-badge-item:nth-child(2) { animation-delay: 2.36s; }
.hero-badge-item:nth-child(3) { animation-delay: 2.52s; }
.hero-badge-item:nth-child(4) { animation-delay: 2.68s; }
.hero-badge-item:nth-child(5) { animation-delay: 2.84s; }

.hero-copy {
  position: absolute;
  top: calc(var(--header-height));
  right: 18px;
  max-width: min(620px, 56vw);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 2;
}

.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  color: #1f6f39;
  font-size: clamp(52px, min(8vw, 14vh), 112px);
  line-height: 1.02;
  letter-spacing: 0.08em;
  text-align: right;
  text-shadow:
    0 0 6px rgba(255,255,255,0.72),
    0 0 14px rgba(255,255,255,0.58),
    0 0 30px rgba(207, 255, 201, 0.9),
    0 0 54px rgba(147, 239, 139, 0.62),
    0 8px 24px rgba(255,255,255,0.24);
  margin-bottom: 0;
}

.hero-sub {
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  color: #2f7a43;
  font-size: clamp(18px, min(2.4vw, 4.6vh), 30px);
  letter-spacing: 0.12em;
  text-align: right;
  margin-bottom: 12px;
  text-shadow:
    -1px -1px 0 rgba(255,255,255,0.88),
    1px -1px 0 rgba(255,255,255,0.88),
    -1px 1px 0 rgba(255,255,255,0.88),
    1px 1px 0 rgba(255,255,255,0.88),
    0 0 5px rgba(255,255,255,0.68),
    0 0 12px rgba(255,255,255,0.5),
    0 0 24px rgba(212, 255, 207, 0.82),
    0 0 42px rgba(147, 239, 139, 0.46),
    0 4px 16px rgba(255,255,255,0.18);
}

.hero-price-circle {
  --price-circle-size: clamp(164px, min(18vw, 28vh), 236px);
  position: absolute;
  right: clamp(10px, 1.2vw, 18px);
  bottom: clamp(22px, 4.8vh, 72px);
  width: var(--price-circle-size);
  height: var(--price-circle-size);
  box-sizing: border-box;
  flex-shrink: 0;
  min-width: var(--price-circle-size);
  min-height: var(--price-circle-size);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #d45146 0%, #b21c17 58%, #7b0c09 100%);
  border: 3px solid rgba(255,255,255,0.56);
  box-shadow:
    0 18px 45px rgba(74, 8, 8, 0.48),
    inset 0 6px 20px rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 11px 8px 8px;
  z-index: 2;
}

.price-label-badge {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  color: #1f1a16;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Zen Antique Soft', serif;
  font-size: 23px;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

.price-top-note {
  color: #fff5ec;
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: clamp(11px, 1vw, 14px);
  line-height: 1;
  margin-bottom: 0;
  letter-spacing: 0.04em;
}

.price-main {
  font-family: 'Zen Antique Soft', serif;
  font-weight: 700;
  color: #f0cf67;
  font-size: clamp(52px, 5.4vw, 76px);
  line-height: 0.8;
  margin: 5px 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1px;
  text-shadow:
    -1px -1px 0 rgba(255,255,255,0.82),
    1px -1px 0 rgba(255,255,255,0.82),
    -1px 1px 0 rgba(255,255,255,0.82),
    1px 1px 0 rgba(255,255,255,0.82),
    0 0 10px rgba(255, 240, 190, 0.58),
    0 3px 18px rgba(0,0,0,0.24);
}

.price-unit {
  display: inline-block;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1;
  margin-left: 0;
  vertical-align: baseline;
  transform: none;
}

.price-note {
  color: rgba(255,255,255,0.88);
  font-size: clamp(9px, 0.78vw, 11px);
  margin-top: 5px;
  letter-spacing: 0.04em;
  line-height: 0.98;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--gold);
  color: var(--text-dark);
  font-family: 'Zen Antique Soft', serif;
  font-weight: 700;
  font-size: 22px;
  padding: 20px 52px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.12em;
  transition: all 0.3s ease;
  text-shadow:
    -1px -1px 0 rgba(255,255,255,0.82),
    1px -1px 0 rgba(255,255,255,0.82),
    -1px 1px 0 rgba(255,255,255,0.82),
    1px 1px 0 rgba(255,255,255,0.82),
    0 0 8px rgba(255,255,255,0.25),
    0 1px 0 rgba(255,255,255,0.2);
  box-shadow:
    0 0 18px rgba(255, 233, 176, 0.28),
    0 8px 32px rgba(0,0,0,0.25);
  margin-bottom: 18px;
  min-width: min(360px, 42vw);
  justify-content: center;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: absolute;
  left: 0;
  bottom: clamp(18px, 3.6vh, 36px);
}

.hero-cta-logo {
  display: block;
  width: min(360px, 42vw);
  height: auto;
  margin-bottom: 18px;
  filter:
    drop-shadow(0 0 8px rgba(255,255,255,0.38))
    drop-shadow(0 0 18px rgba(255,244,210,0.34))
    drop-shadow(0 6px 20px rgba(255,255,255,0.18));
}

.hero-cta:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

@media (min-width: 701px) {
  .hero-badge-row {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .hero-badge-row .badge {
    font-size: clamp(12px, 0.95vw, 18px);
    padding: 8px 12px;
  }

  .hero-cta-group {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    justify-content: flex-start;
  }

  .hero-cta-logo {
    width: min(320px, 34vw);
    margin-bottom: 0;
  }

  .hero-cta {
    min-width: auto;
    white-space: nowrap;
    margin-bottom: 0;
  }
}

@media (min-width: 701px) and (max-height: 860px) {
  .hero-copy {
    top: calc(var(--header-height) + 0.2ch);
    max-width: min(540px, 52vw);
  }

  .hero-price-circle {
    --price-circle-size: clamp(154px, min(16vw, 24vh), 204px);
    right: 12px;
    bottom: 16px;
    padding: 10px 8px 8px;
  }

  .price-label-badge {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }

  .price-top-note {
    font-size: clamp(10px, 0.82vw, 12px);
  }

  .price-main {
    font-size: clamp(40px, min(3.8vw, 7vh), 58px);
    margin: 5px 0;
  }

  .price-unit {
    font-size: clamp(15px, 1.35vw, 20px);
  }

  .price-note {
    font-size: clamp(8px, 0.66vw, 10px);
    margin-top: 5px;
  }
}

.hero-sequence {
  opacity: 0;
  transform: translateY(32px);
  animation: sequenceFadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-image-wrap.hero-sequence {
  animation-delay: 1.45s;
}

.hero-sub.hero-sequence {
  animation-delay: 3.05s;
}

.hero-title.hero-sequence {
  animation-delay: 3.35s;
}

.hero-price-circle.hero-sequence {
  animation-delay: 3.75s;
}

.hero-cta-logo.hero-sequence {
  animation-delay: 4.05s;
}

.hero-cta.hero-sequence {
  animation-delay: 4.35s;
}

@keyframes heroBackdropIn {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes sequenceFadeUp {
  from {
    opacity: 0;
    transform: translateY(38px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes leafCurtainLeft {
  0% {
    opacity: 0;
    transform: translateX(-102%) rotate(-30deg) scale(1.02);
  }
  52% {
    opacity: 0.98;
    transform: translateX(-16%) rotate(-8deg) scale(1.01);
  }
  100% {
    opacity: 0.94;
    transform: translateX(0) rotate(0deg) scale(1);
  }
}

@keyframes leafCurtainRight {
  0% {
    opacity: 0;
    transform: translateX(102%) rotate(30deg) scale(1.02);
  }
  52% {
    opacity: 0.98;
    transform: translateX(16%) rotate(8deg) scale(1.01);
  }
  100% {
    opacity: 0.94;
    transform: translateX(0) rotate(0deg) scale(1);
  }
}

@keyframes sparkleDrift {
  0% {
    transform: translateX(0) scale(0.4) rotate(0deg);
  }
  12% {
    transform: translateX(8vw) scale(1) rotate(55deg);
  }
  78% {
    transform: translateX(76vw) scale(0.94) rotate(260deg);
  }
  100% {
    transform: translateX(90vw) scale(0.45) rotate(320deg);
  }
}

@keyframes sparklePulse {
  0% {
    opacity: 1;
    filter:
      drop-shadow(0 0 8px rgba(255,255,255,0.9))
      drop-shadow(0 0 14px rgba(255, 250, 214, 0.65))
      drop-shadow(0 0 22px rgba(255,255,255,0.4));
  }
  20% {
    opacity: 0.25;
    filter:
      drop-shadow(0 0 4px rgba(255,255,255,0.4))
      drop-shadow(0 0 8px rgba(255, 250, 214, 0.22))
      drop-shadow(0 0 12px rgba(255,255,255,0.18));
  }
  45% {
    filter:
      drop-shadow(0 0 14px rgba(255,255,255,1))
      drop-shadow(0 0 28px rgba(255, 250, 214, 1))
      drop-shadow(0 0 42px rgba(255,255,255,0.95));
  }
  65% {
    opacity: 0.38;
    filter:
      drop-shadow(0 0 5px rgba(255,255,255,0.48))
      drop-shadow(0 0 10px rgba(255, 250, 214, 0.28))
      drop-shadow(0 0 14px rgba(255,255,255,0.22));
  }
  100% {
    opacity: 1;
    filter:
      drop-shadow(0 0 8px rgba(255,255,255,0.9))
      drop-shadow(0 0 14px rgba(255, 250, 214, 0.65))
      drop-shadow(0 0 22px rgba(255,255,255,0.4));
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 96px;
  }

  .hero {
    min-height: 100svh;
    padding: var(--header-height) 0 0;
  }

  .hero::after {
    height: 132px;
  }

  .hero-content {
    min-height: calc(100svh - var(--header-height));
    align-items: center;
    justify-content: flex-start;
    width: calc(100% - 32px);
    padding: 14px 0 24px;
  }

  .hero-image-wrap {
    position: absolute;
    inset: 0;
    width: auto;
    padding: 0;
    margin-bottom: 0;
  }

  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
  }

  .hero-sparkle-stream {
    height: 24%;
  }

  .hero-leaf {
    width: min(40.8vw, 28.8vh, 228px);
    max-width: 43.2%;
    max-height: 33.6vh;
    opacity: 0.92;
  }

  .hero-badge-row {
    position: relative;
    top: auto;
    left: auto;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 10px 8px;
    width: min(100%, 420px);
    max-width: 100%;
    margin-bottom: 20px;
  }

  .hero-badge-item:nth-child(1),
  .hero-badge-item:nth-child(2) {
    grid-column: span 3;
  }

  .hero-badge-item:nth-child(3),
  .hero-badge-item:nth-child(4),
  .hero-badge-item:nth-child(5) {
    grid-column: span 2;
  }

  .badge {
    width: 100%;
    text-align: center;
    font-size: 15px;
    padding: 10px 14px;
  }

  .hero-copy {
    position: relative;
    top: auto;
    right: auto;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .hero-sub,
  .hero-title {
    text-align: center;
  }

  .hero-price-circle {
    position: relative;
    right: auto;
    bottom: auto;
    --price-circle-size: clamp(178px, min(46vw, 26vh), 216px);
    width: var(--price-circle-size);
    height: var(--price-circle-size);
    min-width: var(--price-circle-size);
    min-height: var(--price-circle-size);
    padding: 24px 16px 18px;
    margin: 0 auto 18px;
  }

  .price-label-badge {
    top: -10px;
    left: -8px;
    width: 66px;
    height: 66px;
    font-size: 24px;
  }

  .price-top-note {
    font-size: 11px;
    line-height: 1.1;
    margin-bottom: 3px;
  }

  .price-main {
    font-size: 60px;
    line-height: 0.84;
    margin: 6px 0 8px;
  }

  .price-unit {
    font-size: 24px;
    margin-left: 1px;
    transform: none;
  }

  .price-note {
    font-size: 10px;
    line-height: 1.1;
    margin-top: 5px;
  }

  .hero-cta-logo {
    width: min(320px, 84vw);
    margin-bottom: 14px;
  }

  .hero-cta-group {
    position: relative;
    left: auto;
    bottom: auto;
  }

  .hero-cta {
    margin: 0 auto;
    width: 100%;
    justify-content: center;
    padding: 18px 24px;
  }

  .temple-section {
    margin-top: 0;
    padding: 100px 20px 84px;
  }
}

/* ===== TEMPLE SECTION ===== */
.temple-section {
  background: var(--white);
  margin-top: 0;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.temple-bg-photo {
  position: absolute;
  top: 40px;
  left: 0;
  bottom: 40px;
  width: min(54vw, 760px);
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 58%, rgba(255,255,255,0.92) 92%, rgba(255,255,255,1) 100%),
    url('img/photo01.webp') left center / cover no-repeat;
  filter: saturate(0.98);
  mask-image: radial-gradient(circle at 28% 44%, #000 34%, rgba(0,0,0,0.92) 50%, rgba(0,0,0,0.45) 68%, transparent 92%);
  -webkit-mask-image: radial-gradient(circle at 28% 44%, #000 34%, rgba(0,0,0,0.92) 50%, rgba(0,0,0,0.45) 68%, transparent 92%);
  pointer-events: none;
}

.temple-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0;
  background: none;
}

.section-container {
  width: min(90%, 1360px);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  color: var(--green-mid);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-align: center;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 42px);
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 56px;
  line-height: 1.4;
}

.temple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 700px) {
  .temple-grid { grid-template-columns: 1fr; }

  .temple-bg-photo {
    top: 24px;
    bottom: auto;
    width: 100%;
    height: 280px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 38%, rgba(0,0,0,0.28) 74%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 38%, rgba(0,0,0,0.28) 74%, transparent 100%);
  }

  .temple-text {
    margin-top: 180px;
  }

  .temple-section .section-label {
    text-shadow:
      -1px -1px 0 rgba(255,255,255,0.92),
      1px -1px 0 rgba(255,255,255,0.92),
      -1px 1px 0 rgba(255,255,255,0.92),
      1px 1px 0 rgba(255,255,255,0.92);
  }

  .temple-section .section-title {
    text-shadow:
      -1px -1px 0 rgba(255,255,255,0.94),
      1px -1px 0 rgba(255,255,255,0.94),
      -1px 1px 0 rgba(255,255,255,0.94),
      1px 1px 0 rgba(255,255,255,0.94),
      0 0 10px rgba(255,255,255,0.42);
  }
}

.temple-text {
  position: relative;
  min-height: 0;
  padding: 28px 26px;
  border-radius: 24px;
  background: rgba(255,255,255,0.34);
  backdrop-filter: blur(10px);
  font-size: 21px;
  line-height: 2.1;
  color: #17311b;
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  box-shadow:
    0 0 18px rgba(255,255,255,0.42),
    0 0 42px rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.42);
}

.temple-text p + p { margin-top: 16px; }

.temple-text p {
  text-shadow: 0 2px 10px rgba(255,255,255,0.22);
}

.temple-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.temple-highlights .highlight-card:nth-child(1) { transition-delay: 0.05s; }
.temple-highlights .highlight-card:nth-child(2) { transition-delay: 0.14s; }
.temple-highlights .highlight-card:nth-child(3) { transition-delay: 0.23s; }
.temple-highlights .highlight-card:nth-child(4) { transition-delay: 0.32s; }

.highlight-card {
  background: var(--cream);
  border-left: 3px solid var(--green-mid);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
}

.highlight-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}

.highlight-card h4 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--green-deep);
  margin-bottom: 8px;
  line-height: 1.5;
}

.highlight-card p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-mid);
}

/* ===== FEATURES STRIP ===== */
.features-strip {
  background: var(--green-deep);
  padding: 64px 20px;
}

.features-heading {
  margin-bottom: 36px;
}

.features-heading .section-label {
  color: rgba(255,255,255,0.72);
}

.features-heading .section-title {
  color: #fff;
  margin-bottom: 14px;
}

.features-lead {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255,255,255,0.72);
  text-align: center;
  line-height: 1.9;
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
}

.features-grid {
  width: min(90%, 1360px);
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

@media (max-width: 700px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

.feature-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 32px 20px;
  text-align: center;
  transition: background 0.3s;
  border-radius: 4px;
}

.feature-item:hover { background: rgba(255,255,255,0.12); }

.features-grid .feature-item:nth-child(1) { transition-delay: 0.04s; }
.features-grid .feature-item:nth-child(2) { transition-delay: 0.14s; }
.features-grid .feature-item:nth-child(3) { transition-delay: 0.24s; }
.features-grid .feature-item:nth-child(4) { transition-delay: 0.34s; }

.feature-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.feature-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.76);
  line-height: 1.85;
}

/* ===== PLANS ===== */
.plans-section {
  background: var(--cream);
  padding: 100px 20px;
}

.plan-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  box-shadow: none;
}

.plans-grid {
  width: min(90%, 1260px);
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (max-width: 640px) {
  .plan-title-row {
    flex-wrap: wrap;
  }
}

.plan-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 56px rgba(0,0,0,0.13);
}

.plan-left {
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto;
}

.plan-photo-wrap {
  min-height: 100%;
}

.plan-header {
  padding: 36px 32px 28px;
  position: relative;
}

.plan-card:first-child .plan-header { background: linear-gradient(135deg, var(--green-deep), var(--green-mid)); }
.plan-card:last-child .plan-header { background: linear-gradient(135deg, #5a4a3a, var(--stone)); }

.plan-name {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  color: #fff;
  font-size: 30px;
  margin-bottom: 4px;
}

.plan-sub {
  color: rgba(255,255,255,0.7);
  font-size: 19px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.plan-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-price-num {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 52px;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.plan-price-unit {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  font-family: 'Noto Serif JP', serif;
}

.plan-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.plan-features-list {
  list-style: none;
  margin-bottom: 24px;
}

.plan-features-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 17px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
}

.plan-features-list li::before {
  content: '✓';
  color: var(--green-mid);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: 16px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--text-dark);
  text-decoration: none;
  font-family: 'Zen Antique Soft', serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-shadow:
    -1px -1px 0 rgba(255,255,255,0.75),
    1px -1px 0 rgba(255,255,255,0.75),
    -1px 1px 0 rgba(255,255,255,0.75),
    1px 1px 0 rgba(255,255,255,0.75);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.plan-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.16);
}

@media (max-width: 860px) {
  .plan-card {
    grid-template-columns: 1fr;
  }

  .plan-left {
    grid-template-rows: auto auto;
  }

  .plan-photo-wrap {
    min-height: 300px;
  }

  .plan-photo {
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

/* ===== WORRIES ===== */
.worries-section {
  background: #f0ede8;
  padding: 80px 20px;
}

.worry-callout {
  width: min(90%, 1160px);
  max-width: 980px;
  margin: 0 auto 56px;
  background: var(--white);
  border-radius: 20px;
  padding: 40px 48px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.worry-list {
  list-style: none;
}

.worry-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 15px;
  color: var(--text-mid);
  border-bottom: 1px dashed rgba(0,0,0,0.1);
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
}

.worry-list li.worry-animated {
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.8;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.worry-animated .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
}

.worry-animated.visible .char {
  animation: worryCharIn 0.42s ease forwards;
  animation-delay: calc(var(--char-index) * 0.045s);
}

.worry-list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--green-mid);
  font-size: clamp(17px, 1.7vw, 24px);
  top: 9px;
}

@keyframes worryCharIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.worry-answer {
  width: min(90%, 1160px);
  max-width: 980px;
  margin: 0 auto;
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  font-size: 19px;
  line-height: 2;
  color: var(--text-mid);
  text-align: center;
}

/* ===== MEMORIAL PLATE ===== */
.plate-section {
  background: var(--white);
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.plate-content {
  width: min(90%, 1160px);
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.plate-leaf-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.plate-leaf {
  position: absolute;
  width: min(34vw, 420px);
  opacity: 0.14;
}

.plate-leaf-left {
  left: -6%;
  top: 8%;
  transform: translateX(-24px) rotate(-14deg);
}

.plate-leaf-right {
  right: -6%;
  bottom: 6%;
  transform: translateX(24px) rotate(14deg);
}

.plate-leaf-scene.visible .plate-leaf-left {
  animation: plateLeafLeftIn 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.plate-leaf-scene.visible .plate-leaf-right {
  animation: plateLeafRightIn 1.5s 0.12s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.plate-paper {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, rgba(230, 245, 219, 0.8) 0%, rgba(230, 245, 219, 0) 22%),
    linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(248, 241, 224, 0.96) 100%);
  border-radius: 32px;
  padding: 42px 40px 34px;
  box-shadow:
    0 18px 48px rgba(114, 97, 64, 0.12),
    inset 0 0 0 1px rgba(255,255,255,0.48);
  overflow: hidden;
}

.plate-paper::before,
.plate-paper::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  background: center / contain no-repeat url('img/leaf02.svg');
  opacity: 0.18;
  pointer-events: none;
}

.plate-paper::before {
  top: -40px;
  right: -28px;
}

.plate-paper::after {
  bottom: -46px;
  left: -52px;
  background-image: url('img/leaf01.svg');
  transform: rotate(14deg);
}

.plate-paper .section-title {
  font-size: clamp(42px, 4.2vw, 64px);
  color: var(--green-deep);
  text-shadow:
    0 0 10px rgba(255,255,255,0.86),
    0 4px 14px rgba(0,0,0,0.08);
  margin-bottom: 10px;
  position: relative;
}

.plate-lead {
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.5;
  color: #2b2722;
  margin-bottom: 26px;
  position: relative;
}

.plate-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: end;
  margin-bottom: 28px;
  position: relative;
}

.plate-option:nth-child(1) { transition-delay: 0.04s; }
.plate-option:nth-child(2) { transition-delay: 0.12s; }
.plate-option:nth-child(3) { transition-delay: 0.2s; }

.plate-option-image-wrap {
  width: min(100%, 220px);
  margin: 0 auto 10px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  
  display: grid;
  place-items: center;
}

.plate-option-image {
  display: block;
  width: 84%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(50, 42, 30, 0.14);
}

.plate-option-name {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(18px, 1.7vw, 28px);
  font-weight: 600;
  color: #2a241e;
  line-height: 1.35;
}

.plate-option-price {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(18px, 1.7vw, 30px);
  font-weight: 700;
  color: #2a241e;
  line-height: 1.2;
}

.plate-size-note {
  width: fit-content;
  margin: 0 0 22px;
  padding: 14px 18px;
  background: #5a3f2a;
  color: #fff;
  border-radius: 6px;
  text-align: center;
  position: relative;
}

.plate-size-note strong {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(18px, 1.9vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}

.plate-size-note span {
  display: block;
  font-size: 17px;
  line-height: 1.45;
}

.plate-select-box {
  max-width: 760px;
  margin: 0 auto 26px;
  padding: 24px 26px;
  background: rgba(255,255,255,0.92);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(77, 64, 43, 0.08);
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.55;
  color: #3a3026;
  position: relative;
}

.plate-points {
  list-style: none;
  text-align: left;
  max-width: 840px;
  margin: 0 auto;
  position: relative;
}

.plate-points li {
  position: relative;
  padding-left: 1.2em;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(17px, 1.45vw, 24px);
  line-height: 1.7;
  color: #4e463b;
}

.plate-points li::before {
  content: '●';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-mid);
  font-size: 0.9em;
}

@keyframes plateLeafLeftIn {
  from {
    opacity: 0;
    transform: translate(-36px, 14px) rotate(-22deg) scale(0.94);
  }
  to {
    opacity: 0.14;
    transform: translate(0, 0) rotate(-14deg) scale(1);
  }
}

@keyframes plateLeafRightIn {
  from {
    opacity: 0;
    transform: translate(36px, -14px) rotate(22deg) scale(0.94);
  }
  to {
    opacity: 0.14;
    transform: translate(0, 0) rotate(14deg) scale(1);
  }
}

@media (max-width: 640px) {
  .plate-leaf {
    width: min(50vw, 260px);
    opacity: 0.12;
  }

  .plate-paper {
    padding: 34px 18px 26px;
    border-radius: 22px;
  }

  .plate-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .plate-option-image-wrap {
    width: min(100%, 190px);
  }

  .plate-size-note {
    margin: 0 auto 22px;
  }

  .plate-select-box {
    padding: 18px 16px;
    font-size: 18px;
    border-radius: 18px;
  }

  .plate-points li {
    font-size: 15px;
  }
}

/* ===== ACCESS ===== */
.access-section {
  background: var(--green-deep);
  padding: 80px 20px;
}

.access-section .section-title { color: #fff; }
.access-section .section-label { color: var(--green-light); }

.access-grid {
  width: min(90%, 1260px);
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

@media (max-width: 640px) {
  .access-grid { grid-template-columns: 1fr; }
}

.access-info {
  color: rgba(255,255,255,0.9);
}

.access-info h4 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: 22px;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.access-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 17px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  line-height: 1.85;
}

.access-detail-label {
  color: var(--green-light);
  font-weight: 500;
  white-space: nowrap;
}

.access-map-placeholder {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  min-height: 100%;
  overflow: hidden;
}

.access-map-placeholder iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.96) contrast(1.02);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--cream);
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(122,173,106,0.12) 0%, transparent 70%);
}

.cta-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: clamp(26px, 5vw, 38px);
  color: var(--green-deep);
  margin-bottom: 16px;
  position: relative;
}

.cta-sub {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  color: var(--green-mid);
  font-size: 19px;
  margin-bottom: 48px;
  line-height: 1.9;
  position: relative;
}

.contact-form {
  width: min(90%, 920px);
  margin: 0 auto 36px;
  padding: 34px 32px 30px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(74,124,63,0.14);
  box-shadow: 0 12px 36px rgba(42,36,32,0.08);
  backdrop-filter: blur(10px);
  position: relative;
  text-align: left;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 22px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-field-full {
  grid-column: 1 / -1;
}

.contact-label {
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--green-deep);
  letter-spacing: 0.04em;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(74,124,63,0.24);
  background: rgba(255,255,255,0.88);
  color: var(--text-dark);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: rgba(45,90,39,0.5);
  box-shadow: 0 0 0 4px rgba(122,173,106,0.14);
}

.contact-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 26px auto 0;
  padding: 18px 42px;
  border: none;
  border-radius: 999px;
  background: var(--green-deep);
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(45,90,39,0.22);
  transition: transform 0.25s ease, background 0.25s ease;
}

.contact-form-submit:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
}

.contact-form7-shell .wpcf7 {
  width: 100%;
}

.contact-form7-shell .wpcf7-form {
  display: block;
}

.contact-form7-shell .wpcf7-form p {
  margin: 0 0 18px;
}

.contact-form7-shell .wpcf7-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--green-deep);
  letter-spacing: 0.04em;
}

.contact-form7-shell .wpcf7-form-control-wrap {
  display: block;
}

.contact-form7-shell input[type="text"],
.contact-form7-shell input[type="email"],
.contact-form7-shell input[type="tel"],
.contact-form7-shell select,
.contact-form7-shell textarea {
  width: 100%;
  border: 1px solid rgba(74,124,63,0.24);
  background: rgba(255,255,255,0.88);
  color: var(--text-dark);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form7-shell textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-form7-shell input[type="text"]:focus,
.contact-form7-shell input[type="email"]:focus,
.contact-form7-shell input[type="tel"]:focus,
.contact-form7-shell select:focus,
.contact-form7-shell textarea:focus {
  border-color: rgba(45,90,39,0.5);
  box-shadow: 0 0 0 4px rgba(122,173,106,0.14);
}

.contact-form7-shell input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto 0;
  padding: 18px 42px;
  border: none;
  border-radius: 999px;
  background: var(--green-deep);
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(45,90,39,0.22);
  transition: transform 0.25s ease, background 0.25s ease;
}

.contact-form7-shell input[type="submit"]:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
}

.contact-form7-shell .wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}

.contact-form7-shell .wpcf7-response-output {
  margin: 18px 0 0;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.74);
  padding: 14px 16px;
  font-family: 'Noto Serif JP', serif;
  color: var(--text-mid);
}

.contact-form-fallback {
  font-family: 'Noto Serif JP', serif;
  color: var(--text-mid);
  line-height: 1.8;
  text-align: center;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  position: relative;
}

.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-deep);
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 17px;
  padding: 20px 48px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.cta-btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-3px);
}

.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 2px solid rgba(45,90,39,0.45);
  color: var(--green-deep);
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: 16px;
  padding: 20px 40px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.cta-btn-secondary:hover {
  background: rgba(45,90,39,0.08);
  border-color: rgba(45,90,39,0.7);
}

.phone-display {
  margin-top: 40px;
  font-family: 'Noto Serif JP', serif;
  color: var(--green-mid);
  font-size: 17px;
  position: relative;
}

.phone-number {
  display: block;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.08em;
  margin-top: 6px;
}

@media (max-width: 700px) {
  .contact-form {
    width: min(92%, 920px);
    padding: 26px 18px 24px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===== FOOTER ===== */
footer {
  background: #111a0f;
  padding: 40px 20px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 15px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  line-height: 2;
}

footer a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.error404-page {
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(235,249,255,0.82) 0%, rgba(249,245,238,1) 100%);
  padding: calc(var(--header-height) + 80px) 20px 100px;
  display: grid;
  place-items: center;
}

.error404-card {
  width: min(92%, 760px);
  background: rgba(255,255,255,0.82);
  border-radius: 28px;
  box-shadow: 0 16px 46px rgba(42, 36, 32, 0.1);
  padding: 48px 36px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.error404-title {
  font-family: 'Zen Antique Soft', serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.4;
  color: var(--green-deep);
  margin-bottom: 18px;
}

.error404-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 19px;
  line-height: 2;
  color: var(--text-mid);
}

.error404-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== DIVIDER ===== */
.ornament-divider {
  text-align: center;
  padding: 0;
  color: var(--green-light);
  font-size: 20px;
  letter-spacing: 12px;
  margin: -2px 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
