/***************************************************
information
  filename : mypage_top.css;
***************************************************/
@media screen and (max-width:800px){
}

.mytop_det #main{
  width: 100%;
}

.mytop_det #contents{
  padding-top: 0;
}

.mytop_Box{
  /* background: linear-gradient(90deg, var(--app-main-cr1), var(--app-main-cr2)); */
  padding: 50px 10%;
  display: grid;
/* 行を9: 8:20の比率で分割 */
  grid-template-rows: 9fr 8fr 20fr;
    
    /* 列を1:2の比率で分割 */
  grid-template-columns: 1fr 2fr;
  height: calc(100dvh - 40px);
}
@media screen and (max-width:800px){
  .mytop_Box{
    background: linear-gradient(135deg, var(--app-main-cr1), var(--app-main-cr2));
    padding: 75px 5% 30px;
  }
}


/****************** ニュース ******************/

.mytop_det .mytop_news{
  margin-bottom: 35px;
  width: 100%;
}
@media screen and (max-width:800px){
  .mytop_det .mytop_news .ListBox{
    padding: 0;
    margin-bottom: 0;
  }
}

.mytop_det .mytop_news dl.clmDetail.clear_fix{
  display: flex;
  gap: 30px;
  align-items: center;
  padding: 0;
  padding-top: 15px;
  padding-bottom: 5px;
  margin: 0;
  border-bottom: 1px solid #fff;
}
@media screen and (max-width:800px){
  .mytop_det .mytop_news dl.clmDetail.clear_fix{
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
}

.mytop_det .mytop_news .ListTSgle .timeArea{
  align-items: center;
  gap: 3px;
}

.mytop_det .mytop_news p.time{
  color: #fff;
  font-size: 16px;
  padding: 0;
}

.mytop_det .mytop_news p.ico{
  padding-bottom: 3px;
}

.mytop_det .mytop_news p.ico span.BgPnc{
  color: var(--BgPnc-bg);
  background: var(--BgPnc-txt);
}

.mytop_det .mytop_news dd.title_area{
  padding: 5px;
}
@media screen and (max-width:800px){
  .mytop_det .mytop_news dd.title_area{
    padding: 0 0 7px;
  }
}

.mytop_det .mytop_news dd.title_area .ListMainTitle a{
  color: #fff;
  font-size: 18px;
}

.mytop_det .CautTxt{
  color: #fff;
  background: transparent;
  text-align: left;
  border-bottom: 1px solid #fff;
  padding-left: 0;
}


/****************** 進捗 ******************/

.mytop_det .mytop_progress{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
@media screen and (max-width:800px){
  .mytop_det .mytop_progress{
    flex-direction: column;
  }
}

.mytop_det .mytop_progressBox{
  width: 50%;
}
@media screen and (max-width:800px){
  .mytop_det .mytop_progressBox{
    width: 100%;
  }
}

.mytop_det .mytop_progressTi{
  display: flex;
  color: #fff;
  width: 100%;
  justify-content: space-between;
  margin-bottom: 10px;
}
@media screen and (max-width:800px){
  .mytop_det .mytop_progressTi{
    flex-direction: column;
  }
}

.mytop_det .mytop_progressTi h2{
  font-size: 24px;
}

.mytop_det .mytop_progressTi .deadline{
  font-weight: bold;
}

.mytop_det .mytop_progressGrpBox{
  background: #fff;
  border-radius: 5px;
  padding: 15px 25px;
}

.mytop_det .mytop_progressGrp{
  display: flex;
  align-items: center;
  gap: 15px;
}

.mytop_det .progress-bar {
  width: 100%;
  height: 20px;
  background-color: #EDF0F5;
  border-radius: 5px;
}

.mytop_det .progress {
  height: 100%;
  background-color: #00A8A8;
  border-radius: 5px;
}

.mytop_det .mytop_progressBox p{
  font-size: 17px;
}

.mytop_det .mytop_progressBox .subTi{
  color: #7C7C7C;
  font-weight: bold;
}

.mytop_det .progress-number{
  font-size: 40px;
  font-weight: bold;
}
@media screen and (max-width:800px){
  .mytop_det .progress-number{
    font-size: 25px;
  }
}


/****************** 教材一覧 ******************/

.mytop_det .con_list_text{
  width: 80%;
  margin: 75px auto;
}
@media screen and (max-width:800px){
  .mytop_det .con_list_text{
    width: 90%;
  }
}

.mytop_det .subCate_list{
  padding: 25px 0;
  margin: 50px auto;
  background: #fff;
  border-radius: 8px;
}

.mytop_det h2.subCateTiInn{
  font-size: 3.0rem;
  background: transparent;
  text-align: left;
  border: none;
  margin-left: 3.5rem;
  padding: 0 25px;
  position: relative;
}
@media screen and (max-width:800px){
  .mytop_det h2.subCateTiInn{
    font-size: 2.5rem;
    margin-left: 3.0rem;
  }
}

.mytop_det h2.subCateTiInn:visited,
.mytop_det h2.subCateTiInn:hover{
  opacity: 0.6;
}

.mytop_det h2.subCateTiInn::before{
  content: "";
  background-image: url(../../images/template/icon_text.png);
  background-size: 3.0rem;
  display: inline-block;
  width: 3.0rem;
  height: 3.0rem;
  position: absolute;
  top: 50%;
  left: -1.5rem;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transition: transform .4s;
}
@media screen and (max-width:800px){
  .mytop_det h2.subCateTiInn::before{
    background-size: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    left: -1.0rem;
  }
}

.mytop_det h2.subCateTiInn::after{
  content: "";
  border-top: 2px solid var(--app-main-cr1);
  border-left: 2px solid var(--app-main-cr1);
  display: inline-block;
  width: 13px;
  height: 13px;
  transform: translate(-50%, -50%) rotate(-135deg);
  position: absolute;
  top: 50%;
  right: 2.0rem;
  transition: transform .4s;
}
@media screen and (max-width: 540px){
  .mytop_det h2.subCateTiInn::after{
    width: 10px;
    height: 10px;
  }
}

.mytop_det h2.subCateTiInn.is-open::after{
  border-top: none;
  border-left: none;
  border-bottom: 2px solid var(--app-main-cr1);
  border-right: 2px solid var(--app-main-cr1);
  top: 60%;
}

.mytop_det .sec_list{
  padding: 0;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  opacity: 0;
  height: 0;
  transition: .8s;
}

.mytop_det .sec_list.is-open{
  padding-top: 15px;
  opacity: 1;
  height: auto;
  transition: .8s;
}

.mytop_det .sec_list a{
  text-decoration: none;
  color: #0E84D1;
  display: block;
  margin: 0 auto;
  padding: 15px 25px 15px 40px;
  position: relative;
}

.mytop_det .sec_list a:visited,
.mytop_det .sec_list a:hover{
  background: #F9F9F9;
}

.mytop_det .sec_list a::before{
  content: "";
  background-image: url(../../images/template/icon_secTi.png);
  background-size: 0.7rem;
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  position: absolute;
  top: 50%;
  left: 25px;
  transform: translate(-50%, -50%) rotate(-135deg);
  transition: transform .4s;
}



/* ===== 学習ルート ===== */
.mytop_det .route {
  margin-bottom: 36px;
  max-width: 1080px;
  grid-row: 1;
  grid-column: 1 / 3; /* 1列目から3列目の手前まで（1〜2列目）*/
}

.mytop_det .route_title {
	font-size: 24px;
  line-height: 1.2;
	font-weight: 400;
	margin-bottom: 17px;
	color: #2a2a2a;
}

.mytop_det .route_cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
	width: calc(100% - 5px);
}

.mytop_det .route_card {
  height: 124px;
  width: 100%;
	background: #fff;
	border: 1px solid #3591D7;
	border-radius: 8px;
	overflow: hidden;
}
.mytop_det .route_head {
	background: #3591D7;
	color: #fff;
	padding: 9px 12px;
	font-weight: 400;
  width: 100%;
	display: flex;
  justify-content: center;
  align-items: baseline;
  font-size: 15px;
  margin: 0 auto;
  box-sizing: border-box;
}
.mytop_det .route_head span {
    display: inline-block;
    font-size: 24px;
    line-height: 1;
}
.mytop_det .route_body {
	padding: 3px 10px;
	color: #2a2a2a;
	font-size: 16px;
  font-weight: 400;
	min-height: 60px;
  height: calc(100% - 42px);
	display: flex;
  justify-content: center;
	align-items: center;
  text-align: center;
  line-height: 1.19;
  box-sizing: border-box;
}
.mytop_det .swiper-button-prev,
.mytop_det .swiper-button-next{
    display: none;
}

@media (max-width: 800px) {
  .mytop_det .route_title {
    font-size: 20px;
  }
.mytop_det .route_cards {
    display: flex;
    gap: 0;
  }
  .mytop_det .route_card {
    height: 104px;
    width: calc(100% - 78px);
    margin: 0 auto;
  }
  .mytop_det .route_head {
    padding: 10px;
    font-size: 12px;
  }
  .mytop_det .route_head span {
    font-size:  18px;
  }
  .mytop_det .route_body {
    font-size: 14px;
    height: calc(100% - 38px);
  }
  .mytop_det .swiper-button-prev,
  .mytop_det .swiper-button-next{
    display: flex;
    height: 25px;
    width: 25px;
    top: 50%;
    translate: 0 50%;
  }
  .mytop_det .swiper-button-prev img,
  .mytop_det .swiper-button-next img{
    height: 100%;
    width: 100%;
    object-fit: contain;
  }
  .mytop_det .swiper-button-prev{
    transform: rotate(180deg);
    left: 0;
  }
  .mytop_det .swiper-button-next{
    right: 0;
  }
  .mytop_det .swiper-button-prev::after,
  .mytop_det .swiper-button-next::after{
    display: none;
  }
}

/* ===== 累計学習時間（単語帳位置に表示） ===== */
.mytop_det .total_time {
	margin-bottom: 36px;
	grid-row: 2;
	grid-column: 1;
}
.mytop_det .total_time_title {
	font-size: 24px;
  line-height: 1.2;
	font-weight: 400;
	margin-bottom: 17px;
	color: #2a2a2a;
}
.mytop_det .total_time_values {
	background: #fff;
	border: 1px solid #EDEDED;
	border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 106px;
  width: 353px;
}
.mytop_det .total_time_value {
	font-size: 56px;
  line-height: 1.34;
	font-weight: 400;
	color: #3591D7;
}
.mytop_det .total_time_unit {
	margin-left: 13px;
  margin-top: 15px;
  line-height: 1.23;
	font-size: 27px;
  font-weight: 400;
	color: #3591D7;
}
@media (max-width: 800px) {
  .mytop_det .total_time_title {
    font-size: 20px;
  }
  .mytop_det .total_time_values {
    width: 100%;
    height: 101px;
    margin: 0 auto;
  }
  .mytop_det .total_time_value {
    font-size: 50px;
  }
  .mytop_det .total_time_unit {
    font-size: 24px;
  }
}

/* ===== 直近1週間 ===== */
.mytop_det .weekly {
  margin-bottom: 36px;
  grid-row: 3;
  grid-column: 1;
}
.mytop_det .weekly_title {
	font-size: 24px;
  line-height: 1.2;
	font-weight: 400;
	margin-bottom: 17px;
	color: #2a2a2a;
}
.mytop_det .weekly_graph {
  background: #fff;
	border: 1px solid #EDEDED;
	border-radius: 8px;
  width: 351px;
  height: 294px;
  padding: 16px;
}

@media (max-width: 800px) {
  .mytop_det .weekly_title {
    font-size: 20px;
  }
  .mytop_det .weekly_graph {
    width: 100%;
    height: auto;
    min-height: 326px;
    margin: 0 auto;
  }
}
/* 参考書/単語帳 進捗パーツ */
.mytop_det .text_progress {
    background: white;
    width: 100%;
    margin: 0 auto;
    grid-row: 2 / 4; /* 2行目から4行目の手前まで（2〜3行目） */
    grid-column: 2;
}

.mytop_det .text_progress_title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.mytop_det .text_progress_inner {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    grid-template-columns: 1fr;
	height: calc(100% - 60px);
    gap: 20px;
}

.mytop_det .progress-item {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 1fr;
    border: 1px solid #EDEDED;
    border-radius: 6px;
    padding: 0px 20px;
}

.mytop_det .subject-label {
    display: flex;
    align-items: center;
    min-width: 120px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    gap: 8px;
}

.mytop_det .subject-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mytop_det .progress-bar-container {
    flex: 1;
    position: relative;
    height: 14px;
    box-shadow: 0px 5px 9px #ccc;
    border-radius: 12px;
    overflow: hidden;
    transition: background-color 0.8s ease-in-out;
    background-color: #ffffff;
}

.mytop_det .progress-bar {
    height: 100%;
    border-radius: 12px;
    position: relative;
    transition: width 0.8s ease-in-out;
    width: 0%;
}

.mytop_det .percentage {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    min-width: 60px;
    text-align: right;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .mytop_det .text_progress {
        padding: 20px;
    }
    
    .mytop_det .progress-item {
        gap: 10px;
    }
    
    .mytop_det .subject-label {
        min-width: 100px;
        font-size: 13px;
    }
    
    .mytop_det .percentage {
        font-size: 14px;
        min-width: 50px;
    }
}