.body {
    font-family: 'Hiragino Kaku Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif
    
}

html{
    scroll-behavior: smooth;
}

.mv {
  position: relative;
  width: 100%;
  padding-top: 68%; /* ← ここがポイント！ 4:3 の比率にピッタリ */
  background-color: #fff; /* 余白が出ても自然に見える背景 */
  overflow: hidden;
}

.mv img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* ← 画像を切らずに全体表示 */
  object-position: center center;
  opacity: 0;
  animation: slideshow 24s linear infinite;
  transition: opacity 1s ease;
}


.mv img:nth-child(2) { animation-delay: 8s; }
.mv img:nth-child(3) { animation-delay: 16s; }


@keyframes slideshow {
  0% { opacity: 0; }
  10% { opacity: 1; }
  28% { opacity: 1; }
  38% { opacity: 0; }
  100% { opacity: 0; }
}


@media (max-width: 600px) {
  .mv {
    padding-top: 100%; /* スマホでは縦を広げて余白感を軽減 */
  }
}



body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  background-color: #fff;
  color: #333;
}
.header {
  background-color: #ffffff; /* 白ベースで明るく */
  text-align: center;
  padding: 30px 0 15px;
  border-bottom: 3px solid #00adb5; /* ターコイズのアクセント */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}



.header {
  background-color: #ffffff; /* 背景を白に変更 */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* 少し浮かせる影 */
  padding: 20px 0;
}


.logo {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 4.0rem;
  color: #444; /* 柔らかい黒で上品に */
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.logo::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  background-color: #00adb5; /* 明るいブルーライン */
  margin: 10px auto 0;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .logo {
    font-size: 2rem;       /* 小さくして1行に収めやすくする */
    letter-spacing: 0.05em; /* 必要に応じて文字間も詰める */
  }

  .logo::after {
    width: 70px;            /* 下線もロゴ幅に合わせて縮小 */
    height: 2px;
  }
}

/* ===== ナビゲーション ===== */
.nav {
  background-color: #ffffff; /* 白背景に変更 */
  padding: 12px 0;
}

.nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  gap: 10px;
  max-width: 900px;
  flex-wrap: nowrap;
}

.nav ul li {
  flex: 1;
  min-width: 100px;
  text-align: center;
}

/* ===== ナビボタン ===== */
.nav ul li a {
  display: block;
  text-decoration: none;
  color: #444;
  font-size: 18px;
  font-weight: 600;
  padding: 10px 0;
  transition: all 0.3s ease;
  border-radius: 6px;
}

/* ===== ホバー時 ===== */
.nav ul li a:hover {
  background-color: #00adb5;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 173, 181, 0.4); /* ホバーでも軽く影 */
}

/* ===== クリック時（押した瞬間） ===== */
.nav ul li a:active {
  transform: translateY(2px); /* 押し込むように見せる */
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3); /* 内側に影を追加 */
}

/* ===== トップボタン ===== */
.top-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  text-decoration: none;
  background-color: #007bff;
  color: #fff;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s, transform 0.2s;
  z-index: 999;
}

.top-button:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .nav ul {
    flex-direction: row;       /* 横並びを維持 */
    flex-wrap: nowrap;         /* 折り返さない */
    justify-content: space-between; /* ボタンを均等に配置 */
    gap: 5px;                  /* ボタン間の隙間 */
    max-width: 100%;
    padding: 0 10px;
    margin: 0 auto;
  }

  .nav ul li {
    flex: 1 1 auto;            /* 横幅を自動調整 */
    min-width: 0;              /* ボタンが縮まるように */
    text-align: center;
  }

  .nav ul li a {
    font-size: 14px;           /* 文字サイズを小さくして収める */
    padding: 8px 5px;          /* ボタン内余白を縮小 */
    white-space: nowrap;       /* 改行させない */
  }

  /* MVコンテナはそのまま横幅揃え */
  .mv {
    width: 100%;
    max-width: 100%;
    padding-top: 56.25%;       /* 16:9比率 */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
  }

  .mv img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
}






.imges {
  max-width: 100%;
  height: auto;
}



.learning-section {
    background-color: #f9f9f9;
    padding: 40px 20px;
    text-align: center;
  }
  
  .learning-section .container {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .learning-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
  }
  
  .learning-section .study-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
  }
  
  .learning-section p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
  }
  
  .cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1em;
    transition: background-color 0.3s ease;
  }
  
  .cta-button:hover {
    background-color: #0056b3;
  }
/* ===== 塾長のご挨拶・教育理念セクション ===== */
.greeting-section {
    background-color: #ffffff; /* 背景白 */
    color: #333; /* 文字は黒寄り */
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    margin: 40px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* ほんのり浮かせて目立たせる */
}

.greeting-section h2 {
    font-size: 2.5em;
    color:#333; /* 見出しをブランドカラーに */
    margin-bottom: 20px;
}

.greeting-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ボタン */
.greeting-section .greeting-btn {
    padding: 14px 28px;
    font-size: 1.1em;
    background-color: #007BFF; /* ボタンはブランドカラー */
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.greeting-section .greeting-btn:hover {
    background-color: #007BFF;
    transform: translateY(-3px);
}



  
.student-voices {
    padding: 40px 10px;
    background-color: #f0f4f8;
    text-align: center;
}
  
.student-voices h2 {
    font-size: 28px;
    margin-bottom: 40px;
    color: #333;
  }
  
.voice-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }
  
.voice-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: left;
  }
  
.voice-text {
    font-size: 16px;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.6;
  }
  
.student-info {
    display: flex;
    align-items: center;
  }
  
.student-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
  }
  
.student-name {
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
  }
  
.student-result {
    color: #00adb5;
    font-weight: bold;
  }
  
.contact-form{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.contact-form2{
    border: 5.5px solid #aaa;
    padding: 50px 300px;

}
.title{
    text-align: center;
    font-size: 30px;
    margin-bottom: 100px;
    font-weight: bold;
}
form{
    width: 500px;
    margin: 0 auto;
}
.item{
    overflow: hidden;
    margin-bottom: 20px;
}
.label{
    float: left;
    margin-right: 20px;
    width: 150px;
    border-left: 3px solid #d45726;
    padding-left: 10px;

}
.input{
    float: left;
    width: 300px;
}
input[type="text"]
input[type="email"]{
    border: solid 1px #aaa;
    padding: 10px;
    font-size: 15px;
    border-radius: 5px;
}
textarea {
    border: 1px solid #aaa;
    border-radius: 5px;
    padding: 10px;
    height: 160px;
    width: 300px;
}
.button-area{
    text-align: center;
}
input[type="submit"]{
    background-color: goldenrod;
    border: none;
    padding: 10px 20px;
    color: white;
    font-size: 17px;
    font-weight: bold;
    border-radius: 5px;
    margin: 0 5px;
    box-shadow: 1px 1px 3px black;
    cursor: pointer;
}
input[type="reset"]{
    background-color: rgb(107, 95, 100);
    border: none;
    padding: 10px 20px;
    color: white;
    font-size: 17px;
    font-weight: bold;
    border-radius: 5px;
    margin: 0 5px;
    box-shadow: 1px 1px 3px black;
    cursor: pointer;
}

.contact-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
  }
  
.contact-section h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
  }
  
.contact-section p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
  }
  
.inline-contact-button {
    background-color: #00adb5;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
  }
  
.inline-contact-button:hover {
    background-color: #007b80;
    transform: scale(1.05);
  }
  

.map h1{
    text-align: center;
}
.map p{
    text-align: center;
    
}

.map img{
    padding: 1200px 500px 1200px;
}
.company-info {
    max-width: 800px;
    margin: 60px auto;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
}
  
.company-info h2 {
    text-align: center;
    color: #00adb5;
    margin-bottom: 20px;
}
  
.company-info table {
    width: 100%;
    border-collapse: collapse;
}
  
.company-info th,
.company-info td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
  
.company-info th {
    width: 30%;
    color: #444;
    font-weight: bold;
}
  
.footer {
    background-color: #222;
    color: #fff;
    padding: 40px 20px 20px;
    font-family: 'Segoe UI', sans-serif;
  }
  
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-logo h2 {
    margin-bottom: 20px;
    color: #00adb5;
  }
  
  .footer-links {
    margin-bottom: 20px;
  }
  
  .footer-links a {
    color: #ddd;
    text-decoration: none;
    margin: 0 10px;
    font-size: 16px;
  }
  
  .footer-links a:hover {
    color: #00adb5;
  }
  
  .footer-social a {
    color: #ddd;
    margin: 0 10px;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .footer-social a:hover {
    color: #00adb5;
  }
  
  .footer-bottom {
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 10px;
    font-size: 14px;
    color: #bbb;
  }
  
  /* レスポンシブ対応 */
  @media (min-width: 768px) {
    .footer-container {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      text-align: left;
    }
  }
.footer-contact {
    color: #ddd;
    font-size: 15px;
    margin-top: 15px;
  }
  
.footer-contact a {
    color: #00adb5;
    text-decoration: none;
    font-weight: bold;
  }
  
.footer-contact a:hover {
    text-decoration: underline;
  }
