@charset "UTF-8";
/* ================================
 * マナフリ ヘッダー
 * ================================ */
.mf-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #EDEDED;
  /* キャプチャの薄いグレー */
  font-family: "Hiragino Kaku Gothic Pro", "Hiragino Sans", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.mf-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴ */
.mf-header__logo img {
  display: block;
  height: 44px;
  /* ロゴサイズ（適宜調整） */
  width: auto;
}

/* ハンバーガー（SP）初期状態は非表示 → @media で表示 */
.mf-header__toggle {
  display: none;
  border: none;
  background: none;
  padding: 8px;
  cursor: pointer;
}

.mf-header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px 0;
  background-color: #0663AE;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ナビ */
.mf-header__nav {
  margin-left: 32px;
  flex: 1;
}

.mf-header__nav-list {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mf-header__nav-item {
  display: flex;
  align-items: stretch;
}

.mf-header__nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  text-decoration: none;
  color: #111827;
  font-size: 11px;
}

.mf-header__nav-en {
  font-family: "D-DIN", "DIN Condensed", sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: -0.05em;
  color: #0663AE;
  margin-bottom: 2px;
}

.mf-header__nav-ja {
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 3px;
  /* テキストと下線の間隔 */
  background-image: linear-gradient(#000, #000);
  background-repeat: no-repeat;
  background-position: bottom right;
  /* 下線の初期位置 */
  background-size: 0 1px;
  /* 下線のサイズ（横幅、高さ） */
  transition: background-size 0.3s;
}

/* ホバー時 */
.mf-header__nav-link:hover .mf-header__nav-ja {
  background-position: bottom left;
  /* 下線のホバー時位置 */
  /* 下線の横幅を100%にする */
  color: #000;
}

/* 右端 CONTACT ボタン */
.mf-header__nav-link--contact {
  padding: 6px 18px;
  background-color: #0663AE;
  color: #ffffff;
  border-radius: 0;
  width: 170px;
}

.mf-header__nav-link--contact .mf-header__nav-en {
  color: rgba(255, 255, 255, 0.8);
}

.mf-header__nav-link--contact .mf-header__nav-ja {
  color: #ffffff;
}

.mf-header__nav-link--contact.is-open {
  background-color: #0F89DF;
}
.mf-header__nav-link--contact.is-open .mf-header__nav-ja {
  color: #ffffff;
}

/* ======= ここから PC CONTACT ドロップダウン ======= */
@media (min-width: 768px) {
  .mf-header__nav-item--contact {
    position: relative;
  }
  .mf-header__contact-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0;
    width: 170px;
    background: #0663AE;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 30;
  }
  /* 上部の CONTACT ヘッダー */
  .mf-header__contact-head {
    position: relative;
    padding: 10px 16px 14px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }
  .mf-header__contact-head-en {
    display: block;
    font-family: "D-DIN", "DIN Condensed", sans-serif;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .mf-header__contact-head-ja {
    display: block;
    font-size: 20px;
    font-weight: 700;
  }
  /* 右上の X アイコン（飾り） */
  .mf-header__contact-head-close {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 18px;
    height: 18px;
  }
  .mf-header__contact-head-close::before,
  .mf-header__contact-head-close::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 99px;
  }
  .mf-header__contact-head-close::before {
    transform: translateY(-50%) rotate(45deg);
  }
  .mf-header__contact-head-close::after {
    transform: translateY(-50%) rotate(-45deg);
  }
  /* 下部のメニューリスト */
  .mf-header__contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    font-weight: 600;
  }
  .mf-header__contact-link {
    display: block;
    padding: 14px 16px;
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
  }
  .mf-header__contact-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #FFF;
  }
  /* ホバー／フォーカスで表示 */
  .mf-header__nav-item--contact:hover .mf-header__contact-panel,
  .mf-header__nav-item--contact:focus-within .mf-header__contact-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
/* ================================
 * SP オーバーレイメニュー（共通）
 * ================================ */
.mf-spmenu {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.mf-spmenu__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mf-spmenu__panel {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%) translateY(10px);
  width: 88%;
  max-width: 360px;
  height: auto;
  padding: 24px 24px 28px;
  border-radius: 20px;
  background-image: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: #ffffff;
}

/* ロゴ＆クローズ */
.mf-spmenu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mf-spmenu__logo img {
  display: block;
  height: 40px;
  width: auto;
}

.mf-spmenu__close {
  border: none;
  background: none;
  width: 28px;
  height: 28px;
  position: relative;
  cursor: pointer;
}

.mf-spmenu__close span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background-color: #ffffff;
  top: 50%;
  transform-origin: center;
}

.mf-spmenu__close span:first-child {
  transform: translateY(-50%) rotate(45deg);
}

.mf-spmenu__close span:last-child {
  transform: translateY(-50%) rotate(-45deg);
}

/* メニューリスト */
.mf-spmenu__nav {
  margin-top: 8px;
}

.mf-spmenu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mf-spmenu__item + .mf-spmenu__item {
  margin-top: 18px;
}

.mf-spmenu__link {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.mf-spmenu__ja {
  font-family: "Hiragino Kaku Gothic Pro", "Hiragino Sans", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.mf-spmenu__en {
  font-family: "D-DIN", "DIN Condensed", sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* オープン時の状態 */
.mf-header.is-open .mf-spmenu {
  pointer-events: auto;
}

.mf-header.is-open .mf-spmenu__backdrop {
  opacity: 1;
}

.mf-header.is-open .mf-spmenu__panel {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

/* ================================
 * レスポンシブ
 * ================================ */
@media (max-width: 767px) {
  .mf-header__inner {
    padding: 8px 12px;
  }
  .mf-header__logo img {
    height: 40px;
  }
  /* SP: ハンバーガー表示、PCナビ非表示 */
  .mf-header__toggle {
    display: block;
  }
  .mf-header__nav {
    display: none;
  }
}
@media (min-width: 768px) {
  /* PCではSPメニュー無効＆ハンバーガー非表示 */
  .mf-spmenu {
    display: none;
  }
  .mf-header__toggle {
    display: none;
  }
}
/* =========================================================
 * SP オーバーレイメニュー（SP用）
 * ========================================================= */
.mf-spmenu {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

/* 背景の暗転 */
.mf-spmenu__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* 青いグラデパネル本体 */
.mf-spmenu__panel {
  position: absolute;
  top: 2.5rem;
  /* 40px */
  bottom: 2.5rem;
  /* 40px */
  left: 50%;
  width: min(22.5rem, 100% - 2rem);
  /* 360px / 32px */
  padding: 2rem 1.5rem 2rem;
  /* 32px 24px 32px */
  border-radius: 1.5rem;
  /* 24px */
  background-image: linear-gradient(180deg, #0F89DF 0%, #0745C4 100%);
  box-shadow: 0 1.125rem 2.5rem rgba(15, 23, 42, 0.5);
  /* 18px 40px */
  color: #ffffff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translate(-50%, 0.75rem);
  /* 12px */
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ---------------------------------------------------------
 * ロゴ＆クローズボタン
 * --------------------------------------------------------- */
.mf-spmenu__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  /* 24px */
}

.mf-spmenu__logo img {
  display: block;
  height: 2.5rem;
  /* 40px */
  width: auto;
}

/* ×ボタン（右上固定） */
.mf-spmenu__close {
  position: absolute;
  top: -1rem;
  /* -16px */
  right: -0.5rem;
  /* -8px */
  width: 2.1875rem;
  /* 35px */
  height: 2.1875rem;
  /* 35px */
  border: none;
  background: none;
  cursor: pointer;
}

.mf-spmenu__close span {
  position: absolute;
  left: 0.3125rem;
  /* 5px */
  right: 0.3125rem;
  /* 5px */
  top: 50%;
  height: 2px;
  /* 2px は px のまま */
  background-color: #ffffff;
  transform-origin: center;
}

.mf-spmenu__close span:first-child {
  transform: translateY(-50%) rotate(45deg);
}

.mf-spmenu__close span:last-child {
  transform: translateY(-50%) rotate(-45deg);
}

/* ---------------------------------------------------------
 * メニューリスト
 * --------------------------------------------------------- */
.mf-spmenu__nav {
  flex: 1;
  display: flex;
  width: 90%;
  margin: 0 auto;
}

.mf-spmenu__list {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mf-spmenu__item {
  padding-left: 0.1875rem;
  /* 3px */
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.mf-spmenu__link {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 1.875rem;
  /* 30px */
  text-decoration: none;
  color: #FFF;
  margin-bottom: 0.5625rem;
  /* 9px */
}
.mf-spmenu__link:hover {
  color: #FFF;
}

/* 日本語（太め） */
.mf-spmenu__ja {
  font-family: "Hiragino Kaku Gothic Pro", "Hiragino Sans", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  /* 16px */
  font-weight: 700;
}

/* 英語（D-DIN） */
.mf-spmenu__en {
  font-family: "D-DIN", "DIN Condensed", sans-serif;
  font-size: 0.96875rem;
  /* 15.5px */
  letter-spacing: -0.07em;
  text-transform: uppercase;
  opacity: 0.65;
}

/* ---------------------------------------------------------
 * オープン時の状態
 * --------------------------------------------------------- */
.mf-header.is-open .mf-spmenu {
  pointer-events: auto;
}

.mf-header.is-open .mf-spmenu__backdrop {
  opacity: 1;
}

.mf-header.is-open .mf-spmenu__panel {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------------------------------------------------
 * レスポンシブ
 * --------------------------------------------------------- */
@media (max-width: 767px) {
  .mf-header__inner {
    padding: 0.5rem 0.75rem;
    /* 8px 12px */
  }
  .mf-header__logo img {
    height: 2.5rem;
    /* 40px */
  }
  .mf-header__toggle {
    display: block;
  }
  .mf-header__nav {
    display: none;
  }
}
@media (max-width: 767px) and (max-width: 400px) {
  .mf-spmenu__panel {
    padding-inline: 1.125rem;
    /* 18px */
  }
}
/* =========================================================
 * SP お問い合わせ アコーディオン
 * ========================================================= */
.mf-spmenu__item--contact {
  position: relative;
}

.mf-spmenu__link--contact {
  padding: 0;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
}

.mf-spmenu__label {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 1.875rem;
  /* 30px */
  width: 100%;
}

/* 矢印 */
.mf-spmenu__icon {
  position: relative;
  width: 0.9375rem;
  /* 15px */
  height: 0.75rem;
  /* 12px */
  margin-right: 0.5rem;
  /* 8px */
}

.mf-spmenu__icon::before,
.mf-spmenu__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform-origin: center;
}

/* ▼ */
.mf-spmenu__icon::before {
  transform: rotate(45deg) translateX(-0.125rem) translateY(-0.125rem);
  /* 2px */
}

/* 補助線非表示 */
.mf-spmenu__icon::after {
  opacity: 0;
}

/* ▲ */
.mf-spmenu__item--contact.is-open .mf-spmenu__icon::before {
  transform: rotate(-135deg) translateX(-0.1875rem) translateY(-0.1875rem);
  /* 3px */
}

/* ---------------------------------------------------------
 * サブメニュー
 * --------------------------------------------------------- */
.mf-spmenu__sublist {
  display: none;
  list-style: none;
  margin: 0.5rem 0;
  /* 8px */
  padding: 0 0 0 0.5625rem;
  /* 9px */
}

.mf-spmenu__item--contact.is-open .mf-spmenu__sublist {
  display: block;
}

.mf-spmenu__subitem + .mf-spmenu__subitem {
  margin-top: 0.375rem;
  /* 6px */
}

.mf-spmenu__sublink {
  position: relative;
  display: inline-block;
  padding-left: 1.25rem;
  /* 20px */
  font-size: 0.8125rem;
  /* 13px */
  font-weight: 600;
  line-height: 1.6;
  color: #ffffff;
  text-decoration: none;
}
.mf-spmenu__sublink:hover {
  color: #ffffff;
  opacity: 0.85;
}

/* 先頭の「ー」 */
.mf-spmenu__sublink::before {
  content: "ー";
  position: absolute;
  left: 0;
  top: 0;
}

/* =========================================================
 * Footer
 * ========================================================= */
.mf-footer {
  background-image: linear-gradient(180deg, #0F89DF 0%, #0745C4 100%);
  color: #ffffff;
  font-family: "Hiragino Kaku Gothic Pro", "Hiragino Sans", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.mf-footer__inner {
  max-width: 67.5rem;
  /* 1080px */
  margin: 0 auto;
  padding: 2rem 1.5rem;
  /* 32px 24px */
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
}

/* ---------------------------------------------------------
 * 左側：ブランドエリア
 * --------------------------------------------------------- */
.mf-footer__brand {
  flex: 0 0 auto;
}

.mf-footer__logo img {
  display: block;
  height: 4.25rem;
  width: auto;
}

.mf-footer__tagline {
  margin: 0.5rem 0 1.5rem;
  /* 12px / 24px */
  font-size: 0.875rem;
  /* 14px */
}

.mf-footer__copy {
  margin: 0;
  font-size: 0.75rem;
  /* 12px */
}

.mf-footer__copy-sp {
  display: none;
}

/* ---------------------------------------------------------
 * 右側：ナビゲーションリスト
 * --------------------------------------------------------- */
.mf-footer__nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  gap: 4rem;
}

.mf-footer__nav-col {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  /* 14px */
}

.mf-footer__nav-col li + li {
  margin-top: 0.5rem;
  /* 4px */
}

.mf-footer__nav-col a {
  color: #ffffff;
  text-decoration: none;
}

.mf-footer__nav-col a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------
 * SP レイアウト
 * --------------------------------------------------------- */
@media (max-width: 767px) {
  .mf-footer__logo a {
    display: inline-block;
  }
  .mf-footer__logo img {
    height: 4rem;
  }
  .mf-footer__tagline {
    margin-top: 0 !important;
    margin-bottom: 0.25rem !important;
  }
  .mf-footer__inner {
    padding: 2rem 1.25rem;
    /* 32px 20px */
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.75rem;
    /* 28px */
  }
  .mf-footer__brand {
    align-items: center;
  }
  .mf-footer__tagline {
    margin: 0.75rem 0 1.25rem;
    font-size: 0.875rem;
  }
  .mf-footer__copy {
    margin-top: 0.5rem;
    display: none;
  }
  .mf-footer__copy-sp {
    font-size: 0.75rem;
  }
  .mf-footer__nav {
    width: 100%;
    justify-content: center;
    gap: 3.5rem;
  }
  .mf-footer__nav-col {
    font-size: 0.875rem;
    text-align: left;
  }
}
/* さらに狭い端末向け微調整 */
@media (max-width: 480px) {
  .mf-footer__inner {
    gap: 1.5rem;
  }
  .mf-footer__nav {
    gap: 3.5rem;
  }
  .mf-footer__nav-col li + li {
    margin-top: 0.375rem;
    /* 6px */
  }
}
/* =========================================================
 * Single Post (Article)
 * ========================================================= */
.mf-article-wrapper {
  max-width: 67.5rem;
  /* 1080px */
  margin: 0 auto;
  padding: 3.75rem 1.5rem 4.5rem;
  /* 60px 24px 72px */
  font-family: "Hiragino Kaku Gothic Pro", "Hiragino Sans", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0f172a;
}

/* 背景を薄いグレーにしたい場合は body / main 側で調整
body.single {
  background-color: #f1f5f9;
}
*/
.mf-article {
  max-width: 50rem;
  /* 720px */
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.08);
  padding: 2.5rem 2.25rem 2.75rem;
}

/* ---------------------------------------------------------
 * ヘッダー（カテゴリ・日付・タイトル）
 * --------------------------------------------------------- */
.mf-article__head {
  margin-bottom: 2rem;
}

.mf-article__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  /* 13px */
  color: #6b7280;
}

.mf-article__cat {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background-color: rgba(15, 137, 223, 0.1);
  color: #0663AE;
  font-size: 0.75rem;
  /* 12px */
  font-weight: 600;
}

.mf-article__date {
  font-variant-numeric: tabular-nums;
}

.mf-article__title {
  margin: 0;
  font-size: 1.875rem;
  /* 30px */
  font-weight: 700;
  line-height: 1.4;
}

/* ---------------------------------------------------------
 * アイキャッチ
 * --------------------------------------------------------- */
.mf-article__thumb {
  margin: 0 0 2rem;
  border-radius: 1rem;
  overflow: hidden;
  background-color: #e5e7eb;
}

.mf-article__thumb img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------
 * 本文
 * --------------------------------------------------------- */
.mf-article__body {
  font-size: 0.9375rem;
  /* 15px */
  line-height: 1.9;
  color: #111827;
}

.mf-article__body p {
  margin: 0 0 1.4rem;
}

.mf-article__body h2 {
  margin: 2.25rem 0 1rem;
  font-size: 1.375rem;
  /* 22px */
  font-weight: 700;
  border-left: 0.25rem solid #0663AE;
  padding-left: 0.75rem;
}

.mf-article__body h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.125rem;
  /* 18px */
  font-weight: 700;
}

.mf-article__body ul,
.mf-article__body ol {
  margin: 0 0 1.4rem 1.25rem;
  padding: 0;
}

.mf-article__body li + li {
  margin-top: 0.25rem;
}

/* ---------------------------------------------------------
 * ページ分割
 * --------------------------------------------------------- */
.mf-article__pagination {
  margin-top: 2rem;
  font-size: 0.875rem;
  text-align: center;
}

/* ---------------------------------------------------------
 * タグリスト
 * --------------------------------------------------------- */
.mf-article__tags {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
}

.mf-article__tags-label {
  font-weight: 700;
}

.mf-article__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mf-article__tags-item a {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background-color: #f3f4ff;
  color: #1d4ed8;
  text-decoration: none;
  font-size: 0.75rem;
}

.mf-article__tags-item a:hover {
  background-color: #e0e7ff;
}

/* ---------------------------------------------------------
 * 前後ナビ
 * --------------------------------------------------------- */
.mf-article-nav {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

.mf-article-nav__item a {
  color: #0663AE;
  text-decoration: none;
}

.mf-article-nav__item a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------
 * SP 調整
 * --------------------------------------------------------- */
@media (max-width: 767px) {
  .mf-article-wrapper {
    padding: 3rem 1.25rem 3.75rem;
  }
  .mf-article {
    padding: 2rem 1.5rem 2.5rem;
  }
  .mf-article__title {
    font-size: 1.6rem;
  }
  .mf-article-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .mf-article-nav__item--prev {
    order: 1;
  }
  .mf-article-nav__item--next {
    order: 2;
    text-align: right;
  }
}
@media (max-width: 480px) {
  .mf-article-wrapper {
    padding-inline: 1rem;
  }
  .mf-article {
    padding-inline: 1.25rem;
  }
}
/* =========================================================
 * single.php：戻るリンク
 * ========================================================= */
.mf-article__back {
  margin-bottom: 1.25rem;
}

.mf-article__backlink {
  font-family: "Hiragino Kaku Gothic Pro", "Hiragino Sans", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont;
  font-size: 0.875rem;
  color: #0663AE;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: opacity 0.2s ease;
}
.mf-article__backlink:hover {
  color: #0663AE;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .mf-article__back {
    margin-bottom: 1rem;
  }
}
html {
  font-size: 1.11vw;
}

@media (max-width: 767px) {
  html {
    font-size: 4.25vw;
  }
}
.site-main {
  background-color: #EDEDED;
  background-image: url(../images/front/hero-moyo.png);
  background-size: contain;
  background-position: top;
  background-repeat: no-repeat;
  position: relative;
  margin-top: -4rem;
  padding-bottom: 2rem;
  overflow: hidden;
}

.mf-teacher-archive-wrapper {
  max-width: 63.5rem;
  /* 1080px */
  margin: 0 auto;
  padding: 3.75rem 1.5rem 0;
  /* 60px 24px 72px */
  font-family: "Hiragino Kaku Gothic Pro", "Hiragino Sans", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0f172a;
}

/* ---------------------------------------------------------
 * ページヘッダー
 * --------------------------------------------------------- */
.mf-head {
  margin-top: 4.75rem;
  margin-bottom: 8.25rem;
  /* 40px */
}

.mf-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 0.25rem;
}

.mf-title {
  display: flex;
  font-size: 1.1rem;
  /* 32px */
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #454545;
  position: relative;
  align-items: center;
}
.mf-title img {
  width: 0.95rem;
  margin-right: 0.25rem;
}

.mf-title-en {
  inset-inline: 0;
  text-align: center;
  font-family: "D-DIN", "DIN Condensed", system-ui, sans-serif;
  font-size: 6.75rem;
  font-weight: 700;
  color: #0663AE;
  transform: scaleY(1.5);
  line-height: 7rem;
}

@media (max-width: 767px) {
  .site-main {
    background-image: url(../images/front/sp/hero-moyo.png);
  }
  .mf-teacher-archive-wrapper {
    padding-top: 2.75rem;
  }
  .mf-head {
    margin-bottom: 0;
  }
  .mf-title {
    margin-top: 1rem;
    margin-left: -0.25rem;
    font-size: 1rem;
    align-self: flex-start;
  }
  .mf-title img {
    width: 0.8rem;
  }
  .mf-title-wrapper {
    flex-direction: column-reverse;
    margin-top: -1.75rem;
  }
  .mf-title-en {
    font-size: 3.75rem;
  }
}
/* =========================================================
 * 科目別 講師一覧 (/teachers/{slug}/)
 * ========================================================= */
.mf-teacher-archive {
  font-family: "Hiragino Kaku Gothic Pro", "Hiragino Sans", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0f172a;
}

.mf-teacher-archive__empty {
  width: max-content;
}

.mf-teacher-archive__inner {
  max-width: 67.5rem;
  /* 1080px */
  margin: 0 auto;
  padding: 0 3.5rem 4.5rem;
  /* 60px 24px 72px */
}

.mf-teacher-archive__head {
  text-align: center;
  margin-bottom: 1.5rem;
  /* 40px */
}

.mf-teacher-archive__title {
  font-size: 2rem;
  /* 32px */
  font-weight: 700;
  margin: 0 0 1rem;
  /* 0 0 16px */
}

.mf-teacher-archive__desc {
  margin: 0;
  font-size: 1.1rem;
  color: #454545;
  text-align: left;
  font-weight: 600;
}

/* 一覧グリッド */
.mf-teacher-archive__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 2.5rem;
}

/* カード */
.mf-teacher-card {
  border-radius: 0.5rem;
  /* 20px */
  background-color: #ffffff;
  box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.06);
  /* 12px 32px */
  overflow: hidden;
}

.mf-teacher-card__link {
  display: block;
  padding: 1.25rem 1.25rem 1.5rem;
  /* 20px 20px 24px */
  text-decoration: none;
  color: inherit;
}
.mf-teacher-card__link:hover {
  color: inherit;
}

/* サムネイル：正方形 */
.mf-teacher-card__thumb {
  width: 100%;
  aspect-ratio: 7/6;
  border-radius: 0.5rem;
  /* 12px */
  overflow: hidden;
  background-color: #e5e7eb;
  margin-bottom: 0.75rem;
  /* 12px */
}

.mf-teacher-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 科目 + 講師名（同じ行） */
.mf-teacher-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  /* 12px */
  margin-bottom: 0.4rem;
  /* 6.4px */
}

.mf-teacher-card__subject {
  display: inline-block;
  padding: 0rem 0.6rem;
  border-radius: 0.25rem;
  background-color: #0663AE;
  color: #FFF;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6rem;
  word-break: keep-all;
}

.mf-teacher-card__name {
  margin: 0;
  font-size: 1.1rem;
  /* 16px */
  font-weight: 700;
  color: #0663AE;
}

/* コメント／抜粋 */
.mf-teacher-card__excerpt {
  margin: 0;
  margin-top: 0.35rem;
  /* 5.6px */
  font-size: 0.9rem;
  font-weight: 600;
  /* 14px */
  line-height: 1.7;
  color: #454545;
}

.mf-teacher-card__detail {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
}
.mf-teacher-card__detail img {
  width: 57.5%;
}

/* ページネーション */
.mf-teacher-archive__pager {
  margin-top: 2.5rem;
  /* 40px */
  text-align: center;
}

/* SP 調整 */
@media (max-width: 767px) {
  .mf-teacher-archive__desc {
    font-size: 1rem;
  }
  .mf-teacher-archive__inner {
    padding: 3rem 1.25rem 1.75rem;
    /* 48px 20px 60px */
  }
  .mf-teacher-archive__list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0;
  }
  .mf-teacher-card {
    width: 47.875%;
    border-radius: 0.25rem;
    margin-bottom: 0.875rem;
  }
  .mf-teacher-card__header {
    gap: 0.5rem;
  }
  .mf-teacher-card__link {
    padding: 0.75rem;
  }
  .mf-teacher-card__subject {
    word-break: keep-all;
    line-height: 1.1rem;
    font-size: 0.7rem;
    padding: 0rem 0.5rem;
  }
  .mf-teacher-card__name {
    font-size: 0.8rem;
    line-height: 1.25rem;
  }
  .mf-teacher-card__excerpt {
    font-size: 0.8rem;
    line-height: 1.4;
  }
  .mf-teacher-card__detail {
    margin-top: 0.5rem;
  }
  .mf-teacher-card__detail img {
    width: 85.5%;
  }
  .mf-teacher-card__thumb {
    border-radius: 0.25rem;
  }
}
@media (max-width: 480px) {
  .mf-teacher-archive__inner {
    padding-inline: 1rem;
    /* 16px */
  }
}
/* =========================================================
 * /teachers/ 上部 科目リンク
 * ========================================================= */
.mf-teacher-index .mf-teacher-archive__head {
  margin-bottom: 2rem;
  /* ベースより少し詰めて、フィルターとセット感を出す */
}

.mf-teacher-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: 0.25rem;
  margin-bottom: 2.5rem;
  margin-left: -0.25rem;
  margin-right: -0.5rem;
}

.mf-teacher-filter__item {
  /* 正方形ボタン */
  border-radius: 1rem;
  text-decoration: none;
}

.mf-teacher-filter__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  /* アイコン背景 → 青グラデ */
  background-image: linear-gradient(135deg, #0F89DF 0%, #0745C4 100%);
  /* SVG は中央に配置 */
}
.mf-teacher-filter__icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.mf-teacher-filter__label {
  font-size: 1.2rem;
  font-weight: 600;
}

/* SP 調整 */
@media (max-width: 767px) {
  .mf-teacher-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.25rem;
    margin-bottom: 2rem;
  }
  .mf-teacher-filter__item {
    padding: 0;
  }
  .mf-teacher-filter__icon {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }
  .mf-teacher-filter__label {
    font-size: 1.2rem;
  }
}
@media (max-width: 480px) {
  .mf-teacher-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* 2列 */
  }
}
/* --- Cocoonのレイアウトをトップのみ上書き --- */
body .wrap {
  width: 100%;
  max-width: 100%;
  padding: 0;
}
body .content {
  margin-top: 0 !important;
}
body .main {
  padding: 0 !important;
}

.only-pc {
  display: block !important;
}

.only-sp {
  display: none !important;
}

@media (max-width: 767px) {
  .only-pc {
    display: none !important;
  }
  .only-sp {
    display: block !important;
  }
}

/*# sourceMappingURL=main.css.map */
