@charset "UTF-8";

:root {
  --color-white: #ffffff;
  --color-black: #000000;
  --color-text-primary: #474747;
  --color-text-secondary: #292929;
  --color-accent-green: #3d7f00;
  --color-green-light: #8fc31f;
  --color-green-lighter: #b8d775;
  --color-grey-light: #efefef;
  --color-background: #c9e3ef;
  --color-link-focus: #4a90e2;
  --color-popup-overlay: rgba(0, 0, 0, 0.4);

  --color-collab-text: #2a2a2a;
  --color-collab-gold: #b29c52;
  --color-collab-navy: #3e4b8f;
  --color-collab-purple: #9287c7;
  --color-progress-active: #65d272;
  --color-progress-done: #9bdba3;

  --font-family-base: "Noto Sans JP", sans-serif;
  --font-family-collab: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-family-highlight: "Noto Sans CJK JP-Bold", "Noto Sans JP", Helvetica, sans-serif;
  --font-family-din: "DIN OT-Bold", Helvetica, sans-serif;

  --font-size-root: 62.5%;
  --font-size-base: 1.4rem;
  --font-size-sm: 1.4rem;
  --font-size-md: 1.6rem;

  --line-height-base: 1.5;
  --line-height-collab: 1.441;

  --spacing-unit: 1rem;
  --content-padding: 2rem;

  --container-max-width: 100%;
  --content-max-width: 35.7rem;
  --visual-max-width: 30.8rem;
  --collab-content-width: 30.4rem;

  --shadow-main: 0 0.1rem 0.4rem 0 rgba(12, 12, 13, 0.05);

  --z-index-visual: 1;
  --z-index-visual-sub: 2;
  --z-index-ui: 10;
  --z-index-popup: 1000;
}

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

html {
  font-size: var(--font-size-root);
  background: var(--color-white);
}

html,
body {
  overscroll-behavior-y: none;
}

@media screen and (max-width: 767px) {
  html:has(#page-1:not(.hidden)),
  html:has(#page-3:not(.hidden)) {
    background-color: #fcf1cc;
  }

  html:has(#page-2:not(.hidden)) {
    background-color: #a4dbd1;
  }
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button:focus-visible {
  outline: 0.2rem solid var(--color-link-focus) !important;
  outline: -webkit-focus-ring-color auto 0.5rem !important;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

.hidden {
  display: none !important;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--container-max-width);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

.sp-display {
  font-family: var(--font-family-collab);
  color: var(--color-collab-text);
}

.page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sp-display .page,
.pc-display .page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding-bottom: 14rem;
  background-color: var(--color-white);
  background-image:
    linear-gradient(180deg, rgba(230, 225, 250, 0) 40%, rgba(62, 75, 143, 0.7) 90%),
    linear-gradient(178.45deg, rgba(252, 134, 78, 0.35) 3.8%, rgba(245, 227, 110, 0.35) 26.76%, rgba(0, 189, 124, 0.35) 49.72%, rgba(32, 125, 142, 0.35) 72.67%, rgba(70, 30, 128, 0.35) 95.63%);
  background-size: 100% 2781px;
  background-repeat: no-repeat;
}

.sp-display .page::before,
.pc-display .page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url(../img/bg_washi.webp);
  background-size: 2048px 2048px;
  background-position: top left;
  opacity: 0.2;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

#page-1 {
  background-position: 0 113.2vw;
}

.page__header {
  width: calc(100% - (var(--content-padding) * 2));
  max-width: var(--content-max-width);
  margin-top: calc(var(--spacing-unit) * -2.5);
}

.page__heading {
  margin: 0;
}

.page__heading img {
  width: 105%;
  max-width: none;
}

.collab-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: calc(100% - (var(--content-padding) * 2));
  max-width: var(--collab-content-width);
  margin: 4.4rem auto 0;
  font-family: var(--font-family-collab);
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 3.2rem;
  color: var(--color-collab-navy);
}

.collab-heading__icon {
  width: 2.8rem;
  height: 2.8rem;
  flex-shrink: 0;
}

#page-1 .hero-visual,
.pc-display .hero-visual {
  display: block;
  width: 100%;
  max-width: none;
}

#page-1 .hero-title,
.pc-display .hero-title {
  display: block;
  width: 77.354%;
  max-width: none;
  margin: 4.580% 0 4.534% 11.196%;
}

.page__visual {
  position: relative;
  z-index: var(--z-index-visual);
  width: calc(100% - (var(--content-padding) * 2));
  max-width: var(--visual-max-width);
  margin-top: 3.5rem;
}

.page__visual--sub {
  position: relative;
  z-index: var(--z-index-visual-sub);
  width: 100%;
  margin-top: calc(var(--spacing-unit) * -6.5);
}

.copyright {
  display: flex;
  align-items: center;
  width: calc(100% - (var(--content-padding) * 2));
  max-width: var(--collab-content-width);
  height: 1.7rem;
  margin: 2.3rem 0 0;
}

.copyright__image {
  width: 6.6rem;
  height: 1.4rem;
}

.page__footer-logo {
  margin-top: calc(var(--spacing-unit) * 7.4);
  margin-bottom: 0;
}

.page__footer-logo img {
  width: 10.9rem;
  height: 4.1rem;
}

.progress {
  position: relative;
  z-index: var(--z-index-ui);
  width: calc(100% - (var(--content-padding) * 2));
  max-width: var(--collab-content-width);
  height: 0.5rem;
  margin: min(6.4rem, 16.285vw) auto 0;
}

.progress__step {
  position: absolute;
  top: 0;
  width: 31.88%;
  height: 100%;
  border-radius: 0.4rem;
  box-shadow: var(--shadow-main);
}

.progress__step--1 {
  left: 0;
}

.progress__step--2 {
  left: 34.06%;
}

.progress__step--3 {
  left: 68.12%;
}

.progress--overlay {
  position: absolute;
  top: min(6.4rem, 16.285vw);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}

.progress__step--pending {
  background-color: var(--color-grey-light);
}

.progress__step--active {
  background-color: var(--color-progress-active);
}

.progress__step--done {
  background-color: var(--color-progress-done);
}

.requirements {
  width: calc(100% - (var(--content-padding) * 2));
  max-width: var(--collab-content-width);
  margin-top: 3rem;
  line-height: var(--line-height-collab);
}

#page-1 .requirements {
  margin-top: 0.2rem;
}

#page-2 .requirements {
  margin-top: 2.4rem;
}

#page-3 .requirements {
  margin-top: 5.3rem;
}

.requirements__group {
  margin-bottom: 1.4rem;
}

.requirements__group:last-child {
  margin-bottom: 0;
}

.requirements__term {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.requirements__desc {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0;
}

.requirements__text {
  margin: 0 0 2.1rem;
  line-height: 2.1rem;
  font-weight: 400;
  letter-spacing: 0;
}

.requirements__text:last-of-type {
  margin-bottom: 0;
}

.tips-card {
  width: 100%;
  max-width: var(--collab-content-width);
  margin: 7rem auto 0;
  padding: 1.6rem 1.7rem 2rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-collab-gold);
  border-radius: 4rem;
}

.tips-card__title {
  font-family: var(--font-family-collab);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--color-collab-navy);
  text-align: center;
  margin-bottom: 1.4rem;
}

.tips-card__list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.tips-card__item {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
}

.tips-card__icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.tips-card__text {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-collab);
  color: var(--color-collab-text);
}

.tips-card__highlight {
  font-weight: 700;
  color: var(--color-collab-purple);
}

.tutorial {
  width: calc(100% - (var(--content-padding) * 2));
  max-width: var(--collab-content-width);
  margin-top: 5.2rem;
  text-align: center;
}

.tutorial:last-of-type {
  margin-top: 3.4rem;
}

.tutorial__image {
  border-radius: 0;
}

.next-button {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-index-ui);
  width: calc(100% - (var(--content-padding) * 2));
  max-width: var(--collab-content-width);
}

.next-button__image {
  border-radius: 0;
  filter: drop-shadow(0 0.1rem 0.2rem rgba(12, 12, 13, 0.1));
}

.next-button--waiting {
  filter: grayscale(1) opacity(0.65);
  pointer-events: none;
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-index-popup);
  width: 100%;
  height: 100%;
  background-color: var(--color-popup-overlay);
  justify-content: center;
  align-items: flex-start;
  padding-top: min(24.4rem, max(2rem, calc(50vh - 13.8rem)));
}

.popup--visible {
  display: flex;
}

.popup__content-inner {
  background-color: var(--color-white);
  padding: 3.2rem 3.1rem 3.4rem;
  border-radius: 4rem;
  max-width: var(--collab-content-width);
  width: calc(100% - (var(--content-padding) * 2));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  box-shadow: 0 0.1rem 0.3rem 0.1rem rgba(0, 0, 0, 0.15), 0 0.1rem 0.2rem rgba(0, 0, 0, 0.3);
  position: relative;
  border: 1px solid var(--color-green-light);
}

.popup__text {
  font-family: var(--font-family-collab);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-black);
  text-align: justify;
}

@media screen and (max-height: 750px) {
  #page-3.page {
    padding-bottom: 16rem;
  }
}

@media screen and (min-width: 768px) {
  :root {
    --container-max-width: 39.3rem;
  }

  .sp-display {
    display: none !important;
  }

  .pc-display.hidden {
    display: flex !important;
  }

  html {
    background-color: #c9a040;
    background-image: url(../img/bg_pc.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }

  .pc-display .page {
    background-position: 0 44.5rem;
    padding-bottom: 1.4rem;
  }

  .pc-display .copyright {
    margin-top: 2.9rem;
    padding-left: 1.35rem;
  }

  .pc-display .requirements {
    margin-top: 0;
  }

  .pc-display .requirements__group {
    text-align: center;
    border: 0.3rem solid #EA5504;
    border-radius: 1rem;
    padding: 1.3rem;
    margin: 2rem auto;
    width: fit-content;
    background-color: var(--color-white);
    font-weight: 700;
  }

  .pc-display .requirements__desc {
    color: #EA5504;
    text-align: left;
  }

  .requirements__qr {
    display: block;
    margin: 0 auto;
    width: 45%;
  }
}

@media screen and (min-width: 768px) and (max-height: 939px) {
  .pc-display { zoom: 0.9; }
  .pc-display,
  .pc-display .page { min-height: calc(100vh / 0.9); }
}

@media screen and (min-width: 768px) and (max-height: 845px) {
  .pc-display { zoom: 0.8; }
  .pc-display,
  .pc-display .page { min-height: calc(100vh / 0.8); }
}

@media screen and (min-width: 768px) and (max-height: 751px) {
  .pc-display { zoom: 0.7; }
  .pc-display,
  .pc-display .page { min-height: calc(100vh / 0.7); }
}

@media screen and (min-width: 768px) and (max-height: 657px) {
  .pc-display { zoom: 0.6; }
  .pc-display,
  .pc-display .page { min-height: calc(100vh / 0.6); }
}
