@charset "utf-8";

:root {
  --ink: #294438;
  --deep: #356a50;
  --green: #7da96f;
  --mint: #eaf6e8;
  --cream: #fffdf5;
  --gold: #e1b755;
  --shadow: 0 18px 45px rgba(53, 91, 67, 0.14);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  background: var(--mint);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(
      circle at 15% 8%,
      rgba(255, 255, 255, 0.9) 0 5%,
      transparent 16%
    ),
    radial-gradient(
      circle at 92% 30%,
      rgba(255, 255, 255, 0.68) 0 4%,
      transparent 15%
    ),
    linear-gradient(180deg, #eef8eb 0%, #f8fbef 55%, #e6f3e1 100%);
}
img {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
}
.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  color: var(--deep);
}
.skip:focus {
  top: 12px;
}
.bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
  animation: float var(--speed) ease-in-out infinite alternate;
}
@keyframes float {
  to {
    transform: translate3d(var(--x), -34px, 0) scale(1.08);
  }
}
.hero {
  min-height: 92vh;
  display: grid;
  place-items: center;
  padding: 70px 22px 110px;
  position: relative;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #f8fbef);
  z-index: -1;
}
.hero-inner {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--deep);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
h1 {
  margin: 24px 0 18px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 700;
  font-size: clamp(2.15rem, 5.4vw, 4.8rem);
  line-height: 1.17;
  letter-spacing: 0.03em;
}
h1 .accent {
  color: var(--deep);
  white-space: nowrap;
}
.lead {
  font-size: clamp(1rem, 1.7vw, 1.24rem);
  line-height: 2;
  max-width: 640px;
}
.date {
  margin-top: 28px;
  font-weight: 700;
  color: #54765f;
  letter-spacing: 0.1em;
}
.hero-collage {
  position: relative;
  min-height: 590px;
}
.hero-collage .main {
  position: absolute;
  width: 78%;
  right: 2%;
  top: 6%;
  border: 13px solid white;
  border-bottom-width: 48px;
  transform: rotate(2deg);
  box-shadow: var(--shadow);
  border-radius: 5px;
}
.hero-collage .small {
  position: absolute;
  width: 43%;
  left: 0;
  bottom: 5%;
  border: 10px solid white;
  border-bottom-width: 38px;
  transform: rotate(-7deg);
  box-shadow: var(--shadow);
  border-radius: 5px;
}
.hero-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-collage .main img {
  aspect-ratio: 1.35;
}
.hero-collage .small img {
  aspect-ratio: 1;
}
.stamp {
  position: absolute;
  right: -12px;
  bottom: 4%;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #fff9d9;
  border: 2px dashed var(--gold);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  color: #806a26;
  transform: rotate(8deg);
  box-shadow: 0 12px 30px rgba(104, 83, 24, 0.13);
}
.panda-peek {
  position: absolute;
  width: 96px;
  height: 70px;
  z-index: 3;
  filter: drop-shadow(0 10px 8px rgba(42, 65, 50, 0.15));
}
.panda-peek .head {
  position: absolute;
  width: 68px;
  height: 62px;
  left: 14px;
  top: 8px;
  border-radius: 48% 48% 45% 45%;
  background: #fff;
}
.panda-peek .ear,
.panda-peek .eye {
  position: absolute;
  background: #202422;
  border-radius: 50%;
}
.panda-peek .ear {
  width: 25px;
  height: 25px;
  top: 0;
}
.panda-peek .ear.l {
  left: 6px;
}
.panda-peek .ear.r {
  right: 6px;
}
.panda-peek .eye {
  width: 16px;
  height: 22px;
  top: 24px;
}
.panda-peek .eye.l {
  left: 21px;
  transform: rotate(22deg);
}
.panda-peek .eye.r {
  right: 21px;
  transform: rotate(-22deg);
}
.panda-peek .nose {
  position: absolute;
  width: 11px;
  height: 8px;
  background: #202422;
  border-radius: 50%;
  left: 43px;
  top: 43px;
}
.hero .panda-peek {
  right: 5%;
  top: 2%;
  transform: rotate(10deg);
  animation: peek 3s ease-in-out infinite;
}
@keyframes peek {
  50% {
    transform: translateY(-12px) rotate(6deg);
  }
}
nav.timeline {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 245, 0.88);
  backdrop-filter: blur(12px);
  border-block: 1px solid rgba(90, 126, 97, 0.15);
  overflow: auto;
  scrollbar-width: none;
}
nav.timeline::-webkit-scrollbar {
  display: none;
}
nav.timeline div {
  width: max-content;
  min-width: 100%;
  display: flex;
  justify-content: center;
}
nav.timeline a {
  padding: 16px 20px;
  color: var(--deep);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}
nav.timeline a:hover,
nav.timeline a:focus {
  background: #e5f2df;
  outline: none;
}
main {
  position: relative;
}
.chapter {
  padding: 118px 24px;
  position: relative;
}
.chapter:nth-child(even) {
  background: rgba(255, 255, 255, 0.38);
}
.wrap {
  width: min(1180px, 100%);
  margin: auto;
}
.chapter-head {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 52px;
}
.day {
  font-family: Georgia, serif;
  font-size: 1rem;
  color: var(--deep);
  font-weight: 700;
  text-align: center;
  padding-top: 6px;
}
.day b {
  display: block;
  font-size: 3.5rem;
  line-height: 1;
  color: #8bad78;
}
h2 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.35;
  margin: 0 0 17px;
  color: #294b3a;
}
.chapter-copy {
  line-height: 2;
  max-width: 800px;
  margin: 0;
}
.weather-note {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  padding: 9px 14px;
  background: #fff;
  border-radius: 99px;
  color: #5c7866;
  font-size: 0.88rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 26px;
  align-items: start;
}
.photo-card {
  grid-column: span 4;
  margin: 0;
  padding: 12px 12px 15px;
  background: #fff;
  border-radius: 7px;
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  transition-delay: var(--delay);
}
.photo-card:nth-child(3n + 2) {
  transform: translateY(22px) rotate(1.2deg);
}
.photo-card:nth-child(3n) {
  transform: rotate(0.7deg);
}
.photo-card.wide {
  grid-column: span 8;
}
.photo-card.tall {
  grid-column: span 4;
}
.photo-card.hero-photo {
  grid-column: 1/-1;
  padding: 15px 15px 18px;
  transform: rotate(0.3deg);
  margin-block: 15px;
}
.photo-card:hover {
  transform: translateY(-6px) rotate(0);
  box-shadow: 0 24px 55px rgba(53, 91, 67, 0.22);
}
.photo-button {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 3px;
}
.photo-button:focus-visible {
  outline: 4px solid #a7cc8e;
  outline-offset: 4px;
}
.photo-card img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.photo-card.wide img {
  height: 410px;
}
.photo-card.tall img {
  height: 470px;
}
.photo-card.hero-photo img {
  height: min(68vw, 690px);
}
.photo-card:hover img {
  transform: scale(1.025);
}
figcaption {
  padding: 13px 6px 2px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4e6859;
}
.sequence {
  margin-top: 36px;
}
.sequence .photo-card {
  position: relative;
}
.sequence .photo-card:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  right: -25px;
  top: 42%;
  z-index: 3;
  color: #82a771;
  font-size: 1.5rem;
  font-weight: 900;
}
.highlight {
  margin: 52px 0;
  padding: 44px clamp(24px, 5vw, 62px);
  border-radius: 32px;
  background: linear-gradient(135deg, #dcefd5, #fffce8);
  position: relative;
  overflow: hidden;
}
.highlight::after {
  content: "\1F43E";
  position: absolute;
  right: 24px;
  bottom: 8px;
  font-size: 5rem;
  opacity: 0.1;
  transform: rotate(-20deg);
}
.highlight h3 {
  font-family: "Yu Mincho", serif;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  margin: 0 0 15px;
}
.highlight p {
  margin: 0;
  line-height: 2;
}
.birthday {
  background: linear-gradient(
    180deg,
    #eff8e9 0%,
    #fff8df 40%,
    #f5edd0 100%
  ) !important;
}
.birthday .chapter-head {
  position: relative;
}
.birthday .chapter-head::after {
  content: "\1F388";
  position: absolute;
  right: 4%;
  top: -40px;
  font-size: 4.5rem;
  animation: balloon 3s ease-in-out infinite alternate;
}
@keyframes balloon {
  to {
    transform: translateY(-20px) rotate(6deg);
  }
}
.closing {
  padding: 135px 24px;
  text-align: center;
  background: #315f49;
  color: white;
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.12),
      transparent 22%
    ),
    radial-gradient(
      circle at 80% 75%,
      rgba(255, 255, 255, 0.1),
      transparent 20%
    );
}
.closing .inner {
  position: relative;
  width: min(850px, 100%);
  margin: auto;
}
.closing h2 {
  color: white;
}
.closing p {
  font-size: 1.1rem;
  line-height: 2;
}
.closing .paw {
  font-size: 2rem;
  letter-spacing: 0.4em;
  margin-bottom: 25px;
}
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
}
.lightbox::backdrop {
  background: rgba(19, 31, 25, 0.9);
  backdrop-filter: blur(4px);
}
.lightbox-inner {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 48px 24px 70px;
  position: relative;
}
.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 80vh;
  object-fit: contain;
  border: 8px solid #fff;
  box-shadow: 0 30px 80px #0008;
}
.lightbox p {
  position: absolute;
  bottom: 20px;
  color: #fff;
  margin: 0;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  right: 24px;
  top: 20px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #294438;
  font-size: 1.5rem;
  cursor: pointer;
}
.reveal {
  opacity: 0;
  translate: 0 24px;
}
.reveal.visible {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 0.75s ease,
    translate 0.75s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* ==================================================
   参加者の声
================================================== */

.panda-voices {
  position: relative;
  overflow: hidden;
  padding: 110px 24px;
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(255, 255, 255, 0.9) 0 90px,
      transparent 91px
    ),
    radial-gradient(
      circle at 92% 88%,
      rgba(255, 255, 255, 0.7) 0 130px,
      transparent 131px
    ),
    #edf5e7;
}

/* ふわふわ浮かぶ丸 */
.panda-voices::before,
.panda-voices::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  pointer-events: none;
  animation: pandaVoicesFloat 7s ease-in-out infinite;
}

.panda-voices::before {
  top: 70px;
  left: 5%;
  width: 72px;
  height: 72px;
}

.panda-voices::after {
  right: 7%;
  bottom: 110px;
  width: 110px;
  height: 110px;
  animation-delay: -3s;
}

.panda-voices__inner {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.panda-voices__heading {
  max-width: 720px;
  margin: 0 auto 58px;
  text-align: center;
}

.panda-voices__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #54745e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.panda-voices__heading h2 {
  margin: 0;
  color: #254d3b;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.panda-voices__lead {
  margin: 20px 0 0;
  color: #52665c;
  font-size: 15px;
  line-height: 2;
}

.panda-voices__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.panda-voices__card {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 42px 38px 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(77, 116, 90, 0.14);
  border-radius: 24px 24px 24px 7px;
  box-shadow: 0 15px 38px rgba(49, 79, 61, 0.08);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.panda-voices__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(49, 79, 61, 0.13);
}

.panda-voices__mark {
  position: absolute;
  top: 12px;
  left: 24px;
  color: #d6e6d3;
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1;
}

.panda-voices__card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #34493f;
  font-size: 15px;
  line-height: 2;
}

.panda-voices__card footer,
.panda-voices__featured footer {
  margin-top: 22px;
  color: #78877f;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.panda-voices__card footer::before,
.panda-voices__featured footer::before {
  content: "\2014\00a0";
}

/* 最後の大きなコメント */
.panda-voices__featured {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 32px;
  box-sizing: border-box;
  margin: 34px 0 0;
  padding: 52px 58px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 252, 238, 0.96)
  );
  border: 1px solid rgba(197, 157, 64, 0.22);
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(61, 79, 66, 0.1);
}

.panda-voices__featured::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 190px;
  height: 190px;
  border: 2px dashed rgba(212, 174, 79, 0.2);
  border-radius: 50%;
}

.panda-voices__featured-icon {
  display: grid;
  place-items: center;
  align-self: start;
  width: 82px;
  height: 82px;
  background: #f1f7ed;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(66, 108, 78, 0.1);
  font-size: 38px;
}

.panda-voices__featured-body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.panda-voices__featured-label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 15px;
  color: #735a20;
  background: #f8e9b9;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.panda-voices__featured p {
  margin: 0 0 15px;
  color: #34493f;
  font-size: 16px;
  line-height: 2.05;
}

.panda-voices__featured p:last-of-type {
  margin-bottom: 0;
  color: #28513e;
  font-weight: 600;
}

.panda-voices__note {
  margin: 24px 0 0;
  color: #718078;
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

@keyframes pandaVoicesFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding-top: 60px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-collage {
    min-height: 440px;
  }
  .hero-collage .main {
    width: 75%;
  }
  .chapter {
    padding: 88px 18px;
  }
  .chapter-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .day {
    text-align: left;
  }
  .day b {
    display: inline;
    font-size: 2.4rem;
    margin-right: 8px;
  }
  .photo-card,
  .photo-card.tall {
    grid-column: span 6;
  }
  .photo-card.wide {
    grid-column: 1/-1;
  }
  .photo-card img,
  .photo-card.tall img {
    height: 360px;
  }
}

@media (max-width: 767px) {
  .panda-voices {
    padding: 78px 18px;
  }

  .panda-voices__heading {
    margin-bottom: 38px;
  }

  .panda-voices__lead br {
    display: none;
  }

  .panda-voices__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .panda-voices__card {
    padding: 38px 26px 27px;
    border-radius: 20px 20px 20px 6px;
  }

  .panda-voices__card p {
    font-size: 14px;
    line-height: 1.9;
  }

  .panda-voices__featured {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 22px;
    padding: 34px 26px;
    border-radius: 23px;
  }

  .panda-voices__featured-icon {
    width: 66px;
    height: 66px;
    font-size: 31px;
  }

  .panda-voices__featured p {
    font-size: 14px;
    line-height: 1.95;
  }
}
/* 動きを減らす設定の端末向け */
@media (prefers-reduced-motion: reduce) {
  .panda-voices::before,
  .panda-voices::after {
    animation: none;
  }

  .panda-voices__card {
    transition: none;
  }
}
@media (max-width: 560px) {
  h1 {
    font-size: 2.25rem;
  }
  .hero {
    padding-inline: 16px;
  }
  .hero-collage {
    min-height: 335px;
  }
  .hero-collage .main {
    width: 86%;
    border-width: 8px;
    border-bottom-width: 34px;
  }
  .hero-collage .small {
    width: 43%;
    border-width: 7px;
    border-bottom-width: 28px;
  }
  .stamp {
    width: 85px;
    height: 85px;
    font-size: 0.73rem;
  }
  nav.timeline div {
    justify-content: flex-start;
  }
  .chapter {
    padding: 72px 14px;
  }
  .gallery {
    gap: 18px;
  }
  .photo-card,
  .photo-card.tall,
  .photo-card.wide {
    grid-column: 1/-1;
    padding: 9px;
  }
  .photo-card:nth-child(n) {
    transform: none;
  }
  .photo-card img,
  .photo-card.tall img,
  .photo-card.wide img {
    height: auto;
    max-height: 540px;
  }
  .sequence .photo-card::after {
    display: none;
  }
  .birthday .chapter-head::after {
    font-size: 3rem;
    right: 0;
  }
  .closing {
    padding: 90px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    translate: none;
  }
}
