/* Shared design tokens and layout for Mindbuddy LP pages */
:root {
  --color-primary: #00744b;
  --color-accent: #2fa57b;
  --color-text: #2a3029;
  --color-border: #dedede;
  --color-card-border: #eee;
  --color-footer-bg: #676d7a;
  --color-white: #ffffff;
  --shadow-card: 0 8px 8px rgba(0, 0, 0, 0.06);
  --font-sans: "M PLUS 1p", sans-serif;
  --font-dm: "DM Sans", sans-serif;
  --page-max: 1440px;
  --content-width: 1240px;
  --gutter-x: 100px;
  --radius-card: 24px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

body.lp-sub {
  font-family: var(--font-sans);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 50px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  color: var(--color-primary);
  background: var(--color-white);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-pill:hover {
  filter: brightness(0.95);
}

.btn-pill--light {
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 500;
  font-size: 18px;
  width: 160px;
}

/* Layout */
.main {
  padding: 0 var(--gutter-x) 120px;
}

body.lp-sub .main {
  padding-bottom: 120px;
}

body.lp-sub .site-footer {
  margin-top: 0;
}

body.lp-sub .main .section-stack {
  padding-top: 36px;
}

.section-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-top: 32px;
}

.page-title {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
}

.section-title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-primary);
}

.text-block p {
  margin: 0 0 1em;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.text-block p:last-child {
  margin-bottom: 0;
}

.lead-paragraph {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  border: none;
  margin: 0;
}

/* Cards (base) */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.card--p32 {
  padding: 32px;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: 16px;
}

.card__header p {
  margin: 0;
}

.card__body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* Two columns (base) */
.row-2 {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.row-2__text {
  flex: 1 1 0;
  min-width: 0;
}

.row-2__aside {
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  :root {
    --gutter-x: 40px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter-x: 24px;
  }

  .main {
    padding-left: 24px;
    padding-right: 24px;
  }

  .section-stack {
    gap: 32px;
    padding-top: 0;
  }

  body.lp-sub .main .section-stack {
    padding-top: 32px;
  }

  body.lp-sub .main {
    padding-bottom: 80px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .card,
  .card--p32 {
    padding: 16px;
  }
}

/* Typography — .main の和文テキストのみ
 * letter-spacing: テーマ側の字間指定（0.05em 等）を打ち消す → 変化が目に見えやすい
 * palt: フォント組み込みの約物詰め → 句読点・括弧まわりの微調整 */
body.lp-sub .main :where(
  :not(svg):not(svg *):is(
    h1, h2, h3, h4, h5, h6,
    p, li, span, a, dt, dd, th, td,
    figcaption, label, small, strong, em
  )
) {
  letter-spacing: normal;
  font-feature-settings: "palt" 1;
  -webkit-font-feature-settings: "palt" 1;
}
