@charset "utf-8";

/* スマホ（〜767px） */
@media (max-width: 767px) {
  /* スマホ専用スタイル */
}

/* タブレット（768px〜1024px） */
@media (min-width: 768px) and (max-width: 1024px) {
  /* タブレット専用スタイル */
}

/* PC（1025px〜） */
@media (min-width: 1025px) {
  /* PC専用スタイル */
}



.page_top { z-index: 10; }

.top_intro { margin-bottom: 40px; }

.side_bg_square { padding: 40px 0 80px; }
.side_bg_square:last-child { padding-bottom: 40px; }
.side_bg_square .contents { position: relative; } 
.side_bg_square .contents::before { content: ''; position: absolute; top: 80px; left: -5vw; width: 100vw; height: calc(100% - 40px); background: #F5F5F5; z-index: -1; }

.content_img_wrap { position: relative; margin-bottom: 40px; }
.content_img { position: relative; width: 100%; aspect-ratio: 7 / 4; object-fit: cover; background: #666; z-index: 1; }
.content_illust { position: absolute; bottom: -24px; right: 0; width: 150px; height: 120px; z-index: 2; }

.content_text { display: flex; flex-direction: column; gap: 20px; }
.content_text_title { display: flex; gap: 20px; align-items: center; }
.content_text_number { font-size: 50px; line-height: 50px; margin-top: -10px; }
.content_text_number.inline_sp { position: absolute; top: -0.5em; left: 8px; z-index: 2; }
.content_text_number::before { content: 'POINT'; display: block; font-size: 0.29em; line-height: 1em; }
.content_text_title h2 { font-size: 28px; color: #FFF; background: #004680; }


@media (min-width: 1080px) {
  .top_intro { text-align: center; }

  .side_bg_square:last-child { padding-bottom: 120px; }
  .side_bg_square .contents { height: calc(min(27vw, 396px) + 60px); }
  .side_bg_square .contents::before { top: 40px; width: calc(100% + calc(max(5vw, calc(50vw - 660px)) + 80px)); height: calc(min(27vw, 396px) + 20px); }
    .side_bg_square:nth-child(2n+1) .contents::before { right: auto; left: -80px; border-radius: 0; border-top-left-radius: 30px; border-bottom-left-radius: 30px; }
    .side_bg_square:nth-child(2n) .contents::before { right: -80px; left: auto; border-radius: 0; border-top-right-radius: 30px; border-bottom-right-radius: 30px; }

  .content_img_wrap { position: absolute; top: 0; width: 60%; }
    .side_bg_square:nth-child(2n) .content_img_wrap { right: auto; left: 0; }
    .side_bg_square:nth-child(2n+1) .content_img_wrap { right: 0; left: auto; }
  .content_img_wrap::before { content: ''; position: absolute; bottom: -18px; display: block; width: 60%; height: 60%; background: #004680; }
    .side_bg_square:nth-child(2n) .content_img_wrap::before { right: auto; left: -24px; }
    .side_bg_square:nth-child(2n+1) .content_img_wrap::before { right: -24px; left: auto; }
  .content_img { aspect-ratio: 2 / 1; }
  .content_illust { bottom: -80px; width: 250px; height: 200px; }
    .side_bg_square:nth-child(2n) .content_illust { right: auto; left: -60px; }
    .side_bg_square:nth-child(2n+1) .content_illust { right: -60px; left: auto; }

  .content_text_wrap { position: relative; width: calc(40% - 80px); padding-top: 120px; z-index: 2; }
    .side_bg_square:nth-child(2n) .content_text_wrap { margin-right: 0; margin-left: calc(60% + 80px); }
    .side_bg_square:nth-child(2n+1) .content_text_wrap { margin-right: calc(60% + 80px); margin-left: 0; }
  .content_text.smaller_than_img { height: calc(min(27vw, 396px) + 40px); }
  .content_text.just_one { padding-top: 40px; }

}

