:root {
  --main-text-color: #212438;
  --accent-en-color: #f9f8fb;
  --sub-text-color: #183f97;
  --sub-text-color-gray: #727481;
  --list-marker-color: #cfe024;
  --school_kids-color: #e95283;
  --school_primary-color: #eeb100;
  --school_junior-color: #f5a22c;
  --school_high-color: #008cd6;
  --school_personal-color: #6eb92b;
}

html {
  scroll-behavior: smooth;
}

html:has(dialog[open]) {
  overflow: hidden;
}

body {
  position: relative;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--main-text-color);
}

button {
  font-family: "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

.en {
  font-family: "Montserrat", sans-serif;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
}

.wide img {
  width: 100%;
  height: auto;
}

#header_menu_button {
  position: relative;
  padding: 0;
  display: block;
  margin: 0 0 0 auto;
  border: none;
  background: var(--sub-text-color);
  color: #FFFFFF;
  cursor: pointer;
}

#header_menu_button .line {
  display: block;
  background-color: #ffffff;
}

#header_menu_button .line::before, #header_menu_button .line::after {
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  width: 100%;
  background-color: #ffffff;
  transition: inherit;
}

#header_menu_button[aria-expanded="true"] span {
  background-color: transparent;
}

#header_menu_button[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

#header_menu_button[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

#header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
}

#header #header_navi_wrapper {
  display: none;
  position: relative;
}

#header #header_navi_wrapper a {
  color: var(--main-text-color);
}

#header #header_navi_wrapper #header_site_link .top_contents_link > li {
  position: relative;
}

#header #header_navi_wrapper #header_site_link .top_contents_link > li::before {
  content: "";
  display: block;
  border-radius: 50%;
  background: var(--list-marker-color);
  position: absolute;
}

#header #header_navi_wrapper #header_site_link .top_contents_link > li > a {
  position: relative;
}

#header #header_navi_wrapper #header_site_link .top_contents_link > li > a::after {
  color: var(--sub-text-color);
  content: attr(data-en);
  font-family: "Montserrat", sans-serif;
}

#header #header_navi_wrapper #header_site_link .cta_link a {
  border: 1px solid #dce1ef;
  background: #FFFFFF;
  position: relative;
}

#header #header_navi_wrapper #header_site_link .cta_link a .txt {
  position: relative;
}

#header #header_navi_wrapper #header_site_link .cta_link a .txt::before {
  color: var(--sub-text-color);
  content: attr(data-en);
  display: block;
}

#header #header_navi_wrapper #header_site_link .cta_link a .txt::after {
  content: "";
  display: block;
  border-right: 2px solid var(--sub-text-color);
  border-top: 2px solid var(--sub-text-color);
  position: absolute;
  transform: rotate(45deg);
}

#header #header_school_link {
  background: #dce1ef;
}

#header #header_school_link dt {
  color: var(--sub-text-color);
}

#header #header_school_link dd a {
  background: #FFFFFF;
  position: relative;
}

#header #header_school_link dd a::after {
  content: "";
  display: block;
  border-right: 2px solid var(--sub-text-color);
  border-top: 2px solid var(--sub-text-color);
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

#header.header_open #header_navi_wrapper {
  display: block;
}

#footer #footer_cta > dl {
  background: #FFFFFF;
}

#footer #footer_cta > dl > dt {
  color: var(--main-text-color);
}

#footer #footer_cta > dl > dd a {
  position: relative;
  border: solid 2px;
}

#footer #footer_cta > dl > dd a::after {
  content: "";
  display: block;
  border-right: 2px solid;
  border-top: 2px solid;
  position: absolute;
  transform: translateY(-50%) rotate(45deg);
}

#footer #footer_cta > dl > dd a.kids {
  border-color: var(--school_kids-color);
}

#footer #footer_cta > dl > dd a.kids::after {
  border-color: var(--school_kids-color);
}

#footer #footer_cta > dl > dd a.primary {
  border-color: var(--school_primary-color);
}

#footer #footer_cta > dl > dd a.primary::after {
  border-color: var(--school_primary-color);
}

#footer #footer_cta > dl > dd a.junior {
  border-color: var(--school_junior-color);
}

#footer #footer_cta > dl > dd a.junior::after {
  border-color: var(--school_junior-color);
}

#footer #footer_cta > dl > dd a.high {
  border-color: var(--school_high-color);
}

#footer #footer_cta > dl > dd a.high::after {
  border-color: var(--school_high-color);
}

#footer #footer_cta > dl > dd a.personal {
  border-color: var(--school_personal-color);
}

#footer #footer_cta > dl > dd a.personal::after {
  border-color: var(--school_personal-color);
}

#footer #footer_navi a {
  text-decoration: underline;
  color: var(--main-text-color);
  position: relative;
}

#footer #footer_navi a:not([target="_blank"])::after {
  content: "";
  display: block;
  border-right: 2px solid var(--sub-text-color);
  border-top: 2px solid var(--sub-text-color);
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

#footer #footer_copyright {
  color: var(--main-text-color);
}

@media screen and (min-width: 768px) {
  html {
    font-size: 10px;
  }
  body {
    min-width: 1200px;
    letter-spacing: 0.04em;
  }
  .contents {
    width: 1200px;
    margin-right: auto;
    margin-left: auto;
  }
  .sp {
    display: none;
  }
  #header_menu_button {
    position: fixed;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    font-size: 1.4rem;
    padding-top: 30px;
    z-index: 30;
  }
  #header_menu_button .line {
    height: 1px;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
  }
  #header_menu_button .line::before {
    top: -7px;
  }
  #header_menu_button .line::after {
    top: 7px;
  }
  #header {
    height: 0;
  }
  #header #header_navi_wrapper {
    padding: 18px 0 45px;
  }
  #header #header_navi {
    width: 960px;
    margin: 0 auto;
  }
  #header #header_site_link {
    display: flex;
    justify-content: space-between;
  }
  #header #header_site_link .top_contents_link {
    padding-top: 7px;
  }
  #header #header_site_link .top_contents_link > li {
    padding-left: 25px;
    margin-top: 25px;
  }
  #header #header_site_link .top_contents_link > li:nth-of-type(1) {
    margin: 0;
  }
  #header #header_site_link .top_contents_link > li::before {
    width: 6px;
    height: 6px;
    left: 0;
    top: 19px;
  }
  #header #header_site_link .top_contents_link > li > a {
    font-size: 2.6rem;
    font-weight: 600;
    display: flex;
    align-items: center;
  }
  #header #header_site_link .top_contents_link > li > a::after {
    font-size: 1.4rem;
    font-weight: 500;
    padding-left: 17px;
  }
  #header #header_site_link .cta_link {
    width: 400px;
    padding-top: 20px;
  }
  #header #header_site_link .cta_link > a {
    display: flex;
    align-items: center;
    border-radius: 8px;
  }
  #header #header_site_link .cta_link > a .txt {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.36;
    padding-left: 25px;
    padding-bottom: 8px;
    letter-spacing: 0.08em;
  }
  #header #header_site_link .cta_link > a .txt::before {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 0.04em;
  }
  #header #header_site_link .cta_link > a .txt::after {
    width: 6px;
    height: 6px;
    right: -18px;
    bottom: 20px;
  }
  #header #hader_obj1 {
    position: absolute;
    top: -52px;
    left: 2.55%;
  }
  #header #hader_obj2 {
    position: absolute;
    top: 295px;
    left: 3.4%;
  }
  #header #hader_obj3 {
    position: absolute;
    top: 340px;
    left: 7.29%;
  }
  #header #hader_obj4 {
    position: absolute;
    top: 390px;
    right: 5.7%;
  }
  #header #hader_obj5 {
    position: absolute;
    top: 410px;
    right: 140px;
    right: 9.72%;
  }
  #header #header_school_link {
    margin-top: 50px;
    border-radius: 6px;
    padding: 18px 40px 25px;
  }
  #header #header_school_link dt {
    font-size: 1.6rem;
    font-weight: 600;
  }
  #header #header_school_link dd {
    margin-top: 12px;
  }
  #header #header_school_link dd > ul {
    display: flex;
    gap: 0 10px;
  }
  #header #header_school_link dd > ul > li {
    display: contents;
  }
  #header #header_school_link dd > ul > li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    padding: 4px 12px 3px 0px;
    border-radius: 40px;
  }
  #header #header_school_link dd > ul > li a::after {
    right: 19px;
    width: 7px;
    height: 7px;
  }
  #header.header_open {
    z-index: 25;
  }
  #header.header_open #header_wrapper {
    padding-top: 81px;
    background: #FFFFFF url(../images/common/bg_graph-paper_pc.png) repeat;
  }
  #main {
    font-size: 1.6rem;
  }
  #footer {
    padding-bottom: 35px;
  }
  #footer #footer_cta {
    height: 503px;
    align-content: center;
    background: url(../images/common/cta_new_pc.jpg) no-repeat;
    background-size: 100% 503px;
  }
  #footer #footer_cta > dl {
    width: 1200px;
    margin: 0 auto;
    padding: 50px 100px 55px;
    border-radius: 8px;
  }
  #footer #footer_cta > dl > dt {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.5;
  }
  #footer #footer_cta > dl > dd {
    margin-top: 33px;
  }
  #footer #footer_cta > dl > dd > ul {
    display: flex;
    justify-content: space-between;
  }
  #footer #footer_cta > dl > dd > ul > li {
    display: flex;
  }
  #footer #footer_cta > dl > dd > ul > li a {
    border-radius: 4px;
    display: flex;
    align-items: center;
    width: 190px;
    height: 90px;
    padding-left: 32px;
  }
  #footer #footer_cta > dl > dd > ul > li a::after {
    width: 7px;
    height: 7px;
    top: 50%;
    right: 24px;
  }
  #footer #footer_navi {
    width: 1200px;
    margin: 35px auto 0;
  }
  #footer #footer_navi > ul {
    display: flex;
    justify-content: flex-end;
    gap: 0 30px;
  }
  #footer #footer_navi > ul > li {
    display: contents;
  }
  #footer #footer_navi > ul > li > a {
    font-size: 1.3rem;
    min-height: 11px;
  }
  #footer #footer_navi > ul > li > a:not([target="_blank"]) {
    padding-right: 15px;
  }
  #footer #footer_navi > ul > li > a:not([target="_blank"])::after {
    width: 6px;
    height: 6px;
    right: 0;
  }
  #footer #footer_navi > ul > li > a[target="_blank"] {
    padding-right: 22px;
    background: url(../images/common/ico_opentab_pc.png) no-repeat;
    background-size: 11px 11px;
    background-position: center right;
  }
  #footer #footer_copyright {
    width: 1200px;
    margin: 25px auto 0;
    font-size: 1.2rem;
    text-align: right;
  }
}
