/* 湘南AIナイト vol.7 ― 縦長1ページの告知LP
   HTMLの上から読める順にセクションを並べている。 */

:root {
  --ink: #111827;
  --orange: #ff5a1f;
  --white: #ffffff;
  --line: #e5e7eb;
  --ink-mid: #4b5563;
  --radius: 6px;
  --radius-btn: 8px;

  /* clamp() で画面幅に連動させる。メディアクエリを増やさないための土台 */
  --section-pad: clamp(56px, 9vw, 120px);
  --h2-size: clamp(24px, 4vw, 36px);
  --h1-size: clamp(26px, 5vw, 44px);
}

* {
  box-sizing: border-box;
}

html {
  /* ロゴから #top へ戻ったとき、要素が画面の一番上ぎりぎりにならないための余白 */
  scroll-margin-top: 24px;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 900;
  line-height: 1.5;
  margin: 0;
}

p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== ボタン共通 ===== */

.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius-btn);
  padding: 16px 32px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  min-height: 44px;
  line-height: 1.2;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
}

.btn--primary:hover {
  background: #e04e17;
}

.btn--small {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-text {
  background: none;
  border: none;
  color: var(--ink-mid);
  text-decoration: underline;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ===== ロゴ ===== */

.lp-logo {
  position: absolute;
  top: clamp(16px, 3vw, 32px);
  left: clamp(16px, 4vw, 40px);
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  z-index: 2;
}

.lp-logo__en {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.lp-logo__vol {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--orange);
}

/* ===== ファーストビュー ===== */

.fv {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.fv__media {
  position: absolute;
  inset: 0;
}

.fv__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fv__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
}

.fv__body {
  position: relative;
  z-index: 1;
  padding: 0 clamp(16px, 5vw, 48px) var(--section-pad);
  max-width: 780px;
}

.fv__kicker {
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.fv__title {
  font-size: var(--h1-size);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.fv__lead {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 28px;
  max-width: 60ch;
}

.fv__note {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== セクション共通 ===== */

.section {
  padding: var(--section-pad) 0;
}

.section--light {
  background: var(--white);
  color: var(--ink);
}

.section--dark {
  background: var(--ink);
  color: var(--white);
}

.section--dark .btn-text {
  color: rgba(255, 255, 255, 0.8);
}

.section__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 40px);
}

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

.section__inner--center .btn {
  margin: 24px 0;
}

.section__title {
  font-size: var(--h2-size);
  margin-bottom: clamp(24px, 4vw, 40px);
}

.section__footnote {
  margin-top: 20px;
  color: var(--ink-mid);
  font-size: 14px;
}

.section--dark .section__footnote {
  color: rgba(255, 255, 255, 0.75);
}

/* ===== 3行でいうと ===== */

.three-lines {
  margin: 0;
  padding-left: 1.4em;
  display: grid;
  gap: 20px;
}

.three-lines li {
  font-size: 16px;
}

.three-lines strong {
  color: var(--orange);
}

/* ===== こんな人に来てほしい ===== */

.who-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.who-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 15px;
}

/* ===== 当日やること（タイムテーブル） ===== */

.timetable {
  width: 100%;
  border-collapse: collapse;
}

.timetable th {
  text-align: left;
  font-size: 13px;
  color: var(--ink-mid);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.timetable td {
  padding: 20px 12px 20px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.timetable__time {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--orange);
  white-space: nowrap;
  width: 88px;
}

.timetable__heading {
  font-weight: 700;
  margin-bottom: 4px;
}

.timetable td p {
  margin: 0;
}

.timetable td p + p {
  margin-top: 4px;
  color: var(--ink-mid);
  font-size: 14px;
}

/* ===== 話す人 ===== */

.speakers {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px;
}

.speaker {
  border-left: 3px solid var(--orange);
  padding-left: 20px;
}

.speaker__role {
  font-weight: 700;
  margin-bottom: 6px;
}

.speaker__talk {
  color: var(--ink-mid);
  font-size: 15px;
}

/* ===== 開催概要 ===== */

.overview {
  margin: 0;
  border-top: 1px solid var(--line);
}

.overview__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.overview__row dt {
  font-weight: 700;
  color: var(--ink-mid);
  font-size: 14px;
}

.overview__row dd {
  margin: 0;
}

/* ===== 前回までの様子 ===== */

/* PCは3枚が枠内に収まる横並び（スクロールしない）。SPだけ横スクロールにする（下のAI部品） */
.gallery-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.gallery-scroll__item {
  margin: 0;
}

.gallery-scroll__item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery-scroll__item figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-mid);
}

/* ===== よくある質問 ===== */

.faq {
  display: grid;
  gap: 12px;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 20px;
}

.faq__item summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "＋";
  flex-shrink: 0;
  color: var(--orange);
  font-family: "Archivo", sans-serif;
  font-size: 20px;
}

.faq__item[open] summary::after {
  content: "－";
}

.faq__item p {
  padding: 0 0 20px;
  color: var(--ink-mid);
  font-size: 15px;
}

/* ===== フッター ===== */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 40px 20px calc(40px + 72px);
  font-size: 13px;
  display: grid;
  gap: 6px;
}

.site-footer__name {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
}

.site-footer__disclaimer {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== 追従CTAバー =====
   ページ最後の要素として position: sticky; bottom: 0 に置く。
   FVがほぼ1画面分の高さなので、FVを過ぎたあたりで自然に画面下へ張り付く。 */

.follow-bar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 5vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.follow-bar__text {
  font-size: 14px;
  margin: 0;
}

.follow-bar__text--short {
  display: none;
}

/* ===== dialog：申し込みフォーム ===== */

.signup-dialog {
  border: none;
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 40px);
  width: min(520px, 92vw);
  max-height: min(680px, 88svh);
  overflow-y: auto;
}

.signup-dialog::backdrop {
  background: rgba(17, 24, 39, 0.6);
}

.signup-dialog h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.signup-dialog__note {
  color: var(--ink-mid);
  font-size: 14px;
  margin-bottom: 24px;
}

.signup-dialog__disclaimer {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-mid);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-mid);
}

.field input,
.field textarea {
  font: inherit;
  font-size: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 44px;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--orange);
  outline-offset: 1px;
}

.signup-form__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

#signup-done-view h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

#signup-done-view p {
  margin-bottom: 12px;
}

#signup-done-view .btn {
  margin-top: 12px;
}

/* AIに書かせた部品（プロンプト：仕様 §8 部品① スマホ版のCSS） */
@media (max-width: 768px) {
  .fv__body {
    padding-bottom: clamp(32px, 8vw, 56px);
  }

  .who-list {
    grid-template-columns: 1fr;
  }

  .timetable__time {
    width: 64px;
    font-size: 16px;
  }

  .speaker {
    padding-left: 16px;
  }

  .overview__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .gallery-scroll {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 8px;
  }

  .gallery-scroll__item {
    flex: 0 0 78vw;
    scroll-snap-align: start;
  }

  .follow-bar__text--full {
    display: none;
  }

  .follow-bar__text--short {
    display: inline;
  }

  .follow-bar {
    padding: 12px 16px;
  }

  .signup-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100svh;
    max-height: 100svh;
    border-radius: 0;
  }
}
/* /AIに書かせた部品 */
