/* ==========================================================
   ウェルネススナックのページ（/wellness-snacks）専用
   クラス名は wn- で始める。色と書体は site-new.css のものを使う。
   ========================================================== */

.wn-section { padding-block: clamp(56px, 8vw, 104px); }
.wn-section--leaf { background: var(--leaf); }
.wn-section--wall { background: var(--wall); }
.wn-lead { margin-top: 14px; max-width: 38em; color: var(--ink-soft); }
.wn-small { font-size: 0.85rem; line-height: 1.75; color: var(--ink-soft); }
.wn-eyebrow { margin-top: 22px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; color: #5a7663; }

/* ---------- メイン ---------- */
.wn-hero { background: var(--wall); padding-block: clamp(24px, 3vw, 40px) clamp(48px, 7vw, 88px); overflow: hidden; }
.wn-hero__inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.wn-hero__title { margin-top: 10px; font-size: clamp(1.7rem, 0.9rem + 2.4vw, 2.9rem); font-weight: 700; line-height: 1.45; letter-spacing: 0.05em; word-break: auto-phrase; }
.wn-hero__lead { margin-top: 20px; max-width: 30em; color: var(--ink-soft); }
.wn-hero__facts { margin-top: 28px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wn-hero__facts li { padding: 14px clamp(14px, 2vw, 26px); border-left: 1px solid var(--line); line-height: 1.5; }
.wn-hero__facts li:first-child { padding-left: 0; border-left: 0; }
.wn-hero__facts span { display: block; font-size: 0.78rem; color: var(--ink-soft); }
.wn-hero__facts strong { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); }
.wn-hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.wn-hero__photo { position: relative; }
.wn-hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px 10px 10px; }
.wn-hero__photo figcaption { margin-top: 10px; font-size: 0.8rem; color: var(--ink-soft); text-align: right; }

/* ---------- 3つの基準 ---------- */
.wn-rules { margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.wn-rules li { padding-top: 22px; border-top: 2px solid var(--ink); }
.wn-rules__num { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; color: var(--blue); }
.wn-rules h3 { margin-top: 8px; font-size: 1.2rem; line-height: 1.6; }
.wn-rules p { margin-top: 10px; color: var(--ink-soft); }

/* ---------- 商品 ---------- */
.wn-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; scroll-margin-top: 88px; }
.wn-item--wide { margin-top: clamp(32px, 5vw, 56px); padding: clamp(24px, 4vw, 48px); }
.wn-items { margin-top: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.wn-item__img { background: #fff; border-bottom: 1px solid var(--line); }
.wn-item__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.wn-item__img--pair { display: grid; grid-template-columns: 1fr 1fr; }
.wn-item__img--pair img { aspect-ratio: 1 / 1; }
.wn-item__img--pair img:last-child { object-fit: cover; }
.wn-item__body { padding: clamp(22px, 3vw, 34px); }
.wn-item__head { max-width: 44em; }
.wn-item__brand { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; color: #5a7663; }
.wn-item__name { margin-top: 4px; font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem); line-height: 1.5; }
.wn-item__name small { display: block; font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.wn-item__catch { margin-block: 14px 8px; font-size: 1.1rem; font-weight: 700; color: var(--blue-deep); }
.wn-item__body > p, .wn-item__head > p { color: var(--ink-soft); }
.wn-item__body > p.wn-item__catch, .wn-item__head > p.wn-item__catch { color: var(--blue-deep); }
.wn-item__body > p.wn-item__brand, .wn-item__head > p.wn-item__brand { color: #5a7663; }

.wn-facts { margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.wn-facts > div { padding: 10px 8px; text-align: center; border-left: 1px solid var(--line); line-height: 1.5; }
.wn-facts > div:first-child { border-left: 0; }
.wn-facts dt { font-size: 0.74rem; color: var(--ink-soft); }
.wn-facts dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.wn-allergy { margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); }
.wn-item .wn-small { margin-top: 10px; }

.wn-item__foot { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.wn-price { line-height: 1.2; }
.wn-price strong { font-size: 1.7rem; }
.wn-price span { font-size: 0.85rem; color: var(--ink-soft); }
.wn-item--wide .wn-price span { display: inline-block; }
.wn-item__foot .tn-btn { padding: 0.8em 1.6em; }

.wn-more { margin-top: 20px; border-top: 1px solid var(--line); }
.wn-more summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px 0; cursor: pointer; list-style: none; font-size: 0.9rem; font-weight: 700; }
.wn-more summary::-webkit-details-marker { display: none; }
.wn-more summary::after { content: ""; width: 8px; height: 8px; margin-right: 6px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform 0.3s; }
.wn-more[open] summary::after { transform: rotate(-135deg); }
.wn-more summary:hover { color: var(--blue); }
.wn-more > div { padding-top: 12px; font-size: 0.88rem; line-height: 1.8; color: var(--ink-soft); }
.wn-more > div p + p { margin-top: 10px; }

/* THIS IS SALAD の4つの味 */
.wn-flavors { margin: clamp(24px, 4vw, 40px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.wn-flavors li { display: flex; flex-direction: column; }
.wn-flavors__img { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.wn-flavors__img img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.wn-flavors li:hover .wn-flavors__img img { transform: scale(1.05); }
.wn-flavors h4 { margin: 14px 0 0; font-size: 1.02rem; line-height: 1.5; }
.wn-flavors__price { display: block; margin-top: 2px; font-size: 0.95rem; color: var(--blue-deep); }
.wn-flavors li > p { margin-top: 6px; font-size: 0.9rem; line-height: 1.7; color: var(--ink-soft); flex: 1; }
.wn-flavors li > p.wn-allergy { flex: none; font-size: 0.8rem; }
.wn-flavors .wn-facts { margin-top: 12px; }
.wn-flavors .wn-facts dd { font-size: 0.95rem; }
.wn-flavors .wn-facts dt { font-size: 0.68rem; }

/* ---------- 食物繊維のはなし ---------- */
.wn-fiber { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.wn-fiber__text h3 { margin-top: 26px; font-size: 1.1rem; }
.wn-fiber__text h3:first-child { margin-top: 0; }
.wn-fiber__text p { margin-top: 8px; color: var(--ink-soft); }
.wn-fiber__text .wn-small { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.wn-fiber__table { padding: clamp(20px, 3vw, 32px); background: var(--mint); border-radius: 10px; }
.wn-fiber__table h3 { font-size: 1.1rem; }
.wn-table { width: 100%; margin-top: 14px; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
.wn-table th, .wn-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.92rem; line-height: 1.6; }
.wn-table thead th { background: var(--ink); color: #fff; font-size: 0.82rem; }
.wn-table tbody th { font-weight: 500; }
.wn-table td { width: 6.5em; font-weight: 700; text-align: right; white-space: nowrap; }
.wn-table thead th:last-child { text-align: right; }
.wn-table tr:last-child th, .wn-table tr:last-child td { border-bottom: 0; }
.wn-table__sep th, .wn-table__sep td { border-top: 2px solid var(--line); }
.wn-fiber__table .wn-small { margin-top: 14px; }

/* ---------- こんなときに ---------- */
.wn-scenes { margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.wn-scenes li { padding: clamp(22px, 3vw, 32px); background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.wn-scenes h3 { font-size: 1.1rem; }
.wn-scenes p { margin-top: 8px; color: var(--ink-soft); }

/* ---------- 店主より ---------- */
.wn-message { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.wn-message__body { padding-left: clamp(20px, 3vw, 40px); border-left: 2px solid var(--sage); }
.wn-message__body p + p { margin-top: 1.2em; }
.wn-message__sign { font-weight: 700; text-align: right; }
.wn-message__sign small { display: block; font-size: 0.82rem; font-weight: 500; color: var(--ink-soft); }

/* ---------- 買い方 ---------- */
.wn-buy { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.wn-buy__card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3.4vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.wn-buy__card h3 { font-size: 1.3rem; }
.wn-buy__list { width: 100%; margin: 16px 0 0; }
.wn-buy__list > div { display: grid; grid-template-columns: 5em 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.wn-buy__list > div:last-child { border-bottom: 1px solid var(--line); }
.wn-buy__list dt { font-size: 0.85rem; font-weight: 700; color: #5a7663; padding-top: 0.15em; }
.wn-buy__list dd { margin: 0; }
.wn-buy__card > p { margin-top: 16px; color: var(--ink-soft); flex: 1; }
.wn-buy__card .tn-btn { margin-top: 22px; }
.wn-buy__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.wn-textlink { margin-top: 22px; color: var(--blue); font-weight: 700; font-size: 0.95rem; }

/* ---------- よくある質問・最後 ---------- */
.wn-faq { margin-top: clamp(24px, 4vw, 40px); }
.wn-last { padding-block: clamp(56px, 8vw, 100px); background: var(--mint); text-align: center; }
.wn-last__catch { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 700; letter-spacing: 0.06em; }
.wn-last__actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- 画面が狭いとき ---------- */
@media (max-width: 960px) {
  .wn-flavors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wn-fiber, .wn-message { grid-template-columns: 1fr; }
  .wn-message__body { padding-left: 20px; }
}
@media (max-width: 760px) {
  .wn-hero__inner { grid-template-columns: 1fr; }
  .wn-hero__photo { max-width: 420px; margin-inline: auto; }
  .wn-hero__photo img { aspect-ratio: 1 / 1; border-radius: 160px 160px 10px 10px; }
  .wn-rules, .wn-scenes, .wn-items, .wn-buy { grid-template-columns: 1fr; }
  .wn-hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; }
  .wn-hero__facts li { padding-inline: 10px; }
  .wn-hero__facts li:first-child { padding-left: 0; }
  .wn-hero__actions .tn-btn, .wn-last__actions .tn-btn { width: 100%; justify-content: center; }
  .wn-item__foot .tn-btn { flex: 1; justify-content: center; }
  .wn-message br { display: none; }
}
@media (max-width: 420px) {
  .wn-facts dd { font-size: 0.95rem; }
  .wn-flavors { gap: 12px; }
  .wn-flavors .wn-facts { grid-template-columns: 1fr; }
  .wn-flavors .wn-facts > div { display: flex; justify-content: space-between; padding: 6px 10px; border-left: 0; border-top: 1px solid var(--line); }
  .wn-flavors .wn-facts > div:first-child { border-top: 0; }
  .wn-flavors .wn-facts dt { font-size: 0.72rem; }
}
