/* =====================
   リセット
===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =====================
   ベース
===================== */
html {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 24px;
  line-height: 1.5;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

section {
  display: block;
  width: 100%;
  margin: 50px auto;
}

h2 {
  background-color: initial;
}

footer {
  margin: 50px auto 0;
}

footer .backbutton {
  display: flex;
  margin: 150px auto 50px;
  width: 350px;
  height: 75px;
  justify-content: center;
  align-items: center;
  background-color: #005085;
  color: #fff;
}

.ud-footer address {
  border-bottom: none;
}

/* =====================
   下層バナー・ナビ
===================== */
#ud-top-banner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 250px;
  margin: 0;
  background-color: #fff;
  background-image: url(../img/subbg.webp);
  background-size: cover;
}

#ud-top-banner h2 {
  display: block;
  margin: 0 auto;
  padding: 0.5rem 1em;
  font-size: 42px;
  text-align: center;
  color: #005085;
  background-image: initial;
}

.ud-topnav {
  width: 100%;
  height: 50px;
  margin-bottom: 2rem;
  background-color: #0070b9;
}

.ud-topnav ul {
  display: flex;
  justify-content: space-around;
  height: 50px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #fff;
}

.ud-topnav li {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 50px;
  border-right: solid 2px;
}

.ud-topnav ul :last-child {
  border: none;
}

.ud-topnav ul a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  text-decoration: none;
}

#yousei {
  margin-top: 2rem;
}

/* =====================
   OCEC紹介
===================== */
.ai-text {
  display: block;
  width: 90%;
  max-width: 1200px;
  margin: 30px auto;
  text-align: justify;
  text-indent: 1em;
}

.ai-text p {
  font-size: 1rem;
}

.ai-syomei {
  display: block;
  width: fit-content;
  margin-top: 3em;
  margin-right: 0;
  margin-left: auto;
  font-size: 27px;
}

.ai-syomei p {
  text-align: left;
}

.historyimg {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.historyimg img {
  display: block;
  width: 100%;
  height: auto;
}

/* =====================
   その他リンク
===================== */
#otherlink {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 32px;
  color: #005085;
}

.o-link-wrap {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 3rem auto;
}

.o-link-wrap .linkbutton {
  max-width: 450px;
}

.o-link-wrap .linkbutton img {
  width: 48px;
  height: 48px;
}

/* =====================
   トレーニング
===================== */
.train-flex {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 5rem;
  width: 100%;
  max-width: 1200px;
  margin: 1rem auto 75px;
}

.tra-text {
  width: 100%;
  max-width: 500px;
  text-align: left;
}

.tra-text h4 {
  margin-bottom: 2rem;
  font-size: 36px;
  text-align: left;
  color: #005085;
}

.tra-text p {
  margin-bottom: 3rem;
  font-size: 1rem;
  line-height: 1.75;
}

.tra-text a {
  display: flex;
  justify-content: space-between;
  height: 80px;
  max-width: 400px;
  margin: 1rem auto 1rem 0;
  font-size: 21px;
  text-align: center;
}

.tra-img {
  width: 100%;
}

#training-list .linkbutton {
  width: 90%;
  max-width: 400px;
  margin: 0 auto 1rem 0;
  font-size: 27px;
}

#training-list .linkbutton .btn-text {
  flex: initial;
  padding-left: 1rem;
  font-size: 24px;
}

#training-list .linkbutton .btn-icon img {
  width: 28px;
  height: 28px;
  margin-right: 16px;
}

#training-list .linkbutton .btn-icon .pdf-icon {
    width: 42px;
    height: 42px;
    margin-right: 16px;
}

/* =====================
   教員研修
===================== */
#kyouinkensyu {
  width: 100%;
  padding: 2rem 0;
  box-sizing: border-box;
}

.kensyuflex {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: left;
}

.kensyu-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  max-width: 350px;
  margin: 0;
  padding: 0 0 2rem;
  box-sizing: border-box;
  text-align: justify;
  background-color: #f0f0f0;
}

.kensyu-box h4,
#sihyou h4 {
  margin: 0;
  padding: 1rem 0;
  font-size: 21px;
  font-weight: 500;
  text-align: center;
  color: #fff;
  background-color: #0070b9;
}

.kensyu-box p {
  flex-grow: 1;
  margin: 0 0 1rem;
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.75;
}

.kensyu-box:nth-child(1) .btn-icon img,
.kensyu-box:nth-child(2) .btn-icon img {
  width: 40px;
  height: 40px;
}

#kyouinkensyu .linkbutton {
  width: 90%;
  height: 64px;
  font-size: 21px;
}

/* =====================
   指標
===================== */
#sihyou {
  width: 100%;
  max-width: 1400px;
  margin: 50px auto 0;
}

#sihyou h4 {
  width: 100%;
  margin: 0 auto;
  padding-left: 1rem;
}

#sihyou div {
  width: 100%;
}

.sihyou-flex {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 0;
  background-color: #fafafa;
}

.sihyo-text {
  margin: 0 auto;
  padding: 0 1rem 2rem;
  box-sizing: border-box;
  text-align: justify;
}

.sihyo-text p {
  text-align: justify;
}

.sihyo-button {
  width: 100%;
  text-align: left;
}

#sihyou .sihyo-button a {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  min-width: 600px;
  height: 65px;
  margin: 0 auto 2rem;
  padding: 0.5rem 1rem;
  font-size: 18px;
}

#sihyou .sihyo-button a img {
  display: block;
  width: 48px;
  height: 48px;
}

/* =====================
   ラップトップ (1025px ~ 1280px)
===================== */
@media (min-width: 1025px) and (max-width: 1280px) {
  html {
    font-size: 18px;
  }

  .main-lead {
    display: block;
    max-width: 924px;
    margin: 0 auto;
  }

  .lead-p {
    font-size: 21px;
  }

  .train-flex,
  .kensyuflex,
  #sihyou {
    max-width: 924px;
  }

  #training-list .linkbutton .btn-text {
    font-size: 21px;
  }
}

/* =====================
   タブレット (~ 1024px)
===================== */
@media screen and (max-width: 1024px) {
  .pcview {
    display: none;
  }

  .spview {
    display: block;
  }

  html {
    font-size: 18px;
  }

  section {
    display: block;
    width: 100%;
    max-width: 1024px;
    margin: 75px auto;
  }

  /* リード */
  .main-lead {
    display: block;
    width: 90%;
    margin: 2rem auto;
  }

  .lead-p {
    display: block;
    width: 90%;
    margin: 0 auto;
    font-size: 24px;
    text-align: center;
  }

  /* OCEC紹介 */
  .ai-text {
    width: 90%;
    font-size: 21px;
  }

  .ai-syomei {
    display: block;
    width: 8em;
    margin-top: 1em;
    margin-right: 0;
    margin-left: auto;
    font-size: 27px;
  }

  .historyimg {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
  }

  /* その他リンク */
  #otherlink {
    width: 90%;
    font-size: 24px;
  }

  .o-link-wrap {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin: 3rem auto;
  }

  .o-link-wrap a {
    height: 80px;
    font-size: 24px;
  }

  /* トレーニング */
  .train-flex {
    justify-content: center;
    max-width: 1000px;
    margin: 50px auto;
  }

  .tra-text {
    width: 90%;
    max-width: 600px;
    text-align: left;
  }

  .tra-text h4 {
    font-size: 32px;
    text-align: center;
  }

  .tra-text p {
    display: block;
    width: 100%;
    margin: 1rem auto;
    font-size: 1rem;
    text-align: justify;
  }

  .tra-text .linkbutton {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 0.75rem;
    font-size: 14px;
  }

  .tra-img img {
    display: block;
    width: 360px;
    max-width: 100%;
    height: auto;
  }

  #training-list .linkbutton {
    width: 100%;
    max-width: 600px;
    margin: 1rem auto;
    font-size: 1rem;
  }

  /* 教員研修 */
  .kensyuflex {
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 500px;
  }

  .kensyu-box {
    width: 100%;
    max-width: 500px;
  }

  /* 指標 */
  .sihyou-flex {
    flex-direction: column;
    align-items: center;
  }

  #sihyou h4 {
    margin: 0;
  }

  #sihyou .sihyo-button {
    width: 90%;
    margin: 0 auto;
  }

  .sihyo-button p {
    margin: 0 auto 0.5rem;
    font-size: 24px;
    text-align: left;
  }
}

/* =====================
   スマートフォン (~ 767px)
===================== */
@media screen and (max-width: 767px) {
  html {
    font-size: 16px;
  }

  section {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 50px auto;
  }

  h3 {
    font-size: 27px;
  }

  footer {
    margin: 60px auto;
  }

  /* バナー・ナビ */
  #ud-top-banner {
    height: 200px;
  }

  #ud-top-banner h2 {
    display: block;
    font-size: 21px;
  }

  .ud-topnav {
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    background-color: #0070b9;
  }

  .ud-topnav ul {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: initial;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #fff;
  }

  .ud-topnav li {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50px;
    border-right: initial;
    border-bottom: 1px solid #fff;
  }

  /* リード */
  .main-lead {
    display: block;
    width: 90%;
    margin: 0 auto;
    text-align: left;
  }

  .lead-p {
    display: block;
    width: 90%;
    margin: 0 auto;
    font-size: 21px;
    text-align: center;
  }

  /* その他リンク */
  #otherlink h4 {
    text-align: left;
  }

  /* トレーニング */
  #training-list .linkbutton .btn-text {
    font-size: 21px;
  }

  /* 教員研修 */
  .kensyu-box {
    width: 100%;
    max-width: 100%;
  }

  /* 指標 */
  #sihyou {
    flex-direction: column;
    margin: 1rem auto 50px;
  }

  #sihyou .sihyo-button p {
    font-size: 18px;
  }

  #sihyou .sihyo-button a {
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    min-width: 300px;
    height: 75px;
    box-sizing: border-box;
    font-size: 21px;
  }
}
