@import url('word-card.css');
@import url('quiz.css');

.top-nav-for-test {
	padding: 0.5rem 0;
	width: 100%;
   background: var(--header-bg);
	transition: all 0.3s ease;
	z-index: 100;
}
.menu-btn::after {
   content: url('https://i.postimg.cc/cJ6vTS5m/menu-blk-22.png'); /*いつも黒色*/
}
.header-nav-group {
   display: flex;
   gap: 1.25rem;
   align-items: center;
}
.header-nav {
   position: relative;
   padding: 0 0.5rem;
   border-left: 1px solid #888;
}
.header-nav .sub-menu {
   display: none;
   position: absolute;
   left: 0;
   top: 100%;
   width: 180px;
   padding: 0.75rem;
   margin-top: 0.5rem;
   box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
   border: 1px solid #dddddd;
   background: #fff;
   transition: 0.2s;
   z-index: 1;
}
.header-nav .sub-menu a {
   padding: 0.5rem;
   display: block;
   font-size: 0.875rem;
   color: #404a50;
   transition: 0.2s;
}
.header-nav .sub-menu a:hover, .header-nav .sub-menu a:focus {
   background: #dddddd;
}

.header-nav-btn {
   padding: 0.25rem 0 0.25rem 0.5rem;
   display: block;
   white-space: nowrap;
   overflow: hidden;
   letter-spacing: 5px;
   font-size: 1.1rem;
   font-weight: 500;
   color: #404a50;
   border-radius: 0.2rem;
   cursor: pointer;
}
.header-nav-btn i {
   font-size: 0.75rem;
   transition: 0.2s;
}

.header-nav-btn:hover, .header-nav-btn:focus {
   background: rgba(0, 0, 0, 0.0666666667);
}

.page-column > .l-container {
	display: flex;
	gap: 1rem;
}

.page-column--sidebar {
   flex: 0 0 15%;
}

/*--- Main ---*/
.test-intro {
   padding: 1.5rem 2rem;
   color: var(--primary-color-2);
   line-height: 1.4;
}
.test-intro h1 {
   padding: 1rem 0;
}

.test-summary {
   padding: 1rem 3rem;
   margin-bottom: 1rem;
}
.test-summary .btn {
   padding: 0.75rem 1rem;
   cursor: pointer;
   border: none;
   background: var(--accent-color-1);
   color: #fff;
}
.test-summary .btn::after {
   font-family: "Glyphicons Halflings";
   content: url('https://i.postimg.cc/FHdfWnx8/sort-down-24.png');
   float: right;
   margin-left: 15px;
   transition: 0.1s;
}
.test-summary .btn.collapsed::after {
   transform: rotate(-90deg) translate(2px, 3px);
}

.test-summary .btn:hover, .test-summary btn:focus {
   color: #fff;
   background: var(--accent-color-2);
}
.test-summary .collapse {
   padding: 0 2rem 2rem;
   overflow: hidden;
   background: #fff;
}

.table-about-test {
   margin: 1.5rem auto;
   overflow: hidden;
}
.table-about-test td {
   padding: 0.5rem;
   font-size: 0.875rem;
   line-height: 1.2;
   word-break: keep-all;
}
.table-about-test tr + tr {
   border-top: 1px dashed #999;
}

.link-about-test {
   margin: 1.5rem 0;
}
.link-about-test span {
   display: block;
   padding: 0.5rem 0;
}
.link-about-test p {
   margin-top: 0.75rem;
   line-height: 1.2;
   font-size: 1rem;
}

.button-opencard {
   box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.2);
}

.more-word-btn {
   margin: 3rem;
   text-align: center;
   overflow: hidden;
}
.more-word-btn .button-simple {
   font-size: 1.05rem;
}

#sample-study-plan {
   padding: 5rem 1rem;
}
#sample-study-plan h2 {
   margin: 0 1rem;
   font-weight: 600;
}
#sample-study-plan .small-note {
   margin: 1.5rem;
}

.sample-plan-wrapper {
   padding: 2rem;
}

.plan-steps li {
   display: grid;
   grid-template: "num num" "txt time";
   margin: 1rem 0;
   padding-bottom: 3rem;
   align-items: center;
   justify-content: space-between;
   gap: 0 1.5rem;
}
.plan-steps .number {
   grid-area: num;
   font-family: zen-maru-gothic, sans-serif;
   color: var(--primary-color-2);
   background: linear-gradient(120deg, #fff, var(--sub-color-1) 50%);
}
.plan-steps .text {
   grid-area: txt;
   line-height: 1.6;
   text-align: center;
   font-size: 0.95rem;
}
.plan-steps .time {
   grid-area: time;
   padding: 0.5rem 0.75rem;
   width: -moz-min-content;
   width: min-content;
   border: 1px dotted;
   font-family: zen-maru-gothic, sans-serif;
   font-weight: 500;
   line-height: 1.2;
   color: var(--primary-color-2);
}

.decor-image {
   padding: 2rem 2rem 0;
}
.decor-image {
   margin: auto;
}

.question-collection-wrapper {
   background: #fff;
   padding: 2rem 1rem;
}

.kakomon-documents p {
   font-size: 0.875rem;
}
.kakomon-documents .button {
   margin: 1rem 0;
}

.kakomon-online h2 {
   margin: 4rem 0 2rem;
   padding: 0.25em;
   font-size: 1.4rem;
   font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
   font-weight: 300;
   text-align: center;
   background: linear-gradient(155deg, rgba(251, 253, 255, 0.7450980392), var(--sub-color-1) 50%, #ffffff);
}

.kakomon-poster-list {
   padding: 1rem 0;
}
.kakomon-poster-list .list-item-link {
   margin-bottom: 3rem;
   padding: 1rem;
   border-radius: 1rem;
   border: 1px solid #d9c9dd;
   box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
   overflow: hidden;
   transition: 0.3s;
}
.kakomon-poster-list .item-link--img {
   -o-object-fit: fill;
   object-fit: fill;
   transition: 0.3s;
}
.kakomon-poster-list .item-link--title {
   display: block;
   margin: 2rem 1rem 1rem;
   color: var(--primary-color-1);
   font-weight: 600;
   line-height: 1.4;
   word-break: keep-all;
}

/*------------------ MOBILE & IPAD ------------------*/
@media (max-width: 767px) {
   .page-column > .l-container {
      padding: 0;
   }
   .page-column--main > *:not(:first-child) {
      padding: 0 1rem;
   }
   .container-bg-fill .bread-list {
      padding: 0.5rem 5vw;
   }
}

/*------------------ large TABLET ------------------*/
@media (min-width: 768px) {
   .top-nav-for-test {
      background: #fff;
      border-bottom: 1px solid #eee;
   }
   
   .test-intro {
	   padding: 2rem calc(1rem + 3vw);
   }

   .test-intro h1 {
      font-size: 1.8rem;
   }

   .decor-image img {
      margin-top: 1rem;
      max-width: 400px;
   }
   
   .kakomon-online h2 {
      font-size: 1.5rem;
   }
   
   .kakomon-poster-list {
      display: flex;
      flex-direction: row;
      gap: 2rem;
      justify-content: space-between;
   }

   .kakomon-poster-list .list-item-link {
      flex: 0 0 45%;
   }
   
}

/*------------------ PC ------------------*/
@media (min-width: 1280px) {
   .test-intro-wrapper {
      padding-top: 2rem;
      display: grid;
      grid-template-columns: 1fr 400px;
      justify-content: space-between;
      align-items: start;
   }
   .test-summary {
      padding: 1rem 3rem 1rem 0;
   }

   .word-list-wrapper{
      display: flex;
      justify-content: space-around;
   }
   .word-list-wrapper .word-list {
      flex: 0 0 45%;
   }
   .more-word-btn {
      margin: 2rem;
   }

   #sample-study-plan .small-note {
      text-align: right;
   }

   .plan-steps {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 4rem;
   }
   .plan-steps li {
      position: relative;
      padding: 1rem;
      grid-template: "num" "txt" "time";
      gap: 1rem;
      box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
      border-radius: 0.25rem;
      background: #fff;
   }
   .plan-steps li:not(:last-child)::after {
      position: absolute;
      bottom: 50%;
      left: calc(100% + 0.75rem);
      content: url("https://i.postimg.cc/k5589V1L/icons8-right-arrow-20.png");
   }
   .plan-steps .number {
      background: transparent;
   }
   .plan-steps .time {
      margin-top: 1rem;
      justify-self: center;
      width: -moz-max-content;
      width: max-content;
   }
}