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

#intro .intro_box .half_box {
  flex-direction: column;
}

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

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

.full_wide_ttl {
  padding: 14px 0 16px;
}

.full_wide_ttl .txt_white {
  padding-left: 8vw;
}

.full_wide_ttl .txt_white > span {
  position: relative;
}

.full_wide_ttl .txt_white > span::before {
  content: none;
}

.merit_demreit_wrapper {
  margin-top: 0;
  flex-direction: column;
  gap: 20px 0;
}

.merit_demreit_wrapper .box {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.merit_demreit_wrapper .box .ttl {
  font-size: 21px;
  padding: 11px 0 11px;
}

.merit_demreit_wrapper .box .content {
  padding: 20px 20px 10px;
  border-radius: 0 0 10px 10px;
  display: flex;
  flex-direction: column;
  flex: 2;
}

.merit_demreit_wrapper .box img {
  margin-bottom: 5px;
}

.merit_demreit_wrapper .box li {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding: 13px 0 16px;
  display: flex;
  justify-content: space-between;
}

.merit_demreit_wrapper .box li span {
  width: calc(100% - (24px + 12px));
}

.merit_demreit_wrapper .box li::after {
  content: '';
  background: url("../img/common/line_dot.png") repeat-x;
  width: 100%;
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
}

.merit_demreit_wrapper .box li:last-child::after {
  content: none;
}

.merit_demreit_wrapper .box.merit .ttl {
  background: #2d89f8;
}

.merit_demreit_wrapper .box.merit .content {
  border: 4px solid #88c7ff;
  border-top: none;
}

.merit_demreit_wrapper .box.merit li::before {
  content: '';
  background: url("../img/common/icon_check.svg") no-repeat;
  background-size: contain;
  width: 25px;
  height: 24px;
  display: block;
  margin-right: 0;
  position: relative;
  top: 1px;
}

.merit_demreit_wrapper .box.demerit .ttl {
  background: var(--site-keycolor);
}

.merit_demreit_wrapper .box.demerit .content {
  border: 4px solid #f1b7bd;
  border-top: none;
}

.merit_demreit_wrapper .box.demerit li::before {
  content: '';
  background: url("../img/beginner/batsu.svg") no-repeat;
  background-size: contain;
  width: 20px;
  height: 19px;
  display: block;
  margin-right: 0;
  position: relative;
  top: 3px;
}

.feature_list li {
  margin-bottom: 20px;
  flex-direction: column-reverse;
}

.feature_list li:last-child {
  margin-bottom: 0;
}

.feature_list li .txt_box {
  padding: 15px 20px 20px;
}

.feature_list li .ttl {
  font-size: 21px;
  line-height: 1.45;
  border-bottom: 1px solid #c7c7c7;
  padding-bottom: 16px;
  margin-bottom: 12px;
  text-align: center;
}

.feature_list li .ttl_row {
  margin-top: 0;
}

.feature_list li img {
  width: 100%;
}

.point_list {
  border: 4px solid #2d89f8;
  border-right: none;
  border-left: none;
  border-radius: 0;
}

.point_list li {
  padding: 25px 0 20px;
  position: relative;
}

.point_list li .ttl_left_border {
  border-bottom: none;
  margin: 14px 0 8px;
  padding: 4px 0 8px 20px;
  line-height: 1.5;
}

.point_list li .ttl_left_border::before {
  height: 76%;
}

.point_list li .photo {
  position: relative;
}

.point_list li .photo::before {
  content: '';
  width: 70px;
  height: 70px;
  position: absolute;
  top: 0;
  left: 0;
}

.point_list li::after {
  content: '';
  background: url("../img/common/line_dot.png") repeat-x;
  width: 100%;
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
}

.point_list li:first-child {
  padding-top: 0;
}

.point_list li:first-child .photo::before {
  background: url("../img/common/label_num01_large.svg") no-repeat;
  background-size: contain;
}

.point_list li:nth-child(2) .photo::before {
  background: url("../img/common/label_num02_large.svg") no-repeat;
  background-size: contain;
}

.point_list li:last-child {
  padding-bottom: 0;
}

.point_list li:last-child .photo::before {
  background: url("../img/common/label_num03_large.svg") no-repeat;
  background-size: contain;
}

/* ---------- 569px〜(旧 max-width:960px 相当) ---------- */
@media screen and (min-width: 569px) {
  #intro .intro_box .half_box {
    flex-direction: row;
  }
  #intro .intro_box .half_box .ttl {
    font-size: 23px;
    /* 元コードは568px以下のみ上書きしていた。569px以上での実効デフォルト値は
       common.css の `.half_box .txt_box .ttl { margin: -7px 0 5px; }` (margin-bottom: 5px) */
    margin-bottom: 5px;
  }
  #intro .intro_box .half_box .photo {
    /* common.css の汎用 `.photo { margin: 20px 0 0; }` (margin-bottom: 0) に復帰 */
    margin-bottom: 0;
  }
  .full_wide_ttl {
    /* underlayer.css の基本値 `.full_wide_ttl { padding: 20px 0 20px; }` に復帰 */
    padding: 20px 0 20px;
  }
  .full_wide_ttl .txt_white > span::before {
    content: '';
    background: url("../img/beginner/items.png") no-repeat;
    background-size: contain;
    width: calc(177px * 0.7);
    height: calc(77px * 0.7);
    position: absolute;
    top: -10px;
    left: -135px;
  }
  .merit_demreit_wrapper {
    margin-top: 10px;
    /* .row クラスの `flex-direction: row;` に復帰 */
    flex-direction: row;
    gap: 0;
  }
  .merit_demreit_wrapper .box {
    width: 48.2%;
  }
  .merit_demreit_wrapper .box .ttl {
    font-size: 23px;
  }
  .merit_demreit_wrapper .box .content {
    padding: 4vw 3vw 3vw;
    border-radius: 0 0 20px 20px;
  }
  .merit_demreit_wrapper .box li {
    font-size: 17px;
    padding: 11px 0 13px;
    justify-content: normal;
  }
  .merit_demreit_wrapper .box.merit li::before {
    width: 24px;
    height: 23px;
    margin-right: 14px;
    top: 4px;
  }
  .merit_demreit_wrapper .box.demerit li::before {
    width: 19px;
    height: 18px;
    margin-right: 14px;
    top: 6px;
  }
  .feature_list li {
    margin-bottom: 30px;
    /* .row クラスの `flex-direction: row;` に復帰 */
    flex-direction: row;
  }
  .feature_list li .txt_box {
    padding: 4vw 3.3vw;
  }
  .feature_list li .ttl {
    line-height: 1.5;
    padding-bottom: 8px;
    margin-bottom: 10px;
    text-align: left;
  }
  .feature_list li .ttl_row {
    margin-top: -10px;
  }
  .feature_list li img {
    width: 50%;
  }
  .point_list {
    border-right: 4px solid #2d89f8;
    border-left: 4px solid #2d89f8;
    /* .md_radius クラスの `border-radius: 10px;` に復帰 */
    border-radius: 10px;
  }
  .point_list li {
    padding: 41px 0 41px;
  }
  .point_list li .ttl_left_border {
    margin: -5px 0 18px;
    padding: 2px 0 4px 25px;
  }
  .point_list li .photo::before {
    width: 80px;
    height: 80px;
  }
  .point_list li:first-child .photo::before {
    background: url("../img/common/label_num01.svg") no-repeat;
    background-size: contain;
  }
  .point_list li:nth-child(2) .photo::before {
    background: url("../img/common/label_num02.svg") no-repeat;
    background-size: contain;
  }
  .point_list li:last-child .photo::before {
    background: url("../img/common/label_num03.svg") no-repeat;
    background-size: contain;
  }
}

/* ---------- 961px〜(旧 max-width:1024px 相当) ---------- */
@media screen and (min-width: 961px) {
  #intro .intro_box .half_box .ttl {
    font-size: 28px;
  }
  .full_wide_ttl .txt_white {
    padding-left: 11%;
  }
  .full_wide_ttl .txt_white > span::before {
    width: 177px;
    height: 77px;
    top: -6px;
    left: -200px;
  }
  .merit_demreit_wrapper {
    margin-top: -10px;
  }
  .merit_demreit_wrapper .box .ttl {
    font-size: 25px;
  }
  .merit_demreit_wrapper .box .content {
    padding: 40px 40px 36px;
  }
  .merit_demreit_wrapper .box img {
    margin-bottom: 15px;
  }
  .merit_demreit_wrapper .box li {
    font-size: 18px;
  }
  .merit_demreit_wrapper .box li span {
    width: auto;
  }
  .feature_list li .txt_box {
    padding: 40px 40px 30px;
  }
  .feature_list li .ttl {
    font-size: 27px;
    padding-bottom: 19px;
    margin-bottom: 23px;
  }
  .point_list li .photo::before {
    width: 100px;
    height: 100px;
  }
}

/* ---------- 1025px〜(PC) ---------- */
@media screen and (min-width: 1025px) {
  #intro .intro_box .half_box .ttl {
    font-size: 32px;
  }
  .merit_demreit_wrapper .box .ttl {
    font-size: 30px;
  }
}

/* ---------- 568px以下限定のまま残す例外 ----------
   下記は min-width の昇順カスケードへ安全に反転できないため、元の
   max-width スコープのまま維持する。
   ・.ttl_section_top … margin に !important が付いており、通常優先度の
     min-width ルールでは打ち消せないため。
   ・.full_wide_ttl .txt_white / .merit_demreit_wrapper .box li の
     line-height … 568px以下のブロック以外に対応する記述が存在せず、
     569px以上での実効デフォルト値(bodyからの継承値)を値を推測せずに
     確定できないため。
   ・.merit_demreit_wrapper .box.demerit li span … 汎用ルール
     `.merit_demreit_wrapper .box li span` を上書きするための詳細度依存
     ルールであり、min-width/無条件ルールへ昇格すると569px以上でも
     勝ってしまうため。
*/
@media screen and (max-width: 568px) {
  .ttl_section_top {
    font-size: 28px;
    margin: -5px 0 20px !important;
  }
  .full_wide_ttl .txt_white {
    line-height: 1.4;
  }
  .merit_demreit_wrapper .box li {
    line-height: 1.45;
  }
  .merit_demreit_wrapper .box.demerit li span {
    width: calc(100% - (20px + 12px));
  }
}
