/* ============================================================
   SIZE CONVERT — site.css（全ページ共通・2026-09-11 デザイン刷新）
   コンセプト：仕立て屋の採寸室。型紙の方眼＋メジャーの目盛り。
   紙色の地にインク色の文字、差し色はメジャーの黄色ひとつだけ。
   ============================================================ */
:root {
  --paper: #F5F0E6;
  --paper-2: #ECE5D6;
  --card: #FFFDF9;
  --ink: #1A2238;
  --ink-2: #454C60;
  --muted: #6E7484;
  --line: #D8D0BF;
  --line-2: #C2B9A6;
  --tape: #F2B632;
  --tape-soft: #FBE8B8;
  --tape-ink: #6B4A00;
  --link: #9A4B1F;
  --danger: #B3261E;
  /* 旧テンプレのインライン参照（var(--pink)/var(--blue)）を新パレットへ寄せる */
  --pink: #6B4A00;
  --blue: #1A2238;
  --radius: 10px;
  --shadow: 0 1px 0 rgba(26,34,56,.06), 0 8px 24px -16px rgba(26,34,56,.25);
  --font-ui: 'IBM Plex Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-num: 'Fraunces', 'IBM Plex Sans JP', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  /* 型紙の方眼（24px）：紙の質感を出す */
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(26,34,56,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,34,56,.045) 1px, transparent 1px);
  background-size: 24px 24px;
  font-variant-numeric: tabular-nums;
}
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; border-radius: 4px; }
[id] { scroll-margin-top: 64px; }
button { font-family: inherit; }
img { max-width: 100%; height: auto; }

/* ---------- メジャーの目盛り（共通モチーフ） ---------- */
.tape {
  height: 14px;
  background-color: var(--tape);
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 40px);
  background-size: 8px 5px, 40px 9px;
  background-repeat: repeat-x;
  background-position: 0 100%, 0 100%;
}

/* ---------- ヘッダー ---------- */
.site-head {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.site-head .head-inner {
  max-width: 1040px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); }
.brand-mark {
  font-family: var(--font-num); font-weight: 700; font-style: italic;
  font-size: 26px; letter-spacing: .5px; line-height: 1;
}
.brand-word {
  font-family: var(--font-num); font-weight: 600; font-size: 26px; letter-spacing: 2px; line-height: 1;
}
.brand-tag { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: .5px; }

/* ---------- ナビ ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,240,230,.94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-nav .nav-inner {
  max-width: 1040px; margin: 0 auto; padding: 0 12px;
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
}
.site-nav .nav-inner::-webkit-scrollbar { display: none; }
.site-nav a {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--ink); border-bottom-color: var(--tape); }

/* ---------- ページ幅 ---------- */
.container { max-width: 800px; margin: 0 auto; padding: 28px 16px 80px; }
article.page { max-width: 760px; margin: 0 auto; padding: 36px 20px 80px; }

/* ---------- カード ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.section-title {
  margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-2); display: flex; align-items: center; gap: 10px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--tape-ink); background: var(--tape-soft); padding: 3px 10px; border-radius: 999px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 8px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(26,34,56,.6); }
.btn.ghost { background: transparent; color: var(--ink); }

/* ---------- 表 ---------- */
.ref-table-wrap, .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.ref-table, .size-table {
  width: 100%; border-collapse: collapse; font-size: 14px; min-width: 420px; margin: 0;
  font-variant-numeric: tabular-nums;
}
.ref-table th, .size-table th {
  position: sticky; top: 0; background: var(--paper-2); color: var(--ink-2);
  padding: 10px 14px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  text-align: center; border-bottom: 2px solid var(--line-2); white-space: nowrap;
}
.ref-table th:first-child, .size-table th:first-child { text-align: left; }
.ref-table td, .size-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); text-align: center;
}
.ref-table td:first-child, .size-table td:first-child { text-align: left; color: var(--ink); font-weight: 700; font-family: var(--font-num); font-size: 15px; }
.ref-table tbody tr:nth-child(even) td, .size-table tbody tr:nth-child(even) td { background: rgba(236,229,214,.35); }
.ref-table tr:last-child td, .size-table tr:last-child td { border-bottom: none; }
.ref-table tr.hl td { background: var(--tape-soft); color: var(--ink); }
.ref-table tr.hl td:first-child { color: var(--tape-ink); }
.ref-table tr.dim td { opacity: .38; }

/* ---------- アフィリエイト枠（PR） ---------- */
.affiliate-box {
  border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 16px; margin: 18px 0;
  background: rgba(255,253,249,.7);
}
.affiliate-label { margin: 0 0 12px; font-size: 11px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; }
.affiliate-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.affiliate-link {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.affiliate-link:hover { border-color: var(--ink); transform: translateY(-1px); }
.affiliate-link .emoji { font-size: 28px; line-height: 1; flex-shrink: 0; }
.affiliate-link .label { flex: 1; min-width: 0; }
.affiliate-link .label strong { display: block; font-size: 14px; margin-bottom: 2px; line-height: 1.4; }
.affiliate-link .cta { display: block; font-size: 12px; font-weight: 600; color: var(--link); }
.affiliate-note { margin: 10px 0 0; font-size: 11px; color: var(--muted); }
.affiliate-banners { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 4px 0; }
.affiliate-banners > div { display: inline-block; line-height: 0; }

/* ---------- 注記 ---------- */
.note-box {
  background: var(--paper-2); border-left: 3px solid var(--tape); border-radius: 0 8px 8px 0;
  padding: 10px 14px; font-size: 13px; color: var(--ink-2); line-height: 1.7; margin: 14px 0 0;
}
.note-box strong { color: var(--ink); }

/* ---------- FAQ（アコーディオン・index用） ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-q {
  font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; user-select: none; min-height: 32px;
}
.faq-icon { color: var(--tape-ink); font-size: 22px; flex-shrink: 0; transition: transform .2s; line-height: 1.1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { font-size: 14px; color: var(--ink-2); margin-top: 10px; display: none; line-height: 1.8; }
.faq-item.open .faq-a { display: block; }

/* ---------- Cookie バナー ---------- */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--card); border-top: 2px solid var(--ink);
  padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 13px; color: var(--ink-2); box-shadow: 0 -8px 24px -16px rgba(26,34,56,.4);
}
#cookie-banner.hidden { display: none; }
#cookie-banner p { margin: 0; }
#cookie-banner a { color: var(--link); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn {
  min-height: 44px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--ink); cursor: pointer;
  font-size: 13px; font-weight: 700;
}
.cookie-accept { background: var(--ink); color: #fff; }
.cookie-reject { background: transparent; color: var(--ink); }
@media (max-width: 480px) {
  #cookie-banner { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 16px; font-size: 12px; line-height: 1.55; }
  .cookie-actions { justify-content: flex-end; }
  .cookie-btn { min-height: 44px; padding: 0 14px; }
  .site-head .head-inner { padding: 12px 16px; }
  .brand-tag { display: none; }
}

/* ---------- フッター ---------- */
.site-foot { background: var(--ink); color: #C9CDD8; margin-top: 40px; }
.site-foot .foot-inner { max-width: 1040px; margin: 0 auto; padding: 36px 20px 28px; font-size: 13px; }
.site-foot .foot-brand { color: #fff; font-family: var(--font-num); font-size: 22px; letter-spacing: 1px; margin: 0 0 6px; }
.site-foot .foot-brand em { font-style: italic; font-weight: 700; }
.site-foot .foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 16px; padding: 0; list-style: none; }
.site-foot a { color: #E6E0D2; text-decoration: none; }
.site-foot .foot-links a { display: inline-flex; align-items: center; min-height: 32px; }
.site-foot a:hover { color: var(--tape); text-decoration: underline; }
.site-foot .disclaimer { font-size: 12px; color: #A9AFBF; line-height: 1.7; max-width: 640px; margin: 0 0 12px; }
.site-foot .foot-meta { font-size: 11.5px; color: #8B92A6; margin: 0; }
.site-foot .foot-hub { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.site-foot .foot-hub-title { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #A9AFBF; margin: 0 0 10px; font-weight: 700; }
.site-foot .foot-hub p { margin: 0; font-size: 12px; line-height: 2; color: #C9CDD8; }
.site-foot .foot-hub p a { margin-right: 14px; color: #C9CDD8; }
.site-foot .foot-related { display: flex; flex-wrap: wrap; gap: 8px; }
.site-foot .foot-related a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22); font-size: 12px;
}
.site-foot .foot-related a:hover { border-color: var(--tape); text-decoration: none; }

/* ---------- サブページ（ガイド・FAQ・運営情報・EUサイズ） ---------- */
article.page .breadcrumb { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
article.page .breadcrumb a { color: var(--link); text-decoration: none; }
article.page h1 { font-size: 30px; line-height: 1.35; margin: 0 0 14px; color: var(--ink); letter-spacing: -.2px; }
@media (max-width: 520px) { article.page h1 { font-size: 24px; } }
article.page .lead { font-size: 16px; color: var(--ink-2); border-left: 3px solid var(--tape); padding-left: 16px; margin: 18px 0 30px; }
article.page .updated, article.page .verified-badge { display: inline-block; font-size: 12px; color: var(--muted); margin: 0 0 22px; }
article.page h2 {
  font-size: 19px; font-weight: 700; color: var(--ink); margin: 42px 0 12px; padding-left: 14px;
  border-left: 4px solid var(--tape); line-height: 1.4; letter-spacing: .2px;
}
article.page h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 24px 0 8px; }
article.page p { font-size: 15px; color: var(--ink-2); margin: 0 0 14px; }
article.page p strong, article.page li strong { color: var(--ink); }
article.page ul { padding-left: 22px; margin: 0 0 16px; }
article.page li { color: var(--ink-2); font-size: 15px; margin-bottom: 7px; line-height: 1.8; }
article.page .size-table { display: block; overflow-x: auto; min-width: 0; margin: 16px 0 26px; }
article.page .ans-box, article.page .tip-box, article.page .warn-box, article.page .info-box {
  background: var(--card); border: 1px solid var(--line); border-left-width: 4px; border-radius: 0 8px 8px 0;
  padding: 14px 18px; margin: 16px 0 24px; font-size: 15px; color: var(--ink-2);
}
article.page .ans-box { border-left-color: var(--tape); }
article.page .ans-box strong { color: var(--ink); }
article.page .ans-box .num { color: var(--tape-ink); font-weight: 700; font-family: var(--font-num); font-size: 1.1em; }
article.page .tip-box { border-left-color: var(--ink); }
article.page .tip-box strong { color: var(--ink); }
article.page .warn-box { border-left-color: var(--danger); font-size: 14px; }
article.page .warn-box strong { color: var(--danger); }
article.page .info-box { border-left-color: var(--tape); padding: 22px; }
article.page .info-box h3 { margin: 0 0 12px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--tape-ink); }
article.page .info-list { list-style: none; padding: 0; margin: 0; }
article.page .info-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; font-size: 14px; margin: 0; }
article.page .info-list li:last-child { border-bottom: none; }
article.page .info-key { font-size: 11px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; flex-shrink: 0; width: 120px; font-weight: 700; }
article.page .cta-box {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px 22px; margin: 40px 0; text-align: center;
  position: relative; overflow: hidden;
}
article.page .cta-box::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background-color: var(--tape);
  background-image: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 8px);
  background-size: 8px 4px; background-repeat: repeat-x; background-position: 0 100%; }
article.page .cta-box h3 { color: #fff; margin: 6px 0 8px; font-size: 18px; }
article.page .cta-box p { color: #C9CDD8; font-size: 14px; margin-bottom: 16px; }
article.page .cta-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 24px; border-radius: 8px;
  background: var(--tape); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none;
}
article.page .cta-btn:hover { text-decoration: none; filter: brightness(1.05); }
article.page .faq-item { margin-bottom: 22px; border: none; padding: 0; }
article.page .faq-q { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px; padding-left: 26px; position: relative; cursor: default; display: block; }
article.page .faq-q::before { content: "Q"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
article.page .faq-a { font-size: 14px; color: var(--ink-2); line-height: 1.85; padding-left: 26px; position: relative; display: block; margin: 0; }
article.page .faq-a::before { content: "A"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 4px; background: var(--tape); color: var(--ink); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
article.page .related-net { margin: 56px 0 24px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
article.page .related-net h3 { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; text-align: center; }
article.page .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 520px) { article.page .related-grid { grid-template-columns: 1fr; } }
article.page .related-card { display: block; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; text-decoration: none !important; color: var(--ink); transition: transform .15s, border-color .15s; }
article.page .related-card:hover { transform: translateY(-2px); border-color: var(--ink); }
article.page .related-card .rc-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
article.page .related-card .rc-sub { font-size: 12px; color: var(--ink-2); line-height: 1.6; }

/* ---------- 動きを抑える設定への配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* === ui-polish v1 : reference_ui_microinteractions テク①③ === */
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
h1,h2,h3,h4{text-wrap:balance}
p,li,dd,figcaption{text-wrap:pretty}
/* === /ui-polish === */
