/*
Theme Name: 静かな記録
Theme URI: https://example.com/
Author: OpenAI
Description: 献立と短い日記を静かな紙面のように見せる日本語ブログテーマ。
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: shizukana-kiroku
*/

:root {
  --paper: #f3efe5;
  --paper-deep: #e9e2d3;
  --ink: #292b25;
  --muted: #77786d;
  --line: #d5cebe;
  --moss: #65705a;
  --moss-dark: #48513f;
  --vermilion: #b85b43;
  --white: #fbf9f3;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "BIZ UDPMincho", serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  margin: 0;
  padding-top: 78px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .035em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--vermilion); }
img { max-width: 100%; height: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10; padding: .7rem 1rem; background: var(--white); }
.skip-link:focus { left: 1rem; top: 1rem; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; width: 100%; max-width: none; margin: 0; padding: 12px max(calc((100vw - 1040px) / 2), 6vw); display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); background: rgba(243, 239, 229, .98); backdrop-filter: blur(8px); }
.admin-bar .site-header { top: 32px; }
.admin-bar { padding-top: 110px; }
.brand { text-decoration: none; }
.site-title { display: block; font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: .13em; line-height: 1.4; }
.site-description { display: block; margin-top: .35rem; color: var(--muted); font: 11px/1.7 var(--sans); letter-spacing: .16em; }
.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; font: 11px/1.7 var(--sans); letter-spacing: .13em; }
.site-nav ul { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.site-nav li { list-style: none; }
.site-nav a { text-decoration: none; }
.page-shell { max-width: 1160px; min-height: 70vh; margin: 0 auto; padding: 64px 6vw 110px; }
.intro { display: grid; grid-template-columns: 1fr minmax(220px, 350px); gap: 3rem; align-items: end; margin: 5px 0 68px; }
.eyebrow { margin: 0 0 14px; color: var(--vermilion); font: 10px/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.intro h1, .archive-heading { max-width: 690px; margin: 0; font-size: clamp(2rem, 4.2vw, 3.65rem); font-weight: 400; line-height: 1.55; letter-spacing: .09em; }
.intro-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 2.15; }
.entry-list { border-top: 1px solid var(--line); }
.entry-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 2.5rem; padding: 38px 0 42px; border-bottom: 1px solid var(--line); }
.entry-date { padding-top: 8px; color: var(--moss-dark); font: 11px/1.8 var(--sans); letter-spacing: .11em; }
.entry-date .day { display: block; color: var(--vermilion); font: 31px/1.3 var(--serif); letter-spacing: .03em; }
.entry-title { margin: 0 0 18px; font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 400; line-height: 1.65; letter-spacing: .08em; }
.entry-title a { text-decoration: none; }
.entry-excerpt { max-width: 650px; color: #56584f; font-size: 14px; line-height: 2.15; }
.entry-excerpt p { margin: 0 0 .55em; }
.entry-more { display: inline-block; margin-top: 10px; color: var(--moss-dark); font: 10px/1.6 var(--sans); letter-spacing: .14em; text-decoration: none; border-bottom: 1px solid var(--moss); }
.pagination { display: flex; justify-content: space-between; gap: 1rem; margin-top: 38px; font: 11px/1.7 var(--sans); letter-spacing: .1em; }
.pagination a { text-decoration: none; }
.single-layout { display: grid; grid-template-columns: 150px minmax(0, 680px); justify-content: center; gap: 3rem; }
.single-date { padding-top: 10px; color: var(--moss-dark); font: 11px/1.8 var(--sans); letter-spacing: .1em; }
.single-date strong { display: block; color: var(--vermilion); font: 34px/1.35 var(--serif); font-weight: 400; }
.single-title { margin: 0 0 42px; padding-bottom: 25px; border-bottom: 1px solid var(--line); font-size: clamp(1.65rem, 3vw, 2.55rem); font-weight: 400; line-height: 1.6; letter-spacing: .1em; }
.post-content { font-size: 15px; line-height: 2.2; }
.post-content > * { max-width: 100%; }
.post-content h2 { display: flex; align-items: center; gap: 12px; margin: 2.8em 0 1em; color: var(--moss-dark); font-size: 1rem; font-weight: 500; letter-spacing: .12em; }
.post-content h2::before { width: 20px; height: 1px; content: ""; background: var(--vermilion); }
.post-content h3 { margin: 2em 0 .7em; font-size: 1rem; font-weight: 500; }
.post-content p { margin: 0 0 1.2em; }
.post-content ul { margin: .4em 0 1.7em; padding: 0; list-style: none; }
.post-content li { position: relative; padding-left: 1.4em; }
.post-content li::before { position: absolute; left: 0; color: var(--vermilion); content: "・"; }
.post-content blockquote { margin: 1.6em 0; padding: .15em 0 .15em 1.4em; border-left: 1px solid var(--vermilion); color: #57594f; }
.post-content figure { margin: 2em 0; }
.post-content figcaption { margin-top: .7em; color: var(--muted); font: 10px/1.8 var(--sans); letter-spacing: .08em; }
.post-footer { margin-top: 55px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font: 10px/1.8 var(--sans); letter-spacing: .11em; }
.post-navigation { display: flex; justify-content: space-between; gap: 1rem; margin-top: 36px; font: 11px/1.8 var(--sans); }
.post-navigation a { text-decoration: none; }
.empty-state { padding: 48px 0; color: var(--muted); }
.site-footer { max-width: 1160px; margin: 0 auto; padding: 23px 6vw 35px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font: 10px/1.8 var(--sans); letter-spacing: .11em; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--moss); border-radius: 50%; color: var(--white); background: var(--moss-dark); font: 17px/1 var(--sans); text-decoration: none; box-shadow: 0 3px 12px rgba(41, 43, 37, .14); transition: background .2s ease, transform .2s ease; }
.back-to-top:hover { color: var(--white); background: var(--vermilion); transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 3px solid var(--vermilion); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.alignwide { width: min(100%, 900px); margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
@media (max-width: 700px) {
  body { padding-top: 68px; }
  html { scroll-padding-top: 72px; }
  .site-header { align-items: center; flex-direction: row; gap: 10px; padding: 8px 14px; }
  .admin-bar { padding-top: 112px; }
  .admin-bar .site-header { top: 46px; }
  .site-branding { min-width: 0; flex: 0 1 auto; }
  .site-title { font-size: 1rem; white-space: nowrap; }
  .site-description { overflow: hidden; max-width: 36vw; white-space: nowrap; text-overflow: ellipsis; font-size: 9px; }
  .site-nav { min-width: 0; flex: 1 1 auto; justify-content: flex-end; gap: .8rem; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar, .site-nav ul::-webkit-scrollbar { display: none; }
  .site-nav ul { flex-wrap: nowrap; gap: .8rem; }
  .site-nav li { flex: 0 0 auto; }
  .site-nav a { white-space: nowrap; }
  .page-shell { padding: 45px 7vw 75px; }
  .intro { grid-template-columns: 1fr; gap: 1.4rem; margin-bottom: 42px; }
  .intro-note { max-width: 440px; }
  .entry-card { grid-template-columns: 1fr; gap: .6rem; padding: 27px 0 31px; }
  .entry-date { padding: 0; }
  .entry-date .day { display: inline; margin-right: .4em; font-size: 20px; }
  .single-layout { grid-template-columns: 1fr; gap: .5rem; }
  .single-date strong { display: inline; margin-right: .4em; font-size: 22px; }
  .single-title { margin-bottom: 30px; }
  .site-footer { padding-right: 7vw; padding-left: 7vw; flex-direction: column; gap: .2rem; }
  .back-to-top { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
