/*
Theme Name: ANADA Journal
Theme URI: https://anadakouji.com/
Author: Koji Anada
Description: デザイン、システム、思考と制作の記録のための、編集的で軽量なオリジナルテーマ。
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: anada-journal
*/

:root {
  --ink: #171715;
  --paper: #f4f1e9;
  --white: #fffdf8;
  --accent: #ff5a36;
  --lime: #d8ff64;
  --blue: #4158d0;
  --line: rgba(23, 23, 21, .18);
  --sans: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --serif: "Iowan Old Style", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --max: 1320px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.75; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.site-shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: rgba(244,241,233,.9); backdrop-filter: blur(14px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 800; letter-spacing: -.05em; }
.brand span { display: inline-block; width: 10px; height: 10px; margin-left: 5px; border-radius: 50%; background: var(--accent); }
.site-nav ul { display: flex; gap: 24px; padding: 0; margin: 0; list-style: none; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a:hover { color: var(--accent); }
.hero { position: relative; min-height: calc(100svh - 78px); padding: clamp(72px, 9vw, 130px) 0 64px; border-bottom: 1px solid var(--line); overflow: hidden; color: var(--white); background: var(--ink); }
.hero::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(10,11,9,.78) 0%, rgba(10,11,9,.52) 48%, rgba(10,11,9,.34) 100%); }
.hero .hero-grid { position: relative; z-index: 4; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: end; gap: 54px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.hero h1 { max-width: 1000px; margin: 0; color: #fff; font-size: clamp(4rem, 10.5vw, 9.7rem); font-weight: 800; line-height: .84; letter-spacing: -.075em; text-shadow: 0 2px 28px rgba(0,0,0,.18); }
.hero h1 em { color: var(--accent); font-family: var(--serif); font-weight: 400; }
.hero-note { padding: 26px 0 0; border-top: 1px solid rgba(255,255,255,.72); font-size: .92rem; text-shadow: 0 1px 12px rgba(0,0,0,.34); }
.solar-system { position: absolute; z-index: 3; width: 300px; height: 230px; right: 5.5%; top: 105px; opacity: .82; }
.sun { position: absolute; z-index: 3; width: 18px; height: 18px; left: calc(50% - 9px); top: calc(50% - 9px); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 7px rgba(255,90,54,.09); }
.orbit-line, .planet-path { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform-origin: center; }
.orbit-line { border: 1px solid rgba(255,255,255,.46); }
.orbit-line--one { width: 116px; height: 62px; margin: -31px 0 0 -58px; transform: rotate(-14deg); }
.orbit-line--two { width: 206px; height: 108px; margin: -54px 0 0 -103px; transform: rotate(17deg); }
.orbit-line--three { width: 292px; height: 158px; margin: -79px 0 0 -146px; transform: rotate(-8deg); }
.planet-path { width: 100%; height: 100%; inset: 0; }
.planet-path i { position: absolute; display: block; border-radius: 50%; offset-rotate: 0deg; animation: planet-travel var(--speed) linear infinite; }
.planet-path--one { transform: rotate(-14deg); }
.planet-path--one i { width: 8px; height: 8px; background: var(--white); offset-path: ellipse(58px 31px at 150px 115px); --speed: 8s; }
.planet-path--two { transform: rotate(17deg); }
.planet-path--two i { width: 13px; height: 13px; background: var(--blue); offset-path: ellipse(103px 54px at 150px 115px); --speed: 14s; animation-delay: -6s; }
.planet-path--three { transform: rotate(-8deg); }
.planet-path--three i { width: 7px; height: 7px; background: var(--lime); box-shadow: 0 0 0 1px rgba(23,23,21,.18); offset-path: ellipse(146px 79px at 150px 115px); --speed: 24s; animation-delay: -15s; }
@keyframes planet-travel { to { offset-distance: 100%; } }
.journal-visual { position: absolute; z-index: 0; inset: 0; margin: 0; }
.journal-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.78) contrast(1.06); }
.hero-caption { position: absolute; z-index: 4; left: 50%; bottom: 20px; display: flex; justify-content: space-between; gap: 24px; width: min(calc(100% - 48px), var(--max)); transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.section { padding: 92px 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 42px; }
.section-title { margin: 0; font-size: clamp(2.2rem, 5vw, 5rem); line-height: 1; letter-spacing: -.06em; }
.section-link { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid; }
.post-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.post-card { grid-column: span 4; }
.post-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.post-card:hover img { transform: scale(1.035); }
.placeholder-art { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: clamp(20px, 2.5vw, 34px); color: var(--white); background: linear-gradient(135deg, var(--blue), #101326 65%); }
.placeholder-art small { font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.placeholder-art span { max-width: 92%; font-family: var(--serif); font-size: clamp(1.7rem, 3.1vw, 3.25rem); line-height: 1.12; letter-spacing: -.045em; }
.post-card:nth-child(3n) .placeholder-art { color: var(--ink); background: var(--lime); }
.post-meta { display: flex; gap: 12px; margin: 18px 0 8px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.post-card h2 { margin: 0; font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1.25; letter-spacing: -.04em; }
.post-card.has-placeholder h2 { display: none; }
.post-card__excerpt { margin: 12px 0 0; color: #575750; font-size: .9rem; }
.about-band { display: grid; grid-template-columns: 1fr 1fr; gap: 12vw; align-items: center; }
.about-band blockquote { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 4.4rem); line-height: 1.2; letter-spacing: -.045em; }
.about-band p { max-width: 520px; }
.site-footer { padding: 42px 0 28px; background: var(--ink); color: var(--paper); }
.footer-main { display: flex; justify-content: space-between; gap: 30px; align-items: end; padding-bottom: 70px; }
.footer-title { margin: 0; font-size: clamp(3rem, 8vw, 8rem); line-height: .85; letter-spacing: -.07em; }
.footer-meta { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.25); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.article-wrap { width: min(calc(100% - 48px), 820px); margin: 0 auto; padding: 90px 0 120px; }
.article-header { margin-bottom: 60px; }
.article-header h1 { margin: 12px 0 24px; font-size: clamp(2.8rem, 7vw, 6.3rem); line-height: .98; letter-spacing: -.065em; }
.article-content { font-size: 1.05rem; }
.article-content > * { margin-block: 1.4em; }
.article-content h2 { margin-top: 2.4em; font-size: 2rem; line-height: 1.35; letter-spacing: -.035em; }
.article-content blockquote { margin-inline: 0; padding: 12px 0 12px 28px; border-left: 4px solid var(--accent); font-family: var(--serif); font-size: 1.35rem; }
.article-content pre { overflow-x: auto; padding: 24px; color: #e9e9e3; background: #22231f; border-radius: 2px; }
.pagination { margin-top: 64px; font-weight: 700; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (max-width: 820px) {
  .site-shell, .article-wrap { width: min(calc(100% - 32px), var(--max)); }
  .header-inner { min-height: 66px; }
  .site-nav { display: none; }
  .hero { min-height: 570px; padding-top: 84px; }
  .hero-grid, .about-band { grid-template-columns: 1fr; }
  .hero-note { max-width: 380px; }
  .solar-system { width: 300px; height: 230px; top: 245px; right: -72px; transform: scale(.7); transform-origin: center; }
  .hero::after { background: linear-gradient(180deg, rgba(10,11,9,.66), rgba(10,11,9,.44)); }
  .journal-visual img { object-position: 57% center; }
  .hero-caption { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  .post-card { grid-column: span 12; }
  .post-card__media { aspect-ratio: 16 / 10; }
  .footer-main { align-items: start; flex-direction: column; padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .planet-path i { animation-play-state: paused; } .post-card__media img { transition: none; } }
