.scroll-border {
  position: fixed;
  z-index: 3;
  bottom: 0;
  width: 100%;
  background-color: rgba(11, 87, 160, 0.8);
  padding: 15px 0 15px;
  box-sizing: border-box;
  transition: transform 0.6s ease;
  transform: translateY(100%);
  display: flex;
  justify-content: center;
}

.scroll-border.show {
  transform: translateY(0);
}

.scroll-border .btn {
  width: 400px;
  padding: 10px 0;
  margin-top: 0;
  color: #0B57A0;
  border: none;
}

header {
  border: none;
}

footer {

}

main img {
  width: 100%;
}

/* index
---------------------------------------- */

/* General styles */
#tenken {
  text-align: left;
}

/* Title styles */
#tenken #title {
  background-image: url("../img/img_BGtitle 2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 320px;
}

#tenken #title h1 {
  line-height: normal;
  font-size: 38px;
  max-width: 520px;
  width: 100%;
  margin: auto;
  color: #0B57A0;
  background: rgba(255,255,255,0.85);
  padding: 20px;
  border-radius: 5px;
}

#tenken #title h1::before {
  content: '';
  display: block;
  margin: auto;
  width: 220px;
  padding-top: 50px;
  margin-bottom: 3px;
  background-image: url("../img/Ziaino_logo.png");
  background-size: 220px auto;
  background-position: center;
  background-repeat: no-repeat;
}

/* 塩タブレット注釈 */
.shio_tablet {
  font-size: 16px;
  text-align: left;
  margin: 8px 0 0 0px;
}

@media (max-width: 768px) {
  main>.content {
    width: calc(100% - 50px);
    max-width: 1118px;
    padding: 30px 0 20px 0;
    margin: 0 auto;
  }
  #tenken #title h1 {
    font-size: 30px;
    width: calc(100% - 50px);
  }
  #tenken #title h1::before {
    content: '';
    display: block;
    margin: auto;
    width: 220px;
    padding-top: 50px;
    margin-bottom: 3px;
    background-image: url("../img/Ziaino_logo.png");
    background-size: 220px auto;
    background-position: center;
    background-repeat: no-repeat;
  }
  .shio_tablet {
    font-size: 13px;
  }
}

@media (max-width: 500px) {
  #title {
    width: 100%;
    padding: 50px 0;
  }
  #tenken #title {
    height: 200px;
  }
  #tenken #title h1 {
    font-size: 24px;
    width: calc(100% - 50px);
  }
  #tenken #title h1::before {
    content: '';
    display: block;
    margin: auto;
    width: 170px;
    padding-top: 50px;
    margin-bottom: 3px;
    background-image: url("../img/Ziaino_logo.png");
    background-size: 170px auto;
    background-position: center;
    background-repeat: no-repeat;
  }
}

/* Section 1 styles */
#tenken #sec1 {
  max-width: 1118px;
  display: flex;
  height: auto;
}

/* Section 1 - Recommendation section */
#tenken #sec1 .osusume {
  width: 100%;
  padding-left: 350px;
  margin-bottom: 60px;
  background-image: url("../img/teiki_img.png");
  background-size: auto 280px;
  background-position: left top;
  background-repeat: no-repeat;
}

/* Section 1 - Heading styles */
#tenken #sec1 h3 {
  font-size: 24px;
  text-align: left;
  margin-bottom: 24px;
}

/* Section 1 - Service section */
#tenken #sec1 .survice {
  max-height: 500px;
  margin-bottom: 10px;
}

#tenken #sec1 .top {
  margin-bottom: 10px;
}

#tenken #sec1 p {
  font-size: 18px;
  text-align: left;
  line-height: 30px;
}

#tenken #sec1 .hosoku {
  font-size: 14px;
}

#tenken #sec1 .hosoku,
#tenken #sec1 span {
  text-decoration: underline;
}

/* Section 1 - Links */
#tenken #sec1 a {
  float: left;
  color: #0B57A0;
  border-color: #0B57A0;
  line-height: 2em;
}

/* Responsive styles for smaller screens */
@media (max-width: 768px) {
  #tenken #sec1 .osusume {
    width: 100%;
    padding: 0;
    background-image: none;
    margin-bottom: 20px;
  }
  #tenken #sec1 .osusume::before {
    content: '';
    display: block;
    width: 100%;
    padding-top: 230px;
    margin-bottom: 20px;
    background-image: url("../img/teiki_img.png");
    background-size: cover;
    background-position: center 75%;
    background-repeat: no-repeat;
  }
  #tenken #sec1 h3 {
    font-size: 18px;
    text-align: left;
    margin-bottom: 15px;
    line-height: 1.4;
  }
  #tenken #sec1 .survice {
    max-height: 500px;
    margin-bottom: 10px;
  }
  #tenken #sec1 .top {
    margin-bottom: 7px;
  }
  #tenken #sec1 p {
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
    letter-spacing: .05rem;
  }
  #tenken #sec1 .hosoku {
    font-size: 12px;
    margin: 8px 0 30px;
  }
  #tenken #sec1 a {
    float: none;
    margin: auto;
    text-align: center;
    color: #0B57A0;
    border-color: #0B57A0;
    line-height: 2em;
  }
}

@media (max-width: 410px) {
  #tenken #sec1 h3 {
    font-size: 17px;
    white-space: nowrap;
    text-align: left;
    margin-bottom: 15px;
    line-height: 1.4;
  }
}

/* General styles */
#tenken {
  text-align: left;
}

/* Section 2 styles */
#tenken #sec2 {
  max-width: 1118px;
  margin-bottom: 60px;
}

#tenken #sec2 .main_plan {
  display: flex;
  flex-flow: nowrap;
  justify-content: space-between;
  column-gap: 20px;
}

#tenken #sec2 > h2 {
  font-size: 24px;
}

#tenken #sec2 article {
  flex: 0 1 820px;
}

#tenken #sec2 h3 {
  text-align: center;
  font-size: 36px;
  line-height: 2em;
  max-width: 550px;
  width: 100%;
  letter-spacing: 1.2px;
  margin: 10px auto 30px;
}

#tenken #sec2 .hinban {
  flex: 0 1 280px;
  border: solid 1px #333;
  border-radius: 10px;
  padding: 55px 20px;
  height: 430px;
}

#tenken #sec2 .hinban h4 {
  font-size: 24px;
  line-height: 30px;
  margin-bottom: 10px;
}

#tenken #sec2 .hinban p {
  font-size: 24px;
  line-height: 34px;
}

/* Course type styles */
#tenken #sec2 .course_type {
  display: flex;
  flex-flow: nowrap;
  justify-content: space-between;
  align-items: center;
  background: #DDEEFF;
  border: 1px solid #333;
  border-radius: 10px;
  height: 130px;
  margin-bottom: 0px;
  color: #0B57A0;
}

#tenken #sec2 .course_type:first-of-type {
  margin-bottom: 20px;
}

#tenken #sec2 .course_type:nth-of-type(2) {
  margin-bottom: 20px;
}

#tenken #sec2 .course_type .year {
  flex: 0 1 500px;
  text-align: start;
  padding-left: 80px;
  border-right: 1px dotted #ccc;
}

#tenken #sec2 .course_type .year li:last-of-type p {
  font-size: 18px;
}

#tenken #sec2 .course_type .mn {
  flex: 0 1 300px;
  padding-left: 10px;
}

#tenken #sec2 .course_type .year h2 {
  font-size: 32px;
  line-height: 28px;
  margin-bottom: 8px;
}

#tenken #sec2 .course_type .year p {
  text-indent: -2px;
  line-height: 28px;
  font-size: 20px;
}

#tenken #sec2 .course_type .year li:last-of-type p {
  line-height: 28px;
  text-indent: 0px;
  font-size: 18px;
}

#tenken #sec2 .course_type .mn h2 {
  font-size: 38px;
}

#tenken #sec2 .course_type .mn h2 > span {
  font-size: 18px;
  color: #000;
}

#tenken #sec2 .course_type .mn p {
  margin-bottom: 16px;
  font-size: 18px;
  color: #000;
}

#tenken #sec2 .hinban .sp_layout p {
  line-height: 40px;
}

/* Responsive styles */
@media (max-width: 1000px) {
  #tenken #sec2 > h2 {
    font-size: 20px;
  }
  #tenken #sec2 .hinban h4 {
    font-size: 22px;
    margin-bottom: 0px;
  }
  #tenken #sec2 .hinban p {
    font-size: 22px;
  }
  #tenken #sec2 .course_type .year {
    padding-left: 40px;
  }
  #tenken #sec2 .course_type .year h2 {
    font-size: 26px;
  }
  #tenken #sec2 .course_type .year p {
    font-size: 16px;
  }
  #tenken #sec2 .course_type .year li:last-of-type p {
    font-size: 14px;
  }
  #tenken #sec2 .course_type .mn {
    flex: 0 1 410px;
    padding-left: 0;
  }
  #tenken #sec2 .course_type .mn h2 {
    font-size: 26px;
  }
  #tenken #sec2 .course_type .mn p {
    font-size: 16px;
  }
  #tenken #sec2 .course_type .mn h2 > span {
    font-size: 13px;
  }
}

@media (max-width: 850px) {
  #tenken #sec2 > h2 {
    font-size: 16px;
  }
  #tenken #sec2 h3 {
    font-size: 20px;
    margin: 5px auto 10px;
  }
  #tenken #sec2 .hinban {
    padding: 10px;
    height: 130px;
  }
  #tenken #sec2 .hinban .sp_layout {
    display: flex;
    flex-flow: wrap;
    justify-content: flex-start;
    align-items: center;
    white-space: nowrap;
  }
  #tenken #sec2 .hinban .sp_layout p {
    flex: 0 1 25%;
    line-height: 28px;
  }
  #tenken #sec2 .hinban h4 {
    font-size: 20px;
    margin-bottom: 0px;
  }
  #tenken #sec2 .main_plan {
    display: block;
  }
  .hinban {
    margin-bottom: 10px !important;
  }
  #tenken #sec2 .hinban h4 {
    font-size: 16px;
    margin-bottom: 10px;
  }
  #tenken #sec2 .hinban p {
    font-size: 16px;
  }
  #tenken #sec2 .course_type .year h2 {
    font-size: 24px;
    margin-bottom: 4px;
  }
  #tenken #sec2 .course_type .year {
    padding-left: 20px;
  }
  #tenken #sec2 .course_type .year p {
    font-size: 14px;
  }
  #tenken #sec2 .course_type .year li:last-of-type p {
    font-size: 12px;
  }
  #tenken #sec2 .course_type .mn {
    flex: 0 1 410px;
    padding-left: 0;
  }
  #tenken #sec2 .course_type .mn h2 {
    font-size: 24px;
  }
  #tenken #sec2 .course_type .mn p {
    margin-bottom: 4px;
    font-size: 13px;
  }
  #tenken #sec2 .course_type .mn h2 > span {
    font-size: 10px;
  }
}

@media (max-width: 600px) {
  #tenken #sec2 .course_type .year h2 {
    font-size: 20px;
    margin-bottom: 4px;
  }
  #tenken #sec2 .course_type .mn h2 {
    font-size: 20px;
  }
}

@media (max-width: 530px) {
  #tenken #sec2 {
    margin-bottom: 20px;
  }
  #tenken #sec2 .course_type {
    height: 80px;
  }
  #tenken #sec2 .hinban {
    height: 120px;
  }
  #tenken #sec2 .course_type:first-of-type {
    margin-bottom: 10px;
  }
  #tenken #sec2 .course_type:nth-of-type(2) {
    margin-bottom: 10px;
  }
  #tenken #sec2 .course_type .year {
    padding-left: 10px;
  }
  #tenken #sec2 .course_type .year h2 {
    font-size: 18px;
    margin-bottom: 0px;
    line-height: 20px;
  }
  #tenken #sec2 .course_type .year p {
    font-size: 3vw;
    margin-bottom: 0px;
    line-height: 20px;
  }
  #tenken #sec2 .course_type .year li:last-of-type p {
    font-size: 2.6vw;
    line-height: 20px;
  }
  #tenken #sec2 .course_type .mn {
    padding: 0;
    flex: 0 1 280px;
  }
  #tenken #sec2 .course_type .mn h2 {
    font-size: 18px;
    line-height: 20px;
  }
}

#tenken #sec3 {
  max-width: 1118px;
  display: block;
}

#tenken #sec3 .title {
  margin-bottom: 20px;
  font-size: 24px;
}

#tenken #sec3 .service_kinds {
  max-width: 926px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: auto;
  font-size: 32px;
  color: #0B57A0;
  text-align: start;
  line-height: normal;
  margin-bottom: 80px;
}

#tenken #sec3 .service_kinds .text {
  color: #000;
  font-size: 24px;
  line-height: 60px;
  position: relative;
}

#tenken #sec3 .service_kinds div p {
  line-height: 60px;
}

#tenken #sec3 .service_kinds div {
  line-height: normal;
  margin: 0;
}

#tenken #sec3 .service_kinds .text span {
  font-size: 18px;
  line-height: 0;
  position: absolute;
  bottom: 0px;
  font-weight: normal;
}

#tenken #sec3 .service_kinds p:first-of-type,
#tenken #sec3 .service_kinds p:nth-last-of-type(2) {
  margin-bottom: 0px;
}

.teikikoukan {
  max-width: 930px;
  width: 100%;
  margin: auto;
  border: 1px solid #333;
  border-radius: 10px;
  margin-bottom: 50px;
}

.teikikoukan .bold {
  border-bottom: 1px solid #333;
  font-size: 24px;
  padding: 15px 0;
}

.koukan {
  padding: 30px 55px;
}

.koukan>div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  column-gap: 44px;
  margin-bottom: 30px;
  text-align: start !important;
}

.koukan div img {
  max-width: 320px;
  width: 100%;
}

.koukan>div p {
  text-align: start;
}

.koukan div div a {
  color: #0B57A0 !important;
  font-size: 14px;
  text-decoration: underline;
}

.check {
  max-width: 930px;
  width: 100%;
  margin: auto;
  border: 1px solid #333;
  border-radius: 10px;
  margin-bottom: 50px;
}

.check .bold {
  border-bottom: 1px solid #333;
  font-size: 24px;
  padding: 15px 0;
}

.check img {
  padding: 45px;
}

@media (max-width: 1000px) {
  #tenken #sec3 .title {
    font-size: 20px;
  }
  #tenken #sec3 .service_kinds {
    justify-content: flex-start;
    column-gap: 30px;
    font-size: 28px;
  }
  #tenken #sec3 .service_kinds .text {
    color: #000;
    font-size: 16px;
  }
  #tenken #sec3 .service_kinds div p {
    line-height: 50px;
  }
  #tenken #sec3 .service_kinds div {
    line-height: normal;
    margin: 0;
  }
  #tenken #sec3 .service_kinds .text span {
    font-size: 11px;
  }
  #tenken #sec3 .service_kinds p:first-of-type,
  #tenken #sec3 .service_kinds p:nth-last-of-type(2) {
    margin-bottom: 0px;
  }
  .teikikoukan {
    max-width: 930px;
    width: 100%;
    margin: auto;
    border: 1px solid #333;
    border-radius: 10px;
    margin-bottom: 50px;
  }
  .teikikoukan .bold {
    border-bottom: 1px solid #333;
    font-size: 24px;
    padding: 15px 0;
  }
  .koukan {
    padding: 30px 55px;
  }
  .koukan>div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    column-gap: 44px;
    margin-bottom: 30px;
  }
  .koukan div img {
    max-width: 320px;
    width: 100%;
  }
  .koukan>div p {
    text-align: start;
  }
  .check {
    max-width: 930px;
    width: 100%;
    margin: auto;
    border: 1px solid #333;
    border-radius: 10px;
    margin-bottom: 50px;
  }
  .check .bold {
    border-bottom: 1px solid #333;
    font-size: 24px;
    padding: 15px 0;
  }
  .check img {
    padding: 45px;
  }
}

@media (max-width: 768px) {
  .koukan {
    padding: 10px 15px;
  }
  .koukan>div {
    display: block;
    justify-content: space-between;
    align-content: center;
    column-gap: 44px;
    margin-bottom: 30px;
  }
  .koukan div img {
    max-width: 100%;
    margin: auto auto 20px auto;
  }
  .koukan>div p {
    font-size: 14px;
  }
  #tenken #sec3 .title {
    margin-bottom: 20px;
    font-size: 24px;
  }
  #tenken #sec3 .service_kinds {
    margin-bottom: 30px;
  }
  #tenken #sec3 .service_kinds div p {
    line-height: normal;
    margin-top: 0;
    margin-bottom: 16px;
  }
  #tenken #sec3 .service_kinds .text .sp {
    margin-bottom: 0;
    font-size: 32px;
    line-height: 50px;
    color: #0B57A0;
  }
  #tenken #sec3 .title {
    font-size: 16px;
  }
  .check {
    margin-bottom: 30px;
  }
  .teikikoukan {
    margin-bottom: 40px;
  }
}

@media (max-width: 500px) {
  #tenken #sec3 .title {
    margin-bottom: 20px;
  }
  #tenken #sec3 .service_kinds {
    font-size: 20px;
  }
  #tenken #sec3 .service_kinds .text {
    font-size: 16px;
  }
  #tenken #sec3 .service_kinds .text .sp {
    font-size: 30px;
  }
  .teikikoukan .bold {
    border-bottom: 1px solid #333;
    font-size: 16px;
    padding: 5px 0;
  }
  .koukan {
    padding: 15px 20px;
  }
  .check .bold {
    border-bottom: 1px solid #333;
    font-size: 16px;
    padding: 5px 0;
  }
  .check img {
    padding: 15px;
  }
}

#sec5 {
  margin-bottom: 60px;
}

#sec5 .title {
  font-size: 24px;
  margin-bottom: 20px;
}

#sec5 section {
  display: flex;
  flex-flow: nowrap;
  justify-content: space-between;
  align-items: center;
  position: relative;
  column-gap: 35px;
}

#sec5 section img {
  width: 100%;
}

@media (max-width: 768px) {
  #sec5 {
    margin-bottom: 40px;
  }
  #sec5 .title {
    font-size: 20px;
  }
  #sec5 section {
    display: flex;
    flex-flow: nowrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
    column-gap: 15px;
  }
}

@media (max-width: 500px) {
  #sec5 .title {
    font-size: 16px;
  }
  #sec5 section {
    display: flex;
    flex-flow: nowrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow-x: scroll;
  }
  #sec5 section img {
    width: 190px;
  }
  #sec5 section .polygon img {
    width: 21px;
  }
}

/* kiyaku
---------------------------------------- */

/* entry
---------------------------------------- */

/* confirm
---------------------------------------- */

/* complete
---------------------------------------- */

/* 質問共通
---------------------------------------- */
details {
  text-align: left;
  border-bottom: 1px solid #ccc;
  margin-bottom: 10px;
}

details .answer {
  display: flex;
  max-width: 1118px;
  width: 100%;
  text-align: left;
}

details .answer p a {
  color: #0B57A0;
}

details p:first-of-type {
  width: 34px;
  padding: 2px 10px;
  margin-right: 4px;
}

details p:last-of-type {
  max-width: 1050px;
  margin-bottom: 20px;
  margin-right: 45px;
}

summary {
  display: block;
  cursor: pointer;
  padding: 10px 0px 20px;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary > h3::before {
  content: "Q.";
  border-radius: 5px;
  padding: 5px 8px;
  margin-right: 4px;
}

summary > h3 {
  max-width: 1118px;
  font-size: 18px;
  line-height: 1.8em;
}

summary::after {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  content: "";
  display: inline-block;
  margin: 0;
  width: 32px;
  height: 32px;
  background-image: url("../img/QA_tagu.png");
  background-size: cover;
  transition: transform 0.2s;
  float: right;
}

details[open] summary::after {
  background-image: url("../img/QA_tagu2.png");
}

.qa {
  margin-bottom: 90px;
}

@media (max-width: 900px) {
  details {
    margin-bottom: 0;
  }
  details .answer {
    font-size: 14px;
  }
  summary {
    padding: 10px 0;
  }
  summary h3 {
    width: 85%;
    height: 50px;
    display: flex;
    align-items: center;
    font-size: 16px;
    line-height: 1.4;
  }
  .qa {
    margin-bottom: 30px;
  }
  @media (max-width: 500px) {
    details {
      margin-bottom: 0;
    }
    details .answer {
      font-size: 12px;
    }
    summary {
      padding: 10px 0;
    }
    summary h3 {
      width: 85%;
      height: 50px;
      display: flex;
      align-items: center;
      font-size: 14px;
      line-height: 1.4;
    }
    .qa {
      margin-top: -10px;
    }
  }
  @media (max-width: 500px) {
    footer .content {
      width: calc(100% - 30px);
      padding: 15px 0 15px 0;
      display: none;
    }
    footer #copyright {
      border-top: 1px solid #ccc;
    }
  }
  /* contact共通
  ---------------------------------------- */
}

/* 申込書（PDF）ダウンロードボタン：見た目は従来の「お申込み方法」ボタンのまま、名前の前にダウンロードアイコンを付ける */
#tenken #sec1 .btn.pdf::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5v9M4 6.5l4 4 4-4M2 14.5h12' fill='none' stroke='%230B57A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
