/* 作品選びワークシート（/work-picker）・作品説明の下書きツール（/work-writer）・求人票との照合ワークシート（/job-match）
   職務要約・自己PRの下書きツール（/pr-writer）・ポートフォリオ完成までのロードマップ（/roadmap）
   記事の枠・見出しは column.css と guide.css、ボタン（.check-button）とコピーの表示（.mail-copy-status）は guide.css のものを使う。 */

body.guide-page .guide-article:has(.ww-layout),
body.guide-page .guide-article:has(.wt-table) {
    max-width: 1000px;
}

body.guide-page:has(.ww-layout) .news-page-back,
body.guide-page:has(.wt-table) .news-page-back {
    max-width: 1000px;
}

.wt-storage-note {
    margin: -16px 0 24px !important;
}

.wt-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.wt-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 12px;
}

.wt-spacer {
    flex: 1;
}

.wt-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}

.wt-inline select,
.wt-table select,
.wt-table input[type="text"],
.wt-table input[type="number"],
.ww-form input[type="text"],
.ww-form textarea {
    box-sizing: border-box;
    padding: 7px 9px;
    border: 1px solid var(--v2-line);
    border-radius: var(--v2-r-md);
    background: var(--v2-surface);
    color: var(--v2-ink);
    font: inherit;
    font-size: 14px;
}

.wt-link {
    font-size: 13px;
    color: var(--v2-ink);
    text-underline-offset: 3px;
}

.wt-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

/* 作品選び: 入力の表 */
.wt-table-wrap {
    position: relative; /* 読み上げ用の見えない文字（.wt-sr）を、横に流れる表の中にとどめる */
    overflow-x: auto;
    margin: 0 0 12px;
}

.wt-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    font-size: 13px;
}

.wt-table th {
    padding: 8px 6px;
    border-bottom: 2px solid var(--v2-ink);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.wt-table td {
    padding: 6px;
    border-bottom: 1px solid var(--v2-line);
    vertical-align: middle;
}

.wt-table td:first-child input {
    width: 100%;
    min-width: 12em;
}

.wt-table input[type="number"] {
    width: 6.2em;
}

.wt-table td.is-center {
    text-align: center;
}

.wt-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--v2-positive);
}

.wt-del {
    width: 30px;
    height: 30px;
    border: 1px solid var(--v2-line);
    border-radius: 50%;
    background: var(--v2-surface);
    color: var(--v2-muted);
    font-size: 15px;
    cursor: pointer;
}

.wt-del:hover {
    border-color: var(--v2-negative);
    color: var(--v2-negative);
}

.wt-add {
    border: none;
    cursor: pointer;
}

/* 作品選び: 載せる順番の案 */
.wt-rank {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    counter-reset: rank;
}

.wt-rank li {
    position: relative;
    padding: 10px 14px 10px 50px;
    border: 1px solid var(--v2-line);
    border-radius: var(--v2-r-md);
}

.wt-rank li::before {
    counter-increment: rank;
    content: counter(rank);
    position: absolute;
    left: 14px;
    top: 11px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--v2-ink);
    color: var(--v2-surface);
    font-size: 12.5px;
    font-weight: 900;
    line-height: 24px;
    text-align: center;
}

.wt-rank li.is-rest {
    opacity: 0.55;
}

.wt-rank li.is-rest::before {
    background: var(--v2-line);
    color: var(--v2-ink);
}

.column-section .wt-rank-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.wt-score {
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.column-section .wt-rank-meta {
    margin: 2px 0 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--v2-muted);
}

.wt-advice {
    margin: 0 0 8px;
    padding: 14px 16px;
    border-left: 3px solid var(--v2-warn);
    border-radius: 0 var(--v2-r-md) var(--v2-r-md) 0;
    background: var(--v2-panel);
}

.wt-advice[hidden] {
    display: none;
}

.column-section .wt-advice h3,
.ww-preview .wt-advice h3 {
    margin: 0 0 6px;
    font-size: 14px;
}

.wt-advice ul {
    margin: 0;
    padding-left: 1.2em;
}

.column-section .wt-advice li,
.ww-preview .wt-advice li {
    font-size: 13.5px;
    line-height: 1.8;
}

.wt-advice a {
    color: var(--v2-ink);
    text-underline-offset: 3px;
}

/* 下書き: 左に質問、右に下書き（狭い画面では縦） */
.ww-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin: 0 0 36px;
}

.ww-form {
    display: grid;
    gap: 14px;
}

.ww-field {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--v2-line);
    border-radius: var(--v2-r-lg);
}

.ww-field legend {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
    font-size: 15px;
    font-weight: 900;
}

.ww-no {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--v2-ink);
    color: var(--v2-surface);
    font-size: 12px;
}

.ww-field label,
.ww-label {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 700;
}

.ww-field label small {
    display: block;
    margin-top: 1px;
    font-weight: 400;
    color: var(--v2-muted);
}

.ww-form input[type="text"],
.ww-form textarea {
    width: 100%;
    line-height: 1.7;
}

.ww-form textarea {
    resize: vertical;
}

.ww-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.ww-steps label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-weight: 400;
    font-size: 14px;
}

.ww-steps input {
    accent-color: var(--v2-positive);
}

.ww-count {
    margin: 0;
    font-size: 12px;
    color: var(--v2-muted);
    text-align: right;
}

.ww-count.is-long {
    color: var(--v2-negative);
    font-weight: 700;
}

.ww-preview {
    position: sticky;
    top: 12px;
}

.ww-preview-inner {
    padding: 16px 18px;
    border: 2px solid var(--v2-ink);
    border-radius: var(--v2-r-lg);
    background: var(--v2-surface);
}

.ww-preview h2 {
    margin: 0 0 10px;
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
    font-size: 18px;
    font-weight: 900;
}

.ww-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 10px;
}

.ww-tabs button {
    padding: 5px 12px;
    border: 1px solid var(--v2-line);
    border-radius: 999px;
    background: var(--v2-surface);
    color: var(--v2-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.ww-tabs button[aria-selected="true"] {
    border-color: var(--v2-ink);
    background: var(--v2-ink);
    color: var(--v2-surface);
}

.ww-out {
    min-height: 12em;
    margin: 0;
    padding: 14px 16px;
    border-radius: var(--v2-r-md);
    background: var(--v2-panel);
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13.5px;
    line-height: 1.85;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ww-out.is-empty {
    color: var(--v2-muted);
}

.ww-preview .wt-advice {
    margin-top: 14px;
}

/* 求人票との照合: 貼り付け欄・表・結果 */
.jm-paste {
    display: grid;
    gap: 6px;
}

.jm-paste label {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 700;
}

.jm-paste label small {
    display: block;
    margin-top: 1px;
    font-weight: 400;
    color: var(--v2-muted);
}

.jm-paste input[type="text"],
.jm-paste textarea {
    width: 100%;
    line-height: 1.7;
}

.jm-paste textarea {
    resize: vertical;
}

.jm-table {
    min-width: 760px;
}

.jm-table td:nth-child(4) input {
    width: 100%;
    min-width: 11em;
}

.jm-meters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px 24px;
    margin: 0 0 6px;
}

.jm-meters dt {
    font-size: 13px;
    font-weight: 700;
}

.jm-meters dd {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 0;
}

.jm-bar {
    display: flex;
    flex: 1;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--v2-panel);
}

.jm-bar > span {
    flex-basis: 0;
}

.jm-bar-work,
.jm-key.jm-bar-work {
    background: var(--v2-positive);
}

.jm-bar-talk,
.jm-key.jm-bar-talk {
    background: var(--v2-warn);
}

.jm-bar-none,
.jm-key.jm-bar-none {
    background: var(--v2-negative);
}

.jm-bar-unset,
.jm-key.jm-bar-unset {
    background: var(--v2-line);
}

.jm-meter-num {
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.jm-meter-none {
    font-size: 13px;
    color: var(--v2-muted);
}

.column-section .jm-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin: 0 0 18px;
}

.jm-key {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 6px;
    border-radius: 50%;
}

.column-section #jm-works-empty[hidden] {
    display: none;
}

/* ロードマップ: 質問・進み具合・4段階 */
.rm-form {
    display: grid;
    gap: 12px;
    margin: 0 0 32px;
}

/* fieldset は既定で中身の最小幅より狭くならないため、狭い画面ではみ出さないよう 0 に */
.rm-form .ww-field {
    min-width: 0;
}

.rm-form legend {
    padding: 0 4px;
    font-size: 15px;
    font-weight: 900;
}

.rm-choices {
    display: grid;
    gap: 6px;
}

.rm-choices label {
    display: flex;
    min-width: 0;
    overflow-wrap: anywhere;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

/* style.css の input の共通の指定（幅100%・余白）を外す。ラジオボタンが行いっぱいに伸びて、選択肢の文字が見えなくなっていた */
.rm-choices input {
    flex: none;
    width: 16px;
    height: 16px;
    margin: 4px 0 0;
    padding: 0;
    accent-color: var(--v2-ink);
}

.rm-progress-box {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 2px solid var(--v2-ink);
    border-radius: var(--v2-r-lg);
}

.column-section .rm-progress-label {
    display: flex;
    justify-content: space-between;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
}

.rm-progress-label b {
    font-variant-numeric: tabular-nums;
}

.rm-progress {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--v2-panel);
}

.rm-progress > span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--v2-positive);
    transition: width 0.2s ease;
}

.column-section .rm-next {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 700;
}

.rm-next a {
    color: var(--v2-ink);
    text-underline-offset: 3px;
}

.rm-stages {
    display: grid;
    gap: 14px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.rm-stage {
    padding: 14px 16px;
    border: 1px solid var(--v2-line);
    border-radius: var(--v2-r-lg);
}

.rm-stage.is-start {
    border: 2px solid var(--v2-ink);
}

.rm-stage.is-before {
    background: var(--v2-panel);
}

.rm-stage-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.column-section .rm-stage-head h3 {
    margin: 0;
    font-size: 16px;
}

.rm-stage-no {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--v2-ink);
    color: var(--v2-surface);
    font-size: 13px;
    font-weight: 900;
}

.rm-badge {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--v2-accent);
    color: var(--v2-accent-ink);
    font-size: 12px;
    font-weight: 900;
}

.rm-stage-count {
    margin-left: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--v2-muted);
    font-variant-numeric: tabular-nums;
}

.column-section .rm-stage-note {
    margin: 6px 0 0;
    font-size: 12.5px;
    color: var(--v2-muted);
}

.rm-items {
    display: grid;
    gap: 2px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.rm-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 6px;
    border-radius: var(--v2-r-md);
}

.rm-item.is-next {
    background: var(--v2-panel);
    box-shadow: inset 3px 0 0 var(--v2-positive);
}

.rm-item input {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--v2-positive);
}

.rm-item-body {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.rm-item-body label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.rm-item.is-done .rm-item-body label {
    color: var(--v2-muted);
    text-decoration: line-through;
}

.rm-link {
    font-size: 12.5px;
    color: var(--v2-ink);
    text-underline-offset: 3px;
}

@media (max-width: 860px) {
    .ww-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .ww-preview {
        position: static;
    }
}

@media print {
    .wt-toolbar,
    .wt-actions,
    .wt-add,
    .wt-del,
    .ww-tabs {
        display: none !important;
    }
}
