/* 服のサイズ図鑑 — デザイン「洋服屋さん」（2026-11-22）
   値札タグのカード、メジャーの目盛りの区切り線、あたたかい紙の背景。
   カテゴリ色: サイズ=ネイビー / 形=キャメル / 素材=セージ */

:root {
  --navy: #2F4A6D;
  --navy-soft: #E8EDF3;
  --camel: #C9A27E;
  --camel-deep: #A9784C;
  --camel-soft: #F5ECE1;
  --sage: #6F8A6E;
  --sage-soft: #E9EFE7;
  --ink: #2A2724;
  --sub: #6B655E;
  --line: #E6DED3;
  --paper: #FBF7F1;
  --card: #FFFFFF;
  --tape: #F2D9A6;
  --tape-tick: #8A6A3E;
  --radius: 14px;
  --accent: var(--navy);
  --accent-soft: var(--navy-soft);
  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
}

body.cat-size { --accent: var(--navy); --accent-soft: var(--navy-soft); }
body.cat-shape { --accent: var(--camel-deep); --accent-soft: var(--camel-soft); }
body.cat-material { --accent: var(--sage); --accent-soft: var(--sage-soft); }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.85;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; }

/* ---------- メジャー（目盛り）の帯 ---------- */
.tape {
  height: 14px;
  background:
    repeating-linear-gradient(90deg, var(--tape-tick) 0 1px, transparent 1px 10px) bottom / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, var(--tape-tick) 0 1.5px, transparent 1.5px 50px) bottom / 100% 9px no-repeat,
    var(--tape);
  border-top: 1px solid #E3C489;
  border-bottom: 1px solid #E3C489;
}

/* ---------- ヘッダー ---------- */
.site-header { background: var(--paper); position: sticky; top: 0; z-index: 10; }
.site-header .inner {
  max-width: 880px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo {
  font-family: var(--font-head); font-weight: 900; font-size: 20px;
  color: var(--navy); text-decoration: none; letter-spacing: .03em; white-space: nowrap;
}
.logo span { color: var(--camel-deep); }
.gnav { display: flex; gap: 6px; }
.gnav a {
  font-family: var(--font-head); font-weight: 700; font-size: 14px; text-decoration: none;
  padding: 4px 12px; border-radius: 999px; color: var(--ink); border: 1.5px solid transparent;
  transition: background .15s, border-color .15s;
}
.gnav a:hover { border-color: var(--ink); }
.gnav a.size { color: var(--navy); }
.gnav a.shape { color: var(--camel-deep); }
.gnav a.material { color: var(--sage); }
body.cat-size .gnav a.size, body.cat-shape .gnav a.shape, body.cat-material .gnav a.material {
  background: var(--accent); color: #fff;
}

main { max-width: 760px; margin: 0 auto; padding: 28px 16px 72px; }

/* ---------- 見出し ---------- */
.breadcrumb { font-size: 13px; color: var(--sub); margin-bottom: 10px; }
.breadcrumb a { color: var(--sub); }

h1 {
  font-family: var(--font-head); font-weight: 900; font-size: 32px; line-height: 1.35; margin: 0 0 6px;
}
.reading { color: var(--sub); font-size: 14px; margin: 0 0 18px; }

h2 {
  font-family: var(--font-head); font-weight: 900; font-size: 22px; line-height: 1.4;
  margin: 52px 0 16px; padding-bottom: 14px; position: relative;
}
h2::after {
  /* 見出しの下にメジャーの切れ端 */
  content: ""; position: absolute; left: 0; bottom: 0; width: 140px; height: 9px; border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, var(--tape-tick) 0 1px, transparent 1px 7px) bottom / 100% 4px no-repeat,
    var(--tape);
}
h3.cat {
  font-family: var(--font-head); font-size: 17px; color: var(--accent); margin: 28px 0 10px;
  display: flex; align-items: baseline; gap: 8px;
}
h3.cat small { color: var(--sub); font-weight: 400; font-size: 13px; }

/* ---------- 「ひとことで」＝店の値札ラベル ---------- */
.oneline {
  position: relative;
  background: var(--accent); color: #fff;
  border-radius: 6px 18px 18px 6px;
  padding: 18px 22px 18px 44px;
  font-size: 18px; font-weight: 700; line-height: 1.6;
  margin: 8px 0 28px;
  box-shadow: 0 6px 0 rgba(0,0,0,.06);
}
.oneline::before {
  /* 値札の穴 */
  content: ""; position: absolute; left: 16px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px rgba(0,0,0,.12);
}
.oneline small {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 12px; opacity: .85; margin-bottom: 2px;
  letter-spacing: .1em;
}

/* ---------- 別名チップ（シール） ---------- */
.keywords { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 22px; padding: 0; list-style: none; }
.keywords li {
  font-size: 12px; padding: 2px 10px; border-radius: 999px;
  background: var(--card); color: var(--accent); border: 1.5px dashed var(--accent);
}

/* ---------- 要点（小さな値札） ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 8px; }
.facts div {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px;
  position: relative;
}
.facts dt { font-size: 12px; color: var(--sub); }
.facts dd { margin: 0; font-weight: 700; color: var(--accent); font-family: var(--font-head); }

/* ---------- 図 ---------- */
figure { margin: 16px 0; }
figure img {
  width: 100%; height: auto; display: block; background: #fff;
  border-radius: var(--radius); border: 1.5px solid var(--line);
}
figcaption { font-size: 13px; color: var(--sub); margin-top: 6px; text-align: center; }

.legend { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.legend li { display: flex; gap: 10px; align-items: baseline; }
.legend .num {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--camel); color: #fff; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- 比較カード ---------- */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.compare div {
  background: var(--card); border: 1.5px solid var(--line); border-top: 5px solid var(--accent);
  border-radius: 10px; padding: 12px 14px; font-size: 14px;
}
.compare b { display: block; color: var(--accent); font-family: var(--font-head); margin-bottom: 2px; }

/* ---------- 計算機（試着室のカード） ---------- */
.tool {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 22px 20px 20px;
  margin: 18px 0;
  position: relative;
  box-shadow: 6px 6px 0 var(--tape);
}
.tool h3 { margin: 0 0 4px; font-size: 18px; font-family: var(--font-head); }
.tool h3::before { content: "📏 "; }
.tool p.note { margin: 0 0 14px; font-size: 13px; color: var(--sub); }
.tool .fields { display: flex; flex-wrap: wrap; gap: 12px; }
.tool label { font-size: 14px; display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.tool input, .tool select {
  font: inherit; font-weight: 400; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--paper); width: 130px;
}
.tool input:focus, .tool select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.tool button {
  font: inherit; font-family: var(--font-head); font-weight: 700; margin-top: 16px; padding: 11px 22px;
  border: 0; border-radius: 999px; background: var(--accent); color: #fff; cursor: pointer;
  box-shadow: 0 4px 0 rgba(0,0,0,.18); transition: transform .1s, box-shadow .1s;
}
.tool button:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.result { margin-top: 18px; display: none; }
.result.show { display: block; animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.result table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 12px; overflow: hidden; font-size: 15px; }
.result th, .result td { padding: 10px 12px; border-bottom: 1px dashed var(--line); text-align: left; }
.result th { font-weight: 600; width: 46%; color: var(--sub); }
.result td { font-weight: 700; font-family: var(--font-head); color: var(--accent); font-size: 17px; }
.result .hint { font-size: 13px; color: var(--sub); margin-top: 8px; }

/* ---------- リスト類 ---------- */
.tips { padding-left: 1.2em; }
.tips li { margin-bottom: 8px; }
.tips li::marker { color: var(--camel); }

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

.ok-ng { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ok-ng div { border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.ok-ng .ok { background: var(--sage-soft); }
.ok-ng .ng { background: #F7E9E4; }
.ok-ng b { display: block; margin-bottom: 4px; font-family: var(--font-head); }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; background: var(--card); border-radius: 12px; overflow: hidden; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: 10px 10px; text-align: left; vertical-align: top; }
.data-table thead th { background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 700; }
.data-table tbody tr:nth-child(even) td { background: #FDFBF8; }
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1.5px solid var(--line); }
.table-wrap .data-table { margin: 0; }

.faq details {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; background: var(--card);
}
.faq summary { font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q. "; color: var(--accent); font-family: var(--font-head); }
.faq summary::after { content: "＋"; position: absolute; right: 0; color: var(--accent); }
.faq details[open] summary::after { content: "－"; }
.faq details p { margin: 8px 0 0; }

.related { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.related a {
  display: inline-block; padding: 6px 16px; border: 1.5px solid var(--ink); border-radius: 999px;
  text-decoration: none; font-size: 14px; font-weight: 600; background: var(--card); color: var(--ink);
  transition: background .15s, color .15s;
}
.related a:hover { background: var(--ink); color: #fff; }

/* ---------- 単語カード＝値札タグ ---------- */
.term-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 0; list-style: none; }
.term-list a {
  --tag: var(--accent);
  position: relative; display: block; text-decoration: none; color: var(--ink);
  background: var(--card);
  padding: 14px 16px 14px 44px;
  border: 1.5px solid var(--line);
  border-left: 6px solid var(--tag);
  border-radius: 6px 14px 14px 6px;
  transform-origin: 12px 50%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.term-list a::before {
  /* 値札の穴 */
  content: ""; position: absolute; left: 16px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px;
  border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--tag);
}
.term-list a:hover { transform: rotate(-1.5deg); box-shadow: 4px 6px 0 var(--tape); }
.term-list a b { color: var(--tag); display: block; font-family: var(--font-head); font-size: 16px; }
.term-list a span { font-size: 13px; color: var(--sub); }
.sec-size { --accent: var(--navy); --accent-soft: var(--navy-soft); }
.sec-shape { --accent: var(--camel-deep); --accent-soft: var(--camel-soft); }
.sec-material { --accent: var(--sage); --accent-soft: var(--sage-soft); }
section[id], h2 { scroll-margin-top: 80px; }

.hub-links { margin-top: 8px; font-size: 14px; }
.hub-links a { font-weight: 700; }

/* ---------- トップのヒーロー ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: center; margin: 4px 0 8px;
}
.hero .eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 13px;
  background: var(--tape); color: var(--tape-tick); padding: 2px 12px; border-radius: 4px; margin-bottom: 10px;
  transform: rotate(-2deg);
}
.hero h1 { font-size: 36px; }
.hero h1 em { font-style: normal; color: var(--camel-deep); }
.hero p { color: var(--sub); margin: 0 0 16px; }
.hero figure { margin: 0; }
.hero figure img { border: 0; background: transparent; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 700; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; color: #fff; background: var(--navy);
  box-shadow: 0 4px 0 rgba(0,0,0,.18);
}
.btn.shape { background: var(--camel-deep); }
.btn.material { background: var(--sage); }

.cat-intro { color: var(--sub); margin: -4px 0 6px; font-size: 14px; }

/* ---------- アプリ予告 ---------- */
.app-cta {
  margin-top: 56px; text-align: center; position: relative;
  background: var(--card); border: 2px dashed var(--camel); border-radius: 18px; padding: 26px 16px 22px;
}
.app-cta::before {
  content: "COMING SOON"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  background: var(--tape); color: var(--tape-tick); font-family: var(--font-head); font-weight: 700; font-size: 12px;
  padding: 2px 12px; border-radius: 4px; letter-spacing: .1em;
}
.app-cta p { margin: 0 0 12px; }
.app-cta button {
  font: inherit; font-family: var(--font-head); font-weight: 700; padding: 10px 22px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer;
  transition: background .15s, color .15s;
}
.app-cta button:hover { background: var(--ink); color: #fff; }
.app-cta .thanks { display: none; color: var(--accent); font-weight: 700; }

/* ---------- フッター ---------- */
footer { color: var(--sub); font-size: 12px; text-align: center; padding: 0 0 28px; }
footer .tape { margin-bottom: 20px; }
footer nav { display: flex; justify-content: center; gap: 14px; margin-bottom: 8px; font-size: 13px; }
footer nav a { color: var(--sub); }

/* ---------- スマホ ---------- */
@media (max-width: 600px) {
  h1 { font-size: 26px; }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .compare { grid-template-columns: 1fr; }
  .ok-ng { grid-template-columns: 1fr; }
  .term-list { grid-template-columns: 1fr; }
  .facts { gap: 6px; }
  .facts div { padding: 8px 8px; }
  .facts dt { font-size: 11px; }
  .facts dd { font-size: 13px; line-height: 1.5; }
  .tool input, .tool select { width: 100%; }
  .tool .fields label { flex: 1 1 40%; }
  .logo { font-size: 17px; }
  .gnav a { padding: 3px 9px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* 縦長の図（全身のコーデなど）は幅を抑えて中央に（2026-11-22） */
figure img.portrait { max-width: 420px; margin: 0 auto; }
