/* ============================================================
   青山ひろあき後援会サイト スタイル
   配色はチラシに準拠:
     紺(メイン)   --navy:  #1d2088
     青緑(サブ)   --teal:  #6dbcbf
     赤(強調)     --red:   #e60012
   文章量が増減してもレイアウトが崩れないよう、
   固定の高さ・固定の文字数前提のスタイルは使わない方針。
   ============================================================ */

:root {
  --navy: #1d2088;
  --navy-dark: #141766;
  --teal: #6dbcbf;
  --teal-deep: #2f989a;
  --teal-readable: #277f81;
  --teal-pale: #edf8f8;
  --green: var(--teal-deep);
  --green-pale: var(--teal-pale);
  --red: #e60012;
  --ink: #222;
  --gray: #666;
  --bg-gray: #f4f5f8;
  --white: #fff;
  --header-h: 68px;
  --shadow: 0 10px 30px rgba(20, 23, 102, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 22px);
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 18px;
  line-height: 1.9;
  overflow-wrap: break-word; /* 長い語句でもはみ出さない */
}

body.lightbox-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid #f2bf24;
  outline-offset: 4px;
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 22px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  flex-shrink: 0;
}

.brand .brand-small {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
}

.brand .brand-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
}

.main-nav {
  display: flex;
  gap: 4px 18px;
  margin: 0 auto;
  flex-wrap: wrap;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--green);
}

.sns-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
}

.sns-links .social-icon {
  --social-size: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--social-size);
  min-width: var(--social-size);
  height: var(--social-size);
  padding: 0;
  border-radius: calc(var(--social-size) * 0.26);
  flex: 0 0 var(--social-size);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.sns-links .threads,
.sns-links .note {
  background: #fff;
  border: 1px solid #cfcfcf;
}

.sns-links .threads {
  /* Meta公式ガイドラインに沿い、ロゴ幅の1/4以上の余白を確保 */
  padding: calc(var(--social-size) * 0.17);
}

.sns-links .social-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  position: absolute;
  left: 8px;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--navy);
}

.nav-toggle span {
  top: 21px;
}

.nav-toggle span::before {
  left: 0;
  top: -9px;
}

.nav-toggle span::after {
  left: 0;
  top: 9px;
}

main {
  padding-top: var(--header-h);
}

/* ---------- ヒーロー ---------- */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 60%, #0d0f45 100%);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(46px, 6vw, 76px) 6vw;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -24%;
  right: -10%;
  width: 46%;
  height: 150%;
  background: linear-gradient(145deg, rgba(109, 188, 191, 0.22), rgba(109, 188, 191, 0.02) 66%);
  transform: skewX(-9deg);
  transform-origin: top;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-text .hero-catch {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.hero-text .hero-sub {
  margin-top: 20px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.9;
}

.hero-name {
  margin-top: 26px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-name .name {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;
}

.hero-name .desc {
  font-size: clamp(16px, 1.4vw, 17px);
  font-weight: 500;
  opacity: 0.85;
}

.hero-photo {
  aspect-ratio: 4 / 5;
  justify-self: center;
  width: 100%;
  max-width: 420px;
  position: relative;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border-radius: 18px;
  background: var(--teal);
  opacity: 0.9;
}

.hero-photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}

/* 写真がまだ無い場合のプレースホルダー */
.photo-placeholder {
  aspect-ratio: 3 / 4;
  border: 2px dashed rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  opacity: 0.85;
  padding: 20px;
}

/* ---------- セクション共通 ---------- */

.section {
  padding: clamp(50px, 7vw, 90px) 6vw;
}

.section.alt {
  background: var(--bg-gray);
}

.section.green-bg {
  background: var(--green-pale);
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.sec-title {
  text-align: center;
  color: var(--navy);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 900;
}

.sec-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  background: var(--green);
  margin: 14px auto 40px;
  border-radius: 2px;
}

.sec-title .en {
  display: block;
  font-size: 14px;
  color: var(--teal-readable);
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}

/* ---------- メッセージ ---------- */

.message-body {
  max-width: 700px;
  margin: 0 auto;
  font-size: clamp(18px, 1.45vw, 19px);
  line-height: 1.95;
}

.message-body p {
  margin-bottom: 1.4em;
}

.message-quote {
  text-align: center;
  color: var(--navy);
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 900;
  margin: 36px auto 0;
}

.message-poem {
  background: var(--teal-readable);
  color: var(--white);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 40px);
  max-width: 640px;
  margin: 40px auto 0;
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 2.05;
  text-align: center;
}

.message-sign {
  text-align: right;
  max-width: 720px;
  margin: 30px auto 0;
  font-weight: 700;
}

.message-sign .name {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  margin-left: 10px;
}

/* ---------- プロフィール ---------- */

.profile-grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.profile-photo {
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
}

.profile-photo img {
  height: 100%;
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.profile-block h3 {
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
  border-left: 5px solid var(--green);
  padding-left: 10px;
  margin: 26px 0 10px;
}

.profile-block h3:first-child {
  margin-top: 0;
}

.profile-block ul {
  list-style: disc;
  padding-left: 1.2em;
}

.profile-block li {
  padding: 4px 0;
  font-size: 18px;
}

.profile-block li::marker {
  color: var(--green);
  font-size: 0.8em;
}

/* ---------- 政策 ---------- */

.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.policy-card {
  background: var(--white);
  border-top: 6px solid var(--teal);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.policy-card h3 {
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.6;
}

.policy-card p {
  font-size: 17px;
  line-height: 1.9;
}

/* ---------- 活動フォト ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 18px;
}

.gallery figure {
  aspect-ratio: 1 / 1;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: block;
}

.gallery figure:focus-visible {
  border-radius: 10px;
}

.gallery img {
  height: 100%;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery figure:hover img {
  transform: scale(1.04);
}

/* ライトボックス */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 4vh 4vw;
  cursor: default;
}

.lightbox.show {
  display: flex;
}

.lightbox img {
  max-height: 82vh;
  max-width: 100%;
  width: auto;
  border-radius: 8px;
}

.lightbox-close {
  align-items: center;
  background: var(--white);
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  font-size: 28px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: max(18px, 3vw);
  top: max(18px, 3vh);
  width: 44px;
}

/* ---------- アオトーク(イベント) ---------- */

.event-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: var(--white);
  border: 3px solid var(--green);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 44px);
}

/* 告知画像を主役にした1カラム中央寄せ版 */
.event-box.single {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
  justify-items: center;
  text-align: center;
}

.event-box.single .event-meta {
  margin-bottom: 0;
}

.event-box h3 {
  color: var(--navy);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 900;
  margin-bottom: 14px;
}

.event-meta {
  display: inline-block;
  background: var(--green-pale);
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.event-box p {
  font-size: 17px;
}

/* ---------- 活動報告(note) ---------- */

.note-box {
  text-align: center;
  max-width: 1040px;
  margin: 0 auto;
}

.note-box p {
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 1.9;
  text-wrap: balance;
}

.news-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.news-social {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(20, 23, 102, 0.14);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(20, 23, 102, 0.08);
  color: var(--navy-dark);
  display: flex;
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 900;
  gap: 12px;
  justify-content: center;
  min-height: 76px;
  padding: 14px 18px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.news-social:hover {
  border-color: rgba(47, 152, 154, 0.7);
  box-shadow: 0 10px 24px rgba(20, 23, 102, 0.14);
  transform: translateY(-2px);
}

.news-social-icon {
  align-items: center;
  display: flex;
  flex: 0 0 48px;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.news-social-icon img {
  display: block;
  height: auto;
  max-height: 40px;
  max-width: 40px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  width: auto;
  -webkit-user-drag: none;
  -webkit-user-select: none;
}

.news-social.threads .news-social-icon {
  padding: 9px;
}

/* ---------- 応援する ---------- */

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

/* カードが1枚だけのとき用: 中央寄せで幅を抑える */
.support-grid.single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.support-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
  padding: 30px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.support-card h3 {
  color: var(--navy);
  font-size: 21px;
  font-weight: 900;
}

.support-card p {
  font-size: 17px;
  line-height: 1.9;
  flex-grow: 1;
}

.support-card .support-intro {
  flex-grow: 0;
}

.support-intro > span {
  display: block;
  text-wrap: balance;
}

.support-intro > span + span {
  margin-top: 0.25em;
}

.no-break {
  white-space: nowrap;
}

.support-card .qr {
  width: 140px;
  margin: 0 auto;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 36px;
  transition: opacity 0.2s;
  align-self: center;
}

.btn:hover {
  opacity: 0.85;
}

/* ---------- お問い合わせ ---------- */

.contact-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact-box .mail {
  font-size: clamp(18px, 2.2vw, 21px);
  font-weight: 700;
  margin: 0 0 18px;
}

.contact-box .mail a {
  color: var(--navy);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.office-info {
  background: var(--bg-gray);
  border-radius: 10px;
  padding: 22px;
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.9;
}

/* ---------- スローガン帯 ---------- */

.slogan-band {
  background: linear-gradient(105deg, var(--teal-deep) 0 72%, var(--teal) 72%);
  color: var(--white);
  text-align: center;
  font-size: clamp(20px, 3.2vw, 32px);
  font-weight: 900;
  padding: clamp(20px, 3.5vw, 34px) 6vw;
  letter-spacing: 0.04em;
  position: relative;
}

.slogan-band::before {
  background: rgba(255, 255, 255, 0.75);
  content: "";
  height: 3px;
  left: 50%;
  max-width: 760px;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 70%;
}

/* ---------- フッター ---------- */

.site-footer {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 28px 16px;
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- レスポンシブ ---------- */

@media (max-width: 1080px) {
  .site-header {
    gap: 10px;
    padding-inline: 16px;
    padding-right: 70px;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    top: 12px;
    right: 16px;
    margin-left: 0;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 22px;
    gap: 12px;
    font-size: 17px;
    line-height: 1.5;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.12);
  }

  .main-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 7px 4px;
  }

  .main-nav.open {
    display: flex;
  }

  .sns-links {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(240px, 0.88fr);
    gap: clamp(24px, 4vw, 40px);
    padding: clamp(42px, 6vw, 58px) 5vw;
  }

  .hero-photo {
    max-width: 320px;
  }

  .event-box {
    grid-template-columns: 1fr;
  }

  .news-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 38px 24px 46px;
  }

  .hero-photo {
    max-width: 310px;
  }

  .hero-text .hero-catch {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.35;
  }

  .hero-text .hero-sub {
    font-size: 18px;
    margin-top: 14px;
  }

  .hero-name {
    margin-top: 20px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    margin: 0 auto;
    max-width: 360px;
    width: 100%;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 64px;
  }

  .site-header {
    gap: 7px;
    padding: 7px 58px 7px 10px;
  }

  .brand .brand-small {
    font-size: 11px;
  }

  .brand .brand-name {
    font-size: 20px;
  }

  .nav-toggle {
    top: 12px;
    right: 10px;
    height: 44px;
    width: 44px;
  }

  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    left: 7px;
    width: 26px;
  }

  .nav-toggle span {
    top: 19px;
  }

  .sns-links .social-icon {
    --social-size: 44px;
  }

  .section {
    padding-inline: 22px;
  }

  .hero-photo {
    max-width: 290px;
  }

  .message-poem {
    font-size: 18px;
    line-height: 2;
    padding: 24px 16px;
  }

  .news-actions {
    grid-template-columns: 1fr;
    margin-inline: auto;
    max-width: 340px;
  }

  .btn {
    max-width: 100%;
    padding-inline: 24px;
  }
}

@media (max-width: 460px) {
  :root {
    --header-h: 112px;
  }

  .site-header {
    align-items: center;
    min-height: var(--header-h);
    padding: 7px 56px 50px 12px;
  }

  .sns-links {
    position: absolute;
    right: 12px;
    bottom: 8px;
    left: 12px;
    justify-content: center;
    margin: 0;
  }
}

@media (max-width: 360px) {
  .site-header {
    padding-right: 54px;
  }

  .sns-links .social-icon {
    --social-size: 44px;
  }

  .brand .brand-small {
    display: none;
  }

  .brand {
    line-height: 1.2;
  }

  .brand .brand-name {
    font-size: 18px;
  }

  .nav-toggle {
    right: 8px;
    top: 13px;
    height: 44px;
    width: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
