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

/* Meyer's Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/* End of Reset */


:root {
  /* Colors */
  --color-text: #474747;
  --color-white: #ffffff;
  --color-green-light: #8fc31f;
  --color-green-lighter: #b8d775;
  --color-grey-light: #efefef;
  --color-background: #c9e3ef;
  --color-popup-bg: rgba(0, 0, 0, 0.4);

  /* Typography */
  --font-family-base: 'Noto Sans JP', sans-serif;
  --font-size-base: 1.4rem;
  --line-height-base: 1.5;

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

  /* Shadow */
  --shadow-main: 0px 1px 4px 0px rgba(12, 12, 13, 0.05);

  /* Layout */
  --container-max-width: 39.3rem;
  --content-max-width: 35.7rem;
  --content-padding: 2rem;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  background-color: var(--color-background);
}

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

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

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

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

button:focus-visible {
  outline: 2px solid #4a90e2 !important;
  outline: -webkit-focus-ring-color auto 5px !important;
}

.hidden {
  display: none !important;
}


/* ==========================================================================
   Main Container
   ========================================================================== */

.container {
  max-width: var(--container-max-width);
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem 0;
  background-image: url(../img/bg.png);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.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__visual {
  width: calc(100% - (var(--content-padding) * 2));
  max-width: 30.8rem;
  margin-top: 13.1rem;
  position: relative;
  z-index: 1;
}

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

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

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

.page__title-star {
  width: 2rem;
  height: 2rem;
  position: absolute;
  top: -2rem;
  left: -1rem;
}

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

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

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

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

/* Progress Bar */
.progress {
  position: fixed;
  top: calc(var(--spacing-unit) * 2);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - (var(--content-padding) * 2));
  max-width: 30.4rem;
  height: 0.5rem;
  z-index: 10;
  margin-top: 6.4rem;
}

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

.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 Section */
.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: 13rem;
}

#page-3 .requirements {
  /* text-align: center; */
}

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

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

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

#page-3 .requirements__description {
  margin-bottom: 2.5rem;
}
#page-3 .requirements__description:last-of-type {
  margin-bottom: 0;
}


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

.tutorial__image {
  border-radius: 0.5rem;
}


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

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


/* Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-popup-bg);
  display: none; /* Changed to none for default hidden state */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup--visible {
  display: flex;
}

.popup__content {
  text-align: center;
  /* width: 100%; */
}
