:root {
  --ink: #173b52;
  --navy: #082d46;
  --blue: #2b739b;
  --ice: #dff4ff;
  --gold: #c4a35a;
  --gold-dark: #987329;
  --line: rgba(196, 163, 90, 0.48);
  --shadow: 0 24px 70px rgba(5, 39, 61, 0.2);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  line-height: 1.9;
  background: #0a314b;
}
a {
  color: inherit;
}
.wrap {
  width: min(1060px, calc(100% - 40px));
  margin: auto;
}
.skip {
  position: fixed;
  left: -999px;
  top: 10px;
  z-index: 140;
}
.skip:focus {
  left: 10px;
  background: #fff;
  padding: 10px;
}
.page-bg {
  position: fixed;
  inset: 72px 0 0;
  z-index: -2;
}
.page-bg:before,
.page-bg:after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: opacity 0.7s;
}
.page-bg:before {
  background-image:
    linear-gradient(rgba(238, 248, 255, 0.24), rgba(246, 251, 255, 0.48)),
    url("shrine.webp");
}
.page-bg:after {
  background-image:
    linear-gradient(rgba(5, 30, 48, 0.35), rgba(5, 30, 48, 0.62)),
    url("miko-tamagushi.webp");
  opacity: 0;
}
.scene-dark .page-bg:after {
  opacity: 1;
}
header {
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(196, 163, 90, 0.28);
  backdrop-filter: blur(15px);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}
.crest {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}
.crest img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand strong {
  font-weight: 500;
  letter-spacing: 0.08em;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.86rem;
}
.desktop-nav a {
  text-decoration: none;
}
.desktop-nav a:hover {
  color: var(--blue);
}
.menu,
.navlinks {
  display: none;
}
main {
  padding: clamp(42px, 7vw, 86px) 0 110px;
}
.panel {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 48px;
  padding: clamp(46px, 7vw, 82px) 0;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(15px) saturate(112%);
}
.eyebrow {
  font:
    400 1.18rem/1.3 "Snell Roundhand",
    "Segoe Script",
    "Brush Script MT",
    cursive;
  color: var(--gold-dark);
  letter-spacing: 0.08em;
}
.page-head {
  text-align: center;
  max-width: 760px;
  margin: auto;
}
.page-head h1,
.section-copy h2 {
  margin: 0.2em 0 0.55em;
  font-weight: 400;
  letter-spacing: 0.12em;
}
.page-head h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}
.lede {
  font-size: 1.04rem;
}
.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, #d5b96f, #ad8538);
  color: #fff;
  text-decoration: none;
  font:
    600 0.9rem "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.btn.secondary {
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(64, 45, 8, 0.2);
}
.service-choices,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
}
.choice,
.article-card {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(15, 61, 87, 0.1);
}
.choice {
  padding: 25px;
}
.choice h2 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 500;
}
.choice .price {
  color: var(--gold-dark);
  margin: 0.45em 0;
}
.choice p {
  font:
    400 0.84rem/1.75 "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
}
.form-shell {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 34px;
  align-items: start;
}
.form-note,
.apply-form {
  padding: clamp(24px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}
.form-note h2,
.apply-form h2 {
  margin: 0 0 20px;
  font-size: 1.35rem;
  font-weight: 500;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 13px 0 13px 46px;
  border-bottom: 1px solid rgba(196, 163, 90, 0.3);
}
.steps li:before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 0;
  color: var(--gold-dark);
}
.notice {
  margin-top: 24px;
  padding: 16px;
  border-left: 2px solid var(--gold);
  background: rgba(223, 244, 255, 0.54);
  font:
    400 0.8rem/1.75 "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
}
.field {
  margin-bottom: 19px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}
.required {
  margin-left: 7px;
  color: #9d6207;
  font:
    700 0.7rem "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(95, 139, 162, 0.45);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font:
    400 16px/1.6 "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
}
.field textarea {
  min-height: 170px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(43, 115, 155, 0.28);
  border-color: var(--blue);
}
.field.is-disabled {
  opacity: 0.48;
  transition: opacity 0.2s ease;
}
.field.is-disabled input,
.field.is-disabled select {
  background: #e8edf0;
  cursor: not-allowed;
}
.checks {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font:
    400 0.8rem/1.65 "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
}
.consent input {
  margin-top: 6px;
}
.consent a {
  color: var(--blue);
}
.form-help {
  font:
    400 0.76rem/1.7 "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  color: #5d7788;
}
.profile-row {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
  align-items: center;
}
.profile-row.reverse {
  grid-template-columns: 1.18fr 0.82fr;
}
.profile-row.reverse .portrait {
  order: 2;
}
.portrait {
  min-height: 470px;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(225, 246, 255, 0.72),
    rgba(255, 255, 255, 0.28)
  );
  border: 1px solid var(--line);
  display: grid;
  place-items: end center;
}
.portrait img {
  width: 100%;
  height: 470px;
  display: block;
  object-fit: cover;
}
.portrait.deity img {
  object-fit: cover;
  object-position: center 18%;
}
.section-copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}
.role {
  color: var(--gold-dark);
  letter-spacing: 0.1em;
}
.section-copy p {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 0.9rem;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.principles span {
  padding: 12px;
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
}
.article-card {
  display: block;
  text-decoration: none;
  transition: 0.25s;
}
.article-card:hover {
  transform: translateY(-5px);
}
.article-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.article-body {
  padding: 20px;
}
.article-body small {
  color: var(--gold-dark);
  font-family: serif;
}
.article-body h3 {
  margin: 0.35em 0;
  font-weight: 500;
  line-height: 1.65;
}
.article-body span {
  font:
    400 0.76rem "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  color: var(--blue);
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.footer-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #082d46;
}
.footer-visual:before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("footer-scene.webp") center/cover no-repeat;
}
.footer-visual:after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(4, 25, 45, 0.97),
    rgba(4, 25, 45, 0.88) 38%,
    rgba(4, 25, 45, 0.3) 72%
  );
}
.footer-cta {
  padding: 72px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.footer-cta h2 {
  font-weight: 400;
  letter-spacing: 0.1em;
}
.footer {
  color: #dbeaf3;
  padding: 46px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
}
.footer-crest {
  width: 42px;
  height: 42px;
}
.footlinks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  font:
    400 0.8rem "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
}
.footlinks a {
  color: #dbeaf3;
  text-decoration: none;
}
.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 34px;
  padding-top: 20px;
  text-align: center;
  font:
    400 0.72rem "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  color: #aac3d1;
}
body.menu-open {
  overflow: hidden;
}
.navlinks {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(340px, 90vw);
  height: 70dvh;
  min-height: 455px;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: clamp(14px, 2.5vh, 22px);
  padding: clamp(34px, 5vh, 54px) clamp(24px, 7vw, 36px);
  background-color: #e8dcc0;
  background-image:
    radial-gradient(
      circle at 18% 12%,
      rgba(255, 255, 255, 0.6),
      transparent 27%
    ),
    radial-gradient(
      circle at 82% 76%,
      rgba(118, 82, 35, 0.12),
      transparent 31%
    ),
    repeating-linear-gradient(
      3deg,
      rgba(93, 67, 33, 0.025) 0,
      rgba(93, 67, 33, 0.025) 1px,
      transparent 1px,
      transparent 5px
    );
  box-shadow:
    -15px 0 38px rgba(45, 35, 20, 0.25),
    inset 0 0 70px rgba(114, 82, 38, 0.13);
  clip-path: inset(100% 0 0 0 round 48% 0 0 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    clip-path 0.65s cubic-bezier(0.2, 0.8, 0.18, 1),
    opacity 0.18s;
}
.navlinks.open {
  display: flex;
  clip-path: inset(0 round 14px 0 0 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.menu-primary {
  height: min(29vh, 245px);
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  justify-content: center;
}
.menu-primary a {
  height: 100%;
  display: flex;
  align-items: center;
  writing-mode: vertical-rl;
  padding: 8px 10px;
  border-left: 1px solid rgba(77, 60, 38, 0.3);
  color: #333;
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
}
.menu-primary a:first-child {
  border-right: 1px solid rgba(77, 60, 38, 0.3);
}
.menu-apply {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid rgba(151, 100, 7, 0.65);
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #dfbd55, #bd8218 58%, #9d6207);
  letter-spacing: 0.16em;
}
.menu-media {
  display: grid;
}
.menu-media a {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 10px;
  border-bottom: 1px solid rgba(77, 60, 38, 0.25);
  color: #333;
  text-decoration: none;
  font-size: 0.78rem;
}
.menu {
  position: fixed;
  right: 8px;
  bottom: 29px;
  z-index: 100;
  width: 94px;
  height: 94px;
  padding: 0;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 8px 12px rgba(5, 34, 53, 0.24));
  cursor: pointer;
}
.menu img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.menu-hint {
  position: absolute;
  right: 12px;
  bottom: calc(100% + 8px);
  padding: 14px 9px;
  background: linear-gradient(180deg, #d5ad40, #b77b13);
  color: #fff;
  writing-mode: vertical-rl;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  opacity: 0;
  pointer-events: none;
}
.menu.show-hint .menu-hint {
  opacity: 1;
}
.menu.is-nudging {
  animation: menu-nudge 0.68s;
}
@keyframes menu-nudge {
  25% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
  75% {
    transform: rotate(-2deg);
  }
}
.footer-guide {
  position: fixed;
  left: 5vw;
  bottom: 0;
  z-index: 120;
  width: min(40vw, 560px);
  height: min(62vh, 690px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.footer-guide-figure {
  position: absolute;
  left: 0;
  bottom: -2%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
  filter: blur(16px);
  opacity: 0;
  transform: translate(-9%, 8%) scale(0.92);
}
.footer-guide-bubble {
  position: absolute;
  left: 92%;
  top: 12%;
  width: min(390px, 38vw);
  padding: 20px 30px;
  border: 1px solid rgba(190, 148, 53, 0.68);
  border-radius: 18px;
  background: #fbf8ee;
  color: #333;
  text-align: center;
  font-size: clamp(0.83rem, 1.25vw, 1.04rem);
  opacity: 0;
  transform: scale(0.35);
}
.footer-guide.is-visible {
  opacity: 1;
  visibility: visible;
}
.footer-guide.is-visible .footer-guide-figure {
  animation: guide-mist 1.45s forwards;
}
.footer-guide.is-visible .footer-guide-bubble {
  animation: guide-pop 0.58s cubic-bezier(0.18, 1.5, 0.42, 1) 0.95s forwards;
}
.footer-guide.is-leaving {
  opacity: 0;
  transition: 0.38s;
}
@keyframes guide-mist {
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}
@keyframes guide-pop {
  72% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (min-width: 821px) {
  .menu,
  .navlinks {
    display: none !important;
  }
}
@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }
  .service-choices,
  .article-grid {
    grid-template-columns: 1fr;
  }
  .form-shell,
  .profile-row,
  .profile-row.reverse {
    grid-template-columns: 1fr;
  }
  .profile-row.reverse .portrait {
    order: 0;
  }
  .panel {
    width: 100%;
    border-left: 0;
    border-right: 0;
  }
  .portrait,
  .portrait img {
    min-height: 380px;
    height: 380px;
  }
  .principles {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footlinks {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-guide {
    left: 3vw;
    width: 47vw;
    height: 46vh;
  }
  .footer-guide-bubble {
    left: 98%;
    top: 15%;
    width: 46vw;
    padding: 16px 20px;
    font-size: clamp(0.68rem, 3vw, 0.86rem);
  }
}
@media (max-width: 520px) {
  .wrap {
    width: min(100% - 28px, 1060px);
  }
  main {
    padding-top: 28px;
  }
  .panel {
    padding: 46px 0;
  }
  .page-head {
    text-align: left;
  }
  .form-note,
  .apply-form {
    padding: 23px 18px;
  }
  .btn {
    width: 100%;
  }
  .brand strong {
    font-size: 0.76rem;
    letter-spacing: 0.03em;
  }
  .portrait,
  .portrait img {
    min-height: 330px;
    height: 330px;
  }
  .footer-guide {
    left: 2vw;
    width: 49vw;
    height: 42vh;
  }
  .footer-guide-bubble {
    left: 96%;
    top: 11%;
    width: 47vw;
    padding: 15px 18px;
  }
}
.footer-visual {
  background: rgba(8, 45, 70, 0.42) !important;
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  border-top: 1px solid rgba(220, 244, 255, 0.3);
}
.footer-visual:before {
  display: none !important;
}
.footer-visual:after {
  display: block !important;
  background: linear-gradient(
    135deg,
    rgba(235, 248, 255, 0.1),
    rgba(8, 45, 70, 0.2)
  ) !important;
}
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 42px;
}
.location-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 32px 26px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(15, 61, 87, 0.1);
  text-align: center;
}
.location-card h2 {
  margin: 0.2em 0;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.location-card p {
  font:
    400 0.86rem/1.8 "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
}
.location-card .btn {
  margin-top: auto;
}
.reservation-note {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 18px 22px;
  border-left: 2px solid var(--gold);
  background: rgba(223, 244, 255, 0.56);
  font:
    400 0.82rem/1.8 "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
}
@media (max-width: 820px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
  .location-card {
    min-height: 260px;
  }
}
.deity-name {
  margin: 0.1em 0 0.5em;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: 0.12em;
}
.guidance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 50px;
  align-items: center;
}
.guidance-grid h2 {
  margin: 0.2em 0 0.55em;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.12em;
}
.guidance-principles {
  display: grid;
  gap: 13px;
}
.guidance-principles > div {
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}
.guidance-principles b {
  display: block;
  color: var(--gold-dark);
  font-weight: 500;
}
.guidance-principles span {
  font:
    400 0.84rem/1.7 "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
}
@media (max-width: 820px) {
  .guidance-grid {
    grid-template-columns: 1fr;
  }
}
