/* 063 pipi bijou ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #fff7e0;
  --c-yellow: #ffd43b;
  --c-orange: #ff8a2a;
  --c-cream: #ffe9b8;
  --c-ink: #3a2414;
  --c-accent-text: #b04a00;
  --c-text: #374151;
  --c-sub: #4b5563;
  --font: "Kosugi Maru", sans-serif;
  --font-ja: "Hachi Maru Pop", "Kosugi Maru", sans-serif;
  --font-en: "Sniglet", "Kosugi Maru", sans-serif;
  --line: 3px solid var(--c-ink);
  --shadow: 6px 6px 0 var(--c-ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.9; color: var(--c-text); background: var(--c-bg); }
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }
strong { color: var(--c-ink); background: linear-gradient(transparent 60%, var(--c-yellow) 60%); font-weight: 400; }

.en { font-family: var(--font-en); font-weight: 800; font-size: 17px; letter-spacing: .06em; color: var(--c-accent-text); }
.title { font-family: var(--font-ja); font-size: clamp(30px, 6vw, 52px); line-height: 1.45; color: var(--c-ink); margin: 4px 0 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: var(--line); border-radius: 999px; font-family: var(--font); font-size: 16px; text-decoration: none; color: var(--c-ink); box-shadow: 4px 4px 0 var(--c-ink); white-space: nowrap; flex: none; transition: transform .2s, box-shadow .2s; }
.btn:hover, .btn:focus-visible { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--c-ink); }
.btn--orange { background: var(--c-orange); }
.btn--ink { background: var(--c-ink); color: #fff; }
.btn--white { background: #fff; }
.btn--lg { min-height: 60px; padding: 0 36px; font-size: 18px; }

/* ===== ヘッダー ===== */
.header { position: sticky; top: 0; z-index: 50; background: var(--c-bg); border-bottom: var(--line); }
.header__inner { display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 20px; max-width: 1280px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 8px; min-height: 48px; text-decoration: none; font-family: var(--font-en); font-weight: 800; font-size: 26px; color: var(--c-ink); white-space: nowrap; flex: none; }
.logo__star { width: 26px; height: 26px; fill: var(--c-yellow); stroke: var(--c-ink); stroke-width: 2; stroke-linejoin: round; }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 18px; }
@media (min-width: 1080px) {
  .header__inner { height: 80px; padding: 0 40px; gap: 32px; }
  .gnav { display: flex; gap: 28px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--c-ink); font-size: 16px; }
  .gnav a:hover { color: var(--c-accent-text); }
  .header__btn { margin-left: 0; }
}

/* スマホのメニュー */
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: var(--line); border-radius: 50%; background: var(--c-yellow); }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu:not([open]) .spmenu__nav { display: none; } /* 閉じている間は箱を作らない（閉じた中身の位置が右にはみ出して数えられるため） */
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 20px; height: 3px; border-radius: 3px; background: var(--c-ink); position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -7px; } .spmenu__bar::after { top: 7px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); background: #fff; border: var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 8px 20px; display: flex; flex-direction: column; }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; text-decoration: none; color: var(--c-ink); font-family: var(--font-ja); font-size: 18px; border-bottom: 2px dashed var(--c-cream); }
.spmenu__nav a:last-child { border-bottom: 0; }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== 演出①：コラージュ（A09） ===== */
.hero { position: relative; overflow: hidden; background: var(--c-bg); }
.hero__stage { position: relative; min-height: max(760px, calc(100svh - 68px)); max-width: 1440px; margin: 0 auto; }
.hero__copy { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: inherit; padding: 230px 20px 250px; }
.hero__en { font-family: var(--font-en); font-weight: 800; font-size: 18px; color: var(--c-accent-text); letter-spacing: .06em; }
.hero__title { font-family: var(--font-ja); font-size: clamp(56px, 15vw, 128px); line-height: 1.2; color: var(--c-ink); text-shadow: 4px 4px 0 var(--c-yellow); margin: 8px 0 16px; }
.hero__lead { font-size: 16px; color: var(--c-ink); background: rgba(255, 247, 224, .9); border-radius: 12px; padding: 4px 10px; margin-bottom: 24px; }

/* 重ねる物（位置はスマホが基本。PCで広げる） */
.hero__stage > .deco, .hero__stage > .pc, .hero__stage > .cut, .hero__stage > .sticker { position: absolute; z-index: 2; }
.deco--sun { width: 46vw; max-width: 380px; aspect-ratio: 1; border-radius: 50%; background: var(--c-yellow); top: 2%; left: -12%; }
.deco--ring { width: 30vw; max-width: 240px; aspect-ratio: 1; border-radius: 50%; border: 10px solid var(--c-orange); bottom: 16%; right: -6%; }
.deco--dots { display: none; width: 40vw; max-width: 300px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(var(--c-orange) 3px, transparent 3.5px) 0 0 / 18px 18px; top: 34%; right: 4%; opacity: .55; }
.deco--blob { width: 42vw; max-width: 340px; aspect-ratio: 1.2; border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; background: var(--c-cream); bottom: 3%; left: 6%; }
.pc { overflow: hidden; border: var(--line); box-shadow: var(--shadow); background: var(--c-cream); }
.pc img { width: 100%; height: 100%; object-fit: cover; }
.pc--flower { width: 30vw; max-width: 230px; aspect-ratio: 1; border-radius: 50%; top: 3%; right: 5%; }
.pc--hand { width: 30vw; max-width: 250px; aspect-ratio: 3 / 4; border-radius: 999px 999px 32px 32px; bottom: 3%; right: 6%; }
.cut { filter: drop-shadow(5px 6px 0 rgba(58, 36, 20, .25)); }
.cut--ring { width: 36vw; max-width: 280px; top: 8%; left: 2%; }
.cut--earring { width: 38vw; max-width: 300px; bottom: 2%; left: 2%; }
.cut--necklace { width: 26vw; max-width: 220px; bottom: 15%; left: 36%; display: none; }
.sticker { font-family: var(--font-en); font-weight: 800; color: var(--c-ink); text-align: center; line-height: 1.05; }
.sticker--star { width: 44px; fill: var(--c-yellow); stroke: var(--c-ink); stroke-width: 1.6; stroke-linejoin: round; top: 47%; right: 5%; }
.sticker--heart { width: 38px; fill: var(--c-orange); stroke: var(--c-ink); stroke-width: 1.6; top: 30%; left: 5%; }
.sticker--new { top: 21%; left: 30%; background: #fff; border: var(--line); border-radius: 18px; padding: 6px 14px; font-size: 20px; transform: rotate(-8deg); }
.sticker--new::after { content: ""; position: absolute; left: 14px; bottom: -11px; width: 14px; height: 14px; background: #fff; border-right: var(--line); border-bottom: var(--line); transform: rotate(45deg); }
.sticker--hand { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--c-orange); border: var(--line); font-size: 17px; bottom: 13%; left: 40%; transform: rotate(12deg); }
@media (min-width: 768px) {
  .hero__copy { padding: 160px 20px; }
  .deco--sun { left: -4%; top: -6%; }
  .deco--dots { display: block; }
  .pc--flower { top: 8%; right: 8%; }
  .pc--hand { bottom: 6%; right: 4%; }
  .cut--ring { top: 14%; left: 6%; }
  .cut--earring { bottom: 4%; left: 8%; }
  .cut--necklace { display: block; top: 30%; left: auto; right: 26%; bottom: auto; }
  .sticker--new { top: 12%; left: 34%; }
  .sticker--star { top: 70%; right: 30%; }
  .sticker--hand { bottom: auto; top: 40%; right: auto; left: 22%; }
  .sticker--heart { top: auto; bottom: 24%; left: 40%; }
}
@media (min-width: 1080px) {
  .cut--necklace { top: 26%; right: 25%; }
  .deco--dots { top: 48%; right: 12%; }
  .pc--hand { right: 7%; }
}

/* ===== F02：写真の後ろに色の板 ===== */
.stack { position: relative; }
.stack__photo { position: relative; z-index: 3; overflow: hidden; border: var(--line); border-radius: 32px; background: var(--c-cream); }
.stack__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.stack__photo--tall img { aspect-ratio: 4 / 5; }
.stack__photo--round { border-radius: 50%; }
.plate { position: absolute; inset: 0; border: var(--line); border-radius: 32px; }
.plate--1 { z-index: 2; background: var(--c-yellow); transform: translate(16px, 16px); }
.plate--2 { z-index: 1; background: var(--c-orange); transform: translate(32px, 32px); }
.plate--3 { z-index: 0; background: var(--c-cream); transform: translate(-12px, 40px); }
.stack--b .plate { border-radius: 50%; }
.stack--b .plate--1 { transform: translate(-18px, 14px); }
.stack--b .plate--3 { transform: translate(26px, 30px); background: var(--c-orange); }

/* ===== 工房のこと ===== */
.about { padding: 96px 20px 112px; }
.about__inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 64px; }
.about__inner > * { min-width: 0; }
.stack--about { width: min(100%, 460px); margin: 0 auto; padding-right: 32px; }
.about__text p + p { margin-top: 16px; }
/* 色の板はスクロールで下にずれるので、文字を板より手前に置き、スマホでは間を広く取る（本物の写真の点検で見出しが板に隠れた） */
.about__text { position: relative; z-index: 5; }
@media (max-width: 899px) {
  .about__inner { gap: 120px; }
  .stack--about { width: calc(100% - 44px); max-width: 460px; margin: 0 auto 0 12px; }
}
@media (min-width: 900px) {
  .about { padding: 140px 40px 160px; }
  .about__inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 96px; }
}

/* ===== 新作（Swiper） ===== */
.newin { padding: 96px 0 104px; background: var(--c-yellow); border-top: var(--line); border-bottom: var(--line); overflow: hidden; }
.newin .en { color: var(--c-ink); }
.newin__head { padding: 0 20px; max-width: 1200px; margin: 0 auto 40px; }
.newin__lead { color: var(--c-ink); }
.newin__swiper { padding: 0 20px 12px; max-width: 1240px; margin: 0 auto; overflow: visible; }
.item { background: #fff; border: var(--line); border-radius: 32px; box-shadow: var(--shadow); padding: 20px 22px 26px; height: auto; }
.item__pic { border-radius: 24px; border: var(--line); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; margin-bottom: 16px; }
.item--yellow .item__pic { background: var(--c-cream); }
.item--orange .item__pic { background: var(--c-orange); }
.item--cream .item__pic { background: var(--c-yellow); }
.item__pic img { width: 82%; height: 82%; object-fit: contain; }
.item__pic--photo img { width: 100%; height: 100%; object-fit: cover; }
.item__tag { display: inline-block; font-family: var(--font-en); font-weight: 800; font-size: 15px; color: var(--c-ink); background: var(--c-yellow); border: 2px solid var(--c-ink); border-radius: 999px; padding: 0 12px; }
.item h3 { font-family: var(--font-ja); font-size: 24px; color: var(--c-ink); margin: 8px 0 6px; }
.item__price { margin-top: 10px; font-weight: 400; font-size: 19px; color: var(--c-ink); }
/* Swiper が動く前（JSなし）は、指で横に送れる並び */
.swiper:not(.swiper-initialized) .swiper-wrapper { overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 16px; }
.swiper:not(.swiper-initialized) .swiper-slide { width: 78%; max-width: 360px; scroll-snap-align: start; }
.newin__ctrl { display: none; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 24px 20px 0; }
.is-swiper .newin__ctrl { display: flex; }
.circle-btn { width: 52px; height: 52px; border-radius: 50%; border: var(--line); background: #fff; box-shadow: 3px 3px 0 var(--c-ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.circle-btn svg { width: 24px; height: 24px; fill: none; stroke: var(--c-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.circle-btn.swiper-button-disabled { opacity: .4; cursor: default; }
.newin__dots { display: flex; justify-content: center; width: auto !important; }
.newin__dots .swiper-pagination-bullet { width: 44px; height: 44px; margin: 0 !important; background: transparent; opacity: 1; display: grid; place-items: center; border-radius: 50%; }
.newin__dots .swiper-pagination-bullet::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--c-ink); background: #fff; transition: transform .2s, background-color .2s; }
.newin__dots .swiper-pagination-bullet-active::before { background: var(--c-orange); transform: scale(1.3); }
.pause-btn { min-height: 44px; padding: 0 18px; border: var(--line); border-radius: 999px; background: #fff; font-family: var(--font); font-size: 15px; color: var(--c-ink); cursor: pointer; }

/* ===== つけかた ===== */
.style { padding: 104px 20px 120px; max-width: 1180px; margin: 0 auto; }
.style__head { text-align: center; margin-bottom: 48px; }
.style__grid { display: grid; gap: 72px; }
.style__grid > * { min-width: 0; }
.style__item { display: grid; gap: 72px; justify-items: center; }
.style__item .stack { width: min(86%, 380px); }
.bubble { position: relative; z-index: 4; background: #fff; border: var(--line); border-radius: 24px; padding: 16px 22px; color: var(--c-ink); max-width: 360px; }
.bubble::before { content: ""; position: absolute; top: -12px; left: 40px; width: 20px; height: 20px; background: #fff; border-left: var(--line); border-top: var(--line); transform: rotate(45deg); }
@media (min-width: 900px) {
  .style__grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .style__item--b { margin-top: 120px; }
}

/* ===== 3つのやくそく ===== */
.promise { padding: 96px 20px 112px; background: #fff; border-top: var(--line); text-align: center; }
.promise__list { max-width: 1100px; margin: 24px auto 0; display: grid; gap: 24px; text-align: left; }
.promise__list li { background: var(--c-bg); border: var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 28px 24px; }
.promise__list svg { width: 64px; height: 64px; padding: 8px; border-radius: 50%; background: var(--c-yellow); border: var(--line); fill: none; stroke: var(--c-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.promise__list h3 { font-family: var(--font-ja); font-size: 23px; color: var(--c-ink); margin: 12px 0 6px; }
@media (min-width: 768px) { .promise__list { grid-template-columns: repeat(3, 1fr); } }

/* ===== お店 ===== */
.shop { padding: 96px 20px 112px; background: var(--c-orange); border-top: var(--line); }
.shop .en { color: var(--c-ink); }
.shop__inner { max-width: 880px; margin: 0 auto; text-align: center; }
.shop__lead { color: var(--c-ink); }
.shop__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 32px 0 40px; }
.shop__info { margin: 0; background: #fff; border: var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 12px 24px; text-align: left; }
.shop__info div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 2px dashed var(--c-cream); }
.shop__info div:last-child { border-bottom: 0; }
.shop__info dt { font-family: var(--font-ja); color: var(--c-ink); }
.shop__info dd { margin: 0; }
@media (min-width: 768px) { .shop__info div { grid-template-columns: 10em 1fr; gap: 16px; } }

/* ===== フッター ===== */
.footer { background: var(--c-ink); color: #fff7e0; text-align: center; padding: 64px 20px 32px; font-size: 15px; }
.footer__logo { font-family: var(--font-en); font-weight: 800; font-size: 32px; color: var(--c-yellow); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; margin: 16px 0 24px; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
