@charset "UTF-8";

/* =========================================
   1. LOADING
   ========================================= */
.loading-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--c-bg);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo-box {
  width: 220px;
  aspect-ratio: 223.793 / 286.431;
}
.loading-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.path-base {
  fill: #e0e0e0;
  opacity: 0.5;
}
.group-fill {
  clip-path: inset(100% 0 0 0);
}
.path-fill {
  fill: var(--c-green);
}
.group-text {
  opacity: 0;
}
.path-text {
  fill: var(--c-green);
}

/* Top Page Curtains */
.curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9998;
  transform: scaleY(0);
  transform-origin: bottom center;
}
.curtain.green {
  background-color: var(--c-green);
  z-index: 10000;
}
.curtain.white {
  background-color: #fff;
  z-index: 10001;
}

/* =========================================
   2. MAIN VISUAL (TOP)
   ========================================= */
.mv-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px; /* 小さすぎても表示エリア確保 */
  overflow: hidden;
}
.bg-video-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.white-mask-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 10;
  mix-blend-mode: screen;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Fluid padding */
  padding: 0 5vw;
}
.copy-wrap {
  overflow: hidden;
  margin-bottom: -1vw;
}
.main-copy {
  font-family: var(--font-en);
  /* 最小60px、最大160pxの間でスケーリング */
  font-size: clamp(50px, 12vw, 160px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #000000;
  transform: translateY(110%);
}
.decoration-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.sub-copy-container-fixed {
  position: absolute;
  left: calc(5vw + 20px);
  bottom: 15vh;
  overflow: hidden;
}
.sub-copy {
  font-size: clamp(22px, 3vw, 24px);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #000000;
  transform: translateY(100%);
  display: inline-block;
}
.bg-logo-container {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 38vw;
  overflow: hidden;
  opacity: 0.3;
}
.bg-logo-img {
  width: 100%;
  height: auto;
  transform: translate(20%, 20%);
}
.deco-line {
  position: absolute;
  bottom: 0;
  left: 5vw;
  width: 1px;
  height: 0;
  background-color: #999;
}

/* =========================================
   3. PHILOSOPHY SECTION (TOP)
   ========================================= */
.philosophy-section {
  position: relative;
  /* fluid padding */
  padding: clamp(100px, 15vw, 180px) 0;
  background-color: transparent;
  overflow: hidden;
}
.ph-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(200, 200, 200, 0.3) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(200, 200, 200, 0.3) 1px, transparent 1px);
  background-size: 100px 100px;
  z-index: -2;
  opacity: 0.4;
  pointer-events: none;
}
.ph-bg-typo {
  position: absolute;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 25vw;
  line-height: 1;
  color: var(--c-gray-light);
  opacity: 0.8;
  z-index: -1;
  pointer-events: none;
  white-space: nowrap;
}
.typo-on {
  top: 10%;
  left: -5%;
}
.typo-off {
  bottom: 5%;
  right: -5%;
  color: transparent;
  -webkit-text-stroke: 2px var(--c-gray-light);
}
.ph-center-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 0;
  background-color: var(--c-green);
  opacity: 0.5;
  z-index: 0;
}
.ph-container {
  position: relative;
  z-index: 1;
}
.ph-header {
  text-align: center;
  margin-bottom: 120px;
}
.ph-label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-green);
  border: 1px solid var(--c-green);
  padding: 8px 24px;
  border-radius: 50px;
  margin-bottom: 40px;
  background-color: rgba(255, 255, 255, 0.8);
}
.ph-main-msg {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}
.msg-row {
  overflow: hidden;
}
.msg-text {
  display: block;
  transform: translateY(100%);
}
.ph-sub-msg {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  margin-bottom: 40px;
  background: linear-gradient(to right, var(--c-text), var(--c-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ph-desc {
  font-size: 16px;
  line-height: 2;
  color: #555;
  font-weight: 500;
}
.ph-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-bottom: 120px;
}
.ph-block {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}
.block-on {
  justify-content: flex-start;
  padding-right: 50%; /* PC layout */
}
.block-off {
  justify-content: flex-end;
  padding-left: 50%; /* PC layout */
}
.ph-icon-box {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ph-circle-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--c-gray-light);
  position: relative;
}
.ph-circle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.icon-on {
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.icon-on::after {
  background-color: var(--c-green);
  box-shadow: 0 0 15px var(--c-green);
}
.icon-off {
  background-color: #222;
  border-color: #222;
}
.icon-off::after {
  background-color: #555;
}
.ph-block-text {
  flex: 1;
}
.text-right {
  text-align: right;
}
.block-eng {
  font-family: var(--font-en);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--c-text);
}
.c-outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--c-text);
}
.block-jp {
  font-size: 14px;
  letter-spacing: 0.15em;
  color: #666;
  font-weight: 500;
  position: relative;
  display: inline-block;
}
.block-jp::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--c-green);
}
.text-right .block-jp::before {
  left: auto;
  right: 0;
  background-color: #999;
}
.ph-footer {
  text-align: center;
}
.ph-footer-msg {
  font-size: 18px;
  font-weight: 700;
  line-height: 2;
  margin-bottom: 60px;
}
.ph-btn {
  display: inline-block;
  position: relative;
  padding: 20px 60px;
  border: 1px solid var(--c-text);
  text-decoration: none;
  color: var(--c-text);
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.1em;
  overflow: hidden;
  transition: color 0.4s;
}
.ph-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--c-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 0;
}
.ph-btn:hover {
  color: #fff;
}
.ph-btn:hover::before {
  transform: scaleX(1);
}
.btn-inner {
  position: relative;
  z-index: 1;
}

/* =========================================
   4. SERVICE SECTION (TOP)
   ========================================= */
.service-section {
  position: relative;
  padding: clamp(100px, 15vw, 180px) 0;
  z-index: 10;
  color: #fff;
  background-color: transparent;
}
.service-bg-shutter {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #050505;
  z-index: 0;
  transform: scaleY(0);
  transform-origin: bottom center;
  will-change: transform;
}
.service-container {
  position: relative;
  z-index: 20;
}
.service-header {
  margin-bottom: 80px;
}
.service-label {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-green);
  margin-bottom: 20px;
  font-weight: 700;
}
.service-heading {
  font-family: var(--font-en);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 30px;
}
.service-heading .c-accent {
  color: var(--c-green);
}
.service-lead {
  font-size: 16px;
  line-height: 2;
  opacity: 0.8;
  color: #ccc;
}
.service-grid {
  display: grid;
  /* Fluid Grid: 最小幅300pxを確保しつつ配置 */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: #111;
  border: 1px solid #333;
  text-decoration: none;
  color: #fff;
  transition: all 0.4s ease;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.service-card:hover {
  background: #1a1a1a;
  transform: translateY(-10px);
  border-color: var(--c-green);
}
.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid #333;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  opacity: 0.8;
}
.service-card:hover .card-thumb img {
  transform: scale(1.1);
  opacity: 1;
}
.card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-head {
  margin-bottom: 15px;
}
.card-num {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 300;
  color: var(--c-green);
  display: block;
  margin-bottom: 5px;
}
.card-title {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}
.card-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #999;
  margin-bottom: 30px;
  flex-grow: 1;
}
.card-arrow {
  font-family: var(--font-en);
  font-size: 20px;
  text-align: right;
  color: var(--c-green);
  transition: transform 0.3s;
}
.service-card:hover .card-arrow {
  transform: translateX(10px);
}
.service-footer {
  margin-top: 60px;
  text-align: right;
}
.srv-view-btn {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #fff;
  padding-bottom: 5px;
  transition: opacity 0.3s;
}
.srv-view-btn:hover {
  opacity: 0.7;
}

/* =========================================
   5. NEWS SECTION (TOP)
   ========================================= */
.news-section {
  position: relative;
  padding: clamp(100px, 15vw, 160px) 0;
  background-color: #ffffff;
  z-index: 20;
  color: #111;
}
.news-container {
  position: relative;
  z-index: 2;
}
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap;
  gap: 20px;
}
.news-label {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-green);
  margin-bottom: 10px;
}
.news-heading {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  line-height: 1;
}
.news-tab-area {
  display: flex;
  gap: 10px;
  margin-left: 40px;
  margin-right: auto;
}
.news-tab {
  background: none;
  border: 1px solid #ddd;
  padding: 8px 24px;
  border-radius: 30px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  transition: all 0.3s;
}
.news-tab:hover,
.news-tab.is-active {
  background-color: var(--c-green);
  border-color: var(--c-green);
  color: #fff;
}
.news-view-all {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #111;
  padding-bottom: 5px;
  transition: opacity 0.3s;
}
.news-view-all:hover {
  opacity: 0.6;
}
.news-list {
  position: relative;
  min-height: 200px;
}
.news-item {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #111 !important;
  transition: all 0.3s;
}
.news-item:hover {
  background-color: #f9f9f9;
  padding-left: 15px;
  padding-right: 15px;
  border-radius: 8px;
}
.news-thumb {
  width: 160px;
  height: 100px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
  background-color: #eee;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.news-item:hover .news-thumb img {
  transform: scale(1.1);
}
.news-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 15px;
}
.n-date {
  font-family: var(--font-en);
  font-size: 14px;
  color: #888;
}
.n-cat {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 4px;
}
.cat-news {
  background-color: #eee;
  color: #555;
}
.cat-blog {
  background-color: var(--c-green);
  color: #fff;
}
.n-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}
.n-arrow {
  font-size: 20px;
  color: var(--c-green);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
}
.news-item:hover .n-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================
   6. COMPANY SECTION (TOP)
   ========================================= */
.company-section {
  position: relative;
  padding: clamp(100px, 15vw, 160px) 0;
  background-color: #fcfcfc;
  z-index: 20;
  color: var(--c-text);
  overflow: hidden;
}
.company-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}
.company-logo-col {
  width: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cmp-main-logo {
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 0 auto;
}
.company-text-col {
  width: 50%;
}
.company-label {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-green);
  margin-bottom: 30px;
}
.company-heading {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}
.company-desc {
  font-size: 15px;
  line-height: 2.2;
  color: #555;
  margin-bottom: 50px;
  font-weight: 500;
}
.company-btn-wrap {
  text-align: left;
}
.btn-simple-arrow {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--c-text);
  text-decoration: none;
  position: relative;
  padding-bottom: 5px;
}
.btn-simple-arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--c-text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.btn-simple-arrow:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.btn-simple-arrow .arrow {
  transition: transform 0.3s;
}
.btn-simple-arrow:hover .arrow {
  transform: translateX(10px);
}

/* =========================================
   7. RESPONSIVE MANAGER (Descending Order)
   ========================================= */

/* --- 1200px --- */
@media (max-width: 1200px) {
  /* 微調整エリア。基本はfluidで対応 */
}

/* --- 1024px --- */
@media (max-width: 1024px) {
  /* Service gridが狭くなりすぎる前に調整が必要ならここで2列等へ */
  .service-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* --- 992px --- */
@media (max-width: 992px) {
  /* MV Layout */
  .white-mask-layer {
    justify-content: flex-start;
    padding-top: 30vh;
  }
  .sub-copy-container-fixed {
    left: 7vw;
    bottom: auto;
    top: calc(30vh + 30vw + 20px);
  }
  .bg-logo-container {
    width: 47vw;
    opacity: 0.3;
  }
}

/* --- 900px --- */
@media (max-width: 900px) {
  /* Company Layout collapse */
  .company-container {
    flex-direction: column;
    align-items: center;
    gap: 50px;
  }
  .company-logo-col,
  .company-text-col {
    width: fit-content;
  }
  .company-logo-col {
    justify-content: center;
  }
  .cmp-main-logo {
    max-width: 200px;
    margin: 0;
  }
}
/* --- 768px --- */
@media (max-width: 850px) {
  .bg-logo-container {
    width: 50vw;
  }
}
/* --- 768px --- */
@media (max-width: 768px) {
  /* Philosophy: Stack layout */
  .ph-bg-typo {
    font-size: 40vw;
    opacity: 0.55;
  }
  .typo-on {
    top: 15%;
    left: -10%;
  }
  .typo-off {
    bottom: 10%;
    right: -10%;
  }

  .ph-center-line {
    left: 20px;
    transform: none;
  }
  .ph-content-wrapper {
    gap: 60px;
  }
  .ph-block {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 0 40px; /* 線を避ける */
  }
  .block-on,
  .block-off {
    padding-right: 0;
    padding-left: 40px;
  }
  .text-right {
    text-align: left;
  }
  .text-right .block-jp::before {
    left: 0;
    right: auto;
  }

  /* News */
  .news-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .news-tab-area {
    margin-left: 0;
    width: 100%;
  }
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .news-thumb {
    width: 100%;
    height: 180px;
  }
  .n-arrow {
    display: none;
  }
}

/* --- 576px (Mobile large) --- */
@media (max-width: 576px) {
  .bg-logo-container {
    width: 55vw;
  }
  /* Service card */
  .card-title {
    font-size: 22px;
  }

  /* MV調整 */
  .main-copy {
    line-height: 1.1;
  }
  /* Company Layout collapse */
  .company-container {
    align-items: center;
  }
  .company-text-col {
    width: 100%;
  }
}

/* --- 480px --- */
@media (max-width: 480px) {
  .white-mask-layer {
    padding-top: 25vh;
  }
  .sub-copy-container-fixed {
    left: 6vw;
  }
  .bg-logo-container {
    width: 80vw;
  }
}
/* --- 400px --- */
@media (max-width: 480px) {
  .sub-copy-container-fixed {
    top: calc(30vh + 25vw + 20px);
  }
  .ph-header {
    margin-bottom: 80px;
  }
}
/* --- 320px (Minimum) --- */
@media (max-width: 320px) {
  /* 念の為のオーバーフロー防止 */
  .service-heading,
  .contact-heading {
    word-break: break-all;
  }
}
