/* フォントと全体設定 */
body {
  margin: 0;
  padding-top: 36px; /* ← これを追加！ナビバー分だけ余白確保 */
  font-family: 'Noto Serif JP', serif;
  background: #ffffff;  /* 白背景 */
  color: #2c3e50;        /* ダークグレー文字 */
}

a, .accent {
  color: #00796b;        /* テールグリーンのアクセント */
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
  .button-group {
    flex-direction: column;
    width: 100%;
  }

  .button-group button {
    width: 100%;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 600px) {
  .nav-links {
    flex-direction: column;
    align-items: flex-start; /* ← 追加！ */
    width: 100%;
    gap: 10px;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    padding: 10px 0;
  }
}


/* ナビゲーションバー全体 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #00796b;
  color: white;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 60px;
}

/* スマホで表示させない */
@media screen and (max-width: 600px) {
  .navbar {
    display: none;
  }
}


/* ナビゲーション内部レイアウト */
.nav-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 60px;
  box-sizing: border-box;
}

/* サイトロゴ・タイトル */
.nav-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4em;
  font-weight: bold;
}

.logo {
  height: 36px;
  width: auto;
}

/* ナビゲーションリンク（PC表示） */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  display: block;
  padding: 10px 0;
  color: white;
  text-decoration: none;
  border-top: 4px solid transparent;
  transition: color 0.3s, background-color 0.3s, border-top 0.3s;
}

.nav-links li a:hover {
  background-color: #005f56;
  border-top: 4px solid #f8e750;
  color: #ffffff;
}

/* 現在ページ表示（class="current" をliに付ける） */
.nav-links li.current a {
  font-weight: bold;
  border-top: 4px solid #00B0F0;
  color: #00B0F0;
}

/* 言語切り替えボタン */
.lang-toggle-nav {
  display: flex;
  gap: 0.5em;
  margin-left: 1em;
}

.lang-toggle-nav button {
  background-color: white;
  color: #0a8f86;
  border: 2px solid #0a8f86;
  border-radius: 6px;
  padding: 0.4em 0.8em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-toggle-nav button:hover {
  background-color: #0a8f86;
  color: white;
}

@media screen and (max-width: 600px) {
  .nav-title {
    margin-left: 10px;
  }
}

/* お問い合わせフォーム */
.contact-form {
  max-width: 500px;
  margin: 2em auto;
  padding: 2em;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  font-family: 'Helvetica Neue', sans-serif;
}

.lang-toggle-nav {
  display: flex;
  gap: 0.5em;
  margin-left: 1em;
}

.lang-toggle-nav button {
  background-color: white;
  color: #0a8f86;
  border: 2px solid #0a8f86;
  border-radius: 6px;
  padding: 0.4em 0.8em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-toggle-nav button:hover {
  background-color: #0a8f86;
  color: white;
}


.form-group {
  margin-bottom: 1.8em;
}

label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75em 1em;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus {
  border-color: #0a8f86;
  box-shadow: 0 0 0 3px rgba(10, 143, 134, 0.1);
  outline: none;
}

.submit-button {
  width: 100%;
  padding: 1em;
  font-size: 1.1rem;
  font-weight: bold;
  background-color: #0a8f86;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.submit-button:hover {
  background-color: #087c75;
  transform: scale(1.02);
}

@media (max-width: 600px) {
  .contact-form {
    padding: 1em;
    margin: 1em;
  }
}

@media screen and (max-width: 600px) {
  .lang-toggle-nav {
    width: 100%;
    margin-top: 10px;
    justify-content: flex-start;
  }

  .lang-toggle-nav button {
    flex: 1;
    max-width: 100px;
  }
}


/* 漫画 */
.manga-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.manga-item {
  width: 180px; /* サムネイルサイズ */
  text-align: center;
}

.manga-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  object-fit: cover;
  display: block;
}

@media screen and (max-width: 600px) {
  .manga-item {
    width: 45vw; /* スマホでは幅を画面に合わせる */
  }
}

/* ヒーローエリア（上部タイトル） */
.hero {
  background: linear-gradient(135deg, #00796b, #26a69a);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.8em;
  margin-bottom: 10px;
}

.tagline {
  font-size: 1.2em;
  font-weight: 300;
}

/* 中央レイアウト */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* セクションごとのカード */
.card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card h2 {
  font-size: 1.3em;
  margin-bottom: 20px;
  color: #00796b;
  border-left: 4px solid #26a69a;
  padding-left: 10px;
}

/* ボタン */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

button {
  padding: 12px 20px;
  font-size: 1em;
  background-color: #00796b;
  color: white;
  border: none;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #00695c;
}

/* フッター */
footer {
  text-align: center;
  padding: 30px 10px;
  font-size: 0.9em;
  color: #888;
}

footer a {
  color: #888;
  text-decoration: none;
}

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

/* モバイル対応 */
@media screen and (max-width: 600px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }

  .nav-title {
    margin-bottom: 10px;
  }
}    
  .button-group {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

/* スライドのモバイル対応 */
@media screen and (max-width: 768px) {
  .school-intro {
    flex-direction: column;
  }
  .intro-slider {
    max-width: 100%;
  }
}

/* 朝日高校ページ専用：スライダー */
/* スライダーを右上に小さく表示 */
.school-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.intro-text {
  flex: 1 1 60%;
}

.intro-slider {
  flex: 1 1 35%;
  max-width: 250px;
}

.slider {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider img.active {
  opacity: 1;
}




/* 朝日高校ページ専用：ギャラリー */
.gallery-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-row img {
  width: 100%;
  max-width: 32%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 朝日高校ページ専用：ボタン */
.exam-link {
  margin-top: 20px;
  text-align: center;
}

.exam-link .button {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1em;
  background-color: #00796b;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.exam-link .button:hover {
  background-color: #00695c;
}

/* Google Map枠 */
.map-container {
  margin-top: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}

/* プロフィール画像 */
a, .accent {
  color: #00796b;
}

/* ヒーローエリア */
.hero h1 {
  font-size: 2.8em;
  margin-bottom: 10px;
}

.tagline {
  font-size: 1.2em;
  font-weight: 300;
}

/* 中央レイアウト */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* プロフィール表示 */
.profile-box {
  display: flex;
  align-items: center;
  border: 2px solid black;
  border-radius: 15px;
  padding: 1em;
  margin-bottom: 2em;
}

.profile-box img {
  width: 100px;
  height: auto;
  border-radius: 8px;
  margin-right: 1em;
}

.profile-text h2 {
  margin: 0 0 0.5em;
}

.profile-text p {
  margin: 0;
  line-height: 1.6;
}

.profile-text ul {
  margin: 0;
  padding-left: 1.2em;
}

.profile-text li {
  margin-bottom: 0.4em;
  line-height: 1.6;
}

.role {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 0.5em;
  text-align: left;
  color: #222;
}

.spacer {
  height: 1em;
}

.concept {
  max-width: 800px;       /* 適度な横幅で中央寄せ */
  margin: 0 auto;         /* 中央配置 */
  padding: 40px 20px;
  text-align: left;       /* ← テキストは左寄せ */
  line-height: 1.8;       /* 読みやすく */
}

.concept p {
  text-align: left;
  line-height: 1.8;
}
