@import url('https://fonts.googleapis.com/css?family=Noto+Sans+JP');

body {
  font-family: 'Playfair Display', serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #ffffff;
  color: #333333;
  font-size: 20px;
  text-align: center;
}
ul {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
  padding-left: 1.2em;
}

.class ul {
  list-style: none;
  padding-left: 0; 
  margin: 0;
}

.no-marker {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

/* Header */
.logo-content {
  position: absolute;
  top: 25%;
  left: 200px;
  z-index: 10;
}

.logo {
  width: 190px;
  max-width: 100%;
  height: auto;
}


header.hero {
  position: relative;
  text-align: center;
  padding: 120px 20px 80px;
  background-color: #ffffff;
}

header.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('./images/back.png') repeat-x center center;
  background-size: 15%;
  z-index: 1;
}

header .catchphrase {
  font-size: 30px;
  margin-top: 1.5rem;
  color: #333333;
}

.title {
  font-size: 60px;
}

/* Navigation */
.scroll-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.scroll-nav button {
  padding: 10px 20px;
  font-size: 20px;
  background-color: #f5f5f5;
  color: #333333;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.nav{
  display: none;
}

.scroll-nav button:hover {
  background-color: #e0e0e0;
}

.hamburger {
  display: block;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  height: 4px;
  width: 70%;
  background: #333;
  margin: 5px auto;
  transition: all 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.scroll-nav.mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0.97);
  z-index: 9998;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1);
}

.scroll-nav.mobile.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.scroll-nav.mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.scroll-nav.mobile li {
  margin: 30px 0;
}

.scroll-nav.mobile a {
  font-size: 2rem;
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.scroll-nav.mobile a:hover {
  color: #e09a9a;
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  .scroll-nav.mobile {
    display: none !important;
  }
}

/* Section */
section {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
  background-color: #ffffff;
  border-radius: 10px;
  color: #333333;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #111111;
  text-align: center;
  position: relative;
  display: block;
}

h2 + img {
  display: block;
  margin: 0 auto 30px;
  max-width: 150px;
}

/* About */
.about h3{
  text-align: center;
}

/* Carousel */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 40px;
  background-color: #ffffff;
  border-radius: 10px;
}

.carousel-images img {
  width: 100%;
  height: 500px;
  display: none;
  object-fit: cover;
  max-height: 1000px;
  border-radius: 10px;
}

.carousel-images img.active {
  display: block;
  animation: fadeIn 1.7s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #f5f5f5;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  color: #333333;
  border-radius: 100%;
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.carousel-button:hover {
  background-color: #cccccc;
}

/* Teacher Section */
.teacher-card {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  padding: 20px;
  margin-bottom: 40px;
  gap: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.teacher-image {
  flex: 0 0 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.teacher-image img {
  width: 200px;
  height: auto;
  object-fit: cover;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.teacher-content {
  flex: 1;
  color: #333333;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
}

.teacher-content h3 {
  margin-top: 0;
  font-size: 1.6rem;
  color: #333333;
}

.teacher-content p {
  margin-bottom: 0;
  line-height: 1.8;
  font-size: 1.3rem;
}

.teacher {
  margin-bottom: 30px;
  text-align: center;
}

.teacher img {
  width: 150px;
  height: 200px;
  object-fit: cover;
  border: 2px solid #cccccc;
  margin-bottom: 10px;
}

/* Contact Section */
.contact {
  position: relative;
  margin-bottom: 150px;
  background-color: #fafafa;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

.contact-card {
  display: flex;
  justify-content: space-evenly;
  gap: 100px;
  align-items: center;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  text-align: left;
}

.contact-info p {
  font-size: 1.5rem;
  color: #333333;
  margin-bottom: 10px;
}

.contact-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #e09a9a;
  color: #ffffff;
  font-size: 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.contact-link:hover {
  background-color: #f2c1c1;
}

/* Footer */
footer {
  position: relative;
  background-color: #f5f5f5;
  text-align: center;
  padding: 30px;
  font-size: 1.2rem;
  color: #666666;
}

footer::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('./images/back.png') repeat-x center center;
  background-size: 15%;
  z-index: 1;
}

/* Utility */
.fee-image {
  max-width: 100%;
  height: auto;
}

.flex-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.discription {
  text-align: left;
  color: #333333;
}

.map-content {
  text-align: center;
}

.map-content iframe {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 0;
}

.social-media {
  text-align: center;
  padding: 20px;
  background-color: #ffffff;
  margin-bottom: 40px;
  flex: 0 0 50px;
}

.instagram-link {
  text-decoration: none;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.instagram-icon,
.instagram-link img {
  width: 100px;
  height: auto;
  opacity: 1;
  transition: 0.3s;
}

.instagram-link:hover img {
  opacity: 0.7;
  transition: 0.3s;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.pc{
  display: none;
}

@media (max-width: 1200px) {
  .logo-content{
    left: 5%;
  }

  .logo{
    width: 130px;
    height: auto;
  }

}

@media (max-width: 768px) {
  body {
    font-size: 18px;
  }

  .title {
    font-size: 36px;
  }

  header.hero {
    padding: 200px 20px 50px;
  }

  header .catchphrase {
    font-size: 24px;
  }

  header.hero::before {
    margin-top: 10%;
    background-size: 40%;
  }

  .logo-content{
    position: relative;
    margin: auto;
    top: 0px;
    left: 0px;
  }

  .logo{
    width: 25%;
  }

  h2{
    font-size: 2rem;
  }

  .hamburger {
    display: block;
  }

  .scroll-nav{
    display: none;
  }

  .scroll-nav.mobile {
    display: none;
  }

  .scroll-nav.mobile.active {
    display: flex;
  }

  .scroll-nav button {
    width: 100%;
    font-size: 25px;
    font-family: 'Playfair Display', serif;
  }

  .teacher-card,
  .contact-card {
    flex-direction: column;
    gap: 20px;
  }

  .teacher-content p {
    font-size: 1.1rem;
  }

  .teacher-image img {
    width: 100%;
    max-width: 300px;
  }

  .flex-content{
    display: block;
  }

  .carousel{
    width: fit-content;
  }

  .carousel-images img {
    height: auto;
    max-height: 400px;
  }

  .instagram-icon,
  .instagram-link img {
    width: 70px;
  }

  .contact-info{
    text-align: center;
  }

  footer::before {
    background-size: 40%;
  }
}

.sp{
  display: none;
}

@media (max-width: 768px) {
  .sp{
    display: block;
  }
}
