@charset "UTF-8";

/* =========================================
   PHILOSOPHY PAGE STYLES
   ========================================= */

/* Common Section Padding */
.ph-sec {
  padding: clamp(100px, 15vw, 180px) 0;
  position: relative;
}

/* =========================================
   1. VISION (Split Layout)
   ========================================= */
.ph-vision {
  padding-top: 0;
}

.vision-bg-text {
  position: absolute;
  top: 0;
  right: -5vw;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 25vw;
  line-height: 1;
  color: #f8f8f8;
  z-index: -1;
  pointer-events: none;
}

.vision-split-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  /* GapもFluidに */
  gap: clamp(40px, 5vw, 80px);
}

.vision-left {
  width: 45%;
}
.v-catch {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
  font-feature-settings: "palt";
}
.v-decor-bar {
  width: 0; /* JSで伸ばす */
  height: 4px;
  background-color: var(--c-green);
}

.vision-right {
  width: 50%;
  padding-top: 10px;
  opacity: 0;
  transform: translateX(40px);
}
.v-body-text p {
  font-size: 16px;
  line-height: 2.4;
  color: #444;
  margin-bottom: 40px;
  font-weight: 500;
  text-align: justify;
}
.v-body-text p:last-child {
  margin-bottom: 0;
}

/* Animation Styles */
.js-fill-line {
  display: inline-block;
  color: transparent !important;
  background: linear-gradient(to right, #000000 50%, #cccccc 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* =========================================
   2. DUALITY (Box Style)
   ========================================= */
.ph-duality {
  /* 少し詰め気味に調整 */
  padding-top: 60px;
}
.bg-large-text {
  position: absolute;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 25vw;
  line-height: 1;
  color: #f7f7f7;
  z-index: -1;
  pointer-events: none;
}
.parallax-on {
  top: 10%;
  left: -5%;
}
.parallax-off {
  bottom: 10%;
  right: -5%;
  color: transparent;
  -webkit-text-stroke: 2px #f7f7f7;
}

.duality-wrapper {
  display: flex;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 60px);
}

.d-box-block {
  width: 48%;
  background-color: #fbfbfb;
  border: 1px solid #f0f0f0;
  padding: clamp(40px, 5vw, 80px) clamp(30px, 4vw, 50px);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.d-box-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: var(--c-green);
}

.d-bg-char {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: clamp(80px, 12vw, 140px);
  line-height: 1;
  color: #fff;
  z-index: 0;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.02);
}

.d-content {
  position: relative;
  z-index: 1;
}
.d-title {
  font-family: var(--font-en);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.c-outline {
  color: transparent;
  -webkit-text-stroke: 1px #111;
}
.d-line {
  width: 40px;
  height: 2px;
  background-color: var(--c-green);
  margin-bottom: 20px;
}
.d-cap {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 0.1em;
}
.d-desc {
  font-size: 14px;
  line-height: 2.2;
  color: #666;
  text-align: justify;
}

/* =========================================
   3. ROOTS (Dark Mode)
   ========================================= */
.ph-roots {
  position: relative;
  padding: clamp(100px, 15vw, 200px) 0 clamp(40px, 5vw, 130px);
  color: #111;
  transition: color 0.6s ease;
}
.roots-bg-curtain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%; /* JSで伸ばす */
  background-color: #111;
  z-index: 0;
}
.js-roots-content {
  position: relative;
  z-index: 1;
}

/* Dark Mode Colors */
.ph-roots.is-active {
  color: #fff;
}
.ph-roots.is-active .c-num {
  color: var(--c-green);
}
.ph-roots.is-active .c-line {
  background-color: #555;
}
.ph-roots.is-active .c-label {
  color: #ccc;
}
.ph-roots.is-active .c-sec-head {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}
.ph-roots.is-active .roots-msg-group p {
  color: #ccc;
}

.roots-main-area {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding-top: 40px;
}
.roots-head {
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 80px;
  letter-spacing: 0.05em;
}
.roots-msg-group p {
  font-size: 16px;
  line-height: 2.4;
  margin-bottom: 60px;
  font-weight: 500;
}
.roots-quote-box {
  margin-bottom: 60px;
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: border-color 0.6s;
}
.ph-roots.is-active .roots-quote-box {
  border-color: rgba(255, 255, 255, 0.2);
}
.quote-en {
  font-family: var(--font-en);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--c-green);
  line-height: 1.2;
  margin-bottom: 10px;
}
.quote-jp {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 700;
}

/* =========================================
   4. MESSAGE
   ========================================= */
.ph-message {
  text-align: center;
  padding: clamp(100px, 15vw, 180px) 0;
}
.msg-centered {
  display: inline-block;
  width: 100%;
}
.msg-jp {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-green);
  letter-spacing: 0.3em;
  margin-bottom: 20px;
}
.msg-video-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 3 / 1;
  margin: 0 auto 40px;
  background-color: #fff;
}
.msg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.msg-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  mix-blend-mode: screen;
  display: flex;
  align-items: center;
  justify-content: center;
}
.msg-en-video {
  font-family: var(--font-en);
  font-size: clamp(32px, 9vw, 110px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #000;
  margin: 0;
}
.msg-sub {
  font-size: 16px;
  line-height: 2.2;
  color: #111;
  font-weight: 500;
}

/* =========================================
   RESPONSIVE MANAGER
   ========================================= */

/* --- 950px --- */
@media (max-width: 950px) {
  /* Vision */
  .vision-split-layout {
    flex-direction: column;
    gap: 40px;
  }
  .vision-left,
  .vision-right {
    width: 100%;
  }
  .vision-bg-text {
    font-size: 25vw;
    top: 100px;
    right: -10vw;
  }

  /* Duality */
  .duality-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .d-box-block {
    width: 100%;
    padding: 40px 30px;
  }
}

/* --- 768px --- */
@media (max-width: 768px) {
  /* Roots */
  .roots-quote-box {
    padding: 30px 0;
  }

  /* Message */
  .msg-video-wrap {
    aspect-ratio: 16 / 9;
  }
}

/* --- 480px --- */
@media (max-width: 480px) {
  /* Message */
  .msg-en-video {
    /* スマホで文字が長すぎる場合の改行許容 */
    word-break: break-word;
    font-size: 14vw;
  }
}
