@charset "UTF-8";
/* ==========================================================
   Front Page (pf-front) for Cocoon child
   PCレイアウトをデフォルトとし、SPは max-width: 767px で上書き
   ========================================================== */
:root {
  --fr-fg: #0f172a;
  --fr-muted: #64748b;
  --fr-accent: #0ea5e9;
  --fr-card: #ffffff;
  --fr-border: #e5e7eb;
  --fr-soft: #f8fafc;
}

html {
  font-size: 1.11vw;
}

@media (max-width: 767px) {
  html {
    font-size: 4.25vw;
  }
}
/* --- 背景色（トップ全体） --- */
body {
  background-color: #EDEDED;
}

main {
  position: relative;
}

/* =========================================
 * HERO：トップページ ファーストビュー
 * ========================================= */
.mf-hero {
  background-color: #EDEDED;
  background-image: url(../images/front/hero-moyo.png);
  background-size: cover;
  background-position: bottom;
  position: relative;
  height: 0;
  padding-bottom: 43rem;
  overflow: hidden;
}

/* PCデフォルト */
.mf-hero__inner {
  /* 1080px */
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4.75rem;
  /* PCベース */
}

.mf-hero__visual {
  position: relative;
  gap: 1rem;
  padding-bottom: 3.5rem;
  overflow: visible;
}

.mf-hero__visual::-webkit-scrollbar {
  display: none;
}

.mf-hero__image {
  position: absolute;
  border-radius: 1.75rem;
  overflow: hidden;
  background-color: #e5e7eb;
}

.mf-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 画像配置（PC） */
.mf-hero__image--left {
  left: -28rem;
  top: -13rem;
  width: 28rem;
}

.mf-hero__image--center {
  width: 28rem;
  top: -8rem;
  left: 2.5rem;
}

.mf-hero__image--right {
  right: 6.5rem;
  top: -13rem;
  width: 28rem;
}

.mf-hero__image--extra {
  right: -24rem;
  top: -8rem;
  width: 28rem;
}

/* HERO 底部レイアウト */
.mf-hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 69%;
  margin: auto;
}

/* テキスト */
.mf-hero__copy {
  font-family: "Hiragino Kaku Gothic Pro", "Hiragino Sans", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111827;
  text-align: left;
  margin-top: 3.5rem;
  margin-bottom: 0;
}

.mf-hero__lead {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.mf-hero__title {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.6;
  font-weight: 700;
  color: #454545;
}

.mf-hero__title-highlight {
  color: #0663AE;
  margin-left: -1.25rem;
  margin-right: -1rem;
}

/* CTA ボタン */
.mf-hero__cta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.mf-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem 0.5rem 3.75rem;
  font-size: 1.15rem;
  border-radius: 999px;
  background-image: linear-gradient(135deg, #0F89DF 0%, #0745C4 100%);
  color: #ffffff;
  font-family: "Hiragino Kaku Gothic Pro", "Hiragino Sans", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.05rem;
  box-shadow: 0 0.75rem 1.8rem rgba(15, 23, 42, 0.25);
}
.mf-hero__btn:hover {
  color: #fff;
}

.mf-hero__btn-icon {
  font-family: "D-DIN", "DIN Condensed", system-ui, sans-serif;
}
.mf-hero__btn-icon img {
  width: 1.25rem;
  margin-left: 1rem;
}

/* PCワイド調整 */
.mf-hero__inner {
  padding-inline: 0;
}

/* SP レイアウト（~767px） */
@media (max-width: 767px) {
  .mf-hero {
    background-image: url(../images/front/sp/hero-moyo.png);
    background-position: top -4rem right 0;
    background-size: 100%;
    background-repeat: no-repeat;
    padding-bottom: 34rem;
  }
  .mf-hero__inner {
    padding: 2rem 0rem 3.75rem;
    overflow: hidden;
  }
  .mf-hero__visual {
    gap: 0.75rem;
    padding-bottom: 65%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mf-hero__image {
    border-radius: 1.5rem;
    /* SP では上書きで位置調整している場合はここに追加 */
  }
  .mf-hero__image--left {
    width: 39%;
    left: -19%;
    top: 0;
  }
  .mf-hero__image--center {
    width: 40%;
    top: 18%;
    left: 26%;
  }
  .mf-hero__image--right {
    width: 39%;
    top: 0;
    right: -11%;
  }
  .mf-hero__bottom {
    display: block;
    width: 100%;
    margin: -19rem 0 0;
  }
  .mf-hero__copy {
    margin-top: 0;
    margin-bottom: 1rem;
  }
  .mf-hero__lead {
    font-size: 1rem;
  }
  .mf-hero__title {
    font-size: 1.6rem;
    line-height: 1.7;
    margin-top: 1.25rem;
    margin-left: 1.75rem;
  }
  .mf-hero__title-highlight {
    margin-left: -0.75rem;
  }
  .mf-hero__cta {
    justify-content: flex-start;
    margin-left: 1.75rem;
    margin-bottom: 0;
  }
  .mf-hero__btn {
    font-size: 1rem;
    padding-left: 2rem;
  }
  .mf-hero__btn-icon img {
    margin-left: 0;
  }
}
/* =========================================
 * NEWS：トップのお知らせボックス
 * （元からPCデフォルトなので構造はそのまま）
 * ========================================= */
.mf-home-news {
  position: relative;
  z-index: 2;
  padding-bottom: 9rem;
  background-image: url("../images/front/flow-english.png");
  background-size: contain;
  background-position: bottom;
  background-repeat: no-repeat;
}

.mf-home-news__inner {
  max-width: 67.5rem;
  margin: -2rem auto 0;
  padding: 1.5rem 1.5rem 3rem;
}

.mf-home-news__card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.5rem;
  align-items: stretch;
  padding: 1.5rem 1.75rem;
  border-radius: 1rem;
  background-color: #ffffff;
  box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.08);
}

/* 左ラベル */
.mf-home-news__label {
  padding-left: 1rem;
  padding-right: 2rem;
  border-right: 0.125rem solid #0663AE;
  display: flex;
  align-items: center;
}

.mf-home-news__label-text {
  font-family: "D-DIN", "DIN Condensed", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: #0663AE;
  transform: scaleY(1.25);
}

/* 右側：リスト＋ボタン */
.mf-home-news__body {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.mf-home-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.mf-home-news__item + .mf-home-news__item {
  margin-top: 0.85rem;
}

.mf-home-news__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.25rem;
  align-items: baseline;
  text-decoration: none;
  font-family: "Hiragino Kaku Gothic Pro", "Hiragino Sans", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1f2933;
}
.mf-home-news__link:hover {
  text-underline-offset: 0.15em;
}

.mf-home-news__date {
  font-size: 0.9rem;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

.mf-home-news__title {
  font-size: 1.1rem;
  color: #0663AE;
  font-weight: 600;
}

/* 一覧ボタン */
.mf-home-news__more-wrap {
  flex-shrink: 0;
}

.mf-home-news__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 2.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #828282 0%, #454545 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0.6rem 1.5rem rgba(15, 23, 42, 0.35);
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.mf-home-news__more:hover {
  color: #ffffff;
}

.mf-home-news__more-icon {
  font-family: "D-DIN", "DIN Condensed", system-ui, sans-serif;
  font-size: 0.875rem;
}

/* NEWS：SP */
@media (max-width: 767px) {
  .mf-home-news {
    padding-bottom: 3rem;
    background-size: 162%;
  }
  .mf-home-news__inner {
    padding: 1.25rem 1.25rem 2.5rem;
  }
  .mf-home-news__card {
    grid-template-columns: 1fr;
    row-gap: 1.25rem;
    padding: 1.25rem 1.25rem 1.5rem;
  }
  .mf-home-news__title {
    font-size: 0.9rem;
  }
  .mf-home-news__label {
    padding-right: 0;
    border-right: none;
    border-bottom: 0.125rem solid #0F89DF;
    padding-bottom: 0.5rem;
    padding-left: 0;
    display: flex;
    justify-content: center;
  }
  .mf-home-news__body {
    flex-direction: column;
    align-items: flex-start;
  }
  .mf-home-news__link {
    display: flex;
    flex-direction: column;
  }
  .mf-home-news__more-wrap {
    align-self: center;
  }
}
/* =========================================
 * ABOUT セクション
 * ========================================= */
/* PCデフォルト */
.mf-home-about__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4.5rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 3rem;
}

/* テキスト側 */
.mf-home-about__content {
  flex: 1 1 50%;
  font-family: "Hiragino Kaku Gothic Pro", "Hiragino Sans", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111827;
}

.mf-home-about__eyebrow {
  margin: 0 0 0.75rem;
  font-family: "D-DIN", "DIN Condensed", system-ui, sans-serif;
  font-size: 5rem;
  line-height: 6rem;
  color: #fff;
  font-weight: 600;
  transform: scaleY(1.5);
}

.mf-home-about__title {
  margin: 2.5rem 0 1.25rem;
  font-size: 1.75rem;
  letter-spacing: 0.1rem;
  line-height: 1.6;
  font-weight: 700;
  color: #0663AE;
}

.mf-home-about__text {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: #374151;
}

.mf-home-about__text p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 2.25rem;
}

.mf-home-about__cta {
  margin-top: 2.5rem;
}

/* ABOUT ボタン */
.mf-home-about__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem 0.5rem 3.75rem;
  font-size: 1.1rem;
  border-radius: 999px;
  background-image: linear-gradient(135deg, #0F89DF 0%, #0745C4 100%);
  color: #ffffff;
  font-family: "Hiragino Kaku Gothic Pro", "Hiragino Sans", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.05rem;
  box-shadow: 0 0.75rem 1.8rem rgba(15, 23, 42, 0.25);
}
.mf-home-about__btn:hover {
  color: #fff;
}

.mf-home-about__btn-icon {
  font-family: "D-DIN", "DIN Condensed", system-ui, sans-serif;
}
.mf-home-about__btn-icon img {
  width: 1.25rem;
  margin-left: 1rem;
}

/* 画像側 */
.mf-home-about__visual {
  flex: 1 1 50%;
  position: relative;
  align-self: stretch;
}

.mf-home-about__image {
  margin: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  background-color: #e5e7eb;
}

.mf-home-about__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* MANAFREE タグ */
.mf-home-about__tag {
  position: absolute;
  right: 1.5rem;
  bottom: 2.25rem;
  transform: rotate(90deg);
  transform-origin: bottom right;
}

.mf-home-about__tag span {
  display: inline-block;
  font-family: "D-DIN", "DIN Condensed", system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.16em;
}

/* PCワイド */
@media (min-width: 1024px) {
  .mf-home-about__inner {
    padding-inline: 0;
  }
}
/* ABOUT：SP */
@media (max-width: 767px) {
  .mf-home-about__inner {
    padding: 1rem 1.5rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .mf-home-about__eyebrow {
    font-size: 4rem;
  }
  .mf-home-about__content,
  .mf-home-about__visual {
    flex: 1 1 auto;
  }
  .mf-home-about__title {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.375rem;
  }
  .mf-home-about__text p {
    font-size: 0.8rem;
    line-height: 1.6rem;
  }
  .mf-home-about__tag {
    right: 0.75rem;
    bottom: 1.75rem;
  }
  .mf-home-about__tag span {
    font-size: 2.25rem;
  }
  .mf-home-about__cta {
    margin-top: 1rem;
  }
  .mf-home-about__btn {
    font-size: 0.8rem;
    padding-left: 2rem;
  }
  .mf-home-about__btn-icon img {
    margin-left: 0;
  }
}
/* =========================================
 * SERVICE セクション（PCデフォルト）
 * ========================================= */
.mf-home-service {
  position: relative;
  padding: 1.5rem 0 5rem;
}

.mf-home-service__bg {
  inset-inline: 0;
  text-align: center;
  font-family: "D-DIN", "DIN Condensed", system-ui, sans-serif;
  font-size: 5rem;
  font-weight: 700;
  color: #fff;
  transform: scaleY(1.5);
}

.mf-home-service__inner {
  max-width: 67.5rem;
  margin: 0 auto;
  padding-inline: 1.5rem;
  position: relative;
  z-index: 1;
}

.mf-home-service__inner + .mf-home-service__inner {
  margin-top: 5rem;
}

/* 白いカード */
.mf-home-service__card {
  border-radius: 1.5rem;
  background-color: #ffffff;
  box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.08);
  padding: 2.5rem 2.75rem 2.75rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
}

/* 左側：テキスト */
.mf-home-service__main {
  flex: 1 1 48%;
  font-family: "Hiragino Kaku Gothic Pro", "Hiragino Sans", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111827;
  position: relative;
}

.mf-home-service__index {
  position: absolute;
  margin: 0;
  font-family: "D-DIN", "DIN Condensed", system-ui, sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, #0F89DF 0%, #0745C4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  top: -6rem;
  transform: scaleY(1.3);
  letter-spacing: 0.1rem;
}

.mf-home-service__title {
  margin: 2.75rem 0 1rem;
  font-size: 2rem;
  line-height: 3rem;
  font-weight: 700;
  color: #0663AE;
}

.mf-home-service__hr {
  border: solid 1.5px #0663AE;
  margin-bottom: 1.5rem;
  width: 85%;
}

.mf-home-service__text {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: #374151;
}

.mf-home-service__text p {
  margin: 0;
  font-weight: 600;
  line-height: 1.5rem;
  letter-spacing: 0.02rem;
}

/* 右側：青カード群 */
.mf-home-service__features {
  flex: 1 1 52%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mf-home-service-item {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  border-radius: 0.75rem;
  overflow: hidden;
  background-image: linear-gradient(135deg, #0F89DF 0%, #0745C4 100%);
  color: #ffffff;
}

.mf-home-service-item__thumb {
  margin: 0;
  background-color: rgba(255, 255, 255, 0.8);
}

.mf-home-service-item__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mf-home-service-item__body {
  padding: 1rem 1.25rem;
  font-family: "Hiragino Kaku Gothic Pro", "Hiragino Sans", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mf-home-service-item__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  color: #fffb00;
}

.mf-home-service-item__text {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  line-height: 1.7;
}

/* SERVICE：PCワイド */
@media (min-width: 1024px) {
  .mf-home-service__inner {
    padding-inline: 0;
  }
}
/* SERVICE：SP */
@media (max-width: 767px) {
  .mf-home-service {
    padding: 3rem 0 4rem;
  }
  .mf-home-service__bg {
    font-size: 4rem;
    margin-bottom: 1rem;
  }
  .mf-home-service__inner {
    padding-inline: 1.5rem;
  }
  .mf-home-service__inner + .mf-home-service__inner {
    margin-top: 3rem;
  }
  .mf-home-service__card {
    padding: 1.75rem 1.5rem 2rem;
    flex-direction: column;
    gap: 1.25rem;
    border-radius: 0.75rem;
  }
  .mf-home-service__main {
    flex: 1 1 auto;
  }
  .mf-home-service__index {
    font-size: 3.5rem;
    top: -4.5rem;
  }
  .mf-home-service__title {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
  .mf-home-service__hr {
    border: solid 1px #0663AE;
    width: 100%;
    margin-bottom: 1rem;
  }
  .mf-home-service__text {
    font-size: 0.8rem;
  }
  .mf-home-service__text p {
    letter-spacing: -0.01rem;
  }
  .mf-home-service__features {
    width: 110%;
    margin-left: -4.75%;
    align-items: center;
  }
  .mf-home-service-item {
    grid-template-columns: 1fr 1.85fr;
    border-radius: 0.5rem;
  }
  .mf-home-service-item__title {
    font-size: 0.85rem;
  }
  .mf-home-service-item__text {
    font-size: 0.66rem;
  }
  .mf-home-service-item__body {
    padding: 0.9rem 0.6rem;
  }
}
/* =========================================
 * FLOW セクション
 * ========================================= */
.mf-home-flow {
  position: relative;
  padding: 0 0 8rem;
}

.mf-home-flow__bg {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}
.mf-home-flow__bg p {
  text-align: center;
  font-family: "D-DIN", "DIN Condensed", system-ui, sans-serif;
  font-size: 5rem;
  font-weight: 700;
  color: #fff;
  transform: scaleY(1.5);
}
.mf-home-flow__bg span {
  color: #0663AE;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: "Hiragino Kaku Gothic Pro", "Hiragino Sans", "YuGothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin-top: 0.5rem;
  margin-left: 2rem;
}

.mf-home-flow__img {
  width: 67rem;
  margin: auto;
}

/* FLOW：SP（必要に応じて微調整） */
@media (max-width: 767px) {
  .mf-home-flow {
    padding-bottom: 4rem;
  }
  .mf-home-flow__bg {
    flex-direction: column;
  }
  .mf-home-flow__bg p {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  .mf-home-flow__bg span {
    margin: 0;
  }
  .mf-home-flow__img {
    width: 100%;
    padding-inline: 1.5rem;
  }
}
/* =========================================
 * 講師向けセクション
 * ========================================= */
.mf-home-for-teacher .only-pc {
  width: 67rem;
  margin: 1rem auto 10rem;
  position: relative;
}
.mf-home-for-teacher .only-pc a {
  position: absolute;
  width: 11.5rem;
  bottom: 2.25rem;
  left: 5rem;
  cursor: pointer;
  opacity: 0;
}

/* SP 時は必要に応じてここに追記 */
@media (max-width: 767px) {
  .mf-home-for-teacher {
    margin-bottom: 5rem;
  }
  .mf-home-for-teacher .only-sp {
    padding-inline: 1.5rem;
  }
  .mf-home-for-teacher .only-sp a {
    position: absolute;
    width: 7rem;
    bottom: 0.6rem;
    left: 3.75rem;
    cursor: pointer;
    opacity: 0;
  }
}
/* =========================================
 * heroアニメーション
 * ========================================= */
/* =========================================
 * hero marquee（no-jump）
 * ========================================= */
.mf-hero__marquee {
  overflow: hidden;
}

/* HTMLは .mf-hero__track なので、ここも合わせる */
.mf-hero__track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: mf-hero-marquee 36s linear infinite;
}

/* figure自体の見た目 */
.mf-hero__item {
  flex: 0 0 auto;
  width: 28rem;
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
}

/* 縦の波打ち（今の値を踏襲） */
.mf-hero__item-first,
.mf-hero__item-third {
  padding-bottom: 4.5rem;
}

.mf-hero__item-second,
.mf-hero__item-fourth {
  padding-top: 4.5rem;
}

/* imgは block で隙間消し + cover */
.mf-hero__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*
  重要：
  translateX(-50%) を捨てる。
  “1セット目の先頭”→“2セット目の先頭”まで（= 4枚 + gap4個）動かす。
  gapを 2.5rem にしたので、それに合わせて計算する。
*/
@keyframes mf-hero-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-122rem, 0, 0);
  }
}
/* SP：速度変更 or 停止 */
@media (max-width: 767px) {
  .mf-hero__track {
    animation-duration: 26s;
    gap: 1.5rem;
    /* 停止したいなら↓ */
    /* animation: none; */
  }
  .mf-hero__item-second,
  .mf-hero__item-fourth {
    padding-top: 1.5rem;
  }
  @keyframes mf-hero-marquee {
    from {
      transform: translate3d(0, 0, 0);
    }
    to {
      transform: translate3d(-42rem, 0, 0);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .mf-hero__track {
    animation: none;
  }
}

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