/* =========================================================
   tsumugi（架空）— 制作サンプル
   アートディレクション：「北欧の余白と、日本の手しごと」
   温かい白地にセージ・砂・くすみピンク。欧文はセリフ、和文はすっきりしたゴシック。
   ========================================================= */

:root {
  --paper: #FAF6F0;
  --paper-2: #F3ECE2;
  --sand: #EADFCF;
  --sage: #A9B8A2;
  --sage-deep: #4E5F4A;     /* paper 上で 6.6:1 */
  --sage-deeper: #3F4E3C;
  --pink: #E5C4BE;
  --pink-soft: #F2E2DE;
  --pink-deep: #7E443D;     /* pink-soft 上で 6.3:1 */
  --ink: #36302B;           /* 本文：paper 上で 12:1 */
  --ink-muted: #675D54;     /* 補足：paper 上で 5.9:1 */

  --color-line: color-mix(in oklch, var(--ink) 14%, transparent);
  --color-focus: #B5523F;

  --font-latin: "Cormorant Garamond", "Times New Roman", serif;
  --font-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;

  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  --pad: 16px;
  --gutter: 12px;
  --r-ui: 4px;
  --r-img: 8px;
  --section: 72px;
}
@media (min-width: 768px) { :root { --pad: 32px; --gutter: 24px; --section: 104px; } }
@media (min-width: 1280px) { :root { --section: 128px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: 0.04em;
  line-break: strict;
  text-wrap: pretty;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.4; letter-spacing: 0.04em; font-feature-settings: "palt"; text-wrap: balance; word-break: auto-phrase; }
p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--sage-deep); text-underline-offset: 0.25em; }
.phrase { display: inline-block; text-indent: 0; }
.num { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: calc(1200px + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
/* 共通の12カラム。揃え線：1 / 5 / 7 / 13（商品グリッドだけ 4・10 も） */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--gutter); }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

/* ---------- サンプルの帯 ---------- */
.sample-bar {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 16px;
  padding: 4px var(--pad);
  background: var(--sand); color: var(--ink);
  font-size: var(--text-sm); line-height: 1.5;
}
.sample-bar p { text-align: center; }
.sample-bar a { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }

/* ---------- ボタン・リンク ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 36px;
  border: 0; border-radius: var(--r-ui);
  font: inherit; font-weight: 700; letter-spacing: 0.12em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.btn-primary { background: var(--sage-deep); color: var(--paper); }
.btn-primary:hover { background: var(--sage-deeper); }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.text-link::after { content: ""; width: 24px; height: 1px; background: currentColor; transition: width .15s ease; }
.text-link:hover::after { width: 36px; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in oklch, var(--paper) 94%, transparent); border-bottom: 1px solid var(--color-line); backdrop-filter: saturate(1.2); }
.header-inner { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; min-height: 64px; position: relative; }
.logo { justify-self: center; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); line-height: 1; min-height: 44px; justify-content: center; }
.logo-word { font-family: var(--font-latin); font-weight: 600; font-size: 1.875rem; letter-spacing: 0.06em; line-height: 1; margin: 0; }
.logo-sub { font-size: 0.6875rem; letter-spacing: 0.16em; color: var(--ink-muted); margin-top: 4px; white-space: nowrap; }

.nav-pc { display: none; }
.nav-sp summary { display: grid; place-items: center; width: 48px; height: 48px; cursor: pointer; list-style: none; margin-left: -12px; }
.nav-sp summary::-webkit-details-marker { display: none; }
.menu-lines { width: 22px; height: 9px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.nav-sp[open] .menu-lines { height: 0; border-bottom: 0; transform: rotate(45deg); position: relative; }
.nav-sp[open] .menu-lines::after { content: ""; position: absolute; left: 0; right: 0; top: -1.5px; border-top: 1.5px solid var(--ink); transform: rotate(-90deg); }
.nav-sp nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--color-line); padding: 8px var(--pad) 20px; }
.nav-sp li a { display: flex; align-items: center; min-height: 52px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--color-line); }

.cart { position: relative; justify-self: end; display: grid; place-items: center; width: 48px; height: 48px; color: var(--ink); margin-right: -12px; }
.cart-badge {
  position: absolute; top: 6px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--pink-deep); color: #fff; font-size: 0.6875rem; font-weight: 700; line-height: 18px; text-align: center; letter-spacing: 0;
}

@media (min-width: 1024px) {
  .header-inner { grid-template-columns: auto 1fr auto; min-height: 80px; }
  .nav-sp { display: none; }
  .logo { justify-self: start; align-items: flex-start; flex-direction: row; align-items: baseline; gap: 16px; }
  .logo-word { font-size: 2.125rem; }
  .logo-sub { margin: 0; }
  .nav-pc { display: block; justify-self: center; }
  .nav-pc ul { display: flex; gap: 8px; }
  .nav-pc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; color: var(--ink); text-decoration: none; letter-spacing: 0.12em; position: relative; }
  .nav-pc a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
  .nav-pc a:hover::after { transform: scaleX(1); }
}

/* ---------- ヒーロー ---------- */
.hero { padding-block: 28px 56px; }
.hero-grid { row-gap: 0; }
/* スマホ：見出し → 画像 → 説明 → ボタン の順に組み替える */
.hero-copy { display: contents; }
.hero-season { order: 1; font-family: var(--font-latin); font-style: italic; font-size: 1.125rem; color: var(--sage-deep); letter-spacing: 0.04em; }
.hero-title { order: 2; font-size: clamp(1.875rem, 0.6rem + 2.6vw, 3rem); line-height: 1.35; letter-spacing: 0.04em; margin-top: 4px; }
.hero-figure { order: 3; margin: 20px calc(var(--pad) * -1) 0; }
.hero-figure img { width: 100%; }
.hero-lead { order: 4; margin-top: 20px; }
.hero .btn { order: 5; margin-top: 24px; justify-self: start; }
.hero-info { order: 6; margin-top: 28px; display: grid; gap: 0; border-top: 1px solid var(--color-line); }
.hero-info > div { display: flex; gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--color-line); font-size: var(--text-sm); }
.hero-info dt { color: var(--ink-muted); min-width: 3em; }
.hero-info dd { font-weight: 700; }

@media (min-width: 768px) {
  .hero { padding-block: 48px 72px; overflow-x: clip; }
  .hero-grid { grid-template-columns: 5fr 7fr; }
  .hero-copy { display: block; grid-column: 1; padding-top: 24px; }
  .hero-figure {
    grid-column: 2; grid-row: 1; margin: 0;
    margin-right: calc(var(--pad) * -1);
  }
  .hero-figure img { border-radius: var(--r-img) 0 0 var(--r-img); }
}
@media (min-width: 1024px) {
  .hero { padding-block: 64px 96px; }
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .hero-copy { grid-column: 1 / 5; padding-top: 40px; }
  .hero-figure {
    grid-column: 5 / 13; grid-row: 1; margin: 0;
    /* グリッドを破る：右側だけ画面の端まで広げる */
    margin-right: calc((min(100vw, 1200px + var(--pad) * 2) - 100vw) / 2 - var(--pad));
  }
  .hero-figure img { border-radius: var(--r-img) 0 0 var(--r-img); }
  .hero-title { margin-top: 12px; }
  .hero-lead { margin-top: 24px; }
  .hero .btn { margin-top: 32px; }
  .hero-info { margin-top: 48px; }
}

/* ---------- カテゴリ（スマホは横スクロール） ---------- */
.cats { padding-block: 0 8px; }
.cats-title { font-size: var(--text-sm); color: var(--ink-muted); letter-spacing: 0.12em; margin-bottom: 12px; }
.chips {
  display: flex; gap: 8px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin-inline: calc(var(--pad) * -1); padding: 2px var(--pad) 8px;
  scroll-padding-inline: var(--pad);
}
.chips::-webkit-scrollbar { display: none; }
.chips li { flex: none; scroll-snap-align: start; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid color-mix(in oklch, var(--ink) 35%, transparent); border-radius: var(--r-ui);
  color: var(--ink); text-decoration: none; white-space: nowrap;
  background: var(--paper);
  transition: border-color .15s ease, background-color .15s ease;
}
.chip:hover { border-color: var(--ink); background: var(--paper-2); }
.chip-count { font-family: var(--font-latin); font-size: 1.0625rem; color: var(--ink-muted); }
.chip.is-current { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--paper); }
.chip.is-current .chip-count { color: #E4EADF; }
@media (min-width: 1024px) {
  .cats .wrap { display: flex; align-items: center; gap: 32px; }
  .cats-title { margin: 0; flex: none; }
  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
}

/* ---------- セクション見出し（欧文セリフ＋和文の小見出し） ---------- */
.section-title { display: flex; flex-direction: column; gap: 4px; }
.section-title .en { font-family: var(--font-latin); font-weight: 500; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); line-height: 1.05; letter-spacing: 0.01em; }
.section-title .ja { font-size: var(--text-sm); letter-spacing: 0.16em; color: var(--sage-deep); }

/* ---------- 商品一覧 ---------- */
.products { padding-block: 48px var(--section); }
.products-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 24px; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--color-line); }
.products-count { font-size: var(--text-sm); color: var(--ink-muted); }
.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 48px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } .product-grid > li { grid-column: span 3; } }

.product { position: relative; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; height: 100%; }
.product-img { display: block; border-radius: var(--r-img); overflow: hidden; margin-bottom: 14px; box-shadow: 0 0 0 rgb(54 48 43 / 0); transition: transform .2s ease, box-shadow .2s ease; }
.product-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .35s ease; }
.product:hover .product-img { transform: translateY(-4px); box-shadow: 0 2px 4px rgb(54 48 43 / 0.06), 0 14px 28px -8px rgb(54 48 43 / 0.18); }
.product:hover .product-img img { transform: scale(1.03); }
.product:hover .product-name { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.product:focus-visible { outline-offset: 6px; }
.tag {
  position: absolute; top: 10px; left: 10px;
  padding: 2px 8px; border-radius: 2px;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; line-height: 1.7;
}
.tag-new { background: var(--paper); color: var(--sage-deep); }
.tag-few { background: var(--pink-soft); color: var(--pink-deep); }
.product-name { font-weight: 700; line-height: 1.55; font-size: 0.9375rem; }
.product-maker { font-size: var(--text-xs); color: var(--ink-muted); margin-top: 2px; letter-spacing: 0.08em; }
.price { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 2px; }
.price .num { font-family: var(--font-latin); font-weight: 600; font-size: 1.375rem; line-height: 1.2; letter-spacing: 0.02em; }
.price .yen { font-size: 0.8125rem; }
.price .tax { font-size: var(--text-xs); color: var(--ink-muted); letter-spacing: 0; }
.products-note { margin-top: 40px; font-size: var(--text-xs); color: var(--ink-muted); }
.products .text-link { margin-top: 16px; }
@media (min-width: 768px) {
  .product-name { font-size: 1rem; }
  .price .num { font-size: 1.5rem; }
}

/* ---------- 特集（砂色の帯・画像は左へはみ出す） ---------- */
.feature { background: var(--sand); padding-block: 0 var(--section); overflow-x: clip; }
.feature-figure { margin-inline: calc(var(--pad) * -1); }
.feature-figure img { width: 100%; }
.feature-body { padding-top: 32px; }
.feature-label { font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.16em; color: var(--sage-deep); margin-bottom: 16px; }
.feature-label .num { font-family: var(--font-latin); font-size: 1.125rem; font-style: italic; letter-spacing: 0.04em; }
.feature-title { font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.45; margin-bottom: 24px; }
.feature-body > p:not(.feature-label):not(.feature-note) { max-width: 30em; }
.feature-body > p + p { margin-top: 1em; }
.feature-body .text-link { margin-top: 28px; justify-self: start; }
.feature-note { margin-top: 20px; font-size: var(--text-xs); color: var(--ink-muted); }
@media (min-width: 1024px) {
  .feature { padding-block: var(--section); }
  .feature-figure {
    grid-column: 1 / 7; margin: 0;
    margin-left: calc((min(100vw, 1200px + var(--pad) * 2) - 100vw) / 2 - var(--pad));
  }
  .feature-figure img { border-radius: 0 var(--r-img) var(--r-img) 0; }
  .feature-body {
    grid-column: 7 / 13; padding-top: 0;
    display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 32px; align-content: start;
  }
  .feature-body > * { grid-column: 2; }
  /* 縦書きのラベル（和文ならではのアクセント） */
  .feature-label { grid-column: 1; grid-row: 1 / span 8; writing-mode: vertical-rl; margin: 0; padding-left: 24px; border-left: 1px solid color-mix(in oklch, var(--ink) 25%, transparent); align-self: start; }
  .feature-label .num { text-combine-upright: none; }
}

/* ---------- ご利用ガイド ---------- */
.guide { padding-block: var(--section); }
.guide-head { margin-bottom: 28px; }
.guide-lead { margin-top: 16px; color: var(--ink-muted); }
.guide-list { border-top: 1px solid var(--ink); }
.guide-row { padding-block: 22px; border-bottom: 1px solid var(--color-line); }
.guide-row dt { font-weight: 700; letter-spacing: 0.12em; margin-bottom: 6px; }
.guide-row dd > p + p { margin-top: 4px; }
.guide-key { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; }
.guide-key .num { font-family: var(--font-latin); font-weight: 600; font-size: 2.5rem; line-height: 1.15; }
.guide-key .yen { font-size: 1rem; font-weight: 700; }
.guide-key-sub { margin-left: 12px; font-size: var(--text-sm); color: var(--ink-muted); }
@media (min-width: 768px) {
  .guide-row { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 24px; padding-block: 28px; }
  .guide-row dt { margin: 0; padding-top: 14px; }
  .guide-row:last-child dt { padding-top: 0; }
}
@media (min-width: 1024px) {
  .guide-head { grid-column: 1 / 5; margin: 0; padding-right: 24px; }
  .guide-list { grid-column: 5 / 13; }
}

/* ---------- ニュースレター（くすみピンクの帯） ---------- */
.letter { background: var(--pink-soft); padding-block: 56px; }
.letter-title { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem); line-height: 1.5; margin-bottom: 12px; }
.letter-copy p { max-width: 28em; }
.letter-form { margin-top: 28px; display: grid; gap: 8px; }
.letter-form label { font-weight: 700; font-size: var(--text-sm); }
.letter-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.letter-row input {
  min-height: 52px; width: 100%; padding: 10px 14px;
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #8C8178; border-radius: var(--r-ui);
}
.hint { font-size: var(--text-xs); color: var(--ink-muted); }
@media (min-width: 640px) { .letter-row { grid-template-columns: minmax(0, 1fr) auto; } }
@media (min-width: 1024px) {
  .letter { padding-block: 72px; }
  .letter-copy { grid-column: 1 / 6; }
  .letter-form { grid-column: 7 / 13; margin-top: 0; align-self: start; padding-top: 6px; }
}

/* ---------- フッター（セージの色面） ---------- */
.site-footer { background: var(--sage-deep); color: var(--paper); padding-block: 56px 32px; font-size: var(--text-sm); }
.site-footer a { color: var(--paper); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { row-gap: 40px; }
.footer-brand .logo-word { font-size: 2.25rem; margin-bottom: 4px; }
.footer-addr { margin-top: 16px; color: #E4EADF; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gutter); }
@media (max-width: 767px) { .footer-nav > div:last-child { grid-column: 1 / -1; } }
.footer-h { font-size: var(--text-xs); letter-spacing: 0.16em; color: #D6DED1; margin-bottom: 4px; font-weight: 700; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgb(250 246 240 / 0.25); color: #E4EADF; font-size: var(--text-xs); }
@media (min-width: 768px) { .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .footer-brand { grid-column: 1 / 5; }
  .footer-nav { grid-column: 7 / 13; }
  .footer-bottom { grid-column: 1 / 13; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .product:hover .product-img, .product:hover .product-img img { transform: none; }
}
