/* ===========================
   未来TED2026 スタイルシート
   =========================== */

/* ===== カラーパレット ===== */
:root {
  --primary-green: #4a7c59;
  --dark-green: #2d5a3d;
  --light-green: #e8f5e9;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-white: #ffffff;
  --bg-gray: #f8f9fa;
  --accent-gray: #e9ecef;
  
  /* レインボーカラー（チラシから） */
  --rainbow-red: #e74c3c;
  --rainbow-orange: #f39c12;
  --rainbow-yellow: #f1c40f;
  --rainbow-green: #2ecc71;
  --rainbow-cyan: #3498db;
  --rainbow-blue: #3b5998;
  --rainbow-purple: #9b59b6;
}

/* ===== 基本設定 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: var(--text-dark);
  line-height: 1.8;
  background-color: var(--bg-white);
}

/* ===== レインボーストライプ装飾 ===== */
.rainbow-stripe {
  height: 6px;
  background: linear-gradient(
    to right,
    var(--rainbow-red) 0%,
    var(--rainbow-red) 14.28%,
    var(--rainbow-orange) 14.28%,
    var(--rainbow-orange) 28.56%,
    var(--rainbow-yellow) 28.56%,
    var(--rainbow-yellow) 42.84%,
    var(--rainbow-green) 42.84%,
    var(--rainbow-green) 57.12%,
    var(--rainbow-cyan) 57.12%,
    var(--rainbow-cyan) 71.4%,
    var(--rainbow-blue) 71.4%,
    var(--rainbow-blue) 85.68%,
    var(--rainbow-purple) 85.68%,
    var(--rainbow-purple) 100%
  );
}

/* ===== ヘッダー ===== */
header {
  background: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-container img {
  height: 50px;
  width: auto;
}

.logo-container .site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-green);
}

.cta-button-nav {
  background: var(--primary-green) !important;
  color: #ffffff !important;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  text-decoration: none !important;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.cta-button-nav:hover {
  background: var(--dark-green) !important;
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* モバイルメニュートグル */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== ヒーローセクション ===== */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(74, 124, 89, 0.85), rgba(45, 90, 61, 0.85));
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-content .event-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content .catchphrase {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

.hero-content .event-info {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.cta-button {
  background: white;
  color: var(--primary-green);
  padding: 1rem 3rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ===== セクション共通スタイル ===== */
section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-green);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* ===== 概要セクション ===== */
.overview {
  background: var(--bg-gray);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.overview-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

.overview-card h3 {
  color: var(--primary-green);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.overview-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== プログラムセクション ===== */
.program-list {
  max-width: 900px;
  margin: 3rem auto 0;
}

.program-section {
  margin-bottom: 3rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.program-header {
  background: var(--primary-green);
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.program-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.program-time {
  font-size: 1.2rem;
  font-weight: 600;
}

.program-items {
  padding: 2rem;
}

.program-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--accent-gray);
}

.program-item:last-child {
  border-bottom: none;
}

.program-item-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.program-item-presenter {
  color: var(--text-light);
  font-size: 0.95rem;
}

.program-item-lang {
  display: inline-block;
  background: var(--light-green);
  color: var(--dark-green);
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

/* ===== 地図セクション ===== */
.map-container {
  margin-top: 3rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}

/* ===== 出場者カード ===== */
.presenters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.presenter-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.presenter-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

.presenter-card-content {
  padding: 1.5rem;
}

.presenter-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.presenter-affiliation {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.presenter-theme {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.presenter-lang {
  display: inline-block;
  background: var(--light-green);
  color: var(--dark-green);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

.team-card {
  background: var(--light-green);
  border-left: 4px solid var(--primary-green);
}

.team-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 1rem;
}

.team-members {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.placeholder-note {
  background: var(--accent-gray);
  padding: 1rem;
  border-radius: 8px;
  color: var(--text-light);
  font-style: italic;
  margin-top: 1rem;
}

/* ===== フッター ===== */
footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 2rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
  color: #cccccc;
  text-decoration: none;
  line-height: 2;
  display: block;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #555;
  color: #999;
}

/* ===== クリック可能なカード ===== */
.clickable-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clickable-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* ===== モーダル ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  color: #aaa;
  float: right;
  font-size: 32px;
  font-weight: bold;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--primary-green);
}

.modal-body {
  padding: 2rem;
  padding-top: 1rem;
}

/* モーダルヘッダーセクション */
.modal-header-section {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--accent-gray);
  margin-bottom: 2rem;
}

.modal-photo-placeholder {
  width: 150px;
  height: 150px;
  background: var(--bg-gray);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-info {
  flex: 1;
}

.modal-presenter-name {
  font-size: 2rem;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.modal-presenter-affiliation {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* モーダルセクション */
.modal-section {
  margin-bottom: 2.5rem;
}

.modal-section-title {
  font-size: 1.3rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-gray);
}

.modal-theme {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.8;
}

.modal-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.modal-text p {
  margin-bottom: 1rem;
}

/* スライドプレースホルダー */
.modal-slides {
  min-height: 200px;
}

.slides-placeholder {
  background: var(--bg-gray);
  border: 2px dashed var(--accent-gray);
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
}

/* ===== レスポンシブデザイン ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    transition: left 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content .catchphrase {
    font-size: 1.3rem;
  }

  .hero-content .event-info {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* モーダルのレスポンシブ */
  .modal-content {
    width: 95%;
    margin: 5% auto;
  }
  
  .modal-header-section {
    flex-direction: column;
    text-align: center;
  }
  
  .modal-presenter-name {
    font-size: 1.6rem;
  }
  
  .modal-section-title {
    font-size: 1.1rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  section {
    padding: 3rem 1rem;
  }
}
