/* LP — monochrome, no gradients, max-width 1024px, responsive */

/*
 * Spacing system — 4px base unit (all values are multiples of 4).
 * Use only --sp-* tokens for margin, padding, and gap so rhythm stays consistent.
 */
:root {
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --bg: #ffffff;
  --surface: #f5f5f5;
  --line: #d9d9d9;
  --inverse: #1a1a1a;
  --inverse-muted: #fff;
  --max: 1024px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 40px;
  --sp-8: 48px;
  --sp-9: 64px;
  --sp-10: 80px;

  /* Semantic spacing (aliases) */
  --space-gutter: var(--sp-6);
  --space-section-y: var(--sp-9);
  --space-block-y: var(--sp-8);
  --space-block-y-sm: var(--sp-7);
  --space-page-top: var(--sp-4);
  --space-container-x: clamp(16px, 4vw, 24px);
  --radius-sm: var(--sp-1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-wrap: break-word;
}

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

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

.text-center {
  text-align: center;
}

/* Site header — monochrome bar (title + CTA) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  min-height: 52px;
  min-width: 0;
}

.site-header__title {
  margin: 0;
  font-size: clamp(0.75rem, 2.8vw, 1.0625rem);
  font-weight: 700;
  color: #000;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.site-header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  flex-shrink: 0;
  padding: var(--sp-2) var(--sp-3);
  background: #000;
  color: #fff;
  font-size: clamp(0.6875rem, 2.4vw, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  max-width: 100%;
}

.site-header__btn:hover {
  opacity: 0.88;
}

.site-header__btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: var(--sp-1);
}

.site-header__btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .site-header__bar {
    flex-wrap: nowrap;
    align-items: stretch;
    gap: var(--sp-2);
    padding: var(--sp-2) 0;
    min-height: auto;
  }

  .site-header__title {
    flex: 1 1 auto;
    text-align: left;
    align-self: center;
    line-height: 1.3;
  }

  .site-header__btn {
    flex: 0 1 auto;
    min-width: 0;
    white-space: normal;
    text-align: center;
    padding: var(--sp-2) var(--sp-2);
    line-height: 1.25;
  }
}

.page {
  padding: var(--space-page-top) 0 0;
  background: var(--bg);
}

.container {
  box-sizing: border-box;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding-left: max(var(--space-container-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--space-container-x), env(safe-area-inset-right, 0px));
  min-width: 0;
}

/* Hero (MV) */
.lp-hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  padding: 0;
}

.lp-hero .topbg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

.black-band {
  width: 100%;
  max-width: 100%;
  margin: var(--sp-6) auto 0;
  color: #333;
  padding: var(--sp-4) var(--sp-4);
  font-size: clamp(0.9375rem, 3.2vw, 1.125rem);
  line-height: 1.75;
  font-weight: 600;
  border: 1px solid #333;
  box-sizing: border-box;
}

.section {
  padding-top: var(--space-section-y);
}

.story {
  max-width: 100%;
}

.story__leadline,
.section-title,
.feature__headline,
.program__item h3,
.recommend__item h3,
.speaker__text h3 {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  line-height: 1.25;
}




/* Lead block → body: use --sp-6 so display type isn’t cramped vs 12px; underline on .highlight needs air above the gray paragraph */
.story__leadline {
  margin: 0 0 var(--sp-6);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.story > p:first-of-type {
  margin-top: 0;
}

.story p.story__subhead {
  margin: var(--sp-5) 0 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  font-family: "Noto Sans JP", sans-serif;
}

.highlight {
  color: var(--text);
  font-weight: 700;
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.12em;
  background: none;
  display: inline;
}

.story p,
.story li,
.feature p,
.event-note,
.speaker__text p,
.recommend__label,
.program__item p,
.event__body,
.footer-note,
.cta__sub {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  color: var(--muted);
  font-weight: 600;
}

.story ul {
  margin: var(--sp-5) 0 var(--sp-6) 1.2em;
  padding: 0;
}

.story li {
  margin: var(--sp-2) 0;
}

.story p.story__emphasis {
  margin: var(--sp-7) 0 0;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.75;
  font-weight: 600;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
}

.story__closing {
  margin-top: var(--sp-6);
  max-width: 44em;
}

/* Anchor offset under sticky header */
#apply {
  scroll-margin-top: var(--sp-10);
}

/* CTA — solid fill, no gradient */
.cta {
  background: var(--inverse);
  color: #fff;
  text-align: center;
  padding: var(--sp-7) var(--sp-5);
  margin-top: var(--sp-7);
  border-radius: var(--radius-sm);
  box-shadow: 0 var(--sp-2) var(--sp-6) rgba(0, 0, 0, 0.12);
}

.cta h3 {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.cta__sub {
  color: rgba(255, 255, 255, 0.88) !important;
  margin: var(--sp-3) 0 var(--sp-5);
  font-size: 0.95rem !important;
}

.cta--plain {
  background: transparent;
  color: var(--text);
  box-shadow: none;
  padding: var(--sp-6) var(--sp-3);
  border: 2px solid #000;
  margin-top: var(--space-section-y);
  border-radius: 0;
  box-sizing: border-box;
  max-width: 100%;
}

.cta--plain h3 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.cta--plain .cta__sub {
  color: var(--muted) !important;
}

.cta--plain .button-note {
  color: var(--muted);
}

/* Buttons — solid */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(220px, 100%);
  width: auto;
  max-width: 100%;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-sm);
  font-size: clamp(0.875rem, 3vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.15s ease;
  background: #fff;
  color: var(--inverse);
  text-decoration: none;
  box-sizing: border-box;
}

.button:hover {
  transform: translateY(-1px);
  background: #f0f0f0;
}

.button--brown {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
}

.button--brown:hover {
  background: var(--text);
  color: #fff;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button-note {
  margin-top: var(--sp-3);
  font-size: 0.82rem;
  opacity: 0.9;
}

.section-title {
  margin: 0 0 var(--sp-6);
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: var(--sp-8) 0;
}

.program {
  max-width: 100%;
}

.program__list {
  display: grid;
  gap: var(--sp-5);
}

.program__item h3 {
  margin: 0 0 var(--sp-3);
  font-size: clamp(1.05rem, 3vw, 1.5rem);
  line-height: 1.45;
  font-weight: 700;
}

.program__item p {
  margin: 0;
  max-width: 48em;
}

.feature,
.recommend,
.speaker,
.event {
  max-width: 100%;
}

.feature__headline {
  margin: 0 0 var(--sp-4);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.45;
  font-weight: 700;
}

.feature p {
  max-width: 52em;
}

.recommend__items {
  display: grid;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}

.recommend__item h3 {
  margin: 0 0 var(--sp-3);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  font-weight: 700;
}

.recommend__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  max-width: 100%;
  margin-top: var(--sp-4);
}

.recommend__card {
  background: var(--surface);
  padding: var(--sp-5) var(--sp-4);
  min-height: 100px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.recommend__card:hover {
  box-shadow: 0 var(--sp-2) var(--sp-5) rgba(0, 0, 0, 0.06);
}

.recommend__label {
  margin: 0;
  line-height: 1.75;
  font-weight: 400;
}

.speaker__body {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  gap: var(--sp-5);
  align-items: start;
  min-width: 0;
}

.speaker__text {
  min-width: 0;
}

.speaker__avatar {
  width: 160px;
  height: 160px;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.speaker__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 14%;
  transform: scale(1.25);
}

.speaker__text h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.speaker__meta {
  margin: var(--sp-2) 0 var(--sp-3);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.speaker__text p {
  margin: 0;
  max-width: 54em;
}

.event__body {
  max-width: 54em;
  line-height: 2;
}

.event__body strong {
  color: var(--text);
  font-weight: 600;
}

.event-note {
  margin: var(--sp-8) auto 0;
  max-width: 100%;
}

.footer {
  margin-top: var(--space-section-y);
  padding-top: var(--sp-8);
  padding-left: max(var(--space-container-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--space-container-x), env(safe-area-inset-right, 0px));
  padding-bottom: max(var(--sp-7), env(safe-area-inset-bottom, 0px));
  background: var(--inverse);
  color: var(--inverse-muted);
}

.footer-note {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--inverse-muted);
}

.footer-note br {
  display: none;
}

@media (min-width: 640px) {
  .footer-note br {
    display: inline;
  }
}

.copyright {
  margin-top: var(--sp-3);
  font-size: 0.85rem;
  font-weight: 600;
  color: #888;
}

/* Privacy policy modal */
.privacy-modal {
  border: none;
  border-radius: 12px;
  padding: 0;
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
}

.privacy-modal::backdrop {
  background: rgba(0, 0, 0, .5);
}

.privacy-modal__inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 64px);
}

.privacy-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.privacy-modal__header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.privacy-modal__close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: var(--sp-1) var(--sp-2);
}

.privacy-modal__close:hover {
  color: var(--text);
}

.privacy-modal__body {
  padding: var(--sp-5) var(--sp-6) var(--sp-7);
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
}

.privacy-modal__body h3 {
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-2);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.privacy-modal__body p {
  margin-bottom: var(--sp-3);
}

.privacy-modal__body ol {
  margin-left: var(--sp-6);
  margin-bottom: var(--sp-3);
}

.privacy-modal__body li {
  margin-bottom: var(--sp-2);
}

.footer__links {
  margin-top: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.footer__links a {
  color: #aaa;
  font-size: 0.85rem;
  text-decoration: underline;
}

.footer__links a:hover {
  color: #fff;
}

.footer__links-sep {
  color: #555;
  font-size: 0.85rem;
}

/* 特商法テーブル */
.tokushoho__table {
  width: 100%;
  border-collapse: collapse;
}

.tokushoho__table th,
.tokushoho__table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.7;
  vertical-align: top;
  text-align: left;
}

.tokushoho__table th {
  width: 35%;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.tokushoho__table td {
  color: var(--muted);
}

@media (max-width: 520px) {
  .tokushoho__table th,
  .tokushoho__table td {
    display: block;
    width: 100%;
    padding: var(--sp-2) 0;
  }
  .tokushoho__table th {
    border-bottom: none;
    padding-bottom: 0;
  }
  .tokushoho__table tr {
    border-bottom: 1px solid var(--line);
  }
  .tokushoho__table tr:last-child {
    border-bottom: none;
  }
}

/* Tablet / small desktop */
@media (max-width: 900px) {
  .section {
    padding-top: var(--space-block-y);
  }

  .divider {
    margin: var(--space-block-y) 0;
  }

  .speaker__body {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: var(--sp-4);
  }

  .speaker__avatar {
    width: min(160px, 72vw);
    height: min(160px, 72vw);
  }

  .speaker__text {
    width: 100%;
    text-align: center;
  }

  .speaker__text p {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .black-band {
    margin-top: var(--sp-5);
    padding: var(--sp-4);
  }

  .story,
  .program,
  .feature,
  .recommend,
  .speaker,
  .event {
    margin-left: 0;
  }

  .recommend__grid {
    grid-template-columns: 1fr;
  }

  .cta--plain {
    padding: var(--sp-5) var(--sp-3);
  }
}

@media (max-width: 640px) {
  .page {
    padding-top: var(--sp-3);
  }

  .black-band {
    margin-top: var(--sp-4);
    padding: var(--sp-3);
    line-height: 1.65;
  }

  .section {
    padding-top: var(--space-block-y-sm);
  }

  .story__leadline {
    font-size: clamp(1.35rem, 5.5vw, 2rem);
    line-height: 2;
  }

  .story p.story__emphasis {
    line-height: 1.65;
    font-size: clamp(1rem, 4vw, 1.35rem);
  }

  .cta {
    padding: var(--sp-5) var(--sp-3);
  }

  .cta h3 {
    font-size: clamp(1.1rem, 4vw, 1.35rem);
  }

  .button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: var(--sp-3) var(--sp-3);
    color: #fff;
    background: #333;
  }

  .divider {
    margin: var(--space-block-y-sm) 0;
  }

  .speaker__body {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }

  .speaker__avatar {
    width: min(140px, 56vw);
    height: min(140px, 56vw);
  }

  .event__body {
    font-size: clamp(0.9375rem, 3.5vw, 1rem);
    line-height: 1.75;
  }

  .event-note {
    margin-top: var(--space-block-y);
  }

  .footer {
    margin-top: var(--space-block-y);
    padding-top: var(--space-block-y-sm);
    padding-left: max(var(--space-container-x), env(safe-area-inset-left, 0px));
    padding-right: max(var(--space-container-x), env(safe-area-inset-right, 0px));
    padding-bottom: max(var(--sp-5), env(safe-area-inset-bottom, 0px));
  }

  .copyright {
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .site-header__title {
    font-size: 0.75rem;
  }

  .site-header__btn {
    padding: var(--sp-2);
    font-size: 0.6875rem;
  }
}
