/* 基本スタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-color: #3E3A39;
  --accent-color: #F0E900;
  /* 黄色のアクセントカラー */
  --fontfam-eng: "Gabarito", sans-serif;
  --fontfam-jp: "Noto Sans JP", sans-serif;
}

html {
  font-size: 15px;
}

body {
  overflow: hidden;
  background-color: #FFFFFF;
  color: var(--font-color);
  margin: 0;
  font-family: var(--fontfam-jp);
  font-feature-settings: "palt" 1;
}

p {
  text-align: justify;
}

.eng {
  font-family: var(--fontfam-eng);
  font-weight: normal;
  color: #3E3A3950;
}

/* ローディング画面 ======================================================= */
#loading-screen {
  position: fixed;
  width: 100%;
  height: 100%;
  /* ★★★ 背景色は常に白に固定 ★★★ */
  background-color: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  overflow: hidden;
  opacity: 1;
  /* JSでフェードアウト */
  will-change: opacity;
  /* background-colorのwill-changeは不要に */
}

.logo-container {
  position: relative;
  width: 200px;
  height: auto;
  text-align: center;
  z-index: 1002;
  opacity: 0;
  /* JSで表示制御 */
  will-change: opacity;
}

.parx-logoshape {
  width: 90px;
  height: auto;
  margin-bottom: 0px;
  opacity: 0;
  /* JSで表示制御 */
  will-change: opacity, transform;
}

.parx-logo {
  width: 170px;
  height: auto;
  margin-bottom: 10px;
  opacity: 0;
  /* JSで表示制御 */
  transform: translateY(20px);
  will-change: opacity, transform;
}

/* ローディング用円の共通スタイル */
#loading-circle-yellow,
#loading-circle-white {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  /* JSで表示 */
  will-change: width, height, opacity, transform, background-color, scale;
}

#loading-circle-yellow {
  /* 後半の拡大アニメーション用 */
  background-color: var(--accent-color);
  z-index: 1000;
}

/* ★★★ #loading-circle-yellow2 の初期スタイルをCSSで完全に設定 ★★★ */
#loading-circle-yellow2 {
  position: fixed;
  top: 50%;
  left: 50%;
  /* ★ 初期スケール1をtransformに含めることで、JSでのセットが不要になることも期待 */
  transform: translate(-50%, -50%) scale(1);
  width: 140vmax;
  /* 画面を覆う十分な大きさ (直径) */
  height: 140vmax;
  border-radius: 50%;
  /* 正円 */
  background-color: var(--accent-color);
  /* 黄色 */
  opacity: 1;
  /* ★最初から表示 */
  z-index: 10004;
  /* ★最前面 */
  pointer-events: none;
  will-change: transform, opacity;
  /* scaleとopacityのアニメーションのため */
  display: block;
  /* ★最初から表示 */
  transform-origin: 50% 50%;
  /* ★★★ これを追加 ★★★ */
}

#loading-circle-white {
  background-color: #FFFFFF;
  z-index: 1001;
}





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

#three-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#content {
  position: fixed;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  perspective: 1000px;
  will-change: opacity;
}

.page {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateZ(0px) scale(1);
  transition: none;
  pointer-events: none;
  backface-visibility: hidden;
  overflow: hidden;
  will-change: opacity, transform;
}

.page.active {
  opacity: 1;
  pointer-events: auto;
}

.page-content-container {
  max-width: 80vw;
  width: 90%;
  position: relative;
  padding: 80px 40px;
}

#top-page .page-content-container {
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* ▼▼▼ ユーザー指定のスタイル反映のため、元のHTMLにあったものをここにも適用 ▼▼▼ */
  max-width: 90%;
  /* 元のHTMLにあった指定 */
  position: relative;
  /* 元のHTMLにあった指定 */
  /* ▲▲▲ ▲▲▲ */
}

#about-page .page-content-container,
#services-page .page-content-container {
  overflow-y: auto;
  justify-content: flex-start;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 150px;
}

#about-page .page-content-container::-webkit-scrollbar,
#services-page .page-content-container::-webkit-scrollbar {
  display: none;
}

.page-header {
  position: relative;
  margin-bottom: 60px;
  align-self: flex-start;
}

.page-header::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 50%;
  width: 30px;
  height: 3px;
  background-color: var(--accent-color);
  transform: translateY(-50%);
}

.big-text {
  font-family: var(--fontfam-eng);
  font-size: 12vw;
  font-weight: 600;
  line-height: 1.05;
  color: var(--accent-color);
  text-align: left;
}

#about-page .mission-title,
#services-page .solutions-title {
  font-size: 7vw;
  margin-bottom: 0.6em;
  margin-top: 60px;
}

.page-content-container p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.navigation {
  position: fixed;
  top: 2rem;
  right: 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 2.5rem;
  z-index: 100;
}

.nav-btn {
  font-family: var(--fontfam-eng);
  background: none;
  border: none;
  padding: 0.5rem 0;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--font-color);
}

.nav-btn:hover {
  color: var(--accent-color);
}

.nav-btn.active {
  color: var(--accent-color);
}

.nav-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
}

.header-logo {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 100;
  display: flex;
  align-items: center;
}

.logo_btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header-logo img {
  width: 150px;
  height: auto;
}

#top-page .hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

#top-page .big-message {
  margin-bottom: 2rem;
  position: relative;
}

#top-page .big-message::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 50%;
  width: 30px;
  height: 3px;
  background-color: var(--accent-color);
  transform: translateY(-50%);
}

/* ▼▼▼ #top-page .jp-message のスタイルをユーザー指定に戻します ▼▼▼ */
/* まず、汎用的な .jp-message のスタイル (もしあれば。元のCSSから) */
.jp-message {
  /* このクラス自体への基本的なスタイル */
  font-size: 1.8rem;
  /* これは基本、下のID指定で上書きされる可能性 */
  text-align: left;
  margin-left: 5px;
  /* 基本マージン、absoluteの場合は影響が異なる */
  line-height: 1.5;
  /* 基本行間 */
  font-weight: 600;
  /* 基本太さ */
}

/* 次に、#top-page 内の .jp-message に対するユーザー指定の絶対配置スタイル */
#top-page .jp-message {
  position: absolute;
  top: 38%;
  left: 48vw;
  font-size: 6.5vw;
  /* 汎用の1.8remから上書き */
  line-height: 1.4;
  /* 汎用の1.5から上書き */
  /* font-weight: 600; と text-align: left; は上の .jp-message から継承される */
  /* margin-left: 5px; は left: 48vw で位置が決まるため、実質的に影響なし */
}

/* ▲▲▲ ▲▲▲ */

#about-page {
  overflow: visible;
}

#about-page .about_shape {
  position: absolute;
  width: 50%;
  top: 50%;
  right: -100%;
  opacity: 0;

  transform: translate(0%, -50%);
  transition: all 0.8s ease 0.5s;
  animation: rotateClockwise 90s linear infinite;
}

#about-page.active .about_shape {
  right: -15%;
  opacity: 0.2;

}

@keyframes rotateClockwise {
  0% {
    transform: translate(0%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(0%, -50%) rotate(360deg);
  }
}

#about-page .mission-statement {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  align-self: flex-start;
  width: 100%;
}

#about-page .mission-lead {
  font-size: min(2.7vw, 4rem);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

#about-page .mission-description {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  margin-bottom: 2rem;
}

#about-page .mission-description p {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
  letter-spacing: 0.05em;
}

#about-page .mission-en {
  margin-top: 0px;
}

#about-page .mission-en p {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.8;
  opacity: 0.8;
  margin: 0;
}

#about-page .mission-en p.eng {
  font-weight: 300;
  font-size: 80%;
}

#services-page .solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px 100px;
  margin-top: 9vh;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  align-self: flex-start;
  /* これは親がflexでないと効かないが、元のCSSにあったので残す */
  margin-bottom: 50px;
}

#services-page .solution-item {
  display: flex;
  gap: 4vw;
  align-items: flex-start;
}

#services-page .solution-number {
  font-size: 2rem;
  font-weight: 200;
  color: var(--accent-color);
  font-family: var(--fontfam-eng);
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1em;
}

#services-page .solution-content {
  flex-grow: 1;
}

#services-page .solution-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: #000;
}

#services-page .solution-content p {
  font-size: 1rem;
  line-height: 2;
  margin: 0;
  color: #333;
}

.animate-title,
.animate-lead,
.animate-item {
  opacity: 0;
  transform: translateY(30px);
}

.page:not(.active) .animate-title,
.page:not(.active) .animate-lead,
.page:not(.active) .animate-item {
  opacity: 0 !important;
  transform: translateY(30px) !important;
  transition: none !important;
}

/* レスポンシブ対応 ======================================================= */
@media (max-width: 992px) {
  .page-content-container {
    padding: 60px 20px;
    max-width: 95vw;
  }

  .big-text {
    font-size: 10vw;
  }

  #about-page .mission-title,
  #services-page .solutions-title {
    font-size: 6vw;
    margin-top: 40px;
  }

  #about-page .mission-lead {
    font-size: 1.6rem;
  }

  #services-page .solutions-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 5vh;
  }

  #services-page .solution-item {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .big-text {
    font-size: 13vw;
  }

  #about-page .mission-title,
  #services-page .solutions-title {
    font-size: 8vw;
    margin-bottom: 0.8em;
  }

  /* #top-page .jp-message のレスポンシブスタイルは、
     上記のユーザー指定の絶対配置スタイルをベースに調整が必要になります。
     ここでは汎用的な .jp-message のフォントサイズ調整のみ記載します。 */
  .jp-message {
    /* 汎用クラスのフォントサイズ調整 */
    font-size: 1.3rem;
    /* 元の指定より少し小さく */
    line-height: 1.6;
  }

  /* 具体的な #top-page .jp-message の left, top, font-size の調整は、
     メディアクエリ内でユーザー様が行う想定です。 */

  #top-page .big-message::before,
  .page-header::before {
    left: -20px;
    width: 20px;
  }

  #about-page .mission-lead {
    font-size: 1.4rem;
  }

  #about-page .mission-description p,
  #about-page .mission-en p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  #services-page .solution-number {
    font-size: 1.6rem;
  }

  #services-page .solution-content h2 {
    font-size: 1.3rem;
  }

  #services-page .solution-content p {
    font-size: 0.85rem;
    line-height: 1.8;
  }

  .navigation {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    justify-content: space-around;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0.8rem 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
  }

  .nav-btn {
    font-size: 0.9rem;
  }

  .header-logo {
    top: 1.5rem;
    left: 1.5rem;
  }

  .header-logo img {
    width: 100px;
  }

  .page-content-container {
    width: 90%;
    padding: 40px 15px;
  }

  #about-page .page-content-container,
  #services-page .page-content-container {
    height: calc(100vh - 80px - 55px);
    /* 仮のヘッダーとフッターナビの高さを引く */
    padding-bottom: 30px;
  }

  #top-page .page-content-container {
    padding-bottom: 70px;
    justify-content: center;
  }
}

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