/* ==================================================
   かつやま子どもの村小学校・中学校
   共通スタイルシート（index.html / kinokuni.html）
   ================================================== */

/* 基本設定 */
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  color: #292d2a;
  background: #fff;
  font-family: "メイリオ", Meiryo, "ＭＳ Ｐゴシック", sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

a { color: #315b43; text-decoration: none; }
a:hover { text-decoration: underline; }

.page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  border-collapse: collapse;
}

/* ==================================================
   共通ヘッダー
   index.html の配置を基準に、学校名・ナビ・SNSの下端を揃える
   ================================================== */
.header {
  width: 100%;
  border-bottom: 1px solid #e4e7e4;
  border-collapse: collapse;
}

.header td {
  vertical-align: bottom;
}

.logo {
  padding: 18px 10px;
  color: #293b30;
  font-size: 18px;
  font-weight: bold;
  white-space: nowrap;
  vertical-align: bottom;
  line-height: 1;
}

.logo img { vertical-align: bottom; }

.tree {
  color: #6d9676;
  font-size: 18px;
  margin-right: 8px;
  vertical-align: bottom;
}

.nav {
  padding: 18px 12px;
  font-size: 13px;
  white-space: nowrap;
  vertical-align: bottom;
  line-height: 1.5;
}

.nav a {
  display: inline-block;
  margin: 0 7px;
  color: #454a46;
  vertical-align: bottom;
}

.social-links {
  width: 78px;
  padding: 18px 12px 18px 4px;
  white-space: nowrap;
  text-align: right;
  vertical-align: bottom;
}

.social-links a {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-left: 5px;
  vertical-align: bottom;
}

.social-links img {
  display: block;
  width: 30px;
  height: 30px;
}

/* ==================================================
   トップページ：メインビジュアル
   ================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  background: #e9eee9;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #e9eee9;
}

.hero-slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}


.hero-slideshow img.is-visible { opacity: 1; }


.hero-copy {
  position: absolute;
  z-index: 2;
  left: 35px;
  top: 50%;
  width: 48%;
  margin-top: -85px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.72);
}

.catch {
  margin: 0 0 12px;
  color: #263a2e;

  font-weight: normal;
  line-height: 1.55;
  letter-spacing: 0.08em;
}

.subtitle {
  margin: 0;
  color: #454b46;

}

.school-quote {
  padding: 5px 0 30px;
  color: #68716a;

  text-align: right;
}

/* ==================================================
   トップページ：お知らせ・リンク
   ================================================== */
.news {
  width: 100%;
  margin: 0 auto;
  padding: 42px 5% 30px;
  border-collapse: collapse;
}

.news-title {
  padding: 0 0 14px;
  border-bottom: 1px solid #e4e7e4;

  font-weight: bold;
}

.english {
  color: #315b43;

  font-weight: normal;
  letter-spacing: 0.14em;
}

.more {
  padding: 0 0 14px;
  border-bottom: 1px solid #e4e7e4;

}

.news-line table {
  width: 100%;
  border-collapse: collapse;
}

.news-line td {
  padding: 6px 10px 0;
  border-bottom: 1px solid #e4e7e4;
  vertical-align: bottom;
}

.date {
  width: 125px;
  color: #666d68;

  white-space: nowrap;
}

.category {
  color: #292d2a;
  font-size: 14px;
}

.headline {
  width: 95px;
  color: #48634d;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  background: #f5f7f5;
}

.headline a { color: #292d2a; }

/* headlineと同じ文字設定で、白背景・下線なし */
.headline-2 {
  width: 95px;
  color: #48634d;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
  background: #fff;
  border-bottom: none;
}
.headline-2 a { color: #292d2a; text-decoration: none; }
.headline-2 a:hover { text-decoration: none; }


.links {
  width: 90%;
  margin: 10px auto 55px;
  border-collapse: collapse;
  table-layout: fixed;
}

.links td {
  width: 33.333%;
  padding: 16px 10px;
  border: 1px solid #e1e6e1;
  text-align: center;

}

.links a { display: block; }
.links td:hover { background: #edf2ed; }

/* ==================================================
   共通フッター
   .footer：上段（色付き背景）
   .footer-2 / .footer2：下段（白背景）
   既存HTMLのクラス名の違いを両方受け付ける
   ================================================== */
.footer {
  padding: 25px 20px;
  border-top: 1px solid #e4e7e4;
  background: #f5f7f5;
  color: #68716a;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}

.footer a,
.footer-2 a,
.footer2 a { color: #626a64; }

.footer-2,
.footer2 {
  padding: 0 20px 10px;
  border-top: 1px solid #fff;
  background: #fff;
  color: #68716a;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}

/* 旧トップページ側で footer2 に余白を指定していた場合も維持 */
.footer2 { padding: 50px 0 20px; }


.text-link {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #aaa;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.text-link:hover {
  color: #64806a;
  border-bottom-color: #64806a;
}

/* ==================================================
   下層ページ共通
   ================================================== */
.subpage-title {
  padding: 48px 6% 35px;
  background: #f5f7f5;
  border-bottom: 1px solid #e4e7e4;
}

.subpage-title h1 {
  margin: 0 0 5px;
  color: #293b30;

  font-weight: normal;
  letter-spacing: 0.08em;
}

.subpage-title p {
  margin: 0;
  color: #6d9676;

  letter-spacing: 0.16em;
}

.breadcrumb {
  padding: 12px 6%;
  color: #7a817b;

}

.content-area {
  width: 88%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 0 60px;
}

.content-lead {
  margin: 0 0 2px;
  color: #3e4941;

  line-height: 2;
}

.section-heading {
  margin: 42px 0 18px;
  padding: 0 0 10px;
  border-bottom: 1px solid #dce4dc;
  color: #293b30;

  font-weight: normal;
  letter-spacing: 0.05em;
}

.section-heading small {
  display: block;
  color: #6d9676;

  letter-spacing: 0.18em;
  font-weight: normal;
}

.photo-placeholder {
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.photo-placeholder img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
}
.photo-placeholder span {
  display: inline-block;
  padding: 0px 0px;

}

.feature-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.feature-table td {
  width: 33.333%;
  padding: 20px 18px;
  border: 1px solid #e1e6e1;
  background: #fbfcfb;
  vertical-align: top;
}

.feature-table h3 {
  margin: 0 0 10px;
  color: #315b43;

  font-weight: normal;
}

.feature-table p {
  margin: 0;

  line-height: 1.9;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;

  color: #454a46;
}

.info-table tr > :nth-child(1) {
  width: 40%;
}
.info-table tr > :nth-child(2) {
  width: 40%;
}
.info-table tr > :nth-child(3) {
  width: 20%;
}
.info-table th,
.info-table td {
  padding: 13px 15px;
  border-bottom: 1px solid #e1e6e1;
  text-align: left;
  vertical-align: top;
  padding-top: 10px;
}

.info-table th {
  font-weight: normal;
}
.info-table2 {
  width: 100%;
  border-collapse: collapse;

  color: #454a46;
}

.info-table2 th,
.info-table2 td {
  padding: 10px 25px;
  border-bottom: 1px solid #fff;
  text-align: left;
  vertical-align: top;
}

.info-table2 th {
  width: 15%;
  font-weight: normal;
}
.info-table2 tr:first-child th,
.info-table2 tr:first-child td {
  padding-top: 10px;
}

.info-table2 td {
  padding-left: 0;
}

.info-table3 {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;

  color: #454a46;
}

.info-table3 tr > :nth-child(1) {
  width: 20%;
}
.info-table3 tr > :nth-child(2) {
  width: 80%;
}

.info-table3 th,
.info-table3 td {
  padding: 13px 15px;
  border-bottom: 1px solid #e1e6e1;
  text-align: left;
  vertical-align: top;
}

.info-table3 th {
  font-weight: normal;
}




.back-home {
  margin: 35px auto 10px;
  text-align: center;
}

.back-home a {
  display: inline-block;
  min-width: 210px;
  padding: 12px 22px;
  border: 1px solid #d6dfd6;
  color: #315b43;
}

/* ==================================================
   スマートフォン表示
   ================================================== */
@media screen and (max-width: 760px) {
  .header,
  .header tr,
  .header td {
    display: block;
    width: auto;
  }

  .logo {
    padding: 12px 15px 5px;
    font-size: 15px;
    white-space: normal;
  }

  .tree { font-size: 18px; }

  .nav {
    padding: 5px 12px 8px;
    text-align: left;
    white-space: normal;
    line-height: 2.2;
  }

  .nav a { margin: 0 7px 0 0; }

  .social-links {
    padding: 0 12px 12px;
    text-align: left;
  }

  .social-links a { margin: 0 7px 0 0; }

  .hero { height: 350px; }

  .hero-copy {
    left: 15px;
    top: auto;
    bottom: 22px;
    width: 75%;
    margin: 0;
    padding: 12px 14px;
  }


  .news { padding: 30px 15px 20px; }

  .news-line td { padding: 9px 5px; }
  .date { width: 82px;  }
  .headline { width: 75px; }

  .links {
    width: 92%;
    margin-bottom: 35px;
  }

  .links tr,
  .links td {
    display: block;
    width: auto;
  }

  .links td { padding: 12px; }

  .footer,
  .footer-2,

  .subpage-title { padding: 30px 18px 24px; }
  .breadcrumb { padding: 10px 18px; }
  .content-area { width: 90%; padding: 18px 0 40px; }
  .section-heading { margin-top: 32px;  }
  .photo-placeholder { height: 180px; }
  .photo-placeholder span { padding-top: 72px; }

  .feature-table,
  .feature-table tbody,
  .feature-table tr,
  .feature-table td {
    display: block;
    width: auto;
  }

  .feature-table td { margin-bottom: 10px; padding: 16px; }

  .info-table th,
  .info-table td {
    padding: 10px 8px;

  }

  .info-table2 th { width: 30%; }
  .info-table2 th,
  .info-table2 td {
    padding: 10px 8px;

  }
}

/* 動きを減らすOS設定への対応 */
@media (prefers-reduced-motion: reduce) {
  .hero-slideshow img { transition: none; }
}


/* お問い合わせ（連絡先表示のみ） */
.contact-page { max-width: 1000px; }
.contact-details { margin: 32px 0 20px; border-top: 1px solid #dce4dc; }
.contact-detail { padding: 18px 6px; border-bottom: 1px solid #dce4dc; }
.contact-detail p { margin: 0; }
.contact-label { color: #68716a;  margin-bottom: 5px !important; }
.contact-address { overflow-wrap: anywhere; }
.contact-note { margin: 24px 6px 28px; color: #68716a;  }
@media screen and (max-width: 760px) {
  .contact-details { margin-top: 22px; }
  .contact-detail { padding: 15px 4px; }
}

/* 見学・アクセス／入学案内（既存の共通ヘッダーとフッターには影響しない） */
.school-detail { line-height: 1.95; }
.school-detail p { margin: 0 0 20px; }
.school-detail .section-heading { margin-top: 38px; }
.visit-map { width: 100%; margin: 20px 0 26px; }
.visit-map iframe { display: block; width: 100%; height: 480px; border: 0; }
.visit-image img { display: block; max-width: 100%; height: auto; }
.admission-steps { margin: 10px 0 10px; padding: 0; list-style: none; counter-reset: admission; }
.admission-steps li { counter-increment: admission; position: relative; padding: 10px 12px 5px 45px; border-bottom: 1px solid #e1e6e1; }
.admission-steps li::before { content: counter(admission) "."; position: absolute; left: 12px; color: #48634d; font-weight: bold; }
.admission-downloads { width: 100%; border-collapse: collapse; margin: 14px 0 25px; }
.admission-downloads th, .admission-downloads td { text-align: left; padding: 14px 12px; border-bottom: 1px solid #e1e6e1; }
.admission-downloads th { width: 32%; color: #48634d; font-weight: normal; }
@media screen and (max-width: 760px) {
  .visit-map iframe { height: 330px; }
  .admission-steps li { padding-left: 40px; }
  .admission-downloads th, .admission-downloads td { padding: 12px 7px; font-size: 13px; }
}

/* ==================================================
   かつやま子どもの村（katsuyama.html）
   ================================================== */
/* かつやま子どもの村：ページ固有の補助スタイル */
.katsuyama-page .content-lead { margin-bottom: 25px; }
.katsuyama-page.school-detail p { margin-bottom: 18px; }
.katsuyama-page .section-heading { margin-top: 50px; }
.katsuyama-page .intro-note { color: #68716a;  }
.katsuyama-page .project-list { margin: 24px 0 30px; }
.katsuyama-page .project-item { padding: 23px 4px; border-top: 1px solid #dce4dc; }
.katsuyama-page .project-item:last-child { border-bottom: 1px solid #dce4dc; }
.katsuyama-page .project-item h3 { margin: 0 0 8px;  font-weight: normal; color: #315b43; }
.katsuyama-page .project-item p { margin: 0; color: #68716a;  }
.katsuyama-page .residence-list { margin: 22px 0; padding: 0; list-style: none; }
.katsuyama-page .residence-list li { padding: 15px 4px; border-bottom: 1px solid #e1e6e1; }
.katsuyama-page .residence-list li:first-child { border-top: 1px solid #e1e6e1; }
.katsuyama-page .residence-list strong { display: block; color: #48634d; font-weight: normal; margin-bottom: 4px; }
@media screen and (max-width: 760px) {
  .katsuyama-page .section-heading { margin-top: 38px; }
}

/* 時間割の基本設定：小学校・中学校で共通 */
.katsuyama-page .schedule-wrap { overflow-x: auto; margin: 18px 0 30px; }
.katsuyama-page .schedule-table {
  width: 100%; min-width: 660px; table-layout: fixed;
  border-collapse: collapse; border-spacing: 0px;
  background: transparent;  line-height: 1.45;
}
.katsuyama-page .schedule-table caption { caption-side: top; text-align: left; padding: 0 0 9px; color: #293b30;  }
.katsuyama-page .schedule-table th,
.katsuyama-page .schedule-table td {
  border: 1px solid #999999; padding: 10px 4px; height: 48px;
  text-align: center; vertical-align: middle; overflow-wrap: anywhere;
  background: #fff; font-weight: normal;
}
.katsuyama-page .schedule-table th { color: #48634d; }
.katsuyama-page .schedule-table .lesson-project { background: #43c354; }
.katsuyama-page .schedule-table .lesson-choice { background: #f4f774; }
.katsuyama-page .schedule-table .lesson-language { background: #fca8d9; }
.katsuyama-page .schedule-table .lesson-math { background: #9cd3fe; }
.katsuyama-page .schedule-table .lesson-subject { background: #ffd22e; }
.katsuyama-page .schedule-table .lesson-individual { background: #cccbcb; }
.katsuyama-page .schedule-table .lesson-meeting { background: #de96fa; }
@media screen and (max-width: 760px) {
  .katsuyama-page .schedule-table th,
  .katsuyama-page .schedule-table td { padding: 8px 3px; }
}

/* 小学校・中学校の時間割をコンパクトに横並び表示 */
.katsuyama-page .schedule-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  column-gap: 28px;
  align-items: start;
  margin: 14px 0 30px;
}
.katsuyama-page .schedule-grid .schedule-wrap {
  min-width: 0;
  margin: 0;
  overflow-x: auto;
}
.katsuyama-page .schedule-grid .schedule-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;

  line-height: 1.3;
  border-spacing: 1px;
}
.katsuyama-page .schedule-grid .schedule-table caption {

  padding-bottom: 7px;
}
.katsuyama-page .schedule-grid .schedule-table th,
.katsuyama-page .schedule-grid .schedule-table td {
  padding: 7px 2px;
  height: 34px;
  overflow-wrap: normal;
  word-break: normal;
  border: 1px solid #999999;
}
@media screen and (max-width: 760px) {
  .katsuyama-page .schedule-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .katsuyama-page .schedule-grid .schedule-table {
    min-width: 470px;

  }
}
/* プロジェクトの写真3枚：余白を活かした横並び */
.katsuyama-page .project-photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 8px 22px 46px;
}
.katsuyama-page .project-photo {
  min-width: 0;
}
.katsuyama-page .project-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media screen and (max-width: 760px) {
  .katsuyama-page .project-photo-gallery {
    gap: 12px;
    margin: 8px 0 34px;
  }
}
@media screen and (max-width: 480px) {
  .katsuyama-page .project-photo-gallery {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-left: 7%;
    margin-right: 7%;
  }
}


/* 学園関連書籍 */
.book-gallery {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  max-width: 760px;
  margin: 20px auto 0;
}
.book-entry {
  flex: 0 1 220px;
  min-width: 0;
  text-align: center;
}
.book-cover {
  height: 195px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 10px;
}
.book-cover img {
  display: block;
  max-width: 100%;
  max-height: 190px;
  width: auto;
  height: auto;
}
.book-entry h3 {
  margin: 0 0 4px;
  color: #293b30;

  font-weight: normal;
  line-height: 1.5;
}
.book-entry p {
  margin: 0;
  color: #68716a;

}
.book-note {
  max-width: 760px;
  margin: 18px auto 18px;
  color: #68716a;

  text-align: right;
}
@media screen and (max-width: 600px) {
  .book-gallery { flex-wrap: wrap; gap: 22px 15px; }
  .book-entry { flex: 0 1 calc(50% - 8px); }
  .book-cover { height: 170px; }
  .book-cover img { max-height: 165px; }
  .book-note { text-align: left; }
}


/* 共通ヘッダー・フッター：スマートフォンで整った配置にする */
.footer-contact span + span::before { content: "　　"; }
.footer-nav { padding-top: 16px; }
.footer-nav a + a::before { content: "　｜　"; color: #a6ada7; }

@media screen and (max-width: 760px) {
  /* tableレイアウトを縦方向にし、学校名・メニュー・SNSを分離 */
  .header { display: block; width: 100%; }
  .header tbody, .header tr { display: block; width: 100%; }
  .header .logo, .header .nav, .header .social-links { display: block; width: 100%; }
  .header .logo { padding: 17px 18px 13px; font-size: 15px; line-height: 1.5; }
  .header .logo a { display: flex; align-items: center; gap: 10px; }
  .header .tree { flex: 0 0 auto; margin: 0; }
  .header .tree img { display: block; max-width: 55px; height: auto; }
  .header .nav {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 0; padding: 10px 12px; border-top: 1px solid #e4e7e4;
    text-align: center; line-height: 1.5; white-space: normal;
  }
  .header .nav a { margin: 0; padding: 9px 10px; font-size: 12px; }
  .header .social-links { padding: 6px 18px 13px; text-align: center; }
  .header .social-links a { margin: 0 7px; }
  .footer { padding: 24px 18px; text-align: center; font-size: 12px; }
  .footer-school { margin-bottom: 10px;  }
  .footer-contact { display: flex; flex-direction: column; align-items: center; gap: 3px; }
  .footer-contact span + span::before { content: none; }
  .footer-contact span { overflow-wrap: anywhere; }
  .footer-2, .footer2 { padding: 8px 16px 22px; text-align: center; font-size: 12px; }
  .footer-nav {  flex-wrap: wrap; justify-content: center; gap: 3px 14px; padding-top: 8px; }
  .footer-nav a {  padding: 6px 0;  }
  .footer-nav a + a::before { content: none; }
}

/* スマホ用フッター：区切りと余白を明確にする（PC表示は変更しない） */
@media screen and (max-width: 760px) {
  .footer { padding: 30px 20px 22px; background: #f5f7f5; }
  .footer-school { max-width: 340px; margin: 0 auto 18px; font-size: 14px; font-weight: 600;  color: #293b30; }
  .footer-contact { max-width: 340px; margin: 0 auto; padding-top: 16px; border-top: 1px solid #dce4dc; gap: 7px; line-height: 1.7; font-size: 12px; }
  .footer-contact span { display: block; }
  .footer-2, .footer2 { padding: 15px 18px 28px; background: #f5f7f5; border-top: 1px solid #dce4dc; }
  .footer-nav { max-width: 350px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0; }
  .footer-nav a { display: flex; align-items: center; justify-content: center;  padding: 9px 7px; border-bottom: 1px solid #dce4dc; font-size: 12px;  }
  .footer-nav a:nth-child(odd) { border-right: 1px solid #dce4dc; }
}

/* 統一フッター：PCで連絡先とリンクを自然に折り返す */
@media screen and (min-width: 761px) {
  .footer-school { margin-bottom: 8px; }
  .footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
  .footer-contact span + span::before { content: none; }
  .footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; }
  .footer-nav a + a::before { content: none; }
}
/* 狭い画面でメールアドレスがはみ出さないようにする */
.footer-contact a { overflow-wrap: anywhere; }

/* トップページ：PC表示は従来どおり、スマホのみ共通フッター形式 */
.home-page .home-footer-mobile { display: none; }
@media screen and (max-width: 760px) {
  .home-page .home-footer-desktop { display: none; }
  .home-page .home-footer-mobile { display: block; }
  .home-page .footer2 {
    padding: 30px 20px 22px;
    background: #f5f7f5;
    border-top: 1px solid #e4e7e4;
    text-align: center;
  }
  .home-page .footer2 .footer-school {
    max-width: 340px;
    margin: 0 auto 18px;
    font-size: 14px;
    font-weight: 600;

    color: #293b30;
  }
  .home-page .footer2 .footer-contact {
    max-width: 340px;
    margin: 0 auto;
    padding-top: 16px;
    border-top: 1px solid #dce4dc;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    line-height: 1.7;
  }
}

/* トップページのスマートフォン用ヘッダーを白に固定 */
@media screen and (max-width: 760px) {
  .home-page .header,
  .home-page .header tbody,
  .home-page .header tr,
  .home-page .header td { background-color: #fff; }
}

/* フッターの法人名と学校名：PCは横並び、スマホは2行 */
.footer-school .school-organization,
.footer-school .school-name { display: inline; }
@media screen and (max-width: 760px) {
  .footer-school .school-organization,
  .footer-school .school-name { display: block; }
}

/* トップページのフッターだけ白背景にする */
.home-page .footer,
.home-page .footer-2,
.home-page .footer2 {
  background-color: #fff;
}

/* ==================================================
   本文の文字サイズ統一（ヘッダー・フッターには適用しない）
   PC: ページ題30 / 節題22 / 本文15 / 補助13 / 注記11px
   時間割は横並びを維持するため10pxの例外とする。
   ================================================== */
/* ページタイトル・セクション見出し */
.subpage-title h1 { font-size: 30px; }
.section-heading { font-size: 22px; }
/* 本文・リード・小見出し */
.content-lead,
.feature-table h3,
.katsuyama-page .project-item h3,
.katsuyama-page .schedule-table caption { font-size: 15px; }
/* 表・補足・リンク・書籍タイトル */
.subtitle, .news-title, .english, .more, .date,
.links td, .subpage-title p,
.breadcrumb, .photo-placeholder span, .feature-table p,
.info-table, .info-table2, .info-table3,
.contact-note, .admission-steps,
.katsuyama-page .intro-note, .katsuyama-page .project-item p,
.katsuyama-page .schedule-table,
.katsuyama-page .schedule-grid .schedule-table caption,
.book-entry h3, .book-entry p, .book-note { font-size: 13px; }
/* 小さな注記 */
.school-quote, .section-heading small, .contact-label { font-size: 11px; }
/* 写真上のキャッチコピーはページタイトルと同じ階層 */
.catch { font-size: 30px; }
/* 横並び時間割：幅を維持するための例外 */
.katsuyama-page .schedule-grid .schedule-table { font-size: 13px; }

@media screen and (max-width: 760px) {
  .subpage-title h1, .catch { font-size: 24px; }
  .section-heading { font-size: 19px; }
  .content-lead, .feature-table h3,
  .katsuyama-page .project-item h3,
  .katsuyama-page .schedule-table caption { font-size: 15px; }
  .subtitle, .news-title, .english, .more, .date,
  .links td, .subpage-title p,
  .breadcrumb, .photo-placeholder span, .feature-table p,
  .info-table, .info-table2, .info-table3,
  .contact-note, .admission-steps,
  .katsuyama-page .intro-note, .katsuyama-page .project-item p,
  .katsuyama-page .schedule-table,
  .katsuyama-page .schedule-grid .schedule-table caption,
  .book-entry h3, .book-entry p, .book-note { font-size: 13px; }
  .school-quote, .section-heading small, .contact-label { font-size: 11px; }
  .katsuyama-page .schedule-grid .schedule-table { font-size: 11px; }
  /* セル側の既存モバイル指定より優先させる */
  .info-table th, .info-table td,
  .info-table2 th, .info-table2 td { font-size: 13px; }
}

/* 通常の説明文だけを統一。表・箇条書き・書籍・連絡先は対象外。 */
.content-area p.body-copy,
.content-area p.content-lead,
.content-area.school-detail p.body-copy,
.content-area.school-detail p.content-lead,
.katsuyama-page.school-detail p.body-copy,
.katsuyama-page.school-detail p.content-lead {

  line-height: 2;
  margin: 0 0 20px;
}

/* 箇条書きの文字サイズを本文と同じ15pxに統一（PC・スマホ共通） */
.admission-steps,
.katsuyama-page .residence-list {
  font-size: 15px;
}

/* 2026-11-08: 通常本文16px、指定の一覧・箇条書き15px。
   ヘッダー・フッター・ページ見出し・時間割・書籍欄は対象外。 */
.content-area { font-size: 16px; }
.content-area p.body-copy,
.content-area p.content-lead,
.content-area.school-detail p.body-copy,
.content-area.school-detail p.content-lead,
.katsuyama-page.school-detail p.body-copy,
.katsuyama-page.school-detail p.content-lead,
.content-area .katsuyama-page .project-item p,
.katsuyama-page .project-item p { font-size: 16px; }
/* 学校名一覧、教育目標、基本原則（kinokuni.html） */
.content-area .info-table,
.content-area .info-table2,
.content-area .info-table th,
.content-area .info-table td,
.content-area .info-table2 th,
.content-area .info-table2 td,
/* 体験入学について（admission.html） */
.content-area .info-table3,
.content-area .info-table3 th,
.content-area .info-table3 td,
/* 箇条書き */
.content-area .admission-steps,
.content-area .residence-list { font-size: 15px; }

/* お知らせ欄のセル下線をheadline-2だけ解除 */
.news-line td.headline-2 { border-bottom: none; }


/* スライド：表示中のみ不透明にし、切替時だけフェード */

/* スマートフォン：小中学校の時間割の1時限あたりの幅を統一 */
@media screen and (max-width: 760px) {
  .katsuyama-page .schedule-grid .schedule-table {
    table-layout: fixed;
  }
  .katsuyama-page .schedule-grid .timetable-1 {
    width: 480px;
    min-width: 480px;
  }
  .katsuyama-page .schedule-grid .timetable-2 {
    width: 540px;
    min-width: 540px;
  }
  .katsuyama-page .schedule-grid .schedule-table col {
    width: 60px !important;
  }
  .katsuyama-page .schedule-grid .schedule-table col:nth-child(7),
  .katsuyama-page .schedule-grid .schedule-table col:nth-child(8) {
    width: 30px !important;
  }
}

/* パソコン：小中学校の各時限の列幅を統一（8時間目の有無のみ全体幅が異なる） */
@media screen and (min-width: 761px) {
  .katsuyama-page .schedule-grid {
    grid-template-columns: max-content max-content;
    justify-content: space-between;
  }
  .katsuyama-page .schedule-grid .timetable-1 {
    width: 432px;
    min-width: 432px;
  }
  .katsuyama-page .schedule-grid .timetable-2 {
    width: 486px;
    min-width: 486px;
  }
  .katsuyama-page .schedule-grid .schedule-table col {
    width: 54px !important;
  }
  .katsuyama-page .schedule-grid .schedule-table col:nth-child(7),
  .katsuyama-page .schedule-grid .schedule-table col:nth-child(8) {
    width: 27px !important;
  }
}

/* きのくに：5校の学校紹介はスマホで学校ごとに縦積み */
@media screen and (max-width: 760px) {
  .content-area > .info-table,
  .content-area > .info-table tbody,
  .content-area > .info-table tr,
  .content-area > .info-table th,
  .content-area > .info-table td {
    display: block;
    width: 100%;
  }
  .content-area > .info-table { table-layout: auto; }
  .content-area > .info-table tr {
    padding: 12px 0;
    border-bottom: 1px solid #e1e6e1;
  }
  .content-area > .info-table tr:first-child { border-top: 1px solid #e1e6e1; }
  .content-area > .info-table th,
  .content-area > .info-table td {
    padding: 3px 8px;
    border-bottom: 0;
    text-align: left;
    overflow-wrap: normal;
    word-break: normal;
  }
  .content-area > .info-table th { color: #315b43; }
  .content-area > .info-table td:last-child { white-space: nowrap; }
}

/* 教育目標：スマホでも「社会性の自由」を1行で表示 */
@media screen and (max-width: 760px) {
  .content-area .info-table2.educational-aims th {
    width: 120px;
    min-width: 120px;
    white-space: nowrap;
  }
}

/* 基本原則：教育目標と同じ左列幅・改行設定（スマホのみ） */
@media screen and (max-width: 760px) {
  .content-area .info-table2.basic-principles th {
    width: 120px;
    min-width: 120px;
    white-space: nowrap;
  }
}


/* 2026-11-10: スマートフォンのフッターを簡潔に整える（PCは変更しない） */
@media screen and (max-width: 760px) {
  /* 法人名と学校名の2行を近づける（トップページも共通） */
  .footer-school,
  .home-page .footer2 .footer-school {
    line-height: 1.3;
  }

  /* 灰色の連絡先欄と白いリンク欄の境界線を消す */
  .footer-2, .footer2 {
    border-top: none;
  }

  /* 4つのフッターリンクを白背景・枠なし・コンパクトに */
  .footer-2, .footer2 {
    background-color: #fff;
    padding: 8px 14px 16px;
  }
  .footer-nav {
    gap: 0;
  }
  .footer-nav a {
    min-height: 0;
    padding: 5px 6px;
    border: none;
    line-height: 1.35;
  }
  .footer-nav a:nth-child(odd) {
    border-right: none;
  }

  /* トップページのフッターはこれまでどおり白背景 */
  .home-page .footer2 {
    background-color: #fff;
    border-top: none;
  }
}

/* Phone and email: separate lines on mobile */
@media screen and (max-width: 760px) {
  .inquiry-contact-item { display: block; overflow-wrap: anywhere; }
  .inquiry-contact-divider { display: none; }
}
