/* bottle_rocket.css - Page-specific overrides only */

@font-face {
  font-family: "YuGothic";
  src: url(fonts/Futura-Bol.ttf);
}

p {
  text-indent: 1em;
  font-size: 18px;
  line-height: 30px;
  margin: 0 auto;
  width: 800px;
}

h1 {
  border-bottom: 1px solid #4a69a4;
  letter-spacing: 0.2em;
  display: inline-block;
  font-size: 40px;
  font-weight: bold;
  padding-bottom: 20px;
}

h2 {
  color: #4a69a4;
  border-bottom: 6px #bbe2f1 solid;
  font-size: 36px;
  font-weight: bold;
  padding-top: 30px;
  text-align: center;
  letter-spacing: 0.2em;
  margin-bottom: 50px;
}

.title1 {
  display: flex;
  align-items: center;
  justify-content: start;
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding-top: 120px;
  gap: 12px;
  flex-wrap: wrap; /* 小さい画面で見出しが見切れないように折り返す */
}

.title_1 {
  background-image: url(../images/title1.png);
  width: 160px;
  height: 96px;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.title1 h1 {
  margin: 0;
  margin-left: 8px;
  margin-bottom: 8px; /* 見出し直下の余白を確保 */
  line-height: 1.2;
}

/* 装飾を h1 の ::before にして PC と同様の一体化レイアウトにする */
.title1 > .title_1 {
  display: none !important;
}

.title1 > h1 {
  position: relative;
  padding-left: 120px;
}

.title1 > h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 96px;
  height: 56px;
  background-image: url(../images/title1.png);
  background-size: contain;
  background-repeat: no-repeat;
}

.naiyou {
  padding-top: 110px;
  padding-bottom: 60px;
}

section.naiyou > p {
  text-indent: 0;
  text-align: left;
  width: 100%;
  max-width: 900px;
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 30px;
    font-weight: bold;
    padding-bottom: 10px;
  }

  .naiyou p,
  .content_block p {
    width: 100%;
    max-width: 100%;
  }
}

/* スマホで本文の両端余白を確保（taiken の体験ページ用） */
@media screen and (max-width: 480px) {
  .naiyou,
  section.naiyou,
  .content_block {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  .naiyou p,
  .content_block p {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.8;
  }
}

@media screen and (max-width: 768px) {
  .title1 {
    padding-top: 80px;
    gap: 10px;
  }

  .title1 h1 {
    font-size: 28px;
  }
}

.form-button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 40px;
}

.form-button {
  background-color: #4a69a4;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  text-decoration: none;
}

.form-button:hover {
  background-color: #3b568a;
  transform: scale(1.05);
}

.challenge-info,
.experience-info {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
  font-size: 16px;
  color: #2c3e50;
  line-height: 1.8;
}

.challenge-info h2,
.experience-info h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #4a69a4;
  padding-bottom: 6px;
}

.experience-list,
.consent-list,
.challenge-list {
  padding-left: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.experience-list li,
.consent-list li,
.challenge-list li {
  margin-bottom: 12px;
}

.schedule-grid-6 {
  display: grid;
  gap: 15px;
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
}

.schedule-grid-8 {
  display: grid;
  gap: 15px;
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
}

.schedule-card {
  background-color: #f0f4fa;
  padding: 15px 25px;
  border-radius: 10px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
  width: 100%;
}

.schedule-card:hover {
  transform: scale(1.03);
  background-color: #e6ecf5;
}

@media screen and (max-width: 480px) {
  /* リストコンテナのスマホ対応：幅を100%に */
  .experience-list,
  .consent-list,
  .challenge-list {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  /* リストアイテムのスマホ対応：テキスト折り返し */
  .experience-list li,
  .consent-list li,
  .challenge-list li {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* スケジュールグリッド：スマホで縦1列に */
  .schedule-grid-6,
  .schedule-grid-8 {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }
}
