/*
Theme Name: むさしの応援隊
Theme URI: https://musashino.supporters.jp
Author: むさしの応援隊
Description: 武蔵野市・東京18区の地域情報とブログ自動配信サービスのためのテーマ。
Version: 0.1.3
Text Domain: musashino-supporters
*/

:root {
  --ink: #14171c;
  --ink-soft: #535b63;
  --night: #0b1110;
  --night-2: #111a17;
  --paper: #f7f3eb;
  --paper-deep: #ebe4d8;
  --line: rgba(20, 23, 28, 0.14);
  --green: #13b96b;
  --green-deep: #087a4a;
  --red: #e83e45;
  --orange: #ff9e00;
  --yellow: #f7e93b;
  --radius: 22px;
  --shadow: 0 18px 60px rgba(17, 24, 39, 0.12);
  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif;
  --font-display: "Arial Black", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-deep); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

.site-shell { overflow: hidden; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: relative; z-index: 10;
  background: rgba(11, 17, 16, 0.98);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.header-inner {
  min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: var(--night); font-weight: 900; font-size: 19px;
  transform: rotate(-8deg); box-shadow: 4px 4px 0 var(--red);
}
.brand-name { font-weight: 900; letter-spacing: .02em; line-height: 1.1; }
.brand-name small { display: block; margin-top: 3px; color: rgba(255,255,255,.58); font-size: 10px; letter-spacing: .1em; font-weight: 700; }

.primary-nav ul { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: rgba(255,255,255,.76); font-size: 13px; font-weight: 700; transition: color .2s ease; }
.primary-nav a:hover { color: var(--yellow); }
.header-action { display: inline-flex; align-items: center; gap: 8px; color: var(--night); background: var(--orange); padding: 10px 16px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.header-action:hover { background: var(--yellow); color: var(--night); }
.menu-toggle { display: none; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; border-radius: 10px; padding: 8px 11px; cursor: pointer; }

.hero {
  position: relative; min-height: 535px; display: flex; align-items: end; color: #fff;
  background-color: var(--night); background-image: linear-gradient(90deg, rgba(5, 10, 9, .92) 0%, rgba(5, 10, 9, .68) 39%, rgba(5, 10, 9, .14) 100%), linear-gradient(0deg, rgba(5, 10, 9, .84), transparent 56%), url("assets/header.png");
  background-position: center; background-size: cover;
}
.hero-inner { padding: 92px 0 70px; max-width: 770px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 16px; color: var(--yellow); font-size: 12px; font-weight: 900; letter-spacing: .11em; }
.eyebrow::before { content: ""; width: 25px; height: 4px; border-radius: 99px; background: var(--red); }
.hero h1 { margin: 0; font-family: var(--font-display); font-size: clamp(44px, 8vw, 92px); line-height: .98; letter-spacing: -.06em; text-wrap: balance; }
.hero h1 .accent { color: var(--orange); }
.hero-copy { max-width: 610px; margin: 24px 0 0; color: rgba(255,255,255,.79); font-size: clamp(15px, 2vw, 18px); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px; font-size: 13px; font-weight: 900; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--orange); color: var(--night); }
.button-primary:hover { background: var(--yellow); color: var(--night); }
.button-ghost { border: 1px solid rgba(255,255,255,.42); color: #fff; }
.button-ghost:hover { background: #fff; color: var(--night); }

.signal-bar { background: var(--green); color: #031b10; }
.signal-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }
.signal-lead { font-size: 13px; font-weight: 900; }
.signal-items { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; list-style: none; padding: 0; margin: 0; font-size: 12px; font-weight: 800; }
.signal-items li { display: inline-flex; align-items: center; gap: 8px; }
.signal-items li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

.section { padding: 90px 0; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-kicker { margin: 0 0 6px; color: var(--green-deep); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.section-title { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; letter-spacing: -.04em; }
.section-link { color: var(--green-deep); font-size: 13px; font-weight: 900; white-space: nowrap; }
.section-link::after { content: " ↗"; color: var(--orange); }

.news-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 46px; align-items: start; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.news-card { min-height: 252px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(16, 24, 40, .04); transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card.featured { grid-column: span 2; min-height: 310px; background: var(--night); color: #fff; border-color: var(--night); }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.featured .card-meta { color: rgba(255,255,255,.62); }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; color: var(--night); background: var(--yellow); font-size: 10px; font-weight: 900; }
.tag.red { background: var(--red); color: #fff; }
.tag.green { background: var(--green); }
.news-card h3 { margin: 22px 0 0; font-size: clamp(19px, 2.6vw, 27px); line-height: 1.35; letter-spacing: -.035em; }
.news-card:not(.featured) h3 { font-size: 20px; }
.news-card p { margin: 12px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.featured p { color: rgba(255,255,255,.72); }
.card-arrow { align-self: end; margin-top: 18px; color: var(--orange); font-size: 21px; line-height: 1; }

.about-card { position: sticky; top: 24px; padding: 28px; border-radius: var(--radius); background: var(--paper-deep); }
.about-card::before { content: ""; display: block; width: 54px; height: 8px; margin-bottom: 26px; border-radius: 99px; background: var(--red); box-shadow: 17px 0 0 var(--orange), 34px 0 0 var(--green); }
.about-card h2 { margin: 0; font-size: 25px; line-height: 1.3; letter-spacing: -.04em; }
.about-card p { margin: 15px 0 0; color: var(--ink-soft); font-size: 13px; }
.about-card ul { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.about-card li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.about-card li span { color: var(--ink-soft); }
.about-card li strong { text-align: right; }

.service-section { position: relative; color: #fff; background: var(--night); }
.service-section::before { content: ""; position: absolute; inset: 0; opacity: .22; background: radial-gradient(circle at 78% 30%, var(--green) 0, transparent 25%), radial-gradient(circle at 10% 85%, var(--red) 0, transparent 22%); pointer-events: none; }
.service-content { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 60px; align-items: center; }
.service-section .section-kicker { color: var(--yellow); }
.service-section .section-title { max-width: 650px; font-size: clamp(32px, 5vw, 60px); }
.service-copy { max-width: 610px; margin: 20px 0 0; color: rgba(255,255,255,.71); }
.service-note { max-width: 610px; margin: 18px 0 0; color: var(--orange); font-weight: 700; }
.service-points { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.service-points li { display: flex; align-items: start; gap: 11px; color: rgba(255,255,255,.86); font-size: 13px; }
.service-points li::before { content: "✓"; display: grid; place-items: center; flex: 0 0 21px; width: 21px; height: 21px; margin-top: 2px; border-radius: 50%; background: var(--green); color: var(--night); font-size: 12px; font-weight: 900; }
.service-disclaimer { max-width: 610px; margin: 24px 0 0; color: rgba(255,255,255,.56); font-size: 11px; line-height: 1.7; }
.service-disclaimer strong { color: var(--yellow); }
.service-card { padding: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.service-card .service-label { color: var(--orange); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.service-card h3 { margin: 12px 0 0; font-size: 23px; line-height: 1.35; }
.service-card p { color: rgba(255,255,255,.68); font-size: 13px; }
.service-card .button { width: 100%; margin-top: 12px; }

.manifesto { padding: 74px 0; background: var(--orange); color: var(--night); }
.manifesto-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; align-items: center; }
.manifesto .section-kicker { color: var(--red); }
.manifesto h2 { margin: 0; font-size: clamp(28px, 4vw, 45px); line-height: 1.25; letter-spacing: -.05em; }
.manifesto p { margin: 0; font-size: 16px; line-height: 2; }

.site-footer { padding: 42px 0 28px; background: #07100d; color: rgba(255,255,255,.75); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-description { max-width: 430px; margin: 16px 0 0; font-size: 12px; color: rgba(255,255,255,.54); }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: end; gap: 12px 22px; list-style: none; padding: 0; margin: 0; }
.footer-nav a { color: rgba(255,255,255,.68); font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding-top: 20px; color: rgba(255,255,255,.4); font-size: 11px; }

.post-shell { padding: 72px 0; }
.post-header { max-width: 820px; margin-bottom: 38px; }
.post-title { margin: 0; font-size: clamp(34px, 6vw, 64px); line-height: 1.15; letter-spacing: -.055em; }
.post-content { max-width: 820px; font-size: 16px; }
.post-content > * { margin-top: 1.4em; margin-bottom: 1.4em; }
.post-content a { color: var(--green-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.post-content img { border-radius: var(--radius); }
.post-lead { max-width: 660px; margin: 20px 0 0; color: var(--ink-soft); font-size: 15px; }
.contact-layout { max-width: 820px; }
.contact-form { max-width: 700px; padding: clamp(22px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.contact-field + .contact-field { margin-top: 24px; }
.contact-field label { display: block; margin-bottom: 8px; font-weight: 800; }
.contact-field label span { display: inline-block; margin-left: 7px; padding: 2px 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; line-height: 1.4; vertical-align: 2px; }
.contact-field input, .contact-field textarea { width: 100%; border: 1px solid rgba(20, 23, 28, .2); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; padding: 12px 14px; }
.contact-field textarea { min-height: 210px; resize: vertical; }
.contact-field input:focus, .contact-field textarea:focus { outline: 3px solid rgba(19, 185, 107, .2); border-color: var(--green-deep); }
.contact-help, .contact-note { margin: 8px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.contact-submit { margin-top: 28px; border: 0; cursor: pointer; }
.contact-alert { max-width: 700px; margin: 0 0 22px; padding: 16px 18px; border-radius: 14px; font-weight: 700; }
.contact-alert-success { background: rgba(19, 185, 107, .14); color: var(--green-deep); }
.contact-alert-error { background: rgba(232, 62, 69, .12); color: #a51f29; }
.contact-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.application-summary { max-width: 700px; margin: 0 0 28px; padding: 24px 28px; border-radius: var(--radius); background: var(--paper-deep); }
.application-summary h2 { margin: 0; font-size: 24px; line-height: 1.3; }
.application-summary p { margin: 12px 0 0; color: var(--ink-soft); font-size: 13px; }
.application-summary .service-points { margin-top: 18px; }
.application-disclaimer { margin: 20px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.application-disclaimer strong { color: var(--red); }
.application-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.application-grid .contact-field + .contact-field { margin-top: 0; }
.application-field-full { grid-column: 1 / -1; }
.application-consent { margin-top: 26px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.application-consent label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.7; }
.application-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--green-deep); }
.application-consent strong { color: var(--red); font-size: 11px; }

@media (max-width: 900px) {
  .primary-nav { display: none; position: absolute; top: 82px; left: 0; right: 0; padding: 18px 20px 22px; background: var(--night); border-top: 1px solid rgba(255,255,255,.1); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav li { border-bottom: 1px solid rgba(255,255,255,.1); }
  .primary-nav a { display: block; padding: 13px 0; }
  .header-action { display: none; }
  .menu-toggle { display: block; }
  .news-layout, .service-content { grid-template-columns: 1fr; }
  .about-card { position: static; }
  .manifesto-inner { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 72px; }
  .primary-nav { top: 72px; }
  .hero { min-height: 540px; background-position: 58% center; }
  .hero-inner { padding: 70px 0 48px; }
  .hero h1 { font-size: clamp(44px, 15vw, 70px); }
  .signal-inner { padding: 15px 0; }
  .signal-items { gap: 9px 18px; }
  .section { padding: 64px 0; }
  .section-header { align-items: start; flex-direction: column; gap: 11px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.featured { grid-column: span 1; }
  .news-card { min-height: 220px; }
  .footer-top, .footer-bottom { align-items: start; flex-direction: column; }
  .footer-nav ul { justify-content: start; }
  .application-grid { grid-template-columns: 1fr; }
  .application-field-full { grid-column: auto; }
}
