@charset "UTF-8";

/*
 * The new CSS reset - version 1.11.2 (last updated 15.11.2023)
 * GitHub page: https://github.com/elad2412/the-new-css-reset
 * Copyright (c) 2021 Elad Shechter
 * Licensed under MIT (https://github.com/elad2412/the-new-css-reset/blob/main/LICENSE)
 */
/* stylelint-disable */
:where(:not(audio, canvas, html, iframe, img, svg, video, svg, symbol)) {
  all: unset;
  display: revert;
}

*,
::after,
::before {
  box-sizing: border-box;
}

html {
  text-size-adjust: none;
}

a,
button {
  cursor: revert;
}

menu,
ol,
summary,
ul {
  list-style: none;
}

img {
  max-inline-size: 100%;
  max-block-size: 100%;
}

table {
  border-collapse: collapse;
}

input,
textarea {
  user-select: auto;
}

textarea {
  white-space: revert;
}

meter {
  appearance: revert;
}

:where(pre) {
  all: revert;
  box-sizing: border-box;
}

::placeholder {
  color: unset;
}

:where([hidden]) {
  display: none;
}

:where([contenteditable]:not([contenteditable="false"])) {
  -moz-user-modify: read-write;
  -webkit-user-modify: read-write;
  overflow-wrap: break-word;
  -webkit-line-break: after-white-space;
  user-select: auto;
}

:where([draggable="true"]) {
  -webkit-user-drag: element;
}

:where(dialog:modal) {
  all: revert;
  box-sizing: border-box;
}

::-webkit-details-marker {
  display: none;
}
/* stylelint-enable */

/*
 * 共通
 */
:root {
  --color-primary-50: #ecf4ff;
  --color-primary-100: #d6e8ff;
  --color-primary-200: #bbd0f0;
  --color-primary-300: #8ca2d4;
  --color-primary-400: #5c78b8;
  --color-primary-500: #3a5c9c;
  --color-primary-600: #2a4a82;
  --color-primary-700: #253c6a;
  --color-primary-800: #213257;
  --color-primary-900: #1d2844;
  --color-primary-950: #141c2e;
  --color-gray-050: #f9f9fa;
  --color-gray-100: #f2f2f5;
  --color-gray-200: #e1e1e4;
  --color-gray-300: #cccccf;
  --color-gray-400: #a6a6ac;
  --color-gray-500: #808088;
  --color-gray-600: #6b6b71;
  --color-gray-700: #55555b;
  --color-gray-800: #404046;
  --color-gray-900: #202024;
  --color-gray-950: #101012;
  --color-black: #2e2e2e;
  --color-pure-black: #2e2e2e;
  --color-white: #fff;
  --color-brand: var(--color-primary-500);
  --color-text: var(--color-gray-900);
  --color-link: #2727ad;
  --color-sakura-pink: #ff5577;
  --color-background: #f9faff;
  --size-radius: 0.25rem;
  --size-content-max-width: 960px;
}

/* stylelint-disable */
html {
  scroll-behavior: smooth;
}
/* stylelint-enable */

body {
  color: var(--color-text);
  background-color: var(--color-background);
  font-family:
    "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.section {
  margin: 8.75rem auto 0;
  max-width: var(--size-content-max-width);
}

@media screen and (width <= 992px) {
  .section {
    margin: 8.75rem auto 0;
    padding: 0 1rem;
  }
}

@media screen and (width <= 768px) {
  .section {
    margin: 5rem auto 0;
  }
}

.section-heading {
  font-size: 2rem;
  font-weight: bold;
}

@media screen and (width <= 768px) {
  .section-heading {
    font-size: 1.5rem;
  }
}

.section-heading-3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

@media screen and (width <= 768px) {
  .section-heading-3 {
    font-size: 1.25rem;
  }
}

.section-content {
  margin-top: 2.5rem;
  line-height: 2;
}

@media screen and (width <= 768px) {
  .section-content {
    margin-top: 2rem;
  }
}

.section-table {
  width: 100%;

  caption {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
  }

  tr {
    border-bottom: 1px solid var(--color-gray-200);
  }

  tr:first-child {
    border-top: 1px solid var(--color-gray-200);
  }

  th,
  td {
    padding: 1rem;
  }

  th {
    font-weight: bold;
    line-height: 1.5;
    width: 25%;
  }

  thead {
    th {
      background-color: var(--color-gray-100);
    }
  }

  dt {
    font-weight: bold;
  }
}

@media screen and (width <= 768px) {
  .section-table {
    caption {
      font-size: 1.25rem;
    }

    th,
    td {
      display: block;
    }

    th {
      padding: 1rem 1rem 0;
      width: 100%;
    }

    td {
      padding: 0.5rem 1rem 1rem;
    }
  }

  .section-table-wrapper {
    overflow-x: scroll;

    .section-table {
      width: 768px;

      th,
      td {
        display: table-cell;
      }

      th {
        padding: 1rem;
        width: auto;
      }

      td {
        padding: 1rem;
      }
    }
  }
}

.section-list {
  list-style-type: disc;
  padding-left: 1rem;
}

a {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  color: var(--color-link);

  &:hover {
    text-decoration: none;
  }

  .fa {
    margin-left: 0.5rem;
  }
}

.primary-button {
  display: inline-block;
  background: var(--color-black);
  border: 1px solid var(--color-pure-black);
  border-radius: var(--size-radius);
  color: var(--color-white);
  font-weight: bold;
  padding: 1rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.5;
  text-align: center;

  &:hover {
    background: var(--color-primary-700);
  }

  .fa {
    margin-left: 0.5rem;
  }
}

.notes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 0.8rem;

  .notes-item {
    line-height: 1.75;
    list-style-type: "※";
    padding-left: 0.5rem;
  }
}

.list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.2rem;

  .list-item {
    line-height: 1.75;
    padding-left: 0.2rem;
    list-style-type: decimal;
  }
}

@media screen and (width <= 768px) {
  .primary-button {
    display: block;
  }
}

.secondary-button {
  display: inline-block;
  border: 1px solid var(--color-primary-700);
  border-radius: var(--size-radius);
  color: var(--color-primary-700);
  padding: 1rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  text-align: center;

  &:hover {
    background: var(--color-primary-100);
  }

  .fa {
    margin-left: 0.5rem;
  }
}

@media screen and (width <= 768px) {
  .secondary-button {
    display: block;
  }
}

.mt-lg {
  margin-top: 3.5rem;
}

@media screen and (width <= 768px) {
  .mt-lg {
    margin-top: 3rem;
  }
}

.mt-md {
  margin-top: 2.5rem;
}

@media screen and (width <= 768px) {
  .mt-md {
    margin-top: 2rem;
  }
}

.mt-sm {
  margin-top: 1.5rem;
}

@media screen and (width <= 768px) {
  .mt-sm {
    margin-top: 1rem;
  }
}

/*
 * パンくずリスト
 */
.breadcrumb {
  max-width: var(--size-content-max-width);
  margin: 2rem auto 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;

  .breadcrumb__item {
    display: flex;
    gap: 1rem;
    align-items: center;

    &:has(a)::after {
      content: "\f105";
      font-family: FontAwesome, sans-serif;
      color: var(--color-gray-400);
    }
  }
}

@media screen and (width <= 992px) {
  .breadcrumb {
    margin: 2rem 1rem 0;
  }
}

@media screen and (width <= 768px) {
  .breadcrumb {
    margin: 1.5rem 1rem 0;
  }
}

/*
 * アコーディオン
 */
.accordion__item {
  margin-top: 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--size-radius);

  &:first-child {
    margin-top: 0;
  }
}

.accordion__trigger {
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: bold;
  padding: 2rem;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  cursor: pointer;

  &:hover {
    background: var(--color-primary-100);
  }

  .fa {
    margin-left: 1rem;
    align-self: center;
    font-size: 1.5rem;
    color: var(--color-brand);
  }
}

@media screen and (width <= 768px) {
  .accordion__trigger {
    padding: 1.5rem;
  }
}

.accordion__panel {
  margin: 0 2rem 2rem;
}

@media screen and (width <= 768px) {
  .accordion__panel {
    margin: 0 1.5rem 1.5rem;
  }
}

/*
 * アクセシビリティ
 */
/* stylelint-disable */
a,
button {
  &:focus-visible {
    outline: 2px solid var(--color-link);
    outline-offset: 4px;
  }
}
/* stylelint-enable */

.a11y {
  position: absolute;
  top: -3rem;
  width: 100%;

  a {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 300;
    text-align: center;
    padding: 10px;
    outline-offset: 0;
  }

  a:focus {
    top: 3rem;
    background: var(--color-white);
  }
}

/*
 * キービジュアル
 */
.key-visual {
  background-image: image-set(
    url("../images/background.avif") type("image/avif"),
    url("../images/background.webp") type("image/webp")
  );
  background-size: cover;
  background-position: center; /* 画像を中央配置 */
  background-repeat: no-repeat;
}

.key-visual__inner {
  padding-top: 3rem;
  max-width: var(--size-content-max-width);
  margin: 0 auto;
}

/* @media screen and (width <= 768px) {
  .key-visual__inner {
    padding-top: 2rem;
    background-image:
      linear-gradient(120deg, rgb(216 218 239 / 60%) 50%, rgb(198 212 231 / 60%) 100%),
      image-set(
        url("../images/keyvisual.avif") type("image/avif"),
        url("../images/keyvisual.webp") type("image/webp")
      );
    background-size:
      100% 100%,
      560px 610px;
    background-position:
      top left,
      calc(100% + 5rem) calc(100% + 10rem);
  }
} */

.key-visual__box {
  display: flex;
}

@media screen and (width <= 992px) {
  .key-visual__box {
    margin: 0 1rem;
  }
}

.key-visual__text {
  color: var(--color-white);
  margin: 6rem 0;
}

@media screen and (width <= 992px) {
  .key-visual__text {
    margin: 4rem 0;
  }
}

@media screen and (width <= 768px) {
  .key-visual__text {
    margin: 2rem 0;
  }
}

@media screen and (width <= 576px) {
  .key-visual__text {
    br {
      display: none;
    }
  }
}

.key-visual__catchphrase {
  font-size: 2rem;
  line-height: 1.75;
  font-weight: bold;
}

@media screen and (width <= 768px) {
  .key-visual__catchphrase {
    font-size: 1.5rem;
  }
}

.key-visual__description {
  margin-top: 2rem;
  line-height: 2;
}

@media screen and (width <= 768px) {
  .key-visual__description {
    margin-top: 1.5rem;
    line-height: 1.75;
  }
}

.article {
  .section-heading {
    time {
      color: var(--color-gray-600);
      font-size: 1rem;
      font-weight: normal;
      display: block;
      margin-bottom: 1rem;
    }
  }

  .key-visual__text {
    margin: 5rem 0;
  }

  .key-visual__inner {
    padding-top: 2rem;
  }

  @media screen and (width <= 768px) {
    .key-visual__inner {
      padding-top: 2rem;
    }

    .key-visual__text {
      margin: 2rem 0;
    }
  }
}

/*
 * ヘッダー
 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--size-content-max-width);
  margin: 0 auto;
}

@media screen and (width <= 992px) {
  .header {
    margin: 0 1rem;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }
}

.logo {
  a:hover {
    opacity: 0.6;
  }
}

.logo__lower {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  color: var(--color-gray-400);

  span {
    margin-right: 0.5rem;
  }
}

.global-nav__list {
  display: flex;
  align-items: center;
  font-size: 1rem;
}

@media screen and (width <= 992px) {
  .global-nav {
    width: 100%;
  }

  .global-nav__list {
    margin-top: 2rem;
    background-color: rgb(255 255 255 / 20%);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-radius: var(--size-radius);
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: center;
  }
}

.global-nav__item {
  font-size: 0.875rem;

  /* stylelint-disable */
  a {
    padding: 0.5rem 0.8rem;
    text-decoration: none;
    color: var(--color-white);
  }

  a:not(.primary-button) {
    &:hover {
      opacity: 0.6;
    }
  }
  /* stylelint-enable */
}

@media screen and (width <= 768px) {
  .global-nav__item {
    a {
      display: block;
      text-decoration: underline;
      text-decoration-skip-ink: auto;

      &:hover {
        text-decoration: none;
        opacity: 1;
      }
    }
  }
}

.global-nav__item--cta {
  /* stylelint-disable */
  a {
    background: var(--color-brand);
    border: 1px solid var(--color-primary-600);
    border-radius: var(--size-radius);
    padding: 0.5rem 1rem;
    font-weight: bold;
    text-decoration: none;

    &:hover {
      opacity: 1;
      background: var(--color-primary-600);
    }
  }
  /* stylelint-enable */

  span {
    background: var(--color-gray-200);
    border: 1px solid var(--color-gray-400);
    color: var(--color-gray-400);
    border-radius: var(--size-radius);
    padding: 0.5rem 1rem;
    font-weight: bold;
    text-decoration: none;
    cursor: not-allowed;
  }
}

/*
 * お知らせ
 */
.news {
  background: var(--color-gray-100);

  .news__inner {
    max-width: var(--size-content-max-width);
    margin: 0 auto;
    display: flex;
    padding: 3.5rem 0;
  }

  .news__heading {
    font-size: 1.5rem;
    font-weight: bold;
  }

  .news__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-left: 3.5rem;
    flex-grow: 1;

    .news__item {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid var(--color-gray-200);

      .fa {
        font-size: 1.5rem;
        color: var(--color-brand);
      }

      &:last-child {
        padding-bottom: 0;
        border-bottom: none;
      }

      .news__content {
        display: flex;
        gap: 1.5rem;
        align-items: center;
        flex-grow: 1;

        a {
          flex-grow: 1;
        }

        .news__date {
          color: var(--color-gray-600);
        }
      }
    }
  }
}

@media screen and (width <= 992px) {
  .news {
    .news__inner {
      margin: 0 1rem;
    }
  }
}

@media screen and (width <= 768px) {
  .news {
    .news__inner {
      padding: 2rem 0;
      flex-direction: column;
    }

    .news__list {
      margin-top: 1.5rem;
      margin-left: 0;

      .news__item {
        .news__content {
          flex-direction: column;
          gap: 0.5rem;
          align-items: self-start;
        }
      }
    }
  }
}

.news-list {
  margin: 4rem auto 0;

  .news-list__inner {
    margin-top: 2.5rem;
  }

  .news-list__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;

    .news-list__item {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid var(--color-gray-200);

      .fa {
        font-size: 1.5rem;
        color: var(--color-brand);
      }

      &:last-child {
        padding-bottom: 0;
        border-bottom: none;
      }

      .news-list__content {
        display: flex;
        gap: 1.5rem;
        align-items: center;
        flex-grow: 1;

        a {
          flex-grow: 1;
        }

        .news-list__date {
          color: var(--color-gray-600);
        }
      }
    }
  }
}

@media screen and (width <= 768px) {
  .news-list {
    .news-list__inner {
      .news-list__item {
        .news-list__content {
          flex-direction: column;
          gap: 0.5rem;
          align-items: flex-start;
        }
      }
    }
  }
}

/*
 * スケジュール
 */
.schedule__title {
  background: var(--color-gray-200);
  padding: 1rem;
  border-radius: var(--size-radius);
  display: flex;
  flex-direction: column;
  align-items: center;

  &.active {
    background: var(--color-gray-900);
    color: var(--color-white);
  }
}

@media screen and (width <= 768px) {
  .schedule__title {
    margin-bottom: 1rem;
  }
}

.schedule__label {
  font-size: 0.75rem;
  background: var(--color-white);
  color: var(--color-brand);
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--size-radius);
}

/*
 * シラバス
 */
.sub-content__wrapper {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

@media screen and (width <= 768px) {
  .sub-content__wrapper {
    display: block;
  }
}

.sub-content {
  display: flex;
  gap: 1rem;
  flex-direction: column;
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--size-radius);
  width: 50%;

  .secondary-button {
    align-self: flex-start;
    width: 100%;
    text-align: center;
  }
}

.sub-content__heading {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media screen and (width <= 768px) {
  .sub-content {
    width: 100%;
    margin-top: 1rem;
    padding: 1.5rem;

    &:first-child {
      margin-top: 1rem;
    }
  }
}

.sub-content__title {
  font-size: 1.125rem;
  font-weight: bold;
}

.sub-content__version {
  font-size: 0.875rem;
  background: var(--color-gray-100);
  padding: 4px 6px;
  white-space: nowrap;
  border-radius: var(--size-radius);
  align-self: flex-start;
}

/*
 * 動画
 */
.video-wrapper {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/*
 * 受検申込方法
 */
.button-list {
  display: flex;
  gap: 24px;

  .button-list__item {
    line-height: 1.5;
    text-align: center;
  }
}

@media screen and (width <= 768px) {
  .button-list {
    flex-direction: column;
  }
}

/*
 * 受検申込方法
 */
.certificate__sample {
  small {
    font-size: 80%;
    line-height: 1.75;
    display: block;
    margin-bottom: 2rem;
  }
}

.certificate__sample-inner {
  display: flex;
  margin-bottom: 1rem;
}

.certificate__sample-image {
  img {
    height: auto;
  }

  figcaption {
    text-align: center;
  }
}

/*
 * よくあるご質問
 */
.faq-content {
  .accordion__title {
    display: flex;
    align-items: center;
  }

  .accordion__title::before {
    content: "Q";
    color: var(--color-sakura-pink);
    font-size: 1.5rem;
    margin-right: 1rem;
  }
}

/*
 * フッター
 */
.footer {
  background: var(--color-black);
  margin-top: 8.75rem;
}

@media screen and (width <= 768px) {
  .footer {
    margin-top: 5rem;
  }
}

.footer__inner {
  max-width: var(--size-content-max-width);
  margin: 0 auto;
  padding: 3.5rem 0;
}

@media screen and (width <= 992px) {
  .footer__inner {
    padding: 3.5rem 1rem;
  }
}

@media screen and (width <= 768px) {
  .footer__inner {
    padding: 2rem 1rem;
  }
}

.footer__lower {
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
}

@media screen and (width <= 992px) {
  .footer__lower {
    flex-direction: column;
    gap: 2rem;
  }
}

@media screen and (width <= 768px) {
  .footer__lower {
    margin-top: 2rem;
  }
}

.footer-link {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-link__item {
  font-size: 0.875rem;

  /* stylelint-disable */
  a {
    color: var(--color-white);
    text-decoration: none;

    &:hover {
      opacity: 0.6;
    }
  }
  /* stylelint-enable */
}

@media screen and (width <= 768px) {
  .footer-link__item {
    a {
      text-decoration: underline;

      &:hover {
        text-decoration: none;
        opacity: 1;
      }
    }
  }
}

.sns-link {
  border: 1px solid var(--color-white);
  border-radius: var(--size-radius);
  color: var(--color-white);
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  padding: 0.75rem 1rem;
  margin-top: 2rem;

  /* stylelint-disable */
  img {
    margin-right: 0.5rem;
  }
  /* stylelint-enable */

  &:hover {
    background: var(--color-gray-800);
  }
}

@media screen and (width <= 768px) {
  .sns-link {
    display: flex;
  }
}

.footer-copyright {
  color: var(--color-gray-600);
  font-size: 0.875rem;
}
