@charset "utf-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #fcf9fd, #cdbad3);
  color: #4d4d4d;
  font-family: "Zen Old Mincho", serif;
  font-weight: bold;
  font-style: normal;
  animation: fadeIn 2s;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 100;
  }
}

a {
  color: #4d4d4d;
}
a:hover {
  color: #ffffff;
}
/* ---------- header ---------- */
header {
  display: flex;
  justify-content: space-between;
  padding: 0.5em;
  align-items: center;
  position: fixed;
  z-index: 100;
  width: 100%;
  color: #fff;
}
.logo {
  width: 50px;
  margin: 1em 0 0 1em;
}
.logo img {
  width: 100%;
  height: auto;
}

/* ハンバーガーメニュー */
.hidden {
  display: none;
}
.nav-btn {
  display: flex;
  width: 60px;
  height: 60px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 100;
  cursor: pointer;
}
.nav-btn span,
.nav-btn span::before,
.nav-btn span::after {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  border-radius: 3px;
  background: #333;
  transition: 0.5s;
  position: absolute;
}
.nav-btn span:before {
  bottom: 8px;
}
.nav-btn span:after {
  top: 8px;
  width: 20px;
  margin-left: 10px;
}
.hidden:checked ~ .nav-btn span {
  background-color: #ffffff00;
}
.hidden:checked ~ .nav-btn span::before {
  bottom: 0;
  transform: rotate(45deg);
}
.hidden:checked ~ .nav-btn span::after {
  width: 30px;
  margin-left: 0;
  top: 0;
  transform: rotate(-45deg);
}

nav {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 100%;
  z-index: 99;
  background: #f1f1f1ec;
  transition: 0.5s;
}
nav ol {
  width: fit-content;
  height: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  list-style: none;
}
nav a {
  text-decoration: none;
  color: #2b1c2b;
  position: relative;
}
nav a::after {
  position: absolute;
  left: 0;
  content: "";
  width: 100%;
  height: 2px;
  background-color: #6a2eab;
  bottom: -2px;
  transform: scale(0, 1);
  transform-origin: center top;
  transition: transform 0.3s;
}
nav a:hover {
  color: #6a2eab;
}
nav a:hover::after {
  transform: scale(1, 1);
}
nav li:nth-of-type(n + 2) {
  margin-top: 2em;
}
.school-link {
  border-top: solid 1px #2b1c2b;
  padding-top: 17%;
  margin-top: 17%
}
.hidden:checked ~ nav {
  left: 0;
}

/* ---------- fv ---------- */
.fv {
  position: relative;
}
.fv-text {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  z-index: 1;
  width: fit-content;
  height: fit-content;
  color: #fff3fd;
  text-shadow: 3px 1px #3a3a3a;
  text-align: center;
}
h1 {
  font-size: 12em;
  font-family: "Qwitcher Grypen", cursive;
  font-weight: 400;
  font-style: normal;
  width: fit-content;
  position: relative;
  margin: 0 auto;
}
h1::before {
  content: "熊本電子ビジネス専門学校";
  font-size: 16px;
  display: block;
  text-align: left;
  font-family: "Zen Old Mincho", serif;
  font-weight: bold;
  font-style: normal;
  position: absolute;
}
.fv-text p {
  font-size: 20px;
  margin: 0 1em;
}
.fv-img img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}
.fv-phone {
  display: none;
}

/* ---------- 共通設定 ---------- */
main {
  overflow: hidden;
}
h2 {
  text-align: center;
  margin: 15% 0 3%;
}
h2 span {
  font-family: "Qwitcher Grypen", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 1.5em;
}

.marker {
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  background: linear-gradient(transparent 0%, #bd66ff8f 80%);
  background-position: 0;
  background-size: 0;
  background-repeat: no-repeat;
  transition: background 1s;
}
.features-text .marker {
  background: linear-gradient(transparent 0%, #ffab8a8f 80%);
  background-position: 0;
  background-size: 0;
  background-repeat: no-repeat;
  transition: background 1s;
}
.marker.active {
  background-size: 100%;
}

.top-btn {
  width: 60px;
  height: 60px;
  position: fixed;
  bottom: 5em;
  right: 1em;
  z-index: 99;
  background-color: #83838369;
  border-radius: 50%;
}
.top-btn a {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.top-btn span {
  width: 10px;
  height: 10px;
  border-top: solid 3px #fff;
  border-right: solid 3px #fff;
  transform: rotate(-45deg);
  margin-top: 5px;
}
.top-btn a:hover {
  color: #333333;
}

/* ---------- features ---------- */
.features {
  position: relative;
}
.features-item {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin: 0 3em;
}

.back-img_white {
  position: absolute;
  right: 4%;
  top: -4%;
  z-index: -1;
  width: 20%;
}
.back-img_white img {
  width: 100%;
  height: auto;
}
.back-img_blue {
  position: absolute;
  left: -10%;
  bottom: -25%;
  z-index: -1;
  width: 70%;
  transform: rotate(66deg);
}
.back-img_blue img {
  width: 100%;
  height: auto;
}

.features-item:nth-last-of-type(1),
.features-item:nth-last-of-type(3) {
  flex-direction: row-reverse;
}
.features-item:nth-last-of-type(2) {
  margin: 5em 3em;
}

.features-img,
.features-text {
  width: 30%;
}
.features-img img {
  width: 100%;
  height: auto;
  border-radius: 7px;
}
.features-text {
  text-shadow: 1px 1px 5px #ffffff73, -1px 1px 5px #ffffff73,
    1px -1px 5px #ffffff73, -1px -1px 5px #ffffff73, 1px 0px 5px #ffffff73,
    0px 1px 5px #ffffff73, -1px 0px 5px #ffffff73, 0px -1px 5px #ffffff73;
}
h3 {
  font-size: 20px;
}

/* ---------- schedule ---------- */
.schedule-flex {
  display: flex;
  width: 70%;
  margin: 0 auto 5em;
  justify-content: space-between;
}
.schedule-item {
  width: 43%;
}
.schedule-item p {
  font-size: 20px;
  margin: 0 auto 1em;
  padding: 1.3em 1.5em;
  border: solid 1px #4d4d4d;
  width: fit-content;
}
.schedule-item:nth-of-type(1) p {
  border-radius: 53% 47% 40% 60% / 56% 42% 58% 44%;
}
.schedule-item:nth-of-type(2) p {
  border-radius: 61% 39% 67% 33% / 52% 56% 44% 48%;
}
.schedule-flex dl {
  display: flex;
}
.schedule-flex dl:nth-of-type(n + 2) {
  margin-top: 2em;
}
.schedule-flex dt,
.schedule-flex dd {
  font-size: 18px;
}
.schedule-flex dt {
  width: 5em;
  text-align: center;
}
.schedule-flex dd {
  width: 100%;
}
.subject {
  font-size: 15px;
  color: #0600ae;
  opacity: 0;
  transition: all 1.5s;
}
.blockIn {
  opacity: 1;
}

/* ---------- work ---------- */
.work {
  color: #dddddd;
  position: relative;
  margin-top: 15%;
}
.work h2 {
  margin-top: 0;
}
.back-img_orange {
  position: absolute;
  right: -13%;
  bottom: -77%;
  z-index: -1;
  width: 50%;
}
.back-img_orange img {
  width: 100%;
  height: auto;
}

.back-img {
  background-image: url(../images/work.jpg);
  background-position: center;
  background-size: cover;
  width: 100%;
  height: auto;
  padding: 10% 0;
}
.work-item {
  width: 70%;
  margin: 0 auto;
}
.work dl:nth-child(1) {
  margin-bottom: 2em;
}
.work dt {
  font-size: 20px;
}
.work dd {
  word-break: auto-phrase;
}

/* ---------- license ---------- */
.license-flex {
  display: flex;
  width: 70%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-around;
}
.license-img {
  width: 45%;
  margin-right: 3em;
}
.license-img img {
  width: 100%;
  height: auto;
  border-radius: 7px;
}
.license-item {
  width: fit-content;
  line-height: 2em;
}
.license-item p::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  background-color: #b3b3b3;
  border-radius: 50%;
  margin-right: 0.5em;
}

/* ---------- access ---------- */
.access-item {
  width: 70%;
  margin: 0 auto;
}
.access-map {
  width: 100%;
  height: 30em;
  margin: 0 auto;
}
iframe {
  width: 100%;
  height: 100%;
  border-radius: 7px;
}
.google-link {
  text-align: right;
}
.access-text {
  line-height: 1.7em;
}
.access-text_flex {
  display: flex;
  margin-top: 1em;
  justify-content: space-evenly;
}
.access-left p:nth-of-type(1),
.access-right p:nth-of-type(1),
.access-right p:nth-of-type(3) {
  font-size: 17px;
}
.access-right p:nth-of-type(3) {
  margin-top: 1em;
}

/* ---------- link ---------- */
.link-flex {
  margin: 0 auto;
  margin-top: 10%;
  display: flex;
  justify-content: space-evenly;
  width: 70%;
}
.link-flex a {
  border: solid 1px #a584af;
  padding: 2em 0;
  width: 35%;
  text-align: center;
  display: inline-block;
  text-decoration: none;
  background-color: #fefff68a;
  border-radius: 7px;
}
.link-flex a:hover {
  background-color: #d0bdd5;
  color: #fff;
}

/* ---------- footer ---------- */
footer {
  position: relative;
}
.back-img_blue2 {
  width: 37%;
  z-index: -1;
  position: absolute;
  bottom: 35%;
  left: -15%;
  transform: rotate(119deg);
}
.back-img_blue2 img {
  width: 100%;
  height: auto;
}
footer {
  padding: 15em 2em 2em;
}
.footer-about h3 {
  font-size: 26px;
}
.footer-about h3 span {
  font-size: 22px;
  margin-right: 1em;
}

/* ---------- メディアクエリ ---------- */
@media screen and (max-width: 1510px) {
  /* ---------- access ---------- */
  .access-text_flex {
    justify-content: space-between;
  }
  .access-left,
  .access-right {
    width: 45%;
  }
}

@media screen and (max-width: 1270px) {
  h1 {
    font-size: 10em;
  }
}

@media screen and (max-width: 768px) {
  /* ---------- fv ---------- */
  .fv-img {
    display: none;
  }
  .fv {
    height: 90vh;
  }
  h1 {
    font-size: 7em;
  }
  .fv-text p {
    font-size: 18px;
  }
  .fv-phone {
    display: block;
  }
  .fv-phone div {
    height: 45vh;
  }
  .fv-img1 img {
    object-position: 0 15%;
  }
  .fv-phone img {
    vertical-align: middle;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .top-btn {
    bottom: 1em;
  }

  /* ---------- features ---------- */
  .features-item {
    display: block;
    margin: 0 5em;
  }
  .features-item:nth-last-of-type(2) {
    margin: 5em;
  }
  .features-text,
  .features-img {
    width: 100%;
  }

  /* ---------- schedule ---------- */
  .schedule-flex {
    display: block;
    width: 80%;
  }
  .schedule-item {
    width: 100%;
  }
  .schedule-item:nth-of-type(2) {
    margin-top: 4em;
  }

  /* ---------- license ---------- */
  .license-flex {
    display: block;
    width: 100%;
    padding: 0 5em;
  }
  .license-img {
    width: 100%;
    margin: 0;
  }
  .license-item {
    width: 100%;
  }

  /* ---------- access ---------- */
  .access-item {
    width: 78%;
  }
  .access-text_flex {
    display: block;
  }
  .access-left,
  .access-right {
    width: 100%;
  }
  .access-right p:nth-of-type(1),
  .access-right p:nth-of-type(3) {
    margin-top: 2em;
  }

  /* ---------- link ---------- */
  .link-flex {
    justify-content: space-between;
  }
  .link-flex a {
    width: 45%;
  }

  /* ---------- footer ---------- */
  .footer-about h3 {
    font-size: 20px;
  }
  .footer-about h3 span {
    font-size: 18px;
  }
}

@media screen and (max-width: 510px) {
  .footer-about h3 span {
    display: block;
  }
}
@media screen and (max-width: 430px) {
  /* ---------- header ---------- */
  header {
    padding: 0;
  }
  .logo {
    width: 30px;
  }
  h1 {
    font-size: 6em;
  }

  /* ---------- 共通設定 ---------- */
  h2 {
    margin: 5em 0 2em;
    font-size: 20px;
  }

  /* ---------- fv ---------- */
  .fv-text span {
    display: block;
  }
  .fv-img1 img {
    object-position: 50% 0;
  }

  /* ---------- features ---------- */
  .features-item {
    width: 85%;
    margin: 0 auto;
  }
  .features-item:nth-last-of-type(2) {
    margin: 5em 2em;
  }

  /* ---------- schedule ---------- */
  .schedule-flex {
    width: 85%;
  }

  /* ---------- work ---------- */
  .work-item {
    width: 78%;
  }

  /* ---------- license ---------- */
  .license-flex {
    display: block;
    width: 85%;
    padding: 0;
  }
  .license-img {
    width: 100%;
    margin: 0;
  }
  .license-item {
    width: 100%;
  }

  /* ---------- access ---------- */
  .access-item {
    width: 80%;
  }
  .access-map {
    height: 23em;
  }

  /* ----------  link ---------- */
  .link-flex {
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 5em;
  }
  .link-flex a {
    width: 70%;
  }
  .link-flex a:nth-of-type(1) {
    margin-bottom: 1em;
  }
  /* ---------- footer ---------- */
  footer {
    padding: 10em 1em 1em;
  }
}
