/* ===== Hero ===== */
.hero {
  background: var(--color-bg);
  text-align: center;
  padding: 120px 20px 100px;
  display: flex;
  justify-content: center;
  /* 横方向中央 */
  align-items: center;
  height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  /* ← これ必須 */
}

/* 背景動画 */

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 1;           /* ← 追加 */
}

/* PC */
.hero-bg-video-pc {
  opacity: 1;
}

.hero-bg-video-sp {
  opacity: 0;
  pointer-events: none;
}

/* SP */
@media (max-width: 768px) {
  .hero-bg-video-pc {
    opacity: 0;
  }

  .hero-bg-video-sp {
    opacity: 1;
  }
}

/* hero 内の文字やボタン */
.hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}


/* スクロールダウンの位置 */
.scroll {
  padding-top: 44px;
  position: relative;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent);
  ;
}

/* 矢印のアニメーション部分 */
.scroll::before {
  animation: scroll 2s infinite;
  border-bottom: 3px solid var(--color-accent);
  border-left: 3px solid var(--color-accent);
  content: "";
  height: 20px;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 0;
  width: 20px;
}

/* 矢印のアニメーション */
@keyframes scroll {
  0% {
    opacity: 0;
    transform: rotate(-45deg) translate(0, 0);
  }

  40% {
    opacity: 1;
  }

  80% {
    opacity: 0;
    transform: rotate(-45deg) translate(-20px, 20px);
  }

  100% {
    opacity: 0;
  }
}


/* ===== Intro ===== */
.intro {
  position: relative;
  overflow: hidden;
}

/* 背景画像（ピンクの円） */
.intro-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.intro-bg-pink {
  position: absolute;
  top: 0;
  left: -200px;
  width: 500px;
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0.6;
}

/* コンテンツ */
.intro .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.intro-lead {
  font-size: var(--fs-lead-fluid);
  color: var(--color-text);
  line-height: 1.7;
  font-weight: bold;
  margin-bottom: 60px;
}

.intro .q-img img {
  width: 75%;
  height: auto;
}

.intro-images {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.intro-main {
  width: 100%;
}

.intro-sub {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  bottom: -40px;
  right: 12%;
  border: 6px solid #fff;
  box-shadow: var(--shadow-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .intro-lead {
    margin-bottom: 20px;
    line-height: 1.4;
  }

  .intro-bg-pink {
    top: -40px;
    left: -40px;
    width: 200px;
  }

  .intro-sub {
    position: static;
    width: 140px;
    height: 140px;
    margin-top: 20px;
  }

  .intro .q-img img {
    width: 100%;
    height: auto;
  }

}

/* ---------- intro-2 ---------- */
.intro-2 .container {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

/* 各ブロック全体 */
.intro2-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 100px;
  position: relative;
}

.intro2-item.reverse {
  flex-direction: row-reverse;
}

/* 背景ドット（各アイテムに配置） */
.intro2-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.intro2-bg-dots {
  position: absolute;
  width: 100%;
  max-width: 1000px;
  height: auto;
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
}

/* --- ドット配置バリエーション --- */
.intro2-item:first-of-type .intro2-bg-dots {
  right: -60px;
  bottom: -40px;
  transform: rotate(5deg);
}

.intro2-item.reverse .intro2-bg-dots {
  left: -60px;
  top: -40px;
  transform: rotate(-5deg);
}

/* 内容を前面に */
.intro2-text {
  position: relative;
  z-index: 1;
}

.intro2-img {
  flex: 1 1 45%;
  position: relative;
  z-index: 1;
}

.intro2-item.reverse .intro2-img {
  left: auto;
  right: 60px;
}

/* 円形画像 */
.intro2-img img {
  width: 100%;
  height: auto;
  max-width: 460px;
  object-fit: contain;
}

/* テキストボックス */
.intro2-text {
  flex: 1 1 55%;
  padding: 20px 0;
  z-index: 2;
}

.intro2-text h3 {
  font-size: var(--fs-lead-fluid);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  position: relative;
}

.intro2-text h3::after {
  content: "・・・・・・・・・・・・・・・・・・・・";
  display: block;
  font-size: 0.8rem;
  color: var(--color-gray);
  margin-top: 4px;
  letter-spacing: 2px;
}

.intro2-text p {
  font-size: var(--fs-body-fluid);
  color: var(--color-text);
  text-align: left;
}

/* ===== 能力セクション専用 ===== */
.intro2-item--abilities {
  max-width: 1100px;
  margin: 0 auto;
}

.intro2-item--abilities .intro2-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  /* ← 左右の縦位置が揃って気持ちいい */
  align-items: start;
}

/* 左カラム */
.intro2-item--abilities .intro2-left h3 {
  margin-bottom: 16px;
  margin-top: 0;
}

.intro2-item--abilities .intro2-left p {
  line-height: 1.8;
}

/* 右カラム */
.intro2-item--abilities .pf-bullets {
  margin-top: 0;
}

/* SP：縦並び */
@media (max-width: 768px) {
  .intro2-item--abilities .intro2-text {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ===== PlayFACTO Bullets (Card style) ===== */
.pf-bullets {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 2px;
}

.pf-bullets li {
  position: relative;
  padding: 14px 14px 14px 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  line-height: 1.55;
  text-align: left;
}

.pf-bullets li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: var(--color-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pf-bullets__lead {
  display: inline;
  font-size: var(--fs-body-fluid);
}

.pf-bullets__strong {
  display: inline;
  margin-left: 0.5em;
  font-weight: 700;
  white-space: nowrap;
  font-size: var(--fs-body-fluid);
}

/* スマホ最適化 */
@media (max-width: 480px) {
  .pf-bullets li {
    padding: 12px 12px 12px 42px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .intro-2 .container {
    gap: 0;
    padding: 0 10px;
  }

  .intro2-item,
  .intro2-item.reverse {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    margin-bottom: 60px;
  }

  .intro2-img {
    flex: unset;
    width: 75%;
    max-width: 260px;
    display: contents;
  }

  .intro2-img img {
    width: 90vw;
    height: auto;
  }

  .intro2-text {
    flex: unset;
    padding: 0 10px;
  }

  .intro2-bg-dots {
    max-width: 600px;
    opacity: 0.2;
  }

  .intro2-item:first-of-type .intro2-bg-dots,
  .intro2-item.reverse .intro2-bg-dots {
    top: auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
  }
}




/* =========================
   series section
========================= */
.series {
  position: relative;
  padding: 100px 0;
}

/* 背景 */
.series-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.series-bg-pink {
  position: absolute;
  right: -120px;
  width: 390px;
  opacity: 0.6;
  transform: rotate(-143deg);
}

/* 中身 */
.series .container {
  position: relative;
  z-index: 2;
}

.series-desc {
  text-align: center;
  margin-bottom: 64px;
  font-size: var(--fs-body-fluid);
}

/* =========================
   list（縦積み）
========================= */
.series-list {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

/* =========================
   item
========================= */
.series-item {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 50%;
}

/* 背景色 */
.series-kids {
  background: var(--color-secondary-accent);
}

.series-board {
  background: var(--accent-extra-accent);
}

/* タイトル */
.series-title {
  font-size: var(--fs-lead-fluid);
  font-weight: 700;
  margin-bottom: 24px;
  margin-top: 0;
}

.series-title span {
  font-size: var(--fs-body-fluid);
}

/* サムネ */
.series-thumb {
  margin-bottom: 24px;
}

.series-thumb img {
  width: 100%;
  border-radius: 24px;
}

/* =========================
   content
========================= */
.series.section .container {
  max-width: 1200px;
}

.series-content {
  padding: 0px;
  font-size: var(--fs-body-fluid);
  /* line-height: 1.9; */
}

.series-lead {
  font-weight: 700;
  font-size: var(--fs-body-fluid);
  margin-bottom: 12px;
}


.series-closing {
  margin-top: 20px;
  font-weight: 600;
}

/* =========================
   list styles
========================= */
.series-content ul {
  list-style: none;
  padding: 12px 24px;
  margin: 16px 0;
}

.series-content li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 6px;
}

.series-content li::before {
  content: "•";
  position: absolute;
  left: -3px;
  top: -0.3em;
  font-size: 26px;
  font-weight: bold;
}

.series-kids li::before {
  color: #f2c94c;
}

.series-board li::before {
  color: #56ccf2;
}

/* =========================
   button
========================= */
.series-btn-wrap {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.series-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  font-size: var(--fs-body-fluid);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.series-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: width 0.25s ease;
}

.series-btn:hover {
  transform: translateX(3px);
  /* ← 右に「スッ」と押される */
}

.series-btn:hover::after {
  width: 100%;
  /* ← 光がスッと流れる */
}

/* =========================
   responsive
========================= */
@media (max-width: 768px) {
  .series {
    padding: 80px 0;
  }

  .series-title {
    display: flex;
    flex-direction: column;
  }

  .series-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .series.section .container {
    padding: 10px;
  }

  .series-content {
    padding: 0px;
  }

  .series-bg-pink {
    width: 220px;
    right: -60px;
  }

  .series-btn-wrap {
    bottom: 20px;
    right: 14px;
  }
}


/* =========================
   圧迫感を減らすための追加CSS
========================= */

/* ① テキストブロック内に“段落の呼吸”をつくる */
.series-content p {
  margin-bottom: 1.2em;
}

.series-content p:last-child {
  margin-bottom: 0;
}

/* ② 認知4領域を「軽いカード感」にする */
.series-list-main {
  border: 3px dashed #f2c94c;
  border-radius: 18px;
  background: transparent;
}

.series-board .series-list-main {
  border: 3px dashed #56ccf2;
  border-radius: 18px;
  background: transparent;
}


/* ④ 箇条書きの行間を詰めすぎない */
.series-content li {
  margin-bottom: 8px;
}

/* ⑤ 画像と説明の間に余白のメリハリ */
.series-thumb {
  margin-bottom: 32px;
}

/* ⑥ カード全体に「下方向の抜け」を作る */
.series-item {
  padding-bottom: 106px;
  text-align: left;
}

/* =========================
   モバイル時の圧縮最適化
========================= */
@media (max-width: 768px) {
  .series-list-main {
    padding: 16px;
  }

  .series-item {
    padding: 24px;
    padding-bottom: 84px;
    width: 85%;
  }

  .series-content {
    font-size: 0.95rem;
  }

  .series-lead {
    font-size: 1.05rem;
  }
}

/* ===== 会社概要 ===== */
.company.section {
  margin-bottom: 128px;
}

/* 背景（●画像） */
.company-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.company-bg img {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.company-bg-dots {
  bottom: 0px;
  top: 82px;
  left: -150px;
  width: 420px;
  opacity: 0.6;
}

.company-bg-pink {
  right: -100px;
  width: 360px;
  opacity: 0.6;
  transform: rotate(-143deg);
  bottom: 0;
}

.company-inner {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
  text-align: center;
  width: 50%;
  position: relative;
  z-index: 10;
}

.company-inner h2 {
  margin-top: 0;
}

/* テーブル */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 16px 0;
  vertical-align: top;
  font-size: var(--fs-body-fluid);
  border-bottom: 1px solid #eee;
}

.company-table th {
  width: 30%;
  font-weight: 600;
  color: var(--color-primary);
  text-align: left;
  padding-right: 20px;
}

.company-table td {
  text-align: left;
}

/* ボタン */
.company-btn-wrap {
  text-align: center;
  margin-top: 40px;
}

.btn.btn-outline {
  background: var(--color-primary);
  color: white;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: var(--fs-body-fluid);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* 右向きの subtle 押し出し影 */
.btn-outline::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  /* ← 明るい光をサッと通す感じ */
  transition: width 0.25s ease;
}

/* ホバー時 */
.btn-outline:hover {
  transform: translateX(3px);
  /* ← 右に「スッ」と押される */
}

.btn-outline:hover::after {
  width: 100%;
  /* ← 光がスッと流れる */
}


/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .company-inner {
    padding: 40px 24px;
    width: 80%;
  }

  .company-title {
    font-size: 1.4rem;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    border: none;
    /* SPでは罫線を簡素化 */
  }

  .company-table tr {
    border-bottom: 1px solid #eee;
    padding: 8px 0;
  }

  .company-table th {
    margin-top: 16px;
  }
}

.custom-shape-divider-top-1762953666 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.custom-shape-divider-top-1762953666 svg {
  position: relative;
  display: block;
  width: calc(183% + 1.3px);
  height: 80px;
  transform: rotateY(180deg);
}

.custom-shape-divider-top-1762953666 .shape-fill {
  fill: #FFFAF2;
}

.custom-shape-divider-bottom-1762953718 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.custom-shape-divider-bottom-1762953718 svg {
  position: relative;
  display: block;
  width: calc(183% + 1.3px);
  height: 80px;
  transform: rotateY(180deg);
}

.custom-shape-divider-bottom-1762953718 .shape-fill {
  fill: #FFFAF2;
}