@charset "UTF-8";
/*書き換え禁止*/
* ,*::before,*::after{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
.iks_logo_left, .iks_logo_right {display: none !important;}
#header_bot {display: none !important;}
/*書き換え禁止*/

/*ここから書いてね*/
.hamburger-fade__wrapper {
  background-color: #092846;
}


/* Firefox */
html {
  scrollbar-gutter: stable;
  scrollbar-color: #092846 #d9c2a5; 
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

::-webkit-scrollbar-track {
  background: #d9c2a5;
}

::-webkit-scrollbar-thumb {
  background-color: #092846;
  border-radius: 6px;
  border: 1px solid #d9c2a5;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #092846;
}


body {
  font-family: 'Kaisei Opti', serif;
  background-color: #d9c2a5;
}


img, svg {
  user-select: none;          
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;  
  pointer-events: auto; 
}

h1{
  font-size: 24px;
  font-weight: 500;
  color: #092846;
  padding-left: 20px;
  margin-top: 7vh;
  margin-bottom: 3vh; 
  display: flex;       
  align-items: center;
  position: relative;
  white-space: nowrap;
}

h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleX(-1);

  width: 10px;
  height: 52px;
  background: #967752;
  border-radius: 2px;

  -webkit-clip-path: polygon(
    0 8.5px,
    100% 0,
    100% 100%,
    0 43.5px
  );
  clip-path: polygon(
    0 8.5px,
    100% 0,
    100% 100%,
    0 43.5px
  );
}

.right-dot {
  flex-grow: 1;
  margin-left: 14px;
  height: 5px;
  pointer-events: none;
  transform-origin: left center;
  transform: scaleY(1);
}

.left-dot,
.right-dot {
  display: inline-flex;
  align-items: center;
}



.fade-section, .fade-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-section.show, .fade-child.show {
  opacity: 1;
  transform: translateY(0);
}





.fv-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  background-color: #092846;
  overflow: hidden;
}


.title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  z-index: 10;
  opacity: 0;
   transition: opacity 1s ease-out;
}

.title-bg {
  position: absolute;
  width: 90px;
  height: 105px;
  top: 59%;
  left: 50%;
  background-color: #092846;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* === チェーン共通 === */
.chain-background {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 375px;
  height: 100%;
  pointer-events: none;
}

.left-chain-container,
.right-chain-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: top center;
  overflow: visible;
}

/* === 左チェーン === */
.left-chain-wrapper {
  position: relative;
  display: block;
  width: 900px;
  top: 4.5%;
  left: -107%;
  z-index: 2;
  opacity: 0;
  transform: scale(0.8) translateY(-15px);
  transition: opacity 1s ease, transform 1s ease;
  transform-origin: top center;
  z-index: 3;
}

.left-chain-wrapper::before,
.left-chain-wrapper::after {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0;
  transform: translateX(-50%) scale(0.8) translateY(-15px);
  transition: opacity 1s ease, transform 1s ease;
  z-index: 4;
}

.left-chain-wrapper::before {
  top: 101%;
  left: 50.4%;
  width: 55px;
  height: 55px;
  background-image: url('https://ikkyosai.com/visitor/56/topics/img/rally/left-deco1.svg');
}

.left-chain-wrapper::after {
  top: 94.4%;
  left: 62.44%;
  width: 100px;
  height: 100px;
  background-image: url('https://ikkyosai.com/visitor/56/topics/img/rally/left-deco2.svg');
}

/* === 右チェーン === */
.right-chain1-wrapper,
.right-chain2-wrapper {
  position: relative;
  display: block;
  width: 900px;
  opacity: 0;
  transform: scale(0.8) translateY(-15px);
  transition: opacity 1s ease, transform 1s ease;
  transform-origin: top center;
  z-index: 3;
}

.right-chain1-wrapper {
  top: -50.4%;
  left: 8%;
}

.right-chain2-wrapper {
  top: -127%;
  left: -13%;
}

.right-chain1-wrapper::before,
.right-chain2-wrapper::before,
.right-chain2-wrapper::after {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0;
  transform: translateX(-50%) scale(0.8) translateY(-15px);
  transition: opacity 1s ease, transform 1s ease;
  z-index: 4;
}

.right-chain1-wrapper::before {
  top: 86%;
  left: 24.2%;
  width: 55px;
  height: 55px;
  background-image: url('https://ikkyosai.com/visitor/56/topics/img/rally/right-deco1.svg');
}

.right-chain2-wrapper::before {
  top: 78.3%;
  left: 27.9%;
  width: 22px;
  height: 130px;
  background-image: url('https://ikkyosai.com/visitor/56/topics/img/rally/right-deco2.svg');
}

.right-chain2-wrapper::after {
  top: 94.5%;
  left: 39.1%;
  width: 100px;
  height: 147px;
  background-image: url('https://ikkyosai.com/visitor/56/topics/img/rally/right-deco3.svg');
}

/* === フェードイン（JSで追加される） === */
.left-chain-wrapper.show,
.right-chain1-wrapper.show,
.right-chain2-wrapper.show {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: all 1s ease-out;
}

.left-chain-wrapper.show::before,
.left-chain-wrapper.show::after,
.right-chain1-wrapper.show::before,
.right-chain2-wrapper.show::before,
.right-chain2-wrapper.show::after {
  opacity: 1;
  transform: translateX(-50%) scale(1) translateY(0);
  transition: all 1s ease-out;
}


.fv-effect {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 7;
}

.fv-e {
  position: absolute;
  opacity: 0;
  transform: scale(0.2) translate(0, 0);
  pointer-events: none;
  z-index: 7;
  animation-fill-mode: forwards;
}

@keyframes sparkleFly {
  0% {
    opacity: 0;
    transform: scale(0.2) translate(var(--from-x, 0), var(--from-y, 0));
  }
  30% {
    opacity: 1;
    transform: scale(0.6) translate(var(--to-x, 0), var(--to-y, 0));
  }
  100% {
    opacity: 1;
    transform: scale(1) translate(var(--to-x, 0), var(--to-y, 0));
  }
}

.fv-e1 {
  width: 50px;
  bottom: 23%;
  left: 4%;
  position: absolute;
}

.fv-e2 {
  width: 25px;
  top: 27%;
  left: 87%;
  position: absolute;
}

.fv-e3 {
  width: 50px;
  top: -1%;
  left: 8%;
  position: absolute;
  z-index: 8;
}

.fv-e4 {
  width: 51px;
  top: 85%;
  left: 82%;
  position: absolute;
  z-index: 8;
}

.fv-e5 {
  width: 23px;
  top: 87%;
  left: 27%;
  position: absolute;
}

.fv-e6 {
  width: 30px;
  top: 15%;
  left: 46%;
  position: absolute;
}

.fv-e7 {
  width: 103px;
  top: -2%;
  left: 5%;
  position: absolute;
}

.fv-e8 {
  width: 130px;
  top: 81%;
  left: 60%;
  position: absolute;
}

@media screen and (min-width:475px){
.title-bg{
  top: 70%;
}
}

@media screen and (min-width:535px){
.title-bg{
  top: 65%;
  height: 120px;
}
.chain-background {
  width: 535px;
}

.left-chain-wrapper {
  width: 1000px;
  top: 1.5%;
  left: -75%;
}
.right-chain1-wrapper,
.right-chain2-wrapper {
  width: 1000px;
}
.right-chain1-wrapper {
  top: -53.2%;
  left: 26.7%;
}

.right-chain2-wrapper {
  top: -142.5%;
  left: 2.4%;
}

.left-chain-wrapper::before {
  top: 101%;
  left: 50.2%;
  width: 55px;
  height: 60px;
}

.left-chain-wrapper::after {
  top: 94.61%;
  left: 62.38%;
  width: 100px;
  height: 109px;
}


.right-chain1-wrapper::before {
  top: 84.9%;
  left: 24.3%;
  width: 55px;
  height: 60px;
}

.right-chain2-wrapper::before {
  top: 80.5%;
  left: 27.85%;
  width: 27px;
  height: 130px;
}

.right-chain2-wrapper::after {
  top: 94.58%;
  left: 39.1%;
  width: 100px;
  height: 155px;
}

}

@media screen and (min-width:600px){
.title-bg{
  top: 73%;
}
}

@media screen and (min-width:660px){
.title-bg{
  top: 63%;
  height: 150px;
}
.chain-background {
  width: 660px;
}

.left-chain-wrapper {
  width: 1100px;
  top: -4.5%;
  left: -61%;
}
.right-chain1-wrapper,
.right-chain2-wrapper {
  width: 1100px;
}
.right-chain1-wrapper {
  top: -60.8%;
  left: 27.5%;
}

.right-chain2-wrapper {
  top: -154.1%;
  left: 6.6%;
}

.left-chain-wrapper::before {
  top: 101%;
  left: 50.4%;
  width: 55px;
  height: 52px;
}

.left-chain-wrapper::after {
  top: 94%;
  left: 38.6%;
  width: 100px;
  height: 115px;
}


.right-chain1-wrapper::before {
  top: 84.9%;
  left: 24.2%;
  width: 60px;
  height: 70px;
}

.right-chain2-wrapper::before {
  top: 80.9%;
  left: 27.85%;
  width: 28px;
  height: 130px;
}

.right-chain2-wrapper::after {
  top: 96.2%;
  left: 42.3%;
  width: 105px;
  height: 165px;
}
.fv-e5 {
  width: 23px;
  top: 90%;
  left: 31%;
}
}

@media screen and (min-width:720px){
.title{
  width: 60%;
}
.title-bg{
  top: 57%;
}
.fv-e2 {
  width: 40px;
  top: 29%;
  left: 88%;
}
}

@media screen and (min-width:900px){
.title-bg{
  top: 66%;
  height: 150px;
}
.chain-background {
  width: 660px;
}

.left-chain-wrapper {
  width: 1100px;
  top: -4.5%;
  left: -61%;
}
.right-chain1-wrapper,
.right-chain2-wrapper {
  width: 1100px;
}
.right-chain1-wrapper {
  top: -52.5%;
  left: 27.6%;
}

.right-chain2-wrapper {
  top: -144.6%;
  left: 19.6%;
}

.left-chain-wrapper::before {
  top: 98.5%;
  left: 41.3%;
  width: 55px;
  height: 52px;
}

.left-chain-wrapper::after {
  top: 88.7%;
  left: 26.9%;
  width: 100px;
  height: 115px;
}


.right-chain1-wrapper::before {
  top: 94.9%;
  left: 31.7%;
  width: 60px;
  height: 70px;
}

.right-chain2-wrapper::before {
  top: 85.5%;
  left: 30.4%;
  width: 30px;
  height: 130px;
}

.right-chain2-wrapper::after {
  top: 96.4%;
  left: 52.3%;
  width: 120px;
  height: 175px;
}

.fv-e1 {
  width: 60px;
  bottom: 24%;
  left: 8%;
}

.fv-e2 {
  width: 40px;
  top: 27%;
  left: 88%;
}

.fv-e3 {
  width: 60px;
  top: -2%;
  left: 12%;
}

.fv-e4 {
  width: 55px;
  top: 85%;
  left: 85%;
}

.fv-e5 {
  width: 35px;
  top: 90%;
  left: 31%;
}

.fv-e6 {
  width: 40px;
  top: 15%;
  left: 54%;
}

.fv-e7 {
  width: 150px;
  top: -4%;
  left: 4%;
}

.fv-e8 {
  width: 170px;
  top: 81%;
  left: 69%;
}
}

@media screen and (min-width:1024px){
.title{
  width: 45%;
}
.title-bg{
  top: 57%;
}
}

@media screen and (min-width:1075px){
.fv-e2 {
  width: 40px;
  top: 35%;
  left: 88%;
}
}



@media screen and (min-width:1200px){
.title-bg{
  top: 65%;
  height: 150px;
}

.fv-e3 {
    width: 60px;
    top: -2%;
    left: 10%;
}

.fv-e5 {
  width: 35px;
  top: 90%;
  left: 41%;
}

.fv-e8 {
  width: 170px;
  top: 81%;
  left: 76%;
}

}

@media screen and (min-width:1300px){
.title-bg{
  top: 62%;
  height: 186px;
}


.left-chain-wrapper {
  width: 1300px;
  top: -19.5%;
  left: -80%;
}
.right-chain1-wrapper,
.right-chain2-wrapper {
  width: 1300px;
}
.right-chain1-wrapper {
  top: -76.4%;
  left: 24.8%;
}

.right-chain2-wrapper {
  top: -174.5%;
  left: 19.7%;
}

.left-chain-wrapper::before {
  top: 96.5%;
  left: 35.6%;
  width: 55px;
  height: 60px;
}

.left-chain-wrapper::after {
  top: 86.7%;
  left: 17.9%;
  width: 100px;
  height: 140px;
}


.right-chain1-wrapper::before {
  top: 95.9%;
  left: 31.7%;
  width: 75px;
  height: 80px;
}

.right-chain2-wrapper::before {
  top: 86.6%;
  left: 30.36%;
  width: 34px;
  height: 130px;
}

.right-chain2-wrapper::after {
  top: 93.4%;
  left: 58.67%;
  width: 120px;
  height: 220px;
}

.fv-e1 {
  width: 60px;
  bottom: 24%;
  left: 8%;
}

.fv-e2 {
  width: 40px;
  top: 35%;
  left: 88%;
}

.fv-e3 {
  width: 60px;
  top: -2%;
  left: 10%;
}

.fv-e4 {
  width: 55px;
  top: 85%;
  left: 89%;
}

.fv-e5 {
  width: 35px;
  top: 90%;
  left: 41%;
}

.fv-e6 {
  width: 40px;
  top: 15%;
  left: 54%;
}

.fv-e7 {
  width: 150px;
  top: -4%;
  left: 4%;
}

.fv-e8 {
  width: 170px;
  top: 81%;
  left: 76%;
}
}








.under-fv-container{
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  z-index: 10;
}

.under-fv{
  position: relative;
  width: 200vw;
  left: -50vw;
}






.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.link {
  flex: 1 1 33%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #092846;
  font-size: 16px;
  text-decoration: none;
  padding: 10px;
  position: relative;
  box-sizing: border-box;
}

.link + .link::before{
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 2px;
  background-color: #092846;
  border-radius: 9999px;
}

.link:nth-child(4)::before {
  display: none;
}

.link::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-top: 6px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #092846;
}

section {
  scroll-margin-top: 20px;
}



.story{
  background-color: #092846;
  color: #fcecde;
  width: 100%;
  padding: 5%;
  font-size: 14px;
  line-height: 1.5; /* 基本の行間 */
  position: relative;
  overflow: hidden;
}

.story-text span {
  display: block;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  line-height: 2; /* 1.5 → 2 に変更で行間広く */
  margin: 0;      /* 改行マーカーごとの余白は不要 */
}


.story-text span.show{
  opacity: 1;
  transform: translateY(0);
}

.skip-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    padding: .3em 0em;
    border: none;
    border-radius: 4px;
    border: 1px solid #fcecde;
    background-color: #092846;
    color: #fcecde;
    font-weight: 400;
    font-size: 15px;
    position: absolute;
    bottom: 5%;
    right: 20px;
    cursor: pointer;
    font-family: 'Kaisei Opti', serif;
}

.skip-btn:hover{
  background-color: #385c80;
}

.skip{
  bottom: 1px;
  position: relative;
}

.story-deco {
  position: absolute;
  top: 0;
  height: 85%;
  display: block;
  right: 0;
  z-index: 0;
  opacity: 0.9;
}

@media screen and (min-width:600px) {
  .skip-btn {
    width: 8%;
    padding: .3em 0em;
    border-radius: 5px;
    font-size: 18px;
    bottom: 16%;
    right: 5%;
}
.skip{
    font-family: 'Kaisei Opti', serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}
.skip::after{
    content: "";
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 7px solid #fcecde;
    display: inline-block;
    position: relative;
    bottom: -2px;
}
}
@media (min-width:600px) and (max-width:1280px) {
  .skip-btn {
    width: 10%;
    padding: .3em 0em;
    border-radius: 5px;
    font-size: 16px;
    bottom: 12%;
}
.skip{
    gap: 6px;
}
.skip::after{
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid #fcecde;
}
}


.courses {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row;
    gap: 15px;
}


.course{
  width: 330px;
  height: 200px;
  position: relative;
  z-index: 1;
}

.course::after{
  content: "";
  position: absolute;
  bottom: 0;
  right: -1px;
  width: 43%;
  height: 65%;
  background: #c79b4e4d;
  clip-path: polygon(100% 100%, 0 100%, 100% 0);
}

.triangle {
  position: absolute;
  top: 0;
  left: 0;
  width: 21%;
  height: 34%;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 3;
}

.course-frame{
  position: absolute;
  padding-right: 1.1%;
  padding-bottom: 1.1%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96%;
  height: 94%;
  z-index: 4;
}

.course-color1{
  color: #4d2c2a;
  background-color: #4d2c2a;
}

.course-color2{
  color: #092846;
  background-color: #092846;
}

.course-color3{
  color: #435034;
  background-color: #435034;
}

.course-color4{
  color: #665629;
  background-color: #665629;
}


.whitebox{
  background-color: #fcecde;
  width: 87%;
  height: 80%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  z-index: 2;
}

.course-icon{
  position: absolute;
  top: 18%;
  left: 12%;
  width: 13%;
  z-index: 3;
  opacity: 0.8;
}

.course-phrase{
  font-size: 12px;
  position: absolute;
  top: 18%;
  left: 12%;
  z-index: 6;
}

.course-title{
  font-size: 17px;
  position: absolute;
  top: 26%;
  left: 12%;
  z-index: 6;
}

.course-info{
  font-size: 12px;
  position: absolute;
  top: 50%;
  left: 12%;
  z-index: 6;
}

.course-detail{
  font-size: 12px;
  z-index: 6;
  white-space: nowrap; 
}





.detail2{
  position: absolute;
  bottom: 15%;
  left: 12%;
}

.course-number{
  font-size: 15px;
}

.course-difficulty {
  position: absolute;
  bottom: 63.2%;
  right: 3%;
  width: 40%;
  display: flex;
  align-items: center; 
  z-index: 5; 
  gap: 8%; 
}


.course-stone-container {
  display: flex;
  gap: 12%;
  align-items: center;
  width: 43%;
}

.course-stone {
  width: 25%;
  display: block;
  flex-shrink: 0;
}

.stone-shadow {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}



.course-line{
  display: block;
  width: 80%;
  height: 1px;
  border-radius: 2px;
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
}

.example-container{
  position: absolute;
  right: 12%;
  bottom: 15%;
  width: 33%;
  height: 15%;
  display: flex;
  line-height: 1;
  padding: 0;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 4;
  border: none;
  outline: none;
  overflow: hidden;
}

.example-container::after{
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #c79b4e4d;
  clip-path: polygon(
    65.5% 0,
    100% 0,
    100% 100%,
    35% 100%
  );
  transition: clip-path 0.3s cubic-bezier(0.87, 0, 0.13, 1);
}

.example-container:hover::after {
  /* 反転させる座標 */
  clip-path: polygon(
    0 0,
    65.5% 0,
    35% 100%,
    0 100%
    
  );
}




.example-btn{
  color: #fcecde;
  font-family: 'Kaisei Opti', serif;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  top: -1px;
  z-index: 5;
}

.example-btn::before{
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid #fcecde;
  display: inline-block;
  position: relative;
  bottom: -1px;
  transition: transform 0.3s cubic-bezier(0.87, 0, 0.13, 1);
}

.example-container:hover .example-btn::before {
  transform: translateX(3px);
}


/*もーだる！！*/

/* モーダル全体（背景含む） */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
  display: none;
}

.modal.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
}



/* モーダルの内容部分 */
.modal-content {
  background-color: #d9c2a5;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding-top: 33px;
  width: 95%;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 3px;
  position: relative;
}

.close {
  position: absolute;
  color: #092846;
  top: -2px;
  right: 8px;
  font-size: 24px;
  cursor: pointer;
}

.close-btn-container {
  display: flex;
  justify-content: center;
}


.close-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 30px;
  margin-bottom: 20px;
  background: none;
  border: none;
  color: #fcecde;
  font-family: 'Kaisei Opti', serif;
  font-size: 12px;
  cursor: pointer;
  z-index: 1;
}

.btn-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: -1;    
  pointer-events: none; 
}


/* ===== タブボタン部分 ===== */
.tab-buttons {
  display: flex;
  gap: 0;
}

.tab-buttons label {
  flex: 1 1 25%; /* 4等分 */
  text-align: center;
  padding: 1.5em 1em 1em;
  cursor: pointer;
  background-color: #d9c2a5;
  font-size: 12px;
  line-height: 1;
  border: 1px solid #c79b4e;
  transition: background-color 0.3s, color 0.3s;
  box-sizing: border-box;
  position: relative;
}

.tab-buttons label + label {
  border-left: none;
}

/* ラジオボタン非表示 */
.tab-switch-wrapper input {
  display: none;
}

/* タブ色非アクティブ*/
.tab-buttons label[for="tab1"] { color: #4d2c2a; }
.tab-buttons label[for="tab2"] { color: #092846; }
.tab-buttons label[for="tab3"] { color: #435034; }
.tab-buttons label[for="tab4"] { color: #665629; }

/* タブ色アクティブ*/
#tab1:checked ~ .tab-buttons label[for="tab1"] { background-color: #4d2c2a; color: #fcecde; }
#tab2:checked ~ .tab-buttons label[for="tab2"] { background-color: #092846; color: #fcecde; }
#tab3:checked ~ .tab-buttons label[for="tab3"] { background-color: #435034; color: #fcecde; }
#tab4:checked ~ .tab-buttons label[for="tab4"] { background-color: #665629; color: #fcecde; }

/* ===== コンテンツ部分 ===== */
.tab-contents .tab-content {
  display: none;
  padding: 1em;
  width: 100%;
  box-sizing: border-box;
}

/* チェックされたタブに対応するコンテンツを表示 */
#tab1:checked ~ .tab-contents .tab-content1 { display: block; }
#tab2:checked ~ .tab-contents .tab-content2 { display: block; }
#tab3:checked ~ .tab-contents .tab-content3 { display: block; }
#tab4:checked ~ .tab-contents .tab-content4 { display: block; }

/*ボタンのデコレーション*/
.topleft{
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  height: 33%;
  aspect-ratio: 1 / 1;
  background-color: #c79b4e;
  clip-path: polygon(0 0, 0 100%, 100% 0);
}

.topleft::after{
  content: "";
  position: absolute;
  width: calc(100% - 3px);
  height: calc(100% - 3px);
  clip-path: polygon(0 0, 0 100%, 100% 0);
  top: calc(50% - 0.5px);
  left: calc(50% - 0.5px);
  transform: translate(-50%, -50%);
}

.topright{
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  height: 33%;
  aspect-ratio: 1 / 1;
  background-color: #c79b4e;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.topright::after{
  content: "";
  position: absolute;
  width: calc(100% - 3px);
  height: calc(100% - 3px);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  top: calc(50% - 0.5px);
  left: calc(50% + 0.5px);
  transform: translate(-50%, -50%);
}

.bottomleft{
  content: "";
  position: absolute;
  bottom: -1px;
  left: -1px;
  height: 33%;
  aspect-ratio: 1 / 1;
  background-color: #c79b4e;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.bottomleft::after{
  content: "";
  position: absolute;
  width: calc(100% - 3px);
  height: calc(100% - 3px);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  top: calc(50% + 0.5px);
  left: calc(50% - 0.5px);
  transform: translate(-50%, -50%);
}

.bottomright{
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  height: 33%;
  aspect-ratio: 1 / 1;
  background-color: #c79b4e;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.bottomright::after{
  content: "";
  position: absolute;
  width: calc(100% - 3px);
  height: calc(100% - 3px);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  top: calc(50% + 0.5px);
  left: calc(50% + 0.5px);
  transform: translate(-50%, -50%);
}


.tab-buttons label[for="tab1"] span::after {
  background-color: #cbb2a4;
}
#tab1:checked ~ .tab-buttons label[for="tab1"] span::after {
  background-color: #4d2c2a;
}

.tab-buttons label[for="tab2"] span::after {
  background-color: #898eac;
}
#tab2:checked ~ .tab-buttons label[for="tab2"] span::after {
  background-color: #092846;
}

.tab-buttons label[for="tab3"] span::after {
  background-color: #b3c698;
}
#tab3:checked ~ .tab-buttons label[for="tab3"] span::after {
  background-color: #435034;
}

.tab-buttons label[for="tab4"] span::after {
  background-color: #d4bb71;
}
#tab4:checked ~ .tab-buttons label[for="tab4"] span::after {
  background-color: #665629;
}

.tab1:hover{
  background-color: #4d2c2a1A;
}

.tab2:hover{
  background-color: #0928461A;
}

.tab3:hover{
  background-color: #4350341A;
}

.tab4:hover{
  background-color: #6656291A;
}




.example-img{
  width: 100%;
  margin: 0 auto;
  margin-bottom: 0.5em;
  border: 2px solid #fcecde;
  display: inline-block;
}


.accordion {
  margin-bottom: 6px;
  border: 2px solid #fcecde;
  overflow: hidden;
}

.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 1.6em;
  color: #092846;
  font-weight: 400;
  cursor: pointer;
  font-size: 16px;
  position: relative;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  transform: rotate(45deg);
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-bottom: 2px solid #092846b3;
  border-right: 2px solid #092846b3;
  content: '';
  transition: transform 0.3s ease;
}

.accordion summary.open::after {
  transform: rotate(225deg);
}

/* ラッパーで高さを制御 */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}

/* 中の p のアニメーション */
.accordion-content p {
  margin: 0;
  padding: 0.3em 2em 1.6em;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: opacity, transform;
  color: #092846;
  font-size: 12px;
}

/* 開いたとき */
.accordion-content.open {
  max-height: 500px; /* 十分大きくして内容が切れないように */
}

.accordion-content.open p {
  opacity: 1;
  transform: translateY(0);
}


.answer{
  font-size: 16px;
}

.spacer {
  display: block;
  content: "";
  height: 0.4em; 
}

/*もーだるー*/





.play-form-wrapper{
  display: flex;
  justify-content: center;
  gap: 3%;
}

.play-form{
  width: 102px;
  height: 102px;
  display: flex;
  gap: 7%;
  flex-direction: column;
  grid-template-rows: 1fr auto;
  justify-content: center;
  align-items: center;
  color: #fcecde;
  font-size: 10px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.form-color1{
  background-color: #2f5472;
}

.form-color2{
  background-color: #c79b4e;
}


.icon-container{
  height: 60%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center; 
}

.form-text1{
  font-size: 11px;
}

.form-icon1{
  height: 95%;
}

.form-icon2{
  height: 80%;
}

.form-icon3{
  height: 80%;
}

.play-step{
  margin-top: 11vh;
  position: relative;
  z-index: 0;
  overflow: visible;
}
.play-step:nth-of-type(1) { z-index: 10; }
.play-step:nth-of-type(2) { z-index: 9; }
.play-step:nth-of-type(3) { z-index: 8; }
.play-step:nth-of-type(4) { z-index: 7; }

.step-deco{
  width: 200px;
  position: absolute;
  top: -89px;
  left: -140px;
  z-index: 1;
}

.step-deco2{
  top: -94px;
}

.step-deco3{
  top: -75px;
}

.step-deco4{
  top: -65px;
}

h2{
  padding-left: 75px;
  font-size: 21px;
  font-weight: 400;
  color: #092846;
  position: relative;
  display: flex;
  align-items: center;
}

.step-number{
  position: absolute;
  left: 45px;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  height: 18px;
}

.double-octagon{
  position: absolute;
  left: 20px;
  width: 50px;
  z-index: 2;
}



.step-text{
  font-size: 12px;
  color: #092846;
  width: 100%;
  margin: 0 auto;
  margin-top: 10px;
  padding-left: 78px;
  line-height: 1.6;
}

.grad-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 0.15em;
}

.grad-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0.15em;
  border-radius: 999px;
  background: linear-gradient(90deg, #4d2c2ab3 70%, #d9c2a5 100%);
  z-index: -1;
}





.Q1{
  background-color: #092846;
  width: 85%;
  margin: 0 auto;
  margin-top: 40px;
  padding: 5%;
  position: relative;
  z-index: 10; 
}

.Q1-img{
  display: block;
  width: 100%;
}

.Q1stone-left{
  position: absolute;
  width: 11%;
  top: 84%;
  left: -3%;
  z-index: 12;
  transform: rotate(353deg);
  display: none;
}


.Q1frame-top{
  position: absolute;
  top: 3.8%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 56%;
  display: block;
}

.Q1frame-bottom{
  position: absolute;
  top: 96.2%;
  left: 50%;
  transform: translate(-50%, -50%) scaleY(-1);
  width: 56%;
  display: block;
}


.Q1stone-right{
  position: absolute;
  width: 15%;
  right: -5px;
  bottom: 5px;
}


.line-button-link {
  display: inline-block;
  text-decoration: none;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.line-button-container {
  position: relative;
  width: 300px;
  height: 100px;
  margin: 0 auto;
  margin-top: 40px;
}

.line-button-m,
.line-button-t,
.line-button-b,
.line-p {
  pointer-events: auto;
}


.line-button-m {
  position: absolute;
  width: 70%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  cursor: pointer;
}

.line-button-t {
  position: absolute;
  width: 70%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translate(-5px, -5.8px);
  z-index: 1;
  transition: transform 1s ease-in-out;
}

.line-button-b {
  position: absolute;
  width: 70%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translate(5px, 5.8px);
  z-index: 1;
  transition: transform 1s ease-in-out;
}

.line-button-container:hover .line-button-t,
.line-button-container:hover .line-button-b {
  transform: translate(-50%, -50%);
}

.line-p{
  color: #092846;
  font-family: 'Kaisei Opti', serif;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.line-p::after{
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid #092846;
  display: inline-block;
  position: relative;
  bottom: -1px;
}

.line-effect1{
  position: absolute;
  width: 35px;
  top: -5%;
  right: 5%;
}

.line-effect2{
  position: absolute;
  width: 32px;
  top: 35%;
  right: -3%;
}

.line-effect3{
  position: absolute;
  width: 20px;
  top: 60%;
  left: 2%;
}

.line-effect4{
  position: absolute;
  width: 24px;
  top: 70%;
  left: 8%;
}

.line-effect-res{
  position: absolute;
  display: none;
}

.line-effect-res1{
  width: 17%;
  top: 27%;
  right: -57%;
}

.line-effect-res2{
  width: 10%;
  top: -8%;
  left: -57%;
}

.line-effect-res3{
  width: 27%;
  top: -6%;
  left: -42%;
}

.line-effect-res4{
  width: 12%;
  top: 68%;
  right: -29%;
}
/* 共通アニメーション */
@keyframes sparkle-line {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  30% {
    opacity: 1;
    transform: scale(1.05);
  }
  60% {
    opacity: 0.2;
    transform: scale(0.95);
  }
}

/* 個別のタイミングで遅延 */
.line-effect-res1 {
  animation: sparkle-line 2.5s ease-in-out infinite;
  animation-delay: 0s;
}

.line-effect-res2 {
  animation: sparkle-line 2.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.line-effect-res3 {
  animation: sparkle-line 2.5s ease-in-out infinite;
  animation-delay: 1s;
}

.line-effect-res4 {
  animation: sparkle-line 2.5s ease-in-out infinite;
  animation-delay: 1.5s;
}


.link-to-course{
  width: 250px;
  aspect-ratio: 250 / 49;
  display: flex;
  align-items: center;
  justify-content: center; 
  position: relative;
  margin: 0 auto;
  margin-top: 40px;
}

.link-to-course-p{
  color: #092846;
  font-family: 'Kaisei Opti', serif;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  white-space: nowrap;
  transition: transform 0.4s ease;
}

.link-to-course-p::before{
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #092846;
  display: inline-block;
  position: relative;
  bottom: -1px;
}

.link-to-course-p::after{
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #092846;
  display: inline-block;
  position: relative;
  bottom: -1px;
}

.link-btn-background {
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: -1;    
  pointer-events: none; 
}




/* ===== スマホ（520px以下）のときだけ2行目インデント ===== */
@media screen and (max-width: 519px) {
  h2 {
    padding-left: calc(75px + 1em);
    text-indent: -1em;
  }
}

/* ===== PCでは普通に1行 ===== */
@media screen and (min-width: 520px) {
  .sp-br {
    display: none;
  }
}


.illust-container{
  width: 300px;
  aspect-ratio: 3 / 1;
  margin: 0 auto;
  margin-bottom: 14vh;
  margin-top: 3vh;
  position: relative;
}

.illust1{
  position: absolute;
  display: none;
}

.illust2{
  position: absolute;
  display: block;
  width: 140px;
}

.illust3{
  position: absolute;
  display: block;
  width: 68px;
  top: 80%;
  left: 57%;
}

.illust4{
  position: absolute;
  width: 80px;
  top: 4%;
  left: 78%;
  image-rendering: optimizeQuality; 
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}









.reward-info{
  width: 88%;
  margin: 0 auto;
  color: #092846;
  font-size: 12px;
}

.wp-container {
  margin-top: 9vh;
  padding-bottom: 7vh;
  position: relative;
  overflow-x: clip;
}

.wallpaper {
  display: block;
  width: 80%;
  margin: 0 auto;
}



.wp-e1 {
  width: 24px;
  top: -8%;
  left: 22%;
  position: absolute;
}

.wp-e2 {
  width: 32px;
  top: 15%;
  left: 83%;
  position: absolute;
}

.wp-e3 {
  width: 29px;
  top: 17%;
  left: 12%;
  position: absolute;
  z-index: 8;
}

.wp-e4 {
  width: 28px;
  top: 74%;
  left: 81%;
  position: absolute;
  z-index: 8;
}

.wp-e5 {
  width: 35px;
  top: 74%;
  left: 23%;
  position: absolute;
}

.wp-e6 {
  width: 74px;
  top: -4%;
  left: 82%;
  position: absolute;
}

.wp-e7 {
  width: 57px;
  top: 9%;
  left: 4%;
  position: absolute;
}

.wp-e8 {
  width: 61px;
  top: 81%;
  left: 14%;
  position: absolute;
}

.wp-e9 {
  width: 55px;
  top: 72%;
  left: 74%;
  position: absolute;
}

.wp-e-res{
  display: none;
}

.wp-e-res1{
  width: 55px;
  top: 48%;
  left: 15%;
  position: absolute;
}

.wp-e-res2{
  width: 55px;
  top: 39%;
  left: 80%;
  position: absolute;
}

.wp-e-res3{
  width: 44px;
  top: 27%;
  left: 75%;
  position: absolute;
}

@keyframes sparkle-calm {
  0%, 100% {
    opacity: var(--opacity-min, 0);
    transform: scale(var(--scale-min, 1));
  }
  40% {
    opacity: var(--opacity-max, 1);
    transform: scale(var(--scale-max, 1.08));
  }
  70% {
    opacity: calc(var(--opacity-min, 0) + 0.1);
    transform: scale(var(--scale-min, 0.95));
  }
}


.wp-e1, .wp-e2, .wp-e3, .wp-e4, .wp-e5,
.wp-e6, .wp-e7, .wp-e8, .wp-e9,
.wp-e-res1, .wp-e-res2, .wp-e-res3 {
  animation: sparkle-calm 2.5s ease-in-out infinite;
  will-change: opacity, transform;
  transform-origin: center center;
}

/* 拡大縮小と透明度の差を調整 */
.wp-e1 { --scale-max: 1.12; --scale-min: 0.92; --opacity-max: 1; --opacity-min: 0; animation-delay: 0s; }
.wp-e2 { --scale-max: 1.1; --scale-min: 0.93; --opacity-max: 0.95; --opacity-min: 0; animation-delay: 0.5s; }
.wp-e3 { --scale-max: 1.15; --scale-min: 0.9; --opacity-max: 1; --opacity-min: 0; animation-delay: 1s; }
.wp-e4 { --scale-max: 1.08; --scale-min: 0.95; --opacity-max: 0.9; --opacity-min: 0; animation-delay: 1.3s; }
.wp-e5 { --scale-max: 1.12; --scale-min: 0.9; --opacity-max: 1; --opacity-min: 0; animation-delay: 1.7s; }

/* ほとんど変わらない要素 */
.wp-e6 { --scale-max: 1.02; --scale-min: 0.98; --opacity-max: 0.85; --opacity-min: 0; animation-delay: 0.8s; }
.wp-e7 { --scale-max: 1.03; --scale-min: 0.97; --opacity-max: 0.88; --opacity-min: 0; animation-delay: 1.1s; }
.wp-e8 { --scale-max: 1.02; --scale-min: 0.98; --opacity-max: 0.87; --opacity-min: 0; animation-delay: 2s; }

/* wp-e9は大きさの差を控えめに */
.wp-e9 { --scale-max: 1.05; --scale-min: 0.98; --opacity-max: 1; --opacity-min: 0; animation-delay: 2.3s; }

.wp-e-res1 { --scale-max: 1.1; --scale-min: 0.92; --opacity-max: 0.95; --opacity-min: 0; animation-delay: 1.5s; }
.wp-e-res2 { --scale-max: 1.12; --scale-min: 0.9; --opacity-max: 1; --opacity-min: 0; animation-delay: 0.9s; }
.wp-e-res3 { --scale-max: 1.08; --scale-min: 0.95; --opacity-max: 0.92; --opacity-min: 0; animation-delay: 2.1s; }




.attention-wrapper{
  padding-bottom: 40px;
}

.attention-list{
  width: 88%;
  margin: 0 auto;
  color: #092846;
  font-size: 12px;
  list-style: none;
}

.attention-list li {
  margin-bottom: 1em;
  position: relative;
  padding-left: 1.2em;
}

.attention-list li::before {
  content: "・";
  position: absolute;
  left: 0;
}

.step-text a,
.attention-list a {
  color: #092846; 
  text-decoration: underline;
  transition: opacity 0.3s;
}

.step-text a:hover,
.attention-list a:hover {
  opacity: 0.6;             /* ホバー時に少し薄くするなど */
}

.map-modal {
  padding-top: 20px;
  width: 355px;
  aspect-ratio: 21 / 19.5;
  position: relative;
}
.map-img{
  width: 89%;
  position: absolute;
  top: calc(50% + 14px);
  left: 50%;
  transform: translate(-50%, -50%);
}


.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.3s ease;
  z-index: 2000;
}

.back-to-top img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.back-to-top:hover img {
  transform: scale(1.1);
}




/*PC版*/
@media screen and (min-width:1024px){
  /*書き換え禁止*/
header {position: absolute;}
.hamburger-fade {display: none;}
main {padding-top: 65px;}
  /*書き換え禁止*/


  /*ここから書いてね*/
h1{
  font-size: 34px;
  padding-left: 0;
  margin-top: 80px;
  margin-bottom: 50px; 
}

h1::before {
  width: 15px;
  height: 60px;
  border-radius: 4px;
  clip-path: polygon(
    0 15px,
    100% 0,
    100% 100%,
    0 45px  
  );
}

.left-dot{
  margin-left: 25px;
  margin-right: 10px;
  height: 8px;
  width: calc(10vw - 45px);
  pointer-events: none;
}

.right-dot {
  margin-left: 20px;
  height: 8px;
}








.under-fv-container{
  margin-bottom: 40px;
}

.under-fv{
  width: 110vw;
  left: -5vw;
}







.links {
  flex-direction: row;
  gap: 0;
  width: 90%;
  margin: 0 auto;
}

.link-row {
  display: contents;
}

.link {
  flex: 1 1 20%;
  font-size: 20px;
  padding: 20px;
}

.link + .link::before {
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 2px;
  background-color: #092846;
  border-radius: 9999px;
}

.link:nth-child(4)::before {
  display: block;
}

.link::after {
  margin-top: 9px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #092846;
}

.link:hover::after {
  animation: soft-bounce 1.4s ease-in-out infinite;
}

/* やわらかく上下するアニメーション */
@keyframes soft-bounce {
  0%   { transform: translateY(0); }
  25%  { transform: translateY(6px); }
  50%  { transform: translateY(0); }
  75%  { transform: translateY(6px); }
  100% { transform: translateY(0); }
}

.link:hover span{
  transform: scale(1.2); 
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.story{
  width: 80%;
  margin: 0 auto;
}

.story-text span {
  font-size: 18px;
  line-height: 2.5;
}


.story-deco{
  right: -5%;
  height: 95%;
}







.courses{
  width: 85%;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
  margin: 0 auto;
  justify-content: center;
}


.course{ 
  width: 41%;
  height: auto;
  aspect-ratio: 33 / 20;
}


.course-icon{
  top: 18%;
  left: 12%;
  width: 13%;
}

.course-phrase{
  font-size: 16px;
  top: 18%;
  left: 12%;
}

.course-title{
  font-size: 24px;
  top: 26%;
  left: 12%;
}

.course-info{
  font-size: 16px;
  top: 50%;
  left: 12%;
}

.course-detail{
  font-size: 16px;
}

.detail1{
  bottom: 65%;
  right: 33%;
}

.course-number{
  font-size: 20px;
  margin-right: 5px;
}



.course-line{
  height: 2px;
  border-radius: 4px;
}

.example-btn{
  font-size: 18px;
  gap: 10px;
  top: -1px;
}

.example-btn::before{
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid #fcecde;
  bottom: -1px;
}




/* モーダル全体（背景含む） */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
  display: none;
}



/* モーダルの内容部分 */
.modal-content {
  background-color: #d9c2a5;
  padding-top: 2%;
  width: 85%;
  max-height: 90vh;
  border-radius: 8px;
  position: relative;
}

.close {
  display: none;
}

.close-map{
  display: block;
}

.close-btn {
  padding: 12px 60px;
  margin-bottom: 40px;
  font-size: 16px;
}



.close-btn:hover .btn-background {
  opacity: 0.8; 
}

.tab-buttons label {
  padding: 1em 0.5em;
  font-size: 20px;
  line-height: 1;
  border: 2px solid #c79b4e;
}

.tab-buttons label br{
  display: none;
}

/*ボタンのデコレーション*/
.tab-buttons label span{
  height: 40%;
}

.topleft::after{
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  top: calc(50% - 1.5px);
  left: calc(50% - 1.5px);
}

.topright::after{
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  top: calc(50% - 1.5px);
  left: calc(50% + 1.5px);
}

.bottomleft::after{
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  top: calc(50% + 1.5px);
  left: calc(50% - 1.5px);
}

.bottomright::after{
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  top: calc(50% + 1.5px);
  left: calc(50% + 1.5px);
}



.tab-contents .tab-content {
  padding: 2%;
}


.flexrow{
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5%;
}

.example-img{
  width: 49.3%;
  margin-bottom: 0;
  border: 2px solid #fcecde;
}

.accordion-container{
  flex: 1;
}

.accordion{
  max-width: unset;
  margin-bottom: 1.5%;
}

.accordion summary {
  padding: 1em 1.5em;
  font-size: 19px;
}

.accordion p {
  padding: .1em 2em 1.5em;
  font-size: 16px;
}

.answer{
  font-size: 19px;
}

.accordion-container .accordion:last-child {
  margin-bottom: 0;
}

ruby {
  ruby-position: over;
  font-size: 1em;
}

rt {
  font-size: 0.6em;
  color: #092846;
}






.play-form-wrapper{
  gap: 5%;
}

.play-form{
  width: 12%;
  height: auto;
  aspect-ratio: 1 / 1;
  gap: 7%;
  font-size: 15px;
}

.form-text1{
  font-size: 15px;
}



.play-step{
  margin-top: 15vh;
}

.step-deco{
  width: 400px;
  top: -180px;
  left: -258px;
}

.step-deco2{
  top: -188px;
}

.step-deco3{
  top: -150px;
}

.step-deco4{
  top: -130px;
}

h2{
  padding-left: 200px;
  font-size: 28px;
}

.step-number{
  left: 116px;
  height: 30px;
}

.double-octagon{
  left: 65px;
  width: 100px;
}


.step-text{
  font-size: 17px;
  margin-top: 10px;
  width: 80%;
  padding-left: 75px;
}


.Q1{
  width: 50%;
  margin-top: 40px;
  padding: 2.5%;
}

.Q1stone-left{
  width: 10%;
  top: 84%;
  left: -6%;
}


.Q1frame-top{
  top: 3.8%;
  width: 40%;
}

.Q1frame-bottom{
  top: 96.2%;
  width: 40%;
}


.Q1stone-right{
  width: 10%;
  right: -5px;
  bottom: 5px;
}

.line-button-container {
  width: 30vw;
  height: auto;
  aspect-ratio: 3 / 1;
  margin-top: 40px;
}

.line-button-t {
  transform: translate(-50%, -50%) translate(-10px, -11.6px);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.line-button-b {
  transform: translate(-50%, -50%) translate(10px, 11.6px);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.line-p{
  font-size: 20px;
  gap: 10px;
}

.line-p::after{
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #092846;
  bottom: -1px;
}


.line-effect-res{
  display: block;
}


/* ✨ hover ✨ */
.line-button-container:hover .line-p::after {
  animation: soft-bounce-right 1.4s ease-in-out infinite;
}

/* やわらかく右方向へぴょこぴょこ */
@keyframes soft-bounce-right {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(4px); }
  50%  { transform: translateX(0); }
  75%  { transform: translateX(4px); }
  100% { transform: translateX(0); }
}



.line-effect {
  position: absolute;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.9s ease-out, opacity 0.9s ease-out;
  pointer-events: none;
  z-index: 1;
}


.line-effect1 { width: 12%; top: -5%; right: 5%; }
.line-effect2 { width: 10%; top: 35%; right: -3%; }
.line-effect3 { width: 7%; top: 60%; left: 2%; }
.line-effect4 { width: 8%; top: 82%; left: 9%; }


.line-button-container:hover .line-effect {
  opacity: 1;
}

.line-button-container:hover .line-effect1 {
  transform: translate(-50%, -50%) scale(1.2);
  transition-delay: 0s;
}
.line-button-container:hover .line-effect2 {
  transform: translate(-50%, -50%) scale(1.3);
  transition-delay: 0.1s;
}
.line-button-container:hover .line-effect3 {
  transform: translate(-50%, -50%) scale(1.3);
  transition-delay: 0.2s;
}
.line-button-container:hover .line-effect4 {
  transform: translate(-50%, -50%) scale(1.4);
  transition-delay: 0.3s;
}




.link-to-course{
  width: 25vw;
  margin-top: 40px;
}

.link-to-course-p{
  font-size: 20px;
  gap: 10px;
}

.link-to-course-p::before{
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #092846;
}

.link-to-course-p::after{
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #092846;
}


.link-to-course:hover .link-to-course-p::before,
.link-to-course:hover .link-to-course-p::after {
  animation: soft-bounce-up 1.4s ease-in-out infinite;
}

@keyframes soft-bounce-up {
  0%   { transform: translateY(2px); }
  25%  { transform: translateY(-2px); }
  50%  { transform: translateY(2px); }
  75%  { transform: translateY(-2px); }
  100% { transform: translateY(2px); }
}

.link-to-course:hover .link-to-course-p {
  transform: translate(-50%, -50%) scale(1.1);
}

.illust-container{
  width: 70%;
}

.illust1{
  display: block;
  width: 10%;
  top: 20%;
  left: 0;
}

.illust2{
  position: absolute;
  display: block;
  width: 22%;
  top: 20%;
  left: 21%;
}

.illust3{
  position: absolute;
  display: block;
  width: 13%;
  top: 55%;
  left: 58%;
}

.illust4{
  position: absolute;
  display: block;
  width: 18%;
  top: 24%;
  left: 85%;
}







.reward-info{
  width: 80%;
  font-size: 17px;
  margin-top: -20px;
}


.wallpaper{
  width: 50%;
}



.wp-e1 {
  width: 61px;
  top: -8%;
  left: 22%;
}

.wp-e2 {
  width: 59px;
  top: 15%;
  left: 83%;
}

.wp-e3 {
  width: 48px;
  top: 17%;
  left: 12%;
}

.wp-e4 {
  width: 44px;
  top: 74%;
  left: 81%;
}

.wp-e5 {
  width: 76px;
  top: 74%;
  left: 23%;
}

.wp-e6 {
  width: 153px;
  top: -4%;
  left: 82%;
}

.wp-e7 {
  width: 102px;
  top: 9%;
  left: 4%;
}

.wp-e8 {
  width: 121px;
  top: 78%;
  left: 15%;
}

.wp-e9 {
  width: 98px;
  top: 72%;
  left: 74%;
}

.wp-e-res{
  display: block;
}






.attention-wrapper{
  padding-bottom: 40px;
}

.attention-list{
  width: 80%;
  font-size: 17px;
  margin-top: -20px;
}

.attention-list li {
  margin-bottom: 1em;
  position: relative;
  padding-left: 1.2em;
}

.attention-list li::before {
  content: "・";
  position: absolute;
  left: 0;
}

.map-modal {
  padding-top: 20px;
  width: 455px;
  aspect-ratio: 21 / 19.5;
}
.map-img{
  width: 89%;
  position: absolute;
  top: calc(50% + 14px);
  left: 50%;
  transform: translate(-50%, -50%);
}




}











@media (min-width: 1024px) and (max-width: 1279px){
.course-phrase, .course-detail, .course-info, .example-btn{
  font-size: 14px;
}

.course-title{
  font-size: 17px;
}

.course-number{
  font-size: 15px;
}

.course-line{
  height: 1px;
}

.tab-buttons label {
  font-size: 17px;
}



.example-btn{
  gap: 6px;
}

.form-text,.form-text1{
  font-size: 12px;
}

.step-text{
  padding-left: 90px;
}

.line-button-t {
  transform: translate(-50%, -50%) translate(-5px, -5.8px);
}

.line-button-b {
  transform: translate(-50%, -50%) translate(5px, 5.8px);
}

.line-p{
  font-size: 15px;
  gap: 7px;
}

.line-p::after{
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #092846;
}

.line-p{
  font-size: 15px;
  gap: 7px;
}


.link-to-course-p{
  font-size: 14px;
  gap: 10px;
}

.link-to-course-p::before{
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #092846;
}

.link-to-course-p::after{
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #092846;
}


}
