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

p {
  text-indent: 1em;
}

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

h2 {
  font-size: 36px;
  margin-bottom: 50px;
}

.title1 {
  height: 350px;
  padding-top: 150px;
}

.title2 {
  padding-top: 150px;
}

.taiken-section {
  width: min(100%, 1000px);
  margin: 40px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.taiken-card-link {
  display: block;
}

.taiken-card {
  min-height: 200px; /* 高さを自動調整しつつ最低値を確保 */
  border: 2px solid #88b2d1;
  border-radius: 14px;
  background-color: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible; /* 見出しがはみ出す場合に切れないように */
}

.taiken-card h3 {
  font-size: 24px;
  line-height: 1.4;
  margin: 0 0 8px 0; /* 見出し直下の余白を確保 */
  overflow-wrap: break-word;
}

.taiken-card .button {
  margin-top: auto;
  display: inline-flex;
  align-self: flex-end;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid #4a69a4;
  border-radius: 999px;
  color: #4a69a4;
  font-weight: bold;
  background-color: #fff;
}

@media screen and (max-width: 480px) {
  .naiyou,
  section {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .taiken-section {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0;
  }
  /* スマホで本文の両端余白をしっかり確保し、タイトルの折返しを防止 */
  .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;
  }

  .title1 h1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 30px;
    font-weight: bold;
    padding-bottom: 10px;
  }

  .taiken-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }
}
