/*
Theme Name: 星野ひろみ 公式サイト
Theme URI: https://hoshino-hiromi.com/
Author: 星野ひろみ
Description: 裾野の風景と本人写真を生かした、スマートフォン対応の政治活動サイト用テーマです。
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: hoshino-hiromi
*/

:root {
  --ink: #132521;
  --muted: #52615e;
  --green: #1e5b50;
  --green-dark: #143f38;
  --mint: #dcece6;
  --sky: #eaf4f5;
  --paper: #f7f6f1;
  --white: #ffffff;
  --line: rgba(19, 37, 33, 0.14);
  --shadow: 0 18px 50px rgba(22, 52, 47, 0.11);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.section { padding: 108px 0; }
.section--compact { padding: 72px 0; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4.25rem);
  line-height: 1.18;
  letter-spacing: -.045em;
}
.section-lead { max-width: 680px; margin: 24px 0 0; color: var(--muted); font-size: 1.08rem; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 9999; padding: 12px 16px; background: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(19, 37, 33, .93);
  color: #fff;
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-name { font-size: 1.25rem; font-weight: 900; letter-spacing: .02em; }
.brand-place { font-size: .78rem; color: rgba(255,255,255,.68); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { text-decoration: none; font-size: .9rem; font-weight: 700; }
.site-nav a:hover, .site-nav a:focus-visible { color: #bde5d9; }
.nav-cta { padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--green-dark) !important; }
.menu-toggle { display: none; border: 0; color: #fff; background: transparent; font: inherit; font-weight: 700; }

.hero {
  position: relative;
  min-height: min(820px, calc(100svh - 72px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--green-dark);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,27,24,.14) 0%, rgba(10,27,24,.12) 38%, rgba(10,27,24,.82) 74%, rgba(10,27,24,.94) 100%);
}
.hero-inner { position: relative; z-index: 1; display: flex; justify-content: flex-end; padding-block: 80px; }
.hero-card { width: min(52%, 600px); padding: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 30px; background: rgba(15,43,38,.74); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.hero-kicker { margin: 0 0 12px; color: #cfece4; font-size: .88rem; font-weight: 800; letter-spacing: .12em; }
.hero h1 { margin: 0; font-size: clamp(2.65rem, 5.8vw, 5.8rem); line-height: .98; letter-spacing: -.055em; }
.hero h1 small { display: block; margin-bottom: 12px; font-size: .25em; letter-spacing: .12em; }
.hero-statement { margin: 30px 0 0; font-size: clamp(1.25rem, 2.2vw, 1.8rem); font-weight: 800; line-height: 1.55; }
.hero-sub { margin: 18px 0 0; color: rgba(255,255,255,.76); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 800; }
.button--light { background: #fff; color: var(--green-dark); }
.button--outline { border-color: rgba(255,255,255,.5); color: #fff; }
.button--green { background: var(--green); color: #fff; }

.manifesto { background: var(--white); }
.manifesto-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: end; }
.manifesto-copy { max-width: 560px; color: var(--muted); font-size: 1.12rem; }
.manifesto-quote { margin: 0; padding: 36px; border-left: 4px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; background: var(--mint); font-size: clamp(1.35rem, 2.8vw, 2.25rem); font-weight: 800; line-height: 1.55; }

.pillars { background: var(--paper); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.card {
  position: relative;
  min-height: 310px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(25, 55, 49, .07);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-number { color: var(--green); font-weight: 900; letter-spacing: .1em; }
.card h3 { margin: 44px 0 14px; font-size: 1.55rem; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); }

.about { background: var(--green-dark); color: #fff; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 76px; align-items: center; }
.about-photo { overflow: hidden; border-radius: 34px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; }
.about .eyebrow { color: #9ed3c5; }
.about .section-lead { color: rgba(255,255,255,.75); }
.profile-list { display: grid; gap: 0; margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.16); }
.profile-list li { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.profile-list strong { color: #bde5d9; }

.method { background: var(--sky); }
.method-panel { display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; border-radius: 34px; background: #fff; box-shadow: var(--shadow); }
.method-photo { min-height: 620px; }
.method-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.method-copy { padding: 64px 58px; }
.steps { display: grid; gap: 12px; margin-top: 34px; }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; padding: 19px; border-radius: 18px; background: var(--paper); }
.step-num { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-weight: 900; }
.step h3 { margin: 0; font-size: 1.2rem; }
.step p { margin: 4px 0 0; color: var(--muted); font-size: .93rem; }

.scene { position: relative; min-height: 440px; display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; }
.scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene::after { content: ""; position: absolute; inset: 0; background: rgba(16,42,37,.56); }
.scene-copy { position: relative; z-index: 1; width: min(calc(100% - 48px), 900px); }
.scene-copy p { margin: 0; font-size: clamp(1.9rem, 4.8vw, 4.3rem); font-weight: 900; line-height: 1.25; letter-spacing: -.04em; }

.news { background: #fff; }
.news-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); text-decoration: none; }
.post-card:hover .post-card-title { color: var(--green); }
.post-thumb { aspect-ratio: 16/10; object-fit: cover; background: var(--mint); }
.post-card-body { padding: 24px; }
.post-date { color: var(--muted); font-size: .8rem; }
.post-card-title { margin: 8px 0 0; font-size: 1.12rem; line-height: 1.5; }
.empty-news { grid-column: 1 / -1; padding: 34px; border-radius: 20px; background: var(--paper); color: var(--muted); }

.voice { background: var(--mint); }
.voice-box { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 58px; border-radius: 30px; background: var(--white); box-shadow: var(--shadow); }
.voice-actions { display: grid; gap: 12px; }
.voice-note { margin: 8px 0 0; color: var(--muted); font-size: .84rem; }

.site-footer { padding: 56px 0 110px; background: #102d28; color: rgba(255,255,255,.72); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; }
.footer-title { margin: 0; color: #fff; font-size: 1.28rem; font-weight: 900; }
.footer-note { margin: 10px 0 0; font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.footer-links a { font-size: .86rem; }
.mobile-float { display: none; }

.content-page { min-height: 60vh; padding: 90px 0; background: #fff; }
.entry-shell { width: min(calc(100% - 48px), 820px); margin-inline: auto; }
.entry-title { font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.2; }
.entry-content > * { max-width: 100%; }
.entry-content img { border-radius: 18px; }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .site-nav { display: none; position: absolute; inset: 72px 0 auto; padding: 22px 24px 28px; flex-direction: column; align-items: stretch; background: var(--green-dark); }
  .site-nav.is-open { display: flex; }
  .menu-toggle { display: block; }
  .hero { min-height: 760px; align-items: end; }
  .hero-media img { object-position: 42% center; }
  .hero-media::after { background: linear-gradient(180deg, rgba(10,27,24,.05) 24%, rgba(10,27,24,.9) 76%, rgba(10,27,24,.98)); }
  .hero-inner { justify-content: stretch; padding-block: 340px 42px; }
  .hero-card { width: 100%; padding: 28px; border-radius: 24px; }
  .manifesto-grid, .about-grid, .method-panel, .voice-box { grid-template-columns: 1fr; }
  .manifesto-grid, .about-grid { gap: 46px; }
  .card-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .card:last-child, .news-grid .post-card:last-child { grid-column: 1 / -1; }
  .method-photo { min-height: 520px; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .section { padding: 76px 0; }
  .header-inner { min-height: 64px; }
  .brand-place { display: none; }
  .site-nav { inset-block-start: 64px; }
  .hero { min-height: 720px; }
  .hero-inner { padding: 300px 16px 24px; width: 100%; }
  .hero-card { padding: 24px 22px; }
  .hero h1 { font-size: clamp(2.55rem, 15vw, 4.4rem); }
  .hero-statement { font-size: 1.2rem; }
  .hero-sub { display: none; }
  .button-row { display: grid; grid-template-columns: 1fr 1fr; }
  .button { min-height: 48px; padding: 0 14px; font-size: .9rem; }
  .manifesto-quote { padding: 26px; }
  .card-grid, .news-grid { grid-template-columns: 1fr; }
  .card, .card:last-child, .news-grid .post-card:last-child { grid-column: auto; }
  .card { min-height: 0; }
  .card h3 { margin-top: 28px; }
  .about-grid { gap: 38px; }
  .profile-list li { grid-template-columns: 82px 1fr; font-size: .9rem; }
  .method-photo { min-height: 440px; }
  .method-copy { padding: 38px 24px; }
  .scene { min-height: 360px; }
  .news-head { align-items: start; flex-direction: column; }
  .voice-box { padding: 34px 24px; }
  .site-footer { padding-bottom: 100px; }
  .mobile-float {
    position: fixed;
    z-index: 90;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 16px;
    background: rgba(19,37,33,.94);
    box-shadow: 0 14px 36px rgba(0,0,0,.26);
    backdrop-filter: blur(12px);
  }
  .mobile-float a { padding: 12px 8px; color: #fff; text-align: center; text-decoration: none; font-size: .84rem; font-weight: 800; }
  .mobile-float a + a { border-left: 1px solid rgba(255,255,255,.2); background: var(--green); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
