@charset "UTF-8";
/* ==========================================================================
   l-header (全体構造)
   ========================================================================== */
.l-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: #791336;
  /* --- 共通のリンクスタイル --- */
  /* --- ヘッダー内部のコンテナ --- */
  /* --- ロゴ --- */
  /* --- メニューセンター (ドロワー/ナビコンテナ) --- */
  /* --- ナビゲーション・グループ (Main & Sub) --- */
  /* --- アクションエリア (検索 & 寄付) --- */
  /* --- ハンバーガーボタン --- */
  /* --- オーバーレイ --- */
}
.l-header a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s;
}
.l-header a:hover {
  opacity: 0.8;
}
.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 0 20px;
}
@media screen and (min-width: 1025px) {
  .l-header__inner {
    padding: 0 15px;
  }
}
.l-header__logo {
  display: flex;
  align-items: center;
  width: 200px;
  z-index: 20;
}
.l-header__logo a {
  display: block;
  width: 100%;
  line-height: 0;
}
.l-header__logo img {
  width: 100%;
  height: auto;
  max-height: 50px;
}
@media screen and (min-width: 1025px) {
  .l-header__logo img {
    max-height: 80px;
  }
}
@media screen and (min-width: 1025px) {
  .l-header__logo {
    max-width: 210px;
    width: 20%;
  }
}
.l-header__center {
  /* [スマホ] スライドメニュー */
  position: fixed;
  top: 0;
  right: -100%;
  z-index: 950;
  display: flex;
  flex-direction: column;
  width: 80%;
  height: 100vh;
  padding: 100px 30px;
  background-color: #791336;
  overflow-y: auto;
  transition: right 0.4s ease;
  /* [PC] 通常表示へのリセット */
}
.l-header__center.is-open {
  right: 0;
}
@media screen and (min-width: 1140px) {
  .l-header__center {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    height: auto;
    padding: 0;
    background-color: transparent !important;
    gap: 15px;
    padding-left: 20px;
    right: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
.l-header__nav-group {
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
  /* --------------------------------------------------
          メインナビゲーション
      -------------------------------------------------- */
  /* --------------------------------------------------
     サブナビゲーション
  -------------------------------------------------- */
}
@media screen and (min-width: 1140px) {
  .l-header__nav-group {
    flex-direction: column;
    align-items: flex-end;
    width: auto;
  }
}
.l-header__nav-group .l-header__main-nav {
  width: 100%;
}
.l-header__nav-group .l-header__main-nav nav > ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media screen and (min-width: 1140px) {
  .l-header__nav-group .l-header__main-nav nav > ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 0;
    height: auto;
    min-height: 0;
  }
}
.l-header__nav-group .l-header__main-nav nav > ul > li {
  position: relative;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}
.l-header__nav-group .l-header__main-nav nav > ul > li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
@media screen and (min-width: 1025px) {
  .l-header__nav-group .l-header__main-nav nav > ul > li {
    display: flex;
    align-items: center;
    width: auto;
    border: none;
    padding: 0 clamp(2px, 3.5vw, 15px);
  }
  .l-header__nav-group .l-header__main-nav nav > ul > li:last-child {
    border: none;
  }
  .l-header__nav-group .l-header__main-nav nav > ul > li + li::before {
    content: "";
    width: 1px;
    height: 0.8em;
    background-color: white;
    margin: 0;
    position: absolute;
    left: 0;
  }
}
.l-header__nav-group .l-header__main-nav a {
  font-family: "Noto Serif JP", serif !important;
  display: block;
  padding: 15px 0;
  font-size: 18px;
  font-weight: bold;
}
@media screen and (min-width: 1025px) {
  .l-header__nav-group .l-header__main-nav a {
    padding: 0;
    font-size: clamp(12px, 1.4vw, 15px);
    font-weight: normal;
  }
}
.l-header__nav-group .l-header__sub-nav {
  width: 100%;
  margin-top: 30px;
}
@media screen and (min-width: 1025px) {
  .l-header__nav-group .l-header__sub-nav {
    margin-top: 0;
    margin-bottom: 8px;
  }
}
.l-header__nav-group .l-header__sub-nav ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media screen and (min-width: 1025px) {
  .l-header__nav-group .l-header__sub-nav ul {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
  }
}
.l-header__nav-group .l-header__sub-nav li {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
@media screen and (min-width: 1025px) {
  .l-header__nav-group .l-header__sub-nav li {
    display: flex;
    align-items: center;
    border: none;
  }
  .l-header__nav-group .l-header__sub-nav li + li::before {
    content: "";
    width: 1px;
    height: 0.7em;
    margin-right: 7px;
    background-color: white;
  }
}
.l-header__nav-group .l-header__sub-nav a {
  font-family: "Noto Serif JP", serif !important;
  display: block;
  padding: 12px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}
@media screen and (min-width: 1025px) {
  .l-header__nav-group .l-header__sub-nav a {
    padding: 0;
    font-size: 12px;
  }
}
.l-header__action {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 40px;
}
@media screen and (min-width: 1025px) {
  .l-header__action {
    flex-direction: row;
    align-items: center;
    width: auto;
    margin-top: 0;
    gap: 0;
  }
}
.l-header__hamburger {
  position: relative;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  gap: 6px;
  cursor: pointer;
}
.l-header__hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: #ffffff;
  transition: 0.4s;
}
.l-header__hamburger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(-45deg);
}
.l-header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.l-header__hamburger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(45deg);
}
@media screen and (min-width: 1140px) {
  .l-header__hamburger {
    display: none;
  }
}
.l-header__overlay {
  position: fixed;
  inset: 0;
  z-index: 940;
  background-color: rgba(0, 0, 0, 0.7);
  visibility: hidden;
  opacity: 0;
  transition: 0.4s;
}
.l-header__overlay.is-visible {
  visibility: visible;
  opacity: 1;
}
@media screen and (min-width: 1025px) {
  .l-header__overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

/* ==========================================================================
   c-sub-menu (3階層目・4階層目：デザイン重視・安定版)
   ========================================================================== */
.c-sub-menu {
  /* --- スマホ表示 (1024px以下) --- */
  display: block;
  width: 100%;
  padding: 5px 0 15px 20px;
  list-style: none;
  visibility: visible !important;
  opacity: 1 !important;
  /* --- PC表示 (1025px以上) --- */
}
.c-sub-menu li {
  width: 100%;
  border: none !important;
}
.c-sub-menu a {
  display: block !important;
  padding: 10px 0 !important;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}
@media screen and (min-width: 1025px) {
  .c-sub-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    z-index: 100;
    padding: 25px 0 30px;
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
  }
  .c-sub-menu::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
  }
  .c-sub-menu > li {
    width: auto !important;
    max-width: 200px;
    margin: 0;
    flex-direction: column;
    align-items: flex-start;
    display: block !important;
    position: relative;
    max-width: none !important;
  }
  .c-sub-menu a {
    background: none !important;
    color: #791336 !important;
    font-weight: bold !important;
    font-size: 14px !important;
    padding: 0 !important;
    display: inline-block;
    white-space: nowrap;
  }
}

/* --- 4階層目 (東洋英和と村岡花子) --- */
.c-sub-menu-child {
  /* ★スマホ：親のすぐ下に、小さな文字とL字アイコンで表示 */
  display: block;
  list-style: none;
  padding: 0 0 10px 15px;
  margin: 0;
  /* ★PC：親のすぐ横に「―」記号で並べる (ご自身の調整を維持) */
}
.c-sub-menu-child li {
  border: none !important;
}
.c-sub-menu-child li a {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.6) !important;
  padding: 5px 0 !important;
  display: block !important;
}
.c-sub-menu-child li a::before {
  content: "└";
  margin-right: 5px;
}
@media screen and (min-width: 1025px) {
  .c-sub-menu-child {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
    padding: 2px 30px 0 0px;
    margin: 0;
    list-style: none;
    width: max-content !important;
    max-width: 600px;
  }
  .c-sub-menu-child li {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
  }
  .c-sub-menu-child li a {
    color: #791336 !important;
    font-size: 13px !important;
    font-weight: normal !important;
    white-space: normal !important;
    line-height: 1.4;
    padding: 0 !important;
  }
  .c-sub-menu-child li a::before {
    content: "—";
    padding-right: 2px;
    color: #791336;
  }
  .c-sub-menu-child li a:hover {
    color: #791336 !important;
    text-decoration: underline !important;
  }
}

/* --- PC表示ロジック --- */
@media screen and (min-width: 1025px) {
  .l-header__main-nav nav > ul > li:hover > .c-sub-menu {
    display: none !important;
  }
}
/* ==========================================================================
   コンポーネント (寄付ボタン / 検索)
   ========================================================================== */
/* --- 寄付ボタン --- */
.c-btn-donation {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 0;
  font-size: 18px;
  color: #791336 !important;
  background: linear-gradient(135deg, #f1dd90 0%, #c3964e 100%);
  border: 1px solid #aa853e;
  border-radius: 100px;
  background-clip: padding-box;
  box-sizing: border-box;
  transition: 0.3s;
  white-space: nowrap;
  box-sizing: border-box;
}
@media screen and (min-width: 1025px) {
  .c-btn-donation {
    width: auto;
    padding: 8px 30px 9px;
    font-size: 14px;
  }
  .c-btn-donation:hover {
    background-color: #8c6e33;
    transform: translateY(0px);
  }
}

/* --- 検索窓（Movable Type自動生成対応・アイコン位置＆高さ完全修正版） --- */
.mt-site-search-container {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  padding: 12px 20px !important;
  background-color: #ffffff !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
}
.mt-site-search-container div, .mt-site-search-container form, .mt-site-search-container span {
  all: unset !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-sizing: border-box !important;
}
.mt-site-search-container input[type="text"],
.mt-site-search-container input[type="search"],
.mt-site-search-container input:not([type="submit"]):not([type="button"]) {
  all: unset !important;
  display: block !important;
  width: 100% !important;
  font-size: 16px !important;
  color: #791336 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-sizing: border-box !important;
}
.mt-site-search-container input[type="text"]::placeholder,
.mt-site-search-container input[type="search"]::placeholder,
.mt-site-search-container input:not([type="submit"]):not([type="button"])::placeholder {
  color: rgba(121, 19, 54, 0.4) !important;
}
.mt-site-search-container input[type="submit"],
.mt-site-search-container input[type="button"],
.mt-site-search-container button {
  all: unset !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: 18px !important;
  /* ボタンのクリック領域の幅（スマホ） */
  height: 18px !important;
  /* ボタンのクリック領域の高さ（スマホ） */
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  position: relative !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
}
.mt-site-search-container input[type="submit"]::before,
.mt-site-search-container input[type="button"]::before,
.mt-site-search-container button::before {
  content: "🔍" !important;
  font-size: 18px !important;
  color: #791336 !important;
  text-indent: 0 !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  line-height: 1 !important;
}
@media screen and (min-width: 1025px) {
  .mt-site-search-container {
    width: auto !important;
    padding: 2px 12px !important;
    margin-left: 10px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(121, 19, 54, 0.4) !important;
  }
  .mt-site-search-container input[type="text"],
  .mt-site-search-container input[type="search"],
  .mt-site-search-container input:not([type="submit"]):not([type="button"]) {
    width: 90px !important;
    font-size: 10px !important;
  }
  .mt-site-search-container input[type="submit"],
  .mt-site-search-container input[type="button"],
  .mt-site-search-container button {
    width: 15px !important;
    /* カプセルのサイズ（PC）に合わせる */
    height: 15px !important;
    margin-left: 4px !important;
  }
  .mt-site-search-container input[type="submit"]::before,
  .mt-site-search-container input[type="button"]::before,
  .mt-site-search-container button::before {
    font-size: 12px !important;
  }
}
.mt-site-search-container:hover, .mt-site-search-container:focus-within,
.mt-site-search-container *:hover,
.mt-site-search-container *:focus {
  background-color: #ffffff !important;
  opacity: 1 !important;
}

body.is-fixed {
  overflow: hidden;
}
@media screen and (min-width: 1025px) {
  body.is-fixed {
    overflow: visible !important;
  }
}

/* header内ではいかなる下線も許可しない */
.l-header a,
.l-header a:hover,
.l-header a:visited {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* 楓の会などの長いテキストの折り返しによる線を防止 */
.l-header__main-nav li a {
  white-space: nowrap;
}

/* --- 追加修正：HTML構造に合わせたセレクタ --- */
/* 1. スマホ時に「学院の歴史」のメニュー全体を非表示にする */
@media screen and (max-width: 1024px) {
  /* 3番目の li (学院の歴史) を直接指定、または aの中身で判定 */
  .c-sub-menu li.parent {
    display: none !important;
  }
}
/* 2. PC時に「学院の歴史」の中にあるタイトルを大きくする */
@media screen and (min-width: 1025px) {
  /* メニュー内の「学院の歴史」という文字(li.parent)を大きく */
  .c-sub-menu li.parent a {
    font-size: 16px !important;
    font-weight: bold !important;
    font-family: "Noto Serif JP", serif;
    color: #791336 !important;
    list-style: none;
    margin-top: -1px;
    margin-right: 30px;
  }
}
