body {
  padding: 0;
  margin: 0;
  font-family: "Inter", sans-serif;
}

/* nav bar */
.menu-bar {
  position: sticky;
  display: block;
  top: 26px;
  z-index: 1000;
}

.menu-button {
  position: absolute;
  right: 10px;
}

.main {
  font-weight: 800;
  color: white;
  background-color: #ff6f00;
  padding: 3px 15px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  height: 2rem;
  width: 10rem;
  position: relative;
  cursor: pointer;
  justify-content: space-between;
}

.main > .inp {
  display: none;
}

.arrow {
  height: 34%;
  aspect-ratio: 1;
  margin-block: auto;
  position: relative;
  display: flex;
  justify-content: center;
  transition: all 0.3s;
}

.arrow::after,
.arrow::before {
  content: "";
  position: absolute;
  background-color: white;
  height: 100%;
  width: 2.5px;
  border-radius: 500px;
  transform-origin: bottom;
}

.arrow::after {
  transform: rotate(35deg) translateX(-0.5px);
}

.arrow::before {
  transform: rotate(-35deg) translateX(0.5px);
}

.main > .inp:checked + .arrow {
  transform: rotateX(180deg);
}

.menu-container {
  background-color: white;
  border-radius: 10px;
  position: absolute;
  width: 100%;
  left: 0;
  top: 130%;
  overflow: hidden;
  clip-path: inset(0% 0% 0% 0% round 10px);
  transition: all 0.4s;
}

.menu-list {
  --delay: 0.4s;
  --trdelay: 0.15s;
  padding: 8px 10px;
  border-radius: inherit;
  transition: background-color 0.2s 0s;
  position: relative;
  transform: translateY(30px);
  opacity: 0;
}

a {
  text-decoration: none;
}

a > .menu-list {
  color: #367cff;
}

.menu-list::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
  background-color: rgba(0, 0, 0, 0.3);
  width: 95%;
}

.menu-list:hover {
  background-color: rgb(223, 223, 223);
}

.inp:checked ~ .menu-container {
  clip-path: inset(10% 50% 90% 50% round 10px);
}

.inp:not(:checked) ~ .menu-container .menu-list {
  transform: translateY(0);
  opacity: 1;
}

.inp:not(:checked) ~ .menu-container .menu-list:nth-child(1) {
  transition: transform 0.4s var(--delay), opacity 0.4s var(--delay);
}

.inp:not(:checked) ~ .menu-container .menu-list:nth-child(2) {
  transition: transform 0.4s calc(var(--delay) + (var(--trdelay) * 1)),
    opacity 0.4s calc(var(--delay) + (var(--trdelay) * 1));
}

.inp:not(:checked) ~ .menu-container .menu-list:nth-child(3) {
  transition: transform 0.4s calc(var(--delay) + (var(--trdelay) * 2)),
    opacity 0.4s calc(var(--delay) + (var(--trdelay) * 2));
}

.inp:not(:checked) ~ .menu-container .menu-list:nth-child(4) {
  transition: transform 0.4s calc(var(--delay) + (var(--trdelay) * 3)),
    opacity 0.4s calc(var(--delay) + (var(--trdelay) * 3));
}

.bar-inp {
  -webkit-appearance: none;
  display: none;
  visibility: hidden;
}

.bar {
  display: flex;
  height: 50%;
  width: 20px;
  flex-direction: column;
  gap: 3px;
}

.bar-list {
  --transform: -25%;
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 50px;
  background-color: white;
  transition: all 0.4s;
  position: relative;
}

.inp:not(:checked) ~ .bar > .top {
  transform-origin: top right;
  transform: translateY(var(--transform)) rotate(-45deg);
}

.inp:not(:checked) ~ .bar > .middle {
  transform: translateX(-50%);
  opacity: 0;
}

.inp:not(:checked) ~ .bar > .bottom {
  transform-origin: bottom right;
  transform: translateY(calc(var(--transform) * -1)) rotate(45deg);
}

/* company-name */
.company-name-sec {
  padding: 10px 0 0 10px;
}

.company-name-sec .out-line {
  border-radius: 0 0 60px 0;
  position: absolute;
  height: 90px;
  width: 270px;
  outline: solid #367cff;
  margin: -10px 0 0 -10px;
}

.company-name {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: 880;
  letter-spacing: -0.15rem;
  font-family: "Inter", sans-serif;
}

.company-name .under {
  background: linear-gradient(to right, #00fffb, #0d00ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 2px;
}

.company-name img {
  width: 60px;
}

/* teacher intro section */
.home-teacher-intro {
  margin: 10rem auto 4rem 5%;
  background: linear-gradient(#f7f7f7, #f7f7f7) padding-box,
              linear-gradient(to right, #0d00ff, #367cff) border-box;
  border: 4px solid transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

.home-teacher-intro .upper {
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: -2px;
}

.home-teacher-intro .under {
  font-size: 4rem;
  font-weight: 600;
  color: #367cff;
  margin-top: -15px;
  letter-spacing: -4px;
}

/* main-title */
.main-title {
  margin: 15rem 2rem 20rem;
}

.main-title .upper {
  font-size: 4rem;
  font-weight: 200;
  letter-spacing: -2px;
}

.main-title .under {
  font-size: 6rem;
  margin-top: -25px;
  font-weight: 800;
  color: #367cff;
  letter-spacing: -4px;
}

.teacher-intro-sec {
  margin-top: 30rem;
}

.teacher-intro-desc {
  margin: 0 auto 0 5%;
  width: 90%;
  line-height: 1.5;
  text-align: center;
}

.teacher-intro-desc > span {
  display: inline-block;
}

.teacher-intro-sec p:first-of-type {
  font-weight: bold;
  font-size: 2rem;
}

/* teacher menu and box */
.teacher-menu .menu-title {
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.14rem;
}

.box {
  display: flex;
  height: 400px;
  overflow-x: scroll;
  overflow-y: hidden;
  margin: 2rem auto 1rem;
}

.box button,
.teacher-button {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  background-color: #e1e1e1;
  width: 150px;
  height: 400px;
  margin: 0 4px;
  flex-shrink: 0;
}

.teacher-button .number {
  font-size: 4rem;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  color: white;
  margin: auto;
}

.number span {
  margin-bottom: 20px;
}

/* スクロールバースタイル */
.box::-webkit-scrollbar {
  height: 14px;
}

.box::-webkit-scrollbar-thumb {
  background: #8e8e8e;
  border-radius: 7px;
}

.box::-webkit-scrollbar-track {
  background: #e9e9e9;
  border-radius: 7px;
}

/* teacher profiles */
.teacher-profiles {
  width: 90%;
  margin: 15rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.profile {
  width: 300px;
  height: 400px;
  margin: 0 auto 8rem;
  outline: 2.2px solid #8e8e8e;
  border-radius: 20px;
  display: flex;
  position: relative;
  flex-direction: column;
}

.profile-wrapper {
  padding: 2rem;
}

.profile .img-haruna_y { background-image: url('../imgs/teachers/haruna_y.jpg'); }
.profile .img-ako_m { background-image: url('../imgs/teachers/ako_m.jpg'); }
.profile .img-hana_s { background-image: url('../imgs/teachers/hana_s.jpg'); }
.profile .img-kanon_a { background-image: url('../imgs/teachers/kanon_a.jpg'); }
.profile .img-kao_f { background-image: url('../imgs/teachers/kao_f.jpg'); }
.profile .img-rikuto_s { background-image: url('../imgs/teachers/rikuto_s.jpg'); }
.profile .img-koto_k { background-image: url('../imgs/teachers/koto_k.jpg'); }

.profile > a > div {
  width: 270px;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #8e8e8e;
  border-radius: 30px;
  margin: -1.5rem auto 0;
  overflow: hidden;
  z-index: 1;
}

.profile > a {
  z-index: 1;
}

.profile .university-name {
  border-radius: 15px 15px 15px 0;
  padding: 5px 15px;
  position: absolute;
  font-size: 1.3rem;
  outline: solid #367cff;
  margin-top: -3.3rem;
  margin-left: 1.5rem;
  color: #367cff;
  pointer-events: none;
}

.profile .description {
  display: block;
  margin: 0 0 0 1.5rem;
}

.profile .description .name {
  display: flex;
  align-items: center;
  margin: 30px 0 10px;
}

.profile .description .name .right {
  width: 10px;
  height: 35px;
  background-color: #8e8e8e;
  margin-right: 10px;
}

.profile .description .name .name-text {
  font-size: 1.2rem;
  font-weight: 600;
}

.profile button {
  bottom: 10px;
  margin-top: 10px;
  left: 10px;
  background-color: #367cff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

button a {
  color: white;
  text-decoration: none;
}

/* breadcrumb */
.breadcrumb {
  width: 80%;
  margin: 2rem auto;
}

.breadcrumb ul {
  display: flex;
  list-style: none;
  padding: 0;
  font-size: 1rem;
}

.breadcrumb li + li::before {
  content: ">>";
  margin: 0 0.5em;
}

.breadcrumb a {
  color: #367cff;
  text-decoration: none;
}

/* responsive styles */
@media screen and (max-width: 390px) {
  .menu-bar {
    top: 11px;
  }

  .menu-bar .main {
    width: 5rem;
  }

  .menu-button {
    right: 5px;
  }
}

@media (max-width: 700px) {
  .menu-bar {
    top: 11px;
  }

  .menu-bar .main {
    width: 5rem;
  }

  .menu-button {
    right: 5px;
  }

  .main-title {
    margin: 15rem 1rem 22rem;
  }

  .main-title .upper {
    font-size: 1.5rem;
    letter-spacing: -1.5px;
  }

  .main-title .under {
    font-size: 3rem;
    margin-top: -12px;
    letter-spacing: -3px;
  }

  .teacher-intro-desc {
    font-size: 1rem;
  }

  .teacher-intro-desc > .break {
    display: inline-block;
  }

  .teacher-intro-sec p:first-of-type {
    font-size: 1rem;
  }

  

  .box {
    height: 304px;
  }

  .box button,
  .teacher-button {
    height: 304px;
    width: 114px;
  }

  .teacher-button .number {
    margin: 200px auto 0;
    height: fit-content;
    font-size: 3rem;
  }

  .company-name-sec .out-line {
    width: 100px;
  }

  .company-name-sec .upper,
  .company-name-sec .under {
    display: none;
  }
}
