:root {
  color-scheme: light;
  --ink: #4b321f;
  --ink-soft: #745d49;
  --cream: #fffaf0;
  --paper: #fffdf8;
  --curry: #e0a33d;
  --curry-deep: #b86b27;
  --leaf: #789b4a;
  --leaf-light: #dce9bd;
  --sky: #bde6f7;
  --pink: #ef9aa2;
  --line: rgba(105, 72, 39, 0.18);
  --shadow: 0 20px 50px rgba(92, 61, 34, 0.16);
  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

body {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-round);
}

main {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button {
  color: inherit;
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  padding: 20px clamp(16px, 4vw, 54px);
}

.nav-shell {
  display: flex;
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mini-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: clamp(0.88rem, 1.5vw, 1.05rem);
  font-weight: 900;
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
}

.mini-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 253, 245, 0.78);
  box-shadow: 0 12px 30px rgba(80, 55, 30, 0.12);
  backdrop-filter: blur(16px);
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  background: #fff6d9;
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 253, 245, 0.88);
  box-shadow: 0 10px 28px rgba(80, 55, 30, 0.16);
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--ink);
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] span {
  opacity: 0;
}

.menu-button[aria-expanded="true"]::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"]::after {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  background: #c9ecfa;
}

.hero picture,
.hero picture img {
  width: 100%;
}

.hero picture img {
  height: auto;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: clamp(18px, 3vw, 42px);
  background:
    radial-gradient(circle at 22px -4px, transparent 25px, var(--cream) 26px) 0 0 / 44px 44px repeat-x;
  content: "";
}

.floating-hero-panda {
  position: absolute;
  right: clamp(10px, 3vw, 48px);
  bottom: -5%;
  z-index: 2;
  width: clamp(90px, 14vw, 220px);
  filter: drop-shadow(0 14px 18px rgba(77, 49, 28, 0.16));
  animation: soft-float 4.8s ease-in-out infinite;
  pointer-events: none;
}

.section {
  position: relative;
  padding: clamp(68px, 9vw, 128px) clamp(18px, 5vw, 72px);
}

.decor {
  position: absolute;
  z-index: 0;
  height: auto;
  opacity: 0.84;
  pointer-events: none;
  filter: drop-shadow(0 10px 12px rgba(74, 49, 29, 0.1));
}

.decor-leaf {
  top: 8%;
  right: -34px;
  width: clamp(90px, 13vw, 180px);
  rotate: 18deg;
}

.decor-paws {
  right: 2%;
  bottom: 5%;
  z-index: 2;
  width: clamp(90px, 12vw, 160px);
  rotate: -12deg;
  opacity: 0.48;
}

.decor-sunflower {
  top: 4%;
  left: -42px;
  width: clamp(110px, 16vw, 220px);
  rotate: -12deg;
}

.decor-spoon {
  top: 7%;
  right: 5%;
  width: clamp(80px, 10vw, 130px);
  rotate: 24deg;
  opacity: 0.62;
}

.decor-star {
  top: 8%;
  right: 8%;
  width: clamp(70px, 9vw, 120px);
  rotate: 12deg;
}

.decor-galaxy {
  right: -50px;
  bottom: -35px;
  width: clamp(150px, 24vw, 320px);
  opacity: 0.25;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--leaf);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.wrap-unit {
  display: inline-block;
}

.section-lead {
  max-width: 660px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: clamp(0.96rem, 1.5vw, 1.08rem);
  line-height: 1.9;
  text-wrap: pretty;
}

.section-lead > span {
  display: block;
}

.today {
  padding-top: clamp(88px, 10vw, 140px);
}

.today-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(290px, 0.88fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
}

.today-photo-wrap {
  position: relative;
}

.today-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: clamp(7px, 1vw, 12px) solid rgba(255, 255, 255, 0.9);
  border-radius: 44% 56% 49% 51% / 52% 43% 57% 48%;
  box-shadow: var(--shadow);
}

.today-photo-wrap::before {
  position: absolute;
  top: 3%;
  left: 16%;
  z-index: 2;
  width: clamp(78px, 8vw, 104px);
  height: clamp(30px, 3vw, 40px);
  background: rgba(243, 196, 79, 0.75);
  content: "";
  rotate: -12deg;
  filter: saturate(0.8);
}

.today-copy {
  position: relative;
}

.today-date {
  display: inline-block;
  padding: 8px 16px;
  background: #f5d77e;
  font-size: 0.9rem;
  font-weight: 900;
  rotate: -2deg;
  clip-path: polygon(3% 8%, 98% 0, 96% 92%, 1% 100%);
}

.today-copy h1 {
  margin: 22px 0 14px;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.23;
}

.today-place {
  margin: 0 0 30px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.soft-button {
  display: inline-flex;
  min-height: 52px;
  padding: 12px 25px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 5px 6px 0 #e7b34c;
  font-weight: 900;
  text-decoration: none;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.soft-button::after {
  content: "→";
}

.soft-button:hover,
.soft-button:focus-visible {
  box-shadow: 2px 3px 0 #e7b34c;
  transform: translate(3px, 3px);
}

.img-button {
  display: inline-flex;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease;
}

.img-button img {
  display: block;
  height: 52px;
  width: auto;
}

.img-button:hover,
.img-button:focus-visible {
  transform: translateY(-3px);
  filter: drop-shadow(0 8px 10px rgba(90, 62, 38, 0.22));
}

.today-panda {
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: clamp(110px, 17vw, 210px);
  filter: drop-shadow(0 14px 15px rgba(75, 50, 31, 0.15));
  pointer-events: none;
}

.mood-section {
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 253, 245, 0.14), rgba(255, 253, 245, 0.14)),
    url("back/mood-checkered-bg.png") center / cover no-repeat;
}

.mood-section::before,
.mood-section::after {
  position: absolute;
  right: -2%;
  left: -2%;
  height: 38px;
  background: var(--cream);
  content: "";
  clip-path: polygon(0 38%, 8% 68%, 19% 25%, 31% 70%, 44% 30%, 57% 66%, 69% 25%, 82% 70%, 93% 28%, 100% 58%, 100% 100%, 0 100%);
}

.mood-section::before {
  top: -1px;
  transform: rotate(180deg);
}

.mood-section::after {
  bottom: -1px;
}

.mood-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(430px, 1.22fr);
  gap: clamp(42px, 8vw, 110px);
  align-items: center;
}

.mood-status {
  display: flex;
  margin-top: 30px;
  align-items: center;
  gap: 22px;
}

.mood-number {
  color: var(--curry-deep);
  font-size: clamp(3.4rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
}

.mood-number small {
  margin-left: 4px;
  font-size: 0.34em;
  letter-spacing: 0;
}

.mood-status strong {
  display: block;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
}

.mood-status p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.87rem;
  line-height: 1.6;
}

.mood-meter {
  width: 100%;
  height: 18px;
  margin-top: 24px;
  padding: 3px;
  border: 2px solid rgba(75, 50, 31, 0.65);
  border-radius: 999px;
  background: rgba(255, 253, 245, 0.72);
}

.mood-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #91d9bd 0%, #ffd565 52%, #ef97a8 100%);
  transition: width 420ms cubic-bezier(.22, 1, .36, 1);
}

.treat-area {
  position: relative;
  padding-top: clamp(140px, 18vw, 220px);
}

.mood-panda {
  position: absolute;
  top: -20px;
  left: 50%;
  width: clamp(150px, 21vw, 250px);
  translate: -50% 0;
  filter: drop-shadow(0 16px 16px rgba(80, 54, 31, 0.14));
}

.treat-title {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}

.offerings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 18px);
}

.offering {
  display: grid;
  padding: 5px;
  border: 0;
  background: transparent;
  place-items: center;
  cursor: pointer;
}

.offering img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(78, 52, 30, 0.13));
  transition: transform 180ms cubic-bezier(.22, 1.2, .36, 1);
}

.offering span {
  margin-top: 7px;
  font-size: clamp(0.67rem, 1.5vw, 0.82rem);
  font-weight: 900;
}

.offering:hover img,
.offering:focus-visible img {
  transform: translateY(-7px) rotate(-3deg) scale(1.05);
}

.offering.is-offered img {
  animation: treat-pop 620ms cubic-bezier(.22, 1.35, .36, 1);
}

.walking-panda {
  position: fixed;
  bottom: 4px;
  left: 0;
  z-index: 180;
  width: 92px;
  height: 92px;
  pointer-events: none;
  filter: drop-shadow(0 8px 9px rgba(75, 49, 29, 0.16));
  animation: panda-walk-across 18s linear infinite;
}

.walk-body {
  position: relative;
  width: 100%;
  height: 100%;
  animation: panda-tokotoko 380ms ease-in-out infinite;
}

.walk-step {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.step-a {
  animation: panda-step-a 380ms steps(1) infinite;
}

.step-b {
  animation: panda-step-b 380ms steps(1) infinite;
}

.carried-item {
  position: absolute;
  top: 42%;
  right: 0;
  z-index: 3;
  display: none;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.walking-panda.has-treat .carried-item {
  display: block;
}

.happy-bubble {
  position: absolute;
  top: -22px;
  left: 58px;
  display: none;
  width: 76px;
  padding: 7px 5px;
  border-radius: 50%;
  background: #fff8d2;
  color: var(--curry-deep);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 7px 16px rgba(75, 49, 29, 0.14);
}

.walking-panda.is-full .happy-bubble {
  display: block;
}

.parade {
  overflow: hidden;
  padding: clamp(82px, 10vw, 130px) 0;
  background:
    linear-gradient(rgba(255, 252, 236, 0.66), rgba(255, 252, 236, 0.66)),
    url("back/haikei.png") center / cover;
}

.parade::before,
.parade::after {
  position: absolute;
  right: -2%;
  left: -2%;
  z-index: 1;
  height: 34px;
  background: var(--cream);
  content: "";
  clip-path: polygon(0 35%, 8% 65%, 17% 24%, 27% 71%, 39% 31%, 50% 69%, 62% 26%, 73% 68%, 85% 29%, 100% 60%, 100% 100%, 0 100%);
}

.parade::before {
  top: -1px;
  transform: rotate(180deg);
}

.parade::after {
  bottom: -1px;
}

.parade-heading {
  position: relative;
  z-index: 2;
  padding: 0 22px;
  text-align: center;
}

.parade-heading .section-lead {
  margin-right: auto;
  margin-left: auto;
}

.marquee {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 50px;
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  animation: parade-left 48s linear infinite;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  padding-right: clamp(18px, 3vw, 38px);
}

.parade-link {
  display: block;
  width: clamp(170px, 20vw, 280px);
  flex: 0 0 auto;
  text-decoration: none;
  transform: translateY(var(--lift, 0)) rotate(var(--tilt, 0deg));
  transition: transform 180ms ease;
}

.parade-link:hover,
.parade-link:focus-visible {
  transform: translateY(calc(var(--lift, 0px) - 8px)) rotate(0deg) scale(1.03);
}

.parade-link img {
  width: 100%;
  aspect-ratio: 1;
  border: 7px solid rgba(255, 255, 255, 0.92);
  border-radius: 48% 52% 45% 55% / 51% 45% 55% 49%;
  object-fit: cover;
  box-shadow: 0 16px 34px rgba(77, 51, 31, 0.2);
}

.parade-link span {
  display: block;
  max-width: 90%;
  margin: 10px auto 0;
  padding: 5px 10px;
  background: rgba(255, 250, 237, 0.9);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  clip-path: polygon(2% 5%, 98% 0, 96% 95%, 0 100%);
}

.calendar-section {
  background:
    radial-gradient(circle at 10% 15%, rgba(242, 208, 109, 0.25) 0 80px, transparent 82px),
    radial-gradient(circle at 90% 85%, rgba(171, 207, 125, 0.25) 0 110px, transparent 112px),
    var(--cream);
}

.calendar-section .inner {
  padding-bottom: clamp(150px, 15vw, 220px);
}

.calendar-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 64px);
  margin-top: 48px;
  align-items: center;
}

.calendar-link {
  position: relative;
  display: block;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.calendar-link:first-child {
  rotate: -1.5deg;
}

.calendar-link:last-child {
  rotate: 1.5deg;
}

.calendar-link:hover,
.calendar-link:focus-visible {
  filter: drop-shadow(0 18px 18px rgba(90, 62, 38, 0.18));
  transform: translateY(-8px) rotate(0);
}

.calendar-link img {
  width: 100%;
}

.calendar-panda {
  position: absolute;
  right: -58px;
  bottom: 16px;
  z-index: 0;
  width: clamp(190px, 20vw, 285px);
  rotate: -7deg;
  pointer-events: none;
}

.kitchen-section {
  position: relative;
  min-height: clamp(520px, 58vw, 680px);
  display: grid;
  align-items: center;
}

/* 正方形画像（ゲーム中のカレーパンダ）をこのセクションに表示。下端だけうっすら消して壁紙へ自然に切り替える */
.kitchen-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: calc(100% + clamp(70px, 12vw, 170px));
  background:
    linear-gradient(90deg, rgba(255, 250, 238, 0.9) 0%, rgba(255, 250, 238, 0.6) 48%, rgba(255, 250, 238, 0.4) 100%),
    url("back/background-square.png") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  pointer-events: none;
}

.kitchen-copy {
  width: min(520px, 100%);
}

.play-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.play-links .img-button img {
  height: 48px;
}

.shop-section {
  overflow: hidden;
  background: #f4efd9;
}

.shop-section .inner {
  padding-bottom: clamp(125px, 14vw, 190px);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 62px);
  margin-top: 48px;
}

.shop-link {
  position: relative;
  display: block;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.shop-link:first-child {
  rotate: -1deg;
}

.shop-link:last-child {
  rotate: 1deg;
}

.shop-link:hover,
.shop-link:focus-visible {
  filter: drop-shadow(0 18px 20px rgba(90, 62, 38, 0.18));
  transform: translateY(-7px) rotate(0);
}

.shop-link img {
  width: 100%;
}

.shop-note {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 0.83rem;
  text-align: center;
}

.shop-panda {
  position: absolute;
  bottom: 4px;
  left: 3%;
  z-index: 0;
  width: clamp(105px, 13vw, 170px);
  rotate: 8deg;
  pointer-events: none;
}

.wallpaper-strip {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: clamp(30px, 7vw, 90px);
  align-items: center;
}

.wallpaper-previews {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}

.wallpaper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(42%, 220px);
}

.wallpaper-item > img {
  width: 100%;
  border: 6px solid #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.wallpaper-item:first-child > img {
  rotate: -5deg;
}

.wallpaper-item:last-child {
  translate: 0 22px;
}

.wallpaper-item:last-child > img {
  rotate: 5deg;
}

.wallpaper-save {
  margin: 0 0 10px;
  filter:
    drop-shadow(0 7px 0 #b96b20)
    drop-shadow(0 13px 9px rgba(87, 52, 24, 0.24));
  transform: translateY(-4px);
}

.wallpaper-save img {
  width: auto;
  height: 40px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.wallpaper-save:hover,
.wallpaper-save:focus-visible {
  filter:
    drop-shadow(0 8px 0 #b96b20)
    drop-shadow(0 14px 10px rgba(87, 52, 24, 0.26));
  transform: translateY(-6px);
}

.wallpaper-save:active {
  filter:
    drop-shadow(0 2px 0 #b96b20)
    drop-shadow(0 5px 5px rgba(87, 52, 24, 0.2));
  transform: translateY(2px);
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 90px 20px 38px;
  background: #bdd890;
  text-align: center;
}

.site-footer::before {
  position: absolute;
  top: -15px;
  right: -2%;
  left: -2%;
  height: 48px;
  background: var(--cream);
  content: "";
  clip-path: polygon(0 20%, 10% 65%, 23% 20%, 34% 68%, 49% 18%, 63% 66%, 77% 20%, 89% 66%, 100% 22%, 100% 0, 0 0);
}

.footer-panda {
  width: 120px;
  margin: 0 auto 14px;
}

.site-footer p {
  margin: 8px 0;
  font-size: 0.84rem;
}

.toast {
  position: fixed;
  top: max(18px, calc(env(safe-area-inset-top) + 10px));
  bottom: auto;
  left: 50%;
  z-index: 300;
  width: min(calc(100vw - 32px), 420px);
  padding: 13px 18px;
  border-radius: 999px;
  background: rgba(67, 46, 29, 0.94);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 25px rgba(67, 46, 29, 0.22);
  transform: translate(-50%, -18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 日記ページ */
.diary-page {
  background:
    linear-gradient(rgba(255, 250, 240, 0.94), rgba(255, 250, 240, 0.94)),
    url("back/haikei.png") top center / 900px auto repeat-y;
}

.diary-cover {
  position: relative;
  min-height: clamp(360px, 48vw, 620px);
  display: grid;
  padding: 120px 20px 80px;
  place-items: center;
  overflow: hidden;
  background: image-set(url("hero-desktop.png") 1x) center / cover;
  text-align: center;
}

.diary-cover::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 38px;
  background: var(--cream);
  content: "";
  clip-path: polygon(0 38%, 8% 65%, 18% 25%, 31% 68%, 43% 28%, 56% 67%, 68% 24%, 82% 69%, 92% 28%, 100% 58%, 100% 100%, 0 100%);
}

.diary-heading {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 40px;
  text-align: center;
}

.diary-heading .eyebrow {
  justify-content: center;
}

.diary-heading .section-lead {
  margin: 14px auto 0;
}

.month-nav {
  display: flex;
  padding: 42px 18px 14px;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.month-button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease;
}

.month-button img {
  display: block;
  height: 54px;
  width: auto;
}

.month-button[aria-pressed="false"] {
  filter: grayscale(30%) opacity(0.65);
}

.month-button[aria-pressed="true"] {
  filter: drop-shadow(0 6px 10px rgba(90, 62, 38, 0.25));
  transform: translateY(-2px);
}

.month-button:hover,
.month-button:focus-visible {
  filter: none;
  transform: translateY(-2px);
}

.diary-list {
  display: grid;
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 90px;
  gap: clamp(80px, 11vw, 150px);
}

.diary-bottom-nav {
  display: grid;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto 110px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 2.5vw, 28px);
  align-items: center;
}

.diary-bottom-button {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 940 / 330;
  border-radius: 999px;
  transition: filter 160ms ease, transform 160ms ease;
}

.diary-bottom-button[hidden] {
  display: none;
}

.diary-bottom-button img {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 100%;
  max-width: none;
  transform: translateY(-50%);
}

.diary-bottom-button:hover,
.diary-bottom-button:focus-visible {
  filter: drop-shadow(0 8px 8px rgba(87, 55, 24, 0.2));
  transform: translateY(-4px) rotate(-1deg);
}

.diary-bottom-next:hover,
.diary-bottom-next:focus-visible {
  transform: translateY(-4px) rotate(1deg);
}

.diary-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: center;
  scroll-margin-top: 100px;
}

.diary-entry:nth-child(even) .diary-entry-figure {
  order: 2;
}

.diary-entry-figure {
  position: relative;
  margin: 0;
}

.diary-entry-figure::before {
  position: absolute;
  top: -24px;
  left: 42%;
  z-index: 2;
  width: 94px;
  height: 30px;
  background: rgba(245, 211, 111, 0.72);
  content: "";
  rotate: -4deg;
}

.diary-entry:nth-child(even) .diary-entry-figure::before {
  rotate: 5deg;
}

.diary-entry-figure img {
  width: 100%;
  aspect-ratio: 1;
  border: 8px solid #fff;
  border-radius: 18px;
  object-fit: contain;
  background: #fff;
  box-shadow: var(--shadow);
}

.diary-paper {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  background: rgba(255, 253, 246, 0.92);
  filter: drop-shadow(0 16px 25px rgba(85, 57, 34, 0.12));
  clip-path: polygon(1% 2%, 98% 0, 100% 95%, 96% 99%, 72% 97%, 48% 100%, 25% 97%, 2% 100%, 0 76%);
}

.diary-paper time {
  color: var(--leaf);
  font-size: 0.88rem;
  font-weight: 900;
}

.diary-paper h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.35;
}

.diary-place {
  margin: 0 0 20px;
  color: var(--curry-deep);
  font-size: 0.9rem;
  font-weight: 800;
}

.diary-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 2;
}

.diary-status {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 2px dashed rgba(180, 128, 54, 0.3);
}

.diary-status h3 {
  margin: 0 0 10px;
  color: var(--curry-deep);
  font-size: 0.96rem;
}

.diary-status dl {
  display: grid;
  margin: 0;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.7;
}

.diary-status dt {
  color: var(--leaf);
  font-weight: 900;
}

.diary-status dd {
  margin: 0;
}

.empty-diary {
  padding: 80px 20px;
  text-align: center;
}

@keyframes parade-left {
  to {
    transform: translateX(-50%);
  }
}

@keyframes soft-float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

@keyframes treat-pop {
  0%,
  100% {
    transform: scale(1) rotate(0);
  }
  35% {
    transform: scale(1.18) rotate(-5deg);
  }
  65% {
    transform: scale(1.08) rotate(4deg);
  }
}

@keyframes panda-walk-across {
  from {
    transform: translateX(-130px);
  }
  to {
    transform: translateX(calc(100vw + 130px));
  }
}

@keyframes panda-tokotoko {
  0%,
  100% {
    transform: translateY(0) rotate(-1.5deg);
  }
  50% {
    transform: translateY(-7px) rotate(1.5deg);
  }
}

@keyframes panda-step-a {
  0%,
  49.99% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes panda-step-b {
  0%,
  49.99% {
    opacity: 0;
  }
  50%,
  100% {
    opacity: 1;
  }
}

@media (max-width: 820px) {
  .site-header {
    z-index: 95;
    padding: 12px;
  }

  .mini-logo span {
    display: none;
  }

  .mini-logo img {
    width: 42px;
    height: 42px;
  }

  .menu-button {
    position: relative;
    z-index: 101;
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    width: min(82vw, 330px);
    height: 100dvh;
    padding: 100px 28px 40px;
    border: 0;
    border-radius: 40px 0 0 40px;
    background: rgba(255, 250, 235, 0.98);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    box-shadow: -18px 0 50px rgba(70, 47, 28, 0.18);
    transform: translateX(110%);
    transition: transform 220ms ease;
  }

  .nav-links::before {
    position: absolute;
    top: 32px;
    left: 30px;
    color: var(--curry-deep);
    content: "MENU";
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.18em;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a {
    padding: 15px 10px;
    border-bottom: 1px dashed var(--line);
    border-radius: 0;
    font-size: 1rem;
  }

  .menu-scrim {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    border: 0;
    background: rgba(49, 36, 25, 0.28);
  }

  .menu-scrim.is-open {
    display: block;
  }

  .today-layout,
  .mood-layout,
  .wallpaper-strip {
    grid-template-columns: 1fr;
  }

  .wallpaper-strip > div:last-child {
    order: -1;
  }

  .mood-layout {
    gap: 56px;
  }

  .treat-area {
    padding-top: 150px;
  }

  .today-copy {
    padding: 0 8px;
  }

  .today-panda {
    right: -25px;
    bottom: -75px;
  }

  .mood-status {
    gap: 15px;
  }

  .offerings {
    gap: 5px;
  }

  .walking-panda {
    width: 78px;
    height: 78px;
  }

  .calendar-grid,
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .calendar-link {
    width: min(620px, 100%);
    margin: 0 auto;
  }

  .calendar-panda {
    position: absolute;
    right: -42px;
    bottom: 14px;
    width: clamp(145px, 38vw, 190px);
    margin: 0;
  }

  .calendar-section .inner {
    padding-bottom: 135px;
  }

  .kitchen-section {
    min-height: 680px;
    align-items: end;
  }

  .kitchen-section::before {
    background:
      linear-gradient(0deg, rgba(255, 250, 238, 0.96) 0%, rgba(255, 250, 238, 0.62) 44%, rgba(255, 250, 238, 0.2) 76%),
      url("back/background-square.png") center / cover no-repeat;
  }

  .kitchen-copy {
    padding-top: 250px;
  }

  .diary-entry {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .diary-entry:nth-child(even) .diary-entry-figure {
    order: 0;
  }
}

@media (max-width: 560px) {
  .hero picture img {
    min-height: 0;
  }

  .floating-hero-panda {
    right: -12px;
    bottom: -8%;
    width: 108px;
  }

  .decor-leaf {
    right: -55px;
  }

  .decor-sunflower {
    top: 1%;
    left: -55px;
    opacity: 0.62;
  }

  .decor-spoon {
    top: 3%;
    right: -18px;
  }

  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .today {
    padding-top: 84px;
  }

  .today-layout {
    gap: 42px;
  }

  .today-photo {
    border-width: 6px;
  }

  .today-copy h1 {
    font-size: 2rem;
  }

  .today-panda {
    width: 120px;
  }

  .parade {
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .parade-link {
    width: 180px;
  }

  .calendar-grid,
  .shop-grid {
    margin-top: 34px;
    gap: 26px;
  }

  .shop-panda {
    bottom: 8px;
    left: 14px;
    width: 110px;
  }

  .wallpaper-strip {
    gap: 54px;
  }

  .diary-cover {
    min-height: 470px;
    background:
      linear-gradient(rgba(255, 250, 240, 0.16), rgba(255, 250, 240, 0.68)),
      url("hero-mobile.png") center / cover;
  }

  .diary-list {
    width: min(100% - 28px, 1060px);
    padding-top: 38px;
    padding-bottom: 64px;
  }

  .diary-bottom-nav {
    width: min(100% - 28px, 520px);
    margin-bottom: 80px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .diary-bottom-home {
    grid-row: 2;
    grid-column: 1 / -1;
    width: calc(50% - 6px);
    justify-self: center;
  }

  .diary-bottom-previous {
    grid-row: 1;
    grid-column: 1;
  }

  .diary-bottom-next {
    grid-row: 1;
    grid-column: 2;
  }

  .diary-entry-figure img {
    border-width: 6px;
  }

  .diary-paper {
    padding: 30px 24px 38px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-track {
    width: auto;
    overflow-x: auto;
    animation: none;
  }

  .marquee-group[aria-hidden="true"] {
    display: none;
  }
}
