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

body {
  background-color: #fdf8ee;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', '游ゴシック', sans-serif;
  color: #3d1c02;
  overflow-x: hidden;
}

/* ========== LAYOUT ========== */
.lp-wrapper {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
}

/* ========== FADE-IN ANIMATION ========== */
.fade-in {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.delay-1 {
  transition-delay: 0.1s;
}

.fade-in.delay-2 {
  transition-delay: 0.2s;
}

.fade-in.delay-3 {
  transition-delay: 0.3s;
}

/* ========== HEADER ========== */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 24px 12px;
  position: relative;
  z-index: 2;
}

.header-logo {
  width: 60%;
  display: block;
  text-align: center;
  margin: 0 auto;
}

/* ========== HERO ========== */
.hero {
  padding: 0 20px 32px;
  margin-top: -40px;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== DIVIDER ========== */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #8b1a1a, #c0392b);
  margin: 0 auto 8px;
  border-radius: 2px;
}

/* ========== TEXT SECTIONS ========== */
.text-section {
  padding: 32px 32px 32px;
  font-size: clamp(15px, 3.8vw, 21px);
  line-height: 2.4;
  letter-spacing: 0.03em;
}

.text-section p {
  text-indent: 1em;
  margin-bottom: 0.6em;
}

.text-section p:last-child {
  margin-bottom: 0;
}

/* Bold red highlights — matching the PDF design */
.hl {
  font-weight: 700;
  color: #8b1a1a;
}

/* Footnote small text */
.footnote {
  font-size: 0.72em !important;
  text-indent: 0 !important;
  color: #6b4020;
  margin-top: 10px !important;
  line-height: 1.8 !important;
  text-align: right;
}

/* ========== ILLUSTRATIONS ========== */
.illust {
  text-align: center;
  padding: 28px 20px 28px;
}

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

/* ========== TRIVIA CARD ========== */
.trivia-wrap {
  padding: 32px 28px 32px;
}

.trivia-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== RICE ILLUSTRATION ========== */
.illust-right {
  display: flex;
  justify-content: center;
  padding: 28px 20px 28px;
}

.illust-right img {
  width: 80%;
  height: auto;
}

/* ========== PRODUCTS SECTION ========== */
.products {
  margin-top: 12px;
}

.products img {
  width: 95%;
  height: auto;
  display: block;
  margin: 0 auto;
  text-align: center;
}

/* ========== MORINAGA BANNER ========== */
.morinaga-banner {
  padding: 32px 20px 64px;
}

.morinaga-banner img {
  width: 95%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ========== LINK HOVER ========== */
a img {
  transition: opacity 0.2s, transform 0.2s;
}

a:hover img {
  opacity: 0.85;
  transform: scale(1.02);
  cursor: pointer;
}

/* ========== SCROLL-TO-TOP BUTTON ========== */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: #8b1a1a;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 48px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s, transform 0.4s;
  z-index: 100;
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #a52a2a;
}

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 480px) {
  .text-section {
    padding: 20px 20px 24px;
  }

  .trivia-wrap {
    padding: 8px 16px 24px;
  }

  .illust img {
    max-width: 80%;
  }

  .footnote {
    text-align: left;
  }
}
