/* 食図鑑ショップ
   本家 syokuzukan.com とおなじ流儀（太い黒フチ・角丸チャンキー）。
   トークンは web/style.css と同じ値をつかう。
   2026-10-08 から在庫を持たない受注生産の店（UP-T マーケットへ送る）。
   商品がくすみ色のTシャツなので、地はあたたかい生成りにした。 */

:root {
  --ink:      #16181d;
  --paper:    #fffdf6;
  --cream:    #f4efe4;
  --cyan:     #35c5e8;
  --cyan-d:   #1ba3c4;
  --yellow:   #ffd23f;
  --red:      #ff5a5a;
  --green:    #4bbd6b;
  --muted:    #4a4f5a;
  --dim:      #8a8577;
  --line:     3px solid var(--ink);
  --line-fat: 4px solid var(--ink);
  --shadow:   6px 6px 0 var(--ink);
  --shadow-s: 4px 4px 0 var(--ink);
  --radius:   20px;
  --maxw:     1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI",
               "Meiryo", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-d); }
h1, h2, h3 { line-height: 1.45; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: var(--line);
  padding: 10px 20px;
}
.site-head-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.site-logo {
  font-size: 21px; font-weight: 900; letter-spacing: .02em;
  text-decoration: none; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.site-logo .mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--yellow); border: var(--line);
  font-size: 17px;
}
.site-nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px;
  padding: 6px 13px; border-radius: 999px; border: 2px solid transparent;
}
.site-nav a:hover { border-color: var(--ink); background: #fff; }
.site-nav a.current { background: var(--yellow); border-color: var(--ink); }

/* ---------- ヒーロー ---------- */
.shop-hero {
  background: var(--cream);
  border-bottom: var(--line);
  padding: 42px 0 46px;
}
.shop-hero .wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center;
}
.eyebrow {
  display: inline-block; font-weight: 800; font-size: 14.5px;
  background: #fff; border: var(--line); border-radius: 999px;
  padding: 4px 15px; margin-bottom: 12px;
}
.shop-hero h1 {
  font-size: clamp(30px, 6vw, 50px); font-weight: 900; margin: 0 0 12px;
}
.shop-hero p { margin: 0 0 16px; }

/* 受注生産の3つのやくそく */
.hero-facts {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.hero-facts li {
  background: #fff; border: var(--line); border-radius: 14px;
  padding: 6px 14px; font-size: 14px; font-weight: 700; line-height: 1.5;
  box-shadow: 3px 3px 0 var(--ink);
}
.hero-facts b { display: block; font-size: 16px; font-weight: 900; }

.shop-hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shop-hero-art img {
  border: var(--line); border-radius: 18px; box-shadow: var(--shadow-s);
  background: #fff;
}
.shop-hero-art img:nth-child(2) { transform: rotate(2.5deg); }
.shop-hero-art img:nth-child(3) { transform: rotate(-2.5deg); }

/* ---------- 買いかた（3ステップ） ---------- */
.steps-band { border-bottom: var(--line); background: #fff; padding: 26px 0 28px; }
.steps-title { font-size: 19px; font-weight: 900; margin: 0 0 12px; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  counter-reset: none;
}
.steps li {
  position: relative; border: var(--line); border-radius: 16px; background: var(--paper);
  padding: 14px 16px 14px 62px; font-size: 14.5px; line-height: 1.65; font-weight: 600;
}
.steps li b { display: block; font-size: 17px; font-weight: 900; margin-bottom: 2px; }
.steps .n {
  position: absolute; left: 14px; top: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); border: var(--line);
  font-weight: 900; font-size: 17px; line-height: 1;
}

/* ---------- 商品の上の1列（さがす・種類・ならべかえ） ---------- */
.shop-main { padding: 30px 20px 60px; }
.toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 2px dashed rgba(22,24,29,.18);
}
.f-search {
  flex: 1 1 260px; max-width: 380px;
  font: inherit; font-size: 15px; padding: 9px 16px;
  border: var(--line); border-radius: 999px; background: #fff; color: var(--ink);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips[hidden] { display: none; }
.chip {
  font: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px;
  background: #fff; color: var(--ink); line-height: 1.4;
}
.chip .n {
  font-size: 11.5px; font-weight: 800; color: var(--muted);
  background: #f0ece0; border-radius: 999px; padding: 0 7px;
}
.chip:hover { background: #fffdf0; }
.chip[aria-pressed="true"] { background: var(--yellow); }
.chip[aria-pressed="true"] .n { background: #fff; color: var(--ink); }

.toolbar-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.f-count { margin: 0; font-weight: 800; color: var(--muted); white-space: nowrap; }
.f-count b { color: var(--ink); font-size: 21px; }
.f-reset {
  font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 999px; background: #fff; padding: 5px 13px;
}
.f-reset:hover { background: var(--yellow); }
.f-reset[hidden] { display: none; }
.sort-wrap {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 800; color: var(--muted);
}
.f-sort {
  font: inherit; font-size: 15px; font-weight: 700; padding: 8px 14px;
  border: var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  cursor: pointer;
}

/* ---------- 商品カード ---------- */
.p-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px;
}
.p-card {
  position: relative;
  text-decoration: none; color: var(--ink); background: #fff;
  border: var(--line); border-radius: 18px; box-shadow: var(--shadow-s);
  padding: 10px 12px 14px;
  transition: transform .08s, box-shadow .08s;
  display: flex; flex-direction: column;
}
.p-card:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.p-card-art {
  border: 2px solid var(--ink); border-radius: 12px; overflow: hidden;
  background: #eceae4; margin-bottom: 10px;
}
.p-card-art img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.p-card-type {
  font-size: 11.5px; font-weight: 800; color: var(--dim); letter-spacing: .03em;
  margin-bottom: 3px;
}
.p-card-name { font-size: 15px; font-weight: 900; line-height: 1.45; margin-bottom: 8px; }
.p-card-foot {
  margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.p-card-price { font-size: 19px; font-weight: 900; }
.p-card-price small { font-size: 11.5px; font-weight: 700; color: var(--dim); margin-left: 4px; }
.p-card-made {
  margin-left: auto; font-size: 11.5px; font-weight: 800; color: var(--muted);
  border: 1.5px solid currentColor; border-radius: 999px; padding: 0 8px; line-height: 1.6;
}
.badge-new {
  position: absolute; top: -9px; left: -7px; z-index: 2;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 900;
  border: 2px solid var(--ink); border-radius: 999px; padding: 1px 11px;
  transform: rotate(-7deg); letter-spacing: .06em;
}
.badge-out {
  position: absolute; top: -9px; right: -7px; z-index: 2;
  background: #6d6a60; color: #fff; font-size: 12px; font-weight: 900;
  border: 2px solid var(--ink); border-radius: 999px; padding: 1px 11px;
  transform: rotate(6deg); letter-spacing: .04em;
}
.p-empty { text-align: center; padding: 50px; font-weight: 700; color: var(--muted); }
.more-note { text-align: center; color: var(--muted); font-size: 14.5px; margin: 34px 0 0; }

/* ---------- 商品詳細 ---------- */
.item { padding: 26px 20px 70px; }
.crumb { margin: 0 0 20px; font-size: 14.5px; font-weight: 700; color: var(--muted); }
.crumb a { text-decoration: none; }

.item-top {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px; align-items: start; margin-bottom: 46px;
}
.item-art {
  border: var(--line-fat); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); background: #eceae4;
  position: sticky; top: 92px;
}
.item-info { position: relative; }
.item-info .badge-new { position: static; display: inline-block; transform: none; margin-bottom: 8px; }
.item-info h1 { font-size: clamp(24px, 4.2vw, 32px); font-weight: 900; margin: 0 0 8px; }
.price { font-size: 34px; font-weight: 900; margin: 0 0 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 0; }
.price small { font-size: 14px; font-weight: 700; color: var(--dim); margin-left: 6px; }
.price-ship {
  margin-left: 12px; align-self: center;
  font-size: 13px; font-weight: 900; background: #e2f4e7; color: #1e6b35;
  border: 2px solid #1e6b35; border-radius: 999px; padding: 0 10px; line-height: 1.7;
}
.lead { margin: 0 0 22px; white-space: pre-line; }

.buy {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 900; font-size: 19px; text-decoration: none;
  padding: 16px 28px; border-radius: 999px;
  border: var(--line-fat); box-shadow: var(--shadow-s);
  background: var(--yellow); color: var(--ink);
  transition: transform .08s, box-shadow .08s;
}
.buy .ext { font-size: 17px; }
a.buy:hover { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.buy-off { background: #e8e4d8; color: #6d6a60; cursor: not-allowed; box-shadow: none; }
.buy-note { font-size: 13.5px; color: var(--muted); margin: 10px 0 16px; text-align: center; line-height: 1.7; }
/* 「ご注文はUP-Tで受け付け、製造・発送もUP-Tが行います」。ボタンのすぐ下で読ませる */
.buy-note-upt { font-size: 14.5px; font-weight: 800; color: var(--ink); margin: 12px 0 22px; }

/* デザインの背景 */
.story {
  border-top: var(--line); padding-top: 14px; margin: 0 0 20px;
}
.item-info .story h2 {
  font-size: 17px; font-weight: 900; margin: 0 0 6px; border: 0; padding: 0;
}
.story p { margin: 0; font-size: 15.5px; line-height: 1.95; white-space: pre-line; }

/* 受注生産のきまり（送料・発送・返品） */
.made {
  list-style: none; margin: 0 0 22px; padding: 12px 16px;
  background: var(--cream); border: 2px solid var(--ink); border-radius: 14px;
  font-size: 14px; line-height: 1.7;
}
.made li { padding: 5px 0 5px 92px; position: relative; }
.made li + li { border-top: 1.5px dashed rgba(22,24,29,.2); }
.made b {
  position: absolute; left: 0; top: 6px;
  font-size: 12.5px; font-weight: 900; background: #fff;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 9px; line-height: 1.7;
}

.spec { margin: 0 0 18px; display: grid; grid-template-columns: 96px 1fr; gap: 0; }
.spec dt {
  font-size: 13.5px; font-weight: 800; color: var(--muted);
  border-top: 2px solid rgba(22,24,29,.14); padding: 9px 0;
}
.spec dd {
  margin: 0; font-size: 15px; font-weight: 700;
  border-top: 2px solid rgba(22,24,29,.14); padding: 9px 0;
}
.nakama h2 {
  font-size: 15px !important; border: 0 !important; padding: 0 !important;
  margin: 0 0 8px !important; color: var(--muted);
}
.nakama p { display: flex; gap: 7px; flex-wrap: wrap; margin: 0; }
.tag {
  font-size: 13.5px; font-weight: 800; text-decoration: none; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px; background: #fff;
}
.tag:hover { background: var(--yellow); }

.item > h2 {
  font-size: 22px; font-weight: 900; margin: 0 0 16px;
  padding-bottom: 8px; border-bottom: var(--line);
}
.p-grid-rel { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }

/* ---------- 案内ページ ---------- */
.doc { max-width: 800px; padding: 32px 20px 70px; }
.doc h1 { font-size: clamp(26px, 5vw, 36px); font-weight: 900; margin: 0 0 24px; }
.doc h2 {
  font-size: 21px; font-weight: 900; margin: 38px 0 10px;
  padding-bottom: 7px; border-bottom: var(--line);
}
.doc h3 { font-size: 17px; font-weight: 900; margin: 24px 0 4px; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 1.35em; }
.doc li { margin-bottom: 6px; }
.doc .muted { color: var(--muted); font-size: 15px; }
.callout {
  background: var(--cream); border: var(--line); border-radius: 16px;
  padding: 16px 20px; font-size: 15.5px; line-height: 1.85;
}
.callout b { display: block; font-size: 17px; font-weight: 900; margin-bottom: 4px; }

table.tbl { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
table.tbl th, table.tbl td { border: 2px solid var(--ink); padding: 10px 13px; text-align: left; }
table.tbl th { background: var(--yellow); font-weight: 800; width: 34%; }

/* ---------- フッター ---------- */
.site-foot {
  border-top: var(--line); background: #fff; padding: 30px 0 40px; margin-top: 20px;
}
.foot-links { display: flex; gap: 8px 20px; flex-wrap: wrap; margin: 0 0 12px; font-weight: 700; }
.foot-links a { text-decoration: none; color: var(--ink); }
.foot-links a:hover { text-decoration: underline; }
.foot-note { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.8; }

/* ---------- せまい画面 ---------- */
@media (max-width: 900px) {
  .shop-hero .wrap { grid-template-columns: 1fr; }
  .shop-hero-art { max-width: 420px; }
  .item-top { grid-template-columns: 1fr; gap: 24px; }
  .item-art { position: static; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .toolbar-end { margin-left: 0; width: 100%; }
  .sort-wrap { margin-left: auto; }
  .f-search { max-width: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-head { padding: 8px 16px; }
  .site-nav a { font-size: 14px; padding: 4px 10px; }
  .wrap, .shop-main, .item, .doc { padding-left: 16px; padding-right: 16px; }
  /* 商品までの道のりを短く。上の写真は下の一覧と同じなので省く */
  .shop-hero { padding: 24px 0 22px; }
  .shop-hero-art { display: none; }
  .hero-facts { gap: 6px; flex-wrap: nowrap; }
  .hero-facts li { flex: 1 1 0; padding: 5px 8px; font-size: 11.5px; box-shadow: 2px 2px 0 var(--ink); }
  .hero-facts b { font-size: 13.5px; }
  .steps-band { padding: 18px 0 20px; }
  .steps li { padding: 9px 12px 9px 52px; font-size: 13.5px; }
  .steps li b { font-size: 15px; }
  .steps .n { width: 30px; height: 30px; left: 11px; top: 11px; font-size: 15px; }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .p-card { padding: 8px 9px 11px; }
  .p-card-name { font-size: 14px; }
  .p-card-price { font-size: 17px; }
  .p-card-made { margin-left: 0; }
  .sort-wrap span { display: none; }
  .spec { grid-template-columns: 84px 1fr; }
  .made li { padding-left: 0; }
  .made b { position: static; display: inline-block; margin-right: 6px; }
  table.tbl th { width: 40%; }
}
