@charset "UTF-8";

/*
  LP pages responsive frame override.
  Add this after the existing LP stylesheets.
*/

html,
body {
  min-width: 0 !important;
  overflow-x: hidden;
  background: #fff;
}

body {
  -webkit-text-size-adjust: 100%;
}

#container {
  width: 100% !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  box-sizing: border-box;
  background: #fff;
}

#container *,
#container *::before,
#container *::after {
  box-sizing: border-box;
}

header,
#headerTop,
#globalNavi,
#contents,
#topicpath_Top,
footer {
  width: 100% !important;
  max-width: 100% !important;
}

header {
  margin: 0 auto 18px !important;
  padding-top: 16px;
}

#headerTop {
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr) minmax(250px, 330px);
  align-items: center;
  gap: 24px;
}

.headerlogo,
.header_h1,
.headertel,
.headertell_img {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.headerlogo img,
.headertell_img img,
#main img,
#sub img,
footer img,
img.res {
  max-width: 100% !important;
  height: auto !important;
}

#globalNavi {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 18px auto 26px !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
}

#globalNavi li {
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

#globalNavi a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  overflow: hidden;
}

#globalNavi img {
  max-width: 80%;
  height: auto;
}

#topicpath_Top {
  margin: 0 0 42px !important;
  padding: 0 !important;
  background: none !important;
}

#topicpath_Top li {
  display: inline;
  float: none !important;
}

#contents {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 36px;
  align-items: start;
  margin: 0 auto !important;
  padding: 0 !important;
}

#main,
#sub {
  float: none !important;
  margin: 0 !important;
  min-width: 0;
}

#main {
  width: 100% !important;
}

#sub {
  width: 270px !important;
}

#sub ul,
#sub ol {
  padding-left: 0;
  list-style: none;
}

#main p,
#main section,
#main div,
#main table,
#main iframe,
#main video {
  max-width: 100%;
}

#main table {
  width: 100%;
}

#pagetopButtonBlock {
  display: none;
}

footer {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  align-items: center;
  gap: 24px;
  margin: 44px auto 0 !important;
  padding: 22px 0 0 !important;
  border-top: 1px solid #d8efcf !important;
  background: #fff !important;
}

footer .fLogo,
footer .footer_block,
footer .copy_text {
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

footer .fLogo {
  grid-row: 1 / span 2;
}

footer .footer_block,
footer .copy_text {
  text-align: center;
}

footer > img.res,
footer > img:last-child {
  grid-column: 1 / -1;
  width: 100% !important;
  margin-top: 18px;
}

#footerFloatingMenu {
  max-width: 100%;
}

@media screen and (max-width: 900px) {
  #container {
    padding: 0 14px !important;
  }

  #headerTop {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  .headerlogo img {
    width: min(420px, 92vw);
  }

  .headertell_img,
  .headertel {
    justify-self: center;
  }

  #contents {
    display: block;
  }

  #sub {
    display: none !important;
  }
}

@media screen and (max-width: 640px) {
  #container {
    padding: 0 !important;
  }

  header {
    padding: 10px 0 0;
    margin-bottom: 12px !important;
  }

  .header_h1 {
    padding: 0 14px;
    font-size: 18px;
    line-height: 1.55;
  }

  .headertel,
  .headertell_img {
    width: calc(100% - 24px) !important;
    margin: 0 auto !important;
  }

  #globalNavi {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 14px 0 18px !important;
    border-radius: 0;
  }

  #globalNavi a {
    min-height: 64px;
  }

  #globalNavi img {
    max-width: 92%;
  }

  #topicpath_Top {
    padding: 0 14px !important;
    margin-bottom: 26px !important;
    font-size: 13px;
    line-height: 1.7;
  }

  #main {
    padding: 0 12px;
  }

  footer {
    display: block;
    margin-top: 32px !important;
    padding: 18px 12px 0 !important;
    text-align: center;
  }

  footer .fLogo {
    margin-bottom: 14px !important;
  }

  footer .fLogo img {
    width: min(252px, 80vw);
  }

  footer .footer_block {
    font-size: 14px;
    line-height: 1.8;
  }

  footer .copy_text {
    margin-top: 10px !important;
    font-size: 13px;
    line-height: 1.6;
  }
}


/* Responsive LP frame shared overrides */
html,
body {
  min-width: 0 !important;
  overflow-x: hidden;
  background: #fff !important;
}

.lpResponsivePage #wrapper {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
  background: #fff;
}

.lpResponsivePage #wrapper *,
.lpResponsivePage #wrapper *::before,
.lpResponsivePage #wrapper *::after {
  box-sizing: border-box;
}

.lpResponsivePage img,
.lpResponsivePage iframe,
.lpResponsivePage video {
  max-width: 100%;
  height: auto;
}

.lpResponsivePage header,
.lpResponsivePage nav,
.lpResponsivePage footer,
.lpResponsivePage .contentLayout,
.lpResponsivePage #globalNavi,
.lpResponsivePage #topicpath_Top {
  width: 100%;
  max-width: 100%;
}

.lpResponsivePage .siteHeaderInner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(240px, 312px) minmax(0, 1fr) minmax(250px, 330px);
  gap: 28px;
  align-items: center;
  padding: 18px 0;
}

.lpResponsivePage .siteLogo,
.lpResponsivePage .siteHeaderLead p,
.lpResponsivePage .siteHeaderContact p {
  margin: 0;
}

.lpResponsivePage .siteHeaderLead {
  padding-left: 24px;
  border-left: 5px solid #7fc5e9;
}

.lpResponsivePage .siteHeaderCopy {
  color: #d23e82;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.35;
}

.lpResponsivePage .siteHeaderArea {
  margin-top: 6px !important;
  color: #555;
  font-weight: 700;
  font-size: 14px;
}

.lpResponsivePage .siteHeaderContact {
  padding: 10px 14px;
  border: 2px solid #79c2ea;
  border-radius: 8px;
  text-align: center;
}

.lpResponsivePage .siteHeaderTel a {
  color: #d23e82;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.lpResponsivePage .siteHeaderHours {
  margin-top: 4px !important;
  font-size: 13px;
  font-weight: 700;
  color: #555;
}

.lpResponsivePage .siteHeaderForm a {
  color: #159bd3;
  font-size: 13px;
  font-weight: 700;
}

.lpResponsivePage #globalNavi {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 28px;
  padding: 0;
  overflow: hidden;
  border-radius: 0 0 6px 6px;
}

.lpResponsivePage #globalNavi li {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  list-style: none;
}

.lpResponsivePage #globalNavi a {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lpResponsivePage #globalNavi img {
  max-width: 80%;
}

.lpResponsivePage #topicpath_Top {
  grid-column: 1 / -1;
  margin: 0 0 38px;
  padding: 0;
  background: none !important;
  color: #b8b8b8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.lpResponsivePage #topicpath_Top li {
  display: inline;
  float: none !important;
  list-style: none;
}

.lpResponsivePage #topicpath_Top li + li::before {
  content: "";
  margin: 0 8px 0 0;
}

.lpResponsivePage #topicpath_Top .topicpathHome {
  color: #69a96f;
  text-decoration: none;
}

.lpResponsivePage .contentLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 32px;
  align-items: start;
}

.lpResponsivePage #main {
  min-width: 0;
  width: 100%;
}

.lpResponsivePage .lpResponsiveMain > div,
.lpResponsivePage .lpResponsiveMain section,
.lpResponsivePage .lpResponsiveMain p {
  max-width: 100%;
}


.lpResponsivePage .pcSidebar {
  width: 270px;
  min-width: 0;
}

.lpResponsivePage .pcSideBanners ul,
.lpResponsivePage .pcSideBanners ol {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.lpResponsivePage .pcSideBanners li {
  margin: 0 0 12px;
}

.lpResponsivePage footer {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px 28px;
  align-items: center;
  margin: 46px 0 0 !important;
  padding: 22px 0 0 !important;
  border-top: 1px solid #d8efcf !important;
  background: #fff !important;
  color: #999;
  overflow: hidden;
}

.lpResponsivePage footer p {
  margin: 0 !important;
}

.lpResponsivePage footer .fLogo {
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  grid-row: 1 / span 2;
}

.lpResponsivePage footer .footer_block,
.lpResponsivePage footer .copy_text {
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  text-align: center;
}

.lpResponsivePage footer .footer_block {
  line-height: 1.8;
}

.lpResponsivePage footer > img.res,
.lpResponsivePage footer > img:last-child {
  grid-column: 1 / -1;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 16px;
}

@media screen and (max-width: 900px) {
  .lpResponsivePage #wrapper {
    padding: 0 14px;
  }

  .lpResponsivePage .siteHeaderInner {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  .lpResponsivePage .siteHeaderLead {
    padding-left: 0;
    border-left: 0;
  }

  .lpResponsivePage .siteHeaderContact {
    width: min(460px, 100%);
    margin: 0 auto;
  }

  .lpResponsivePage .contentLayout {
    display: block;
  }

  .lpResponsivePage .pcSidebar {
    display: none;
  }
}

@media screen and (max-width: 640px) {
  .lpResponsivePage #wrapper {
    padding: 0;
  }

  .lpResponsivePage header {
    padding: 10px 12px 0;
  }

  .lpResponsivePage .siteHeaderCopy {
    font-size: 20px;
  }

  .lpResponsivePage .siteHeaderArea {
    font-size: 14px;
  }

  .lpResponsivePage .siteHeaderTel a {
    font-size: 30px;
  }

  .lpResponsivePage #globalNavi {
    margin-bottom: 20px;
    border-radius: 0;
  }

  .lpResponsivePage #globalNavi a {
    min-height: 64px;
  }

  .lpResponsivePage #globalNavi img {
    max-width: 92%;
  }

  .lpResponsivePage #topicpath_Top {
    padding: 0 14px;
    margin-bottom: 24px;
    font-size: 13px;
  }

  .lpResponsivePage #main {
    padding: 0 12px;
  }

  .lpResponsivePage footer {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 18px 12px 0 !important;
    text-align: center;
  }

  .lpResponsivePage footer .fLogo {
    width: 100% !important;
    margin-bottom: 12px !important;
  }

  .lpResponsivePage footer .footer_block {
    font-size: 14px;
  }

  .lpResponsivePage footer .copy_text {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
  }
}

.sub_koushi .sub_teacher_link:after {
    content: "";
    position: absolute;
    background: none;
}


  footer p.fLogo a img {
    margin: 0 auto;
  }


a.text-white {
  color: #fff !important;
}



/* LP form frame refinements */
.lpFormPage .lpFormMain {
  padding-bottom: 24px;
}

.lpFormPage .lp-form-container {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.lpFormPage .new_top_step,
.lpFormPage .lp-form-container,
.lpFormPage .lp-form-section {
  max-width: 100%;
}

.lpFormPage .lp-form-container input[type="text"],
.lpFormPage .lp-form-container input[type="tel"],
.lpFormPage .lp-form-container input[type="email"],
.lpFormPage .lp-form-container select,
.lpFormPage .lp-form-container textarea {
  max-width: 100%;
}

.lpFormPage .lp-btn-submit {
  color: #fff !important;
  border: 0;
  cursor: pointer;
}

.lpFormPage .lpFormMain > p.moveCenter:first-child {
  margin-bottom: 24px !important;
}

.lpFormCompletePage .moveCenter a {
  word-break: break-word;
}

@media screen and (max-width: 640px) {
  .lpFormPage .lp-form-title {
    font-size: 21px;
    line-height: 1.45;
  }

  .lpFormPage .lp-form-lead {
    font-size: 14px;
  }

  .lpFormPage .lp-form-section {
    padding: 18px 14px;
    border-radius: 8px;
  }

  .lpFormPage .lp-btn-submit {
    width: 100%;
    max-width: none;
  }
}
