/* 093 しっぽ商店 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #fffaf0;
  --c-cream: #fff1d6;
  --c-orange: #ff8a3d;
  --c-yellow: #ffcd3c;
  --c-ink: #3d2614;
  --c-accent-text: #ad4600;
  --c-text: #374151;
  --c-sub: #4b5563;
  --font: "Zen Maru Gothic", sans-serif;
  --font-head: "RocknRoll One", "Zen Maru Gothic", sans-serif;
  --font-en: "Gluten", sans-serif;
  --line: 3px solid 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-weight: 500; font-size: 16px; line-height: 1.9; color: var(--c-text); background: var(--c-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.en { font-family: var(--font-en); font-weight: 700; font-size: 20px; color: var(--c-accent-text); }
.h2 { font-family: var(--font-head); font-size: clamp(30px, 4.6vw, 48px); line-height: 1.35; color: var(--c-ink); margin: 0 0 28px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: var(--line); border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; flex: none; box-shadow: 4px 4px 0 var(--c-ink); transition: transform .15s, box-shadow .15s, background-color .2s; }
.btn:hover { transform: translate(2px, 2px) rotate(-2deg); box-shadow: 2px 2px 0 var(--c-ink); background: var(--c-yellow); }
.btn:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 3px; }
.btn--orange { background: var(--c-orange); color: var(--c-ink); }
.btn--lg { min-height: 64px; padding: 0 38px; font-size: 19px; }

/* ===== ヘッダー ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 240, .95); border-bottom: var(--line); }
.header__inner { display: flex; align-items: center; gap: 10px; height: 68px; padding: 0 10px 0 20px; max-width: 1280px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 6px; min-height: 48px; font-family: var(--font-head); font-size: 28px; color: var(--c-ink); text-decoration: none; white-space: nowrap; flex: none; }
.logo__paw { fill: var(--c-orange); }
.gnav { display: none; }
@media (max-width: 420px) { .logo { font-size: 24px; } .header__btn { padding: 0 12px; } }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 16px; box-shadow: 3px 3px 0 var(--c-ink); }
@media (min-width: 1080px) {
  .header__inner { padding: 0 32px; gap: 24px; }
  .gnav { display: flex; gap: 24px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; color: var(--c-ink); }
  .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; min-width: 44px; min-height: 44px; color: var(--c-ink); }
.spmenu summary::-webkit-details-marker { 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: 22px; height: 3px; border-radius: 3px; background: currentColor; 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: 0; right: 0; top: 100%; background: var(--c-bg); border-bottom: var(--line); padding: 8px 20px 20px; display: flex; flex-direction: column; }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; color: var(--c-ink); font-weight: 700; text-decoration: none; border-bottom: 2px dashed var(--c-yellow); }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== メインビジュアル（A10・コラージュ） ===== */
.hero { position: relative; height: 780px; overflow: hidden; display: grid; place-items: center; background: var(--c-yellow); border-bottom: var(--line);
  background-image: radial-gradient(circle, rgba(255, 255, 255, .55) 3px, transparent 3.5px); background-size: 30px 30px; }
.cards { position: absolute; inset: 0; }
.pc {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); transform: rotate(var(--r));
  display: grid; place-items: center; background: #fff; border: var(--line); border-radius: 20px; padding: 8px; box-shadow: 5px 5px 0 var(--c-ink);
}
.pc img { width: 100%; height: auto; }
.pc span { font-family: var(--font-head); color: var(--c-ink); text-align: center; line-height: 1.2; }
.pc svg { width: 70%; fill: var(--c-orange); stroke: var(--c-ink); stroke-width: 4; overflow: visible; }
.pc--dog    { --x: 2%;  --y: 2%;  --w: 27%; --r: -8deg; background: var(--c-cream); }
.pc--toy    { --x: 34%; --y: 1%;  --w: 24%; --r: 6deg; }
.pc--new    { --x: 63%; --y: 4%;  --w: 74px; --r: 12deg; aspect-ratio: 1; border-radius: 50%; background: var(--c-orange); }
.pc--new span { font-family: var(--font-en); font-size: 18px; }
.pc--cat    { --x: 76%; --y: 3%;  --w: 22%; --r: 7deg; background: var(--c-cream); }
.pc--bed    { --x: 74%; --y: 74%; --w: 26%; --r: -6deg; }
.pc--paw    { --x: 84%; --y: 52%; --w: 60px; --r: 14deg; aspect-ratio: 1; border-radius: 50%; display: none; }
.pc--bowl   { --x: 40%; --y: 79%; --w: 26%; --r: 8deg; background: var(--c-cream); }
.pc--bone   { --x: 4%;  --y: 58%; --w: 84px; --r: -18deg; border-radius: 999px; padding: 12px 10px; display: none; }
.pc--bone svg { width: 100%; fill: #fff; }
.pc--kitten { --x: 3%;  --y: 75%; --w: 33%; --r: -5deg; padding: 8px 8px 4px; }
.pc--kitten img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--c-cream); }
.pc--kitten span { font-size: 15px; padding-top: 4px; }
.pc--wan    { --x: 66%; --y: 20%; --w: 84px; --r: -10deg; border-radius: 50% 50% 50% 8px; background: #fff; display: none; }
.pc--wan span { font-size: 20px; padding: 8px 0; }
.pc--ship   { --x: 2%;  --y: 26%; --w: 88px; --r: -12deg; aspect-ratio: 1; border-radius: 50%; background: #fff; display: none; }
.pc--ship span { font-family: var(--font); font-weight: 700; font-size: 15px; }
.pc--ship b { font-family: var(--font-head); font-weight: 400; font-size: 18px; }
.hero__center { position: relative; z-index: 2; text-align: center; padding: 28px 22px; width: min(88%, 560px); background: var(--c-bg); border: var(--line); border-radius: 40px; box-shadow: 8px 8px 0 var(--c-ink); }
.hero__en { font-family: var(--font-en); font-weight: 700; font-size: 20px; color: var(--c-accent-text); }
.hero__title { font-family: var(--font-head); font-size: clamp(46px, 7vw, 88px); line-height: 1.15; color: var(--c-ink); margin: 4px 0 12px; }
.hero__lead { font-weight: 700; margin-bottom: 20px; }
@media (min-width: 900px) {
  .hero { height: min(880px, calc(100vh - 68px)); min-height: 720px; }
  .hero__center { padding: 44px 40px; }
  .pc--dog    { --x: 3%;  --y: 5%;  --w: 14%; }
  .pc--toy    { --x: 22%; --y: 3%;  --w: 12%; }
  .pc--new    { --x: 42%; --y: 4%;  --w: 96px; }
  .pc--new span { font-size: 24px; }
  .pc--cat    { --x: 60%; --y: 2%;  --w: 11%; }
  .pc--wan    { display: grid; --x: 76%; --y: 6%; --w: 110px; }
  .pc--wan span { font-size: 26px; }
  .pc--bed    { --x: 82%; --y: 30%; --w: 15%; }
  .pc--paw    { display: grid; --x: 88%; --y: 66%; --w: 90px; }
  .pc--bowl   { --x: 64%; --y: 70%; --w: 14%; }
  .pc--bone   { display: grid; --x: 44%; --y: 84%; --w: 130px; }
  .pc--kitten { --x: 16%; --y: 66%; --w: 19%; }
  .pc--ship   { display: grid; --x: 3%; --y: 42%; --w: 120px; }
  .pc--ship span { font-size: 17px; } .pc--ship b { font-size: 24px; }
}

/* ===== カテゴリ（G03） ===== */
.category { padding: 96px 0; }
.rows { position: relative; border-top: var(--line); }
.rows li { position: relative; border-bottom: var(--line); }
.rows a { display: grid; grid-template-columns: minmax(0, 1fr) 84px; grid-template-areas: "name img" "desc img"; gap: 0 14px; align-items: center; padding: 16px 4px; min-height: 96px; text-decoration: none; color: var(--c-ink); }
.rows__name { grid-area: name; font-family: var(--font-head); font-size: clamp(28px, 4.4vw, 52px); line-height: 1.3; }
.rows__desc { grid-area: desc; color: var(--c-sub); font-size: 15px; }
.rows__count { display: none; }
.rows__img { grid-area: img; width: 84px; height: 84px; object-fit: contain; background: var(--c-cream); border: 2px solid var(--c-ink); border-radius: 50%; padding: 6px; }
@media (hover: hover) and (min-width: 1080px) {
  .rows a { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "name desc count"; padding: 22px 16px; transition: background-color .25s, padding .25s; }
  .rows__count { display: block; grid-area: count; font-family: var(--font-en); font-size: 20px; padding: 0 16px; border: 2px solid var(--c-ink); border-radius: 999px; background: #fff; }
  .rows__img {
    position: absolute; z-index: 3; left: var(--mx, 50%); top: 50%; width: 220px; height: 220px; padding: 14px; pointer-events: none;
    background: var(--c-yellow); border: var(--line); box-shadow: 6px 6px 0 var(--c-ink);
    opacity: 0; transform: translate(-50%, -50%) rotate(-10deg) scale(.4);
    transition: opacity .25s, transform .45s cubic-bezier(.34, 1.56, .64, 1);
  }
  .rows li:hover .rows__img, .rows a:focus-visible .rows__img { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(1); }
  .rows a:hover, .rows a:focus-visible { background: var(--c-cream); padding-left: 32px; }
}

/* ===== 新着 ===== */
.new { padding: 96px 0; background: var(--c-cream); border-top: var(--line); border-bottom: var(--line); }
.goods { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.good { position: relative; background: #fff; border: var(--line); border-radius: 24px; padding: 12px 12px 16px; box-shadow: 5px 5px 0 var(--c-ink); min-width: 0; }
.good img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 16px; padding: 10px; margin-bottom: 10px; }
.good--yellow img { background: #fff3c4; } .good--cream img { background: var(--c-cream); } .good--orange img { background: #ffe0c8; }
.good h3 { font-weight: 700; font-size: 16px; color: var(--c-ink); line-height: 1.5; }
.good__price { font-family: var(--font-en); font-size: 20px; color: var(--c-accent-text); }
.good__new { position: absolute; z-index: 1; right: -8px; top: -12px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-orange); border: var(--line); font-family: var(--font-en); font-size: 15px; color: var(--c-ink); transform: rotate(12deg); }
@media (min-width: 900px) { .goods { grid-template-columns: repeat(4, 1fr); gap: 24px; } .good h3 { font-size: 18px; } }

/* ===== お店のこと ===== */
.story { padding: 112px 0 96px; overflow: hidden; }
.story__inner { position: relative; display: grid; gap: 0; }
.story__dog { width: 150px; margin: 0 0 -20px 12px; position: relative; z-index: 1; }
.story__bubble { position: relative; background: #fff; border: var(--line); border-radius: 32px; padding: 32px 24px; box-shadow: 6px 6px 0 var(--c-orange); }
.story__bubble p + p { margin-top: 16px; }
.story__sign { text-align: right; font-family: var(--font-head); font-size: 22px; color: var(--c-ink); }
@media (min-width: 900px) {
  .story__inner { grid-template-columns: 260px 1fr; align-items: end; gap: 24px; }
  .story__dog { width: 100%; margin: 0; }
  .story__bubble { padding: 48px 56px; }
  .story__bubble::before { content: ""; position: absolute; left: -22px; bottom: 60px; width: 36px; height: 36px; background: #fff; border-left: var(--line); border-bottom: var(--line); transform: rotate(45deg); }
}

/* ===== ご利用ガイド ===== */
.guide { padding: 96px 0; background: #fff; border-top: var(--line); }
.tips { display: grid; gap: 20px; }
.tips li { position: relative; padding: 24px 24px 24px 92px; border: var(--line); border-radius: 24px; background: var(--c-bg); min-width: 0; }
.tips svg { position: absolute; left: 22px; top: 24px; width: 52px; height: 52px; fill: var(--c-yellow); stroke: var(--c-ink); stroke-width: 5; overflow: visible; }
.tips h3 { font-family: var(--font-head); font-size: 24px; color: var(--c-ink); }
@media (min-width: 900px) { .tips { grid-template-columns: repeat(3, 1fr); } }

/* ===== お知らせ登録 ===== */
.letter { padding: 104px 0; background: var(--c-orange); border-top: var(--line); text-align: center; }
.letter__inner p { margin-bottom: 28px; color: var(--c-ink); font-weight: 700; }
.letter .btn--orange { background: #fff; }

/* ===== フッター ===== */
.footer { background: var(--c-ink); color: #fbefdc; text-align: center; padding: 56px 20px 40px; font-size: 15px; }
.footer__logo { font-family: var(--font-head); font-size: 32px; color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; margin: 16px 0; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__fiction { margin-top: 16px; }

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