/* -----------------------------------------------------------
ベースリセット
----------------------------------------------------------- */
html {
  margin: 0;
  overflow-x: hidden;
  font-size: 10px;
  line-height: 1.6;
  body {
    margin: 0;
    background: #f4f4f4;
    color: #333;
    font-family: "Noto Sans JP", "メイリオ", "Droid Sans", "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "ＭＳ ゴシック", sans-serif;
  }
}
img {
  max-width: 100%;
}

/* -----------------------------------------------------------
utility
----------------------------------------------------------- */
.br {
  display: inline-block;
}

.pcOnly {
  display: none;

  @media (min-width: 1024px) {
    display: inline-block;
  }
}

/* -----------------------------------------------------------
font
----------------------------------------------------------- */
.din2014 {
  font-family: "din-2014", sans-serif;
  font-display: swap;

  &.-light {
    font-weight: lighter;
  }
  &.-bold {
    font-weight: bold;
  }
}

/* -----------------------------------------------------------
header
----------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 16px;
  z-index: 200;
  width: 64px;
  aspect-ratio: 179 / 151;
  background-color: #fff;

  @media (min-width: 769px) {
    left: 40px;
    width: 120px;
  }
}

.header_logo {
  width: 100%;
}

/* -----------------------------------------------------------
メインビジュアル
----------------------------------------------------------- */
#mainVisual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: #f2f2f2;
  overflow: hidden;
}
#confettiCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.mainLogo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 136px;
  height: auto;
  z-index: 1;
  transition: opacity 0.3s ease, visibility 0.3s ease;

  @media (min-width: 769px) {
    width: 167px;
  }

  &.-hide {
    opacity: 0;
    visibility: hidden;
  }
}

#main65th {
  /* width: 136px; */
  /* max-width: 60%; */
  /* height: auto;
  z-index: 1;
  transition: opacity 0.3s, visibility 0.3s; */

  /* @media (min-width: 769px) {
    width: 167px;
  } */

  &.-hide {
    opacity: 0;
    visibility: hidden;
  }
}
section.content {
  padding: 6rem 1rem;
  font-size: 1.25rem;
  line-height: 1.7;
}

.container {
  padding: 30px calc(20 / 375 * 100%);

  @media (min-width: 769px) {
    padding-block: 60px;
  }

  &:last-of-type {
    padding-bottom: 80px;
    @media (min-width: 769px) {
      padding-bottom: 120px;
    }
  }
}
.container_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 16px;

  @media (min-width: 769px) {
    gap: 40px;
    margin-top: 40px;
  }
}
.container_lead {
  font-weight: bold;
  font-size: 1.5rem;

  @media (min-width: 769px) {
    font-size: 2rem;
  }
}

.heading {
  text-align: center;
  font-size: 4rem;

  @media (min-width: 769px) {
    font-size: 5.4rem;
  }

  &.-white {
    color: #fff;
  }
  &.-blue {
    color: #2f4eab;
  }
}

.txt {
  text-align: center;
  font-size: 1.4rem;

  @media (min-width: 769px) {
    font-size: 1.6rem;
  }
}

/* -----------------------------------------------------------
btn
----------------------------------------------------------- */

.btn {
  display: inline-block;
  position: relative;
  width: 100%;
  max-width: 286px;
  padding-block: 16px;
  border: 1px solid #333;
  background-color: #fff;
  text-align: center;
  line-height: 1;
  cursor: pointer;

  @media (min-width: 769px) {
    padding-block: 18px;
  }

  &.-yellow {
    border-color: #cda720;
  }

  &::before {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    transition: transform 0.2s;
    transform-origin: left top;
    transform: scale(0, 1);
    content: "";
  }
  &.-yellow::before {
    background-color: #cda720;
  }

  &:hover {
    border-color: #fff;
  }
  &:hover::before {
    transform: scale(1, 1);
  }
}

.halfBlock_btn {
  margin-top: 32px;
  margin-inline: auto;

  @media (min-width: 1024px) {
    margin-top: 40px;
    margin-inline: 0;
  }
}
.quiz_btn {
  margin-top: 40px;
}

.btn_content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.btn_arrow {
  z-index: 1;

  .quiz_btn & {
    translate: 0 -4px;
  }
}
.btn_arrow path {
  .btn:hover & {
    fill: #fff;
  }

  .btn.-yellow & {
    fill: #cda720;
  }

  .btn.-yellow:hover & {
    fill: #fff;
  }
}

.btn_txt {
  display: inline-block;
  font-weight: bold;
  font-size: 1.4rem;
  position: relative;
  color: #333;

  @media (min-width: 769px) {
    font-size: 1.6rem;
  }

  .btn:hover & {
    color: #fff;
  }
}

/* -----------------------------------------------------------
シーン切り替え
----------------------------------------------------------- */
/* Stickyステージ（新） */
.stageWrap {
  position: relative;
  z-index: 2;
  /* JSが height を合計スクロール長 + 100vh に設定します */

  &:has(.stage.is-released) {
    z-index: initial;
  }
}
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  transition: opacity 0.35s ease;
}
/* topics に入ったらステージ全体をフェード（任意。クロスフェードの完了感を高める） */
.stage.is-released {
  opacity: 0;
  pointer-events: none;
}

/* 重ねるシーン（クロスフェード） */
.stage .scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #fff; /* 既存各シーンの背景指定が別にある場合はそちらを優先 */
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  will-change: opacity;
}
.stage .scene.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.mask {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  /* padding-right: 44px; */
  font-size: 6.4rem;
  font-weight: bold;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;

  &.is-show {
    opacity: 1;
    pointer-events: auto;
  }

  &::after {
    width: 28px;
    height: 28px;
    background: url(../img/ico_triangle_white.svg) center/contain no-repeat;
    content: "";
  }
}
#scene_message {
  background: linear-gradient(180deg, #2f4eab 0%, #203574 99.99%);
  color: #fff;
}
#scene_company {
  background-color: #f2f2f2;
}
#scene_interval_1 {
  background: linear-gradient(180deg, #ebc337 0%, #dbb631 100%);
}
#scene_history,
#scene_products {
  display: flex;
  flex-direction: column;
}
#scene_interval_2 {
  background-color: #f2f2f2;
}
#scene_quiz {
  background: linear-gradient(180deg, #35a767 0%, #298150 100%);
}
#scene_topics {
  position: relative;
  /* z-index: -1; */
  margin-top: -70vh;
  overflow: hidden;
}
html:not(.is-stage-ready) #scene_topics {
  visibility: hidden;
}
.accentBg {
  z-index: -1;
  position: relative;

  &::before {
    position: absolute;
    left: -2%;
    width: calc(59 / 375 * 100%);
    aspect-ratio: 59 / 289;
    background: url(../img/topics_bg_01_sp.webp) no-repeat center/cover;
    content: "";

    @media (min-width: 769px) {
      left: -1.5%;
      width: calc(146 / 1440 * 100%);
      aspect-ratio: 146 / 1004;
      background-image: url(../img/topics_bg_01_pc.webp);
    }
  }
  &::after {
    position: absolute;
    right: -7%;
    width: calc(55 / 375 * 100%);
    aspect-ratio: 55 / 289;
    background: url(../img/topics_bg_02_sp.webp) no-repeat center/cover;
    content: "";

    @media (min-width: 769px) {
      right: -1.5%;
      width: calc(146 / 1440 * 100%);
      aspect-ratio: 146 / 1004;
      background-image: url(../img/topics_bg_02_pc.webp);
    }
  }
}
.pi {
  display: none;
  flex-direction: column;
  align-items: center;
  position: fixed;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  pointer-events: none;
  .pi-dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .pi-dot {
    width: 3px;
    height: 4px;
    border-radius: 999px;
    background: var(--pi-dot-color, #333);
    /* opacity: 0.35; */
    transition: height 0.2s ease;
    &.is-active {
      height: 40px;
    }
  }

  .stageWrap:has(#scene_message.is-active) ~ &,
  .stageWrap:has(#scene_company.is-active) ~ &,
  .stageWrap:has(#scene_interval_1.is-active) ~ &,
  .stageWrap:has(#scene_history.is-active) ~ &,
  .stageWrap:has(#scene_products.is-active) ~ &,
  .stageWrap:has(#scene_interval_2.is-active) ~ &,
  .stageWrap:has(#scene_quiz.is-active) ~ &,
  .stageWrap:has(#scene_interval_2.is-active) ~ &,
  #scene_topics.is-active ~ & {
    display: flex;

    @media (max-width: 768px) {
      display: none;
    }
  }
}
/* -----------------------------------------------------------
scrollDown (mainVisual)
----------------------------------------------------------- */
.scrollDown {
  display: none;
  position: fixed;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  scale: 0.8;
  transform-origin: top center;

  .stageWrap:has(#scene_mainVisual.is-active) ~ & {
    display: block;
  }

  @media (min-width: 769px) {
    left: 27px;
    scale: 1;
  }
}
.scrollDown.is-show {
  opacity: 1;
}

.scrollDown_inner {
  position: relative;
  width: 28px; /* ライン+三角の幅（左端で縦線を見せる） */
  height: 120px; /* アニメの縦方向のレンジ */
}

.scrollDown_line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #333;
  transform: translateX(-50%);
  border-radius: 999px;
}

.scrollDown_tri {
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(90deg); /* ボタン用の▶を下向きに */
  animation: sd-slide 1.8s ease-in-out infinite;
}
.scrollDown_tri path {
  fill: #333; /* deSVGでインライン化後に適用 */
}

@keyframes sd-slide {
  0% {
    top: 0%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    top: 90%;
    opacity: 0;
  }
}

/* 「Scroll」テキスト（画像例に近い右側横書き回転） */
.scrollDown_label {
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-size: 1.6rem;
  color: #333;
  letter-spacing: 0.06em;
  user-select: none;
}

/* -----------------------------------------------------------
pageTop
----------------------------------------------------------- */
.pageTop {
  display: flex;
  width: 50px;
  height: 70px;
  padding: 4px;
  padding-bottom: 20px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  position: fixed; /* 仕様に合わせて固定配置 */
  right: 16px;
  bottom: -20px;
  z-index: 200;
  background: #fff;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.15);

  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, bottom 0.25s ease;

  @media (min-width: 769px) {
    right: 40px;
  }
}
.pageTop.is-show {
  opacity: 1;
  pointer-events: auto;

  @media (hover: hover) {
    &:hover {
      bottom: 0;
    }
  }
  @media (hover: none) {
    &:active {
      bottom: 0;
    }
  }
}

.pageTop_tri {
  width: 14px;
  height: 14px;
  transform: rotate(-90deg); /* ▶ を上向きに */
}
.pageTop_tri path {
  fill: #dab226; /* 黄（既存のボタンと同系色） */
}

.pageTop_label {
  font-size: 1.2rem;
  line-height: 1;
  color: #666;
}
/* -----------------------------------------------------------
halfBlock
----------------------------------------------------------- */
.halfBlock {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: calc(160 / 667 * 100%) 1fr;
  &.-reverse {
    @media (min-width: 1024px) {
      .halfBlock_txtArea {
        order: 1;
      }
      .halfBlock_imgArea {
        order: 2;
      }
    }
  }
  @media (min-width: 1024px) {
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
  }

  #scene_company & {
    grid-template-rows: calc(200 / 667 * 100%) 1fr;

    @media (min-width: 1024px) {
      grid-template-rows: auto;
      grid-template-columns: 1fr 1fr;
    }
  }
}
.halfBlock_txtArea {
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: 2;
  position: relative;
  padding: 40px calc(20 / 375 * 100%);

  @media (min-width: 769px) {
    padding: 0 calc(60 / 768 * 100%);
  }
  @media (min-width: 1024px) {
    padding: 0;
  }

  #scene_message & {
    @media (max-width: 1023px) {
      padding-top: 0;
    }
  }
}
.halfBlock_txtContainer {
  transition: transform 0.5s ease;

  @media (min-width: 1024px) {
    position: absolute;
    top: 50%;
    /* right: calc(130 / 720 * 100%); */
    /* max-width: 500px; */
    /* margin-left: 88px; */
    margin-left: calc(88 / 720 * 100%);
    margin-right: calc(132 / 720 * 100%);
    transform: translateY(-50%);
  }

  .halfBlock.-bgBlue & {
    color: #fff;
  }
  .halfBlock.-reverse & {
    @media (min-width: 1024px) {
      margin-left: calc(132 / 720 * 100%);
      /* margin-right: calc(88 / 720 * 100%); */
      margin-right: 40px;
    }
  }
}
.halfBlock_heading {
  font-size: 3.2rem;
  line-height: 1;
  color: inherit;

  @media (min-width: 361px) {
    font-size: 4rem;
  }
  @media (min-width: 769px) {
    font-size: 5.4rem;
  }

  #scene_company & {
    max-width: 500px;
  }
}
.halfBlock_accordion {
  display: grid;
  visibility: hidden;
  opacity: 0;
  margin-top: 16px;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease-in-out, opacity 0.5s ease-out;
  transition-delay: 0s, 0.5s;

  @media (min-width: 769px) {
    margin-top: 40px;
  }

  .halfBlock_txtArea.-active & {
    visibility: visible;
    opacity: 1;
    grid-template-rows: 1fr;
  }
}
.halfBlock_accordionInner {
  display: flex;
  flex-direction: column;
  /* align-items: flex-end; */
  overflow-y: hidden;
  font-size: 1.4rem;

  @media (min-width: 769px) {
    font-size: 1.6rem;
  }
}
@media (max-width: 768px) {
  #scene_message .halfBlock_accordionInner {
    position: relative;
  }
  #scene_message .msgChunk {
    transition: opacity 0.5s ease;
  }
  #scene_message .msgChunk.-on {
    opacity: 1;
    height: auto;
    min-height: 312px;
    overflow: visible;
  }
  #scene_message .msgChunk.-off {
    opacity: 0;
    height: 0;
    overflow: hidden;
  }
}
.halfBlock_txt {
  display: inline-block;
  margin-top: 16px;

  @media (min-width: 769px) {
    /* margin-top: 24px; */
  }
}
.president {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 24px;
  margin-top: 16px;
}
.president_txt {
  text-align: right;
  font-size: 1.4rem;

  @media (min-width: 769px) {
    font-size: 1.6rem;
  }
}
.president_img {
  display: none;

  @media (min-width: 361px) {
    display: block;
    width: 90px;
    height: 106px;
  }
}
@property --r {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 0%;
}

/* シーン会社のカルーセルサイズ調整 */
#scene_company .company-swiper {
  width: 100%;
  height: 100%;
}

#scene_company .company-swiper .swiper-slide {
  display: grid;
  place-items: center;
}

#scene_company .company-swiper img.halfBlock_img.-base {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.halfBlock_imgArea {
  order: 1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --r: 0;
  transition: --r 0.5s ease-out;
  &.-active {
    --r: 150%;
  }
}

.halfBlock_img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  &.-base {
    #scene_message & {
      top: 50%;
      left: 50%;
      width: calc(200 / 375 * 100%);
      height: calc(187 / 240 * 100%);
      transform: translate(-50%, -50%);
      object-fit: contain;

      @media (min-width: 769px) {
        width: calc(560 / 720 * 100%);
        /* height: calc(522 / 874 * 100%); */
      }
    }
  }

  &.-overlay {
    z-index: 2;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--r), black var(--r));
    mask-image: radial-gradient(circle at 50% 50%, transparent var(--r), black var(--r));
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: 50% 50%;
    mask-position: 50% 50%;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }

  > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
} /* -----------------------------------------------------------
カルーセル
----------------------------------------------------------- */
body {
  margin: 0;
  background: #f4f4f4;
  font-family: system-ui;
}
.carousel-row {
  width: 100%;
  overflow: hidden;

  /* 親を等分する（各行が親の高さの1/3になる） */
  flex: 1 1 0;
  min-height: 0; /* flex item で内部の overflow を効かせるために必要 */
}

/* track を行の高さに合わせる */
.carousel-row .track {
  display: flex;
  width: max-content;
  height: 100%; /* ← 追加：行の高さに合わせる */
  align-items: stretch; /* 子要素（.carousel_item）を行の高さに揃える */
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

/* 各アイテムも行の高さに */
.carousel_item {
  position: relative;
  flex-shrink: 0;
  height: 100%; /* ← 追加：画像やキャプションの基準にする */
  margin: 0;
  overflow: hidden;
}

/* 画像は行高さに合わせる（var(--row-h) を使わない） */
.carousel_img {
  display: block;
  width: auto;
  height: 100%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  object-fit: contain; /* 画像比率を保つ（必要に応じ cover に） */
  scale: 1.01;
  transition: scale 0.3s;

  .carousel_item:hover & {
    scale: 1.1;
  }
}
.carousel_caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px 12px 8px 36px;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 1.6rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  pointer-events: none;

  &::before {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 12px;
    height: 2px;
    background-color: #fff;
    transform: translateY(-50%);
    content: "";
  }
  &::after {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 2px;
    height: 12px;
    background-color: #fff;
    transform: translateY(-50%);
    content: "";
  }
}
@keyframes scroll-rtl {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes scroll-ltr {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
.rtl .track {
  animation-name: scroll-rtl;
}
.ltr .track {
  animation-name: scroll-ltr;
}
.popover {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 999;
  &.show {
    display: grid;
  }
}
.pop-wrap {
  display: flex;
  flex-direction: column;
  position: relative;
  width: min(1000px, 90%);
  max-height: 90%;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  animation: pop 0.25s ease-out;
  @media (min-width: 769px) {
    padding: 48px;
  }
}
.pop-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.pop-img-wrap {
  flex-shrink: 0;
  width: 100%;
  height: 115px;
  overflow: hidden;
  @media (min-width: 769px) {
    height: 240px;
  }
}
.pop-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pop-ttlArea {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
  @media (min-width: 769px) {
    flex-direction: row;
    justify-content: space-between;
    margin-top: 40px;
  }
}
.pop-ttl {
  flex-shrink: 0;
  font-weight: bold;
  font-size: 1.6rem;
  @media (min-width: 769px) {
    font-size: 2rem;
  }
}
.pop-snsArea {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  @media (min-width: 769px) {
    gap: 20px;
  }
}
.pop-desc {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  font-size: 1.4rem;
  overflow-y: auto;

  /* ← 追加: テキスト内の改行文字を反映（安全に <br> を表示する方法） */
  white-space: pre-line;

  @media (min-width: 769px) {
    margin-top: 16px;
    font-size: 1.6rem;
  }
}
.pop_btn {
  margin-top: 8px;
  margin-inline: auto;

  @media (min-width: 769px) {
    margin-top: 16px;
  }
}
@keyframes pop {
  from {
    scale: 0.8;
    opacity: 0;
  }
  to {
    scale: 1;
    opacity: 1;
  }
} /* -----------------------------------------------------------
三角形
----------------------------------------------------------- */
:root {
  --size: 200px;
  --speed: 30s;
  --color: #fff;
  --stroke: 2;
  --x: 50vw;
  --y: 50vh;
  --z: 10;
}
@media (max-width: 767.98px) {
  .tri-abs {
    left: var(--x-sp, var(--x));
    top: var(--y-sp, var(--y));
  }
  .tri {
    width: var(--size-sp, var(--size));
  }
  .tri.spin svg {
    animation: spin360 var(--speed-sp, var(--speed)) linear infinite;
  }
}
@media (min-width: 1024px) {
  .tri-abs {
    left: var(--x-pc, var(--x));
    top: var(--y-pc, var(--y));
  }
  .tri {
    width: var(--size-pc, var(--size));
  }
  .tri.spin svg {
    animation: spin360 var(--speed-pc, var(--speed)) linear infinite;
  }
}
.tri-abs {
  position: fixed;
  left: var(--x);
  top: var(--y);
  z-index: var(--z);
  pointer-events: none;
  &.pe-auto {
    pointer-events: auto;
  }
}
.anchor-center {
  transform: translate(-50%, -50%);
}
.anchor-tl {
  transform: translate(0, 0);
}
.anchor-tr {
  transform: translate(-100%, 0);
}
.anchor-bl {
  transform: translate(0, -100%);
}
.anchor-br {
  transform: translate(-100%, -100%);
}
.tri {
  width: var(--size);
  aspect-ratio: 1/1;
  display: block;
  color: var(--color);
}
.tri svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.tri.spin svg {
  animation: spin360 var(--speed) linear infinite;
  transform-origin: 50% 50%;
  transform-box: view-box;
}
@keyframes spin360 {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tri.spin svg {
    animation: none !important;
  }
}
.tri use.tri-outline {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--stroke);
  stroke-miterlimit: 1;
  vector-effect: non-scaling-stroke;
}
.tri {
  &.-company {
    --color: #d966c6;
    --size: max(440px, calc(700 / 768 * 100vw));
    --x: 20%;
    --y: 80%;
    --z: -1;
    @media (min-width: 1024px) {
      --size: calc(700 / 1440 * 100vw);
      --x: 65%;
      --y: 90%;
    }
  }
  &.-interval11 {
    --color: #fff;
    --size: max(440px, calc(700 / 768 * 100vw));
    --x: 100%;
    --y: 10%;
    --z: -1;
    @media (min-width: 1024px) {
      --size: calc(700 / 1440 * 100vw);
      --x: 80%;
      --y: 5%;
    }
  }
  &.-interval12 {
    --color: #fff;
    --size: max(440px, calc(700 / 768 * 100vw));
    --x: 0;
    --y: 90%;
    --z: -1;
    @media (min-width: 1024px) {
      --size: calc(700 / 1440 * 100vw);
      --x: 20%;
      --y: 95%;
    }
  }
  &.-interval21 {
    --color: #dab226;
    --size: max(440px, calc(700 / 768 * 100vw));
    --x: 100%;
    --y: 10%;
    --z: -1;
    @media (min-width: 1024px) {
      --size: calc(700 / 1440 * 100vw);
      --x: 80%;
      --y: 5%;
    }
  }
  &.-interval22 {
    --color: #dab226;
    --size: max(440px, calc(700 / 768 * 100vw));
    --x: 0;
    --y: 90%;
    --z: -1;
    @media (min-width: 1024px) {
      --size: calc(700 / 1440 * 100vw);
      --x: 20%;
      --y: 95%;
    }
  }
  &.-quiz {
    --color: #fff;
    --size: max(620px, calc(900 / 768 * 100vw));
    --x: 60%;
    --y: 75%;
    --z: -1;
    @media (min-width: 1024px) {
      --size: calc(700 / 1440 * 100vw);
      --x: 75%;
      --y: 80%;
    }
  }
}
.tri-abs.debug::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  background: #e11;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(225, 17, 17, 0.3);
}

/* -----------------------------------------------------------
centerItem
----------------------------------------------------------- */
.centerItem {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  padding: 40px calc(20 / 375 * 100%);
  font-size: 1.6rem;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s, visibility 0.3s;
  @media (min-width: 769px) {
    font-size: 2.4rem;
    padding-inline: calc(60 / 768 * 100%);
  }

  &.-hide {
    opacity: 0;
    visibility: hidden;
  }
}

.centerItem_ttl {
  font-weight: bold;
  font-size: 2.4rem;
  @media (min-width: 769px) {
    font-size: 3.2rem;
  }
}

.centerItem_txt {
  .centerItem_ttl + & {
    margin-top: 16px;
  }

  &.-bold {
    font-weight: bold;
  }

  &.-white {
    color: #fff;
  }
}

/* -----------------------------------------------------------
quiz
----------------------------------------------------------- */
:root {
  /* 色 */
  --color-bg: #0f8755;
  --color-bg-grad1: #0f8755;
  --color-bg-grad2: #1e9b63;
  --color-panel: #ffffff;
  --color-text: #222;
  --color-muted: #666;
  --color-primary: #2f4eab;
  --color-primary-weak: #e7edff;
  --color-border: #d9d9d9;
  --color-ok: #1a7f37;
  --color-ng: #d93025;

  /* スペーシング */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;

  /* 角丸/影 */
  --radius-2: 8px;
  --radius-3: 12px;
  --shadow-1: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* パネル */
  --panel-max-width: 720px;

  /* フォント */
  --font-base: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--font-base);
  line-height: 1.6;
  color: var(--color-text);
  background: linear-gradient(160deg, var(--color-bg-grad1), var(--color-bg-grad2)) no-repeat fixed; */
/* } */

/* ヘッダー */
.site-header {
  display: block;
  padding: var(--space-6) var(--space-6) var(--space-2);
  color: #fff;

  @media (min-width: 769px) {
    padding: var(--space-8) var(--space-8) var(--space-3);
  }

  .site-header__inner {
    max-width: var(--panel-max-width);
    margin-inline: auto;
  }

  .site-header__title {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 0.04em;
    margin: 0;
    color: #fff;

    @media (min-width: 769px) {
      font-size: 36px;
    }
  }
}

/* アプリルート */
.quiz {
  display: grid;
  justify-items: center;
  gap: var(--space-6);
  width: 100%;
  margin: 0 auto;
  padding-inline: 24px;

  @media (min-width: 769px) {
  }

  .is-hidden {
    display: none !important;
  }
}

/* 開始画面 */
.quiz__start {
  display: grid;
  place-items: center;
  min-height: 40vh;

  .quiz__start-inner {
    display: grid;
    gap: var(--space-6);
    text-align: center;

    @media (min-width: 769px) {
      justify-items: start;
      text-align: left;
    }
  }

  .quiz__lead {
    margin: 0;
    font-size: 18px;
    color: #fff;

    @media (min-width: 769px) {
      font-size: 20px;
    }
  }

  /* .quiz__start-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    min-width: 200px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    background: #fff;
    border: 2px solid #fff;
    border-radius: 0;
    box-shadow: var(--shadow-1);
    cursor: pointer;
    transition: transform 0.05s ease;

    &:active {
      transform: translateY(1px);
    }
  } */
}

.quiz__panel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: 16px; */
  width: 100%;
  max-width: 1000px;

  /* @media (min-width: 769px) {
    gap: 40px;
  } */
}

/* パネル */
.quiz__panel {
  display: block;
  width: min(100%, 1000px);
  margin-top: 16px;

  @media (min-width: 769px) {
    margin-top: 40px;
  }

  .quiz__panel-inner {
    display: flex;
    flex-direction: column;
    position: relative;
    height: calc(90vh - 80px);
    max-width: 100%;
    background: var(--color-panel);
    border-radius: var(--radius-3);
    box-shadow: var(--shadow-1);
    padding: var(--space-6);
    overflow: hidden;

    @media (min-width: 769px) {
      max-height: 480px;
      padding: var(--space-8);
    }
  }

  .quiz__panel-body {
    display: block;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .quiz__panel-footer {
    display: block;
    margin-top: 32px;

    @media (min-width: 769px) {
      margin-top: 40px;
    }
  }
}

.quiz__skip {
  font-size: 1.4rem;
  color: #fff;
  text-decoration: underline;
  text-align: left;
  margin-inline: 0 auto;
  margin-top: 8px;

  /* &:hover {
    opacity: 0.8;
  } */
}
.quiz__skip:hover {
  opacity: 0.8;
}

/* 共通ビュー */
.quiz__view {
  height: 100%;
}

/* 質問ビュー */
.quiz__view--question {
  display: flex;
  flex-direction: column;

  .quiz__q-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;

    @media (min-width: 769px) {
      margin-bottom: 32px;
    }
  }

  .quiz__q-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    color: #fff;
    background: var(--color-primary);
  }

  .quiz__q-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;

    @media (min-width: 769px) {
      font-size: 20px;
    }
  }

  /* スクロールが必要な場合のみ左罫線を表示 */
  .quiz__q-text {
    flex: 1 1 auto;
    overflow: auto;
    padding-right: 4px;
    font-size: 1.4rem;
    color: var(--color-muted);
    margin-bottom: var(--space-6);
    padding-left: 0;
    border-left: 0;

    @media (min-width: 769px) {
      font-size: 1.6rem;
    }
  }

  /* 3択ボタン */
  .quiz__choices {
    display: grid;
    gap: var(--space-4);

    @media (min-width: 769px) {
      grid-template-columns: repeat(3, 1fr); /* PCでは横並び */
    }
  }

  .quiz__choice {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-weight: bold;
    font-size: 1.4rem;
    text-align: left;
    background: #fff;
    border: 2px solid var(--color-primary);
    border-radius: 0; /* 角丸なし */
    color: #3d58a9;
    cursor: pointer;
    transition: background-color 0.15s ease;

    @media (min-width: 769px) {
      font-size: 1.6rem;
    }

    &:hover,
    &:focus-visible {
      background: var(--color-primary-weak);
    }
  }
}

/* 回答ビュー */
.quiz__view--answer {
  display: flex;
  flex-direction: column;

  .quiz__answer-status {
    margin: 0 0 var(--space-4);
    font-size: 2.4rem;
    font-weight: 700;
    color: #3d58a9;
    text-align: center;

    @media (min-width: 769px) {
      font-size: 3.2rem;
    }
  }

  .quiz__answer-content {
    display: grid;
    grid-template-columns: 1fr;
    flex: 1 1 auto;
    gap: var(--space-6);
    min-height: 0;

    @media (min-width: 769px) {
      grid-template-columns: 240px 1fr;
      gap: 32px;

      &.is-text-only {
        grid-template-columns: 1fr; /* 画像なし時はPCでも1カラム */
      }
    }
  }

  .quiz__answer-media {
    min-height: 0;
    display: none;

    @media (min-width: 769px) {
      display: block;
    }

    img {
      @media (min-width: 769px) {
        display: block;
        max-height: 240px;
        /* max-height: none;i */
        object-fit: contain;
      }
    }
  }

  .quiz__answer-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .quiz__answer-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;

    @media (min-width: 769px) {
      margin-bottom: 32px;
    }
  }

  .quiz__answer-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    color: #fff;
    background: #cda720;
  }

  .quiz__answer-title {
    font-size: 18px;
    font-weight: 700;

    @media (min-width: 769px) {
      font-size: 20px;
    }
  }

  /* 解説も必要時のみ左罫線 */
  .quiz__answer-text {
    flex: 1 1 auto;
    overflow: auto;
    font-size: 14px;
    color: var(--color-muted);
    margin-bottom: var(--space-4);
    padding-left: 0;
    border-left: 0;

    @media (min-width: 769px) {
      flex: initial;
      font-size: 15px;
    }
  }

  .quiz__answer-linkwrap {
    margin: 0 0 var(--space-6);
  }

  .quiz__answer-link {
    font-size: 1.4rem;
    text-decoration: underline;
    @media (min-width: 769px) {
      font-size: 1.6rem;
    }
  }

  .quiz__answer-next {
    display: block;
    margin-inline: auto;
    @media (min-width: 769px) {
      margin-inline: 0;
    }

    .quiz__next-button {
      display: inline-block;
      padding: 12px 16px;
      min-width: 220px;
      font-size: 16px;
      font-weight: 600;
      text-align: center;
      background: #fff;
      color: var(--color-primary);
      border: 2px solid var(--color-primary);
      border-radius: 0; /* 角丸なし */
      cursor: pointer;

      &:hover,
      &:focus-visible {
        background: var(--color-primary-weak);
      }
    }
  }
}

/* 結果ビュー */
.quiz__view--result {
  display: grid;
  place-items: center;

  .quiz__result-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
  }

  .quiz__result-lead {
    font-size: 20px;
    color: var(--color-muted);
  }

  .quiz__result-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
    font-size: 28px;

    @media (min-width: 769px) {
      flex-direction: row;
      justify-content: center;
      align-items: baseline;
      gap: 20px;
    }
  }

  .result {
    font-size: 2.8rem;

    @media (min-width: 769px) {
      font-size: 3.2rem;
    }
  }

  .result-num {
    display: inline-block;
    font-size: 4.8rem;

    @media (min-width: 769px) {
      font-size: 5.6rem;
    }
  }

  #result-correct {
    color: #3d58a9;
  }

  .quiz__retry-link {
    padding: 8px 12px;
    font-size: 1.4rem;
    color: var(--color-primary);
    background: transparent;
    border: none;
    text-decoration: underline;
    cursor: pointer;

    @media (min-width: 769px) {
      font-size: 1.6rem;
    }
  }

  .quiz__share-button {
    display: inline-block;
    padding: 12px 16px;
    width: 100%;
    max-width: 255px;
    min-width: 220px;
    margin-top: 32px;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    color: var(--color-text);
    border: 2px solid var(--color-border);
    border-radius: 0; /* 角丸なし */
    cursor: pointer;

    @media (min-width: 769px) {
      max-width: 420px;
    }

    &:hover,
    &:focus-visible {
      background: #f7f7f7;
    }
  }
}

/* -----------------------------------------------------------
topics
----------------------------------------------------------- */
.topics {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  margin-inline: auto;

  @media (min-width: 769px) {
    gap: 40px;
    max-width: 800px;
  }
}

.topics_item {
  display: flex;
  flex-direction: column;
  gap: 24px;

  @media (min-width: 769px) {
    flex-direction: row;
    gap: 32px;
  }
}

.topics_imgArea {
  width: 100%;

  @media (min-width: 769px) {
    flex-shrink: 0;
    max-width: 320px;
  }
}

.topics_img {
  width: 100%;
}

.topics_txtArea {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topics_ttlArea {
}

.topics_category {
  font-weight: bold;
  font-size: 1.2rem;
}

.topics_ttl {
  font-weight: bold;
  font-size: 1.4rem;

  @media (min-width: 769px) {
    font-size: 1.6rem;
  }
}

.topics_txt {
  font-size: 1.4rem;

  @media (min-width: 769px) {
    font-size: 1.6rem;
  }
}

.topics_btn {
  max-width: 160px;
  margin-left: auto;
}

.sns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;

  @media (min-width: 769px) {
    gap: 32px;
  }
}
.sns_post {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}
html:not(.is-stage-ready) #scene_topics .sns,
html:not(.is-stage-ready) #scene_topics .sns_post {
  visibility: hidden;
}

.sns_icoLinks {
  display: flex;
  flex-direction: row;
  gap: 40px;

  > img {
    width: 100%;
  }
}

.sns_icoLink {
  &:hover {
    opacity: 0.8;
  }
}

/* 進捗インジケーター */
.progress {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress__item {
  height: 6px;
  border-radius: 999px;
  background: #e8e8e8;

  &.is-active {
    background: var(--color-primary);
  }

  &.is-done {
    background: #b9c7ff;
  }
}

/* -----------------------------------------------------------
YouTube モーダル
----------------------------------------------------------- */
/* YouTube モーダル（フェード＋スケール） */
.videoModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid; /* 常にレイアウトし、visibility/opacityで制御 */
  place-items: center;
  background: rgba(0, 0, 0, 0.65);

  /* フェード制御 */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.videoModal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.videoModal_wrap {
  position: relative;
  width: min(960px, 90%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);

  /* ふわっと表示（中身のスケール＋フェード） */
  transform: scale(0.98);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.videoModal.show .videoModal_wrap {
  transform: scale(1);
  opacity: 1;
}

.videoClose {
  position: absolute;
  top: 4px;
  right: 10px;
  font-size: 28px;
  line-height: 1;
  background: transparent;
  border: none;
  color: #333;
  cursor: pointer;
}
.videoIframeWrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* レスポンシブ */
  background: #000;
  overflow: hidden;
}
.videoIframeWrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ユーザーが視覚効果軽減を希望する場合はアニメ無効 */
@media (prefers-reduced-motion: reduce) {
  .videoModal,
  .videoModal_wrap {
    transition: none !important;
  }
}

/* -----------------------------------------------------------
footer
----------------------------------------------------------- */
.footer {
  width: 100%;
  height: 160px;
  background: linear-gradient(180deg, #2f4eab 0%, #203574 99.99%);
}

.footer_inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 60px;
  color: #fff;
}

.footer_coopName {
  font-weight: bold;
  font-size: 1.6rem;
}

.footer_copyright {
  font-size: 1.2rem;
}

html:not(.is-stage-ready) .footer {
  visibility: hidden;
}
