@font-face {
  font-family: "ShikakuFuto";
  src: url("../fonts/ShikakuFuto.ttf?v=multipage-01") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

:root {
  --navy: #191970;
  --yellow: #ffd700;
  --cream: #fffbea;
  --cream-deep: #fff4b8;
  --white: #fffef8;
  --line: rgba(25, 25, 112, 0.22);
  --line-soft: rgba(25, 25, 112, 0.10);
  --shadow: rgba(25, 25, 112, 0.14);
  --glow: rgba(255, 215, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--navy);
  font-family: "Noto Serif JP", serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 215, 0, 0.46), transparent 20%),
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.8), transparent 18%),
    linear-gradient(180deg, #fff5ad 0%, #fffbea 42%, #fff7d2 100%);
  overflow-x: hidden;
  letter-spacing: 0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.background::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 82%, transparent 100%);
}

.orb {
  position: absolute;
  width: 440px;
  height: 440px;
  left: 50%;
  top: 84px;
  transform: translateX(-50%);
  border: 1px solid rgba(25, 25, 112, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(255, 255, 255, 0.22),
    0 0 0 48px rgba(255, 215, 0, 0.10);
  animation: orbPulse 8s ease-in-out infinite;
}

.light-band {
  position: absolute;
  top: 120px;
  left: -20vw;
  width: 140vw;
  height: 160px;
  transform: rotate(-8deg);
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.10) 22%,
      rgba(255, 255, 255, 0.58) 48%,
      rgba(255, 215, 0, 0.24) 52%,
      rgba(255, 255, 255, 0.10) 78%,
      transparent 100%
    );
  filter: blur(0.4px);
  animation: bandMove 12s ease-in-out infinite;
  opacity: 0.78;
}

.small-star {
  position: absolute;
  color: var(--yellow);
  font-family: "DotGothic16", sans-serif;
  text-shadow:
    1px 1px 0 var(--navy),
    0 0 12px rgba(255, 255, 255, 0.88);
  opacity: 0.55;
  animation: twinkle 3.8s ease-in-out infinite;
}

.st1 { top: 118px; left: 12%; font-size: 20px; }
.st2 { top: 220px; right: 15%; font-size: 16px; animation-delay: 1.2s; }
.st3 { bottom: 210px; left: 18%; font-size: 18px; animation-delay: 2s; }
.st4 { bottom: 150px; right: 10%; font-size: 22px; animation-delay: 2.8s; }

.page {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.site-shell {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--navy);
  background: rgba(255, 254, 248, 0.94);
  box-shadow: 10px 10px 0 var(--shadow);
  backdrop-filter: blur(4px);
}

.site-shell::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(25, 25, 112, 0.12);
  pointer-events: none;
  z-index: 3;
}

.topbar {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border-bottom: 3px solid var(--navy);
  background:
    linear-gradient(90deg, var(--yellow) 0%, #ffe766 45%, var(--cream) 100%);
  font-family: "DotGothic16", sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.topbar-dots {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.topbar-dots span {
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--navy);
  background: var(--white);
}

.hero,
.page-hero {
  position: relative;
  z-index: 2;
  padding: 78px 24px 66px;
  text-align: center;
  overflow: hidden;
}

.page-hero {
  padding: 56px 24px 44px;
  border-bottom: 1px solid rgba(25,25,112,0.14);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(720px, 88vw);
  height: 220px;
  transform: translate(-50%, -46%) rotate(-7deg);
  border-top: 2px solid rgba(25, 25, 112, 0.15);
  border-bottom: 2px solid rgba(25, 25, 112, 0.15);
  background: rgba(255, 215, 0, 0.09);
  z-index: -1;
}

.hero-label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 2px solid var(--navy);
  background: rgba(255, 254, 248, 0.88);
  font-family: "DotGothic16", sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  box-shadow: 4px 4px 0 rgba(25, 25, 112, 0.10);
}

.hero-kicker {
  margin: 0 0 8px;
  font-family: "DotGothic16", sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  opacity: 0.82;
}

.site-title {
  margin: 0;
  font-family: "ShikakuFuto", "DotGothic16", sans-serif;
  font-size: clamp(54px, 9vw, 112px);
  font-weight: normal;
  line-height: 1.02;
  letter-spacing: 0.035em;
  color: var(--navy);
  text-shadow:
    4px 4px 0 var(--yellow),
    8px 8px 0 rgba(25, 25, 112, 0.09);
  animation: titleGlow 5.5s ease-in-out infinite;
}

.page-title {
  margin: 0;
  font-family: "ShikakuFuto", "DotGothic16", sans-serif;
  font-size: clamp(42px, 7vw, 84px);
  font-weight: normal;
  line-height: 1.05;
  letter-spacing: 0.045em;
  text-shadow:
    3px 3px 0 var(--yellow),
    6px 6px 0 rgba(25, 25, 112, 0.08);
}

.hero-copy,
.page-copy {
  width: min(720px, 92%);
  margin: 24px auto 0;
  padding: 18px 22px;
  border: 1px solid rgba(25, 25, 112, 0.24);
  background: rgba(255, 254, 248, 0.76);
  font-size: 15px;
  line-height: 2.15;
  box-shadow: 6px 6px 0 rgba(25, 25, 112, 0.07);
}

.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: min(560px, 90%);
  margin: 24px auto 0;
  font-family: "DotGothic16", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.hero-meta::before,
.hero-meta::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--navy), transparent);
  opacity: 0.45;
}

.nav {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  padding: 15px;
  border-top: 3px solid var(--navy);
  border-bottom: 3px solid var(--navy);
  background: var(--navy);
}

.nav a {
  min-width: 120px;
  padding: 9px 13px;
  border: 2px solid var(--yellow);
  background: rgba(255, 254, 248, 0.96);
  color: var(--navy);
  font-family: "DotGothic16", sans-serif;
  font-size: 14px;
  text-align: center;
  letter-spacing: 0.1em;
  transition: transform 0.16s ease, background 0.16s ease;
}

.nav a:hover,
.nav a.active {
  transform: translateY(-2px);
  background: var(--yellow);
}

.marquee {
  position: relative;
  z-index: 4;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 3px solid var(--navy);
  background: linear-gradient(90deg, var(--yellow) 0%, var(--cream) 100%);
  color: var(--navy);
  font-family: "DotGothic16", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.marquee span {
  display: inline-block;
  padding: 8px 0;
  animation: scrollText 28s linear infinite;
}

main {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  padding: 18px;
}

main.single {
  display: block;
}

.content-area {
  display: grid;
  gap: 18px;
}

.box {
  position: relative;
  margin-bottom: 18px;
  border: 2px solid var(--navy);
  background: rgba(255, 254, 248, 0.92);
  box-shadow: 5px 5px 0 rgba(25, 25, 112, 0.09);
  overflow: hidden;
}

.box-title {
  padding: 9px 12px;
  border-bottom: 2px solid var(--navy);
  background: linear-gradient(90deg, var(--yellow) 0%, var(--cream-deep) 100%);
  font-family: "DotGothic16", sans-serif;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.14em;
}

.box-body {
  padding: 16px;
  font-size: 15px;
  line-height: 2;
}

.photo-frame {
  padding: 10px;
  border: 2px solid var(--navy);
  background:
    linear-gradient(180deg, rgba(255, 215, 0, 0.20) 0%, rgba(255, 254, 248, 0.8) 100%);
  margin-bottom: 14px;
}

.photo-slot {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 2px solid var(--navy);
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,0.9), transparent 28%),
    repeating-linear-gradient(
      45deg,
      rgba(25,25,112,0.045) 0 12px,
      rgba(255,255,255,0.54) 12px 24px
    ),
    var(--white);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.photo-slot img[src]:not([src=""]) {
  display: block;
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  font-family: "DotGothic16", sans-serif;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.12em;
}

.photo-slot img[src]:not([src=""]) + .photo-placeholder {
  display: none;
}

.photo-caption {
  margin: 9px 0 0;
  text-align: center;
  font-family: "DotGothic16", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.8;
}

.profile-table th,
.profile-table td {
  border: 1px dashed var(--navy);
  padding: 8px;
  vertical-align: top;
}

.profile-table th {
  width: 78px;
  background: rgba(255, 215, 0, 0.22);
  font-family: "DotGothic16", sans-serif;
  text-align: left;
  letter-spacing: 0.08em;
}

.counter {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 10px;
  border: 2px solid var(--yellow);
  background: var(--navy);
  color: var(--yellow);
  font-family: "DotGothic16", sans-serif;
  font-size: 14px;
  letter-spacing: 0.18em;
}

.banner {
  margin-top: 12px;
  padding: 8px;
  border: 2px solid var(--navy);
  background: linear-gradient(90deg, var(--navy) 0 34%, var(--yellow) 34% 100%);
  color: var(--white);
  font-family: "DotGothic16", sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.section-heading {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 12px;
  border: 2px solid var(--navy);
  background: rgba(255, 215, 0, 0.18);
  box-shadow: 3px 3px 0 rgba(25,25,112,0.08);
  font-family: "Kaisei Opti", serif;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.lead,
.page-text {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(25, 25, 112, 0.28);
  background: rgba(255, 254, 248, 0.76);
  font-size: 15px;
  line-height: 2.2;
}

.cards,
.essay-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

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

.essay-card,
.link-card {
  position: relative;
  display: block;
  padding: 17px 18px;
  border: 1px solid rgba(25, 25, 112, 0.36);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,250,225,0.92) 100%);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  overflow: hidden;
}

.essay-card::after,
.link-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      transparent 0%,
      transparent 42%,
      rgba(255,255,255,0.64) 50%,
      transparent 58%,
      transparent 100%
    );
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

.essay-card:hover,
.link-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(25, 25, 112, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,245,200,0.96) 100%);
}

.essay-card:hover::after,
.link-card:hover::after {
  animation: cardShine 0.9s ease;
  opacity: 1;
}

.essay-date,
.card-label {
  display: block;
  margin-bottom: 6px;
  font-family: "DotGothic16", sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.82;
}

.essay-title,
.card-title {
  display: block;
  font-family: "Kaisei Opti", serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.essay-desc,
.card-desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.9;
}

.memo {
  margin: 0;
  padding-left: 20px;
  line-height: 2.1;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.contact-links a {
  padding: 8px 13px;
  border: 2px solid var(--navy);
  background: rgba(255, 254, 248, 0.88);
  font-family: "DotGothic16", sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: transform 0.16s ease, background 0.16s ease;
}

.contact-links a:hover {
  transform: translateY(-2px);
  background: var(--yellow);
}

.back-link {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 13px;
  border: 2px solid var(--navy);
  background: rgba(255, 254, 248, 0.88);
  font-family: "DotGothic16", sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
}

footer {
  position: relative;
  z-index: 4;
  padding: 21px 16px 24px;
  border-top: 3px solid var(--navy);
  background: linear-gradient(90deg, var(--yellow) 0%, var(--cream) 100%);
  text-align: center;
  font-family: "DotGothic16", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
}

@keyframes orbPulse {
  0%, 100% {
    opacity: 0.62;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 0.9;
    transform: translateX(-50%) scale(1.025);
  }
}

@keyframes bandMove {
  0%, 100% {
    transform: translateX(-4%) rotate(-8deg);
    opacity: 0.42;
  }

  50% {
    transform: translateX(4%) rotate(-8deg);
    opacity: 0.82;
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.22;
    transform: scale(0.86) rotate(0deg);
  }

  50% {
    opacity: 0.85;
    transform: scale(1.08) rotate(8deg);
  }
}

@keyframes titleGlow {
  0%, 100% {
    text-shadow:
      4px 4px 0 var(--yellow),
      8px 8px 0 rgba(25, 25, 112, 0.09);
  }

  50% {
    text-shadow:
      4px 4px 0 var(--yellow),
      8px 8px 0 rgba(25, 25, 112, 0.09),
      0 0 18px rgba(255, 215, 0, 0.48),
      0 0 28px rgba(255, 255, 255, 0.76);
  }
}

@keyframes scrollText {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(-100%);
  }
}

@keyframes cardShine {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 820px) {
  .page {
    width: calc(100% - 14px);
    padding-top: 10px;
  }

  .topbar {
    font-size: 11px;
  }

  .hero,
  .page-hero {
    padding: 58px 14px 46px;
  }

  .orb {
    width: 300px;
    height: 300px;
    top: 100px;
  }

  .site-title {
    font-size: clamp(42px, 14vw, 78px);
    letter-spacing: 0.02em;
  }

  .page-title {
    font-size: clamp(38px, 12vw, 68px);
  }

  .hero-copy,
  .page-copy {
    font-size: 14px;
    padding: 15px;
  }

  .nav a {
    min-width: calc(50% - 9px);
  }

  main {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .cards.two {
    grid-template-columns: 1fr;
  }
}
