/* BeadX site — design tokens are the Journal v2 system (paper × ink) */

:root {
  --paper: #F7F7F4;
  --white: #FFFFFF;
  --ink: #07080A;
  --text: #111111;
  --charcoal: #252B30;
  --steel: #9EA8AE;
  --mist: #E6ECEF;
  --blue: #63C7DF;
  --salmon: #F28482;
  --quiz-accent: #E8742C;
  --quiz-accent-dark: #C25D1A;
  --label-font: 'Helvetica Neue', 'Inter', sans-serif;
  --maxw: 1120px;
  --maxw-article: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--text);
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Sans', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-article { max-width: var(--maxw-article); margin: 0 auto; padding: 0 24px; }

/* ---------- micro label（Journal の .section-label と同系） ---------- */
.microlabel {
  font-family: var(--label-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 247, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mist);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-logo img { height: 34px; }
.topbar-nav { display: flex; align-items: center; gap: 24px; }
.topbar-nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.topbar-nav a:hover { border-bottom-color: var(--ink); }
.topbar-nav a.nav-quiz {
  font-weight: 700;
  color: var(--quiz-accent-dark);
}
.topbar-nav a.nav-quiz:hover { border-bottom-color: var(--quiz-accent-dark); }

/* ---------- hero ---------- */
.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--mist);
  background: var(--paper);
}
.hero h1 {
  margin: 16px 0 28px;
  font-size: clamp(40px, 7.2vw, 84px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hero .hero-sub {
  margin: 0 0 40px;
  font-size: 17px;
  font-weight: 500;
  line-height: 2.0;
  color: var(--charcoal);
  max-width: 560px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  border: 2px solid var(--ink);
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.82; }
.btn-primary { background: var(--quiz-accent); border-color: var(--quiz-accent); color: #fff; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline-white { background: transparent; border-color: #fff; color: #fff; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.section-head h2 {
  margin: 6px 0 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.section-head .more {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.section-head .more:hover { opacity: 0.7; }

/* ---------- featured card（最新号） ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--white);
  border: 1px solid var(--mist);
  text-decoration: none;
  overflow: hidden;
}
.featured:hover .card-img img { transform: scale(1.03); }
.featured .card-img { overflow: hidden; }
.featured .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform 0.3s ease;
}
.featured .featured-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured .featured-title {
  margin: 14px 0 16px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.featured:hover .featured-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.featured .featured-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--charcoal);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured .read-hint {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- journal card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 28px;
}
.jcard {
  background: var(--white);
  border: 1px solid var(--mist);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.jcard .card-img { overflow: hidden; }
.jcard .card-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.jcard:hover .card-img img { transform: scale(1.03); }
.jcard-body { padding: 22px 24px 26px; }
.jcard-title {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}
.jcard:hover .jcard-title { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- journal 一覧ページ（大きい横型リスト） ---------- */
.jlist { display: flex; flex-direction: column; gap: 28px; margin-top: 36px; }
.jrow {
  display: grid;
  grid-template-columns: 340px 1fr;
  background: var(--white);
  border: 1px solid var(--mist);
  text-decoration: none;
  overflow: hidden;
}
.jrow .card-img { overflow: hidden; }
.jrow .card-img img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.jrow:hover .card-img img { transform: scale(1.03); }
.jrow-body { padding: 26px 30px; display: flex; flex-direction: column; justify-content: center; }
.jrow-title { margin: 12px 0 10px; font-size: 21px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.jrow:hover .jrow-title { text-decoration: underline; text-underline-offset: 4px; }
.jrow-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--charcoal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 編集部ストリップ ---------- */
.cast { background: var(--white); border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); }
.cast-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.cast h2 { margin: 8px 0 18px; font-size: 26px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.cast p { margin: 0 0 14px; font-size: 15px; line-height: 2.0; color: var(--charcoal); }
.cast .cast-note { font-size: 12px; color: var(--steel); }
.cast img { border: 1px solid var(--mist); }

/* ---------- quiz band ---------- */
.quizband { background: var(--ink); color: #fff; }
.quizband-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}
.quizband .microlabel { color: var(--steel); }
.quizband h2 {
  margin: 16px 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.quizband p { margin: 0 0 36px; font-size: 15px; line-height: 1.9; color: var(--mist); }

/* ---------- article（about / legal） ---------- */
.article-page { padding: 72px 0 96px; }
.article-page h1 {
  margin: 12px 0 40px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.article-page h2 {
  margin: 48px 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.article-page p, .article-page li { font-size: 15px; line-height: 2.0; color: var(--text); }
.article-page p { margin: 0 0 18px; }
.article-page ol, .article-page ul { padding-left: 24px; margin: 0 0 18px; }
.article-page li { margin-bottom: 8px; }
.article-page .box {
  background: var(--white);
  border-left: 3px solid var(--ink);
  padding: 22px 26px;
  margin: 28px 0;
}
.article-page .box p { margin: 0 0 10px; }
.article-page .box p:last-child { margin-bottom: 0; }
.article-page .datemeta { font-size: 13px; color: var(--steel); margin-top: 48px; }
.article-page img { border: 1px solid var(--mist); margin: 8px 0 18px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #fff; margin-top: 0; }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid #2A3238;
}
.footer-brand img { height: 40px; margin-bottom: 18px; }
.footer-brand p { margin: 0; font-size: 14px; font-weight: 700; color: var(--mist); }
.footer h3 {
  margin: 0 0 16px;
  font-family: var(--label-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--mist); text-decoration: none; font-size: 14px; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer .copyright {
  padding-top: 28px;
  font-size: 12px;
  color: var(--steel);
  font-family: var(--label-font);
  letter-spacing: 0.04em;
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 120px 24px 140px; }
.notfound h1 { font-size: 64px; font-weight: 900; margin: 0 0 12px; color: var(--ink); }
.notfound p { color: var(--charcoal); margin: 0 0 36px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 56px 0 48px; }
  .featured { grid-template-columns: 1fr; }
  .featured .featured-body { padding: 26px 24px 30px; }
  .card-grid { grid-template-columns: 1fr; gap: 20px; }
  .jrow { grid-template-columns: 1fr; }
  .jrow .card-img img { min-height: 0; aspect-ratio: 16 / 9; }
  .cast-inner { grid-template-columns: 1fr; gap: 28px; padding: 56px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar-nav { gap: 16px; }
  .topbar-nav a { font-size: 13px; }
  .topbar-logo img { height: 28px; }
}
@media (max-width: 480px) {
  .topbar-nav a.nav-about { display: none; }
  .hero .hero-sub { font-size: 15px; }
  .hero .hero-sub br { display: none; }
  .btn { padding: 14px 20px; font-size: 14px; }
}
