@font-face {
  font-family: "soloburn";
  src: url("../font/soloburn.ttf") format("truetype");
  font-display: swap;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

html {
  font-size: 62.5%;
}

body {
  margin: 0 auto;
  color: #222;
  font-size: 1.6rem;
  font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, YuGothic, ヒラギノ角ゴ ProN W3, Hiragino Kaku Gothic ProN, Arial, メイリオ, Meiryo, sans-serif;
}

a:active,
a:hover,
a:link,
a:visited {
  outline: 0;
  color: inherit;
  text-decoration: none;
  transition: opacity .2s;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

img,
iframe {
  max-width: 100%;
  vertical-align: middle;
}

iframe {
  border: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  border-spacing: 0;
}

th {
  text-align: left;
}

dd {
  margin: 0;
}

button {
  margin: 0;
  padding: 0;
  outline: none;
  border: none;
  background-color: transparent;
  font-size: 100%;
  font-family: inherit;
  line-height: 1;

  -webkit-appearance: none;
}

button,
select {
  text-transform: none;
}

/* ヘッダー */

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
}

header .header-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

header .header-logo {
  padding-left: calc(3vw + 5px);
}

header .header-logo > img {
  display: block;
  float: left;
  height: 25px;
}

header h1 {
  float: left;
  padding-top: 1px;
  padding-left:  calc(1rem + 5px);
  text-align: left;
  white-space: nowrap;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.3;
}

header h1 + p {
  font-size: 1rem;
}

header .header-menu-button {
  padding-right: 3vw;
}

header .header-menu-button > label {
  display: block;
  line-height: 1;
}

header .header-menu-button > label > span {
  display: none;
}

header .header-menu-button img {
  width: 30px;
}

header .header-menu-button img[src*="clear"] {
  display: none;
}

header .header-menu {
  position: absolute;
  top: 48px;
  left: 0;
  z-index: 3;
  display: none;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, .6);
}

header .header-menu-body {
  background-color: #fff;
}

header .header-menu-body > ul {
  padding-bottom: 10px;
}

header .header-menu-body > ul > li {
  position: relative;
  padding: 0 3vw;
  border-top: 1px solid #f8f8f8;
  background: rgba(255, 255, 255, 1);
  line-height: 48px;
}

header .header-menu-body > ul > li > a {
  display: block;
  font-weight: bold;
}

header > input[type="checkbox"]:checked + .header-body {
  background: #fff;
}

header > input[type="checkbox"]:checked + .header-body h1 {
  opacity: 1;
}

header > input[type="checkbox"]:checked + .header-body .header-menu-button img[src*="view_headline"] {
  display: none;
}

header > input[type="checkbox"]:checked + .header-body .header-menu-button img[src*="clear"] {
  display: block;
}

header > input[type="checkbox"]:checked + .header-body .header-menu {
  display: block;
}

header.is-over h1 {
  opacity: 0;
}

header > input[type="checkbox"] {
  display: none;
}

header .header-menu-body > ul > li.contact-list {
  padding: 25px 3vw;
  line-height: 1;
}

header .header-menu-body > ul > li.contact-list > strong {
  display: block;
  margin-bottom: 5px;
}

header .header-menu-body > ul > li.contact-list > strong > span {
  font-size: 1.2rem;
}

header .header-menu-body > ul > li.contact-list p {
  margin-top: 15px;
  line-height: 1.2;
}

header .header-menu-body > ul > li.contact-list ul {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

header .header-menu-body > ul > li.contact-list ul > li + li {
  margin-left: 20px;
}

header .header-menu-body > ul > li.contact-list ul > li > a {
  display: inline-block;
  padding: 0 10px;
  border-radius: 3px;
  color: #fff;
  text-align: center;
  font-weight: bold;
  font-size: 1.4rem;
  line-height: 36px;
}

header .header-menu-body > ul > li.contact-list ul > li > a[href*="tel"] {
  background-color: #55b944;
}

header .header-menu-body > ul > li.contact-list ul > li > a[href*="mailto"] {
  background-color: #2f6ef6;
}

.main {
  padding-top: 48px;
}

/* メインビジュアル */

.main-visual {
  position: relative;
  overflow: hidden;
  max-height: 80vh;
  height: 56.25vw;
}

.main-visual img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

.main-visual > p {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  width: 100%;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 2px #000;
  font-size: 8vw;
  transform: translateY(-50%);
  font-weight: 600;
}

section {
  padding: 30px 6vw 60px;
}

section + section {
  padding-top: 48px;
}

section > [class*="-body"] {
  margin: 0 auto;
  max-width: 900px;
}

section h2 {
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  margin: -1px;
  padding: 0;
  width: 1px;
  height: 1px;
  border: 0;
  white-space: nowrap;
}

section h2 + p {
  font-family: soloburn, sans-serif;
}

section .section-title {
  display: block;
  margin-bottom: 30px;
  text-align: center;
  text-transform: capitalize;
  font-weight: 600;
  font-style: italic;
  font-size: 1.5em;
  font-family: futura, "Century Gothic", sans-serif;
  line-height: 1;
}

section.teacher {
  background-color: #f8f8f8;
  text-align: center;
}

section.teacher .teacher-profile h3 {
  margin-bottom: 15px;
}

section.teacher .teacher-profile > img + h3 {
  margin-top: 15px;
}

section.teacher .teacher-profile li {
  font-family: soloburn, sans-serif;
}

section.teacher .teacher-message {
  margin-top: 30px;
  font-size: 1.17em;
}

section.teacher .teacher-message::before,
section.teacher .teacher-message::after {
  color: #b3cb00;
  font-weight: 600;
  font-family: futura, "Century Gothic", sans-serif;
}

section.teacher .teacher-message::before {
  padding-right: 5px;
  content: "「";
}

section.teacher .teacher-message::after {
  padding-left: 5px;
  content: "」";
}

/* Voice レビュー */

section.voice ul {
  margin-top: 30px;
}

section.voice li {
  padding: 30px 20px;
  background: #fff;
  box-shadow: 0 9px 30px 0 rgba(0, 0, 0, .05);
  text-decoration: underline dashed #f8f8f8;
}

section.voice li + li {
  margin-top: 15px;
}

section.voice .review-author {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-weight: bold;
  font-size: 1.2rem;
}

section.voice .review-author-name,
section.voice .review-author + p {
  font-family: soloburn, sans-serif;
}

section.voice .review-author > img {
  margin-right: 15px;
  width: 36px;
}

.voice-list-more-button {
  margin-top: 25px;
  text-align: center;
}

.voice-list-more-button > button {
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.voice-list-more-button > button::after {
  display: inline-block;
  transform: translate(0, -2px);
  margin-left: 1em;
  content: "+";
  color: #b3cb00;
}

section.voice .voice-list[data-first-view-count="8"] ul > li:nth-child(n + 8) {
  display: none;
}

section.voice .voice-list[aria-expanded="true"] ul > li:nth-child(n + 8) {
  display: block;
}

/* よくある質問 */

section.faq {
  padding: 30px 3vw 60px;
  background-color: #8fa9ce;
}

section.faq dt,
section.faq dd {
  position: relative;
  bottom: -20px;
  opacity: 0;
  transition: all 1s cubic-bezier(.86, 0, .07, 1) 0s;
}

section.faq dt + dd,
section.faq dd p + div.faq-line-icon,
section.faq dd p + div.faq-line-icon + p {
  margin-top: 20px;
}

section.faq dd + dt {
  margin-top: 40px;
}

section.faq dl {
  margin: 0 auto;
}

section.faq dt {
  width: 100%;
  text-align: right;
}

section.faq dt > p {
  position: relative;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 12px;
  background: #dbdf68;
  text-align: left;
  font-family: soloburn, sans-serif;
}

section.faq dt > p::after {
  position: absolute;
  top: 5px;
  right: -7px;
  width: 0;
  height: 0;
  border-width: 5px 0 5px 10px;
  border-style: solid;
  border-color: transparent transparent transparent #dbdf68;
  content: "";
  transform: rotate(-25deg);
}

section.faq dd {
  position: relative;
  padding-left: 46px;
  width: 100%;
  text-align: left;
}

section.faq dd > p {
  position: relative;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 12px;
  background: #efefef;
  font-family: soloburn, sans-serif;
}

section.faq dd > .faq-line-icon {
  position: absolute;
  left: 0;
  display: block;
  overflow: hidden;
  width: 36px;
  height: 36px;
  border: 1px solid #efefef;
  border-radius: 100%;
  background: #fff url(../img/logo.png) center center no-repeat;
  background-size: 80%;
  line-height: 36px;
}

section.faq dd > .faq-line-icon img {
  width: 30px;
}

section.faq dd > p::after {
  position: absolute;
  top: 5px;
  left: -7px;
  width: 0;
  height: 0;
  border-width: 5px 10px 5px 0;
  border-style: solid;
  border-color: transparent #efefef transparent transparent;
  content: "";
  transform: rotate(25deg);
}

section.faq dt.is-inview,
section.faq dd.is-inview {
  bottom: 0;
  opacity: 1;
}

/* 住所 */

section.overview {
  position: relative;
  padding: 60px 0 0;
  font-family: soloburn, sans-serif;
}

section.overview .section-title {
  display: none;
}

section.overview > .overview-body {
  position: relative;
  padding: 0 6vw;
}

section.overview > .overview-body h3,
section.overview > .overview-body p,
section.overview > .overview-body table {
  position: relative;
  z-index: 1;
}

section.overview > .overview-body h3 + p {
  margin-top: 5px;
}

section.overview > .overview-body p + p {
  margin-top: 30px;
  text-align: left;
}

section.overview > .overview-body .school-summary {
  position: relative;
  display: block;
}

section.overview > .overview-body .school-summary > h3 > span {
  font-size: 1.2rem;
}

section.overview img[src*="logo.svg"] {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 300px;
  max-height: 300px;
  width: 75vw;
  height: 75vw;
  opacity: .1;
  transform: translate(-50%, -50%);
}

section.overview table {
  margin: 30px 0;
}

section.overview .school-information th,
section.overview .school-information td {
  height: 48px;
  vertical-align: top;
  padding-bottom: 15px;
}

section.overview .school-information th {
  padding-right: 15px;
}

section.overview .school-information th > small {
  font-size: 50%;
}

section.overview .school-information td > small {
  margin-top: 5px;
  display: block;
}


/* ツアー */

section.tour {
  background-color: #f8f8f8;
}

section.tour > .tour-body {
  padding: 0 6vw;
}


/* コンタクト */

section.contact {
  padding: 30px 0 0;
  text-align: center;
}

section.contact p {
  text-align: left;
}

section.contact .contact-body {
  padding: 0 6vw;
}

section.contact .contact-list {
  padding: 30px 0 45px;
  width: 100%;
}

section.contact .contact-list th,
section.contact .contact-list td {
  height: 48px;
  vertical-align: top;
  text-align: left;
}

section.contact .contact-list th {
  padding-right: 15px;
  vertical-align: top;
}

section.contact .contact-list a {
  color: #d9076d;
}

section.contact .contact-list a > i {
  font-family: soloburn, sans-serif;
}

section.contact .contact-list a[href*="tel"] {
  font-family: soloburn, sans-serif;
}

section.contact .contact-list .contact-list-line {
  padding-right: 0;
  width: 100%;
  text-align: center;
}

section.contact .map {
  position: relative;
  max-height: 80vh;
  height: 56.25vw;
}

section.contact .map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

footer {
  background: #222;
  text-align: center;
}

footer small {
  display: block;
  padding: 0 6vw;
  color: #f8f8f8;
  line-height: 48px;
}

@media (min-width: 1024px) {
  header {
    position: static;
  }

  header .header-body {
    height: 60px;
  }

  header .header-logo > img {
    height: 40px;
  }

  header h1 {
    display: block;
    padding-left: 1.5rem;
    font-size: 1.5rem;
  }

  header .header-menu-button {
    display: none;
  }

  header .header-menu {
    position: static;
    display: block;
    margin: 0 3vw 0 auto;
    width: auto;
    height: auto;
    background: transparent;
  }

  header .header-menu-body > ul {
    display: flex;
    padding: 0;
  }

  header .header-menu-body > ul > li {
    padding: 0;
    border: 0;
    line-height: 60px;
  }

  header .header-menu-body > ul > li + li {
    margin-left: 30px;
  }

  header .contact-list {
    display: none;
  }

  .main {
    padding-top: 0;
  }

  .main .main-visual > p {
    font-size: 80px;
  }

  section.overview {
    text-align: center;
  }

  section.overview .overview-body {
    display: inline-block;
    text-align: center;
  }

  section.overview .school-summary {
    text-align: center;
  }

  section.overview .school-information {
    display: inline-block;
    text-align: left;
  }

  section.contact {
    text-align: center;
  }

  section.contact .contact-list {
    display: inline-block;
    width: auto;
    text-align: center;
  }
}
