@charset "utf-8";


/* ------------------------------------------------ Common -------------------------------------------------------- */
#siteLead p{
  color: #333;
  font-size: 14px;
}
#siteLead a{
  color: #3088f3;
}
body.ai_episode, body.ai_episode #wrapper *{
font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, -apple-system, BlinkMacSystemFont, sans-serif;
}
body.ai_episode a,body.ai_episode button{
  color: #000;
}
.btn-top-01 {
  position: fixed;
  right: 15px;
  bottom: 75px;
  z-index: 100;
}

.btn-top-01 a {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  font-size: 0;
  color: transparent;
  background: rgba(0, 171, 235, 0.5);
  border-radius: 50%;
}

.btn-top-01 a::before,
.btn-top-01 a::after {
  position: absolute;
  top: 2px;
  right: 0;
  bottom: 0;
  display: block;
  width: 13px;
  height: 2px;
  margin: auto;
  background: #fff;
  border-radius: 2px;
  content: "";
}

.btn-top-01 a::before {
  left: -8px;
  transform: rotate(134deg);
}

.btn-top-01 a::after {
  left: 8px;
  transform: rotate(-134deg);
}
@media (min-width: 768px) {
  .btn-top-01 {
    right: 80px;
    bottom: 64px;
    z-index: 999;
  }

  .btn-top-01 a {
    width: 70px;
    height: 70px;
    transition: background .2s;
  }

  .btn-top-01 a::before,
  .btn-top-01 a::after {
    width: 22px;
    height: 4px;
  }

  .btn-top-01 a::before {
    left: -12px;
  }

  .btn-top-01 a::after {
    left: 13px;
  }

  .btn-top-01 a:hover,
  .btn-top-01 a:active {
    background: #00aaeb;
  }}
:root {
  /* =========================
         Color
      ========================= */
  --bg-color: #d2ead0;
  --grid-color: #c2e1bf;
  --text-color: #17325f;
  --sub-color: #4d6281;

  /* =========================
         Grid background
      ========================= */
  --grid-size: 100px;
  --grid-line: 9px;

  /* =========================
         Layout
      ========================= */
  --content-max: 1200px;
  --logo-size: clamp(580px, 50vw, 860px);
  --stage-w: min(80vw, 920px);
  --stage-h: min(78svh, 760px);

  /* =========================
         Shadow
      ========================= */
  --shadow-logo: 0 16px 36px rgba(23, 63, 120, 0.12);
  --shadow-item: 0 10px 24px rgba(23, 63, 120, 0.14);
  --shadow-bg-item: 0 6px 12px rgba(23, 63, 120, 0.06);
}

/* =========================
       Reset
    ========================= */
* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  color: var(--text-color);
  font-family:
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-weight: 400;
  line-height: 1.6;
  background-color: var(--bg-color);
  background-image:
    linear-gradient(var(--grid-color) var(--grid-line), transparent var(--grid-line)),
    linear-gradient(90deg, var(--grid-color) var(--grid-line), transparent var(--grid-line));
  background-size: var(--grid-size) var(--grid-size);
}


.ai_episode #wrapper,.ai_episode #contentsarea,.ai_episode #contentsarea2{
  padding: 0;
  width: 100%;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.pc {
  display: block;
}

.sp {
  display: none;
}

/* =========================
       SP  
    ========================= */
@media (max-width: 767px) {
  .pc {
    display: none;
  }

  .sp {
    display: block;
  }
}

/* =========================
       First View
    ========================= */
.fv {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}

.fv__inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 32px), var(--content-max));
  min-height: 100svh;
  margin-inline: auto;
}

/*
      背景用の小イラスト群
    */
.fv__bg-items {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.fv__bg-item {
  position: absolute;
  display: block;
  width: var(--bg-size, 40px);
  opacity: var(--bg-opacity, 1.0);
  transform: translate(-50%, -50%) rotate(var(--bg-rotate, 0deg));
  filter: drop-shadow(var(--shadow-bg-item));
  animation: bgFloat var(--bg-duration, 8s) ease-in-out infinite alternate;
  animation-delay: var(--bg-delay, 0s);
  will-change: transform;
}

.fv__bg-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@keyframes bgFloat {
  0% {
    transform: translate(-50%, -50%) translate3d(0, 0, 0) rotate(var(--bg-rotate, 0deg));
  }

  50% {
    transform: translate(-50%, -50%) translate3d(var(--bg-fx1, 4px), var(--bg-fy1, -8px), 0) rotate(calc(var(--bg-rotate, 0deg) + 2deg));
  }

  100% {
    transform: translate(-50%, -50%) translate3d(var(--bg-fx2, -3px), var(--bg-fy2, 6px), 0) rotate(calc(var(--bg-rotate, 0deg) - 2deg));
  }
}

/* 背景小物の基本サイズ */
.item-a {
  --bg-size: clamp(28px, 2.8vw, 48px);
}

.item-b {
  --bg-size: clamp(8px, 3.1vw, 24px);
}

.item-c {
  --bg-size: clamp(8px, 2.6vw, 20px);
}

.item-d {
  --bg-size: clamp(8px, 2.9vw, 20px);
}

.item-e {
  --bg-size: clamp(8px, 3.4vw, 28px);
}

.item-f {
  --bg-size: clamp(8px, 3vw, 22px);
}

/* 固定配置: ランダムに見えるように調整 */
.pos-01 {
  top: 8%;
  left: 7%;
  --bg-opacity: 1.0;
  --bg-rotate: -8deg;
  --bg-duration: 8.2s;
  --bg-delay: -.6s;
  --bg-fx1: 4px;
  --bg-fy1: -7px;
  --bg-fx2: -3px;
  --bg-fy2: 6px;
}

.pos-02 {
  top: 14%;
  left: 22%;
  --bg-opacity: 1.0;
  --bg-rotate: 10deg;
  --bg-duration: 7.6s;
  --bg-delay: -1.2s;
  --bg-fx1: -4px;
  --bg-fy1: -6px;
  --bg-fx2: 3px;
  --bg-fy2: 5px;
}

.pos-03 {
  top: 9%;
  left: 78%;
  --bg-opacity: 1.0;
  --bg-rotate: -12deg;
  --bg-duration: 8.8s;
  --bg-delay: -.8s;
}

.pos-04 {
  top: 18%;
  left: 92%;
  --bg-opacity: 1.0;
  --bg-rotate: 14deg;
  --bg-duration: 7.9s;
  --bg-delay: -1.4s;
}

.pos-05 {
  top: 26%;
  left: 10%;
  --bg-opacity: 1.0;
  --bg-rotate: -6deg;
  --bg-duration: 9.4s;
  --bg-delay: -.3s;
}

.pos-06 {
  top: 31%;
  left: 28%;
  --bg-opacity: 1.0;
  --bg-rotate: 8deg;
  --bg-duration: 8.6s;
  --bg-delay: -1.7s;
}

.pos-07 {
  top: 34%;
  left: 88%;
  --bg-opacity: 1.0;
  --bg-rotate: -10deg;
  --bg-duration: 7.4s;
  --bg-delay: -.9s;
}

.pos-08 {
  top: 49%;
  left: 4%;
  --bg-opacity: 1.0;
  --bg-rotate: 11deg;
  --bg-duration: 9.2s;
  --bg-delay: -1.1s;
}

.pos-09 {
  top: 57%;
  left: 18%;
  --bg-opacity: 1.0;
  --bg-rotate: -7deg;
  --bg-duration: 8.1s;
  --bg-delay: -.2s;
}

.pos-10 {
  top: 52%;
  left: 94%;
  --bg-opacity: 1.0;
  --bg-rotate: 9deg;
  --bg-duration: 7.8s;
  --bg-delay: -1.8s;
}

.pos-11 {
  top: 72%;
  left: 9%;
  --bg-opacity: 1.0;
  --bg-rotate: -9deg;
  --bg-duration: 8.7s;
  --bg-delay: -.7s;
}

.pos-12 {
  top: 78%;
  left: 31%;
  --bg-opacity: 1.0;
  --bg-rotate: 7deg;
  --bg-duration: 9.1s;
  --bg-delay: -1.3s;
}

.pos-13 {
  top: 74%;
  left: 74%;
  --bg-opacity: 1.0;
  --bg-rotate: -11deg;
  --bg-duration: 7.7s;
  --bg-delay: -.4s;
}

.pos-14 {
  top: 86%;
  left: 88%;
  --bg-opacity: 1.0;
  --bg-rotate: 8deg;
  --bg-duration: 8.4s;
  --bg-delay: -1.5s;
}

.pos-15 {
  top: 90%;
  left: 56%;
  --bg-opacity: 1.0;
  --bg-rotate: -5deg;
  --bg-duration: 9.5s;
  --bg-delay: -.9s;
}

.pos-16 {
  top: 6%;
  left: 38%;
  --bg-opacity: 1.0;
  --bg-rotate: -4deg;
  --bg-duration: 8.9s;
  --bg-delay: -1.0s;
  --bg-fx1: 3px;
  --bg-fy1: -6px;
  --bg-fx2: -2px;
  --bg-fy2: 5px;
}

.pos-17 {
  top: 7%;
  left: 60%;
  --bg-opacity: 1.0;
  --bg-rotate: 6deg;
  --bg-duration: 9.3s;
  --bg-delay: -.5s;
  --bg-fx1: -3px;
  --bg-fy1: -5px;
  --bg-fx2: 3px;
  --bg-fy2: 4px;
}

.pos-18 {
  top: 22%;
  left: 36%;
  --bg-opacity: 1.0;
  --bg-rotate: -9deg;
  --bg-duration: 8.4s;
  --bg-delay: -1.4s;
}

.pos-19 {
  top: 24%;
  left: 68%;
  --bg-opacity: 1.0;
  --bg-rotate: 8deg;
  --bg-duration: 9.0s;
  --bg-delay: -.7s;
}

.pos-20 {
  top: 29%;
  left: 78%;
  --bg-opacity: 1.0;
  --bg-rotate: -7deg;
  --bg-duration: 8.1s;
  --bg-delay: -1.6s;
}

.pos-21 {
  top: 41%;
  left: 14%;
  --bg-opacity: 1.0;
  --bg-rotate: 5deg;
  --bg-duration: 9.2s;
  --bg-delay: -.8s;
}

.pos-22 {
  top: 43%;
  left: 34%;
  --bg-opacity: 1.0;
  --bg-rotate: -8deg;
  --bg-duration: 8.7s;
  --bg-delay: -1.1s;
}

.pos-23 {
  top: 45%;
  left: 73%;
  --bg-opacity: 1.0;
  --bg-rotate: 10deg;
  --bg-duration: 9.4s;
  --bg-delay: -.6s;
}

.pos-24 {
  top: 47%;
  left: 86%;
  --bg-opacity: 1.0;
  --bg-rotate: -6deg;
  --bg-duration: 8.3s;
  --bg-delay: -1.9s;
}

.pos-25 {
  top: 61%;
  left: 38%;
  --bg-opacity: 1.0;
  --bg-rotate: 7deg;
  --bg-duration: 9.1s;
  --bg-delay: -.4s;
}

.pos-26 {
  top: 65%;
  left: 62%;
  --bg-opacity: 1.0;
  --bg-rotate: -10deg;
  --bg-duration: 8.8s;
  --bg-delay: -1.2s;
}

.pos-27 {
  top: 68%;
  left: 92%;
  --bg-opacity: 1.0;
  --bg-rotate: 9deg;
  --bg-duration: 8.6s;
  --bg-delay: -.9s;
}

.pos-28 {
  top: 82%;
  left: 18%;
  --bg-opacity: 1.0;
  --bg-rotate: -6deg;
  --bg-duration: 9.3s;
  --bg-delay: -1.5s;
}

.pos-29 {
  top: 84%;
  left: 69%;
  --bg-opacity: 1.0;
  --bg-rotate: 8deg;
  --bg-duration: 8.5s;
  --bg-delay: -.7s;
}

.pos-30 {
  top: 94%;
  left: 28%;
  --bg-opacity: 1.0;
  --bg-rotate: -4deg;
  --bg-duration: 9.6s;
  --bg-delay: -1.0s;
}

.pos-31 {
  top: 88%;
  left: 42%;
  --bg-opacity: 1.0;
  --bg-rotate: 60deg;
  --bg-duration: 9.6s;
  --bg-delay: -1.0s;
}

/*
      ロゴ中心基準のステージ
    */
.fv__stage {
  position: absolute;
  top: 48%;
  left: 50%;
  width: var(--stage-w);
  height: var(--stage-h);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* =========================
       Logo
    ========================= */
.fv__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--logo-size);
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: auto;
}

.fv__logo img {
  width: 100%;
  filter: drop-shadow(var(--shadow-logo));
}

/* =========================
       Main 6 decorative illustrations
    ========================= */
.fv__deco {
  position: absolute;
  top: var(--anchor-y);
  left: var(--anchor-x);
  width: var(--box-w);
  transform: translate(calc(-50% + var(--offset-x, 0px)),
      calc(-50% + var(--offset-y, 0px)));
  z-index: var(--z, 2);
  pointer-events: none;
}

.fv__float {
  animation: floatMove var(--float-duration, 5s) ease-in-out infinite alternate;
  animation-delay: var(--float-delay, 0s);
  will-change: transform;
}

.fv__sway {
  animation: swayRotate var(--sway-duration, 7s) ease-in-out infinite alternate;
  animation-delay: var(--sway-delay, 0s);
  transform-origin: center center;
  will-change: transform;
}

.fv__media {
  width: 100%;
  aspect-ratio: var(--ratio, 1 / 1);
  display: grid;
  place-items: center;
}

.fv__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: var(--object-position, 50% 50%);
  filter: drop-shadow(var(--shadow-item));
}

@keyframes floatMove {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(var(--fx1, 6px), var(--fy1, -14px), 0);
  }

  100% {
    transform: translate3d(var(--fx2, -4px), var(--fy2, 8px), 0);
  }
}

@keyframes swayRotate {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(var(--rot1, 2deg)) scale(1.01);
  }

  100% {
    transform: rotate(var(--rot2, -2deg)) scale(0.99);
  }
}

/* 6点配置 */
.deco-1 {
  --anchor-x: 0%;
  --anchor-y: 2%;
  --box-w: 200px;
  --ratio: 1 / 1;

  --fx1: 8px;
  --fy1: -2px;
  --fx2: -4px;
  --fy2: 4px;
  --rot1: 2deg;
  --rot2: -2deg;
  --float-duration: 4.4s;
  --sway-duration: 6.8s;
  --float-delay: -0.8s;
  --sway-delay: -0.3s;
}

.deco-2 {
  --anchor-x: -15%;
  --anchor-y: 51%;
  --box-w: 220px;
  --ratio: 4 / 3;

  --fx1: -6px;
  --fy1: -6px;
  --fx2: 6px;
  --fy2: 2px;
  --rot1: -2deg;
  --rot2: 1.5deg;
  --float-duration: 5.2s;
  --sway-duration: 7.2s;
  --float-delay: -0.1s;
  --sway-delay: -0.6s;
}

.deco-3 {
  --anchor-x: 102%;
  --anchor-y: 5%;
  --box-w: 224px;
  --ratio: 3 / 4;

  --fx1: -4px;
  --fy1: -8px;
  --fx2: 6px;
  --fy2: 4px;
  --rot1: -2.5deg;
  --rot2: 2deg;
  --float-duration: 4.9s;
  --sway-duration: 6.6s;
  --float-delay: -1s;
  --sway-delay: -0.5s;
}

.deco-4 {
  --anchor-x: 0%;
  --anchor-y: 96%;
  --box-w: 184px;
  --ratio: 5 / 4;

  --fx1: 8px;
  --fy1: -6px;
  --fx2: -6px;
  --fy2: 4px;
  --rot1: 2deg;
  --rot2: -1.5deg;
  --float-duration: 5.6s;
  --sway-duration: 7.8s;
  --float-delay: -1.3s;
  --sway-delay: -0.2s;
}

.deco-5 {
  --anchor-x: 115%;
  --anchor-y: 50%;
  --box-w: 214px;
  --ratio: 1 / 1;
  --z: 1;

  --fx1: 4px;
  --fy1: -10px;
  --fx2: -4px;
  --fy2: 8px;
  --rot1: 1.5deg;
  --rot2: -1.5deg;
  --float-duration: 5s;
  --sway-duration: 6.9s;
  --float-delay: -0.5s;
  --sway-delay: -0.9s;
}

.deco-6 {
  --anchor-x: 100%;
  --anchor-y: 95%;
  --box-w: 216px;
  --ratio: 16 / 10;

  --fx1: -8px;
  --fy1: -18px;
  --fx2: 8px;
  --fy2: 10px;
  --rot1: -2deg;
  --rot2: 2.5deg;
  --float-duration: 5.1s;
  --sway-duration: 7.1s;
  --float-delay: -0.7s;
  --sway-delay: -1.1s;
}

/* =========================
       Copy
    ========================= */
.fv__copy {
  position: absolute;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(92%, 720px);
  transform: translateX(-50%);
  text-align: center;
  z-index: 6;
  pointer-events: auto;
}

.fv__copy-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-color);
}

.fv__copy-text {
  margin: 12px 0 0;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.8;
  color: var(--sub-color);
}

/* =========================
       Tablet
    ========================= */
@media (max-width: 1024px) {
  :root {
    --logo-size: clamp(270px, 50vw, 560px);
    --stage-w: min(92vw, 760px);
    --stage-h: min(82svh, 680px);
    --grid-size: 80px;
  }

  .fv__inner {
    width: min(calc(100% - 24px), var(--content-max));
  }

  .fv__bg-item {
    opacity: calc(var(--bg-opacity, 0.6) * 0.95);
  }

  .deco-1 {
    --anchor-x: 13%;
    --anchor-y: 18%;
    --box-w: clamp(72px, 14vw, 132px);
  }

  .deco-2 {
    --anchor-x: 50%;
    --anchor-y: 11%;
    --box-w: clamp(76px, 14vw, 138px);
  }

  .deco-3 {
    --anchor-x: 87%;
    --anchor-y: 21%;
    --box-w: clamp(70px, 22vw, 150px);
  }

  .deco-4 {
    --anchor-x: 13%;
    --anchor-y: 77%;
    --box-w: clamp(78px, 15vw, 140px);
  }

  .deco-5 {
    --anchor-x: 50%;
    --anchor-y: 95%;
    --box-w: clamp(62px, 22vw, 140px);
  }

  .deco-6 {
    --anchor-x: 87%;
    --anchor-y: 76%;
    --box-w: clamp(78px, 14vw, 136px);
  }
}

/* =========================
       SP
    ========================= */
@media (max-width: 767px) {
  :root {
    --logo-size: 90%;
    --stage-w: min(96vw, 540px);
    --stage-h: min(88svh, 620px);
    --grid-size: 85px;
  }

  .fv__inner {
    width: min(calc(100% - 16px), 100%);
  }

  .fv__stage {
    top: 46%;
  }

  .fv__bg-item {
    filter: none;
  }

  /* 背景小物はSPで整理 */
  .pos-02,
  .pos-04,
  .pos-06,
  .pos-08,
  .pos-10,
  .pos-12,
  .pos-14,
  .pos-16,
  .pos-18,
  .pos-20,
  .pos-22,
  .pos-24,
  .pos-26,
  .pos-28,
  .pos-30,
  .pos-31 {
    display: none;
  }

  .pos-01 {
    top: 9%;
    left: 8%;
  }

  .pos-03 {
    top: 11%;
    left: 85%;
  }

  .pos-05 {
    top: 25%;
    left: 10%;
  }

  .pos-07 {
    top: 36%;
    left: 90%;
  }

  .pos-09 {
    top: 58%;
    left: 12%;
  }

  .pos-11 {
    top: 73%;
    left: 10%;
  }

  .pos-13 {
    top: 78%;
    left: 84%;
  }

  .pos-15 {
    top: 91%;
    left: 52%;
  }


  .deco-5,
  .deco-6 {
    display: none;
  }

  .deco-1 {
    --anchor-x: 23%;
    --anchor-y: 12%;
    --box-w: clamp(62px, 30vw, 160px);
  }

  .deco-2 {
    --anchor-x: 75%;
    --anchor-y: 8%;
    --box-w: clamp(70px, 30vw, 160px);
  }

  .deco-3 {
    --anchor-x: 75%;
    --anchor-y: 95%;
    --box-w: clamp(60px, 38vw, 200px);
  }

  .deco-4 {
    --anchor-x: 23%;
    --anchor-y: 100%;
    --box-w: clamp(66px, 28vw, 155px);
  }

  .fv__copy {
    width: calc(100% - 20px);
    bottom: 16px;
  }

  .fv__copy-text {
    line-height: 1.65;
  }
}

/* =========================
       Reduced motion
    ========================= */
@media (prefers-reduced-motion: reduce) {

  .fv__bg-item,
  .fv__float,
  .fv__sway {
    animation: none;
  }
}

/* =========================
   2nd Section : Overview
========================= */
.overview {
  position: relative;
  padding: 20px 0 120px;
}

.overview__inner {
  position: relative;
  display: flex;
  align-items: center;
  width: min(calc(100% - 32px), 1200px);
  margin-inline: auto;
  min-height: 420px;
}

.overview__random,
.overview__feature {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.overview__random {
  z-index: 0;
}

.overview__feature {
  z-index: 1;
}

.overview__text {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  margin-inline: auto;
  padding: 40px 10px;
  text-align: center;
}

.overview__wave {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.overview__wave::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.06em;
  height: 12px;
  background-image: url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 8' preserveAspectRatio='none'>\
    <path d='M0 5 Q8 2 16 5 T32 5 T48 5 T64 5' fill='none' stroke='%23e18546' stroke-width='2' stroke-linecap='round'/>\
    </svg>");
  background-repeat: repeat-x;
  background-size: 44px 12px;
  pointer-events: none;
}


.overview__lead {
  margin: 0;
  color: #000;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.80;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.text__small {
  font-size: 0.8rem;
}

.overview__line {
  display: block;
}

.overview__accent {
  color: #e18546;
  text-shadow:
    1px 1px 1px #333;
}

.overview__decor {
  position: absolute;
  display: block;
  width: var(--ov-size, 24px);
  opacity: var(--ov-opacity, 1.0);
  transform: translate(-50%, -50%) rotate(var(--ov-rotate, 0deg));
  filter: drop-shadow(0 6px 14px rgba(23, 63, 120, 0.08));
  animation: overviewFloat var(--ov-duration, 8s) ease-in-out infinite alternate;
  animation-delay: var(--ov-delay, 0s);
  will-change: transform;
}

.overview__decor img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@keyframes overviewFloat {
  0% {
    transform: translate(-50%, -50%) translate3d(0, 0, 0) rotate(var(--ov-rotate, 0deg));
  }

  50% {
    transform: translate(-50%, -50%) translate3d(var(--ov-fx1, 4px), var(--ov-fy1, -7px), 0) rotate(calc(var(--ov-rotate, 0deg) + 2deg));
  }

  100% {
    transform: translate(-50%, -50%) translate3d(var(--ov-fx2, -3px), var(--ov-fy2, 6px), 0) rotate(calc(var(--ov-rotate, 0deg) - 2deg));
  }
}

/* サイズ */
.ov-size-s {
  --ov-size: clamp(16px, 2vw, 18px);
}

.ov-size-m {
  --ov-size: clamp(18px, 3vw, 24px);
}

.ov-size-l {
  --ov-size: clamp(34px, 3vw, 46px);
}

.ov-size-x {
  --ov-size: clamp(38px, 5vw, 74px);
}

.ov-size-xl {
  --ov-size: clamp(42px, 5vw, 84px);
}

/* -------------------------
   ランダム散布アイテム
   左右に満遍なく配置
------------------------- */

/* 左側 7個 */
.ov-r01 {
  top: 6%;
  left: 2%;
  --ov-opacity: 1.0;
  --ov-rotate: 10deg;
  --ov-duration: 8.1s;
  --ov-delay: -.6s;
}

.ov-r02 {
  top: 0%;
  left: 35%;
  --ov-opacity: 1.0;
  --ov-rotate: 8deg;
  --ov-duration: 7.5s;
  --ov-delay: -1.1s;
}

.ov-r03 {
  top: 34%;
  left: 8%;
  --ov-opacity: 1.0;
  --ov-rotate: -7deg;
  --ov-duration: 8.8s;
  --ov-delay: -.7s;
}

.ov-r04 {
  top: 52%;
  left: 16%;
  --ov-opacity: 1.0;
  --ov-rotate: 11deg;
  --ov-duration: 7.9s;
  --ov-delay: -1.4s;
}

.ov-r05 {
  top: 65%;
  left: 5%;
  --ov-opacity: 1.0;
  --ov-rotate: -8deg;
  --ov-duration: 9.2s;
  --ov-delay: -.3s;
}

.ov-r06 {
  top: 8%;
  left: 20%;
  --ov-opacity: 1.0;
  --ov-rotate: 6deg;
  --ov-duration: 8.5s;
  --ov-delay: -1.1s;
}

.ov-r07 {
  top: 90%;
  left: 23%;
  --ov-opacity: 1.0;
  --ov-rotate: -5deg;
  --ov-duration: 9.0s;
  --ov-delay: -.8s;
}

/* 右側 7個 */
.ov-r08 {
  top: 11%;
  left: 95%;
  --ov-opacity: 1.0;
  --ov-rotate: 9deg;
  --ov-duration: 8.2s;
  --ov-delay: -.5s;
}

.ov-r09 {
  top: 0%;
  left: 68%;
  --ov-opacity: 1.0;
  --ov-rotate: -11deg;
  --ov-duration: 7.8s;
  --ov-delay: -1.2s;
}

.ov-r10 {
  top: 38%;
  left: 90%;
  --ov-opacity: 1.0;
  --ov-rotate: 60deg;
  --ov-duration: 9.1s;
  --ov-delay: -.4s;
}

.ov-r11 {
  top: 53%;
  left: 86%;
  --ov-opacity: 1.0;
  --ov-rotate: -9deg;
  --ov-duration: 8.3s;
  --ov-delay: -1.3s;
}

.ov-r12 {
  top: 70%;
  left: 80%;
  --ov-opacity: 1.0;
  --ov-rotate: 7deg;
  --ov-duration: 8.9s;
  --ov-delay: -.6s;
}

.ov-r13 {
  top: 85%;
  left: 95%;
  --ov-opacity: 1.0;
  --ov-rotate: -6deg;
  --ov-duration: 9.4s;
  --ov-delay: -1s;
}

.ov-r14 {
  top: 95%;
  left: 85%;
  --ov-opacity: 1.0;
  --ov-rotate: 5deg;
  --ov-duration: 8.6s;
  --ov-delay: -.9s;
}

/* ランダム散布の動き差 */
.ov-r01,
.ov-r08 {
  --ov-fx1: 4px;
  --ov-fy1: -7px;
  --ov-fx2: -3px;
  --ov-fy2: 6px;
}

.ov-r02,
.ov-r09 {
  --ov-fx1: -4px;
  --ov-fy1: -6px;
  --ov-fx2: 3px;
  --ov-fy2: 5px;
}

.ov-r03,
.ov-r10 {
  --ov-fx1: 3px;
  --ov-fy1: -5px;
  --ov-fx2: -2px;
  --ov-fy2: 4px;
}

.ov-r04,
.ov-r11 {
  --ov-fx1: -3px;
  --ov-fy1: -8px;
  --ov-fx2: 4px;
  --ov-fy2: 5px;
}

.ov-r05,
.ov-r12 {
  --ov-fx1: 4px;
  --ov-fy1: -6px;
  --ov-fx2: -3px;
  --ov-fy2: 5px;
}

.ov-r06,
.ov-r13 {
  --ov-fx1: -2px;
  --ov-fy1: -5px;
  --ov-fx2: 3px;
  --ov-fy2: 4px;
}

.ov-r07,
.ov-r14 {
  --ov-fx1: 2px;
  --ov-fy1: -4px;
  --ov-fx2: -2px;
  --ov-fy2: 4px;
}

/* -------------------------
   別アイテム6個
   左3 / 右3
------------------------- */

/* 左3 */
.ov-f01 {
  top: 18%;
  left: 10%;
  --ov-opacity: .78;
  --ov-rotate: -10deg;
  --ov-duration: 8.6s;
  --ov-delay: -.4s;
  --ov-fx1: 4px;
  --ov-fy1: -8px;
  --ov-fx2: -3px;
  --ov-fy2: 6px;
}

.ov-f02 {
  top: 55%;
  left: 4%;
  --ov-opacity: .76;
  --ov-rotate: 8deg;
  --ov-duration: 7.9s;
  --ov-delay: -1.2s;
  --ov-fx1: -3px;
  --ov-fy1: -6px;
  --ov-fx2: 3px;
  --ov-fy2: 5px;
}

.ov-f03 {
  top: 80%;
  left: 12%;
  --ov-opacity: .74;
  --ov-rotate: -7deg;
  --ov-duration: 8.8s;
  --ov-delay: -.7s;
  --ov-fx1: 3px;
  --ov-fy1: -7px;
  --ov-fx2: -2px;
  --ov-fy2: 5px;
}

/* 右3 */
.ov-f04 {
  top: 18%;
  left: 85%;
  --ov-opacity: .78;
  --ov-rotate: 9deg;
  --ov-duration: 8.3s;
  --ov-delay: -.6s;
  --ov-fx1: -4px;
  --ov-fy1: -8px;
  --ov-fx2: 3px;
  --ov-fy2: 6px;
}

.ov-f05 {
  top: 53%;
  left: 95%;
  --ov-opacity: .76;
  --ov-rotate: -8deg;
  --ov-duration: 8.1s;
  --ov-delay: -1.1s;
  --ov-fx1: 3px;
  --ov-fy1: -6px;
  --ov-fx2: -3px;
  --ov-fy2: 5px;
}

.ov-f06 {
  top: 80%;
  left: 88%;
  --ov-opacity: .74;
  --ov-rotate: 6deg;
  --ov-duration: 9s;
  --ov-delay: -.5s;
  --ov-fx1: -2px;
  --ov-fy1: -7px;
  --ov-fx2: 2px;
  --ov-fy2: 5px;
}

/* =========================
   Tablet
========================= */
@media (max-width: 1024px) {
  .overview {
    padding: 0px 0 110px;
  }

  .overview__inner {
    width: min(calc(100% - 24px), 1200px);
    min-height: 350px;
  }

  .overview__text {
    width: min(100%, 680px);
    padding: 0 24px;
  }

  .overview__lead {
    font-size: clamp(1.15rem, 2.1vw, 1.75rem);
    line-height: 1.9;
  }
}

/* =========================
   SP
========================= */
@media (max-width: 767px) {
  .overview {
    padding: 0px 0 100px;
  }

  .overview__inner {
    width: min(calc(100% - 16px), 100%);
    min-height: auto;
  }

  .overview__accent {
    color: #e18546;
    text-shadow:
      1px 1px 0px #333;
  }

  .overview__text {
    width: min(100%, 100%);
    padding: 32px 18px;
  }

  .overview__lead {
    font-size: clamp(0.7rem, 4.2vw, 2rem);
    line-height: 1.85;
    letter-spacing: 0.08em;
  }

  .text__small {
    font-size: clamp(0.6rem, 2.0vw, 1.0rem);
  }

  /* ランダム散布は数を整理 */
  .ov-r02,
  .ov-r04,
  .ov-r05,
  .ov-r06,
  .ov-r09,
  .ov-r11,
  .ov-r13 {
    display: none;
  }


  .ov-r01 {
    top: 00%;
    left: 22%;
  }

  .ov-r03 {
    top: 34%;
    left: 5%;
  }

  .ov-r07 {
    top: 90%;
    left: 8%;
  }

  .ov-r08 {
    top: 0%;
    left: 72%;
  }

  .ov-r10 {
    top: 30%;
    left: 92%;
  }

  .ov-r12 {
    top: 66%;
    left: 82%;
  }

  .ov-r14 {
    top: 76%;
    left: 92%;
  }

  .ov-f01 {
    top: 8%;
    left: 18%;
  }

  .ov-f02 {
    top: 52%;
    left: 10%;
  }

  .ov-f03 {
    top: 80%;
    left: 20%;
  }

  .ov-f04 {
    top: 12%;
    left: 85%;
  }

  .ov-f05 {
    top: 50%;
    left: 90%;
  }

  .ov-f06 {
    top: 85%;
    left: 86%;
  }

  .overview__line+.overview__line::before {
    content: " ";
  }
}

/* =========================
   Reduced motion
========================= */
@media (prefers-reduced-motion: reduce) {
  .overview__decor {
    animation: none;
  }
}

/* =========================
   3rd Section : Episode
========================= */
.episode {
  position: relative;
  padding: 50px 0 140px;
  background: rgba(231, 229, 162, 0.7);
  overflow: visible;
  isolation: isolate;
}

/* 2nd と 3rd の間の緩やかな波区切り */
.episode::before {
  content: "";
  position: absolute;
  left: 0;
  top: -90px;
  width: 100%;
  height: 90px;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'>\
<path d='M0,50 C120,20 240,20 360,50 C480,70 600,70 720,50 C840,10 960,10 1080,50 C1200,90 1320,90 1440,50 L1440,90 L0,90 Z' fill='rgba(231, 229, 162, 0.7)'/>\
</svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 0;
}

.episode__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 1200px);
  margin-inline: auto;
}

.episode__header {
  text-align: center;
  margin-bottom: 52px;
}

.episode__title {
  margin: 0;
  color: #17325f;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.section__title {
  width: 80%;
  margin: 0 auto;
}

.section__title1 {
  width: 80%;
  margin: 0 auto;
}

.section__title2 {
  width: 60%;
  margin: 0 auto;
}

.episode__lead {
  margin: 18px 0 0;
  color: #000;
  /*font-size: clamp(1rem, 1.5vw, 1.2rem);*/
  line-height: 1.9;
  font-weight: 700;
}

/* =========================
   Carousel common
========================= */
.episode-carousel {
  --slide-w: min(66%, 680px);
  --slide-aspect: 15 / 10;
  position: relative;
}

.episode-carousel+.episode-carousel {
  margin-top: 70px;
}

.episode-carousel__frame {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: 14px;
}

.episode-carousel__viewport {
  position: relative;
  min-height: 480px;
}

.episode-carousel__slides {
  position: relative;
  min-height: 490px;
}

/* 各スライドは absolute で中央基準 */
.episode-carousel__slide {
  position: absolute;
  top: 30px;
  left: 50%;
  width: var(--slide-w);
  aspect-ratio: var(--slide-aspect);
  margin: 0;
  overflow: visible;
  transition:
    transform 0.55s ease,
    opacity 0.55s ease,
    filter 0.55s ease;
  opacity: 0;
  pointer-events: none;
}

.episode-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 現在の画像 */
.episode-carousel__slide.is-current {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
  filter: none;
}

/* 左右の次画像（PCのみ見せる） */
.episode-carousel__slide.is-prev {
  transform: translateX(calc(-50% - 58%)) scale(0.84);
  opacity: 0.44;
  z-index: 2;
  filter: saturate(0.88);
}

.episode-carousel__slide.is-next {
  transform: translateX(calc(-50% + 58%)) scale(0.84);
  opacity: 0.44;
  z-index: 2;
  filter: saturate(0.88);
}

.episode-carousel__slide.is-hidden {
  transform: translateX(-50%) scale(0.76);
  opacity: 0;
  z-index: 1;
  filter: blur(2px);
}

/* =========================
   Rotating badge
========================= */
.episode-carousel__badge1 {
  position: absolute;
  top: -30px;
  left: 20%;
  width: clamp(92px, 9vw, 132px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  z-index: 10;
  pointer-events: none;
}

.episode-carousel__badge2 {
  position: absolute;
  top: -30px;
  left: 20%;
  width: clamp(92px, 9vw, 132px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  z-index: 10;
  pointer-events: none;
}

.episode-carousel__badge1::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/conts/2028/ai_episode/img/badge-circle1.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  animation: badgeSpin 14s linear infinite;
  z-index: 0;
}

.episode-carousel__badge2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/conts/2028/ai_episode/img/badge-circle2.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  animation: badgeSpin 14s linear infinite;
  z-index: 0;
}

.episode-carousel__badge-text {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 68%;
  height: 68%;
  text-align: center;
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.1em;
  font-size: clamp(12px, 1.4vw, 20px);
  text-shadow: 0.8px 0.8px 0 #000, -0.8px -0.8px 0 #000, -0.8px 0.8px 0 #000, 0.8px -0.8px 0 #000, 0px 0.8px 0 #000, 0 -0.8px 0 #000, -0.8px 0 0 #000, 0.8px 0 0 #000;
}

@keyframes badgeSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* =========================
   Arrow
========================= */
.episode-carousel__arrow {
  appearance: none;
  border: 0;
  background: #fbe31c;
  color: #fff;
  -webkit-text-stroke: 1px black;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    opacity 0.2s ease;
}

.episode-carousel__arrow span {
  display: block;
  font-size: 2.8rem;
  line-height: 1;
  transform: translateY(-1px);
}

.episode-carousel__arrow:hover {
  transform: translateY(-2px);
}

.episode-carousel__arrow:active {
  transform: translateY(0);
}

/* =========================
   矢印ボタンの見た目だけwebp化
   ========================= */

/* 既存の配置・サイズはそのまま使い、見た目だけ変更 */
.episode-carousel__arrow {
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 0;

  /* ボタン内の文字矢印を画面外に逃がす */
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
}

/* 既存で ::before / ::after で矢印を描いている場合は消す */
.episode-carousel__arrow::before,
.episode-carousel__arrow::after {
  content: none !important;
}

/* 左右それぞれの画像を指定 */
.episode-carousel__arrow--prev {
  background-image: url("/conts/2028/ai_episode/img/carousel-arrow-prev.webp");
  position: sticky;
  left: 30%;
}

.episode-carousel__arrow--next {
  background-image: url("/conts/2028/ai_episode/img/carousel-arrow-next.webp");
  position: sticky;
  right: 32%;
}

/* =========================
   Dots
========================= */
.episode-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.episode-carousel__dot {
  appearance: none;
  border: 0;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(23, 50, 95, 0.28);
  cursor: pointer;
  padding: 0;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    width 0.25s ease;
}

.episode-carousel__dot.is-active {
  width: 30px;
  background: #fbe31c;
}

/* =========================
   Tablet
========================= */
@media (max-width: 1024px) {
  .episode {
    padding: 50px 0 128px;
  }

  .episode__inner {
    width: min(calc(100% - 24px), 1200px);
  }

  .episode-carousel {
    --slide-w: min(74%, 620px);
  }

  .episode-carousel__frame {
    grid-template-columns: 52px 1fr 52px;
    gap: 10px;
  }

  .episode-carousel__viewport,
  .episode-carousel__slides {
    min-height: 42.5vw;
  }

  .episode-carousel__badge-text {
    width: 95%;
    line-height: 1.2;
    letter-spacing: 0.15em;
    font-size: 16px;
  }

  .episode-carousel__slide {
    top: 18px;
    border-radius: 24px;
  }

  .episode-carousel__slide.is-prev {
    transform: translateX(calc(-50% - 54%)) scale(0.84);
  }

  .episode-carousel__slide.is-next {
    transform: translateX(calc(-50% + 54%)) scale(0.84);
  }

  .episode-carousel__arrow--prev {
    left: 25%;
  }

  .episode-carousel__arrow--next {
    right: 26%;
  }

}

/* =========================
   SP
========================= */
@media (max-width: 767px) {
  .episode {
    padding: 20px 0 104px;
  }

  .episode::before {
    top: -64px;
    height: 64px;
  }

  .episode__inner {
    width: min(calc(100% - 16px), 100%);
  }

  .episode__header {
    margin-bottom: 36px;
  }

  .section__title {
    margin: 0px auto 20px;
  }

  .section__title1 {
    width: 90%;
    margin: 0 auto;
  }

  .section__title2 {
    width: 80%;
  }

  .episode__lead {
    width: 80%;
    margin: 0 auto;
    font-size: clamp(1.6rem, 2.8vw, 1.6rem);
    line-height: 1.6;
  }

  .episode-carousel {
    --slide-w: 100%;
  }

  .episode-carousel+.episode-carousel {
    margin-top: 70px;
  }

  .episode-carousel__frame {
    grid-template-columns: 20px 1fr 20px;
    gap: 0px;
  }

  .episode-carousel__viewport,
  .episode-carousel__slides {
    min-height: 80vw;
  }

  .episode-carousel__slide {
    top: 16px;
    width: 100%;
  }

  /* SPでは左右画像は隠す */
  .episode-carousel__slide.is-prev,
  .episode-carousel__slide.is-next {
    transform: translateX(-50%) scale(0.94);
    opacity: 0;
  }

  .episode-carousel__badge {
    left: 12px;
    top: 2px;
    width: 88px;
  }

  .episode-carousel__slide img {
    width: 80%;
    height: auto;
    max-height: 430px;
    margin: 0 auto;
  }

  .episode-carousel__badge1,
  .episode-carousel__badge2 {
    position: absolute;
    top: -30px;
    left: 2%;
    width: clamp(92px, 10vw, 142px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    z-index: 10;
    pointer-events: none;
  }

  .episode-carousel__badge-text {
    display: grid;
    place-items: center;
    width: 95%;
    height: auto;
    text-align: center;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.1em;
    font-size: 16px;
    text-shadow: 0.6px 0.6px 0 #000, -0.6px -0.6px 0 #000, -0.6px 0.6px 0 #000, 0.6px -0.6px 0 #000, 0px 0.6px 0 #000, 0 -0.6px 0 #000, -0.6px 0 0 #000, 0.6px 0 0 #000;
  }


  .episode-carousel__badge span {
    width: 76%;
    font-size: 0.74rem;
    line-height: 1.3;
  }

  .episode-carousel__arrow {
    width: 50px;
    height: 50px;
  }

  .episode-carousel__arrow span {
    font-size: 1.5rem;
  }

  .episode-carousel__arrow--prev {
    left: 8%;
  }

  .episode-carousel__arrow--next {
    right: 8%;
  }

  .episode-carousel__dots {
    gap: 10px;
    margin-top: 14px;
  }

  .episode-carousel__dot {
    width: 10px;
    height: 10px;
  }

  .episode-carousel__dot.is-active {
    width: 24px;
  }
}

@media (max-width: 560px) {
  .episode-carousel__slide img {
    width: 90%;
    height: auto;
    max-height: 400px;
    margin: 0 auto;
  }

  .episode-carousel__viewport,
  .episode-carousel__slides {
    min-height: 90vw;
  }

  .episode-carousel__badge1,
  .episode-carousel__badge2 {
    top: -30px;
    left: 0%;
    width: clamp(92px, 9vw, 122px);
  }

  .episode-carousel__arrow {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 450px) {
  .episode-carousel__slide img {
    width: 95%;
    height: auto;
    max-height: 330px;
    margin: 0 auto;
  }

  .episode-carousel__viewport,
  .episode-carousel__slides {
    min-height: 90vw;
  }

  .episode-carousel__badge1,
  .episode-carousel__badge2 {
    top: -30px;
    left: -3%;
    width: clamp(92px, 9vw, 122px);
  }

  .episode-carousel__arrow {
    width: 40px;
    height: 40px;
  }


}

/* =========================
   Reduced motion
========================= */
@media (prefers-reduced-motion: reduce) {

  .episode-carousel__slide,
  .episode-carousel__dot,
  .episode-carousel__arrow,
  .episode-carousel__badge::before,
  .episode-carousel__badge::after {
    transition: none;
    animation: none;
  }
}



/* =========================================
   4th section : 先輩からのアドバイス
   ========================================= */

.advice {
  position: relative;
  padding: 0px 30px 50px;
  background: rgba(203, 244, 239, 0.78);
  overflow: visible;
}

.advice__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.advice__head {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.advice__title {
  margin: 0;
}

.advice__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  align-items: end;
}

.advice__item {
  margin: 0;
  margin-bottom: 40px;
}

.advice__card {
  display: block;
  width: 100%;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.advice__card img {
  display: block;
  width: 90%;
  height: auto;
  object-fit: contain;
}

/* JS描画時のふわっと表示 */
.advice__item.is-entering {
  animation: adviceFadeUp 0.45s ease both;
}

@keyframes adviceFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.advice__action {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

.advice__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8em;
  min-width: 200px;
  padding: 12px 24px;
  border: 1.4px solid #000;
  border-radius: 999px;
  background: #fbe31c;
  color: #000;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.advice__toggle::after {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  background: url("/conts/2028/ai_episode/img/img_yajirushi.svg") center / contain no-repeat;
  transition: transform 0.28s ease;
}

.advice__toggle[data-mode="close"]::after {
  transform: rotate(180deg);
}

.advice__toggle:hover {
  transform: translateY(-3px);
}

.advice__toggle:active {
  transform: translateY(0);
}

.advice__toggle:focus-visible {
  outline: 3px solid rgba(23, 50, 95, 0.22);
  outline-offset: 4px;
}

/* セクション区切りの緩やかな2コブ波 */
.advice__wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 70px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 10;
  overflow: visible;
}

.advice__wave--top {
  top: -70px;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'>\
  <path d='M0,88 C180,34 360,34 540,88 C720,142 900,142 1080,88 C1260,34 1350,34 1440,70 L1440,0 L0,0 Z' fill='%23cbf4ef' fill-opacity='0.78'/>\
</svg>");
  transform: scale(1, -1);
}

.advice__wave--bottom {
  bottom: -70px;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'>\
  <path d='M0,50 C180,104 360,104 540,50 C720,-4 900,-4 1080,50 C1260,104 1350,104 1440,68 L1440,120 L0,120 Z' fill='%23cbf4ef' fill-opacity='0.78'/>\
</svg>");
  transform: scale(1, -1);
}

/* tablet */
@media (max-width: 1024px) {
  .advice {
    padding: 0px 0 50px;
  }

  .advice__inner {
    width: 90%;
  }

  .advice__grid {
    gap: 16px;
  }

}

/* sp: 2 × 3 表示 */
@media (max-width: 767px) {
  .advice {
    padding: 0px 0 50px;
  }

  .advice__inner {
    width: 90%;
  }

  .advice__title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .advice__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0px;
  }

  .advice__toggle {
    min-width: 160px;
    padding: 10px 18px;
    /*font-size: 0.9rem;*/
  }

  .advice__wave {
    height: 48px;
  }

  .advice__wave--top {
    top: -48px;
  }

  .advice__wave--bottom {
    bottom: -48px;
  }

}

/* 動きを減らしたい環境向け */
@media (prefers-reduced-motion: reduce) {

  .advice__item.is-entering,
  .advice__card,
  .advice__toggle {
    animation: none;
    transition: none;
  }
}

/* =========================
   4th section accordion motion
   ========================= */

.advice__grid {
  transition: height 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

.advice__grid.is-animating {
  overflow: hidden;
}

.advice__item {
  opacity: 1;
  transform: translateY(0);
}

.advice__item.is-entering {
  animation: adviceCardIn 0.56s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--enter-delay, 0ms);
}

@keyframes adviceCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 閉じるときに少しだけやわらかく消す */
.advice__item.is-leaving {
  animation: adviceCardOut 0.24s ease both;
}

@keyframes adviceCardOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .advice__grid {
    transition: none;
  }

  .advice__item.is-entering,
  .advice__item.is-leaving {
    animation: none;
  }
}


/* =========================================
   5th section : マイナビからのメッセージ
   ========================================= */

.message {
  position: relative;
  padding: clamp(50px, 11vw, 110px) 0 150px;
}

.message__inner {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}

.message__head {
  margin-bottom: clamp(28px, 4vw, 40px);
}

.message__title {
  margin: 0;
  color: #17325f;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.message__catch {
  margin: 40px 0 30px;
  color: #000;
  font-size: clamp(1.18rem, 2.25vw, 1.7rem);
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.message__body {
  color: #000;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.9;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.message__body p {
  margin: 0;
}

.message__body p+p {
  margin-top: 1.7em;
}

/* decorative items */
.message__decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.message__deco {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--size);
  opacity: var(--opacity, 1);
  transform: translate(-50%, -50%) rotate(var(--rotate, 0deg));
  animation: messageFloat var(--duration, 8s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}

.message__deco img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.message__deco.is-item {
  filter: drop-shadow(0 6px 10px rgba(23, 50, 95, 0.06));
}

.message__deco.is-illust {
  filter: drop-shadow(0 10px 18px rgba(23, 50, 95, 0.08));
}

@keyframes messageFloat {
  0% {
    transform: translate(-50%, -50%) translate3d(0, 0, 0) rotate(var(--rotate, 0deg));
  }

  50% {
    transform: translate(-50%, -50%) translate3d(4px, -8px, 0) rotate(calc(var(--rotate, 0deg) + 2deg));
  }

  100% {
    transform: translate(-50%, -50%) translate3d(-3px, 6px, 0) rotate(calc(var(--rotate, 0deg) - 2deg));
  }
}

/* tablet */
@media (max-width: 1024px) {
  .message {
    padding: 70px 0 140px;
  }

  .message__inner {
    width: min(720px, calc(100% - 32px));
  }

  .message__deco.is-illust {
    opacity: calc(var(--opacity, 1) * 0.94);
  }
}

/* sp */
@media (max-width: 767px) {
  .message {
    padding: 30px 0 72px;
  }

  .message__wave {
    height: 48px;
  }

  .message__inner {
    width: min(100% - 24px, 640px);
  }

  .message__title {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .message__catch {
    font-size: clamp(1.08rem, 5.2vw, 1.32rem);
    line-height: 1.55;
  }

  .message__body {
    font-size: 0.96rem;
    line-height: 1.95;
  }

  /* SPは装飾を少し減らす */
  .message__deco[style*="--x:17%"],
  .message__deco[style*="--x:19%"],
  .message__deco[style*="--x:86%"] {
    display: none;
  }

  .message__deco.is-item {
    width: calc(var(--size) * 0.9);
  }

  .message__deco.is-illust {
    width: calc(var(--size) * 0.82);
  }
}

@media (max-width: 450px) {
  .message__catch {
    font-size: 1.6rem;
    line-height: 1.8;
  }

  .message__body {
    font-size: 1rem;
    line-height: 1.95;
  }
}



@media (prefers-reduced-motion: reduce) {
  .message__deco {
    animation: none;
  }
}



/* =========================================
   6th section : お役立ちコンテンツ
   ========================================= */

.links {
  position: relative;
  padding: 50px 0 150px;
  background: rgba(231, 229, 162, 0.7);
}

.links__wave {
  position: absolute;
  top: -70px;
  left: 0;
  width: 100%;
  height: 70px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'>\
  <path d='M0,88 C180,34 360,34 540,88 C720,142 900,142 1080,88 C1260,34 1350,34 1440,70 L1440,0 L0,0 Z' fill='rgba(231, 229, 162, 0.7)'/>\
</svg>");
  transform: scale(1, -1);
}

.links__inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.links__head {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.links__title {
  margin: 0;
  color: #17325f;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.links__lead {
  margin: 16px auto 0;
  max-width: 42em;
  color: #000;
  /*font-size: clamp(1rem, 1.5vw, 1.2rem);*/
  line-height: 1.9;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.links__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  width: 96%;
  margin: 0 auto;
}

/* PC: 縦長カード */
.links__card {
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.links__card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 34px rgba(23, 50, 95, 0.14),
    0 6px 14px rgba(23, 50, 95, 0.10);
    text-decoration: none;
}

.links__card:focus-visible {
  outline: 3px solid rgba(23, 50, 95, 0.22);
  outline-offset: 4px;
}

.links__thumb {
  aspect-ratio: 19 / 10;
  background: #eef4fb;
  overflow: hidden;
}

.links__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.links__content {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 18px 18px 20px;
  /*min-height: 220px;*/
}

.links__card-title {
  margin: 0;
  color: #000;
  font-size: clamp(1.02rem, 1.1vw, 1.1rem);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.links__card-summary {
  margin: 0;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 400;
}

.links__card-tags {
  margin: 0;
  color: #859099;
  font-size: 0.7rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* =========================================
   footer
   ========================================= */

.site-footer {
  background: #00aaeb;
  padding: 10px 16px;
  text-align: center;
}

.site-footer__copy {
  margin: 0;
  color: #fff;
  font-size: 12pt;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* tablet */
@media (max-width: 1024px) {
  .links {
    padding: 40px 0 140px;
  }

  .links__grid {
    gap: 16px;
  }

  .links__card {
    border-radius: 20px;
  }

  .links__content {
    padding: 16px 16px 18px;
    min-height: 200px;
  }

  .links__card-title {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .links__card-summary {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .links__card-tags {
    font-size: 0.7rem;
    line-height: 1.4;
    margin-top: 10px;
  }

}

/* sp */
@media (max-width: 767px) {
  .links {
    padding: 20px 0 64px;
  }

  .links__wave {
    top: -48px;
    height: 48px;
  }

  .links__inner {
    width: min(100% - 24px, 720px);
  }

  .links__title {
    font-size: clamp(1.4rem, 6.8vw, 1.95rem);
  }

  .links__lead {
    width: 80%;
   /* font-size: 0.9rem;*/
    line-height: 1.6;
    font-weight: bold;
  }

  .links__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .links__card {
    --sp-thumb-size: clamp(96px, 28vw, 155px);
    display: grid;
    grid-template-columns: var(--sp-thumb-size) 1fr;
    grid-template-rows: 1fr;
    align-items: stretch;
    border-radius: 10px;
    overflow: hidden;
    min-height: var(--sp-thumb-size);
  }

  .links__thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #eef4fb;
    overflow: hidden;
  }

  .links__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .links__content {
    min-height: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 8px;
    padding: 14px 14px 14px 16px;
    align-content: center;
  }

  .links__card-title {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .links__card-summary {
    font-size: 0.7rem;
    line-height: 1.7;
  }

  .links__card-tags {
    font-size: 0.65rem;
    line-height: 1.3;
  }

  .site-footer {
    padding: 8px 12px;
  }

  .site-footer__copy {
    font-size: 8pt;
  }
}

@media (max-width: 540px) {
  .links__lead {
    width: 90%;
  /*  font-size: 0.8rem;*/
  }

  .links__content {
    gap: 3px;
    padding: 10px;
  }

  .links__card-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .links__card-summary {
    font-size: 1.3rem;
    line-height: 1.6;
    font-weight: bold;
  }

  .links__card-tags {
    font-size: 1.1rem;
    line-height: 1.2;
  }

}

@media (prefers-reduced-motion: reduce) {
  .links__card {
    transition: none;
  }
}

#topicpathArea .topicpathArea__inner .topicpath li,#topicpathArea .topicpathArea__inner .topicpath li a{
  font-family: "Osaka",'メイリオ',Meiryo, "ＭＳ Ｐゴシック", sans-serif;
}
#topicpathArea .topicpathArea__inner .topicpath li a{
  color: #0066cc;
}
@media (max-width: 767px) {
  ul.topicpath{
    display: none;
  }
  

}
@media (max-width: 767px) {
  #topicpathArea{
    display: none;
  }
}