/* =========================================
   いいことラボ TOP - 自己完結型 style.css
   診断ページと同じデザイン言語（カード・ピル・温かい色）
   ========================================= */

/* ---------- Variables ---------- */
:root {
  --color-primary: #FF8A3D;
  --color-primary-dark: #F26F1F;
  --color-accent: #4FB3A9;
  --color-bg: #FFFBF5;
  --color-card: #FFFFFF;
  --color-text: #3A3A3A;
  --color-text-sub: #7A7A7A;
  --color-line: #EFE6D9;
  --color-line-strong: #E2D6C2;

  --shadow-card: 0 6px 20px rgba(196, 132, 60, 0.12);
  --shadow-cta: 0 8px 18px rgba(255, 138, 61, 0.35);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --max-w: 480px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

body {
  font-family: 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* ---------- Layout ---------- */
#page {
  width: 100%;
  display: flex;
  justify-content: center;
}
.page {
  width: 100%;
  max-width: var(--max-w);
  padding: 36px 20px 32px;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  margin-bottom: 44px;
}
.hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--color-primary-dark);
  margin: 0 0 10px;
}
.hero__title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: 0.04em;
}
.hero__title::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
  margin: 0 auto 14px;
}
.hero__lead {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.55;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}
.hero__desc {
  font-size: 13.5px;
  color: var(--color-text-sub);
  line-height: 1.95;
  margin: 0 0 22px;
}
.hero__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.hero__chips li {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  padding: 6px 12px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* ---------- Section title ---------- */
.section-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 16px;
  text-align: center;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.section-title__mark {
  display: inline-block;
  font-size: 10px;
  color: var(--color-primary);
  transform: translateY(1px);
}

.block {
  margin-bottom: 44px;
}
.block__note {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-sub);
  margin: 22px 0 0;
  line-height: 1.75;
}

/* ---------- About card ---------- */
.about-card {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px 22px 22px;
}
.about-card__catch {
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary-dark);
  background: #FFF3E8;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin: 0 0 18px;
  line-height: 1.55;
}
.about-card__points {
  margin: 0 0 16px;
  padding: 14px 0 4px;
  border-top: 1px dashed var(--color-line-strong);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-card__row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  margin: 0;
}
.about-card__row dt {
  font-weight: 700;
  color: var(--color-text-sub);
  font-size: 12px;
  background: var(--color-bg);
  border-radius: 999px;
  padding: 4px 10px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.05em;
}
.about-card__row dd {
  margin: 0;
  font-weight: 500;
  line-height: 1.65;
  font-size: 13.5px;
}
.about-card__note {
  font-size: 12px;
  color: var(--color-text-sub);
  line-height: 1.75;
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed var(--color-line-strong);
}

/* ---------- Content card ---------- */
.content-card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(196, 132, 60, 0.18);
}
.content-card__img {
  background: var(--color-bg);
}
.content-card__img img {
  width: 100%;
  height: auto;
  display: block;
}
.content-card__body {
  padding: 18px 20px 20px;
}
.content-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  padding: 3px 10px;
  border-radius: 999px;
  margin: 0 0 8px;
  letter-spacing: 0.05em;
}
.content-card__title {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.content-card__desc {
  font-size: 13.5px;
  color: var(--color-text);
  margin: 0 0 12px;
  line-height: 1.75;
}
.content-card__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.content-card__meta li {
  font-size: 11.5px;
  color: var(--color-text-sub);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* ---------- Footer (最小) ---------- */
.page__footer {
  text-align: center;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px dashed var(--color-line-strong);
}
.page__copyright {
  font-size: 11px;
  color: var(--color-text-sub);
  margin: 0;
  letter-spacing: 0.05em;
}

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .page { padding: 48px 28px 40px; }
  .hero__title { font-size: 36px; }
  .hero__lead { font-size: 20px; }
  .hero__desc { font-size: 14.5px; }
  .about-card { padding: 28px 26px 24px; }
  .content-card__title { font-size: 21px; }
}

@media (min-width: 900px) {
  body { background: #FAF3E7; }
  .page {
    background: var(--color-bg);
    border-radius: 24px;
    margin: 24px auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  }
}

@media (max-width: 360px) {
  .hero__title { font-size: 28px; }
  .hero__lead { font-size: 16px; }
  .about-card__row { grid-template-columns: 70px 1fr; }
}
