/* =========================================
   サクッと予約 - 参加者トップページ用CSS
   ファイル名: home.css
   ========================================= */

/* ベース設定 */
body {
  font-family: "Noto Sans JP", "Heisei KakuGo-W5", sans-serif;
  background-color: #f8fafc;
  color: #333;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

/* -----------------------------------------
   ヘッダー
----------------------------------------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.3rem;
}

.logo a {
  color: #1e3a8a;
  text-decoration: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
}

.main-nav a:hover {
  color: #2563eb;
}

/* -----------------------------------------
   ヒーローセクション
----------------------------------------- */
.hero {
  background: 
    linear-gradient(135deg, rgba(232, 241, 251, 0.2) 0%, rgba(248, 250, 252, 0.3) 100%),
      url("/dist/assets/img/hero2.png") center 40% / 1200px auto no-repeat;
    //background: linear-gradient(rgba(58, 110, 165, 0.5), rgba(58, 110, 165, 0.5)),
    //url("/dist/assets/img/hero2.png") center/cover no-repeat;
  text-align: center;
  padding: 6rem 1rem;
  color: #fff;
  position: relative;
}

.hero h2 .accent {
  color: #f97316; /* サクッと予約のブランドブルー */
  font-weight: 700;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background-color: #2563eb;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

/* -----------------------------------------
   特徴セクション
----------------------------------------- */
.features {
  background: #fff;
  padding: 5rem 1rem;
  text-align: center;
}

.features .container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 2.5rem;
}

.feature-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-item {
  background: #f9fafb;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.feature-item h4 {
  font-size: 1.2rem;
  color: #2563eb;
  margin-bottom: 0.8rem;
}

.feature-item p {
  color: #475569;
  font-size: 0.95rem;
}

/* -----------------------------------------
   イベント一覧
----------------------------------------- */
.events {
  background: #f8fafc;
  padding: 5rem 1rem;
  text-align: center;
}


.event-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2.5rem;
}


@media (min-width: 992px) {
  .event-grid {
    display: grid;
    grid-template-columns: repeat(3, 300px); /* ← カード幅を固定で3枚 */
    justify-content: center; /* ← 全体を中央寄せ */
    gap: 2rem; /* カード間の余白を維持 */
  }
}

/* タブレットでは2列 */
@media (max-width: 991px) and (min-width: 601px) {
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホは1列 */
@media (max-width: 600px) {
  .event-grid {
    grid-template-columns: 1fr;
  }
}

.event-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.event-thumb {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #f3f4f6;
}

.event-body {
  padding: 1rem 1.25rem 1.5rem;
  text-align: left;
}

.event-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 0.25rem;
}

.event-card h4 {
  margin: 1rem 0 0.25rem;
  font-size: 1.1rem;
  color: #1e293b;
}

.event-card .date {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.event-card .price {
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.event-card .capacity {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 1rem;
}

.btn-secondary {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.25rem;
  background: #f1f5f9;
  border-radius: 9999px;
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

/* -----------------------------------------
   主催者誘導セクション
----------------------------------------- */
/*
.cta-host {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
*/

.cta-host {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  text-align: center;
  padding: 6rem 1rem; /* ← 高さを増して視覚的な帯に */
  margin-top: 4rem; /* ← 上との間にゆとりを追加 */
  position: relative;
  overflow: hidden; /* ← スクロール時の切れ感防止 */
}

.cta-host::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  z-index: -1;
}

/* 中央コンテンツの幅制限 */
.cta-host .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.cta-host h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta-host p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  opacity: 0.9;
}

.cta-host .btn-primary {
  background: #fff;
  color: #2563eb;
}

.cta-host .btn-primary:hover {
  background: #f8fafc;
}

/* -----------------------------------------
   フッター
----------------------------------------- */
.site-footer {
  background: #f1f5f9;
  text-align: center;
  padding: 2rem 0;
  color: #475569;
  font-size: 0.9rem;
}



/* =========================================
   モバイル対応（幅768px以下）
========================================= */
@media (max-width: 768px) {

  /* ヘッダー */
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav ul {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  /* ヒーローセクション */
  .hero {
    padding: 4rem 1rem 5rem;
    background: 
      linear-gradient(135deg, rgba(232, 241, 251, 0.4) 0%, rgba(248, 250, 252, 0.5) 100%),
      url("/dist/assets/img/hero2.png") center top / cover no-repeat;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-inner {
    max-width: 90%;
    //background: rgba(255, 255, 255, 0.75);
    border-radius: 0.75rem;
    padding: 1.5rem 1rem;
    text-align: center;
    backdrop-filter: blur(4px);
  }

  .hero h2 {
    font-size: 1.6rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }

  .hero h2 .accent {
    color: #f97316;
    font-weight: 700;
  }

  .hero p {
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 1.5rem;
  }

  .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 9999px;
  }

  /* 特徴セクション */
  .features {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-item {
    padding: 1.5rem 1rem;
  }

  .feature-item h4 {
    font-size: 1.05rem;
  }

  .feature-item p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* イベント一覧 */
  .events {
    padding: 3.5rem 1rem;
  }
 /*
  .event-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
 */

  .event-card {
    border-radius: 0.75rem;
  }

  .event-thumb {
    height: 160px;
  }

  .event-title {
    font-size: 1rem;
  }

  .event-card .date,
  .event-card .price,
  .event-card .capacity {
    font-size: 0.85rem;
  }

  .btn-secondary {
    font-size: 0.9rem;
    padding: 0.45rem 1.25rem;
  }

  /* 主催者誘導 */
  .cta-host {
    padding: 3rem 1rem;
  }

  .cta-host h3 {
    font-size: 1.3rem;
  }

  .cta-host p {
    font-size: 0.9rem;
  }

  /* フッター */
  .site-footer {
    padding: 1.5rem 0;
    font-size: 0.85rem;
  }
}

/* =========================================
   スーパースモール（幅480px以下）
========================================= */
@media (max-width: 480px) {
  .hero {
    padding: 3rem 0.5rem;
    min-height: 420px;
  }

  .hero-inner {
    padding: 1rem 0.75rem;
  }

  .hero h2 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .btn-primary {
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
  }

  .event-thumb {
    height: 140px;
  }
}

/* =============================
   フッター共通スタイル
   ============================= */

.site-footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 2rem 0; /* 少し広めに変更 */
  font-size: 0.9rem;
  color: #6c757d;
}

.site-footer .footer-links a {
  color: #6c757d;
  margin-right: 1.25rem; /* ← 各リンク間の余白を広げました（1.25rem） */
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer .footer-links a:hover {
  color: #0d6efd;
}

@media (max-width: 767px) {
  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
  .site-footer .footer-links {
    margin-bottom: 0.5rem;
  }
}



/* ↓ 768px以下で強制改行＋インデント */
@media (max-width: 768px) {
  .hero-inner h2 {
     display: block;
    flex-direction: column;
    align-items: flex-start;
  }

 .hero-inner h2 span.accent {
    margin-left: 7.2em; /* 右寄せ風に調整 */
  }

}

/* 主催者誘導セクションを中央寄せ＆幅1200px制限 */


