/* ===== 色と基本設定（ここを変えると全体が変わります） ===== */
:root {
  --accent: #e5007f;   /* アクセントカラー */
  --text: #1a1a1a;     /* 文字の色 */
  --sub: #666666;      /* 補足の文字色 */
  --line: #dddddd;     /* 線の色 */
  --bg: #ffffff;       /* 背景色 */
  --gray: #f2f2f2;     /* 薄い灰色 */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  word-break: auto-phrase;
}

a { color: inherit; }

/* ===== ヘッダー ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 3px solid var(--accent);
  padding: 12px 16px;
}
.logo {
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: 0.1em;
}

/* ===== メインビジュアル ===== */
.hero {
  display: block;
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}
.hero-photo {
  width: 100%;
  aspect-ratio: 16 / 9;    /* 写真がない間の灰色枠の形 */
  background: var(--gray);
  margin-bottom: 24px;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.kana {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--sub);
}
.hero h1 {
  margin: 0 0 12px;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: 0.08em;
}
.title {
  margin: 0;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  font-size: 15px;
  font-weight: 700;
}
.title + .title { margin-top: 6px; }

/* ===== 宮沢賢治の言葉 ===== */
.quote {
  background: var(--accent);
  color: #fff;
  padding: 56px 20px;
  text-align: center;
}
.quote blockquote {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.9;
}
.quote-by {
  margin: 16px 0 0;
  font-size: 14px;
}

/* ===== 共通セクション（線は見出し上のピンクの帯だけ） ===== */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 16px;
}
.section h2 {
  margin: 0 0 24px;
  font-size: 24px;
  line-height: 1.4;
}
.section h2::before {
  content: "";
  display: block;
  width: 48px;
  height: 6px;
  margin-bottom: 14px;
  background: var(--accent);
}
.note { font-size: 13px; color: var(--sub); }
.more { font-size: 14px; color: var(--sub); }

/* ===== プロフィールの名前 ===== */
.profile-name {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}
.profile-name span {
  font-size: 14px;
  font-weight: 400;
  color: var(--sub);
  margin-left: 0.5em;
}

/* ===== プロフィールの肩書き・経歴 ===== */
.roles {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.roles li {
  padding: 2px 12px;
  border: 2px solid var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}
.career {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.career li {
  display: grid;
  grid-template-columns: 4.5em minmax(0, 1fr);
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.career b { color: var(--accent); }
.current {
  margin: 0;
  padding: 16px;
  background: var(--gray);
  font-size: 14px;
  line-height: 1.8;
}

/* ===== プロフィール・問い合わせ ===== */
.profile {
  margin: 0;
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 12px 8px;
}
.profile dt { font-weight: 700; color: var(--accent); }
.profile dd { margin: 0; }

/* ===== 基本政策 ===== */
.policies {
  display: grid;
  gap: 12px;               /* 帯と帯の間隔 */
}
.policy {
  background: var(--gray);
  border-left: 6px solid var(--accent);
  padding: 20px;
}
.policy h3 { margin: 0 0 6px; font-size: 24px; line-height: 1.4; }
.policy-lead {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
  text-wrap: balance;      /* 行の長さをそろえる */
}

/* 「詳しく見る」の折りたたみ部分 */
.policy details { margin-top: 12px; border-top: 1px solid var(--line); }
.policy summary {
  padding: 12px 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  list-style: none;        /* 標準の三角マークを消す */
}
.policy summary::-webkit-details-marker { display: none; }
.policy summary::after { content: "＋"; margin-left: 0.5em; }
.policy details[open] summary::after { content: "－"; }
.policy details ul { list-style: none; margin: 8px 0 0; padding: 0; }
.policy details li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.8;
}
.policy details li:last-child { margin-bottom: 0; }
.policy details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

/* ===== お知らせ・活動報告の一覧 ===== */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.list time { font-size: 14px; color: var(--sub); }
.tag {
  font-size: 12px;
  color: #fff;
  background: var(--accent);
  padding: 0 8px;
}
.list a { flex-basis: 100%; text-decoration: none; font-weight: 700; }
.list a:hover { color: var(--accent); }

/* ===== 国会質問・フォトギャラリー（目立つリンク） ===== */
.pickups {
  display: grid;
  gap: 16px;
  padding: 0 6px 6px 0;    /* 影がはみ出さない分の余白 */
}
.pickup {
  position: relative;
  display: block;
  padding: 28px 64px 28px 24px;
  background: #fff0f7;                 /* ごく薄いピンク */
  color: var(--text);
  text-decoration: none;
  border: 3px solid var(--accent);
  box-shadow: 6px 6px 0 var(--accent); /* ずらした影で、押せる感じに */
  transition: transform 0.15s, box-shadow 0.15s;
}
.pickup-en {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.pickup-title {
  display: block;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
}
.pickup-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}
/* タップ・マウスを乗せたとき：影の分だけ沈み、ピンクに反転 */
.pickup:hover,
.pickup:active {
  transform: translate(6px, 6px);
  box-shadow: 0 0 0 var(--accent);
  background: var(--accent);
  color: #fff;
}
.pickup:hover .pickup-en,
.pickup:active .pickup-en { color: #fff; }
.pickup:hover .pickup-arrow,
.pickup:active .pickup-arrow { background: #fff; color: var(--accent); }

/* ===== SNS ===== */
.sns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.sns a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 14px 12px;
  border: 2px solid var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
}
.sns a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== フォトギャラリー ===== */
.gallery {
  columns: 2;              /* 横に並べる数（スマホ） */
  column-gap: 12px;
}
.photo {
  margin: 0 0 24px;
  break-inside: avoid;     /* 写真と文章が別の列に分かれないように */
}
.photo img {
  display: block;
  width: 100%;
  height: auto;            /* 縦横比はそのまま */
  min-height: 120px;       /* 写真がない間も灰色の枠が見える */
  background: var(--gray);
}
.photo figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--sub);
}

/* ===== 国会質問の一覧 ===== */
.questions {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.questions li { border-bottom: 1px solid var(--line); }
.questions a {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 18px 40px 18px 0;
  text-decoration: none;
}
.questions a::after {
  content: "→";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}
.questions time {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}
.questions .q-place {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}
.questions a:hover .q-place { color: var(--accent); }

/* ===== フッター ===== */
.footer {
  background: var(--text);
  color: #fff;
  text-align: center;
  padding: 24px 16px;
  font-size: 13px;
}
.footer p { margin: 0; }

/* ===== パソコン用（画面幅が800px以上） ===== */
@media (min-width: 800px) {
  .header { padding: 14px 32px; }
  .hero { padding: 56px 32px; }
  .hero h1 { font-size: 72px; }
  .quote { padding: 80px 20px; }
  .quote blockquote { font-size: 32px; }
  .section { padding: 72px 32px; }
  .sns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .list a { flex-basis: auto; }
  .pickups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
