@charset "UTF-8";

/* index.css - 本文用 完全版 */

/* ヘッダーの高さ分、本文を下げる */
.main {
  margin-top: 40px;
}

/* 基本テキストスタイル */
.text {
  margin: 30px;
  text-align: left;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}

/* 基本文字 */
.text p,
.text li {
  color: #333;
}

/* 見出し */
.text h2 {
  margin-top: 36px;
  margin-bottom: 16px;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #2c3e50;
}

.text h4 {
  font-size: 20px;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #2c3e50;
}

/* テキスト内の画像 */
.text img {
  margin: 15px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* リード文 */
.lead {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 24px;
}

/* CTAボックス */
.top-action {
  margin: 30px 0;
  padding: 20px;
  background: #f8fbff;
  border: 1px solid #d7e8f7;
  border-radius: 12px;
  text-align: center;
}

.cta-button {
  display: inline-block;
  padding: 14px 28px;
  background: #2b6cb0;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 999px;
  font-size: 1rem;
  transition: 0.2s;
}

.cta-button:hover {
  opacity: 0.9;
}

/* 冒頭の説明ボックス */
.top-intro-box {
  margin: 28px 0 18px;
  padding: 24px;
  background: #f7fbff;
  border: 2px solid #9fbce3;
  border-radius: 16px;
}

.top-intro-box p {
  margin: 0;
  line-height: 1.9;
}

/* 入口カードグリッド */
.top-entry-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 36px;
}

/* 入口カード */
.top-entry-card {
  display: block;
  padding: 20px 18px;
  background: #fffef9;
  border: 2px solid #d8c979;
  border-radius: 16px;
  text-decoration: none;
  color: #222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.top-entry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  border-color: #9fbce3;
}

.top-entry-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.4;
  color: #274c77;
}

.top-entry-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.8;
  color: #333;
}

/* このサイトでできること */
.top-summary {
  margin: 30px 0;
  padding: 24px;
  background: #fffdf7;
  border: 1px solid #f0e6bf;
  border-radius: 12px;
}

.top-summary ul {
  margin: 12px 0 0 20px;
  line-height: 1.9;
}

/* 各説明セクション */
.top-section {
  clear: both;
  margin-top: 34px;
}

.top-section h2 {
  margin-top: 0;
}

/* 少し広めの画面で5カラムが厳しいとき */
@media screen and (max-width: 1100px) {
  .top-entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .text {
    margin: 16px;
    font-size: 15px;
    line-height: 1.9;
  }

  .text h2 {
    font-size: 1.25rem;
  }

  .text h4 {
    font-size: 16px;
  }

  .text img {
    width: 100%;
    height: auto;
    float: none;
    display: block;
    margin: 20px auto;
  }

  .top-action {
    padding: 18px;
  }

  .top-intro-box {
    padding: 18px;
  }

  .top-entry-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .top-entry-card {
    padding: 18px 16px;
  }

  .top-entry-card h2 {
    font-size: 1.1rem;
  }

  .top-summary {
    padding: 18px;
  }
}

/* さらに小さな端末向け */
@media screen and (max-width: 480px) {
  .text {
    font-size: 15.5px;
    margin: 12px;
  }

  .text h2 {
    font-size: 1.18rem;
  }

  .text h4 {
    font-size: 17px;
  }

  .cta-button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}