/* === 共通設定 === */
body {
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  background-color: #fff;
  color: #333;
  margin: 0;
  padding: 40px;
}

.container {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
}

.heading-2 {
  padding: 0 0.4em 0.2em;
  border-bottom: 3px solid #e60416;
  background-color: #fff;
  color: #333;
}

.description {
  font-size: 16px;
  margin-bottom: 40px;
  line-height: 1.8;
  text-align: left;
}

.highlight {
  color: #e60033;
  font-weight: bold;
}

ul, ol {
  margin-left: 20px;
  margin-bottom: 20px;
  line-height: 1.8;
}

/* === ボックス一覧 === */
.boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-content: center;
  margin-bottom: 50px;
}

.box {
  border: 1px solid #333;
  padding: 5px;
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 8px;
}

.arrow {
  width: 0;
  height: 0;
  margin-top: 10px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #e60033; /* ↓ 下向き */
}

@media screen and (max-width: 768px) {
  .boxes {
    grid-template-columns: repeat(2, 1fr);
  }

  .box {
    font-size: 14px; /* 👈 スマホだけ文字サイズを小さく */
  }

  .arrow {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #e60033;
  }
}




/* === セクションタイトル === */
.section-title {
  background-color: #3d3d3d;
  color: #fff;
  text-align: center;
  font-size: 22px;
  padding: 20px 0;
  font-weight: normal;
}

/* === フローステップ === */
.flow-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px 0;
}

.flow-step {
  width: 250px;
  border: 2px solid;
  border-radius: 20px;
  padding: 20px 15px;
  text-align: center;
  font-size: 15px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
}

.flow-step .step-header {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  font-weight: bold;
  color: white;
  border-radius: 5px;
  font-size: 14px;
}

.flow-step.blue {
  border-color: #337ab7;
}
.flow-step.blue .step-header {
  background-color: #337ab7;
}

.flow-step.orange {
  border-color: #f47c20;
}
.flow-step.orange .step-header {
  background-color: #f47c20;
}

.step-icon {
  width: 40px;
  height: auto;
  margin-bottom: 10px;
}

/* === レスポンシブ対応（スマホ） === */
@media screen and (max-width: 768px) {
  .flow-container {
    flex-direction: column;
    align-items: center;
  }

 .arrow1 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  align-self: center;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

@media screen and (max-width: 768px) {
  .arrow1 {
    transform: rotate(90deg); /* スマホで下向きに */
  }
}

  .flow-step {
    width: 90%;
    max-width: 350px;
  }

  .flow-step .step-header {
    font-size: 13px;
  }

  .step-icon {
    width: 36px;
  }
}

/* === ボタンエリア（事前申込） === */
.container1 {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.button_1 {
  width: 220px;
  padding: 30px;
  border-radius: 20px;
  font-size: 14px;
  text-align: center;
  line-height: 1.6;
  font-weight: bold !important;
  color: #fff;
  margin-top: 40px;
}

.button_1.blue {
  background-color: #4A79C9;
}

.button_1.orange {
  background-color: #ED7D31;
}

/* === マニュアル・FAQ メニュー === */
.menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-item {
  background-color: #8CC63F;
  color: #fff;
  padding: 20px 40px;
  border-radius: 20px;
  font-size: 18px;
  text-align: center;
  font-weight: bold !important;
}
/* コンテナ：ボタンを並べる */
.button-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap; /* スマホで縦並びになる */
  margin: 40px 0;
}

/* 共通ボタンスタイル */
.custom-button {
  display: inline-block;
  padding: 20px 40px;
  font-size: 20px;
  border-radius: 30px;
  color: #fff !important;
  text-decoration: none;
  font-weight: bold !important;
  text-align: center;
  min-width: 180px;
  transition: background-color 0.3s ease;
}

/* カラーバリエーション */
.custom-button.orange {
  background-color: #ed7d31;
}

.custom-button.blue {
  background-color: #4a79c9;
}

/* ホバー時の色変化（任意） */
.custom-button:hover {
  opacity: 0.9;
}

@media screen and (max-width: 748px) {
  .custom-button {
    width: 40%; 
    font-size: 16px;
  }
}

/* 全体のボタンセクション */
.button-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 上部の申込ボタンエリア（2列） */
.application-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

/* 個別申込ボタン */
.app-button {
  display: inline-block;
  width: 380px;
  padding: 40px 25px;
  border-radius: 20px;
  font-size: 20px;
  font-weight: bold !important;
  text-align: center;
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.app-button:hover {
  transform: translateY(-4px);
}

.app-button.blue {
  background-color: #4A79C9;
}

.app-button.orange {
  background-color: #ED7D31;
}

/* 下部のマニュアル・FAQリンク */
.manual-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.manual-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 60px;
  background-color: #8CC63F;
  color: white !important;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold !important;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.manual-button:hover {
  opacity: 0.9;
}

/* レスポンシブ対応：スマホなどで縦並びに */
@media screen and (max-width: 700px) {
  .app-button {
    width: 100%;
    max-width: 90vw;
    font-size: 18px;
  }

  .manual-button {
    width: 100%;
    max-width: 300px;
    height: 55px;
    font-size: 15px;
  }
}

/* スマホ専用表示 */
.sp-only {
  display: none;
}

@media screen and (max-width: 768px) {
  .sp-only {
    display: inline;
  }
}
/* PC専用表示 */
.pc-only {
  display: inline;
}

@media screen and (max-width: 768px) {
  .pc-only {
    display: none;
  }
}
.table-wrapper {
            overflow-x: auto;
            margin-bottom: 30px;
        }

        table {
            border-collapse: collapse;
            width: 100%;
            min-width: 500px; /* 横スクロールを促す */
        }

        th, td {
            border: 1px solid #000;
            text-align: center;
            padding: 8px;
        }

        /* スマホ向けの小さめ画面での調整 */
        @media (max-width: 600px) {
            td, th {
                font-size: 14px;
                padding: 6px;
            }
        }

.table-responsive {
      overflow-x: auto;
      margin-bottom: 30px;
  }

  table {
      border-collapse: collapse;
      width: 100%;
      min-width: 800px; /* これでスマホで横スクロールが出る */
  }

  th, td {
      border: 1px solid #000;
      text-align: center;
      padding: 8px;
  }

  /* 横スクロールの案内メッセージ */
  .scroll-message {
      display: none;
      font-size: 14px;
      color: #555;
      margin: 10px 0;
      text-align: center;
  }

  /* スマホ表示時だけ表示 */
  @media (max-width: 600px) {
      .scroll-message {
          display: block;
      }

      th, td {
          font-size: 12px;
          padding: 4px;
      }
  }
/* リンクの長いURL対応（全体に効かせる） */
a {
  word-break: break-all;
  overflow-wrap: break-word;
}
