/* 全体のリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* 20px の空白を作るクラス */
.spacer-20 {
  height: 20px;
}



/* 基本のフォントと色 */
body {
    font-family: 'Roboto', -apple-system, 'Helvetica Neue', 'Arial', sans-serif;
    background-color: #ffffff; /* 既存の背景色 */
    color: #1d1d1d; /* 文字色 */
    overflow-x: hidden; /* ナビゲーションが全画面表示されるため */
    font-size: 16px;
}
mark{
  background:linear-gradient(transparent 70%,#ff7c827a 0%)
}
h1 {
    margin-bottom: 0px;
}
h2 {
    margin-bottom: 20px;
    color: #494848; /* テキストの色を設定 */
    position: relative; /* 擬似要素の位置指定のために追加 */
    font-size: 24px;
}
h2::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px; /* アンダーラインの太さを設定 */
    background-color: #af1616; /* アンダーラインの色を設定 */
    position: absolute;
    bottom: -5px; /* アンダーラインの位置を調整 */
    left: 0;
}
h3 {
    margin-bottom: 5px;
    font-size: 18px;
}
p, a {
    text-decoration: none;
    font-size: 16px;
}



/* ヘッダーのスタイル */
header {
    background-color: #ffffff;
    color: #333;
    padding: 0px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #ddd; /* 境界線を追加 */
    height: 70px; /* 元の高さに設定 */
}
/* ロゴ画像のスタイル */
.header-logo {
    height: 100%; /* ロゴの高さをヘッダーの高さに合わせる */
    margin-top: 10px; /* 上下の余白をなしに設定 */
}
.header-logo img {
    max-height: 100%; /* ヘッダーの高さに合わせて画像の高さを調整 */
    height: auto; /* 画像の高さを自動調整 */
    width: auto; /* 画像の幅を自動調整 */
    display: block; /* 画像をブロック要素として表示 */
}
/* ナビゲーションバー */
.header-nav, .footer-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
}
header nav {
    padding-top: 20px; /* 上部の余白を設定 */
}
nav a {
    color: #333;
    text-decoration: none;
}
header nav a:hover {
    color: #af1616; 
    text-decoration: underline;
}


.slider-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.98); /* ほんの少し縮小 */
    transition: opacity 1s ease-in-out, transform 0.8s ease-in-out;
    background-position: center;
    background-size: cover;
}
.slider-item.active {
    opacity: 1;
    transform: scale(1); /* ゆっくり拡大してフェードイン */
}
.slider {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
}
.top-image {
    margin-top: 70px; /* headerの高さに応じて調整してください */
    position: relative;
}
.prev, .next {
    position: absolute;
    top: calc(50% - 20px); /* 高さをヘッダーの高さに合わせて調整 */
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5); /* 背景を半透明に設定 */
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8; /* ボタンを半透明に設定 */
    transition: opacity 0.3s ease; /* 透明度の変化にアニメーションを追加 */
}
.prev:hover, .next:hover {
    opacity: 1; /* ホバー時に透明度を100%に設定 */
}
.prev {
    left: 10px;
}
.next {
    right: 10px;
}
.slider-item.active {
    opacity: 1; /* アクティブなスライドを表示 */
}
.dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}
.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.dot.active {
    background-color: rgba(0, 0, 0, 0.8);
}
.slider-item .text-overlay {
    position: absolute;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    font-weight: bold; /* 太文字に設定 */
    transition: all 1s ease-in-out; /* アニメーションを追加 */
}
.slider-item:nth-child(1) .text-overlay {
    bottom: 10%;
    right: 10%;
}
.slider-item:nth-child(2) .text-overlay {
    top: 10%;
    left: 10%;
}
.slider-item:nth-child(3) .text-overlay {
    bottom: 10%;
    right: 10%;
}
/* 他のスライドのスタイルも同様に追加 */

main {
    padding: 0 20px; /* 左右に20pxの余白を追加 */
    max-width: 1200px; /* 最大幅を設定 */
    margin: 0 auto; /* 中央揃え */
}

/* バナーセクションのスタイル */
.banners {
    display: flex;
    justify-content: center; /* バナーを中央揃えにする */
    gap: 20px;
    padding: 20px;
    background-color: #ffffff;
}

.banner {
    flex: 1;
    max-width: calc(33.333% - 20px); /* 各バナーの最大幅を設定 */
    min-width: calc(33.333% - 20px); /* 各バナーの最小幅を設定 */
    box-sizing: border-box; /* パディングとボーダーを含めた幅の計算 */
    transition: all 0.3s ease-in-out; /* 変化にアニメーションを追加 */
}

.banner img {
    width: 100%;
    height: auto;
    border-radius: 8px
}


/* ページトップへ戻るボタン */
.gotop {
    text-align: center;
  }
  .gotop a {
    display: inline-block;
    padding: 1rem 4rem;
    background: #fff;
    border-radius: 20px 20px 0 0;
    font-size: 1.25rem;
    text-align:center;
    text-decoration: none;
    color: #333;
    opacity: .6;
  }
  .gotop a:hover {
    opacity: .8;
  }
  .gotop i {
    color:#333;
  }

/* フッター */
footer {
    text-align: center;
    padding: 20px;
    background-color: #3b3939;
    color: white;
}

/* フッターのnav */
.footer-nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
}

footer nav a {
    color: white;
    text-decoration: none;
}

footer nav a:hover {
    text-decoration: underline;
}

/* ハンバーガーメニュー */
.hamburger-menu {
    display: none;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background-color: rgba(0, 0, 0, 0.7); /* MENUの背景を黒の半透明に変更 */
    cursor: pointer;
    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index: 2000; /* 最前面に表示 */
}

.menu-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-icon span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: all 0.3s; /* 変化にアニメーションを追加 */
}

.menu-icon p {
    color: white;
    margin-top: 10px;
    transition: all 0.3s ease-in-out; /* 変化にアニメーションを追加 */
}


/* ハンバーガーメニューがアクティブな状態 */
.hamburger-menu.active {
    background-color: transparent; /* CLOSEの時は背景をなくす */
}

.hamburger-menu.active .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px); /* 左上方向に回転 */
}

.hamburger-menu.active .menu-icon span:nth-child(2) {
    opacity: 0; /* 真ん中の線を消す */
}

.hamburger-menu.active .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px); /* 右下方向に回転 */
}

.hamburger-menu.active .menu-icon p {
    content: "CLOSE"; /* MENUからCLOSEに変更 */
}


.footer-logo a{
    text-align: center;
    color: white;
    text-decoration: none;
  }



/* レスポンシブデザイン */
@media (min-width: 768px)  {
    .header-nav {
        display: flex; /* ナビゲーションを表示 */
        opacity: 1; /* 透明度を戻す */
        transform: translateY(0); /* 位置をリセット */
    }

    .banner {
        max-width: calc(33.333% - 20px); /* 幅は変えずに3つ並べる */
        min-width: calc(33.333% - 20px); /* 幅は変えずに3つ並べる */
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px; /* 小さい画面ではやや小さめ */
    }


    h2 {
        font-size: 20px;
    }

    .header-nav {
        opacity: 0;
        transform: translateY(-20px); /* メニューが少し上から降りてくる */
        transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
        display: none;
    }

    .banners {
        flex-direction: column; /* スマホサイズでは縦並び */
        align-items: center; /* 中央揃え */
    }

    .banner {
        max-width: 90%; /* 幅を調整して少し余白を持たせる */
        min-width: auto;
    }

    .hamburger-menu {
        display: flex;
    }



    main {
        padding: 0; 
    }



    .footer-nav ul {
        display: none;
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9); /* 背景の黒っぽいオーバーレイ */
        z-index: 1000;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    .footer-nav ul.active {
        opacity: 1;
        transform: translateY(0); /* スムーズに表示 */
        display: flex;
        backdrop-filter: blur(10px); /* 背景をぼかしてモダンな印象に */
    }

    .footer-nav ul li {
        margin-bottom: 0; /* 各項目の間の余白をリセット */
    }
}



/* トピックスセクション -------------------------------------------------------------------------------*/
.topics {
    padding: 40px 20px;
    background-color: #fff;
    text-align: center;
}

.topics a, .topics p {
    text-decoration: none; /* 下線をなくす */
    text-align: left; /* 左詰めに設定 */
    color: inherit; /* デフォルトの文字色に設定 */
}

.topics-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 大画面では4列 */
    gap: 20px; /* 等間隔を固定 */
}

.card {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 0px;
}

.card p {
    text-align: center; /* テキストを中央揃え */
    display: block; /* 幅を確保して適用 */
    margin: 10px auto; /* 上下に適度な余白を追加して中央揃え */
}

.card a {
    display: flex;
    flex-direction: column;
    align-items: center; /* 画像とテキストを中央揃え */
    text-decoration: none; /* リンクの下線を消す（必要に応じて） */
}

@media (max-width: 768px) { /* レスポンシブデザイン */
    .topics-container {
        grid-template-columns: repeat(2, 1fr); /* スマホサイズでも2列表示 */
        gap: 10px; /* 余白を調整 */
    }
}




/* お知らせセクション  -------------------------------------------------------------------------------*/
.information {
    padding: 40px 60px;
    max-width: 1000px; /* 最大幅を設定 */
    margin: 0 auto; /* 中央揃え */
    background-color: #ffffff;
}

/* お知らせリストのスタイル */
.information-list {
    list-style: none;
    padding: 0 0 0 10px ;
    margin: 0;
}

.information-list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 25px;
}

.information-list li::before {
    padding-right: 5px;
    color: #af1616;
    content: '\f101'; /* Font Awesomeのアイコンコード */
    font-family: 'Font Awesome 5 Free'; /* Font Awesomeのフォントファミリ */
    font-weight: 900; /* アイコンの太さ */
    position: absolute;
    left: 0;
    top: 12px; /* アイコンの位置を調整 */
    transform: translateY(-50%);
}

.information-list a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: inline-block;
    vertical-align: middle; /* 追加 */
}

.information-list a:hover {
    text-decoration: underline;
}

.information-list span {
    display: inline-block;
    vertical-align: middle; /* 追加 */
    white-space: nowrap; /* 日付が折り返されないようにする */
}




/* ニュースセクション  -------------------------------------------------------------------------------*/
.news {
    padding: 40px 60px;
    max-width: 1000px; /* 最大幅を設定 */
    margin: 0 auto; /* 中央揃え */
    background-color: #fff;
}


/* 特殊記事のスタイル */
.featured-article {
    display: flex;
    align-items: center;
    text-align: left; /* 左揃えに変更 */
    margin-bottom: 20px;
}

.featured-article img {
    width: 100%; /* 親要素の幅に合わせる */
    max-width: 400px; /* 最大幅を指定して、スマホでも適度なサイズを保つ */
    height: auto; /* 縦横比を維持 */
    display: block; /* 余計な隙間をなくす */
    margin-right: 20px; /* 画像とテキストの間に余白を追加 */
}

.featured-article .text {
    width: 60%; /* テキストの幅を設定 */
}

.featured-article h3 {
    margin-bottom: 10px;
}

.featured-article p {
    line-height: 1.5;
}

@media (max-width: 768px) { /* レスポンシブデザイン */
    .featured-article {
        flex-direction: column; /* 縦並びにする */
        align-items: center; /* 画像とテキストを中央揃え */
        text-align: center; /* テキストの中央揃え */
    }

    .featured-article img {
        width: 80%; /* スマホでは少し余白を持たせる */
        max-width: 300px; /* 最大幅を制限 */
    }

    .featured-article .text {
        width: 100%; /* テキストの幅を全体に設定 */
    }
}

/* NEWSの最新記事に余白を追加 */
.latest-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-articles li {
    margin-bottom: 15px;
    padding-bottom: 10px; /* 下側の余白を追加 */
    padding-top: 10px; /* 上側の余白を追加 */
    padding-left: 20px; /* 左側に20pxの余白を追加 */
    display: flex;
    align-items: baseline; /* 内容と日付を揃える */
    position: relative; /* 擬似要素の位置を調整 */
}

.latest-articles li:last-child {
    border-bottom: none; /* 最後の項目の下線を消去 */
}

.latest-articles a {
    word-break: break-word; /* リンク内のテキストが折り返されるように設定 */
    text-decoration: none;
    color:#333;
    font-weight: bold; /* 項目を太字に設定 */
    display: block;
    margin-bottom: 10px; /* 下線との間に余白を追加 */
}

/* 境に細線追加の調整 */
.latest-articles li::after {
    content: "";
    display: block;
    height: 0.5px;
    background-color: #ddd; /* 細線の色を設定 */
    position: absolute; /* 擬似要素の位置を絶対位置に設定 */
    bottom: 0; /* リスト項目の下部に配置 */
    left: 0;
    right: 0;
    margin: 0; 
}

.latest-articles span {
    flex-shrink: 0; /* 日付が折り返されないように設定 */
    width: 120px; /* 日付と項目の間に余白を設定 */
    color: #333; /* 文字色を統一 */
}











/* その他のセクション -------------------------------------------------------------------------------*/

/* アクセス セクション */
.access {
    padding: 40px 60px;
    max-width: 1000px; /* 最大幅を設定 */
    margin: 0 auto; /* 中央揃え */
    background-color: #fff;
}

.access iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 8px; /* 角を丸くしてみる */
}

.access address {
    margin: 20px 0;
    font-style: normal;
    line-height: 1.6; /* 読みやすさを向上 */
}

.access h3 {
    margin-bottom: 0; /* h3の下余白をリセット */
    font-size: 24px;
    position: relative; /* 擬似要素の位置指定のために追加 */
    padding-left: 0.7em; /* 箇条書き用のマーク位置調整 */
}

.access h3::before {
    content: '|'; /* 箇条書き用のマークとして "|" を追加 */
    position: absolute;
    left: 0;
    color: #af1616; /* マークの色を設定 */
    font-weight: bold; /* マークを太字にする */
    margin-right: 0.3em; /* 文字とマークの間隔を調整 */
}

.access p {
    font-size: 18px;
    line-height: 1.6; /* 読みやすさを向上 */
    margin: 0 0 20px 1em; /* 左マージンを追加し、右も多少スペースを増やす */
}



/* 部活動 セクション */
.club {
    padding: 40px 60px;
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

.club-container {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    margin-top: 20px;
}

.club-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 影 */
    text-align: left; /* カード内のテキストを左寄せに */
    border: 2px solid #1d1d1d; /* 黒の枠線を追加 */
}

.club-image {
    width: 100%;
    height: auto;
    object-fit: cover; /* 画像をカードにフィットさせる */
    border-radius: 0px
}

.club-card h3 {
    font-size: 24px;
    color: #1d1d1d; /* フォントを黒に */
    margin: 10px 0;
}

.highlight {
    display: inline-block;
    background-color: #af1616; /* 赤の網掛け */
    color: #fff; /* 文字色を白に */
    font-weight: bold; /* フォントを太文字に */
    padding: 2px 5px;
    border-radius: 3px;
}

.achievements {
    padding-left: 1em; /* 左余白を追加 */
}

.achievements li {
    list-style-type: "○ "; /* 箇条書きを★に変更 */
    margin-bottom: 5px; /* 下余白を追加 */
}

/* レスポンシブデザイン */
@media (min-width: 1024px) {
    .club-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .club-container {
        grid-template-columns: repeat(1, 1fr);
    }
}



/* 進路情報 セクション */

.career {
  padding: 40px 60px;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #fff;
}

.career img {
  width: 100%;       /* セクションの幅に合わせる */
  max-width: 100%;
  height: auto;      /* アスペクト比を維持 */
  display: block;    /* 余計な隙間をなくす */
}




/* 学校行事 セクション */

/* ============================
   1) 月ブロック（カード全体）
   ============================ */
.event-month {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 40px;
}

/* 月タイトル */
.event-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  border-left: 6px solid #af1616;
  padding-left: 12px;
}


/* ============================
   2) 写真＋行事名のレイアウト
   ============================ */
.event-content {
  display: grid;
  grid-template-columns: 300px 1fr;  /* 写真300px + 行事一覧 */
  gap: 24px;
  align-items: start;
}


/* ============================
   3) 写真（大きめ・動かない）
   ============================ */
.event-photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;

  /* hover 無効 */
  transform: none !important;
  transition: none !important;
}


/* ============================
   4) 行事名リスト
   ============================ */
.event-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-list li {
  margin-bottom: 10px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* リストの丸をデザインに変更 */
.event-list li::before {
  content: "•";
  color: #af1616;
  font-size: 1.2rem;
}


/* ============================
   5) リンクデザイン
   ============================ */
.event-list a {
  text-decoration: none;
  font-size: 1.1rem;
  color:  #1d1d1d;
  font-weight: 500;
}

.event-list a:hover {
  text-decoration: underline;
}


/* ============================
   6) mark のフォントを li と揃える
   ============================ */
.event-list li mark {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  background: linear-gradient(transparent 50%, #fff5a5 50%);
  padding: 0 2px;
}


/* ============================
   7) スマホ対応
   ============================ */
@media (max-width: 640px) {

  .event-month {
    padding: 18px;
  }

  .event-content {
    grid-template-columns: 1fr;   /* 写真 → 行事名の縦並び */
    gap: 16px;
  }

  .event-photo img {
    width: 100%;
    height: 220px;  /* スマホは縦長で表示 */
  }
}








/* 学校概要 セクション */
.introduction {
    padding: 40px 60px;
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

.introduction h3 {
    margin-bottom: 0; /* h3の下余白をリセット */
    font-size: 24px;
    position: relative; /* 擬似要素の位置指定のために追加 */
    padding-left: 0.7em; /* 箇条書き用のマーク位置調整 */
}

.introduction h3::before {
    content: '|'; /* 箇条書き用のマークとして "|" を追加 */
    position: absolute;
    left: 0;
    color: #af1616; /* マークの色を設定 */
    font-weight: bold; /* マークを太字にする */
    margin-right: 0.3em; /* 文字とマークの間隔を調整 */
}

.introduction p {
    font-size: 18px;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 20px;
}

.introduction p b {
    font-weight: bold;
    color: #000;
}


.introduction ul {
    list-style-type: none; /* ・を削除 */
    padding-left: 2em; /* 余白を2文字分追加 */
}

.introduction li {
    text-indent: -1em; /* インデント調整 */
    padding-left: 1em; /* 左余白を追加 */
}

/* テーブルスタイル */
.certificate-tab {
    width: 100%;
    max-width: 500px; /* テーブルの最大幅を固定 */
    min-width: 250px; /* 最小幅*/
    border-collapse: collapse;
    margin-bottom: 20px;
    table-layout: fixed; /* テーブルの幅を固定 */
}

.certificate-tab th, .certificate-tab td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-size: 18px;
    color: #333;
}

.certificate-tab th {
    background-color: #2a2929;
    color: #fff;
    font-weight: bold;
}

.certificate-tab td {
    background-color: #fff;
}

/* 校訓スタイル */
.introduction h4 {
    font-size: 22px;
    color: #d12525;
    margin-top: 20px;
    margin-bottom: 20px;
}


/* 校歌スタイル */
.introduction p .lyrics {
    font-style: italic;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.introduction img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}



/* 校長メッセージ セクション */
.principal-message {
    padding: 40px 60px;
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

/* 写真と文章の横並び */
.principal-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

/* 写真 */
.principal-photo {
    width: 350px;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 2px 8px #00000030;
}

/* テキスト側 */
.principal-text {
    flex: 1;
    min-width: 260px;
}

.principal-text p {
    font-size: 18px;
    line-height: 1.7;
    color: #000;
}

/* モバイル対応（縦並びへ） */
@media screen and (max-width: 700px) {
    .principal-container {
        flex-direction: column;
        text-align: center;
    }

    .principal-photo {
        margin: 0 auto;
    }

    .principal-text {
        text-align: left;
    }
}




/* 学校紹介 セクション */

.home-latest{ 
    margin: 0 0 60px 0;
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    grid-auto-rows: minmax(100px auto);
    column-gap: 10px;
    row-gap: 30px;
  }
  @media(min-width: 768px){
    .home-latest{
      grid-template-columns:1fr 1fr 1fr 1fr 1fr;
      column-gap: 20px;
    }
  }
  .latest-item-icon {
    background: none;
    text-align: center;
  }



/* 表のスタイル */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

table th {
    padding: 10px;
    text-align: center;
    color: #ffffff;
    background-color: #333;
}

table td {
    padding: 10px;
    border-bottom: solid 1px #333;
}



/* メインコンテナ */
.page-main {
    padding: 40px 60px;
    max-width: 1000px; /* 最大幅を設定 */
    margin: 0 auto; /* 中央揃え */
    background-color: #fff;
}


/* タブのデザイン */
.course-contents { /* 学校概要のレイアウト */

}
.tabContent{
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto; /* 中央揃え */
  background-color: #fff;
}
.tabContent::after{
  content: "";
  display: block;
  width: 100%;
  height: 0;
  order: -1;
  background: #af1616;
}
.tabContent .tabContent__label{
  margin-right: 3px;
  padding: 10px 12px;
  flex: 1;
  order: -1;
  border-radius: 3px 3px 0 0;
  color:#333;
  background:#d8d8d8;
  cursor: pointer;
}
.tabContent .tabContent__label:nth-last-of-type(1){ margin-right: 0; }
.tabContent input {
  display: none;
}
.tabContent .tabContent__main{
  width: 100%;
  height: 0;
  overflow: hidden;
  opacity: 0;
}
.tabContent .tabContent__main p{
  padding-left: 10px;
}
.tabContent input:checked + .tabContent__label{
  color: #fff;
  font-size: 1.25rem;
  background: #af1616;
}
.tabContent input:checked + .tabContent__label + .tabContent__main{
  overflow: auto;
  padding: 15px;
  height: auto;
  border: 3px solid #af1616;
  transition: .5s opacity;
  opacity: 1;
}
.tabContent .tabContent__main img {
    max-width: 100%; /* 親要素の幅に合わせて縮小 */
    height: auto; /* 縦横比を保つ */
    display: block; /* 余計な余白を消すためにブロック表示 */
    margin: 0 auto; /* 画像を中央揃えに */
}




/* あしらいリスト */
.newslist {
  list-style: none;
  padding: 0;
  margin: 20px;
}

.newslist li {
  margin-bottom: 12px;
}


/* 基本デザイン（共通） */
.newslist a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: #fff;
  border-left: 5px solid #af1616;  /* 赤ライン */
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ▼リンク先がある場合だけ動くようにする */
.newslist a[href]:not([href=""]):not([href="#"]) {
  transition: transform .15s ease, box-shadow .15s ease;
}

.newslist a[href]:not([href=""]):not([href="#"]):hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ▼リンクが無い場合（href="" or "#"）の見た目（任意）
   必要なければ削除してOK */
.newslist a[href=""],
.newslist a[href="#"] {
  cursor: default;
}


.newslist .icon {
  font-size: 1.4rem;
  color: #af1616;
}






/* =========================
   学科紹介 追記スタイル（追加のみ）
   ========================= */

/* 1) 「最近の活動」：おしゃれリストの最終調整（既存.newslistを活かす） */
.tabContent .tabContent__main .newslist {
  margin: 16px 0 24px; /* 既存: 20px をセクション内の流れに合わせ調整 */
}
.tabContent .tabContent__main .newslist a {
  border-left-color: #af1616; /* サイトのアクセントカラーに合わせる */
}
@media (max-width: 768px) {
  /* スマホでは左右のハミ出しを防ぐ */
  .tabContent .tabContent__main .newslist {
    margin-left: 0;
    margin-right: 0;
  }
}

/* 2) コースカード（スマホ1→タブレット2→PC3列） */
.course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 12px 0 8px;
}
.course-card {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.course-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.course-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.course-card .course-body {
  padding: 10px 12px 14px;
}
.course-card .course-title {
  font-size: 18px;
  margin: 6px 0 4px;
  color: #1d1d1d;
}
.course-card .course-text {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin: 0;
}


/* 3) ギャラリー */
.gallery-grid {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-grid li {
  overflow: hidden;
  border-radius: 8px;
}

/* 写真サイズを統一（高さ120pxでトリミング） */
.gallery-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;

  /* ▼動かないようにする */
  transform: none !important;
  transition: none !important;
}

/* ホバー無効化（念のため） */
.gallery-grid img:hover {
  transform: none !important;
}

/* 4) レスポンシブ（コース/ギャラリー） */
@media (min-width: 640px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .course-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(5, 1fr); }
}


/* 5) タブ本文の見た目微調整（開いたときの枠のつながりを綺麗に） */
.tabContent input:checked + .tabContent__label + .tabContent__main {
  border-top: 0;                /* ラベルと一体化 */
  padding-top: 16px;            /* 上余白を適度に */
  background: #fff;
}

/* 6) タブ内のセクション見出し（既存h2の下線ルールを継承しつつ余白調整） */
.tabContent .tabContent__main h2 {
  margin: 16px 0 12px;
}





.popular-item {
    display: flex;
    align-items: flex-start; /* 写真とテキストを上揃え */
    margin-bottom: 20px; /* アイテム間の余白 */
}
.popular-photo {
    flex: 0 0 40%; /* 写真の幅を40%に設定 */
    margin-right: 20px; /* 写真とテキストの間に余白を追加 */
}

.popular-photo img {
    max-width: 100%; /* 親要素の幅に収める */
    height: auto; /* 縦横比を維持 */
    border-radius: 5px; /* 少し丸みを帯びた角を追加 */
    display: block; /* 中央揃えのための設定 */
}

.popular-text {
    flex: 1; /* テキスト部分が残りのスペースを埋める */
    text-align: justify; /* テキストを両端揃え */
}







/* 最新記事セクション */
.news-pic-contents {
    margin: 0 0 60px 0;
}

.news-pic-contents h3 {
    color: #af1616;
    display: inline;
    font-weight: 600;
    line-height: 1.4em;
    padding: 2px;
    background: linear-gradient(transparent 0%, #ff7c827a 0%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}



/* 学校紹介の内容 */
.school_main-contents .home-latest {
    margin: 0 0 60px 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: minmax(100px auto);
    column-gap: 10px;
    row-gap: 30px;
}

@media (min-width: 768px) {
    .school_main-contents .home-latest {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
        column-gap: 20px;
    }
}

.school_main-contents .latest-item-icon {
    background: none;
    text-align: center;
}



/* Q&Aセクションのスタイル */
.q_and_a {
    margin: 45px 0 0 0;
    padding: 20px 45px 20px 0;
    background-color: #fff6f6;
}

.q_and_a h4 {
    color: #fff;
    display: inline;
    font-weight: 600;
    line-height: 1.4em;
    padding: 2px;
    background: linear-gradient(transparent 0%, #333 0%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.q_and_a p {
    margin-left: 50px;
}

.q_and_a mark {
    color: #af1616;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
}




/* 高校見学等の実施状況お知らせ用 */
#today-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #e0f7fa, #c8e6c9); /* 薄い水色〜薄緑で爽やかに */
  border: 4px solid #4caf50;
  padding: 36px 48px;
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.4); /* 優しい緑の影 */
  z-index: 9999;
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  border-radius: 16px;
  color: #2e7d32;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

#today-message::before {
  content: "🏫"; /* アイコン */
  font-size: 36px;
}
