@charset "utf-8";
/* CSS Document */
/* 過去10年の倍率ページページのCSS */

/* ------------------------------------------
  過去10年の倍率トップページ
------------------------------------------ */
.jyuken_bairitsu_box,.bairitsu_search,.gakku,.aiueo {
  margin: 15px auto;
}

@media (min-width:768px) {
  .jyuken_bairitsu_box,.bairitsu_search,.gakku,.aiueo {
    margin: 30px auto;
  }
}

.jyuken_top_title h1 {
  font-size: 25px;
  color: #002f7b;
  font-weight: 600;
  margin-top: 30px;
}

@media (min-width: 540px) {
  .jyuken_top_title h1 {
    font-size: 31px;
  }
}

h1 .pay{
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36"><defs><style>.cls-1{fill:%238e8e8e;}</style></defs><path class="cls-1" d="M26.03,30.08H9.97c-1.59,0-2.89-1.3-2.89-2.89v-9.87c0-1.59,1.3-2.89,2.89-2.89H26.03c1.59,0,2.89,1.3,2.89,2.89v9.87c0,1.59-1.3,2.89-2.89,2.89ZM9.97,16.43c-.49,0-.89,.4-.89,.89v9.87c0,.49,.4,.89,.89,.89H26.03c.49,0,.89-.4,.89-.89v-9.87c0-.49-.4-.89-.89-.89H9.97Z"/><path class="cls-1" d="M25.87,15.13h-2.5v-1.33c0-2.97-2.42-5.39-5.39-5.39s-5.39,2.42-5.39,5.39v1.27h-2.5v-1.27c0-4.35,3.54-7.89,7.89-7.89s7.89,3.54,7.89,7.89v1.33Z"/><path class="cls-1" d="M18.99,23.05v2.48h-1.85v-2.48c-.75-.35-1.28-1.11-1.28-1.99,0-1.22,.99-2.2,2.2-2.2s2.2,.99,2.2,2.2c0,.89-.53,1.64-1.28,1.99Z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  margin-left: 10px;
}

/* 選択ボタン共通装飾（挙動はjsにて制御） */

.select_btn {
  display: flex;
  justify-content: center;
  gap: 3%;
  max-width: 930px;
  margin: 0 auto;
}

.bairitsu_select {
  width: 100%;
  border: 1px solid #002F7B;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
}

.bairitsu_select p {
  color: #002F7B;
  font-weight: bold;
  padding: 15px;
}

.bairitsu_select.is-current {
  background-color: #002F7B;
}

.bairitsu_select.is-current p {
  color: #fff;
}

@media (min-width:768px) {
  .bairitsu_select {
      font-size: 18px;
  }
  .bairitsu_select p {
  padding: 20px;
  }
}

/* cssタブ共通装飾 */
.search_list{
  color: #002F7B;
  padding: 15px;
  text-align: center;
  cursor: pointer;
}

@media (min-width:768px) {
  .search_list{
    font-size: 18px;
    text-align: start;
  }
}

@media (min-width:827px) {
  .search_list{
    padding: 15px 20px;
  }
}

.school_list{
  border-top: 2px solid #D8EDF8;
  padding: 40px 0 70px;
}

.school_list li a{
  color: #002F7B;
}

/*cssタブ共通表示*/
.tab-menu{
  display: none;
}

.tab-menu.is-active {
  display: flex;
  flex-wrap: wrap;
}

.tab-menu > label {
  flex: 1;
  order: -1;
}

@media (min-width:768px) {
  .tab-menu > label {
    flex: none;
  }
}

.tab-menu > label:hover {
  background-color: #D8EDF8;
}

.tab-menu input {
  display: none;
}

.tab-menu > .school_list {
  display: none;
  width: 100%;
}

.tab-menu label:has(:checked) {
  background-color: #D8EDF8;
}

.tab-menu label:has(:checked) + .school_list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (min-width:522px) {
    .tab-menu label:has(:checked) + .school_list{
        grid-template-columns: 1fr 1fr 1fr ;
    }
}

@media (min-width:768px) {
    .tab-menu label:has(:checked) + .school_list{
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

/* 学区でさがす */
@media (min-width:768px) {
  .gakku_item .sp-display{
    display: none;
  }
}

/* 五十音順でさがす */
.aiueo.tab-menu > label {
  flex: none;
  width: 20%;
}

@media (min-width:768px) {
  .aiueo.tab-menu > label {
    width: auto;
  }
}

/* アニメーションベースクラス */
.school_list {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

/* 表示状態 */
.school_list.is-visible {
  max-height: 1000px; /* 十分大きく。必要に応じて調整可 */
  opacity: 1;
}

/* NEXT申し込みボタン */

.btn_wrap {
	margin: 60px auto;
}
.next-apply_box .demo_text {
	color: #ff5c5c;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 18px;
    letter-spacing: .5px;
    text-align: center;
}
.next-apply_box ul {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 30px;
	align-items: center;
}
.next-apply_box ul li {
	padding: 25px;
	box-shadow: 0px 0px 14px #c9c9c978;
	border-radius: 5px;
	width: min(100%, 300px);
	aspect-ratio: 1/1;
	background: #fff;
}

.next-apply_box .course {
	font-size: 17px;
	color: #626262;
	font-weight: 800;
	line-height: 1.18;
	margin-bottom: 10px;
}

.next-apply_box .plan {
	font-size: 26px;
	font-weight: 800;
	color: #626262;
	line-height: 1.19;
	margin-bottom: 10px;
}
.next-apply_box .per {
	font-size: 12px;
	line-height: 1.2;
	margin-bottom: 25px;
}


.next-apply_box .price__wrap {
	display: grid;
	place-items: center;
}

.next-apply_box ul li:first-child .merit span {
	width: 18px;
	height: 20px;
	background-image: url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36"><defs><style>.cls-1{fill:%238e8e8e;}</style></defs><path class="cls-1" d="M26.03,30.08H9.97c-1.59,0-2.89-1.3-2.89-2.89v-9.87c0-1.59,1.3-2.89,2.89-2.89H26.03c1.59,0,2.89,1.3,2.89,2.89v9.87c0,1.59-1.3,2.89-2.89,2.89ZM9.97,16.43c-.49,0-.89,.4-.89,.89v9.87c0,.49,.4,.89,.89,.89H26.03c.49,0,.89-.4,.89-.89v-9.87c0-.49-.4-.89-.89-.89H9.97Z"/><path class="cls-1" d="M25.87,15.13h-2.5v-1.33c0-2.97-2.42-5.39-5.39-5.39s-5.39,2.42-5.39,5.39v1.27h-2.5v-1.27c0-4.35,3.54-7.89,7.89-7.89s7.89,3.54,7.89,7.89v1.33Z"/><path class="cls-1" d="M18.99,23.05v2.48h-1.85v-2.48c-.75-.35-1.28-1.11-1.28-1.99,0-1.22,.99-2.2,2.2-2.2s2.2,.99,2.2,2.2c0,.89-.53,1.64-1.28,1.99Z"/></svg>');
	background-size: contain;
	background-repeat: no-repeat;
	display: inline-block;
}
	
.next-apply_box .merit {
	font-size: 14px;
	line-height: 1.2;
	font-weight: 700;
	margin-bottom: 15px;
	display: flex;
	gap: 2px;
	align-items: center;
	position: relative;
}
.next-apply_box .merit::before,
.next-apply_box .merit::after {
	content:"｜";
	font-size: 1em;
}
.next-apply_box .merit::before {
	transform: rotate(-30deg);
}

.next-apply_box .merit::after {
	transform: rotate(30deg);
}

.next-apply_box .price {
	font-size: 12px;
	margin-bottom: 25px;
	letter-spacing: 1px;
	position: relative;
}
.annual-plan .price::before {
	content:"あたり";
	font-size: 10px;
	position: absolute;
	bottom: -13px;
	right: -17px;
	letter-spacing: 1px;
}
.next-apply_box .price span {
	font-size: 48px;
	font-weight: 800;
	margin-right: 5px;
}
.next-apply_box .annual-plan .price span {
	color: #FF5C5C;
}

.next-apply_btn {
	font-size: 15px;
	letter-spacing: 2px;
	line-height: 1.2;
	text-align: center;
	border-radius: 5px;
	background: linear-gradient(90deg, rgb(52 113 214), rgb(46 160 255) 95%);
	transition: 0.3s;
	position: relative;
	overflow: hidden;
	display: inline-block;
	font-weight: 800;
	width: 100%;
	padding: 17px 5px;
}
.annual-plan .next-apply_btn {
	background: linear-gradient(90deg, rgb(255 92 92), rgb(245 156 102) 95%);
}
.next-apply_btn:hover {
	opacity: 1;
	background:#a2a2a2;
}

.shine-anim::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -20%;
    width: 40px;
    height: 100%;
    transform: scale(2) rotate(20deg);
    background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, .5) 100%, rgba(255, 255, 255, 0) 0%);
    animation: shine 3s ease-in-out infinite;
}
@keyframes shine {
    0% { left: -20%; }
    10% { left: 120%; }
    100% { left: 120%; }
}


@media (min-width: 768px) {
	.next-apply_box ul {
		flex-direction: row;
		gap: min(2vw, 30px);
	}
	.next-apply_box ul li {
		padding: min(2.6041vw, 25px);
	}
	.next-apply_box .course {
		font-size: min(2vw, 16px)
	}
	.next-apply_box .plan {
		font-size: min(3vw, 26px);
	}
	.next-apply_box .price span {
		font-size: min(5vw, 48px);
	}
	.next-apply_box .merit {
		font-size: min(1.5625vw, 14px);
	}
}

/* 倍率グラフの見方 */

.jyuken_bairitsu_box h3{
    color: #002f7b;
    padding-left: 42px;
    position: relative;
    font-weight: 600;
    padding-bottom: 22px;
}

.bairitsu_title{
    font-size: min(12vw, 21px);
}

.jyuken_bairitsu_box h3::before{
    background-image: url(../img/denkyu-icon.png);
    content: "";
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    width: 40px;
    height: 40px;
    top: 0;
    left: 0;
    transform: translateY(-50%);
    display: inline-block;
}

.howto-bairitsu img{
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}
@media (min-width:768px) {
    .jyuken_bairitsu_box h3{
        padding-bottom: 30px;
    }
    .howto-bairitsu img{
        width: 80%;
        max-width: 750px;
    }
}

.howto-text{
  background: #D8EDF8;
  margin-top: 40px;
}
.howto-text__list{
  padding: 20px 3%;
  margin: 0 auto;
  font-size: clamp(0.875rem, 0.83rem + 0.23vw, 1rem);
}
.howto-attention{
  padding: 20px 3%;
  font-size: 0.875rem;
}
.howto-bairitsu li,.howto-bairitsu p{
  line-height: 1.5;
}

.howto-text__item{
  margin-bottom: 20px;
}
.howto-text__item:last-child{
  margin-bottom: 0;
}
.howto-text__item ul{
  font-size: 0.875rem;
  margin-top: 10px;
}

.hidden{
  display: none;
}