@charset "UTF-8";

/* =========================================
   トップページ固有スタイル
========================================= */
/* ローディング画面 */
body.is-loading { overflow: hidden; }
.loading { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: transparent; z-index: 9999; display: flex; justify-content: center; align-items: center; transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 1s cubic-bezier(0.77, 0, 0.175, 1); }
.loading.is-loaded { transform: scale(2.5); opacity: 0; pointer-events: none; }
#loading-canvas-container { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
#loading-canvas-container canvas { width: 100% !important; height: 100% !important; object-fit: cover; }

/* 共通ボタン */
.btn-common { display: inline-block; padding: 15px 40px; background-color: #000000; color: #ffffff; text-decoration: none; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.1em; border: 1px solid #000000; border-radius: 4px; transition: all 0.3s ease; }
.btn-common:hover { background-color: #ffffff; color: #000000; }
.btn-center { text-align: center; margin-top: 50px; }

/* 1. MV セクション */
.mv { position: relative; width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; background-image: linear-gradient(90deg, rgba(85, 85, 85, 1), rgba(0, 0, 0, 1)); z-index: 100; }
.mv-bg-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; z-index: 1; overflow: hidden; }
.bg-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transform: scale(1.05); transition: opacity 1.5s ease-out, transform 1.5s ease-out; display: flex; justify-content: flex-end; align-items: center; pointer-events: none; }
.bg-slide.is-active { opacity: 1; transform: scale(1); }
#slide-svg svg { height: 100vh; width: auto; display: block; }
.bg-anim-line { fill: none; stroke: #AAAAAA; stroke-width: 0.5px; stroke-miterlimit: 10; opacity: 0; }
@keyframes bgDraw { 0% { stroke-dashoffset: var(--length); } 100% { stroke-dashoffset: 0; } }
@keyframes bgErase { 0% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: var(--length); } }
.bg-slide canvas { width: 100% !important; height: 100% !important; object-fit: cover; }
#particle-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.mv-inner { position: relative; z-index: 3; width: 90%; max-width: 1300px; height: 100%; display: flex; align-items: center; padding-top: 80px; box-sizing: border-box; }
.mv-left { width: 40%; display: flex; flex-direction: column; justify-content: center; }
.mv-left svg { width: 100%; height: auto; display: block; }
.title-anim-line { fill: transparent; stroke: #FFFFFF; stroke-width: 0.3px; stroke-miterlimit: 1; opacity: 0; }
.tagline { margin-top: 40px; text-align: left; color: #FFFFFF; opacity: 0; }
.tagline .ja { font-size: 1.1rem; font-weight: bold; letter-spacing: 0.15em; margin-bottom: 12px; }
.tagline .en { font-size: 0.85rem; color: #AAAAAA; letter-spacing: 0.2em; line-height: 1.6; }
@keyframes titleDraw { 0% { stroke-dashoffset: var(--length); } 100% { stroke-dashoffset: 0; } }
@keyframes titleFillShape { 0% { fill: transparent; } 100% { fill: #FFFFFF; } }
@keyframes titleFadeIn { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }

/* TOPICS / NEWS セクション */
.news-topics-wrapper { position: relative; z-index: 30; width: 100%; max-width: 480px; margin: 0 auto; padding: 20px; text-align: center; box-sizing: border-box; }
.topics-title { font-size: 2.5rem; letter-spacing: 0.1em; margin-bottom: 50px; text-transform: uppercase; color: #000; font-weight: 700; }
.topics-list { list-style: none; padding: 0; margin: 0 0 20px 0; text-align: left; }
.topics-date { font-family: var(--font-main); font-weight: 600; color: #555; margin-bottom: 5px; font-size: 0.8rem; letter-spacing: 0.05em; }
.topics-text { color: #000; line-height: 1.5; font-weight: 500; }
.sdgs-link { display: inline-block; transition: opacity 0.3s ease; }
.sdgs-link:hover { opacity: 0.7; }
.sdgs-link img { width: 320px; max-width: 100%; height: auto; display: block; margin: 0 auto; }

/* 2. Scroll Grid セクション (OUR BUSINESS) */

.scroll-wrapper { height: 210vh; width: 100%; position: relative; background-color: var(--color-white); z-index: 1; }

.moving-img { position: fixed; left: 50%; transform: translateX(-50%); height: 20vh; width: auto; will-change: top, bottom, transform, opacity; pointer-events: none; }

.board-img { z-index: 5; top: auto; bottom: -100vh; opacity: 1; transform: translateX(0); }

.endmil-group { height: 60vh; z-index: 10; top: -100vh; opacity: 0; }

.board-img-top { z-index: 25; top: auto; bottom: -100vh; opacity: 1; transform: translateX(0); }

.business-section { background-color: transparent; padding: 0; position: relative; z-index: 30; margin-top: -150vh; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

h2.section-title { text-align: center; font-size: 2.5rem; letter-spacing: 0.1em; margin-bottom: 50px; text-transform: uppercase; color: #000; font-weight: 700; }

.business-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }

.business-item { position: relative; aspect-ratio: 3 / 1.4; overflow: hidden; background-color: #eee; display: flex; align-items: center; justify-content: center; text-decoration: none; opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.business-item.is-visible { opacity: 1; transform: translateY(0); }

.business-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: brightness(0.8); }

.business-item:hover img { transform: scale(1.05); filter: brightness(0.9); }

.category-tag { position: absolute; top: 0; left: 0; background-color: #fff; color: #000; padding: 5px 15px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; z-index: 2; }

.business-name { position: absolute; color: #fff; font-size: 1.2rem; font-weight: bold; text-align: center; text-transform: uppercase; letter-spacing: 0.05em; text-shadow: 0 2px 10px rgba(0,0,0,0.8); z-index: 3; }

.infinite-banner-wrap { width: 100%; overflow: hidden; padding: 80px 0; background-color: #fff; position: relative; z-index: 10; }

.infinite-banner-track { display: flex; width: max-content; }

.banner-list { display: flex; align-items: center; gap: 80px; padding-right: 80px; animation: bannerLoop 25s linear infinite; }

.banner-list img { height: 80px; width: auto; object-fit: contain; display: block; filter: grayscale(1); opacity: 0.8; transition: filter 0.3s, opacity 0.3s; }

.banner-list img:hover { filter: grayscale(0); opacity: 1; }

@keyframes bannerLoop { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* 3. Features Section (Youtube & Animated Line) */

.features-wrapper { width: 100%; height: 80vh; display: flex; background-color: #000; position: relative; z-index: 40; }
.features { display: flex; width: 100%; height: 100%; position: relative; overflow: hidden; }
.video-bg-wrap { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.video-bg-wrap iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.77vh; pointer-events: none; }
.features::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.4); z-index: 1; }
.features-content { position: relative; z-index: 2; width: 100%; height: 100%; display: flex; justify-content: flex-start; background-image: none; }
.feature-block { width: 55%; min-width: 600px; height: 100%; background-color: #fff; display: flex; align-items: center; justify-content: center; position: relative; z-index: 10; }
.feature-line { position: relative; padding: 60px 80px; box-sizing: border-box; background-image: linear-gradient(#000, #000), linear-gradient(#000, #000); background-position: left top, left bottom; background-repeat: no-repeat; background-size: 0% 1px, 0% 1px; transition: background-size 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.feature-line.is-active { background-size: 100% 1px, 100% 1px; }
.feature-line::before, .feature-line::after { content: ""; position: absolute; width: 1px; background-color: #000; height: 0; top: 50%; transform: translateY(-50%); transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.6s; }
.feature-line::before { left: 10px; } .feature-line::after { right: 10px; }
.feature-line.is-active::before, .feature-line.is-active::after { height: calc(100% - -20px); }
.feature-text { width: 100%; max-width: 600px; min-width: 360px; text-align: left; container-type: inline-size; }
.feature-num { font-family: var(--font-main); font-size: calc(100cqw / 19); font-weight: 500; color: #000; margin-bottom: 20px; display: block; border-bottom: 1px solid rgba(0, 0, 0, 0.1); padding-bottom: 10px; line-height: 1.5; }
.m-serif { font-family: var(--font-serif); font-weight: 600; }
.feature-desc { font-family: var(--font-main); font-size: calc(100cqw / 31.5); color: var(--color-text); font-weight: 500; margin: 0; }
.feature-svg-right { width: 45%; height: 100%; position: absolute; right: 0; top: 0; z-index: 1; overflow: hidden; }
.feature-svg-right img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* レスポンシブ */
@media (max-width: 1024px) {
  #slide-svg { display: none !important; }
}

@media (max-width: 820px) {
  .features-wrapper { height: auto; }
  .features-content { flex-direction: column; background-image: url('/images/top/mov.svg'); background-repeat: no-repeat; background-position: center center; background-size: 100% auto;}
  .feature-block { width: 100%; min-width: 0; height: auto; padding: 0; background-color: transparent; }
  .feature-line { padding: 60px 5vw; width: 80%; min-width: 0; margin: 40px auto; }
  .feature-text { min-width: 0; }
  .feature-svg-right { display: none; }
}

@media (max-width: 768px) {
  .mv-inner { justify-content: center; }
  .mv-left { width: 90%; text-align: center; margin-bottom: 30px; }
  .tagline { text-align: center; }
  .business-grid { grid-template-columns: 1fr; }
  .business-name { font-size: 1.4rem; }
  .feature-line { padding: 40px 5vw; width: 90%; }
  .infinite-banner-wrap { padding: 50px 0; }
  .banner-list { gap: 40px; padding-right: 40px; }
  .banner-list img { height: 60px; }
}
