/* ===========================================================
   Snapdragon Live Japan 2026 — Landing Page
   Colors & typography per Snapdragon 3.0 Brand Guidelines (Feb 2026)
   - Screen palette: Snapdragon Red #E71324 / Dark Red #92001D /
     Deep Red #500010, Stone #DCE2E9, secondary Sun/Amethyst/Ocean
   - Web fonts (p.78): Display/Headline = Alfabet, Body/CTA/Meta = Roboto Flex
     (Japanese glyphs fall back to Noto Sans JP)
   =========================================================== */

/* ---------- Alfabet (brand display / headline face) ---------- */
@font-face {
  font-family: "Alfabet";
  src: url("assets/fonts/alfabet-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("assets/fonts/alfabet-medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("assets/fonts/alfabet-semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("assets/fonts/alfabet-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* Primary (Snapdragon 3.0 — screen HEX) */
  --red: #E71324;        /* Snapdragon Red */
  --red-dark: #92001D;   /* Snapdragon Dark Red */
  --red-deep: #500010;   /* Snapdragon Deep Red */
  /* Secondary */
  --stone: #DCE2E9;
  --sun: #FF9D00;
  --amethyst: #A200ED;
  --ocean: #00B0F2;

  --ink: #1b1b1b;
  --ink-soft: #4a4a4a;
  --gray: #767676;
  --line: #DCE2E9;
  --bg: #ffffff;
  --footer-bg: var(--red-deep);          /* brand Deep Red base (#500010) */
  --footer-border: rgba(255, 255, 255, 0.28);
  --maxw: 1280px;                        /* PC content-area base width */
  --readw: 880px;                        /* comfortable reading measure for text blocks */
  --radius: 4px;

  /* Type: Latin via brand faces, Japanese via Noto Sans JP */
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-display: "Alfabet", "Roboto Flex", var(--font-jp);
  --font-body: "Roboto Flex", var(--font-jp);
  --font: var(--font-body);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.9;
  background: var(--bg);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: opacity 180ms ease;
}
body.page-leaving { opacity: 0; pointer-events: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { list-style: none; padding: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* Constrain long-form text to a readable measure inside the wide frame */
.measure { max-width: var(--readw); margin-inline: auto; }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(120deg, var(--red-deep) 0%, var(--red) 55%, var(--red-dark) 100%);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(90% 120% at 110% 60%, rgba(0, 0, 0, 0.22), transparent 60%);
  pointer-events: none;
}
/* Snapdragon mark used as a faint watermark in the KV, bleeding off top-right */
.hero__bg::after {
  content: "";
  position: absolute;
  top: 20px;
  right: -50px;
  width: min(650px, 70vw);
  aspect-ratio: 1 / 1;
  background: url("assets/sd-mark-white.png") no-repeat center center / contain;
  opacity: 0.13;
  transform: rotate(6deg);
}
.hero__inner {
  position: relative;
  padding-top: 34px;
  padding-bottom: 96px;
}
.hero__logo { width: 260px; height: auto; margin-bottom: 64px; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.15;
  margin-bottom: 28px;
}
.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  font-weight: 500;
  line-height: 1.7;
}

/* Hero CTA -> jumps to the registration form */
.hero__cta-wrap { margin-top: 34px; }
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 16px 42px;
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.20);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.hero__cta:hover {
  background: #f5f5f5;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}
.hero__cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hero__cta-arrow {
  font-weight: 700;
  transition: transform 0.15s ease;
}
.hero__cta:hover .hero__cta-arrow { transform: translateX(4px); }

/* ===========================================================
   Intro
   =========================================================== */
.intro { padding: 64px 0 48px; }
.intro__lead {
  font-size: 1rem;
  color: var(--ink-soft);
  text-align: justify;
  max-width: var(--readw);
  margin-inline: auto;
}
.intro__lead + .intro__lead { margin-top: 1.2em; }
.intro__lead--center { text-align: center; }

/* ===========================================================
   Section title (on white)
   =========================================================== */
.section-title {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  padding-bottom: 12px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--red);
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 92px;
  height: 6px;
  background: var(--red);
}
.section-title--onred {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.6);
}
.section-title--onred::before { background: #fff; }

/* ===========================================================
   Speaker (red band)
   =========================================================== */
.speaker {
  background: var(--red);
  color: #fff;
  padding: 48px 0 60px;
}
.speaker__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.2vw, 32px);
}
.speaker__card { text-align: center; }
.speaker__photo {
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.speaker__photo img { width: 100%; height: 100%; object-fit: cover; }
.speaker__org {
  font-size: 0.82rem;
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 2px;
}
.speaker__name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}
.speaker__name.is-placeholder {
  font-weight: 400;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.9);
  word-break: break-all;
}

/* ===========================================================
   Date & Time
   =========================================================== */
.dt { padding: 64px 0 12px; }
.schedule {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.schedule__date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 28px;
}
.schedule__list {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* equal-width columns → symmetric */
  align-items: stretch;
  gap: 0;
  max-width: 520px;
  margin-inline: auto;
}
.schedule__list--3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 780px;
}
.schedule__list--3 li { padding-inline: 16px; }
.schedule__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 4px 24px;
}
.schedule__list li + li { border-left: 1px solid var(--line); }
.schedule__time {
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.schedule__label { color: var(--ink-soft); font-size: 0.98rem; }
.schedule__note {
  margin-top: 24px;
  text-align: center;
  color: var(--red);
  font-size: 0.88rem;
}

/* ===========================================================
   Venue
   =========================================================== */
.venue { padding: 64px 0 12px; }
.venue__body {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 40px;
  align-items: start;
  max-width: 1040px;
  margin-inline: auto;
}
.venue__list {
  display: grid;
  grid-template-columns: 72px 1fr;
  row-gap: 16px;
  column-gap: 8px;
}
.venue__list dt { font-weight: 700; color: var(--ink); }
.venue__list dd { color: var(--ink-soft); }
.venue__list a { color: var(--ink-soft); text-decoration: none; }
.venue__url { margin-top: 18px; }
.venue__url a { color: var(--red); word-break: break-all; }
.venue__map {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.venue__map img { width: 100%; height: auto; }

/* Responsive Google Maps embed wrapper */
.venue__map--embed {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}
.venue__map--embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===========================================================
   Highlights
   =========================================================== */
.highlights { padding: 64px 0 12px; }
.highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.highlights__item { margin-bottom: 0; }
.highlights__title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.highlights__item p { color: var(--ink-soft); }

/* ===========================================================
   Registration
   =========================================================== */
.register { padding: 64px 0 48px; scroll-margin-top: 24px; }
.register__note {
  margin-bottom: 32px;
  max-width: var(--readw);
  margin-inline: auto;
}
.register__lead {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.register__note p { color: var(--ink-soft); }
.register__note p + p { margin-top: 6px; }
.register__note .thanks__cta {
  margin-top: 42px;
  text-align: center;
}

.reg-form {
  max-width: 460px;
  margin-inline: auto;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bdbdbd;
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:hover { border-color: #8f8f8f; }
.field input:focus-visible {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226, 35, 26, 0.18);
}
.field input:user-invalid {
  border-color: var(--red);
}
.form-status {
  margin-bottom: 18px;
  padding: 10px 14px;
  color: var(--red-deep);
  background: #fff0f2;
  border-left: 4px solid var(--red);
  font-weight: 700;
  line-height: 1.6;
}
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.reg-form__submit { text-align: center; margin-top: 34px; }
.btn-submit {
  appearance: none;
  border: none;
  cursor: pointer;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 72px;
  border-radius: var(--radius);
  transition: background-color 0.15s ease, transform 0.05s ease;
}
.btn-submit:hover { background: var(--red-dark); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit:focus-visible {
  outline: 3px solid var(--red-dark);
  outline-offset: 3px;
}

/* Confirmation modal */
body.modal-open { overflow: hidden; }
.modal {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 27, 27, 0.62);
}
.modal__dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  padding: clamp(24px, 5vw, 40px);
  background: #fff;
  border-top: 6px solid var(--red);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}
.modal__title {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.35;
}
.modal__summary { margin-top: 22px; border-top: 1px solid var(--line); }
.modal__summary > div {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}
.modal__summary dt { font-weight: 700; }
.modal__summary dd { overflow-wrap: anywhere; }
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}
.btn-modal {
  appearance: none;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: 11px 20px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn-modal:hover { background: var(--red-dark); }
.btn-modal:disabled { cursor: wait; opacity: 0.7; }
.btn-modal--secondary { background: #fff; color: var(--red); }
.btn-modal--secondary:hover { color: #fff; }

/* ===========================================================
   Contact (below the registration form)
   =========================================================== */
.contact {
  max-width: var(--readw);
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.contact p { color: var(--ink-soft); }
.contact__office {
  margin-top: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.7;
}
.contact__office a { color: var(--red); text-decoration: underline; }

/* ===========================================================
   Footer
   =========================================================== */
.footer {
  background: var(--footer-bg);
  padding: 48px 0 56px;
  margin-top: 24px;
}
.footer__box {
  border: 1px solid var(--footer-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.footer__box p + p { margin-top: 12px; }
.footer__box a { color: #fff; text-decoration: underline; }

/* ===========================================================
   Responsive
   Base: PC layout on a 1280px content frame.
   Breakpoints: 1080 (fluid), 900 (tablet), 640 (mobile), 400 (small).
   =========================================================== */

/* Tablet-landscape: frame becomes fluid below the 1280 base */
@media (max-width: 1080px) {
  .venue__body { grid-template-columns: 1fr 40%; }
}

/* Tablet: speaker 2-up, highlights 3->stacked pairs */
@media (max-width: 900px) {
  .speaker__grid { grid-template-columns: repeat(2, 1fr); }
  .highlights__grid { grid-template-columns: 1fr; gap: 26px; max-width: var(--readw); margin-inline: auto; }
}

/* Tablet-portrait (~720): Venue map drops below the info instead of squashing */
@media (max-width: 768px) {
  .venue__body {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 560px;
  }
  .venue__map { max-width: 100%; }
}

/* Mobile */
@media (max-width: 640px) {
  body { line-height: 1.85; }

  .hero__inner { padding-top: 26px; padding-bottom: 60px; }
  .hero__logo { width: 180px; margin-bottom: 36px; }

  .intro { padding: 44px 0 28px; }
  .dt, .venue, .highlights, .register { padding-top: 48px; }

  /* Schedule: items stack vertically */
  .schedule__list,
  .schedule__list--3 { grid-template-columns: 1fr; max-width: 320px; }
  .schedule__list li { padding: 18px 0; }
  .schedule__list li + li { border-left: 0; border-top: 1px solid var(--line); }

  /* Venue: map drops below the info */
  .venue__body { grid-template-columns: 1fr; gap: 24px; max-width: 460px; }
  .venue__map { max-width: 100%; }

  .btn-submit { width: 100%; padding-inline: 0; }
  .modal__actions { flex-direction: column-reverse; }
  .btn-modal { width: 100%; }
  .modal__summary > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Small phones */
@media (max-width: 400px) {
  .speaker__grid { grid-template-columns: 1fr; gap: 24px; }
  .speaker__photo { max-width: 300px; margin-inline: auto; }
  .venue__list { grid-template-columns: 60px 1fr; }
}

/* Motion / contrast preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, body { transition: none !important; }
}
