/* General Styles */
body,
html {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background-color: #FAFAFA;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

section {
  padding: 40px;
  margin-top: 20px;
}

/* Header Section Styles */
header {
  background-color: #2afa9c;
  color: #fff;
  font-weight: bolder;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 60px;
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 60px;
}

.nav-links li {
  flex: 1;
  text-align: center;
}

.nav-links li a {
  color: black;
  text-decoration: none;
  display: inline-block;
}

.nav-links li a:hover {
  text-decoration: underline;
}

ul.nav-links.nav-links01,
ul.nav-links.nav-links02 {
  width: 50% !important;
  padding: 0 50px;
  box-sizing: border-box;
}

@media screen and (min-width: 1250px) {
  .nav-re .pc_only {
    display: flex;
    max-width: 1500px;
    margin: 0 auto;
  }

  .nav-re .mb_only {
    display: none;
  }

  .nav-re nav {
    justify-content: space-around !important;
  }

  .nav-re .nav-links {
    position: relative;
    width: auto !important;
    margin: 0 auto;
  }

  .nav-re li {
    width: 101px !important;
    font-size: 14px;
  }

  .nav-re .nav-links01 li {
    width: 153px !important;
  }

  .nav-re .nav-links02 {
    width: 560px !important;
  }

  .nav_adjust {
    width: 100%;
    display: flex;
  }


  .nav-links01 li:last-child a {
    background-color: rgba(0, 0, 0, 0) !important;
    margin-right: auto !important;
  }

  .nav-re .nav-links li:last-child a {
    padding: 17px;
  }
}

@media screen and (max-width: 1250px) {
  .nav-re .pc_only {
    display: none;
  }
}


.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo img {
  height: 70px;
  margin-top: 15px;
}

.nav-links li:nth-child(4) a {
  margin-right: -40px;
}

.nav-links li:last-child a {
  padding: 17px 30px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 25px;
  margin-right: -60px;
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: black;
  margin: 5px;
  transition: all 0.3s ease;
}

.mobail-contact {
  display: none;
}

/* Footer Section Styles */
footer {
  background-color: #263238;
  color: #fff;
  padding: 10px 20px;
  font-family: 'Arial', sans-serif;
}

.footer-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.footer-top {
  display: flex;
  justify-content: flex-start;
  margin-top: 50px;
  height: 88px;
}

.footer-top a {
  text-decoration: none;
}

.footer-top h1 {
  margin: 0;
  font-size: 2rem;
  margin-left: 70px;
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.footer-sections {
  display: flex;
  align-items: stretch;
  /* 高さを揃える */
  justify-content: space-between;
  width: 60%;
  margin-left: 400px;
  margin-top: -110px;
}

.footer-section {
  margin: 10px 40px;
}

.footer-section h4 {
  margin-bottom: 40px;
}

.footer-section ul {
  list-style-type: none;
  padding: 0;
  margin-bottom: 30px;
}

.footer-section li {
  margin-bottom: 15px;
  font-weight: 500;
}

.footer-section a {
  color: #fff;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.footer-line {
  width: 90%;
  border-bottom: 1px solid #fff;
  margin: 20px auto;
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 100px;
}

.footer-logo a {
  display: inline-block;
}

#SCHEDULE {
  padding: 20px;
  background-color: #efefef;
  /* 背景色を追加 */
  border-radius: 10px;
  /* 角を丸くする */
  text-align: center;
  /* テキストを中央揃え */
}

#SCHEDULE h2 {
  display: flex;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 2em;
}

#SCHEDULE h2::before,
#SCHEDULE h2::after {
  content: "";
  flex: 1;
  border-bottom: 2px solid #4cca03;
  margin: 0 10px;
}

#SCHEDULE p {
  margin-bottom: 25px;
  font-size: 1.2em;
  /* テキストを少し大きくして強調 */
}

/* Specific Section Styles */
#home,
#lessons,
#instructors,
#access,
#contact {
  background-size: cover;
  background-position: center;
}

#home {
  background-image: url("images/Tri.H00082.jpg");
  background-size: cover;
  height: 100vh;
  color: #050505;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 95px;
  margin-top: 60px;
  margin-bottom: 0;
}

#home h1,
#home p,
#home a {
  margin-top: 20px;
}

#home h1 {
  display: flex;
  flex-direction: column;
  font-size: 45px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(249, 249, 249, 0.978);
  /* 黒い影を追加 */
}

.title2,
.title3,
.title4,
.title5 {
  margin-top: -15px;
}

#home p {
  font-size: 1.4rem;
  font-weight: 600;
  width: 50%;
  color: #000000;
  text-shadow: 2px 2px 4px rgba(243, 243, 243, 0.907);
  /* 黒い影を追加 */
}

#home a {
  display: inline-block;
  padding: 10px 20px;
  color: #050505;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 20px;
}

.button-more {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0);
  padding: 10px 60px !important;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  border: 1.5px solid #000;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.button-more:hover {
  background-color: rgba(247, 242, 242, 0.975);
}

/* Lessons Section Styles */
#lessons {
  background-color: #edEBEB;
  width: 100%;
  padding: 40px 0;
  margin: 0;
}

.lessons-english-title {
  font-size: 40px;
  margin-bottom: 100px;
  margin-left: 100px;
}

.lessons-japanese-title {
  font-size: 25px;
  font-weight: 600;
  margin-left: 2%;
}

.lesson-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 180px;
  margin-top: 60px;
}

.lesson {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lesson img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
}

.lesson h3 {
  margin-top: 25px;
  font-size: 25px;
  color: #000;
}

.button-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.button-check-more {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0);
  padding: 17px 50px;
  color: hsl(0, 4%, 5%);
  font-size: 23px;
  font-weight: bolder;
  border: 1.5px solid #000;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
  text-decoration: none;
  margin-top: 30px;
  margin-bottom: 50px;
}

.button-check-more:hover {
  background-color: rgb(249, 249, 249);
}

/* Instructors Section Styles */
#instructors {
  background: #5E7E6E;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  align-items: center;
  color: white;
  text-align: left;
  height: 500px;
}

.instructor-container {
  grid-column: 2;
  grid-row: 1 / -1;
  text-align: right;
  height: 100%;
}

.instructor-container img {
  width: 100%;
  height: 100%;
}

#instructors h2,
#instructors p,
#instructors-button {
  margin-left: 45px;
}

.instructors-english-title {
  font-size: 3rem;
  margin-bottom: 20px;
}

.instructors-japanese-title {
  margin-left: 3%;
}

#instructors p {
  font-size: 1rem;
  margin-bottom: 20px;
  margin-top: 40px;
}

#instructors-button {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0);
  padding: 10px 60px !important;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  border: 1.5px solid #f3f2f2;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
  text-decoration: none;
  margin-top: 20px;
  margin-bottom: 50px;
}

#instructors-button:hover {
  background-color: rgba(247, 242, 242, 0.801);
}

#instructor-mobailcontainer {
  display: none;
}

/* ACCESS Section Styles */
#access {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-content: space-between;
  background: #C9B8B5;
  color: #f8f8f8;
  height: auto;
  padding: 0;
  margin: 0;
}

.access-image {
  grid-column: 1;
  height: 100%;
}

.access-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-container {
  grid-column: 2;
  padding: 0 50px;
  text-align: left;
}

.text-container h2 {
  margin-bottom: 30px;
}

.access-english-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.access-japanese-title {
  margin-left: 2.5%;
  font-size: 25px;
}


#access-button {
  text-decoration: none;
  border: 1.5px solid #f3f2f2;
  border-radius: 5px;
  margin-top: 10px;
}

#access-mobailcontainer {
  display: none;
}

/* Trial Section Styles */
#trial {
  background-color: #f8f8f8;
  padding: 30px;
  color: black;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#trial h2 {
  font-size: 30px;
  font-weight: 600;
  margin-left: 70px;

}

#trial p {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 200;
  width: 48%;
}

#trial-button {
  background-color: #c19a6b;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.3s;
  margin-right: 160px;
}

#trial-button:hover {
  background-color: #a68554;
}

/* Unified Media Queries */
@media screen and (max-width: 1250px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 40%;
    position: absolute;
    left: 0;
    background-color: #2afa9c;
    ;
    z-index: 1000;
  }

  .nav-links li {
    text-align: center;
    margin: 20px 0;
  }

  .nav-links li:nth-child(4) a {
    margin-right: 1px;
  }

  .nav-links li:last-child a {
    margin-right: 1px;
  }

  .burger {
    display: block;
  }

  .nav-active {
    display: flex;
  }

  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .toggle .line2 {
    opacity: 0;
  }

  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .nav-links {
    height: 95dvh;
    top: 7vh;
  }

  .mobail-contact {
    display: flex;
    align-items: center;
    /* 垂直方向の中央揃え */
    padding: 15px 13px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    list-style: none;
    text-decoration: none;
    margin-right: -16px;
  }

  .mobail-contact li {
    font-size: 13px;
    text-align: center;
  }

  .mobail-contact li a {
    color: black;
    text-decoration: none;
    display: inline-block;
    padding: 5px;
    /* クリック領域を広げる */
    transition: color 0.3s ease;
    /* ホバー効果を滑らかに */
  }

  .mobail-contact li a:hover {
    text-decoration: underline;
    color: #333;
    /* ホバー時に色を少し暗く変更 */
  }


  #home {
    background-size: cover;
  }

  #lessons h2 {
    font-size: 35px;
  }

  .lesson img {
    width: 160px;
    height: 160px;
  }

  .lesson h3 {
    font-size: 18px;
  }

  .button-check-more {
    font-size: 20px;
    padding: 15px 40px;
  }

  .footer-sections {
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    margin-left: 0;
    margin-top: 0;
  }

  .footer-section {
    width: 80%;
  }

  .footer-logo img {
    height: 80px;
  }
}

@media screen and (max-width: 768px) {
  #lessons h2 {
    font-size: 30px;
    text-align: center !important;
    margin-right: 90px;
  }

  .lesson img {
    width: 160px;
    height: 160px;
  }

  .lesson h3 {
    font-size: 16px;
  }

  .lesson-container {
    gap: 50px;
  }

  .button-check-more {
    font-size: 18px;
    padding: 12px 30px;
  }

  .footer-top {
    justify-content: center;
    text-align: center !important;
  }

  .footer-top h1 {
    margin-left: 0;
    font-size: 1.5rem;
  }

  .footer-sections {
    font-size: 1rem;
    width: 100%;
  }

  .footer-section {
    width: 100%;
    margin: 10px 0;
    text-align: center !important;
  }

  .footer-section ul {
    padding: 0;
  }

  .footer-logo {
    margin-top: 20px;
    margin-bottom: 30px;
  }

  .footer-logo img {
    height: 60px;
  }

}

@media screen and (max-width: 480px) {
  #home {
    background-image: url("images/Tri.H00082.jpg");
    background-size: cover;
    height: 120vh;
  }

  #home h1 {
    font-size: 30px;
    margin-top: -130px;
    margin-left: -50px;
  }

  #home p {
    margin-left: -50px;
    font-weight: bold;
    width: auto;
    font-size: 20px;
    text-shadow: 2px 2px 4px rgba(249, 249, 249, 0.978);
    /* 黒い影を追加 */
  }

  #home a {
    margin-left: -50px;
  }

  .button-more {
    font-size: 33px;
    padding: 12px 24px;
  }

  #lessons {
    margin-top: -200px;
  }

  #lessons h2 {
    display: flex;
    flex-direction: column;
    font-size: 38px;
    text-align: center;
  }

  .lessons-japanese-title {
    font-size: 23px;
    margin-left: 100px;
    margin-top: -80px;
    margin-bottom: 40px;
  }

  .lesson-container {
    gap: 50px;
  }

  .lesson img {
    width: 160px;
    height: 160px;
  }

  .lesson h3 {
    font-size: 25px;
    margin-top: 30px;
  }

  .button-check-more {
    font-size: 20px;
    padding: 12px 24px;
  }

  #instructors {
    display: flex;
    flex-direction: column;
  }

  #instructors h2 {
    display: flex;
    flex-direction: column;
    font-size: 50px;
    margin-top: 90px;
  }

  .instructors-japanese-title {
    font-size: 23px;
    margin-top: -12px;
  }

  #instructors a {
    font-size: 28px;
    margin-top: 40px;
  }

  #instructors p {
    width: 80%;
  }

  .instructor-container {
    display: none;
  }

  #instructor-mobailcontainer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0%;
    padding: 0%;
  }

  #instructor-mobailcontainer img {
    width: 100%;
    height: 100%;
    gap: 0%;
    object-fit: cover;
  }

  #access {
    display: flex;
    flex-direction: column;
    padding-top: 60px;
  }

  .text-container h2 {
    display: flex;
    flex-direction: column;
  }

  .text-container {
    margin-left: -140px;
  }

  .access-japanese-title {
    font-size: 23px;
    margin-top: -12px;
    margin-bottom: 20px;
  }

  .text-container a {
    margin-bottom: 90px;
    font-size: 28px;
    margin-top: 40px;
  }

  .access-image {
    display: none;
  }

  #access-mobailcontainer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0%;
    padding: 0%;
  }

  #access-mobailcontainer img {
    width: 100%;
    height: 100%;
    gap: 0%;
    object-fit: cover;
  }

  #trial {
    display: flex;
    flex-direction: column;
    padding: 30px;
    text-align: left;
  }

  #trial h2 {
    font-size: 33px;
    margin-top: 15px;
    margin-bottom: 30px;
    margin-left: -200px;
  }

  #trial p {
    font-size: 15px;
    width: 85%;
    margin-left: -40px;

  }

  #trial a {
    font-size: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
    margin-left: -60px;
  }

  .footer-sections {
    text-align: left;
    margin-top: -30px;
  }

  .footer-section h4 {
    font-size: 0.78rem;
  }

  .footer-top h1 {
    font-size: 1.8rem;
  }

  .footer-section ul {
    font-size: 0.77rem;
  }

  .footer-logo img {
    height: 50px;
  }

  #SCHEDULE h2 {
    font-size: 1.3em;
    /* タイトルをさらに小さく */
  }

  #SCHEDULE h2::before,
  #SCHEDULE h2::after {
    border-bottom: 1px solid #4cca03;
    /* 線の太さを1pxに変更 */
    margin: 0 3px;
    /* マージンをさらに減らしてスマホ画面に合わせる */
  }

  #SCHEDULE p {
    font-size: 0.9em;
    /* 段落のフォントサイズをさらに小さく */
  }

  #SCHEDULE {
    padding: 10px;
    /* 全体のパディングを少なく */
  }
}

/*20241202*/
footer ul.f_tempo {
  margin: 0;
  text-align: center;
}

footer ul.f_tempo li a {
  color: #fff;
  text-decoration: none;
}

footer ul.f_tempo li a:hover {
  text-decoration: underline;
}

footer ul.f_tempo li {
  display: inline-block;
  margin: 0;
  position: relative;
}

footer ul.f_tempo li:after {
  content: "｜";
  color: #fff;
  padding: 0 3px;
}

footer ul.f_tempo li:last-child:after {
  content: "";
}

@media screen and (max-width: 1250px) {
  footer ul.f_tempo {
    margin: 0;
    padding: 0;
    font-size: 0.77rem;
  }
}

.footer_text {
  text-align: center;
  margin-top: 0;
  margin-bottom: 50px;
}

.footer_text a {
  color: #fff;
  text-decoration: none;
}

.footer_text a:hover {
  text-decoration: underline;
}

.sp_only {
  display: none;
}


@media screen and (max-width: 480px) {
  .sp_only {
    display: block;
  }

  #home {
    padding: 0 15px !important;
    padding-left: 73px !important;
  }

  #home h1 {
    font-size: 28px;
    margin-top: -212px;
    margin-left: -50px;
  }

  .footer_text {
    font-size: 12px;
  }
}