/* 山本やすひろ公式サイト 共通スタイル */
:root {
  --orange: #e8590c;
  --orange-dark: #c2410c;
  --ink: #1f2328;
  --muted: #59636e;
  --bg: #ffffff;
  --bg-soft: #fff7ed;
  --line: #e5e7eb;
  --radius: 14px;
  --header-h: 56px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: #fff; padding: 6px 12px; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { font-weight: 800; text-decoration: none; font-size: 1.05rem; line-height: 1.2; }
.logo small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); }
.nav { display: flex; gap: 20px; font-size: .9rem; align-items: center; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange-dark); }
.nav .cta { background: var(--orange); color: #fff; padding: 6px 14px; border-radius: 999px; }
.nav .cta:hover, .nav .cta[aria-current="page"] { background: var(--orange-dark); color: #fff; }
.menu-btn { display: none; background: none; border: 0; font-size: 1.6rem; line-height: 1; padding: 4px 8px; cursor: pointer; color: var(--ink); }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .nav .cta { margin: 12px 16px; text-align: center; }
}

/* ヒーロー */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #333; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 85% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.72) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 48px; width: 100%; }
.hero .role { display: inline-block; background: var(--orange); padding: 2px 12px; border-radius: 4px; font-size: .85rem; font-weight: 700; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); margin: 10px 0 6px; line-height: 1.2; }
.hero p { font-size: clamp(1rem, 2.6vw, 1.35rem); margin: 0; max-width: 36em; font-weight: 600; }

/* 下層ページの見出し帯 */
.page-head { background: var(--bg-soft); padding: 40px 0 32px; text-align: center; }
.page-head h1 { margin: 0; font-size: clamp(1.5rem, 5vw, 2rem); }
.page-head p { margin: 8px 0 0; color: var(--muted); }

/* セクション共通 */
section { padding: 64px 0; }
.sec-title { text-align: center; margin: 0 0 32px; font-size: clamp(1.25rem, 5vw, 1.6rem); }
.sec-title::after { content: ""; display: block; width: 48px; height: 4px; background: var(--orange); margin: 10px auto 0; border-radius: 2px; }
.soft { background: var(--bg-soft); }
.more { text-align: center; margin-top: 28px; }
.muted { color: var(--muted); }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 1rem; font-family: inherit;
  border: 2px solid var(--orange); color: var(--orange-dark); background: #fff;
  padding: 10px 28px; border-radius: 999px; cursor: pointer;
}
.btn:hover { background: var(--orange); color: #fff; }
.btn.solid { background: var(--orange); color: #fff; }
.btn.solid:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* カード（重点政策） */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.card img { aspect-ratio: 16/10; width: 100%; object-fit: cover; }
.card .body { padding: 16px 18px 20px; }
.card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.card .num { color: var(--orange); font-weight: 800; margin-right: 6px; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* YouTube（クリックで読み込み） */
.yt {
  position: relative; display: block; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  background: #000; cursor: pointer; border: 0; padding: 0; width: 100%;
}
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 72px; height: 50px; background: #f00; border-radius: 12px;
}
.yt .play::after { content: ""; position: absolute; left: 29px; top: 14px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 議会報告 */
.video-grid { display: grid; gap: 24px; grid-template-columns: 1.4fr 1fr; align-items: start; }
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } }
.q-list h3 { margin: 0 0 4px; font-size: 1.1rem; }
.date { color: var(--orange-dark); font-weight: 700; font-size: .9rem; }
.q-list ol, .q-list ul { padding-left: 1.3em; margin: 10px 0 0; }
.past { list-style: none; padding: 0 !important; margin: 20px 0 0; border-top: 1px solid var(--line); }
.past li { border-bottom: 1px solid var(--line); }
.past a { display: flex; justify-content: space-between; padding: 10px 2px; text-decoration: none; }
.past a:hover { color: var(--orange-dark); }
.session { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; padding: 32px 0; border-bottom: 1px solid var(--line); }
.session:last-child { border-bottom: 0; }
@media (max-width: 760px) { .session { grid-template-columns: 1fr; } }
.session h2 { margin: 0 0 4px; font-size: 1.25rem; }
.session .videos { display: grid; gap: 12px; }
.session .links { margin-top: 12px; font-size: .92rem; }
.note-box { background: var(--bg-soft); border-left: 4px solid var(--orange); padding: 12px 16px; border-radius: 6px; margin: 12px 0; }

/* 活動記録 */
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
.photo { position: relative; margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: #ddd; }
.photo a, .photo button { display: block; width: 100%; height: 100%; border: 0; padding: 0; cursor: zoom-in; background: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo:hover img { transform: scale(1.05); }
.photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 8px 6px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  color: #fff; font-size: .78rem; line-height: 1.4; pointer-events: none;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.photo figcaption b { display: block; font-size: .72rem; opacity: .85; }
.photo .count { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; padding: 1px 6px; border-radius: 999px; }
.year-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 24px; }
.year-tabs button {
  font-family: inherit; font-size: .95rem; border: 2px solid var(--orange); background: #fff; color: var(--orange-dark);
  padding: 4px 18px; border-radius: 999px; cursor: pointer; font-weight: 700;
}
.year-tabs button[aria-pressed="true"] { background: var(--orange); color: #fff; }
.text-only { aspect-ratio: auto; background: #fff; border: 1px solid var(--line); padding: 10px; }
.text-only figcaption { position: static; background: none; color: var(--ink); padding: 0; }

/* 写真の拡大表示 */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox img { max-width: 96vw; max-height: 80vh; margin: 0 auto; border-radius: 6px; }
.lightbox p { color: #fff; text-align: center; margin: 10px 0 0; }
.lightbox .lb-nav { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.lightbox .lb-nav button { font-family: inherit; background: #fff; border: 0; border-radius: 999px; padding: 6px 16px; cursor: pointer; }

/* プロフィール */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--orange); }
.timeline li { padding: 4px 0 14px 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 12px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); }
.prose h2 { font-size: 1.3rem; margin: 40px 0 12px; padding-left: 10px; border-left: 5px solid var(--orange); }
.prose p { margin: 0 0 14px; }

/* 応援・お問い合わせの入口 */
.join { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); text-align: center; }
.join .box { background: #fff; border-radius: var(--radius); padding: 28px 20px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.join h3 { margin: 0 0 8px; }
.join p { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }

/* フォーム */
.form { display: grid; gap: 18px; }
.form label { font-weight: 700; display: block; margin-bottom: 4px; }
.form .req { color: #fff; background: var(--orange-dark); font-size: .7rem; padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea, .form select {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #c9ced4; border-radius: 8px; background: #fff;
}
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid rgba(232,89,12,.3); border-color: var(--orange); }
.form .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 12px 16px; border-radius: 8px; }
.form-msg.ok { background: #ecfdf3; border: 1px solid #12b76a; }
.form-msg.ng { background: #fef3f2; border: 1px solid #f04438; }
[hidden] { display: none !important; }

/* フッター */
footer { background: #1f2328; color: #d0d7de; padding: 32px 0; font-size: .85rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: #d0d7de; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
