:root {
  --navy1: #1a237e;
  --navy2: #0d47a1;
  --bg: #f5f5f7;
  --ink: #263238;
  --muted: #6b7280;
  --card: #ffffff;
  --border: #e3e6ea;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== ヘッダ（バイオ調ヒーロー） ===== */
.hero {
  position: relative;
  color: #fff;
  /* グラデ + ヒーロー画像（assets/hero.jpg があれば重なる。無くてもグラデが表示される） */
  background:
    linear-gradient(105deg, rgba(26,35,126,0.94) 0%, rgba(13,71,161,0.82) 46%, rgba(13,71,161,0.55) 100%),
    #12194f url("hero.jpg") center right / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  /* 画像が無い場合でも右側にバイオ調モチーフを添える装飾レイヤー */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("hero-motif.svg");
  background-repeat: no-repeat;
  background-position: right -20px top -20px;
  background-size: auto 150%;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 28px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__logo { width: 46px; height: 46px; flex: none; }
.brand__title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: .5px; }
.brand__sub { margin: 4px 0 0; font-size: 13px; opacity: .9; font-weight: 400; }
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.55);
  color: #fff;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 13px;
  backdrop-filter: blur(2px);
  transition: background .15s ease;
}
.hero__cta:hover { background: rgba(255,255,255,0.26); }
.hero__cta small { display: block; font-size: 11px; opacity: .85; }

/* ===== フィルタチップ ===== */
.filters {
  max-width: 1180px;
  margin: 20px auto 6px;
  padding: 0 28px;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.chip {
  font-size: 13px;
  padding: 7px 15px;
  border-radius: 18px;
  border: 1px solid currentColor;
  background: #fff;
  cursor: pointer;
  transition: all .12s ease;
  white-space: nowrap;
}
.chip[aria-pressed="true"] { color: #fff !important; border-color: transparent; }

/* ===== レーン ===== */
main { max-width: 1180px; margin: 0 auto; padding: 8px 28px 40px; }
.lane { margin: 22px 0; }
.lane__head { display: flex; align-items: center; gap: 9px; margin: 0 2px 12px; }
.lane__bar { width: 4px; height: 18px; border-radius: 2px; flex: none; }
.lane__label { font-size: 16px; font-weight: 700; }
.lane__count { font-size: 12px; color: var(--muted); }
.lane__row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.lane__row::-webkit-scrollbar { height: 8px; }
.lane__row::-webkit-scrollbar-thumb { background: #cfd3d8; border-radius: 4px; }

/* ===== カード ===== */
.card {
  scroll-snap-align: start;
  flex: none;
  width: 264px;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy2);
  border-radius: 12px;
  padding: 14px 16px 13px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 6px 18px rgba(20,30,80,.12); transform: translateY(-2px); }
.card__meta { font-size: 11.5px; color: var(--muted); }
.card__headline { font-size: 14px; font-weight: 700; margin: 5px 0 8px; line-height: 1.45; }
.card__hl { margin: 0; padding-left: 16px; font-size: 12px; color: #4b5563; line-height: 1.55; }
.card__hl li { margin-bottom: 4px; }
.card__hl li strong { font-weight: 700; color: var(--ink); }
.card__more { margin-top: auto; padding-top: 10px; font-size: 12.5px; font-weight: 700; }

/* 空レーンのプレースホルダー */
.lane__empty {
  border: 1px dashed #cbd2da;
  border-radius: 10px;
  padding: 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  background: #fff;
}

/* ===== フッタ ===== */
.foot {
  background: #12194f;
  color: #c7cce8;
  font-size: 12px;
}
.foot__inner { max-width: 1180px; margin: 0 auto; padding: 20px 28px; }
.foot a { color: #fff; text-decoration: underline; }

@media (max-width: 640px) {
  .brand__title { font-size: 20px; }
  .hero__inner { padding: 24px 18px 26px; }
  .filters, main, .foot__inner { padding-left: 18px; padding-right: 18px; }
  .card { width: 230px; }
}
