/* ===================================
   Global layout & background
   =================================== */

:root {
  --page-background-image: url('../images/HerschelTaurus.jpg');
}

body {
  background-image:
    linear-gradient(160deg, rgba(2, 10, 28, 0.45), rgba(1, 5, 16, 0.85)),
    var(--page-background-image);
  background-size: cover;
  background-attachment: fixed;
  background-position: center top;
  background-repeat: no-repeat;
  color: #f5f7ff;
}

[data-image-credit] {
  font-size: 0.85em;
  opacity: 0.9;
}

body.page-home {
  --page-background-image: url('../images/HerschelTaurus.jpg');
}

body.page-program {
  --page-background-image: url('../images/Webb_s_View_of_the_Molecular_Cloud_Chameleon_I.jpeg');
}

body.page-venue {
  --page-background-image: url('../images/Serpens_Nebula_North_aligned_outflows_crop_NIRCam_image.jpeg');
}

body.page-participants {
  --page-background-image: url('../images/Corona_Australis_molecular_cloud_viewed_by_Herschel_and_Planck.png');
}

body.page-information {
  --page-background-image: url('../images/Tantrums_of_a_baby_star.jpg');
}

.md-main,
.md-content,
.md-content__inner {
  background: transparent;
  font-size: 14pt;
}

.md-main {
  display: flex;
  justify-content: center;
}

.md-main__inner {
  padding-top: 4rem;
  padding-bottom: 4rem;
  width: 100%;
  max-width: none;
}

.md-grid {
  max-width: 1200px;
  width: 75%;
  margin: 0;
  padding: 0;
}

@media (min-width: 76.25em) {
  .md-sidebar--primary {
    display: none;
  }

  .md-main__inner {
    margin-left: 0;
  }
}

/* ===================================
   Hero Section - ランディングページ用
   =================================== */

/* ヒーローセクション全体 */
.hero-section {
  position: relative;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 2rem;
  margin: 1.0rem auto;
  width: min(1100px, 100%);
  background: rgba(4, 12, 32, 0);
  border: 1px solid rgba(255, 255, 255, 0.0);
  color: white;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.0);
}

/* 背景のオーバーレイ効果 */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.0) 100%);
  pointer-events: none;
}

/* ヒーローコンテンツ */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

/* メインタイトル */
.hero-title {
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 32pt;
  }
}

/* 日付・場所のインフォカード */
.hero-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 1.25rem 2rem;
  min-width: 250px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
}

.info-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.info-card .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.info-card .value {
  font-size: 1.25rem;
  font-weight: 600;
}

/* ===================================
   セクションスタイル
   =================================== */

.section {
  margin: 3rem 0rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--md-primary-fg-color);
  border-bottom: 3px solid var(--md-primary-fg-color);
  display: inline-block;
}

.md-typeset .section-title {
  font-weight: bold;
  margin-top: 0;
  padding-top: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
}

/* Overview セクション */
.overview-section {
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  border-left: 4px solid var(--md-primary-fg-color);
}

.overview-section p {
  font-size: 1.0rem;
  line-height: 1.8;
  color: #444;
}

.overview-section ul {
  margin: 0;
  padding-left: 1.5rem;
}

.overview-section li {
  font-size: 1.0rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 0.75rem;
}

.overview-section li:last-child {
  margin-bottom: 0;
}

.plain-list {
  list-style: disc;
}

.registration-section {
  text-align: center;
  background: rgba(2, 20, 43, 0.9);
  color: #f1f5ff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.registration-section p {
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-button {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border-radius: 1.70rem;
  background: linear-gradient(135deg, #64b5f6, #2196f3);
  color: white;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 20px rgba(33, 150, 243, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(33, 150, 243, 0.45);
}

/* ===================================
   レスポンシブ調整
   =================================== */

@media (max-width: 768px) {
  .hero-section {
    min-height: 60vh;
    padding: 3rem 1rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .info-card {
    min-width: 200px;
    padding: 1rem 1.5rem;
  }
  
  .section {
    padding: 1.5rem;
    margin: 2rem 0;
  }
  
  .topics-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   ホームページ専用スタイル（hide navigation等）
   =================================== */

/* ホームページ用のページ見出しを一部のみ表示 */
.md-typeset h1:first-of-type {
  display: flex;
  font-weight: 600;
  color: #fff5ff;
}

/* ナビゲーションバーのリストでactive以外の色を設定 */
.md-nav__link {
  .md-ellipsis {
    color: var(--md-primary-fg-color);
  }
}


/* .md-typeset__table tr:nth-child(even) { */
/*   background-color: rgba(0, 0, 0, 0.5); */
/* } */

/* Table improvements with centering table */
.md-typeset table:not([class]) {
  border-radius: 0.4rem;
  overflow: hidden;
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.05);
  background: rgba(5, 10, 22, 0.5);
}
