/*
Theme Name: だれかのニュース
Description: だれかのニュース専用テーマ。スマートフォン幅の表示は現行サイトに合わせてある。
Version: 0.2.0
Text Domain: darekanonews
*/

/* ---- Base ---- */
:root {
    --dkn-font: Verdana, BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    --dkn-heading-font: Roboto, sans-serif;
    --dkn-meta-font: "Open Sans", "Open Sans Regular", sans-serif;
    /* Article title and body: the declaration Yahoo!ニュース article pages draw them with (body rule; no web font).
       -apple-system-subset has no @font-face there, so browsers skip it: Helvetica + Hiragino Kaku Gothic ProN on iPhone, the device's sans-serif on Android. */
    --dkn-article-font: -apple-system-subset, Helvetica, "Hiragino Kaku Gothic ProN", sans-serif;
    --dkn-blue: #3474ce;      /* header links */
    --dkn-tab: #4d5ddd;       /* category tabs */
    --dkn-tab-bg: #6a80e6;
    --dkn-tab-border: #8ea0ff;
    --dkn-badge: #999;
    --dkn-date: #949494;
    --dkn-line: #eaeaea;
    --dkn-link: #4db2ec;      /* links in running text (login, fixed pages) */
    --dkn-article-text: rgba(0, 0, 0, .73);
}
body { margin: 0; color: #000; background: #fff; font-family: var(--dkn-font); font-size: 14px; line-height: 21px; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
a:focus-visible, input:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #176bb0; outline-offset: 2px; }
.visually-hidden, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; }
.login-error { margin: 1rem 7px; padding: .75rem 1rem; border-left: .25rem solid #a33; background: #fff2f2; }
.login-page { padding: 29px 18px 0; color: #222; font-size: 16px; line-height: 21px; text-align: center; }
.login-page p { margin: 0 0 31px; }
.login-page form { margin-bottom: 20px; }
.login-page a { color: var(--dkn-link); }
.google-login-button { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 20px; border: 1px solid #777; border-radius: 3px; background: #fff; color: #222; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.google-login-button::before { content: ''; width: 24px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.5 0 6.6 1.2 9.1 3.6l6.8-6.8C35.8 2.4 30.3 0 24 0 14.6 0 6.6 5.4 2.6 13.2l7.9 6.2C12.4 13.7 17.7 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.5 24.5c0-1.6-.1-3.1-.4-4.5H24v9h12.7c-.6 2.9-2.2 5.4-4.7 7.1l7.6 5.9c4.4-4.1 6.9-10.1 6.9-17.5z'/%3E%3Cpath fill='%23FBBC05' d='M10.5 28.6c-.5-1.4-.8-3-.8-4.6s.3-3.2.8-4.6l-7.9-6.2C.9 16.6 0 20.2 0 24s.9 7.4 2.6 10.8l7.9-6.2z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.5 0 11.9-2.1 15.9-5.8l-7.6-5.9c-2.1 1.4-4.9 2.3-8.3 2.3-6.3 0-11.6-4.2-13.5-9.9l-7.9 6.2C6.6 42.6 14.6 48 24 48z'/%3E%3C/svg%3E") no-repeat center / contain; }

/* ---- Header: logo row, utility links, category tabs ---- */
.site-header-top { display: flex; justify-content: space-between; align-items: flex-start; height: 44px; }
.site-title { padding: 9px 0 0 10px; }
.site-title a, .site-title img { display: block; }
.site-title img { width: auto; height: 26px; }
.site-header-actions { display: flex; }
.site-overlay summary { display: grid; place-items: center; width: 44px; height: 40px; cursor: pointer; list-style: none; }
.site-overlay summary::-webkit-details-marker { display: none; }
.site-overlay summary .icon { width: 27px; height: 27px; fill: #000; }
.site-utilities { display: flex; justify-content: space-between; align-items: center; height: 21px; padding: 7px 5px 7px 7px; box-shadow: inset 0 1px #d9dddf, inset 0 -1px #d9dddf; }
.site-utilities a { display: flex; align-items: center; font-weight: 700; white-space: nowrap; }
.site-utilities-about { color: var(--dkn-blue); font-size: 15px; }
.site-utilities-about img { width: 20px; height: 20px; margin-right: 3px; }
.site-utilities-account { color: #333; font-size: 12px; }
.site-utilities-account img { width: 15px; height: 15px; margin-left: 2px; }

/* Category bar: the tabs and (on category pages) the sub-category strip, one element that stays at the top of the
   screen once scrolled there. A single copy with position: sticky — nothing is duplicated or toggled by script, so the
   selected entries and each strip's horizontal position are kept while it follows. Below the overlays (101) and the
   post button (110). The admin bar is fixed only above 600px wide. */
.category-bar { position: sticky; top: 0; z-index: 100; background: #fff; }
.admin-bar .category-bar { top: var(--wp-admin--admin-bar--height, 0px); }
@media (max-width: 600px) { .admin-bar .category-bar { top: 0; } }
/* Keep in-page jumps and focused elements clear of the bar (tabs 50px, strip 41px). */
html:has(.category-bar) { scroll-padding-top: 50px; }
html:has(.category-bar .category-navigation) { scroll-padding-top: 91px; }

.primary-navigation ul { display: flex; height: 45px; margin: 0; padding: 5px 0 0; list-style: none; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; background: linear-gradient(var(--dkn-tab) 44.9px, #fff 44.9px); }
.primary-navigation ul::-webkit-scrollbar { display: none; }
.primary-navigation li { flex: 0 0 70px; margin: 0 1px; scroll-snap-align: center; }
.primary-navigation a, .category-navigation a { -webkit-user-select: none; user-select: none; touch-action: manipulation; }
/* border-box: the 40px includes the 1px top border, so a tab spans ul+5..ul+45 and ends inside the band (44.9px), as
   on the old theme. With content-box it ran to ul+46 and an unselected tab showed 1.1px below the band. */
.primary-navigation a { box-sizing: border-box; display: block; height: 40px; border: 1px solid var(--dkn-tab-border); border-width: 1px 0 0 1px; border-radius: 5px 5px 0 0; background: var(--dkn-tab-bg); color: #fff; font-family: var(--dkn-meta-font); font-size: 14px; font-weight: 700; line-height: 41px; text-align: center; white-space: nowrap; }
.primary-navigation .current-menu-item > a, .primary-navigation .current-category-ancestor > a { border-color: #fff; background: #fff; color: var(--dkn-tab); }

/* Sub-categories of the current category group */
.category-navigation { background: #fff; }
.category-navigation ul { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.category-navigation ul::-webkit-scrollbar { display: none; }
.category-navigation li { display: flex; align-items: center; }
.category-navigation li::after { content: ''; width: 1px; height: 12px; margin: 0 5.5px; background: #000; }
.category-navigation a { position: relative; padding: 0 9px; color: #747474; font-family: var(--dkn-meta-font); font-size: 13px; font-weight: 700; line-height: 41px; }
.category-navigation [aria-current="page"] { color: var(--dkn-tab); }
.category-navigation [aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--dkn-tab); }

/* ---- Overlays (search, menu) ----
   An opaque white sheet slides in from the right over about two thirds of the screen (capped on wide screens); the
   rest of the panel is a dimmed backdrop that closes the overlay when tapped. Opening is pure CSS (the keyframes run
   when <details open> renders the panel). Closing is staged by assets/header-overlays.js: it adds .is-closing, waits
   for the slide-out to end, then removes [open]. Without the script the summary stays visible as the close control. */
body:has(.site-overlay[open]) { overflow: hidden; }
.site-overlay-panel { position: fixed; inset: 0; z-index: 101; background: rgba(0, 0, 0, .4); }
.site-overlay-sheet { position: absolute; top: 0; right: 0; bottom: 0; box-sizing: border-box; width: min(66.667%, 420px); overflow-y: auto; overscroll-behavior: contain; background: #fff; box-shadow: -4px 0 16px rgba(0, 0, 0, .18); color: #222; }
/* Keyed to [open]: WebKit styles the content of a closed <details>, so an unconditional animation would run (unseen)
   at page load and not again when the overlay opens. */
.site-overlay[open] .site-overlay-panel { animation: dkn-overlay-fade-in 180ms ease-out; }
.site-overlay[open] .site-overlay-sheet { animation: dkn-overlay-slide-in 180ms cubic-bezier(.2, .8, .2, 1); }
.site-overlay[open].is-closing .site-overlay-panel { animation: dkn-overlay-fade-out 140ms ease-in forwards; }
.site-overlay[open].is-closing .site-overlay-sheet { animation: dkn-overlay-slide-out 140ms cubic-bezier(.4, 0, 1, 1) forwards; }
/* The backdrop fades its colour, not its opacity, which would also fade the sheet inside it. */
@keyframes dkn-overlay-fade-in { from { background-color: transparent; } }
@keyframes dkn-overlay-fade-out { to { background-color: transparent; } }
@keyframes dkn-overlay-slide-in { from { transform: translateX(100%); } }
@keyframes dkn-overlay-slide-out { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .site-overlay[open] .site-overlay-panel, .site-overlay[open] .site-overlay-sheet { animation: none !important; } }
.site-overlay[open] summary { position: fixed; right: 0; top: 0; z-index: 102; width: 56px; height: 56px; }
.site-overlay[open] summary .icon { fill: #333; }
.site-overlay-close { display: none; }
.dkn-overlays-ready .site-overlay[open] summary { visibility: hidden; }
.dkn-overlays-ready .site-overlay[open] .site-overlay-close { display: grid; place-items: center; position: absolute; left: 0; top: 0; width: 56px; height: 56px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.site-overlay-close .icon { width: 28px; height: 28px; fill: #333; }
.site-overlay-close:focus-visible { outline: 2px solid var(--dkn-blue); outline-offset: -6px; }
.site-overlay-content { box-sizing: border-box; padding: 64px 16px 24px; }
.site-menu ul { margin: 0; padding: 0; list-style: none; }
.site-menu li + li { border-top: 1px solid #ececec; }
.site-menu a { display: block; padding: 13px 8px; color: #222; font-size: 18px; font-weight: 700; line-height: 1.35; }
.site-search h2 { margin: 0; color: #666; font-size: 12px; font-weight: 400; line-height: 14px; }
.site-search .search-form { border-bottom: 2px solid #222; }
.site-search input[type="search"]:focus-visible { outline: none; } /* the underline marks the field */
.site-search input[type="search"] { box-sizing: border-box; width: 100%; height: 40px; margin: 8px 0 4px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #222; font: inherit; font-size: 22px; font-weight: 700; line-height: 36px; }
.site-search .search-submit { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-search .search-submit:focus-visible { position: static; width: auto; height: auto; clip-path: none; }

/* ---- Layout ---- */
.site-main { padding: 0 7px; }
.article-sidebar { position: relative; }
[data-dkn-invite-copy] { display: none; }
.post-shortcut { position: fixed; right: 10px; bottom: 10px; z-index: 110; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #008eec; box-shadow: 0 4px 6px rgba(0, 0, 0, .1); color: #fff; font-size: 28px; line-height: 1; transition: opacity .3s ease-in-out; }
.post-shortcut span { transform: translateY(-1px); }
/* Set by assets/post-shortcut.js: dimmed while reading down the page; gone (and not tappable) after 5 s without scrolling on articles. */
.post-shortcut.is-dimmed { opacity: .5; }
.post-shortcut.is-idle { opacity: 0; pointer-events: none; }
.post-shortcut:focus-visible { opacity: 1; }
/* Hidden while the search or menu panel is open (it would sit over the sheet's lower right corner); no script needed.
   It comes back when [open] goes, i.e. after the slide-out, in whatever dimmed/idle state the script last set. */
body:has(.site-overlay[open]) .post-shortcut { visibility: hidden; }

/* Shared small parts */
.article-categories a { display: inline-block; border-radius: 4px; background: var(--dkn-badge); color: #fff; font-family: var(--dkn-meta-font); }
.article-date { color: var(--dkn-date); font-family: var(--dkn-meta-font); font-size: 11px; }
.section-heading, .related-posts h2, .further-reading > h2 { position: relative; margin: 0 0 24px; color: #333; font-family: var(--dkn-heading-font); font-size: 14px; font-weight: 700; line-height: 37px; }
.section-heading::after, .related-posts h2::after, .further-reading > h2::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: #f5f5f5; }

/* ---- Article lists (top, categories, search) ---- */
[data-dkn-list] > .card, [data-dkn-cards] > .card { display: flex; align-items: center; margin-bottom: 3px; padding-bottom: 4px; border-bottom: 1px solid var(--dkn-line); }
.dkn-cards-ready [data-dkn-list] > .card { cursor: pointer; }
.dkn-cards-ready [data-dkn-list] > .card:active { opacity: .8; }
.card-image { flex: 0 0 94px; height: 94px; }
.card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-body { flex: 1; min-width: 0; padding-left: 16px; }
.card-title { margin: 0 0 6px; color: #333; font-family: var(--dkn-heading-font); font-size: 17px; font-weight: 700; line-height: 23.8px; }
.card-title a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.card-meta { display: flex; align-items: center; line-height: 17px; }
.card-meta .article-categories { display: flex; }
.card-meta .article-categories a { margin-right: 8px; padding: 3px 6px 4px; font-size: 10px; font-weight: 600; line-height: 10px; }
.card-meta .article-category { display: inline-block; margin-right: 8px; padding: 3px 6px 4px; border-radius: 4px; background: var(--dkn-badge); color: #fff; font-family: var(--dkn-meta-font); font-size: 10px; font-weight: 600; line-height: 10px; } /* cards show the category as a name, not a link (same chip as the link had) */
.card-meta .article-date { line-height: 12.1px; }
/* Every sixth article from the top of a page is shown large (the rhythm of the current site, which loaded six at a time) */
[data-dkn-list] > .card:nth-child(6n + 1) { display: block; margin-bottom: 10px; padding-bottom: 10px; }
[data-dkn-list] > .card:nth-child(6n + 1) .card-image { height: 188px; }
[data-dkn-list] > .card:nth-child(6n + 1) .card-body { padding: 13px 0 0; }
.search [data-dkn-list] > .card:nth-child(n) { display: flex; margin-bottom: 0; padding: 0 0 20px; border: 0; }
.search [data-dkn-list] > .card:nth-child(n) .card-image { flex-basis: 80px; height: 80px; }
.search [data-dkn-list] > .card:nth-child(n) .card-body { padding: 0 0 0 15px; }
.search .card-title { margin-bottom: 5px; font-size: 18px; font-weight: 400; line-height: 21.6px; }
.search .card-meta .article-categories { display: none; }
.search .card-meta .article-date { color: #767676; }
[data-dkn-pagination] { margin: 8px 0 0; text-align: center; }
[data-dkn-pagination] .page-numbers:not(.next) { display: none; }
[data-dkn-pagination] .next { display: inline-block; padding: 6px 14px; border: 1px solid #ccc; border-radius: 3px; color: #333; font-size: 12px; }
/* Page navigation (top and categories): "1 / 4" and first / previous / next / last */
.page-navigation { margin: 14px 0 14px; font-family: var(--dkn-meta-font); text-align: center; }
.page-navigation-status { margin: 0 0 8px; color: var(--dkn-date); font-size: 12px; line-height: 17px; }
.page-navigation-status [aria-current] { color: #333; font-weight: 700; }
.page-navigation-controls { display: flex; justify-content: center; gap: 6px; }
.page-navigation-button { display: inline-flex; justify-content: center; align-items: center; box-sizing: border-box; min-width: 44px; height: 36px; padding: 0 14px; border: 1px solid #ccc; border-radius: 3px; background: #fff; color: #333; font-size: 12px; font-weight: 600; line-height: 1; }
.page-navigation-button--first, .page-navigation-button--last { padding: 0; }
.page-navigation-button svg { display: block; }
a.page-navigation-button:active { background: #f2f2f2; }
.page-navigation-button[aria-disabled="true"] { border-color: var(--dkn-line); color: #c8c8c8; }
/* No results: the current site's box (search; also an empty category) */
.empty-state { box-sizing: border-box; width: fit-content; margin: 30px 0 20px 13px; padding: 20px; border: 1px solid rgba(190, 190, 190, .35); color: rgba(125, 125, 125, .8); font-family: var(--dkn-heading-font); font-size: 13px; line-height: 38px; }
.search-page .search-form { display: flex; height: 32px; margin-bottom: 40px; }
.search-page .search-field { flex: 1; min-width: 0; box-sizing: border-box; height: 32px; padding: 3px 9px; border: 1px solid #e1e1e1; border-right: 0; color: #444; font: inherit; font-size: 16px; }
.search-page .search-submit { padding: 7px 15px 8px; border: 0; background: var(--dkn-blue); color: #fff; font-family: var(--dkn-heading-font); font-size: 13px; font-weight: 500; line-height: 16px; cursor: pointer; }
/* flow-root keeps the heading's bottom margin inside, so what follows (list or the 結果なし box) starts below it as on the current site */
.search-page, .archive-header { display: flow-root; padding: 32px 13px 0; }
.search-page .section-heading, .archive-header .section-heading { margin-top: -10px; color: #000; font-size: 17px; font-weight: 500; }
.search .site-main [data-dkn-list] { padding: 0 13px; }

/* ---- Article page ---- */
.article--post { padding-top: 8px; }
.article-title { margin: 0 0 7px; color: var(--dkn-article-text); font-family: var(--dkn-heading-font); font-size: 18px; font-weight: 700; line-height: 1.3; }
.article--post .article-title, .article--post .article-content { font-family: var(--dkn-article-font); }
.article-meta { display: flex; justify-content: space-between; align-items: flex-start; height: 23px; }
.article-meta .article-categories a, .article-categories--after a { padding: 4px 6px; font-size: 12px; line-height: 12px; }
.article-meta .article-date { line-height: 30px; }
.article-meta .article-categories a { vertical-align: top; } /* Production's chip starts at the top of the meta row; on the baseline the 21px line box pushed it down toward the share buttons. */
.article-top-tools { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.article-logo { display: block; width: 150px; height: auto; }
.article-sharing .a2a_kit { display: flex; align-items: flex-end; padding-bottom: 2px; line-height: 26px; }
.article-sharing .a2a_kit a, .article-sharing .a2a_kit a[class^="a2a_button_"]:empty { display: block; padding: 0 4px; } /* AddToAny hides links until its remote script fills them */
/* Icons are drawn by the theme on the service links; AddToAny's script-inserted icon (if any) is hidden. */
.article-sharing [class^="a2a_button_"]::before { content: ''; display: block; width: 26px; height: 26px; margin-bottom: -2px; border-radius: 50%; background: no-repeat center / 26px auto; }
.article-sharing .a2a_button_facebook::before { background-size: contain; }
.article-sharing .a2a_button_line::before { background-color: #00c300; }
.article-sharing .a2a_button_x::before { background-color: #1a1a1a; }
/* (0,3,1): must beat addtoany.min.css `.addtoany_list a:not(.addtoany_special_service)>span { display: inline-block }` (0,2,2),
   or the script-inserted icon stacks under the ::before icon once static.addtoany.com/menu/page.js runs. */
.article-sharing .a2a_kit a > .a2a_svg { display: none; }
.article-sharing .a2a_dd img { width: 26px; height: 26px; margin-bottom: -2px; object-fit: contain; vertical-align: bottom; }
.article-sharing .a2a_label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* Article image: the poster's own image only. As on the current site: a frame as wide as the column and 250px high,
   the whole image shown inside it at its own size or smaller (never enlarged or cropped), centred; the caption below. */
.article-image { margin: 0 0 11px; }
.article-image img { display: block; width: 100%; max-width: 100%; height: 250px; object-fit: scale-down; }
.article-image-caption { margin: 4px 0 0; color: #666; font-size: 13px; line-height: 1.8; }
.article--post .article-content { padding-bottom: 16px; color: var(--dkn-article-text); font-size: 18px; line-height: 1.4; }
.article--post .article-content p { margin: 0 0 26px; }
.article-categories--after { display: flex; align-items: center; height: 25px; margin-bottom: 10px; }
.article-categories-label { margin-right: 10px; color: #999; font-family: var(--dkn-meta-font); font-size: 12px; }
.article-like { position: relative; margin: 0 10px 32px 0; padding: 10px 0; text-align: right; }
.article-like-prompt { position: absolute; top: calc(50% - 10px); right: 0; margin: 0; padding: 5px 10px; border-radius: 8px; background: #555; color: #fff; font-size: 10px; line-height: 21px; white-space: nowrap; transform: translateY(-50%) translateX(-70px); }
.article-like-prompt::after { content: ''; position: absolute; top: 50%; right: -12px; width: 12px; height: 15px; background: #555; clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translateY(-50%); }
.article-like .wpulike { display: inline-block; padding: 0; }
.article-like .wp_ulike_general_class { position: relative; display: inline-flex; flex-direction: column; align-items: center; }
.article-like .wp_ulike_general_class::after { content: 'おもしろかった'; position: relative; top: 5px; display: block; color: #555; font-size: 10px; line-height: 15px; }
.article-sharing--bottom { margin-bottom: 6px; padding-bottom: 25px; border-bottom: 1px solid #ebebeb; }
.article-sharing--bottom .a2a_kit { justify-content: center; }
.related-posts { margin-bottom: 28px; padding-top: 24px; }
.related-posts ul { margin: 0; padding: 0; list-style: none; }
.related-posts li { padding: 10px 0 10px 16px; border-top: 1px solid var(--dkn-line); }
.related-posts li:first-child { padding-top: 0; border-top: 0; }
.related-posts a { display: block; color: #006ccc; font-family: var(--dkn-heading-font); font-size: 14px; font-weight: 700; line-height: 19.6px; }
.article-sidebar .related-posts { padding-top: 0; }

/* Invitation to advertise ("広告募集中"): plain image + link, class names kept clear of ad-blocking filter words */
.dkn-invite { margin-bottom: 38px; text-align: center; }
.dkn-invite-label { margin: 0; color: #767676; font-size: 10px; line-height: 21px; }
.dkn-invite img { display: block; width: 100%; height: auto; aspect-ratio: 300 / 250; }

/* あわせて読みたい記事: the listing cards without the large first one; the whole card opens the article (no script).
   The title link's ::after must reach the card: only the card is positioned in between (heading rule above is `> h2`). */
.further-reading { margin-bottom: 28px; }
[data-dkn-cards] > .card { position: relative; }
[data-dkn-cards] .card-title a::after { content: ''; position: absolute; inset: 0; }
[data-dkn-cards] .card-meta .article-categories a { position: relative; z-index: 1; }

/* Press feedback on the whole card (listing cards once assets/listing-interactions.js makes them clickable, and あわせて読みたい記事).
   The current site got it from iPhone Safari's own tap highlight on an empty link spread over each card (a snippet added
   a.td-full-clickable-link): WebKit's default colour rgba(0, 0, 0, .4), fading out in 0.1 s. Its title, image and category
   links sat above that link, so only presses on the date or the padding covered the whole card. Here the card draws it
   itself, so a press on the title, the image, the date or the padding looks the same: once assets/card-press.js runs, the
   browsers' own highlight is turned off inside the cards (iPhone Safari drew it on the title only, or skipped it on the
   padding) and kept on category links, which open a category and show no card feedback. card-press.js sets .is-pressed
   (short delay for touches, so a scroll does not flash the card). Without that script the cards keep the earlier feedback
   (the browsers' highlight; the card dimming on listings), and :active adds the overlay to あわせて読みたい記事 where the
   browser applies it (iPhone Safari applies :active only with touch listeners, so there the highlight stays). */
:root { --dkn-card-press: rgba(0, 0, 0, .1); } /* 2026-11-15: lighter than the current site's .4 at the owner's request (iPhone check) */
.dkn-card-press-ready.dkn-cards-ready [data-dkn-list], .dkn-card-press-ready [data-dkn-cards] { -webkit-tap-highlight-color: transparent; }
.dkn-card-press-ready.dkn-cards-ready [data-dkn-list] .article-categories a, .dkn-card-press-ready [data-dkn-cards] .article-categories a { -webkit-tap-highlight-color: initial; }
.dkn-card-press-ready.dkn-cards-ready [data-dkn-list] > .card:active { opacity: 1; } /* the earlier dimming of the card, superseded by the overlay */
.dkn-cards-ready [data-dkn-list] > .card { position: relative; isolation: isolate; }
[data-dkn-cards] > .card { isolation: isolate; }
.dkn-cards-ready [data-dkn-list] > .card::after, [data-dkn-cards] > .card::after { content: ''; position: absolute; inset: 0; z-index: 2; background: var(--dkn-card-press); opacity: 0; pointer-events: none; transition: opacity .1s ease-in-out; }
.dkn-cards-ready [data-dkn-list] > .card.is-pressed::after, [data-dkn-cards] > .card.is-pressed::after { opacity: 1; transition: none; }
html:not(.dkn-card-press-ready) [data-dkn-cards] > .card:active:not(:has(.article-categories a:active))::after { opacity: 1; transition: none; }
/* Release (2026-11-15, iPhone check): the overlay goes at once when the press ends on the card (card-press.js sets
   .is-released and follows the link only after the screen shows the card without it; WebKit stops updating the screen
   while the next page loads, so a fade or a later removal stayed on screen until that page arrived). */
.dkn-cards-ready [data-dkn-list] > .card.is-released::after, [data-dkn-cards] > .card.is-released::after { transition: none; }

/* ---- Not found (the current site's 404 template: icon, message, button, latest articles) ---- */
.not-found-message { padding: 48px 13px 0; }
.not-found-icon { display: block; width: 70px; height: 70px; margin: 0 auto 42px; }
.not-found-title { margin: 0 0 26px; color: #333; font-family: var(--dkn-heading-font); font-size: 18px; font-weight: 700; line-height: 22.5px; text-align: center; }
.not-found-text { margin: 0 0 36px; color: #757575; font-family: var(--dkn-heading-font); font-size: 16px; line-height: 17.6px; }
.not-found-button { display: block; width: fit-content; margin: 0 auto; padding: 0 30px; background: var(--dkn-blue); color: #fff; font-family: var(--dkn-heading-font); font-size: 16px; font-weight: 700; line-height: 50px; }
.not-found-list { margin-top: 50px; padding: 0 13px; }
@media (min-width: 768px) { .not-found-text { text-align: center; } }

/* ---- Fixed pages ---- */
.site-main:has(> .page) { padding: 0 20px; }
.page .page-title, .page-content h1 { margin: 33px 0 23px; color: #111; font-family: var(--dkn-heading-font); font-size: 32px; font-weight: 400; line-height: 40px; }
.page-content h2 { margin: 30px 0 20px; color: #111; font-family: var(--dkn-heading-font); font-size: 27px; font-weight: 400; line-height: 38px; }
.page-content p { margin: 0 0 21px; }
.page-content ul, .page-content ol { margin: 14px 0; padding: 0; }
.page-content li { margin-left: 21px; line-height: 24px; }
.page-content li ol, .page-content li ul { margin: 0; }
.page-content a { color: var(--dkn-link); }
/* Tables in the legal pages (privacy policy: information, retention, outside services) */
.page-content table { width: 100%; margin: 14px 0 21px; border-collapse: collapse; font-size: 14px; line-height: 21px; }
.page-content th, .page-content td { padding: 6px 8px; border: 1px solid #ddd; text-align: left; vertical-align: top; }
.page-content th:first-child { width: 28%; }
.page-content th { background: #f5f5f5; font-weight: 700; }
.page-content--about a { color: inherit; }
/* Terms: the current page keeps 116px (plus the column's spacing) below the text on phones, so the end clears the posting button. */
.page-content--terms-confirmation { padding-bottom: 127px; }
.page-content--posting-rules h1 { font-size: 21px; text-align: center; }
.page-content--posting-rules h2 { margin: 23.52px 0 9.8px; font-size: 19.6px; font-weight: 700; }
.page-content--posting-rules ul { padding-left: 14px; }
.page-content--posting-rules ul:has(> li > strong) { padding-left: 0; }
.page-content--posting-rules li:has(> strong) { margin-bottom: 19.6px; color: #555; font-size: 12.6px; }
.page-content--posting-rules li > strong { color: #000; font-size: 14px; }
.page-content--about { color: #444; font-size: 16px; line-height: 25.6px; }
/* About: the current page ends with an empty spacer (<div style="margin-bottom: 8em">, 112px) that the conversion drops with
   the other inline styles. The last paragraph's margin folds into it, so the text ends 112px above the page end and, scrolled
   to the bottom, clears the posting button. */
.page-content--about::after { content: ''; display: block; margin-top: 112px; }
.page-content--about p { margin: 0 0 19.2px; }
.page-content--about > p:first-child { margin: 63px 0; font-size: 21px; font-weight: 700; line-height: 35.7px; }
.page-content--about > img { display: block; box-sizing: border-box; width: 298px; margin: 7px auto 26px; border: 1px solid #eee; }
.page-content--about > p:first-child, .page-content--about .about-carousel { text-align: center; }
/* About carousel: the look of the one before the switch (Swiper 11 defaults plus the page's own rules: image border #eee
   with 5px corners, bullets at 10px from the bottom at opacity .5, arrows at opacity .4, 4em below, at most 400px from
   1024px up). Slides are (100% - 4px) / 1.2 wide (slidesPerView 1.2, spaceBetween 20px), centred, and slide in 300ms. */
.about-carousel { position: relative; width: 100%; margin: 0 auto 4em; }
.about-carousel-viewport { display: grid; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.about-carousel-viewport:active { cursor: grabbing; }
.about-carousel [data-dkn-slide] { grid-area: 1 / 1; justify-self: center; box-sizing: border-box; width: calc((100% - 4px) / 1.2); transition: transform .3s ease; }
.about-carousel img { display: block; box-sizing: border-box; width: 100%; height: auto; margin: 0 auto; border: 1px solid #eee; border-radius: 5px; -webkit-user-drag: none; }
.about-carousel-controls { position: absolute; z-index: 10; left: 0; right: 0; bottom: 10px; display: flex; align-items: center; justify-content: center; margin: 0; line-height: 0; opacity: .5; }
.about-carousel-controls button { display: grid; place-items: center; width: 16px; height: 16px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.about-carousel-controls button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #000; opacity: .2; }
.about-carousel-controls [aria-current="true"]::before { background: #007aff; opacity: 1; }
.about-carousel > [data-dkn-previous], .about-carousel > [data-dkn-next] { position: absolute; z-index: 10; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 27px; height: 44px; padding: 0; border: 0; background: transparent; color: #007aff; font-size: 0; cursor: pointer; opacity: .4; }
.about-carousel > [data-dkn-previous]::before, .about-carousel > [data-dkn-next]::before { content: ''; width: 23px; height: 44px; background: currentColor; clip-path: polygon(100% 0, 100% 9%, 15% 50%, 100% 91%, 100% 100%, 0 50%); }
.about-carousel > [data-dkn-next]::before { transform: scaleX(-1); }
.about-carousel > [data-dkn-previous] { left: 10px; }
.about-carousel > [data-dkn-next] { right: 10px; }
@media (min-width: 1024px) { .about-carousel { max-width: 400px; margin: 0 auto; } }
@media (prefers-reduced-motion: reduce) { .about-carousel [data-dkn-slide] { transition: none !important; } }

/* ---- Wider screens (PC): two columns with the sidebar ---- */
@media (min-width: 60rem) {
    .site-main { box-sizing: border-box; max-width: 69rem; margin: 0 auto; padding: 0 1rem; }
    [data-dkn-invite-copy]:not([hidden]) { display: block; position: absolute; left: 0; right: 0; }
    .article-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
    .article-main:only-child { grid-column: 1 / -1; }
    [data-dkn-list] { display: grid; grid-template-columns: minmax(0, 324px) minmax(0, 1fr); gap: 0 48px; align-items: start; }
    [data-dkn-list] > .card:nth-child(6n + 1) { grid-column: 1; grid-row: span 5; }
    [data-dkn-list] > .card:nth-child(6n + 1) .card-image { height: auto; aspect-ratio: 1; }
}

/* ---- Account (マイページ): same tokens as the listings and page navigation; the delete confirmation needs no script ---- */
.account-page .page-title { margin-bottom: 16px; }
.account-notice { margin: 0 0 16px; padding: 10px 12px; border-left: 4px solid #3a8f5c; background: #f1f8f3; color: #222; font-size: 14px; }
.account-notice--failed { border-left-color: #a33; background: #fff2f2; }
.account-profile { margin: 0 0 28px; }
.account-name { margin: 0; color: #333; font-size: 15px; overflow-wrap: anywhere; }
.account-name-label { margin-right: 6px; color: #777; font-family: var(--dkn-meta-font); font-size: 12px; }
.account-note { margin: 4px 0 0; color: #777; font-size: 12px; }
.account-count { margin-left: 4px; color: var(--dkn-date); font-family: var(--dkn-meta-font); font-size: 12px; font-weight: 400; }
.account-sort { display: flex; align-items: center; gap: 6px; margin: -10px 0 6px; font-family: var(--dkn-meta-font); font-size: 12px; }
.account-sort-label { margin-right: 2px; color: var(--dkn-date); }
.account-sort-option { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid #ccc; border-radius: 16px; color: #333; font-weight: 600; }
.account-sort-option[aria-current] { border-color: var(--dkn-tab); background: var(--dkn-tab); color: #fff; }
.account-sort-direction { margin-left: 3px; }
.account-posts { margin: 0; padding: 0; list-style: none; }
.account-post { padding: 12px 0; border-bottom: 1px solid var(--dkn-line); }
.account-post-title { margin: 0 0 6px; color: #333; font-family: var(--dkn-heading-font); font-size: 16px; font-weight: 700; line-height: 22px; overflow-wrap: anywhere; }
.account-post-status { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; background: var(--dkn-badge); color: #fff; font-family: var(--dkn-meta-font); font-size: 11px; font-weight: 400; line-height: 18px; vertical-align: 2px; }
.account-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--dkn-date); font-family: var(--dkn-meta-font); font-size: 12px; }
.account-post-likes-count { color: #333; font-weight: 700; }
.account-delete { margin-left: auto; text-align: right; }
.account-delete[open] { flex-basis: 100%; }
.account-delete summary { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid #ccc; border-radius: 3px; color: #333; cursor: pointer; list-style: none; user-select: none; }
.account-delete summary::-webkit-details-marker { display: none; }
.account-delete-close, .account-delete[open] .account-delete-open { display: none; }
.account-delete[open] .account-delete-close { display: inline; }
.account-delete-form { margin-top: 8px; padding: 12px; border-radius: 4px; background: #f7f7f7; color: #333; font-family: var(--dkn-font); font-size: 14px; text-align: left; }
.account-delete-form p { margin: 0 0 10px; line-height: 21px; overflow-wrap: anywhere; }
.account-delete-note { color: #777; font-size: 12px; }
.account-delete-submit { min-height: 36px; padding: 0 16px; border: 0; border-radius: 3px; background: #c0392b; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.account-empty { color: #555; line-height: 24px; }
.account-logout { margin: 32px 0 24px; text-align: center; }
.account-logout a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 20px; border: 1px solid #ccc; border-radius: 3px; color: #333; font-family: var(--dkn-meta-font); font-size: 13px; font-weight: 600; }

/* ---- Posting page (page-post.php): the owner's mock v37 (2026-11-18), scoped to .post-page ----
   A column of at most 480px; the AI steps in one accordion (closed by default) in the posting blue #008eec,
   then the hand-written form. Native selects at 16px so iPhone does not zoom. States are set by assets/post-page.js. */
.post-page, .post-page *, .post-page *::before, .post-page *::after { box-sizing: border-box; }
.site-main.post-page { max-width: 480px; margin: 0 auto; padding: 0 16px 40px; }
.post-page a { color: var(--dkn-blue); text-decoration: underline; } /* the mock keeps the browser's link underline */
.post-page h1 { margin: 20px 0 4px; color: #333; font-size: 22px; letter-spacing: .02em; }
.post-lead { margin: 0 0 16px; color: #555; font-size: 13px; line-height: 1.7; }
.post-ai { border: 1px solid #bfe3f8; border-radius: 10px; background: #eff8fe; }
.post-ai > summary { display: flex; align-items: center; gap: 8px; padding: 13px 14px; color: #0071b8; font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.post-ai > summary::-webkit-details-marker { display: none; }
.post-ai > summary::before { content: ""; flex: 0 0 auto; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1.5 8.5 6 4 10.5' fill='none' stroke='%23008eec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; transition: transform .18s ease; }
.post-ai[open] > summary::before { transform: rotate(90deg); }
.post-ai-body { padding: 2px 14px 14px; }
.post-steps { margin: 4px 0 0; padding: 0; list-style: none; }
.post-step { position: relative; padding: 0 0 20px 34px; }
.post-step:not(.post-step--last)::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: -2px; border-left: 2px solid #a9d6f5; }
.post-step--last { padding-bottom: 0; }
.post-step--light { min-height: 24px; }
.post-step-num { position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid #008eec; border-radius: 50%; background: #fff; color: #008eec; font-size: 13px; font-weight: 700; line-height: 1; }
.post-step h2 { margin: 0; color: #333; font-size: 15px; line-height: 24px; }
.post-step-box { padding: 6px 0 2px; }
.post-step-box .post-btn { margin-top: 2px; }
.post-style-label { margin: 10px 0 4px; color: #555; font-size: 12px; font-weight: 700; }
.post-step-note { margin: 2px 0 0; color: #777; font-size: 12px; line-height: 1.6; }
.post-form { margin-top: 22px; }
.post-form-lead { margin: 0 0 4px; color: #555; font-size: 13px; }
.post-field { display: flex; justify-content: space-between; margin: 16px 0 6px; color: #333; font-weight: 700; }
.post-field .post-count { color: #777; font-size: 12px; font-weight: 400; }
.post-fname { color: #333; font-size: 14px; font-weight: 700; }
.post-req { color: #c00; font-size: 12px; font-weight: 700; }
.post-opt { color: #777; font-size: 12px; font-weight: 400; }
.post-field-note { margin: 0 0 6px; color: #777; font-size: 12px; }
.post-page textarea { display: block; width: 100%; padding: 10px; border: 1px solid #d2d2d2; border-radius: 6px; background: #fff; color: #222; font: inherit; font-size: 16px; line-height: 1.6; resize: none; overflow-y: auto; overflow-wrap: break-word; white-space: pre-wrap; }
.post-page select { display: block; width: 100%; height: 46px; padding: 0 32px 0 10px; border: 1px solid #d2d2d2; border-radius: 6px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666666' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; color: #222; font: inherit; font-size: 16px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; -webkit-appearance: none; appearance: none; }
.post-page select.is-unset { color: #777; }
.post-page select:disabled { background-color: #f5f5f5; }
.post-page textarea:focus, .post-page select:focus { border-color: var(--dkn-blue); outline: none; box-shadow: 0 0 0 3px rgba(52, 116, 206, .18); }
.post-ai-body textarea:focus, .post-ai-body select:focus { border-color: #008eec; box-shadow: 0 0 0 3px rgba(0, 142, 236, .18); }
/* Over the limit (old page C01). */
.post-page textarea.is-exceeded { border-color: #d33; background: #ffdddd; }
.post-count.is-exceeded { color: #d33; font-weight: 700; }
.post-image-frame { display: grid; place-items: center; width: 110px; height: 84px; padding: 0; border: 2px dashed #cfcfcf; border-radius: 6px; background: #fafafa; color: #888; font: inherit; font-size: 13px; cursor: pointer; }
.post-image-preview { height: 120px; overflow: hidden; border: 1px solid #e3e3e3; border-radius: 4px; background: #f0f0f0; text-align: center; }
.post-image-preview img { width: auto; max-width: 100%; height: 120px; object-fit: contain; }
.post-image-set { margin: 6px 0 0; font-size: 13px; }
.post-btn { display: block; width: 100%; margin: 8px 0 0; padding: 12px; border: 0; border-radius: 8px; background: var(--dkn-blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: opacity .15s ease; }
.post-btn:active { opacity: .85; }
.post-btn-label { display: inline-block; transition: opacity .25s ease; }
.post-ai-body .post-btn { background: #008eec; }
.post-btn--sub { border: 1px solid #c9c9c9; background: #fff; color: #555; }
.post-btn--small { width: auto; padding: 6px 14px; font-size: 13px; }
.post-btn--post { margin-top: 10px; padding: 15px; background: #008eec; box-shadow: 0 4px 6px rgba(0, 0, 0, .1); font-size: 17px; }
/* Old page B06: the posting button is faint until the title and body are filled and within their limits. */
.post-btn--post:disabled { opacity: .3; cursor: default; }
.post-btn--clear { margin-top: 28px; }
.post-rules { margin: 22px 0 0; color: #555; font-size: 13px; font-weight: 700; line-height: 1.8; text-align: center; }
.post-anon-note { margin: 4px 0 0; color: #999; font-size: 12px; text-align: center; }
.post-login-reminder { margin: 12px 0 0; color: #666; font-size: 13px; text-align: center; }
.post-page .post-login-reminder a { color: #0073aa; }
.post-page [hidden] { display: none !important; }
@media (min-width: 60rem) { .site-main.post-page { max-width: 480px; padding: 0 16px 40px; } }
/* Google login held at sign-up (S143) and "log out of every device" (S143). */
.login-error--held a { text-decoration: underline; }
.logout-notice { margin: 1rem 7px; padding: .75rem 1rem; border-left: .25rem solid #3474ce; background: #f2f6fd; }
.account-logout-all { margin: 0 0 32px; text-align: center; }
.account-logout-all-submit { display: inline-flex; align-items: center; min-height: 36px; padding: 0 20px; border: 1px solid #ccc; border-radius: 3px; background: #fff; color: #333; font-family: var(--dkn-meta-font); font-size: 13px; font-weight: 600; cursor: pointer; }
.account-logout-all-note { max-width: 32em; margin: 8px auto 0; color: #666; font-size: 12px; }
