/* 全体・ヘッダー・記事一覧・フォーム・フッター */
* {
    box-sizing: border-box
}
body {
    margin: 0;
    background: #fff;
    color: #242e37;
    font: 15px/1.55 system-ui,"Meiryo",sans-serif
}
a {
    color: #134c87;
    text-decoration: none
}
a:hover {
    text-decoration: underline
}
a:focus-visible,button:focus-visible {
    outline: 3px solid #e49a18;
    outline-offset: 2px
}
.wrap {
    max-width: 1060px;
    margin-inline: auto;
    padding-inline: 16px
}
header {
    border-top: 3px solid #ce3438
}
.mast {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 46px
}
.brand {
    font-size: 23px;
    letter-spacing: -.06em;
    font-weight: 800;
    color: #26313a
}
.brand b {
    color: #c72b31
}
.mast small,.meta,small {
    color: #526270
}
.nav {
    background: #c72b31;
    border-block: 1px solid #c72b31
}
.nav .wrap {
    display: flex;
    gap: 24px;
    align-items: center;
    min-height: 35px
}
.nav a {
    color: #fff;
    font-weight: 650;
    font-size: 14px
}
.nav a:focus-visible {
    outline-color: #fff
}
main.wrap {
    padding-block: clamp(20px,3vw,32px) clamp(40px,6vw,72px);
    width: 100%
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column
}
footer {
    margin-top: auto
}
h1,h2 {
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 9px
}
h2 {
    font-size: 16px
}
h1,aside h2,.trend h2 {
    padding: 6px 10px;
    background: #eff3f7;
    border-left: 3px solid #326695
}
.grid {
    display: grid;
    grid-template-columns: minmax(0,2fr) minmax(240px,1fr);
    gap: 28px
}
.row {
    display: flow-root;
    padding: 11px 2px;
    border-bottom: 1px solid #dce2e8;
    overflow-wrap: anywhere
}
.meta {
    font-size: 12px
}
.thumb {
    float: right;
    width: 76px;
    height: 52px;
    object-fit: cover;
    margin-left: 10px
}
aside .thumb {
    width: 60px;
    height: 44px
}
aside>a {
    display: inline-block;
    font-size: 14px;
    margin: 3px 8px 3px 0
}
aside h2:not(:first-child) {
    margin-top: 16px
}
.pager,footer nav,.keywords {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px
}
.pager {
    padding: 20px 0 0
}
.trend {
    margin-bottom: 16px
}
.keywords a {
    font-weight: 650
}
.keywords {
    padding: 2px 8px
}
.paper {
    max-width: 760px;
    overflow-wrap: anywhere
}
.paper h2 {
    margin: 28px 0 8px
}
.paper p {
    margin: 12px 0
}
.paper form {
    margin-top: 24px
}
.paper form .input+.input {
    margin-top: 20px
}
.paper form>p {
    margin: 20px 0
}
.paper dl {
    margin: 20px 0 28px
}
.paper dd+dt {
    margin-top: 20px
}
.paper textarea {
    display: block
}
.paper>:last-child {
    margin-bottom: 0
}
.paper h1+p {
    margin-top: 12px
}
.paper label,dt {
    display: block;
    font-weight: 650;
    margin: 12px 0 4px
}
.paper input:not([type=hidden]),textarea {
    width: 100%;
    max-width: 580px;
    border: 1px solid #8b9baa;
    padding: 9px;
    font: inherit
}
textarea {
    min-height: 160px
}
dd {
    margin: 0
}
button {
    background: #155588;
    color: white;
    border: 0;
    padding: 9px 18px;
    font: inherit;
    cursor: pointer
}
[role=alert] {
    color: #ac2525
}
footer {
    border-top: 1px solid #cbd6e0;
    background: #f4f6f8;
    font-size: 13px;
    padding: 24px 0
}
footer nav {
    gap: 10px 20px
}
footer small {
    display: block;
    margin-top: 9px
}
@media(max-width:700px) {
    .grid {
        grid-template-columns: 1fr
    }
    .nav .wrap {
        gap: 14px
    }
    .wrap {
        padding-inline: 12px
    }
    .mast {
        gap: 9px
    }
    .mast small {
        font-size: 11px
    }
}
.nav .wrap {
    justify-content: space-between;
    gap: 12px 28px
}
.mainlinks,.infolinks {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 18px
}
.infolinks {
    margin-left: auto;
    justify-content: flex-end;
    gap: 4px 15px
}
.nav .infolinks a {
    font-size: 13px;
    font-weight: 500
}
.nav a {
    white-space: nowrap;
    padding-block: 5px
}
@media(max-width:960px) {
    .infolinks .legal {
        display: none
    }
}
@media(max-width:680px) {
    .nav .wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-block: 3px
    }
    .infolinks {
        margin-left: 0;
        border-top: 1px solid #ffffff42;
        gap: 4px 14px
    }
    .mainlinks {
        gap: 4px 14px
    }
}
.brand img {
    display: block;
}
.yahoo-credit {
    padding-block: 15px;
    text-align: right;
}

/* カテゴリタブ */
.catnav {
    margin: 0 0 22px;
    border-bottom: 1px solid #ccd6df;
    padding: 0 0 12px
}
.catstrip,.catlinks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center
}
.catnav a,.catnav summary {
    padding: 5px 3px
}
.catnav [aria-current=page] {
    box-shadow: inset 0 -3px #c72b31;
    font-weight: bold
}
.catnav summary {
    color: #134c87;
    cursor: pointer
}
.catnav details {
    margin-top: 6px
}
.catedit {
    max-width: 480px;
    margin: 12px 0
}
.catitem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #e4e8ec
}
.catitem label {
    flex: 1
}
.catnav button {
    padding: 5px 10px
}
.cattools {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}
.catnav a {
    display: inline-block;
    color: var(--tab);
    border-bottom: 2px solid var(--tab);
    padding: 5px 9px
}
.catnav a[aria-current=page] {
    background: var(--tab);
    color: white;
    box-shadow: none;
    font-weight: 700
}
.catnav a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px
}
.catnav { --tab: #385778; }
.catnav ~ .grid > .panel > h1 { border-left-color: #385778; }

.catnav [data-color="all"] { --tab: #385778; }
.catnav[data-current="all"] ~ .grid > .panel > h1 { border-left-color: #385778; }

.catnav [data-color="games"] { --tab: #7044A0; }
.catnav[data-current="games"] ~ .grid > .panel > h1 { border-left-color: #7044A0; }

.catnav [data-color="life"] { --tab: #A74C08; }
.catnav[data-current="life"] ~ .grid > .panel > h1 { border-left-color: #A74C08; }

.catnav [data-color="society"] { --tab: #305C9C; }
.catnav[data-current="society"] ~ .grid > .panel > h1 { border-left-color: #305C9C; }

.catnav [data-color="entertainment"] { --tab: #A52E69; }
.catnav[data-current="entertainment"] ~ .grid > .panel > h1 { border-left-color: #A52E69; }

.catnav [data-color="travel"] { --tab: #006D62; }
.catnav[data-current="travel"] ~ .grid > .panel > h1 { border-left-color: #006D62; }

.catnav [data-color="economy"] { --tab: #826016; }
.catnav[data-current="economy"] ~ .grid > .panel > h1 { border-left-color: #826016; }

.catnav [data-color="tech"] { --tab: #00648C; }
.catnav[data-current="tech"] ~ .grid > .panel > h1 { border-left-color: #00648C; }

.catnav [data-color="sports"] { --tab: #347036; }
.catnav[data-current="sports"] ~ .grid > .panel > h1 { border-left-color: #347036; }

.catnav [data-color="culture"] { --tab: #83513E; }
.catnav[data-current="culture"] ~ .grid > .panel > h1 { border-left-color: #83513E; }

.catnav [data-color="world"] { --tab: #514D98; }
.catnav[data-current="world"] ~ .grid > .panel > h1 { border-left-color: #514D98; }

.catnav [data-color="science"] { --tab: #436969; }
.catnav[data-current="science"] ~ .grid > .panel > h1 { border-left-color: #436969; }


/* おすすめ記事 */
.picks {
    margin: 26px 0 32px;
    border-top: 2px solid #32485e;
    padding-top: 12px
}
.picks h2 {
    font-size: 18px;
    margin: 0 0 12px
}
.pickgrid {
    display: grid;
    grid-template-columns: minmax(0,1.18fr) minmax(0,1fr);
    gap: 0 24px
}
.pick {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #dce2e8;
    min-width: 0;
    overflow-wrap: anywhere
}
.pick strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.5
}
.pick small {
    display: block;
    margin-bottom: 4px;
    font-size: 12px
}
.pick img {
    width: 108px;
    height: 76px;
    object-fit: cover;
    flex: none
}
.pick img[hidden] {
    display: none
}
.pick:first-child {
    grid-row: 1 / span 4;
    display: block;
    padding: 0 0 10px
}
.pick:first-child img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2.45;
    object-fit: cover;
    margin-bottom: 9px
}
.pick:first-child img[hidden] {
    display: none
}
.pick:first-child strong {
    font-size: 20px;
    line-height: 1.45
}
.pick:first-child:not(:has(img:not([hidden]))) {
    align-content: center;
    padding: 20px;
    background: #f1f5f8;
    border-left: 3px solid #42719a
}
@media(max-width:700px) {
    .picks {
        margin: 22px 0
    }
    .pickgrid {
        grid-template-columns: 1fr
    }
    .pick:first-child {
        grid-row: auto
    }
    .pick:first-child strong {
        font-size: 18px
    }
    .pick img {
        width: 88px;
        height: 62px
    }
}

/* 1年前の話題 */
.archive-square {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: clamp(16px,2vw,24px);
    margin-bottom: 24px;
    border: 1px solid #d5dce4;
    border-top: 4px solid #c72b31;
    background: #f4f7fa;
    color: #253443;
    overflow-wrap: anywhere
}
.archive-square h2 {
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    font-size: 16px
}
.archive-square time {
    display: block;
    font-size: clamp(23px,3vw,34px);
    font-weight: 750;
    letter-spacing: .04em;
    color: #566574;
    font-variant-numeric: tabular-nums
}
.archive-square a[target="_blank"] {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden
}
.archive-square footer {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 12px
}

/* 運営案内 */
.operator-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    line-height: 1.75
}
.operator-table th,.operator-table td {
    border: 1px solid #d5dde4;
    padding: 14px 16px;
    text-align: left;
    vertical-align: top
}
.operator-table th {
    width: 8em;
    background: #f1f4f7;
    white-space: nowrap
}
@media(max-width:600px) {
    .operator-table th,.operator-table td {
        padding: 10px
    }
    .operator-table th {
        width: 6em
    }
}

/* 記事検索 */
.search-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 24px;
}
.search-form input {
    flex: 1 1 15em;
    max-width: 34em;
    min-width: 0;
    padding: 8px;
    font: inherit;
}
.search-results .thumb { width: 68px; height: 48px; }


/* 記事の配信元・掲載日 */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.85em;
}
.article-meta a { color: inherit; }
.pick > a { flex: none; }
.pick > div { min-width: 0; }
.pick:first-child > a { display: block; }
.source-url { overflow-wrap: anywhere; }

/* 日付別アーカイブのカレンダー */
.day-picker {
    margin: 0 0 24px;
}
.day-picker label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}
.day-picker-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.day-picker input {
    box-sizing: border-box;
    max-width: 100%;
    padding: 7px 9px;
    border: 1px solid #8b9baa;
    font: inherit;
}

/* 見出しの読み比べと日付別の紙面 */
.related-headlines { margin-top: 0.5rem; }
.related-headlines summary { color: #134c87; cursor: pointer; font-size: 0.9rem; }
.related-headlines ul { margin: 0.5rem 0; padding-inline-start: 1.5rem; }
.related-headlines li + li { margin-top: 0.4rem; }
.day-edition { margin-block: 1rem 2rem; }

/* 配信元の紹介 */
.source-profile {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.75rem;
    font-size: 0.95rem;
}
.source-profile th,
.source-profile td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid #dce2e8;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}
.source-profile th {
    width: clamp(6em, 25%, 12em);
    background: #f5f7f9;
}

/* トップの見出しと読み比べ */
.trend-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 20px;
    margin: 12px 0;
}
.trend-preview a { padding: 5px 8px; }
.trend-preview span { display: block; margin-top: 5px; font-size: .92rem; color: #26313a; }
/* 読み比べの画像には先頭枠共通の幅と縦横比を使う */
.comparison-copy h3 {
    margin: 12px 0 8px;
    color: #526270;
    font-size: 0.88rem;
}
.comparison-second {
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px solid #dce2e8;
    line-height: 1.5;
}
.comparison-copy .related-headlines {
    margin-top: 12px;
}
.archive-years { justify-content: flex-start; }
.archive-years fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.archive-years legend { font-size: .85rem; }
.archive-years label { display: inline-block; padding: 6px 5px; cursor: pointer; }
.archive-years input:checked + label { font-weight: bold; text-decoration: underline; }
.year-story { display: none; margin-top: 12px; }
#year-1:checked ~ .year-1,
#year-5:checked ~ .year-5,
#year-10:checked ~ .year-10 { display: block; }
.year-story p { margin-bottom: 0; }
@media (max-width: 700px) {
    .trend-preview { grid-template-columns: 1fr; gap: 4px; }
}
