/* ==========================================================
   選挙LP制作サンプル（青山ひかる）／すべて架空
   色：青 #0B3D91 / 黄 #FFD23F / 白 / 文字 #10182B / 淡い青 #EEF3FB
   ========================================================== */

:root {
  --blue: #0B3D91;
  --yellow: #FFD23F;
  --white: #FFFFFF;
  --ink: #10182B;
  --pale: #EEF3FB;
  --jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --en: "Oswald", "Noto Sans JP", sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --sec: clamp(72px, 9vw, 128px);
  --nav-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: var(--jp);
  font-weight: 500;
  font-size: 15px;
  line-height: 2;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 900; text-wrap: balance; line-height: 1.25; }
.nb { display: inline-block; }
.wrap { width: min(100% - var(--gutter) * 2, 1240px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.hero :focus-visible, .support :focus-visible, .foot :focus-visible, .dock :focus-visible { outline-color: var(--yellow); }
@media (min-width: 640px) { body { font-size: 16px; } }

/* ---------- Header / Nav（上に固定の白い帯） ---------- */
.site-head { position: sticky; top: 0; z-index: 50; }
.sample-bar {
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  padding: 5px 14px;
  letter-spacing: .02em;
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-h);
  padding: 0 var(--gutter);
  background: #fff;
  border-bottom: 3px solid var(--blue);
}
.site-head.is-scrolled .nav { box-shadow: 0 6px 18px rgba(16, 24, 43, .14); }
.nav__brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; flex: 0 0 auto; }
.nav__name { font-weight: 900; font-size: 22px; color: var(--blue); letter-spacing: .04em; }
.nav__sub { font-size: 11px; font-weight: 500; letter-spacing: .06em; }
.nav__links { display: flex; gap: clamp(20px, 3.4vw, 52px); margin-inline: auto; }
.nav__links a { font-weight: 900; font-size: 15px; text-decoration: none; padding: 8px 2px; border-bottom: 3px solid transparent; }
.nav__links a:hover { border-bottom-color: var(--yellow); }
.nav__cta {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex; align-items: center;
  margin-right: calc(var(--gutter) * -1);
  padding: 0 clamp(20px, 3vw, 44px);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: .06em;
  transition: background-color .2s, color .2s;
}
.nav__cta:hover { background: var(--blue); color: #fff; }
.nav__toggle { display: none; }

@media (max-width: 820px) {
  :root { --nav-h: 56px; }
  .nav__name { font-size: 19px; }
  .nav__cta { display: none; }
  .nav__toggle {
    display: flex; align-items: center; gap: 10px;
    margin-right: calc(var(--gutter) * -1);
    align-self: stretch;
    padding: 0 var(--gutter);
    border: 0; background: var(--blue); color: #fff;
    font: inherit; font-weight: 900; font-size: 13px; cursor: pointer;
  }
  .nav__toggle-bars, .nav__toggle-bars::before {
    display: block; width: 22px; height: 3px; background: var(--yellow); position: relative;
  }
  .nav__toggle-bars::before { content: ""; position: absolute; top: 7px; left: 0; }
  .nav__toggle-bars { margin-bottom: 7px; }
  .nav__links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: #fff;
    border-bottom: 3px solid var(--blue);
    box-shadow: 0 14px 24px rgba(16, 24, 43, .18);
  }
  .nav-open .nav__links { display: flex; }
  .nav__links a { display: block; padding: 16px var(--gutter); font-size: 17px; border-bottom: 1px solid var(--pale); }
}

/* ---------- 1. Hero（文字が主役・青い面） ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  min-height: min(100svh, 960px);
}
.hero__inner {
  position: relative; z-index: 2;
  padding: clamp(28px, 5vw, 72px) var(--gutter) 0;
  max-width: 100%;
}
.hero__eyebrow {
  font-family: var(--en);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 18px);
  letter-spacing: .1em;
  color: var(--yellow);
  line-height: 1.6;
  margin-bottom: clamp(8px, 1.5vw, 20px);
}
.hero__title {
  font-size: clamp(46px, 12.4vw, 112px);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 900;
  text-wrap: nowrap;
}
.hero__line { display: block; white-space: nowrap; }
.hero__line--accent { color: var(--yellow); }
.hero__lead {
  margin-top: clamp(18px, 2.4vw, 36px);
  max-width: 26em;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.9;
  font-weight: 500;
}
.hero__photo {
  position: absolute; z-index: 1;
  right: clamp(0px, 3vw, 64px);
  bottom: 0;
  height: 82%;
  width: auto;
  aspect-ratio: 1400 / 1800;
  object-fit: cover;
  /* 写真の背景は面の青と少し色が違う。四角い縁が見えると「貼り付けた写真」になるので、
     左右と上の縁を透かして青い面へ溶け込ませる。 */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 26%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 26%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 22%);
  mask-composite: intersect;
}
.hero__name {
  position: absolute; z-index: 3;
  left: -4%; width: 108%;
  bottom: clamp(24px, 5.4vw, 84px);
  transform: rotate(4deg);
  transform-origin: center;
  background: var(--yellow);
  color: var(--ink);
  padding: clamp(10px, 1.4vw, 20px) 0;
}
.hero__name-inner {
  display: flex; align-items: baseline; gap: clamp(12px, 2vw, 32px);
  padding-left: calc(4% + var(--gutter));
  line-height: 1.15;
}
.hero__name-main { font-weight: 900; font-size: clamp(34px, 6.2vw, 96px); letter-spacing: .04em; white-space: nowrap; }
.hero__name-sub { font-weight: 900; font-size: clamp(12px, 1.4vw, 20px); letter-spacing: .08em; }

@media (min-width: 900px) {
  .hero__title { font-size: clamp(96px, 10vw, 160px); }
  .hero__photo { height: 92%; right: clamp(0px, 1.5vw, 32px); }
}
@media (max-width: 560px) {
  .hero { min-height: max(640px, min(100svh, 960px)); }
  .hero__photo { height: 60%; right: -8%; }
  .hero__name-sub { display: none; }
}

/* ---------- 流れる文字の帯 ---------- */
.marquee {
  background: var(--yellow);
  color: var(--blue);
  border-block: 4px solid var(--blue);
  overflow: hidden;
  padding: clamp(10px, 1.6vw, 20px) 0;
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 56s; }
.marquee__list { display: flex; flex: 0 0 auto; }
.marquee__list li {
  display: flex; align-items: center;
  font-weight: 900;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: .04em;
}
.marquee__list li::after {
  content: "";
  width: .32em; height: .32em;
  margin: 0 .9em;
  background: var(--blue);
  transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 区切り：傾いた色の帯 ---------- */
.slash {
  position: relative;
  height: clamp(130px, 15vw, 210px);
  overflow: hidden;
}
.slash__band {
  position: absolute; left: -5%; width: 110%; top: 50%;
  padding: clamp(12px, 1.8vw, 24px) calc(5% / 1.1 + var(--gutter));
}
.slash__band p {
  font-weight: 900;
  font-size: clamp(26px, 4.6vw, 64px);
  line-height: 1.3;
  letter-spacing: .04em;
}
.slash--blue { background: linear-gradient(var(--yellow) 50%, var(--white) 50%); }
.slash--blue .slash__band { background: var(--blue); color: #fff; transform: translateY(-50%) rotate(-3deg); }
.slash--blue .slash__band p::first-letter { color: var(--yellow); }
.slash--yellow { background: linear-gradient(var(--white) 50%, var(--pale) 50%); }
.slash--yellow .slash__band { background: var(--yellow); color: var(--ink); transform: translateY(-50%) rotate(3.5deg); }

/* ---------- 共通：節の見出し ---------- */
.sec-label { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-label__en { font-family: var(--en); font-weight: 700; font-size: clamp(34px, 5vw, 64px); letter-spacing: .04em; text-transform: uppercase; line-height: 1; color: var(--blue); }
.sec-label__ja { font-weight: 900; font-size: clamp(16px, 1.8vw, 22px); letter-spacing: .08em; }

/* ---------- 2. 3つの約束（黄色い面） ---------- */
.promise { background: var(--yellow); padding: var(--sec) 0; }
.promise__list { display: grid; grid-template-columns: repeat(3, 1fr); }
.promise__item { padding: 0 clamp(20px, 3vw, 44px); border-left: 4px solid var(--blue); }
.promise__item:first-child { padding-left: 0; border-left: 0; }
.promise__no { display: block; font-family: var(--en); font-weight: 700; font-size: clamp(56px, 7vw, 96px); line-height: 1; color: var(--blue); margin-bottom: 12px; }
.promise__head { font-weight: 900; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.35; margin-bottom: 14px; text-wrap: balance; }
.promise__text { font-size: 15px; line-height: 1.95; }
@media (max-width: 820px) {
  .promise__list { grid-template-columns: 1fr; }
  .promise__item, .promise__item:first-child { padding: 28px 0; border-left: 0; border-top: 4px solid var(--blue); }
  .promise__item:first-child { padding-top: 28px; }
}

/* ---------- 3. 政策 4本柱（白い面） ---------- */
.policy { background: var(--white); padding: var(--sec) 0 calc(var(--sec) * .8); }
.pillar {
  display: grid;
  grid-template-columns: minmax(150px, 0.26fr) 1fr;
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(32px, 4.5vw, 64px) 0;
  border-top: 4px solid var(--ink);
}
.pillar:last-child { border-bottom: 4px solid var(--ink); }
.pillar__no {
  font-family: var(--en); font-weight: 700;
  font-size: clamp(110px, 15vw, 200px);
  line-height: .8; color: var(--blue);
  letter-spacing: -.02em;
}
.pillar__title { font-size: clamp(28px, 3.6vw, 48px); margin-bottom: clamp(18px, 2.4vw, 32px); }
.compare { display: grid; grid-template-columns: 1fr 1fr; }
.compare__col { padding: clamp(18px, 2.4vw, 32px); }
.compare__col--now { background: var(--pale); }
.compare__col--next { background: var(--blue); color: #fff; }
.compare__tag {
  display: inline-block;
  font-weight: 900; font-size: 14px; letter-spacing: .1em; line-height: 1;
  padding: 7px 12px; margin-bottom: 14px;
  background: var(--ink); color: #fff;
}
.compare__col--next .compare__tag { background: var(--yellow); color: var(--ink); }
.compare li { position: relative; padding-left: 1.1em; font-size: 15px; line-height: 1.8; }
.compare li + li { margin-top: 10px; }
.compare li::before { content: ""; position: absolute; left: 0; top: .78em; width: .5em; height: 3px; background: currentColor; }
@media (max-width: 820px) {
  .pillar { grid-template-columns: 1fr; gap: 6px; }
  .pillar__no { font-size: 112px; }
  .compare { grid-template-columns: 1fr; }
}

/* ---------- 4. プロフィール（淡い青の面） ---------- */
.profile { background: var(--pale); padding: var(--sec) 0; }
.profile__grid { display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.profile__photo { position: sticky; top: 120px; margin-top: 8px; }
.profile__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; box-shadow: 14px 14px 0 var(--yellow); }
.profile__photo figcaption { margin-top: 26px; font-size: 13px; font-weight: 900; }
.profile__intro { font-size: clamp(16px, 1.6vw, 19px); font-weight: 900; line-height: 1.9; margin-bottom: clamp(28px, 4vw, 48px); text-wrap: balance; }

.timeline { position: relative; margin-left: 6px; border-left: 4px solid var(--blue); }
.timeline__item { position: relative; display: grid; grid-template-columns: 5.2em 1fr; gap: 12px; padding: 0 0 22px 28px; }
.timeline__item::before { content: ""; position: absolute; left: -12px; top: .5em; width: 20px; height: 20px; background: var(--yellow); border: 4px solid var(--blue); }
.timeline__age { font-family: var(--en); font-weight: 700; font-size: 26px; line-height: 1.5; color: var(--blue); }
.timeline__item p { font-size: 15px; line-height: 1.85; padding-top: 4px; }

.qa__title { font-size: 24px; margin: clamp(32px, 5vw, 56px) 0 12px; display: flex; align-items: center; gap: 16px; }
.qa__title::after { content: ""; flex: 1; height: 4px; background: var(--ink); }
.qa__row { padding: 16px 0; border-bottom: 2px solid rgba(16, 24, 43, .18); }
.qa dt { font-weight: 900; color: var(--blue); }
.qa dt::before { content: "Q. "; font-family: var(--en); }
.qa dd { padding-left: 1.7em; }
.qa dd::before { content: "A. "; font-family: var(--en); font-weight: 700; margin-left: -1.7em; display: inline-block; width: 1.7em; }
@media (max-width: 820px) {
  .profile__grid { grid-template-columns: 1fr; }
  .profile__photo { position: static; max-width: 420px; }
  .timeline__item { grid-template-columns: 4.2em 1fr; padding-left: 22px; }
}

/* ---------- 5. 活動の記録（モザイク・白い面） ---------- */
.activity { background: var(--white); padding: var(--sec) 0; }
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.6vw, 22px); }
.mosaic__item { position: relative; overflow: hidden; background: var(--pale); }
.mosaic__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mosaic__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 18px 16px;
  background: linear-gradient(transparent, rgba(16, 24, 43, .82));
  color: #fff; font-weight: 900; font-size: 14px; line-height: 1.5;
}
.mosaic__date { display: block; font-family: var(--en); font-weight: 500; color: var(--yellow); letter-spacing: .08em; font-size: 14px; }
.mosaic__item--a { grid-column: 1 / 9; aspect-ratio: 4 / 3; }
.mosaic__item--c { grid-column: 9 / 13; grid-row: 1; }
.mosaic__item--b { grid-column: 6 / 13; grid-row: 2; aspect-ratio: 16 / 10; }
.mosaic__note {
  grid-column: 1 / 6; grid-row: 2;
  align-self: stretch;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--blue); color: #fff;
  padding: clamp(20px, 3vw, 40px);
}
.mosaic__note b { font-family: var(--en); font-size: clamp(64px, 9vw, 130px); line-height: .9; color: var(--yellow); font-weight: 700; }
.mosaic__note span { font-weight: 900; font-size: clamp(18px, 2.2vw, 28px); line-height: 1.4; }
@media (max-width: 820px) {
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic__item--a { grid-column: 1 / 3; }
  .mosaic__item--c { grid-column: 1 / 2; grid-row: auto; aspect-ratio: 4 / 5; }
  .mosaic__item--b { grid-column: 2 / 3; grid-row: auto; aspect-ratio: 4 / 5; }
  .mosaic__note { grid-column: 1 / 3; grid-row: auto; }
}
@media (max-width: 480px) {
  .mosaic__item--c, .mosaic__item--b { grid-column: 1 / 3; aspect-ratio: 4 / 3; }
}

/* ---------- 6. 応援する（青い面） ---------- */
.support { background: var(--blue); color: #fff; padding: var(--sec) 0 calc(var(--sec) * .9); }
.support__en { font-family: var(--en); font-weight: 700; font-size: clamp(20px, 2.4vw, 32px); letter-spacing: .2em; color: var(--yellow); text-transform: uppercase; margin-bottom: 8px; }
.support__title { font-size: clamp(40px, 8.4vw, 124px); line-height: 1.12; letter-spacing: -.02em; }
.support__lead { margin-top: 24px; font-weight: 900; font-size: clamp(15px, 1.6vw, 19px); }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(40px, 6vw, 80px); }
.ways__item { border-top: 6px solid var(--yellow); padding-top: 20px; display: flex; flex-direction: column; align-items: flex-start; }
.ways__no { font-family: var(--en); font-weight: 700; font-size: 56px; line-height: 1; color: var(--yellow); }
.ways__title { font-size: clamp(24px, 2.6vw, 32px); margin: 8px 0 12px; }
.ways__text { font-size: 15px; line-height: 1.9; margin-bottom: 24px; flex: 1; }
.btn {
  display: inline-block;
  background: var(--yellow); color: var(--ink);
  font-weight: 900; font-size: 17px; letter-spacing: .08em; text-decoration: none;
  padding: 16px 32px;
  border: 3px solid var(--yellow);
  transition: background-color .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--yellow); }
.support__contact { margin-top: clamp(40px, 6vw, 80px); padding-top: 22px; border-top: 2px solid rgba(255, 255, 255, .4); font-size: 14px; line-height: 1.9; }
@media (max-width: 820px) { .ways { grid-template-columns: 1fr; } }

/* ---------- 7. Footer ---------- */
.foot { background: var(--ink); color: rgba(255, 255, 255, .86); padding: clamp(48px, 6vw, 80px) 0; font-size: 13px; line-height: 1.9; }
.foot__inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.foot__name { font-weight: 900; font-size: 28px; color: #fff; line-height: 1.3; }
.foot__sub { margin-bottom: 14px; }
.foot__note { margin-bottom: 6px; }
.foot__links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.foot__links a { color: var(--yellow); font-weight: 900; }
@media (max-width: 820px) { .foot__inner { grid-template-columns: 1fr; } .foot { padding-bottom: 110px; } }

/* ---------- スマホ：画面下に固定のボタン2つ ---------- */
.dock { display: none; }
@media (max-width: 820px) {
  .dock { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -4px 16px rgba(16, 24, 43, .25); }
  .dock__btn { display: block; text-align: center; padding: 17px 8px; font-weight: 900; font-size: 16px; letter-spacing: .06em; text-decoration: none; }
  .dock__btn--yellow { background: var(--yellow); color: var(--ink); }
  .dock__btn--blue { background: var(--blue); color: #fff; }
}

/* ---------- スクロールで出す（JSが動くときだけ隠す） ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
