/* ===== Design tokens ===== */
:root {
  --shu: #bd2a2e;          /* 紅 */
  --shu-deep: #8e1e22;     /* 深紅 */
  --shu-soft: #f6e3e1;     /* 淡い紅 */
  --kin: #cbbca5;          /* 境界線のベージュ */
  --kin-light: #f4efe7;    /* 淡ベージュ */
  --kin-deep: #8a6f50;     /* 茶(補助文字) */
  --kinari: #eee8de;       /* ベージュ地 */
  --kinari-2: #e3dbcd;
  --paper: #f7f4ee;        /* 明るい紙色 */
  --sumi: #3a3331;         /* 墨 */
  --sumi-2: #615955;
  --white: #ffffff;

  --font-mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px;
  --space-6: 48px; --space-8: 64px; --space-12: 96px;
  --radius: 6px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--kinari);
  color: var(--sumi);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: "palt";
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--shu-deep); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--sumi); color: var(--white); padding: 8px 16px; border-radius: 4px;
}
.skip-link:focus { top: 8px; }

/* ===== Header / Footer ===== */
.site-header {
  background: var(--white);
  display: flex; justify-content: center; align-items: center;
  padding: 12px 16px;
  border-bottom: 3px solid var(--shu);
}
.site-header img { height: 44px; width: auto; }
@media (min-width: 768px) { .site-header img { height: 56px; } }
.site-footer {
  background: var(--sumi); color: var(--kinari);
  text-align: center; padding: var(--space-4) 16px calc(var(--space-4) + 72px);
}
@media (min-width: 768px) { .site-footer { padding-bottom: var(--space-4); } }

/* ===== ベージュ地 + 大きな円 ===== */
.seigaiha {
  background-color: var(--kinari);
  background-image:
    radial-gradient(circle at 6% 88%, var(--paper) 0 180px, transparent 181px),
    radial-gradient(circle at 96% 6%, #e6dfd3 0 240px, transparent 241px),
    radial-gradient(circle at 100% 78%, var(--paper) 0 140px, transparent 141px),
    radial-gradient(circle at 18% 8%, #e8e1d5 0 110px, transparent 111px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  color: var(--sumi);
  text-align: center;
  padding: var(--space-4) 16px var(--space-8);
  overflow: hidden;
  isolation: isolate;
}
.hero__inner { max-width: 880px; margin: 0 auto; position: static; }
.hero__frame {
  padding: var(--space-2) var(--space-2) var(--space-2);
  border-radius: 2px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mincho); font-weight: 700;
  color: var(--shu); letter-spacing: .3em; font-size: 15px;
  margin: 0 0 var(--space-1);
}
.hero__eyebrow::before, .hero__eyebrow::after {
  content: ""; width: 36px; height: 1px; background: var(--shu);
}
.hero__title {
  font-family: var(--font-mincho); font-weight: 800;
  font-size: clamp(48px, 13vw, 100px);
  line-height: 1.05; letter-spacing: .08em;
  margin: 0;
  color: var(--shu);
}
.hero__bag { width: min(170px, 40vw); margin: var(--space-2) auto var(--space-1); }
.hero__bag svg { width: 100%; height: auto; overflow: visible; }
.hero__price {
  display: inline-block;
  margin: 0;
  font-family: var(--font-mincho); font-weight: 800;
  line-height: 1.15;
}
.hero__price-label {
  display: block; font-size: 16px; letter-spacing: .2em; color: var(--sumi-2); margin-bottom: 4px;
}
.hero__price-num {
  font-size: clamp(44px, 11vw, 76px); letter-spacing: .02em; color: var(--shu);
  font-variant-numeric: tabular-nums;
}
.hero__price-yen { font-size: .45em; margin-left: .1em; }
.hero__price-tax { font-size: 15px; font-weight: 500; margin-left: .3em; color: var(--sumi-2); }
.hero__lead {
  margin: var(--space-2) auto 0; max-width: 34em;
  font-size: 16px; color: var(--sumi-2);
}
.nb { display: inline-block; }

/* 角飾り */
.corner { display: none; }
.corner--tl { top: -10px; left: -10px; }
.corner--tr { top: -10px; right: -10px; transform: scaleX(-1); }
.corner--bl { bottom: -10px; left: -10px; transform: scaleY(-1); }
.corner--br { bottom: -10px; right: -10px; transform: scale(-1, -1); }

/* 梅の飾り */
.ume { position: absolute; color: var(--shu); pointer-events: none; z-index: -1; }
.ume svg { width: 100%; height: 100%; display: block; }
.ume--1 { width: 120px; height: 120px; top: 24px; right: 2%; }
.ume--2 { width: 64px; height: 64px; top: 160px; right: 14%; opacity: .9; }
.ume--3 { width: 96px; height: 96px; bottom: 80px; left: 2%; }
.ume--4 { width: 48px; height: 48px; bottom: 200px; left: 12%; }
.ume--5 { width: 80px; height: 80px; top: 48%; right: 1%; }
.ume--6 { width: 56px; height: 56px; top: 60px; left: 5%; }
@media (max-width: 767px) {
  .ume--1 { width: 72px; height: 72px; top: 8px; right: -12px; }
  .ume--2, .ume--4, .ume--5 { display: none; }
  .ume--3 { width: 64px; height: 64px; bottom: 40px; left: -14px; }
  .ume--6 { width: 40px; height: 40px; top: 12px; left: 4px; }
}
/* 下端の波 */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; color: var(--paper); }
.wave svg { width: 100%; height: 100%; display: block; }

/* ===== Buttons ===== */
.btn {
  --h: 64px;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h); padding: 0 40px;
  font-family: var(--font-mincho); font-weight: 800; font-size: 20px; letter-spacing: .12em;
  text-decoration: none; cursor: pointer;
  border-radius: 999px;
  touch-action: manipulation;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--gold {
  color: var(--white);
  background: var(--shu);
  box-shadow: 0 3px 0 var(--shu-deep), 0 10px 22px rgba(142, 30, 34, .22);
}
.btn--red {
  color: var(--white);
  background: var(--shu);
  box-shadow: 0 3px 0 var(--shu-deep);
}
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.3); }
.btn::after { /* 光の走り */
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.25), transparent);
  transform: skewX(-20deg);
  animation: shine 5s var(--ease) infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn--lg { --h: 76px; font-size: 22px; width: min(100%, 460px); }

/* ===== Section common ===== */
.section { padding: var(--space-12) 16px; }
.section--paper { background: var(--paper); }
.container { max-width: 1040px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: var(--space-6); }
.section-head__en {
  display: block; font-family: var(--font-mincho); color: var(--shu);
  letter-spacing: .35em; font-size: 13px; font-weight: 700; margin-bottom: 8px;
}
.section-head h2 {
  margin: 0; font-family: var(--font-mincho); font-weight: 800;
  font-size: clamp(28px, 6vw, 40px); letter-spacing: .1em; line-height: 1.4;
}
.mizuhiki { width: 160px; height: 24px; margin: 14px auto 0; color: var(--shu); }

/* ===== Patterns ===== */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== 中身 ===== */
.formula {
  list-style: none; display: flex; justify-content: center; align-items: flex-start; gap: 6px;
  margin: 0 auto var(--space-3); padding: 0;
}
.formula__item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 60px; font-size: 12px; font-weight: 700; color: var(--sumi); text-align: center; line-height: 1.3;
}
.formula__item--wide { width: 74px; letter-spacing: -.02em; }
@media (max-width: 359px) { .formula { gap: 3px; } .formula__item--wide { width: 68px; font-size: 11px; } }
.formula__icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--kinari-2);
  display: grid; place-items: center; color: var(--shu);
}
.formula__icon svg { width: 26px; height: 26px; }
.formula__op {
  font-family: var(--font-mincho); font-weight: 700; font-size: 20px; color: var(--shu);
  line-height: 48px; width: 14px; text-align: center;
}
.formula__total {
  width: 68px; height: 68px; margin-top: -10px; border-radius: 50%;
  background: var(--shu); color: var(--white);
  display: grid; place-content: center; text-align: center;
  font-family: var(--font-mincho); font-weight: 700; font-size: 12px; line-height: 1.1;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px rgba(189, 42, 46, .4);
}
.formula__total b { display: block; font-size: 26px; font-weight: 800; }
@media (min-width: 640px) {
  .formula { gap: 14px; }
  .formula__item { width: 88px; font-size: 14px; }
  .formula__item--wide { width: 96px; }
  .formula__icon { width: 64px; height: 64px; }
  .formula__icon svg { width: 32px; height: 32px; }
  .formula__op { font-size: 26px; line-height: 64px; width: 20px; }
  .formula__total { width: 88px; height: 88px; margin-top: -12px; font-size: 14px; }
  .formula__total b { font-size: 34px; }
}
.random-note {
  text-align: center; margin: 0 auto var(--space-6); max-width: 36em;
  font-size: 16px; color: var(--sumi); line-height: 1.9;
}
.random-note strong {
  color: var(--shu); font-weight: 700;
  background: linear-gradient(transparent 62%, var(--shu-soft) 62%);
}
.random-note small { display: block; font-size: 13px; color: var(--sumi-2); }

.patterns { max-width: 960px; margin: 0 auto; }
.or {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: var(--space-3) 0; color: var(--shu);
  font-family: var(--font-mincho); font-weight: 700; font-size: 15px; letter-spacing: .3em;
}
.or::before, .or::after { content: ""; height: 1px; width: 72px; background: var(--kin); }
.pattern {
  background: var(--white);
  border: 1px solid var(--kinari-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(80, 60, 40, .06);
}
.pattern__head {
  display: flex; align-items: center; gap: 16px;
  background: var(--shu); color: var(--white);
  padding: var(--space-2) var(--space-3);
}
.pattern__mark {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  background: var(--white); color: var(--shu);
  display: grid; place-content: center; text-align: center;
  font-family: var(--font-mincho); font-weight: 800; font-size: 28px; line-height: 1;
}
.pattern__mark small { display: block; font-size: 8px; letter-spacing: .04em; margin-bottom: 2px; font-weight: 700; }
.pattern__head h3 {
  margin: 0; font-family: var(--font-mincho); font-weight: 700;
  font-size: clamp(15px, 4.4vw, 22px); line-height: 1.45; letter-spacing: .04em;
}
@media (max-width: 400px) {
  .pattern__head { gap: 12px; padding-left: var(--space-2); padding-right: var(--space-2); }
  .pattern__head h3 { letter-spacing: .02em; }
}
@media (max-width: 340px) {
  .pattern__head { gap: 10px; }
  .pattern__mark { width: 52px; height: 52px; font-size: 24px; }
  .pattern__head h3 { font-size: 14px; letter-spacing: 0; }
}
.pattern__head p { margin: 2px 0 0; font-size: 13px; color: #fbeceb; }

.pattern__visual {
  margin: 0; padding: var(--space-3) var(--space-3) 0; text-align: center;
}
.pattern__visual img {
  display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto;
  border: 1px solid var(--kinari-2); border-radius: var(--radius);
}
.pattern__visual figcaption { margin-top: 8px; font-size: 12px; color: var(--sumi-2); letter-spacing: .06em; }
.set {
  list-style: none; margin: 0; padding: var(--space-3);
  display: grid; grid-template-columns: 1fr; gap: 10px; align-items: start;
}
.set__plus {
  justify-self: start; width: 104px; text-align: center;
  font-family: var(--font-mincho); font-weight: 700; font-size: 22px; line-height: 1; color: var(--shu);
}
.set__item { display: grid; grid-template-columns: 104px 1fr; gap: var(--space-2); align-items: start; }
.set__img {
  width: 104px; height: 104px; border-radius: var(--radius);
  border: 1px solid var(--kinari-2); background: var(--white);
  display: grid; place-items: center; overflow: hidden;
}
.set__img img { width: 100%; height: 100%; object-fit: contain; }
.set__cat {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--white); background: var(--shu); border-radius: 2px; padding: 0 8px; line-height: 1.8;
}
.set__item h4 { margin: 6px 0 0; font-family: var(--font-mincho); font-weight: 700; font-size: 17px; line-height: 1.45; }
.set__code { margin: 0; font-size: 12px; color: var(--sumi-2); letter-spacing: .06em; }
.set__desc { margin: 6px 0 0; font-size: 13px; color: var(--sumi-2); line-height: 1.7; }
.set__spec { margin: 6px 0 0; font-size: 12px; color: var(--sumi-2); line-height: 1.7; }
.set__spec span { white-space: nowrap; }
.set__made {
  display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--shu-deep);
  border: 1px solid var(--shu-deep); border-radius: 2px; padding: 0 5px; vertical-align: 1px; line-height: 1.6;
}
@media (min-width: 760px) {
  .set {
    grid-template-columns: 1fr auto 1fr auto 1fr; gap: var(--space-2);
    padding: var(--space-4) var(--space-3);
  }
  .set__plus { width: auto; margin-top: 116px; font-size: 28px; }
  .set__item { grid-template-columns: 1fr; text-align: center; gap: var(--space-2); }
  .set__img { width: 100%; height: auto; aspect-ratio: 1; }
}

/* ===== Purchase ===== */
.purchase { color: var(--sumi); text-align: center; position: relative; }
.purchase__card {
  max-width: 720px; margin: 0 auto;
  background: var(--white);
  border-top: 4px solid var(--shu);
  padding: var(--space-6) var(--space-3);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(80, 60, 40, .08);
}
.purchase__price {
  font-family: var(--font-mincho); font-weight: 800; margin: 0 0 var(--space-3);
  font-size: clamp(40px, 10vw, 64px); line-height: 1.2; color: var(--shu);
  font-variant-numeric: tabular-nums;
}
.purchase__price small { font-size: 16px; color: var(--sumi-2); font-weight: 500; margin-left: 6px; }
.info {
  margin: 0 auto var(--space-4); max-width: 480px;
  display: grid; grid-template-columns: auto 1fr; gap: 10px 16px;
  text-align: left; font-size: 15px;
}
.info dt {
  font-family: var(--font-mincho); font-weight: 700; color: var(--white);
  background: var(--shu); padding: 2px 12px; border-radius: 2px; height: fit-content;
  white-space: nowrap; text-align: center;
}
.info dd { margin: 0; color: var(--sumi); }
.purchase__btn { width: 100%; max-width: 400px; font-size: 20px; }
.purchase__note { margin: var(--space-2) 0 0; font-size: 13px; color: var(--sumi-2); }

/* 注意事項 */
.notes { padding: var(--space-8) 16px; background: var(--paper); }
.notes__box {
  max-width: 720px; margin: 0 auto;
  border: 1px solid var(--kinari-2); background: var(--white); border-radius: var(--radius);
  padding: var(--space-3) var(--space-3);
}
.notes h2 {
  font-family: var(--font-mincho); font-size: 18px; margin: 0 0 12px; letter-spacing: .1em;
  display: flex; align-items: center; gap: 8px;
}
.notes h2 svg { width: 20px; height: 20px; color: var(--shu); }
.notes ul { margin: 0; padding-left: 1.2em; font-size: 14px; color: var(--sumi-2); line-height: 1.9; }

/* ===== Sticky CTA (mobile) ===== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  border-top: 2px solid var(--shu);
  box-shadow: 0 -6px 20px rgba(80, 60, 40, .1);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transform: translateY(110%);
  transition: transform .3s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__price { margin: 0; color: var(--shu); font-family: var(--font-mincho); font-weight: 800; font-size: 20px; line-height: 1.2; white-space: nowrap; }
.sticky-cta__price small { display: block; font-size: 11px; color: var(--sumi-2); font-weight: 500; letter-spacing: .1em; }
.sticky-cta .btn { --h: 52px; font-size: 16px; padding: 0 22px; flex: 1; max-width: 240px; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.float { animation: float 5s ease-in-out infinite; transform-origin: 50% 20%; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-8px) rotate(1.5deg); } }
.twinkle { animation: twinkle 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.twinkle:nth-of-type(2) { animation-delay: .8s; }
.twinkle:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
