/* =========================================================
   まんぷくうさハム神社 CSS分割版 2026-06-29
   方針：スマホファースト / 高齢者にも読みやすい / 和紙・金・鳥獣戯画風 / アプリ化前提
========================================================= */

:root {
  --ink: #3a2a15;
  --ink-strong: #241207;
  --ink-soft: #5f4932;
  --paper: #fffdf6;
  --paper-strong: #fffef8;
  --paper-glass: rgba(255, 253, 246, 0.88);
  --gold: #b19238;
  --gold-light: #eddba4;
  --gold-deep: #7e5e22;
  --line: #e6dec5;
  --line-gold: #ead9a1;
  --green: #4f7c44;
  --red: #9a3b2f;
  --shadow-s: 0 2px 10px rgba(58, 42, 21, 0.08);
  --shadow-m: 0 8px 22px rgba(58, 42, 21, 0.12);
  --shadow-l: 0 16px 42px rgba(58, 42, 21, 0.16);
  --inner-press: inset 0 8px 18px rgba(58, 42, 21, 0.18);
  --bg-washi: url("../img/bg/bg_choujuu_highgrade.png");
  --header-wood: url("../img/pagebtn/navi_kinoita2.png");
  --nav-h: 42px;
  --nav-icon-w: 98%;
  --row-overlap: 5px;
  --nav-pad-x: 6px;
  --content-max: 1040px;
  --radius: 18px;
  --radius-lg: 24px;
  --touch: 48px;
  --anchor-offset: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: #fffef8 var(--bg-washi) top center repeat;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--ink);
  background: #fffef8 var(--bg-washi) top center repeat;
  font-family: "Yuji Syuku", "Hiragino Mincho ProN", "Yu Mincho", "Noto Sans JP",
    serif;
  font-size: 18px;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

@media (min-width: 1025px) {
  body {
    font-size: 17px;
    line-height: 1.88;
  }
}

@media (max-width: 360px) {
  body {
    font-size: 16.5px;
  }
}

@media (min-width: 992px) {
  body {
    padding-top: 64px;
  }
}

@media (max-width: 991.98px) {
  body {
    padding-bottom: calc(
      var(--nav-h) * 2 - var(--row-overlap) + env(safe-area-inset-bottom) + 8px
    ) !important;
  }
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

input,
select,
textarea,
button {
  font: inherit;
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: #765c3f;
  text-underline-offset: 0.18em;
}
a:hover,
a:focus {
  color: #6c531b;
}

main {
  width: 100%;
  min-height: 65vh;
}

.container,
.page-container,
.mh-container {
  width: min(var(--content-max), calc(100vw - 24px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: -9999px;
  top: 8px;
  z-index: 100000;
  padding: 0.7rem 1rem;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-strong);
  box-shadow: var(--shadow-m);
  font-weight: 900;
}
.skip-link:focus {
  left: 8px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.wood-line {
  height: 36px;
  margin: 8px auto;
  background: var(--header-wood) center/110px 36px repeat-x;
  border-radius: 8px;
  opacity: 0.95;
}

.site-title--kumo,
h1.site-title--kumo,
.mh-section-title,
.page-title,
.board-title {
  width: fit-content;
  max-width: min(94vw, 920px);
  margin: 0 auto 16px;
  padding: 0 8px 18px;
  position: relative;
  color: var(--ink-strong);
  font-family: "Yuji Syuku", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(26px, 6.5vw, 38px);
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.site-title--kumo::after,
h1.site-title--kumo::after,
.mh-section-title::after,
.page-title::after,
.board-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(92%, 760px);
  height: 12px;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(90deg, #b39a5e 0%, #f4e7b8 52%, #b39a5e 100%)
      center 65%/100% 5px no-repeat,
    linear-gradient(#5a4632, #5a4632) center bottom/100% 1px no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 1px 6px rgba(58, 42, 21, 0.12);
}

.mh-card,
.page-card,
.shrine-card {
  background: radial-gradient(
      circle at 50% 0%,
      rgba(255, 238, 190, 0.35),
      transparent 44%
    ),
    rgba(255, 253, 246, 0.92);
  border: 1px solid rgba(177, 146, 56, 0.36);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-m);
}

.mh-primary-cta,
.primary-cta,
.shrine-btn,
.btn-shrine {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 0.72rem 1.15rem;
  border: 1px solid rgba(177, 146, 56, 0.55);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff2c7, #ffe49c);
  color: var(--ink-strong);
  box-shadow: 0 8px 20px rgba(58, 42, 21, 0.12);
  text-decoration: none;
  font-weight: 900;
  line-height: 1.35;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.mh-primary-cta:hover,
.primary-cta:hover,
.shrine-btn:hover,
.btn-shrine:hover {
  color: var(--ink-strong);
}
.mh-primary-cta:active,
.primary-cta:active,
.shrine-btn:active,
.btn-shrine:active {
  transform: translateY(5px) scale(0.985);
  box-shadow: var(--inner-press);
}

footer {
  background: rgba(255, 250, 240, 0.92) !important;
  color: var(--ink);
  border-top: 1px solid #d7c9b5;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.75;
}

[id] {
  scroll-margin-top: var(--anchor-offset);
}

.marker_blue {
  background: linear-gradient(transparent 60%, #cceeff 60%);
}
.marker_yellow {
  background: linear-gradient(transparent 60%, #fff7aa 60%);
}
.marker_Pinku {
  background: linear-gradient(transparent 60%, #ffd1dc 60%);
}
.marker_green {
  background: linear-gradient(transparent 60%, #d4fcdc 60%);
}

@keyframes prayerLight {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0);
  }
  35% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.6);
  }
  70% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(2.35);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
@keyframes leafPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}
@keyframes raySpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes glitter {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}
@keyframes auraPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: more) {
  .mh-card,
  .page-card,
  .shrine-card {
    background: #fff !important;
  }
}

@media print {
  html,
  body {
    background: #fff !important;
  }
  .bottom-nav,
  nav,
  header,
  footer {
    display: none !important;
  }
}
