/* ========================================
   Scroll reveal
======================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* 子要素を時間差でふわっと出す（親が .reveal-stagger） */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

/* MV 入場アニメ */
@keyframes mvFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes mvFloatIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mvPopIn {
  from { opacity: 0; transform: scale(0.85) rotate(-6deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}
.mv__headline-img,
.mv__body,
.mv__illust--01,
.mv__illust--02,
.mv__illust--pen {
  opacity: 0;
  will-change: opacity, transform;
  animation: mvFloatIn 0.9s ease-out both;
}
.mv__headline-img { animation-delay: 0.1s; }
.mv__body         { animation-delay: 0.35s; }
.mv__illust--01   {
  animation: mvFloatIn 0.9s ease-out 0.25s both,
             mvFloatSlow 6s ease-in-out 1.3s infinite;
}
.mv__illust--02   {
  animation: mvPopInRev 0.8s cubic-bezier(.2,1.4,.5,1) 0.45s both,
             mvFloat 5s ease-in-out 1.5s infinite;
}
@keyframes mvPopInRev {
  from { opacity: 0; transform: scale(0.85) rotate(6deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}
.mv__illust--pen  {
  animation: mvPopIn 0.8s cubic-bezier(.2,1.4,.5,1) 0.7s both,
             mvFloat 4s ease-in-out 1.7s infinite;
}

/* MV 継続的なふわふわ（入場後） */
@keyframes mvFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes mvFloatSlow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .mv__headline-img,
  .mv__body,
  .mv__illust--01,
  .mv__illust--02,
  .mv__illust--pen { opacity: 1; animation: none; transform: none; }
}

/* ========================================
   CSS Variables
======================================== */
:root {
  --color-accent1: #FF3C00;
  --color-accent2: #FCEE21;
  --color-text: #000000;
  --color-bg1: #FFFFFF;
  --color-bg2: #FFFFFF;
  --color-brand1: #004193;
  --color-brand2: #54C2F0;

  --grid-color: #ccf0cc;
  --grid-size: 15px;

  --font-base: 'Noto Sans JP', sans-serif;
  --container-width: 1080px;
  --container-pad: clamp(16px, 4vw, 40px);
  --radius: 8px;
  --transition: 0.25s ease;
}

/* ========================================
   Reset & Base
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
}

body {
  padding-top: 0;
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  /* コンテナ幅内だけグリッド、外側は白 */
  background-color: #ffffff;
  background-image:
    linear-gradient(
      to right,
      #fff calc(50% - calc(var(--container-width) / 2)),
      transparent calc(50% - calc(var(--container-width) / 2)),
      transparent calc(50% + calc(var(--container-width) / 2)),
      #fff calc(50% + calc(var(--container-width) / 2))
    ),
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 100% 100%, var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--font-base); cursor: pointer; border: none; background: none; }

/* ========================================
   Page Label Bar（グリッド先頭のサイト名）
======================================== */
.page-label-bar {
  /* ヘッダー分の高さを padding で確保 → 白背景がその領域もカバー */
  background: #ffffff;
  padding-top: 50px;
}

.page-label-bar__inner {
  padding-top: 10px;
  padding-bottom: 8px;
}

/* テキスト両脇にラインを伸ばす */
.page-label-bar__text {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--grid-color);
  line-height: 1;
  white-space: nowrap;
}

.page-label-bar__text::before,
.page-label-bar__text::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background-color: var(--grid-color);
}

/* テキスト下のボーダー（コンテナ幅） */
.page-label-bar__border {
  max-width: var(--container-width);
  margin-inline: auto;
  border-bottom: 1px solid var(--grid-color);
}

/* ========================================
   Utility
======================================== */
.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-top: 100px;
}

/* ========================================
   Tags
======================================== */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  line-height: 1.4;
}

.tag--genre {
  background: var(--color-brand1);
  color: #fff;
}

.tag--job {
  background: var(--color-brand2);
  color: #fff;
}

/* ========================================
   Header
======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-bg1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  height: 50px;
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.header__logo {
  flex: 1;
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 28px;
  width: auto;
}

.header__right {
  display: flex;
  align-items: stretch;
  height: 50px;
}

/* ENTRYボタン：ヘッダー高さいっぱいに広げ余白なし */
.header__entry {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0;
  line-height: 1;
}

.header__entry img {
  height: 50px;
  width: auto;
  display: block;
}

/* ハンバーガー */
.header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 50px;
  height: 50px;
  padding: 0;
  flex-shrink: 0;
}

.header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

/* 開いた状態：× に変形 */
.header__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.header__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   Drawer Navigation
======================================== */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
}

.drawer.is-open {
  pointer-events: auto;
}

.drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity var(--transition);
}

.drawer.is-open .drawer__overlay {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(280px, 80vw);
  height: 100%;
  background: var(--color-bg1);
  padding: 70px 0 32px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__nav {
  flex: 1;
  list-style: none;
}

.drawer__link {
  display: block;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid #eee;
  transition: color var(--transition), background var(--transition);
}

.drawer__link:hover {
  color: var(--color-accent1);
  background: #fff5f2;
}

.drawer__entry {
  display: flex;
  justify-content: center;
  padding: 24px 28px 0;
}

.drawer__entry img {
  height: 44px;
  width: auto;
}

/* ========================================
   Main Visual
======================================== */
.mv {
  background: transparent;
  overflow-x: clip; /* 横方向のみクリップ。上下のはみ出しは見せる */
}

/* PC：2カラム（テキスト左・イラスト右） */
.mv__inner {
  display: grid;
  grid-template-columns: minmax(300px, 38%) 1fr;
  align-items: start;
  min-height: clamp(420px, 50vw, 560px);
  gap: 0;
  position: relative;
}

/* ── テキスト列 ── */
.mv__text-col {
  padding-block: clamp(24px, 2.5vw, 40px) clamp(40px, 4vw, 64px);
  position: relative;
  z-index: 2;
}

.mv__headline {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.mv__headline-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

.mv__body,
.about__lead,
.programs__lead,
.body-text {
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 500;
  line-height: 2.1;
  letter-spacing: 0.04em;
  font-family: inherit;
}

/* ── イラスト列 ── */
.mv__image-col {
  position: relative;
  width: 100%;
  min-height: clamp(340px, 42vw, 500px);
  /* コンテナ右端を超えてペンをはみ出させるため右マージンをネガティブに */
  margin-right: calc(-1 * var(--container-pad));
  /* テキスト側にもイラストを食い込ませるため左もマイナスに */
  margin-left: -8%;
}

.mv__illust {
  position: absolute;
  max-width: none;
  height: auto;
}

/* image01：背景の大きい構図（機械・作業員・ルーペ） */
.mv__illust--01 {
  width: 105%;
  max-width: 640px;
  top: 40px;
  left: 0;
  z-index: 1;
}

/* image02：前面の構図（手・ルーペ） → 左下に配置 */
.mv__illust--02 {
  width: 80%;
  bottom: -200px;
  left: -65%;
  z-index: 2;
}

/* pen-icon：右下にはみ出すペン */
.mv__illust--pen {
  width: 40%;
  bottom: 10%;
  right: -25%;
  z-index: 3;
}

/* ========================================
   About
======================================== */
/* グリッドを見せる → background-color を透明に */
.about { background-color: transparent; }

.about__title,
.merit__title,
.programs__title {
  text-align: center;
  margin-bottom: 20px;
}
.about__title img,
.merit__title img,
.programs__title img {
  height: 60px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.about__lead,
.programs__lead {
  margin-bottom: 30px;
}
.about__lead,
.programs__lead {
  text-align: center;
}

.about__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about__card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   Benefits
======================================== */
.merit { background-color: transparent; }

.merit__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.merit__item {
  display: flex;
  gap: 24px;
  margin-top: 0;
  margin-bottom: -40px;
}

.merit__item--01 { justify-content: flex-end; }
.merit__item--02 { flex-direction: row-reverse; justify-content: flex-end; }
.merit__item--03 { justify-content: flex-end; }

.merit__char {
  width: 20%;
  height: auto;
  flex-shrink: 0;
  margin: -30px;
  z-index: 1;
}

.merit__bubble {
  width: 62%;
  height: auto;
}

/* ========================================
   Programs
======================================== */
.programs { background-color: transparent; }

.programs__tabs {
  display: flex;
  justify-content: center;
  gap: 0px;
  margin-bottom: 0;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 10px;
  box-sizing: border-box;
  position: relative;
}
.programs__tabs::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  margin-left: -50vw;
  height: 4px;
  background: var(--color-accent1);
}
.programs__panels {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  border-bottom: 4px solid var(--color-accent1);
}
.programs__tab {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  line-height: 0;
  flex: 1 1 0;
  min-width: 0;
  display: block;
}
.programs__tab img { width: 100%; height: auto; display: block; }
.programs__tab .programs__tab-on { display: none; }
.programs__tab .programs__tab-off { display: block; }
.programs__tab.is-active .programs__tab-on { display: block; }
.programs__tab.is-active .programs__tab-off { display: none; }

.programs__panel { display: none; background: #fff; }
.programs__panel.is-active { display: block; }
.programs__panel-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px var(--container-pad);
}

/* Program detail */
.program-detail {
  position: relative;
}
.program-detail__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}
.program-detail__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}
.program-detail__sub {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.04em;
  margin: 0;
}
.program-detail__sub .mk {
  background: linear-gradient(transparent 60%, #FCEE21 60%);
  padding: 0 2px;
}
.program-detail__card-title .mk {
  background: linear-gradient(transparent 60%, #FCEE21 60%);
  padding: 0 2px;
}
.program-detail__badge {
  width: 240px;
  height: auto;
  flex-shrink: 0;
}
.program-detail__image {
  text-align: center;
  margin-top: -100px;
  position: relative;
  z-index: 1;
}
.program-detail__image img {
  width: 120%;
  max-width: none;
  height: auto;
  display: block;
  margin: 0 auto;
  margin-left: -10%;
}

.program-detail__box {
  position: relative;
  z-index: 2;
  background: #f3f3f3;
  border: 4px solid var(--color-accent1);
  border-radius: 10px;
  padding: 32px;
  margin-top: -100px;
}

.program-detail__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.program-detail__card {
  border: 1px solid var(--color-accent1);
  border-radius: 6px;
  padding: 20px;
  background: #fff;
}
.program-detail__card-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.program-detail__card-num {
  color: var(--color-accent1);
  font-size: 22px;
  font-weight: 800;
}
.program-detail__card-lead {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px;
}
.program-detail__card-list {
  margin: 0;
  padding-left: 1em;
  font-size: 13px;
  line-height: 1.8;
}
.program-detail__card-list li {
  list-style: none;
  text-indent: -1em;
}
.program-detail__card-list li::before {
  content: "・";
}

.program-detail__info {
  border-radius: 8px;
  padding: 0px 100px;
}
.program-detail__meta {
  margin: 0;
}
.program-detail__meta-row {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
  min-height: 52px;
}
.program-detail__meta-row:last-child { margin-bottom: 0; }
.program-detail__meta-row dt {
  flex: 0 0 38%;
  background: #003b83;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 32px 10px 24px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
}
.program-detail__meta-row dd {
  flex: 1;
  margin: 0;
  display: flex;
  align-items: center;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 500;
}

.program-detail__entry {
  text-align: center;
  margin-top: 30px;
}
.program-detail__entry-btn {
  display: inline-block;
  text-decoration: none;
}
.program-detail__entry-btn img {
  height: 50px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .program-detail__head { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 0; }
  .program-detail__title { font-size: 22px; }
  .program-detail__sub { font-size: 14px; }
  .program-detail__badge { width: 140px; align-self: flex-end; }
  .program-detail__image { margin: -80px calc(-1 * var(--container-pad)) 0; }
  .program-detail__image img { width: 100%; margin: 0; }
  .program-detail__box { padding: 16px; border-width: 3px; margin-top: -20px; }
  .program-detail__cards { grid-template-columns: 1fr; gap: 12px; }
  .program-detail__card { padding: 14px; }
  .program-detail__card-title { font-size: 15px; }
  .program-detail__card-num { font-size: 18px; }
  .program-detail__info { padding: 14px; }
  .program-detail__meta-row { min-height: 40px; }
  .program-detail__meta-row dt { flex-basis: 42%; font-size: 12px; padding: 6px 20px 6px 14px; clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%); }
  .program-detail__meta-row dd { padding: 6px 14px; font-size: 12px; }
  .program-detail__entry-btn img { height: 40px; }
}

@media (max-width: 768px) {
  .programs__tabs { padding: 0; }
  .programs__tab img { width: 100%; height: auto; }
  .programs__panel-inner { padding: 20px var(--container-pad); }
}

/* Filter */
.programs__filter {
  background: #FFD8D0;
  margin-bottom: 40px;
  border-radius: 0px;
}

.programs__filter-group {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-block: 15px;
  border-bottom: 5px solid #fff;
  padding: 10px;
}

.programs__filter-group:last-of-type { border-bottom: none; }

.programs__filter-label {
  font-weight: 700;
  font-size: 13px;
  min-width: 80px;
  padding-top: 2px;
  flex-shrink: 0;
}

.programs__filter-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}

.filter-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent1);
  cursor: pointer;
}

/* Program Card */
.programs__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.program-card {
  border: 3px solid var(--color-accent1);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f3f3f3;
}

.program-card[hidden] { display: none; }

.program-card__header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #f3f3f3;
  text-align: left;
  transition: background var(--transition);
}

.program-card__header-inner {
  flex: 1;
  min-width: 0;
  color: #000;
  text-align: left;
}

.program-card__header {
  color: #000;
}

.program-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000;
}

.program-card__subtitle {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
}

.program-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.program-card__toggle-wrap {
  flex-shrink: 0;
  width: 50px;
  height: 65px;
  background: url(assets/5days-button01.svg) no-repeat center / contain;
  transition: transform var(--transition);
}

.program-card__toggle,
.program-card__toggle-label { display: none; }

.program-card__header[aria-expanded="true"] .program-card__toggle-wrap {
  background-image: url('assets/5days-button02.svg');
}

.program-card__body {
  display: none;
  padding: 0px 24px 24px;
}

.program-card__body.is-open { display: block; }

.program-card__catch {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Recommend box */
.program-card__recommend {
  background: #fff3f0;
  border: 0px solid rgba(232, 56, 13, 0.15);
  padding: 20px 50px 30px;
  margin: 70px 100px 10px;
}

.program-card__recommend-title {
  display: block;
  width: auto;
  height: 56px;
  margin: -50px -80px 10px;
}

.program-card__recommend ul {
  list-style: none;
}

.program-card__recommend li {
  font-size: 14px;
  font-weight: 700;
  padding-left: 24px;
  position: relative;
  margin-bottom: 4px;
}

.program-card__recommend li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent1);
  font-weight: 900;
}

/* Flow */
.program-card__flow {
  margin-bottom: 20px;
}

.program-card__flow-title {
  display: block;
  width: auto;
  height: 56px;
  margin: 0 0 -10px 70px;
  position: relative;
  z-index: 1;
}

.program-card__flow-list {
  list-style: none;
  margin: 0 auto;
  padding: 0 100px;
}

.program-card__flow-list li {
  background: #fff;
  border: 1px solid var(--color-accent1);
  border-radius: 4px;
  padding: 15px 15px;
  font-size: 14px;
  color: var(--color-accent1);
  font-weight: 700;
  text-align: center;
}

.program-card__flow-list li + li {
  margin-top: 20px;
  position: relative;
}

.program-card__flow-list li + li::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: url(assets/arrow.svg) no-repeat center / contain;
}

/* Meta (1DAY program と統一) */
.program-card__meta {
  max-width: 520px;
  margin: 0 auto 20px;
}
.program-card__meta-row {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
  min-height: 52px;
}
.program-card__meta-row:last-child { margin-bottom: 0; }
.program-card__meta-row dt {
  flex: 0 0 38%;
  background: #003b83;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 32px 10px 24px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
}
.program-card__meta-row dd {
  flex: 1;
  margin: 0;
  display: flex;
  align-items: center;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 500;
}

.programs__no-result {
  text-align: center;
  padding: 40px;
  color: #888;
  font-size: 14px;
}

/* ========================================
   Requirements (Tab)
======================================== */
.requirements { background-color: transparent; }

.requirements__title {
  text-align: center;
  margin-bottom: 40px;
}
.requirements__title img {
  height: 60px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.tab {
  position: relative;
}

.tab__nav {
  display: flex;
  margin-bottom: 0;
  padding-left: 0px;
}

.tab__btn {
  padding: 14px 36px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 10px 10px 0 0;
  background: #eeeeee;
  color: #999999;
  border: none;
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab__btn--active,
.tab__btn[aria-selected="true"] {
  background: #ffffff;
  color: #E8380D;
  font-weight: 900;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
  z-index: 3;
}

.tab__btn--active::after,
.tab__btn[aria-selected="true"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 4px;
  background: #ffffff;
  z-index: 4;
}

.tab__panel {
  display: none;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: clamp(28px, 4vw, 56px);
  position: relative;
  z-index: 2;
  padding-bottom: 100px;
  border-bottom-right-radius: 80px;
}

.tab__panel--active {
  display: block;
}

.tab__panel-end {
  position: absolute;
  bottom: 0px;
  right: 0;
  width: 80px;
  height: auto;
  z-index: 2;
}

.requirements__list {
  margin-bottom: 56px;
  padding: 0 20px;
}

.requirements__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 20px 0;
  font-size: 15px;
  align-items: start;
}

.requirements__row dt {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.6;
}

.requirements__row dt span,
.requirements__row dt {
  display: inline;
}

.requirements__row dt {
  background: linear-gradient(transparent 55%, #FCEE21 55%, #FCEE21 95%, transparent 95%);
  padding: 0 2px;
  margin-bottom: 10px;
  display: inline;
  width: fit-content;
}

.requirements__row dd {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  padding-top: 2px;
}

.requirements__steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.requirements__steps li {
  font-size: 13px;
  line-height: 1.7;
  color: #333;
  padding-left: 0;
}

.requirements__steps strong {
  color: #E8380D;
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: -10px;
  letter-spacing: 0.02em;
}

.requirements__voices {
  padding: 0 20px;
}

.requirements__voices-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 20px;
  display: inline-block;
  background: linear-gradient(transparent 55%, #FCEE21 55%, #FCEE21 95%, transparent 95%);
  padding: 0 2px;
}

.requirements__voices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
}

.voice-card {
  position: relative;
  background: #FFD8CC;
  border-radius: 10px;
  padding: 22px 24px;
}
.voice-card--blue {
  background: #CCEDFA;
}

.voice-card__content {
  margin-bottom: 0;
}

.voice-card__fukidashi {
  position: absolute;
  width: 36px;
  height: auto;
  right: 28px;
  bottom: -14px;
}

.voice-card__headline {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 10px;
  color: #222;
}
.voice-card p {
  margin: 0;
  line-height: 1.75;
  font-size: 12px;
  color: #333;
}

/* ========================================
   FAQ
======================================== */
.faq { background-color: transparent; }

.faq__title {
  margin-bottom: clamp(24px, 3vw, 40px);
  text-align: center;
}

.faq__title img {
  height: clamp(40px, 5vw, 62px);
  width: auto;
  display: block;
  margin: 0 auto;
}

.faq__card {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-radius: 0;
  padding: clamp(28px, 4vw, 56px);
  padding-bottom: 100px;
  position: relative;
  border-bottom-right-radius: 80px;
}

.faq__card-end {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: auto;
  z-index: 2;
}

.faq__group {
  margin-bottom: 40px;
}

.faq__group:last-of-type {
  margin-bottom: 0;
}

.faq__group-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
  background: linear-gradient(transparent 55%, #FCEE21 55%, #FCEE21 95%, transparent 95%);
  padding: 0 2px;
  display: inline;
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 4px 16px;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-brand2);
  cursor: pointer;
  font-family: var(--font-base);
  transition: opacity var(--transition);
}

.faq__question:hover { opacity: 0.75; }

.faq__q-num {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--color-brand1);
  line-height: 1.5;
  min-width: 38px;
}

.faq__q-text {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.6;
}

.faq__toggle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  margin-top: 5px;
}

.faq__toggle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-brand1);
  border-bottom: 2px solid var(--color-brand1);
  transform: translate(-50%, -70%) rotate(45deg);
  transition: transform var(--transition);
}

.faq__question[aria-expanded="true"] .faq__toggle::before {
  transform: translate(-50%, -30%) rotate(-135deg);
}

.faq__answer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 16px 4px 30px;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}

.faq__answer[hidden] { display: none !important; }

.faq__a-mark {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--color-accent1);
  line-height: 1.5;
  min-width: 38px;
}

/* ========================================
   Footer
======================================== */
.footer {
  background: transparent;
  color: var(--color-text);
  padding-block: 40px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer__copy {
  font-size: 12px;
  color: var(--color-text);
  opacity: 0.5;
}

/* ========================================
   Responsive – SP (≤768px)
======================================== */
@media (max-width: 768px) {
  /* グリッドサイズ SP：8px、全幅表示（白マスクなし） */
  body {
    --grid-size: 8px;
    background-image:
      linear-gradient(var(--grid-color) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size);
  }

  /* ラベルバー：ヘッダー高さ 30px 分に縮小 */
  .page-label-bar { padding-top: 30px; }

  /* Header */
  .header { height: 30px; }
  html { scroll-padding-top: 30px; }
  body { padding-top: 30px; }

  .header__logo img { height: 18px; }

  .header__right { height: 30px; }
  .header__entry { height: 30px; }
  .header__entry img { height: 30px; }
  .header__hamburger { width: 30px; height: 30px; gap: 4px; }
  .header__hamburger span { width: 18px; }

  .header__hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .header__hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* MV – SP：見出し → イラスト → 本文 の縦積み */
  .mv__inner {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    min-height: unset;
    gap: 0;
    align-items: stretch;
  }

  .mv__text-col {
    display: contents; /* 子要素を .mv__inner の直下に展開 */
  }

  .mv__headline {
    order: 1;
    padding-top: 24px;
    margin-bottom: 0;
  }

  .mv__headline-img {
    max-width: 100%;
  }

  .mv__image-col {
    order: 2;
    width: 100vw;
    margin-left: calc(-1 * var(--container-pad));
    margin-right: calc(-1 * var(--container-pad));
    height: clamp(280px, 82vw, 440px);
    min-height: 0;
  }

  .mv__illust--01 {
    width: 85vw;
    right: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: mvFadeIn 0.9s ease-out 0.25s both,
               mvFloatTranslate 6s ease-in-out 1.3s infinite;
  }

  .mv__illust--02 {
    width: 50vw;
    right: auto;
    left: -8vw;
    bottom: -100px;
    top: auto;
    transform: none;
    animation: mvPopInRev 0.8s cubic-bezier(.2,1.4,.5,1) 0.45s both,
               mvFloatTranslate 5s ease-in-out 1.5s infinite;
  }

  .mv__illust--pen {
    right: -11vw;
    bottom: 26%;
    animation: mvPopIn 0.8s cubic-bezier(.2,1.4,.5,1) 0.7s both,
               mvFloatTranslate 4s ease-in-out 1.7s infinite;
  }

  @keyframes mvFloatTranslate {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -8px; }
  }

  @keyframes mvPopInRev {
    from { opacity: 0; transform: scale(0.85) rotate(6deg); }
    to   { opacity: 1; transform: scale(1) rotate(0); }
  }

  .mv__headline-img,
  .mv__body {
    animation: mvFadeIn 0.9s ease-out both;
    transform: none;
  }
  .mv__headline-img { animation-delay: 0.1s; }
  .mv__body { animation-delay: 0.35s; }

  .mv__body {
    order: 3;
    padding-bottom: 32px;
    margin-top: 0;
    margin-left: 90px;
  }

  /* About */
  .about__cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .about__title { margin-bottom: 10px; }
  .about__lead { margin-bottom: 10px; }
  .section { padding-block: clamp(0px, 8vw, 96px); }
  .mv__body,
  .about__lead,
  .programs__lead,
  .body-text { font-size: 10pt; }
  .about__title img,
  .merit__title img,
  .programs__title img { height: 40px; }
  .about__lead,
  .programs__lead { text-align: left; }
  .pc-only { display: none; }

  /* Benefits */
  .merit__item,
  .merit__item--02 { align-items: center; gap: 12px; margin-bottom: -30px; }
  .merit__char { width: 25%; }
  .merit__bubble { width: 80%; }

  /* Programs filter */
  .programs__filter-group { flex-direction: column; gap: 8px; }
  .programs__filter-label { min-width: auto; }

  /* Programs 5DAYS card */
  .program-card__recommend { padding: 16px 20px; margin: 30px 16px; }
  .program-card__recommend-title { height: 44px; margin: -35px -28px 8px; }
  .program-card__flow-list { padding: 0 16px; }
  .program-card__flow-list li { padding: 10px 12px; font-size: 13px; }
  .program-card__flow-title { height: 44px; margin: 0 0 -8px 0; }

  /* Requirements */
  .requirements__title img { height: 40px; }
  .requirements__row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .requirements__row dd { margin-bottom: 8px; }
  .requirements__voices-grid { grid-template-columns: 1fr; }
  .voice-card { padding: 14px; font-size: 12px; }
  .voice-card__headline { font-size: 13px; }
  .voice-card__fukidashi { width: 40px; }
  .tab__panel { padding-bottom: 60px; }

  /* Tab */
  .tab__btn { padding: 10px 20px; font-size: 14px; }

  /* FAQ */
  .faq__card { padding-bottom: 70px; border-bottom-right-radius: 80px; }
  .faq__card-end { width: 80px; }
  .faq__group-title { font-size: 14px; }
  .faq__q-num { font-size: 16px; min-width: 32px; }
  .faq__q-text { font-size: 14px; }
  .faq__a-mark { font-size: 16px; min-width: 32px; }
}

