/* * =========================================
 * OTAKE GAME CAMP 2025 LP スタイル
 * =========================================
 */

.lp-otake-game-camp {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Hiragino Sans", "YuGothic", Meiryo, sans-serif;
  line-height: 1.7;
  color: #333;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  box-sizing: border-box; /* 念のため追加 */
}

.lp-otake-game-camp h1,
.lp-otake-game-camp h2,
.lp-otake-game-camp h3 {
  font-weight: 700;
  line-height: 1.4;
}

.lp-otake-game-camp h1 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}

.lp-otake-game-camp h2 {
  font-size: 1.5rem;
  margin: 2.5em 0 0.8em;
  border-left: 6px solid #f5a623;
  padding-left: 0.6em;
}

.lp-otake-game-camp h3 {
  font-size: 1.2rem;
  margin: 1.5em 0 0.4em;
}

.lp-otake-game-camp p {
  margin: 0.4em 0 0.8em;
}

/* * =========================================
 * HERO (冒頭)
 * =========================================
 */
.lp-otake-game-camp .hero {
  background: #fff7e6;
  border-radius: 16px;
  padding: 20px 18px;
  margin-bottom: 24px;
  text-align: left;
  overflow: hidden; /* float解除 */
}

/* 【修正】中央配置に変更 */
.lp-otake-game-camp .hero-top {
  display: block; /* ブロック要素に変更 */
  text-align: center; /* 全体を中央揃え */
  gap: 12px;
  margin-bottom: 10px;
}

/* 【修正】GAME CAMPロゴを一行占拠する大きさに、中央配置を維持 */
.lp-otake-game-camp .hero-top img.hero-logo {
  display: block !important;
  max-width: 90% !important; /* 親要素の90%幅に */
  height: auto !important;
  width: auto !important;
  object-fit: contain !important;
  margin: 0 auto 0.5em auto !important; /* 中央配置 */
  float: none !important;
}

.lp-otake-game-camp .hero-top-text {
  flex: 1;
  min-width: 0;
  text-align: center; /* テキストも中央揃え */
}

.lp-otake-game-camp .hero-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f29300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lp-otake-game-camp .hero-title-main {
  font-size: 1.8rem;
  margin: 0.4em 0 0.2em;
}

.lp-otake-game-camp .hero-sub {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.8em;
}

.lp-otake-game-camp .hero-info {
  font-size: 0.95rem;
  margin-bottom: 1em;
  overflow: hidden; /* floatを内包するため */
}
.lp-otake-game-camp .hero-info-text {
   overflow: hidden; /* 回り込み */
}

.lp-otake-game-camp .hero-info strong {
   display: block; /* 項目ごとに改行 */
}

.lp-otake-game-camp .hero-info img.alignright {
  max-width: 500px;
  height: auto;
  width: 55%;
}

.lp-otake-game-camp .hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.lp-otake-game-camp .btn-primary {
  display: inline-block;
  padding: 10px 22px;
  background: #f29300;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
}

.lp-otake-game-camp .btn-primary:hover {
  opacity: 0.9;
}

.lp-otake-game-camp .hero-note {
  font-size: 0.85rem;
  color: #666;
}

/* 後援用のスタイル */
.lp-otake-game-camp .hero-sponsorship {
    font-size: 0.95rem;
    font-weight: 700;
    /* 元々 right でしたが、HTMLで移動したので中央揃えにすることも検討 */
    text-align: left; /* info-text内の他のstrongと揃える */
    margin: 0.5em 0; /* info-text内の他のstrongに合わせる */
    color: #555;
}


/* * =========================================
 * スペシャルゲスト セクション
 * =========================================
 */
.lp-otake-game-camp .guest-section {
  background: #fdfdfd; 
  border: 2px solid #f5a623;
  border-radius: 16px;
  padding: 20px 24px;
  margin: 32px 0;
  overflow: hidden;
}

.lp-otake-game-camp .guest-section h2 {
  margin-top: 0;
  margin-bottom: 0.8em;
  text-align: center;
  font-size: 1.6rem;
  color: #f29300;
  border-left: none;
  padding-left: 0;
}

.lp-otake-game-camp .guest-box {
  overflow: hidden;
}

.lp-otake-game-camp .guest-box-content {
    overflow: hidden;
}

.lp-otake-game-camp .guest-box img.alignleft {
   max-width: 127px;
   height: auto;
}

.lp-otake-game-camp .guest-title {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 0.5em;
  text-align: center;
}

.lp-otake-game-camp .guest-name {
  display: block;
  font-size: 2.2rem;
  color: #f29300;
  letter-spacing: 0.05em;
  margin: 0.1em 0;
}

.lp-otake-game-camp .guest-box p {
  font-size: 0.95rem;
  text-align: left;
  margin-bottom: 0.5em;
}

/* * 共通パーツ
 */
.lp-otake-game-camp ul {
  padding-left: 1.2em;
  margin: 0.3em 0 0.8em;
}

.lp-otake-game-camp li {
  margin: 0.2em 0;
}

.lp-otake-game-camp .small {
  font-size: 0.85rem;
  color: #666;
}

/* * コンテンツ要素
 */
.lp-otake-game-camp .point-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.lp-otake-game-camp .point-box {
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 14px 14px 12px;
  background: #fff;
  overflow: hidden;
}

.lp-otake-game-camp .point-title {
  font-weight: 700;
  margin-bottom: 0.4em;
  color: #f29300;
  font-size: 1rem;
}

.lp-otake-game-camp .program-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.lp-otake-game-camp .program-table th,
.lp-otake-game-camp .program-table td {
  border: 1px solid #ddd;
  padding: 6px 8px;
  vertical-align: top;
}

.lp-otake-game-camp .program-table th {
  background: #fff7e6;
  width: 26%;
  white-space: nowrap;
}

.lp-otake-game-camp .faq-item {
  margin-bottom: 1.2em;
}

.lp-otake-game-camp .faq-q {
  font-weight: 700;
  margin-bottom: 0.2em;
}

.lp-otake-game-camp .faq-a {
  padding-left: 0.5em;
}

.lp-otake-game-camp .faq-a p {
  margin: 0;
}

.lp-otake-game-camp .access-box {
  background: #fafafa;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.93rem;
}

.lp-otake-game-camp .access-box p {
   margin: 0.5em 0;
}

/* フッターロゴ */
.lp-otake-game-camp-footer-logos {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 10px;
}

.lp-otake-game-camp .lp-otake-game-camp-footer-logos .footer-logo-item {
    display: inline-block;
}

.lp-otake-game-camp .lp-otake-game-camp-footer-logos .footer-logo-item img {
  height: 100px !important;
  width: auto !important;
  display: block !important;
  object-fit: contain !important;
  float: none !important;
}

/* * 協賛セクション（テキストのみ）
 */
.sponsor-section {
  margin-top: 24px;
}

.sponsor-section h2 {
  margin-bottom: 0.5em;
}
.sponsor-section h2 + .sponsor-item {
   margin-top: 0.5em;
}
.sponsor-section .sponsor-item + h2 {
   margin-top: 1.5em;
}

.sponsor-block {
  margin-top: 12px;
  margin-bottom: 20px;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
  gap: 8px 16px;
}

.sponsor-item.text-only {
  font-size: 0.9rem;
  line-height: 1.5;
}

.sponsor-name {
  white-space: normal;
}

/* * =========================================
 * WordPress画像クラス対応
 * =========================================
 */
.lp-otake-game-camp .alignleft {
  float: left;
  margin: 0.5em 1.5em 0.5em 0;
  height: auto;
}
.lp-otake-game-camp .alignright {
  float: right;
  margin: 0.5em 0 0.5em 1.5em;
  height: auto;
}
.lp-otake-game-camp .wp-image-6455 { /* 2024年度決勝大会の画像 */
  max-width: 500px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  display: block;
  height: auto;
}

.lp-otake-game-camp .point-box img {
    height: 180px;
    object-fit: contain;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.lp-otake-game-camp img.wp-image-6466 {
    max-width: 300px;
}


.lp-otake-game-camp .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  max-width: 100%;
  width: auto;
  height: auto;
}
.lp-otake-game-camp .alignnone {
  display: block; 
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  max-width: 100%;
  width: auto;
  height: auto;
}


/* 画像の回り込み解除 (clearfix) */
.lp-otake-game-camp .hero-info:after,
.lp-otake-game-camp .guest-box:after,
.lp-otake-game-camp section:after,
.lp-otake-game-camp .point-box:after {
  content: "";
  display: table;
  clear: both;
}
/* * =========================================
 * レスポシブ対応
 * =========================================
 */
@media (max-width: 767px) {
  .lp-otake-game-camp .hero-top {
    gap: 10px;
    display: block;
    text-align: center; /* モバイルでも中央揃え */
  }

  /* 【修正】ヒーローロゴ（モバイル）を中央に、一行占拠 */
  .lp-otake-game-camp .hero-top img.hero-logo {
    max-width: 90% !important; /* モバイルでも幅を大きく */
    float: none !important; /* floatを解除 */
    margin: 0 auto 0.5em auto !important; /* 中央配置 */
  }
  
  .lp-otake-game-camp .hero-info img.alignright {
      max-width: 80%;
      width: auto;
      float: none;
      margin: 1em auto;
      display: block;
  }

  .lp-otake-game-camp .guest-section {
    padding: 16px 18px;
  }
  .lp-otake-game-camp .guest-section h2 {
    font-size: 1.4rem;
  }
  .lp-otake-game-camp .guest-name {
    font-size: 1.9rem;
  }

  .lp-otake-game-camp .lp-otake-game-camp-footer-logos .footer-logo-item img {
    height: 70px !important;
  }

  /* 後援用のスタイル（モバイル） */
  .lp-otake-game-camp .hero-sponsorship {
      text-align: left; /* info-text内の他のstrongと揃える */
      font-size: 0.95rem; /* 基本サイズに合わせる */
      margin: 0.5em 0; /* info-text内の他のstrongに合わせる */
  }

  .sponsor-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 6px 12px;
  }
  
  .lp-otake-game-camp .alignleft,
  .lp-otake-game-camp .alignright,
  .lp-otake-game-camp .aligncenter,
  .lp-otake-game-camp .alignnone {
       float: none;
       display: block;
       margin: 1em auto;
       max-width: 90%;
       min-width: 0;
       width: auto;
  }
  
  .lp-otake-game-camp .hero-top img.hero-logo {
       float: none !important;
       max-width: 90% !important; /* 【修正】再指定 */
  }

  .lp-otake-game-camp .point-box img {
      height: 150px;
      object-fit: contain;
      width: 80%;
      max-width: none;
  }
  .lp-otake-game-camp img.wp-image-6466 {
      max-width: 250px;
  }

}

@media (min-width: 768px) {
  .lp-otake-game-camp {
    padding: 32px 8px 48px;
  }

  .lp-otake-game-camp h1 {
    font-size: 2.1rem;
  }

  .lp-otake-game-camp .hero {
    padding: 24px 24px 22px;
  }

  /* 【修正】ヒーローロゴ（PC）を中央に、一行占拠 */
  .lp-otake-game-camp .hero-top img.hero-logo {
    max-width: 700px !important; /* PCでさらにロゴ幅を拡大（例として700px） */
    width: 90% !important; /* 親要素の90%に設定 */
  }

  .lp-otake-game-camp .point-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}