/*
Theme Name: チーズ王国 読み物・お知らせ
Theme URI: https://www.cheese-oukoku.co.jp/note/
Author: 株式会社 久田
Description: チーズ王国サイト（静的HTML）の /note/ に設置する WordPress 専用テーマ。ヘッダー・フッター・共通CSSはサイト本体（/assets/css/top.css, sub.css）を読み込み、デザインを統一しています。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cheese-oukoku
*/

/* 共通の見た目はサイト本体の top.css / sub.css を使用。ここにはブログ固有の調整だけを書きます。 */

/* 記事一覧 */
.t-root .note-grid{margin-top:8px}
.t-root .note-empty{text-align:center;color:var(--muted);padding:56px 16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.t-root .post-card .thumb img{aspect-ratio:3/2}

/* ページ送り */
.t-root .note-pager{margin-top:56px}
.t-root .note-pager .nav-links{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
.t-root .note-pager .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 12px;border:1px solid var(--line-strong);background:#fff;font-family:var(--en);font-size:16px;color:var(--brown)}
.t-root .note-pager .page-numbers.current{background:var(--brown);border-color:var(--brown);color:#fff}
.t-root .note-pager a.page-numbers:hover{background:var(--brown-tint)}

/* 記事ページ */
.t-root .note-single{max-width:820px;margin-inline:auto}
.t-root .post-head .cat{display:inline-block;margin-left:10px;font-size:11px;line-height:1;padding:4px 8px;border:1px solid var(--line-strong);color:var(--brown-2);vertical-align:2px}
.t-root .note-postnav{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:64px;border-top:1px solid var(--line);padding-top:24px}
.t-root .note-postnav a{display:block;font-size:14px;color:var(--ink)}
.t-root .note-postnav small{display:block;font-family:var(--en);font-style:italic;color:var(--gold);font-size:13px;margin-bottom:4px}
.t-root .note-postnav .next{text-align:right}
.t-root .note-postnav a:hover{color:var(--brown)}

/* 本文（ブロックエディタ） */
.t-root .wp-content .wp-block-image img{height:auto}
.t-root .wp-content .wp-block-quote,.t-root .wp-content blockquote{margin:2em 0;padding:16px 24px;border-left:3px solid var(--brown);background:var(--paper)}
.t-root .wp-content table{width:100%;border-collapse:collapse;margin:2em 0;font-size:14px}
.t-root .wp-content th,.t-root .wp-content td{border:1px solid var(--line);padding:10px 12px;text-align:left}
.t-root .wp-content th{background:var(--paper)}
.t-root .wp-content a{text-decoration:underline;text-underline-offset:3px}
.t-root .wp-content .wp-block-button__link{background:var(--brown);color:#fff;border-radius:0;text-decoration:none;padding:14px 28px}
.t-root .wp-content .alignwide,.t-root .wp-content .alignfull{max-width:100%}

/* 旧サイトから移行した記事 */
.t-root .wp-content .note-figure{margin:1.6em 0}
.t-root .wp-content .note-figure img{width:100%;height:auto}
.t-root .wp-content .note-figure.is-portrait img{width:auto;max-width:min(100%,420px);display:block;margin-inline:auto}
.t-root .wp-content .note-links{list-style:none;padding:0;margin:0 0 2em;border-top:1px solid var(--line)}
.t-root .wp-content .note-links li{border-bottom:1px solid var(--line)}
.t-root .wp-content .note-links a{display:block;padding:12px 4px;text-decoration:none;color:var(--ink)}
.t-root .wp-content .note-links a::after{content:"→";float:right;color:var(--brown)}
.t-root .wp-content .note-links a:hover{background:var(--paper)}
.t-root .wp-content .note-embed{position:relative;aspect-ratio:16/9;margin:1.6em 0}
.t-root .wp-content .note-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.t-root .wp-content .note-small{font-size:12px;color:var(--muted)}

/* サイドバー（ウィジェットを置いた場合） */
.t-root .note-widgets{margin-top:72px;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:32px}
.t-root .note-widgets .sidebar-title{font-family:var(--serif);font-weight:500;font-size:17px;color:var(--ink);padding-bottom:10px;border-bottom:1px solid var(--line);margin-bottom:12px}
.t-root .note-widgets ul{list-style:none;padding:0}
.t-root .note-widgets li{padding:6px 0;border-bottom:1px solid var(--line);font-size:14px}

/* 数字の書体：本文と同じゴシック体で統一 */
.t-root .note-pager .page-numbers{font-family:var(--num);font-style:normal;font-variant-numeric:lining-nums tabular-nums}

@media (max-width:700px){
  .t-root .note-postnav{grid-template-columns:1fr}
  .t-root .note-postnav .next{text-align:left}
}
