/* 釣りで釣れない原因（tsurenai-genin）の本文用: 表1の症状の見出し行・図1（分かれ道）・図5・図6（投稿データ）
   ※ 3D 図（blender.css）・診断・早見表の CSS は別のファイル */

/* ---- 表1: 症状ごとの見出し行 ---- */
.col-page .col-table tr.tg-grp th {
    padding-top: 10px;
    padding-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    color: var(--col-navy-900, #0b2440);
    background: #f3f6fa;
}

/* ---- 図1: 「釣れない」→ 3つの症状の分かれ道（hero.blade.php） ---- */
.col-page .tg-hero {
    margin: 4px 0 28px;
    padding: 20px 20px 16px;
    background: #fff;
    border: 1px solid var(--col-line, #dfe5ec);
    border-radius: var(--col-r-sm, 10px);
    font-feature-settings: "palt";
    word-break: auto-phrase;
    text-wrap: pretty;
}
@media (max-width: 767.98px) {
    .col-page .tg-hero.col-wide { margin-left: 0; margin-right: 0; }
}
.col-page .tg-hero figcaption {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--col-ink-2, #44546a);
}

/* 根: 「釣れない」 */
.col-page .tg-hero__root {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto !important;
    text-align: center;
    line-height: 1.4;
}
.col-page .tg-hero__root-in {
    display: inline-block;
    padding: 7px 26px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #fff;
    background: var(--col-navy-800, #0b1f3a);
    border-radius: 999px;
}
.col-page .tg-hero__root-sub {
    margin-top: 5px;
    font-size: 13px;
    color: var(--col-ink-2, #44546a);
}

/* 枝: PC は横3列（根から下へ1本 → 横に1本 → 各列へ1本ずつ） */
.col-page .tg-hero__routes {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 !important;
    padding: 34px 0 0 !important;
    list-style: none;
}
.col-page .tg-hero__routes::before,
.col-page .tg-hero__routes::after {
    content: "";
    position: absolute;
    background: #9fb3c8;
}
/* 根からの縦線 */
.col-page .tg-hero__routes::before { left: 50%; top: 0; width: 2px; height: 17px; margin-left: -1px; }
/* 横線（1列目の真ん中 〜 3列目の真ん中） */
.col-page .tg-hero__routes::after { top: 16px; height: 2px; left: calc((100% - 28px) / 6); right: calc((100% - 28px) / 6); }
.col-page .tg-hero__route { position: relative; display: flex; margin: 0 !important; }
/* 各列への縦線 */
.col-page .tg-hero__route::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -18px;
    width: 2px;
    height: 18px;
    margin-left: -1px;
    background: #9fb3c8;
}

/* 症状の箱（本文の h2 へのリンク） */
.col-page .tg-hero__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 14px 14px 12px;
    color: var(--col-ink, #0e2a3d);
    text-decoration: none;
    background: #fff;
    border: 1px solid #c9d6e3;
    border-radius: 10px;
    transition: border-color .15s ease, background-color .15s ease;
}
.col-page .tg-hero__card:hover { color: var(--col-ink, #0e2a3d); border-color: var(--col-navy, #0d4f8c); background: #f7fafd; }
.col-page .tg-hero__head { display: flex; align-items: flex-start; gap: 6px; }
.col-page .tg-hero__no {
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--col-navy, #0d4f8c);
}
.col-page .tg-hero__name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--col-navy-900, #071526);
}
.col-page .tg-hero__name > span { display: inline-block; }
.col-page .tg-hero__say {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--col-ink-2, #44546a);
}
.col-page .tg-hero__label {
    margin-top: 10px;
    padding-top: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--col-ink-2, #44546a);
    border-top: 1px solid var(--col-line, #dfe5ec);
}
.col-page .tg-hero__steps { display: flex; flex-direction: column; margin-top: 6px; }
.col-page .tg-hero__step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--col-navy-800, #0b1f3a);
}
/* 番号の丸と、丸どうしをつなぐ下向きの線 */
.col-page .tg-hero__step + .tg-hero__step { margin-top: 10px; }
.col-page .tg-hero__step + .tg-hero__step::before {
    content: "";
    position: absolute;
    left: 10px;
    top: -10px;
    width: 2px;
    height: 10px;
    margin-left: -1px;
    background: #b7c7d8;
}
/* 段の文字は「・」の所でだけ折り返す（「狙う / 魚」のように語の途中で切らない） */
.col-page .tg-hero__st { min-width: 0; }
.col-page .tg-hero__st > span { display: inline-block; }
.col-page .tg-hero__n {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: var(--col-navy, #0d4f8c);
    border-radius: 50%;
}
.col-page .tg-hero__then {
    margin-top: 10px;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--col-ink-2, #44546a);
    background: #f3f6fa;
    border-radius: 6px;
}
.col-page .tg-hero__then b { display: block; font-size: 14px; color: var(--col-navy-800, #0b1f3a); }
.col-page .tg-hero__go {
    margin-top: auto;
    padding-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--col-navy, #0d4f8c);
}
.col-page .tg-hero__go::after { content: " ↓"; }
.col-page .tg-hero__card:hover .tg-hero__go { text-decoration: underline; text-underline-offset: .18em; }

/* PC: 3つの箱の「見直す順番」の高さをそろえる（subgrid が使えるブラウザだけ） */
@supports (grid-template-rows: subgrid) {
    @media (min-width: 700px) {
        .col-page .tg-hero__routes { grid-template-rows: repeat(6, auto); row-gap: 0; }
        .col-page .tg-hero__route { display: grid; grid-row: span 6; grid-template-rows: subgrid; }
        .col-page .tg-hero__card { display: grid; grid-row: span 6; grid-template-rows: subgrid; }
        .col-page .tg-hero__head { grid-row: 1; }
        .col-page .tg-hero__say { grid-row: 2; }
        .col-page .tg-hero__label { grid-row: 3; }
        .col-page .tg-hero__steps { grid-row: 4; }
        .col-page .tg-hero__then { grid-row: 5; align-self: start; }
        .col-page .tg-hero__go { grid-row: 6; align-self: end; }
    }
}

/* スマホ: 縦に積む（左の1本の線から、各箱へ枝を出す） */
@media (max-width: 699.98px) {
    .col-page .tg-hero { padding: 16px 12px 12px; }
    .col-page .tg-hero__root { align-items: flex-start; }
    .col-page .tg-hero__root-in { padding: 6px 20px; font-size: 18px; }
    .col-page .tg-hero__root-sub { margin-left: 4px; }
    .col-page .tg-hero__routes {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px 0 0 22px !important;
    }
    /* 左の縦線: 根の下 〜 最後の箱の見出しの高さ */
    .col-page .tg-hero__routes::before { left: 10px; top: -4px; height: auto; bottom: 0; margin-left: -1px; }
    .col-page .tg-hero__routes::after { display: none; }
    .col-page .tg-hero__route::before { left: -12px; top: 24px; width: 12px; height: 2px; margin-left: 0; }
    /* 最後の箱より下に縦線を伸ばさない */
    .col-page .tg-hero__route:last-child::after {
        content: "";
        position: absolute;
        left: -13px;
        top: 26px;
        bottom: 0;
        width: 4px;
        background: #fff;
    }
    .col-page .tg-hero__card { padding: 12px 12px 10px; }
    .col-page .tg-hero__steps { flex-direction: row; flex-wrap: wrap; gap: 8px 4px; }
    .col-page .tg-hero__step + .tg-hero__step { margin-top: 0; }
    /* スマホでは横に並べて「→」でつなぐ */
    .col-page .tg-hero__step + .tg-hero__step::before {
        content: "→";
        position: static;
        width: auto;
        height: auto;
        margin: 0 2px 0 0;
        font-size: 13px;
        font-weight: 400;
        color: #7d93a8;
        background: none;
    }
    .col-page .tg-hero__step { gap: 5px; font-size: 15px; }
    .col-page .tg-hero__n { width: 20px; height: 20px; }
    .col-page .tg-hero__go { padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .col-page .tg-hero__card { transition: none; }
}

/* ---- 図5: 「渋い」などを書いた人の割合（data.blade.php・横棒）。図6 も見出し・注の文字はここを使う ---- */
.col-page .tg-dt {
    --tg-name: 132px;
    margin: 28px 0;
    padding: 20px 20px 16px;
    background: #fff;
    border: 1px solid var(--col-line, #dfe5ec);
    border-radius: var(--col-r-sm, 10px);
    font-feature-settings: "palt";
    word-break: auto-phrase;
    text-wrap: pretty;
}
@media (max-width: 767.98px) {
    .col-page .tg-dt.col-wide { margin-left: 0; margin-right: 0; }
}
.col-page .tg-dt__eyebrow {
    margin: 0 0 4px !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--col-ink-2, #44546a);
}
.col-page .tg-dt__title {
    margin: 0 0 6px !important;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--col-navy-900, #071526);
}
.col-page .tg-dt__title span { display: inline-block; }
.col-page .tg-dt__lead {
    margin: 0 0 14px !important;
    font-size: 13px;
    line-height: 1.6;
    color: var(--col-ink-2, #44546a);
}
.col-page .tg-dt figcaption {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--col-ink-2, #44546a);
}
.col-page .tg-dt__chart { max-width: 760px; }
.col-page .col-body ol.tg-dt__rows,
.col-page .tg-dt__rows { margin: 0; padding: 0; list-style: none; }
.col-page .col-body ol.tg-dt__rows > li + li { margin-top: 0; }
.col-page .tg-dt__row {
    display: grid;
    grid-template-columns: var(--tg-name) minmax(0, 1fr);
    align-items: stretch;
}
.col-page .tg-dt__name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6px 10px 6px 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--col-navy-900, #071526);
}
.col-page .tg-dt__name small { font-size: 12px; font-weight: 400; color: var(--col-ink-2, #44546a); }
/* 目盛りの線（0・50・100%）。行のすき間を空けないので、線が上から下までつながる */
.col-page .tg-dt__track {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 46px;
    background:
        linear-gradient(#c9d3de, #c9d3de) 0 0 / 1px 100% no-repeat,
        linear-gradient(#cfd9e3, #cfd9e3) 50% 0 / 1px 100% no-repeat,
        linear-gradient(#e1e7ee, #e1e7ee) 100% 0 / 1px 100% no-repeat;
}
.col-page .tg-dt__bar {
    display: block;
    flex: 0 0 auto;
    width: calc(var(--v) * 1%);
    height: 24px;
    background: var(--col-navy, #0d4f8c);
    border-radius: 0 4px 4px 0;
}
.col-page .tg-dt__val {
    margin-left: 8px;
    font-size: 14px;
    color: var(--col-ink, #0e2a3d);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.col-page .tg-dt__val b { font-size: 18px; font-weight: 700; color: var(--col-navy-900, #071526); }
.col-page .tg-dt__axis { display: grid; grid-template-columns: var(--tg-name) minmax(0, 1fr); margin-top: 4px; }
.col-page .tg-dt__ticks { position: relative; height: 18px; }
.col-page .tg-dt__ticks span {
    position: absolute;
    left: calc(var(--t) * 1%);
    top: 0;
    font-size: 12px;
    line-height: 18px;
    color: var(--col-ink-2, #44546a);
    transform: translateX(-50%);
    white-space: nowrap;
}
.col-page .tg-dt__ticks span[style*="--t:0"] { transform: none; }
.col-page .tg-dt__ticks span[style*="--t:100"] { transform: translateX(-100%); }
@media (max-width: 479.98px) {
    .col-page .tg-dt { --tg-name: 92px; padding: 16px 12px 12px; }
    .col-page .tg-dt__title { font-size: 18px; }
    .col-page .tg-dt__name { font-size: 13px; }
}

/* 図5（13魚種）: 行を詰める。棒は 0〜60% の幅で描き、目盛りの線は 0・25・50% の位置 */
.col-page .tg-dt--fish { --tg-name: 96px; }
.col-page .tg-dt--fish .tg-dt__track {
    min-height: 34px;
    background:
        linear-gradient(#c9d3de, #c9d3de) 0 0 / 1px 100% no-repeat,
        linear-gradient(#cfd9e3, #cfd9e3) 41.667% 0 / 1px 100% no-repeat,
        linear-gradient(#cfd9e3, #cfd9e3) 83.333% 0 / 1px 100% no-repeat;
}
.col-page .tg-dt--fish .tg-dt__bar { height: 20px; }
.col-page .tg-dt--fish .tg-dt__name { padding-top: 4px; padding-bottom: 4px; }
.col-page .tg-dt--fish .tg-dt__val b { font-size: 16px; }
@media (max-width: 479.98px) {
    .col-page .tg-dt--fish { --tg-name: 76px; }
}

/* ---- 図6: 魚ごとの、投稿した人が多い月（calendar.blade.php・13魚種×12か月の色の表） ---- */
.col-page .tg-cal {
    margin: 28px 0;
    padding: 20px 20px 16px;
    background: #fff;
    border: 1px solid var(--col-line, #dfe5ec);
    border-radius: var(--col-r-sm, 10px);
    font-feature-settings: "palt";
    word-break: auto-phrase;
    text-wrap: pretty;
}
@media (max-width: 767.98px) {
    .col-page .tg-cal.col-wide { margin-left: 0; margin-right: 0; }
}
.col-page .tg-cal figcaption {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--col-ink-2, #44546a);
}
.col-page .tg-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.col-page .tg-cal__wrap { max-width: 760px; }
.col-page .tg-cal__table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 2px;
    margin: 0 -2px;
}
.col-page .tg-cal__table th,
.col-page .tg-cal__table td { padding: 0; border: 0; background: none; }
.col-page .tg-cal__table thead th {
    padding-bottom: 2px;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: var(--col-ink-2, #44546a);
    font-variant-numeric: tabular-nums;
}
.col-page .tg-cal__table thead th.tg-cal__corner { width: 92px; text-align: right; padding-right: 8px; font-weight: 400; }
.col-page .tg-cal__grp th {
    padding: 10px 0 3px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .04em;
    text-align: left;
    color: var(--col-navy, #0d4f8c);
}
.col-page .tg-cal__table tbody:first-of-type .tg-cal__grp th { padding-top: 4px; }
.col-page .tg-cal__fish {
    padding-right: 8px !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
    color: var(--col-navy-900, #071526);
}
/* マス: 紺の1色を5段階。いちばん多い月に金の点。10人未満は斜線（色を付けない） */
.col-page .tg-cal__c,
.col-page .tg-cal__sw {
    position: relative;
    height: 28px;
    border-radius: 3px;
}
.col-page .tg-cal__table .tg-cal__c--0, .col-page .tg-cal__sw.tg-cal__c--0 { background: #eef3f8; }
.col-page .tg-cal__table .tg-cal__c--1, .col-page .tg-cal__sw.tg-cal__c--1 { background: #c7d8e9; }
.col-page .tg-cal__table .tg-cal__c--2, .col-page .tg-cal__sw.tg-cal__c--2 { background: #8fb1d2; }
.col-page .tg-cal__table .tg-cal__c--3, .col-page .tg-cal__sw.tg-cal__c--3 { background: #4f82b3; }
.col-page .tg-cal__table .tg-cal__c--4, .col-page .tg-cal__sw.tg-cal__c--4 { background: var(--col-navy, #0d4f8c); }
.col-page .tg-cal__table .tg-cal__c--low,
.col-page .tg-cal__sw.tg-cal__c--low {
    background: repeating-linear-gradient(135deg, #fff 0 3px, #d3dce6 3px 4px);
    outline: 1px dotted #9fb0c2;
    outline-offset: -1px;
}
.col-page .tg-cal__c.is-top::after,
.col-page .tg-cal__sw.is-top::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--col-gold-hi, #f0d43a);
}
/* 凡例 */
.col-page .tg-cal__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--col-ink-2, #44546a);
}
.col-page .tg-cal__scale,
.col-page .tg-cal__key { display: inline-flex; align-items: center; gap: 3px; }
.col-page .tg-cal__key { gap: 6px; }
.col-page .tg-cal__lab { margin: 0 3px; }
.col-page .tg-cal__sw { display: inline-block; flex: 0 0 auto; width: 18px; height: 18px; }
@media (max-width: 479.98px) {
    .col-page .tg-cal { padding: 16px 12px 12px; }
    .col-page .tg-cal__table { border-spacing: 1.5px; margin: 0 -1.5px; }
    .col-page .tg-cal__table thead th.tg-cal__corner { width: 66px; padding-right: 5px; }
    .col-page .tg-cal__fish { padding-right: 5px !important; font-size: 12px; }
    .col-page .tg-cal__c { height: 24px; border-radius: 2px; }
    .col-page .tg-cal__c.is-top::after { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
}
