@charset "UTF-8";

:root {
  --color-base-deep: #F28816;
  --color-base: #F6AD3C;
  --color-main: #1A3065;
  --color-accent: #00A9E4;
  --color-red: #E25137;
  --color-green: #0F9B3B;
  --color-blue: #0074C3;
  --color-white: #ffffff;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  position: relative;
  background-color: var(--color-base-deep);
  color: var(--color-main);
  font-weight: 500;
  line-height: 170%;
  letter-spacing: 0.05em;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

iframe {
  aspect-ratio: 16 / 9;
  display: block;
  width: 100%;
  height: 100%;
}

a {
  display: inline-block;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.7;
  transition: all 0.3s ease;
}

.wrapper {
  padding: 0 1.5rem;
}

/* ===========================

レイアウト

=============================*/
.body-wrapper {
  position: relative;
  display: flex;
  gap: 2.5rem;
  justify-content: center;
}

/* ------------------
　固定のナビゲーション
------------------ */
.header-container {
  max-width: 320px;
  background-color: var(--color-main);
  padding: 3rem 2rem;
  border-radius: 1rem;
  height: fit-content;
  order: 3;
  position: sticky;
  top: 1.5rem;
}

.header-logo {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #8C97B2;
  margin-bottom: 2rem;
}

.header-logo img {
  max-width: 170px;
}

.header-nav-item:not(:last-child) {
  margin-bottom: 1rem;
}

/* ------------------
　固定の説明
------------------ */
.description-container {
  max-width: 380px;
  background-color: var(--color-white);
  padding: 2rem 1.5rem 2.5rem;
  border-radius: 1rem;
  height: fit-content;
  order: 1;
  position: sticky;
  top: 1.5rem;
}

/* ------------------
　真ん中
------------------ */
.main-container {
  max-width: 500px;
  background-color: var(--color-base);
  order: 2;
}

.sp-header {
  display: none;
}

/* ===========================

FV

=============================*/
.fv-top {
  position: relative;
}

.fv-profile {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 55%;
}

.fv-bottom {
  margin-bottom: 1.5rem;
}


/* ===========================

クイズ

=============================*/
.sec-quiz .wrapper {
  background-color: var(--color-green);
  padding-top: 2.5rem;
  padding-bottom: 5rem;
  margin-top: -1px;
}

.quiz-list {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.quiz-item {
  position: relative;
  background-color: var(--color-white);
  padding: 2.4rem 2rem;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-item:not(:last-child) {
  margin-bottom: 3.5rem;
}

.quiz-item-num {
  position: absolute;
  width: 35%;
  max-width: 150px;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
}

.quiz-answer-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
  padding: 0 1.5rem;
}

.quiz-answer {
  width: 100%;
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
}

.quiz-answer img {
  max-width: 2.5rem;
  margin-inline: auto;
}

.quiz-answer--yes {
  background-color: var(--color-red);
  box-shadow: 0 5px 0 0 #A92C16;
}

.quiz-answer--no {
  background-color: var(--color-blue);
  box-shadow: 0 5px 0 0 #00446B;
}

.quiz-answer--yes:hover,
.quiz-answer--no:hover {
  box-shadow: none;
  transform: translateY(5px);
}


/* ===========================

動画

=============================*/
.movie-list {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.movie-item:not(:last-child) {
  margin-bottom: 3.5rem;
}

.movie-item p {
  margin-bottom: 1rem;
}

.movie-frame {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.movie-frame::before,
.movie-frame::after {
  content: "";
  width: 100%;
  height: 14px;
  background-image: url(./img/object-tape.webp);
  background-size: contain;
  background-repeat: repeat-x;
  background-position: center;
}


/* ===========================

参画企業

=============================*/
.sec-company {
  position: relative;
}

.company-title--lg {
  background-color: var(--color-main);
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

.sec-company .wrapper {
  background-color: var(--color-white);
  padding: 2rem 2rem 6rem;
}

.company-title--sm {
  background-color: var(--color-base);
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  padding: 0.5rem 1rem;
}

.company-list {
  margin-bottom: 2rem;
}


.company-item {
  border-bottom: 1px dashed #ccc;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.company-item::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background-image: url(./img/icon-link.webp);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.company-item-none::before {
  display: none;
}

.footer-character {
  position: absolute;
  bottom: -1rem;
  right: 1.5rem;
  width: 100px;
  z-index: 1;
}

/* ===========================

footer

=============================*/
.footer-container {
  position: relative;
  background-color: var(--color-main);
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-container .wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

.footer-logo {
  max-width: 180px;
}

.footer-copy {
  text-align: center;
  font-size: 0.625rem;
  color: var(--color-white);
}

/* ===========================

モーダル

=============================*/
.modal {
  width: min(450px, calc(100% - 3rem));
  max-height: calc(100dvh - 3rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  color: var(--color-main);
  background: var(--color-white);
  overflow: visible;
}

.modal::backdrop {
  background: rgb(0 0 0 / 65%);
}

html.is-modal-open,
html.is-menu-open {
  overflow: hidden;
}

html.is-menu-open {
  scrollbar-gutter: auto;
}

html.is-modal-open {
  scrollbar-gutter: auto;
  padding-right: var(--modal-scrollbar-width, 0px);
}

.description-modal {
  width: min(380px, calc(100% - 3rem));
}

.description-modal-content {
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  border-radius: inherit;
}

.description-modal .description-container {
  display: block;
  position: static;
  max-width: none;
}

.modal-content {
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  border-radius: inherit;
  padding: 2rem 1.5rem;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--color-white);
  border-radius: 50%;
  background: #999;
  color: var(--color-white);
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-close:hover {
  background: #777;
}

.modal-next {
  background-color: var(--color-base-deep);
  color: var(--color-white);
  font-weight: 700;
  padding: 0.75rem 1.5rem 0.25rem;
  border-radius: 100px;
  position: absolute;
  bottom: -55px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
}

.fv-profile:focus-visible,
.sp-header-description:focus-visible,
.sp-header-menu:focus-visible,
.quiz-answer:focus-visible {
  outline: 3px solid var(--color-base-deep);
  outline-offset: 4px;
}

.modal-close:focus {
  outline: none;
}

/* ===========================

モーダル_クイズ結果

=============================*/
.quiz-result-number {
  font-weight: 700;
}

.quiz-result-title {
  margin: 1rem 0 1.5rem;
  font-size: 2rem;
  line-height: 1.4;
  color: var(--color-red);
}

.quiz-result--incorrect .quiz-result-title {
  color: var(--color-blue);
}

.modal-quiz-answer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-quiz-answer-inner {
  border-radius: 100px;
  width: 100%;
  padding: 0.5rem 0 12px;
}

.modal-quiz-answer-inner img {
  max-width: 125px;
  margin-inline: auto;
}


.modal-quiz-answer::after {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 12px;
  clip-path: polygon(0 0, 100% 0%, 50% 100%);
}

.modal-quiz-answer--yes::after {
  background: var(--color-green);
}

.modal-quiz-answer--no::after {
  background: #7c7c7c;
}

.modal-quiz-answer--yes .modal-quiz-answer-inner  {
  background-color: var(--color-green);
}

.modal-quiz-answer--no .modal-quiz-answer-inner  {
  background-color: #7c7c7c;
}

.quiz-character {
  max-width: 200px;
  margin: 0 auto 1.5rem;
}

.quiz-answer-subtext {
  margin-bottom: 1rem;
}

/* ===========================

モーダル_プロフィール

=============================*/
.profile-modal .modal-content {
  padding: 2.5rem 1.5rem 8px;
}

.profile-top,
.profile-text {
  max-width: 290px;
  margin: 0 auto 2rem;
}

.profile-ttl {
  border-radius: 100px;
  width: 100%;
  background-color: var(--color-base);
  padding: 0 0 0.5rem;
  margin-bottom: 10px;
}

.profile-ttl img {
  max-width: 125px;
  margin-inline: auto;
}


/* =======================

スマホ

======================= */
@media (max-width: 1000px) {
  html {
    scroll-padding-top: calc(var(--sp-header-height, 68px) + 40px);
  }

  .sp-header {
    position: sticky;
    top: 0;
    z-index: 101;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.5rem 1rem;
  }

  .sp-header-description {
    min-width: 0;
    max-width: 230px;
  }

  .sp-header-menu {
    flex: 0 0 96px;
    width: 96px;
    margin-left: auto;
  }

  .is-menu-open .sp-header-description {
    visibility: hidden;
  }

  .body-wrapper {
    flex-direction: column;
    gap: 0;
    background-color: var(--color-base);
  }

  .main-container {
    max-width: initial;
  }

  .header-container {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    padding: calc(var(--sp-header-height, 68px) + 38px) 28px 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 0;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
  }

  .header-container.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .header-container .header-logo img {
    max-width: 160px;
  }

  .header-container .header-nav {
    max-width: 256px;
  }

  .quiz-item {
    padding: 1.5rem 1rem 2rem;
  }

  .quiz-answer-list {
    padding: 0 1rem;
  }

  @media (prefers-reduced-motion: reduce) {
    .header-container {
      transition: none;
    }
  }

  .description-container {
    display: none;
  }

}

/* YouTube */
.youtube-player {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

#about .youtube-player::after {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    border: 3px solid #fff;
    position: absolute;
    inset: 0;
    pointer-events: none;
}


.youtube-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.youtube-play .youtube-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.youtube-play .youtube-play-icon {
  opacity: 0.6;
  position: relative;
  z-index: 1;
  width: clamp(48px, 15%, 100px);
  height: auto;
  margin: 0;
}
.youtube-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}
