/*
Theme Name: 大分県音楽文化連盟
Theme URI: https://example.com/
Author: 大分県音楽文化連盟
Description: 大分県音楽文化連盟の公式サイト用WordPressテーマです。
Version: 0.6.1
Text Domain: oita-music-culture
*/

:root {
	--bg: #fafaf8;
	--bg-alt: #f5f4f1;
	--dark: #1c1b19;
	--text: #222;
	--secondary: #555;
	--muted: #999;
	--accent: #6b5d4d;
	--accent-hover: #584c3e;
	--border: #eee;
	--header-h: 56px;
	--serif: "Yu Mincho", "Hiragino Mincho ProN", serif;
	--sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	--display: "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.85;
	letter-spacing: .01em;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(100% - 32px, 960px); margin-inline: auto; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); border-bottom: 1px solid transparent; transition: .3s; }
.site-header.is-scrolled { border-color: rgba(0, 0, 0, .06); background: rgba(250, 250, 248, .72); backdrop-filter: saturate(180%) blur(20px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: min(100% - 32px, 1100px); height: 100%; margin-inline: auto; }
.brand, .footer-brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; filter: brightness(0) invert(1); transition: filter .3s; }
.brand-en { color: #fff; font-family: var(--display); font-size: 16px; letter-spacing: .08em; transition: color .3s; }
.brand-ja { color: rgba(255, 255, 255, .7); font-family: var(--serif); font-size: 10px; letter-spacing: .1em; transition: color .3s; }
.is-scrolled .brand img { filter: none; }
.is-scrolled .brand-en { color: var(--text); }
.is-scrolled .brand-ja { color: var(--secondary); }
.desktop-nav { display: flex; gap: 26px; }
.desktop-nav li, .mobile-nav li, .site-footer nav li { display: contents; }
.desktop-nav a { position: relative; color: rgba(255, 255, 255, .9); font-size: 13px; transition: color .25s; }
.desktop-nav a::after { content: ''; position: absolute; bottom: -4px; left: 50%; right: 50%; height: 1px; background: currentColor; opacity: .7; transition: left .25s ease, right .25s ease; }
.desktop-nav a:hover::after { left: 0; right: 0; }
.is-scrolled .desktop-nav a { color: var(--secondary); }
.is-scrolled .desktop-nav a:hover { color: var(--accent); }
.desktop-nav a:hover, .text-link:hover { color: rgba(255, 255, 255, 1); }
.menu-button, .mobile-nav { display: none; }

.hero { position: relative; display: flex; align-items: center; justify-content: center; height: 88vh; min-height: 520px; overflow: hidden; }
.hero-slide, .hero-overlay { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide.is-active img { animation: slow-zoom 8s ease-out forwards; }
.hero-overlay { background: rgba(0, 0, 0, .45); }
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 0 20px; color: #fff; text-align: center; animation: hero-enter 1s ease both; }
.hero-kicker { margin: 0; color: rgba(255, 255, 255, .65); font-family: var(--display); font-size: 11px; letter-spacing: .38em; text-transform: uppercase; }
.hero h1 { margin: 16px 0 0; font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 500; letter-spacing: .06em; line-height: 1.3; }
.hero-copy { max-width: 480px; margin: 14px auto 0; color: rgba(255, 255, 255, .8); font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; gap: 8px; border-radius: 2px; padding: 9px 26px; font-size: 13px; font-weight: 500; letter-spacing: .05em; transition: .25s; }
.button-outline { border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .1); color: #fff; }
.button-outline:hover { background: #fff; color: var(--text); }
.button-link { color: rgba(255, 255, 255, .75); }
.button-link:hover { color: #fff; }
.button-solid { background: var(--accent); color: #fff; }
.button-solid:hover { background: var(--accent-hover); }
.hero-dots { position: absolute; bottom: 30px; left: 50%; z-index: 2; display: flex; gap: 8px; transform: translateX(-50%); }
.hero-dots button { width: 8px; height: 3px; padding: 0; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .35); transition: .5s; cursor: pointer; }
.hero-dots button.is-active { width: 24px; background: rgba(255, 255, 255, .85); }

.section { padding: 72px 0; scroll-margin-top: var(--header-h); }
.section-white { border-bottom: 1px solid var(--border); background: var(--bg); }
.section-alt { background: var(--bg-alt); }
.section-heading { margin-bottom: 28px; }
.section-heading p { margin: 0; color: var(--muted); font-family: var(--display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.section-heading h2 { margin: 4px 0 0; font-family: var(--serif); font-size: clamp(1.3rem, 4vw, 1.7rem); font-weight: 500; letter-spacing: .03em; }
.news-item { display: block; padding: 18px 0; border-bottom: 1px solid var(--border); }
.news-item time { color: var(--muted); font-family: var(--display); font-size: 13px; }
.news-meta { display: flex; align-items: center; gap: 12px; }
.news-label { color: var(--accent); font-family: var(--display); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.news-item p { margin: 5px 0 0; font-size: 15px; transition: color .2s; }
.news-item:hover p { color: var(--accent); }
.empty-message { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.center { margin: 26px 0 0; text-align: center; }
.text-link { color: var(--accent); font-size: 13px; font-weight: 500; transition: color .2s; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
h3 { font-family: var(--serif); font-size: 16px; font-weight: 500; }
.about-grid h3 { margin: 0; }
.about-grid p, .demo-note { color: var(--secondary); font-size: 14px; line-height: 1.95; }
.demo-note { margin: 26px 0 0; color: var(--muted); font-size: 12px; }
.members-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.member-card { min-width: 0; }
.member-photo { display: grid; aspect-ratio: 3 / 4; place-items: center; border-radius: 8px; color: #96816c; font-family: var(--serif); font-size: 36px; }
.member-photo-1 { background: #e7dfd5; } .member-photo-2 { background: #d9e2e4; color: #6d858a; } .member-photo-3 { background: #dbe5de; color: #6b8676; }
.member-photo-image { overflow: hidden; }
.member-photo-image img { width: 100%; height: 100%; object-fit: cover; }
.member-card h3 { margin: 10px 0 0; font-family: var(--sans); font-size: 15px; }
.member-card p { margin: 1px 0 0; color: var(--muted); font-size: 12px; }
.feature-grid { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 40px; }
.feature-image { overflow: hidden; border-radius: 8px; }
.feature-image img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; }
.feature-content { align-self: center; }
.feature-content h3 { margin: 0; font-size: 20px; }
dl { margin: 14px 0 0; font-size: 14px; }
dl div { display: flex; gap: 12px; margin-top: 6px; }
dt { width: 48px; flex: 0 0 auto; color: var(--muted); font-weight: 500; }
dd { margin: 0; color: var(--secondary); }
.feature-content p, .join-box p, .contact-copy p { color: var(--secondary); font-size: 14px; line-height: 1.9; }
.feature-content .text-link { display: inline-block; margin-top: 4px; }
.join-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px; border-radius: 8px; background: #fff; }
.join-box p { margin: 0; }
.contact-copy { max-width: 720px; }
.contact-copy .button { margin-top: 14px; }
.contact-reply-note { margin-top: 18px; color: var(--secondary); font-size: 13px; }
.join-nav { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.join-nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border: 1px solid var(--accent); border-radius: 2px; font-size: 13px; font-weight: 500; color: var(--accent); background: #fff; transition: background .2s, color .2s; }
.join-nav-link:hover { background: var(--accent); color: #fff; }
.small-note { margin-top: 6px !important; color: var(--muted) !important; font-size: 12px !important; }
.site-footer { padding: 42px 0 22px; background: var(--dark); color: rgba(255, 255, 255, .6); }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.footer-brand img { width: 38px; filter: brightness(0) invert(1); opacity: .9; }
.footer-brand p { margin: 0; color: rgba(255, 255, 255, .82); font-family: var(--display); font-size: 16px; letter-spacing: .08em; }
.footer-brand small { color: rgba(255, 255, 255, .38); font-family: var(--serif); letter-spacing: .1em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; max-width: 520px; font-size: 13px; }
.site-footer nav a:hover { color: #fff; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-privacy-link { color: rgba(255, 255, 255, .45); font-size: 11px; text-decoration: underline; transition: color .2s; }
.footer-privacy-link:hover { color: rgba(255, 255, 255, .8); }
.copyright { margin: 0; color: rgba(255, 255, 255, .28); font-size: 11px; }
.page-main { min-height: 70vh; padding: 110px 0 72px; }
.page-main .section-heading { margin-bottom: 32px; }
.page-main .section-heading h1 { margin: 4px 0 0; font-family: var(--serif); font-size: clamp(1.3rem, 4vw, 1.7rem); font-weight: 500; letter-spacing: .03em; }
.page-header-copy { margin: -18px 0 30px; color: var(--secondary); font-size: 14px; }
.article-list { border-top: 1px solid var(--border); }
.article-list .news-item { padding: 20px 0; }
.article-list .news-item p { font-size: 16px; }
.post-header { padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.post-header h1 { margin: 12px 0 0; font-family: var(--serif); font-size: clamp(1.65rem, 5vw, 2.35rem); font-weight: 500; line-height: 1.5; }
.post-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.post-thumbnail { margin-top: 26px; overflow: hidden; border-radius: 8px; }
.post-thumbnail img { width: 100%; height: auto; }
.post-content { margin-top: 28px; color: var(--secondary); font-size: 15px; line-height: 2; }
.post-content > *:first-child { margin-top: 0; }
.page-content { margin-top: 28px; color: var(--secondary); font-size: 15px; line-height: 2; }
.page-content > *:first-child { margin-top: 0; }
.page-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.section-page-link { display: inline-block; margin-top: 10px; }
.post-nav { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border); }
.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { display: inline-grid; min-width: 34px; height: 34px; place-items: center; padding: 0 8px; border: 1px solid var(--border); color: var(--secondary); font-size: 13px; }
.pagination .current { border-color: var(--accent); background: var(--accent); color: #fff; }
.featured-news { display: grid; grid-template-columns: minmax(280px, 42%) 1fr; gap: 34px; margin: 34px 0 44px; padding-bottom: 38px; border-bottom: 1px solid var(--border); }
.featured-news-image { display: block; min-height: 240px; overflow: hidden; border-radius: 6px; }
.featured-news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.featured-news-image:hover img { transform: scale(1.03); }
.featured-news-image.is-placeholder { display: grid; place-items: center; background: linear-gradient(145deg, #d7cdc0, #7c6b58); color: rgba(255, 255, 255, .74); font-family: var(--display); font-size: 19px; letter-spacing: .18em; }
.featured-news-content { align-self: center; }
.featured-news-kicker, .year-archive > p { margin: 0 0 8px; color: var(--muted); font-family: var(--display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.featured-news h2 { margin: 10px 0 0; font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 500; line-height: 1.55; }
.featured-news-content > p:not(.featured-news-kicker) { margin: 12px 0 8px; color: var(--secondary); font-size: 14px; line-height: 1.9; }
.news-filters { display: flex; gap: 22px; overflow-x: auto; margin-bottom: 12px; border-bottom: 1px solid var(--border); white-space: nowrap; scrollbar-width: none; }
.news-filters::-webkit-scrollbar { display: none; }
.news-filters a { position: relative; padding: 0 0 10px; color: var(--muted); font-size: 13px; transition: color .2s; }
.news-filters a::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; background: var(--accent); content: ""; opacity: 0; transform: scaleX(.4); transition: .25s; }
.news-filters a:hover, .news-filters a.is-active { color: var(--accent); }
.news-filters a.is-active::after { opacity: 1; transform: scaleX(1); }
.article-list .news-item p { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.article-list .news-item p span { color: var(--muted); font-family: var(--display); transition: transform .2s; }
.article-list .news-item:hover p span { transform: translateX(4px); }
.year-archive { margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--border); }
.year-archive h2 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.year-archive div { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.year-archive a { color: var(--muted); font-family: var(--display); font-size: 14px; letter-spacing: .04em; transition: color .2s; }
.year-archive a:hover, .year-archive a.is-active { color: var(--accent); }
.managed-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.managed-card { display: grid; grid-template-columns: 140px 1fr; gap: 18px; min-height: 140px; padding: 16px; border: 1px solid var(--border); border-radius: 6px; background: #fff; transition: border-color .2s, transform .2s; }
.managed-card:hover { border-color: #d3c8ba; transform: translateY(-2px); }
.managed-card-image { overflow: hidden; border-radius: 4px; }
.managed-card-image img { width: 100%; height: 100%; object-fit: cover; }
.managed-card-image.is-placeholder { display: grid; place-items: center; background: #ebe5dd; color: #a39381; font-family: var(--display); font-size: 10px; letter-spacing: .12em; }
.managed-card h2 { margin: 0; font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.55; }
.managed-card p { margin: 6px 0 0; color: var(--secondary); font-size: 13px; line-height: 1.7; }
.detail-kicker { margin: 0; color: var(--muted); font-family: var(--display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.detail-list { margin: 24px 0 0; padding: 16px 18px; border-radius: 6px; background: var(--bg-alt); }
.member-detail-image { width: min(100%, 360px); margin-top: 26px; overflow: hidden; border-radius: 8px; }
.member-detail-image img { width: 100%; height: auto; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
.clip-reveal { clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); transition: clip-path 1s ease; }
.clip-reveal.is-visible { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
@keyframes slow-zoom { to { transform: scale(1.05); } }
@keyframes hero-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 767px) {
	.container { width: min(100% - 32px, 620px); }
	.brand-ja, .desktop-nav { display: none; }
	.menu-button { position: relative; display: block; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; }
	.menu-button span { position: absolute; left: 11px; display: block; width: 20px; height: 1.5px; background: #fff; transition: .2s; }
	.menu-button span:nth-child(1) { top: 13px; } .menu-button span:nth-child(2) { top: 20px; } .menu-button span:nth-child(3) { top: 27px; }
	.is-scrolled .menu-button span, .menu-open .menu-button span { background: var(--text); }
	.menu-open .menu-button span:nth-child(1) { top: 20px; transform: rotate(45deg); }
	.menu-open .menu-button span:nth-child(2) { opacity: 0; }
	.menu-open .menu-button span:nth-child(3) { top: 20px; transform: rotate(-45deg); }
	.mobile-nav { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 24px; background: var(--bg); opacity: 0; visibility: hidden; transition: .2s; }
	.menu-open .mobile-nav { opacity: 1; visibility: visible; }
	.mobile-nav a { font-size: 16px; letter-spacing: .06em; }
	.hero { height: 100vh; min-height: 520px; }
	.hero-kicker { font-size: 10px; letter-spacing: .28em; }
	.hero h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
	.hero-copy { font-size: 13px; }
	.section { padding: 54px 0; }
	.section-heading { margin-bottom: 22px; }
	.news-item { padding: 15px 0; }
	.news-item p { font-size: 14px; }
	.about-grid, .feature-grid { display: block; }
	.about-grid > div + div { margin-top: 22px; }
	.members-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
	.feature-content { margin-top: 20px; }
	.feature-content h3 { font-size: 18px; }
	.join-box, .footer-top { display: block; }
	.join-box .button { margin-top: 14px; }
	.site-footer nav { justify-content: flex-start; margin-top: 22px; font-size: 12px; }
	.featured-news { display: block; margin: 28px 0 34px; padding-bottom: 30px; }
	.featured-news-image { min-height: 190px; }
	.featured-news-content { margin-top: 18px; }
	.news-filters { gap: 18px; }
	.year-archive { margin-top: 42px; }
	.managed-list { display: block; }
	.managed-card + .managed-card { margin-top: 14px; }
	.managed-card { grid-template-columns: 100px 1fr; min-height: 110px; padding: 12px; }
	.managed-card h2 { font-size: 16px; }
}

/* ── 固定ページ共通 ─────────────────────────────── */
.page-content h2 {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 2.5rem 0 1rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--color-primary, #1a1a2e);
}
.page-content h3 {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 1.8rem 0 0.6rem;
}
.page-content p { line-height: 1.8; margin-bottom: 1rem; }

/* ── WordPress テーブルブロック ─────────────────── */
.page-content .wp-block-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.2rem 0 2rem;
	font-size: 0.95rem;
}
.page-content .wp-block-table thead th {
	background: #f0f0f0;
	padding: 0.65rem 1rem;
	text-align: left;
	border-bottom: 2px solid #ccc;
	font-weight: 700;
}
.page-content .wp-block-table td {
	padding: 0.65rem 1rem;
	border-bottom: 1px solid #e8e8e8;
	vertical-align: top;
	line-height: 1.7;
}
.page-content .wp-block-table tr:last-child td { border-bottom: none; }
.page-content .wp-block-table tr:hover td { background: #fafafa; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	html { scroll-behavior: auto; }
	.reveal, .clip-reveal { opacity: 1; transform: none; clip-path: none; }
	/* ヒーローフェードだけは motion 設定に関わらず維持する */
	.hero-slide { transition-duration: 1.6s !important; }
}
