/* デザイン制作ツールキット（/toolkit）
   ヘッダー・フッター・読みものの枠と、説明の表・ダウンロードのボタン（.tpl-spec・.tpl-download）は
   ポートフォリオテンプレート（templates.css）と同じものを使い、お題の一覧・使い方・作品ができたらの部分だけをここに持つ。 */

body.toolkit-page .tk-group {
    max-width: 960px;
    margin: 44px auto 0;
}

/* 使い方（4つの手順）と、職種への移動 */
.tk-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: tkflow;
}

.tk-flow li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 14px 16px;
    border: 1px solid var(--v2-line);
    border-radius: var(--v2-r-lg);
    background: var(--v2-surface);
    counter-increment: tkflow;
}

.tk-flow li::before {
    content: counter(tkflow);
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: var(--v2-ink);
    color: var(--v2-surface);
    font-size: 13px;
    font-weight: 900;
}

.tk-flow b {
    font-size: 14.5px;
    line-height: 1.5;
}

.tk-flow span {
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--v2-muted);
}

.tk-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.tk-jump a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--v2-ink);
    border-radius: 999px;
    color: var(--v2-ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.tk-jump a:hover {
    background: var(--v2-panel);
}

.tk-jump a:focus-visible {
    outline: 2px solid var(--v2-ink);
    outline-offset: 2px;
}

/* 職種ごとのまとまり */
.tk-group h2 {
    margin: 0 0 4px;
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.45;
    color: var(--v2-ink);
}

.tk-group > p {
    margin: 0 0 14px;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--v2-muted);
}

.tk-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* お題のカード: 左に仕上がりイメージと素材、右に説明・進め方・ダウンロード */
.tk-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 22px 28px;
    padding: 20px;
    border: 1px solid var(--v2-line);
    border-radius: var(--v2-r-lg);
    background: var(--v2-surface);
    scroll-margin-top: 16px;
}

.tk-visual {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.tk-visual figure {
    margin: 0;
}

.tk-visual img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--v2-line);
    border-radius: 6px;
    background: var(--v2-panel);
}

.tk-visual figcaption {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--v2-muted);
}

.tk-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.tk-no {
    margin: 0;
    font-size: 12.5px;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--v2-accent);
}

.tk-name {
    margin: -6px 0 0;
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.45;
    color: var(--v2-ink);
}

.tk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tk-chips li {
    padding: 2px 10px;
    border: 1px solid var(--v2-line);
    border-radius: 999px;
    background: var(--v2-panel);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
    color: var(--v2-ink);
}

.tk-summary {
    margin: 0;
    font-size: 14px;
    line-height: 1.85;
    color: var(--v2-ink);
}

.tk-label {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--v2-muted);
}

.tk-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: tkstep;
}

.tk-steps li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 10px;
    font-size: 13px;
    line-height: 1.65;
    counter-increment: tkstep;
}

.tk-steps li::before {
    content: counter(tkstep);
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    border: 1.5px solid var(--v2-ink);
    font-size: 11.5px;
    font-weight: 900;
    color: var(--v2-ink);
}

.tk-steps b {
    font-size: 13.5px;
    color: var(--v2-ink);
}

.tk-steps span {
    color: var(--v2-muted);
}

/* 作品ができたら（テンプレート・ポートフォリオ管理へ） */
.tk-next-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tk-next-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--v2-line);
    border-radius: var(--v2-r-lg);
    background: var(--v2-surface);
}

.tk-next-card h3 {
    margin: 0;
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.5;
    color: var(--v2-ink);
}

.tk-next-card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--v2-ink);
}

.tk-next-card .hero-cta {
    margin-top: auto;
    text-decoration: none;
}

@media (max-width: 720px) {
    .tk-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tk-card {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
    }

    .tk-next-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
