:root {
--main-font: "Yu Gothic Medium", "Yu Gothic", "YuGothic", sans-serif;
--sub-color: #F9AB36;
--beige-color: #F2EDE4;
--text-color: #000;
--line-height: 1.8;
--line-height-sp: 1.5;
}

*{
margin: 0;
padding: 0;
box-sizing: border-box;
list-style-type: none;
font-feature-settings: "palt" 1;
}

body{
font-family: var(--main-font);
background: url(/design_items/pc/img/yourquiz/content_bg.png);
background-repeat: repeat;
background-size: 10%;
}

a{
color: #fff;
text-decoration: none;
}

img{
max-width: 100%;
height: auto;
}

/* main */
.hero{
position: relative;
background: url(/design_items/pc/img/yourquiz/pc_hero_bg.png);
background-repeat: repeat;
background-size: 10%;
height: 648px;
margin-bottom:clamp(32px, 6.4vw, 64px);
padding: 0 20px;
}
@media screen and (max-width: 739px){
.hero{
height: 450px;
}
}
h1{
position: absolute;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

.hero h1 img{
min-width: 320px;
width: 100%;
}

.illustrator{
position: absolute;
bottom: 10px;
right: 10px;
display: inline-block;
color: #fff;
letter-spacing: 0.25rem;
font-size: clamp(12px, 1.8vw, 18px);
}

.bg_motif{
position: relative;
}

.bg_motif::before{
content: '';
position: absolute;
background: url(/design_items/pc/img/yourquiz/bg_motif.png) no-repeat center center;
background-size: 90%;
position: fixed;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 100%;
height: 100%;
z-index: -1;
}

@media screen and (max-width: 720px) {
.bg_motif::before{
background-size: 100%;
}
}

.slide__in{
max-width: 1162px;
width: 100%;
margin: 0 auto clamp(32px, 6.4vw, 64px);
padding: 0 16px;
display: flex;
flex-direction: column;
gap: 24px;
}

.slide__in span {
display: block;
width: fit-content;
font-weight: bold;
padding: 4px 16px;
position: relative;
color: transparent; /* 初期状態でテキストを透明に */
transition: color 0.5s ease; /* テキストの色を徐々に表示 */
}

.slide__in span:nth-of-type(1)::after{
content:"";
position: absolute;
background-color: #000;
top: 0;
left: 0;
width: 0%;
height: 100%;
animation: slideIn 1s forwards;
animation-delay: 0s;
z-index: -1;
}

.slide__in span:nth-of-type(1){
animation: textAppear .6s forwards;
animation-delay: 1s; /* 背景のアニメーションが終わった後にテキストを表示 */
}

.slide__in span:nth-of-type(2)::after{
content:"";
position: absolute;
background-color: #000;
top: 0;
left: 0;
width: 0%;
height: 100%;
animation: slideIn 1s forwards;
animation-delay: 0.2s;
z-index: -1;
}

.slide__in span:nth-of-type(2){
animation: textAppear 1s forwards;
animation-delay: 1.2s;
}

.slide__in span:nth-of-type(3)::after{
content:"";
position: absolute;
background-color: #000;
top: 0;
left: 0;
width: 0%;
height: 100%;
animation: slideIn 1s forwards;
animation-delay: 0.4s;
z-index: -1;
}

.slide__in span:nth-of-type(3){
animation: textAppear 1s forwards;
animation-delay: 1.4s;
}

/* New sequential animation delays for slide spans */

/* .slide__first spans */
.slide__first span:nth-of-type(1)::after {
animation-delay: 0s;
}
.slide__first span:nth-of-type(1) {
animation-delay: .2s;
}
.slide__first span:nth-of-type(2)::after {
animation-delay: 0.1s;
}
.slide__first span:nth-of-type(2) {
animation-delay: .3s;
}
.slide__first span:nth-of-type(3)::after {
animation-delay: 0.2s;
}
.slide__first span:nth-of-type(3) {
animation-delay: .4s;
}

/* .slide__second spans */
.slide__second span:nth-of-type(1)::after {
content: "";
position: absolute;
background-color: #000;
top: 0;
left: 0;
width: 0%;
height: 100%;
animation: slideIn .6s forwards;
animation-delay: 0.5s;
z-index: -1;
}
.slide__second span:nth-of-type(1) {
animation-delay: .7s;
}
.slide__second span:nth-of-type(2)::after {
content: "";
position: absolute;
background-color: #000;
top: 0;
left: 0;
width: 0%;
height: 100%;
animation: slideIn 1s forwards;
animation-delay: .6s;
z-index: -1;
}
.slide__second span:nth-of-type(2) {
animation-delay: .8s;
}

/* .slide__third spans */
.slide__third span:nth-of-type(1)::after {
content: "";
position: absolute;
background-color: #000;
top: 0;
left: 0;
width: 0%;
height: 100%;
animation: slideIn 1s forwards;
animation-delay: 1s;
z-index: -1;
}
.slide__third span:nth-of-type(1) {
animation-delay: 1.7s;
}
.slide__third span:nth-of-type(2)::after {
content: "";
position: absolute;
background-color: #000;
top: 0;
left: 0;
width: 0%;
height: 100%;
animation: slideIn 1s forwards;
animation-delay: 1.5s;
z-index: -1;
}
.slide__third span:nth-of-type(2) {
animation-delay: 1.7s;
}

@keyframes slideIn {
to {
width: 100%;
}
}

@keyframes textAppear {
to {
color: #fff; /* テキストの色を白に変更 */
}
}

.slide__second {
align-self: flex-end;
text-align: right;
}

.slide__second span.right-txt {
text-align: right;
width: fit-content;
margin-left: auto;
color: transparent;
font-size: clamp(20px, 4vw, 40px);
animation: textAppearYellow .6s forwards;
animation-delay: 1.4s;
letter-spacing: -0.02em;
}

@keyframes textAppearYellow {
to {
color: #FFF100; /* 黄色に変更 */
}
}

.left-txt{
font-size: clamp(13px, 3.4vw, 34px);
}

.quiz__panel{
display: flex;
justify-content: center;
margin-bottom:clamp(32px, 6.4vw, 64px);
padding: 0 16px;
}
.quiz__panel02{
display: flex;
justify-content: center;
margin-bottom:clamp(32px, 6.4vw, 64px);
}

/* 映画バナー用パネル（中央配置・吹き出し） */
.quiz__panel--movie{
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.quiz__panel--movie > a{
position: relative;
display: inline-block;
}

@media screen and (min-width: 769px) {
.quiz__panel-balloon-pc {
position: absolute;
top: -20px;
right: -20px;
background: #fff;
color: #e4002b;
padding: 4px 16px 6px 10px;
border-radius: 20px 20px 20px 0;
font-size: 16px;
font-weight: bold;
box-shadow: 0 1px 5px rgba(0,0,0,0.10);
border: 2px solid #e4002b;
z-index: 2;
white-space: nowrap;
transform: scale(1.5);
transform-origin: top right;
}
}
@media screen and (max-width: 768px) {
.quiz__panel-balloon-pc {
position: absolute;
top: -20px;
right: -20px;
background: #fff;
color: #e4002b;
padding: 4px 16px 6px 10px;
border-radius: 20px 20px 20px 0;
font-size: 16px;
font-weight: bold;
box-shadow: 0 1px 5px rgba(0,0,0,0.10);
border: 2px solid #e4002b;
z-index: 2;
white-space: nowrap;
transform: none;
}
}

nav{
width: 100%;
z-index: 9999;
padding: clamp(16px,6.4vw,64px) 16px;
background-color: #fff;
}

nav ul{
display: flex;
justify-content: center;
align-items: stretch;
gap:10px;
flex-wrap: wrap;
max-width: 1130px;
width: 100%;
margin: 0 auto;
background-color: transparent;
padding: 0;
}

@media screen and (max-width: 400px) {
nav ul{
justify-content: space-around;
}
}

nav ul li{
max-width: 170px;
width: 100%;
display: flex;
}

nav ul li a{
display: flex;
align-items: center;
justify-content: center;
width: 100%;
padding: 10px;
font-size: clamp(14px, 1.6vw,16px);
color: var(--text-color);
border: 2px solid #000;
border-radius: 10px;
transition: all 0.3s ease;
position: relative;
}

nav ul li a::after {
content: '';
width: 8px;
height: 8px;
border-right: 2px solid #000;
border-bottom: 2px solid #000;
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%) rotate(45deg);
transition: transform 0.3s ease;
}

nav ul li a:hover::after {
transform: translateY(calc(-50% + 3px)) rotate(45deg);
}

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

nav ul li {
width: 100%;
max-width: 150px;
}

nav ul li a {
text-align: center;
}
}

section{
padding: clamp(40px,6.4vw,64px) 20px 0;
}

.sp__only{
display: none;
}
@media screen and (max-width: 640px){
.sp__only{
display: block;
}
}

.comment{
max-width: 1130px;
width: 100%;
margin: 0 auto;
}

.h2__heading{
font-family: '游明朝', 'Yu Mincho', serif;
font-size: clamp(20px, 4vw, 40px);
background-color: #FFF100;
text-align: center;
border-radius: 10px;
box-shadow: 10px 10px 0px #000;
padding: clamp(8px, 2.4vw, 24px);
position: relative;
margin-top: clamp(32px, 6.4vw, 64px);
margin-bottom: clamp(24px, 6.4vw, 64px);
}
.h2__heading::before{
content: "";
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -75%);
width: clamp(100px, 20vw, 170px);
height: clamp(100px, 20vw, 170px);
border-radius: 50%;
background-color: #FFF100;
z-index: -1;
}

.h2__heading::after{
content: "";
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -140%);
background: url(/design_items/pc/img/yourquiz/object01.png) no-repeat center center;
background-size: contain;
width: clamp(45px, 8vw, 80px);
height: clamp(45px, 8vw, 80px);
}

.h3__heading{
font-size: clamp(18px, 3.2vw, 32px);
font-weight: normal;
display: flex;
justify-content: center;
margin-bottom:clamp(32px, 6.4vw, 64px);
max-width: 524px;
width: 100%;
margin-inline: auto;
border: 1px solid #000;
border-radius: 10px;
padding: 10px 24px;
background-color: #fff;
align-items: center;
gap: 8px;
}
.h3__heading img{
max-width: 52px;
width: 80%;
}
@media screen and (max-width: 640px) {
.h3__heading img{
max-width: 30px;
width: 80%;
}
}
.h3__heading span{
display: inline-block;
line-height: 1;
}

.famous__inner{
display: flex;
justify-content: space-evenly;
margin-bottom: clamp(32px, 6.4vw, 64px);
align-items: flex-start;
flex-wrap: wrap;
gap: 10px;
}

.famous__inner .famous__img04{
margin-top: -15%;
}

.famous__inner .famous__img05{
margin-top: -7%;
}

.famous__inner .famous__img06{
margin-top: 4%;
}

.famous__inner .famous__img07{
margin-top: -2%;
}

.famous__inner .famous__img08,
.famous__inner .famous__img09
{
margin-top: 5%;
}

.famous__inner .famous__img10{
margin-top: -2%;
}

@media screen and (min-width: 641px) and (max-width: 1152px) {
.famous__inner .famous__img04,
.famous__inner .famous__img05,
.famous__inner .famous__img06,
.famous__inner .famous__img07,
.famous__inner .famous__img08,
.famous__inner .famous__img09,
.famous__inner .famous__img10{
margin-top: 0;
}
}

@media screen and (max-width: 640px) {
.famous__inner{
gap: 10px;
}
.famous__inner .famous__img01{
order: 0;
}
.famous__inner .famous__img04{
order: 2;
margin-top: 0;
width: 48%;
}
.famous__inner .famous__img03{
order: 3;
width: 48%;
}
.famous__inner .famous__img02{
order: 4;
}
.famous__inner .famous__img07{
order: 5;
margin-top: 0;
width: 48%;
}
.famous__inner .famous__img09{
margin-top: 0;
order: 6;
width: 48%;
}
.famous__inner .famous__img05{
order: 7;
margin-top: 0;
}
.famous__inner .famous__img06{
order: 8;
margin-top: 0;
}
.famous__inner .famous__img08{
order: 9;
margin-top: 0;
}
.famous__inner .famous__img10{
margin-top: 0;
order: 10;
}
}

.comment__inner{
max-width: 1130px;
width: 100%;
margin: 0 auto clamp(32px, 6.4vw, 64px);
display: flex;
flex-wrap: wrap;
gap: 25px;
align-items: flex-start;
justify-content: center;
}
@media screen and (max-width: 767px) {
.comment__inner{
justify-content: center;
}
}
.comment__item{
background-color: #fff;
border-radius: 10px;
padding: 20px;
max-width: clamp(320px, 36vw, 360px);
width: 100%;
border: 2px solid #E60013;
box-shadow: 4px 4px 0px #FFF100;
border-radius: 30px 0px;
font-weight: 700;
line-height: 1.8;
}
.flex--start{
align-self: flex-start;
}
.flex--end{
align-self: flex-end;
}
.flex--middle{
align-self: center;
}
.comment__txt{
font-size: clamp(15px, 1.6vw, 16px);

margin-bottom: 20px;
}
.comment__name{
font-size: clamp(14px, 1.6vw, 16px);
text-align: right;
}
.hidden {
display: none;
opacity: 0;
transition: opacity 1s ease-in-out;
}

.fade-in {
opacity: 1;
}

.more {
text-align: center;
margin-bottom:clamp(32px, 6.4vw, 64px);
}
button {
font-size: clamp(18px,2.4vw,24px);
font-weight: bold;
background-color: #FFF100;
border: solid #000 2px;
cursor: pointer;
outline: none;
color:#000;
padding: 10px 48px;
line-height: 40px;
max-width: 400px;
width: 100%;
box-shadow: 0px 4px 0px #000000;
}

@media screen and (max-width: 640px) {
button{
max-width: 250px;
padding: 8px;
}
}

button:hover {
box-shadow: 0px 0px 0px #000000;
}

/* more-button */

.top__lead{
font-family: var(--mincho-font);
font-weight: 400;
text-align: center;
font-size: clamp(16px, 3.2vw, 32px);
line-height: var(--line-height);
margin-bottom: clamp(20px, 6vw, 60px);
}

.top__img{
max-width: 890px;
width: 100%;
margin: 0 auto;
}

.top__img img{
margin-bottom: clamp(20px, 6vw, 60px);
width: 100%;
}

.top__img__txt{
font-family: var(--main-font);
font-weight: 400;
font-size: clamp(16px, 1.8vw,  18px);
border: 1px solid #000;
border-radius: 10px;
padding: 30px;
}

.bg__beige{
background-color: #F2EDE4;
}


.flex{
display: flex;
max-width: 930px;
width: 100%;
margin: 0 auto;
}
.flex img{
object-fit: cover;
}
@media screen and (max-width: 640px){
.flex{
flex-direction: column;
align-items: center;
}
}
.introduction--gap{
gap: clamp(40px,6vw,60px);
}
.flex img{
filter: drop-shadow(3px 3px 3px rgba(0,0,0,0.1));
height: 100%;
}
.right__inner{
display: flex;
flex-direction: column;
gap: clamp(16px,4vw,40px);
flex: 1;
}
.right__inner span{
display: block;
}
.book__title{
font-family: var(--mincho-font);
font-size: clamp(24px, 4.8vw, 48px);
font-weight: 700;
}
.book__subtitle{
font-family: var(--mincho-font);
font-size: clamp(16px, 2.4vw, 24px);
font-weight: 400;
}
.book__author{
font-family: var(--main-font);
font-weight: 700;
font-size: 16px;
}
.book__overview{
font-family: var(--main-font);
font-weight: 400;
line-height: var(--line-height);
}
.link__button{
font-family: var(--main-font);
font-size: 24px;
display: inline-block;
background-color: var(--sub-color);
color: #fff;
border-radius: 50px;
width: fit-content;
padding: 10px 48px;
max-width: 290px;
width: 100%;
text-align: center;
margin-inline: auto;
}

.link__button:hover{
opacity: 0.8;
}

.h3__heading--white span{
border-top: 1px solid #fff;
border-bottom: 1px solid #fff;
color: #fff;
}
.profile--gap{
gap: 40px;
}
.right__inner--gap{
gap: 16px;
color: #fff;
}
.book__author__name{
font-family: var(--main-font);
font-weight: 700;
font-size: 18px;
}

footer {
position: relative;
padding: 40px 16px;
text-align: center;
background: #fff;
font-size: 12px;
}

.copyright{
margin-bottom: 16px;
}

.top__button{
width: 50px;
height: 50px;
background-color: #fff;
border: solid 1px #E60013;
display: flex;
justify-content: center;
align-items: center;
position: fixed;
bottom: 20px;
right: 20px;
}

.top__button__inner{
width: 0;
height: 0;
border-left: 12px solid transparent;
border-right: 12px solid transparent;
border-bottom: 20px solid #E60013;
}

.bg--yellow{
background-color: #FFF100;
padding-bottom:clamp(32px, 6.4vw, 64px);
}

.trial__wrap{
display: flex;
flex-direction: column;
gap: 16px;
width: 100%;
align-items: center;
}

.trial__wrap img{
max-width: 100px;
width: 100%;
}

.h4__heading{
font-family: '游明朝', 'Yu Mincho', serif;
font-size: clamp(32px, 4vw, 40px);
}
.trial {
font-size: clamp(40px, 6.4vw, 64px);
color: #E60013;
font-weight: bold;
text-shadow:
-3px -3px 0 #fff,
3px -3px 0 #fff,
-3px  3px 0 #fff,
3px  3px 0 #fff,
-3px  0px 0 #fff,
3px  0px 0 #fff,
0px -3px 0 #fff,
0px  3px 0 #fff;
}

@media screen and (max-width: 640px) {
.trial{
text-align: center;
}
}

.tripper__link{
font-size: clamp(20px, 3.5vw, 35px);
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
padding: 16px clamp(16px, 2.4vw, 24px);
gap: 10px;
max-width: clamp(250px, 39.7vw, 397px);
width: 100%;
background: #0291d1;
border-radius: 10px;
font-weight: bold;
}



.tripper__link:hover{
opacity: .8;
}

.essay{
background: #fff;
margin-bottom:clamp(32px, 6.4vw, 64px);
}

.essay__inner{
max-width: 900px;
width: 100%;
margin: 0 auto;
padding: 40px 20px;
}

.essay__lead{
text-align: center;
font-size: clamp(18px, 2.4vw, 24px);
font-weight: bold;
margin-bottom: 24px;
}

.essay__h2{
background-color: #E60013;
color: #fff;
font-size: clamp(24px, 3.2vw, 32px);
font-family: '游明朝', 'Yu Mincho', serif;
line-height: 1;
text-align: center;
padding: 16px;
margin-bottom: 24px;
}

.essay__h2 span{
font-size: clamp(18px, 2vw, 20px);
font-family:var(--main-font)
}

.essay_main_txt{
font-size: clamp(14px, 1.8vw, 18px);
line-height: 2;
font-weight: bold;
}

.essay__more{
margin-top: clamp(20px, 2.4vw, 24px);
margin-bottom: 0;
}

.bg--white{
background-color: #fff;
padding-bottom: clamp(40px, 6.4vw, 64px);
}

.introduce__inner{
display: flex;
justify-content: center;
gap: 40px;
}

@media screen and (max-width: 640px) {
.introduce__inner{
flex-direction: column;
align-items: center;
}
}

.book__info{
max-width: 470px;
width: 100%;
}

.book__info{
font-family: '游明朝', 'Yu Mincho', serif;
}

.book__info h2{
font-size: 48px;
margin-bottom: 8px;
}

@media screen and (max-width: 640px) {
.book__info h2{
text-align: center;
}
}

.author,.release,.book__info--btn{
font-size: 24px;
}
.author,.release,.book__info--btn:hover{
opacity: .8;;
}

.author{
margin-bottom: 24px;
}

@media screen and (max-width: 640px) {
.author{
text-align: center;
}
}

.release{
margin-bottom: 32px;
}

@media screen and (max-width: 640px) {
.release{
text-align: center;
}
}

.release span{
display: inline-block;
border: 1px #000 solid;
padding: 0 2px;
margin-right: 8px;
}

.book__info__txt{
font-family: var(--main-font);
font-size: 18px;
font-weight: bold;
line-height: 2;
margin-bottom: 24px;
}

.book__info--btn{
font-family: var(--main-font);
font-weight: bold;
border-radius: 300px;
background-color: #E60013;
color: #fff;
display: block;
max-width: clamp(250px,33.6vw,336px);
width: 100%;
margin-inline: auto;
text-align: center;
padding: 16px 24px;
}

.hero--space{
padding:clamp(64px, 12vw, 120px) 20px clamp(32px, 6.4vw, 64px);
height: auto;
margin-bottom: 0;
}

.contest{
padding: 0;
}

.contest__inner{
max-width: 1130px;
width: 100%;
margin: 0 auto;

}

.h2__heading__contest {
font-family: '游明朝', 'Yu Mincho', serif;
font-size: clamp(20px, 4vw, 40px);
background-color: #FFF100;
text-align: center;
border-radius: 10px;
box-shadow: 10px 10px 0px #000;
padding: clamp(8px, 2.4vw, 24px);
position: relative;
margin-bottom: clamp(24px, 6.4vw, 64px);
z-index: 0;
}

.h2__heading__contest::before {
content: "";
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -75%);
width: clamp(100px, 20vw, 170px);
height: clamp(100px, 20vw, 170px);
border-radius: 50%;
background-color: #FFF100;
z-index: -1;
}

.h2__heading__contest::after {
content: "";
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -140%);
background: url(/design_items/pc/img/yourquiz/object01.png) no-repeat center center;
background-size: contain;
width: clamp(45px, 8vw, 80px);
height: clamp(45px, 8vw, 80px);
}

.contest__info{
text-align: center;
background-color: #fff;
padding:clamp(20px, 4vw, 40px) 16px;
}

.contest__info__lead{
font-size: clamp(20px, 3.2vw, 32px);
font-weight: bold;
margin-bottom: clamp(16px, 2.4vw, 24px);
}

.contest__info__txt{
font-size: clamp(20px, 3.2vw, 32px);
font-weight: bold;
}

.contest__info__txt span{
color: #E60013;
}

.contest__info__txt .contest__notice{
font-size: clamp(16px, 2.4vw, 24px);
color: #000;
}

.download_btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: clamp(8px, 2vw, 16px);
background-color: #00A1E9;
color: #fff;
border-radius: 10px;
font-size: clamp(20px, 3.2vw, 32px);
font-weight: bold;
padding: 10px 32px;
margin-bottom: clamp(20px, 3.2vw, 32px);
text-align: center;
text-decoration: none;
}
.download_btn:hover{
opacity: 0.8;
}
.download_btn span{
display: block;
position: relative;
}
/* Removed obsolete .download_btn span::after block */
@media screen and (max-width: 640px){
.download_btn {
font-size: 18px;
padding: 10px 24px;
}
}

/* New CSS for .btn__icon */
.btn__icon {
width: clamp(20px, 5vw, 26px);
height: clamp(20px, 5vw, 27px);
object-fit: contain;
}

/* アニメーション開始をクラスで制御 */
.slide__in:not(.animate) span {
    color: transparent !important;
}
.slide__in span {
    animation-play-state: paused !important;
}

.slide__in.animate span {
    animation-play-state: running !important;
}

/* スライドインアニメーション：初期状態 */
.slide__in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* アニメーション後の状態 */
.slide__in.animate {
    opacity: 1;
    transform: translateY(0);
}

