@charset "UTF-8";

/* =========================================
   SUBPAGE COMMON (Shared by Philosophy, Services, etc.)
   NOTE: Depends on common.css
   ========================================= */

/* ----------------------------------
   1. PAGE TRANSITION LAYERS
   ---------------------------------- */
.pt-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  transform-origin: bottom;
  will-change: transform;
}
.pt-black {
  background-color: #050505;
  z-index: 10000;
}
.pt-green {
  background-color: var(--c-green);
  z-index: 9999;
}

/* ----------------------------------
   2. LAYOUT & DECORATION
   ---------------------------------- */
.ph-main {
  padding-top: 120px; /* Header height + spacing */
  background-color: transparent;
  color: #111;
  position: relative;
  overflow: hidden;
}

/* Rainbow Line */
.ph-guide-line {
  position: absolute;
  top: 0;
  left: 3vw;
  width: 3px;
  height: 100%;
  z-index: 0;
  background: linear-gradient(
    180deg,
    #ff0055,
    #ff9900,
    #ffdd00,
    #00ff91,
    #00ccff,
    #aa00ff,
    #ff0055
  );
  background-size: 100% 600%;
  animation: rainbowFlow 10s linear infinite;
  opacity: 0.2;
  pointer-events: none;
}
@keyframes rainbowFlow {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 0% 100%;
  }
}

/* Wide Container for MV */
.ph-container-wide {
  width: 92%;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ----------------------------------
   3. COMMON SECTION HEADER
   ---------------------------------- */
.c-sec-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 60px);
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}
.c-num {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  color: var(--c-green);
}
.c-line {
  width: 1px;
  height: 20px;
  background-color: #ccc;
  transform: rotate(20deg);
}
.c-label {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #333;
}

/* ----------------------------------
   4. SUBPAGE MAIN VISUAL (Text Based)
   ---------------------------------- */
.ph-mv-wide {
  position: relative;
  width: 100%;
  /* 高さ固定ではなく、コンテンツ量＋余白で管理 */
  min-height: 400px;
  display: flex;
  align-items: center;
  margin-bottom: clamp(60px, 10vw, 120px);
  padding: 40px 0;
}
.mv-flex-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  gap: 40px;
}
.mv-txt-group {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.mv-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-green);
}
.mv-sep {
  color: #ccc;
}
.mv-jp-sm {
  font-family: var(--font-jp);
  color: #111;
  letter-spacing: 0.1em;
}

.mv-heading {
  font-family: var(--font-en);
  font-weight: 800;
  /* Fluid Typography: 60px -> 130px */
  font-size: clamp(60px, 9vw, 130px);
  line-height: 0.85;
  color: #111;
  letter-spacing: -0.03em;
}
.mv-char-row {
  display: block;
  white-space: nowrap;
}
.mv-char-row.indent {
  margin-left: 0.8em;
}
.char-box {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.js-char {
  display: inline-block;
  will-change: transform;
}

.mv-logo-group {
  flex-shrink: 0;
  opacity: 0.8;
  padding-bottom: 10px;
}
.mv-logo-img {
  width: clamp(100px, 15vw, 180px);
  height: auto;
  display: block;
}

/* ----------------------------------
   RESPONSIVE MANAGER
   ---------------------------------- */

/* --- 950px --- */
@media (max-width: 950px) {
  .ph-mv-wide {
    min-height: auto;
    padding-top: 0;
    margin-bottom: 80px;
  }
  .mv-flex-row {
    flex-direction: column-reverse; /* ロゴを上に配置 */
    align-items: flex-start;
    gap: 20px;
  }

  /* Logo adjustments */
  .mv-logo-group {
    width: 100%;
    display: flex;
    justify-content: flex-end; /* 右上に配置 */
    opacity: 0.4;
    margin-bottom: -40px; /* テキストと少し重ねる */
    z-index: 1;
  }

  /* Typography adjustments */
  .mv-heading {
    /* 画面幅が狭いときはvwを大きくして迫力を出す */
    font-size: 15vw;
    width: 100%;
  }
  .mv-char-row {
    width: 100%;
    display: flex;
  }
  .mv-char-row.indent {
    margin-left: 0;
    justify-content: flex-end;
  }
  .mv-meta {
    margin-bottom: 10px;
  }

  /* Line adjustments */
  .ph-guide-line {
    width: 2px;
    left: 10px;
  }
}

/* --- 480px --- */
@media (max-width: 480px) {
  .mv-heading {
    font-size: 17vw;
  }
}
