@charset "ctf-8";

html {
  font-size: 100%;

}

body {
  font-family: "Noto Serif JP", serif !important;
  letter-spacing: 0.1rem;
}


p {
  text-align: center;
  line-height: 2rem;
  margin: 2rem auto;
}


.title-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 8rem;
}

/* 左寄りボックス */
.box {
  border: 2px solid red;
  width: 8rem;
  height: 8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  font-family: "Noto Sans JP", sans-serif !important;
  margin-left: 8rem; /* ← 左にくっつかない */
  z-index: 2;
}

/* 中央タイトル */
.title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  width: 100%;
  z-index: 1;
}

/* スマホ */
@media (max-width: 768px) {
  .box {
   width: auto;
   height: auto;
   margin: 0 auto;
   padding: 0.8rem;
  }

  .title {
   margin-top: 10rem;
  }
}

.top-btn {
  background-color: rgba(0, 0, 0, 0.5) !important;
  color: white!important;
  border-color: white !important;
}

.top-btn:hover {
  border-color: red!important;
  background-color: red !important;
  color: white !important;
}

.btn-outline-primary.normal-btn {
  font-size: 15px;
  border-color: red;
  background-color: white;
  color: red;
   
}

.btn-outline-primary.normal-btn:hover {
  border-color: red!important;
  background-color: red !important;
  color: white !important;
}

header {

  .nav-item {
  font-weight: 900;
  font-family: system-ui, -apple-system, "Segoe UI",
  Roboto, "Helvetica Neue", Arial,
  "Noto Sans", "Liberation Sans",
  sans-serif;
  }

  .hero-video {
  width: 72%;
  margin: 0 auto;
  position: relative;

  @media (max-width: 768px) {
    width: 100%;
  }
  }

  .hero-video video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  }

  .hero-overlay {
  position: absolute;
  bottom: 20%;
  right: 16%;
  transform: translateY(-10px);
  }

  @media (max-width: 1024px) {
  .hero-overlay {
    position: static;
    margin: 20px auto 0;
    text-align: center;
    }
  }

  @media (max-width: 767px) {
    .top-btn {
      padding: 0.25rem 0.75rem; /* スマホ */
      font-size: 14px;
    }
  }


  .nav-logo {
    margin: 0 auto;
    @media (max-width: 768px) {
      margin: 0 auto;
    }
  }
  
  .nav-link {
      color: #000;
      font-size: 1.5rem;
      font-weight: bold;
  }

  .nav-link:focus {
    color: gray
  }
  
  .nav-link:hover {
    color: gray;
  }

  .nav-item {
    margin-left: 10px;
    margin-right: 10px;
  }

  .h-logo {
    width: 100%; /* スマホサイズ */
    margin-top: -3rem;

  }

  @media (min-width: 768px) {
  /* タブレット以上 */
  .h-logo {
    width: 50%;
    margin-top: 10px;
  }
  }

  @media (min-width: 992px) {
  /* PCサイズ */
  .h-logo {
    width: 35%;
    margin-top: -3rem;
  }
  }
}

#top {
  h1 {
  text-align: center;
  font-size: 30px;
  letter-spacing: 1rem;
  
  @media (max-width: 765px) {
  font-size: 24px;
  letter-spacing: 0.5rem;
  }
  }

  .inst-link :focus {
    color: gray
  }

  .inst-link :hover {
    color: gray;
  }
  
  p {  
  font-size: 24px;
  line-height: 2.2;
  letter-spacing: 0.1rem; 
  @media (max-width: 765px) {
  font-size: 16px;
  line-height: 2.2;
  }
  }

  .top-logo {
    width: 14rem;
    @media (max-width: 765px)  {
      width: 12rem;
    }
  }
}

#experience {
  margin-top: 8rem;
  margin-bottom: 10rem;

  @media (max-width: 767px) {
   margin-top: 3rem;
   margin-bottom: 3rem;
  }

  .sp-only {
  display: none;
  }

  @media (max-width: 767px) {
    .sp-only {
    display: inline;
    }
  }

  .experience-img {
    width: 80%;
    @media (max-width: 768px) {
    width: 100%;
   }
  }

  h1 {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 0.3rem;

    @media (max-width: 768px) {
    font-size: 23px;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    padding-top: 1.2rem;
    }
  }

  h3 {
    font-size: 18px;
    font-weight: bold
  }

  h4 {
      font-size: 22px;
  }

  .imag-title {
  font-size: 22px;
  letter-spacing: 0.2rem;
  padding: 1rem;
  margin-top: 2.5rem;
    @media (max-width: 768px) {
      font-size: 18px;
      margin-top: 1rem;
      padding: 0.5rem;
   }
  }

  .centre-line {
  border-bottom: 1px solid red;
  width: 50%;
  display: inline-block;
  margin: 0 auto;
    @media (max-width: 768px) {
      width: 80%;
    }
  }

  .experience-flow {
  padding-left: 7rem;
  padding-right: 7rem;
  }

  /* スマホ（Bootstrapのsm未満） */
  @media (max-width: 768px) {
    .experience-flow {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  }

  .v-line {
  width: 2px;
  height: 30px;
  background-color: gainsboro;
  }
 }

 #price {
  margin-top: 10rem;
  margin-bottom: 10rem;

  @media (max-width: 767px) {
   margin-top: 3rem;
   margin-bottom: 3rem;
  }

  .sp-only {
  display: none;
  }
   @media (max-width: 767px) {
    .sp-only {
    display: inline;
   }
  }

  h1 {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 0.3rem;

    @media (max-width: 768px) {
      font-size: 24px;
      line-height: 1.6;
    }
  }
@media (max-width: 767px) {
  .price-p {
   padding-left: 2rem;
   padding-right: 2rem;
  }
}


  .btn-outline-black {
  color: #000;
  border: 1px solid #000;
  background-color: transparent;
  transition: all 0.3s ease;
  }

  .btn:hover {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
  }

  .b-tight {
  line-height: 1.4;
  text-align: center;
  font-size: 15px;
  }

  .btn-tight {
  line-height: 1.25;
  text-align: center;
  }

  .same-btn {
    width: 180px;
  }

  .menu-box {
    width: 650px;
    @media (max-width: 768px) {
      width: auto;
    }
  }

  .price1 {
    border: none;
    border: none !important;
  }

  .centre-line {
  border-bottom: 1px solid red;
  display: inline-block;
  margin: 0 auto;
  width: 50%;
    @media (max-width: 768px) {
    width: 22rem;
    }
  }
  
  .price1 {
  text-align: right !important;
  font-family: monospace !important; /* 等幅を強制 */
  font-size: 20px; /* 何でもOK、試し用 */
  background: #f5f5f5; /* CSS が当たってるか確認用 */
  }
 }

 #about {
    margin-top: 10rem;
    margin-bottom: 10rem;

    @media (max-width: 767px) {
    margin-top: 3rem;
    margin-bottom: 3rem;
  }  

  h1 {
      font-size: 28px;
      font-weight: bold;
      letter-spacing: 0.3rem;

    @media (max-width: 768px) {
      font-size: 24px;
    }
  }

  .btn-outline-black {
    color: #000;
    border: 1px solid #000;
    background-color: transparent;
    transition: all 0.3s ease;
  }

  .btn:hover {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
  }

  .b-tight {
    line-height: 1.4;
    text-align: center;
    font-size: 15px;
  }

  .btn-tight {
    line-height: 1.25;
    text-align: center;
  }

  .same-btn {
    width: 180px;
  }

  .name-box {
    width: 400px;
    @media (max-width: 768px) {
      width: 360px;
    }
  }

  .prof-box {
    width: 855px;      
    @media (max-width: 768px) {
      width: auto;
    }
  }
 }

 #contact {
  margin-top: 10rem;
  margin-bottom: 10rem;

  @media (max-width: 767px) {
   margin-top: 3rem;
   margin-bottom: 3rem;
  } 

  .contact-img {
    width: 80%;
    @media (max-width: 768px)  {
    width: 100%;
    } 
  }

  h1 {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 0.3rem;

    @media (max-width: 768px) {
      font-size: 24px;
    }
  }

    @media (max-width: 767px) {
   .contact-p {
    padding-left: 2rem;
    padding-right: 2rem;
   }
  }


  p {
  line-height: 1.7rem;
  }

  .b-tight {
    line-height: 1.4;
    text-align: center;
    font-size: 15px;
    }

    .btn-tight {
      line-height: 1.25;
      text-align: center;
    }



    .box-m {
      font-size: 14px;
    }

    .menu-p {
      font-size: 24px;
      line-height: 1.5;
    }

    .contact-logo {
      width: 16rem;

      @media (max-width: 765px)  {
       width: 16rem;
      }
    }
}

footer {
    img {
    margin-top: -8rem;
    }

    .inst-link :focus {
    color: gray
    }

    .inst-link :hover {
    color: gray;
    }
}

#backToTop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  z-index: 999;
}

/* 小さな画面にも対応 */
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
    }
}

