body,
html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  /* スムーズスクロール */
}


.header-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

body {
  background-color: #e9e9e9;
}


/* ヘッダー固定 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  padding: 48px 0px 0px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 10;
}

/* サブタイトル */
.sub-title {
  color: #111111;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.5em;
  line-height: 1.6;
  margin: 0 0 6px 0;
  text-align: left;
}

/* メインタイトル */
.main-title {
  color: #111111;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.4em;
  margin: 0;
  text-align: left;

  /* 蛍光ペン風ハイライト */
  background-image: linear-gradient(120deg, #d7c5a7 0%, #d7c5a7 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.6em;
  /* 下線の太さに相当 */
  background-position: 0 70%;
  /* 文字の下側にライン */
}


.top {
  padding: 24px 24px 0px 24px;

}

.top img {
  width: 100%;
  height: calc(100vh - 24px);
  /* 上下の24px×2を引く */
  object-fit: cover;
  display: block;
  object-position: center 30%;


  position: relative;
  /* 文字を絶対配置するため */
}

.top-text {

  font-family: 'Noto Serif JP', serif;
  /* ←変更 */
  position: absolute;
  top: 89px;
  left: 200px;
  right: auto;
  bottom: auto;
  width: 691px;
  max-width: 100%;
  height: 589px;





  font-size: 80px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.4em;
  line-height: 1.9;
  text-align: left;
  margin: 0;
  z-index: 5;
  justify-content: flex-start;
}

.remake-gallery {
  text-align: center;
  background-color: #f5f5f5;
  padding: 60px 20px;

}

.remake-gallery h2 {
  font-family: "Noto Serif JP", serif;
  font-size: 2rem;
  margin-bottom: 40px;
  letter-spacing: 0.1em;
}

.remake-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.remake-item {
  position: relative;
  width: 300px;
  overflow: hidden;
}

.remake-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.remake-item:hover img {
  transform: scale(1.05);
}

.label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 1rem;
  padding: 5px 12px;

}

.before {
  background-color: rgba(180, 180, 180, 0.8);
}

.after {
  background-color: rgba(223, 170, 100, 0.9);
}



.receive {
  padding: 192px 0px 192px 0px;
  background-color: white;
}


.receive-title {
  color: #333;
  font-family: var(--s-font-f9a5a3ff);
  font-size: 40px;
  font-weight: 400;
  height: auto;
  letter-spacing: 0.1em;
  line-height: 1.6;
  margin: 0px 0px 12px 0px;
  text-align: left;
  width: auto;
  max-width: 100%;
  justify-content: center;
}

.lecture-info {
  max-width: 700px;
  margin: 0 auto;
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  line-height: 1.8;
}

.lecture-info h2 {
  font-size: 1.4em;
  margin-top: 24px;
  margin-bottom: 12px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
}

.lecture-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lecture-info li {
  margin-bottom: 16px;
}

.lecture-info strong {
  color: #111;
}

.lecture-info em {
  display: block;
  margin-top: 4px;
  color: #555;
  font-style: normal;
  /* 必要なら斜体にする */
}

.apply-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background-color: #e9e9e9;
  /* 背景グレー */
  box-sizing: border-box;
}

.apply-box {
  background-color: #ffffff;
  /* 白い箱 */
  width: 100%;
  max-width: 800px;
  /* パソコンでは800pxまで */
  padding: 40px 60px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-family: "Noto Serif JP", serif;
  box-sizing: border-box;
}

.apply-box h2 {
  font-size: 28px;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  color: #222;
}

.apply-box p {
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
}

.apply-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.apply-list li a {
  display: block;
  background-color: #d7c5a7;
  color: #111;
  text-decoration: none;
  padding: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.apply-list li a:hover {
  background-color: #c8b491;
  transform: translateY(-3px);
}

/* 📱スマホ対応（横スクロール防止＆見やすい余白） */
@media (max-width: 768px) {
  .apply-section {
    padding: 40px 10px;
  }

  .apply-box {
    padding: 30px 20px;
  }

  .apply-box h2 {
    font-size: 22px;
  }

  .apply-box p {
    font-size: 14px;
  }

  .apply-list {
    grid-template-columns: 1fr;
    /* ボタン縦並び */
    gap: 15px;
  }
}


/* スマホ用 */
@media (max-width: 768px) {
  .lecture-info {
    margin: 20px 12px;
    padding: 16px;
  }

  .lecture-info h2 {
    font-size: 18px;
  }

  .lecture-info li {
    font-size: 14px;
  }
}



/* スマホ（縦長）のときは構図を上寄せにして縦長っぽく見せる */
@media (max-width: 768px) {
  .smart-width {
    padding: 28px;
  }

  .smart-width h3 {
    font-size: 20px;
  }

  .top {
    padding: 12px 12px 0px 12px;
    overflow: hidden;
    /* はみ出た部分を隠す */
  }

  .top img {
    object-position: center top;
    height: calc(100vh - 12px);

    object-fit: cover;
    /* 画像を拡大・トリミング */
    object-position: 20% 50%;
    /* 注目したい人物の位置に調整 */



  }

  .top-text {
    font-family: 'Noto Serif JP', serif;
    /* ←変更 */
    top: 136px;
    /* 上からの距離 */
    left: 34px;
    /* 左寄せ */
    right: auto;
    font-size: 48px;
    /* 少し小さめに */
    letter-spacing: 0.25em;
    line-height: 3.5;
    color: #ffffff;
    z-index: 5;
    width: auto;
    height: auto;
  }


  .header {
    padding: 24px 0px 0pc 24px;

  }

  .main-title {
    width: 100%;

    letter-spacing: 0.2em;
  }

  .receive {
    padding-top: 100px;
  }
}



.teach {
  background-color: white;
}

.teacher-section {
  background-color: #fafafa;
  /* ← 背景を白に */
  padding: 80px 20px;
}

.teacher-container {
  max-width: 900px;
  margin: 0 auto;
}

.teacher-container h2 {
  text-align: left;
  font-size: 28px;
  color: #222;
  margin-bottom: 50px;
  letter-spacing: 0.08em;
}

.teacher-profile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.teacher-photo {
  width: 280px;
  object-fit: cover;
}

.teacher-text {
  text-align: left;
  flex: 1;
  min-width: 0;
  font-size: 15px;
  color: #444;
  line-height: 1.8;
}

.teacher-text h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: #333;
}

.teacher-role {
  font-size: 15px;
  color: #777;
  margin-bottom: 16px;
}

.insta-link {
  display: inline-block;
  margin-top: 18px;
  background-color: #d7c5a7;
  color: #111;
  text-decoration: none;
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.insta-link:hover {
  background-color: #c8b491;
  transform: translateY(-3px);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .teacher-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .teacher-photo {
    width: 100%;
    max-width: 320px;
  }

  .teacher-text {
    margin-top: 20px;
  }

  .teacher-profile {
    gap: 20px;
  }

}
footer {
  background-color: white;
  padding: 48px 0;  /* 横のpaddingをなくして中央揃え */
  text-align: center;
  overflow-x: hidden; /* 横はみ出し防止 */
}

.footer-logo {
  max-width: 240px; /* 最大幅を指定してスマホでも収まるように */
  width: 100%;
  height: auto;
  transition: opacity 0.3s;
}

.footer-logo:hover {
  opacity: 0.8;
}

/* 念のため、全体でも横スクロール防止 */
html, body {
  overflow-x: hidden;
}



.contact {
  background-color: #ffffff;
  padding: 80px 20px;
  text-align: left;
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
}

.contact h3 {
  font-size: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid #d7d7d7;
  display: inline-block;
}

.contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact li {
  margin-bottom: 8px;
}