@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=Noto+Serif+JP:wght@600;700&display=swap');

:root {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
}

section {
  scroll-margin-top: 5rem;
}

.page-section {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.page-section.active {
    display: block;
    opacity: 1;
}

.nav-link {
  position: relative;
  color: rgba(57, 49, 63, 0.72);
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  border-radius: 999px;
  background: linear-gradient(90deg, #9c8edb, #7fc8d7, #e697a8);
  transition: transform 200ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: #39313f;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-link {
  border-radius: 999px;
  padding: 0.9rem 1rem;
  color: rgba(57, 49, 63, 0.78);
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  border-radius: 999px;
  background: #39313f;
  content: "";
}

.menu-lines::before {
  transform: translateY(-0.42rem);
}

.menu-lines::after {
  transform: translateY(0.3rem);
}

.hero-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(127, 200, 215, 0.26), transparent 28rem),
    radial-gradient(circle at 12% 30%, rgba(230, 151, 168, 0.18), transparent 24rem),
    linear-gradient(135deg, #fffdf9 0%, #fff8f3 52%, #eefbfb 100%);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.45rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn-primary {
  background: #39313f;
  color: white;
  box-shadow: 0 18px 35px rgba(156, 142, 219, 0.25);
}

.btn-secondary {
  border: 1px solid rgba(57, 49, 63, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: #39313f;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.metric {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.62);
  padding: 1rem 0.6rem;
  box-shadow: 0 16px 42px rgba(57, 49, 63, 0.06);
}

.metric dt {
  font-weight: 800;
  color: #9c8edb;
}

.metric dd {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: rgba(57, 49, 63, 0.58);
}

.hero-gallery {
  position: relative;
  min-height: 34rem;
}

.hero-img {
  position: absolute;
  border: 10px solid rgba(255, 255, 255, 0.82);
  border-radius: 1.75rem;
  object-fit: cover;
  box-shadow: 0 26px 60px rgba(57, 49, 63, 0.17);
}

.hero-img-main {
  inset: 5rem 4rem auto auto;
  width: min(78%, 33rem);
  aspect-ratio: 1 / 1;
}

.hero-img-small {
  width: min(44%, 17rem);
  aspect-ratio: 1 / 1;
}

.section-pad {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.section-kicker {
  color: #9c8edb;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-title {
  margin-top: 0.85rem;
  max-width: 48rem;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.32;
}

.feature-card {
  border: 1px solid rgba(57, 49, 63, 0.08);
  border-radius: 0.5rem;
  background: #fffdf9;
  padding: 1.6rem;
  box-shadow: 0 20px 60px rgba(57, 49, 63, 0.06);
}

.feature-mark {
  display: inline-flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.feature-card h2 {
  margin-top: 1.15rem;
  font-size: 1.18rem;
  font-weight: 800;
}

.feature-card p {
  margin-top: 0.75rem;
  color: rgba(57, 49, 63, 0.68);
  line-height: 1.9;
}

.info-row {
  border: 1px solid rgba(57, 49, 63, 0.08);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.72);
  padding: 1rem;
}

.info-row span,
.rules-grid span {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(57, 49, 63, 0.52);
  font-size: 0.78rem;
  font-weight: 700;
}

.info-row strong,
.rules-grid strong {
  font-weight: 700;
  line-height: 1.75;
}

.about-media {
  position: relative;
  min-height: 32rem;
}

.about-media img {
  height: 100%;
  min-height: 32rem;
  width: 100%;
  border-radius: 1.5rem;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(57, 49, 63, 0.15);
}

.about-note {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: 17rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 1rem;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-btn {
  min-height: 2.75rem;
  border: 1px solid rgba(57, 49, 63, 0.1);
  border-radius: 999px;
  background: #fffdf9;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: rgba(57, 49, 63, 0.68);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #39313f;
  color: white;
  transform: translateY(-1px);
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(57, 49, 63, 0.08);
  border-radius: 0.5rem;
  background: #fffdf9;
  box-shadow: 0 18px 52px rgba(57, 49, 63, 0.07);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 68px rgba(57, 49, 63, 0.12);
}

.product-card.is-hidden {
  display: none;
}

.product-feature {
  box-shadow: 0 24px 68px rgba(57, 49, 63, 0.08);
}

.product-image-frame {
  aspect-ratio: 4 / 3;
  box-shadow: inset 0 0 0 1px rgba(57, 49, 63, 0.06);
}

.product-image-frame img {
  display: block;
  object-fit: contain;
  padding: clamp(0.4rem, 1.8vw, 1rem);
}

.product-thumb {
  height: 6rem;
  width: 6rem;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 0.8rem;
  background: white;
  box-shadow: 0 10px 26px rgba(57, 49, 63, 0.08);
  transition: opacity 180ms ease, transform 180ms ease;
}

.product-thumb:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.product-thumb img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.product-details summary {
  cursor: pointer;
  color: #9c8edb;
  font-weight: 800;
}

.hide-scrollbar {
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.img-hover {
  transition: transform 420ms ease;
}

.img-hover:hover {
  transform: scale(1.035);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-card > div:not(.product-foot) {
  padding: 1.25rem 1.25rem 0;
}

.product-type {
  color: #7aa889;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3 {
  margin-top: 0.45rem;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.45;
}

.product-card p:not(.product-type) {
  margin-top: 0.65rem;
  color: rgba(57, 49, 63, 0.66);
  line-height: 1.85;
}

.product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
}

.product-foot span {
  font-weight: 900;
  color: #9c8edb;
}

.product-foot a {
  border-radius: 999px;
  background: rgba(127, 200, 215, 0.18);
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #276a78;
}

.usage-stack {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 1rem;
  align-items: end;
}

.usage-stack img {
  width: 100%;
  border-radius: 1.25rem;
  object-fit: cover;
  box-shadow: 0 20px 52px rgba(57, 49, 63, 0.12);
}

.usage-stack img:first-child {
  aspect-ratio: 4 / 3;
}

.usage-stack img:last-child {
  aspect-ratio: 1 / 1.15;
}

.step-row {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  align-items: start;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  padding: 1rem;
}

.step-row span {
  display: grid;
  height: 2.4rem;
  width: 2.4rem;
  place-items: center;
  border-radius: 999px;
  background: #e697a8;
  color: white;
  font-weight: 900;
}

.step-row p {
  line-height: 1.85;
}

.legal-panel,
.rules-grid {
  margin-top: 2rem;
  border: 1px solid rgba(57, 49, 63, 0.08);
  border-radius: 0.75rem;
  background: rgba(255, 253, 249, 0.86);
  box-shadow: 0 20px 60px rgba(57, 49, 63, 0.06);
}

.legal-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.legal-panel p {
  color: rgba(57, 49, 63, 0.72);
  line-height: 1.95;
}

.legal-panel h3 {
  margin-top: 1.55rem;
  margin-bottom: 0.45rem;
  font-weight: 900;
}

.legal-date {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.rules-grid {
  display: grid;
  overflow: hidden;
}

.rules-grid div {
  display: grid;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(57, 49, 63, 0.07);
  padding: 1.1rem;
}

.rules-grid div:last-child {
  border-bottom: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@media (min-width: 760px) {
  .rules-grid div {
    grid-template-columns: 14rem 1fr;
  }

  .rules-grid span {
    margin-bottom: 0;
  }
}

@media (max-width: 900px) {
  .hero-gallery {
    min-height: 28rem;
  }

  .hero-img-main {
    inset: 4rem 1rem auto auto;
    width: min(82%, 28rem);
  }

  .hero-img-small {
    width: min(42%, 13rem);
  }
}

@media (max-width: 640px) {
  .hero-gallery {
    min-height: 23rem;
  }

  .hero-img {
    border-width: 6px;
    border-radius: 1.1rem;
  }

  .hero-img-main {
    inset: 3.5rem 0 auto auto;
    width: 78%;
  }

  .hero-img-small {
    width: 38%;
  }

  .about-media,
  .about-media img {
    min-height: 24rem;
  }

  .usage-stack {
    grid-template-columns: 1fr;
  }
}
