/* =========================================================
   モバイルファースト構成
   ベース(無条件) = SP(〜568px)
   min-width: 569px  = 〜960px 相当
   min-width: 961px  = 〜1024px 相当
   min-width: 1025px = 1025px〜(PC)
   ========================================================= */

#intro .intro_box {
  margin-bottom: 40px;
}

#intro .intro_box .half_box .ttl {
  font-size: 21px;
}

#intro .intro_box .half_box .photo {
  margin-bottom: 20px;
}

.item_btns {
  background: #D2E8FF;
  margin-bottom: -40px;
  padding: 25px 0 25px;
}

.item_btns .ttl {
  font-size: 21px;
  position: relative;
  margin-bottom: 15px;
}

.item_btns .ttl::before {
  content: '';
  background: rgba(45, 137, 248, 0.4);
  height: 1px;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  z-index: 0;
}

.item_btns .ttl > span {
  background: #D2E8FF;
  padding: 0 10px 0 16px;
  display: inline-block;
  position: relative;
  z-index: 10;
}

.item_btns ul {
  gap: 15px 0;
}

.item_btns ul li {
  width: 47.8%;
  max-width: 360px;
}

.item_btns ul li a {
  font-size: 17px;
  font-weight: bold;
  text-align: center;
  color: #fff;
  background: var(--site-primary);
  border-radius: 10px;
  padding: 18px 0 14px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
}

.item_btns ul li a::after {
  content: '';
  background: url("../img/common/icon_arrow-down_circle_white.svg") no-repeat;
  background-size: contain;
  width: 15px;
  height: 15px;
  position: relative;
  top: initial;
  right: initial;
  -webkit-transform: none;
          transform: none;
  margin-top: 8px;
}

.item_table .ttl_stripe_color03 {
  font-size: 23px;
  padding: 0.4em 0 0.5em;
  border-radius: 0;
}

.item_table {
  margin: 0 -5.3vw;
}

.item_card_grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 5.3vw;
  margin: 15px 0 35px;
}

.item_card_grid.last {
  margin-bottom: 30px;
}

.item_card {
  background: #fff;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(45, 137, 248, 0.08);
  overflow: hidden;
}

.item_card__ttl {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  color: #fff;
  background: var(--site-primary);
  padding: 10px 16px;
  margin: 0;
}

.item_card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 14px 16px 16px;
}

.item_card__tags li {
  font-size: 13px;
  line-height: 1.4;
  color: var(--site-primary);
  background: #eaf4ff;
  border: 1px solid #cfe6fd;
  border-radius: 50px;
  padding: 5px 14px;
}

.note_box {
  padding: 16px 20px 16px;
}

.note_box p {
  font-size: 12px;
  padding-left: 50px;
  position: relative;
}

#other .ttl_section_top {
  font-size: 24px;
  line-height: 1.4;
  margin: -5px 0 22px;
}

#other .ttl_section_top .size_small {
  font-size: 0.67em;
}

#other .line_side::before, #other .line_side::after {
  width: 34px;
  height: 42px;
  top: 0;
}

#other .line_side::before {
  left: -38px;
}

#other .line_side::after {
  right: -34px;
}

.memo_box {
  font-size: 14px;
  border: 4px solid #88c7ff;
  padding: 14px 20px 16px;
}

@media screen and (min-width: 569px) {
  #intro .intro_box {
    margin-bottom: 5vw;
  }
  #intro .intro_box .half_box .ttl {
    font-size: 23px;
  }
  #intro .intro_box .half_box .photo {
    margin-bottom: 0;
  }
  .item_btns {
    margin-bottom: -5vw;
    padding: 4vw 0 5vw;
  }
  .item_btns .ttl {
    font-size: 25px;
    margin-bottom: 20px;
  }
  .item_btns .ttl > span {
    padding: 0 10px 0 28px;
    display: block;
  }
  .item_btns ul {
    gap: 20px 0;
  }
  .item_btns ul li {
    width: 32.2%;
  }
  .item_btns ul li a {
    font-size: 16px;
    border-radius: 50px;
    padding: 13px 0 13px;
    display: block;
  }
  .item_btns ul li a::after {
    width: 15px;
    height: 15px;
    position: relative;
    top: 50%;
    right: 8%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    margin-top: 0;
  }
  .item_table .ttl_stripe_color03 {
    font-size: 24px;
    padding: 0.4em 1.25em 0.5em;
  }
  .item_card_grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    padding: 0;
    margin: 2vw 0 4vw;
  }
  .item_card__ttl {
    font-size: 17px;
    padding: 12px 18px;
  }
  .note_box {
    padding: 16px 8% 16px 16%;
  }
  .note_box p {
    font-size: 15px;
    padding-left: 0;
    position: relative;
  }
  #other .ttl_section_top {
    margin-bottom: 36px;
  }
  #other .ttl_section_top .size_small {
    font-size: 0.74em;
  }
  #other .line_side::before, #other .line_side::after {
    width: 31px;
    height: 35px;
    top: -1px;
  }
  #other .line_side::before {
    left: -52px;
  }
  #other .line_side::after {
    right: -46px;
  }
  .memo_box {
    font-size: 15px;
    padding: 3vw 4vw;
  }
}

@media screen and (min-width: 961px) {
  #intro .intro_box {
    margin-bottom: 70px;
  }
  .item_btns {
    margin-bottom: -70px;
    padding: 30px 0 50px;
  }
  .item_btns .ttl {
    font-size: 37px;
  }
  .item_btns ul li a {
    font-size: 20px;
  }
  .item_btns ul li a::after {
    width: 20px;
    height: 20px;
    right: 20px;
  }
  .item_table .ttl_stripe_color03 {
    font-size: 32px;
  }
  .item_card_grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0 40px;
  }
  .item_card__ttl {
    font-size: 20px;
  }
  .note_box {
    padding: 22px 10% 22px 20%;
  }
  .note_box p {
    font-size: 17px;
    position: relative;
  }
  #other .ttl_section_top {
    font-size: 37px;
  }
  .memo_box {
    font-size: 16px;
    padding: 32px 40px 34px;
  }
}

@media screen and (min-width: 1025px) {
  .note_box {
    padding: 22px 10% 22px 25.5%;
  }
}

/* SP専用の上書き: .half_box / .row / .txt_box / img を含む、より詳細度の高いセレクタ。
   PC側は汎用の.half_box・.row(汎用パーツセクション参照、common.css)へフォールバックする
   設計のため、詳細度の関係でmin-widthへの反転が安全に行えない。元のまま維持。
   なお .item_table .row / .txt_box / img は現在のページ本文には対応する要素がなく、
   実際には適用されていない（旧テーマの名残）が、値の変更は行わず元のまま保持する。 */
@media only screen and (max-width: 568px) {
  #intro .intro_box .half_box {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  #intro .intro_box .half_box .ttl {
    margin-bottom: 10px;
  }
  #other .line_side {
    display: inline-block;
    line-height: 1.5;
    margin-bottom: 5px;
  }
  .item_btns ul li:first-child a {
    font-size: 16px;
  }
  .item_table .row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
        -ms-flex-direction: column-reverse;
            flex-direction: column-reverse;
    padding: 0 5.3vw;
  }
  .item_table .txt_box {
    width: 100%;
  }
  .item_table .txt_box .ttl {
    font-size: 20px;
    line-height: 1.5;
    text-align: center;
    margin: 14px -10px 8px;
  }
  .item_table img {
    width: 100%;
    max-width: initial;
  }
}

/* 元CSSでも背景画像の指定がコメントアウトされたまま(実質無効)のため、
   見た目に影響しない範囲で元のスコープのまま維持する。 */
@media only screen and (max-width: 568px) {
  #other .line_side::before {
    /* background: url("../img/common/line_left_blue02.png") no-repeat; */
    background-size: contain;
  }
  #other .line_side::after {
    /* background: url("../img/common/line_right_blue02.png") no-repeat; */
    background-size: contain;
  }
  .note_box p::before {
    position: absolute;
    top: 50%;
    left: 0;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    margin: 0;
  }
}
