/* CSS Document */
section{

}

.backstripe{
background: repeating-linear-gradient(
  135deg,       /* ← 左下がり方向 */
  #C9DBF1,
  #C9DBF1 2px,  /* ← 色1の幅：狭くする */
  #FFFFFF 3px,
  #FFFFFF 7px  /* ← 色2の幅：狭くする */
);
margin: 1rem 0;
padding: 2rem 1rem 0rem 1rem;
height: 160px;
}

.h2mass{
height: 283px;
margin-top: 4rem;
}
.backstripe h2{
background: #FFFFFF;
line-height: 22px;
padding: 1rem;
padding-left: 5rem;
margin-bottom: 1em;
color: #007bff;
font-weight: 700;
position: relative;
border-top-left-radius: 999px;
border-bottom-left-radius: 999px;
font-size: 1.8rem;
}
.backstripe h2::before{
content: "";
background: url(../../../img/page/LP/correspondence/h2_icon.webp) no-repeat;
background-size: auto;
width: 22px;
height: 40px;
background-size: contain;
position: absolute;
left: 18px;
top: 30%;
}

.h2img{
text-align: center;
position: relative;
}

.h2img img{
margin: 0 auto; 
width: 290px;
}

.correspondence p{
line-height: 22px;
margin: 1.5em 3em 0;
}

.correspondence p span{
color: #F7A324;
font-weight: 700;
}
.tabs{
margin-top: 50px;
display: flex;
width: fit-content;
margin: 6rem auto 1em;
}
.tab-content {
display: none;
background-color: #FFFFFF;
border: 1px solid #33333380;
border-radius: 1rem;
color: #333;
opacity: 0;
transform: translateX(30px);
padding: 1rem 1rem 2rem;
height: 250px;
width: 290px;
margin: 0 auto;

}
.tab-content.active {
display: block;
opacity: 1;
transform: translateX(0);
}
/* アクティブ状態 */
.tab-button.active {
background-color: #007bff;
color: white;
bottom: -5px;
position: relative;
}

.tab-content p{
margin: 0;
}

.tab-button {
padding: 10px;
margin-right: 2px;
border: 2px solid #007bff;
border-radius: 9999px;
background-color: white;
font-weight: bold;
cursor: pointer;
transition: all 0.3s;
line-height: 1.2;
width: 95px;
}

.schoollisth2 {
display: inline-block;
position: relative;
background-color: #f89e36;
border-radius: 6px;
padding: 1em 16px 1em 4em;
margin-bottom: 16px;
width: 330px;
margin-top: 6rem;
left: 50%;
transform: translate(-50%, -50%);
}

.schoollisth2 h2 {
margin: 0;
color: #fff;
font-size: 14px;
font-weight: bold;
text-align: left;
font-size: 2rem;
text-shadow: 2px 2px 0 #8458009c;
}
.schoollisth2::before {
content: "";
background: url(../../../img/page/LP/correspondence/h2_icon_schoollist.webp) no-repeat;
background-size: auto;
width: 33px;
height: 31px;
background-size: contain;
position: absolute;
left: 30px;
top: 50%;
transform: translate(-50%, -50%);
}
.schoollisth2::after {
content: "";
position: absolute;
left: 20px; /* 三角の位置：左から20px */
bottom: -8px; /* 三角をボックスの下に表示 */
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-top: 8px solid #f89e36;
}
.univ-card {
display: block;
width: 85%;
background-color: #fff;
border-radius: 12px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
overflow: hidden;
font-family: sans-serif;
text-align: center;
text-decoration: none;
color: inherit;
transition: box-shadow 0.2s ease;
padding-bottom: 2rem;
margin: 1em auto 0;
height: 350px;
}

.univ-card:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.univ-image {
background-color: #ddd;
width: 100%;
}
.univ-image img{
 width: 100%;      /* 親の幅に合わせて拡大 */
  height: auto;     /* 縦横比を維持 */
  display: block;   /* 余計な隙間を消す */
}
.univ-content {
padding: 12px;
}

.univ-name {
font-size: 1.8rem;
color: #007bff;
margin: 8px 0;
text-align: center;
}

.univ-desc {
font-size: 12px;
color: #333;
line-height: 1.4;
margin: 0!important;
text-align: left;

}
.blue-button {
background-color: #1976d2;
color: white;
border: none;
border-radius: 9999px; 
padding: 3rem;
font-size: 14px;
text-decoration: none; 
display: inline-block;
cursor: pointer;
font-size: 1.8rem;
font-weight: 700;
width: 330px;
}

.blue-button:hover {
background-color: #1565c0;
}
.seikyuubtn{
margin: 2em auto 0em;
text-align: center;
padding-bottom: 4rem;
}
.osusumeback{
background-color: #F8F8F8;
margin-top: 8rem;
}

@media screen and (min-width:768px) {

.topicPathWrap{
width: 1100px;
margin: 0 auto;
}
h1.forPc{ 
text-align: center;
}
h1 img{
width: 1200px;
}
.backstripe {
margin: 0 3rem;
}
.backstripe h2{
font-size: 2rem;
width: 970px;
line-height: 1.5;
padding-left: 7rem;
}
.h2img img{
width: 350px;
}
.correspondence p{
margin: 7rem 90px 0;
line-height: 32px;
}
.backstripe{
height: 200px;
}
.h2mass{
margin-top: 8rem;
}
.tabs{
margin: 8rem auto 1rem;
column-gap: 1em;
}
.tab-button{
width: 220px;
padding: 20px;
font-size: 1.8rem;
}
.tab-content{
width: 810px;
height: 160px;
}
.tab-content p{
margin: 0;
}
.schoollisth2{
width: 970px;
}
.univ-cardlist{
display: grid;
grid-template-columns: repeat(2, auto);  
width: fit-content;
margin: 0 auto;
}
.univ-card{
margin: 2em 1rem 0;
width: 300px;
height: 390px;
}
.univ-image{
height: 225px;
}
p.univ-desc{
font-size: 1.4rem;
}
.schoollisth2{
margin-bottom: 0rem;  
margin-top: 6rem;
}
.osusumeback{
margin-top: 8rem;
}
.backstripe h2::before{
left: 50px;
top: 50%;
transform: translate(-50%, -50%);
width: 35px;
height: 35px;
}
.schoollisth2::before {
left: 37px;
}
.tab-button.active{
  font-size: 1.8rem;
}
}