:root {
  --bg: #fbefe6;
  --surface: rgba(255,255,255,.42);
  --text: #191919;
  --muted: #6c625c;
  --accent: #ff8e7f;
  --line: rgba(25,25,25,.14);
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
               "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  line-height: 1.82;
  letter-spacing: .01em;
}
img, iframe { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: #b44f44; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251,239,230,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .02em;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  text-decoration: none;
  white-space: nowrap;
  font-size: .93rem;
}
.nav a[aria-current="page"] {
  color: #b44f44;
  font-weight: 700;
}
main {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.hero {
  padding: 72px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 54px;
  align-items: center;
}
.hero.compact {
  display: block;
  max-width: 840px;
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  font-size: .86rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
h1, h2, h3 {
  font-weight: 500;
  line-height: 1.35;
  margin-top: 0;
}
h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  margin-bottom: 20px;
}
h2 {
  color: var(--accent);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  margin-bottom: 18px;
}
h3 { font-size: 1.12rem; margin-bottom: 10px; }
.lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 720px;
}
.hero-media img, .feature-media img { width: 100%; height: auto; border-radius: 2px; }
.section { padding: 46px 0; border-top: 1px solid var(--line); }
.section.noline { border-top: 0; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
}
.card h3 { color: var(--accent); }
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.button {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid currentColor;
  text-decoration: none;
  line-height: 1.25;
}
.button.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.meta { color: var(--muted); font-size: .94rem; }
.notice {
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  background: rgba(255,255,255,.36);
}

.experience-stack { display: grid; gap: 74px; }
.experience-block { border-top: 1px solid var(--line); padding-top: 44px; }
.experience-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}
.experience-row > * { min-width: 0; }
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}
.media-frame iframe, .media-frame img {
  width: 100%;
  height: 100%;
  border: 0;
}
.media-frame img { object-fit: cover; }
.experience-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}
.experience-copy p { margin: 0 0 14px; }
.experience-copy .device {
  text-align: center;
  font-size: .93rem;
}
.details {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.details ul { margin: 8px 0 0; padding-left: 1.15em; }
.details li { margin: 7px 0; }

.event-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 50px;
  align-items: start;
}
.event-layout img { width: 100%; height: auto; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.info-table th { width: 7em; font-weight: 600; }
.prose { max-width: 800px; margin-inline: auto; }
.prose p { margin: 0 0 1.2em; }

.site-footer { margin-top: 72px; border-top: 1px solid var(--line); }
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { font-size: .92rem; }
.small { font-size: .86rem; color: var(--muted); }

@media (max-width: 800px) {
  .header-inner {
    width: calc(100% - 24px);
    gap: 16px;
    min-height: 62px;
  }
  .brand { font-size: .91rem; }
  .nav { gap: 14px; }
  .nav a { font-size: .82rem; }
  main { width: calc(100% - 24px); }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 46px 0 34px;
  }
  .hero h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .card-grid { grid-template-columns: 1fr; }

  /* 重要: /content は携帯でも横並びを維持 */
  .experience-stack { gap: 46px; }
  .experience-block { padding-top: 30px; }
  .experience-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }
  .experience-copy {
    font-size: clamp(.70rem, 3.05vw, .86rem);
    line-height: 1.62;
  }
  .experience-copy h2 {
    font-size: clamp(1.02rem, 5vw, 1.42rem);
    margin-bottom: 8px;
  }
  .experience-copy .device {
    font-size: clamp(.66rem, 2.8vw, .79rem);
    margin-bottom: 8px;
  }
  .experience-copy p { margin-bottom: 8px; }
  .details {
    margin-top: 14px;
    font-size: .82rem;
  }
  .event-layout { grid-template-columns: 1fr; gap: 26px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .experience-row { gap: 8px; }
  .experience-copy { font-size: .70rem; }
  .experience-copy h2 { font-size: 1rem; }
}
@media print {
  .site-header, .site-footer { display: none; }
  body { background: #fff; }
  main { width: 100%; }
}


/* Page-specific refinements */
.about-hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin-bottom: 0;
}

.event-ended {
  max-width: 720px;
  margin: 12px auto 0;
  text-align: right;
  font-weight: 600;
}

.content-hero {
  padding-bottom: 10px;
}

.content-hero h1 {
  margin-bottom: 0;
}

.content-first-section {
  padding-top: 10px;
}

.content-first-section .experience-block:first-child {
  padding-top: 24px;
}

.purpose-hero {
  padding-bottom: 14px;
}

.purpose-hero h1 {
  margin-bottom: 0;
}

.purpose-prose {
  padding-top: 12px;
}

@media (max-width: 800px) {
  .about-hero h1 {
    font-size: clamp(2.8rem, 16vw, 4.4rem);
  }

  .content-hero {
    padding-bottom: 4px;
  }

  .content-first-section {
    padding-top: 4px;
  }

  .content-first-section .experience-block:first-child {
    padding-top: 18px;
  }

  .purpose-hero {
    padding-bottom: 8px;
  }

  .purpose-prose {
    padding-top: 8px;
  }
}
