@charset "UTF-8";

/* ==========================================================================
   Base & Variables
   ========================================================================== */

:root {
  /* Colors */
  --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);

  /* Typography */
  --font-family-base: "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%;
  /* 1rem = 10px */
  --font-size-base: 1.4rem;
  --font-size-sm: 1.4rem;
  /* 14px */
  --font-size-md: 1.6rem;
  /* 16px */

  --line-height-base: 1.5;
  --line-height-guide: 2.02rem;
  /* 20.2px */

  /* Spacing */
  --spacing-unit: 1rem;
  /* 10px */
  --content-padding: 2rem;

  /* Layout */
  --container-max-width: 100%;
  --content-max-width: 35.7rem;
  --visual-max-width: 30.8rem;

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

  /* Z-Index */
  --z-index-visual: 1;
  --z-index-visual-sub: 2;
  --z-index-ui: 10;
  --z-index-popup: 1000;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-root);
  /* nyunoya html*/
  background: url(../img/bg_re.png) top center repeat-y;
}

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;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* ==========================================================================
   Main Layout
   ========================================================================== */

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

/* ==========================================================================
   Page Structure
   ========================================================================== */

.page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* padding-bottom: 12rem; */
}

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

.page__heading {
  margin: 0;
}

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

.page__title {
  position: relative;
  width: calc(100% - (var(--content-padding) * 2));
  max-width: 31.5rem;
  margin-top: 10rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.page__title-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.page__title-star {
  position: absolute;
  top: -4.5rem;
  /* left: -1rem; */
  width: 2.8rem;
  height: 2.8rem;
}

/* .page__title-img {
  max-width: 15.2rem;
} */

/* Visuals */
.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: 5.5rem;
}

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

/* Footer Logo */
.page__footer-logo {
  margin-top: calc(var(--spacing-unit) * 4);
  margin-bottom: calc(var(--spacing-unit) * 12);
}

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

/* ==========================================================================
   Components
   ========================================================================== */

/* Progress Bar */
.progress {
  position: relative;
  z-index: var(--z-index-ui);
  width: calc(100% - (var(--content-padding) * 2));
  max-width: 31.5rem;
  height: 0.5rem;
  margin: 6rem 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__step--pending {
  background-color: var(--color-grey-light);
}

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

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

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

#page-2 .requirements {
  margin-bottom: calc(var(--spacing-unit) * 10);
}

.requirements__group {
  margin-bottom: 1.4rem;
  /* 1em approx, using rem */
}

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

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

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

/* Page 3 specifics for Requirements Text */
.requirements__text {
  margin: 0 0 2.5rem;
  font-weight: 400;
  letter-spacing: 0;
}

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

/* Scanning Guide (BEM Refactor) */
.scanning-guide {
  position: relative;
  width: 100%;
  max-width: 31.2rem;
  margin: 6.4rem auto 0;
}

.scanning-guide__frame {
  display: block;
  width: 100%;
  height: auto;
}

.scanning-guide__items {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-top: 18%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5%;
}

/* Guide Items (Steps) */
.scanning-guide__item {
  position: relative;
  width: 87%;
  height: auto;
  flex-shrink: 0;
}

/* Guide Text */
.scanning-guide__text {
  position: relative;
  width: 89%;
  margin-left: 9%;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-guide);
  color: var(--color-text-secondary);
  font-family: var(--font-family-base);
  letter-spacing: 0;
}

/* Highlights in Guide */
.scanning-guide__highlight {
  font-family: var(--font-family-highlight);
  font-weight: 700;
  color: var(--color-accent-green);
}

.scanning-guide__highlight--dark {
  color: var(--color-text-secondary);
}

.scanning-guide__icon {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  width: 1.4rem;
  height: 1.4rem;
}

/* Tutorial Section */
.tutorial {
  width: 90%;
  max-width: 32rem;
  margin-top: calc(var(--spacing-unit) * 2);
  text-align: center;
}

.tutorial:last-of-type {
  margin-top: calc(var(--spacing-unit) * 1);
}

.tutorial__image {
  border-radius: 0.5rem;
}

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

.next-button__image {
  border-radius: 0.6rem;
}

/* Popup */
.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: center;
}

.popup--visible {
  display: flex;
}

.popup__content-inner {
  background-color: var(--color-white);
  padding: 3rem;
  border-radius: 1.2rem;
  max-width: 75%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0.4rem 2rem rgba(0, 0, 0, 0.4);
  position: relative;
  border: 0.25rem solid var(--color-green-light);
}

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

/* ==========================================================================
   Media Queries (PC Support)
   ========================================================================== */
@media screen and (min-width: 768px) {
  :root {
    --container-max-width: 39.3rem;
  }

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

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

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

  .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%;
  }

  html {
    background-color: var(--color-background);
    background-image: none;
  }

  .container::before {
    content: "";
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    width: 100%;
    max-width: var(--container-max-width);
    height: 100%;
    background-image: url(../img/bg_re.png);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
  }
}