/* リセットCSS（header/footer に影響しないよう .panels-wrapper 内にスコープ） */
.panels-wrapper *,
.panels-wrapper *::before,
.panels-wrapper *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-yellow: #fcd521;
    --color-purple: #532d91;
    --color-pink: #f21a86;
    --color-pink-light: #ff7fad;
    --color-blue-pastel: #cce0f4;
    --color-pink-pastel: #fbd0ff;
    --color-orange: #ff5015;
    --color-green: #39b54a;
    --color-white: #FFFFFF;
    --color-gray: #E0E0E0;
    --color-gray-dark: #757575;
}

.panels-wrapper img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

html {
    scroll-behavior: smooth;
    font-size: min(3vw, 14px);
}

body {
    color: #333;
    position: relative;
}

/* 星の装飾背景（SP版のみ） */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg_pc.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* ボタンの基本スタイル */
.btn {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  transition: all 0.2s ease;
  font-size: 1.05rem;
  font-weight: bold;
  line-height: 1;
  z-index: 0;
  width: 100%;
}
.btn + .btn {
  margin-top: 12px;
}

/* ボタン本体（ピンク背景） */
.btn-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1em;
  width: 100%;
  background: linear-gradient(90deg, var(--color-pink) 0%, var(--color-pink-light) 100%);
  border-radius: 9999px;
  border: 1px solid var(--color-purple);
  color: inherit;
  font-weight: 600;
  line-height: 1.2;
  transition: transform 0.2s ease;
}

/* ボタンの矢印アイコン */
.btn-inner::after {
  content: '▶';
  font-size: 0.95rem;
  color: var(--color-purple);
  position: absolute;
  right: 18px;
}

/* ボタンの後ろ右下の黄色背景要素 */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid var(--color-purple);
  background: #b284d7;
  border-radius: 9999px;
  transform: translate(4px, 4px);
  z-index: -1;
  transition: transform 0.2s ease;
  pointer-events: none;
  box-sizing: border-box;
}

.btn:hover .btn-inner {
  transform: translate(4px, 4px);
}

.btn:active .btn-inner {
  transform: translate(4px, 4px);
}

/* ボタンの色バリエーション */
.btn.orange {
  color: var(--color-white);
}
.btn.orange::after {
  background: var(--color-purple);
}
.btn.orange .btn-inner {
  background: var(--color-orange);
}
.btn.orange .btn-inner::after {
  color: var(--color-white);
}

.btn.yellow {
  color: var(--color-purple);
}
.btn.yellow::after {
  background: var(--color-purple);
}
.btn.yellow .btn-inner {
  background: var(--color-yellow);
}
.btn.yellow .btn-inner::after {
  color: var(--color-purple);
}

.btn.light-blue {
  color: var(--color-purple);
}
.btn.light-blue::after {
  background: var(--color-purple);
}
.btn.light-blue .btn-inner {
  background: linear-gradient(90deg, var(--color-blue-pastel) 0%, var(--color-pink-pastel) 100%);
}
.btn.light-blue .btn-inner::after {
  color: var(--color-purple);
}

.btn.green {
  color: var(--color-white);
}
.btn.green::after {
  background: var(--color-purple);
}
.btn.green .btn-inner {
  background: var(--color-green);
}

.btn.no_arrow .btn-inner::after {
  content: none;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* パネルラッパー（左パネルと右パネルをまとめる親要素） */
.panels-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.4s ease;
    font-size: min(3vw, 14px);
    font-style: inherit;
    font-weight: inherit;
    line-height: 1.6;
    tab-size: inherit;
}

.panels-wrapper * {
  font-family: "M PLUS Rounded 1c", 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

/* 動画再生中は背面を非表示＆スクロール不可 */
body.video-playing {
    overflow: hidden;
    height: 100%;
}

body.video-playing .panels-wrapper {
/*    opacity: 0;*/
    pointer-events: none;
}

/* PC版: 2カラムレイアウト */
@media (min-width: 768px) {
    .panels-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }
}


/* 左パネル（ブランディングエリア） */
.left-panel {
    display: none;
    position: relative;
    width: 100%;
    min-height: 300px;
    z-index: 10;
    padding: 60px 40px;
    box-sizing: border-box;
}

.left-panel .btn::after {
  background: var(--color-yellow);
}

.left-panel .btn-inner::after {
  color: #ffffff;
}

/* PC版: 左パネルの幅を広げる */
@media (min-width: 768px) {
    .left-panel {
        position: sticky;
        top: 0;
        width: 58vw;
        height: 100vh;
        overflow-y: hidden;
        align-self: flex-start;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* 右パネル（コンテンツエリア） */
.right-panel {
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-yellow);
    position: relative;
    z-index: 1;
    padding-top: 0;
    border-left: 7px solid var(--color-purple);
    border-right: 7px solid var(--color-purple);
}

/* 右パネル背景の星パターン */
.right-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("../images/right-panel_bg.svg");
    background-size: 100% auto;
    background-position: 0px 450px;
    background-repeat: repeat-y;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* 右パネル波形背景（wave-borderクラスがある場合） */
.right-panel.wave-border {
  border: none;
}

.right-panel.wave-border::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("../images/right-panel_bg_wave.svg");
    background-size: 100% auto;
    background-repeat: repeat-y;
    pointer-events: none;
    z-index: 1;
}

.right-panel > * {
    position: relative;
    z-index: 2;
}

.right-panel-content .answers-popup {
    z-index: 1000 !important;
}

.result-page .right-panel.wave-border::after {
  z-index: 2;
}

/* PC版: 右パネル自体の幅を制限 */
@media (min-width: 768px) {
    .right-panel {
        width: 450px;
    }
}


/* 左パネル内のコンテンツ */
.left-panel-content {
    text-align: center;
    color: var(--color-white);
}
.left-panel-content > * {
  max-width: 320px;
  margin: 0 auto;
}

.left-panel-img {
  margin-bottom: 20px;
}

.left-panel-title {
  text-align: center;
}

.left-panel-nav {
    margin-top: 20px;
}

.left-panel-nav a {
    margin-bottom: 12px;
}

@media (min-width: 768px) and (min-height: 900px) {
  .left-panel-content > * {
    max-width: 400px;
  }
}

@media (min-width: 768px) and (max-height: 850px) {
  .left-panel-content > * {
    max-width: min(35vh, 320px);
  }
  .left-panel-nav a {
    margin-bottom: min(2vh, 12px);
    font-size: min(1.7vh, 1.05rem);
  }
  .btn-inner::after {
    font-size: min(1.5vh, 0.95rem);
    right: 1.0vh;
  }
}

@media (min-width: 768px) and (max-height: 500px) {
  .left-panel-content > * {
    max-width: min(30vh, 320px);
  }
  .left-panel-img {
    margin-bottom: min(3vh, 20px);
  }
  .left-panel-nav {
    margin-top: min(3vh, 20px);
  }
  .left-panel-nav a {
    margin-bottom: min(2vh, 12px);
    font-size: min(1.6vh, 1.05rem);
  }
  .left-panel-nav .btn + .btn {
    margin-top: min(2vh, 12px);
  }
}

/* 右パネル内のコンテンツ */
.right-panel-content {
    padding: 0 20px;
    margin: 0 auto;
}
.question-page .right-panel-content {
  padding-bottom: 350px;
}

@media (min-width: 768px) {
    .right-panel-content {
        margin: 0 auto;
    }
}

/* トップページ */
.top-section {
    position: relative;
    z-index: 3;
    padding-top: 20px;
}

.top-section h1 {
  position: relative;
}

.top-page .top-section .top-section-title {
    position: absolute;
    top: 11%;
    left: 0;
}

.top-section .btn {
    position: absolute;
    left: 50%;
    bottom: 8%;
    width: 90%;
    z-index: 10;
    transform: translateX(-50%);
}

.top-section .btn:hover {
    transform: translateX(-50%);
}

.btn-inner-sub {
    font-size: 0.85em;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.start-btn {
  font-size: 1.5rem;
}
.start-btn .btn-inner {
  padding: 1em 1rem;
}

.top-section + .section-card {
  margin-top: 0;
}

.section-card {
    background-color: var(--color-purple);
    border-radius: 8px;
    padding: 2.5em 1.5em;
    margin: 1.5em 0;
    color: var(--color-white);
    border: 2px solid #ffffff;
    box-shadow: 4px 4px 3px rgba(28, 0, 73, 0.2);
}

.section-card.light {
    background-color: var(--color-white);
    color: var(--color-purple);
}

.section-title {
    position: relative;
    margin-bottom: 1.5em;
    padding-bottom: 0.7em;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background-image: radial-gradient(circle, #ffffff 1px, transparent 1px);
    background-size: 6px 2px;
    background-position: 0 0;
    background-repeat: repeat-x;
}

.section-title-sub {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    margin-top: 1.5em;
}

.section-text {
    line-height: 2;
}

.section-img {
  margin: 1em auto;
  width: 80%;
}
.section-img.full {
  width: 100%;
}

.topic-img {
  width: 80%;
  margin: 2em auto 0;
}

.remarks {
  font-size: 0.5rem;
}

.topic-img + .remarks {
  margin: 1em auto;
  width: 80%;
}

.board-wrapper {
  background-color: #ff568b;
  color: #ffffff;
  border-radius: 20px;
  padding: 25px 15px;
  font-weight: bold;
  text-align: center;
  position: relative;
}
.board-wrapper::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  right: 6px;
  border: 1px solid var(--color-purple);
  border-radius: 18px;
}

.board-wrapper .topic {
  font-size: 1.15rem;
  line-height: 1;
  margin-bottom: 0.3em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.board-wrapper .topic-number {
  font-size: 2em;
  margin: 0 0.1em;
}
.board-wrapper .topic-text {
  font-size: 1.3em;
  font-weight: 800;
}

.auvaluelink-moneyact2-link {
  margin-top: 1em;
}

.supervise-name {
  text-align: center;
  font-weight: 600;
  line-height: 1.6;
}
.supervise-name .name {
    font-size: 1.4rem;
}

.supervise-img {
    margin: 1em auto;
    width: 50%;
    max-width: 250px;
    border-radius: 50%;
    overflow: hidden;
}

.supervise-profile span {
    display: inline-block;
}

.supervise-link {
  margin-top: 1em;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
}

.result-section {
    margin: 16px 0;
}

.share-buttons {
    justify-content: center;
    gap: 12px;
}

.top-section-title02 {
  width: 75%;
  margin: 30px auto 0;
}

/* 検定ページ */
#questions-container {
  width: 80%;
  margin: 0 auto;
  padding-bottom: 60px;
}

.question-section {
  margin-top: 60px;
}

.question-title {
    display: flex;
    align-items: stretch;
    background-color: var(--color-white);
    margin-bottom: 1em;
    overflow: hidden;
}

.question-num {
    background-color: var(--color-purple);
    color: var(--color-white);
    padding: 0.8em;
    font-weight: bold;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    aspect-ratio: 1 / 1;
    width: 70px;
}

.question-title .question-text {
    flex: 1;
    color: var(--color-purple);
    font-size: 1.1rem;
    font-weight: 800;
    padding: 0.5em 1em;
    line-height: 1.3;
    display: flex;
    align-items: center;
    background-color: var(--color-white);
}

.question-section .answers {
    margin-top: 0;
}

.answers {
    list-style: none;
    margin: 0;
    padding: 0;
}

.answer-item {
    margin-bottom: 10px;
    position: relative;
}

/* アンサーボタンの後ろ右下の紫色背景要素 */
.answer-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid var(--color-purple);
  background-color: var(--color-purple);
  transform: translate(5px, 5px);
  z-index: 1;
  transition: transform 0.2s ease;
  pointer-events: none;
  box-sizing: border-box;
}

.answer-btn {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1em;
    border: none;
    background: var(--color-white);
    text-align: left;
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-purple);
    transition: all 0.2s ease;
    z-index: 2;
}

/* hover時のアニメーション */
.answer-btn:hover {
    transform: translate(5px, 5px);
}

/* active時のアニメーション */
.answer-btn:active {
    transform: translate(5px, 5px);
}

/* 選択時（押下済み）のスタイル */
.answer-btn.selected {
    transform: translate(5px, 5px);
    background-color: var(--color-purple);
    color: #ffffff;
}

.next-btn {
    display: block;
    width: 80%;
    margin: 0 auto 60px;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 1;
    pointer-events: none;
    position: relative;
}

.next-btn::after {
  background: #eeeeee;
  border-color: #999999;
}

.next-btn .btn-inner {
    font-size: 1.1em;
    background: #cccccc;
    border-color: #999999;
}

.next-btn .btn-inner::after {
  color: #ffffff;
}

.next-btn.active {
    pointer-events: auto;
}

.next-btn.active::after {
  background: #b284d7;
  border-color: var(--color-purple);
}

.next-btn.active .btn-inner {
  background: linear-gradient(90deg, var(--color-pink) 0%, var(--color-pink-light) 100%);
  border-color: var(--color-purple);
}

.next-btn.active .btn-inner::after {
  color: var(--color-purple);
}

.next-btn:hover.active {
    transform: translateY(-2px);
}

.next-btn:active.active {
    transform: translateY(0);
}

.thinking-img {
    position: fixed;
    bottom: var(--footer-safe-offset, 0px);
    right: var(--right-panel-right-offset, 0px);
    left: auto;
    width: min(40%, 200px);
    z-index: 10000;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 1.0));
    transition: bottom 0.2s ease;
}

.thinking-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    opacity: 1;
    transition: opacity 0s;
}

@keyframes gojas-animation {
    0%, 33.33% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    33.34%, 66.66% {
        opacity: 0.3;
        transform: scale(0.95) rotate(-2deg);
    }
    66.67%, 100% {
        opacity: 0.3;
        transform: scale(0.95) rotate(2deg);
    }
}


@media (max-height: 500px) {
  .thinking-img {
    width: min(30vh, 200px);
  }
}


/* 結果ページ */
.type-white {
  margin: 80px -15%;
  padding: 10px 15% 20px;
  background: #ffffff;
  position: relative;
  z-index: 1;
}

.type-white::before,
.type-white::after {
  content: '';
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-image: url(../images/type-white-wave.svg);
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: contain;
  height: max(8vw, 40px);
}

.type-white::before {
  top: -40px;
}

.type-white::after {
  top: auto;
  bottom: -40px;
  transform: rotate(180deg);
}

@media (min-width: 768px) {
  .type-white::before,
  .type-white::after {
    height: 40px;
  }
}

.result-container {
    padding: 0;
    text-align: center;
    position: relative;
    z-index: 3;
    width: 80%;
    margin: 0 auto;
}

.result-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-purple);
  position: relative;
  margin-bottom: 0.5em;
  padding-bottom: 0.3em;
}

.result-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background-image: radial-gradient(circle, var(--color-purple) 1px, transparent 1px);
  background-size: 6px 2px;
  background-position: 0 0;
  background-repeat: repeat-x;
}


.rank-title {
    font-size: 1.5rem;
    color: var(--color-purple);
    margin: 30px auto 5px;
    font-weight: 800;
}

.percent {
  background-image: url("../images/rank-balloon.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  padding: 30px 16px 60px;
  margin-bottom: 15px;
}

.percent-value {
    font-size: 5rem;
    font-weight: 800;
    color: var(--color-purple);
    margin-bottom: 5px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.percent-value.has-value {
    opacity: 1;
}

.percent-value::after {
  content: '%';
  font-size: 3.5rem;
  color: var(--color-purple);
  font-weight: bold;
  margin-left: 5px;
}

.percent-text {
    font-size: 1.5rem;
    color: var(--color-purple);
    font-weight: 800;
}

.rank-image {
  margin: 0 auto 30px;
}

.result-level {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-level::before {
  content: 'マネ活理解度：';
  font-size: 1.5rem;
}

.result-catch {
    font-size: 1.45rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--color-purple);
    line-break: strict;
}

.share-section {
  background: linear-gradient(90deg, var(--color-blue-pastel) 0%, var(--color-pink-pastel) 100%);
  border-radius: 14px;
  border: 2px solid var(--color-purple);
  padding: 20px;
  margin: 30px 0;
  position: relative;
}

.share-section::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: -6px;
  bottom: -6px;
  background: var(--color-purple);
  z-index: -1;
  border-radius: 14px;
}

.share-title {
    color: var(--color-purple);
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-x,
.btn-line,
.btn-facebook {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-x {
    background: #000000;
}

.btn-line {
    background: #00b81e;
}

.btn-facebook {
    background: #0866ff;
}

.btn-x:hover,
.btn-line:hover,
.btn-facebook:hover {
    opacity: 0.7;
}

.action-section.type-white {
  padding-bottom: 10px;
}

.action-title {
  position: relative;
  display: inline-block;
  margin: 20px 0 10px;
  padding: 0.8em 1.5em;
  border-radius: 30px;
  background: var(--color-purple);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
}

.action-title:first-of-type {
  margin-top: 0;
}

.action-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  border-style: solid;
  border-width: 10px 6px 0 6px;
  border-color: var(--color-purple) transparent transparent;
  translate: -50% 100%;
}

.action-text {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: left;
  color: var(--color-purple);
  padding: 0.5em 0 1em;
}

.action-text:last-of-type {
  padding-bottom: 0;
}

.links-title {
  margin: 3em auto 1em;
}

.links-title.large {
  margin-left: -5%;
  margin-right: -5%;
}

.existing-members {
  background-image: url(../images/links-members.svg);
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: contain;
  margin: 3em -15% 1em;
  padding: 30% 0 20%;
}

.existing-members .btn {
  width: 65%;
  margin: 12px auto 0;
}
.existing-members .btn:first-child {
  margin-top: 0;
}

.article-section-title {
  margin-top: 3em;
}

.article-section .card {
  margin: 1em auto;
  background: var(--color-white);
  position: relative;
}

.article-section .card a {
  display: block;
  text-decoration: none;
  color: var(--color-purple);
}

.article-section .card .card-image {
  transition: all 0.3s;
}

.article-section .card .card-title {
  font-size: 1.2rem;
  font-weight: 800;
  padding: 0.5em 1em 2.3em;
  text-align: left;
  transition: all 0.3s;
}

.article-section .card .card-arrow {
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
  display: inline-block;
  padding: 0 1.5em 0.2em 0.5em;
  position: absolute;
  bottom: 10px;
  right: 10px;
  transition: all 0.3s;
}
.article-section .card .card-arrow::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--color-purple);
  transition: all 0.3s;
}
.article-section .card .card-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-purple);
  transform-origin: right bottom;
  transform: rotate(45deg);
  transition: all 0.3s;
}

.article-section .card:hover .card-image {
  opacity: 0.7;
}

.article-section .card:hover .card-arrow::before,
.article-section .card:hover .card-arrow::after {
  right: -5px;
}

.recommend-title {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
  padding: 1em 1.5em;
  border-radius: 10px;
  background-color: var(--color-purple);
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.05em;
}

.recommend-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  border-style: solid;
  border-width: 12px 10px 0 10px;
  border-color: var(--color-purple) transparent transparent;
  translate: -50% 100%;
}

.recommend-topic {
  margin-top: 0.5em;
}

.remind-section {
  margin: 80px -15% 0;
  padding: 0 15% 60px;
  background: linear-gradient(90deg, var(--color-blue-pastel) 0%, var(--color-pink-pastel) 100%);
  position: relative;
  color: var(--color-purple);
}

.remind-section::after {
  content: '';
  z-index: -1;
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  background-image: url(../images/type-light-blue-wave.svg);
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: contain;
  height: max(8vw, 40px);
}

@media (min-width: 768px) {
  .remind-section::after {
    height: 40px;
  }
}

.remind-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-left: -1em;
  margin-right: -1em;
  margin-bottom: 1em;
  color: var(--color-purple);
}

.remind-image {
  margin: 1em auto 3em;
  width: 90%;
}

.remind-section .section-text {
  text-align: left;
}

/* 動画ポップアップ */
.video-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.video-popup.active {
    display: flex;
    backdrop-filter: blur(15px);
}

.video-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: var(--color-white);
    border: 2px solid var(--color-purple);
    border-radius: 50%;
    cursor: pointer;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.video-close-btn::before,
.video-close-btn::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 3px;
    background-color: var(--color-purple);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.video-close-btn::before {
    transform: rotate(45deg);
}

.video-close-btn::after {
    transform: rotate(-45deg);
}

.video-close-btn:hover,
.video-close-btn:active {
    transform: scale(1.1);
}

.video-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    background-color: #000;
}

.video-container video,
.video-container #youtube-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
}

/* 動画上部のクリックをブロックするオーバーレイ */
.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20%;
    z-index: 10;
    pointer-events: auto;
    background: transparent;
}

/* 動画下部のクリックをブロックするオーバーレイ */
.video-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    z-index: 10;
    pointer-events: auto;
    background: transparent;
}

.video-label {
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  margin: auto;
  width: min(66%, 320px);
  height: 40px;
  padding: 0 0.5em 0 1.0em;
  border: 1px solid var(--color-purple);
  border-radius: 9999px;
  background-color: var(--color-white);
  text-align: center;
  font-size: min(4vw, 1.2rem);
  font-weight: 600;
  line-height: 40px;
  color: var(--color-purple);
}

.video-label::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  border-style: solid;
  border-width: 10px 8.5px 0 8.5px;
  border-color: var(--color-purple) transparent transparent;
  translate: -50% 100%;
}

.video-label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  border-style: solid;
  border-width: 6.9px 5.9px 0 5.9px;
  border-color: var(--color-white) transparent transparent;
  translate: -50% 100%;
}

@media (max-height: 700px) {
  .video-container {
    width: 80%;
    max-width: 350px;
  }
  .video-label {
    font-size: min(max(2vh, 0.9rem), 1.2rem);
  }
}

@media (max-height: 500px) {
  .video-container {
    max-width: min(70vh, 300px);
  }
  .video-label {
    font-size: min(max(2.8vh, 0.5rem), 1.2rem);
    top: calc(-1 * min(9.5vh, 50px));
    height: min(7vh, 40px);
    line-height: min(7vh, 40px);
  }
  .video-close-btn {
    top: calc(-1 * min(9.5vh, 50px));
    width: min(7vh, 40px);
    height: min(7vh, 40px);
  }
  .video-close-btn::before, .video-close-btn::after {
    width: min(5vh, 22px);
  }
}

.answers-btn-wrap {
  margin-top: 20px;
  margin-bottom: 0;
  padding-top: 20px;
  padding-bottom: 50px;
  text-align: center;
}

.answers-btn-wrap.type-white::after {
  content: none;
}

.result-page .right-panel {
  position: relative;
}

.answers-list-section.answers-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 90vh;
  background-color: var(--color-yellow);
  z-index: 1000;
  padding: 20px;
  margin: 0;
  overflow: hidden;
  border-top: none;
  box-sizing: border-box;
  transform: translateY(0);
}

.answers-list-section.answers-popup > * {
  position: relative;
  z-index: 1;
}

.answers-list-section.answers-popup.active {
  display: block;
}

@media (max-width: 767px) {
  .answers-list-section.answers-popup::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("../images/right-panel_bg_wave.svg");
    background-size: 100% auto;
    background-repeat: repeat-y;
    pointer-events: none;
    z-index: 0;
  }

  .answers-list-section.answers-popup > .answers-popup-header,
  .answers-list-section.answers-popup > .answers-popup-content {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}

body.answers-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .answers-modal-open .right-panel.wave-border::after {
    content: none;
  }
}

.result-page .right-panel-content .result-container.hidden-by-answers {
  visibility: hidden;
  pointer-events: none;
}

.answers-popup-header {
  position: relative;
  margin-top: 60px;
  margin-bottom: 20px;
  padding-right: 40px;
}

.answers-popup-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-purple);
}

.answers-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  background-color: var(--color-white);
  border: 2px solid var(--color-purple);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  transition: transform 0.2s ease;
}

.answers-close-btn::before,
.answers-close-btn::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 3px;
  background-color: var(--color-purple);
  border-radius: 2px;
}

.answers-close-btn::before { transform: rotate(45deg); }
.answers-close-btn::after { transform: rotate(-45deg); }

.answers-close-btn:hover {
  transform: scale(1.1);
}

.answers-popup-content {
  max-height: calc(90vh - 120px);
  overflow-y: auto;
  padding-bottom: 2rem;
  position: relative;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.answers-popup-content::after {
  content: '';
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 16px solid var(--color-purple);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.answers-popup-content.show-scroll-indicator::after {
  opacity: 0.5;
  visibility: visible;
}

.answers-popup-content::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.answers-popup-content .question-section {
  margin-top: 50px;
}

.answers-popup-content .question-section:first-child {
  margin-top: 20px;
}

.answers-popup-content .question-title {
  margin-bottom: 15px;
}

.answer-correct-wrap {
  margin-top: 0.5em;
  display: flex;
  align-items: stretch;
  background: linear-gradient(90deg, var(--color-blue-pastel) 0%, var(--color-pink-pastel) 100%);
  color: var(--color-purple);
  overflow: hidden;
}

.answer-correct-wrap::before {
  content: '◯';
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1;
  aspect-ratio: 1 / 1;
  width: 70px;
  border-right: 1px solid var(--color-purple);
  box-sizing: border-box;
}

.answer-correct {
  display: flex;
  align-items: center;
  line-break: strict;
  margin: 0;
  padding: 0.5em 1em;
  flex: 1;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
}

@media (max-width: 450px) {
  .answers-popup-content .question-num,
  .answer-correct-wrap::before {
    width: 55px;
  }
}
