/* ------------------------------
   基本設定（フッターが隠れないための重要設定）
------------------------------ */
html, body {
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  background: url("sougou/img/sougou-bg_pc.png") no-repeat center bottom;
  background-size: 100% auto;
}

@media (max-width: 768px) {
  body {
    background: url("sougou/img/sougou-bg_sp.png") no-repeat center bottom;
     background-size: 100% auto;
  }
}


/* フッター固定のための余白 */
body::after {
  content: "";
  display: block;
  height: 80px;
}

@media (max-width: 767px) {
  body::after {
    height: 0;
  }
}


/* ------------------------------
   画面中央に最大1920pxで配置
------------------------------ */
.page-wrap {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

/* ------------------------------
   1) TOP 画像エリア
------------------------------ */
.top-visual {
  display: flex;
  width: 100%;
}

.top-visual a {
  display: block;
  width: 50%;
}

.top-visual img {
  width: 100%;
  height: auto;
  display: block;
  max-width: none;
  transition: opacity 0.3s ease;
}

.top-visual a:hover img {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .top-visual a {
    width: 100%;
    margin-bottom: 2px; /* ← これを追加 */
    background-color: #FFFFFF;
  }

  /* 最後の画像だけ余白なしにする場合（任意） */
  .top-visual a:last-child {
    margin-bottom: 0;
  }
}


/* ------------------------------
   2) 受験生のお知らせ
------------------------------ */
.exam-info-wrap {
  width: 100%;
  padding-bottom: 800px;
}

@media (max-width: 767px) {
.exam-info-wrap {
  width: 100%;
  padding-bottom: 350px;
}
}

.exam-info-inner {
  width: 100%;
  max-width: 1040px;
  margin: 40px auto 0;
  text-align: center;
}

.exam-title {
  margin: 0 auto;
  display: block;
}

/* PCでは中学のお知らせを中央寄せ */
.exam-columns {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  text-align: left;
}

.exam-column {
  width: 500px;
  box-sizing: border-box;
}

/* タイトル帯 */
.exam-jhs_title,
.exam-shs_title {
  width: 100%;
  display: block;
  color: #FFFFFF;
  padding: 5px 5px 5px 20px;
  border-radius: 25px;
  margin-bottom: 20px;
  text-align: left;
  box-sizing: border-box;
  letter-spacing: 0.5em; 
  font-size:1.2em;
}

.exam-jhs_title {
  background-color: #011455;/*#020928*/
}

.exam-shs_title {
  background-color: #2055A7;
}

/* ------------------------------
   記事リスト
------------------------------ */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li {
  position: relative;
  padding: 12px 40px 12px 0;
  border-bottom: 1px solid #ccc;
  cursor: pointer;
}

.news-date {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 3px;
}

.news-title {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  color: #000;
}

/* 右端のくの字アイコン */
.news-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  width: 18px;
  height: 36px;
  transform: translateY(-50%);
  transition: filter 0.3s ease;
}

/* ホバー時の色変化 */
.news-list li:hover .news-date,
.news-list li:hover .news-title {
  color: #FF3399;
}

.news-list li:hover .news-arrow {
  filter: brightness(0) saturate(100%) invert(36%) sepia(99%) saturate(7470%) hue-rotate(314deg) brightness(101%) contrast(101%);
}

/* ------------------------------
   3) フッター（固定＋全幅背景）
------------------------------ */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: url("sougou/img/sougou-ft_pc.png") repeat-x center top;
  color: #ffffff;
  font-size: 13px;
  z-index: 9999;
}

@media (max-width: 768px) {
  .footer {
    background: url("sougou/img/sougou-ft_sp.png") repeat-y center top;
    background-size: 100% auto; /* 横幅100%で自然に表示 */
    position: static;
  }
}

.footer-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  max-width: 320px;
  height: auto;
}

.footer-address {
  line-height: 1.6;
}

.footer-right {
  text-align: right;
  white-space: nowrap;
}

/* ------------------------------
   スマホ版（レスポンシブ）
------------------------------ */
@media (max-width: 768px) {

  /* 追加：スマホ時のタイトルサイズ調整 */
  .news-title {
    font-size: 14px;
  }
  
  .top-visual {
    flex-direction: column;
  }

  .top-visual a {
    width: 100%;
  }

  .exam-info-inner {
    width: 90%;
  }

@media (max-width: 768px) {
  .exam-title {
    width: 75%;   /* ← お好みで 60%〜80% に調整可能 */
    margin: 0 auto;
  }
}
  
  .exam-columns {
    flex-direction: column;
    gap: 30px;
  }

  .exam-column {
    width: 100%;
  }

@media (max-width: 768px) {
  .exam-jhs_title,
  .exam-shs_title {
    font-size: 1em;      /* ← お好みで 0.9em〜1.1em に調整可能 */
    padding: 4px 10px;   /* ← 上下4px、左右10px（お好みで調整OK） */
    letter-spacing: 0.3em; /* ← スマホでは少し詰めると読みやすい */
    text-align:center;
  }
}

  
  .footer-inner {
    width: 90%;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-left {
    flex-direction: column;
    gap: 10px;
  }

  .footer-right {
    text-align: center;
  }
}