@charset "utf-8";

/*
  Smartphone template to one-url responsive layout.
  Load after /sp/css/top2.css.
*/

html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  min-width: 0;
}

img,
iframe,
object,
embed {
  max-width: 100%;
  height: auto;
}

a {
  overflow-wrap: anywhere;
}

#wrapper {
  width: min(100%, 1120px);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
}

.siteHeaderLead,
.siteHeaderContact,
.pcSidebar {
  display: none;
}

.articleHeader,
#main_img,
.stepbar,
.lrtop,
.lrtop2,
.top_thought,
.test_taisaku,
.ba_div,
.feature_link,
.top_right_contents,
.new_top_ttl_01,
.new_top_ttl_02,
.new_top_ttl_03,
.new_top_ttl_04,
.new_top_ttl_05,
.new_top_ttl_06 {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.slider-container,
.bx-wrapper,
.bx-viewport,
.slider,
.slider li {
  max-width: 100%;
}

.slider > li {
  display: block;
}

.deskstyle-fade-slider > li {
  display: none;
}

.slider img,
.res,
.btn-request,
.ba_div img {
  display: block;
  max-width: 100%;
  height: auto;
}

#globalNavi {
  position: sticky;
  top: 0;
}

#globalNavi li a {
  min-height: 58px;
}

.articleHeader h1 {
  font-size: clamp(18px, 4.8vw, 28px);
  line-height: 1.35;
}

.new_top_ttl_01,
.new_top_ttl_02,
.new_top_ttl_03,
.new_top_ttl_04,
.new_top_ttl_05,
.new_top_ttl_06 {
  line-height: 1.45;
}

.eriaCityQuestionnaireBlock {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.eriaCityQuestionnaireLeftBlock,
.eriaCityQuestionnaireRightBlock {
  max-width: 100%;
  min-width: 0;
}

.eriaCityQuestionnaireImage img,
.eriaCityQuestionnaireLeftBlock img {
  max-width: 100%;
  height: auto;
}

.eria_content_03,
.eria_content_04,
.eria_content_05,
.eria_content_06,
.eria_content_07,
.eria_content_08 {
  max-width: 720px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.eria_content_03 ul,
.eria_content_04 ul,
.eria_content_05 ul,
.eria_content_06 ul,
.eria_content_07 ul,
.eria_content_08 ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.eria_content_03 li,
.eria_content_04 li,
.eria_content_05 li,
.eria_content_06 li,
.eria_content_07 li,
.eria_content_08 li,
.eria_content_03 li:nth-child(3n),
.eria_content_04 li:nth-child(3n),
.eria_content_05 li:nth-child(3n),
.eria_content_06 li:nth-child(3n),
.eria_content_07 li:nth-child(3n),
.eria_content_08 li:nth-child(3n) {
  width: auto;
  min-width: 88px;
  margin: 0;
}

.koushi_a {
  width: min(100%, 360px);
}

.top_teacher {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.teacher_text2 dl {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
}

.teacher_text2 dl dt,
.teacher_text2 dl dd {
  float: none;
  width: auto;
  margin: 0;
}

footer {
  max-width: 1120px;
}

#topicpath_Top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  width: min(100%, 720px);
  margin: 0 auto 18px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #777;
  font-size: 13px;
  line-height: 1.5;
  list-style: none;
}

#topicpath_Top li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  color: #777;
}

#topicpath_Top li + li::before {
  margin-right: 10px;
  color: #aaa;
  content: ">";
}

#topicpath_Top a {
  color: #4b9652;
  font-weight: bold;
  text-decoration: none;
}

#topicpath_Top .topicpathHome::before {
  margin-right: 5px;
  color: #4b9652;
  content: "\f015";
  font-family: FontAwesome;
}

#topicpath_Top .fa {
  margin-right: 4px;
}

@media screen and (max-width: 767px) {
  #wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }

  header,
  #globalNavi,
  #footerFloatingMenu,
  footer {
    margin-left: -12px;
    margin-right: -12px;
  }

  .articleHeader,
  #main_img,
  .stepbar,
  .lrtop,
  .lrtop2,
  .top_thought,
  .test_taisaku,
  .ba_div,
  .feature_link,
  .top_right_contents,
  .new_top_ttl_01,
  .new_top_ttl_02,
  .new_top_ttl_03,
  .new_top_ttl_04,
  .new_top_ttl_05,
  .new_top_ttl_06,
  .eria_content_03,
  .eria_content_04,
  .eria_content_05,
  .eria_content_06,
  .eria_content_07,
  .eria_content_08 {
    max-width: 100%;
  }

  #topicpath_Top {
    width: 100%;
    margin: 0 0 18px;
    padding: 8px 4px 12px;
    background: transparent;
    font-size: 12px;
  }

  #topicpath_Top li + li::before {
    margin-right: 8px;
  }
}

@media screen and (min-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.85;
  }

  #wrapper {
    padding: 0 24px;
  }

  header {
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 0 12px;
  }

  .siteHeaderInner {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(220px, 1fr);
    gap: 14px 24px;
    align-items: center;
  }

  .siteLogo {
    margin: 0;
    text-align: left;
  }

  .siteLogo img {
    width: min(100%, 360px);
  }

  .siteHeaderLead {
    display: block;
    padding: 8px 0 0 16px;
    border-left: 4px solid #54c3f1;
  }

  .siteHeaderCopy {
    margin: 0 0 4px;
    color: #e4007f;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.35;
  }

  .siteHeaderArea {
    margin: 0;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
  }

  #globalNavi {
    max-width: 960px;
    margin: 0 auto 18px;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
  }

  #globalNavi li {
    width: 20%;
  }

  .test_gl {
    height: auto;
    min-height: 76px;
  }

  #globalNavi li a {
    display: grid;
    place-items: center;
    min-height: 76px;
  }

  #globalNavi li img {
    width: auto;
    height: 54px;
  }

  .articleHeader,
  #main_img,
  .stepbar,
  .lrtop,
  .lrtop2,
  .top_thought,
  .test_taisaku,
  .ba_div,
  .feature_link,
  .top_right_contents,
  .new_top_ttl_01,
  .new_top_ttl_02,
  .new_top_ttl_03,
  .new_top_ttl_04,
  .new_top_ttl_05,
  .new_top_ttl_06,
  .eria_content_03,
  .eria_content_04,
  .eria_content_05,
  .eria_content_06,
  .eria_content_07,
  .eria_content_08,
  .top_teacher {
    max-width: 760px;
  }

  .articleHeader h1 {
    padding: 18px 20px;
  }

  .eriaCityQuestionnaireBlock {
    display: grid;
    grid-template-columns: 195px minmax(0, 1fr);
    gap: 20px;
    max-width: 760px;
    padding: 18px;
    background-size: 100% auto, 100% auto;
  }

  .eriaCityQuestionnaireBlock h3 {
    grid-column: 1 / -1;
  }

  .top_koushi {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .top_teacher {
    margin: 0;
  }

  .top_koushi .top_teacher:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 360px;
    margin: 0 auto;
  }

  #footerFloatingMenu {
    display: none;
  }
}

@media screen and (min-width: 1024px) {
  #wrapper {
    padding: 0 32px;
  }

  header {
    max-width: 1040px;
  }

  .siteHeaderInner {
    grid-template-columns: 330px minmax(260px, 1fr) 250px;
  }

  .siteHeaderContact {
    display: block;
    justify-self: end;
    width: 250px;
    padding: 10px 12px;
    border: 2px solid #54c3f1;
    border-radius: 8px;
    background: #fff;
    text-align: center;
  }

  .siteHeaderTel {
    margin: 0;
    line-height: 1.1;
  }

  .siteHeaderTel a {
    color: #e4007f;
    font-size: 27px;
    font-weight: bold;
    letter-spacing: 0;
    text-decoration: none;
  }

  .siteHeaderHours {
    margin: 4px 0 6px;
    color: #555;
    font-size: 12px;
    line-height: 1.4;
  }

  .siteHeaderForm {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
  }

  .siteHeaderForm a {
    color: #00a2cb;
    font-weight: bold;
    text-decoration: none;
  }

  .contentLayout,
  #contents {
    display: grid;
    grid-template-columns: minmax(0, 720px) 240px;
    gap: 24px;
    align-items: start;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
  }

  #contents > #topicpath_Top {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .contentLayout > #main,
  #contents > #main {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    width: auto;
    max-width: 100%;
    overflow: hidden;
    float: none;
  }

  .pcSidebar,
  #contents > #sub {
    grid-column: 2;
    grid-row: 2;
    display: block;
    position: sticky;
    top: 96px;
    width: auto;
    min-width: 0;
    float: none;
  }

  #contents > #pagetopButtonBlock {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .pcSideBanners,
  .pcSidebar .side_banner,
  .contentLayout > #sub .side_banner,
  #contents > #sub .side_banner {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .pcSideBanners img,
  .pcSidebar .side_banner img,
  .contentLayout > #sub img,
  #contents > #sub img {
    display: block;
    width: 100%;
    height: auto;
  }

  .pcSidebar .sub_koushi {
    margin: 14px 0;
    padding: 10px;
    border: 2px solid #54c3f1;
    border-radius: 8px;
    background: #fff;
  }

  .pcSidebar .sub_koushi h3 {
    margin: 0 0 10px;
    text-align: center;
  }

  .pcSidebar .sub_koushi h3 img {
    width: min(100%, 188px);
    height: auto;
  }

  .pcSidebar .sub_teacher {
    margin: 0;
  }

  .pcSidebar .sub_teacher_img {
    position: relative;
    width: 172px;
    max-width: 100%;
    margin: 0 auto 10px;
    text-align: center;
  }

  .pcSidebar .sub_teacher_ribon {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 55px;
    height: auto;
  }

  .pcSidebar .sub_te_img {
    padding-top: 18px;
  }

  .pcSidebar .sub_te_img img,
  .pcSidebar .areaCityTeacherImage img {
    display: block;
    width: 172px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .pcSidebar .sub_te_name {
    position: relative;
    z-index: 1;
    width: 92%;
    margin: -8px auto 0;
    padding: 4px 6px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
    color: #444;
    font-weight: bold;
    line-height: 1.35;
    text-align: center;
  }

  .pcSidebar .sub_te_name span {
    font-size: 18px;
  }

  .pcSidebar .sub_teacher_link {
    margin: 10px 0 0;
    line-height: 1.5;
    text-align: center;
  }

  .pcSidebar .sub_teacher_link a {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    background: #54c3f1;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
  }

  .ap {
    display: none;
  }

  .contentLayout > #main > .ba_div {
    display: none;
  }

  .contentLayout .articleHeader,
  .contentLayout #main_img,
  .contentLayout .stepbar,
  .contentLayout .lrtop,
  .contentLayout .lrtop2,
  .contentLayout .top_thought,
  .contentLayout .test_taisaku,
  .contentLayout .ba_div,
  .contentLayout .feature_link,
  .contentLayout .top_right_contents,
  .contentLayout .new_top_ttl_01,
  .contentLayout .new_top_ttl_02,
  .contentLayout .new_top_ttl_03,
  .contentLayout .new_top_ttl_04,
  .contentLayout .new_top_ttl_05,
  .contentLayout .new_top_ttl_06,
  .contentLayout .eria_content_03,
  .contentLayout .eria_content_04,
  .contentLayout .eria_content_05,
  .contentLayout .eria_content_06,
  .contentLayout .eria_content_07,
  .contentLayout .eria_content_08,
  .contentLayout .top_teacher,
  .contentLayout .eriaCityQuestionnaireBlock {
    width: 100%;
    max-width: 100%;
  }

  #contents #main .articleHeader,
  #contents #main #main_img,
  #contents #main .stepbar,
  #contents #main .lrtop,
  #contents #main .lrtop2,
  #contents #main .top_thought,
  #contents #main .test_taisaku,
  #contents #main .ba_div,
  #contents #main .feature_link,
  #contents #main .top_right_contents,
  #contents #main .new_top_ttl_01,
  #contents #main .new_top_ttl_02,
  #contents #main .new_top_ttl_03,
  #contents #main .new_top_ttl_04,
  #contents #main .new_top_ttl_05,
  #contents #main .new_top_ttl_06,
  #contents #main .eria_content_03,
  #contents #main .eria_content_04,
  #contents #main .eria_content_05,
  #contents #main .eria_content_06,
  #contents #main .eria_content_07,
  #contents #main .eria_content_08,
  #contents #main .top_teacher,
  #contents #main .eriaCityQuestionnaireBlock {
    width: 100%;
    max-width: 100%;
  }

  .articleHeader,
  #main_img,
  .stepbar,
  .lrtop,
  .lrtop2,
  .top_thought,
  .test_taisaku,
  .ba_div,
  .feature_link,
  .top_right_contents,
  .new_top_ttl_01,
  .new_top_ttl_02,
  .new_top_ttl_03,
  .new_top_ttl_04,
  .new_top_ttl_05,
  .new_top_ttl_06,
  .eria_content_03,
  .eria_content_04,
  .eria_content_05,
  .eria_content_06,
  .eria_content_07,
  .eria_content_08,
  .top_teacher {
    max-width: 720px;
  }

  .slider img {
    width: 100%;
  }

  .top_koushi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 8px 28px;
    align-items: center;
    max-width: 1000px;
    margin: 36px auto 0;
    padding: 24px 0 18px;
  }

  footer .fLogo {
    grid-row: 1 / span 2;
    margin: 0;
    text-align: left;
  }

  footer .fLogo img {
    width: 252px;
    height: auto;
  }

  footer .footer_block {
    margin: 0;
    text-align: left;
    line-height: 1.8;
    white-space: nowrap;
  }

  footer .footer_block br {
    display: none;
  }

  footer .footer_block a {
    display: inline-block;
    margin-right: 14px;
  }

  footer .copy_text {
    margin: 0;
    text-align: left;
  }

  footer > img.res {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 14px;
  }
}

/* Responsive common action point */
.responsiveAp.ap {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 34px auto 32px;
  padding: 0;
  background: transparent;
  text-align: center;
}

.responsiveAp p {
  margin: 0 0 14px;
}

.responsiveAp picture,
.responsiveAp img {
  display: block;
}

.responsiveAp img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.responsiveAp a {
  color: #0894cf;
  font-weight: bold;
}

.responsiveAp__detailLink {
  font-size: 18px;
  line-height: 1.7;
}

.responsiveAp__detailLink a::before {
  content: "\25b6";
  margin-right: 2px;
}

.responsiveAp__tel {
  display: block;
}

.responsiveAp__telSp,
.responsiveAp__campaignSp {
  display: none;
}

.responsiveAp__campaign {
  margin-top: 14px !important;
}

.responsiveAp__formLinks {
  margin: 18px 0 0 !important;
  padding: 14px 12px;
  border-radius: 8px;
  background: #fff;
  color: #444;
  font-size: 17px;
  line-height: 1.9;
}

.responsiveAp__formLinks a {
  color: #0894cf;
  text-decoration: underline;
}

@media screen and (max-width: 767px) {
  .responsiveAp.ap {
    margin: 26px auto 28px;
  }

  .responsiveAp__detailLink,
  .responsiveAp__formLinks {
    font-size: 16px;
  }

  .responsiveAp__telPc,
  .responsiveAp__campaignPc {
    display: none;
  }

  .responsiveAp__telSp,
  .responsiveAp__campaignSp {
    display: block;
  }
}


