:root {
  --color-primary: #2c5f2d;
  --color-bg: #ffffff;
  --color-text: #222222;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #eee;
}

.site-header nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--color-text);
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
}

.hero {
  text-align: center;
  padding: 3rem 1rem;
}

.hero h1 { font-size: 1.8rem; margin-bottom: 1rem; }

section { margin-bottom: 3rem; }

.menu-list {
  list-style: none;
  margin-top: 2rem;
  border-top: 1px solid rgba(33,28,22,0.15);
}

.menu-item {
  border-bottom: 1px solid rgba(33,28,22,0.15);
}

.menu-item a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 1.1rem 0.25rem;
  text-decoration: none;
  color: inherit;
}

.menu-item a:hover {
  background: rgba(33,28,22,0.04);
}

.menu-item-name {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  color: #211C16;
  white-space: nowrap;
}

.menu-item-dots {
  flex-grow: 1;
  border-bottom: 1px dotted rgba(33,28,22,0.35);
  margin-bottom: 0.3rem;
  height: 0;
}

.menu-item-price {
  font-size: 0.9rem;
  color: rgba(33,28,22,0.75);
  white-space: nowrap;
}

form input, form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

footer {
  text-align: center;
  padding: 2rem;
  color: #888;
  font-size: 0.85rem;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 56px;
  width: auto;
  display: block;
}


@media (max-width: 640px) {
  .site-header {
    padding: 0.8rem 1.2rem;
  }

  .site-header nav a {
    margin-left: 0.9rem;
    font-size: 0.85rem;
  }

  .logo img {
    height: 40px;
  }

  main {
    padding: 1.2rem;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .menu-item-name {
    font-size: 1rem;
  }

  .menu-item-price {
    font-size: 0.8rem;
  }

  .menu-item a {
    padding: 0.9rem 0.1rem;
  }
}

.news h2 {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.news-list {
  list-style: none;
  border-top: 1px solid rgba(33,28,22,0.15);
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0.25rem;
  border-bottom: 1px solid rgba(33,28,22,0.15);
}

.news-date {
  font-size: 0.85rem;
  color: rgba(33,28,22,0.55);
  white-space: nowrap;
}

.news-tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  border: 1px solid #C1652F;
  color: #C1652F;
  border-radius: 999px;
  white-space: nowrap;
}

.news-title {
  color: #211C16;
}

@media (max-width: 640px) {
  .news-item {
    flex-wrap: wrap;
    gap: 0.5rem 0.8rem;
  }

  .news-title {
    width: 100%;
    order: 3;
    font-size: 0.95rem;
  }
}

.sns-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.sns-links a {
  color: #211C16;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(33,28,22,0.25);
  padding-bottom: 2px;
}

.sns-links a:hover {
  color: #C1652F;
  border-bottom-color: #C1652F;
}

/* ロゴ画像が決まるまでの文字ロゴ（AWONI） */
.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #211C16;
  text-decoration: none;
}

/* トップページの案内ボタン */
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-block;
  min-width: 12rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid #211C16;
  border-radius: 999px;
  color: #211C16;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: #C1652F;
  border-color: #C1652F;
  color: #ffffff;
}

@media (max-width: 640px) {
  .logo-text { font-size: 1.15rem; }
  .btn { width: 100%; }
}

/* ご注文方法 */
.order-guide h2 { margin-bottom: 1.2rem; }

.order-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.order-card {
  border: 1px solid rgba(33,28,22,0.15);
  border-radius: 12px;
  padding: 1.4rem;
}

.order-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  color: #211C16;
}

.order-card ol {
  padding-left: 1.3rem;
  margin-bottom: 1rem;
}

.order-card li { margin-bottom: 0.4rem; }

.order-note {
  font-size: 0.9rem;
  color: rgba(33,28,22,0.75);
}

@media (max-width: 640px) {
  .order-cards { grid-template-columns: 1fr; }
}

/* 表示確認での調整（2026-11-15） */
/* 見出しの区切りのよい位置で改行させる */
.phrase { display: inline-block; }

/* 見出しと本文の間隔 */
main h1 { margin-bottom: 1rem; }
main h2 { margin-bottom: 0.8rem; }

/* メニューの文字が途中で折り返さないようにする */
.site-header nav a { white-space: nowrap; }

/* 送信ボタン */
form button {
  width: 100%;
  max-width: 20rem;
  padding: 0.9rem 1.4rem;
  border: none;
  border-radius: 999px;
  background: #C1652F;
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}

form input, form textarea {
  font-size: 1rem;
  font-family: inherit;
}

@media (max-width: 640px) {
  /* スマホではロゴの下にメニューを横一列で並べる */
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .site-header nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .site-header nav a { margin-left: 0; }

  form button { max-width: none; }
}

/* 画材一覧（価格表） */
.price-note {
  font-size: 0.9rem;
  color: rgba(33,28,22,0.75);
  margin-bottom: 1.2rem;
}

.search-box input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(33,28,22,0.35);
  border-radius: 999px;
  font-size: 1rem;
  font-family: inherit;
}

.q-result {
  font-size: 0.85rem;
  color: #C1652F;
  min-height: 1.4em;
  margin: 0.4rem 0 0.6rem;
}

.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.cat-nav a {
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(33,28,22,0.25);
  border-radius: 999px;
  font-size: 0.85rem;
  color: #211C16;
  text-decoration: none;
  white-space: nowrap;
}

.cat { scroll-margin-top: 1rem; margin-bottom: 2.5rem; }
.cat h2 { border-bottom: 2px solid #211C16; padding-bottom: 0.3rem; }
.cat h3 {
  font-size: 1rem;
  margin: 1.4rem 0 0.4rem;
  color: rgba(33,28,22,0.8);
}

.price-list { list-style: none; }

.p-item {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid rgba(33,28,22,0.12);
}

.p-no {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(33,28,22,0.6);
  font-variant-numeric: tabular-nums;
}

.p-name { color: #211C16; }

.p-size {
  display: block;
  font-size: 0.8rem;
  color: rgba(33,28,22,0.6);
}

.p-rec {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0 0.5rem;
  font-size: 0.7rem;
  border: 1px solid #C1652F;
  color: #C1652F;
  border-radius: 999px;
  vertical-align: 0.1em;
}

.p-price { text-align: right; white-space: nowrap; }

.p-list {
  display: block;
  font-size: 0.75rem;
  color: rgba(33,28,22,0.5);
}

.p-special {
  font-size: 1.15rem;
  font-weight: 700;
  color: #C0392B;
  font-variant-numeric: tabular-nums;
}

.p-special small { font-size: 0.75rem; margin-left: 0.1rem; }

.to-order { text-align: center; margin: 2rem 0; }

@media (max-width: 640px) {
  .p-item { grid-template-columns: 2.8rem 1fr auto; gap: 0.5rem; }
  .p-special { font-size: 1.05rem; }
}

/* 検索で該当しない品目を確実に隠す */
[hidden] { display: none !important; }

/* 注文カート（数量ボタン・下部バー・確認画面） */
.howto {
  font-size: 0.9rem;
  background: #FBF6EE;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1rem;
}

.p-item {
  grid-template-columns: 3.2rem 1fr auto;
  grid-template-areas: "no name price" ". ctrl ctrl";
  row-gap: 0.4rem;
}
.p-no { grid-area: no; }
.p-name { grid-area: name; }
.p-price { grid-area: price; }
.p-ctrl {
  grid-area: ctrl;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4rem;
}
.p-item.in-cart { background: #FBF6EE; }

.q-btn {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(33,28,22,0.35);
  border-radius: 50%;
  background: #fff;
  color: #211C16;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.q-plus { border-color: #C1652F; color: #C1652F; }
.q-num {
  min-width: 1.6rem;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.p-grade {
  height: 2.4rem;
  padding: 0 0.5rem;
  border: 1px solid rgba(33,28,22,0.35);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  margin-right: 0.3rem;
}

body.has-cart { padding-bottom: 5rem; }
body.panel-open { overflow: hidden; }

.cart-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem calc(0.8rem + env(safe-area-inset-bottom));
  background: #211C16;
  color: #fff;
  z-index: 50;
}
.cart-sum strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.cart-bar .btn { min-width: 0; width: auto; padding: 0.7rem 1.1rem; }

.cart-panel {
  position: fixed;
  inset: 0;
  background: rgba(33,28,22,0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 60;
}
.cart-box {
  background: #fff;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 16px 16px 0 0;
  padding: 1.4rem 1.2rem calc(1.4rem + env(safe-area-inset-bottom));
}
.cart-list { list-style: none; border-top: 1px solid rgba(33,28,22,0.15); }
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name name" "ctrl sub";
  gap: 0.3rem 0.6rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(33,28,22,0.15);
  font-size: 0.95rem;
}
.cl-name { grid-area: name; }
.cl-ctrl { grid-area: ctrl; display: flex; align-items: center; gap: 0.4rem; }
.cl-sub { grid-area: sub; align-self: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-total-line { text-align: right; margin: 0.8rem 0 1rem; }
.cart-total-line strong { font-size: 1.5rem; color: #C0392B; }
.cart-fields label { display: block; font-size: 0.9rem; margin-bottom: 0.7rem; }
.cart-fields input, .cart-fields select {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
.cart-msg { color: #C0392B; font-size: 0.9rem; min-height: 1.4em; margin-bottom: 0.4rem; }
.cart-send { width: 100%; }
.cart-sub { display: flex; gap: 0.6rem; margin-top: 0.6rem; }
.cart-sub .btn { flex: 1; min-width: 0; }
.cart-clear { color: rgba(33,28,22,0.6); border-color: rgba(33,28,22,0.3); }

@media (min-width: 641px) {
  .cart-panel { align-items: center; }
  .cart-box { border-radius: 16px; }
}
@media (max-width: 640px) {
  .p-item { grid-template-columns: 2.8rem 1fr auto; }
  .cart-bar .btn { width: auto; }
}

.cart-send { text-align: center; }
.cart-clear.armed { color: #fff; background: #C0392B; border-color: #C0392B; }

/* サイズ・色を選ぶプルダウン（長い選択肢でもはみ出さないように） */
.p-ctrl { flex-wrap: wrap; }
.p-opt { max-width: 11.5rem; }
@media (max-width: 640px) { .p-opt { max-width: 10rem; } }

/* 仮額のように選ぶ欄が2つある行は、1つめの下に2つめを並べる */
.p-sub { max-width: 11.5rem; }
.p-item .p-ctrl .p-sub { margin-right: 0.3rem; }
@media (max-width: 640px) { .p-sub { max-width: 10rem; } }

/* プルダウンは1行全体の幅で表示し、数量ボタンはその下に並べる（選択肢の文字が切れないように） */
.p-ctrl .p-grade { flex: 1 1 100%; max-width: none; margin-right: 0; }
.p-ctrl .q-btn:first-of-type { margin-left: auto; }

/* 長い選択肢があっても行の幅からはみ出さないようにする */
.p-item { grid-template-columns: 3.2rem minmax(0, 1fr) auto; }
.p-ctrl { min-width: 0; }
.p-ctrl .p-grade { width: 100%; min-width: 0; text-overflow: ellipsis; }
@media (max-width: 640px) { .p-item { grid-template-columns: 2.8rem minmax(0, 1fr) auto; } }

/* 商品説明 */
.p-desc {
  display: block;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(33,28,22,0.72);
  margin-top: 0.15rem;
}

/* 100円未満おまけの行 */
.cart-cut{margin:.2em 0 0;font-size:.9em;color:#666;text-align:right}

/* 注文ページ（生徒用・先生用・学校別） */
.page-lead { margin: -0.4rem 0 0.8rem; font-weight: bold; }
.cart-fixed { font-size: 0.95rem; margin-bottom: 0.7rem; }
.cart-fields textarea { display: block; width: 100%; margin-top: 0.25rem; padding: 0.6rem; font: inherit; font-size: 1rem;
  border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; background: #fff; }
.cart-fields label small { font-weight: normal; color: rgba(33,28,22,0.6); margin-left: 0.3em; }
.p-item .p-no.p-no-word { font-size: 0.8rem; }
.school-notes { margin: 1.5rem 0; padding-left: 0; list-style: none; font-size: 0.9rem; color: rgba(33,28,22,0.75); }
.school-notes li { margin-bottom: 0.3rem; }
.footer-links { margin: 0.4rem 0; font-size: 0.9rem; } .footer-links a { color: inherit; }
/* 公費（請求書・後払い）の注文 */
.pay-choice { border: 1px solid #ccc; border-radius: 6px; padding: 0.5rem 0.8rem 0.6rem; margin: 0 0 0.8rem; }
.pay-choice legend { font-size: 0.9rem; padding: 0 0.3rem; }
.pay-choice .radio { display: block; font-size: 0.95rem; margin: 0.3rem 0; }
.pay-choice .radio small { display: block; margin-left: 1.6em; color: rgba(33,28,22,0.6); }
.pf-fields { border-left: 3px solid #C0392B; padding-left: 0.7rem; margin-bottom: 0.8rem; }
.pf-note { font-size: 0.85rem; color: rgba(33,28,22,0.75); margin: 0 0 0.6rem; }
.pf-docs { font-size: 0.9rem; margin-bottom: 0.7rem; }
.pf-docs span { display: block; margin-bottom: 0.2rem; }
.pf-docs label { display: inline-block; margin-right: 0.9rem; }
.cart-budget { text-align: right; font-size: 0.95rem; margin: -0.6rem 0 0.8rem; color: #2E6B3A; }
.cart-budget.over, .bar-budget.over { color: #C0392B; font-weight: bold; }
.bar-budget { font-size: 0.85rem; }
.cart-fields .pf-docs input, .cart-fields .pay-choice input { display: inline-block; width: auto; margin: 0 0.35em 0 0; padding: 0; vertical-align: middle; }
.cat-note { margin: -0.4rem 0 0.6rem; font-size: 0.85rem; color: rgba(33,28,22,0.6); }
/* ぴったり候補 */
.cart-fit { border: 1px dashed #2E6B3A; border-radius: 6px; padding: 0.5rem 0.7rem; margin: -0.4rem 0 0.9rem; font-size: 0.9rem; }
.fit-title { margin: 0 0 0.4rem; font-weight: bold; color: #2E6B3A; }
.fit-row { display: flex; gap: 0.6rem; align-items: center; justify-content: space-between; padding: 0.35rem 0; border-top: 1px solid rgba(33,28,22,0.1); }
.fit-text { flex: 1; line-height: 1.4; }
.cart-fit .fit-add { min-width: 0; width: auto; padding: 0.35rem 0.9rem; font-size: 0.9rem; }
.fit-none { margin: 0; color: rgba(33,28,22,0.7); }
/* 商品写真（tools/prepare_photos.py で作ったもの） */
.p-photo { float: left; width: 64px; height: 64px; margin: 0.1rem 0.7rem 0.3rem 0; border-radius: 6px; object-fit: cover; background: #fff; border: 1px solid rgba(33,28,22,0.12); }
@media (min-width: 641px) { .p-photo { width: 84px; height: 84px; } }
.p-item::after { content: ""; display: block; clear: both; }
/* AWONIのロゴ（2026-11-21） */
.hero-logo { display: block; width: 200px; height: auto; margin: 0 auto 1.2rem; }
@media (max-width: 640px) { .hero-logo { width: 150px; } }

/* 注文内容の控え・見積書（2026-11-21） */
.doc-view { position: fixed; inset: 0; background: #f3f1ec; z-index: 60; overflow-y: auto; padding: 1rem; }
body.doc-open { overflow: hidden; }
.doc-tools { max-width: 760px; margin: 0 auto 1rem; background: #fff; border-radius: 12px; padding: 1rem; }
.doc-tools label { display: block; font-size: 0.9rem; margin-bottom: 0.6rem; }
.doc-tools input { display: block; width: 100%; padding: 0.6rem; font-size: 1rem; border: 1px solid #ccc; border-radius: 8px; margin-top: 0.3rem; box-sizing: border-box; }
.doc-note { font-size: 0.8rem; color: #666; margin: 0 0 0.6rem; }
.doc-done { background: #eef5ea; border-radius: 8px; padding: 0.6rem 0.8rem; font-size: 0.9rem; }
.doc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.doc-msg { font-size: 0.85rem; color: #C1652F; min-height: 1em; margin: 0.5rem 0 0; }
.doc-paper { max-width: 760px; margin: 0 auto; background: #fff; padding: 1.5rem; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.12); font-size: 0.9rem; color: #211C16; }
.doc-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #3a4a35; padding-bottom: 0.5rem; margin-bottom: 1rem; }
.doc-head h2 { margin: 0; font-size: 1.4rem; letter-spacing: 0.2em; }
.doc-logo { height: 40px; width: auto; }
.doc-meta { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.doc-meta p { margin: 0.15rem 0; }
.doc-to { font-size: 1.15rem; border-bottom: 1px solid #211C16; padding-bottom: 0.2rem; margin-bottom: 0.5rem !important; }
.doc-blank { color: #aaa; }
.doc-sum { font-size: 1.05rem; margin-top: 0.6rem !important; }
.doc-sum b { font-size: 1.3rem; }
.doc-right { text-align: right; }
.doc-issuer { position: relative; margin-top: 0.6rem; line-height: 1.5; }
.doc-seal { position: absolute; right: -6px; top: -6px; width: 64px; height: 64px; opacity: 0.9; }
.doc-table { width: 100%; border-collapse: collapse; }
.doc-table th, .doc-table td { border: 1px solid #bbb; padding: 0.35rem 0.45rem; }
.doc-table th { background: #eef0ea; font-weight: 600; }
.doc-table td.n { text-align: right; white-space: nowrap; }
.doc-table tfoot td { text-align: right; }
.doc-table .doc-total td { font-weight: 700; font-size: 1.05rem; }
.doc-foot { font-size: 0.8rem; color: #555; margin-top: 0.8rem; }
@media (max-width: 640px) { .doc-paper { padding: 0.8rem; font-size: 0.8rem; } .doc-right { text-align: left; } }
@media print {
  body.doc-open > *:not(.doc-view) { display: none !important; }
  body.doc-open .doc-view { position: static; padding: 0; background: #fff; overflow: visible; }
  .no-print { display: none !important; }
  .doc-paper { box-shadow: none; max-width: none; padding: 0; font-size: 10.5pt; }
  .doc-table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.doc-btns .btn { min-width: 0; width: 100%; padding-left: 0.4rem; padding-right: 0.4rem; font-size: 0.9rem; box-sizing: border-box; }
.doc-table th { white-space: nowrap; }
.pf-set { margin-left: 0.4rem; padding: 0.2rem 0.7rem; font-size: 0.85rem; border: 1px solid #3a4a35; background: #fff; border-radius: 999px; cursor: pointer; }
.pf-docs small { color: #666; font-weight: normal; }
/* ご利用案内・特商法・サイズ表（2026-11-23） */
.doc-page h2 { margin-top: 1.8rem; }
.doc-page li { margin-bottom: 0.4rem; line-height: 1.7; }
.info-table, .size-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
.info-table th, .info-table td, .size-table th, .size-table td { border: 1px solid #ccc; padding: 0.5rem 0.6rem; vertical-align: top; text-align: left; }
.info-table th { width: 30%; background: #f3f1ec; font-weight: 600; }
.size-table th { background: #eef0ea; white-space: nowrap; }
.size-table td.n { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.doc-related { margin-top: 2rem; font-size: 0.9rem; }
.doc-related a { margin-right: 1rem; }
.footer-links a { display: inline-block; margin: 0 0.4rem 0.3rem; }
.cart-policy { font-size: 0.8rem; color: #555; margin: 0.4rem 0 0; }
.cart-sched { background: #eef5ea; border-radius: 8px; padding: 0.5rem 0.7rem; font-size: 0.85rem; margin: 0.6rem 0; }
.p-chart { display: inline-block; margin-top: 0.25rem; font-size: 0.8rem; color: #3a4a35; text-decoration: underline; }
.p-chart::after { content: " ↗"; }
.cat-size { margin: 0.2rem 0 0.8rem; font-size: 0.9rem; }
.cat-size a { color: #3a4a35; }
.table-note { font-size: 0.85rem; color: #555; }
@media (max-width: 640px) { .size-table { font-size: 0.8rem; } .size-table th, .size-table td { padding: 0.35rem 0.3rem; } .size-table th { white-space: normal; } }
.fig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin: 1rem 0; }
.fig-grid figure { margin: 0; background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 0.6rem; }
.size-fig { width: 100%; height: auto; max-height: 420px; display: block; }
.fig-grid figcaption { font-size: 0.8rem; color: #555; margin-top: 0.4rem; }
