/* ===== CSS Variables (カラーパレット) ===== */
:root {
  /* カラーパレット */
  --primary-color: #2F3E9E;        /* インディゴブルー */
  --secondary-color: #FFF8F1;      /* クリームベージュ */
  --accent-color: #FF7E79;         /* サーモンピンク */
  --support-color: #568c8c;        /* グレーグリーン */
  --text-color: #1A1D2E;           /* ダークネイビー */
  --text-light: #4A4D5E;          /* ライトテキスト */
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --border-color: #E8ECEF;
  
  /* フォント */
  --font-japanese: 'Noto Sans JP', sans-serif;
  --font-english: 'Inter', sans-serif;
  
  /* スペーシング */
  --container-max-width: 1200px;
  --section-padding: 80px 0;
  --border-radius: 12px;
  --shadow: 0 4px 16px rgba(47, 62, 158, 0.1);
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-japanese);
  color: var(--text-color);
  line-height: 1.7;
  font-size: 16px;
  background: var(--white);
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  color: var(--primary-color);
}

h2 {
  font-size: clamp(2rem, 5vw, 2.2rem);
  color: var(--primary-color);
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--primary-color);
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

/* タイムテーブルエリアの説明文 */
.time-table-subtitle {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

/* ===== Buttons ===== */
.cta-button, .cta-button-large, .cta-button-final {
  display: inline-block;
  background: var(--accent-color);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-japanese);
}

.cta-button {
  padding: 12px 24px;
  font-size: 14px;
}

.cta-button-large {
  padding: 16px 32px;
  font-size: 16px;
  margin-top: 2rem;
}

.cta-button-final {
  padding: 20px 40px;
  font-size: 18px;
}

.cta-button:hover, .cta-button-large:hover, .cta-button-final:hover {
  background: #FF6B66;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ===== Header ===== */
.header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--primary-color);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.nav-link:hover {
  color: var(--primary-color);
}

/* ===== Hero Section ===== */
.hero {
  background: var(--secondary-color);
  padding: 120px 0 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-top-image {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-top-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.hero-top-image .hero-title {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-top-image .event-info {
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.hero-top-image .cta-button-large {
  display: block;
  margin: 0 auto;
  text-align: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  margin-bottom: 2rem;
  font-weight: 800;
}

.hero-subtitle {
  margin-bottom: 3rem;
}

.hero-subtitle p:first-child {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.8;
}

.hero-subtitle p:last-child {
  color: var(--text-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.event-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.icon {
  font-size: 1.2rem;
}

.hero-image {
  text-align: center;
}

.hero-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* ===== Section Styles ===== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ===== About Section ===== */
.about {
  padding: var(--section-padding);
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.skills-list {
  margin: 2rem 0;
}

.skills-list h3 {
  margin-bottom: 1.5rem;
}

.skills-list ul {
  list-style: none;
  padding: 0;
}

.skills-list li {
  padding: 1rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
}

.skills-list li::before {
  content: '✨';
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

.highlight {
  background: linear-gradient(120deg, rgba(255, 126, 121, 0.2) 0%, rgba(255, 126, 121, 0.1) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.4em;
  background-position: 0 88%;
  font-weight: 700;
  color: var(--primary-color);
  padding: 0.5rem;
  border-radius: var(--border-radius);
  display: inline-block;
  margin-top: 1rem;
}

.about-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* ===== Schedule Section ===== */
.schedule {
  padding: var(--section-padding);
  background: var(--light-gray);
}

.schedule-content {
  max-width: 1000px;
  margin: 0 auto;
}

.schedule-item {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.schedule-section {
  margin-bottom: 3rem;
}

.schedule-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  background: var(--primary-color);
  color: var(--white);
  border-radius: var(--border-radius);
}

.time {
  font-weight: 700;
  color: var(--accent-color);
  font-size: 1.1rem;
  min-width: 150px;
}

.schedule-header .time {
  color: var(--white);
}

.venues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.venue-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.venue-card:hover {
  transform: translateY(-4px);
}

.venue-name {
  background: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.venue-card h4 {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
}

/* ===== Problems Section ===== */
.problems {
  padding: var(--section-padding);
  background: var(--white);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.problem-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-color);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-4px);
}

.problem-text {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.solution-text {
  color: var(--text-light);
  font-weight: 500;
}

/* ===== Organizers Section ===== */
.organizers {
  padding: var(--section-padding);
  background: var(--light-gray);
}

.organizers-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.organizer-group {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.organizer-group h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.organizer-group p {
  color: var(--text-light);
  font-weight: 500;
  margin: 0;
}

/* ===== FAQ Section ===== */
.faq {
  padding: var(--section-padding);
  background: var(--white);
}

.faq-content {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  background: var(--primary-color);
  color: var(--white);
  padding: 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

.faq-question:hover {
  background: #3A4FB8;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-answer {
  padding: 1.5rem;
  background: var(--light-gray);
}

.faq-answer p {
  margin: 0;
  color: var(--text-light);
}

/* ===== Final CTA Section ===== */
.final-cta {
  padding: var(--section-padding);
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
}

.cta-title {
  color: var(--white);
  margin-bottom: 2rem;
}

/* ===== Podcast Section ===== */
.podcast-adventure {
  padding: var(--section-padding);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.podcast-adventure::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FFF8F1;
  z-index: 0;
  pointer-events: none;
}

@keyframes rotate-glow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.podcast-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)) padding-box,
              linear-gradient(135deg, rgba(123, 175, 175, 0.5), rgba(47, 62, 158, 0.5)) border-box;
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 14px 36px rgba(47, 62, 158, 0.15), 0 2px 0 rgba(255, 255, 255, 0.5) inset;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.podcast-header {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* タイトル上の小さなバッジ */
.podcast-header::before {
  content: 'PODCAST';
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  background: linear-gradient(135deg, #7BAFAF, #2F3E9E);
  border-radius: 999px;
}

.podcast-title {
  font-family: var(--font-japanese);
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  letter-spacing: 0.01em;
}

.podcast-icon {
  display: inline-block;
  font-size: 2rem;
  animation: sound-wave 2s ease-in-out infinite;
}

@keyframes sound-wave {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.podcast-subtitle {
  font-size: 1rem;
  color: var(--support-color);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* ラジオアイコンのアニメーションを停止 */
.podcast-icon {
  animation: none;
}

.podcast-player iframe {
  box-shadow: 0 10px 28px rgba(47, 62, 158, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 16px !important;
  border: 1px solid rgba(47, 62, 158, 0.12);
}

.podcast-player iframe:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(47, 62, 158, 0.22);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .podcast-card {
    padding: 1.5rem;
    border-radius: 28px;
  }
  .podcast-title {
    flex-direction: column;
    gap: 0.5rem;
    font-size: clamp(1.6rem, 6vw, 2rem);
  }
  /* モバイルでのデコレーション（柔らかい光彩を背面に） */
  .podcast-card::after {
    content: '';
    position: absolute;
    inset: -8%;
    border-radius: inherit;
    background: radial-gradient(420px 220px at 50% -10%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0)),
                radial-gradient(360px 260px at 10% 90%, rgba(123, 175, 175, 0.18), rgba(123, 175, 175, 0)),
                radial-gradient(460px 300px at 90% 10%, rgba(47, 62, 158, 0.15), rgba(47, 62, 158, 0));
    z-index: -1;
    filter: blur(4px);
  }
}

/* ===== Footer ===== */
.footer {
  background: var(--text-color);
  color: var(--white);
  padding: 3rem 0;
}

.footer-organizer {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-info h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-info p {
  opacity: 0.8;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  /* ロゴのサイズをスマホ表示時に小さくする */
  .logo h1 {
    font-size: 1.1rem;
  }
  
  .container {
    padding: 0 20px;
  }
  
  /* ヘッダーメニューをスマホ表示時には非表示 */
  .nav {
    display: none;
  }
  
  .header-content {
    justify-content: center;
  }
  
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  /* スマホ表示時のヒーロータイトル調整 */
  .hero-top-image .hero-title {
    font-size: clamp(1.5rem, 4.5vw, 2.2rem);
    margin-bottom: 1rem;
    text-align: left;
  }
  
  /* h2タイトルを左寄せ */
  .section-title {
    text-align: left;
    font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  }
  
  /* タイムテーブルのサブタイトルを左寄せ */
  .section-subtitle {
    text-align: left;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .schedule-item {
    flex-direction: column;
    gap: 1rem;
  }
  
  .schedule-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 0.5rem 1rem;
  }
  
  .venues-grid {
    grid-template-columns: 1fr;
  }
  
  .problems-grid {
    grid-template-columns: 1fr;
  }

  .cta-title {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 2rem;
  }
  
  .podcast-title {
    font-size: 1.4rem;
  }
  
  .organizers-content {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
  }

  .footer-organizer {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .event-info {
    padding: 1rem;
  }
  
  .venue-card, .problem-card, .organizer-group {
    padding: 1.5rem;
  }
  
  .cta-button-large, .cta-button-final {
    padding: 14px 28px;
    font-size: 14px;
  }
}

/* Mobile S だけヘッダーとロゴがかぶるのでpadding追加 */
@media (max-width: 320px){
  .hero { padding-top: 130px; }  /* ここも微調整OK */
}

/* ================================
   ヘッダーのレイアウト固定用スタイル
   ※ speakers.htmlデイ利用している Tailwind CDN の preflight によるリセットや
      .container ユーティリティの上書きを防ぐため
   ================================ */

/* ヘッダー直下の .container に幅・左右余白を固定 */
.header > .container {
  max-width: var(--container-max-width) !important; 
  padding-left: 24px !important;  
  padding-right: 24px !important; 
  margin-left: auto !important;   
  margin-right: auto !important;  
}

/* ロゴの見た目を固定（Tailwind初期化で消える余白やフォントサイズを復元） */
.header .logo h1 {
  font-family: var(--font-japanese) !important; 
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  line-height: 1.2 !important;
  color: var(--primary-color) !important;
  margin: 0 !important;
}

/* ロゴとナビゲーションの間隔・配置を固定 */
.header .header-content {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 2rem !important;
}

/* ナビゲーション部分の並びと間隔を固定 */
.header .nav {
  display: flex !important;
  align-items: center !important;
  gap: 2rem !important;
}

/* ナビゲーションリンクの見た目を固定 */
.header .nav-link {
  color: var(--text-color) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}
.header .nav-link:hover {
  color: var(--primary-color) !important;
}

/* CTAボタンの表示崩れを防ぐ */
.header .cta-button {
  display: inline-block !important;
}

/* 固定ヘッダーの下に隠れないよう、speakers のメインだけ上余白を足す */
.with-header-offset { 
  padding-top: 100px !important;  /* PC/タブレット */
}

@media (max-width: 320px){
  .with-header-offset { 
    padding-top: 130px !important; 
  } 
}

/* ================================
   ハンバーガー関連
   ================================ */
.hamburger{
  display:none;
  flex-direction:column;
  justify-content:space-between;
  width:24px; height:18px;
  background:none; border:none; padding:0; cursor:pointer;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 4px;
  background: #333;
  border-radius: 2px;
}

/* モバイルメニューはデフォルト非表示（Tailwind使ってないので自前定義） */
.hidden{ display:none !important; }

/* モバイルメニューの見た目 */
.mobile-nav{
  background:#fff; border-top:1px solid var(--border-color);
  padding:12px 24px; display:flex; flex-direction:column; gap:12px;
}

/* ---- スマホ幅でだけ切り替え ---- */
@media (max-width: 768px){
  /* ここが効いていないと「ハンバーガーにならない」 */
  .header .nav{ display:none !important; }       /* PC用ナビを隠す */
  .hamburger{ display:flex; }                    /* ハンバーガーボタンを出す */
  .header-content{ justify-content:space-between !important; }
}

/* 参考：PCでは横並びにしておく（念のため） */
@media (min-width: 769px){
  .header .nav{ display:flex; align-items:center; gap:2rem; }
}

