/* ============================================
   国会マニア — Brand Style
   Brand Blue: #091B33  |  Accent: #FFFFFF
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: #333; background: #f8f9fa; line-height: 1.7;
  overflow-x: hidden;
}
a { color: #091B33; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .7; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---------- Utility ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-label {
  font-size: .75rem; letter-spacing: .15em; color: rgba(255,255,255,.5);
  text-transform: uppercase; margin-bottom: 8px;
}
.section-label--dark { color: rgba(9,27,51,.4); }
.badge-wip {
  display: inline-block; background: #ccc; color: #fff; font-size: .7rem;
  padding: 2px 10px; border-radius: 12px; vertical-align: middle; margin-left: 8px;
}

/* ---------- Fade-in on scroll ---------- */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 14px 0;
  background: transparent;
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(9,27,51,.95);
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
}
.site-header__logo {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; font-size: 1.1rem;
}
.site-header__logo img { width: 36px; height: 36px; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { color: rgba(255,255,255,.8); font-size: .85rem; font-weight: 500; }
.site-nav a:hover { color: #fff; opacity: 1; }

/* Hamburger (mobile) */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; transition: .3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  background: #091B33; color: #fff; text-align: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #091B33 0%, #0d2a4a 50%, #091B33 100%);
  z-index: 0;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(255,255,255,.03) 0%, transparent 60%),
              radial-gradient(circle at 70% 30%, rgba(255,255,255,.05) 0%, transparent 50%);
}
.hero__content { position: relative; z-index: 1; }
.hero__logo { width: 120px; height: 120px; margin: 0 auto 24px; opacity: .9; }
.hero__title { font-size: 2.8rem; font-weight: 800; letter-spacing: .05em; margin-bottom: 12px; }
.hero__subtitle { font-size: 1rem; color: rgba(255,255,255,.6); margin-bottom: 40px; }
.hero__scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  font-size: .7rem; letter-spacing: .2em; color: rgba(255,255,255,.4);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll::after {
  content: ""; display: block; width: 1px; height: 40px;
  background: rgba(255,255,255,.3);
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   PARLIAMENT SECTION
   ============================================ */
.section-parliament {
  padding: 100px 0; background: #fff; text-align: center; position: relative;
}
.section-parliament h2 {
  font-size: 1.8rem; font-weight: 700; color: #091B33; margin-bottom: 40px;
}
.parliament-chart-wrapper {
  max-width: 600px; margin: 0 auto 30px; position: relative;
}
.parliament-chart-wrapper svg { width: 100%; height: auto; }
.parliament-tooltip {
  position: absolute; background: rgba(9,27,51,.9); color: #fff;
  padding: 6px 14px; border-radius: 6px; font-size: .8rem;
  pointer-events: none; opacity: 0; transition: opacity .2s;
  white-space: nowrap; z-index: 10;
}
.parliament-legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  max-width: 700px; margin: 0 auto;
}
.parliament-legend__item {
  display: flex; align-items: center; gap: 6px; font-size: .8rem; color: #555;
}
.parliament-legend__color {
  width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0;
}

/* ============================================
   ENTRANCE SECTION
   ============================================ */
.section-entrance {
  padding: 80px 0; background: #091B33; color: #fff; text-align: center;
}
.section-entrance h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 50px; }
.entrance-cards {
  display: flex; gap: 30px; justify-content: center; flex-wrap: wrap;
}
.entrance-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 40px 30px; width: 300px;
  transition: transform .3s, box-shadow .3s;
}
.entrance-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.entrance-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.entrance-card p { color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: 20px; }
.entrance-card .btn { display: inline-block; }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 28px; border-radius: 30px;
  font-size: .9rem; font-weight: 600; transition: .3s;
}
.btn--primary { background: #fff; color: #091B33; }
.btn--primary:hover { background: #e0e0e0; opacity: 1; }
.btn--outline { border: 1px solid rgba(255,255,255,.4); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.1); opacity: 1; }
.btn--brand { background: #091B33; color: #fff; }
.btn--brand:hover { background: #0d2a4a; opacity: 1; }

/* ============================================
   LATEST / NEWS SECTION
   ============================================ */
.section-latest {
  padding: 80px 0; background: #f8f9fa;
}
.section-latest h2 {
  font-size: 1.8rem; font-weight: 700; color: #091B33; margin-bottom: 40px; text-align: center;
}
.latest-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.latest-card {
  background: #fff; border-radius: 12px; padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.latest-card:hover {
  transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.latest-card__date { font-size: .75rem; color: #999; margin-bottom: 6px; }
.latest-card__title { font-size: 1rem; font-weight: 600; color: #091B33; margin-bottom: 8px; }
.latest-card__meta { font-size: .8rem; color: #666; }
.latest-card__tag {
  display: inline-block; background: #e8f0fe; color: #091B33;
  padding: 2px 10px; border-radius: 4px; font-size: .75rem; margin-top: 8px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.section-about {
  padding: 80px 0; background: #fff; text-align: center;
}
.section-about h2 { font-size: 1.8rem; font-weight: 700; color: #091B33; margin-bottom: 20px; }
.section-about p { max-width: 600px; margin: 0 auto; color: #666; font-size: .95rem; }
.about-links {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 40px;
}
.about-link-card {
  background: #f8f9fa; border-radius: 12px; padding: 30px 24px; width: 260px;
  transition: transform .2s;
}
.about-link-card:hover { transform: translateY(-4px); }
.about-link-card h4 { font-size: .9rem; color: #091B33; margin-bottom: 6px; }
.about-link-card p { font-size: .8rem; color: #999; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #091B33; color: rgba(255,255,255,.5); padding: 50px 0 30px;
}
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px;
  margin-bottom: 30px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700;
}
.footer-brand img { width: 32px; height: 32px; }
.footer-links h5 { color: rgba(255,255,255,.8); font-size: .85rem; margin-bottom: 10px; }
.footer-links a { display: block; color: rgba(255,255,255,.5); font-size: .8rem; margin-bottom: 6px; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: .75rem; text-align: center; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; }

/* ============================================
   SHUUIN — 衆議院ページ
   ============================================ */
.page-header {
  background: #091B33; color: #fff; padding: 120px 0 60px; text-align: center;
}
.page-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.page-header .breadcrumb { font-size: .8rem; color: rgba(255,255,255,.5); }
.page-header .breadcrumb a { color: rgba(255,255,255,.7); }

.committee-list { padding: 60px 0; }
.committee-item {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid #eee;
  transition: background .2s;
}
.committee-item:hover { background: #fafafa; }
.committee-icon { width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; }
.committee-info { flex: 1; min-width: 0; }
.committee-info h3 { font-size: 1.1rem; font-weight: 600; color: #091B33; margin-bottom: 4px; }
.committee-info p { font-size: .8rem; color: #888; }
.committee-bar { flex: 0 0 300px; height: 28px; }

/* ============================================
   COMMITTEE — 委員会ページ
   ============================================ */
.session-list { padding: 60px 0; }
.session-item {
  display: flex; align-items: center; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid #eee;
}
.session-item:hover { background: #fafafa; }
.session-date {
  flex: 0 0 120px; font-size: 1rem; font-weight: 600; color: #091B33;
}
.session-info { flex: 1; min-width: 0; }
.session-info p { font-size: .85rem; color: #666; }
.session-bar { flex: 0 0 300px; height: 28px; }

/* ============================================
   SESSION — 開催日（質疑パネル）ページ
   ============================================ */

/* --- Ranking Table (upper section) --- */
.ranking-section {
  padding: 40px 0 20px;
}
.ranking-table {
  width: 100%; border-collapse: collapse;
}
.ranking-table thead th {
  font-size: .85rem; color: #fff; font-weight: 600;
  padding: 10px 12px; background: #091B33; text-align: left;
}
.ranking-table thead th:first-child,
.ranking-table thead th:nth-child(2) { width: 48px; text-align: center; }
.ranking-table thead th:last-child { text-align: right; }
.ranking-row {
  border-bottom: 1px solid #f0f0f0;
  transition: background .2s;
}
.ranking-row:hover { background: #fafafa; }
.ranking-rank {
  text-align: center; font-size: 1.4rem; vertical-align: middle;
  padding: 12px 4px; width: 48px;
}
.ranking-icon {
  text-align: center; vertical-align: middle; padding: 12px 4px; width: 48px;
}
.ranking-avatar {
  width: 40px; height: 40px; display: block; margin: 0 auto;
}
.ranking-speaker {
  vertical-align: middle; padding: 12px;
}
.ranking-party {
  display: inline-block; font-size: .7rem; padding: 2px 8px;
  border-radius: 4px; color: #fff; margin-right: 8px; vertical-align: middle;
}
.ranking-name {
  font-size: 1rem; font-weight: 600; color: #091B33; vertical-align: middle;
}
.ranking-claim {
  vertical-align: middle; padding: 12px;
  font-size: .9rem; color: #444;
}
.ranking-likes {
  vertical-align: middle; padding: 12px; text-align: right;
  font-size: .95rem; font-weight: 600; color: #091B33; white-space: nowrap;
}

/* --- Clip Grid (lower section, uniform) --- */
.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px; padding: 40px 0 60px;
}
.clip-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.clip-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }

.clip-card__thumb {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #ddd;
}
.clip-card__thumb-wrap {
  position: relative; overflow: hidden;
}
.clip-card__thumb-wrap .clip-card__thumb {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #ddd;
  filter: grayscale(100%);
}
.clip-card__overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45); color: #fff;
  font-size: 1rem; font-weight: 600; letter-spacing: .05em;
}
.clip-card__body { padding: 16px; }
.clip-card__name { font-size: 1rem; font-weight: 600; color: #091B33; margin-bottom: 4px; }
.clip-card__party {
  display: inline-block; font-size: .75rem; padding: 2px 10px;
  border-radius: 4px; color: #fff; margin-bottom: 8px;
}
.clip-card__duration { font-size: .8rem; color: #888; margin-bottom: 4px; }
.clip-card__stats { font-size: .75rem; color: #999; margin-bottom: 12px; }

/* --- Preparing (no YouTube URL) --- */
.clip-card--preparing {
  opacity: .5; pointer-events: none;
}
.clip-card--preparing:hover { transform: none; box-shadow: 0 2px 8px rgba(0,0,0,.06); }

.clip-card__like {
  display: flex; align-items: center; gap: 8px;
}
.like-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 24px; border: 2px solid #091B33;
  background: transparent; color: #091B33; font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: .3s; user-select: none;
}
.like-btn:hover { background: #091B33; color: #fff; }
.like-btn.liked { background: #091B33; color: #fff; }
.like-btn svg { width: 18px; height: 18px; }
.like-count { font-size: .85rem; color: #888; }

/* ============================================
   FORCE BAR (いいね勢力棒グラフ)
   ============================================ */
.force-bar {
  display: flex; height: 100%; border-radius: 6px; overflow: hidden;
  background: #eee;
}
.force-bar__segment {
  height: 100%; transition: width .4s ease;
  position: relative;
}
.force-bar__segment:hover::after {
  content: attr(data-label); position: absolute; top: -28px; left: 50%;
  transform: translateX(-50%); background: rgba(9,27,51,.9); color: #fff;
  padding: 2px 8px; border-radius: 4px; font-size: .7rem; white-space: nowrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero__title { font-size: 1.8rem; }
  .hero__logo { width: 80px; height: 80px; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; width: 100%; background: rgba(9,27,51,.98);
    padding: 20px; gap: 16px;
  }
  .hamburger { display: flex; }
  .entrance-cards { flex-direction: column; align-items: center; }
  .committee-item { flex-wrap: wrap; }
  .committee-bar { flex: 1 1 100%; }
  .session-item { flex-wrap: wrap; }
  .session-bar { flex: 1 1 100%; }
  .clip-grid { grid-template-columns: 1fr; }
  .ranking-claim { display: none; }
  .ranking-table thead th:nth-child(4) { display: none; }
  .footer-inner { flex-direction: column; }
  .about-links { flex-direction: column; align-items: center; }
  .committee-icon { width: 48px; height: 48px; }
  .page-header { padding: 100px 0 40px; }
  .page-header h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  .hero { min-height: 500px; }
  .container { padding: 0 16px; }
  .latest-grid { grid-template-columns: 1fr; }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Segoe UI", "Meiryo", sans-serif; background: #f5f5f5; color: #333; }
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }
h1 { margin-bottom: 10px; }
h2 { margin: 20px 0 10px; border-bottom: 2px solid #1a73e8; padding-bottom: 4px; }
a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }
table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
th, td { padding: 8px 12px; border: 1px solid #ddd; text-align: left; }
th { background: #1a73e8; color: #fff; }
tr:nth-child(even) { background: #f9f9f9; }
.pipeline { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.pipeline-card { background: #fff; border-radius: 8px; padding: 14px 20px; box-shadow: 0 1px 3px rgba(0,0,0,.12); text-align: center; min-width: 100px; }
.pipeline-card .num { font-size: 2em; font-weight: bold; color: #1a73e8; }
.pipeline-card .label { color: #666; font-size: .85em; }
.pipeline-arrow { font-size: 1.5em; color: #999; }
.filter-bar { margin-bottom: 16px; }
.filter-bar input, .filter-bar select { padding: 6px 10px; border: 1px solid #ccc; border-radius: 4px; margin-right: 8px; }
.breadcrumb { margin-bottom: 12px; font-size: .9em; }
.tag { display: inline-block; background: #e8f0fe; color: #1a73e8; padding: 2px 8px; border-radius: 4px; font-size: .85em; margin: 2px; }
.video-placeholder { background: #eee; border: 2px dashed #ccc; border-radius: 8px; padding: 40px; text-align: center; color: #999; margin: 10px 0; }
.video-embed { margin: 10px 0; }
.video-embed iframe { max-width: 100%; border: none; border-radius: 8px; }
