@charset "utf-8";
/* ==========================================================================
   小学校 入学準備（/kosodate/1nensei/）記事内共通パーツ
   - 要約（30秒でわかるポイント）: .article-summary
   - 目次（アコーディオン）        : .article-toc
   - インラインバナー              : .article-bnr
   使用するページの <head> で style.css の後に読み込む
   ========================================================================== */

/* --------------------------------------------------------------------------
   要約（30秒でわかるポイント）
   -------------------------------------------------------------------------- */
.article-summary {
  margin-bottom: 40px;
  border: 2px solid #9DD2FF;
  border-radius: 8px;
  background-color: #fff;
  overflow: hidden;
}
.article-summary__title {
  margin: 0;
  padding: 10px 20px;
  background-color: #E7F4FF;
  color: #1061C2;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.4;
}
.article-summary__list {
  margin: 0;
  padding: 16px 20px;
  list-style: none;
}
.article-summary__item {
  line-height: 1.7;
}
.article-summary__item + .article-summary__item {
  margin-top: 10px;
}
.article-summary__label {
  color: #1061C2;
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   目次（アコーディオン）
   <details> の open 属性の有無で初期状態（開/閉）を切り替える
   -------------------------------------------------------------------------- */
.article-toc {
  margin-bottom: 60px;
  background-color: #F5F5F5;
  border-radius: 8px;
}
.article-toc__title {
  position: relative;
  display: block;
  padding: 16px 56px 16px 20px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.article-toc__title::-webkit-details-marker {
  display: none;
}
/* 開閉アイコン（＋／−） */
.article-toc__title::before,
.article-toc__title::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 20px;
  width: 16px;
  height: 2px;
  background-color: #1061C2;
  transform: translateY(-50%);
  transition: transform 0.3s;
}
.article-toc__title::after {
  transform: translateY(-50%) rotate(90deg);
}
.article-toc__details[open] .article-toc__title::after {
  transform: translateY(-50%) rotate(0deg);
}
.article-toc__title:hover {
  opacity: 0.8;
}
.article-toc__title:focus-visible {
  outline: 2px solid #1061C2;
  outline-offset: -2px;
  border-radius: 8px;
}
.article-toc__list {
  margin: 0;
  padding: 0 20px 20px 2.5em;
  list-style: decimal;
}
.article-toc__item {
  line-height: 1.6;
}
.article-toc__item + .article-toc__item {
  margin-top: 8px;
}
.article-toc__link {
  color: #1061C2;
  text-decoration: underline;
}
.article-toc__link:hover {
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   インラインバナー
   -------------------------------------------------------------------------- */
.article-bnr {
  margin: 40px 0;
  text-align: center;
}
.article-bnr__link {
  display: inline-block;
}
.article-bnr__link:hover {
  opacity: 0.8;
}
.article-bnr__img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* --------------------------------------------------------------------------
   表
   -------------------------------------------------------------------------- */
.article-table {
  margin-bottom: 20px;
}
.article-table__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  line-height: 1.7;
}
.article-table__table th,
.article-table__table td {
  padding: 12px 14px;
  border: 1px solid #9DD2FF;
  vertical-align: top;
  text-align: left;
}
.article-table__table th {
  width: 26%;
  background-color: #E7F4FF;
  color: #1061C2;
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   箇条書き（●）
   -------------------------------------------------------------------------- */
.article-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.article-list__item {
  position: relative;
  padding-left: 1.2em;
  line-height: 1.7;
}
.article-list__item + .article-list__item {
  margin-top: 8px;
}
.article-list__item::before {
  content: '●';
  position: absolute;
  top: 0;
  left: 0;
  color: #1061C2;
}

/* --------------------------------------------------------------------------
   SP
   -------------------------------------------------------------------------- */
@media (max-width: 740px) {
  .article-summary__title,
  .article-toc__title {
    font-size: 18px;
  }
  .article-summary__title {
    padding: 10px 16px;
  }
  .article-summary__list {
    padding: 14px 16px;
  }
  .article-toc__title {
    padding: 14px 48px 14px 16px;
  }
  .article-toc__title::before,
  .article-toc__title::after {
    right: 16px;
  }
  .article-toc__list {
    padding: 0 16px 16px 2.3em;
  }
  .article-table__table th,
  .article-table__table td {
    padding: 10px 8px;
    font-size: 14px;
  }
  .article-table__table th {
    width: 28%;
  }
}
