@charset "UTF-8";
/* ==========================================================================
   さくらそう会 — base.css
   reset（モダンリセット）＋要素の基本＋タイポグラフィ
   旧 reset.css と typography.css をまとめたもの（CSS設計思想 v30 のファイル構成）。
   原則3：素の見出しにもサイトの基本トーンの装飾がデフォルトで当たる
   ========================================================================== */

/* ------------------------------------------------------------ モダンリセット */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }

  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

  body {
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--ff-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    letter-spacing: var(--tr-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { background: none; border: 0; cursor: pointer; }
  p, h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; word-break: normal; line-break: strict; }
  /* スマホの改行（設計 v30「SPの改行制御」）。見出しは行の長さをそろえ、文節で折り返す（Chrome）。
     本文は最後の行が1〜2文字だけになるのを防ぐ。上の word-break: normal より後に置く */
  h1, h2, h3, h4, h5, h6 { text-wrap: balance; word-break: auto-phrase; }
  /* 本文の pretty は Chrome 系だけ。iPhone（WebKit）の pretty は全部の行をそろえにいき、
     どの行も右が空くため（2026/11/06）。auto-phrase が分かるのは Chrome 系だけなので、それで見分ける */
  @supports (word-break: auto-phrase) {
    p, li, dd, figcaption { text-wrap: pretty; }
  }
  ul, ol { list-style: none; padding: 0; }
  a { color: inherit; }
  table { border-collapse: collapse; width: 100%; }
  address { font-style: normal; }
}

/* ------------------------------------------------------------ 要素の基本・タイポグラフィ */
@layer base {

  /* ---------------------------------------------------------- 見出し階層 */
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-heading);
    line-height: var(--lh-heading);
    letter-spacing: var(--tr-heading);
    color: var(--c-text);
  }

  h1 { font-size: var(--fs-h1); font-weight: var(--fw-bold); }
  h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold); }
  h3 { font-size: var(--fs-h3); font-weight: var(--fw-semibold); } /* 太さを落とす */
  h4 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); }
  h5, h6 { font-size: var(--fs-body); font-weight: var(--fw-semibold); }

  .t-display {
    font-family: var(--ff-heading);
    font-size: var(--fs-display);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    letter-spacing: var(--tr-display);
  }

  /* ------------------------------------------- h2 デフォルト装飾（bar） */
  h2 {
    position: relative;
    padding-left: 0.85em;
  }
  h2::before {
    content: "";
    position: absolute;
    left: 0; top: 0.22em; bottom: 0.22em;
    width: 4px;
    background: var(--c-heading-mark);
    border-radius: 2px;
  }

  /* ---------------------------------------------- h2 装飾バリエーション */
  h2:is(.t-heading--underline, .is-style-underline) { padding-left: 0; padding-bottom: 0.6em; }
  h2:is(.t-heading--underline, .is-style-underline)::before { display: none; }
  h2:is(.t-heading--underline, .is-style-underline)::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 2.5em; height: 3px;
    background: var(--c-heading-mark);
    border-radius: 2px;
  }

  h2.t-heading--number {
    display: flex; align-items: baseline; gap: 0.8em;
    padding-left: 0;
  }
  h2.t-heading--number::before {
    content: attr(data-number);
    position: static;
    width: auto; height: auto;
    background: transparent;
    font-family: var(--ff-num);
    font-size: 0.55em; font-weight: var(--fw-medium);
    color: var(--c-emphasis);
    letter-spacing: var(--tr-wide);
  }

  h2:is(.t-heading--centered, .is-style-centered) { text-align: center; padding-left: 0; }
  h2:is(.t-heading--centered, .is-style-centered)::before { display: none; }

  h2:is(.t-heading--plain, .is-style-plain) { padding-left: 0; }
  h2:is(.t-heading--plain, .is-style-plain)::before { display: none; }

  /* ------------------------------------------------------------ h3 装飾 */
  h3:is(.t-heading--square, .is-style-square) {
    position: relative;
    padding-left: 1.1em;
  }
  h3:is(.t-heading--square, .is-style-square)::before {
    content: "";
    position: absolute;
    left: 0; top: 0.62em;
    width: 0.5em; height: 0.5em;
    background: var(--c-emphasis);
  }

  h4:is(.t-heading--accent-line, .is-style-accent-line) {
    padding-left: 0.7em;
    border-left: 2px solid var(--c-brand-200);
  }

  /* -------------------------------------------------------- 余白の原則
     見出し・段落そのものには margin を持たせない。
     間隔は layout.css の「流し込み（flow）」で、後ろの要素の上余白だけで作る。
     こうすると margin の相殺や、gap との二重がけが起きない。
     ------------------------------------------------------------------ */
  :where(h1, h2, h3, h4, h5, h6, p, ul, ol, figure, table, blockquote) {
    margin-block: 0;
  }

  /* ---------------------------------------------------------- 本文まわり */
  /* 段落どうしだけは、字送りに対する比率で間隔を取る */
  p + p { margin-block-start: 1.5em; }

  /* 色は指定しない。親から継承させることで濃色帯でもそのまま成立する。 */
  .t-lead {
    font-size: var(--fs-lead);
    line-height: var(--lh-loose);
  }
  .t-small   { font-size: var(--fs-small); }
  .t-caption { font-size: var(--fs-caption); color: var(--c-text-muted); line-height: 1.7; }
  .t-muted   { color: var(--c-text-muted); }

  /* Eyebrow ── 図案は入れない。英字ラベルのみで構成する。 */
  .t-eyebrow {
    display: block;
    font-family: var(--ff-eyebrow);
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-medium);
    letter-spacing: var(--tr-eyebrow);
    text-transform: uppercase;
    color: var(--c-emphasis);
  }

  /* 品種名のよみ */
  .t-reading {
    display: block;
    font-size: var(--fs-caption);
    color: var(--c-text-muted);
    letter-spacing: var(--tr-wide);
  }

  /* ------------------------------------------------------------ リンク */
  a { color: var(--c-link); text-underline-offset: 0.2em; }
  /* 訪問済みリンクが赤紫に変わり、一覧で色がばらついていた */
  a:visited { color: var(--c-link); }
  a:hover, a:visited:hover { color: var(--c-link-hover); }

  .t-textlink {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    font-weight: var(--fw-medium);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: color var(--dur) var(--ease);
  }

  /* ------------------------------------------------------------ リスト */
  .t-list { display: grid; gap: var(--sp-3); }
  .t-list > li { position: relative; padding-left: 1.2em; }
  .t-list > li::before {
    content: "";
    position: absolute; left: 0.15em; top: 0.72em;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--c-brand-200);
  }
  /* チェックリスト：項目が短いので2列に組む */
  .t-list--check { gap: var(--sp-2) var(--sp-6); }
  @media (min-width: 700px) { .t-list--check { grid-template-columns: 1fr 1fr; } }
  .t-list--check > li::before {
    width: 0; height: 0; border-radius: 0; background: none;
    top: 0; left: 0;
    content: "✓";
    color: var(--c-emphasis);
    font-weight: var(--fw-bold);
  }

  .t-list--ordered { counter-reset: t-list; }
  .t-list--ordered > li { padding-left: 1.8em; }
  .t-list--ordered > li::before {
    counter-increment: t-list;
    content: counter(t-list) ".";
    width: auto; height: auto; border-radius: 0;
    background: none; top: 0;
    font-family: var(--ff-num);
    color: var(--c-emphasis);
  }

  /* 本文中の注記記号（※）。右上に小さく置き、行の高さは変えない。 */
  .t-noteref {
    font-size: 0.6em;
    line-height: 0;
    vertical-align: 0;
    position: relative; top: -0.9em;
    margin-inline: 0.1em;
  }
}
