/*
Theme Name: Pleiades NPO
Description: 濃い青を基調とした、街づくりNPO向けのオリジナルテーマ。
Version: 1.0.0
Text Domain: pleiades-npo
*/

:root {
  --navy-900: #0a1b3d;
  --navy-800: #0f2a5c;
  --navy-700: #163a7a;
  --navy-500: #2f5fb3;
  --sky-200: #cfe0f7;
  --sky-50: #f2f6fc;
  --accent: #f2b441;
  --text: #1c2638;
  --muted: #5b6780;
  --line: #dde4f0;
  --radius: 10px;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-500); }
a:hover { color: var(--navy-800); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.site-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: .04em; }
.site-logo:hover { color: #fff; }
.site-logo svg { width: 30px; height: 30px; flex: none; }
.site-logo small { display: block; font-size: .65rem; font-weight: 400; opacity: .75; letter-spacing: .12em; }
.global-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.global-nav a { display: block; padding: 8px 14px; color: #fff; text-decoration: none; font-size: .92rem; border-radius: 6px; }
.global-nav a:hover, .global-nav .current-menu-item > a { background: var(--navy-700); color: #fff; }
.global-nav .nav-cta a { background: var(--accent); color: var(--navy-900); font-weight: 700; }
.global-nav .nav-cta a:hover { background: #ffc85f; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; padding: 8px 12px; border-radius: 6px; font-size: .9rem; cursor: pointer; }

/* ヒーロー */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 80% 20%, var(--navy-700) 0%, transparent 55%), linear-gradient(160deg, var(--navy-900), var(--navy-800));
  padding: 110px 0 120px;
}
.hero::before {
  content: ""; position: absolute; right: 6%; top: 50%; width: 340px; height: 340px; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%23f2b441'%3E%3Ccircle cx='9' cy='7' r='2.6'/%3E%3Ccircle cx='19' cy='5' r='2.2'/%3E%3Ccircle cx='26' cy='11' r='2.4'/%3E%3Ccircle cx='14' cy='14' r='3'/%3E%3Ccircle cx='22' cy='19' r='2.2'/%3E%3Ccircle cx='8' cy='22' r='2'/%3E%3Ccircle cx='17' cy='27' r='2.4'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .85;
}
.hero .wrap { position: relative; }
.hero-eyebrow { color: var(--accent); letter-spacing: .25em; font-size: .8rem; font-weight: 700; margin: 0 0 14px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1.4; margin: 0 0 20px; letter-spacing: .04em; }
.hero p.lead { max-width: 560px; margin: 0 0 32px; opacity: .9; }
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px; text-decoration: none;
  font-weight: 700; background: var(--accent); color: var(--navy-900); border: 2px solid var(--accent);
  transition: transform .15s, background .15s;
}
.btn:hover { background: #ffc85f; color: var(--navy-900); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); margin-left: 10px; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* セクション */
.section { padding: 80px 0; }
.section-alt { background: var(--sky-50); }
.section-dark { background: var(--navy-800); color: #fff; }
.section-title { text-align: center; margin: 0 0 48px; }
.section-title span { display: block; color: var(--navy-500); font-size: .75rem; letter-spacing: .3em; font-weight: 700; }
.section-dark .section-title span { color: var(--accent); }
.section-title h2 { margin: 6px 0 0; font-size: 1.7rem; color: var(--navy-900); letter-spacing: .06em; }
.section-dark .section-title h2 { color: #fff; }
.section-title h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--accent); margin: 14px auto 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: 0 6px 18px rgba(15,42,92,.06); }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--navy-800); color: var(--accent); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; color: var(--navy-800); font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }

.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.numbers strong { display: block; font-size: 2.6rem; color: var(--accent); line-height: 1.2; }
.numbers span { font-size: .9rem; opacity: .85; }

/* お知らせ */
.news-list { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: flex; gap: 20px; padding: 18px 8px; text-decoration: none; color: var(--text); flex-wrap: wrap; }
.news-list a:hover { background: var(--sky-50); }
.news-list time { color: var(--navy-500); font-weight: 700; font-size: .9rem; min-width: 100px; }
.news-list .cat { background: var(--navy-800); color: #fff; font-size: .72rem; padding: 2px 10px; border-radius: 999px; align-self: center; }
.more { text-align: center; margin-top: 32px; }
.more .btn { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.more .btn:hover { background: var(--navy-700); color: #fff; }

/* CTA */
.cta { text-align: center; }
.cta h2 { font-size: 1.6rem; margin: 0 0 12px; }
.cta p { margin: 0 auto 28px; max-width: 560px; opacity: .9; }

/* 下層ページ */
.page-head { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #fff; padding: 56px 0; }
.page-head h1 { margin: 0; font-size: 1.8rem; letter-spacing: .06em; }
.page-head p { margin: 6px 0 0; opacity: .75; font-size: .85rem; }
.breadcrumb { font-size: .8rem; padding: 12px 0; color: var(--muted); background: var(--sky-50); }
.breadcrumb a { color: var(--muted); }
.content { padding: 56px 0 90px; max-width: 820px; margin-inline: auto; }
.content h2 { color: var(--navy-800); border-left: 5px solid var(--accent); padding-left: 14px; margin: 2.4em 0 1em; font-size: 1.4rem; }
.content h3 { color: var(--navy-700); margin: 2em 0 .6em; }
.content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.content th, .content td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; vertical-align: top; }
.content th { background: var(--sky-50); color: var(--navy-800); width: 28%; white-space: nowrap; }
.content ul { padding-left: 1.4em; }
.content .wp-block-button__link, .content .btn { margin-top: 8px; }
.entry-meta { color: var(--muted); font-size: .85rem; margin-bottom: 24px; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9rem; }
.pagination { text-align: center; margin-top: 40px; }
.pagination .page-numbers { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; margin: 0 2px; }
.pagination .current { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* フッター */
.site-footer { background: var(--navy-900); color: #cdd8ee; padding: 56px 0 24px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; }
.site-footer a { color: #cdd8ee; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 18px; text-align: center; font-size: .78rem; opacity: .7; }

@media (max-width: 820px) {
  .hero::before { width: 200px; height: 200px; right: -20px; top: 70px; transform: none; opacity: .35; }
  .nav-toggle { display: block; }
  .global-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-900); padding: 8px 20px 20px; }
  .global-nav.open { display: block; }
  .global-nav ul { flex-direction: column; }
  .hero { padding: 70px 0 80px; }
  .btn-ghost { margin: 12px 0 0; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .content th { white-space: normal; width: 34%; }
}

.card .icon svg { width: 28px; height: 28px; fill: var(--accent); }

/* 終了のお知らせ */
.message { max-width: 720px; margin: 0 auto; font-size: 1.02rem; }
.message p { margin: 0 0 1.4em; }
.message .sign { text-align: right; font-weight: 700; color: var(--navy-800); }
.site-header .global-nav { display: block; position: static; background: none; padding: 0; }
