body{
  background: #F7F9FC
}

/* header */
.header-top{
  position: absolute;
  width: 100%;
  height: 0.5%;
  top: 0%;
  left: 0%;
  background: #FFC107;
}
.header{
  position: absolute;
  width:100%;
  height: 40%;
  top: 8%;
  left: 0%;
  background: #90CAF9;
}
.header-img{
  position: absolute;
  width: 10%;
  height: 7.5%;
  top: 0.5%;
}
.tca-logo{
  right: 25%;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url(../img/school.svg);
  cursor: pointer;
  height: 6.5%;
  width: 5%;
  top: 2%;
}
.e-ten-logo{
  left: 3%;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url(../img/e-ten-logo.png);
  cursor: pointer;
}
.renraku{
  position: absolute;
  font-weight: bold;
  font-size: 120%;
  right: 0%;
  width: 25%;
}
.renraku0{
  top: 0.8%;
}
.renraku1{
  top: 4.5%;
}

.header-txts{
  position: absolute;
  width: 40%;
  height: 40%;
  top: 8%;
  left: 15%;
  background-image: url(../img/e-ten-logo1.png);
  background-repeat: no-repeat;
  background-size: contain;
}
.header-txt{
  position: absolute;
  color: white;
  font-weight: bold;
}
.header-txt0{
  font-size: 200%;
  top: 5%;
}
.header-txt1{
  font-size: 200%;
  top: 18%;
}

.e-ten-txts{
  position: absolute;
  width: 55%;
  height: 36%;
  top: 12%;
  left: 40%;
}
.e-ten-txt{
  color: white;
  font-weight: bold;
  font-size: 260%;
  opacity: 50%;
}

.header-student-img{
  position: absolute;
  width:40%;
  height: 40%;
  top: 8%;
  right: 10%;
  background-image: url(../img/student.png);
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(-1, 1);
  /* opacity: 50%; */
}
/* left */
.left{
  position: absolute;
  width: 15%;
  height: 47%;
  top: 48%;
  left: 0%;
  background: #EEEEEE;
  overflow-y: auto;
}


/* years */
.years{
  position: absolute;
  width: 100%;
  height: 20%;
  top: 0%;
}
.years-txt{
  font-size: 100%;
}
.choose-year{
  font-size: 100%;
}
/* 学科 */
.majour{
  position: absolute;
  width: 100%;
  height: 30%;
  top: 15%;
  left: 0%;
}
.majour-txt{
  font-size: 100%;
}
.select-majour{
  width: 100%;
  font-size: 100%;
}
.submit{
  position: relative;
  width: 100%;
  top: 15%;
}

/* under */
.under{
  position: absolute;
  width: 85%;
  height: 47%;
  top: 48%;
  right: 0%;
  background: #DDFFFF;
}
.under-majour-txt{
  position: absolute;
  width: 100%;
  height: 10%;
  top: 0%;
  right: 0%;
  background: #AAFFFF;
}
.show_area{
  position: absolute;
  width: 100%;
  height: 90%;
  top: 10%;
  right: 0%;
  overflow-y: auto;
}
.show{
  position: absolute;
  width: 160px;
  height: 130px;
  text-align: center;
  background: #EEEEEE;
}
.thumbnail{
  position: absolute;
  width: 160px;
  height: 90px;
  bottom: 0%;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url("../students/22408001/thumbnail.jpg");
}
.under-majour-nums{
  position: absolute;
  width: 100%;
  height: 100%;
  top: 5%;
}

/* bottom */
.bottom{
  position: absolute;
  width: 100%;
  height: 5%;
  bottom: 0%;
  left: 0%;
  font-size: 70%;
  text-align: center;
}

/* contents */
.contents{
  position: absolute;
  width: 90%;
  left: 5%;
  height: 87%;
  top: 8%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ===== links grid ===== */
.contents-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.link-thumb-card {
  cursor: pointer;
  position: relative;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-thumb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.thumb-inner {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.link-caption {
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 14px;
  padding: 6px 8px;
  text-align: center;
}

/* モバイル1列対応 */
@media (max-width: 640px) {
  .contents-links {
    grid-template-columns: 1fr;
  }
}
