@charset "UTF-8";
/* ==========================================================================
   さくらそう会 — pages.css
   ヘッダー・フッター・ページ見出しなど、サイト固有の骨格のみ。
   部品は components.css、色や余白は tokens.css を参照すること。
   ========================================================================== */

@layer pages {

  /* 見出しを持たないページ用の細い紺帯（300年の物語・類似品種・未認定品種の下層）。
     色は p-pagehead をそのまま使い、ここでは高さと、パンくずの上余白だけを打ち消す。
     （2026/10/13 段階1でいったん外し、2026/10/16 に作業者の指示で細い帯に戻した） */
  .p-pagehead.p-crumbband { padding-block: var(--sp-1); }
  .p-pagehead.p-crumbband .c-breadcrumb { margin-block-start: 0; }
  /* スマホでは記事名が長いとパンくずが2行になる。本文と同じ行間・行の間隔だと
     帯が間延びするので、行間と、折り返した行どうしの間隔を詰める。 */
  @media (max-width: 767px) {
    .p-pagehead.p-crumbband .c-breadcrumb { line-height: 1.5; row-gap: var(--sp-1); }
  }

  /* ====================================================== 物語の記事
     記事を白い箱に入れ、12px の縁に和柄を敷く。
     border-image だと 12px に押し込むとき柄が潰れるため、
     白は padding-box、柄は border-box に敷いて2枚重ねで組む。 */
  .p-articlebox {
    border: 12px solid transparent;
    /* 縁の地色に柄を重ねる。柄は白抜き部分が透けるので地色がそのまま出る。 */
    background: var(--c-pattern-ground) url("../images/deco-pattern.png") repeat;
    background-size: 220px auto;
  }
  /* 中身は白。縁の柄はこの下に回り込んでいるので、ここで伏せる。 */
  /* 柄の縁を持たない版。白い面と余白だけを物語の記事とそろえる。 */
  .p-articlebox--plain { border: 0; background: none; }

  .p-articlebox__inner {
    background: var(--c-surface);
    padding: var(--sp-6) var(--sp-5);
  }
  /* スマホでは、和柄の枠の外（和紙の地）の左右・上の余白をなくし、枠を画面の端とパンくずの帯に着ける。
     下の「前後の記事」リンクだけは、画面の端に着かないよう通常の左右余白を残す。
     柄の縁を持たない版（--plain、入会フォーム）は対象外。 */
  @media (max-width: 767px) {
    .l-section:has(> .l-container > .p-articlebox:not(.p-articlebox--plain)) { padding-block-start: 0; }
    .l-container:has(> .p-articlebox:not(.p-articlebox--plain)) { padding-inline: 0; }
    .l-container:has(> .p-articlebox:not(.p-articlebox--plain)) > .l-cluster { padding-inline: var(--container-pad); }
  }
  /* 幅が取れたら、左右をゆったりさせて一行を読みやすい長さに保つ。 */
  @media (min-width: 900px) {
    .p-articlebox__inner { padding: var(--sp-8) var(--sp-9); }
  }
  /* 記事名の直後に来る時代の見出しは、話題の切れ目ではないので詰める。 */
  .p-articlebox__inner > :where(h1 + h2) { --flow: var(--sp-5); }
  /* スマホでは、記事名の下の時代名（h2）の上下を詰める。上は8px、下は何が続いても16px。 */
  @media (max-width: 767px) {
    .p-articlebox__inner > h1 + h2 { --flow: var(--sp-2); }
    .p-articlebox__inner > h1 + h2 + * { --flow: var(--sp-4); }
  }
  /* 挿絵は縦に長すぎるので、上下を均等に切って横長に見せる。
     画像データはそのままで、表示だけ切り取る。 */
  .p-articlebox__inner figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
  /* 上側に見せたいものがある絵は、上端を残して下を切る。 */
  .p-articlebox__inner figure.c-figure--croptop img { object-position: top; }
  /* 文字の入った図版や縦長の絵は切り取らず、全体を見せる。
     枠は他の画像と同じ 16:9 に揃え、余白は生成りで埋める。 */
  .p-articlebox__inner figure.c-figure--whole img { object-fit: contain; background: var(--c-kinari-100); }
  /* 品種の写真を並べるときなど、写真をそのままの形（縦横比）で見せる。16:9 に切り取らない。 */
  .p-articlebox__inner figure.c-figure--natural img { aspect-ratio: auto; }
  /* 類似品種の見分け方：比べる表のすぐ上に並べた株全体の写真は、上下を切らずに全体を見せる。 */
  .p-articlebox__inner > .l-grid:has(+ .p-compare) figure img { aspect-ratio: auto 1 / 1; }

  /* ---- JOIN US：ボタンではなくバナー ------------------------------------
     白地＋淡い桜色の太枠。イラストは枠の左と上下にわざとはみ出させる。
     ホバーで色を動かさない（枠と絵で十分に押せると分かるため）。
     --------------------------------------------------------------------- */
  .p-joinbanners {
    /* 絵が左へ36pxはみ出すので、その分だけ横の間隔を足しておく。
       l-cluster の 32px だと隣の枠と絵が重なる。 */
    gap: var(--sp-5) 76px;
  }
  .p-joinbanner {
    display: flex; align-items: center; gap: var(--sp-2);
    inline-size: min(420px, 100%);
    block-size: 100px;
    padding-inline: var(--sp-4);
    border: 6px solid var(--c-accent-100);
    background: var(--c-bg);
    color: var(--c-text);
    text-decoration: none;
  }
  .p-joinbanner:hover,
  .p-joinbanner:visited { color: var(--c-text); }
  /* ブロックエディタで組んだバナー：グループ（p-joinbanner）の中に
     画像ブロック（figure.p-joinbanner__ico > img）と段落（p-joinbanner__txt > a）。
     figure は箱を消して img を直接並べ、段落のリンクを枠いっぱいに広げて全体を押せるようにする。 */
  .p-joinbanner { position: relative; }
  .p-joinbanner > * { margin-block: 0; }
  figure.p-joinbanner__ico { display: contents; }
  .p-joinbanner__txt a { color: inherit; text-decoration: none; }
  .p-joinbanner__txt a::after { content: ""; position: absolute; inset: 0; }
  .p-joinbanner__ico, .p-joinbanner__ico > img {
    flex: 0 0 auto;
    border-radius: 0;
    inline-size: auto;
    block-size: 115px;              /* 枠の100pxより高い＝上下にはみ出す */
    max-inline-size: none;
    margin-inline-start: -36px;     /* 左にはみ出す */
  }
  .p-joinbanner__txt {
    flex: 1 1 auto; min-inline-size: 0;
    text-align: center;
    font-size: var(--fs-body);
    font-weight: var(--fw-bold);
  }
  /* voice の絵は人物が画面いっぱいで重く見えるので90%に落とす */
  :is(.p-joinbanner__ico--sm, .p-joinbanner__ico--sm > img) { block-size: 104px; }
  @media (max-width: 599px) {
    .p-joinbanners { gap: var(--sp-5) var(--sp-6); }
    .p-joinbanner { block-size: 84px; padding-inline: var(--sp-2); }
    :is(.p-joinbanner__ico, .p-joinbanner__ico > img) { block-size: 92px; margin-inline-start: -20px; }
    :is(.p-joinbanner__ico--sm, .p-joinbanner__ico--sm > img) { block-size: 83px; }
    .p-joinbanner__txt { font-size: var(--fs-small); }
  }
  /* 横に長い大きめの変種。絵は枠の上へ頭半分ほど出し、下は枠にぴたりと着ける。 */
  .p-joinbanner--lg { inline-size: min(760px, 100%); block-size: 150px; }
  /* 大きい変種では絵を左へはみ出させない（枠の中に収める）。 */
  .p-joinbanner--lg :is(.p-joinbanner__ico, .p-joinbanner__ico > img) { margin-inline-start: 0; }
  /* 左へのはみ出しをやめ、下端を枠に着ける。はみ出すのは上だけになる。 */
  :is(.p-joinbanner__ico--inset, .p-joinbanner__ico--inset > img) { margin-inline-start: 0; align-self: flex-end; }
  :is(.p-joinbanner__ico--tall, .p-joinbanner__ico--tall > img) {
    block-size: 200px;
    align-self: flex-end;     /* 絵の下端を枠の内側にぴたりと着ける */
  }
  @media (max-width: 767px) {
    .p-joinbanner--lg { block-size: 110px; }
    :is(.p-joinbanner__ico--tall, .p-joinbanner__ico--tall > img) { block-size: 148px; }
  }

  /* 「光を生かした撮り方」の2枚組。写真が400px幅の原寸なので、
     引き伸ばさずに図と説明の幅を揃え、2枚をまとめて中央に置く。 */
  #light .l-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 400px));
    column-gap: var(--sp-8);
    justify-content: center;
  }
  /* 締めの注記は、直前の図版から距離を取る。 */
  .p-photo__note { --flow: var(--sp-8); }

  /* ---- CTA：写真の上に置く。覆いは使わず、文字側に光をにじませる ---- */
  .p-cta { position: relative; isolation: isolate; overflow: hidden; }
  .p-cta__img { position: absolute; inset: 0; z-index: -1; }
  /* ブロックの画像（figure > img）は figure の箱を消し、img を枠いっぱいに広げる */
  :is(.p-hero__img, .p-cta__img) > .wp-block-image { display: contents; }
  .p-cta__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
  .p-cta__body {
    position: relative;
    display: grid; gap: var(--sp-5); justify-items: center;
    text-align: center;
    padding-block: clamp(4rem, 9vw, 7rem);
  }
  .p-cta__body::before {
    content: "";
    position: absolute; inset-block: 6%; inset-inline: 8%;
    background: radial-gradient(52% 52% at 50% 50%,
      rgb(var(--c-glow-rgb) / .78) 0%,
      rgb(var(--c-glow-rgb) / .56) 45%,
      rgb(var(--c-glow-rgb) / .20) 72%,
      rgb(var(--c-glow-rgb) / 0) 92%);
    pointer-events: none; z-index: -1;
  }
  .p-cta__body :is(h2, p) {
    color: var(--c-brand-900);
    text-shadow:
      0 0 6px rgb(var(--c-glow-rgb) / .96),
      0 0 22px rgb(var(--c-glow-rgb) / .86),
      0 0 50px rgb(var(--c-glow-rgb) / .66);
  }
  .p-cta .c-btn--primary,
  .p-cta .wp-block-button:is(:not([class*="is-style-"]), .is-style-primary) .wp-block-button__link { box-shadow: var(--sh-cta); }
  /* 背景の写真（46 桜草花壇・51 花形花色を調和よく陳列）は花が細かく文字が読みにくいため、
     光のにじみの代わりに、見出し・文・ボタンの下に白（70%）の四角を敷く。
     文どうしの間も半分ほどに詰める。CTAの帯すべて（トップ・写真の色・会員特典・リニューアル）に当てる（2026/11/19 作業者の指示） */
  .p-cta .p-cta__body {
    width: fit-content;
    max-width: min(calc(100% - 2 * var(--container-pad)), var(--container-narrow));
    margin-block: clamp(3rem, 7vw, 5rem);
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 3rem);
    grid-template-columns: minmax(0, 1fr);   /* 狭い画面でも中身を四角の幅に収める */
    row-gap: var(--sp-3);
    background: rgb(255 255 255 / .7);
    border-radius: var(--r-md);
  }
  .p-cta .p-cta__body::before { content: none; }
  .p-cta .p-cta__body :is(h2, p) { text-shadow: none; }
  .p-cta .p-cta__body p { line-height: 1.8; }
  .p-cta .p-cta__body > p { margin-block-start: 0; }
  /* 見出しの下とボタンの上は、文どうしより少し広く */
  .p-cta .p-cta__body > h2 { margin-block-end: var(--sp-2); }
  .p-cta .p-cta__body > :is(.l-cluster, .wp-block-buttons) { margin-block-start: var(--sp-3); }


  /* 紋所の記事。誌面と同じく、左に出語の図、右に説明文と紋所のアップを置く。 */
  .p-monsho { align-items: start; }
  .p-monsho > .l-flow { --flow: var(--sp-5); }

  /* 類似品種の見くらべ表。項目名の列は内容ぶんの幅でよいので、12em の既定を外す。 */
  .p-compare th { width: auto; }
  .p-compare thead th { color: var(--c-text); background: var(--c-surface-alt); }
  .p-compare__corner { background: transparent; border-block-end: 0; }

  /* 旧サイトから引き継いだ比較写真。接写なので、図鑑の写真より小さく置く。 */
  .p-compare__shots img { inline-size: 100%; block-size: auto; border-radius: var(--r-sm); }
  .p-compare__shots figcaption { font-size: var(--fs-small); color: var(--c-text-muted); }

  /* 狭い画面では、品種ごとにまとめて縦に読ませる。
     data-col の順に並べ替えると、見出し（品種名）とその値が一かたまりになる。 */
  @media (max-width: 599px) {
    .p-compare { display: grid; grid-template-columns: 1fr; }
    .p-compare thead, .p-compare tbody, .p-compare tr { display: contents; }
    .p-compare__corner, .p-compare tbody th { display: none; }
    .p-compare th[data-col], .p-compare td[data-col] { display: block; width: auto; }
    .p-compare th[data-col="1"], .p-compare td[data-col="1"] { order: 1; }
    .p-compare th[data-col="2"], .p-compare td[data-col="2"] { order: 2; }
    .p-compare th[data-col="3"], .p-compare td[data-col="3"] { order: 3; }
    .p-compare thead th { text-align: center; white-space: normal; }
    .p-compare td::before {
      content: attr(data-label);
      display: block;
      margin-block-end: var(--sp-1);
      color: var(--c-text-muted);
      font-weight: var(--fw-semibold);
    }
  }

  /* 入会者の声：番号は付けず、一人ぶんを白い箱に収める。 */
  .p-voices .c-steps { counter-reset: none; }
  .p-voices .c-steps__item { grid-template-columns: 1fr; }
  .p-voices .c-steps__item::before,
  .p-voices .c-steps__item::after { content: none; }   /* 番号と、番号をつなぐ縦罫を出さない */
  .p-voices .c-steps__item > div {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    padding: var(--sp-6);
  }

  /* 入会の流れ：番号の丸をカードの上端にまたがせ、その下に挿絵を置く。
     丸は c-steps の番号と同じ寸法・同じ色にそろえている。 */
  .p-flowcard {
    position: relative;
    margin-block-start: 1.25rem;
    align-items: center;
    text-align: center;
    height: auto;          /* 引き伸ばさず、中身ぶんの高さで止める */
  }
  .p-flowcard__num {
    position: absolute;
    inset-block-start: 0; inset-inline-start: 50%;
    transform: translate(-50%, -50%);
    display: grid; place-items: center;
    width: 2.5rem; height: 2.5rem;
    border-radius: 50%;
    background: var(--c-brand-800);
    color: var(--c-text-invert);
    font-family: var(--ff-num);
    font-size: var(--fs-small);
    font-weight: var(--fw-bold);
  }
  /* ブロックエディタの画像ブロック（figure.p-flowcard__ico > img）は figure の箱を消し、img に同じ指定を当てる */
  figure.p-flowcard__ico { display: contents; }
  :is(img.p-flowcard__ico, .p-flowcard__ico > img) {
    inline-size: 100%;
    aspect-ratio: 1; object-fit: contain;
  }
  /* 絵柄が枠いっぱいに描かれているものは少し縮める。枠の大きさは変えないので、
     4枚のカードの高さと文章の位置はそろったままになる。 */
  :is(img.p-flowcard__ico, .p-flowcard__ico > img) { transform: scale(var(--ico-scale, 1)); }
  .p-flowcard__ico--sm { --ico-scale: .9; }
  .p-flowcard__ico--xs { --ico-scale: .75; }
  /* カードは中身ぶんの高さにする（引き伸ばしで下に余白が出ないように）。 */
  .l-grid:has(> .p-flowcard) { align-items: start; }
  /* スマホ（1列）では、挿絵を左・文章を右に並べ、文章は左寄せ。挿絵は幅の3割（全幅から7割小さく）。
     エディタの画像ブロックは figure が display: contents なので、img がそのまま格子の升に入る（2026/11/17 作業者の指示） */
  @media (max-width: 599px) {
    .p-flowcard {
      display: grid;
      grid-template-columns: 30% 1fr;
      column-gap: var(--sp-4);
      row-gap: var(--sp-1);
      align-content: center;
      text-align: start;
    }
    :is(img.p-flowcard__ico, .p-flowcard__ico > img) { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
    .p-flowcard > :is(h3, p:not(.p-flowcard__num)) { grid-column: 2; }
    .p-flowcard > h3 { align-self: end; }
    .p-flowcard > p:not(.p-flowcard__num) { align-self: start; }
  }

  /* 写真つきの注記。地は白、区切りの縦罫は出さない。
     写真は説明文と釣り合う大きさに抑え、横幅いっぱいには広げない。 */
  .c-note.l-media {
    background: var(--c-surface);
    border-inline-start: 0;
    border-radius: var(--r-md);
  }
  .c-note.l-media > .wp-block-image { display: contents; }
  .c-note.l-media > img, .c-note.l-media > .wp-block-image > img { width: 100%; max-width: 260px; height: auto; justify-self: center; }
  /* 展示会情報：リード文の下の写真（単独） */
  .p-exhibit-photo { margin-top: var(--sp-5); max-width: 720px; }
  .p-exhibit-photo > img, .p-exhibit-photo > .wp-block-image > img { width: 100%; height: auto; border-radius: var(--r-md); }
  /* 写真2枚を並べる注記。高さを揃えるため、各写真の幅を縦横比に比例させる（切り取らない）。 */
  .p-photopair { display: flex; gap: var(--sp-3); width: 100%; }
  .p-photopair > .wp-block-image { display: contents; }
  .p-photopair > img, .p-photopair > .wp-block-image > img { min-width: 0; height: auto; }
  .p-photopair > img:nth-child(1), .p-photopair > .wp-block-image:nth-child(1) > img { flex: 1.231; }  /* 800×650 */
  .p-photopair > img:nth-child(2), .p-photopair > .wp-block-image:nth-child(2) > img { flex: 1.743; }  /* 1400×803 */
  @media (min-width: 768px) {
    /* 文章は写真の上端から始める。c-note の詰まった gap では写真と文が近すぎるので広げる。 */
    .c-note.l-media { grid-template-columns: 260px 1fr; align-items: start; column-gap: 40px; }
    .c-note.l-media.c-note--pair { grid-template-columns: 520px 1fr; }
  }

  /* 年表：左に紺の縦線を通し、各項目の頭に点を打つ。
     点の中心が線の上に重なるよう、padding と位置を合わせている。 */
  .c-steps--timeline { position: relative; padding-inline-start: 24px; }
  .c-steps--timeline::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 4px;
    width: 2px;
    background: var(--c-brand-800);
  }
  /* 日付は1行の箱にして本文の上に置く（PC・SPとも。左に箱を並べると、SPで日付が細切れに折れるため）。 */
  .c-steps--timeline .c-steps__item { grid-template-columns: 1fr; gap: var(--sp-2); }
  .c-steps--timeline .c-steps__mark {
    position: relative;
    justify-self: start;
    min-height: 0;
    padding: var(--sp-1) var(--sp-3);
    line-height: 1.25;
  }
  .c-steps--timeline .c-steps__mark > span { display: flex; flex-wrap: wrap; column-gap: 0.5em; }
  /* 手順の部品の「番号をつなぐ線」は、年表では左の紺の線と重なるので出さない */
  .c-steps--timeline .c-steps__item::after { content: none; }
  /* 点は日付の箱の高さの中央に。線の中心（左から5px）に重ねる。 */
  .c-steps--timeline .c-steps__mark::before {
    content: "";
    position: absolute;
    inset-inline-start: -25px;
    inset-block-start: 50%;
    transform: translateY(-50%);
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c-timeline-dot);
  }

  /* 句を並べる箱。読み上げる間合いが要るので行間を広く取り、
     明朝で組む。区切りの縦罫は一句ずつの独立を妨げるので出さない。 */
  .c-note--poem {
    background: var(--c-poem-bg);
    border-inline-start: 0;
    border-radius: var(--r-md);
    font-family: var(--ff-heading);
    font-size: var(--fs-body);
    line-height: 2.6;
    padding: var(--sp-7) var(--sp-6);
  }


  /* テクスチャは「和紙1層」のみ。重ねない。
     濃さは地色の薄膜（--c-washi-veil = --c-kinari-50 の30%）で落とす。
     和紙を不透明度70%で敷くのと同じ結果で、テクスチャは1層のまま。
     タイルは元寸の512px。 */
  body {
    background-color: var(--c-kinari-50);
    background-image:
      linear-gradient(var(--c-washi-veil), var(--c-washi-veil)),
      url("../images/paper.webp");
    background-repeat: no-repeat, repeat;
    background-size: auto, 512px auto;
  }

  /* ====================================================== ヘッダー */
  .p-header {
    position: sticky; inset-block-start: 0; z-index: 50;
    background: var(--c-bg);
    border-block-end: 1px solid var(--c-line);
  }
  /* ロゴは左端。ナビと入会ボタンは右側でひとまとまりにする。
     space-between だけだとロゴとナビが寄って、右に空白が残る。 */
  /* ロゴは「さくらそう会」＋英字副題の2行組み。
     2行を左端揃えにすると副題の字送りのぶんだけ右に余って見えるので、
     行どうしを中央で揃える。ブロック自体は帯の上下中央に置く。 */
  .p-header .c-logo {
    --logo-ja: var(--fs-logo-ja-sm);
    --logo-en: var(--fs-logo-en-sm);
    --logo-gap: 2px;
    align-items: center;
    text-align: center;
  }
  .p-header .c-logo__ja { font-size: var(--logo-ja); }
  .p-header .c-logo__en { font-size: var(--logo-en); }

  .p-header__inner {
    display: flex; align-items: center;
    gap: var(--sp-5);
    /* 帯の総高は --header-h ちょうど。min-height ではなく height で
       決め打ちにする（中身は最大44pxなので溢れない）。
       padding-block と併用すると二重にかかるので余白は持たせない。 */
    height: var(--header-h);
    padding-block: 0;
  }
  /* 直下の要素は例外なく上下中央。
     margin-block: 0 が本命。layout.css の flow
     （:is(.l-container, .l-flow, .c-steps__item > div) > * + *）が
     ヘッダーにも効いて、ロゴ以外の子に上余白32pxが付いている。
     layout 側にも打ち消しはあるが :is() の中に .c-steps__item > div が
     入っているせいで特異度(0,1,1)に上がり、打ち消し(0,1,0)が負ける。
     pages レイヤーは layout より後なので、ここで確実に止める。 */
  .p-header__inner > * {
    align-self: center;
    margin-block: 0;
  }
  /* ナビ・ボタン・ハンバーガーは「高さ44pxの箱」に揃える。
     上下の padding で背を稼ぐと部品ごとに高さがずれ（ナビ52.8px /
     ボタン47px / バーガー44px）、帯の中央に対して文字の位置が
     ばらつく。高さは min-height だけで決め、文字は箱の中で中央に。 */
  .p-header :is(.p-nav__toggle, .p-header__cta, .p-burger) {
    min-height: 44px;
    padding-block: 0;
  }
  .p-header__cta { display: none; }
  @media (min-width: 1180px) {
    .p-header__cta {
      display: inline-flex;
      min-height: 44px;
      padding-inline: var(--sp-5);
      font-size: var(--fs-caption);
    }
  }

  .p-nav { display: none; }
  @media (min-width: 1024px) {
    .p-nav {
      display: flex;
      align-items: center;         /* 既定の stretch だと項目が帯の高さまで伸びる */
      gap: var(--sp-5);
      margin-inline-start: auto;   /* ロゴとの間だけを空ける */
    }
    .p-burger { margin-inline-start: 0; }
  }
  .p-nav__item { position: relative; }
  .p-nav__toggle {
    display: flex; align-items: center; gap: var(--sp-1);
    padding-inline: var(--sp-1);
    font-size: var(--fs-small);
    color: var(--c-text);
    white-space: nowrap;
  }
  /* 開閉の三角は補助記号なので、文字より控えめに */
  .p-nav__toggle .c-icon { width: .9em; height: .9em; color: var(--c-text-subtle); }
  .p-nav__toggle.is-active { color: var(--c-emphasis); font-weight: var(--fw-bold); }
  .p-nav__sub {
    position: absolute; inset-block-start: 100%; inset-inline-start: 0;
    min-width: 15em;
    display: none;
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-md);
    padding: var(--sp-2);
  }
  /* マウスを乗せる・キーボードで移る、で開くのはPCのヘッダーだけ。
     スマホの引き出しメニューでは押して開く（is-open）だけにする。iPhoneでは触れた時点で
     :hover が付き、その場で中身が開くとタップが「押した」にならず、開く所がずれていたため（2026/11/19） */
  @media (min-width: 1024px) {
    .p-header__inner .p-nav__item:focus-within .p-nav__sub { display: grid; }
  }
  @media (min-width: 1024px) and (hover: hover) {
    .p-header__inner .p-nav__item:hover .p-nav__sub { display: grid; }
  }
  .p-nav__sub.is-open { display: grid; }
  .p-nav__sub a {
    display: block; padding: var(--sp-2) var(--sp-3);
    font-size: var(--fs-small); text-decoration: none;
    border-radius: var(--r-sm);
    white-space: nowrap;
  }
  /* 下層は親より一段軽くして、階層が伝わるようにする */
  .p-nav__sub a { font-weight: var(--fw-normal); }
  .p-nav__sub a:hover { background: var(--c-brand-50); }
  .p-nav__sub a[aria-current="page"] { color: var(--c-emphasis); font-weight: var(--fw-bold); }

  /* ハンバーガーと引き出しメニュー */
  .p-burger {
    display: grid; place-items: center;
    padding-inline: var(--sp-2); color: var(--c-text);
    margin-inline-start: auto;   /* ナビ非表示時は右端へ */
  }
  @media (min-width: 1024px) { .p-burger { display: none; } }
  .p-drawer {
    border-block-start: 1px solid var(--c-line);
    padding-block: var(--sp-4);
    max-height: 70vh; overflow-y: auto;
    background: var(--c-bg);
  }
  @media (min-width: 1024px) { .p-drawer { display: none; } }
  /* 引き出しの中も同じ flow が効いて項目間に32px空くので打ち消す
     （罫線で区切っているので余白は不要） */
  .p-drawer .l-container > * { margin-block: 0; }
  .p-drawer .p-nav__item { border-block-end: 1px solid var(--c-line); }
  .p-drawer .p-nav__toggle { width: 100%; justify-content: space-between; padding-block: var(--sp-3); }
  .p-drawer .p-nav__sub {
    position: static; min-width: 0;
    border: 0; box-shadow: none; padding: 0 0 var(--sp-3) var(--sp-4);
  }
  /* 引き出しの最下部に「入会のご案内」。見た目はPCヘッダーのボタン（.p-header__cta）と同じ。 */
  .p-drawer .p-drawer__cta {
    display: flex; justify-content: center;
    padding-block-start: var(--sp-5);
  }
  /* 入会ボタンの下の余白を、上（--sp-5）とそろえる */
  .p-drawer:has(.p-drawer__cta) { padding-block-end: var(--sp-5); }
  .p-drawer__cta .c-btn {
    min-height: 44px;
    padding-block: 0;
    padding-inline: var(--sp-5);
    font-size: var(--fs-caption);
  }

  /* ====================================================== ページ見出し */
  .p-pagehead {
    background: var(--c-surface-invert);
    color: var(--c-text-invert);
    padding-block: var(--sp-7);
  }
  .p-pagehead h1 { color: var(--c-text-invert); }
  /* 品種ページの見出しのよみ（「認定品種 No.001 青海原（あおうなばら）」の括弧の部分）は太字にしない */
  .p-pagehead__reading { font-weight: var(--fw-normal); }
  /* 品種ページの写真の並び（株全体 → 花の接写 → その他）。すべて同じ大きさ（横4：縦3）にそろえる。
     縦長の写真（is-portrait）は切らずに、同じ枠の中に収める。 */
  .p-photos .c-figure img { aspect-ratio: 4 / 3; object-fit: cover; }
  .p-photos .c-figure.is-portrait img { object-fit: contain; }
  .p-pagehead .c-breadcrumb { color: var(--c-brand-200); margin-block-start: var(--sp-3); }
  .p-pagehead .c-breadcrumb a { color: var(--c-text-invert); }
  .p-pagehead .c-breadcrumb li + li::before { color: var(--c-brand-200); }

  /* ====================================================== 帯の線画 */
  /* 枝の線画は生成り帯のみ。1ページに1〜2箇所まで。 */
  /* ブロックエディタではグループのスタイル「枝の線画」（is-style-washi）で付ける。
     地は生成り帯（l-section--alt）と同じ。 */
  .is-style-washi { background: var(--c-surface); }
  :is(.p-washi, .is-style-washi) { position: relative; overflow: hidden; }
  :is(.p-washi, .is-style-washi)::before {
    content: ""; position: absolute; inset: 0;
    pointer-events: none;
    /* 左右2本。右は花数の多い deco-branch-r.svg で、左右の密度に差をつける。 */
    background:
      url("../images/deco-branch.svg")   no-repeat left  -90px bottom -60px / 360px 450px,
      url("../images/deco-branch-r.svg") no-repeat right -70px bottom -50px / 340px 430px;
    opacity: .085;
  }
  :is(.p-washi, .is-style-washi) > * { position: relative; }

  /* ====================================================== フッター */
  .p-footer { background: var(--c-surface-invert); color: var(--c-text-invert); }
  /* 会の情報だけは紙の質感を敷いて、リンク一覧と面を分ける。
     画像が出ない環境でも色は変わらないよう、地色を先に置いている。 */
  .p-footer__brand {
    position: relative;
    background: var(--c-surface-invert);
    padding-block: var(--sp-7);
  }
  /* 紺の上にノイズをオーバーレイで25%重ねる。文字には掛けない。 */
  .p-footer__brand::before {
    content: "";
    position: absolute; inset: 0;
    background: url("../images/noise.webp") repeat;
    background-size: 64px;
    mix-blend-mode: overlay;
    opacity: .35;
    pointer-events: none;
  }
  .p-footer__brand > * { position: relative; }
  /* フッターの分類見出し。広い画面ではただの見出しに見せる。 */
  .p-footer__toggle {
    all: unset;
    display: flex; align-items: center; justify-content: space-between;
    inline-size: 100%;
    font: inherit; color: inherit;
    cursor: default;
  }
  .p-footer__toggle .c-icon { display: none; }
  @media (max-width: 599px) {
    .p-footer__toggle { cursor: pointer; min-block-size: 56px; }
    .p-footer__toggle .c-icon { display: block; transition: transform var(--dur) var(--ease); }
    .p-footer__toggle[aria-expanded="true"] .c-icon { transform: rotate(180deg); }
    .p-footer__col > ul { display: none; }
    /* ボタンは h3 の中なので、ul は兄弟ではない。列ごと見て開く。 */
    .p-footer__col:has(.p-footer__toggle[aria-expanded="true"]) > ul { display: grid; }
    /* .p-footer__nav の gap 32px は、この指定より後ろで定義されていて
       クラス1つでは勝てない。親を足して強めている。 */
    .p-footer .p-footer__nav { gap: 0; }
    .p-footer__col + .p-footer__col { border-block-start: 1px solid var(--c-line-invert); }
    /* 見出し下の飾り罫は、開閉の区切り線と重なって読みづらいので出さない。
       罫のために空けてあった下余白も外し、文字が区切り線の中央に来るようにする。 */
    .p-footer__col h3::after { content: none; }
    .p-footer__col h3 { padding-block-end: 0; }
  }

  /* 会名と住所を白い罫で仕切って横に並べる。会名の2行は互いに中央で揃える。 */
  .p-footer__id { display: grid; gap: var(--sp-4); }
  .p-footer__id .c-logo { text-align: center; }
  @media (min-width: 600px) {
    .p-footer__id { grid-template-columns: auto 1fr; align-items: center; gap: var(--sp-6); }
    .p-footer__id > p {
      border-inline-start: 1px solid var(--c-line-invert-strong);
      padding-inline-start: var(--sp-6);
    }
  }

  /* 著作権表記は住所より一段小さく、控えめに。 */
  .p-footer__copy { font-size: var(--fs-xsmall); }   /* 13px：住所の15pxより一段小さく */
  .p-footer a { color: var(--c-text-invert); text-decoration: none; }
  .p-footer a:hover { color: var(--c-accent-200); }
  /* 7列は1列あたりが狭く、項目名が折り返してしまう。最大4列に抑える。 */
  .p-footer__nav { display: grid; gap: var(--sp-6) var(--sp-5); }
  @media (min-width: 600px)  { .p-footer__nav { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 900px)  { .p-footer__nav { grid-template-columns: repeat(3, 1fr); } }
  @media (min-width: 1160px) { .p-footer__nav { grid-template-columns: repeat(4, 1fr); } }
  /* ヘッダーのナビと同じ考え方。見出しを semibold、項目は normal。 */
  .p-footer__col h3 { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--c-accent-200); }
  .p-footer__col ul { margin-block-start: var(--sp-3); }
  .p-footer__col li { font-size: var(--fs-caption); padding-block: 3px; }
  .p-footer .c-logo__ja { color: var(--c-text-invert); }
  .p-footer .c-logo__en { color: var(--c-brand-200); }
  .p-footer .t-caption { color: var(--c-brand-200); }

  /* ====================================================== ページ内メニュー */
  .p-anchors {
    display: flex; flex-wrap: wrap; gap: var(--sp-2);
    padding-block-start: var(--sp-5);
  }
  /* ブロックでは、リンクが1つの段落（p）の中にまとめて入る。段落の箱を消して、リンクを並びの直接の中身にする（間隔 gap を効かせる） */
  .p-anchors > p { display: contents; }
  .p-anchors a {
    padding: var(--sp-2) var(--sp-4);
    border: 1px solid var(--c-brand-200);
    border-radius: var(--r-pill);
    font-size: var(--fs-caption);
    text-decoration: none;
  }
  .p-anchors a:hover { background: var(--c-brand-50); }

  /* 追従するページ内メニュー（300年の物語）。
     帯ごとヘッダーの真下に貼りつく。sticky は親の範囲でしか効かないので、
     帯は section の中ではなく main の直下に置く。
     地は物語の記事の縁（.p-articlebox）と同じ和柄。 */
  .p-anchorbar {
    position: sticky; inset-block-start: var(--header-h); z-index: 40;
    display: flex; align-items: center;
    block-size: var(--anchorbar-h);
    background: var(--c-pattern-ground) url("../images/deco-pattern.png") repeat;
    background-size: 220px auto;
    /* 濃い緑の上では臙脂のフォーカス枠が見えにくいので、白にする */
    --c-focus: var(--c-text-invert);
  }
  .p-anchorbar > .l-container { inline-size: 100%; }
  /* 1行に並べ、入りきらない分は横にスクロール（折り返すと帯が高くなるため）。
     上下の余白は、フォーカスの枠が切れないためのもの。 */
  .p-anchorbar .p-anchors {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-block: var(--sp-2);
  }
  .p-anchorbar .p-anchors::-webkit-scrollbar { display: none; }
  /* 和柄の上でも読めるよう、リンクは白地・枠線なし・紺の文字にする。
     ホバーで紺地に白抜き。 */
  .p-anchorbar .p-anchors a,
  .p-anchorbar .p-anchors a:visited {
    flex: 0 0 auto; white-space: nowrap;
    border: 0;
    background: var(--c-bg);
    color: var(--c-brand-900);
  }
  .p-anchorbar .p-anchors a:hover {
    background: var(--c-brand-900);
    color: var(--c-text-invert);
  }
  /* 白地の版（写真の撮り方）。帯は白＋下に細い罫、リンクは紺の線・紺の文字。
     ホバーで紺地に白抜き。フォーカス枠は通常の臙脂に戻す。 */
  .p-anchorbar--plain {
    background: var(--c-bg);
    border-block-end: 1px solid var(--c-line);
    --c-focus: var(--c-accent-800);
    /* 止まっていないときは、リンクの下にも上（リード文との間）と同じくらいの余白を置く。 */
    block-size: calc(var(--anchorbar-h) + var(--sp-5));
    padding-block-end: var(--sp-5);
  }
  /* 上に貼りついている間（js/ds-nav.js が is-stuck を付ける）は、元の高さに戻す。
     減らしたぶんは外側の余白に回して、ページ全体の高さを変えない（中身が跳ねないように）。 */
  .p-anchorbar--plain.is-stuck {
    block-size: var(--anchorbar-h);
    padding-block-end: 0;
    margin-block-end: var(--sp-5);
  }
  .p-anchorbar--plain .p-anchors a,
  .p-anchorbar--plain .p-anchors a:visited {
    border: 1px solid var(--c-brand-900);
    background: var(--c-bg);
    color: var(--c-brand-900);
  }
  /* 訪問済み（:visited）の指定より後ろに置いて、ホバーを必ず効かせる */
  /* 白地の版は、直前の帯（リード文）と一続きに見せる。帯の下余白を詰めて、リンクをリード文に近づける。 */
  .l-section:has(+ .p-anchorbar--plain) { padding-block-end: var(--sp-5); }
  .p-anchorbar--plain .p-anchors a:hover {
    background: var(--c-brand-900);
    color: var(--c-text-invert);
  }

  /* PCでは、短いリンクの幅を「昭和前期」（全角4文字）にそろえる（300年の物語の和柄の帯のみ）。
     最小幅を4文字ぶん＋字間の余裕（0.2em）＋左右の余白にして、
     「昭和前期」自身もこの幅になるようにする（4つが完全に同じ幅になる）。
     長いリンクはそのままの幅。 */
  @media (min-width: 768px) {
    .p-anchorbar:not(.p-anchorbar--plain) .p-anchors a {
      min-inline-size: calc(4.2em + var(--sp-4) * 2);
      text-align: center;
    }
  }
  /* リンク先の見出しが、ヘッダーと帯の陰に隠れないようにする */
  html:has(.p-anchorbar) { scroll-padding-top: calc(var(--header-h) + var(--anchorbar-h)); }

  /* ====================================================== 一覧 */
  .p-list__item {
    display: grid; gap: var(--sp-2);
    padding-block: var(--sp-4);
    border-block-end: 1px solid var(--c-line);
  }
  @media (min-width: 600px) { .p-list__item { grid-template-columns: 12em 1fr; gap: var(--sp-4); } }
  /* ブロックでは日付と本文が段落（p）になる。p + p の字下げ余白（base.css）を当てない */
  .p-list__item > * { margin-block: 0; }
  /* 「毎年4月中下旬」のように和文が混じるため、英字書体は使わない。 */
  .p-list__date {
    font-family: var(--ff-body);
    color: var(--c-text-muted);
    font-size: var(--fs-small);
    font-feature-settings: "palt";
  }
  .p-list__ttl { font-size: var(--fs-small); }

  /* お知らせの詳細（single-post.php）。題は h1 だが、見た目は h2 の赤い縦線と同じにする */
  .p-newsttl {
    position: relative;
    padding-left: 0.85em;
    font-size: var(--fs-h2);
  }
  .p-newsttl::before {
    content: "";
    position: absolute;
    left: 0; top: 0.22em; bottom: 0.22em;
    width: 4px;
    background: var(--c-heading-mark);
    border-radius: 2px;
  }
  :where(.t-eyebrow + .p-newsttl) { --flow: var(--sp-2); }

  /* セクション内の縦の間隔（スマホ・全ページ共通）。
     l-stack の gap（--lg は48px）に layout.css の flow の上余白（32px）が重なり、
     80px前後空いていたので、上余白を止めて gap 24px に揃える。 */
  @media (max-width: 599px) {
    .l-section > .l-container.l-stack { gap: var(--sp-5); }
    .l-section > .l-container.l-stack > * { margin-block-start: 0; }
  }

  /* ##################################################################
     ここから下は、各ページの <style> から移したもの（2026/10/13 段階1）。
     WordPress ではページ本文に <style> を置けないため、pages.css に集める。
     クラスはすべてそのページだけで使われていることを確認済み。
     ################################################################## */

  /* ================================================ トップページ（index.html） */
  /* ---- ヒーロー ----------------------------------------------------------
     写真の上にコピーを重ねる。ただし覆い（グラデーション・座布団）は使わない。
     コピー側に白いにじみ影を重ねて、文字そのものを浮かせる。
     写真は一切暗くしないので、花の色がそのまま残る。
     --------------------------------------------------------------------- */
  .p-hero { position: relative; isolation: isolate; overflow-x: clip; }
  .p-hero__img { position: absolute; inset: 0; z-index: -1; }
  .p-hero__img img {
    width: 100%; height: 100%; object-fit: cover;
    object-position: 62% center;
  }
  /* コピー背面に楕円の淡い光。輪郭のない放射なので板には見えない。
     光が透明になりきる前に要素の端で切れないよう、要素は左右に広めに取り、
     グラデーションの中心と半径はその幅に合わせて換算している（見た目の位置・大きさは従来どおり）。
     はみ出しは .p-hero の overflow-x: clip で横スクロールにしない。 */
  .p-hero__body::before {
    content: "";
    position: absolute;
    inset-block: 4%; inset-inline-start: -40%;
    width: 180%;
    background: radial-gradient(41.2% 50% at 45.4% 50%,
      rgb(var(--c-glow-rgb) / .72) 0%,
      rgb(var(--c-glow-rgb) / .52) 42%,
      rgb(var(--c-glow-rgb) / .22) 68%,
      rgb(var(--c-glow-rgb) / 0) 88%);
    pointer-events: none;
    z-index: -1;
  }

  .p-hero__body {
    position: relative;
    max-width: 30em;
    padding-block: clamp(3rem, 8vw, 6.5rem);
    min-height: clamp(26rem, 42vw, 36rem);
    display: flex; flex-direction: column; justify-content: center;
  }

  /* 文字の可読性：白い光を三層で重ねる。板を敷くより輪郭が自然に出る。 */
  .p-hero__title,
  .p-hero__lines p {
    text-shadow:
      0 0 6px rgb(var(--c-glow-rgb) / .96),
      0 0 20px rgb(var(--c-glow-rgb) / .88),
      0 0 48px rgb(var(--c-glow-rgb) / .70);
  }
  .p-hero__title {
    font-family: var(--ff-heading);
    font-size: var(--fs-hero);
    line-height: 1.5;
    font-weight: var(--fw-bold);
    color: var(--c-brand-900);
  }
  .p-hero__title .is-accent { color: var(--c-accent-900); }
  .p-hero__lines { display: grid; gap: var(--sp-2); margin-block: var(--sp-5) var(--sp-6); }
  .p-hero__lines p { margin: 0; font-weight: var(--fw-medium); color: var(--c-brand-900); }
  .p-hero .c-btn { align-self: flex-start; box-shadow: var(--sh-hero); }
  /* ブロックのボタン（wp-block-buttons > wp-block-button > a）でも同じ置き方・影にする */
  .p-hero .wp-block-buttons { align-self: flex-start; }
  .p-hero .wp-block-button__link { box-shadow: var(--sh-hero); }

  @media (max-width: 899px) {
    .p-hero__img img { object-position: 72% center; }
    .p-hero__body { max-width: none; min-height: 0; padding-block: clamp(2.5rem, 10vw, 4rem); }
  }

  .p-gallery figcaption { text-align: center; }
  /* 品種は絵で選ぶので、狭い画面でも2枚並べて見比べられるようにする。 */
  @media (max-width: 599px) {
    .p-gallery { grid-template-columns: repeat(2, 1fr); }
    /* 親（l-stack--lg）の gap 48px に --flow が足されて空きすぎるので、
       狭い画面では上乗せをやめて gap だけにする。 */
    .p-gallery + .t-caption,
    .p-gallery + .t-caption + .l-cluster { --flow: 0; }
  }

  /* ---- MEMBER：特典カードのイラスト -------------------------------------
     3点は縦横比がばらばら（0.77 / 1.72 / 2.66）なので、同じ箱に
     object-fit: contain で流し込む。箱の高さが揃うので、下の見出しの
     行位置が3枚でずれない。
     --------------------------------------------------------------------- */
  /* 見出しは中央寄せ。本文は読みやすさのため左揃えのまま。
     c-card--feature は MEMBER と JOIN US の計6枚だけに付いている。 */
  .c-card--feature h3 { text-align: center; }
  figure.p-benefit__ico { display: contents; }
  :is(img.p-benefit__ico, .p-benefit__ico > img) {
    display: block;
    inline-size: 132px;
    block-size: 76px;
    max-inline-size: 100%;
    object-fit: contain;
    object-position: center;
    margin-inline: auto;        /* 絵もカードの中央へ */
  }
  /* exhibition は横長で小さく見えるので1.25倍。
     箱の幅だけ広げれば、高さ(76px)は変えずに絵だけ大きくなる
     ＝3枚の見出しの行位置は揃ったまま。 */
  :is(img.p-benefit__ico--lg, .p-benefit__ico--lg > img) { inline-size: 165px; }
  @media (max-width: 599px) {
    :is(img.p-benefit__ico, .p-benefit__ico > img) { inline-size: 112px; block-size: 64px; }
    :is(img.p-benefit__ico--lg, .p-benefit__ico--lg > img) { inline-size: 140px; }
  }

  /* ====================================================== スマホのみ（599px以下）・トップページ固有 */
  @media (max-width: 599px) {
    /* ギャラリー下のボタン：認定品種・選抜佳品を横並び、品種を検索はその下の中央。 */
    .p-gallery ~ .l-cluster {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--sp-3);
    }
    /* 2つ並べても1行に収まるよう、文字を画面幅に応じて少し小さくする。 */
    .p-gallery ~ .l-cluster > .wp-block-button { margin: 0; min-width: 0; }   /* 枠にも c-btn--wide が付くので外す */
    .p-gallery ~ .l-cluster > .c-btn,
    .p-gallery ~ .l-cluster > .wp-block-button > .wp-block-button__link {
      min-width: 0;
      padding-inline: var(--sp-2);
      margin: 0;
      white-space: nowrap;
      letter-spacing: 0.02em;
      font-size: var(--fs-btn-fit-sp);
    }
    /* ブロックのボタンは、リンクを枠いっぱいに広げる */
    .p-gallery ~ .l-cluster > .wp-block-button > .wp-block-button__link { width: 100%; }
    .p-gallery ~ .l-cluster > :is(.c-btn, .wp-block-button):nth-child(3) {
      grid-column: 1 / -1;
      justify-self: center;
      width: calc(50% - var(--sp-3) / 2);
    }
  }

  /* ================================================ 品種を検索（search.html） */
  /* 右下のさくらそうの図は、2026/09/30 の指示でいったん外しています。
     戻す場合は下のコメントを解いてください。地色はそのまま残しています。 */
  .p-searchmain { background: var(--c-search-bg); }
  .p-searchmain > .l-container { position: relative; z-index: 1; }
/*
  ／* 右下にさくらそうの図を敷く。絵の地色（#FEFCF5）を面にも敷いて、
     絵の四角が浮かないようにしている。文字の下には潜り込ませる。 *／
  .p-searchmain { position: relative; overflow: hidden; background: var(--c-search-bg); }
  .p-searchmain > .l-container { position: relative; z-index: 1; }
  .p-searchmain::after {
    content: "";
    position: absolute; inset-block-end: 0; inset-inline-end: 0;
    inline-size: 300px; block-size: 507px;
    background: url("../images/search-flower.webp") no-repeat right bottom / contain;
    opacity: .8;
    pointer-events: none;
  }
  @media (max-width: 899px) {
    .p-searchmain::after { inline-size: 180px; block-size: 304px; opacity: .55; }
  }
*/

  .p-facet { margin-block-start: var(--sp-5); }
  .p-facet__label { font-size: var(--fs-caption); color: var(--c-text-muted);
    font-weight: var(--fw-semibold); margin-block-end: var(--sp-2); }
  /* 選択中のタグは紺地に白抜き。押せる／押されているを見分ける */
  /* 一文字の色名でも幅が揃うよう、「淡紫」ぶんを最小幅にし、文字は中央に置く。 */
  .p-stag { min-inline-size: 63px; justify-content: center; }
  .p-stag[aria-checked="true"] { background: var(--c-brand-800); color: var(--c-text-invert);
    border-color: var(--c-brand-800); }
  .p-searchbar { margin-block-start: var(--sp-6); align-items: baseline; }
  /* 品種の詳細の表の下のタグ（押すと花図鑑（検索）へ）。表に続くので、ふつうの横並びより詰める */
  .p-vtags { --flow: var(--sp-6); gap: var(--sp-3); }
  .p-count { font-weight: var(--fw-bold); }
  .p-reset[hidden] { display: none; }
  /* 写真がまだ無い品種のスロット */
  .p-noimg { display: grid; place-items: center; aspect-ratio: 4 / 3;
    background: var(--c-surface-alt); color: var(--c-text-muted); font-size: var(--fs-caption); }
  .p-hit__meta { display: block; color: var(--c-text-muted); font-size: var(--fs-caption); }

  /* ================================================ 認定品種・選抜佳品（varieties.html / selection.html） */
  /* 番号タブ。選択中はブランド色を敷いて、押せる／押されているを見分ける。 */
  .p-vtab[aria-selected="true"] {
    background: var(--c-brand-800);
    color: var(--c-text-invert);
    border-color: var(--c-brand-800);
  }
  /* 写真のない番号帯のタブ（認定品種のみ） */
  .p-vtab[disabled] { opacity: .4; cursor: not-allowed; }
  .p-vtab[disabled]:hover { background: var(--c-surface); }

  /* layout.css の「同じ地色の帯が続いたら上余白を落とす」ルールは、
     隣接セレクタなので hidden の兄弟も“続いている”と数えてしまう。
     タブは常に1枚だけ見えるので、2枚目以降も上余白を持たせる。 */
  .p-vpanel + .p-vpanel { padding-block-start: var(--section-py); }

  /* 選抜佳品の番号 */
  .p-kno { display: block; font-size: var(--fs-caption); color: var(--c-text-muted); }
}
