/* --------------------------------------------------------------------------
   Fonts
   HappyRuika = 日本語など / CookieRun = 英数字・ハングル（unicode-range）
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "HappyRuika-04";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src:
    url("https://lonely-wanderers.net/fonts/HappyRuika-04.woff") format("woff");
}

@font-face {
  font-family: "HappyRuika-06";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src:
    url("https://lonely-wanderers.net/fonts/HappyRuika-06.woff") format("woff");
}

@font-face {
  font-family: "HappyRuika-04";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src:
    url("https://lonely-wanderers.net/fonts/CookieRun-Regular.ttf") format("truetype");
  unicode-range: U+0030-0039, U+0041-007A, U+AC00-D7A3, U+0027, U+2018, U+2019, U+201C, U+201D, U+0022, U+003F, U+0021;
}

@font-face {
  font-family: "HappyRuika-06";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src:
    url("https://lonely-wanderers.net/fonts/CookieRun-Bold.ttf") format("truetype");
  unicode-range: U+0030-0039, U+0041-007A, U+AC00-D7A3, U+0027, U+2018, U+2019, U+201C, U+201D, U+0022, U+003F, U+0021;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --header: #4e1d0e;
  --bg: #fffcf7;
  --accent: #efa04a;
  --text: #2a160f;
  --text-soft: #5c3d2e;
  --line: rgba(78, 29, 14, 0.14);
  --font-body: "HappyRuika-04", sans-serif;
  --font-display: "HappyRuika-06", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(239, 160, 74, 0.18), transparent 55%),
    linear-gradient(180deg, #fff8ee 0%, var(--bg) 28%, var(--bg) 100%);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.04em;
}

img {
  max-width: 100%;
  display: block;
}

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

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero-block {
  --hero-arc: 4.75rem;
  position: relative;
}

.hero {
  position: relative;
  height: 65svh;
  min-height: 420px;
  max-height: 720px;
  overflow: visible;
  background: transparent;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border-radius: 0 0 50% 50% / 0 0 0 0;
  animation: hero-arc-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 68%,
    rgba(0, 0, 0, 0.22) 86%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.hero__panel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  opacity: 0;
  transform: translateY(42%);
  filter: blur(14px);
  animation: panel-rise 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__panel:nth-child(1) {
  animation-delay: 0.12s;
}

.hero__panel:nth-child(2) {
  animation-delay: 0.34s;
}

.hero__panel:nth-child(3) {
  animation-delay: 0.56s;
}

.hero__bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero__panel:nth-child(1) .hero__bg {
  object-position: center 20%;
}

.hero__panel:nth-child(2) .hero__bg {
  object-position: center 30%;
}

.hero__panel:nth-child(3) .hero__bg {
  object-position: center 20%;
}

.hero__inner {
  position: absolute;
  z-index: 2;
  left: 50%;
  /* 中央の弧ラインの上にロゴ下端を重ねる */
  bottom: calc(var(--hero-arc) * -0.95);
  width: auto;
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
}

.hero__brand {
  margin: 0;
  opacity: 0;
  animation: fade-in 1s ease forwards 0.35s;
}

.hero__logo {
  display: block;
  width: min(62vw, 480px);
  height: auto;
  filter:
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 42px rgba(255, 255, 255, 0.8))
    drop-shadow(0 0 72px rgba(255, 255, 255, 0.55))
    drop-shadow(0 0 110px rgba(255, 255, 255, 0.3));
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.message.section {
  padding-bottom: 1.75rem;
}

#archive.section {
  padding-top: 2rem;
}

.section__label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-align: center;
}

.section__title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-align: center;
}

.section__title::before,
.section__title::after {
  content: "";
  flex: 0 0 clamp(2.5rem, 6vw, 4rem);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent) 20%,
    var(--accent) 80%,
    transparent
  );
}

.section__title::before {
  background: linear-gradient(90deg, transparent, var(--accent));
}

.section__title::after {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section__text {
  margin: 0 auto;
  max-width: 40em;
  color: var(--text-soft);
  font-size: 1.05rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Message
   -------------------------------------------------------------------------- */
.message {
  position: relative;
  margin-top: 3rem;
}

/* --------------------------------------------------------------------------
   Archive — 3 columns
   -------------------------------------------------------------------------- */
.archive-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  margin: 3rem 0 0;
  padding: 0;
}

.archive-col {
  min-width: 0;
}

.archive-col__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(240px, 26vw, 340px);
  margin-bottom: 2.15rem;
  overflow: visible;
}

.archive-col__back,
.archive-col__front {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  transform-origin: center center;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s ease,
    opacity 0.55s ease;
}

.archive-col__front {
  z-index: 1;
  height: 100%;
  transform: translate(-50%, -50%) rotate(0deg);
  filter: drop-shadow(0 10px 20px rgba(47, 18, 9, 0.16));
}

.archive-col__back {
  z-index: 0;
  height: 94%;
  transform: translate(-58%, -48%) rotate(-9deg);
  filter: drop-shadow(0 8px 18px rgba(47, 18, 9, 0.18));
  opacity: 0.92;
}

@media (hover: hover) and (pointer: fine) {
  .archive-col__visual:hover .archive-col__front {
    z-index: 0;
    height: 94%;
    transform: translate(-58%, -48%) rotate(-9deg);
    filter: drop-shadow(0 8px 18px rgba(47, 18, 9, 0.18));
    opacity: 0.92;
  }

  .archive-col__visual:hover .archive-col__back {
    z-index: 2;
    height: 100%;
    transform: translate(-50%, -50%) rotate(0deg);
    filter: drop-shadow(0 10px 20px rgba(47, 18, 9, 0.16));
    opacity: 1;
  }
}

.archive-col__body {
  text-align: center;
}

.archive-col__edition {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.archive-col__body h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.archive-col__date {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.archive-col__place {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.archive-col__desc {
  margin: 0.75rem 0 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Thanks band
   -------------------------------------------------------------------------- */
.thanks-band {
  margin: 1rem 0 0;
  padding: 4.5rem 1.5rem;
  background:
    linear-gradient(120deg, rgba(78, 29, 14, 0.96), rgba(78, 29, 14, 0.88)),
    radial-gradient(circle at 15% 20%, rgba(239, 160, 74, 0.25), transparent 40%);
  color: #fff8f0;
  text-align: center;
}

.thanks-band__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: 0.12em;
}

.thanks-band__text {
  margin: 0 auto;
  max-width: 34em;
  color: rgba(255, 248, 240, 0.88);
  font-size: 1.05rem;
}

.thanks-band__accent {
  display: block;
  width: 3rem;
  height: 2px;
  margin: 1.5rem auto 0;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--header);
  color: rgba(255, 248, 240, 0.72);
  padding: 2rem 1.5rem 2.4rem;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer__brand {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  color: #fff8f0;
  letter-spacing: 0.14em;
}

.site-footer__note {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-rise {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes hero-arc-in {
  to {
    border-radius: 0 0 50% 50% / 0 0 var(--hero-arc) var(--hero-arc);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__media,
  .hero__panel,
  .hero__brand,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .archive-col__back,
  .archive-col__front {
    transition: none !important;
  }

  .hero__media {
    border-radius: 0 0 50% 50% / 0 0 var(--hero-arc) var(--hero-arc);
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .hero-block {
    --hero-arc: 2.75rem;
  }

  .hero {
    height: 35svh;
    min-height: 200px;
    max-height: none;
  }

  .hero__inner {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    display: flex;
    justify-content: center;
    margin: 1.4rem auto 0.25rem;
    padding: 0 1.25rem;
  }

  .hero__logo {
    width: min(82vw, 360px);
  }

  .message.section {
    padding-top: 0rem;
    padding-bottom: 1.25rem;
  }

  .message .section__text {
    font-size: 0.92rem;
    line-height: 1.85;
  }

  .archive-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .archive-col__visual {
    height: clamp(220px, 58vw, 300px);
  }

  .section {
    padding: 4rem 0;
  }

  #archive.section {
    padding-top: 1.5rem;
  }
}
