/*
Theme Name: 映画祭ネット (eigasai)
Theme URI: https://eigasai.net/
Author: eigasai.net 編集部
Description: 全国・世界の映画祭と作品公募情報を、YouTube動画と編集長コメントで紹介するポータルサイト用オリジナルテーマ。映画祭・動画のカスタム投稿タイプ、公募締切の自動判定、地域・ジャンル絞り込み、構造化データ（Festival / VideoObject）を搭載。
Version: 1.10.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eigasai
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--ink: #16120f;
	--ink-soft: #4a433d;
	--muted: #7a716a;
	--paper: #faf8f4;
	--surface: #ffffff;
	--line: #e6e0d7;
	--night: #0f0d0c;
	--night-2: #1d1916;
	--accent: #c8102e;
	--accent-dark: #9e0c24;
	--gold: #c9a227;
	--open: #127a3f;
	--upcoming: #1d5fa8;
	--closed: #8a8178;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(22, 18, 15, .06), 0 4px 16px rgba(22, 18, 15, .06);
	--container: 1160px;
	--font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
	--font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.85;
	letter-spacing: .02em;
	overflow-wrap: anywhere;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.4; letter-spacing: .03em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.2em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto;
	z-index: 1000; padding: 8px 16px; background: #fff; color: var(--ink);
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { background: var(--night); color: #fff; position: sticky; top: 0; z-index: 100; border-bottom: 3px solid var(--accent); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.site-title { display: flex; align-items: baseline; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; letter-spacing: .08em; }
.site-title:hover { color: #fff; }
.site-title__sub { font-family: var(--font-sans); font-size: .72rem; font-weight: 400; letter-spacing: .12em; color: var(--gold); }
.custom-logo { max-height: 44px; width: auto; display: block; }

.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 6px; padding: 6px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav a { display: block; padding: 8px 14px; color: #fff; text-decoration: none; font-size: .92rem; border-radius: 6px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--night-2); color: var(--gold); }
.primary-nav .sub-menu { display: none; }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--night); border-bottom: 3px solid var(--accent); padding: 8px 16px 16px; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; }
	.primary-nav .sub-menu { display: block; padding-left: 16px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative; color: #fff; padding: 72px 0 64px; overflow: hidden;
	background:
		radial-gradient(ellipse at 80% 0%, rgba(200,16,46,.35), transparent 55%),
		radial-gradient(ellipse at 0% 100%, rgba(201,162,39,.18), transparent 50%),
		var(--night);
}
.hero::before, .hero::after {
	content: ""; position: absolute; left: 0; right: 0; height: 14px;
	background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(255,255,255,.12) 14px 26px);
}
.hero::before { top: 10px; }
.hero::after { bottom: 10px; }
.hero__eyebrow { color: var(--gold); font-size: .8rem; letter-spacing: .3em; margin-bottom: 12px; }
.hero__title { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem); margin-bottom: .4em; }
.hero__text { max-width: 640px; color: rgba(255,255,255,.82); margin-bottom: 28px; }
.hero__search { display: flex; max-width: 560px; background: #fff; border-radius: 999px; padding: 4px; }
.hero__search input[type="search"] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 18px; font: inherit; color: var(--ink); }
.hero__search input[type="search"]:focus { outline: none; }
.hero__search button { border: 0; background: var(--accent); color: #fff; border-radius: 999px; padding: 10px 22px; font: inherit; font-weight: 700; cursor: pointer; }
.hero__search button:hover { background: var(--accent-dark); }
.hero__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero__quick a { color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 4px 14px; font-size: .85rem; text-decoration: none; }
.hero__quick a:hover { border-color: var(--gold); color: var(--gold); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 56px 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--night); color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.section--dark .section-head { border-color: rgba(255,255,255,.15); }
.section-head h2 { margin: 0; }
.section-head h2 small { display: block; font-family: var(--font-sans); font-size: .72rem; letter-spacing: .25em; color: var(--accent); font-weight: 700; }
.section--dark .section-head h2 small { color: var(--gold); }
.section-head__more { font-size: .9rem; white-space: nowrap; text-decoration: none; font-weight: 700; }
.section--dark .section-head__more { color: var(--gold); }
.empty-note { color: var(--muted); }

/* ==========================================================================
   Grid & Cards
   ========================================================================== */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--films { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(22,18,15,.08), 0 10px 28px rgba(22,18,15,.12); }
.card__link { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.card__link:hover { color: inherit; }
.card__media { position: relative; aspect-ratio: 16 / 9; background: var(--night-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__media .card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.55); font-family: var(--font-serif); font-size: 1.1rem; letter-spacing: .2em; }
.card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.card__play { position: absolute; inset: 0; display: grid; place-items: center; }
.card__play::before { content: ""; width: 56px; height: 56px; border-radius: 50%; background: rgba(200,16,46,.92); box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.card__play::after { content: ""; position: absolute; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__meta { font-size: .8rem; color: var(--muted); margin: 0; }
.card__title { font-size: 1.05rem; margin: 0; }
.card__excerpt { font-size: .88rem; color: var(--ink-soft); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__deadline { margin: auto 0 0; padding-top: 8px; font-size: .85rem; font-weight: 700; color: var(--accent); }
.card__deadline--closed { color: var(--closed); font-weight: 400; }
.card__comment { margin: 6px 0 0; font-size: .84rem; color: var(--ink-soft); border-left: 3px solid var(--gold); padding-left: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Badges */
.badge { display: inline-block; font-size: .72rem; font-weight: 700; line-height: 1; padding: 5px 9px; border-radius: 4px; background: var(--ink); color: #fff; letter-spacing: .05em; }
.badge--open { background: var(--open); }
.badge--upcoming { background: var(--upcoming); }
.badge--closed { background: var(--closed); }
.badge--ongoing { background: var(--accent); }
.badge--past { background: var(--closed); }
.badge--pick { background: var(--gold); color: var(--ink); }
.badge--term { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); font-weight: 400; text-decoration: none; }
a.badge--term:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   Region chips
   ========================================================================== */
.regions { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.region-group h3 a { color: #fff; text-decoration: none; }
.region-group h3 a:hover { color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: #fff; text-decoration: none; font-size: .88rem; }
.chips a:hover { border-color: var(--gold); color: var(--gold); }
.chips--light a { border-color: var(--line); color: var(--ink); background: var(--surface); }
.chips--light a:hover, .chips--light .is-current a { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   Editor comment
   ========================================================================== */
.editor-comment { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 20px 22px; margin: 28px 0; box-shadow: var(--shadow); }
.editor-comment__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.editor-comment__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--night-2); }
.editor-comment__avatar--initial { display: grid; place-items: center; color: var(--gold); font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; }
.editor-comment__label { margin: 0; font-size: .74rem; letter-spacing: .2em; color: var(--accent); font-weight: 700; }
.editor-comment__name { margin: 0; font-weight: 700; line-height: 1.4; }
.editor-comment__body p:last-child { margin-bottom: 0; }

.editor-profile { display: flex; gap: 24px; align-items: center; }
.editor-profile__avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--night-2); border: 3px solid var(--gold); }
.editor-profile .editor-comment__avatar--initial { width: 112px; height: 112px; font-size: 2.4rem; }
.editor-profile__links { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 600px) { .editor-profile { flex-direction: column; text-align: center; } .editor-profile__links { justify-content: center; } }

/* ==========================================================================
   Donation
   ========================================================================== */
.donation { background: linear-gradient(135deg, #2a0a10, var(--night) 70%); color: #fff; text-align: center; border-top: 3px solid var(--gold); }
.donation__inner { max-width: 720px; }
.donation__eyebrow { color: var(--gold); font-size: .78rem; letter-spacing: .3em; font-weight: 700; margin-bottom: 8px; }
.donation__text { color: rgba(255,255,255,.82); }
.donation__note { font-size: .78rem; color: rgba(255,255,255,.55); margin: 16px 0 0; }
.btn.btn--donate { background: var(--gold); color: var(--ink); padding: 14px 32px; font-size: 1.05rem; }
.btn.btn--donate:hover { background: #e0b830; color: var(--ink); }
.panel--donation { border-top: 4px solid var(--gold); }
.footer-donate { display: inline-block; margin-top: 12px; color: var(--gold) !important; font-weight: 700; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 22px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; line-height: 1.4; text-align: center; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--outline:hover { background: var(--paper); color: var(--accent); border-color: var(--accent); }
.btn--youtube { background: #ff0033; }
.btn--block { width: 100%; }
.section--dark .btn--outline { color: #fff; border-color: rgba(255,255,255,.35); }
.section--dark .btn--outline:hover { background: transparent; color: var(--gold); border-color: var(--gold); }

/* ==========================================================================
   Page layout
   ========================================================================== */
.page-header { background: var(--night); color: #fff; padding: 36px 0 32px; }
.page-header h1 { margin: 0; }
.page-header__desc { color: rgba(255,255,255,.75); margin: 10px 0 0; max-width: 760px; }
.page-header__desc p { margin: 0; }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; }
.breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

.layout { display: grid; gap: 40px; padding: 40px 0 64px; }
@media (min-width: 960px) { .layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; } }
.layout__main { min-width: 0; }
.layout__side { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 960px) { .layout__side-sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel h2, .panel h3 { font-size: 1.05rem; margin-bottom: 12px; }
.panel--accent { border-top: 4px solid var(--accent); }

.info-list { margin: 0 0 16px; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .92rem; }
.info-list dt { color: var(--muted); white-space: nowrap; }
.info-list dd { margin: 0; }
.countdown { font-size: 1.6rem; font-weight: 700; color: var(--accent); font-family: var(--font-serif); line-height: 1.3; margin: 0 0 4px; }
.countdown small { font-size: .9rem; }

.entry-header { margin-bottom: 20px; }
.entry-header__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.entry-subtitle { color: rgba(255,255,255,.7); margin: 4px 0 0; font-size: .95rem; }
.entry-meta { color: var(--muted); font-size: .85rem; margin-bottom: 16px; }
.entry-thumb { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; }
.entry-thumb img { display: block; width: 100%; }

.entry-content { font-size: 1.02rem; }
.entry-content > * { margin-top: 0; margin-bottom: 1.3em; }
.entry-content h2 { margin-top: 2em; padding: 8px 0 8px 14px; border-left: 5px solid var(--accent); font-size: 1.35rem; }
.entry-content h3 { margin-top: 1.6em; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.entry-content blockquote { margin-left: 0; padding: 12px 20px; border-left: 4px solid var(--line); color: var(--ink-soft); background: var(--surface); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.entry-content th { background: var(--paper); }
.entry-content .wp-block-embed iframe { width: 100%; }
.alignwide, .alignfull { max-width: 100%; }

.detail-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 24px; background: var(--surface); }
.detail-table th, .detail-table td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.detail-table th { width: 30%; color: var(--ink-soft); background: var(--paper); font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) { .detail-table th { white-space: normal; } }

.section-title { font-size: 1.25rem; margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }

.term-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0; }

/* ==========================================================================
   YouTube lite embed
   ========================================================================== */
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; margin: 0 0 24px; }
.yt iframe, .yt img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.yt__play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.yt__play::before { content: ""; position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; transform: translate(-50%, -50%); background: #ff0033; border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: background .2s; z-index: 1; }
.yt__play::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; z-index: 2; }
.yt__play:hover::before { background: #cc0029; }
.yt__credit { font-size: .8rem; color: var(--muted); margin: -16px 0 24px; }

/* ==========================================================================
   Filter
   ========================================================================== */
.filter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 28px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.filter label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 4px; font-weight: 700; }
.filter select, .filter input[type="search"] { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: .92rem; background: #fff; }
.filter__check { display: flex; align-items: center; gap: 8px; font-size: .92rem; padding: 9px 0; }
.filter__check label { margin: 0; font-size: .92rem; color: var(--ink); font-weight: 400; }
.filter__actions { display: flex; gap: 8px; }
.filter__actions .btn { padding: 9px 18px; flex: 1; }
.result-count { color: var(--muted); font-size: .88rem; margin-bottom: 16px; }

/* ==========================================================================
   Lists (news)
   ========================================================================== */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: flex; gap: 16px; padding: 14px 4px; color: var(--ink); text-decoration: none; }
.news-list a:hover { color: var(--accent); }
.news-list time { color: var(--muted); font-size: .85rem; white-space: nowrap; min-width: 6.5em; padding-top: 2px; }
@media (max-width: 600px) { .news-list a { flex-direction: column; gap: 2px; } }

/* ==========================================================================
   Pagination / post nav
   ========================================================================== */
.pagination, .nav-links { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-numbers.dots { border: 0; background: none; }
.post-navigation .nav-links { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.post-navigation a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .92rem; }
.post-navigation .nav-next { text-align: right; }
.post-navigation .meta-nav { display: block; font-size: .75rem; color: var(--muted); }

/* ==========================================================================
   Sidebar widgets / search form
   ========================================================================== */
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.widget-title { font-size: 1rem; margin-bottom: 12px; }
.widget ul { margin: 0; padding-left: 1.2em; }
.search-form { display: flex; gap: 6px; }
.search-form input[type="search"] { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.search-form button { padding: 9px 16px; border: 0; border-radius: 6px; background: var(--ink); color: #fff; font: inherit; cursor: pointer; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--night); color: rgba(255,255,255,.75); padding: 48px 0 24px; font-size: .9rem; border-top: 3px solid var(--accent); }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 32px; }
.footer-title { color: #fff; font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 8px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.footer-social a { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 4px 14px; }
.site-info { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: .8rem; text-align: center; }

/* ==========================================================================
   WordPress core classes
   ========================================================================== */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .82rem; color: var(--muted); text-align: center; }
.sticky, .bypostauthor, .gallery-caption { }
.entry-thumb__credit { font-size: .78rem; color: var(--muted); text-align: right; padding: 6px 2px 0; }

/* Contact form */
.contact-form { max-width: 640px; }
.contact-form label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: #fff; }
.contact-form .req { display: inline-block; margin-left: 6px; font-size: .7rem; color: #fff; background: var(--accent); border-radius: 3px; padding: 1px 6px; vertical-align: middle; }
.contact-form__agree label { font-weight: 400; }
.contact-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__notice { padding: 12px 16px; border-radius: 6px; font-weight: 700; }
.contact-form__notice--ok { background: #e8f5ec; color: var(--open); border: 1px solid #b7dfc4; }
.contact-form__notice--error { background: #fdecee; color: var(--accent-dark); border: 1px solid #f3c2ca; }

/* About: address with a small building photo */
.address-with-photo { display: flex; gap: 16px; align-items: flex-start; }
.address-with-photo__text { flex: 1; min-width: 0; }
.address-with-photo img { width: 120px; height: auto; border-radius: 6px; flex-shrink: 0; margin: 0; }
@media (max-width: 600px) { .address-with-photo img { width: 96px; } }
.contact-form__quiz input[type="text"] { max-width: 160px; }
.contact-form__hint { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* Logo */
.site-logo { display: block; line-height: 0; }
.site-logo img { height: 48px; width: auto; display: block; }
.footer-logo { height: 36px; width: auto; display: block; }
@media (max-width: 600px) { .site-logo img { height: 38px; } }

/* Footer: sister sites */
.footer-network { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0 8px; margin-bottom: 8px; }
.footer-network__title { color: #fff; font-family: var(--font-serif); font-size: 1rem; margin: 0 0 10px; }
.footer-network ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.footer-network a { font-size: .85rem; }
.footer-network a span { display: inline-block; margin-left: 6px; font-size: .72rem; color: rgba(255,255,255,.45); }

/* Member login / my page */
.member-box { max-width: 640px; }
.member-box__google { margin: 20px 0 8px; min-height: 44px; }
.member-box__msg { min-height: 1.6em; color: var(--accent-dark); font-weight: 700; }
.member-box__note { font-size: .82rem; color: var(--muted); }
.primary-nav .menu-item--member a { border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 6px 16px; }
.primary-nav .menu-item--member a:hover { border-color: var(--gold); color: var(--gold); }

/* ==========================================================================
   Illustrations (inline SVG motifs, see inc/illustrations.php)
   ========================================================================== */
.ill { display: block; max-width: 100%; height: auto; }
.ill .g { fill: var(--gold); }
.ill .r { fill: var(--accent); }
.ill .w { fill: var(--surface); }
.ill .s { stroke: #fff; }

.page-header .container { position: relative; }
.page-header__illust { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 104px; color: rgba(255, 255, 255, .88); pointer-events: none; }
.page-header__illust .ill { width: 100%; }
.page-header__illust .w { fill: var(--night); }
@media (max-width: 767px) { .page-header__illust { display: none; } }
@media (min-width: 768px) { .page-header h1, .page-header__desc, .page-header .entry-subtitle { padding-right: 130px; } }

.hero__art { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 300px; height: 300px; color: rgba(255, 255, 255, .9); pointer-events: none; }
.hero__art .w { fill: var(--night); }
.hero__reel { position: absolute; right: 0; top: 0; width: 230px; opacity: .9; }
.hero__clapper { position: absolute; left: 0; bottom: 0; width: 150px; }
.hero .container { position: relative; z-index: 1; }
@media (max-width: 1100px) { .hero__art { display: none; } }

.card__media .card__placeholder { flex-direction: column; gap: 10px; align-content: center; color: rgba(255, 255, 255, .7); font-size: .8rem; }
.card__media .card__placeholder { display: flex; align-items: center; justify-content: center; }
.card__placeholder .ill--card { width: 64px; color: rgba(255, 255, 255, .85); }
.card__placeholder .ill--card .w { fill: var(--night-2); }

.entry-illust { margin: 28px auto; width: 150px; color: var(--ink-soft); }
.entry-illust .ill { width: 100%; }
.ill--title { display: inline-block; width: 1.5em; height: 1.5em; margin-right: .45em; vertical-align: -.3em; color: var(--ink); }

.flow { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: flow; }
.flow__step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); counter-increment: flow; }
.flow__step::before { content: counter(flow); position: absolute; top: -10px; left: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 700; line-height: 24px; }
.flow__step:not(:last-child)::after { content: "›"; position: absolute; right: -11px; top: 38px; color: var(--muted); font-size: 1.2rem; z-index: 1; }
.flow__ico { width: 52px; color: var(--ink); }
.flow__ico .ill { width: 100%; }
.flow__step b { font-size: .92rem; }
.flow__step small { color: var(--muted); font-size: .76rem; line-height: 1.5; }
@media (max-width: 700px) {
	.flow { grid-template-columns: 1fr 1fr; }
	.flow__step:not(:last-child)::after { display: none; }
}

/* ==========================================================================
   Like button and share links
   ========================================================================== */
.entry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 24px 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.like { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 1px solid var(--accent); border-radius: 999px; background: #fff; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.like:hover { background: #fdecef; }
.like__count { min-width: 1.5em; padding-left: 8px; border-left: 1px solid currentColor; font-variant-numeric: tabular-nums; }
.like.is-liked { background: var(--accent); color: #fff; cursor: default; }
.like.is-liked .like__heart { fill: currentColor; }
.like[disabled] { opacity: .7; cursor: default; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__label { font-size: .82rem; color: var(--muted); font-weight: 700; letter-spacing: .1em; }
.share__btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: .85rem; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; }
.share__btn:hover { color: #fff; filter: brightness(1.15); }
.share__btn--facebook { background: #1877f2; }
.share__btn--line { background: #06c755; }
.share__btn--copy { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.share__btn--copy:hover { color: var(--accent); border-color: var(--accent); filter: none; }

/* Wide tables (e.g. the call-for-entries list) scroll sideways on small screens instead of squeezing the text. */
.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.3em; }
.wp-block-table table { min-width: 560px; }
.wp-block-table td:first-child, .wp-block-table th:first-child { white-space: nowrap; }
