/* ==========================================================================
  共通設定 & リセット
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:'Noto Sans JP', sans-serif;
  color: #0b0b0b;
  background-color: #fdfaf7;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

a {
  color: #0b0b0b;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}
a:hover {
  color: #9e2a2b;
  opacity: 0.7;

}

ul {
  list-style: none;
}

h1, h2, h3, h4, .sub-header-copy h2 {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  /* 💡 文字の周りに極薄の影を重ねて、線の掠れを埋める */
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.2),
    0 0 1px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
  サイトロゴ & グローバルナビゲーション
   ========================================================================== */
/* ==========================================================================
   サイトロゴ & グローバルナビゲーション（基本共通設定）
   ========================================================================== */
.site-header {
  background-color: rgba(253, 250, 249, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(169, 107, 120, 0.08);
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
  box-sizing: border-box;
}

.site-logo {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.site-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  display: block;
  height: 50px;
  width: auto;
}

/* スマホ・タブレット表示時（画面幅768px以下）
   ========================================================================== */
@media (max-width: 768px) {
  .header-container {
    padding: 1rem 2rem;
  }

  .site-logo {
    margin-right: auto;
  }
  .site-logo img {
    max-width: calc(100vw - 90px); 
    height: auto;
  }

  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 120;
  }

  .hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #0b0b0b;
    transition: all 0.3s ease-in-out;
  }

  .hamburger span:nth-child(1) { top: 0; }
  .hamburger span:nth-child(2) { top: 10px; }
  .hamburger span:nth-child(3) { bottom: 0; }

  .hamburger.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .hamburger.is-open span:nth-child(2) { opacity: 0; }
  .hamburger.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

  .global-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: rgba(253, 250, 249, 0.98);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    z-index: 110;
    padding: 80px 40px 40px 40px;
    transition: all 0.4s ease-in-out;
    box-sizing: border-box;
    overflow-y: auto;
  }

  .global-nav.is-open {
    right: 0;
  }

  .global-nav ul {
    display: flex;
    flex-direction: column;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .global-nav a {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #e5dfd8;
    padding-bottom: 10px;
    color: #444444;
  }

  .global-nav a.active,
  .global-nav a:hover {
    color: #9e2a2b;
  }

  .global-nav .dropdown-menu {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border-top: none !important;
    background-color: transparent !important;
    padding: 10px 0 0 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .global-nav .dropdown-menu li {
    padding-left: 20px;
    box-sizing: border-box;
  }

  .global-nav .dropdown-menu li a {
    font-size: 0.95rem;
    color: #666666;
    border-bottom: 1px dashed #e5dfd8;
    padding-bottom: 8px;
  }

  .global-nav ul li.has-child > a::before {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  .global-nav {
    position: static;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    padding: 0;
  }

  .global-nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
  }

  .global-nav a {
    font-size: 16px;
    color: #444444;
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s;
    font-weight: 600;
  }

  .global-nav a.active {
    color: #9e2a2b;
  }
  
  .global-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #9e2a2b;
    border-radius: 2px;
  }

  .global-nav a:hover {
    color: #9e2a2b;
  }

  .global-nav ul li.has-child {
    position: relative;
  }

  .global-nav ul li.has-child > a::before {
    content: '▼';
    font-size: 10px;
    color: #777777;
    display: inline-block;
    transition: transform 0.3s;
    position: absolute; 
    top: 50%;
    transform: translateY(-50%); 
    right: -16px; 
  }
  
  .global-nav ul li.has-child > a.active::before,
  .global-nav ul li.has-child:hover > a::before {
    color: #9e2a2b;
  }

  .global-nav ul li.has-child:hover > a::before {
    transform: translateY(-50%) rotate(180deg); 
  }

  .global-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #ffffff;
    box-shadow: 0 6px 16px rgba(89, 70, 57, 0.15);
    border: 1px solid #e5dfd8;
    border-top: 3px solid #9e2a2b;
    border-radius: 0 0 6px 6px;
    padding: 6px 0;
    margin: 0;
    list-style: none;
    z-index: 100;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    display: flex !important;
    flex-direction: column !important;
    white-space: nowrap !important;
  }

  .global-nav ul li.has-child:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .global-nav .dropdown-menu li {
    width: 100%;
    margin: 0 !important;
  }

  .global-nav .dropdown-menu li a {
    display: block;
    padding: 12px 24px;
    color: #444444 !important;
    font-size: 14px;
    text-align: left;
    border-bottom: 1px solid #faf7f2;
    padding-bottom: 12px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
  }

  .global-nav .dropdown-menu li:last-child a {
    border-bottom: none;
  }

  .global-nav .dropdown-menu li a.active::after {
    display: none;
  }

  .global-nav .dropdown-menu li a:hover {
    background-color: #fbf8f4;
    color: #9e2a2b !important;
  }
}

/* ==========================================================================
  メインコンテンツ共通
   ========================================================================== */
.main-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 3rem;
}

.en-title {
  display: block;
  font-size: 0.85rem;
  color: #9e2a2b;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 400;
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 1px;
  background-color: #9e2a2b;
}

/* ==========================================================================
  お知らせセクション
   ========================================================================== */
.info-list li {
  border-bottom: 1px solid #ebdada;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.info-date {
  font-size: 0.9rem;
}

.info-category {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  color: #9e2a2b;
}

/* カテゴリごとの色 */
.cat-news,.cat-event,.cat-bulletin,.cat-activity {
  border: 1px solid #9e2a2b;
}

.info-title {
  flex: 1;
  min-width: 280px;
}

/* ==========================================================================
  ボタン
   ========================================================================== */

.more-btn-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

.btn-more {
  display: inline-block;
  background-color: #1d3557;
  color: #ffffff !important;
  border: 1px solid #1d3557;
  border-radius: 5px;
  padding: 0.8rem 2.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.btn-more:hover {
    background-color: #457b9d;
    border-color: #457b9d;
}

/* ==========================================================================
  フッター（梅の背景イラスト付き）
   ========================================================================== */
.site-footer {
  background-color: #9e2a2b;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.footer-container,
.footer-bottom {
  position: relative;
  z-index: 3;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-brand h4 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
/* ==========================================================================
  フッター用：学校ホームページ移行ボタン（CSS矢印版）
   ========================================================================== */
.btn-school {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  background-color: rgba(253, 250, 249, 0.15);
  color: #fdfaf7 !important;
  border: 1px solid #fdfaf7;

  padding: 0.6rem 1.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 3px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* ホバー時の色の反転 */
.btn-school:hover {
  background-color: #fdfaf7;
  color: #2b2b2b !important;
  border-color: #fdfaf7;
  opacity: 1;
}

/* ボタンの右側に、「 > 」を配置する */
.btn-school::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-top: 1px solid #fdfaf7;
  border-right: 1px solid #fdfaf7;
  transform: rotate(45deg);
  margin-top: -2px;
  transition: border-color 0.3s ease;
}

/* マウスを乗せたときは、矢印の線の色も「濃墨色」に一緒に反転させる */
.btn-school:hover::after {
  border-color: #2b2b2b;
}

.footer-sitemap {
  display: flex;
  gap: 4rem;
}

.sitemap-col h5 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 400;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 0.25rem;
}

.sitemap-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sitemap-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

.sitemap-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  /*border-top: 1px solid rgba(255, 255, 255, 0.1);*/
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/*  梅の背景イラストをうっすら出す
   ========================================================================== */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/common/footer-img.png');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  opacity: 0.50;
  z-index: 2;
  pointer-events: none;
}

/* ==========================================================================
  レスポンシブ対応
   ========================================================================== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .global-nav ul {
    gap: 1rem;
  }
  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }
  .footer-sitemap {
    gap: 2rem;
  }
  .site-footer::before {
  content: none;
  }
}

/* ==========================================================================
  下層ヘッダー：パターン1 ＋ 鹿の子（ドット）パターン
   ========================================================================== */
.sub-page-header {
  position: relative;
  width: 100%;
  height: 190px;
  background-color: #ede9e4;

  /* 規則正しい和風ドットを背景に重ねる */
  background-image: radial-gradient(rgba(223, 217, 208, 0.6) 1.5px, transparent 1.5px);
  background-size: 12px 12px; /* 12px間隔で水玉が並びます */

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-top: 1px solid #dfd9d0;
  border-bottom: 1px solid #dfd9d0;
}

/* --- 以下、文字や落款の設定 --- */
.sub-header-copy { position: relative; z-index: 2; }
.sub-header-copy h2 {
  font-family: "Shippori Mincho", Georgia, serif;
  font-size: 2.2rem;
  color: #0b0b0b;
  margin: 0 0 10px 0;
  letter-spacing: 0.12em;
}
.sub-header-copy h2::after {
  content: ""; display: block; width: 6px; height: 6px;
  background-color: #9e2a2b; margin: 14px auto 14px; transform: rotate(45deg);
}
.sub-header-copy p { font-size: 0.9rem; color: #555555; margin: 0; letter-spacing: 0.08em; }
