@charset "UTF-8";
/* =========================================================
   One Up TOP
   ブレイクポイント
   - PC（デザイン基準 1440）
   - スモール  ≤1280px
   - タブレット ≤817px（ここからSPレイアウト。現行サイト aogy-c.com と同じ818px未満で切り替え）
   - モバイル  ≤690px
   - ミニ      ≤360px
   上下の余白は「下に配置される要素」の margin-top / padding-top で管理する
========================================================= */

:root {
  --c-black: #000;
  --c-ink: #2e2e2e;
  --c-mint: #82c1bd;
  --c-gray: #7f8386;
  --c-navy: #243042;
  --c-navy-2: #32435c;
  --c-green: #00c085;
  --c-line: #e1e3d9;
  --c-teal: #6ad4d2;

  --ff-ja: "Noto Sans JP", sans-serif;
  --ff-en: "Montserrat", "Noto Sans JP", sans-serif;
  --ff-futura: "Futura", "Futura PT", "Jost", sans-serif;

  --header-h: 85px;
  /* 現行サイト（aogy-c.com）のrem基準。ヘッダー・フッターのみで使用 */
  --lr: 0.515463vw;
  /* PCのデザイン（1440）を基準に、1440未満では比率で縮める単位 */
  --s: min(1px, calc(100vw / 1440));
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--ff-ja);
  font-weight: 500;
  color: var(--c-black);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
address { font-style: normal; }
em { font-style: normal; }

/* =========================================================
   共通パーツ
========================================================= */
.c-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.c-heading__en {
  font-family: var(--ff-en);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.c-heading__ja {
  margin-top: 8px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.12em;
}
.c-heading--row { flex-direction: row; align-items: center; }
.c-heading--row .c-heading__ja { margin-top: 0; margin-left: 32px; letter-spacing: 0.08em; }
.c-heading--left { align-items: flex-start; text-align: left; }

.c-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 214px;
  height: 45px;
  border: 1px solid var(--c-black);
  border-radius: 60px;
  background: var(--c-black);
  color: #fff;
  font-size: 8.9px; /* 現行 .news-btn の1440px時の実寸（1.2rem） */
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  overflow: hidden;
  isolation: isolate; /* ホバー時に白い背景を文字の後ろ（ボタンの黒の上）へ回すため */
  transition: ease .2s; /* 現行 .btnType01 と同じ */
}
/* ホバーの白い背景：現行 .btnType01::before / .news-btn::before と同じ動き（左から伸び、離すと右へ縮む） */
.c-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 101%;
  height: 101%;
  background: #fff;
  transform: scale(0, 1);
  transform-origin: right top;
  transition: transform .6s cubic-bezier(0.8, 0, 0.2, 1) 0s;
}
/* 矢印：現行 .news-btn::after と同じ画像・大きさ（1440px時の実寸） */
.c-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 23px;
  z-index: 3;
  width: 2.97px;
  height: 5.19px;
  transform: translateY(-50%);
  background: url(../img/common/arrow-white.svg) no-repeat center center / cover;
}
@media (hover: hover) {
  .c-btn:hover { color: var(--c-black); }
  .c-btn:hover::before { transform: scale(1, 1); transform-origin: left top; z-index: -1; }
  .c-btn:hover::after { background-image: url(../img/common/arrow-black.svg); }
}

.c-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.c-meta__cat { color: var(--c-mint); font-weight: 700; line-height: 1.6; }
.c-meta__date { color: var(--c-gray); font-weight: 500; line-height: 1.4; }

.c-card { display: flex; flex-direction: column; }
.c-card__img { display: block; aspect-ratio: 357 / 201; overflow: hidden; }
.c-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.c-card .c-meta { margin-top: 16px; }
.c-card__title {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (hover: hover) { .c-card:hover .c-card__img img { transform: scale(1.04); } }

.c-stars {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1140px, calc(100% - 300px));
  height: 38px;
  margin: 120px auto 0;
}
.c-stars img:nth-child(odd) { width: 49px; height: 39px; }
.c-stars img:nth-child(even) { width: 24px; height: 25px; }
.c-stars--support { margin-top: 96px; }



/* =========================================================
   MV（PCは1440×900を基準に配置。1440未満は --s で縮小）
========================================================= */
/* ヘッダーは85px固定でMVだけ縮むため、1440px未満ではMV全体を下げて重ならないようにする（ヘッダーとの隙間14pxも比率で保つ） */
.mv { position: relative; padding-top: calc(var(--header-h) - 85 * var(--s)); }
.mv__stage { position: relative; height: calc(900 * var(--s)); }
.mv__stage > * { position: absolute; }

.mv__bg {
  left: calc(50% - 108 * var(--s));
  right: 0;
  top: calc(99 * var(--s));
  height: calc(762 * var(--s));
  background: var(--c-teal) url(../img/mv/bg-texture.webp) center / cover no-repeat;
}
.mv__bg::after {
  /* テクスチャ画像は不透明度20%で重ねる */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(106, 212, 210, .8);
}
.mv__photo {
  left: calc(50% + (644 - 720) * var(--s));
  top: calc(122 * var(--s));
  width: calc(764 * var(--s));
}
.mv__photo { z-index: 0; aspect-ratio: 764 / 692; }
/* メイン写真のスライド：前の写真の上に、次の写真が1.2秒かけてフェードで重なる */
.mv__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  opacity: 0;
}
.mv__slide.is-active, .mv__slide.is-prev { visibility: visible; opacity: 1; }
.mv__slide.is-prev { z-index: 0; }
.mv__slide.is-active { z-index: 1; }
.mv__slide.is-enter { transition: opacity 1.2s ease; }

.mv__watermark {
  left: 0;
  top: calc(123 * var(--s));
  width: calc(99 * var(--s));
  display: flex;
  flex-direction: column;
  gap: calc(32 * var(--s));
  opacity: .03;
  pointer-events: none;
}
.mv__watermark img {
  width: calc(353.65 * var(--s));
  height: calc(98.7 * var(--s));
  max-width: none;
  margin-top: calc(127.5 * var(--s));
  margin-bottom: calc(127.5 * var(--s));
  margin-left: calc(-127.3 * var(--s));
  transform: rotate(90deg);
}

.mv__title {
  left: calc(50% + (144 - 720) * var(--s));
  top: calc(259 * var(--s));
  width: calc(376 * var(--s));
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mv__logo img { width: calc(376 * var(--s)); }
.mv__lead {
  margin-top: calc(8 * var(--s));
  font-weight: 700;
  font-size: max(13px, calc(20 * var(--s)));
  line-height: 1.4;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.mv__script {
  position: absolute;
  left: calc(315 * var(--s));
  top: calc(32 * var(--s));
  width: calc(304 * var(--s));
  max-width: none;
  pointer-events: none;
}

.mv__stack {
  z-index: 1; /* カードの重なり順をこの中だけで完結させ、SPの固定バー（z-index: 3）より下にする */
  left: calc(50% + (186 - 720) * var(--s));
  top: calc(473 * var(--s));
  width: calc(288 * var(--s));
  height: calc(255 * var(--s));
}
/* 重なった写真：カードをめくるように、手前の1枚が左へ傾きながら奥へ下がり、後ろのカードがまっすぐになって手前に出る */
.mv__stack-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 1s ease, opacity 1s ease;
}
.mv__stack-img[data-slot="0"] { z-index: 4; transform: rotate(0deg); }
.mv__stack-img[data-slot="1"] { z-index: 3; transform: rotate(15deg); }
.mv__stack-img[data-slot="2"] { z-index: 2; transform: rotate(25deg); }
.mv__stack-img[data-slot="3"] { z-index: 1; transform: rotate(25deg) scale(.94); opacity: 0; }
/* 前半は手前のまま左へずれて傾き、後半は後ろに回ってフェードしながら一番奥（slot 3）の状態へ戻る */
.mv__stack-img.is-leaving { animation: mv-card-out 1s ease forwards; }
@keyframes mv-card-out {
  0% { z-index: 5; transform: rotate(0deg); opacity: 1; }
  50% { z-index: 5; transform: translate(-42%, 6%) rotate(-20deg) scale(.86); opacity: 1; }
  50.01% { z-index: 0; }
  100% { z-index: 0; transform: rotate(25deg) scale(.94); opacity: 0; }
}
.mv__stack-img.is-reset { transition: none; }
.mv__badge {
  position: absolute;
  z-index: 6; /* 写真より手前 */
  left: calc(261 * var(--s));
  top: calc(193 * var(--s));
  width: calc(96 * var(--s));
  height: calc(96 * var(--s));
}
.mv__badge img { width: 100%; height: 100%; }
.mv__badge span {
  position: absolute;
  left: 50%;
  top: calc(33.8 * var(--s));
  transform: translateX(-50%);
  font-family: var(--ff-futura);
  font-weight: 500;
  font-size: max(8px, calc(10 * var(--s)));
  line-height: 1.3;
  letter-spacing: 0.18em;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

.mv__deco { width: calc(71.8 * var(--s)); height: auto; pointer-events: none; }
.mv__deco--tl1 { left: calc(50% + (56 - 720) * var(--s)); top: calc(126 * var(--s)); width: calc(72.3 * var(--s)); transform: rotate(180deg); }
.mv__deco--tl2 { left: calc(50% + (147 - 720) * var(--s)); top: calc(123 * var(--s)); width: calc(72 * var(--s)); transform: scaleX(-1); }
.mv__deco--red { left: calc(50% + (822 - 720) * var(--s)); top: calc(757.4 * var(--s)); transform: rotate(180deg); }
.mv__deco--blue { left: calc(50% + (924 - 720) * var(--s)); top: calc(805.2 * var(--s)); transform: scaleX(-1); }
.mv__deco--navy { left: calc(50% + (1032 - 720) * var(--s)); top: calc(756.4 * var(--s)); transform: rotate(180deg) scaleX(-1); }
.mv__deco--pink { left: calc(50% + (104 - 720) * var(--s)); top: calc(791 * var(--s)); width: calc(56 * var(--s)); }
.mv__deco--pink2, .mv__deco--red2 { display: none; }

/* あしらいの浮遊：上下（20px）または左右（15px）にゆっくり往復。向きの指定（transform）とは別に translate で動かす */
.mv__deco {
  --float-y: calc(20 * var(--s));
  --float-x: calc(15 * var(--s));
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.mv__deco--tl1   { animation-name: mv-float-y; animation-duration: 2.5s; }
.mv__deco--tl2   { animation-name: mv-float-x; animation-duration: 3.5s; }
.mv__deco--red   { animation-name: mv-float-y; animation-duration: 3.5s; }
.mv__deco--blue  { animation-name: mv-float-y; animation-duration: 2.5s; }
.mv__deco--navy  { animation-name: mv-float-y; animation-duration: 1.5s; }
.mv__deco--pink  { animation-name: mv-float-x; animation-duration: 3.5s; }
.mv__deco--pink2 { animation-name: mv-float-y; animation-duration: 2.5s; }
.mv__deco--red2  { animation-name: mv-float-x; animation-duration: 1.5s; }
@keyframes mv-float-y { from { translate: 0 0; } to { translate: 0 calc(var(--float-y) * -1); } }
@keyframes mv-float-x { from { translate: 0 0; } to { translate: calc(var(--float-x) * -1) 0; } }

.mv__pager {
  left: calc(50% + (1229 - 720) * var(--s));
  top: calc(831 * var(--s));
  display: flex;
  align-items: center;
  gap: 8px;
}
.mv__pager-bar { position: relative; display: block; width: calc(134 * var(--s)); height: 2px; background: var(--c-black); }
.mv__pager-bar span { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #a9e3df; transform: scaleX(.6); transform-origin: 0 50%; }
.mv__pager-num { font-family: var(--ff-futura); font-weight: 500; font-size: 12px; line-height: 1.2; white-space: nowrap; }

.mv__scroll {
  right: calc(10 * var(--s));
  top: calc(424 * var(--s));
  writing-mode: vertical-rl;
  font-family: var(--ff-futura);
  font-weight: 500;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.48em;
  white-space: nowrap;
}

/* =========================================================
   導入（One Upでは、楽しく…）
========================================================= */
.intro { margin-top: 40px; }
.intro__box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1280px, calc(100% - 160px));
  min-height: 262px;
  margin: 0 auto;
  padding: 40px 80px;
  border-radius: 6px;
  background: var(--c-navy);
  color: #fff;
}
.intro__catch { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 463px; }
.intro__catch span {
  display: inline-block;
  padding: 0 8px 0 10px;
  border-radius: 2px;
  background: var(--c-navy-2);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.8;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.intro__catch em { color: var(--c-green); }
.intro__text { position: relative; z-index: 1; width: 380px; font-weight: 700; font-size: 14px; line-height: 2.2; letter-spacing: 0.08em; }
.intro__tab {
  position: absolute;
  left: calc(50% + .5px);
  top: -8px;
  width: 15px;
  height: 24px;
  border-radius: 6px;
  background: var(--c-navy);
  transform: translateX(-50%);
}
.intro__child {
  position: absolute;
  left: 50%;
  bottom: -25px;
  width: 360px;
  transform: translateX(-50%);
}
.intro__tri { position: absolute; width: 20px; height: 15px; }
.intro__tri--1 { right: 63px; top: 22px; }
.intro__tri--2 { right: 44px; top: 56px; transform: scaleY(-1); }
.intro__tri--3 { right: 18px; top: 28px; transform: scaleY(-1); }
.intro__dots { position: absolute; left: -16px; top: 232px; width: 60.5px; height: auto; }

/* =========================================================
   PICK UP
========================================================= */
.pickup { margin-top: 120px; }
.pickup__inner { width: min(1280px, calc(100% - 160px)); margin: 0 auto; }
.pickup__list { margin-top: 40px; }
.pickup__item { display: flex; align-items: center; gap: 64px; }
.pickup__item + .pickup__item { margin-top: 40px; }
/* 写真：文章 をデザインと同じ 826：390 の比率で縮める */
.pickup__img {
  flex: 826 1 0;
  min-width: 0;
  display: block;
  aspect-ratio: 826 / 531;
  border-radius: 8px;
  overflow: hidden;
}
.pickup__img img { width: 100%; height: 100%; object-fit: cover; }
.pickup__img--split { display: grid; grid-template-columns: 424fr 400fr; gap: 2px; }
.pickup__body { flex: 390 1 0; min-width: 214px; /* 「もっと見る」ボタンの幅より細くしない */ display: flex; flex-direction: column; align-items: flex-end; }
.pickup__body .c-meta { align-self: flex-start; }
.pickup__title { align-self: stretch; margin-top: 8px; font-weight: 800; font-size: 18px; line-height: 1.6; letter-spacing: 0.08em; }
.pickup__text {
  align-self: stretch;
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}
.pickup__body .c-btn { margin-top: 40px; }
.pickup__item--reverse { flex-direction: row-reverse; }

/* =========================================================
   EVERYDAY LIFE
========================================================= */
.everyday { margin-top: 120px; }
.everyday__inner { display: flex; flex-direction: column; align-items: center; width: min(1119px, calc(100% - 160px)); margin: 0 auto; }
.everyday__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 80px 24px; width: 100%; margin-top: 40px; }
.everyday__btn { margin-top: 40px; }

/* =========================================================
   CTA（教室見学・無料体験）
========================================================= */
.c-cta { margin-top: 120px; padding: 0 8px; }
/* 背景の枠と白いボックスの余白：上下48px。左右はボックス最大1120pxの残りで、48px未満にはしない */
.c-cta__frame { position: relative; padding: 48px; border-radius: 8px; overflow: hidden; container-type: inline-size; }
.c-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-cta__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.c-cta__box {
  position: relative;
  z-index: 2;
  display: flex;
  /* 内側の余白：左右はボックス幅1120pxで80px → 818px表示時（ボックス幅706px）で40px へ比例して縮める。
     文章と写真の間は1120px時の比率（88px）で縮め、最小40px */
  gap: clamp(40px, 7.857cqi, 88px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px clamp(40px, 9.662cqi - 28.2px, 80px);
  border-radius: 8px;
  background: #fff;
}
.c-cta__body { flex: 1 1 0; min-width: 0; container-type: inline-size; } /* 文章と写真は左右1:1 */
.c-cta__title { font-weight: 800; font-size: 18px; line-height: 1.4; letter-spacing: 0.08em; }
.c-cta__text { margin-top: 8px; font-weight: 600; font-size: 12px; line-height: 1.6; letter-spacing: 0.08em; }
.c-cta__info { margin-top: 16px; font-size: 12px; line-height: 1.6; letter-spacing: 0.08em; }
.c-cta__info dt { color: var(--c-mint); font-weight: 700; }
.c-cta__time { white-space: nowrap; } /* 時間の表記は途中で改行しない */
.c-cta__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; } /* 横に入りきらなければ縦積み */
.c-cta__btn {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border: 1px solid var(--c-black);
  border-radius: 60px;
  background: var(--c-black);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: background-color .3s, color .3s;
}
.c-cta__btn img { width: 20px; height: 20px; }
/* 文章の幅が360px未満（ボタン内の左右余白が約24pxを切る＝画面幅 約1020px以下）ではボタンを縦積み */
@container (max-width: 359.98px) {
  .c-cta__btns { flex-direction: column; }
  .c-cta__btn { flex: none; padding: 16px; }
}
@media (hover: hover) {
  .c-cta__btn:hover { background: #fff; color: var(--c-black); }
  .c-cta__btn:hover img { filter: invert(1); }
}
.c-cta__photo { flex: 1 1 0; min-width: 0; position: relative; overflow: hidden; }
.c-cta__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; } /* 横が切れるときは右側（女の子の顔）を残す */
/* パララックス：JSが --parallax-slack（動く分の余白）を入れ、その分だけ画像を上下に大きくする */
.c-cta__photo img {
  top: calc(var(--parallax-slack, 0px) * -1);
  bottom: auto;
  height: calc(100% + var(--parallax-slack, 0px) * 2);
  will-change: transform;
}
/* 筆記体「One up」：1440px時の位置（右47px・下30px・幅399px）を基準に、右端に寄せて配置。
   枠の幅に合わせて縮め、右は16px未満にしない（見切れ防止） */
.c-cta__script {
  position: absolute;
  z-index: 3;
  right: max(16px, calc(50% - 665px));
  bottom: 30px;
  width: clamp(240px, 28%, 399px);
  pointer-events: none;
}
/* フッター直前に置く版（記事詳細ページなど。Figma 1719:1554）
   中身はTOPのCTAと同じ。背景を画面幅いっぱい・角丸なしにして、下のフッターにすき間なく付ける
   （フッター側に上の余白はないので、CTAの次にフッターを置けばぴったり付く）
   上の余白は0。現行サイトでは、CTA（.banner）自体に余白はなく、上の余白は直前の本文セクション（.single-post / .page-news / .contact など）の
   下の余白で作られているため、それをそのまま使う（＝現行と同じ余白）。SPの .c-cta { margin-top } より強くするため .c-cta.c-cta--full で指定 */
.c-cta.c-cta--full { margin-top: 0; padding: 0; }
.c-cta--full .c-cta__frame { border-radius: 0; }

/* =========================================================
   PLAY（カード重ね）
========================================================= */
.play { margin-top: 96px; padding: 0 8px; }
.play-card {
  position: sticky;
  top: var(--stick-top, var(--header-h));
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-color);
}
/* 各カードを少し止める：止まってから画面の高さの50%ぶんスクロールするまで、次のカードは上がってこない */
.play { --play-hold: 50vh; }
.play__hold { height: var(--play-hold); } /* 3枚目も同じだけ止めるための空き（sticky の止まる範囲に含めるため要素で確保） */
.play-card + .play-card { margin-top: calc(16px + var(--play-hold)); }
.play-card--cooking { --card-color: #6ad4d2; --box-color: #e7f7f6; --tag-color: #55a7a9; }
.play-card--game    { --card-color: #e98273; --box-color: #fbdbd5; --tag-color: #e98273; }
.play-card--science { --card-color: #6ad4ad; --box-color: #eaf6eb; --tag-color: #53aa7d; }

.play-card__photo { position: relative; height: 351px; overflow: hidden; }
.play-card__photo picture { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; will-change: transform; }
.play-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.play-card__deco { position: absolute; width: 71.8px; height: auto; pointer-events: none; }
.play-card__deco--y { left: calc(100% - 168px); top: 35px; transform: rotate(180deg); }
.play-card__deco--o { left: 143px; top: 301px; transform: scaleX(-1); }

/* あしらい・道具の浮遊：MVと同じ動き（上下20px／左右15px を 1.5〜3.5秒で往復）。
   向きの指定（transform）とは別に translate で動かす。カードごとに開始をずらして動きをそろえない */
.play-card__deco, .play-scene__item {
  --float-y: 20px;
  --float-x: 15px;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.play-card__deco--y    { animation-name: mv-float-y; animation-duration: 2.5s; }
.play-card__deco--o    { animation-name: mv-float-x; animation-duration: 3.5s; }
.play-scene__item--a   { animation-name: mv-float-y; animation-duration: 3.5s; }
.play-scene__item--b   { animation-name: mv-float-y; animation-duration: 1.5s; }
.play-scene__item--c   { animation-name: mv-float-x; animation-duration: 2.5s; }
.play-card--game .play-card__deco, .play-card--game .play-scene__item { animation-delay: -0.8s; }
.play-card--science .play-card__deco, .play-card--science .play-scene__item { animation-delay: -1.6s; }

.play-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 32px;
  background: var(--card-color);
}
.play-card__intro { flex: 0 0 338px; color: #fff; }
.play-card__en { font-family: var(--ff-en); font-weight: 700; font-size: 56px; line-height: 1.4; letter-spacing: 0.04em; }
.play-card__ja { margin-top: 8px; font-weight: 700; font-size: 12px; line-height: 1.4; letter-spacing: 0.08em; }
.play-card__lead { margin-top: 24px; font-size: 12px; line-height: 1.8; letter-spacing: 0.08em; }

.play-card__panel {
  position: relative;
  flex: 0 1 979px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .5);
}
.play-card__dots { position: absolute; right: 16px; display: flex; flex-direction: column; gap: 5px; }
.play-card__dots li { width: 8px; height: 8px; border-radius: 8px; background: #fff; }
.play-card__dots li.is-current { background: var(--c-ink); }
.play-card--cooking .play-card__dots { bottom: 46px; }
.play-card--game .play-card__dots { bottom: 60px; }
.play-card--science .play-card__dots { bottom: 48px; }

/* シーン（子ども・吹き出し・大きな文字・道具） */
.play-scene { position: relative; flex: 0 0 auto; height: 280px; }
.play-scene > * { position: absolute; }
.play-scene__child { left: 0; top: 0; width: 232px; height: 280px; }
.play-scene__child img { width: 100%; height: 100%; }
.play-scene__bubble {
  z-index: 1;
  padding: 6px 10px;
  border-radius: 16px;
  background: #fff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.play-scene__word {
  color: var(--c-ink);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.play-scene__item { z-index: 2; height: auto; max-width: none; pointer-events: none; }

/* 料理 */
.play-card--cooking .play-scene { width: 489px; }
.play-card--cooking .play-scene__bubble:nth-of-type(1) { left: 0; top: 0; }
.play-card--cooking .play-scene__bubble:nth-of-type(2) { left: 75px; top: 51px; }
.play-card--cooking .play-scene__bubble:nth-of-type(3) { left: 179px; top: 102px; }
.play-card--cooking .play-scene__word { left: 256px; top: 144px; font-size: 112px; letter-spacing: 0.08em; }
.play-card--cooking .play-scene__item--a {
  left: -29px; top: 70.28px; width: 72px; height: 61.37px;
  -webkit-mask: url(../img/play/mask-cooking.svg) center / 100% 100% no-repeat;
  mask: url(../img/play/mask-cooking.svg) center / 100% 100% no-repeat;
}
.play-card--cooking .play-scene__item--b { left: 185px; top: 257px; width: 56px; }
.play-card--cooking .play-scene__item--c { left: calc(-91.3px + (89.54px - 104px) / 2); top: calc(135.86px + (113.9px - 46.87px) / 2); width: 104px; transform: rotate(-117.45deg); }

/* ゲーム */
.play-card--game .play-scene { width: 512px; }
.play-card--game .play-scene__child { top: 60.1px; height: 193.6px; }
.play-card--game .play-scene__bubble:nth-of-type(1) { left: 14px; top: 0; }
.play-card--game .play-scene__bubble:nth-of-type(2) { left: 98px; top: 51px; }
.play-card--game .play-scene__bubble:nth-of-type(3) { left: 173px; top: 102px; }
.play-card--game .play-scene__word { left: 248px; top: 163.16px; width: 264px; font-size: 96px; letter-spacing: -0.11em; }
.play-card--game .play-scene__item--a { left: -80px; top: 231px; width: 104px; }
.play-card--game .play-scene__item--b { left: calc(44.11px + (96.17px - 80px) / 2); top: calc(204px + (91.22px - 73px) / 2); width: 80px; transform: rotate(15deg); }

/* 実験 */
.play-card--science .play-scene { width: 497px; }
.play-card--science .play-scene__child { left: 22.1px; width: 187.8px; }
.play-card--science .play-scene__bubble:nth-of-type(1) { left: 176px; top: 0; }
.play-card--science .play-scene__bubble:nth-of-type(2) { left: 200px; top: 47px; }
.play-card--science .play-scene__bubble:nth-of-type(3) { left: 219px; top: 94px; }
.play-card--science .play-scene__word { left: 264px; top: 144px; font-size: 112px; letter-spacing: 0.08em; }
.play-card--science .play-scene__item--a { left: -16px; top: -49px; width: 65px; }
.play-card--science .play-scene__item--b { left: -72px; top: 29px; width: 93px; }

/* 身につく力 */
.play-skill {
  position: relative;
  flex: 0 0 345px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  padding: 40px 24px 32px;
  border-radius: 8px;
  background: var(--box-color);
}
.play-card--cooking .play-skill { padding-top: 32px; }
.play-skill__label {
  position: absolute;
  left: 24px;
  top: -16px;
  padding: 5px 16px;
  border-radius: 6px;
  background: #3d3a3a;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.play-skill__text {
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-align: center;
}
.play-skill__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.play-skill__tags li {
  padding: 6px 10px;
  border-radius: 24px;
  background: var(--tag-color);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.play-skill__note { margin-top: -16px; color: rgba(0, 0, 0, .6); font-size: 10px; line-height: 1.6; letter-spacing: 0.08em; white-space: nowrap; }

/* =========================================================
   SUPPORT
========================================================= */
.support { margin-top: 120px; overflow-x: clip; } /* ループする写真は画面の左右の端で切る */
/* 上段の写真：--k 番目の位置（0が左端。小数可）に置き、--low が1なら低い位置。JSが --k を少しずつ減らして一定の速さで左へ流す */
.support__collage {
  --ph: calc(200 * var(--s));    /* 写真の大きさ */
  --pitch: calc(296 * var(--s)); /* 写真の間隔（左端どうし） */
  --hi: calc(33 * var(--s));     /* 高い位置の上端 */
  --lo: calc(94 * var(--s));     /* 低い位置の上端 */
  position: relative;
  width: calc(1384 * var(--s));
  height: calc(294 * var(--s));
  margin: 8px auto calc(-72 * var(--s));
}
.support__collage > * { position: absolute; }
.support__photo {
  left: 0;
  top: 0;
  width: var(--ph);
  height: var(--ph);
  object-fit: cover;
  translate: calc(var(--k, 0) * var(--pitch)) calc(var(--hi) + var(--low, 0) * (var(--lo) - var(--hi)));
}
/* JSが動く前の並び（JSが無効でも同じ配置で表示） */
.support__photo:nth-of-type(2) { --k: 1; --low: 1; }
.support__photo:nth-of-type(3) { --k: 2; }
.support__photo:nth-of-type(4) { --k: 3; --low: 1; }
.support__photo:nth-of-type(5) { --k: 4; }
.support__deco--blue { left: calc(1039 * var(--s)); top: calc(214 * var(--s)); width: calc(112 * var(--s)); z-index: 1; }
.support__deco--flower { left: calc(169 * var(--s)); top: 0; width: calc(113 * var(--s)); z-index: 1; }
/* 左右に最低80px（990px以下は40px）の余白。足りないときは間を80→40pxまで縮め、それでも足りなければ写真と文章を同じ比率で縮める */
.support__main { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: clamp(40px, 100vw - 984px, 80px); width: calc(100% - 160px); margin: 0 auto; }
.support__main-img { width: 424px; min-width: 0; aspect-ratio: 1; object-fit: cover; }
.support__body { display: flex; flex-direction: column; width: 400px; padding-bottom: 72px; }
.support__title { font-weight: 700; font-size: 24px; line-height: 1.6; letter-spacing: 0.08em; }
.support__text { margin-top: 8px; font-size: 12px; line-height: 2; letter-spacing: 0.08em; }
.support__btn { align-self: flex-end; margin-top: 24px; }

/* =========================================================
   ABOUT US
========================================================= */
.about { margin-top: 96px; }
/* 枠が本文の行数で高くなっても切れないよう、高さは最低555px（流れる文字4段分）で枠に合わせて伸ばす */
.about__stage { position: relative; min-height: 555px; margin-top: 40px; padding: 29px 0 25px; overflow: hidden; }
.about__marquee { position: absolute; inset: 0; }
.about__row { position: absolute; left: 0; width: 100%; height: 100px; }
.about__row:nth-child(1) { top: 0; }
.about__row:nth-child(2) { top: 152px; }
.about__row:nth-child(3) { top: 304px; }
.about__row:nth-child(4) { top: 456px; }
.about__track { display: flex; width: 8316px; height: 100px; animation: marquee 120s linear infinite; animation-delay: -37s; }
.about__track img { flex: 0 0 4150px; width: 4150px; height: 100px; margin: 0 4px; max-width: none; }
.about__row--rev .about__track { animation-direction: reverse; animation-delay: -83s; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-4158px); } }

/* 枠の外に出る女の子・バッジが画面からはみ出さないよう、左右に最低80pxの余白を取って枠を縮める */
.about__frame {
  position: relative;
  width: min(894px, calc(100% - 160px));
  margin: 0 auto;
  padding: 32px;
  background: url(../img/about/frame-bg.webp) center / cover no-repeat;
}
.about__box { display: flex; flex-direction: column; align-items: center; padding: 64px; background: #fff; }
.about__title { position: relative; max-width: 500px; text-align: center; font-weight: 700; font-size: 24px; line-height: 1.6; letter-spacing: 0.06em; }
.about__title span { position: relative; z-index: 1; }
.about__title::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 254px;
  height: 18px;
  background: linear-gradient(90deg, #d8f2f0, #ede1d7);
  transform: translateX(-50%);
}
.about__text { max-width: 500px; margin-top: 33px; font-size: 12px; line-height: 2.2; letter-spacing: 0.06em; text-align: center; }
.about__badge { position: absolute; left: -53px; bottom: 249px; width: 72px; height: 72px; } /* 女の子と同じく枠の下端基準にし、枠が高くなっても女の子から離れないようにする */
.about__child { position: absolute; left: -42px; bottom: 0; width: 157px; }

/* =========================================================
   FAQ
========================================================= */
.faq { margin-top: 120px; }
.faq__inner { display: flex; justify-content: space-between; width: min(1200px, calc(100% - 160px)); margin: 0 auto; }
.faq__side { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.faq__side .c-heading { padding-left: 80px; }
/* 画像はパララックス（係数 -0.06。小さい画像なので拡大しすぎないよう控えめ）。枠で角丸と動く分のはみ出しを隠す */
.faq__photo { position: relative; width: 285px; aspect-ratio: 285 / 190; border-radius: 8px; overflow: hidden; }
.faq__img {
  position: absolute; left: 0; width: 100%; object-fit: cover;
  top: calc(var(--parallax-slack, 0px) * -1);
  height: calc(100% + var(--parallax-slack, 0px) * 2);
  will-change: transform;
}
.faq__list { flex: 0 1 707px; }
.faq__item { padding: 24px 16px; border-bottom: 1px solid var(--c-line); }
.faq__q {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 8px;
  list-style: none;
  cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__mark { flex: 0 0 20px; font-family: var(--ff-en); font-weight: 700; font-size: 14px; line-height: 1.6; letter-spacing: 0.06em; }
.faq__q .faq__mark { color: var(--c-mint); }
.faq__q-text { flex: 1 1 auto; margin-left: 16px; font-weight: 700; font-size: 14px; line-height: 1.6; letter-spacing: 0.06em; }
/* ＋／−アイコン（CSSで描画。開くと縦線が回転して横線に重なり − になる） */
.faq__icon {
  position: relative;
  flex: 0 0 32px;
  height: 32px;
  border: 1px solid rgba(0, 0, 0, .4);
  border-radius: 50%;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1px;
  margin: -0.5px 0 0 -5.5px;
  border-radius: 1px;
  background: #000;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open]:not(.is-closing) .faq__icon::after { transform: rotate(0deg); }
.faq__a { display: flex; gap: 16px; padding: 8px 56px 8px 8px; }
.faq__a p { flex: 1 1 auto; margin-left: 16px; font-weight: 400; font-size: 14px; line-height: 1.6; letter-spacing: 0.06em; }

/* =========================================================
   写真帯
========================================================= */
.photo-strip { --strip-h: 480px; position: relative; margin-top: 120px; height: var(--strip-h); }
/* 写真はパララックス（係数 -0.14）。あしらいは枠の外にはみ出すので、写真だけを overflow: hidden の枠に入れる */
.photo-strip__photo { position: relative; height: 100%; overflow: hidden; }
/* 右の緑の服の男の子の頭（髪の右端＝画像の左から1910/2016px）が枠の右端につく位置に置く。
   写真の高さ --h は枠の高さ＋動く分。幅は元画像の比率（3:1）で 3 × --h。
   ただし写真の端が枠の内側に入って隙間ができる場合は、写真の端を枠の端にそろえる */
.photo-strip__img {
  --h: calc(var(--strip-h) + var(--parallax-slack, 0px) * 2);
  position: absolute;
  top: calc(var(--parallax-slack, 0px) * -1);
  left: clamp(calc(100% - var(--h) * 3), calc(100% - var(--h) * 3 * 1910 / 2016), 0px);
  width: calc(var(--h) * 3);
  max-width: none;
  height: var(--h);
  will-change: transform;
}
.photo-strip__deco { position: absolute; height: auto; }
.photo-strip__deco--flower { right: 80px; top: -6px; width: 72px; }
.photo-strip__deco--blob { left: 56px; top: calc(var(--strip-h) - 23px); width: 72px; z-index: 1; } /* 写真の下端に重ねる（高さ480pxのとき457px） */
/* あしらいの浮遊：PLAYの黄色・オレンジと同じ動き（花は上下2.5秒、ピンクは左右3.5秒） */
.photo-strip__deco {
  --float-y: 20px;
  --float-x: 15px;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.photo-strip__deco--flower { animation-name: mv-float-y; animation-duration: 2.5s; }
.photo-strip__deco--blob   { animation-name: mv-float-x; animation-duration: 3.5s; }

/* =========================================================
   COMPANY
========================================================= */
.company { margin-top: 120px; }
.company__inner { display: flex; gap: 160px; width: min(1120px, calc(100% - 160px)); margin: 0 auto; }
.company__inner .c-heading { flex: 0 0 auto; }
.company__table { flex: 1 1 auto; font-size: 12px; letter-spacing: 0.08em; }
.company__row { display: flex; gap: 40px; padding: 24px 0; border-top: 1px solid var(--c-line); line-height: 1.6; }
.company__row dt { flex: 0 0 80px; color: var(--c-mint); font-weight: 700; }

/* =========================================================
   ONE UP REVIEW
========================================================= */
/* 現行サイト（aogy-c.com の .section-review）と同じ大きさ・余白。
   現行の rem 指定は calc(数値 * var(--lr)) に置き換え（--lr は現行のhtml font-sizeと同値。画面幅に比例して伸び縮みする）
   上下の余白は、現行の margin（相殺後の値）を下に配置される要素の margin-top に持たせている */
.review { position: relative; margin-top: 160px; padding: calc(18.6 * var(--lr)) 0 calc(8.7 * var(--lr)); background: #f7fafa; -webkit-font-smoothing: auto; } /* 文字の太さの見え方も現行（指定なし）に合わせる */
.review .c-heading { position: absolute; top: calc(-4.4 * var(--lr)); left: 0; width: 100%; }
.review .c-heading__en { font-size: calc(5.8 * var(--lr)); line-height: 1.3448275862; letter-spacing: calc(0.232 * var(--lr)); }
.review .c-heading__ja { margin-top: calc(0.9 * var(--lr)); font-size: calc(1.6 * var(--lr)); line-height: 1; letter-spacing: calc(0.192 * var(--lr)); }
.review__box {
  position: relative;
  width: calc(120 * var(--lr));
  margin: 0 auto;
  padding: calc(6.5 * var(--lr)) calc(12.2 * var(--lr)) calc(7.1 * var(--lr));
  background: url(../img/review/frame.webp) center / 100% 100% no-repeat;
  color: #000;
  font-size: calc(1.6 * var(--lr));
  line-height: 1;
}
.review__label {
  position: absolute;
  left: calc(12.2 * var(--lr));
  top: calc(-1.8 * var(--lr));
  padding: calc(1 * var(--lr)) calc(1.3 * var(--lr));
  background: #000;
  color: #fff;
  font-weight: 500;
  font-size: calc(2 * var(--lr));
  line-height: 1;
  letter-spacing: calc(0.35 * var(--lr));
}
.review__lead { font-weight: 500; font-size: calc(1.89 * var(--lr)); line-height: 1.8; letter-spacing: calc(0.12 * var(--lr)); text-align: justify; }
.review__group { margin-top: calc(3.1 * var(--lr)); text-align: center; }
.review__group + .review__group { margin-top: calc(6 * var(--lr)); }
.review__year { font-weight: 500; font-size: calc(1.89 * var(--lr)); line-height: 1; letter-spacing: calc(0.15 * var(--lr)); }
.review__place { margin-top: calc(4 * var(--lr)); font-weight: 500; font-size: calc(1.62 * var(--lr)); line-height: 1; letter-spacing: calc(0.13 * var(--lr)); }
.review__year + .review__place { margin-top: calc(2.2 * var(--lr)); }
.review__links li { margin-top: calc(2.7 * var(--lr)); }
.review__links li:first-child { margin-top: calc(3 * var(--lr)); }
.review__links a { font-weight: 500; font-size: calc(1.62 * var(--lr)); letter-spacing: calc(0.13 * var(--lr)); text-decoration: underline; text-underline-offset: 1px; transition: all .3s; }
.review__links a br { display: none; }
@media (hover: hover) { .review__links a:hover { opacity: .5; } }


/* =========================================================
   スモール（≤1280px）
========================================================= */
/* PLAY 1281〜1418px：横並びのままだとパネル（イラスト＋身につく力）が右にはみ出すため、
   ・カードの左右余白 32→16px、文章とパネルの間 40→24px、パネル内の左余白 40→24px、イラストと身につく力の間 24→8px を幅に合わせて詰める（1419pxで元の値、1281pxで最小）
   ・イラストを 0.88倍（1100px以下と同じ倍率）に縮める */
@media (min-width: 1281px) and (max-width: 1418.98px) {
  .play-card__body { gap: calc(11.594vw - 124.5px); padding-left: calc(11.594vw - 132.5px); padding-right: calc(11.594vw - 132.5px); }
  /* 右の点々（右16px・幅8px）と「身につく力」の間を1440pxと同じ16px確保するため、パネルの右余白は40pxのまま。
     その分、イラストと「身につく力」の間（gap）を 24→8px に詰める */
  .play-card__panel { gap: calc(11.594vw - 140.5px); padding-left: calc(11.594vw - 124.5px); }
  .play-scene { zoom: .88; }
}

@media (max-width: 1280px) {

  .intro__box { padding: 40px 48px; }
  .intro__catch { width: auto; }
  .intro__catch span { font-size: 26px; }
  .intro__text { width: 300px; }
  .intro__child { width: 280px; }

  .pickup__item { align-items: flex-start; gap: 40px; }

  .play-card__body { flex-direction: column; align-items: stretch; }
  /* 横並び用の flex-basis 338px が縦並びでは「高さ」として効いてしまうため解除 */
  .play-card__intro { flex: none; display: grid; grid-template-columns: auto 1fr; column-gap: 40px; align-items: end; }
  .play-card__lead { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; max-width: 560px; }
  .play-card:not(:first-child) .play-card__intro { display: none; } /* 縦並びではPLAYの説明は1枚目（料理）だけ。SPと同じ */
  .play-card__panel { flex-basis: auto; }

  .faq__side .c-heading { padding-left: 0; }
  .faq__list { margin-left: 40px; }
  .company__inner { gap: 80px; }
}

@media (max-width: 1100px) {
  .play-scene { zoom: .88; }
}

/* 導入 818〜1140px：3列だと男の子が文章に重なるため、Figma「Frame 296」(1692:14875) の
   キャッチ2行 → 本文、男の子は右下 のレイアウトに切り替える */
@media (min-width: 818px) and (max-width: 1140px) {
  .intro__box { flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 40px 80px; }
  .intro__catch { display: grid; grid-template-columns: auto auto; row-gap: 4px; width: auto; }
  .intro__catch span:nth-child(1) { margin-right: -24px; } /* 1行目の2つの帯をつなげて1本に見せる */
  .intro__catch span:nth-child(3) { grid-column: 1 / -1; justify-self: start; }
  .intro__text { width: 380px; margin-top: 20px; }
  .intro__child { left: auto; right: 0; width: 360px; transform: none; }
  .intro__tri--2 { top: 71px; }
  .intro__tri--3 { top: 43px; }
  .intro__dots { top: auto; bottom: -24px; }
}
/* 818〜990px：男の子と本文が重ならないよう、本文と男の子を縮める */
@media (min-width: 818px) and (max-width: 990px) {
  .about__box { padding-left: 96px; padding-right: 96px; } /* ABOUTの女の子が本文に重ならないよう、白枠の左右余白を広げる */
  /* 左右の余白を80→40px（SPのintroの約41pxとそろえ、PC/SP切り替えで端の位置がほぼ変わらないようにする） */
  .intro__box, .pickup__inner, .everyday__inner, .support__main { width: calc(100% - 80px); }
  .intro__text { width: 300px; font-size: 12px; }
  .intro__child { width: 280px; }
}

/* 818〜990px：PCレイアウトの最小幅帯。PLAYの「身につく力」パネルが切れないよう、左右並びのまま縮める */
@media (min-width: 818px) and (max-width: 990px) {
  .play-scene { zoom: .72; }
  .play-skill { flex: 0 1 345px; min-width: 260px; }
  .play-skill__note { white-space: normal; }
}

/* 818〜990px：FAQ・COMPANYは左右並びだと右側が窮屈になるため、817px以下と同じ縦並びにする（見出しが上、中身はその下）。
   幅はPICK UPなどと同じく左右の余白40px。FAQの写真は817px以下と同じく非表示（ユーザー確認済み）。文字の大きさ・セクション間の余白はPCのまま */
@media (min-width: 818px) and (max-width: 990px) {
  .faq__inner, .company__inner { flex-direction: column; gap: 0; width: calc(100% - 80px); }
  .faq__photo { display: none; }
  .faq__list { flex: none; margin: 24px 0 0; }
  .faq__item { padding-left: 0; padding-right: 0; } /* 質問の行を会社概要の表と同じくらいの幅に広げる（817px以下と同じ） */
  .faq__q { gap: 8px; align-items: flex-start; }
  .faq__q-text { margin-left: 8px; }
  .faq__a { gap: 8px; padding-right: 8px; }
  .faq__a p { margin-left: 8px; }
  .company__table { margin-top: 32px; }
}

/* 818〜990px：写真帯は480pxだと画面幅に対して大きく見えるため、360pxに下げる（ユーザー確認済み） */
@media (min-width: 818px) and (max-width: 990px) {
  .photo-strip { --strip-h: 360px; }
}

/* =========================================================
   タブレット・SP（818px未満。現行サイトと同じ切り替え幅）
   ※SPデザインがあるのは MV・PLAY のみ。他セクションはPC/SP_PLAYに準じたレイアウト（ユーザー確認済み）
========================================================= */
@media not screen and (min-width: 818px) {
  :root {
    /* SPデザイン（375）基準の単位。タブレットでは600pxで止める */
    --u: calc(min(100vw, 600px) / 375);
  }


  /* ---------- 共通 ---------- */
  /* 現行 .news-btn の375px時の実寸 */
  .c-btn { width: 280px; padding-right: 5px; font-size: 12px; }
  .c-btn::after { right: 25px; width: 4.48px; height: 7.48px; }
  .c-heading__en { font-size: 40px; }
  .c-heading--row { flex-direction: column; align-items: flex-start; }
  .c-heading--row .c-heading__ja { margin-left: 0; margin-top: 8px; }
  .c-stars { width: calc(100% - 40px); margin-top: 56px; } /* CTAの下（PLAYの上）の星の帯。前後を詰めて56px */
  .c-stars img:nth-child(odd) { width: 32px; height: auto; }
  .c-stars img:nth-child(even) { width: 16px; height: auto; }
  .c-stars img:nth-child(n+7) { display: none; }
  .c-stars--support { margin-top: 64px; }

  /* ---------- MV（SP_MV 375×650 基準） ---------- */
  .mv {
    /* ヘッダーは画面幅に比例、MVは600pxで拡大が止まるため、600px超でヘッダーと重ならないよう下げる */
    padding-top: max(0px, calc(var(--header-h) - 50 * var(--u)));
    /* 写真の幅：左右の余白を375px時の16pxから比例させ、最大32pxにする */
    --mv-pw: calc(100vw - 2 * min(100vw * 16 / 375, 32px));
    /* 写真の左端（ここを基準にあしらいを置く） */
    --mv-pl: calc(50% - var(--mv-pw) / 2);
    /* 写真が375基準より大きくなった分の高さ。写真より下の要素をこの分下げる */
    --mv-shift: calc((var(--mv-pw) - 343 * var(--u)) * 692 / 764);
  }
  .mv__stage { height: calc(650 * var(--u) + var(--mv-shift)); }
  .mv__bg { left: 0; right: 0; top: calc(50 * var(--u)); height: calc(343 * var(--u) + var(--mv-shift)); }
  .mv__photo { left: var(--mv-pl); top: calc(66 * var(--u)); width: var(--mv-pw); }
  .mv__watermark { display: none; }
  .mv__title { left: 50%; top: calc(346 * var(--u) + var(--mv-shift)); width: auto; transform: translateX(-50%); }
  .mv__logo img { width: calc(256 * var(--u)); }
  .mv__lead { margin-top: 0; font-size: calc(13 * var(--u)); letter-spacing: 0.16em; }
  .mv__script { display: none; }
  .mv__stack { left: calc(50% - 85.4 * var(--u)); top: calc(461 * var(--u) + var(--mv-shift)); width: calc(170.8 * var(--u)); height: calc(151.5 * var(--u)); }
  .mv__badge { left: calc(150 * var(--u)); top: calc(94 * var(--u)); width: calc(64 * var(--u)); height: calc(64 * var(--u)); }
  /* 文字サイズは10px固定でお花だけ拡大するため、位置を固定値にせずお花の中心にそろえる */
  .mv__badge span { top: 50%; transform: translate(-50%, -50%); font-size: 10px; letter-spacing: 0.08em; }
  .mv__deco {
    width: calc(31.6 * var(--u));
    /* あしらいの大きさ（PCの約0.44倍）に合わせて浮遊の距離も縮める */
    --float-y: calc(8.8 * var(--u));
    --float-x: calc(6.6 * var(--u));
  }
  .mv__deco--tl1, .mv__deco--tl2 { display: none; }
  /* あしらいは写真の左端（375基準で x=16）からの距離で置く */
  .mv__deco--red { left: calc(var(--mv-pl) + (10 - 16) * var(--u)); top: calc(59 * var(--u)); }
  .mv__deco--blue { left: calc(var(--mv-pl) + (52 - 16) * var(--u)); top: calc(70 * var(--u)); }
  .mv__deco--navy { left: calc(var(--mv-pl) + (94 - 16) * var(--u)); top: calc(58 * var(--u)); }
  .mv__deco--pink { left: calc(var(--mv-pl) + (29 - 16) * var(--u)); top: calc(223.8 * var(--u)); width: calc(32 * var(--u)); }
  .mv__deco--pink2 { display: block; left: calc(var(--mv-pl) + (46 - 16) * var(--u)); top: calc(612.8 * var(--u) + var(--mv-shift)); width: calc(32 * var(--u)); }
  .mv__deco--red2 { display: block; left: calc(var(--mv-pl) + (20 - 16) * var(--u)); top: calc(587 * var(--u) + var(--mv-shift)); width: calc(35.4 * var(--u)); transform: rotate(180deg); }
  .mv__pager, .mv__scroll { display: none; }

  /* ---------- 導入 ---------- */
  .intro { margin-top: 40px; }
  .intro__box {
    flex-direction: column;
    align-items: flex-start;
    width: 90%; /* 画面幅の90% */
    min-height: 0;
    padding: 32px 20px 177px; /* 本文と男の子の間を、キャッチと本文の間と同じ約24pxにする */
  }
  .intro__catch span { font-size: 22px; }
  .intro__text { width: auto; margin-top: 24px; font-size: 13px; line-height: 2; }
  .intro__child { left: 50%; width: 260px; bottom: -18px; }
  .intro__tri--1 { right: 48px; top: 16px; }
  .intro__tri--2 { right: 30px; top: 44px; }
  .intro__tri--3 { right: 10px; top: 20px; }
  .intro__dots { left: -12px; top: auto; bottom: -24px; width: 44px; }

  /* ---------- PICK UP ---------- */
  .pickup { margin-top: 80px; }
  .pickup__inner { width: 90%; } /* introとそろえる */
  .pickup__list { margin-top: 32px; }
  .pickup__item, .pickup__item--reverse { flex-direction: column; align-items: stretch; gap: 0; }
  .pickup__item + .pickup__item { margin-top: 56px; }
  .pickup__img { flex: none; width: 100%; }
  .pickup__body { flex: none; margin-top: 24px; }
  .pickup__title { font-size: 16px; }
  .pickup__text { font-size: 12px; -webkit-line-clamp: 4; }
  .pickup__body .c-btn { align-self: center; margin-top: 24px; }

  /* ---------- EVERYDAY ---------- */
  .everyday { margin-top: 80px; }
  .everyday__inner { width: 90%; } /* introとそろえる */
  .everyday__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; margin-top: 32px; }

  /* ---------- CTA ---------- */
  .c-cta { margin-top: 80px; } /* SPのセクション間は80px（PCの120pxに対して） */
  .c-cta--after-about { margin-top: 40px; } /* ABOUTの下のCTAだけ詰めて40px */
  .c-cta__frame { padding: 16px; } /* 背景の枠と白いボックスの余白は四方16px */
  .c-cta__box {
    flex-direction: column-reverse;
    gap: 24px;
    padding: 24px 20px 32px;
  }
  .c-cta__body { flex: none; }
  .c-cta__photo { flex: none; aspect-ratio: 429 / 268; }
  .c-cta__btns { flex-direction: column; }
  .c-cta__btn { flex: none; padding: 16px; }
  /* SP：写真の内側右下（右・下8px）に収める。白地に重なると見えないため。
     写真の上端 = 枠16px + ボックス24px、写真の高さ = 写真の幅 × 268/429、ロゴの高さ = 160px × 399分の幅 */
  .c-cta__script {
    right: 44px;
    top: calc(40px + (100cqi - 40px) * 268 / 429 - 160px * 160 / 399 - 8px);
    bottom: auto;
    width: 160px;
  }

  /* ---------- PLAY（SP_PLAY 基準） ---------- */
  .play { margin-top: 56px; padding: 0; } /* 星の帯〜PLAYも56px */
  /* 固定バー（教室見学ご希望の方はこちら）が出る幅では、カードを重ねる演出をやめて通常のスクロールにする。
     カードが画面下端で止まると、下の部分が固定バーに隠れて見えないため */
  .play-card { position: relative; top: auto; }
  .play { --play-hold: 0px; }
  .play__hold { display: none; }
  .play-card { border-radius: 0; }
  .play-card + .play-card { margin-top: var(--play-hold); }
  .play-card__photo { height: 200px; }
  .play-card__photo picture { top: -8%; height: 116%; }
  .play-card__deco { width: 40px; --float-y: 11px; --float-x: 8px; } /* あしらいの縮小率（40/71.8）に合わせて揺れ幅も縮める */
  .play-card__deco--y { left: auto; right: 32px; top: 16px; }
  .play-card__deco--o { left: 48px; top: 181px; }
  .play-card__body { display: block; padding: 24px 10px; }
  .play-card__intro { display: block; padding: 0 10px; }
  .play-card__en { font-size: 48px; letter-spacing: 0.04em; }
  .play-card__ja { margin-top: 0; }
  .play-card__lead { margin-top: 16px; line-height: 1.4; max-width: none; }
  .play-card__panel { flex-direction: column; align-items: stretch; gap: 40px; margin-top: 24px; padding: 24px; }
  .play-card:not(:first-child) .play-card__panel { margin-top: 0; }
  .play-card__dots { display: none; }

  .play-scene, .play-card--cooking .play-scene, .play-card--game .play-scene, .play-card--science .play-scene { width: 100%; height: 355px; zoom: 1; }
  .play-scene__child, .play-card--game .play-scene__child, .play-card--science .play-scene__child { left: 0; right: 0; top: 0; width: 100%; height: 251px; }
  .play-scene__child, .play-scene__child img { object-fit: contain; }
  .play-scene__child img { width: 100%; height: 100%; }
  /* ゲームの男の子だけ少し小さく（高さ251→226px＝約9割）。下端の位置は変えず、上を下げる */
  .play-card--game .play-scene__child { top: 25px; height: 226px; }
  .play-card--game .play-scene__child img { object-position: center bottom; }
  .play-scene__word { left: 0 !important; right: 0; width: auto !important; }

  .play-card--cooking .play-scene__bubble:nth-of-type(1) { left: 0; top: 21px; }
  .play-card--cooking .play-scene__bubble:nth-of-type(2) { left: 45.47%; top: 74px; }
  .play-card--cooking .play-scene__bubble:nth-of-type(3) { left: 14.15%; top: 220px; }
  .play-card--cooking .play-scene__word { top: 267px; font-size: 88px; letter-spacing: 0.08em; }
  .play-card--cooking .play-scene__item--a { left: 17px; top: 86.3px; }
  .play-card--cooking .play-scene__item--b { left: auto; right: -14px; top: 178px; }
  .play-card--cooking .play-scene__item--c { left: calc(-10.6px + (72.2px - 104px) / 2); top: calc(152.5px + (112.6px - 46.87px) / 2); transform: rotate(-105deg); }

  .play-card--game .play-scene__bubble:nth-of-type(1) { left: 0.26%; top: 8px; }
  .play-card--game .play-scene__bubble:nth-of-type(2) { left: auto; right: 16px; top: 40px; } /* 「もっと遊びたかった..」は右端から16px */
  .play-card--game .play-scene__bubble:nth-of-type(3) { left: 67.41%; top: 86px; }
  .play-card--game .play-scene__word { top: 267px; font-size: 72px; letter-spacing: 0.08em; } /* カタカナは大きく見えるので、料理・実験（88px）より小さめに */
  .play-card--game .play-scene__item--a { left: 75.76%; top: -6px; width: 24.24%; } /* サイコロをちょっとだけ上に */
  .play-card--game .play-scene__item--b { left: calc(51.35% + 4px); top: 124px; width: 72px; transform: rotate(14.59deg); } /* ヘッドフォンを気持ち小さく（80→72px）。中心の位置は変えない */

  .play-card--science .play-scene__bubble:nth-of-type(1) { left: 58.31%; top: 0; }
  .play-card--science .play-scene__bubble:nth-of-type(2) { left: 32.56%; top: 159px; }
  .play-card--science .play-scene__bubble:nth-of-type(3) { left: 59.3%; top: 199px; }
  .play-card--science .play-scene__word { top: 267px; font-size: 88px; letter-spacing: 0.08em; }
  .play-card--science .play-scene__item--a { left: 2.69%; top: 24px; width: 19.46%; }
  .play-card--science .play-scene__item--b { left: 5.12%; top: 98px; width: 25.02%; }

  .play-skill, .play-card--cooking .play-skill { flex: none; gap: 16px; padding: 32px 24px 24px; }
  .play-skill__note { margin-top: -8px; white-space: normal; }

  /* ---------- SUPPORT ---------- */
  .support { margin-top: 64px; } /* SUPPORT・ABOUT・その下のCTAは、詰めて見せるため64px */
  /* SP：PCと同じジグザグの1列。写真の大きさは以前の3列表示（(画面幅 - 56px) / 3、タブレットは最大幅600pxの3列分）の1.2倍、
     間隔・高低差はPCの比率（間隔 = 写真 × 296/200、高低差 = 写真 × 61/200） */
  .support__collage {
    --ph: min(calc((100vw - 56px) / 3 * 1.2), 233.6px);
    --pitch: calc(var(--ph) * 1.48);
    --hi: 0px;
    --lo: calc(var(--ph) * .305);
    width: calc(100% - 40px);
    height: calc(var(--ph) * 1.305);
    margin: 32px auto 0;
  }
  /* あしらい：PCの写真との位置関係を写真の大きさ（--ph）の比率で再現。花は写真帯の左上、青は右下（PCはPC用の位置） */
  .support__deco--flower { left: 0; top: calc(var(--ph) * -0.165); width: calc(var(--ph) * 0.45); } /* PCの比率（0.565）より2割小さく */
  .support__deco--blue { left: auto; right: 0; top: calc(var(--ph) * 0.905); width: calc(var(--ph) * 0.45); } /* PCの比率（0.56）より2割小さく */
  .support__main { flex-direction: column; align-items: stretch; gap: 0; width: calc(100% - 40px); margin: 48px auto 0; }
  .support__main-img { width: 100%; }
  .support__body { width: auto; padding-bottom: 0; margin-top: 24px; }
  .support__btn { align-self: center; } /* SPはボタンを中央寄せ（PCは右寄せのまま） */
  .support__title { font-size: 20px; }
  .support__text { font-size: 13px; }

  /* ---------- ABOUT ---------- */
  .about { margin-top: 64px; }
  .about__stage { min-height: 0; margin-top: 32px; padding: 24px 0 40px; }
  .about__frame { width: calc(100% - 32px); padding: 16px; }
  .about__box { padding: 40px 20px 200px; }
  .about__title { max-width: none; font-size: 20px; }
  .about__title::before { width: 220px; height: 14px; }
  .about__text { max-width: none; margin-top: 24px; font-size: 13px; line-height: 2; text-align: left; }
  .about__text br { display: none; }
  .about__child { left: calc(50% - 55px); bottom: 16px; width: 110px; } /* 画像（幅110px）の中心を画面の中央に合わせる */
  .about__badge { left: calc(50% - 125px); top: auto; bottom: 120px; } /* 女の子と同じだけ右へ */

  /* ---------- FAQ ---------- */
  .faq { margin-top: 64px; }
  .faq__inner { flex-direction: column; width: calc(100% - 40px); }
  .faq__photo { display: none; }
  .faq__list { flex: none; margin: 24px 0 0; }
  .faq__item { padding: 16px 0; }
  .faq__q { gap: 8px; align-items: flex-start; }
  .faq__q-text { margin-left: 8px; }
  .faq__a { gap: 8px; padding-right: 8px; }
  .faq__a p { margin-left: 8px; }

  /* ---------- 写真帯 ---------- */
  .photo-strip { --strip-h: 240px; margin-top: 80px; }
  .photo-strip__deco--flower { right: 20px; top: -16px; width: 48px; --float-y: 13px; } /* 揺れ幅もあしらいの縮小率（48/72）に合わせる */
  .photo-strip__deco--blob { left: 20px; top: 210px; width: 44px; --float-x: 9px; } /* 同上（44/72） */

  /* ---------- COMPANY ---------- */
  .company { margin-top: 80px; }
  .company__inner { flex-direction: column; gap: 0; width: calc(100% - 40px); }
  .company__table { margin-top: 32px; font-size: 13px; }
  .company__row { gap: 16px; padding: 20px 0; }

  /* ---------- REVIEW（現行サイトのSPと同じ） ---------- */
  /* 画面幅406px以上では大きさの基準を止める（本文 2.4 × 5.4167 = 13px。ABOUT・COMPANYの本文とそろえる）。405px以下は現行と同じ比率 */
  .review { --lr: min(1.3333vw, 5.4167px); margin-top: 120px; padding-top: calc(19.9 * var(--lr)); }
  .review .to-top-scroll { --lr: 1.3333vw; } /* TO TOP はREVIEWの中にあるが、現行どおりの大きさのままにする */
  .review .c-heading__en { font-size: calc(6.2 * var(--lr)); line-height: 1.3387096774; letter-spacing: calc(0.248 * var(--lr)); }
  .review .c-heading__ja { margin-top: calc(0.5 * var(--lr)); font-size: calc(2 * var(--lr)); letter-spacing: calc(0.24 * var(--lr)); }
  .review__box { width: min(600px, 89.33vw); /* 現行の 67rem（= 89.33vw）。周りのセクションと同じく最大600px */ padding: calc(6.5 * var(--lr)) calc(4 * var(--lr)) calc(4.9 * var(--lr)); background-image: url(../img/review/frame-sp.webp); }
  .review__label { left: calc(6 * var(--lr)); top: calc(-2.9 * var(--lr)); padding: calc(1.2 * var(--lr)) calc(1.7 * var(--lr)) calc(1.3 * var(--lr)); font-size: calc(3.2 * var(--lr)); }
  .review__lead { font-size: calc(2.4 * var(--lr)); line-height: 1.83; letter-spacing: calc(0.15 * var(--lr)); }
  .review__group { margin-top: calc(4.5 * var(--lr)); }
  .review__group + .review__group { margin-top: calc(7 * var(--lr)); }
  .review__year { font-weight: 700; font-size: calc(2.4 * var(--lr)); }
  .review__place { font-size: calc(2.4 * var(--lr)); letter-spacing: calc(0.17 * var(--lr)); }
  .review__year + .review__place { margin-top: calc(3.2 * var(--lr)); }
  .review__links li { margin-top: calc(1.9 * var(--lr)); }
  .review__links a { font-size: calc(2.4 * var(--lr)); line-height: 1.84; letter-spacing: calc(0.17 * var(--lr)); }
  .review__links a br { display: inline; }


}

/* 導入 541〜817px：PCの818〜1140pxと同じ Figma「Frame 296」(1692:14875) のレイアウト（キャッチ2行 → 本文、男の子は右下）。
   箱が狭いので、文字・余白・男の子を 541px→817px で比例させ、817pxでPCの818pxとほぼ同じ値にする */
@media (min-width: 541px) and (max-width: 817.98px) {
  .intro__box {
    --d: calc(100vw - 541px);                    /* 541pxで0、817pxで276px */
    --pad-x: calc(24px + var(--d) * 24 / 276);   /* 左右の内余白 24→48px */
    --boy-w: calc(200px + var(--d) * 80 / 276);  /* 男の子 200→280px */
    padding: 32px var(--pad-x);
  }
  .intro__catch { display: grid; grid-template-columns: auto auto; row-gap: 4px; }
  .intro__catch span { font-size: calc(20px + var(--d) * 6 / 276); } /* 20→26px */
  .intro__catch span:nth-child(1) { margin-right: -24px; } /* 1行目の2つの帯をつなげて1本に見せる */
  .intro__catch span:nth-child(3) { grid-column: 1 / -1; justify-self: start; }
  /* 本文は男の子の手前16pxまで（最大380px） */
  .intro__text { width: auto; max-width: min(380px, calc(100% + var(--pad-x) - var(--boy-w) - 16px)); margin-top: 20px; font-size: 12px; line-height: 2.2; }
  .intro__child { left: auto; right: 0; bottom: -18px; width: var(--boy-w); transform: none; }
}

/* タブレット：SPレイアウトが広がりすぎないよう、中身の幅を600pxまでに抑える */
@media (min-width: 691px) and (max-width: 817.98px) {
  .support__collage, .support__main,
  .about__frame, .faq__inner, .company__inner { max-width: 600px; } /* REVIEWは現行サイトと同じ比率で伸縮させるため対象外 */
  .play-card__intro, .play-card__panel { max-width: 600px; margin-left: auto; margin-right: auto; }

  /* PLAY 691〜817px：カードの外側と説明部分は 818〜1280px（タブレット）と同じ。パネルの中だけSPと同じ縦積み */
  .play { padding: 0 8px; }
  .play-card { border-radius: 8px; }
  .play-card + .play-card { margin-top: calc(16px + var(--play-hold)); }
  .play-card__photo { height: 351px; }
  .play-card__photo picture { top: -15%; height: 130%; }
  .play-card__deco { width: 71.8px; --float-y: 20px; --float-x: 15px; }
  .play-card__deco--y { left: calc(100% - 168px); right: auto; top: 35px; }
  .play-card__deco--o { left: 143px; top: 301px; }
  .play-card__body { display: flex; padding: 40px 32px; }
  .play-card__intro { display: grid; padding: 0; }
  .play-card__en { font-size: 56px; }
  .play-card__ja { margin-top: 8px; }
  .play-card__lead { margin-top: 0; line-height: 1.8; max-width: 560px; }
  .play-card__panel { margin-top: 0; }
  /* イラストのエリアが広すぎると吹き出し・道具が子どもから離れて間延びするため、最大400pxで中央寄せ */
  .play-scene, .play-card--cooking .play-scene, .play-card--game .play-scene, .play-card--science .play-scene { max-width: 400px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 690px) {
  .c-heading__en { font-size: 36px; }
  .everyday__list { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 360px) {
  .c-heading__en { font-size: 30px; }
  .intro__catch span { font-size: 19px; }
  .play-card--cooking .play-scene__word, .play-card--science .play-scene__word { font-size: 76px; }
  .play-card--game .play-scene__word { font-size: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .about__track { animation: none; }
  .mv__deco { animation: none; }
  .play-card__deco, .play-scene__item { animation: none; }
  .photo-strip__deco { animation: none; }
}

/* =========================================================
   ヘッダー・SPドロワー・フッター
   現行サイト（aogy-c.com / テーマ oneup）と同一仕様で移植
   - 現行の rem 指定は calc(数値 * var(--lr)) に置き換え（--lr は現行のhtml font-sizeと同値）
   - 切り替え幅も現行と同じ 818px
   - 上下余白は下に配置される要素の margin-top で管理（見た目は現行と同一）
========================================================= */
@font-face {
  font-family: "OneUp Futura";
  src: url("../font/Futura-Med.woff") format("woff");
  font-display: swap;
}

.l-header,
.drawer-icon,
.drawer-content,
.l-footer {
  font-size: calc(1.6 * var(--lr)); /* 現行 body の font-size: 1.6rem */
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  -webkit-font-smoothing: auto;
  -webkit-tap-highlight-color: transparent;
}
.l-header img,
.drawer-content img,
.l-footer img { display: inline; vertical-align: bottom; }
.l-header picture,
.l-footer picture { display: inline; }

/* ---------- ヘッダー ---------- */
.l-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 10; }
.l-header .header-wrapper { position: relative; display: flex; align-items: center; width: 100%; height: 85px; background: #fff; opacity: 0.9; }
.l-header .contact-btn { display: flex; align-items: center; justify-content: center; width: 171px; height: 85px; padding-bottom: calc(1 * var(--lr)); background: #000; color: #fff; font-size: 15px; letter-spacing: 1.2px; transition: 0.3s; }
.l-header .contact-btn:hover { opacity: 0.7; transition: 0.3s; }
.header-logo { width: calc(17.4 * var(--lr)); height: calc(4.2 * var(--lr)); margin-left: calc(2.9 * var(--lr)); }
.header-logo img { width: 100%; }
.header-nav { display: flex; align-items: center; margin-left: auto; }
.header-nav__wrapper { display: flex; }
.header-nav__list { margin-right: calc(4.5 * var(--lr)); }
.header-nav__list:last-child { margin-right: calc(5.5 * var(--lr)); }
.header-nav__list a { position: relative; color: #000; font-family: "OneUp Futura"; font-size: 15px; letter-spacing: 1.2px; }
.header-nav__list a::after { content: ""; position: absolute; left: -3px; bottom: -4.5px; width: 105%; height: 1px; background: #000; transform: scale(0, 1); transform-origin: center top; transition: all 0.3s; }
.header-nav__list a:hover::after { transform: scale(1, 1); }

/* ---------- SPドロワー ---------- */
.drawer-icon { display: none; position: fixed; top: calc(4 * var(--lr)); right: calc(5 * var(--lr)); z-index: 300; height: calc(3.2 * var(--lr)); transition: transform 0.5s ease 0s; }
.drawer-icon.is-active .drawer-icon__bar1 { top: calc(1.3 * var(--lr)); transform: translateY(-50%) rotate(45deg); }
.drawer-icon.is-active .drawer-icon__bar2 { display: none; }
.drawer-icon.is-active .drawer-icon__bar3 { top: calc(1.3 * var(--lr)); transform: translateY(-50%) rotate(-45deg); }
.drawer-icon__bars { position: relative; display: block; width: calc(5.2 * var(--lr)); height: calc(3.2 * var(--lr)); cursor: pointer; }
.drawer-icon__bar1,
.drawer-icon__bar2,
.drawer-icon__bar3 { content: ""; position: absolute; top: 0; left: 0; width: calc(5.2 * var(--lr)); height: calc(0.2 * var(--lr)); background: #333333; }
.drawer-icon__bar1 { top: 0; }
.drawer-icon__bar2 { top: calc(1.3 * var(--lr)); }
.drawer-icon__bar3 { top: calc(2.6 * var(--lr)); }
.drawer-content { position: fixed; top: calc(10.1 * var(--lr)); right: 0; z-index: 299; width: 100%; background: #fff; transform: translateX(105%); transition: transform 0.5s ease 0s; }
.drawer-content.is-active { transform: translateX(0); }
.drawer-content-wrapper { position: relative; height: inherit; padding-bottom: calc(33.2 * var(--lr)); }
.drawer-content__items { position: relative; padding-top: calc(3.6 * var(--lr)); }
.drawer-content__item { position: relative; display: flex; align-items: center; width: calc(67 * var(--lr)); height: calc(12.9 * var(--lr)); margin: 0 auto; border-bottom: 1px solid #D0D0D0; }
.drawer-content__item::after { content: ""; position: absolute; top: 50%; right: calc(2 * var(--lr)); width: calc(1.2 * var(--lr)); height: calc(6 * var(--lr)); background: url(../img/common/drawer-arrow.svg) no-repeat center center / contain; transform: translateY(-50%); }
.drawer-content__item a { display: block; margin-top: calc(1 * var(--lr)); color: #1A1A1A; font-family: "OneUp Futura"; font-size: min(calc(3.6 * var(--lr)), 36px); letter-spacing: calc(0.36 * var(--lr)); text-decoration: none; }
.drawer-bottom-bg { position: absolute; bottom: 0; left: 0; width: 100%; height: calc(10.5 * var(--lr)); background: url(../img/common/drawer-bottom.png) no-repeat center center / cover; }
.drawer-background { display: none; position: fixed; top: 0; left: 0; z-index: 298; width: 100%; height: 100%; }
.drawer-background.is-active { display: block; }

/* ドロワー内ボタン（現行 .btnType01） */
.btnType01 { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; width: calc(28.8 * var(--lr)); max-width: 288px; height: calc(6 * var(--lr)); max-height: 60px; overflow: hidden; border-radius: 60px; background: #fff; color: #000; font-size: calc(1.4 * var(--lr)); font-weight: 500; letter-spacing: calc(0.112 * var(--lr)); cursor: pointer; transition: ease 0.2s; }
.btnType01:hover { color: #fff; }
.btnType01::before { content: ""; position: absolute; top: 0; left: 0; z-index: 2; width: 101%; height: 101%; background: #000; transform: scale(0, 1); transform-origin: right top; transition: transform 0.6s cubic-bezier(0.8, 0, 0.2, 1) 0s; }
.btnType01:hover::before { z-index: -1; transform: scale(1, 1); transform-origin: left top; }
.drawer-content .contact-btn { position: relative; margin: calc(8.1 * var(--lr)) auto 0; background: #000; color: #fff; letter-spacing: calc(0.288 * var(--lr)); }
.drawer-content .contact-btn::after { content: ""; position: absolute; top: 50%; right: calc(5.2 * var(--lr)); width: calc(0.7 * var(--lr)); height: calc(1.3 * var(--lr)); background: url(../img/common/arrow-white.svg) no-repeat center center / cover; transform: translateY(-50%); }

/* ---------- フッター ---------- */
.l-footer { padding-top: calc(6.1 * var(--lr)); background: #000; }
.l-footer .inner { width: calc(142 * var(--lr)); max-width: 1420px; margin: 0 auto; }
.footer-wrapper { display: flex; justify-content: space-between; }
.footer-logo { width: calc(17.4 * var(--lr)); height: calc(4.2 * var(--lr)); }
.footer-logo img { width: 100%; }
.footer-address { margin-top: calc(6.2 * var(--lr)); }
.footer-address p { color: #fff; font-size: max(10px, calc(1.4 * var(--lr))); font-weight: 500; line-height: 1.4285714286; letter-spacing: calc(0.182 * var(--lr)); }
.footer-address p + p { margin-top: calc(1 * var(--lr)); }
.footer-address p:last-child { line-height: 1.4230769231; }
.footer-nav { margin-top: calc(2.2 * var(--lr)); }
.footer-nav__wrapper { display: flex; }
.footer-nav__list { margin-right: calc(4.5 * var(--lr)); }
.footer-nav__list:last-child { margin-right: 0; }
.footer-nav__list a { position: relative; color: #fff; font-family: "OneUp Futura"; font-size: max(10px, calc(1.5 * var(--lr))); letter-spacing: calc(0.12 * var(--lr)); }
.footer-nav__list a::after { content: ""; position: absolute; left: -3px; bottom: -4.5px; width: 105%; height: 1px; background: #fff; transform: scale(0, 1); transform-origin: center top; transition: all 0.3s; }
.footer-nav__list a:hover::after { transform: scale(1, 1); }
.footer-link { display: flex; justify-content: end; margin-top: calc(10.7 * var(--lr)); }
.footer-link a { padding-bottom: calc(0.55 * var(--lr)); border-bottom: 1px solid #fff; color: #fff; font-size: max(10px, calc(1.4 * var(--lr))); letter-spacing: calc(0.07 * var(--lr)); }
.copyright { height: calc(8 * var(--lr)); margin-top: calc(9.1 * var(--lr)); background: #fff; }
.copyright .inner { width: calc(142 * var(--lr)); max-width: 1420px; margin: 0 auto; }
.copyright p { color: #000; font-family: "OneUp Futura"; font-size: max(10px, calc(1.2 * var(--lr))); line-height: calc(8 * var(--lr)); letter-spacing: calc(0.096 * var(--lr)); text-align: right; }

/* ---------- TO TOP（現行 .to-top-scroll。REVIEWセクションの上端に乗せ、ページと一緒にスクロール）
   現行はCOMPANY下端 bottom:1.5rem（SPは0）で、直後にREVIEWが続く。新デザインはセクション間に余白があるため、REVIEW上端を基準に同じ位置へ置く ---------- */
.to-top-scroll { position: absolute; right: 12px; bottom: calc(100% + 1.5 * var(--lr)); width: 24px; height: 92px; background: #fff; font-weight: 400; line-height: 1; -webkit-tap-highlight-color: transparent; }
.to-top-scroll .arrow { width: 4px; height: 20px; margin: 9.4px auto 0; }
.to-top-scroll .arrow img { display: block; width: 100%; max-width: none; height: auto; }
.to-top-scroll p { margin: 9.4px auto 0; padding-right: 5px; color: #000; font-family: "OneUp Futura"; font-size: 12px; letter-spacing: 1.2px; writing-mode: vertical-lr; }

/* ---------- SP固定ボタン（現行 front-page.php の .fixed-button-sp） ---------- */
.fixed-button-sp { display: none; }

/* ---------- 818px未満（現行サイトのSP切り替え幅） ---------- */
@media not screen and (min-width: 818px) {
  :root {
    --lr: 1.3333vw;
    --header-h: calc(10.1 * 1.3333vw);
  }

  .l-header .header-wrapper { height: calc(10.1 * var(--lr)); }
  .l-header .contact-btn { display: none; }
  .header-logo { width: calc(17.4 * var(--lr)); height: calc(4.2 * var(--lr)); margin-left: calc(4 * var(--lr)); }
  .header-nav { display: none; }

  .drawer-icon { display: block; }
  .btnType01 { width: calc(56 * var(--lr)); max-width: initial; height: calc(9 * var(--lr)); max-height: initial; font-size: calc(2.4 * var(--lr)); }

  .l-footer { padding-top: calc(11 * var(--lr)); }
  .l-footer .inner { width: calc(67 * var(--lr)); max-width: initial; }
  .footer-wrapper { display: block; }
  .footer-address { margin-top: calc(7 * var(--lr)); }
  .footer-address p { font-size: max(10px, calc(2.6 * var(--lr))); font-weight: normal; line-height: 2.1538461538; letter-spacing: calc(0.338 * var(--lr)); }
  .footer-address p + p { margin-top: 0; }
  .footer-items { margin-top: calc(8.3 * var(--lr)); }
  .footer-nav { margin-top: 0; }
  .footer-nav__wrapper { display: block; }
  .footer-nav__list + .footer-nav__list { margin-top: calc(4.5 * var(--lr)); }
  .footer-nav__list a { font-size: max(10px, calc(3 * var(--lr))); letter-spacing: calc(0.24 * var(--lr)); }
  .footer-link { justify-content: start; margin-top: calc(8.6 * var(--lr)); }
  .footer-link a { padding-bottom: calc(1.03 * var(--lr)); font-size: max(10px, calc(2.4 * var(--lr))); letter-spacing: calc(0.12 * var(--lr)); }
  .copyright { height: calc(9.8 * var(--lr)); margin-top: calc(12.3 * var(--lr)); }
  .copyright .inner { width: calc(65 * var(--lr)); max-width: initial; }
  .copyright p { font-size: max(10px, calc(2 * var(--lr))); line-height: calc(9.8 * var(--lr)); letter-spacing: calc(0.4 * var(--lr)); text-align: center; }

  .fixed-button-sp { display: block; position: fixed; left: 0; bottom: 0; z-index: 3; width: 100%; padding: calc(1.3 * var(--lr)) calc(1.4 * var(--lr)); background: #F2EDE6; color: #000; font-size: calc(1.6 * var(--lr)); font-weight: 400; line-height: 1; letter-spacing: normal; -webkit-font-smoothing: auto; -webkit-tap-highlight-color: transparent; }
  .fixed-button-sp-wrapper { display: flex; align-items: center; justify-content: center; padding: calc(2.74 * var(--lr)); border-radius: calc(1 * var(--lr)); background: #fff; }
  .fixed-button-sp img { display: inline; max-width: none; vertical-align: bottom; }
  .fixed-button-sp-tel { width: calc(2.1 * var(--lr)); height: calc(2.8 * var(--lr)); }
  .fixed-button-sp-arrow { width: calc(3 * var(--lr)); height: calc(3 * var(--lr)); }
  .fixed-button-sp-text { margin: 0 calc(5.5 * var(--lr)) 0 calc(0.7 * var(--lr)); font-size: calc(2.8 * var(--lr)); letter-spacing: calc(0.112 * var(--lr)); }

  .to-top-scroll { bottom: 100%; width: calc(4.2 * var(--lr)); height: calc(16.1 * var(--lr)); }
  .to-top-scroll .arrow { width: calc(0.6 * var(--lr)); height: calc(3.5 * var(--lr)); margin: calc(1.71 * var(--lr)) auto 0; }
  .to-top-scroll p { margin: calc(1 * var(--lr)) auto 0; font-size: calc(2 * var(--lr)); letter-spacing: calc(0.2 * var(--lr)); }
}
