/*
Theme Name:  musashino-s.com-child
Template:    musashino-s.com
Version:     1.0
Description: 武蔵野進学セミナー 子テーマ（リニューアル用）
*/

/*
  カラーパレット
  --color-orange:      #f18101  /* 基準 */
  --color-orange-dark: #c16801  /* 20%暗 */
  --color-orange-pale: #fff4e3  /* 淡 */
  --color-green:       #59B224
  --color-green-dark:  #2d5a10
  --color-green-pale:  #eef7e3
*/

/* ========================================
   フォント: FOT-筑紫ゴシック → Noto Sans JP
   @font-face エイリアスにより、親テーマCSS全体の
   font-family 指定を変更なしに差し替える
======================================== */
@font-face {
  font-family: "FOT-筑紫ゴシック Pro E";
  src: local("Noto Sans JP"),
       url("https://cdn.jsdelivr.net/npm/@fontsource/noto-sans-jp@5/files/noto-sans-jp-japanese-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "FOT-筑紫ゴシック Pro B";
  src: local("Noto Sans JP"),
       url("https://cdn.jsdelivr.net/npm/@fontsource/noto-sans-jp@5/files/noto-sans-jp-japanese-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ========================================
   body ベースフォント
   親テーマの メイリオ指定を Noto Sans JP に上書き
======================================== */
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* ========================================
   ヘッダーロゴ（PC）
======================================== */
.header-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.header-logo-mark {
  width: auto;
  height: 44px;
}
.header-logo-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* SPナビ ロゴ */
.sp-navi-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.sp-navi-logo .header-logo-mark {
  height: 32px;
}
.sp-navi-logo .header-logo-text {
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

/* ========================================
   ボタン: .header-button
   ※ フロントページでも共通利用
======================================== */
.header-button,
.site-header .header-link-list02 li p a {
  background: #f18101;
  border: none;
  border-radius: 4px;
  box-shadow: 0 3px 0 #c16801;
  display: inline-block;
  color: #fff;
  line-height: 1.5em;
  padding: 6px 40px;
  text-align: center;
  transition: opacity 0.3s;
  text-decoration: none;
}
.header-button:hover,
.site-header .header-link-list02 li p a:hover {
  opacity: 0.75;
  box-shadow: 0 2px 0 #c16801;
}

/* ========================================
   ページトップボタン（CSS矢印）
======================================== */
.pagetop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #f18101;
  border-radius: 4px;
  transition: background 0.3s;
}
.pagetop-btn:hover {
  background: #c16801;
  opacity: 1;
}
.pagetop-btn::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(-45deg) translateY(3px);
}

/* ========================================
   フッターロゴ
======================================== */
.site-footer .footer-logo a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-footer .footer-logo .header-logo-mark {
  height: 40px;
  width: auto;
}
.site-footer .footer-logo .header-logo-text {
  font-size: 18px;
}

/* ========================================
   季節バナー
======================================== */
.top-season-banner {
  width: 100%;
  overflow: hidden;
}
.top-season-banner picture {
  display: block;
}
.top-season-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   合格体験記スライダー（.top-taikenki）
======================================== */
.top-taikenki {
  background: #eef7e3;
  padding: 50px 0;
}
.taikenki-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  border-top: 5px solid #ccc;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
/* 受験種別ごとのアクセントカラー */
.taikenki-card.koukounyushi  { border-top-color: #f18101; }
.taikenki-card.daigakunyushi { border-top-color: #59B224; }
.taikenki-card.chuugakunyushi{ border-top-color: #2d5a10; }

.taikenki-card-body {
  padding: 24px 20px 16px;
  flex: 1;
  position: relative;
}
.taikenki-card-body::before {
  content: "\201C";
  font-size: 60px;
  line-height: 1;
  color: #f18101;
  opacity: .2;
  position: absolute;
  top: 8px;
  left: 14px;
  font-family: Georgia, serif;
}
.taikenki-excerpt {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
  margin: 0;
}
.taikenki-card-footer {
  padding: 12px 20px 18px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}
.taikenki-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  margin: 0 4px 6px 0;
  font-weight: 700;
}
.badge-juken    { background: #fff4e3; color: #c16801; }
.badge-kyoshitsu{ background: #eef7e3; color: #2d5a10; }
.badge-nendo    { background: #f0f0f0; color: #555; }
.taikenki-title {
  font-size: 13px;
  color: #666;
  margin: 4px 0 0;
}
.taikenki-empty {
  text-align: center;
  color: #888;
  padding: 40px 0;
}

/* ========================================
   top-contents02: コーステキストカード（フルカラー型）
======================================== */
.top-content02-list {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.top-content02-list li {
  flex: 1;
}
.course-card {
  display: flex;
  align-items: center;
  background: #f18101;
  padding: 28px 16px;
  text-decoration: none;
  min-height: 110px;
  transition: filter .2s;
}
.course-card:hover {
  filter: brightness(1.1);
  opacity: 1;
}
.course-card--orange-dark { background: #c16801; }
.course-card--green       { background: #59B224; }
.course-card--green-dark  { background: #2d5a10; }

.course-card-chevron {
  font-size: 28px;
  color: rgba(255,255,255,.65);
  margin-right: 12px;
  flex-shrink: 0;
  line-height: 1;
}
.course-card-text {
  display: flex;
  flex-direction: column;
}
.course-card-grade {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  display: block;
  line-height: 1.2;
}
.course-card-sub {
  font-size: 12px;
  color: rgba(255,255,255,.8);
  display: block;
  margin-top: 4px;
}

/* ========================================
   top-contents03: 挿絵・写真を除去
======================================== */
.top-contents03-ttl::after {
  display: none;
}
.top-contents03 .top-contents03-image {
  display: none;
}

/* ========================================
   top-contents04: 「過去のお知らせ」CSSボタン
   top-contents05: 「教室一覧はこちら」CSSボタン（共通）
======================================== */
.contents04-btn,
.top-contents04 .top-contents04-ttl p a,
.top-contents05-list li a.contents04-btn {
  display: inline-block;
  background: #f18101;
  border: none;
  box-shadow: 0 3px 0 #c16801;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 18px;
  text-decoration: none;
  transition: opacity .3s;
}
.contents04-btn:hover,
.top-contents04 .top-contents04-ttl p a:hover {
  opacity: .75;
}

/* ========================================
   top-contents05: お問い合わせテキストカード（均等オレンジ）
======================================== */
.top-contents05-list {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0 0 35px;
  padding: 0;
}
.top-contents05-list li {
  flex: 1;
}
.inquiry-card,
.top-contents05-list li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff4e3;
  border-top: 5px solid #f18101;
  border-radius: 6px;
  padding: 28px 16px;
  text-decoration: none;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  height: 100%;
}
.inquiry-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.14);
  transform: translateY(-2px);
  opacity: 1;
}
.inquiry-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  display: block;
  margin-bottom: 6px;
}
.inquiry-card-desc {
  font-size: 12px;
  color: #666;
  display: block;
}
.inquiry-tel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.inquiry-tel p {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin: 0 0 12px;
}

/* ========================================
   top-contents04（ブログ一覧）: 教室ブログカード
======================================== */
.top-contents04-list02 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 15px 0 0;
  padding: 0;
  justify-content: center;
}
.top-contents04-list02 li {
  float: none;
  margin: 0;
}
.blog-card,
.top-contents04-list02 li a {
  display: inline-block;
  background: #fff;
  border: 2px solid #f18101;
  border-radius: 4px;
  color: #c16801;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  text-decoration: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.blog-card:hover,
.top-contents04-list02 li a:hover {
  background: #f18101;
  color: #fff;
  opacity: 1;
}

/* ========================================
   子テーマのカスタムCSSをここに追加
======================================== */

/* ========================================
   Phase 2: サイドバー廃止・1カラム全幅化
======================================== */

/* サイドバーを非表示 */
#sidebar,
.sidebar,
.widget-area,
[id*="sidebar"],
[class*="sidebar"] {
  display: none;
}

/* メインコンテンツを全幅に
   親 .under-middle .contents (0-0-2-0) と同詳細度で後勝ちさせるため
   .under-middle .contents の形を踏襲しつつ、その他セレクタも併記 */
.under-middle .contents,
.under-contents,
#main-contents,
.main-contents,
.page-contents {
  width: 100%;
  float: none;
  margin: 0 auto;
  max-width: 900px;
}

/* under-middleラッパーを1カラムに */
.under-middle {
  display: block;
}
.under-middle .contents.student {
  width: 100%;
  float: none;
}

/* コンテンツエリアの余白統一 */
.under-contents-inner,
.contents-inner {
  padding: 40px 20px;
  max-width: 860px;
  margin: 0 auto;
}

/* レスポンシブ対応 */
@media screen and (max-width: 800px) {
  .under-middle .contents,
  .under-contents,
  #main-contents {
    width: 100%;
    padding: 0 15px;
  }
}
