/* Puchi Melt — ポップ・キュート
   パステル（ラベンダー・ミント・ピーチ）とプラム色。丸い形と弾む動きで、見ているだけで楽しく */
:root {
  --cream: #FFFDF7;
  --cream-2: #FFF6EA;
  --lav: #CDB9F2;
  --lav-2: #F3EDFF;
  --mint: #B9EAD7;
  --mint-2: #E8F8F1;
  --peach: #FFC6B3;
  --peach-2: #FFEEE7;
  --lemon: #FFE9A6;
  --plum: #4B3B5C;
  --plum-2: #6E5A84;
  --text: #4B3B5C;
  --muted: #7C6D8C;
  --line: #EDE4F7;
  --jp: "Kiwi Maru", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --en: "Fredoka", "Kiwi Maru", sans-serif;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 14px 0 -6px rgba(75, 59, 92, .08), 0 18px 34px -20px rgba(75, 59, 92, .35);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--text); font-family: var(--jp); font-size: 16px; line-height: 1.9; letter-spacing: .03em; -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px dashed var(--plum-2); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 8px 14px; background: var(--plum); color: #fff; border-radius: 12px; }
.skip:focus { top: 12px; }
.sp { display: none; }
.container { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: clamp(80px, 10vw, 128px) 0; position: relative; }
.head { margin-bottom: clamp(30px, 4vw, 48px); }
.head--center { text-align: center; }
.head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.head-en { display: inline-block; font-family: var(--en); font-weight: 600; font-size: 15px; letter-spacing: .08em; color: var(--plum-2); background: var(--lav-2); padding: 0 16px; border-radius: 999px; line-height: 2; transform: rotate(-2deg); }
.h2 { font-weight: 500; font-size: clamp(27px, 3.6vw, 40px); line-height: 1.5; margin-top: 12px; }
.note { margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 30px; border-radius: 999px; font-weight: 500; font-size: 16px; text-decoration: none; border: 3px solid var(--plum); cursor: pointer; transition: transform .35s var(--bounce), box-shadow .35s var(--bounce), background .2s; box-shadow: 0 5px 0 var(--plum); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--plum); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--plum); }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: 0 5px 0 var(--plum); }
.btn--plum { background: var(--plum); color: #fff; }
.btn--white { background: #fff; color: var(--plum); }
.btn--full { width: 100%; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 22px; padding: 12px clamp(16px, 3vw, 36px); background: rgba(255, 253, 247, .9); backdrop-filter: blur(10px); }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo svg { width: 44px; height: 44px; }
.logo span { font-family: var(--en); font-weight: 600; font-size: 26px; letter-spacing: .01em; }
.logo b { color: var(--plum-2); font-weight: 600; }
.flame { transform-origin: 50% 100%; transform-box: fill-box; animation: flicker 2.6s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.06, .94) rotate(-4deg); } 60% { transform: scale(.95, 1.06) rotate(3deg); } }
.gnav { display: flex; gap: 4px; margin-left: auto; }
.gnav a { text-decoration: none; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background .2s; }
.gnav a:hover { background: var(--lav-2); }
.cart-btn { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--plum); background: var(--peach); cursor: pointer; box-shadow: 0 4px 0 var(--plum); transition: transform .35s var(--bounce); }
.cart-btn:hover { transform: translateY(-2px) rotate(-6deg); }
.cart-btn svg { width: 24px; height: 24px; }
.cart-btn b { position: absolute; top: -8px; right: -8px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--plum); color: #fff; font-family: var(--en); font-size: 13px; font-weight: 500; display: grid; place-items: center; }
.cart-btn.bump { animation: jelly .6s var(--bounce); }
@keyframes jelly { 30% { transform: scale(1.25, .8); } 50% { transform: scale(.85, 1.15); } 70% { transform: scale(1.06, .95); } }

/* ---------- ヒーロー ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(20px, 4vw, 50px); }
.blob { position: absolute; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; filter: blur(2px); animation: morph 14s ease-in-out infinite; pointer-events: none; }
.blob--1 { width: 420px; height: 420px; background: var(--lav-2); left: -140px; top: -80px; }
.blob--2 { width: 300px; height: 300px; background: var(--mint-2); right: 6%; bottom: 60px; animation-delay: -5s; }
.blob--3 { width: 200px; height: 200px; background: var(--peach-2); left: 38%; top: 10px; animation-delay: -9s; }
@keyframes morph { 0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: translate(0, 0) rotate(0); } 50% { border-radius: 60% 40% 38% 62% / 55% 61% 39% 45%; transform: translate(20px, -16px) rotate(12deg); } }
.hero-inner { position: relative; width: min(1240px, calc(100% - 40px)); margin-inline: auto; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 60px); align-items: center; padding-bottom: clamp(40px, 6vw, 70px); }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; background: #fff; border: 2px solid var(--plum); border-radius: 999px; padding: 4px 16px 4px 4px; box-shadow: 0 3px 0 var(--plum); }
.hero-badge span { font-family: var(--en); font-weight: 600; background: var(--peach); border-radius: 999px; padding: 0 12px; }
.hero h1 { font-weight: 500; font-size: clamp(36px, 5.4vw, 66px); line-height: 1.38; margin-top: 22px; letter-spacing: .02em; }
.w { display: inline-block; }
.js .w { opacity: 0; transform: translateY(30px) scale(.9); animation: pop .8s var(--bounce) forwards; }
.w2 { animation-delay: .1s !important; } .w3 { animation-delay: .2s !important; } .w4 { animation-delay: .3s !important; }
.w4 { background: linear-gradient(transparent 60%, var(--mint) 60%); padding: 0 .1em; }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes popin { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
.hero-lead { margin-top: 20px; color: var(--muted); font-size: 16.5px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 1.15; object-fit: cover; border-radius: 48% 52% 46% 54% / 55% 48% 52% 45%; border: 6px solid #fff; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-1deg); } }
.sticker { position: absolute; display: grid; place-items: center; text-align: center; width: 92px; height: 92px; border-radius: 50%; font-family: var(--en); font-weight: 600; font-size: 15px; line-height: 1.1; border: 3px solid var(--plum); box-shadow: 0 4px 0 var(--plum); }
.sticker--a { background: var(--lemon); top: 6%; left: -10px; transform: rotate(-12deg); animation: wobble 4s ease-in-out infinite; }
.sticker--b { background: var(--mint); bottom: 8%; right: -6px; transform: rotate(10deg); animation: wobble 4s ease-in-out -2s infinite; }
@keyframes wobble { 50% { transform: rotate(4deg) scale(1.05); } }
.marquee { background: var(--plum); color: #fff; overflow: hidden; padding: 12px 0; transform: rotate(-1.5deg); margin: 0 -20px; }
.marquee p { display: flex; gap: 26px; width: max-content; font-family: var(--en); font-size: 22px; font-weight: 500; animation: slide 26s linear infinite; }
.marquee span:nth-child(3n+1) { color: var(--lav); } .marquee span:nth-child(3n+2) { color: var(--mint); } .marquee span:nth-child(3n) { color: var(--peach); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 香り診断 ---------- */
.quiz { background: radial-gradient(circle at 15% 20%, var(--lav-2) 0 120px, transparent 121px), radial-gradient(circle at 88% 78%, var(--peach-2) 0 160px, transparent 161px); }
.quiz-card { max-width: 760px; margin-inline: auto; background: #fff; border: 3px solid var(--plum); border-radius: 36px; box-shadow: 0 8px 0 var(--plum); overflow: hidden; }
.quiz-progress { height: 10px; background: var(--lav-2); }
.quiz-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lav), var(--peach)); border-radius: 0 999px 999px 0; transition: width .6s var(--bounce); }
.quiz-body { padding: clamp(26px, 4vw, 44px); min-height: 360px; }
.q-num { font-family: var(--en); font-weight: 600; color: var(--plum-2); font-size: 15px; }
.q-title { font-size: clamp(21px, 2.6vw, 26px); font-weight: 500; margin-top: 6px; line-height: 1.6; }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.q-opts button { display: flex; align-items: center; gap: 14px; text-align: left; min-height: 78px; padding: 12px 18px; border-radius: 22px; border: 2px solid var(--line); background: var(--cream); cursor: pointer; font-size: 15.5px; line-height: 1.5; transition: transform .3s var(--bounce), border-color .2s, background .2s; animation: popin .5s var(--bounce) both; }
.q-opts button:nth-child(2) { animation-delay: .05s; } .q-opts button:nth-child(3) { animation-delay: .1s; } .q-opts button:nth-child(4) { animation-delay: .15s; }
.q-opts button:hover { transform: translateY(-3px) rotate(-.6deg); border-color: var(--plum-2); background: #fff; }
.q-ic { flex-shrink: 0; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; }
.q-ic svg { width: 28px; height: 28px; fill: none; stroke: var(--plum); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.q-back { margin-top: 20px; background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; font-size: 14px; padding: 0; }
.q-result { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; align-items: center; animation: popin .7s var(--bounce) both; }
.q-result figure { position: relative; }
.q-result img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 32px; }
.q-result .crown { position: absolute; top: -18px; left: -10px; font-family: var(--en); font-weight: 600; background: var(--lemon); border: 3px solid var(--plum); border-radius: 999px; padding: 2px 16px; transform: rotate(-10deg); box-shadow: 0 3px 0 var(--plum); }
.q-type { font-size: 14px; color: var(--muted); }
.q-name { font-size: 26px; font-weight: 500; margin-top: 4px; line-height: 1.4; }
.q-notes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.q-notes li { font-size: 12.5px; background: var(--mint-2); border-radius: 999px; padding: 2px 12px; }
.q-desc { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.q-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.q-actions .btn { min-height: 48px; padding: 0 22px; font-size: 14.5px; }
.q-sub { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.q-sub button { background: none; border: 0; padding: 0; color: var(--plum-2); text-decoration: underline; cursor: pointer; }

/* ---------- ランキング ---------- */
.ranking { background: var(--mint-2); border-radius: 60px 60px 0 0; }
.tabs { display: inline-flex; background: #fff; border-radius: 999px; padding: 5px; border: 2px solid var(--plum); }
.tabs button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-size: 14.5px; transition: background .2s; }
.tabs button[aria-selected="true"] { background: var(--plum); color: #fff; }
.rank-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rank-item { position: relative; background: #fff; border-radius: 30px; padding: 16px 16px 20px; box-shadow: var(--shadow); animation: popin .55s var(--bounce) both; }
.rank-item:nth-child(2) { animation-delay: .06s; } .rank-item:nth-child(3) { animation-delay: .12s; }
.rank-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; }
.medal { position: absolute; top: 4px; left: 4px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-family: var(--en); font-weight: 600; font-size: 24px; border: 3px solid var(--plum); box-shadow: 0 3px 0 var(--plum); z-index: 1; }
.medal.r1 { background: var(--lemon); } .medal.r2 { background: #E8E6EF; } .medal.r3 { background: var(--peach); }
.rank-item h3 { font-weight: 500; font-size: 18px; margin-top: 12px; }
.rank-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.rank-meta span { font-size: 13px; color: var(--muted); }
.rank-meta b { font-family: var(--en); font-weight: 500; font-size: 19px; }
.rank-item .mini-add { margin-top: 12px; }
.rank-rest { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 6px; }
.rank-rest li { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .7); border-radius: 18px; padding: 8px 12px; font-size: 14.5px; animation: popin .5s var(--bounce) both; }
.rank-rest li > span { font-family: var(--en); font-weight: 600; width: 28px; text-align: center; }
.rank-rest img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }

/* ---------- ショップ ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chips button { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--plum); background: #fff; cursor: pointer; font-size: 14.5px; transition: background .2s, transform .3s var(--bounce); }
.chips button:hover { transform: translateY(-2px); }
.chips button[aria-pressed="true"] { background: var(--plum); color: #fff; }
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; }
.item { background: #fff; border-radius: 28px; padding: 12px 12px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .4s var(--bounce); animation: popin .5s var(--bounce) both; }
.item:hover { transform: translateY(-6px) rotate(-.8deg); }
.item figure { position: relative; }
.item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.item .tag { position: absolute; left: 8px; top: 8px; font-family: var(--en); font-weight: 600; font-size: 12px; background: var(--lemon); border-radius: 999px; padding: 0 10px; border: 2px solid var(--plum); }
.item h3 { font-weight: 500; font-size: 17px; margin-top: 12px; line-height: 1.5; }
.item-notes { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.item-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.item-foot b { font-family: var(--en); font-weight: 500; font-size: 20px; }
.mini-add { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--plum); background: var(--peach); cursor: pointer; font-size: 13.5px; box-shadow: 0 3px 0 var(--plum); transition: transform .3s var(--bounce); }
.mini-add:hover { transform: translateY(-2px); }
.mini-add:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--plum); }

/* ---------- ギフト ---------- */
.gift { background: var(--lav-2); border-radius: 60px; margin: 0 clamp(8px, 2vw, 24px); }
.gift-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.gift-intro p:not(.head-en) { margin-top: 16px; color: var(--muted); }
.gift-photo { margin-top: 24px; }
.gift-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 30px; border: 5px solid #fff; transform: rotate(2deg); box-shadow: var(--shadow); }
.builder { background: #fff; border-radius: 34px; padding: clamp(22px, 3vw, 36px); border: 3px solid var(--plum); box-shadow: 0 8px 0 var(--plum); }
.b-step + .b-step { margin-top: 26px; }
.b-label { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 17px; margin-bottom: 12px; }
.b-label > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--plum); color: #fff; font-family: var(--en); font-size: 15px; }
.b-label small { font-size: 13px; color: var(--muted); }
.b-size { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.b-size input, .ws-courses input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.b-size span { display: flex; flex-direction: column; align-items: center; padding: 12px; border-radius: 22px; border: 2px solid var(--line); cursor: pointer; font-size: 14px; line-height: 1.5; transition: border-color .2s, background .2s; }
.b-size b { font-family: var(--en); font-size: 26px; font-weight: 600; }
.b-size em { font-style: normal; font-size: 12px; color: var(--muted); }
.b-size input:checked + span { border-color: var(--plum); background: var(--peach-2); }
.b-size input:focus-visible + span, .ws-courses input:focus-visible + span { outline: 3px dashed var(--plum-2); outline-offset: 3px; }
.b-box { display: flex; gap: 10px; padding: 14px; border-radius: 24px; background: repeating-linear-gradient(45deg, var(--cream-2) 0 10px, #fff 10px 20px); border: 2px dashed var(--lav); min-height: 116px; }
.slot { flex: 1; min-width: 0; aspect-ratio: 1; max-width: 110px; border-radius: 20px; border: 2px dashed var(--lav); display: grid; place-items: center; color: var(--muted); font-size: 12px; background: rgba(255, 255, 255, .7); position: relative; }
.slot.is-full { border-style: solid; border-color: var(--plum); padding: 0; overflow: hidden; animation: drop .5s var(--bounce); }
@keyframes drop { from { transform: translateY(-24px) scale(.8); } }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--plum); background: #fff; cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.b-picks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; }
.b-picks button { padding: 4px; border-radius: 18px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-size: 11.5px; line-height: 1.3; transition: transform .3s var(--bounce), border-color .2s; }
.b-picks button:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--plum-2); }
.b-picks button:disabled { opacity: .4; cursor: default; }
.b-picks img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; margin-bottom: 4px; }
.ribbons { display: flex; flex-wrap: wrap; gap: 8px; }
.ribbons button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px 0 8px; border-radius: 999px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; }
.ribbons button::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid rgba(75, 59, 92, .2); }
.ribbons button[aria-checked="true"] { border-color: var(--plum); background: var(--cream); }
.b-msg { display: block; margin-top: 14px; }
.b-msg span { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.b-msg input, .f input, .f select { width: 100%; min-height: 50px; padding: 0 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--cream); font-size: 16px; }
.b-msg input:focus, .f input:focus, .f select:focus { outline: none; border-color: var(--plum-2); background: #fff; }
.b-total { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 2px dashed var(--line); }
.b-total p { font-size: 15px; }
.b-total b { font-family: var(--en); font-weight: 600; font-size: 30px; margin-left: 6px; }

/* ---------- ワークショップ ---------- */
.ws-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(26px, 4vw, 56px); align-items: start; }
.ws-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 40px 40px 40px 120px; box-shadow: var(--shadow); }
.ws-form { background: #fff; border-radius: 34px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.ws-courses { display: grid; gap: 8px; margin-bottom: 22px; }
.ws-courses label { cursor: pointer; display: block; }
.ws-courses span { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; padding: 12px 16px; border-radius: 20px; border: 2px solid var(--line); transition: border-color .2s, background .2s; }
.ws-courses i { grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; background: var(--c); display: grid; place-items: center; font-style: normal; font-family: var(--en); font-weight: 600; }
.ws-courses b { font-weight: 500; font-size: 16px; }
.ws-courses small { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.ws-courses em { grid-column: 3; grid-row: 1 / 3; font-style: normal; font-family: var(--en); font-weight: 500; font-size: 18px; }
.ws-courses input:checked + span { border-color: var(--plum); background: var(--cream); }
.ws-dates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ws-dates button { padding: 8px 4px; border-radius: 18px; border: 2px solid var(--line); background: #fff; cursor: pointer; line-height: 1.4; font-size: 12px; color: var(--muted); }
.ws-dates button b { display: block; font-family: var(--en); font-weight: 600; font-size: 18px; color: var(--text); }
.ws-dates button em { display: block; font-style: normal; font-size: 11px; color: var(--plum-2); }
.ws-dates button.few em { color: #C2410C; }
.ws-dates button[aria-checked="true"] { border-color: var(--plum); background: var(--plum); color: #fff; }
.ws-dates button[aria-checked="true"] b, .ws-dates button[aria-checked="true"] em { color: #fff; }
.ws-dates button:disabled { opacity: .45; cursor: default; text-decoration: line-through; }
.ws-row { display: grid; grid-template-columns: .5fr 1fr; gap: 12px; margin-top: 18px; }
.f { display: block; margin-bottom: 14px; }
.f > span { display: block; font-size: 14px; margin-bottom: 6px; }
.f .is-invalid { border-color: #D9534F; }
.f select { appearance: none; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234B3B5C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center / 12px no-repeat; padding-right: 36px; cursor: pointer; }
.err { display: block; min-height: 1em; color: #C2410C; font-size: 12.5px; margin-top: 4px; line-height: 1.6; }
.ws-total { text-align: right; font-size: 15px; margin: 4px 0 14px; }
.ws-total b { font-family: var(--en); font-weight: 600; font-size: 24px; }
.ws-done { text-align: center; padding: 20px 0; }
.ws-done:focus { outline: none; }
.done-icon { width: 90px; height: 90px; margin: 0 auto; }
.ws-done h3 { font-weight: 500; font-size: 22px; margin-top: 12px; }
.ws-done [data-ws-summary] { margin-top: 10px; }

/* ---------- 作り手 ---------- */
.maker-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.maker-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 40px 40px; border: 6px solid #fff; box-shadow: var(--shadow); }
.maker-msg { margin-top: 18px; }
.maker-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.maker-facts li { background: var(--peach-2); border-radius: 22px; padding: 10px 18px; font-size: 13.5px; line-height: 1.5; }
.maker-facts b { display: block; font-weight: 500; font-size: 16px; }
.maker-sub { margin-top: 24px; }
.maker-sub img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 30px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--plum); color: rgba(255, 255, 255, .86); text-align: center; padding: 60px 20px 30px; border-radius: 60px 60px 0 0; font-size: 14px; }
.f-logo { font-family: var(--en); font-weight: 600; font-size: 34px; color: #fff; margin-bottom: 8px; }
.f-logo b { color: var(--lav); font-weight: 600; }
.demo-note { max-width: 680px; margin: 26px auto 0; padding-top: 18px; border-top: 1px dashed rgba(255, 255, 255, .3); font-size: 12.5px; opacity: .8; }
.copy { font-family: var(--en); font-size: 13px; margin-top: 12px; opacity: .6; }

/* ---------- カート ---------- */
.drawer-bg { position: fixed; inset: 0; z-index: 90; background: rgba(75, 59, 92, .4); }
.drawer { position: fixed; z-index: 91; top: 10px; right: 10px; bottom: 10px; width: min(420px, calc(100% - 20px)); background: var(--cream); border-radius: 30px; border: 3px solid var(--plum); display: flex; flex-direction: column; transform: translateX(calc(100% + 30px)); transition: transform .55s var(--bounce); overflow: hidden; }
.drawer.is-open { transform: none; }
.drawer:focus { outline: none; }
.dr-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--lav); }
.dr-head p { font-weight: 500; font-size: 18px; }
.dr-head button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--plum); background: #fff; font-size: 20px; cursor: pointer; line-height: 1; }
.dr-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.dr-empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 14.5px; }
.ci { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 2px dashed var(--line); }
.ci img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.ci-name { font-size: 14.5px; line-height: 1.5; }
.ci-sub { font-size: 12px; color: var(--muted); }
.ci-price { font-family: var(--en); font-weight: 500; }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--plum); background: #fff; cursor: pointer; line-height: 1; font-size: 14px; padding: 0; }
.qty button:disabled { opacity: .3; cursor: default; }
.qty span { min-width: 24px; text-align: center; font-family: var(--en); }
.ci-del { display: block; background: none; border: 0; padding: 0; font-size: 12px; color: var(--muted); text-decoration: underline; cursor: pointer; margin-top: 4px; }
.dr-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); background: #fff; border-top: 2px dashed var(--line); }
.dr-row { display: flex; justify-content: space-between; font-size: 14px; line-height: 2; }
.dr-row b { font-family: var(--en); font-weight: 500; }
.dr-free { font-size: 12.5px; color: var(--plum-2); margin: 4px 0 10px; }
.dr-total b { font-size: 22px; }
.dr-done { text-align: center; padding: 50px 10px; }
.dr-done h3 { font-weight: 500; font-size: 19px; margin-top: 10px; }
.dr-done p { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.toast { position: fixed; z-index: 95; left: 50%; bottom: 24px; transform: translate(-50%, 30px) scale(.9); background: var(--plum); color: #fff; padding: 12px 24px; border-radius: 999px; font-size: 14px; opacity: 0; visibility: hidden; transition: opacity .3s, transform .45s var(--bounce), visibility .3s; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }

.js .reveal { opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .8s ease, transform .8s var(--bounce); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1060px) { .gnav { display: none; } .cart-btn { margin-left: auto; } .shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 880px) {
  .hero-inner, .gift-grid, .ws-grid, .maker-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 560px; justify-self: center; width: 100%; }
  .rank-list { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .shop-grid { grid-template-columns: 1fr 1fr; }
  .q-result { grid-template-columns: 1fr; }
  .q-result figure { max-width: 320px; }
  .maker-photo { max-width: 340px; }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .sp { display: inline; }
  .logo span { font-size: 22px; }
  .q-opts { grid-template-columns: 1fr; }
  .q-opts button { min-height: 64px; }
  .rank-list { grid-template-columns: 1fr; }
  .rank-item { display: grid; grid-template-columns: 110px 1fr; gap: 0 14px; align-items: center; padding: 12px; }
  .rank-item img { grid-row: span 3; }
  .rank-item h3 { margin-top: 0; }
  .rank-item .mini-add { margin-top: 6px; justify-self: start; }
  .medal { width: 44px; height: 44px; font-size: 18px; top: -6px; left: -6px; }
  .rank-rest { grid-template-columns: 1fr; }
  .tabs button { padding: 0 12px; font-size: 13.5px; }
  .shop-grid { gap: 14px 10px; }
  .item { border-radius: 22px; padding: 8px 8px 12px; }
  .item h3 { font-size: 15px; }
  .item-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .item-foot b { font-size: 18px; }
  .gift { border-radius: 40px; }
  .b-picks { grid-template-columns: repeat(3, 1fr); }
  .ws-dates { grid-template-columns: repeat(3, 1fr); }
  .ws-row { grid-template-columns: 1fr; gap: 0; }
  .sticker { width: 72px; height: 72px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .w { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .item, .drawer, .toast, .quiz-progress i { transition: none; }
}

/* ---- 日本語の改行（全サイト共通・2026-10-17 追加）----
   見出し・ボタンは文節で折り返し（Chrome/Edge）、本文は最後の行に1〜2文字だけ残るのを防ぐ。
   :where() で詳細度を0にしているので、各サイトの個別指定が常に優先される */
:where(h1, h2, h3, h4, h5, h6, dt, th, figcaption, button, label, [class*="lead"]) { word-break: auto-phrase; overflow-wrap: anywhere; text-wrap: balance; }
:where(p, li, dd, td, blockquote) { text-wrap: pretty; line-break: strict; }
:where(time, .nw) { white-space: nowrap; }

/* ---- フッターのナビと営業情報（2026-10-17 追加）---- 色と書体はフッターから受け継ぐ */
.pf-fnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 28px; margin: 26px auto 0; padding: 0 16px; }
.pf-fnav a { padding: 6px 0; font-size: 13px; letter-spacing: .12em; text-decoration: none; color: inherit; opacity: .82; transition: opacity .2s; }
.pf-fnav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.pf-finfo { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; margin: 12px auto 0; padding: 0 16px; font-size: 12.5px; line-height: 1.8; opacity: .72; }
.pf-finfo span { white-space: nowrap; }
@media (max-width: 600px) { .pf-fnav { gap: 0 20px; } .pf-finfo { flex-direction: column; align-items: center; gap: 0; } .pf-finfo span { white-space: normal; text-wrap: balance; text-align: center; } }
@media (max-width: 560px) { .hero-badge { font-size: 12px; letter-spacing: .02em; white-space: nowrap; max-width: 100%; } }

/* 購入手続きのお名前・メール（管理画面の「ご注文」に届く）と品切れ */
.co-f { display: grid; gap: 8px; margin: 12px 0 0; }
.co-f label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; }
.co-f input { width: 100%; min-height: 44px; padding: 8px 12px; border: 2px solid #E6DDF6; border-radius: 14px; background: #fff; color: inherit; font-size: 16px; }
.co-f input.is-invalid { border-color: #E5534B; }
.co-err { color: #D2453D; font-size: 12px; min-height: 1em; }
.mini-add:disabled { opacity: .5; cursor: not-allowed; }
