@charset "UTF-8";
/* ===========================
   高校生向け採用サイト
   Reset & Base
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'M PLUS 1', sans-serif;
  line-height: 1.6;
  color: var(--gray700);
  background: var(--MS_blue_light);
}
main {
  padding-top: 56px;
}
@media (min-width: 768px) {
  main {
      padding-top: 90px;
    }
}

body.top {
  background: var(--MS_blue_light) url(../images/herobg-sp-1.png) no-repeat center 0;
  background-size: 768px;
  padding-top: 0;
}
body.top main {
  padding-top: 0;
}
@media (min-width: 768px) {
  body.top {
    background: var(--MS_blue_light) url(../images/herobg-pc.png) no-repeat center 0;
    background-size: 1920px;
  }
  body.top main {
    padding-top: 0;
  }
}

.iv-page main {
  padding-top: 56px;
}
@media (min-width: 768px) {
  .iv-page main {
    padding-top: 90px;
  }
}


a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
a:hover {
  opacity: 0.8;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  font-family: inherit;
}

/* ===========================
   Colors
=========================== */
:root {
  --MS_blue: #006EB2;
  --MS_blue_light: #1A92DC;
  --MS_blue_dark: #23577D;
  --MS_black: #221815;
  --blue000: #F6FBFF;
  --blue100: #E6F0F7;
  --blue200: #C4DDED;
  --gray100: #DEDEDE;
  --gray300: #ABABAB;
  --gray600: #666666;
  --gray700: #454545;
  --gray800: #333333;
  --green: #6FBA2C;
  --pink: #E85298;
  --orange: #F2A100;
  --red: #EC0000;
  --gold200: #FFFBE6;
  --gold800: #856220;
  --cream: #EAE4D1;
  --white: #FFFFFF;
}

/* ===========================
   Containers / Utility
=========================== */
.contents-wrap{
  width: 100%;
  max-width: 1240px;
  padding: 16px 16px 0 16px;
  margin: 0 auto;
}
.container {
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px 20px;
  background: var(--white);
  border-radius: 24px;
}
/* 白カードの影（about / work / interview / training） */
.about .container,
.work .container,
.training .container,
.interview-cards {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.sp {
  display: block;
}
.pc {
  display: none;
}
@media (min-width: 768px) {
  .sp {
    display: none;
  }
  .pc {
    display: block;
  }
}
@media (min-width: 1260px) {
  .container {
    width: 100%;
    padding: 60px 40px 40px;
    border-radius: 32px;
  }
}
.bold {
  font-weight: 700;
}
/* ページ内リンク時に固定ヘッダー分のオフセットを確保 */
#about,
#work,
#interview,
#training,
#benefits,
#faq {
  scroll-margin-top: 76px;
}
@media (min-width: 768px) {
  #about,
  #work,
  #interview,
  #training,
  #benefits,
  #faq {
    scroll-margin-top: 96px;
  }
}

/* ===========================
   Section heading parts
=========================== */
.section-head {
  text-align: center;
  color: var(--white);
  padding: 0 0 8px;
  width: 100%;
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.section-head .eyebrow {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 54px;
  line-height: 54px;
  letter-spacing: 0.02em;
}
.section-head .eyebrow-jp {
  font-size: 18px;
  line-height: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-top: 2px;
}
@media (min-width: 768px) {
  .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 0 8px;
  }
  .section-head .eyebrow {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: Roboto;
    /* 1260pxで120px、768pxで64pxへ比例縮小（折り返し防止） */
    font-size: clamp(64px, calc(10.94vw - 20px), 120px);
    font-style: normal;
    font-weight: 800;
    line-height: 0.84;
    letter-spacing: 2.4px;
    white-space: nowrap;
  }
  .section-head .eyebrow-jp {
    color: var(--white, #FFF);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* 1260pxで50px、768pxで27pxへ比例縮小 */
    font-size: clamp(27px, calc(4.49vw - 7.5px), 50px);
    font-style: normal;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 1.04px;
    white-space: nowrap;
  }
}
.rainbow-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 20px 32px;
  color: var(--MS_black);
}
.rainbow-title img {
  margin: 0 auto;
}

.sub-head {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.9px;
  color: var(--MS_black);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
}
.sub-head img {
  width: 60px;
  height: 60px;
}
@media (min-width: 768px) {
  .sub-head {
    font-size: 32px;
  }
  .sub-head img {
    width: 72px;
    height: 72px;
  }
}

/* ===========================
   Header
=========================== */
.site-header {
  background: rgba(26,146,220,0.9);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.site-header.transparent {
  background: transparent;
  box-shadow: none;
}
.site-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 8px 0 12px;
}
.site-header .logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.site-header .logo img {
  max-width: 150px;
}
.site-header .logo span {
  display:block;
  width: 100%;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white);
  border: 1px solid var(--white);
  border-radius: 2px;
  padding: 1px 6px;
  margin-top: 6px;
  text-align: center;
}
.menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 12px 8px 0 rgba(0, 0, 0, 0.06);
}
.menu-toggle::before,
.menu-toggle::after,
.menu-toggle span {
  content: '';
  display: block;
  height: 2px;
  width: 22px;
  background: var(--MS_blue);
  margin: 5px auto;
  transition: 0.3s ease;
}
.menu-toggle.active::before {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active::after {
  transform: translateY(-8px) rotate(-45deg);
}
.menu-toggle.active span {
  opacity: 0;
}
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 25, 0.45);
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 86%;
  max-width: 340px;
  height: 100vh;
  background: var(--white);
  border-radius: 24px 0 0 24px;
  box-shadow: -8px 0 24px rgba(0,0,0,0.18);
  overflow-y: auto;
  padding: 22px 24px 40px;
  z-index: 1500;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s ease;
}
.main-nav.active {
  transform: translateX(0);
  visibility: visible;
}
.nav-close {
  display: block;
  margin: 0 0 18px auto;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--MS_blue);
  cursor: pointer;
}
.nav-brand {
  text-align: center;
  margin-bottom: 24px;
}
.nav-brand img {
  max-width: 170px;
  margin: 0 auto 8px;
}
.nav-brand span {
  display: inline-block;
  width: 170px;
  font-size: 11px;
  font-weight: 600;
  color: var(--MS_blue);
  border: 1px solid var(--MS_blue);
  border-radius: 2px;
  padding: 2px 8px;
}
.main-nav li {
  border-bottom: 1px solid var(--blue200);
}
.main-nav li a {
  display: block;
  padding: 16px 8px;
  color: var(--MS_blue);
  font-weight: 700;
  text-align: center;
}
.main-nav li a.current {
  background: rgba(26,146,220,0.12);
  color: var(--MS_blue);
}
@media (min-width: 1260px) {
  .site-header-container {
    height: 84px;
    padding: 0 24px;
  }
  .site-header .logo img {
    max-width: 218px;
  }
  .site-header .logo span {
    font-size: 11px;
  }
  .menu-toggle {
    display: none;
  }
  .nav-overlay,
  .nav-close,
  .nav-brand {
    display: none;
  }
  .nav-top-link {
    display: none;
  }
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    width: 100%;
    max-width: none;
    height: 84px;
    background: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    padding: 0 24px;
    transform: none;
    visibility: visible;
    transition: none;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
  }
  .main-nav ul {
    display: flex;
    gap: 0px;
    padding: 6px 12px;
    border-radius: 100px;
    pointer-events: auto;
    background:rgba(255,255,255,0.9);
    box-shadow:0 12px 8px rgba(0,0,0,0.06);
  }
  .main-nav li {
    border-bottom: none;
  }
  .main-nav li a {
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 20px;
    white-space: nowrap;
    text-align: left;
  }
  .main-nav li a:hover {
    background: var(--blue200);
    opacity: 1;
  }
  .main-nav li a.current {
    background: var(--blue200);
    color: var(--MS_blue_light);
  }
}
@media (min-width: 1260px) {
  .main-nav {
    left: auto;
    width: auto;
    padding: 0;
    right:12px;
  }
  .main-nav li a {
    font-size: 15px;
    padding: 10px 16px;
  }
}

/* ===========================
   Hero
=========================== */
.hero {
  position: relative;
  padding: 84px 16px 4px;
  overflow: hidden;
  text-align: center;
  color: var(--white);
}
.hero-tag {
  display:none;
}
.hero-title {
  position: relative;
  z-index: 2;
  display: block;
  color: var(--white, #FFF);
  text-align: center;
  text-shadow: 0 3px 12px rgba(0, 110, 179, 0.98);
  font-size: 32px;
  font-style: normal;
  font-weight: 800;
  line-height: 43px; /* 134.375% */
  letter-spacing: 1.6px;
  margin: 100px auto 352px;
}
.hero-photos {
  display: block;
  position: relative;
  width: 100vw;
  height: 362px;
  margin: 0 -16px;
  background: var(--MS_blue_light) url(../images/herobg-sp-2.png) no-repeat center 0;
  background-size: 768px;
}
.hero-poem {
  position: relative;
  z-index: 2;
  color: var(--white, #FFF);
  text-align: center;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.25);
  font-family: "M PLUS 1";
  font-size: 17px;
  font-style: normal;
  font-weight: 600;
  line-height: 220%; /* 37.4px */
  letter-spacing: 0.17px;
}
/* ===========================
   Hero intro animation
=========================== */
/* 背景画像をフワッと出現（同色オーバーレイをフェードアウト） */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--MS_blue_light);
  pointer-events: none;
  animation: heroBgReveal 1.1s ease forwards;
}
/* タイトル→詩文の順に下から浮き上がりフェードイン */
.hero-title {
  opacity: 0;
  animation: heroFadeUp 0.9s ease 0.9s forwards;
}
.hero-poem {
  opacity: 0;
  animation: heroFadeUp 0.9s ease 1.6s forwards;
}
@keyframes heroBgReveal {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { display: none; }
  .hero-tag,
  .hero-title,
  .hero-poem {
    opacity: 1;
    animation: none;
    transform: none;
  }
}
.parent-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  position: fixed;
  right: 6px;
  bottom: 6px;
  z-index: 1200;
  width: 134px;
  min-height: 57px;
  padding: 7px 20px 10px 22px;
  background: rgba(51, 51, 51, 0.9);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 58px;
  box-shadow: 0 6px 4px rgba(0,0,0,0.25);
  text-align: left;
}
.parent-badge .badge-icon {
  display: none;
}
@media (min-width: 768px) {
  .hero {
    padding: 300px 20px 90px;
  }
  .hero-tag {
    position: relative;
    z-index: 2;
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--white);
    border-radius: 2px;
    padding: 6px 16px;
    /* PC: 背景出現の後、hero-title より先にフワッと出現 */
    opacity: 0;
    animation: heroFadeUp 0.9s ease 0.9s forwards;
  }
  .hero-title {
    font-size: 64px;
    line-height:78px;
    letter-spacing:0.02em;
    margin-top: 16px;
    text-shadow: 0 6px 30px rgba(35,87,125,0.95);
    /* PC: hero-tag の後に出現 */
    animation-delay: 1.4s;
  }
  .hero-poem {
    font-size: 22px;
    line-height: 62px;
    letter-spacing:0.05em;
    max-width: 100%;
    margin: 300px auto 0;
    text-shadow: 0 4px 20px rgba(35,87,125,0.75);
    /* PC: hero-title の後に出現 */
    animation-delay: 2s;
  }
  .parent-badge {
    width: auto;
    min-height: auto;
    padding: 16px 26px 18px 26px;
    font-size: 21px;
    border-radius: 8px;
    background: rgba(51, 51, 51, 0.9);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.25);
    font-weight: 700;
    gap: 16px;
    line-height: 1;
    text-align: left;
  }
  .parent-badge br { display: none; }
  .parent-badge .badge-icon {
    display: block;
    width: 25px;
    height: 21px;
    flex-shrink: 0;
  }
  .hero-photos {
    display: none;
  }
}

/* ===========================
   About
=========================== */
.about {
  padding-bottom: 40px;
}
.about .lead {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: 0.05em;
  color: var(--MS_blue);
  margin-bottom: 24px;
}
.about-video-wrap {
  overflow: hidden;
  text-align: center;
  margin: 0 auto 16px;
}
.about-video {
  display: inline-block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.btn-movie {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: fit-content;
  margin: 0 auto 40px;
  padding: 8px 32px;
  background: var(--MS_blue);
  color: var(--white);
  border: 1px solid var(--white);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(3.75px);
  backdrop-filter: blur(3.75px);
  font-family: 'M PLUS 1', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.94px;
  line-height: 17.8px;
  text-align: center;
}
.btn-movie span {
  display: flex;
  align-items: center;
  gap: 7.5px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 2px;
  line-height: 22.5px;
}
.btn-movie img {
  width: 25px;
  height: 25px;
}
.stats {
  margin-bottom: 40px;
}
.stat-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.stat-card {
  width: calc(50% - 6px);
  border: 2px solid var(--blue200);
  border-radius: 10px;
  padding: 8px 6px 2px;
  text-align: center;
}
.stat-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--MS_blue);
  margin-bottom: 8px;
}
.stat-label small{
  font-size: 9px;
}
.stat-icon {
  width: 68px;
  height: 40px;
  margin: 0 auto 6px;
}
.stat-num {
  display: block;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 40px;
  color: var(--MS_blue);
}
.stat-num small {
  font-size: 14px;
  font-weight: 600;
  margin-left: 2px;
}
.stat-note {
  font-size: 13px;
  color: var(--gray600);
  text-align: center;
  margin-bottom: 16px;
}
.point-bubbles {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 18px;
}
.point-bubbles img{
  max-width: 100%;
}

.charm-boxes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* SP: 行ラッパーを透過させてカードを縦並びのまま・矢印は非表示 */
.charm-row {
  display: contents;
}
.charm-arrow {
  display: none;
}
.charm-box {
  background: var(--MS_blue);
  color: var(--white);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.charm-box h4 {
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0.2px;
  text-align: center;
  padding-bottom: 5px;
}
.charm-box p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.56;
  padding-bottom: 5px;
}
.charm-box img {
  border-radius: 8px;
  width: 100%;
  display: block;
}
@media (min-width: 768px) {
  .about .lead {
    font-size: 19px;
    margin-bottom: 32px;
  }
  .about-video-wrap {
    max-width: 700px;
  }
  .btn-movie {
    gap: 5px;
    padding: 10px 40px;
    font-size: 15px;
  }
  .btn-movie span {
    font-size: 22.5px;
    letter-spacing: 3.375px;
  }
  .stats .sub-head {
    font-size: 36px;
    letter-spacing: 1.8px;
  }
  .stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 928px;
    margin: 0 auto 8px;
  }
  .stat-card {
    width: auto;
    min-height: 224px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px;
    padding: 26px 14px;
    /* Figma: 左上→右下のブルーグラデーションのアウトライン */
    border-color: transparent;
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(135deg, #0E7ED1 0%, #4EB4FF 100%) border-box;
  }
  .stat-label {
    font-size: 20px;
    margin-bottom: 0;
  }
  .stat-label small {
    font-size: 13px;
  }
  .stat-icon {
    width: auto;
    height: 72px;
    margin: 0;
  }
  .stat-num {
    font-size: 64px;
    line-height: 1;
  }
  .stat-num small {
    font-size: 24px;
  }
  .stat-note {
    max-width: 928px;
    margin: 0 auto 24px;
    font-size: 14px;
    line-height: 2;
    text-align: left;
  }
  .stats {
    position: relative;
  }
  /* ポイント画像をカードグリッド右下（2行目・3列目）に配置 */
  .point-bubbles {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 52px; /* note(28px) + note margin-bottom(24px) ＝ グリッド下端 */
    width: 100%;
    max-width: 928px;
    margin: 0 auto;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 0;
    gap: 0;
  }
  .point-bubbles img {
    width: calc((100% - 56px) / 3); /* グリッド1列分の幅 = 右下セル */
    max-width: none;
  }
  .bubble {
    width: 150px;
    font-size: 14px;
  }
  .charm .sub-head {
    font-size: 36px;
    letter-spacing: 1.8px;
    margin-bottom: 32px;
  }
  /* 上1枚・下2枚の逆三角配置＋矢印で接続 */
  .charm-boxes {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
  }
  .charm-row {
    display: flex;
    width: 100%;
    justify-content: center;
  }
  .charm-row-top {
    align-items: flex-end;
  }
  .charm-row-bottom {
    align-items: stretch; /* 下段2枚の高さを揃える */
    gap: 10px;
  }
  .charm-box {
    padding: 24px;
    gap: 10px;
  }
  .charm-row-top .charm-box-main {
    flex: none;
    width: 380px;
    max-width: 100%;
  }
  .charm-row-bottom .charm-box {
    flex: 1 1 0;
    min-width: 0;
    max-width: 380px;
  }
  .charm-box h4 {
    font-size: 28px;
    line-height: 40px;
    letter-spacing: 0.28px;
  }
  .charm-box p {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.75;
  }
  .charm-row-top .charm-box img {
    aspect-ratio: 876 / 400;
    height: auto;
    object-fit: cover;
  }
  .charm-row-bottom .charm-box img {
    height: 142px;
    object-fit: cover;
    margin-top: auto; /* 高さを揃えた際、画像をカード下端に揃える */
  }
  /* 矢印（水平ダブルアローを回転して3方向に） */
  .charm-arrow {
    display: block;
    flex: none;
    width: 130px;
    height: 48px;
    background: url(../images/charm-arrow.svg) no-repeat center / contain;
  }
  /* 斜め矢印は回転で枠外に約39pxはみ出すため、下に持ち上げて下段カードと重ねない */
  .charm-arrow-left,
  .charm-arrow-right {
    margin-bottom: 39px;
  }
  .charm-arrow-left {
    transform: rotate(-45deg);
  }
  .charm-arrow-right {
    transform: rotate(45deg);
  }
  .charm-arrow-h {
    width: 154px;
    align-self: center; /* 行を stretch にしても横矢印は中央のまま */
  }
}

/* ===========================
   Work
=========================== */
.work {
  padding-bottom: 40px;
}
.work .lead {
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--MS_blue);
  line-height: 1.75;
  margin-bottom: 30px;
}
/* SP: 行ラッパーを透過させてステップを縦並びのまま維持 */
.work-row {
  display: contents;
}
.work-step {
  display: grid;
  grid-template-columns: 110px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 20px;
  margin-bottom: 24px;
}
.work-step .step-num {
  grid-column: 1;
  grid-row: 1;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 800;
  font-size: 64px;
  color: var(--MS_blue_light);
  line-height: 1;
  align-self: center;
  text-align: center;
}
.work-step img {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  border-radius: 20px;
}
.work-step h4 {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.42px;
  color: var(--MS_blue);
  margin-top: 4px;
  margin-bottom: 8px;
}
.work-step p {
  grid-column: 1 / -1;
  grid-row: 3;
  font-size: 14px;
  line-height: 1.65;
  color: #383838;
}
.work-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--gold200);
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--gold800);
}
.work-point img {
  width: 94px;
  height: auto;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .work .lead {
    font-size: 18px;
    text-align: center;
  }
  /* 上段3枚・下段2枚（中央）の階段状レイアウト */
  .work-steps {
    display: flex;
    flex-direction: column;
    padding: 0 24px 24px;
  }
  .work-row {
    display: flex;
    align-items: flex-start;
    width: 100%;
  }
  .work-row-1 {
    gap: 46px;
    margin-bottom: -20px;
  }
  .work-row-2 {
    gap: 54px;
    justify-content: center;
  }
  .work-row-1 .work-step {
    flex: 1 1 0;
    min-width: 0;
  }
  .work-row-2 .work-step {
    flex: 0 1 330px;
    min-width: 0;
  }
  .work-row-1 .work-step:nth-child(2) {
    padding-top: 60px;
  }
  .work-row-1 .work-step:nth-child(3) {
    padding-top: 120px;
  }
  .work-row-2 .work-step:nth-child(2) {
    padding-top: 60px;
  }
  /* 縦カード：番号 → 写真 → タイトル → 本文 */
  .work-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    column-gap: 0;
    margin-bottom: 0;
  }
  .work-step .step-num {
    font-size: 80px;
    color: var(--MS_blue_light);
    line-height: 70px;
    text-align: left;
    align-self: auto;
    margin: 0;
  }
  .work-step img {
    width: 100%;
    aspect-ratio: 772 / 580;
    object-fit: cover;
    border-radius: 20px;
    margin: 0;
  }
  .work-step h4 {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: 0.56px;
    color: var(--MS_blue);
    margin: 8px 0 0;
  }
  .work-step p {
    font-size: 16px;
    line-height: 1.75;
    color: #383838;
    margin-top: 8px;
  }
  /* POINTボックス：横並び（アイコン左・テキスト右） */
  .work-point {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    font-size: 18px;
    line-height: 1.67;
    text-align: left;
  }
  .work-point img {
    width: 124px;
  }
}

/* ===========================
   Interview
=========================== */
.interview {
  padding-bottom: 40px;
}
/* SP: 白い角丸コンテナが全カードを包む */
.interview-cards {
  background: var(--white);
  border-radius: 24px;
  padding: 22px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.interview-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
/* 写真エリア */
.ic-photo {
  position: relative;
  height: 175px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 7px;
}
.interview-card.green .ic-photo { background: var(--green); }
.interview-card.pink  .ic-photo { background: var(--pink); }
.interview-card.blue  .ic-photo { background: var(--MS_blue_light); }
/* 人物写真（背景透過PNG）: 下揃え中央 */
.ic-photo img {
  position: absolute;
  top: -5%;
  left: 40%;
  transform: translateX(-50%);
  width: auto;
  height: 156%;
  display: block;
}
/* 矢印（SP: 写真中央右・白丸、色はカードごと） */
.ic-arrow {
  position: absolute;
  top: 82px;
  right: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.interview-card.green .ic-arrow { color: var(--green); }
.interview-card.pink  .ic-arrow { color: var(--pink); }
.interview-card.blue  .ic-arrow { color: #0097E0; }
/* メタ（SP/PC共通: 白ボックスで写真右下角に密着、左上角丸16px） */
.ic-meta {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--white);
  color: #787878;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  padding: 8px 16px;
  border-radius: 16px 0 0 0;
}
/* コピーテキスト */
.ic-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.ic-copy {
  font-size: 20.5px;
  font-weight: 900;
  line-height: 1.4;
}
.interview-card.green .ic-copy { color: var(--green); }
.interview-card.pink  .ic-copy { color: var(--pink); }
.interview-card.blue  .ic-copy { color: var(--MS_blue_light); }
/* PC用矢印（SP では非表示） */
.ic-arrow-pc { display: none; }

@media (min-width: 768px) {
  .interview {
    padding-bottom: 60px;
  }
  /* PC: 白い角丸コンテナ、横3列 */
  .interview-cards {
    border-radius: 32px;
    padding: 60px 40px;
    flex-direction: row;
    gap: clamp(20px, 5vw, 48px);
    justify-content: center;
  }
  .interview-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 11px;
  }
  /* 写真エリア PC: 320:447 の縦長（幅に応じて拡縮） */
  .ic-photo {
    height: auto;
    aspect-ratio: 320 / 447;
    border-radius: 20px;
    margin-bottom: 0;
    align-items: flex-end;
  }
  .interview-card.blue .ic-photo {
    background: #0097E0;
  }
  /* メタ PC: 白ボックスで写真右下に密着、左上角丸16px */
  .ic-meta {
    right: 0;
    bottom: 0;
    left: auto;
    top: auto;
    width: 200px;
    max-width: 100%;
    background: var(--white);
    color: var(--MS_black);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.53;
    letter-spacing: 1.6px;
    text-align: left;
    padding: 12px 16px 4px;
    border-radius: 16px 0 0 0;
  }
  /* SP矢印を隠す */
  .ic-arrow { display: none; }
  /* PC: 画像を下揃えで全体表示 */
  .ic-photo img {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 100%;
  }
  /* コピーテキスト PC */
  .ic-foot {
    flex: 1;
    align-items: flex-end;
  }
  .ic-copy {
    font-size: clamp(18px, 2.4vw, 32px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.64px;
    flex: 1;
  }
  .interview-card.blue .ic-copy { color: #0097E0; }
  /* PC用矢印: 青丸、コピー右下 */
  .ic-arrow-pc {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--white);
    font-size: 14px;
  }
  .interview-card.green .ic-arrow-pc { background: var(--green); }
  .interview-card.pink  .ic-arrow-pc { background: var(--pink); }
  .interview-card.blue  .ic-arrow-pc { background: #0097E0; }
}

/* ===========================
   Training
=========================== */
.training {
  padding-bottom: 40px;
}
.training .lead {
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--MS_blue);
  line-height: 1.75;
  margin-bottom: 24px;
}
.training-photo {
  width: 183px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1/1;
}
.training-timeline {
  margin-bottom: 32px;
}
.timeline-row {
  display: flex;
  align-items: flex-start;
}
.timeline-badge {
  flex-shrink: 0;
  width: 118px;
  min-height: 100px;
  background: var(--MS_blue);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 26px 8px 20px;
  text-align: center;
  /* 1番目: 上端フラット・下端矢印 */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), 50% 100%, 0 calc(100% - 18px));
  margin-bottom: -16px;
  position: relative;
  z-index: 1;
}
.timeline-row:nth-child(1) .timeline-badge {
  padding: 10px 8px 28px;

}

.timeline-row:nth-child(1) .timeline-badge { z-index: 4; }
.timeline-row:nth-child(2) .timeline-badge { z-index: 3; }
.timeline-row:nth-child(3) .timeline-badge { z-index: 2; }
.timeline-row:nth-child(4) .timeline-badge { z-index: 1; }
/* 2番目以降: 上端V字切り欠き・下端矢印 */
.timeline-row:nth-child(n+2) .timeline-badge {
  clip-path: polygon(0 0, 50% 18px, 100% 0, 100% calc(100% - 18px), 50% 100%, 0 calc(100% - 18px));
}
.badge-when {
  display: inline-block;
  background: var(--white);
  color: var(--MS_blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}
.badge-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.28px;
}
.timeline-text {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray700);
  padding: 8px 0 8px 8px;
  list-style: disc;
}
.timeline-text li {
  margin-left: 20px;
  margin-bottom: 5px;
}
.training-point {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--gold200);
  border-radius: 10px;
  padding: 20px 0 0;
  overflow: hidden;
}
.training-point img.icon {
  width: 120px;
  margin: 0 auto;
}
.training-point .text {
  padding: 0 20px 20px;
}
.training-point p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--gold800);
  text-align: left;
}
.training-point .photo {
  width: 100%;
  display: block;
}
@media (min-width: 768px) {
  .training {
    padding-bottom: 60px;
  }
  .training .container {
    position: relative;
  }
  .training .lead {
    font-size: 18px;
    text-align: left;
    margin-bottom: 40px;
    padding-right: 29%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  /* 円形写真：右上に配置 */
  .training-photo {
    position: absolute;
    top: 24px;
    right: 40px;
    width: 23%;
    margin: 0;
    z-index: 5;
  }
  /* タイムライン：横並び矢羽根（1行目）＋説明ボックス4列（2行目） */
  .training-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    row-gap: 16px;
    column-gap: 0;
    margin-bottom: 40px;
  }
  .timeline-row {
    display: contents;
  }
  /* 矢羽根バナー（右向き）。重ねて連結 */
  .timeline-badge {
    grid-row: 1;
    width: auto;
    height: 164px;
    min-height: 0;
    flex-direction: column;
    gap: 4px;
    padding: 0 24px;
    margin: 0 0 0 -33px;
    clip-path: polygon(0 0, calc(100% - 45px) 0, 100% 50%, calc(100% - 45px) 100%, 0 100%, 45px 50%);
  }
  .timeline-row:nth-child(1) .timeline-badge {
    margin-left: 0;
    padding: 0 24px 0 0;
    clip-path: polygon(0 0, calc(100% - 45px) 0, 100% 50%, calc(100% - 45px) 100%, 0 100%);
  }
  /* 2番目以降：左に切り欠き＋右に矢印（横向き） */
  .timeline-row:nth-child(n+2) .timeline-badge {
    clip-path: polygon(0 0, calc(100% - 45px) 0, 100% 50%, calc(100% - 45px) 100%, 0 100%, 45px 50%);
  }
  .badge-when {
    font-size: 18px;
    padding: 2px 16px 4px;
    letter-spacing: 0.9px;
  }
  .badge-name {
    font-size: 24px;
    letter-spacing: 1.2px;
    line-height:1.3;
  }
  /* 説明：4列、各項目をボックス化 */
  .timeline-text {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: none;
    padding: 0;
    margin-right: 12px;
    list-style: none;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--MS_blue);
  }
  .timeline-row:nth-child(4) .timeline-text {
    margin-right: 0;
  }
  .timeline-text li {
    position: relative;
    margin: 0;
    list-style: none;
    background: var(--blue000);
    border: 1px solid var(--blue200);
    border-radius: 10px;
    padding: 6px 12px 8px 30px;
    color: var(--MS_blue);
  }
  .timeline-text li::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 15px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
  }
  /* POINTボックス：写真左・テキスト中央・アイコン右 */
  .training-point {
    flex-direction: row;
    align-items: center;
    padding: 0 44px 0 0;
    gap: 32px;
  }
  .training-point img.icon {
    order: 3;
    width: 124px;
    flex-shrink: 0;
    margin: 0;
  }
  .training-point .text {
    order: 2;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0;
  }
  .training-point p {
    font-size: 20px;
    line-height: 1.67;
  }
  .training-point .photo {
    order: 1;
    width: 28%;
    flex-shrink: 0;
    align-self: stretch;
    object-fit: cover;
    height: auto;
  }
}


/* ===========================
   Benefits (福利厚生)
=========================== */
.benefits-wrap {
  background: var(--cream);
  margin: 0 -16px;
  padding: 20px 16px 0;
}
.benefits {
  background: var(--white);
  border-radius: 20px;
  padding: 24px 20px;
  max-width: 880px;
  margin: 0 auto;
}
.benefits h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--MS_blue);
  margin-bottom: 17px;
}
.benefits .lead {
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--MS_blue);
  line-height: 1.75;
  margin-bottom: 17px;
}
.benefit-item {
  border: 1px solid #ABABAB;
  border-radius: 12px;
  margin-bottom: 8px;
}
.benefit-head {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: none;
  border: none;
  padding: 10px 12px 10px 16px;
  cursor: pointer;
  text-align: left;
}
.benefit-head img {
  width: 41px;
  height: 41px;
  flex-shrink: 0;
}
.benefit-head .name {
  flex: 1;
  font-size: 18px;
  font-weight: 800;
  color: var(--MS_blue);
}
.benefit-head .toggle {
  width: 26px;
  height: 25px;
  border: 1px solid var(--MS_blue_light);
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  font-size: 12px;
  color: var(--MS_blue);
  line-height: 1;
}
.benefit-head .toggle::after {
  content: '▼';
  display: block;
  transition: transform 0.25s ease;
}
.benefit-item.active .benefit-head .toggle::after {
  transform: rotate(180deg);
}
.benefit-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 12px 0 16px;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.4s ease;
}
.benefit-item.active .benefit-body {
  padding: 0 12px 10px 16px;
}
.benefit-body ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.benefit-body li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  line-height: 1.6;
  padding-bottom: 4px;
  min-width: 45%;
}
.benefit-body li::before {
  content: '●';
  font-size: 10px;
  color: var(--MS_blue_light);
  position: absolute;
  left: 0;
  top: 5px;
}
@media (min-width: 768px) {
  .benefits-wrap {
    margin: 0;
    padding: 40px 40px 20px;
    border-radius: 32px 32px 0 0;
  }
  .benefits {
    padding: 48px 6%;
    border-radius: 20px;
    max-width: none;
  }
  .benefits h2 {
    font-size: 48px;
    letter-spacing: 2.4px;
  }
  .benefits .lead {
    font-size: 18px;
    text-align: center;
  }
  /* 項目を横並び（カテゴリ左280px＋内容右） */
  .benefit-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 16px;
  }
  .benefit-head {
    width: 280px;
    flex-shrink: 0;
    flex: none;
    padding: 0;
    gap: 16px;
    cursor: default;
    pointer-events: none;
  }
  .benefit-head img {
    width: 54px;
    height: 54px;
  }
  .benefit-head .name {
    flex: none;
    font-size: 24px;
    letter-spacing: 1px;
  }
  .benefit-head .toggle {
    display: none;
  }
  .benefit-body {
    flex: 1;
    min-width: 0;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .benefit-body ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 28px;
  }
  .benefit-body li {
    display: flex;
    align-items: center;
    min-width: 0;
    width: auto;
    font-size: 18px;
    line-height: 1.6;
    padding-left: 18px;
    padding-bottom: 5px;
  }
  .benefit-body li::before {
    font-size: 12px;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* ===========================
   FAQ
=========================== */
.faq-wrap {
  background: var(--cream);
  padding: 24px 16px 24px;
  margin: 0 -16px;
}
.faq {
  background: var(--white);
  border-radius: 20px;
  padding: 24px 20px;
  max-width: 880px;
  margin: 0 auto;
}
.faq h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--MS_blue);
  margin-bottom: 16px;
}
.faq-tabs {
  display: flex;
  gap: 6px;
  margin: 0 -20px 16px;
  padding: 0 12px;
  border-bottom: 2px solid var(--MS_blue);
}
.faq-tab {
  flex: 1;
  background: #E6F0F7;
  border: none;
  color: #3997D2;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 8px;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
}
.faq-tab.active {
  background: var(--white);
  color: var(--MS_blue);
  font-weight: 800;
  border: 2px solid var(--MS_blue);
  border-bottom: 2px solid var(--white);
  margin-bottom: -2px;
  position: relative;
  z-index: 1;
}
.faq-panel {
  display: none;
}
.faq-panel.active {
  display: block;
}
.faq-item {
  border-bottom: 1px solid var(--gray100);
  position: relative;
}
.faq-q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 16px 38px 16px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  color: var(--MS_blue);
}
.faq-q .q-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.faq-q .toggle {
  position: absolute;
  top: 18px;
  right: 0;
  width: 26px;
  height: 25px;
  border: 1px solid var(--MS_blue_light);
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--MS_blue);
  line-height: 1;
}
.faq-q .toggle::after {
  content: '▼';
  display: block;
  transition: transform 0.25s ease;
}
.faq-item.active .faq-q .toggle::after {
  transform: rotate(180deg);
}
.faq-a {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: #333333;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-a p {
  margin-bottom: 16px;
}
.faq-a .a-mark {
  width: 18px;
  height: 19px;
  flex-shrink: 0;
  margin: 6px 3px;
}
@media (min-width: 768px) {
  .faq {
    padding: 48px 6%;
    border-radius: 20px;
    max-width: none;
  }
  .faq-wrap {
    padding: 20px 40px 40px;
    margin: 0;
    border-radius: 0 0 32px 32px;
  }
  .faq h2 {
    font-size: 48px;
    letter-spacing: 2.4px;
  }
  .faq-tabs {
   margin: 0 -7% 17px;
  padding: 16px 7% 0;
  gap: 2%;
  width: calc(100% + 14%);
  }
  .faq-tab {
    font-size: 24px;
    font-weight: 800;
    padding: 0;
    height: 62px;
    border-radius: 12px 12px 0 0;
  }
  /* アクティブタブを2px高くしてコンテナ下線を白で隠す */
  .faq-tab.active {
    height: 64px;
  }
  .faq-item {
    padding: 32px 12px 40px;
    border-bottom: 1px solid #ABABAB;
  }
  .faq-q {
    font-size: 22px;
    letter-spacing: 1.1px;
    align-items: center;
    gap: 16px;
    padding: 0;
    cursor: default;
    pointer-events: none;
  }
  .faq-q .q-mark {
    margin-top: 0;
  }
  .faq-q .toggle {
    display: none;
  }
  .faq-a {
    max-height: none !important;
    overflow: visible !important;
    padding: 16px 0 0 !important;
    gap: 16px;
    font-size: 18px;
    line-height: 30px;
    letter-spacing: 0.9px;
  }
  .faq-a p {
    margin-bottom: 0;
  }
}

/* ===========================
   Footer
=========================== */
.footer {
  color: var(--white);
  text-align: center;
  padding: 32px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.footer-listing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer .listing-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.32px;
}
.listing-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.listing-badges a {
  display: block;
}
.listing-badges img {
  width: 240px;
  height: auto;
  display: block;
}
.footer-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  width: fit-content;
}
.footer-logo img {
  height: 35px;
  width: auto;
  align-self: flex-start;
}
.footer-logo span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.3px;
  border: 1px solid var(--white);
  padding: 6px 12px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 700;
  line-height: 32px;
  color: rgba(255, 255, 255, 0.8);
}
.footer-links li {
  list-style: none;
}
.footer-links li::before {
  content: "・";
}
.footer-links a {
  color: inherit;
}
.footer-copy {
  font-size: 10px;
  letter-spacing: 0.5px;
}
.brand-logos {
  background: var(--white);
  padding: 6px 8px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 7px;
}
.brand-logos img {
  height: auto;
  width: auto;
  max-height: 10px;
  min-width: 0;
  flex: 0 1 auto;
  object-fit: contain;
}
@media (min-width: 768px) {
  .footer {
    padding: 32px 20px 48px;
    gap: 48px;
  }
  .footer .listing-title {
    font-size: 24px;
    letter-spacing: 0.48px;
  }
  .listing-badges {
    flex-direction: row;
    justify-content: center;
    gap: 32px;
  }
  .footer-main {
    align-items: center;
    gap: 24px;
  }
  .footer-logo {
    align-items: center;
    gap: 8px;
  }
  .footer-logo img {
    align-self: center;
  }
  .footer-logo span {
    width: 100%;
    font-size: 12px;
    letter-spacing: 1.2px;
    padding: 4px 12px;
  }
  .footer-links {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }
  .footer-copy {
    font-size: 13px;
    letter-spacing: 0.65px;
  }
  .brand-logos {
    flex-wrap: nowrap;
    gap: 20px;
    padding: 18px;
  }
  .brand-logos img {
    max-height: 30px;
  }
}

/* ===========================
   Modal (保護者・教員の方へ)
=========================== */
.movie-modal-box {
  width: 95%;
  max-width: 1200px;
  background: transparent;
}
.movie-modal-close {
  display: flex;
  position: absolute;
  margin-left: auto;
  background: #000;
  border: none;
  color: var(--white);
  font-size: 28px;
  line-height: 28px;
  padding: 0 0 4px 0;
  cursor: pointer;
  top: 8px;
  right: 8px;
  width:48px;
  height:48px;
  border-radius: 48px;
  justify-content: center;
  align-items: center;
}
.movie-modal-close:hover { opacity: 1; }
.movie-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.movie-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.modal-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0, 0.65);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-box {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 872px;
  max-height: 95dvh;
  overflow-y: auto;
  padding: 32px 20px 28px;
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
.movie-modal-box{
  position: relative;
  background: #000;
  border-radius: 4px;
  width: calc(100% + 32px);
  margin: 0 -16px;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-title {
  text-align: center;
  color: var(--MS_blue);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 18px;
}
.modal-body {
  font-size: 13px;
  line-height: 1.9;
  color: var(--gray800);
}
.modal-body p {
  margin-bottom: 18px;
}
.modal-body p:last-child {
  margin-bottom: 0;
}
.modal-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 24px auto 0;
  padding: 10px 26px;
  background: var(--white);
  color: var(--MS_blue);
  border: 1px solid var(--MS_blue);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.modal-close-btn .x {
  font-size: 16px;
  line-height: 1;
}
/* 保護者・教員モーダル：下にまだ続きがあることを示す「▼」
   （白→透明グラデーションを横幅いっぱいに敷き、閉じるボタンが見えたら非表示） */
/* スクロール対象（保護者モーダルの本文。.modal-box は非スクロールの枠） */
#parentModal .modal-box {
  overflow: hidden;          /* 内側スクロールに委譲し、角丸でグラデ下端を切る */
  padding: 0;
}
#parentModal .modal-scroll {
  max-height: 95dvh;
  overflow-y: auto;
  padding: 32px 20px 28px;
}
.modal-scroll-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  background: linear-gradient(to top, var(--white) 35%, rgba(255, 255, 255, 0) 100%);
  color: var(--MS_blue);
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 5;
}
#parentModal.show-scroll-hint .modal-scroll-hint {
  opacity: 1;
  visibility: visible;
}
#parentModal.show-scroll-hint .modal-scroll-hint .arrow {
  display: block;
  animation: scrollHintBounce 1.4s ease-in-out infinite;
}
@keyframes scrollHintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  #parentModal.show-scroll-hint .modal-scroll-hint .arrow {
    animation: none;
  }
}
body.modal-open {
  overflow: hidden;
}
@media (min-width: 768px) {
  #parentModal .modal-box {
    border-radius: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  #parentModal .modal-scroll {
    padding: 60px 64px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  #parentModal .modal-title {
    font-size: 32px;
    line-height: 1.5;
    letter-spacing: 1px;
    margin-bottom: 0;
  }
  #parentModal .modal-body {
    font-size: 18px;
    line-height: 2;
    letter-spacing: 1px;
    color: #121212;
    width: 100%;
  }
  #parentModal .modal-body p {
    margin-bottom: 32px;
  }
  #parentModal .modal-body p:last-child {
    margin-bottom: 0;
  }
  #parentModal .modal-close-btn {
    min-height: 54px;
    flex-shrink: 0;
    padding: 0 32px;
    gap: 8px;
    font-size: 18px;
    letter-spacing: 0.9px;
    border-radius: 200px;
    margin: 0;
  }
  #parentModal .modal-close-btn .x {
    font-size: 20px;
  }
}

/* ===========================
   スクロールイン（各セクションのフワッと表示）
=========================== */
.reveal {
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}
/* JS有効時のみ初期非表示（無効時は通常表示のまま） */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===========================
   タブレット〜PCでのフォント流体化（768〜1260pxで画面幅に応じて可変）
=========================== */
@media (min-width: 768px) {
  /* ---- 見出し ---- */
  /* セクション見出し（英字/和文）は別途 .eyebrow / .eyebrow-jp で clamp 済み */
  .sub-head { font-size: clamp(24px, 2.5vw, 32px); }
  .stats .sub-head,
  .charm .sub-head { font-size: clamp(27px, 2.8vw, 36px); }
  .hero-title { font-size: clamp(44px, 5vw, 64px); line-height: 1.22; } /* was 78px */
  .stat-num { font-size: clamp(44px, 5vw, 64px); }
  .stat-num small { font-size: clamp(18px, 1.9vw, 24px); }
  .charm-box h4 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.43; } /* was 40px */
  .work-step .step-num { font-size: clamp(56px, 6.25vw, 80px); line-height: 0.875; } /* was 70px */
  .work-step h4 { font-size: clamp(20px, 1.9vw, 24px); }
  .badge-name { font-size: clamp(16px, 1.9vw, 24px); }
  .benefits h2,
  .faq h2 { font-size: clamp(34px, 3.75vw, 48px); }
  .benefit-head .name { font-size: clamp(19px, 1.9vw, 24px); }
  .faq-tab { font-size: clamp(18px, 1.9vw, 24px); }
  .faq-q { font-size: clamp(18px, 1.72vw, 22px); line-height: 1.36; } /* was 30px */
  .footer .listing-title { font-size: clamp(18px, 1.9vw, 24px); }
  #parentModal .modal-title { font-size: clamp(24px, 2.5vw, 32px); }
  .btn-movie span { font-size: clamp(18px, 1.76vw, 22.5px); }

  /* ---- リード文・本文・説明文 ---- */
  .ic-meta { font-size: clamp(12px, 1.4vw, 15px); }
  .hero-poem { font-size: clamp(17px, 1.72vw, 22px); line-height: 2.82; } /* was 62px */
  .stat-label { font-size: clamp(16px, 1.56vw, 20px); }
  .charm-box p { font-size: clamp(15px, 1.33vw, 17px); }
  .work .lead { font-size: clamp(15px, 1.41vw, 18px); }
  .work-step p { font-size: clamp(14px, 1.25vw, 16px); }
  .work-point { font-size: clamp(14px, 1.41vw, 18px); }
  .training .lead { font-size: clamp(15px, 1.41vw, 18px); }
  .badge-when { font-size: clamp(13px, 1.41vw, 18px); }
  .timeline-text { font-size: clamp(15px, 1.41vw, 18px); }
  .training-point p { font-size: clamp(14px, 1.56vw, 20px); }
  .benefits .lead { font-size: clamp(15px, 1.41vw, 18px); }
  .benefit-body li { font-size: clamp(15px, 1.41vw, 18px); }
  .faq-a { font-size: clamp(15px, 1.41vw, 18px); line-height: 1.67; } /* was 30px */
  #parentModal .modal-body { font-size: clamp(16px, 1.45vw, 18px); }
  #parentModal .modal-close-btn { font-size: clamp(15px, 1.41vw, 18px); }
}
