/*!
 * 冬の靴下 特集
 * @author SHIROHATO IGUCHI
 */
:root {
  --ink: #1e2732;
  --sub: #646c75;
  --paper: #f7f3ec;
  --white: #fffdfa;
  --oat: #ede6da;
  --line: #d8cfc1;
  --rust: #b0503c;
  --rust-d: #8e3c2c;
  --camel: #c48a4e;
  --night: #1c2633;
  --serif: 'Zen Old Mincho', serif;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --en: 'Cormorant Garamond', serif;
  --ease: cubic-bezier(.22, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.85; letter-spacing: .02em; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.num, .kv-num, .sb-steps b, .st-n b, .st-off b, .tag-max b, .ix-num, .sc-num { font-family: var(--en); font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }
.label { margin: 0 0 14px; display: flex; align-items: center; gap: 12px; font-family: var(--en); font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--rust); }
.label::after { content: ''; width: 40px; height: 1px; background: currentColor; opacity: .6; }

/* header */
.hd { position: sticky; top: 0; z-index: 40; background: rgba(247,243,236,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hd-in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.hd-logo img { width: 128px; }
.hd-nav { display: flex; gap: 22px; font-size: 13px; letter-spacing: .08em; }
.hd-nav a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.hd-nav a:hover { border-color: var(--ink); }
.hd-nav .hd-set { color: var(--rust); font-weight: 700; }
@media (max-width: 860px) { .hd-nav { display: none; } .hd-logo img { width: 104px; } }

/* breadcrumb */
.bc ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 10px 0; font-size: 11.5px; color: var(--sub); }
.bc li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.bc a { color: var(--sub); text-decoration: none; }

/* ===== KV ===== */
.kv { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); min-height: min(86vh, 720px); background: var(--oat); }
.kv-photo { position: relative; margin: 0; overflow: hidden; }
.kv-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 60%; }
.kv-vert { position: absolute; top: 28px; right: 18px; writing-mode: vertical-rl; font-family: var(--serif); font-size: 12px; letter-spacing: .42em; color: rgba(30,39,50,.55); }
.kv-copy { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 56px clamp(24px, 5vw, 80px); }
.kv-date { margin: 0 0 22px; display: flex; align-items: center; gap: 16px; }
.kv-num { font-size: clamp(64px, 7.4vw, 104px); font-weight: 500; line-height: .8; letter-spacing: .02em; color: var(--rust); }
.kv-day { padding-left: 16px; border-left: 1px solid var(--ink); font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: .3em; writing-mode: vertical-rl; line-height: 1; }
.kv-title { margin: 0 0 22px; font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.4; letter-spacing: .08em; }
.kv-lead { margin: 0 0 34px; max-width: 26em; font-size: 14px; color: var(--sub); }

/* 靴下の台紙(ヘッダー)の形をした札 */
.tag { position: relative; align-self: flex-start; display: grid; justify-items: center; width: 300px; padding: 44px 22px 20px; margin-left: 8px; text-decoration: none; text-align: center; color: #fff; background: var(--rust);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%, 0 18px);
  -webkit-mask: radial-gradient(circle 7px at 50% 20px, transparent 98%, #000 100%); mask: radial-gradient(circle 7px at 50% 20px, transparent 98%, #000 100%);
  transform: rotate(-3deg); transform-origin: 50% 20px; transition: transform .6s var(--ease); }
.tag:hover { transform: rotate(1.5deg); }
.tag-hole { position: absolute; top: 0; left: 50%; width: 1px; height: 13px; background: rgba(255,255,255,.5); }
.tag::after { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(255,255,255,.32); clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px); pointer-events: none; }
.tag-label { font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: .5em; padding-left: .5em; }
.tag-max { display: flex; align-items: baseline; gap: 4px; margin: 2px 0 6px; line-height: 1; }
.tag-max small { font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.tag-max b { font-size: 84px; font-weight: 500; letter-spacing: -.02em; }
.tag-max i { font-family: var(--en); font-style: normal; font-size: 34px; margin-right: 2px; }
.tag-steps { display: block; width: 100%; padding: 9px 0 8px; border-top: 1px solid rgba(255,255,255,.4); border-bottom: 1px solid rgba(255,255,255,.4); font-size: 11.5px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.tag-term { margin-top: 8px; font-size: 11.5px; letter-spacing: .08em; opacity: .9; }

@media (max-width: 860px) {
  .kv { grid-template-columns: 1fr; min-height: 0; }
  .kv-photo { aspect-ratio: 5 / 4; }
  .kv-photo img { object-position: 40% 70%; }
  .kv-vert { display: none; }
  .kv-copy { padding: 30px 20px 48px; }
  .kv-date { margin-bottom: 18px; }
  .kv-lead { margin-bottom: 30px; }
  .tag { align-self: center; margin-left: 0; }
}

/* ===== まとめ割 ===== */
.setoff { position: relative; background: var(--night); color: #fff; padding: 96px 0; }
.setoff-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.setoff-photo { margin: 0; }
.setoff-photo img { width: 100%; aspect-ratio: 3 / 2.3; object-fit: cover; }
.setoff .label { color: #e3b08f; }
.setoff-title { margin: 0 0 14px; font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 4vw, 48px); letter-spacing: .14em; line-height: 1.2; }
.setoff-lead { margin: 0 0 34px; font-size: 14px; color: #c9d0d8; max-width: 30em; }
.steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: end; }
.steps li { display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 8px 14px; text-align: center; line-height: 1.15; background: rgba(255,255,255,.06); border-top: 2px solid #e3b08f; }
.steps li:nth-child(1) { min-height: 120px; }
.steps li:nth-child(2) { min-height: 146px; }
.steps li:nth-child(3) { min-height: 172px; }
.steps li:nth-child(4) { min-height: 198px; background: var(--rust); border-top-color: var(--rust); }
.st-n { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #c9d0d8; }
.st-n b { font-size: 24px; font-weight: 500; color: #fff; margin-right: 2px; }
.st-off { margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.st-off b { display: block; font-size: 46px; font-weight: 500; line-height: 1; }
.steps li:nth-child(4) .st-n { color: #fff; }
.setoff-ex { margin: 0 0 18px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.22); font-size: 13.5px; letter-spacing: .04em; }
.setoff-ex s { color: #9aa4ae; white-space: nowrap; }
.setoff-ex b { font-size: 17px; color: #fff; white-space: nowrap; }
.setoff-term { margin: 0; font-size: 13px; color: #c9d0d8; }
.setoff-term b { color: #fff; }
.setoff-note { margin: 4px 0 0; font-size: 12px; color: #9aa4ae; }
/* 楽天・Yahoo版(まとめ買いクーポン) */
.tag-label--long { font-size: 15px; letter-spacing: .22em; padding-left: .22em; }
.setoff-title--coupon { letter-spacing: .08em; }
.coupon-lead { margin: -8px 0 18px; font-size: 12.5px; color: #c9d0d8; }
.steps--coupon li { padding-bottom: 10px; }
.st-get { display: block; margin-top: 10px; padding: 8px 2px; background: #e3b08f; color: var(--night); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; transition: background .2s; }
.st-get::after { content: '→'; margin-left: 4px; }
.st-get:hover { background: #f0c7a9; }
.steps li:nth-child(4) .st-get { background: #fff; color: var(--rust-d); }
.steps li:nth-child(4) .st-get:hover { background: #fbe9e0; }
.howto { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.howto li { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.18); font-size: 12px; line-height: 1.6; color: #dfe4ea; }
.howto b { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.14); font-family: var(--en); font-size: 13px; font-weight: 500; color: #fff; }
@media (max-width: 600px) { .howto { grid-template-columns: 1fr; gap: 6px; } }
@media (max-width: 860px) {
  .setoff { padding: 0 0 56px; }
  .setoff-in { grid-template-columns: 1fr; gap: 32px; padding: 0; }
  .setoff-photo img { aspect-ratio: 3 / 2; }
  .setoff-body { padding: 0 16px; }
  .steps li:nth-child(1) { min-height: 96px; }
  .steps li:nth-child(2) { min-height: 116px; }
  .steps li:nth-child(3) { min-height: 136px; }
  .steps li:nth-child(4) { min-height: 156px; }
  .st-off b { font-size: 34px; }
  .st-n b { font-size: 20px; }
  .steps { gap: 6px; }
}

/* ===== 目次 ===== */
.index { padding-top: 88px; padding-bottom: 16px; }
.index-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.index-list a { display: block; text-decoration: none; }
.ix-img { overflow: hidden; background: var(--oat); }
.ix-img img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s var(--ease); }
.index-list a:hover .ix-img img { transform: scale(1.05); }
.ix-meta { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--ink); }
.ix-num { font-size: 16px; color: var(--rust); }
.ix-title { font-family: var(--serif); font-weight: 700; font-size: 14.5px; letter-spacing: .04em; line-height: 1.5; }
.ix-count { grid-column: 2; font-size: 11px; color: var(--sub); line-height: 1.4; }
@media (max-width: 960px) { .index-list { grid-template-columns: repeat(3, 1fr); gap: 20px 12px; } }
@media (max-width: 600px) { .index { padding-top: 56px; } .ix-meta { grid-template-columns: 1fr; } .ix-count { grid-column: 1; } .ix-title { font-size: 13px; letter-spacing: 0; } }

/* ===== シーン ===== */
.scene { padding: 96px 0 40px; }
.scene:nth-child(even) { background: var(--white); padding-bottom: 96px; margin-top: 56px; }
.scene-hd { display: grid; grid-template-columns: auto 1fr auto; gap: 0 32px; align-items: end; margin-bottom: 40px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.sc-num { font-size: clamp(72px, 9vw, 120px); font-weight: 500; line-height: .78; color: var(--rust); opacity: .9; }
.sc-en { margin: 0; font-family: var(--en); font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--sub); }
.sc-title { margin: 2px 0 6px; font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 3vw, 32px); letter-spacing: .1em; line-height: 1.3; }
.sc-lead { margin: 0; font-size: 13.5px; color: var(--sub); }
.sc-set { display: block; padding: 10px 14px; border: 1px solid var(--rust); color: var(--rust); text-decoration: none; text-align: center; font-size: 11.5px; font-weight: 700; line-height: 1.5; letter-spacing: .06em; white-space: nowrap; transition: background .2s, color .2s; }
.sc-set b { display: block; font-family: var(--serif); font-size: 15px; letter-spacing: .1em; }
.sc-set:hover { background: var(--rust); color: #fff; }
@media (max-width: 760px) {
  .scene { padding-top: 64px; }
  .scene:nth-child(even) { padding-bottom: 64px; margin-top: 40px; }
  .scene-hd { grid-template-columns: auto 1fr; gap: 0 16px; margin-bottom: 28px; }
  .sc-num { font-size: 64px; }
  .sc-set { grid-column: 1 / -1; margin-top: 16px; white-space: normal; }
  .sc-set b { display: inline; margin-right: 6px; }
}

/* card */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 24px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .grid { grid-template-columns: 1fr 1fr; gap: 32px 12px; } }
.card-a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-img { position: relative; overflow: hidden; background: #ece7df; }
.card-img img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s var(--ease); }
.card-a:hover .card-img img { transform: scale(1.04); }
.badge { position: absolute; left: 0; top: 12px; z-index: 1; padding: 3px 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: #fff; background: var(--ink); }
.card-body { display: flex; flex-direction: column; flex: 1; padding-top: 12px; }
.card-brand { margin: 0; font-size: 11px; letter-spacing: .08em; color: var(--sub); }
.card-name { margin: 2px 0 6px; font-weight: 700; font-size: 14px; line-height: 1.55; }
.card-a:hover .card-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card-note { margin: 0 0 8px; font-size: 12.5px; line-height: 1.65; color: var(--sub); }
.card-spec { margin: 0; font-size: 11.5px; color: var(--sub); }
.card-price { margin: auto 0 0; padding-top: 10px; font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.card-price small { margin-left: 2px; font-size: 10.5px; font-weight: 400; color: var(--sub); }
@media (max-width: 680px) { .card-name { font-size: 13px; } .card-note { display: none; } .card-price { font-size: 15px; } }

/* more */
.more { position: relative; background: var(--night); color: #fff; padding: 72px 0; text-align: center; margin-top: 96px; }
.more-title { margin: 0 0 24px; font-family: var(--serif); font-size: 22px; letter-spacing: .1em; }
.more-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; min-width: 248px; padding: 14px 24px; background: var(--rust); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .1em; transition: background .2s; }
.btn:hover { background: var(--rust-d); }
.btn-line { background: transparent; border: 1px solid rgba(255,255,255,.55); }
.btn-line:hover { background: rgba(255,255,255,.08); }
.more-note { margin: 24px auto 0; font-size: 12px; color: #b9c2cc; max-width: 40em; }

/* 足もとの帯 */
.legs { background: #fff; padding: 56px 0 0; overflow: hidden; }
.legs img { width: 100%; max-width: 1240px; margin: 0 auto; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
@media (max-width: 680px) { .legs { padding-top: 32px; } .legs img { width: 150%; max-width: none; margin-left: -25%; } }

/* footer + 物干し */
.ft { background: #fff; padding: 48px 0 56px; text-align: center; border-top: 1px solid var(--line); }
.line { position: relative; width: min(360px, 86%); height: 92px; margin: 0 auto; }
.line-cord { position: absolute; inset: 0 0 auto 0; width: 100%; height: 60px; overflow: visible; }
.line-cord path { fill: none; stroke: #9b8f80; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.line-socks { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; transform-origin: 50% 0; }
.line-socks li { position: absolute; display: flex; gap: 2px; transform: translateX(-50%); }
.line-socks li:nth-child(1) { left: 12.5%; top: 14px; --c: #b0503c; }
.line-socks li:nth-child(2) { left: 37.5%; top: 23px; --c: #d9cbb4; }
.line-socks li:nth-child(3) { left: 62.5%; top: 23px; --c: #4a4f57; }
.line-socks li:nth-child(4) { left: 87.5%; top: 14px; --c: #c48a4e; }
.line-socks i { position: relative; display: block; width: 18px; height: 30px; }
.line-socks i::before { content: ''; position: absolute; inset: 0; background: var(--c);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 40'%3E%3Cpath d='M5 0h12v23c0 3 2 5 4.5 6.5 2.6 1.6 3 4.6 1.4 6.8C21.6 38.2 19.6 39 17 39H10c-3.3 0-5-2.4-5-6z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 40'%3E%3Cpath d='M5 0h12v23c0 3 2 5 4.5 6.5 2.6 1.6 3 4.6 1.4 6.8C21.6 38.2 19.6 39 17 39H10c-3.3 0-5-2.4-5-6z'/%3E%3C/svg%3E") center/contain no-repeat; }
.line-socks i::after { content: ''; position: absolute; top: -4px; left: 6px; width: 4px; height: 8px; background: #c9b597; border-radius: 1px; }
.line-socks i:nth-child(2)::before { transform: scaleX(-1); }
.line-socks i.is-empty::before { opacity: 0; transform: translateY(-14px) scaleX(-1); }
.is-found i.is-empty::before { opacity: 1; transform: scaleX(-1); transition: opacity .3s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.line-socks.is-sway { animation: sway 1.6s var(--ease); }
@keyframes sway { 0% { transform: rotate(0); } 20% { transform: rotate(2.2deg); } 45% { transform: rotate(-1.6deg); } 70% { transform: rotate(.8deg); } 100% { transform: rotate(0); } }
.line-msg { margin: 6px 0 28px; font-family: var(--serif); font-size: 12.5px; letter-spacing: .14em; color: var(--sub); transition: color .4s; }
.line-msg.is-found { color: var(--rust); }
.ft-logo img { margin: 0 auto; width: 116px; }
.ft-copy { margin: 10px 0 0; font-size: 11px; letter-spacing: .08em; color: var(--sub); }

/* ページのどこかに隠れた片方の靴下 */
.has-stray { position: relative; }
.stray { position: absolute; z-index: 5; width: 30px; height: 46px; padding: 0; border: 0; background: none; cursor: pointer; transform: rotate(var(--r, -18deg)); animation: peek 6s ease-in-out 2s infinite; }
.stray::before { content: ''; position: absolute; inset: 4px; background: #c48a4e;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 40'%3E%3Cpath d='M5 0h12v23c0 3 2 5 4.5 6.5 2.6 1.6 3 4.6 1.4 6.8C21.6 38.2 19.6 39 17 39H10c-3.3 0-5-2.4-5-6z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 40'%3E%3Cpath d='M5 0h12v23c0 3 2 5 4.5 6.5 2.6 1.6 3 4.6 1.4 6.8C21.6 38.2 19.6 39 17 39H10c-3.3 0-5-2.4-5-6z'/%3E%3C/svg%3E") center/contain no-repeat; }
.stray:focus-visible { outline: 1px dashed var(--rust); outline-offset: 2px; }
@keyframes peek { 0%, 86%, 100% { transform: rotate(var(--r, -18deg)); } 90% { transform: rotate(calc(var(--r, -18deg) + 10deg)); } 94% { transform: rotate(calc(var(--r, -18deg) - 6deg)); } }
.stray.is-flying { position: fixed; z-index: 60; animation: none; pointer-events: none; }

/* 画面下のまとめ割バー */
.setbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 8px 16px; background: var(--ink); color: #fff; text-decoration: none; font-size: 13px; letter-spacing: .04em; transform: translateY(100%); transition: transform .45s var(--ease); }
.setbar.is-show { transform: none; }
.sb-name { font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: .2em; color: #e3b08f; }
.sb-steps b { font-family: var(--en); font-size: 19px; font-weight: 500; margin: 0 1px; }
.sb-term { font-size: 12px; color: #b9c2cc; }
.sb-go { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.3); font-size: 12px; }
@media (max-width: 760px) {
  .setbar { gap: 10px; font-size: 12px; justify-content: space-between; }
  .sb-steps .sb-full { display: none; }
  .sb-term { display: none; }
  .sb-go { padding-left: 10px; }
}
@media (min-width: 761px) { .sb-steps .sb-short { display: none; } }

.totop { position: fixed; right: 16px; bottom: 16px; z-index: 36; width: 46px; height: 46px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font-family: var(--en); font-size: 12px; letter-spacing: .1em; display: grid; place-items: center; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .3s, bottom .45s var(--ease); }
.totop.is-show { opacity: 1; pointer-events: auto; }
.has-setbar .totop { bottom: 68px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
