
@charset "UTF-8";

/* common */


body.tomas-home{

font-feature-settings: "palt"; 

font-family: 'Zen Kaku Gothic New' , 'Yu Gothic' , sans-serif;
margin:8px auto 0 auto;
min-width:1200px;
 overflow-y: scroll;
}

body.tomas-home * {
box-sizing: border-box;
}


body.tomas-home a{
text-decoration:none;
}


@media(max-width:1023px){

body.tomas-home{
font-family: 'Zen Kaku Gothic New' , 'Yu Gothic' , sans-serif;
margin:0 auto 0 auto;
min-width:768px;
overflow-x:hidden;
}

}


@media(max-width:767px){
body.tomas-home{
margin:0 auto 0 auto;
min-width:0;
overflow-x:hidden;
}

}



/*main*/



main{
width:100%;
overflow:hidden;
}

main * {
box-sizing: border-box;
}




/*       スライド下学年一覧               */

main #top-category_link{
display:block;
overflow:hidden;
}


main #top-category_link ul{
list-style:none;
margin:6px auto 0 auto;
padding:0;
text-align:center;
display: flex;
flex-wrap: wrap;
max-width:1100px;
}

main #top-category_link ul li a{
  position: relative; 
  padding: 0;
  display: block;
  width: 235px;
  height: 352px;
  margin: 20px;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
}

main #top-category_link ul li a h2 {
  font-size:24px;
  margin: 1em 0 calc( 1em - 8px) 0;
  letter-spacing:0.08em;
  line-height:1.4em;
  font-weight:600;
  color:#464344;
  width: 100%;
  box-sizing: border-box;
}



main #top-category_link ul li a h2::after{
display:block;
overflow:hidden;
margin-top:calc(1em);
width:235px;
height:140px;
background-repeat:no-repeat;
background-position:center;
background-size: 100% , 100%;
    transform: translateZ(0); 
    will-change: background-size;
content:"";
transition: background-size 0.4s ease;
}

main #top-category_link ul li a:hover h2::after{
background-size:108%, 108%;
}



/*外枠*/


main #top-category_link ul li a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 8px solid rgba(70, 68, 67, 0.12); /**/
  border-radius: 8px;
  pointer-events: none;
  z-index: 10;
transition: border-color 0.6s ease;
}


/*学年別画像・カラー*/

main #top-category_link ul li.course-elementary a h2::after{
background-image:url("../../assets/img/common/nav_ele.jpg");
box-shadow: inset 0 0 9vw 0 rgba(62, 184, 235, 0.08); 
}

main #top-category_link ul li.course-elementary a h2 strong{
font-weight:600;
color:#3EB8EB;
}

main #top-category_link ul li.course-elementary a::after {
  border-color: rgba(58, 173, 220, 0.16);
}


main #top-category_link ul li.course-junior a h2::after{
background-image:url("../../assets/img/common/nav_jun.jpg");
box-shadow: inset 0 0 6vw 0 rgba(127, 190, 37, 0.07); 
}

main #top-category_link ul li.course-junior a h2 strong{
font-weight:600;
color:#7FBE25;
}

main #top-category_link ul li.course-junior a::after {
  border-color: rgba(124, 182, 45, 0.16);
}


main #top-category_link ul li.course-senior a h2::after{
background-image:url("../../assets/img/common/nav_sen.jpg");
box-shadow: inset 0 0 10vw 0 rgba(235, 109, 154, 0.10); 
}

main #top-category_link ul li.course-senior a h2 strong{
font-weight:600;
color:#EB6D9A;
}

main #top-category_link ul li.course-senior a::after {
  border-color:  rgba(221, 105, 147, 0.16);
}


main #top-category_link ul li.course-medic a h2::after{
background-image:url("../../assets/img/common/nav_med.jpg");
box-shadow: inset 0 0 6vw 0 rgba(17, 104, 179, 0.10); 
}

main #top-category_link ul li.course-medic a h2 strong{
font-weight:600;
color:#1168AB;
}

main #top-category_link ul li.course-medic a::after {
  border-color: rgba(17, 104, 171, 0.16);
}


/*hover*/

main #top-category_link ul li.course-elementary a:hover::after {
  border-color: rgba(58, 173, 220, 0.64);
}


main #top-category_link ul li.course-junior a:hover::after {
  border-color:  rgba(124, 182, 45, 0.64);
}



main #top-category_link ul li.course-senior a:hover::after {
  border-color:  rgba(221, 105, 147, 0.64);
}

main #top-category_link ul li.course-medic a:hover::after {
  border-color:  rgba(17, 104, 171, 0.64);
}



main #top-category_link ul li p {
  font-weight:500;
  font-size:16px;
  line-height:1.6em;
  letter-spacing:0.04em;
  color:#464344;
  margin: 1.2em 0 0 0;
  padding:0;
}

main #top-category_link .course-other {
display:block;
overflow:hidden;
text-align:center;
}

main #top-category_link .course-other a{
display:inline-block;
margin:18px;
width:510px;
height:116px;
box-sizing: border-box;
border:2px solid rgba(70, 68, 67, 0.12); /**/
border-radius:8px;
text-align:left;
line-height: 100px;
transition: border-color 0.4s ease;
}

main #top-category_link .course-other a h2{
display:inline-block;
margin:0;
padding:0 0 0 1em;
width:calc(50% - 4px);
text-align:center;
vertical-align: middle;
font-size:20px;
}

main #top-category_link .course-other a h2 img{
display:inline-block;
line-height: 116px;
vertical-align: middle;
opacity:1;
transition: opacity 0.4s ease;
}



main #top-category_link .course-other a p{
display:inline-block;
margin:0;
padding:0.2em 0 0 0.5em;
width:calc(50% - 4px);
vertical-align: middle;
font-size:20px;
color:#464344;
letter-spacing:0.08em;
line-height: 1.4em;
font-weight:500;
opacity:1;
transition: opacity 0.4s ease;
}


main #top-category_link .course-other a:hover{
border:2px solid rgba(70, 68, 67, 0.48 );
}


main #top-category_link .course-other a:hover h2 img{
opacity:0.6
}



main #top-category_link .course-other a:hover p{
opacity:0.6
}




/*　768-1023px */

@media(max-width:1023px){


main #top-category_link ul{
width:calc(100% - 80px);
margin:1.75vw 40px 1.75vw 40px;
text-align:center;
justify-content: space-between;
}

main #top-category_link ul li{
display:block;
width: calc((25% - 14px) - (100vw - 768px) * 0.040118);
margin:0;
padding:0;
}



main #top-category_link ul li a{
  position: relative; 
  padding: 0;
  display: block;
  width: 100%;
  height:31vw;
  margin: 0;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
}
main #top-category_link ul li a::after{
border-width: 0.8vw;
}


main #top-category_link ul li a h2 {
  font-size:2vw;
  margin: 1.25em 0 0.75em 0;
  letter-spacing:0.08em;
  line-height:1.4em;
  font-weight:600;
  color:#464344;
  width: 100%;
  box-sizing: border-box;
}


main #top-category_link .course-other a h2 img{
display:inline-block;
line-height: 12.3vw;
vertical-align: middle;
opacity:1;
transition: opacity 0.3s ease;
}


main #top-category_link ul li a h2::after{
width: 100%;
height:12.3vw;
}

main #top-category_link ul li a:hover h2::after{
background-size:110%, 110%;
}





main #top-category_link ul li p {
  font-size:1.37vw;
}




main #top-category_link .course-other{
display:flex;
width:calc(100% - 80px);
margin:3vw 40px 1vw 40px;
text-align:center;
justify-content: space-between;
overflow:hidden;
}

main #top-category_link .course-other a{
display:inline-block;
width: calc((50% - 8px) - (100vw - 768px) * 0.040118);
height: 10.26vw;
line-height: 9.5vw;
box-sizing: border-box;
padding:0;
margin:0;
vertical-align: middle;
}




main #top-category_link .course-other a h2{
display:inline-block;
font-size:1.75vw;
height: 10.26vw;
line-height:  9.5vw;
padding-left:0.25em;
}

main #top-category_link .course-other a h2 img{
display:inline-block;
height:  4.25vw;
line-height:  9.5vw;
vertical-align: middle;
opacity:1;
transition: opacity 0.3s ease;
}



main #top-category_link .course-other a p{
font-size:1.75vw;
padding-top:0.1em;
}


}


/* -767px */

@media(max-width:767px){


main #top-category_link ul{
width:100%;
margin:0 0 0 0;
padding:3.6vw 5.3vw 2.3vw 5.3vw;
overflow:hidden;
}


main #top-category_link ul li{
display:block;
width:calc(50% - 2.15vw);
margin:2.6vw 0 3.6vw 0;
}



main #top-category_link ul li a{
  width: 100%;
  height:62vw;
}

main #top-category_link ul li a::after{
border-width:1.34vw;
}

main #top-category_link ul li a h2 {
  font-size:4.3vw;
  margin: 1em 0 0.5em 0;
  line-height:1.5em;
}


main #top-category_link .course-other a h2 img{
display:inline-block;
line-height: 25vw;
vertical-align: middle;
opacity:1;
transition: opacity 0.3s ease;
}

main #top-category_link ul li a h2::after{
width: 100%;
height:25vw;
margin-top:3.2vw;
}

main #top-category_link ul li a:hover h2::after{
background-size:110%, 110%;
}



main #top-category_link ul li p {
font-size:3.2vw;
line-height:1.5em;
text-align:left;
padding-left:1.25em;
margin-top:1em;

}




main #top-category_link .course-other{
display:flex;
width:100%;
margin:0;
padding:0.3vw 5.3vw 2.7vw 5.3vw;
}

main #top-category_link .course-other a{
display:inline-block;
width:calc((50% - 2.65vw));
height: 36vw;
box-sizing: border-box;
padding:0;
margin:0;
vertical-align: middle;
}




main #top-category_link .course-other a h2{
display:block;
width:100%;
font-size:1.75vw;
padding:0;
height: 18.7vw;
line-height:  18.7vw;
border-bottom:1px solid rgba(70,68,67,0.16);
}

main #top-category_link .course-other a h2 img{
display:inline-block;
height:  9.5vw;
line-height:  9.5vw;
vertical-align: middle;
opacity:1;
transition: opacity 0.3s ease;
}



main #top-category_link .course-other a p{
width:100%;
font-size:3.2vw;
padding:1em;
}



}


/* スライド下ここまで */



/* お近くのTOMAS校舎 */

main #top-classroom-info{
background:rgba(70,68,67,0.08);
margin-top:51px;
padding-top:51px;
padding-bottom:0px;
overflow:hidden;
}



main #top-classroom-info h2{
font-size:32px;
font-weight:700;
line-height:1.4em;
letter-spacing:0.1em;
text-align:center;
padding:0;
margin:0;
}

main #top-classroom-info h2 a::before{
display:block;
height:54px;
margin-bottom:0.5em;
content:"";
background-image:url("../../assets/img/common/school_location_icon.svg");
background-position: center;
background-size: contain;
background-repeat:no-repeat;
}

main #top-classroom-info h2 a{
display:inline-block;
color:#464344;
transition: opacity 0.2s ease;
}

main #top-classroom-info h2 a:hover{
opacity:0.6;
}



main #top-classroom-info h2 + p{
font-size:16px;
text-align:center;
font-weight:500;
color:#464344;
letter-spacing:0.1em;
margin:0.75em;
line-height:1.2em;
padding:0;
}

main #top-classroom-info .search-class{
display:none;
}

main #top-classroom-info ul.classroom-pref{
list-style:none;
margin:20px auto 0 auto;
padding:0;
text-align:center;
display: flex;
flex-wrap: wrap;
max-width:1100px;
}

main #top-classroom-info ul.classroom-pref li a{
  position: relative; 
  padding: 0;
  display: block;
  width: 235px;
  height: 98px;
  margin: 20px 20px 18px 20px;
  line-height:98px;
  font-size:20px;
  font-weight:bold;
  color:#464344;
  letter-spacing:0.08em;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: hidden;
  background-color: #fff;
  transition: color 0.6s ease , background-color 0.6s ease ;
}

main #top-classroom-info ul.classroom-pref li a::after{
  content: "";
  width:24px;
  height:24px;
  position: absolute;
  top: 14px;
  left: 14px;
  background-image:url("../../assets/img/common/loupe.svg");
  background-repeat:no-repeat;
  background-size:24.0px 24.0px;
  background-position: center;
  transition: transform 0.4s ease;
}

main #top-classroom-info ul.classroom-pref li a:hover{
  color:rgba(70,68,67,0.65);
  background-color:rgba(255,255,255,0.65);
}

main #top-classroom-info ul.classroom-pref li a:hover::after{
  transform: scale(1.2);
}

main #top-classroom-info ul.classroom-news{
list-style:none;
margin:0 auto 0 auto;
padding:0;
text-align:left;
display: block;
max-width:1100px;
}

main #top-classroom-info ul.classroom-news li{
display:inline-block;
vertical-align: middle;
}

main #top-classroom-info ul.classroom-news li a{
display:inline-block;
width:515px;
background:#fff;
height:60px;
border-radius:32px;
margin:20px 16px 10px 16px;
transition: opacity 0.4s ease ;
vertical-align: middle;

}

main #top-classroom-info ul.classroom-news li a:hover{
opacity:0.7;
}



main #top-classroom-info ul.classroom-news li a span.class-open{
display:inline-block;
width:126px;
text-align:center;
background:#B7212B;
height:36px;
border-radius:32px;
margin:12px 14px 12px 16px;
line-height:1;
padding:11px 14px 11px 14px;
font-size:14px;
letter-spacing:0.08em;
color:#fff;
font-weight:500;
vertical-align: middle;
}

main #top-classroom-info ul.classroom-news li a span.class-date{
display:inline-block;
color:#B7212B;
font-size:16px;
letter-spacing:0.04em;
margin-right:1em;
font-weight:700;
vertical-align: middle;

}

main #top-classroom-info ul.classroom-news li a span.class-name{
display:inline-block;
color:#464344;
font-size:20px;
letter-spacing:0.04em;
margin-right:1.75em;
font-weight:500;
vertical-align: middle;

}


/* nagareyama */

main #top-classroom-info ul.classroom-news li a span.class-open.class-small{
font-size:11px;
padding:12px 14px 12px 14px;
}

main #top-classroom-info ul.classroom-news li a span.class-name.class-small{
font-size:17px;
}


main #top-classroom-info div.common-link-button{
margin-bottom:40px;
}




/* 768-1023 */

@media(max-width:1023px){


main #top-classroom-info{
background:rgba(70,68,67,0.08);
margin-top:55px;
padding-top:47px;
overflow:hidden;
}

main #top-classroom-info h2{
font-size:28px;
}

main #top-classroom-info h2+p{
margin-bottom:0.5em;
}

main #top-classroom-info h2 a::before{
display:block;
height:55px;
margin-bottom:0.6em;
}


main #top-classroom-info ul.classroom-pref{
max-width:768px;
display:block;
}

main #top-classroom-info ul.classroom-pref li{
display:inline-block;
}

main #top-classroom-info ul.classroom-pref li a{
  position: relative; 
  padding: 0;
  display: block;
  width: 328px;
  height: 96px;
 margin:13px 13px 13px 13px;
}


main #top-classroom-info ul.classroom-news{
max-width:728px;
}


main #top-classroom-info ul.classroom-news li {
display:block;
width: 94.5%;
}



main #top-classroom-info ul.classroom-news li a span.class-open {
    display: inline-block;
    width: 170px;
    text-align: center;
    background: #B7212B;
    height: 36px;
    border-radius: 32px;
    margin: 12px 14px 12px 16px;
    line-height: 1;
    padding: 11px 24px 11px 24px;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: #fff;
    font-weight: 500;
    vertical-align: middle;
}


main #top-classroom-info ul.classroom-news li a span.class-open.class-small {
    font-size: 14px;
    padding: 11px 14px 11px 14px;
}

main #top-classroom-info ul.classroom-news li a{
display:block;
margin:14px 0 10px 20px;
transition: opacity 0.3s ease ;
vertical-align: middle;
width: 100%;
}


main #top-classroom-info ul.classroom-news li a span.class-name.class-small {
    font-size: 20px;
}


main #top-classroom-info div.common-link-button{
padding-top:27px;
margin-bottom:25px;
}



}




@media(max-width:767px){

main #top-classroom-info{
padding:40vw 0 3.7vw 0;
margin-top:4.3vw;
text-align:center;
justify-content: space-between;

}
main #top-classroom-info h2{
padding:4.5vw 5.3vw 5.3vw 5.3vw;
margin:0;
}

main #top-classroom-info h2 a{
  position: relative; 
  padding: 0;
  display: block;
  width: 100%;
  height:19.2vw;
  margin-top: 2.7vw;
  line-height:19.2vw;
  font-size:4.2vw;
  font-weight:700;
  color:#fff;
  letter-spacing:0.08em;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: hidden;
  background-color: #464344;
  background-image:url("../../assets/img/common/loupe-w.svg");
  background-repeat:no-repeat;
  background-size:5.3vw 5.3vw;
  background-position:3.5vw 3.5vw;
}

main #top-classroom-info h2 a::before{
display:none;
}

main #top-classroom-info h2 a:hover{
opacity:0.7;
}


main #top-classroom-info h2 + p{
margin:-62vw 0 26.5vw 0;
font-size:6.4vw;
font-weight:700;
color:#464344;
letter-spacing:0.1em;
line-height:1.4em;
padding:0;
}

main #top-classroom-info h2 + p span{
display:inline-block;
}

main #top-classroom-info h2 + p::before{
display:block;
height:11.7vw;
margin-bottom:0.33em;
content:"";
background-image:url("../../assets/img/common/school_location_icon.svg");
background-position: center;
background-size: contain;
background-repeat:no-repeat;
}




main #top-classroom-info div.search-class{
display:block;
padding:1.6vw 5.3vw 6.6vw 5.3vw;
margin:0;
}

main #top-classroom-info div.search-class a{
  position: relative; 
  padding: 0;
  background:#B7212B;
  display: block;
  width: 100%;
  height:19.2vw;
  margin-top:0;
  line-height:19.2vw;
  padding-left:0;
  font-size:4.2vw;
  font-weight:700;
  color:#fff;
  letter-spacing:0.08em;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: hidden;
}

main #top-classroom-info div.search-class a::before{
display:inline-block;
height:7.5vw;
width:5.34vw;
margin-bottom:-0.5em;
margin-right:0.75em;
content:"";
background-image:url("../../assets/img/common/search-class.svg");
background-position: center;
background-size: contain;
background-repeat:no-repeat;

}



main #top-classroom-info ul.classroom-pref{
width:100%;
display:flex;
 margin:2.65vw;
}

main #top-classroom-info ul.classroom-pref li{
  width:42vw;
  margin:1.75vw 2.65vw 0 2.65vw;
}

main #top-classroom-info ul.classroom-pref li a{
  width:100%;
  height:19.2vw;
  margin:1.75vw 0 1vw 0;
  line-height:19.2vw;
  font-size:4.2vw;
  font-weight:700;
  background-size:5.3vw 5.3vw;
  background-position:3.5vw 3.5vw;
}

main #top-classroom-info ul.classroom-pref li a:hover{
  background-size:5.3vw 5.3vw;
  background-position:3.5vw 3.5vw;
}




main #top-classroom-info ul.classroom-news{
margin:0 5.3vw 0 5.3vw;
overflow:hidden;
}

main #top-classroom-info ul.classroom-news li{
display:inline-block;
width:100%;
vertical-align: middle;
}

main #top-classroom-info ul.classroom-news li a{
display:block;
width:100%;
background:#fff;
height:15.4vw;
line-height:15.4vw;
border-radius:15.4vw;
margin:2vw 0 2vw 0;
vertical-align: middle;
overflow:hidden;
}

main #top-classroom-info ul.classroom-news li a span.class-open{
display:inline-block;
background:#B7212B;
height:8.5vw;
width:30vw;
text-align:center;
padding:2.5vw 0 2.5vw 0;
margin:2vw 3.2vw 2vw 3.2vw;
border-radius:8.5vw;
line-height:1;
font-size:3.2vw;
color:#fff;
font-weight:700;
vertical-align:top;
margin-top:3.45vw;
}

main #top-classroom-info ul.classroom-news li a span.class-date{
display:inline-block;
color:#B7212B;
font-size:3.7vw;
line-height:3.7vw;
font-weight:700;
vertical-align: top;
margin-top:3vw;
}

main #top-classroom-info ul.classroom-news li a span.class-name{
display:inline-block;
font-size:4.2vw;
line-height:4.2vw;
font-weight:500;
vertical-align: top;
margin-top:8vw;
margin-left:-23vw;
margin-right:0;
}


/* nagareyama */


main #top-classroom-info ul.classroom-news li a span.class-open.class-small{
line-height:3.2vw;
font-size:2.6vw;
padding:2.6vw 0 2.5vw 0;
letter-spacing:0;
}

main #top-classroom-info ul.classroom-news li a span.class-name.class-small{
display:inline-block;
font-size:3.6vw;
line-height:3vw;
margin-top:8.5vw;
}


}







/* ピックアップイベント */

main #top-pickup-info{
background:#fff;
margin-top:40px;
padding:14px 20px 15px 20px;
overflow:hidden;
}

main #top-pickup-info h2{
font-size:32px;
font-weight:700;
line-height:1.4em;
letter-spacing:0.1em;
text-align:center;
padding:0;
margin:0 0 40px 0;
}

main #top-pickup-info h2 a::before{
display:block;
height:48px;
margin-bottom:0.5em;
content:"";
background-image:url("../../assets/img/common/pickup_icon.svg");
background-position: center;
background-size: contain;
background-repeat:no-repeat;
}

main #top-pickup-info h2 a{
display:inline-block;
color:#464344;
transition: opacity 0.2s ease;
}

main #top-pickup-info h2 a:hover{
opacity:0.6;
}



main #top-pickup-info .banner-100{
max-width:1060px;
margin:30px auto 30px auto;
overflow:hidden;
}

main #top-pickup-info .banner-100 a{
transition: opacity 0.4s ease;
}

main #top-pickup-info .banner-100 a img{
width:100%;
border-radius:8px;
}

main #top-pickup-info .banner-100 a:hover{
opacity:0.7;
}




main #top-pickup-info .banner-50{
display: flex;
flex-wrap: wrap;
justify-content: space-between; 
max-width:1060px;
margin:30px auto 30px auto;
overflow:hidden;
}

main #top-pickup-info .banner-50 a{
width:calc((100% - 30px) / 2 );
display:inline-block;
transition: opacity 0.4s ease;
}

main #top-pickup-info .banner-50 a img{
width:100%;
border-radius:8px;
}

main #top-pickup-info .banner-50 a:hover{
opacity:0.7;
}



main #top-pickup-info .common-link-button{
margin-top:-24px;
margin-bottom:-10px;
}



/* -1023px */

@media(max-width:1024px){

main #top-pickup-info{
background:#fff;
margin-top:48px;
padding:0 20px 0 20px;
overflow:hidden;
}

main #top-pickup-info h2{
font-size:28px;
font-weight:700;
line-height:1.4em;
letter-spacing:0.1em;
text-align:center;
padding:0;
margin:0 0 38px 0;
}

main #top-pickup-info h2 a::before{
display:block;
height:48px;
margin-bottom:16px;
}

main #top-pickup-info h2 a{
display:inline-block;
color:#464344;
transition: opacity 0.2s ease;
}

main #top-pickup-info h2 a:hover{
opacity:0.6;
}




main #top-pickup-info .banner-100{
margin:20px 20px 20px 20px;
}

main #top-pickup-info .banner-100 a{
transition: opacity 0.2s ease;
}

main #top-pickup-info .banner-100 a img{
width:100%;
border-radius:8px;
}

main #top-pickup-info .banner-100 a:hover{
opacity:0.7;
}




main #top-pickup-info .banner-50{
margin:20px 20px 20px 20px;
}

main #top-pickup-info .banner-50 a{
width:calc((100% - 30px) / 2 );
display:inline-block;
transition: opacity 0.2s ease;
}

main #top-pickup-info .banner-50 a img{
width:100%;
border-radius:8px;
}

main #top-pickup-info .banner-50 a:hover{
opacity:0.7;
}



main #top-pickup-info .common-link-button{
margin-top:0px;
margin-bottom:3px;
padding-top:16px;
}




}


/*767px*/


@media(max-width:767px){


main #top-pickup-info{
background:#fff;
margin-top:4.3vw;
padding-top:4.3vw;
padding-left:0;
padding-right:0;
overflow:hidden;
}

main #top-pickup-info h2{
font-size:6.4vw;
margin-bottom:6.4vw;
}
main #top-pickup-info h2 a::before{
height:10.1vw;
margin-bottom:2.2vw;
}

main #top-pickup-info .banner-100{
margin:5.3vw;
}

main #top-pickup-info .banner-50{
display:block;
margin:5.3vw 5.3vw 0 5.3vw;
}

main #top-pickup-info .banner-50 a{
width:100%;
margin-bottom:5.3vw;
}

main #top-pickup-info .common-link-button{
margin-top:0vw;
padding-top:2.3vw;
padding-bottom:4.3vw;
}

}


/* TOMASはどこが違うのか？ */



main #top-feature{
background:rgba(175,157,133,0.4);
margin-top:40px;
padding-top:75px;
overflow:hidden;
}

main #top-feature h2{
font-size:40px;
font-weight:700;
line-height:1.4em;
letter-spacing:0.1em;
text-align:center;
padding:0;
margin:0;
}

main #top-feature h2 a{
display:inline-block;
color:#464344;
transition: opacity 0.2s ease;
}

main #top-feature h2 a strong{
font-weight:700;
color:#B7212B;
}

main #top-feature h2 a:hover{
opacity:0.7;

}


main #top-feature h2 + p{
font-size:24px;
font-weight:700;
line-height:1.6em;
letter-spacing:0.1em;
text-align:center;
padding:0;
margin:0.5em 0 1em 0;
color:#464344;
}

main #top-feature h2 + p  strong{
font-weight:700;
color:#B7212B;
}


main #top-feature ol{
list-style:none;
margin:0 auto 0 auto;
padding:0;
text-align:left;
display: block;
max-width:1060px;
}


main #top-feature ol li:nth-child(even) {
  display: grid;
 grid-template-columns: 1fr 1fr; 
  column-gap: 48px; 
  grid-template-areas: 
    "top-feature_label top-feature_photo"
    "top-feature_title top-feature_photo"
    "top-feature_text top-feature_photo";
 align-items: start;
 grid-template-rows: auto auto 1fr; 
margin-top:54px;
}


main #top-feature ol li:nth-child(odd) {
  display: grid;
 grid-template-columns: 1fr 1fr; 
  column-gap: 48px; 
  grid-template-areas: 
    "top-feature_photo top-feature_label"
    "top-feature_photo top-feature_title"
    "top-feature_photo top-feature_text";
 align-items: start;
 grid-template-rows: auto auto 1fr; 
margin-top:54px;
}




main #top-feature ol li > img{
  grid-area: top-feature_photo; /* 左側に固定 */
  width: 510px;
  height:320px;
  background:#ccc;
  border-radius:8px;
}


main #top-feature ol li .label-item{
grid-area: top-feature_label;
display:block;
width:166px;
height:60px;
line-height:60px;
background:#fff;
font-size:20px;
font-weight:700;
letter-spacing:0.1em;
color:#AF9D85;
border-radius:30px;
text-align:center;
}


main #top-feature ol li .label-item span{
display:inline-block;
width:38px;
height:38px;
line-height:38px;
background:#B7212B;
font-size:20px;
font-weight:700;
letter-spacing:0.1em;
color:#fff;
border-radius:1em;
text-align:center;
margin-left:0.25em;
}

main #top-feature ol li > h3{
grid-area: top-feature_title;
display:block;
margin:1.2em 0 0 0;
font-size:28px;
line-height:1.2em;
letter-spacing:0.1em;
color:#464344;
font-weight:700;
}

main #top-feature ol li > h3 strong{
color:#B7212B;
font-weight:700;
}



main #top-feature ol li > h3+p{
grid-area: top-feature_text;
display:block;
font-size:16px;
font-weight:500;
line-height:2em;
letter-spacing:0.05em;
color:#464344;
margin:1.5em 0 1em 0;
}


main #top-feature .top-youtube{

margin: 70px auto 75px auto;
padding:40px;
text-align:center;
display: block;
max-width:1060px;
background:#fff;
border-radius:8px;
}


/* 768-1023 */

@media(max-width:1023px){


main #top-feature{
background:rgba(175,157,133,0.4);
margin-top:30px;
padding:64px 40px 0 40px;
overflow:hidden;
}

main #top-feature h2{
font-size:32px;
margin-top:0px;
}

main #top-feature h2 + p{
font-size:20px;
margin-top:0.85em;
margin-bottom:-7px;
}


main #top-feature ol{
max-width:100%;
}

main #top-feature ol li:nth-child(even) {
column-gap: 40px; 
}

main #top-feature ol li:nth-child(odd) {
column-gap: 40px; 
}


main #top-feature ol li > img{
  grid-area: top-feature_photo; /* 左側に固定 */
  width: 100%;
  height:auto;
}


main #top-feature ol li .label-item{
}


main #top-feature ol li .label-item span{
}

main #top-feature ol li > h3{
margin:1.45em 0 0;
font-size:24px;
line-height:1.5em;
}


main #top-feature ol li > h3+p{
margin-top:1em;
}


main #top-feature .top-youtube{

margin: 64px auto 60px auto;
}


}



/* -767px */


@media(max-width:767px){



main #top-feature{
margin-top:8vw;
padding:8vw;
}

main #top-feature h2{
font-size:7.4vw;
}

main #top-feature h2 + p{
font-size:4.3vw;
line-height:1.5em;
margin-top:0.5em;
}


main #top-feature ol{
list-style:none;
margin:10.2vw auto 0 auto;
padding:0;
text-align:left;
display: block;
max-width:1060px;
}


main #top-feature ol li:nth-child(even), main #top-feature ol li:nth-child(odd){
 grid-template-columns: 1fr; 
  column-gap: 0px; 
  grid-template-areas: 
    "top-feature_label"
    "top-feature_photo"
    "top-feature_title"
    "top-feature_text";
 align-items: start;
 grid-template-rows: auto auto 1fr; 
margin-top:4vw;
}

main #top-feature ol li > img{
  grid-area: top-feature_photo;
}

main #top-feature ol li .label-item{
grid-area: top-feature_label;
display:block;
margin:0 auto 5.3vw auto;
width:39vw;
height:13.9vw;
line-height:13.9vw;
font-size:5.3vw;
border-radius:8vw;
text-align:center;
}


main #top-feature ol li .label-item span{
display:inline-block;
width:8.5vw;
height:8.5vw;
line-height:8vw;
font-size:4.3vw;
vertical-align:bottom;
margin-bottom:0.6em;
border-radius:1em;
}

main #top-feature ol li > h3{
grid-area: top-feature_title;
margin:0.9em 0 0;
font-size:6.4vw;
line-height:1.5em;
}

main #top-feature ol li > h3 strong{
color:#B7212B;
font-weight:700;
}

main #top-feature ol li > h3+p{
grid-area: top-feature_text;
display:block;
font-size:4.25vw;
font-weight:500;
line-height:1.8em;
letter-spacing:0.1em;
margin:0.75em 0 0.5em 0;
}

main #top-feature .top-youtube{
display:none;
}


}



/* ここが違う下のCTA */

main #top-cta1{
background:#B7212B;
padding:75px 0 55px 0;
margin:0;
}

main #top-cta1 ul{
display: flex;
justify-content: space-between; 
list-style:none;
width:800px;
margin:0 auto 40px auto;
padding:0;
padding-inline-start: 0;
text-align:center;
overflow:hidden;
}


main #top-cta1 ul li{
display:inline-block;
}

main #top-cta1 ul li a {
display:inline-block;
width:380px;
height:344px;
border-radius:8px;
background-color:#fff;
transition: background-color 0.2s linear;
}

main #top-cta1 ul li a:hover {
background-color:rgba(255,255,255,0.7);
}




main #top-cta1 ul li.cta1-trial_lesson a .label-item{
font-size:32px;
font-weight:700;
line-height:1.2em;
letter-spacing:0.15em;
color:#B7212B;
margin-top:28px;
}


main #top-cta1 ul li.cta1-trial_lesson a .label-item::before {
content:"";
display:inline-block;
height:48px;
margin-top:8px;
margin-bottom:12px;
width:100%;
background-size: 48px 48px;
background-image:url("../../assets/img/top/cta/trial_icon.svg");
background-size: contain;
background-repeat:no-repeat;
background-position-x: center;
background-position-y: center;
}


main #top-cta1 ul li.cta1-trial_lesson a p{
color:#464344;
font-size:16px;
letter-spacing:0.08em;
line-height:1.8em;
font-weight:600;
margin:0;
padding:0.9em;
}

main #top-cta1 ul li.cta1-trial_lesson a div.common-link-button{
padding-top:10px;
}

main #top-cta1 ul li.cta1-request a .label-item{
font-size:32px;
font-weight:700;
line-height:1.2em;
letter-spacing:0.15em;
color:#AF9D85;
margin-top:28px;
}


main #top-cta1 ul li.cta1-request a .label-item::before {
content:"";
display:inline-block;
height:48px;
margin-top:8px;
margin-bottom:12px;
width:100%;
background-size: 48px 48px;
background-image:url("../../assets/img/top/cta/request_icon.svg");
background-size: contain;
background-repeat:no-repeat;
background-position-x: center;
background-position-y: center;
}


main #top-cta1 ul li.cta1-request a p{
color:#464344;
font-size:16px;
letter-spacing:0.08em;
line-height:1.8em;
font-weight:600;
margin:0;
padding:0.9em;
}

main #top-cta1 ul li.cta1-request a div.common-link-button{
padding-top:10px;
}



main #top-cta1 .cta1-freedial{
text-align:center;
margin-top:30px;
}
main #top-cta1 .cta1-freedial a{
display:inline-block;
}

main #top-cta1 .cta1-freedial a .label-item{
font-size:20px;
font-weight:700;
letter-spacing:0.1em;
line-height:1.4em;
color:#fff;
text-align:left;
}

main #top-cta1 .cta1-freedial a .label-item + p{
display:block;
margin:0.2em auto 0 auto;
overflow:hidden;
color:#fff;
}

main #top-cta1 .cta1-freedial a .label-item + p span.tel-number{
display:inline-block;
font-size:40px;
font-weight:900;
line-height:1.2em;
letter-spacing:0.05em;
margin-right:10px;
}
main #top-cta1 .cta1-freedial a .label-item + p span.open-time{
display:inline-block;
font-size:14px;
font-weight:500;
line-height:1.2em;
letter-spacing:0.1em;
width:6.8em;
text-align:left;
}

main #top-cta1 .cta1-freedial a .label-item + p span.open-time span{
display:inline-block;
}






/* 768 - 1023 */


@media(max-width:1023px){

main #top-cta1{
padding:64px 0 58px 0;
}

main #top-cta1 ul{
width:688px;
margin-bottom:38px;
}

main #top-cta1 ul li a {
display:inline-block;
width:328px;
height:327px;
}


main #top-cta1 ul li.cta1-trial_lesson a .label-item{
font-size:24px;
font-weight:700;
}


main #top-cta1 ul li.cta1-trial_lesson a .label-item::before {
content:"";
display:inline-block;
height:48px;
}

main #top-cta1 ul li.cta1-trial_lesson a p{
font-size:14px;
padding:1.2em 0.9em 0.9em 0.9em;;
}

main #top-cta1 ul li.cta1-trial_lesson a div.common-link-button{
padding-top:10px;
}



main #top-cta1 ul li.cta1-request a .label-item{
font-size:24px;
font-weight:700;
}


main #top-cta1 ul li.cta1-request a .label-item::before {
content:"";
display:inline-block;
height:48px;
}


main #top-cta1 ul li.cta1-request a p{
font-size:14px;
}

main #top-cta1 ul li.cta1-request a div.common-link-button{
padding-top:10px;
}


}



/* -767px */

@media(max-width:767px){

main #top-cta1{
padding:12.8vw 0 11vw 0;
}

main #top-cta1 ul{
width:84vw;
margin-bottom:0;
}

main #top-cta1 ul li a {
width:39.7vw;
height:40.3vw;
border-radius:8px;
}

main #top-cta1 ul li a:hover {
background-color:rgba(255,255,255,0.7);
}




main #top-cta1 ul li.cta1-trial_lesson a .label-item{
font-size:5.4vw;
margin-top:1em;
}

main #top-cta1 ul li.cta1-trial_lesson a .label-item::before {
height:10.1vw;
margin-top:0.25em;
margin-bottom:0.33em;
background-size: 10.1vw 10.1vw;
}


main #top-cta1 ul li.cta1-trial_lesson a p{
display:none;
}

main #top-cta1 ul li.cta1-trial_lesson a div.common-link-button{
width:100%;
margin:0;
padding:0;
}

main #top-cta1 ul li.cta1-trial_lesson a div.common-link-button span{
background:none;
font-size:3.5vw;
color:#464344;
width:100%;
margin:0.66em 0 0 0;
padding:0;
height:1em;
line-height:1em;
letter-spacing:0.05em;
text-align:center;
}



main #top-cta1 ul li.cta1-request a .label-item{
font-size:5.4vw;
margin-top:1em;
}


main #top-cta1 ul li.cta1-request a .label-item::before {
height:10.1vw;
margin-top:0.25em;
margin-bottom:0.33em;
background-size: 10.1vw 10.1vw;
}


main #top-cta1 ul li.cta1-request a p{
display:none;
}

main #top-cta1 ul li.cta1-request a div.common-link-button{
width:100%;
margin:0;
padding:0;
}


main #top-cta1 ul li.cta1-request a div.common-link-button span{
background:none;
font-size:3.5vw;
color:#464344;
width:100%;
margin:0.66em 0 0 0;
padding:0;
height:1em;
line-height:1em;
letter-spacing:0.05em;
text-align:center;
}





main #top-cta1 .cta1-freedial{

text-align:center;
margin-top:6.4vw;
}
main #top-cta1 .cta1-freedial a{
display:inline-block;
}

main #top-cta1 .cta1-freedial a .label-item{
font-size:4.26vw;
text-align:center;
}

main #top-cta1 .cta1-freedial a .label-item + p{
display:block;
margin:2vw auto 0 auto;
overflow:hidden;
color:#fff;
}

main #top-cta1 .cta1-freedial a .label-item + p span.tel-number{
display:block;
font-size:8.5vw;
margin-right:0;
text-align:center;
}
main #top-cta1 .cta1-freedial a .label-item + p span.open-time{
display:block;
margin-top:2.4vw;
font-size:3.7vw;
text-align:center;
width:100%;
}

main #top-cta1 .cta1-freedial a .label-item + p span.open-time span{
display:inline;
}



}

















/*難関校への合格実績が出せるのはTOMASです*/


main #top-reason {
background:#fff;
margin-top:15px;
padding-top:40px;
overflow:hidden;
}

main #top-reason h2{
font-size:32px;
font-weight:700;
line-height:1.6em;
letter-spacing:0.12em;
text-align:center;
padding:20px 0 10px 0;
margin:0;
}

main #top-reason  h2 a{
display:inline-block;
color:#B7212B;
font-weight:700;
transition: opacity 0.2s ease;
}

main #top-reason h2 a:hover{
opacity:0.7;
}



main #top-reason ul.reason-list{
max-width:1060px;
list-style:none;
display: flex;
flex-wrap: wrap;
justify-content: space-between; 
max-width:1060px;
margin:30px auto 30px auto;
padding:0 8px 0 8px;
overflow:hidden;
}


main #top-reason ul.reason-list > li{
margin:0;
padding:0;
}

main #top-reason ul.reason-list > li .reason-summary + .reason-detail{
display:none;
}

main #top-reason ul.reason-list > li > .reason-summary a{
 pointer-events:auto;
}


main #top-reason ul.reason-list > li > .reason-summary a{
display: block;
width: 144px;
text-align: center;
font-size: 16px;
color: #464344;
line-height: 1.4em;
letter-spacing: 0.1em;
font-weight: 700;
position: relative; 
padding-top: 170px;
margin:0 auto 10px auto;
}

main #top-reason ul.reason-list > li > .reason-summary a::before{
content: "";
display: block;
width: 130px;
height: 130px;
border: 2px solid rgba(70,68,67,0.12);
border-radius:130px;
position: absolute;
top: 0;
background-color:#fff;
margin-left:7px;
box-sizing: border-box;
transition: background-color 0.5s linear , border 0.5s linear ;
background-size: contain;
background-repeat:no-repeat;
background-position-x: center;
background-position-y: center;
}

main #top-reason ul.reason-list > li > .reason-summary a:hover::before{
border: 2px solid rgba(70,68,67,1);
background-color:#fafafa;
}



main #top-reason ul.reason-list > li > .reason-summary a::after{
content: "";
display: block;
position: absolute;
top: 151px; /* before の直下に配置 */
width: 144px;
border-top: 2px solid #B7212B;
margin-left:0px;
}

main #top-reason ul.reason-list li:nth-child(1) .reason-summary a::before{
background-image:url("../../assets/img/top/reason/point_01_icon.svg");
}
main #top-reason ul.reason-list li:nth-child(2) .reason-summary a::before{
background-image:url("../../assets/img/top/reason/point_02_icon.svg");
}
main #top-reason ul.reason-list li:nth-child(3) .reason-summary a::before{
background-image:url("../../assets/img/top/reason/point_03_icon.svg");
}
main #top-reason ul.reason-list li:nth-child(4) .reason-summary a::before{
background-image:url("../../assets/img/top/reason/point_04_icon.svg");
}
main #top-reason ul.reason-list li:nth-child(5) .reason-summary a::before{
background-image:url("../../assets/img/top/reason/point_05_icon.svg");
}
main #top-reason ul.reason-list li:nth-child(6) .reason-summary a::before{
background-image:url("../../assets/img/top/reason/point_06_icon.svg");
}



/* 768-1023 */

@media(max-width:1023px){

main #top-reason {
}

main #top-reason  h2{
font-size:28px;
padding:5px 30px 0 30px;
text-align:center;
}

main #top-reason ul.reason-list{
width:100%;
max-width:100%;
display: block;
padding:0 15px 0 15px;
margin-top:16px;
overflow:hidden;
text-align:center;
display: flex;
flex-wrap: wrap; 
justify-content: center;
}

/*要素の落ちを刻む*/

@media(max-width:1020px){
main #top-reason ul.reason-list{
max-width:840px;
}
}
@media(max-width:1020px){
main #top-reason ul.reason-list{
max-width:768px;
}
}


main #top-reason ul.reason-list > li > .reason-summary{
display:inline-block;
width:130px;
display:inline-block;
margin:15px 15px 7px 15px;
}


main #top-reason ul.reason-list > li > .reason-summary a{
width: 130px;
padding-top: 168px;
}

main #top-reason ul.reason-list > li:nth-child(5) .reason-summary a{
letter-spacing:0;
}

main #top-reason ul.reason-list > li > .reason-summary a::before{
width: 130px;
height: 130px;
border-radius:130px;
margin-left:0;
}

main #top-reason ul.reason-list > li > .reason-summary a:hover::before{
border: 2px solid rgba(70,68,67,1);
background-color:#fafafa;
}


main #top-reason ul.reason-list > li > .reason-summary a::after{
width: 130px;
}

}



/* -768px */

@media(max-width:767px){


main #top-reason {
background:#fff;
margin-top:0px;
padding-top:8.5vw;
overflow:hidden;
width:100%;
}

main #top-reason  h2{
font-size:6.4vw;
line-height:1.5em;
padding:0 5.3vw 0 5.3vw;
}



main #top-reason ul.reason-list{
max-width:100%;
width:100%;
display: block;
padding:5.3vw 5.3vw 0 5.3vw;
margin-top:0;
overflow:hidden;
}


main #top-reason ul.reason-list > li{
display:inline-block;
width:100%;
border: 2px solid rgba(70,68,67,0.12);
border-radius:8px;
margin:1.33vw auto 1.33vw auto;
overflow:hidden;
}


/*重複するが先にdetails 殺す*/
main #top-reason ul.reason-list > li > .reason-summary {
display: block;
list-style: none;
list-style-type: none;
pointer-events:auto;
-webkit-tap-highlight-color: transparent;
width:100%;
margin:0;
}

main #top-reason ul.reason-list > li > .reason-summary > a{
 pointer-events:none;
}



main #top-reason ul.reason-list > li > .reason-summary >  a{
display: block;
width: 100%;
height:20vw;
font-size: 4.8vw;
line-height: 20vw;
letter-spacing: 0.1em;
padding-top: 0;
margin:0;
text-align:left;
left:24vw;
}


main #top-reason ul.reason-list > li:nth-child(5) > .reason-summary > a{
line-height: 1.4em;
letter-spacing: 0.1em;
padding-top:0.75em;
}



main #top-reason ul.reason-list > li > .reason-summary > a::before{
content: "";
display: block;
height: 20vw;
width: 24vw;
line-height: 20vw;
background-color:transparent;
border: none;
border-radius:0;
margin-left:0px;
background-size: 28vw 28vw;
background-repeat:no-repeat;
background-position-x: -2vw;
background-position-y: -4vw;
vertical-align:middle;
left:-24vw;
}

main #top-reason ul.reason-list > li > .reason-summary > a:hover::before{
border: none;
background-color:#fff;
}


main #top-reason ul.reason-list > li > .reason-summary > a::after{
content: "";
display: inline;
width: 0px;
height: 0px;
border: none;
position:static; 
background:none;
margin-left:0px;
}

/*アニメーション*/

main #top-reason ul.reason-list > li > .reason-summary + .reason-detail{
display:block;
text-align:center;
border-top: 1px solid #B7212B;
opacity:0;
}

main #top-reason ul.reason-list > li > .reason-summary + .reason-detail p{
margin:0 auto 0 auto;
padding:1.5em 1.5em 0.75em 1.5em;
font-size:4.23vw;
line-height:1.65em;
letter-spacing:0.05em;
font-weight:500;
text-align:left;
}

main #top-reason ul.reason-list > li > .reason-summary::after{
display:inline-block;
font-size: 4.8vw;
content:" ";
width:1em;
height:1em;
  background-image:
    linear-gradient(#464344, #464344),
    linear-gradient(#464344, #464344);

  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 0.125em, 0.125em 100%;

  transition: background-size 0.2s ease;
position: absolute;
right:2.5em;
margin-top:-2.5em;
vertical-align:middle;
overflow:hidden;
}

main #top-reason ul.reason-list > li.is-open > .reason-summary::after{
  background-size: 100% 0.125em, 0 0;
}

main #top-reason ul.reason-list > li > .reason-summary + .reason-detail {
display:block;
  max-height: 0;
  padding:0;
  overflow: hidden;
  transition: max-height 0.75s ease, padding 0.75s ease, opacity 0.75s ease-in;
}

main #top-reason ul.reason-list > li.is-open >  .reason-summary + .reason-detail {
display:block;
  max-height: 80vw;
  padding-bottom:6.4vw;
  border-top: 1px solid #B7212B;
  opacity:1;
}


}




/* 合格者の声スライダー */

main #top-exam-voice{
background:#fff;
margin-top:30px;
padding-top:18px;
padding-left:20px;
padding-right:20px;
overflow:hidden;
}

main #top-exam-voice h2{
font-size:32px;
font-weight:700;
line-height:1.4em;
letter-spacing:0.1em;
text-align:center;
padding:0;
margin:0 0 40px 0;
}

main #top-exam-voice h2 a{
display:inline-block;
color:#464344;
transition: opacity 0.2s ease;
}

main #top-exam-voice h2 a:hover{
opacity:0.7;
}


main #top-exam-voice h2 a::before{
display:block;
height:50px;
margin-bottom:0.5em;
content:"";
background-image:url("../../assets/img/common/voice_icon.svg");
background-position: center;
background-size: contain;
background-repeat:no-repeat;
}


main #top-exam-voice ul.voice-slide{
max-width:1060px;
list-style:none;
display: flex;
flex-wrap: wrap;
justify-content: space-between; 
max-width:1060px;
margin:20px auto 30px auto;
padding:0;
overflow:hidden;
}

main #top-exam-voice ul.voice-slide > li a{
position: relative; 
display:block;
margin:0;
padding:0;
width:326px;
height:379px;
background-color:#fff;
overflow:hidden;
transition: background-color 0.4s ease;
}

main #top-exam-voice ul.voice-slide > li a:hover{
background-color:rgba(175,157,133,0.06);
border-radius:8px;
}




main #top-exam-voice ul.voice-slide > li a::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border:2px solid rgba(175,157,133,0.22);
  pointer-events: none;
  box-sizing: border-box;
  z-index: 9;
width:326px;
height:379px;
border-radius:8px;
border 0.2s ease;
}

main #top-exam-voice ul.voice-slide > li a::before:hover{
border:2px solid rgba(175,157,133,1);
}





main #top-exam-voice ul.voice-slide > li .voice-student h3{
margin:30px 30px 0 30px;
font-size:22px;
font-weight:700;
letter-spacing:0.08em;
line-height:1.4em;
color:#AF9D85;
}

main #top-exam-voice ul.voice-slide > li.voice-elementary .voice-student h3 {
color:#3EB8EB;
}

main #top-exam-voice ul.voice-slide > li.voice-junior .voice-student h3 {
color:#7FBE25;
}

main #top-exam-voice ul.voice-slide > li.voice-senior .voice-student h3 {
color:#EB6D9A;
}



main #top-exam-voice ul.voice-slide > li .voice-student h3 > span{
color:#AF9D85;
}

main #top-exam-voice ul.voice-slide > li .voice-student p{
margin:8px 30px 24px 30px;
font-size:16px;
font-weight:700;
line-height:1.5em;
letter-spacing:0.04em;
color:#464344;
}

main #top-exam-voice ul.voice-slide > li .voice-student .voice-picture{
display:block;
overflow:hidden;
}

main #top-exam-voice ul.voice-slide > li .voice-student .voice-picture > div{
float:left;
width:104px;
height:104px;
overflow:hidden;
}

main #top-exam-voice ul.voice-slide > li .voice-student .voice-picture > div > img{
width:104px;
height:104px;
transform:scale(1.00); 
transition: transform 0.5s ease;
}

main #top-exam-voice ul.voice-slide > li a:hover .voice-student .voice-picture > div > img{
transform:scale(1.08); 
}


main #top-exam-voice ul.voice-slide > li .voice-student .voice-picture p{
display:block;
float:left;
margin:3px 20px 0 20px;
width:calc(100% - 40px - 104px);
font-size:16px;
font-weight:500;
color:#464344;
line-height:1.6em;
letter-spacing:0.04em;
}

main #top-exam-voice ul.voice-slide > li .voice-student .voice-picture p img{
display:inline-block;
height:17px;
width:auto;
margin-bottom:4px;
}


main #top-exam-voice ul.voice-slide > li.voice-elementary .voice-student .voice-picture p span{
margin-left:5px;
color:#3EB8EB;
text-decoration:underline;
text-decoration-color: rgba(62, 184, 235, 0.6);
text-underline-offset: 2px;
}

main #top-exam-voice ul.voice-slide > li.voice-junior .voice-student .voice-picture p span {
margin-left:5px;
color:#7FBE25;
text-decoration:underline;
text-decoration-color: rgba(127, 190, 37, 0.6);
text-underline-offset: 2px;
}

main #top-exam-voice ul.voice-slide > li.voice-senior .voice-student .voice-picture p span{
margin-left:5px;
color:#EB6D9A;
text-decoration:underline;
text-decoration-color: rgba(235, 109, 154, 0.6);
text-underline-offset: 2px;
}

main #top-exam-voice ul.voice-slide > li.voice-elementary .button-skyblue span{width:256px;
background-color:#3EB8EB;
}

main #top-exam-voice ul.voice-slide > li.voice-junior .button-fleshgreen span{width:256px;
background-color:#7FBE25;
}

main #top-exam-voice ul.voice-slide > li.voice-senior .button-pink span{width:256px;
background-color:#EB6D9A;
}

#top-exam-voice .hide-arrows .slider-arrow {
    display: none !important;
}

#top-exam-voice .slider-arrow {
display: flex;
opacity: 1;
visibility: visible;
pointer-events: auto;
transition: opacity 0.1s, visibility 0.1s;
}

#top-exam-voice .slider-arrow.is-hidden {
    opacity: 0 !important;           /* 透明にする */
    visibility: hidden !important;    /* 描画から外す */
    pointer-events: none !important; /* クリックを無効にする */
}

#top-exam-voice  .slider-arrow {
    display:none!important;
}




/* 1023px以下の全般設定 */
@media screen and (max-width: 1023px) {
    /* スライダーの物理制御：親は左右余白なし */
    main #top-exam-voice {
   position: relative !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
        background: #fff;
        margin-top: 0;
        padding-top: 24px;
        overflow: visible;
    }

    /* タブレット用の見出し余白 */
    main #top-exam-voice h2 {
        padding: 0 40px;
        margin-bottom: 30px;
        font-weight: 700;
        font-size:28px;
    }

main #top-exam-voice h2 a::before{
margin-bottom:0.62em;
}

    /* スライダー基盤 */
    main #top-exam-voice ul.voice-slide {
        display: block;
        white-space: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        margin: 0;
        padding: 0 0 20px 0;
        scrollbar-width: none;
        list-style: none;
        font-size: 0;
width: 100%;
    position: relative;
    }
    main #top-exam-voice ul.voice-slide::-webkit-scrollbar { display: none; }

    /* タブレット時のブロック設定 (隙間40px) */
    main #top-exam-voice ul.voice-slide > li {
        display: inline-block;
        vertical-align: top;
        white-space: normal;
        font-size: 16px;
        box-sizing: border-box;
        scroll-snap-align: start;
        width: 366px; 
        padding-left: 40px;
        margin: 0;
    }
    main #top-exam-voice ul.voice-slide > li:last-child {
        width: 406px;
        padding-right: 40px;
    }

main #top-exam-voice ul.voice-slide > li .voice-student h3{
margin-top:32px;
}

    /* タブレット用ボタン位置 */
    .slider-arrow {
        position: absolute !important;
        top: 330px; 
        transform: translateY(-50%);
        width: 56px;
        height: 56px;
        background-color: rgba(100,100,100,0.5);
        border-radius: 50%;
        z-index: 100;
        display: none;
        align-items: center;
        justify-content: center;
        border: none;
        cursor: pointer;
	font-size:10px;
    }

main #top-exam-voice ul.voice-slide > li .voice-student + .common-link-button{
padding-top:28px;
}

#top-exam-voice  .slider-arrow {
    display:flex!important;
}


main #top-exam-voice ul.voice-slide .slider-arrow.prev {
    left: 20px;
}

main #top-exam-voice ul.voice-slide .slider-arrow.next {
    right: 20px;
}


    /* --- ここからスマホ専用 --- */
    @media (max-width: 767px) {
        main #top-exam-voice {
            padding-left: 0;
            padding-right: 0;
            overflow: visible;
        margin-top: 0vw;
        padding-top: 0vw;

        }

        main #top-exam-voice h2 {
            font-size: 6.4vw;
            margin: 0 5.3vw 6.4vw 5.3vw; /* ここで5.3vwの余白を維持 */
        }

        main #top-exam-voice h2 a::before {
            height: 10.6vw;
            margin-bottom: 0.33em;
        }

        /* 物理制御：スマホ用隙間5.3vw */
        main #top-exam-voice ul.voice-slide > li {
            width: 86.3vw; 
            padding-left: 5.3vw;
        }
        main #top-exam-voice ul.voice-slide > li:last-child {
            width: 91.6vw;
            padding-right: 5.3vw;
        }

        /* 以下、内部デザイン詳細 */
        main #top-exam-voice ul.voice-slide > li a {
            display: block;
            width: 81vw;
            height: 91.7vw;
        }

main #top-exam-voice ul.voice-slide > li a::before{
            width: 81vw;
            height: 91.7vw;
}

        main #top-exam-voice ul.voice-slide > li .voice-student h3 {
            font-size: 5.3vw;
            margin: 6.36vw 6.36vw 0 6.36vw;
            font-weight: 700;
        }

        main #top-exam-voice ul.voice-slide > li .voice-student p {
            margin: 0.6em 6.36vw 0.95em 6.36vw;
            font-size: 4.26vw;
        }

        main #top-exam-voice ul.voice-slide > li .voice-student .voice-picture {
            display: block;
            overflow: hidden;
        }

        main #top-exam-voice ul.voice-slide > li .voice-student .voice-picture > div {
            width: 26vw;
            height: 26vw;

}


        main #top-exam-voice ul.voice-slide > li .voice-student .voice-picture > div > img {
            width: 26vw;
            height: 26vw;
        }
        main #top-exam-voice ul.voice-slide > li a:hover .voice-student .voice-picture > div > img  {
            transform: scale(1);
        }

        main #top-exam-voice ul.voice-slide > li .voice-student .voice-picture p {
            display: block;
            float: left;
            margin: 1vw 4.3vw 0.5vw 5.3vw;
            width: calc(100% - 9.6vw - 26vw);
            font-size: 3.7vw;
        }

        main #top-exam-voice ul.voice-slide > li .voice-student .voice-picture p img {
            height: 4.3vw;
            margin-bottom: 0.33em;
            width: auto;
        }

        /* ボタン幅の設定 */
        main #top-exam-voice ul.voice-slide > li.voice-elementary .button-skyblue span,
        main #top-exam-voice ul.voice-slide > li.voice-junior .button-fleshgreen span,
        main #top-exam-voice ul.voice-slide > li.voice-senior .button-pink span {
            width: 68.2vw;
        }

        /* スマホ用ボタン位置 */
        .slider-arrow {
            top: 74vw; 
            width: 12.8vw;
            height: 12.8vw;
            font-size:2.3vw;
        }

/*コントロール最後の余白*/
        main #top-exam-voice ul.voice-slide > li.voice-senior{
            margin-right:6vw;
        }

    }

    /* 矢印アイコン共通 */
    .slider-arrow::after {
        content: "";
        width: 0.7em; height: 0.7em;
        border-top: 0.25em solid #fff; border-right: 0.25em solid #fff;
    }
    .slider-arrow.prev { left: 0.25em; }
    .slider-arrow.prev::after { transform: rotate(-135deg); margin-left: 0.4em; }
    .slider-arrow.next { right: 2em; }
    .slider-arrow.next::after { transform: rotate(45deg); margin-right: 0.4em; }
}






/* よく寄せられるご質問 */


main #top-faq{
background:#fff;
margin-top:20px;
padding-top:20px;
padding-left:20px;
padding-right:20px;
overflow:hidden;
}

main #top-faq h2{
font-size:32px;
font-weight:700;
line-height:1.4em;
letter-spacing:0.1em;
text-align:center;
padding:0;
margin:0 0 40px 0;
}

main #top-faq h2 a{
display:inline-block;
color:#464344;
transition: opacity 0.2s ease;
}

main #top-faq h2 a:hover{
opacity:0.7;
}


main #top-faq h2 a::before{
display:block;
height:50px;
margin-bottom:0.5em;
content:"";
background-image:url("../../assets/img/common/qa_icon.svg");
background-position: center;
background-size: contain;
background-repeat:no-repeat;
}

main #top-faq .faq-list{
max-width:1060px;
margin:0 auto 0 auto;
overflow:hidden;
}


/* 1. details本体と内部構造の固定 */
main #top-faq details {
  display: block !important;
  border:2px solid rgba(70,68,67,0.12);
  border-radius:8px;
  margin-bottom:24px;
  padding:0;
}

main #top-faq details::details-content {
  display: block !important;
  content-visibility: visible !important;
}

/* 2. 中身の箱のアニメーション */
main #top-faq details p {
  max-height: 0;
  margin:0;
  padding:0 20px 0 75px;
  opacity: 0;
  font-size:14px;
  font-weight:500;
  color:#464344;
  line-height:1.6em;
  letter-spacing:0.04em;
  overflow: hidden;
  transition: max-height 1s  ease, opacity 1s ease;
  background-image:url("../../assets/img/common/qa_a_icon.svg");
  background-repeat:no-repeat;
  background-position:20px 24px;
  background-size:32px 32px;
  border-top:1px solid  rgba(70,68,67,0.16);
  opacity: 0;
}

/* 3. 開閉状態の切り替え */
main #top-faq details[open] p {
  max-height: 450px;
  opacity: 1;
}

main #top-faq details p::before {
display:block;
content:"";
height:24px;
}
main #top-faq details p::after {
display:block;
content:"";
height:24px;
}




/* 4. summaryの装飾リセット */
main #top-faq details summary {
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

main #top-faq details summary::-webkit-details-marker {
  display: none;
}

main #top-faq details summary {
  display: flex;
  align-items: center;
  min-height: 60px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4em;
  letter-spacing:0.08em;
  color: #464344;
  margin: 0;
  padding: 10px 75px 10px 75px;  
  list-style: none; 
  position: relative;
  background-image: url("../../assets/img/common/qa_q_icon.svg");
  background-repeat: no-repeat;
  background-position: 20px 50%;
  background-size: 32px 32px;
}



main #top-faq details summary::after{
display:inline-block;
font-size: 16px;
content:"";
width:1em;
height:1em;
  background-image:
    linear-gradient(#464344, #464344),
    linear-gradient(#464344, #464344);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 0.125em, 0.125em 100%;
  transition: background-size 0.1s ease-in-out;
position: absolute;
right:1.5em;
top:calc(50% - 0.5em);
}


main #top-faq details[open] summary::after{
  background-size: 100% 0.125em, 0.125em 0;
}

@media(max-width:1023px){
main #top-faq {
width:100%;
padding:13px 40px 0 40px;
}

main #top-faq  h2{
font-size:28px;
letter-spacing:0.08em;
margin-bottom:30px;
}

main #top-faq h2 a::before{
margin-bottom:0.57em;
}

main #top-faq details p::after{
height:20px;
}

}


@media(max-width:767px){



main #top-faq {
width:100%;
padding:0 5.3vw 0 5.3vw;
margin-top:5.9vw;
}

main #top-faq  h2{
font-size:6.4vw;
line-height:1.5em;
padding:0 5.3vw 0 5.3vw;
margin-bottom:6.4vw;
}

main #top-faq h2 a::before{
display:block;
height:10.1vw;
margin-bottom:0.33em;
}
main #top-faq details {
margin-bottom:16px;
}

main #top-faq details summary {
  min-height:70px;
  padding:0.8em 16vw 0.8em 17vw;
  background-position: 4.3vw 50%;
}

/* 2. 中身の箱のアニメーション */
main #top-faq details p {
  padding:0px 20px 0 20px;
  background-position:50% 20px;
  background-size:32px 32px;
  transition: max-height 1s ease, opacity 1.2s ease , padding 0.7s ease ;
}

main #top-faq details p::before {
display:block;
content:" ";
width:100%;
height:64px;
}

/* 3. 開閉状態の切り替え */
main #top-faq details[open] p {
  max-height: 900px;
  opacity: 1;
  padding:0px 20px 20px 20px;
}

}



/* イベント下のバナーエリア */

main #search-event-list .top-addevent .banner-100{
max-width:1060px;
margin:35px auto 30px auto;
overflow:hidden;
}

main #search-event-list .top-addevent .banner-100 a{
transition: opacity 0.4s ease;
}

main #search-event-list .top-addevent .banner-100 a img{
width:100%;
border-radius:8px;
}

main #search-event-list .top-addevent .banner-100 a:hover{
opacity:0.7;
}



main #search-event-list .top-addevent .banner-50{
display: flex;
flex-wrap: wrap;
justify-content: space-between; 
max-width:1060px;
margin:30px auto 30px auto;
overflow:hidden;
}

main #search-event-list .top-addevent .banner-50 a{
width:calc((100% - 30px) / 2 );
display:inline-block;
transition: opacity 0.4s ease;
}

main #search-event-list .top-addevent .banner-50 a img{
width:100%;
border-radius:8px;
}

main #search-event-list .top-addevent .banner-50 a:hover{
opacity:0.7;
}



/* -1023px */

@media(max-width:1024px){

main #search-event-list .top-addevent .banner-100{
margin:20px 0px 20px 0px;
}

main #search-event-list .top-addevent .banner-50{
margin:20px 0px 20px 0px;
}


}


/*767px*/


@media(max-width:767px){


main #search-event-list > .common-link-button {
padding-top:2vw;
padding-bottom:5.3vw;
}

main #search-event-list .top-addevent .banner-100{
margin:5.3vw 0 5.3vw 0;
}

main #search-event-list .top-addevent .banner-50{
display:block;
margin:5.3vw 0 0 0;
}

main #search-event-list .top-addevent .banner-50 a{
width:100%;
margin-bottom:5.3vw;
}

main #search-event-list .top-addevent .common-link-button{
margin-top:0vw;
}

}



/* ニュース */

main #top-news-list{
background:#fff;
margin-top:25px;
padding-top:20px;
padding-left:20px;
padding-right:20px;
overflow:hidden;
}

main #top-news-list h2{
font-size:32px;
font-weight:700;
line-height:1.4em;
letter-spacing:0.1em;
text-align:center;
padding:0;
margin:0 0 30px 0;
}


main #top-news-list h2 a{
display:inline-block;
color:#464344;
transition: opacity 0.2s ease;
}

main #top-news-list h2 a:hover{
opacity:0.7;
}


main #top-news-list h2 a::before{
display:block;
height:44px;
margin-bottom:0.25em;
content:"";
background-image:url("../../assets/img/common/news_icon.svg");
background-position: center;
background-size: contain;
background-repeat:no-repeat;
}


main #top-news-list .special-news dl{
max-width:1060px;
margin:0 auto 0 auto;
height:64px;
background:#f1f0f0;
border-radius:32px;
  background-image:url("../../assets/img/common/right_arrow_gray.svg");
  background-repeat:no-repeat;
  background-size:18px 18px;
  background-position:top 50% right 2em;
  transition: background-position 0.2s linear;
}

main #top-news-list .special-news a:hover > dl {
  background-position:top 50% right 1em;
}


main #top-news-list .special-news dl dt{
display:inline-block;
width:170px;
height:36px;
line-height:36px;
background:#B7212B;
border-radius:32px;
color:#fff;
font-size:14px;
letter-spacing:0.08em;
font-weight:600;
text-align:center;
margin:14px 12px 14px 14px;
}


main #top-news-list .special-news dl dd{
display:inline-block;
margin-left:0;
}

main #top-news-list .special-news dl dd span#toDay{
display:inline-block;
font-size:16px;
letter-spacing:0.04em;
color:#B7212B;
font-weight:600;
}

main #top-news-list .special-news dl dd span#infomsg{
display:inline-block;
font-size:16px;
letter-spacing:0.04em;
color:#464344;
font-weight:500;
padding-left:1em;
}




main #top-news-list .news-list ul{
max-width:1060px;
list-style:none;
display: flex;
flex-wrap: wrap;
justify-content: space-between; 
max-width:1060px;
margin:30px auto 30px auto;
padding:0 1.25em 0 0;
max-height:390px;
overflow-y: scroll;
}

main #top-news-list .news-list ul::-webkit-scrollbar {
  width: 14px; /* バーの太さ */
  border-radius:8px;
}

main #top-news-list .news-list ul::-webkit-scrollbar-track {
  background: #ffffff; /* 背景：白 */
}

main #top-news-list .news-list ul::-webkit-scrollbar-thumb {
  background: #535353; /* つまみ：グレー */
}

/* 3. ボタンを完全に消去 */
main #top-news-list .news-list ul::-webkit-scrollbar-button {
  display: none !important;
  width: 0;
  height: 0;
}

/* Firefoxのみに標準プロパティを適用（Chromeには読ませない） */
@supports not selector(::-webkit-scrollbar) {
  .target {
    scrollbar-color: #535353 #ffffff;
    scrollbar-width: thin;
  }
}


main #top-news-list .news-list ul > li{
  display: flex;
  width:100%;
  align-items: center; 
  gap: 16px;    
  font-size:16px;
  padding-top:17px;
  padding-bottom:17px;
  border-top:1px solid  rgba(70,68,67,0.24);
}

main #top-news-list .news-list ul > li:last-child{
  border-bottom:1px solid  rgba(70,68,67,0.24);
  margin-bottom:1em;
}

main #top-news-list .news-list ul > li.other-news{
  display:block;
  text-align:center;
  margin-bottom:1em;
  padding-right:1em;
}
main #top-news-list .news-list ul > li.other-news a{
color: #464344;
font-weight:500;
transition: opacity 0.2s linear;
}

main #top-news-list .news-list ul > li.other-news a:hover{
opacity:0.7;
}



/* 日付・カテゴリは必要なだけ幅を取り、折り返さない */
main #top-news-list .news-list ul > li .news-date,
main #top-news-list .news-list ul > li .news-category {
  white-space: nowrap;
  flex: 0 0 auto;           /* 幅は中身に合わせる（固定寄り） */
}


main #top-news-list .news-list ul > li .news-date{
font-size:16px;
font-weight:600;
letter-spacing:0.04em;
color:#464344;
}

main #top-news-list .news-list ul > li .news-category {
display:inline-block;
width:100px;
height:28px;
line-height:28px;
background:#ddd;
border-radius:30px;
text-align:center;
color:#fff;
font-size:12px;
font-weight:600;
letter-spacing:0.12em;
}

main #top-news-list .news-list ul > li .news-category.osusume{
background:#E50012;
}
main #top-news-list .news-list ul > li .news-category.present{
background:#AF9D85;
}

main #top-news-list .news-list ul > li .news-category.news{
background:#B7212B;
}

main #top-news-list .news-list ul > li .news-category.open{
background:#464344;
}

main #top-news-list .news-list ul > li .news-category.info{
background:#AEAEAE;
}





/* サマリーは残りの幅を占有する */
main #top-news-list .news-list ul > li .news-summary {
  flex: 1 1 auto;           /* 残りを占有 */
  display: inline;
  white-space: normal;
  word-break: break-word;
  font-size:16px;
  line-height:1.4em;
  letter-spacing:0.04em;
  font-weight:500;
  color:#464344;
}

main #top-news-list .news-list ul > li .news-summary a{
  font-size:16px;
  line-height:1.4em;
  letter-spacing:0.04em;
  font-weight:500;
  color:#464344;
transition: opacity 0.2s linear;
opacity:1;
}

main #top-news-list .news-list ul > li .news-summary a:hover{
opacity:0.7;
}






/*768-1023*/
@media(max-width:1023px){

main #top-news-list{
margin:20px 20px 12px 20px;
padding:20px;
}


main #top-news-list h2{
font-size:28px;
margin:0 0 36px 0;
}

main #top-news-list h2 a::before{
margin-bottom:0.6em;
}

main #top-news-list .special-news dl {
height:60px;
margin-bottom:35px;
}


}

/*-768*/

@media(max-width:767px){

main #top-news-list{
margin:0;
padding:1vw 5.3vw 1vw 5.3vw;
height:
}


main #top-news-list h2{
font-size:6.4vw;
margin:0 0 5.3vw 0;
}

main #top-news-list h2 a::before{
display:block;
height:9.4vw;
margin-bottom:0.25em;
}



main #top-news-list .special-news dl{
height:auto;
border-radius:8px;
  background-image:none;
padding:6vw 6vw 5vw 6vw;
margin-bottom:0;
}

main #top-news-list .special-news dl dt{
display:inline-block;
width:44.8vw;
height:9.6vw;
line-height:9.6vw;
border-radius:8.5vw;
font-size:3.7vw;
margin:0;
}


main #top-news-list .special-news dl dd{
display:inline;
margin-left:0;
}

main #top-news-list .special-news dl dd span#toDay{
display:inline-block;
font-size:4.3vw;
letter-spacing:0.04em;
margin-left:0.5em;
}

main #top-news-list .special-news dl dd span#infomsg{
display:inline-block;
font-size:3.7vw;
padding-left:0;
padding-top:1em;
}


}

/* -767px */

@media (max-width: 767px) {
  main #top-news-list .news-list ul {
 margin:28px auto 28px auto;
 padding-right:0.25em;
 max-height:700px;

}

main #top-news-list .news-list ul::-webkit-scrollbar {
  width: 11px; /* バーの太さ */
  border-radius:3px;
}

  main #top-news-list .news-list ul > li {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  main #top-news-list .news-list ul > li .news-date {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  main #top-news-list .news-list ul > li .news-category {
    margin-left: auto;
    margin-top: -28px;
  }
  main #top-news-list .news-list ul > li .news-summary {
    width: 100%;
    font-size:14px;
  }
  main #top-news-list .news-list ul > li .news-summary a {
    font-size:14px;
  }

}














/* くわしくボタン(汎用） */

main div.common-link-button {
display:block;
text-align:center;
position: relative;
padding-top:30px;
padding-bottom:30px;
}

main div.common-link-button > a , main div.common-link-button > span {
display:inline-block;
text-align:left;
padding-left:2em;
background-color:#B7212B;
width:240px;
height:60px;
line-height:60px;
border-radius:30px;
font-size:16px;
font-weight:700;
letter-spacing:0.1em;
color:#fff;
  background-image:url("../../assets/img/common/right_arrow.svg");
  background-repeat:no-repeat;
  background-size:18px 18px;
  background-position:top 50% right 2em;
  transition: background-position 0.2s linear;
}

main div.common-link-buttonbutton-gold > a , main div.common-link-button.button-gold > span {
background-color:#AF9D85;
}


main div.common-link-button > a:hover , main a:hover div.common-link-button > span {
  background-position:top 50% right 1em;
}


/* -767px */

@media(max-width:767px){

main div.common-link-button {
display:block;
padding-top:2vw;
padding-bottom:2vw;
}

main div.common-link-button > a , main div.common-link-button > span {
display:inline-block;
text-align:left;
padding-left:2em;
background-color:#B7212B;
width:64vw;
height:16vw;
line-height:16vw;
border-radius:8vw;
font-size:4.2vw;
font-weight:700;
letter-spacing:0.1em;
color:#fff;

background-color:#B7212B;
  background-size:4.8vw 4.8vw;
}





}






/* Special contents */

main #top-special-contents{
padding-bottom:75px;
}

main #top-special-contents h2{
margin-top:40px;
margin-bottom:30px;
display:block;
text-align:center;
font-size:32px;
font-weight:bold;
line-height:1.4em;
letter-spacing:0.10em;
color:#464344;
}

main #top-special-contents h2::before{
content: "";
display: block;
height: 47px;
background-image: url("../../assets/img/common/special_icon.svg");
background-position: center;
background-repeat:no-repeat;
background-size: contain;
margin-bottom:16px;
}



main #top-special-contents ul{
list-style:none;
margin:0 auto 10px auto;
padding:0;
max-width:1060px;
text-align:left;
display: flex;
flex-wrap: wrap;
gap:40px;
}


main #top-special-contents  ul li{
margin:0;
padding:0;
display:inline-block;
width:235px;
height:200px;
background:#fff;
vertical-align:top;
text-align:left;
}


main #top-special-contents  ul li a p{
margin:0;
padding:0;
color:#464344;
font-size:14px;
font-weight:500;
letter-spacing:0.045em;
line-height:1.6em;
transition: opacity 0.4s ease;
}

main #top-special-contents  ul li a:hover p{
opacity:0.7;
}


main #top-special-contents  ul li h3{
font-size:16px;
margin:0 0 1em 0;
padding:0;
width:235px;
height:140px;
border-radius:8px;
overflow:hidden;
position: relative;
}

main #top-special-contents ul li h3::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* 内側に枠線を引く */
  box-shadow: inset 0 0 0 2px rgba(70,68,67,0.12);
  border-radius: 8px;
  pointer-events: none; /* 下の画像のクリックを邪魔しない */
  z-index: 1;           /* 画像より上に配置 */
}


main #top-special-contents  ul li h3 img{
width:100%;
height:100%;
transition: opacity 0.4s ease;
}

main #top-special-contents  ul li a:hover h3 img{
opacity:0.7;
}






@media(max-width:1023px){


/* Special contents */

main #top-special-contents{
padding-bottom:65px;
}

main #top-special-contents h2{
margin-top:0px;
margin-bottom:40px;
font-size:28px;
}

main #top-special-contents h2::before{
height: 48px;
margin-bottom:18px;
}



main #top-special-contents ul{
max-width:944px;
display: flex;
flex-wrap: wrap;
gap:32px;
}


main #top-special-contents  ul li{
display:block;
width:212px;
height:208px;
}

main #top-special-contents  ul li h3{
margin:0 0 1em 0;
padding:0;
width:212px;
height:126.3px;
}

main #top-special-contents ul li a p{
letter-spacing:0.04em;
}




}

@media(max-width:1000px){
main #top-special-contents ul{
max-width:454px;
justify-content: space-between;
gap:20px;
}
}


@media(max-width:767px){


main #top-special-contents{
width:100%;
padding-bottom:11vw;
}

main #top-special-contents h2{
margin-top:0vw;
margin-bottom:3vw;
display:block;
text-align:center;
font-size:6.4vw;
font-weight:bold;
line-height:1.4em;
letter-spacing:0.08em;
color:#464344;
}

main #top-special-contents h2::before{
content: "";
display: block;
height: 10.4vw;
background-image: url("../../assets/img/common/special_icon.svg");
background-position: center;
background-repeat:no-repeat;
background-size: contain;
margin-bottom:2vw;
}


main #top-special-contents ul{
list-style:none;
margin:0 auto 0 auto;
padding:0 5% 0 5%;
max-width:100%;
gap:0;
}


main #top-special-contents  ul li{
margin:0;
padding:0;
display:inline-block;
width:42.4vw;
height:41.8vw;
background:#fff;
vertical-align:top;
text-align:left;
margin:4vw 0 2vw 0;
}


main #top-special-contents ul li a p{
margin:0;
padding:0;
color:#464344;
font-size:3.3vw;
font-weight:500;
letter-spacing:0.05em;
line-height:1.4em;
transition: opacity 0.2s ease;
}

main #top-special-contents  ul li a:hover p{
opacity:0.7;
}


main #top-special-contents  ul li h3{
margin:0 0 0.75em 0;
padding:0;
width:42.4vw;
height:25.1vw;
}

main #top-special-contents  ul li h3 img{
width:42.4vw;
height:25.1vw;
transition: opacity 0.2s ease, transform 0.2s ease;
}

main #top-special-contents  ul li a:hover h3 img{
transform: scale(1.1);
opacity:0.7;
}

}



/* MVアニメーション */
#top-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #fff;
  padding: 38px 0 20px;
  opacity: 0; 
  transition: opacity 0.3s ease;
}

#top-slider hr{
visibility:hidden;
height:0;
margin:0;
}


/* 768px 〜 1023px：上部マージン 80px */
@media screen and (max-width: 1023px) and (min-width: 768px) {
  #top-slider { margin-top: 120px !important; }
}

#top-slider ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

#top-slider li {
  flex-shrink: 0;
  width: 1060px;
  height: 520px;
  margin: 0 30px; 
  border-radius: 16px;
  overflow: hidden;
  opacity: 0; /* 基本は非表示 */
  transition: opacity 0.6s ease, margin 0.6s ease;
}

#top-slider li img {
  width: 100%;
  height: 100%;
  object-fit: fill !important; 
  display: block;
  transform: scale(0.92);
  transition: transform 0.6s ease;
  will-change: transform;
  border-radius: 16px;
}

#top-slider li a img{
  transition: opacity 0.4s ease!important;
}
#top-slider li.is-active a img{
  transition: opacity 0.4s ease!important;
}
#top-slider li a:hover img{
 opacity:0.8;
}

 


/* アクティブとその両隣のみを表示 */
#top-slider li.is-active,
#top-slider li.is-active + li,
#top-slider li:has(+ li.is-active) {
  opacity: 0.4;
}

/* 1080px以上：.is-activeにマイナスマージン -40px */
@media screen and (min-width: 1024px) {

#top-slider li {
  width: 1060px;
  /* 隙間を最小限（元のデザインに合わせて0〜10px程度）に固定します */
  margin: 0 -2px !important; 
  flex-shrink: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
  will-change: transform;
  opacity: 0.5;
  position: relative;
}

/* アクティブ時 */
#top-slider li.is-active {
  opacity: 1;
  /* margin: 0 -40px; は削除したままにします */
}
}



#top-slider li.is-active img { transform: scale(1); }

/* 1023px未満 〜 768px */
@media screen and (max-width: 1023px) and (min-width: 768px) {

  #top-slider li {
    width: calc(100vw - 80px);
    height: calc((100vw - 80px) * (1040 / 2120));
    margin: 4px 25px 0 25px;
  }

/*モダンブラウザ用横幅計算*/
  #top-slider{
container-type: inline-size;
  container-name: base_area;
}
@container base_area (min-width: 0px) {
  #top-slider li {
    width: calc(100cqw - 80px);
    aspect-ratio: 2120 / 1040;
    height: auto;
    margin: 4px 20px 0 20px;
  }
}

  #top-slider li.is-active { opacity: 1; }
  #top-slider li:not(.is-active) { opacity: 0; }
}




/* 767px以下 (SP表示) */
@media screen and (max-width: 767px) {
  #top-slider { padding-bottom: 0; margin-top: 48px; }
  #top-slider li {
    width: 100vw !important;
    height: 100vw !important; /* 正方形の枠を固定 */
    margin: 0 !important;
    border-radius: 0;
    opacity: 0;
    overflow: hidden;
    position: relative;

#top-slider a {
  -webkit-tap-highlight-color: transparent; /* タップ時の青い枠を消す */
  user-select: none;                       /* テキスト選択を防ぐ */
  -webkit-user-drag: none;                 /* 画像のドラッグを防ぐ */
}

#top-slider li img {
  pointer-events: none; /* 画像がクリックイベントを横取りするのを防ぐ */
}

  }
  #top-slider li.is-active { opacity: 1; }

  /* 画像の歪みと出し分けを修正 */
  #top-slider li img { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* 縦横比を維持して枠を埋める */
    transform: none !important; 
    border-radius: 0;
  }

  /* PC/SP 出し分けの強制 */
  .mv-pc { display: none !important; }
  .mv-sp { display: block !important; }
}
/* PC表示（1024px以上）のデフォルト */
.dot-container {
  position: absolute;
  left: 49%;
  bottom: 55px; /* PCは画像の下あたりに出る設定 */
  transform: translateX(400px); 
  display: flex;
  gap: 16px;
  z-index: 100;
}

/* 1023px以下（タブレット・SPすべて） */
@media screen and (max-width: 1023px) {
  .dot-container {
    left: auto;
    right: 80px;
    bottom: 55px;
    transform: none;
  }
}

/* 767px以下 (SP表示) */
@media screen and (max-width: 767px) {
  .dot-container {
display:none;
  }
}

.dot-container .dot { 
  width:         16px; 
  height: 16px; 
  background: rgba(0 , 0 , 0 , 0.05);
  border: 2px solid #fff; 
  border-radius: 50%; 
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(0 , 0 , 0 ,0.05);
}

/* 現在地のスタイル */
.dot-container .dot.is-current { 
  background:#B7212B;
  border: 2px solid #B7212B;
}
.no-transition, .no-transition * { transition: none !important; }



main #top-news-list .special-news dl dd span#infomsg a{
    display: inline-block;
    font-size: 16px;
    letter-spacing: 0.04em;
    color: #464344;
    font-weight: 500;
    padding-left: 1em;
}