:root {
  --ink: #2a1c16;
  --sumi: #483934;
  --paper: #fff8e6;
  --paper-deep: #f4e3bf;
  --red: #d94131;
  --red-dark: #9f2b23;
  --gold: #d7a53a;
  --aqua: #67cbd5;
  --aqua-soft: #ddf8f7;
  --white: #fffdf6;
  --shadow: 0 18px 50px rgba(92, 48, 27, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  font-family: system-ui, "Noto Sans JP", sans-serif;
  background:
    linear-gradient(rgba(255, 248, 230, 0.76), rgba(255, 248, 230, 0.82)),
    url("./assets/Gemini_Generated_Image_cncdabcncdabcncd.png"),
    radial-gradient(circle at 16px 16px, rgba(215, 165, 58, 0.14) 1px, transparent 2px),
    linear-gradient(180deg, var(--paper) 0%, #fff2d6 44%, #f4fbf6 100%);
  background-attachment: fixed, fixed, scroll, scroll;
  background-position: center, center, 0 0, center;
  background-size: cover, cover, 32px 32px, auto;
  line-height: 1.8;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(42, 28, 22, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(42, 28, 22, 0.025) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
}

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

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

img.is-missing {
  visibility: hidden;
}

.has-missing-image {
  min-height: 240px;
}

.floating-karariko {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.float-karariko {
  position: absolute;
  width: clamp(118px, 14vw, 230px);
  opacity: 0.32;
  filter: drop-shadow(0 18px 16px rgba(42, 28, 22, 0.16));
  transform-origin: center;
  animation: driftKarariko 12s ease-in-out infinite;
}

.float-mitarashi {
  top: 13vh;
  left: -34px;
  animation-duration: 13s;
}

.float-goma {
  top: 72vh;
  left: 6vw;
  width: clamp(108px, 12vw, 190px);
  animation-delay: -4s;
  animation-duration: 15s;
}

.float-azuki {
  top: 38vh;
  right: -48px;
  width: clamp(122px, 15vw, 240px);
  animation-delay: -7s;
  animation-duration: 14s;
}

.float-kinako {
  top: 118vh;
  left: -26px;
  animation-delay: -2s;
  animation-duration: 16s;
}

.float-yomogi {
  top: 174vh;
  right: -40px;
  width: clamp(112px, 13vw, 210px);
  animation-delay: -9s;
  animation-duration: 17s;
}

.float-base {
  top: 232vh;
  left: 5vw;
  width: clamp(104px, 12vw, 190px);
  animation-delay: -5s;
  animation-duration: 14.5s;
}

main,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid rgba(66, 52, 46, 0.12);
  background: rgba(255, 248, 230, 0.9);
  backdrop-filter: blur(12px);
}

.site-nav {
  display: flex;
  gap: clamp(10px, 3vw, 24px);
  color: var(--sumi);
  font-size: 13px;
  font-weight: 800;
}

.site-nav a {
  padding: 8px 0;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 56px));
  display: grid;
  grid-template-columns: minmax(340px, 0.74fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  overflow: hidden;
  padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 64px) clamp(48px, 6vw, 78px) clamp(42px, 8vw, 150px);
  border-bottom: 5px solid var(--red);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(120deg, rgba(255, 253, 246, 0.68), rgba(255, 238, 204, 0.5)),
    url("./assets/Gemini_Generated_Image_z91gwgz91gwgz91g.png"),
    radial-gradient(circle at 78% 36%, rgba(103, 203, 213, 0.38), transparent 34%),
    radial-gradient(circle at 16% 16%, rgba(215, 65, 49, 0.16), transparent 28%),
    linear-gradient(120deg, rgba(255, 253, 246, 0.82), rgba(255, 232, 189, 0.78));
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  right: -16vw;
  bottom: -18vw;
  z-index: -1;
  width: 58vw;
  max-width: 660px;
  aspect-ratio: 1;
  content: "";
  border: 2px solid rgba(215, 65, 49, 0.18);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 6deg, rgba(215, 65, 49, 0.09) 0deg 8deg, transparent 8deg 16deg),
    radial-gradient(circle, rgba(255, 253, 246, 0.34), transparent 68%);
}

.hero-content {
  width: min(100%, 560px);
  justify-self: end;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1 {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  max-width: 100%;
  font-size: clamp(52px, 8.4vw, 154px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow:
    3px 3px 0 rgba(215, 165, 58, 0.5),
    8px 8px 20px rgba(42, 28, 22, 0.12);
}

h1::after {
  position: absolute;
  right: 0.04em;
  bottom: -0.08em;
  width: 1.78em;
  height: 0.12em;
  content: "";
  border-radius: 999px;
  background: var(--red);
  transform: rotate(-2deg);
  transform-origin: right center;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(29px, 8vw, 54px);
  font-weight: 950;
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 2px;
  font-size: 22px;
  line-height: 1.3;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 16px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--red-dark);
  background: rgba(255, 253, 246, 0.92);
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  font-size: clamp(10px, 1.15vw, 12px);
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 2px 0 var(--ink);
}

.hero-tags span:first-child {
  color: var(--ink);
  background: #fff1bf;
  font-size: clamp(11px, 1.35vw, 14px);
}

.hero-copy {
  max-width: 570px;
  margin-bottom: 28px;
  color: var(--sumi);
  font-size: clamp(18px, 4.8vw, 29px);
  font-weight: 800;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--ink);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(180deg, #ef5946, var(--red));
}

.button-secondary {
  background: var(--white);
}

.button-large {
  min-height: 56px;
  padding-inline: 30px;
  font-size: 18px;
}

.hero-visual,
.product-panel {
  position: relative;
  margin-bottom: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 246, 0.72), rgba(221, 248, 247, 0.62)),
    url("./assets/Gemini_Generated_Image_cncdabcncdabcncd.png"),
    linear-gradient(135deg, rgba(255, 248, 230, 0.8), rgba(221, 248, 247, 0.82)),
    var(--white);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.hero-visual {
  display: grid;
  justify-self: start;
  width: min(100%, 980px);
  min-height: clamp(330px, 48vw, 560px);
  place-items: center;
  padding: clamp(18px, 3vw, 34px);
}

.hero-visual::before,
.product-panel::before {
  position: absolute;
  inset: 14px;
  content: "";
  border: 1px dashed rgba(42, 28, 22, 0.22);
  border-radius: 6px;
  pointer-events: none;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: 470px;
  object-fit: contain;
  filter: drop-shadow(0 20px 20px rgba(42, 28, 22, 0.16));
  animation: floatImage 4s ease-in-out infinite;
}

figcaption {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 10vw, 100px) 0;
}

.story {
  max-width: 880px;
  margin-block: clamp(28px, 6vw, 72px);
  padding: clamp(58px, 9vw, 96px) clamp(28px, 7vw, 82px);
  border: 2px solid rgba(42, 28, 22, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 253, 246, 0.82), rgba(255, 248, 230, 0.86)),
    radial-gradient(circle at 50% 50%, rgba(255, 253, 246, 0.5), rgba(255, 248, 230, 0.78) 72%),
    url("./assets/Ohh-EdoMECHANICA.webp");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  text-align: center;
}

.story h2,
.story p,
.story .section-label {
  text-shadow: 0 1px 8px rgba(255, 253, 246, 0.9);
}

.story p,
.about p {
  color: var(--sumi);
  font-size: clamp(16px, 4vw, 19px);
}

.story p {
  max-width: 720px;
  margin-inline: auto;
}

.about,
.gallery,
.developer {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 6vw, 64px);
}

.developer {
  grid-template-columns: minmax(220px, 0.52fr) minmax(0, 1fr);
  max-width: 960px;
  padding-top: clamp(20px, 4vw, 42px);
}

.developer p {
  color: var(--sumi);
  font-size: clamp(16px, 4vw, 19px);
}

.developer-portrait {
  margin: 0;
}

.portrait-placeholder {
  display: grid;
  width: min(100%, 280px);
  aspect-ratio: 1;
  place-items: center;
  margin-inline: auto;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 253, 246, 0.72), rgba(255, 253, 246, 0.72)),
    url("./assets/Gemini_Generated_Image_z91gwgz91gwgz91g.png"),
    var(--white);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.portrait-placeholder span {
  display: grid;
  width: 42%;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: clamp(42px, 7vw, 70px);
  font-weight: 900;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.12);
}

.product-panel {
  display: grid;
  min-height: 320px;
  place-items: center;
  padding: 20px;
}

.product-panel img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 16px 16px rgba(42, 28, 22, 0.14));
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.type-card {
  position: relative;
  min-height: 360px;
  padding: 12px 14px 20px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 253, 246, 0.74), rgba(255, 253, 246, 0.74)),
    url("./assets/Gemini_Generated_Image_cncdabcncdabcncd.png"),
    var(--white);
  background-position: center;
  background-size: cover;
  box-shadow: 0 7px 0 rgba(42, 28, 22, 0.86);
}

.type-card::after {
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: 96px;
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: rgba(215, 165, 58, 0.22);
}

.type-card img {
  width: 100%;
  height: 152px;
  margin-bottom: 10px;
  object-fit: contain;
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.9), transparent 38%),
    linear-gradient(135deg, #fff2cf, #ddf8f7);
  filter: drop-shadow(0 10px 10px rgba(42, 28, 22, 0.12));
}

.role {
  margin-bottom: 12px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.type-card p:last-child {
  margin-bottom: 0;
  color: var(--sumi);
  font-size: 14px;
  line-height: 1.7;
}

.type-mitarashi img {
  background: linear-gradient(135deg, #ffe3b4, #fff9e8);
}

.type-goma img {
  background: linear-gradient(135deg, #d9f6ff, #fffdf6);
}

.type-azuki img {
  background: linear-gradient(135deg, #ffd9d3, #fff8e6);
}

.type-kinako img {
  background: linear-gradient(135deg, #ffe989, #fffdf6);
}

.type-yomogi img {
  background: linear-gradient(135deg, #d8efaa, #fffdf6);
}

.feature-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border: 1px solid rgba(42, 28, 22, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.68);
  font-weight: 800;
}

.feature-list li::before {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  content: "";
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.feature-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(42, 28, 22, 0.2);
  border-radius: 999px;
  color: var(--red-dark);
  background: rgba(255, 253, 246, 0.78);
  font-size: 13px;
  font-weight: 900;
}

.play-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.play-grid .product-panel {
  min-height: 250px;
}

.play-grid .product-panel img {
  max-height: 220px;
}

.spec {
  max-width: 900px;
}

.spec-table {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.spec-table div {
  display: grid;
  grid-template-columns: 34% 1fr;
  min-height: 58px;
  border-bottom: 1px solid rgba(42, 28, 22, 0.16);
}

.spec-table div:last-child {
  border-bottom: 0;
}

.spec-table span,
.spec-table strong {
  display: flex;
  align-items: center;
  padding: 14px 16px;
}

.spec-table span {
  color: var(--white);
  background: var(--red-dark);
  font-weight: 900;
}

.spec-table strong {
  font-weight: 850;
}

.todo {
  color: #8a4f00;
  background: #fff4c9;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.detail-grid article {
  padding: 18px;
  border: 2px solid rgba(42, 28, 22, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 253, 246, 0.78), rgba(255, 253, 246, 0.78)),
    url("./assets/Gemini_Generated_Image_cncdabcncdabcncd.png"),
    var(--white);
  background-position: center;
  background-size: cover;
}

.detail-grid h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.detail-grid p {
  margin-bottom: 4px;
  color: var(--sumi);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.6;
}

.buy {
  width: min(100% - 36px, 960px);
  margin: 8px auto 70px;
  padding: clamp(42px, 9vw, 70px) clamp(20px, 6vw, 64px);
  border: 2px solid var(--ink);
  border-radius: 8px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(215, 65, 49, 0.1), rgba(103, 203, 213, 0.22)),
    url("./assets/Gemini_Generated_Image_z91gwgz91gwgz91g.png"),
    var(--white);
  background-position: center;
  background-size: cover;
  box-shadow: 0 9px 0 var(--ink), var(--shadow);
}

.buy h2 {
  max-width: 780px;
  margin-inline: auto;
}

.site-footer {
  padding: 28px 18px 34px;
  color: rgba(42, 28, 22, 0.72);
  text-align: center;
  font-size: 13px;
}

.section-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes floatImage {
  0%,
  100% {
    transform: translateY(0) rotate(-0.4deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.5deg);
  }
}

@keyframes driftKarariko {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-5deg);
  }
  33% {
    transform: translate3d(18px, -22px, 0) rotate(4deg);
  }
  66% {
    transform: translate3d(-12px, 18px, 0) rotate(-1deg);
  }
}

@media (max-width: 980px) {
  .hero,
  .about,
  .gallery,
  .developer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-left: clamp(18px, 5vw, 42px);
  }

  .hero-content,
  .hero-visual {
    justify-self: stretch;
    width: 100%;
  }

  .hero-visual {
    min-height: 340px;
  }

  .about .product-panel {
    order: 2;
  }

  .developer {
    max-width: min(100% - 36px, 960px);
  }

  .developer-portrait {
    order: 2;
  }

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

  .type-card {
    min-height: 330px;
  }
}

@media (max-width: 640px) {
  .float-karariko {
    width: 112px;
    opacity: 0.22;
  }

  .float-goma,
  .float-kinako,
  .float-base {
    display: none;
  }

  .float-mitarashi {
    top: 17vh;
    left: -46px;
  }

  .float-azuki {
    top: 74vh;
    right: -58px;
  }

  .float-yomogi {
    top: 154vh;
    right: -46px;
  }

  .site-header {
    align-items: flex-start;
    padding-inline: 14px;
  }

  .site-nav {
    gap: 9px;
    font-size: 12px;
  }

  .hero {
    padding-inline: 16px;
  }

  h1 {
    font-size: clamp(48px, 18vw, 84px);
  }

  .hero-copy {
    margin-bottom: 22px;
  }

  .hero-visual {
    min-height: 280px;
    padding: 14px;
  }

  .button {
    width: 100%;
  }

  .section {
    width: min(100% - 28px, 1120px);
  }

  .story {
    margin-block: 22px;
    padding: 42px 22px;
  }

  .type-grid {
    grid-template-columns: 1fr;
  }

  .type-card {
    min-height: auto;
  }

  .type-card img {
    height: 210px;
  }

  .spec-table div {
    grid-template-columns: 1fr;
  }

  .spec-table span {
    padding-block: 9px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

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

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

  .float-karariko {
    animation: none !important;
  }
}
