/* ==================================================
   /pharmacology_educators/ 専用CSS
   薬理学エデュケーター認定制度
================================================== */


/* ==================================================
   1. 共通
================================================== */

.educator-site {
  background: #fff;
}

.educator-page {
  min-width: 0;
}

.educator-page__body {
  line-height: 1.9;
}

.educator-page__body > :first-child,
.educator-page__more > :first-child {
  margin-top: 0;
}

.educator-page__body > :last-child,
.educator-page__more > :last-child {
  margin-bottom: 0;
}

.educator-page__more {
  margin-top: 2em;
}


/* ==================================================
   2. 配下ブログ ヘッダー
================================================== */

.educator-hero {
  padding: 35px 0;

  background: #f4f6fa;
}

.educator-hero__inner {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 120px;

  padding: 30px 40px;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #0c3388 0%,
      #174da8 100%
    );

  border-radius: 6px;

  box-sizing: border-box;
}

.educator-hero__title {
  position: relative;
  z-index: 1;

  width: 100%;

  margin: 0;

  color: #fff;

  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.4;

  letter-spacing: 0.03em;
}


/* ==================================================
   3. サブナビ
================================================== */

.educator-subnav {
  position: relative;
  z-index: 100;

  background: #0c3388;
}

.educator-subnav .uk-container {
  position: relative;
}

.educator-subnav__list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;

  margin: 0;
  padding: 0;

  list-style: none;
}

.educator-subnav__item {
  margin: 0;
  padding: 0;
}

.educator-subnav__item a {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;

  padding: 10px 25px;

  color: #fff;

  font-size: 15px;
  line-height: 1.4;

  text-align: center;
  text-decoration: none;

  border-left:
    1px solid rgba(255, 255, 255, 0.25);

  box-sizing: border-box;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.educator-subnav__item:last-child a {
  border-right:
    1px solid rgba(255, 255, 255, 0.25);
}


/* hover */

.educator-subnav__item a:hover,
.educator-subnav__item a:focus {
  color: #fff;
  text-decoration: none;

  background:
    rgba(255, 255, 255, 0.15);
}


/* 現在表示中 */

.educator-subnav__item a.is-current {
  color: #fff;

  font-weight: 700;

  background:
    rgba(255, 255, 255, 0.22);
}


/* 現在位置の下線 */

.educator-subnav__item a.is-current::after {
  content: "";

  position: absolute;

  left: 20%;
  right: 20%;
  bottom: 5px;

  height: 3px;

  background: #fff;

  border-radius: 2px;
}


/* ==================================================
   4. 下層ページ タイトル
================================================== */

.educator-page__header {
  position: relative;

  margin: 0 0 35px;

  padding: 22px 25px;

  background: #f3f6fb;

  border-left: 6px solid #0c3388;

  box-sizing: border-box;
}

.educator-page__title {
  margin: 0;

  color: #0c3388;

  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;

  letter-spacing: 0.02em;
}


/* ==================================================
   5. トップページ 導入
================================================== */

.educator-intro {
  margin-bottom: 40px;
}

.educator-intro p {
  line-height: 1.9;
}


/* ==================================================
   6. トップページ メニューカード
================================================== */

.educator-menu-cards {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 20px;

  margin: 35px 0 45px;
}

.educator-menu-card {
  position: relative;

  display: block;

  padding: 25px;

  color: #333;

  background: #fff;

  border: 1px solid #d5dce8;
  border-top: 5px solid #0c3388;
  border-radius: 6px;

  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.08);

  text-decoration: none;

  box-sizing: border-box;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.educator-menu-card h2 {
  margin: 0 0 12px;

  color: #0c3388;

  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
}

.educator-menu-card p {
  margin: 0;

  color: #444;

  line-height: 1.7;
}

.educator-menu-card::after {
  content: "›";

  position: absolute;

  right: 18px;
  bottom: 14px;

  color: #0c3388;

  font-size: 1.6rem;
  font-weight: 700;
}

.educator-menu-card:hover,
.educator-menu-card:focus {
  color: #333;

  text-decoration: none;

  border-color: #aebbd2;

  transform: translateY(-3px);

  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.14);
}


/* ==================================================
   7. 申請受付案内
================================================== */

.educator-application-info {
  margin: 30px 0;

  padding: 25px;

  background: #f3f6fb;

  border: 1px solid #d6deeb;
  border-radius: 6px;

  box-sizing: border-box;
}

.educator-application-info__title {
  margin: 0 0 15px;

  color: #0c3388;

  font-size: 1.3rem;
  font-weight: 700;
}

.educator-application-info p:last-child {
  margin-bottom: 0;
}


/* 重要な注意 */

.educator-notice {
  margin: 25px 0;

  padding: 18px 20px;

  background: #fff8e8;

  border-left: 5px solid #e0a42d;

  box-sizing: border-box;
}

.educator-notice p:last-child {
  margin-bottom: 0;
}


/* 特に重要 */

.educator-alert {
  margin: 25px 0;

  padding: 18px 20px;

  color: #8d2323;

  background: #fff3f3;

  border-left: 5px solid #c83d3d;

  box-sizing: border-box;
}

.educator-alert p:last-child {
  margin-bottom: 0;
}


/* ==================================================
   8. ボタン
================================================== */

.entry .educator-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 50px;

  padding: 11px 25px;

  color: #fff;

  background:
    linear-gradient(
      135deg,
      #0c3388 0%,
      #174da8 100%
    );

  font-weight: 700;
  line-height: 1.5;

  text-align: center;
  text-decoration: none;

  border-radius: 6px;

  box-sizing: border-box;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.entry .educator-button::after {
  content: "›";

  margin-left: 10px;

  font-size: 1.25em;
}

.entry .educator-button:hover,
.entry .educator-button:focus {
  color: #fff;

  text-decoration: none;

  background:
    linear-gradient(
      135deg,
      #174da8 0%,
      #2563c7 100%
    );

  transform: translateY(-2px);

  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.2);
}


/* ==================================================
   9. SMOOSY / 会員ページボタン
================================================== */

.entry .educator-member-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 50px;

  padding: 11px 25px;

  color: #fff;

  background: #0c3388;

  font-weight: 700;

  text-decoration: none;

  border-radius: 6px;

  box-sizing: border-box;
}

.entry .educator-member-button:hover,
.entry .educator-member-button:focus {
  color: #fff;

  background: #174da8;

  text-decoration: none;
}


/* ==================================================
   10. 実施要項
================================================== */

.educator-guideline-section {
  margin: 35px 0;
}

.educator-guideline-section__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 38px;
  min-height: 38px;

  margin-right: 8px;

  color: #fff;

  background: #0c3388;

  font-weight: 700;

  border-radius: 50%;
}


/* ==================================================
   11. 表
================================================== */

.educator-page table {
  width: 100%;

  margin: 25px 0;

  border-collapse: collapse;

  background: #fff;
}

.educator-page th,
.educator-page td {
  padding: 10px 12px;

  border: 1px solid #ccc;

  vertical-align: top;

  box-sizing: border-box;
}

.educator-page th {
  color: #fff;

  background: #0c3388;

  font-weight: 700;
}

.educator-page tbody tr:nth-child(even) {
  background: #f4f4f4;
}


/* ==================================================
   12. WEB申請フォーム
================================================== */

.educator-form {
  margin: 30px 0;
}

.educator-form iframe {
  display: block;

  width: 100%;

  min-height: 700px;

  border: 0;
}


/* ==================================================
   13. ページ内リンク
================================================== */

.educator-page-jump {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin: 0 0 35px;
}

.entry .educator-page-jump a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 9px 18px;

  color: #0c3388;

  background: #fff;

  font-weight: 700;

  text-decoration: none;

  border: 1px solid #0c3388;
  border-radius: 5px;

  box-sizing: border-box;
}

.entry .educator-page-jump a::after {
  content: "▼";

  margin-left: 8px;

  font-size: 0.7em;
}

.entry .educator-page-jump a:hover,
.entry .educator-page-jump a:focus {
  color: #fff;

  background: #0c3388;

  text-decoration: none;
}


/* ==================================================
   14. スマートフォン
================================================== */

@media (max-width: 639px) {


  /* 配下ブログタイトル */

  .educator-hero {
    padding: 20px 0;
  }

  .educator-hero__inner {
    min-height: 90px;

    padding: 20px;
  }

  .educator-hero__title {
    font-size: 1.5rem;
  }


  /* サブナビ */

  .educator-subnav .uk-container {
    padding-left: 0;
    padding-right: 0;
  }

  .educator-subnav__item {
    width: 50%;
  }

  .educator-subnav__item a {
    width: 100%;

    min-height: 50px;

    padding: 8px 10px;

    font-size: 14px;

    border-left: 0;

    border-right:
      1px solid rgba(255, 255, 255, 0.25);

    border-bottom:
      1px solid rgba(255, 255, 255, 0.25);
  }

  .educator-subnav__item:nth-child(even) a {
    border-right: 0;
  }

  .educator-subnav__item a.is-current::after {
    left: 25%;
    right: 25%;
    bottom: 4px;

    height: 2px;
  }


  /* ページタイトル */

  .educator-page__header {
    margin-bottom: 25px;

    padding: 16px 18px;
  }

  .educator-page__title {
    font-size: 1.5rem;
  }


  /* トップカード */

  .educator-menu-cards {
    grid-template-columns: 1fr;

    gap: 15px;

    margin: 25px 0 35px;
  }

  .educator-menu-card {
    padding: 20px;
  }


  /* 案内 */

  .educator-application-info,
  .educator-notice,
  .educator-alert {
    padding: 16px;
  }


  /* ボタン */

  .entry .educator-button,
  .entry .educator-member-button {
    width: 100%;
  }


  /* ページ内リンク */

  .educator-page-jump {
    display: grid;

    grid-template-columns: 1fr;

    gap: 8px;
  }

  .entry .educator-page-jump a {
    width: 100%;
  }


  /* 表 */

  .educator-page {
    overflow-wrap: anywhere;
  }

  .educator-page table {
    font-size: 0.9rem;
  }

  .educator-page th,
  .educator-page td {
    padding: 8px;
  }


  /* フォーム */

  .educator-form iframe {
    min-height: 600px;
  }

}

/* ==================================================
   ページ上部へ戻るボタン
================================================== */

#back-to-top {
  position: fixed;

  right: 25px;
  bottom: 25px;

  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;

  padding: 0;

  color: #fff;
  background: #0c3388;

  font-size: 28px;
  line-height: 1;

  text-align: center;
  text-decoration: none;

  border-radius: 50%;

  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.25);

  box-sizing: border-box;

  opacity: 0;
  visibility: hidden;

  transform: translateY(10px);

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background-color 0.2s ease;
}


/* 表示状態 */

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}


/* 矢印 */

#back-to-top span {
  display: block;

  margin-top: 8px;

  color: #fff;

  font-size: 28px;
  line-height: 1;
}


/* hover */

#back-to-top:hover,
#back-to-top:focus {
  color: #fff;

  background: #174da8;

  text-decoration: none;
}


/* ==================================================
   スマートフォン
================================================== */

@media (max-width: 639px) {

  #back-to-top {
    right: 15px;
    bottom: 15px;

    width: 46px;
    height: 46px;
  }

  #back-to-top span {
    font-size: 24px;
  }

}