:root {
  --bg: #eef3f9;
  --text: #1c2733;
  --muted: #5a6a7a;
  --accent: #0b3d91;
  --accent-dark: #072c6b;
  --card: rgba(255, 255, 255, 0.92);
  --line: rgba(28, 39, 51, 0.14);
  --shadow: 0 18px 50px rgba(10, 30, 80, 0.15);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Roboto", ui-sans-serif, system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

/* Hero */
/*.hero {
  min-height: 620px;
  position: relative;
  color: #fff;
  background: url("https://raw.githubusercontent.com/daisukeiono/ngVLAConferenceSendai/272e5236b0652fa7bb953421e5971f6601d4c17a/ngVLA-full-1170x600.jpg")
    center / cover no-repeat;
  overflow: hidden;
}*/

.hero {
/*  min-height: clamp(480px, 72vh, 720px);*/
  min-height: clamp(360px, 56vh, 620px);
  position: relative;
  color: #fff;
  background: url("ngVLA-full-1170x600.jpg")
    center center / cover no-repeat;
  overflow: hidden;
}

/* organization関係 */
.sponsors {
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 20px;
}

.org-block {
  margin-bottom: 28px;
}

.org-block h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

/* payment関係 */
.payment-page {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}

.payment-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.payment-card h1 {
  margin-top: 0;
  margin-bottom: 16px;
}

.payment-note {
  margin-bottom: 28px;
  color: #555;
}

.payment-card label {
  display: block;
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: 600;
}

.payment-card input,
.payment-card select {
  width: 650px;
  max-width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #ffffff;
  color: #1c2733;
  opacity: 1;
  background: #fff !important;
  -webkit-appearance: menulist;
}
.payment-card select option {
  background: #fff;
  color: #000;
}

.payment-total {
  margin-top: 22px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
}

.payment-form label,
form label {
  display: block;
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}
.payment-button {
  margin-top: 30px;
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 12px;
  background: #0b3d91;
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.payment-button:hover {
  background: #163a5a;
}

.payment-small {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #666;
}

.payment-action {
  margin-top: 20px;
}
.payment-action .button {
  margin-top: 4px;
}
.payment-select {
  width: 650px;
  max-width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(10, 30, 80, 0.08);
  margin-bottom: 4px;
}

.section p a:not(.button),
.section li a:not(.button) {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.section p a:not(.button):hover,
.section li a:not(.button):hover {
  color: var(--accent-dark);
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.fee-table td {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.fee-table td:last-child {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

/* registration専用ヒーロー */
#registration-hero {
  background-image: url("sendai_resize.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* min-height: 55vh; */
  min-height: clamp(360px, 56vh, 620px);

  display: flex;
  flex-direction: column;
}

/* registrationではダークオーバーレイを消す */
#registration-hero::before {
  content: none;
}

/* ナビとタイトル */
#registration-hero .nav,
#registration-hero .subpage-title {
  position: relative;
  z-index: 2;
}

#registration-hero .subpage-title {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;              /* ← 通常レイアウトに戻す */
/*  padding: 34px 0 46px; */
  text-align: left;            /* ← 左寄せ */
  color: white;
}

#registration-hero .subpage-title h1 {
  max-width: 640px;            /* ← indexと同じ挙動に戻す */
  text-align: left;
}

/* program専用ヒーロー */
#program-hero {
  background-image: url("herc-a-big.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* min-height: 55vh; */
  min-height: clamp(360px, 56vh, 620px);
  display: flex;
  flex-direction: column;
}

/* registrationではダークオーバーレイを消す */
#program-hero::before {
  content: none;
}

/* ナビとタイトル */
#program-hero .nav,
#program-hero .subpage-title {
  position: relative;
  z-index: 2;
}

#program-hero .subpage-title {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;              /* ← 通常レイアウトに戻す */
/*  padding: 34px 0 46px; */
  text-align: left;            /* ← 左寄せ */
  color: white;
}

#program-hero .subpage-title h1 {
  max-width: 640px;            /* ← indexと同じ挙動に戻す */
  text-align: left;
}

/* venue専用ヒーロー */
#venue-hero {
  background-image: url("sendai_town.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* min-height: 55vh; */
  min-height: clamp(360px, 56vh, 620px);

  display: flex;
  flex-direction: column;
}

/* registrationではダークオーバーレイをつける */
#venue-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);　　/*この数字を変更すると画像が暗くなる*/
  z-index: 1;
}

/* ナビとタイトル */
#venue-hero .nav,
#venue-hero .subpage-title {
  position: relative;
  z-index: 2;
}

#venue-hero .subpage-title {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;              /* ← 通常レイアウトに戻す */
/*  padding: 34px 0 46px;*/
  text-align: left;            /* ← 左寄せ */
  color: white;
}

#venue-hero .subpage-title h1 {
  max-width: 640px;            /* ← indexと同じ挙動に戻す */
  text-align: left;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);　　/*この数字を変更すると画像が暗くなる*/
  z-index: 1;
}

.subhero {
  position: relative;
  color: #fff;
  background: #0f2a4a;
}

/* Navigation */
.nav {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.brand img {
  height: 32px;
  width: auto;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 34px;
  font-weight: 650;
  font-size: 0.98rem;
}

.navlinks a {
  opacity: 0.92;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

.navlinks a:hover,
.navlinks a.active {
  border-color: #fff;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  min-width: 180px;
  padding: 0 24px;
  border-radius: 7px;
  background: #3b82f6;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.35);
  transition: transform 160ms ease, background 160ms ease;
  border: none;          /* ←追加 */
  appearance: none;      /* ←追加 */
  -webkit-appearance: none; /* ←追加 */
  font-family: inherit;  /* ←追加 */
  font-size: inherit;    /* ←追加 */
  cursor: pointer;       /* ←追加 */
}

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

.button.secondary {
  background: #fff;
  color: var(--accent);
  box-shadow: none;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
/*    padding: 60px 0 80px; */
  padding: clamp(36px, 8vh, 80px) 0;

}

h1 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.subpage-title {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  /*padding: 34px 0 46px;*/
  padding: clamp(24px, 5vh, 46px) 0;
}

.subpage-title h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}

.hero-meta {
  margin-top: 30px;
  display: grid;
  gap: 10px;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  font-weight: 760;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Layout */
main {
  position: relative;
  z-index: 3;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0;
}

.section.compact {
  padding-top: 34px;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

p {
  margin: 0 0 16px;
  font-size: 1.04rem;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 12px 34px rgba(10, 30, 80, 0.1);
  min-height: 120px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 6px;
  line-height: 1.35;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-dark);
  font-weight: 800;
  margin-top: 4px;
}

/* Rationale */
.rationale {
  border-left: 3px solid var(--accent);
  padding-left: 26px;
  max-width: 1040px;
}

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

.panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 42, 50, 0.08);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 12px 34px rgba(20, 25, 35, 0.06);
  height: 430px;
  overflow: auto;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.name-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  line-height: 1.2;
}

.name-list li {
  padding: 2px 0;
}

.simple-list {
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.simple-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(28, 39, 51, 0.12);
}

.map-embed {
  margin-top: 22px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(10, 30, 80, 0.12);
  border: 1px solid rgba(28, 39, 51, 0.12);
}

.access-diagram {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.route-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(28, 39, 51, 0.12);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(10, 30, 80, 0.08);
}

.route-card h4 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  color: var(--accent);
}

.route-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.route-step {
  background: #fff;
  border: 1px solid rgba(28, 39, 51, 0.14);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 750;
  font-size: 0.95rem;
}

.route-step.highlight {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.route-arrow {
  color: var(--muted);
  font-weight: 900;
}

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.speaker-card {
  background: rgba(255,255,255,0.82);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 12px 34px rgba(20,25,35,0.06);
  border: 1px solid rgba(37,42,50,0.08);
  min-height: 110px;
}

.speaker-card h3 {
  margin: 0 0 10px;
}

.speaker-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

@media (max-width: 560px) {
  .route-flow {
    display: grid;
    gap: 8px;
  }

  .route-arrow {
    transform: rotate(90deg);
    justify-self: start;
    margin-left: 20px;
  }
}

/* Footer */
footer {
  margin-top: 30px;
  padding: 42px 24px;
  background: #0f2a4a;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-size: 0.95rem;
}


/* Responsive */
@media (max-width: 900px) {
/*  .hero {
    min-height: 660px;
  }*/

  .speaker-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    /*align-items: flex-start;*/
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .navlinks {
/*    display: none; */
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.95rem;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
/*  .hero {
    min-height: 620px;
    background-position: 58% center;
  }
*/
  .nav,
  .hero-content,
  .section,
  .subpage-title {
    width: min(100% - 30px, var(--max));
  }

  .speaker-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
/*    padding-top: 70px; */
  }

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

  .rationale {
    padding-left: 18px;
  }

  .brand {
    font-size: 0.95rem;
  }
/*
  h1 {
    font-size: 3rem;
  }*/
}
