/*
Theme Name: 季節をひもとく、日本の文化
Theme URI: https://kisetsu-bunka.com/
Author: Kisetsu Bunka
Description: 食、花、器、美術、文学から日本の季節文化をひもとくための専用WordPressテーマです。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: kisetsu-bunka
*/

:root {
  --ink: #20231f;
  --muted: #676a61;
  --paper: #f5f1e8;
  --paper-deep: #ebe4d7;
  --white: #fffdf8;
  --indigo: #273c5c;
  --vermilion: #a84230;
  --gold: #aa8750;
  --line: rgba(32, 35, 31, .17);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.9; }
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.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; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,241,232,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--content); min-height: 82px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--vermilion); color: var(--vermilion); font-family: var(--serif); font-size: 21px; transform: rotate(-3deg); }
.brand-name { display: block; font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .08em; }
.brand-sub { display: block; margin-top: 2px; color: var(--muted); font-family: var(--serif); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; letter-spacing: .08em; }
.site-nav a { position: relative; padding: 8px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 1px; background: var(--vermilion); transition: right .2s ease; }
.site-nav a:hover::after { right: 0; }
.language-switch { padding-left: 21px !important; border-left: 1px solid var(--line); font-size: 11px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; height: 1px; margin: 6px 0; background: var(--ink); }

.hero { position: relative; min-height: 680px; display: flex; align-items: center; color: var(--white); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,25,31,.78) 0%, rgba(18,25,31,.34) 55%, rgba(18,25,31,.08) 100%); }
.hero-copy { position: relative; z-index: 1; width: min(var(--content), calc(100% - 56px)); margin: 0 auto; padding: 100px 0 90px; }
.eyebrow, .section-no { margin: 0 0 22px; color: #d9c7a5; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; font-family: var(--serif); font-size: clamp(42px, 6.2vw, 80px); font-weight: 500; line-height: 1.38; letter-spacing: .05em; }
.hero h1 em { color: #e7d1a3; font-style: normal; }
.hero-lead { margin: 28px 0 38px; font-family: var(--serif); font-size: clamp(15px, 1.7vw, 19px); letter-spacing: .06em; }
.primary-button { display: inline-flex; align-items: center; gap: 34px; min-height: 54px; padding: 0 24px; border: 1px solid rgba(255,255,255,.65); font-size: 12px; letter-spacing: .12em; transition: background .2s, color .2s; }
.primary-button:hover { color: var(--ink); background: var(--white); }

.intro { position: relative; max-width: 920px; margin: 0 auto; padding: 130px 28px; text-align: center; }
.kicker { color: var(--vermilion); font-size: 11px; letter-spacing: .2em; }
.intro h2, .section-heading h2 { margin: 20px 0 32px; font-family: var(--serif); font-size: clamp(34px, 5vw, 58px); font-weight: 500; line-height: 1.55; letter-spacing: .08em; }
.intro-copy { max-width: 660px; margin: 0 auto; color: var(--muted); font-family: var(--serif); }

.themes-section { padding: 110px 28px 125px; background: var(--indigo); color: var(--white); }
.section-heading { max-width: var(--content); margin: 0 auto 54px; }
.section-heading h2 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 48px); }
.section-heading > p:last-child { color: rgba(255,255,255,.7); }
.theme-grid { max-width: var(--content); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid rgba(255,255,255,.2); }
.theme-card { min-height: 330px; padding: 30px 24px; border-right: 1px solid rgba(255,255,255,.2); display: flex; flex-direction: column; transition: background .25s, transform .25s; }
.theme-card:last-child { border-right: 0; }
.theme-card:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.theme-number { color: #d7b97d; font-family: var(--serif); font-size: 22px; }
.theme-tag { min-height: 48px; margin: 36px 0 10px; color: rgba(255,255,255,.52); font-size: 9px; line-height: 1.6; letter-spacing: .1em; }
.theme-card h3 { margin: 0 0 14px; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.theme-card > p:last-of-type { margin: 0; color: rgba(255,255,255,.7); font-size: 12px; line-height: 1.9; }
.theme-link { margin-top: auto; color: #d7b97d; font-size: 11px; letter-spacing: .12em; }

.latest-section, .archive-wrap { max-width: var(--content); margin: 0 auto; padding: 120px 28px; }
.light-heading .section-no { color: var(--vermilion); }
.light-heading > p:last-child { color: var(--muted); }
.latest-grid, .article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 28px; }
.story-card { min-width: 0; }
.story-image { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-deep); }
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.story-card:hover .story-image img { transform: scale(1.035); }
.story-image span { position: absolute; left: 0; bottom: 0; padding: 6px 12px; color: var(--white); background: var(--vermilion); font-family: var(--serif); font-size: 12px; }
.story-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 18px; color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.story-series { margin: 12px 0 5px; color: var(--vermilion); font-size: 11px; }
.story-card h3 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.55; }
.story-card h3 a:hover { color: var(--vermilion); }
.story-excerpt { color: var(--muted); font-size: 13px; }
.read-more { display: inline-flex; gap: 18px; border-bottom: 1px solid var(--ink); font-size: 11px; letter-spacing: .1em; }
.all-stories { margin-top: 64px; text-align: center; }
.all-stories a { display: inline-flex; gap: 30px; padding: 12px 22px; border: 1px solid var(--ink); font-size: 12px; }

.archive-hero { padding: 120px 28px 80px; color: var(--white); background: var(--indigo); }
.archive-hero-inner { max-width: var(--content); margin: 0 auto; }
.archive-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 8vw, 86px); font-weight: 500; letter-spacing: .1em; }
.archive-hero p:last-child { color: rgba(255,255,255,.68); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 60px; }
.filter-row a { padding: 8px 14px; border: 1px solid var(--line); background: var(--white); font-size: 11px; }
.filter-row a:hover { color: var(--white); background: var(--vermilion); }

.article-hero { max-width: 960px; margin: 0 auto; padding: 100px 28px 46px; text-align: center; }
.article-hero .story-series { letter-spacing: .12em; }
.article-hero h1 { margin: 12px 0 18px; font-family: var(--serif); font-size: clamp(36px, 6vw, 64px); font-weight: 500; line-height: 1.5; }
.article-hero .story-meta { justify-content: center; }
.article-main-image { max-width: 1120px; margin: 0 auto 70px; padding: 0 28px; }
.article-main-image img { width: 100%; max-height: 720px; object-fit: cover; }
.article-content { max-width: 760px; margin: 0 auto; padding: 0 28px 110px; font-family: var(--serif); font-size: 16px; }
.article-content > * + * { margin-top: 1.7em; }
.article-content h2 { margin-top: 2.7em; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 28px; font-weight: 500; line-height: 1.6; }
.article-content h3 { margin-top: 2.2em; color: var(--indigo); font-size: 21px; font-weight: 600; }
.article-content a { color: var(--vermilion); border-bottom: 1px solid currentColor; }
.article-content blockquote { margin: 2.4em 0; padding: 20px 24px; border-left: 3px solid var(--gold); background: var(--white); }
.article-content ul, .article-content ol { padding-left: 1.5em; }
.article-content figcaption { margin-top: 8px; color: var(--muted); font-family: var(--sans); font-size: 11px; text-align: center; }
.post-navigation { max-width: 900px; margin: -60px auto 100px; padding: 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-navigation a { padding: 20px; border: 1px solid var(--line); background: var(--white); font-family: var(--serif); }
.post-navigation .next { text-align: right; }

.page-content { max-width: 820px; min-height: 55vh; margin: 0 auto; padding: 100px 28px; }
.page-content h1 { font-family: var(--serif); font-size: clamp(38px, 6vw, 62px); font-weight: 500; }
.empty-state { padding: 80px 20px; text-align: center; color: var(--muted); border: 1px solid var(--line); background: var(--white); }

.site-footer { color: rgba(255,255,255,.74); background: #172536; }
.footer-inner { max-width: var(--content); margin: 0 auto; padding: 76px 28px 34px; }
.footer-top { display: flex; justify-content: space-between; gap: 42px; padding-bottom: 54px; border-bottom: 1px solid rgba(255,255,255,.17); }
.footer-brand { color: var(--white); font-family: var(--serif); font-size: 22px; letter-spacing: .08em; }
.footer-copy { max-width: 480px; margin-top: 14px; font-family: var(--serif); font-size: 13px; }
.footer-nav { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 14px 26px; font-size: 11px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; font-size: 9px; letter-spacing: .08em; }

@media (max-width: 960px) {
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-card { border-bottom: 1px solid rgba(255,255,255,.2); }
  .theme-card:nth-child(2n) { border-right: 0; }
  .theme-card:last-child { grid-column: 1 / -1; min-height: 250px; }
  .latest-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body.admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 70px; padding: 0 18px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 14px; }
  .brand-sub { display: none; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 22px 24px 28px; flex-direction: column; align-items: flex-start; gap: 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .language-switch { padding-left: 0 !important; border-left: 0; }
  .hero { min-height: 620px; }
  .hero-copy { width: calc(100% - 36px); padding: 84px 0 64px; }
  .hero h1 { font-size: 42px; }
  .hero-lead br { display: none; }
  .intro { padding: 90px 22px; }
  .themes-section, .latest-section, .archive-wrap { padding: 84px 20px; }
  .theme-grid, .latest-grid, .article-grid { grid-template-columns: 1fr; }
  .theme-card, .theme-card:nth-child(2n) { min-height: 270px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .theme-card:last-child { grid-column: auto; }
  .article-hero { padding-top: 72px; }
  .article-content { padding-bottom: 90px; font-size: 15px; }
  .post-navigation { grid-template-columns: 1fr; }
  .footer-top, .footer-bottom { flex-direction: column; }
}

