/* =============================================================
 * 記事「魚のサイズの測り方」: 図とインタラクティブ部品（.sz-*）
 * articles/sakana-size-hakarikata/_assets.blade.php から1回だけ読み込む。
 * 色・書体は column.css の変数を使う。
 * 箱: 白地・1px の線・角丸・影なし。図の中の文字は 12px 以上。
 * 動き: JS が .is-pre / .sz-anim を付けたときだけ。「動きを減らす」設定では止める。
 * ============================================================= */

.col-page .sz-fig {
    --sz-red: #d6342c;
    --sz-red-ink: #b8261f;
    --sz-sea: #1a6dba;
    --sz-ika: #e07b2a;
    --sz-ref: #9aa7b1;
    --sz-ill-fill: #eef4f8;
    position: relative;
    margin-top: 1.8em;
    margin-bottom: 1.8em;
    padding: 18px 14px 16px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--col-ink);
    background: var(--col-surface);
    border: 1px solid var(--col-line);
    border-radius: var(--col-r);
    text-wrap: pretty;
}
/* ワイド枠: column.css の .col-wide は狭い画面で左右に gutter ぶん狭くなるので、本文幅に戻す */
@supports (width: 1cqw) {
    .col-page .sz-fig.col-wide {
        margin-left: calc((100% - min(var(--col-wide), 100cqw)) / 2);
        margin-right: calc((100% - min(var(--col-wide), 100cqw)) / 2);
    }
}
@media (max-width: 767.98px) {
    .col-page .sz-fig.col-wide { margin-left: 0; margin-right: 0; }
}
.col-page .sz-fig p,
.col-page .sz-fig ul,
.col-page .sz-fig ol,
.col-page .sz-fig li,
.col-page .sz-fig fieldset,
.col-page .sz-fig legend { margin: 0; padding: 0; list-style: none; border: 0; }
.col-page .col-body .sz-fig li + li,
.col-page .col-section .sz-fig li + li { margin-top: 0; }
.col-page .col-body .sz-fig ol,
.col-page .col-body .sz-fig ul { padding-left: 0; }
.col-page .col-body .sz-fig li::before,
.col-page .col-body .sz-fig li::marker { content: none; }
.col-page .sz-fig b,
.col-page .sz-fig strong { font-weight: 700; background: none; }
.col-page .sz-fig svg { display: block; overflow: visible; }

/* ---- 題・注記・キャプション ---- */
.col-page .sz-fig .sz-fig__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; line-height: 1.6; color: var(--col-navy); }
.col-page .sz-fig .sz-fig__title { margin-top: 2px; font-size: 19px; font-weight: 700; line-height: 1.5; color: var(--col-navy-800); }
.col-page .sz-fig .sz-fig__title span { display: inline-block; }
.col-page .sz-fig .sz-fig__eg { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--col-ink-2); }
.col-page .sz-fig .sz-fig__note { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--col-ink-2); }
.col-page .sz-fig .sz-fig__eg + .sz-fig__note { margin-top: 2px; }
.col-page .sz-fig .sz-fig__cap { margin-top: 10px; font-size: 13.5px; line-height: 1.7; color: var(--col-ink-2); }

/* ---- 線画（共通） ---- */
.col-page .sz-fig .sz-ill,
.col-page .sz-fig .sz-ill path { fill: var(--sz-ill-fill); stroke: var(--col-navy-800); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.col-page .sz-fig .sz-ill--mute,
.col-page .sz-fig .sz-ill--mute path { fill: none; stroke: #9fb0bc; stroke-width: 2; }
.col-page .sz-fig .sz-ill--leg path,
.col-page .sz-fig .sz-ill--arm path { fill: none; stroke: var(--col-navy-800); stroke-width: 3.2; }
.col-page .sz-fig .sz-ill--arm path { stroke: #4a6375; stroke-width: 4; }
.col-page .sz-fig .sz-ill--seg { fill: none; stroke-width: 1.5; }
.col-page .sz-fig .sz-ill--scale { fill: #f4f6f8; }
.col-page .sz-fig .sz-ill--tape { fill: #fff4c2; stroke: #b89a1a; stroke-width: 1.5; }
.col-page .sz-fig .sz-ill--lid { fill: #f7f9fc; stroke: #9fb0bc; stroke-width: 1.5; }
.col-page .sz-fig .sz-ill--phone { fill: #fff; stroke: var(--col-navy-800); stroke-width: 2.5; }
.col-page .sz-fig .sz-ill__screen { fill: #d9eef8; }
.col-page .sz-fig .sz-ill__eye { fill: var(--col-navy-800); stroke: none; }
.col-page .sz-fig .sz-ill__tick { fill: none; stroke: #8a7310; stroke-width: 1.2; }
.col-page .sz-fig .sz-ill__frame { fill: none; stroke: var(--col-navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.col-page .sz-fig .sz-ill__arrow { fill: none; stroke: var(--col-ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.col-page .sz-fig .sz-ill__lbl { font-size: 12px; font-weight: 700; fill: var(--col-ink-2); }
.col-page .sz-fig .sz-ill__warn { font-size: 20px; font-weight: 700; fill: var(--sz-red-ink); }

/* ---- 寸法線（赤＝測る所） ---- */
.col-page .sz-fig .sz-dim__line { fill: none; stroke: var(--sz-red); stroke-width: 2.6; stroke-linecap: round; }
.col-page .sz-fig .sz-dim__ext { fill: none; stroke: var(--sz-red); stroke-width: 1.2; stroke-dasharray: 3 3; opacity: .8; }
.col-page .sz-fig .sz-dim__arrow,
.col-page .sz-fig .sz-dim__dot { fill: var(--sz-red); stroke: none; }
.col-page .sz-fig .sz-dim--sub .sz-dim__line { stroke-dasharray: 5 4; stroke-linecap: butt; }
.col-page .sz-fig .sz-dim--box .sz-dim__line { fill: #fff; stroke-width: 2.4; }
.col-page .sz-fig .sz-dim--ar .sz-dim__line { stroke-dasharray: 4 4; stroke-linecap: butt; }
.col-page .sz-fig .sz-dim__txt { font-size: 16px; font-weight: 700; fill: var(--sz-red-ink); }
.col-page .sz-fig .sz-dim__txt--sub { font-size: 15px; }
.col-page .sz-fig .sz-dim__txt--s { font-size: 13px; }
.col-page .sz-fig .sz-dim__pill { fill: #fff; stroke: var(--sz-red); stroke-width: 1.2; }

/* 線を引く動き（article.js が .sz-anim を付け、見えたら .is-in）
 * pathLength="1" の実線は端から引く。点線・枠・矢印・文字は、引き終わるころに浮かび上がる */
.col-page .sz-anim .sz-dim__line[pathLength] { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.4, 0, .2, 1); }
.col-page .sz-anim .sz-dim__line:not([pathLength]),
.col-page .sz-anim .sz-dim__arrow,
.col-page .sz-anim .sz-dim__dot,
.col-page .sz-anim .sz-dim__txt,
.col-page .sz-anim .sz-dim__pill { opacity: 0; transition: opacity .4s ease .7s; }
.col-page .sz-anim.is-in .sz-dim__line[pathLength] { stroke-dashoffset: 0; }
.col-page .sz-anim.is-in .sz-dim__line:not([pathLength]),
.col-page .sz-anim.is-in .sz-dim__arrow,
.col-page .sz-anim.is-in .sz-dim__dot,
.col-page .sz-anim.is-in .sz-dim__txt,
.col-page .sz-anim.is-in .sz-dim__pill { opacity: 1; }
/* カードごとに少しずつ遅らせる */
.col-page .sz-anim li:nth-child(2) .sz-dim__line[pathLength] { transition-delay: .15s; }
.col-page .sz-anim li:nth-child(3) .sz-dim__line[pathLength] { transition-delay: .3s; }
.col-page .sz-anim li:nth-child(4) .sz-dim__line[pathLength] { transition-delay: .45s; }

/* =============================================================
 * 魚以外の測り方（.sz-others）: スマホ 2×2・PC 4列
 * ============================================================= */
.col-page .sz-others .sz-others__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.col-page .sz-others .sz-card { display: flex; flex-direction: column; min-width: 0; padding: 10px 9px 12px; background: #fff; border: 1px solid var(--col-line); border-radius: var(--col-r-sm); }
.col-page .sz-others .sz-card__svg { width: 100%; max-width: 200px; height: auto; margin: 0 auto 6px; aspect-ratio: 160 / 120; }
.col-page .sz-others .sz-card__name { font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--col-navy-800); }
.col-page .sz-others .sz-card__what { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.col-page .sz-others .sz-card__tag { display: inline-block; padding: 1px 9px; font-size: 14px; font-weight: 700; line-height: 1.6; color: #fff; background: var(--sz-red-ink); border-radius: 999px; }
.col-page .sz-others .sz-card__tag--sub { color: var(--sz-red-ink); background: #fff; border: 1.5px dashed var(--sz-red); padding: 0 8px; }
.col-page .sz-others .sz-card__or { font-size: 13px; color: var(--col-ink-2); }
.col-page .sz-others .sz-card__desc { margin-top: 6px; font-size: 13.5px; line-height: 1.65; color: var(--col-ink); }
/* 幅 320〜374px: 絵が縮んで図の文字が 12px を割らないよう、余白を詰めて字を上げる */
@media (max-width: 374.98px) {
    .col-page .sz-others { padding-left: 10px; padding-right: 10px; }
    .col-page .sz-others .sz-card { padding-left: 6px; padding-right: 6px; }
    .col-page .sz-others .sz-dim__txt,
    .col-page .sz-others .sz-dim__txt--sub { font-size: 17px; }
}
@media (min-width: 768px) {
    .col-page .sz-others { padding: 22px 20px 18px; }
    .col-page .sz-others .sz-others__cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
    .col-page .sz-others .sz-card { padding: 12px 12px 14px; }
    .col-page .sz-others .sz-card__desc { font-size: 14px; }
}

/* =============================================================
 * メジャーがないとき（.sz-nomeasure）: スマホ 縦に3枚・PC 3列
 * ============================================================= */
.col-page .sz-nomeasure .sz-nm__cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 14px; }
.col-page .sz-nomeasure .sz-nm { display: flex; flex-direction: column; min-width: 0; padding: 12px 12px 14px; background: #fff; border: 1px solid var(--col-line); border-radius: var(--col-r-sm); }
.col-page .sz-nomeasure .sz-nm__head { display: flex; align-items: center; gap: 8px; }
.col-page .sz-nomeasure .sz-nm__num { flex: 0 0 26px; width: 26px; height: 26px; font-size: 14px; font-weight: 700; line-height: 26px; text-align: center; color: #fff; background: var(--col-navy); border-radius: 50%; }
.col-page .sz-nomeasure .sz-nm__title { font-size: 16px; font-weight: 700; line-height: 1.45; color: var(--col-navy-800); }
.col-page .sz-nomeasure .sz-nm__svg { width: 100%; max-width: 340px; height: auto; margin: 10px auto 8px; aspect-ratio: 240 / 130; }
.col-page .sz-nomeasure .sz-nm__desc { font-size: 14px; line-height: 1.7; }
.col-page .sz-nomeasure .sz-ill__lbl { font-size: 13px; }
.col-page .sz-nomeasure .sz-nm__desc b { color: var(--sz-red-ink); }
@media (min-width: 768px) {
    .col-page .sz-nomeasure { padding: 22px 20px 18px; }
    .col-page .sz-nomeasure .sz-nm__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}

/* =============================================================
 * 投稿データの横棒グラフ（.sz-chart）
 *   行: 名前 | 棒 | 数字（下の段に cm・重さ の内訳）
 *   棒の長さ = --v / --max。平均の線 = --avg / --max
 * ============================================================= */
.col-page .sz-chart .sz-chart__switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.col-page .sz-chart .sz-chart__switch[hidden] { display: none; }
.col-page .sz-chart .sz-chart__btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 0; min-height: 50px; margin: 0; padding: 5px 4px;
    font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-align: center;
    color: var(--col-navy); background: #fff;
    border: 1.5px solid rgba(13, 79, 140, .35); border-radius: var(--col-r-sm);
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.col-page .sz-chart .sz-chart__btn small { font-size: 12px; font-weight: 500; }
.col-page .sz-chart .sz-chart__btn:hover { border-color: var(--col-navy); }
.col-page .sz-chart .sz-chart__btn:focus-visible { outline: 3px solid rgba(76, 195, 240, .85); outline-offset: 2px; }
.col-page .sz-chart .sz-chart__btn[aria-pressed="true"] { color: #fff; background: var(--col-navy); border-color: var(--col-navy); }

.col-page .sz-chart .sz-chart__lead { margin-top: 10px; font-size: 14.5px; line-height: 1.7; }
.col-page .sz-chart:not([data-view="all"]) .sz-chart__only--all,
.col-page .sz-chart:not([data-view="cm"]) .sz-chart__only--cm,
.col-page .sz-chart:not([data-view="kg"]) .sz-chart__only--kg { display: none; }

.col-page .sz-chart .sz-chart__legend { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 8px; font-size: 13px; line-height: 1.7; color: var(--col-ink-2); }
.col-page .sz-chart .sz-chart__legend li { display: inline-flex; align-items: center; gap: 5px; }
.col-page .sz-chart .sz-chart__sw { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.col-page .sz-chart .sz-chart__sw--sea { background: var(--sz-sea); }
.col-page .sz-chart .sz-chart__sw--ika { background: var(--sz-ika); }
.col-page .sz-chart .sz-chart__sw--ref { background: var(--sz-ref); }
.col-page .sz-chart .sz-chart__sw--avg { width: 0; height: 14px; border-left: 2px dashed var(--col-ink); border-radius: 0; margin: 0 6px; }

.col-page .sz-chart .sz-chart__plot {
    --nw: 6.6em;   /* 名前の列 */
    --vw: 3.7em;   /* 数字の列 */
    --gp: 8px;
    position: relative;
    margin-top: 10px;
    padding-top: 26px; /* 平均のラベルの分 */
    font-size: 14px;
}
.col-page .sz-chart .sz-chart__group { margin: 10px 0 2px; font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--col-ink-2); }
.col-page .sz-chart .sz-chart__group:first-of-type { margin-top: 0; }
.col-page .sz-chart .sz-chart__group--sea { color: var(--sz-sea); }
.col-page .sz-chart .sz-chart__group--ika { color: #a8530f; }
.col-page .sz-chart .sz-chart__row {
    display: grid;
    grid-template-columns: var(--nw) minmax(0, 1fr) var(--vw);
    grid-template-areas: "name track ." ". sub .";
    column-gap: var(--gp);
    align-items: center;
    padding: 4px 0 5px;
    border-top: 1px solid rgba(14, 42, 61, .06);
}
.col-page .sz-chart .sz-chart__rows .sz-chart__row:first-child { border-top: 0; }
.col-page .sz-chart .sz-chart__name { grid-area: name; font-size: 14.5px; font-weight: 700; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-page .sz-chart .sz-chart__track { grid-area: track; position: relative; display: block; height: 16px; }
.col-page .sz-chart .sz-chart__bar {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: calc(var(--v) * 100% / var(--max));
    max-width: 100%;
    background: var(--sz-sea);
    border-radius: 0 4px 4px 0;
    transition: width .6s cubic-bezier(.3, .7, .2, 1);
}
.col-page .sz-chart .sz-chart__rows--ika .sz-chart__bar { background: var(--sz-ika); }
.col-page .sz-chart .sz-chart__rows--ref .sz-chart__bar { background: var(--sz-ref); }
/* 数字は棒の先に付ける（棒と一緒に動く）。平均の線より手前に出す */
.col-page .sz-chart .sz-chart__val {
    position: absolute; top: 50%; z-index: 3;
    left: calc(var(--v) * 100% / var(--max));
    transform: translateY(-50%);
    padding: 0 4px 0 6px;
    font-size: 13px; line-height: 1.3; white-space: nowrap; color: var(--col-ink-2);
    font-variant-numeric: tabular-nums;
    background: #fff;
    transition: left .6s cubic-bezier(.3, .7, .2, 1);
}
.col-page .sz-chart .sz-chart__val b { font-size: 15px; color: var(--col-ink); }
.col-page .sz-chart .sz-chart__sub { grid-area: sub; position: relative; z-index: 3; justify-self: start; display: flex; flex-wrap: wrap; gap: 0 12px; margin-top: 1px; font-size: 12px; line-height: 1.5; color: var(--col-ink-2); font-variant-numeric: tabular-nums; }
.col-page .sz-chart .sz-chart__sub > span { padding-right: 3px; background: #fff; }
.col-page .sz-chart[data-view="cm"] .sz-chart__subcm,
.col-page .sz-chart[data-view="kg"] .sz-chart__subkg { font-weight: 700; color: var(--col-ink); }
/* 重さが cm より多い行（タコ）を目立たせる */
.col-page .sz-chart .sz-chart__row.is-wt .sz-chart__subkg { font-weight: 700; color: #a8530f; }

/* 平均の線: 棒の列の中の位置に置く */
.col-page .sz-chart .sz-chart__avg {
    position: absolute;
    top: 6px;
    bottom: 26px; /* 目盛りの分 */
    left: calc(var(--nw) + var(--gp) + (100% - var(--nw) - var(--vw) - var(--gp) * 2) * var(--avg) / var(--max));
    width: 0;
    border-left: 2px dashed var(--col-ink);
    z-index: 2;
    pointer-events: none;
    transition: left .6s cubic-bezier(.3, .7, .2, 1);
}
.col-page .sz-chart .sz-chart__avglbl { position: absolute; top: -6px; left: 0; transform: translateX(-50%); padding: 0 6px; font-size: 12px; font-weight: 700; line-height: 18px; white-space: nowrap; color: var(--col-ink); background: #fff; border: 1px solid var(--col-line); border-radius: 999px; }
.col-page .sz-chart .sz-chart__avglbl b { font-variant-numeric: tabular-nums; }

/* 目盛り（下） */
.col-page .sz-chart .sz-chart__axis {
    position: relative;
    height: 22px;
    margin-top: 4px;
    margin-left: calc(var(--nw) + var(--gp));
    margin-right: calc(var(--vw) + var(--gp));
    border-top: 1px solid rgba(14, 42, 61, .25);
}
.col-page .sz-chart .sz-chart__axis span { position: absolute; white-space: nowrap; top: 3px; transform: translateX(-50%); font-size: 12px; line-height: 1.4; color: var(--col-ink-2); font-variant-numeric: tabular-nums; }
.col-page .sz-chart .sz-chart__axis span:first-child { transform: none; }
.col-page .sz-chart .sz-chart__axis span:last-child { transform: translateX(-100%); }

/* 見えたら棒が伸びる（article.js が .is-pre を付け、見えたら外す） */
.col-page .sz-chart.is-pre .sz-chart__row { --v: 0 !important; }
.col-page .sz-chart.is-pre .sz-chart__val { opacity: 0; }
.col-page .sz-chart.is-grow .sz-chart__bar,
.col-page .sz-chart.is-grow .sz-chart__val { transition: width .9s cubic-bezier(.3, .7, .2, 1), left .9s cubic-bezier(.3, .7, .2, 1), opacity .3s ease; transition-delay: calc(var(--i, 0) * 55ms); }

@media (min-width: 768px) {
    .col-page .sz-chart { padding: 22px 22px 18px; }
    .col-page .sz-chart .sz-chart__plot { --nw: 7.4em; --vw: 4.6em; --gp: 12px; max-width: 860px; }
    .col-page .sz-chart .sz-chart__track { height: 18px; }
    .col-page .sz-chart .sz-chart__switch { max-width: 520px; }
}

/* =============================================================
 * 記録の一行メーカー（.sz-maker）
 * ============================================================= */
.col-page .sz-maker { background: var(--col-surface); }
.col-page .sz-maker .sz-maker__tool[hidden] { display: none; }
.col-page .sz-maker.is-js .sz-maker__static { display: none; }
.col-page .sz-maker .sz-maker__sub { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--col-navy); }
.col-page .sz-maker .sz-maker__examples { margin-top: 6px; }
.col-page .sz-maker .sz-maker__examples li { padding: 8px 12px; font-size: 15px; line-height: 1.6; background: var(--col-surface-2); border: 1px solid var(--col-line); border-radius: var(--col-r-sm); }
.col-page .sz-maker .sz-maker__examples li + li { margin-top: 6px; }
.col-page .sz-maker .sz-maker__hint { margin-top: 10px; font-size: 13.5px; color: var(--col-ink-2); }
.col-page .sz-maker .sz-maker__privacy { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--col-ink-2); }

.col-page .sz-maker .sz-maker__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.col-page .sz-maker .sz-maker__field { min-width: 0; }
.col-page .sz-maker .sz-maker__field[hidden] { display: none; }
.col-page .sz-maker .sz-maker__label { display: block; margin-bottom: 5px; padding: 0; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--col-navy-800); }
.col-page .sz-maker .sz-maker__label small { font-size: 12px; font-weight: 500; color: var(--col-ink-2); }
.col-page .sz-maker .sz-maker__input,
.col-page .sz-maker .sz-maker__select {
    display: block; width: 100%; min-height: 46px; margin: 0; padding: 8px 12px;
    font-family: inherit; font-size: 16px; /* iOS で拡大されない大きさ */
    line-height: 1.4; color: var(--col-ink); background: #fff;
    border: 1.5px solid rgba(14, 42, 61, .28); border-radius: var(--col-r-sm);
    -webkit-appearance: none; appearance: none; box-shadow: none;
}
.col-page .sz-maker .sz-maker__select {
    padding-right: 34px;
    background-image: linear-gradient(45deg, transparent 50%, var(--col-navy) 50%), linear-gradient(135deg, var(--col-navy) 50%, transparent 50%);
    background-position: right 17px top 50%, right 12px top 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    /* サイト共通の custom_style.css が select に #EEE と右余白を !important で付けるので、ここだけ戻す */
    background-color: #fff !important;
    padding-right: 34px !important;
}
.col-page .sz-maker .sz-maker__input:focus,
.col-page .sz-maker .sz-maker__select:focus { outline: 3px solid rgba(76, 195, 240, .6); outline-offset: 1px; border-color: var(--col-navy); }
.col-page .sz-maker .sz-maker__numrow { display: flex; align-items: center; gap: 8px; }
.col-page .sz-maker .sz-maker__input--num { width: 8.5em; flex: 0 0 auto; text-align: right; font-variant-numeric: tabular-nums; }
.col-page .sz-maker .sz-maker__select--unit { width: 5.2em; flex: 0 0 auto; }
.col-page .sz-maker .sz-maker__select--unit[hidden],
.col-page .sz-maker .sz-maker__unit[hidden] { display: none; }
.col-page .sz-maker .sz-maker__unit { font-size: 16px; font-weight: 700; }

.col-page .sz-maker .sz-maker__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.col-page .sz-maker .sz-maker__pill { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.col-page .sz-maker .sz-maker__pill input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.col-page .sz-maker .sz-maker__pill span {
    display: inline-flex; align-items: center; min-height: 42px; padding: 6px 13px;
    font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--col-navy);
    background: #fff; border: 1.5px solid rgba(13, 79, 140, .35); border-radius: 999px;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.col-page .sz-maker .sz-maker__pill small { font-size: 12px; font-weight: 500; }
.col-page .sz-maker .sz-maker__pill input:checked + span { color: #fff; background: var(--col-navy); border-color: var(--col-navy); }
.col-page .sz-maker .sz-maker__pill input:focus-visible + span { outline: 3px solid rgba(76, 195, 240, .85); outline-offset: 2px; }

.col-page .sz-maker .sz-maker__out { margin-top: 18px; padding: 14px 14px 12px; background: var(--col-surface-2); border: 1px solid var(--col-line); border-radius: var(--col-r-sm); }
.col-page .sz-maker .sz-maker__outlabel { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--col-navy); }
.col-page .sz-maker .sz-maker__line { margin-top: 4px; min-height: 1.6em; font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--col-navy-800); overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.col-page .sz-maker .sz-maker__line.is-empty { color: var(--col-ink-2); font-weight: 500; font-size: 15px; }
.col-page .sz-maker .sz-maker__msg { margin-top: 4px; font-size: 13px; line-height: 1.6; color: var(--col-ink-2); }
.col-page .sz-maker .sz-maker__msg:empty { display: none; }
.col-page .sz-maker .sz-maker__msg.is-warn { color: var(--sz-red-ink); }
.col-page .sz-maker .sz-maker__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.col-page .sz-maker .sz-maker__copy {
    min-height: 46px; min-width: 7.5em; margin: 0; padding: 8px 20px;
    font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.3; color: #fff;
    background: var(--col-navy); border: 0; border-radius: 999px; cursor: pointer;
    transition: background .15s ease;
}
.col-page .sz-maker .sz-maker__copy:hover { background: var(--col-navy-hi); }
.col-page .sz-maker .sz-maker__copy:disabled { background: #a9b6c0; cursor: default; }
.col-page .sz-maker .sz-maker__copy:focus-visible,
.col-page .sz-maker .sz-maker__sample:focus-visible { outline: 3px solid rgba(76, 195, 240, .85); outline-offset: 2px; }
.col-page .sz-maker .sz-maker__sample { min-height: 44px; margin: 0; padding: 6px 4px; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--col-navy); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.col-page .sz-maker .sz-maker__copied { font-size: 13.5px; font-weight: 700; color: #1d7a45; }

@media (min-width: 768px) {
    .col-page .sz-maker { padding: 22px 22px 18px; }
    .col-page .sz-maker .sz-maker__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
    .col-page .sz-maker .sz-maker__field--how { grid-column: 1 / -1; }
}

/* ---- 「動きを減らす」設定: 動きなしで同じ情報を出す ---- */
@media (prefers-reduced-motion: reduce) {
    .col-page .sz-chart .sz-chart__bar,
    .col-page .sz-chart .sz-chart__val,
    .col-page .sz-chart .sz-chart__avg,
    .col-page .sz-chart .sz-chart__btn,
    .col-page .sz-maker .sz-maker__pill span,
    .col-page .sz-maker .sz-maker__copy { transition: none !important; }
    .col-page .sz-anim .sz-dim__line[pathLength] { stroke-dashoffset: 0; transition: none; }
    .col-page .sz-anim .sz-dim__line:not([pathLength]),
    .col-page .sz-anim .sz-dim__arrow,
    .col-page .sz-anim .sz-dim__dot,
    .col-page .sz-anim .sz-dim__txt,
    .col-page .sz-anim .sz-dim__pill { opacity: 1; transition: none; }
}
@media print {
    .col-page .sz-chart .sz-chart__switch { display: none; }
}
