:root {
  --bg-card: #EFEFEF;
  --line-color: #B7E1D4;
  --game-bg: #808080;
  --pole-color: #D9D9D9;
  --pole-shadow: #C4C4C4;
  --process-circle: #0D996F;
  --process-circle-20: #3DB385;
  --process-circle-0: #6CCD9B;
  --game-card: #FFFFFF;
  --game2-card: #EAEAEA;
  --frame-line: #EFEFEF;
  --process-title: #FFFFFF;
  --accent: #F5A732;
}

[data-theme=light] {
  --bg-card: #EFEFEF;
  --line-color: #B7E1D4;
  --game-bg: #808080;
  --pole-color: #D9D9D9;
  --pole-shadow: #C4C4C4;
  --process-circle: #0D996F;
  --process-circle-20: #3DB385;
  --process-circle-0: #6CCD9B;
  --game-card: #FFFFFF;
  --game2-card: #EAEAEA;
  --frame-line: #EFEFEF;
  --process-title: #222222;
  --accent: #EC981A;
}

/* レイアウトとベース設定 */
.layout__main {
  width: 77.778%;
  padding: 0 40px;
}
@media screen and (max-width: 768px) {
  .layout__main {
    width: 100%;
    padding: 0 16px;
  }
}

/* ボックスヘッダー */
.box__head {
  padding: 16px 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .box__head {
    padding: 16px 0 0;
  }
}

.box__head__ttl-main {
  font-family: "futura-pt", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-right: 8px;
  color: var(--process-title);
}
@media screen and (max-width: 768px) {
  .box__head__ttl-main {
    display: block;
    font-size: 2rem;
  }
}

.processes__container {
  width: 100%;
  padding-top: 16px;
  position: relative;
  justify-content: space-evenly;
  row-gap: 103px;
  align-items: flex-start;
  display: inline-flex;
  flex-wrap: wrap;
}

.process__list {
  display: contents;
}
@media screen and (max-width: 768px) {
  .process__list {
    display: grid;
  }
}

/* プロセスコンテナ */
.processes__body {
  justify-self: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

/* スタート・ゴール */
.processes__start {
  top: 123px;
  left: 0px;
  position: absolute;
}

.processes__goal {
  top: 2735px;
  left: 0px;
  position: absolute;
}

.processes__line {
  justify-content: flex-start;
  align-items: center;
  gap: 30px;
  display: flex
}

.processes__line__box {
  width: 30px;
  height: 4px;
  position: relative
}

.processes__line__white {
  width: 30px;
  height: 4px;
  position: absolute;
  background: var(--bg-card);
}

/* 接続線 - 垂直 */
.processes__line__vertical {
  width: 562px;
  height: 40px;
  padding: 20px;
  position: absolute;
  transform: rotate(-90deg);
  transform-origin: top left;
  background: var(--line-color);
  justify-content: center;
  align-items: center;
  gap: 10px;
  display: flex
}

/* 接続線 - 水平 */
.processes__line__horizontal {
  width: 95%;
  height: 40px;
  position: absolute;
  background: var(--line-color);
  justify-content: center;
  display: flex;
  align-items: center;
}
/* プロセスカード */
.processes__card {
  height: 420px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  display: inline-flex;
  z-index: 1;
}
@media screen and (min-width: 1300px) {
  .processes__card {
    padding: 24px;
  }
}

.processes__card__top {
  position: relative;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  display: flex
}

.processes__card__bottom {
  padding: 16px 12px;
  background: var(--game-card);
  border-radius: 12px;
  flex-direction: column;
  gap: 12px;
  display: flex;
  max-width: 75%;
  align-items: center;
}

/* タイトル */
.processes__title__box {
  width: 312px;
  justify-content: center;
  align-items: center;
}

.processes__title {
  text-align: center;
  color: var(--process-circle);
  font-size: 20px;
  font-weight: 700;
  -webkit-text-stroke: 2px white;
  text-stroke: 2px white;
  paint-order: stroke;
}

/* イメージボックス */
.processes__image__box {
  width: 160px;
  height: 160px;
  position: relative;
}

.processes__circle {
  width: 100%;
  height: 100%;
  position: absolute;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--process-circle-0) 0%, var(--process-circle-20) 20%, var(--process-circle) 100%);
  border-radius: 50%;
}

.processes__circle__outline {
  width: 100%;
  height: 100%;
  position: absolute;
  border-radius: 50%;
  outline: 7px var(--line-color) solid;
}

.processes__icon {
  width: 50%;
  height: 50%;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  position: absolute;
  margin: auto;
}
/* ナンバーボックス */
.processes__number__box {
  width: 48px;
  left: 66px;
  top: 49px;
  position: absolute;
}

.processes__number {
  text-align: center;
  color: var(--process-circle);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  -webkit-text-stroke: 2px white;
  text-stroke: 2px white;
  paint-order: stroke;
}

/* ゲームボックス */
.processes__game__box {
  width: 210px;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--game2-card);
  border-radius: 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.processes__game__coming__soon {
  text-align: center;
  color: var(--game-bg);
  font-size: 24px;
  font-weight: 700;
}

.sponsoring__company {
  text-align: center;
  color: var(--game-bg);
  font-size: 16px;
  font-weight: 400;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .processes__container {
    gap: 50px;
    height: auto;
  }

  .processes__line__horizontal,
  .processes__line__vertical {
    display: none;
  }

  .processes__start,
  .processes__goal {
    position: relative;
    left: auto;
    top: auto;
    margin: 20px auto;
    text-align: center;
  }
}

/* Goボタン共通スタイル */
.go-button {
  width: 45px;
  height: 60px;
  position: absolute;
}

.go-button__base {
  width: 12px;
  height: 4px;
  position: absolute;
  background: var(--pole-shadow);
  border-radius: 9999px;
}

.go-button__pole {
  width: 5.73px;
  height: 36px;
  position: absolute;
  background: var(--pole-color);
  border-radius: 4px;
}

.go-button__flag {
  width: 45px;
  height: 24px;
  position: absolute;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.go-button__text {
  width: 24px;
  height: 21px;
  position: absolute;
  justify-content: center;
  display: flex;
  flex-direction: column;
  color: var(--game-card);
  font-size: 12px;
  font-family: 'Inria Sans', sans-serif;
  font-weight: 700;
}

/* デフォルトボタン */
.go-button--default .go-button__base {
  left: 13.7px;
  top: 56px;
}

.go-button--default .go-button__pole {
  left: 16.64px;
  top: 22px;
}

.go-button--default .go-button__flag {
  left: 0px;
  top: 0px;
}

.go-button--default .go-button__text {
  left: 11px;
  top: 1px;
}

/* フラッグの色バリエーション */
.go-button__flag--orange {
  background: var(--accent);
}

.go-button__flag--wide {
  width: 50px;
}

/* 方向別フラッグスタイル */
/* 右向きフラッグ（矢印型） */
.go-button__flag--right {
  background: var(--accent);
  position: relative;
}

.go-button__flag--right::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 8px solid var(--accent);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}
 
.go-button--default.right__flag__location__top .go-button__base,
.go-button--default.right__flag__location__middle .go-button__base,
.go-button--default.right__flag__location__bottom .go-button__base {
  left: 18px;
}
.go-button--default.right__flag__location__top .go-button__pole,
.go-button--default.right__flag__location__middle .go-button__pole,
.go-button--default.right__flag__location__bottom .go-button__pole {
  left: 20.64px;
}
.go-button--default.right__flag__location__top .go-button__text,
.go-button--default.right__flag__location__middle .go-button__text,
.go-button--default.right__flag__location__bottom .go-button__text {
  left: 14px;
}
/* 左向きフラッグ（矢印型） */
.go-button__flag--left {
  background: var(--accent);
  position: relative;
}

.go-button__flag--left::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  border-right: 8px solid var(--accent);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.go-button__flag--3d {
  border: 1px solid var(--accent);
  transform: perspective(100px) rotateX(5deg);
}

.right__flag__location__top {
  right: 50px;
  top: 79px;
}
.right__flag__location__middle {
  right: 50px;
  top: 1123px;
}
.right__flag__location__bottom {
  right: 50px;
  top: 2167px;
}

.left__flag__location__top {
  left: 50px;
  top: 600px;
}
.left__flag__location__middle {
  left: 50px;
  top: 1645px;
}
.left__flag__location__bottom {
  left: 25vw;
  top: 2689px;
}

/* Let's Goボタンコンポーネント */
.lets-go-button {
  width: 45px;
  height: 60px;
  left: 30px;
  top: 86.11px;
  position: absolute;
  transform: rotate(-7deg);
  transform-origin: top left;
}

.lets-go-button__base {
  width: 12.38px;
  height: 5.34px;
  left: 26.89px;
  top: 54.02px;
  position: absolute;
  background: var(--pole-shadow);
  border-radius: 9999px;
}

.lets-go-button__pole {
  width: 10.31px;
  height: 47.26px;
  left: 24.75px;
  top: 9.77px;
  position: absolute;
  background: var(--pole-color);
  border-radius: 4px;
}

.lets-go-button__flag {
  width: 69.29px;
  height: 24px;
  left: 0px;
  top: -2.50px;
  position: absolute;
  background: var(--accent);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.lets-go-button__text {
  width: 55.04px;
  height: 26.89px;
  left: 6.07px;
  top: -3px;
  position: absolute;
  justify-content: center;
  display: flex;
  flex-direction: column;
  color: var(--game-card);
  font-size: 12px;
  font-family: 'Inria Sans', sans-serif;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .lets-go-button {
    transform: scale(0.8) rotate(-7deg);
  }

  .lets-go-button__text {
    font-size: 10px;
    letter-spacing: 1px;
  }
}

/* 詳細画面用のcss */
.processes__detail__container {
  padding-top: 16px;
  margin-top: 16px;
}

.processes__detail__line__box {
  height: 30px;
  background: var(--line-color);
  border-radius: 4px;
  display: flex;
  padding: 0 10px;
}

.processes__detail__line {
  align-items: center;
  gap: 30px;
  display: flex;
}

.processes__detail__bar {
  width: 20px;
  height: 4px;
  position: relative;
}

.processes__detail__bar__white {
  width: 20px;
  height: 4px;
  left: 0px;
  top: 0px;
  position: absolute;
  background: var(--bg-card);
  border-radius: 12px;
}

.processes__detail__number__box {
  align-items: center;
  display: flex;
  z-index: 1;
  width: 100%;
  justify-content: space-around;
}

/* 現在のプロセス番号 */
.processes__detail__current__number {
  width: 55px;
  height: 55px;
  background: var(--process-circle);
  border-radius: 50%;
  justify-content: center;
  display: flex;
}

.processes__detail__current__number__inner {
  display: flex;
}

.processes__detail__current__number__text {
  justify-content: center;
  display: flex;
  flex-direction: column;
  color: var(--process-circle);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1.20px;
  -webkit-text-stroke: 5px white;
  text-stroke: 5px white;
  paint-order: stroke;
}

/* 他のプロセス番号 */
.processes__detail__other__number {
  width: 28px;
  height: 28px;
  background: var(--bg-card);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  display: flex;
}

.processes__detail__other__number__text {
  color: var(--line-color);
  font-weight: 700;
  letter-spacing: 0.70px;
}

.processes__detail__number__link {
  position: relative;
  display: inline-block;
}

.processes__detail__tooltip {
  display: none;
  position: absolute;
  left: 50%;
  top: -40px;
  transform: translateX(-50%);
  background: var(--game-card);
  color: var(--process-circle);
  font-size: 18px;
  padding: 6px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  white-space: nowrap;
  z-index: 10;
  border: 1px solid var(--frame-line);
}

.processes__detail__number__link:hover .processes__detail__tooltip {
  display: block;
}

/* メインコンテンツエリア */
.processes__detail__main__content {
  padding-left: 80px;
  padding-right: 80px;
}

.processes__detail__content__wrapper {
  padding-top: 30px;
  padding-bottom: 30px;
}

.processes__detail__content__inner {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.processes__detail__content__columns {
  display: flex;
}

/* 左カラム */
.processes__detail__left__column {
  padding-left: 24px;
  padding-right: 24px;
  flex-direction: column;
  gap: 30px;
  display: flex;
}

.processes__detail__left__column
.processes__image__box {
  align-self: center;
  width: 250px;
  height: 250px;
}

.processes__detail__left__column
.processes__circle__outline {
  display: flex;
}

.process__icon {
  padding: 20%;
}

/* プロセス名 */
.processes__detail__process__name__container {
  display: flex;
}

.processes__detail__process__name__wrapper {
  display: flex;
  width: 100%;
  justify-content: center;
}

.processes__detail__process__name {
  color: var(--process-circle);
  font-size: 28px;
  font-weight: 700;
  -webkit-text-stroke: 2px white;
  text-stroke: 2px white;
  paint-order: stroke;
}

/* 説明文 */
.processes__detail__description__container {
  padding: 16px 24px;
}

.processes__detail__description__text {
  font-size: 20px;
}

.processes__detail__right__column {
  padding: 70px 24px;
}

.processes__detail__right__column
.processes__game__box {
  width: 25vw;
}

.processes__detail__game__container {
  padding: 32px 24px;
  background: var(--game-card);
  border-radius: 12px;
}

.processes__detail__prev__next__buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* 一覧へ戻るボタン */
.processes__detail__btn__back__inner {
  padding: 8px 16px;
  background: var(--game-card);
  border-radius: 12px;
  outline: 1px var(--game2-card) solid;
  outline-offset: -1px;
}

.processes__detail__btn__back__text {
  color: var(--game-bg);
}

/* 前後のプロセスボタン */
.processes__detail__btn__prev__inner,
.processes__detail__btn__next__inner {
  padding: 8px 16px;
  background: var(--game-card);
  border-radius: 12px;
  outline: 1px var(--game2-card) solid;
  outline-offset: -1px;
}

.processes__detail__btn__prev__text,
.processes__detail__btn__next__text {
  color: var(--game-bg);
}

/* 下部のプログレス */
.processes__detail__bottom__progress {
  width: 100%;
  height: 30px;
}

.processes__detail__bottom__progress__background {
  width: 100%;
  height: 30px;
  background: var(--line-color);
  border-radius: 4px;
  position: absolute;
}

.processes__detail__bottom__progress__bars {
  justify-content: space-evenly;
  display: flex;
  height: 100%;
}

.processes__detail__sponsoring__wrapper {
  padding-top: 30px;
}

.pc__only {
  display: contents;
}

.sp__only {
  display: none;
}

@media screen and (max-width: 768px) {

  .pc__only {
    display: none;
  }
  .sp__only {
    display: grid;
    text-align: center;
    gap: 50px;
  }

  .lets-go-button,
  .go-button {
    display: none;
  }

  .processes__detail__line__box {
    display: none;
  }
  .processes__detail__bottom__progress {
    overflow: hidden;
  }
  .processes__detail__main__content {
    padding-left: 0;
    padding-right: 0;
  }
  .processes__detail__content__columns {
    display: grid;
  }
  .processes__detail__right__column,
  .processes__detail__left__column {
    padding: 0;
  }
  .processes__detail__main__content
  .processes__game__box,
  .processes__detail__right__column .processes__game__box {
    width: 100%;
  }
}
