/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Noto Sans JP', 'Montserrat', sans-serif;
    /* 横スクロールを完全に物理排除 */
    overflow-x: hidden;
    /* 縦スクロールのみ許可 */
    overflow-y: auto;
    -webkit-text-size-adjust: 100%;
    /* iOSの自動文字サイズ調整を抑制 */
}

body {
    /* bodyでのoverflow制限は最小限にし、html側に任せる */
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    overscroll-behavior-x: none;
    /* 横方向のバウンスを禁止 */
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
    /* ダブルタップズームによる誤動作防止 */
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   GEOMETRIC DECORATIONS (鋭利なライン / 波形)
   ========================================================================== */
.bg-wave-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: clip;
    /* hiddenより強力に描画を遮断 */
    /* コンテナ内ではみ出しを完全に遮断 */
    pointer-events: none;
    opacity: 0.03;
    /* 装飾がコンテンツを邪魔しないよう極めて薄く */
    contain: strict;
}

.bg-wave {
    position: absolute;
    /* vwを使わず%で指定して計算を安定させる */
    width: 200%;
    left: -50%;
    /* 中央に寄せる */
    height: 2px;
    background: #ffffff;
    top: 50%;
    transform: rotate(-15deg);
}

.bg-wave:nth-child(2) {
    top: 60%;
    transform: rotate(-10deg);
}

.bg-wave:nth-child(3) {
    top: 40%;
    transform: rotate(-20deg);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    /* 配置を明示的に固定 */
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    box-sizing: border-box;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.header-logo {
    display: inline-block;
    line-height: 0;
}

.header-logo img {
    height: 100px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ==========================================================================
   COMMON COMPONENTS
   ========================================================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 24px;
    /* モバイルでの余白を少し詰め、計算を安定させる */
    position: relative;
    z-index: 10;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: attr(data-en);
    position: absolute;
    bottom: -15px;
    left: 0;
    font-size: 0.8rem;
    letter-spacing: 4px;
    font-weight: 400;
    color: #888888;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    height: 100vh;
    height: 100dvh;
    /* スマホのアドレスバーによるガタつきを防止 */
    display: flex;
    align-items: center;
    padding: 0 10% 0 10%;
    position: relative;
    overflow: clip;
    /* セクション外への要素のはみ出しを遮断 */
    background: #000000;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-tagline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 6px;
    font-size: 1rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 40px;
}

.hero-badges {
    display: flex;
    gap: 15px;
}

.hero-badges span {
    font-size: 0.75rem;
    color: #888888;
    border: 1px solid #333333;
    padding: 6px 14px;
    border-radius: 0px;
    /* シャープさを出すため丸みは一切無し */
    font-family: 'Montserrat', sans-serif;
}

/* ロゴの「鋭利なベクトル」を再現した斜めライン */
.hero-vector-line {
    position: absolute;
    bottom: 15%;
    right: -10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    transform: rotate(-25deg);
    pointer-events: none;
}

/* ==========================================================================
   IDENTITY SECTION
   ========================================================================== */
.identity-section {
    background-color: #050505;
    border-top: 1px solid #111111;
    border-bottom: 1px solid #111111;
}

.identity-grid {
    display: grid;
    /* 実際は2列（下記1frで指定するため初期化） */
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.identity-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
}

.identity-card p {
    color: #aaaaaa;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ==========================================================================
   TALENT SECTION
   ========================================================================== */
.talent-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.talent-card {
    display: grid;
    grid-template-columns: 40% 60%;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
}

.talent-visual {
    position: relative;
    background: #151515;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.talent-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.talent-status {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ffffff;
    color: #000000;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 4px 10px;
    letter-spacing: 1px;
}

.talent-info {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.talent-en {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #888888;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.talent-name {
    font-size: 2rem;
    margin-bottom: 20px;
}

.talent-desc {
    color: #aaaaaa;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* ボイスプレイヤー */
.voice-player-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.play-btn {
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 12px 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: #ffffff;
    color: #000000;
}

.wave-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 20px;
}

.wave-visualizer span {
    display: block;
    width: 2px;
    height: 5px;
    background: #888888;
    transition: height 0.1s ease;
}

/* 再生中アニメーション用のクラス (JSで制御) */
.wave-visualizer.playing span {
    background: #ffffff;
    animation: bounce 0.5s ease infinite alternate;
}

.wave-visualizer.playing span:nth-child(2) {
    animation-delay: 0.1s;
}

.wave-visualizer.playing span:nth-child(3) {
    animation-delay: 0.2s;
}

.wave-visualizer.playing span:nth-child(4) {
    animation-delay: 0.15s;
}

.wave-visualizer.playing span:nth-child(5) {
    animation-delay: 0.3s;
}

@keyframes bounce {
    0% {
        height: 5px;
    }

    100% {
        height: 20px;
    }
}

/* ==========================================================================
   MANAGEMENT SECTION
   ========================================================================== */
.management-section {
    background: #000000;
}

.management-lead {
    font-size: 1.3rem;
    margin-bottom: 50px;
    border-left: 3px solid #ffffff;
    padding-left: 20px;
}

.management-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-item {
    background: #050505;
    padding: 40px;
    border: 1px solid #111111;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.feature-item p {
    color: #888888;
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ==========================================================================
   ECOSYSTEM SECTION
   ========================================================================== */
.ecosystem-section {
    background: #050505;
    border-top: 1px solid #111111;
}

.ecosystem-lead {
    color: #aaaaaa;
    margin-bottom: 50px;
}

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

.ecosystem-item {
    background: #000000;
    padding: 40px;
    border: 1px solid #1a1a1a;
    position: relative;
}

.eco-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: #888888;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.ecosystem-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.ecosystem-item p {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: #000000;
    border-top: 1px solid #1a1a1a;
    padding: 80px 50px 30px 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 40% 60%;
    margin-bottom: 60px;
}

.footer-logo {
    height: 30px;
    width: auto;
    display: block;
    margin-bottom: 20px;
}

.footer-copy {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.group-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #888888;
    margin-bottom: 8px;
}

.link-group a {
    font-size: 0.85rem;
    color: #aaaaaa;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #111111;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #444444;
}

.copyright {
    font-family: 'Montserrat', sans-serif;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 960px) {

    .identity-grid,
    .management-features,
    .ecosystem-grid,
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .talent-card {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .section-container {
        width: 100%;
        max-width: 100vw;
        /* 物理的な限界値を設定 */
        box-sizing: border-box;
        padding: 80px 16px;
    }

    .header {
        flex-direction: column;
        padding: 15px 20px;
        height: auto;
        background: rgba(0, 0, 0, 0.98);
    }

    .header-logo img {
        height: 60px;
        /* モバイルではロゴを小さくして圧迫感を抑える */
        width: auto;
    }

    .nav {
        margin-top: 15px;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        padding: 0;
    }

    .hero-title {
        font-size: 1.8rem;
        word-break: normal;
        line-height: 1.4;
    }

    .hero-content {
        animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .talent-visual {
        min-height: 300px;
    }

    .talent-image {
        width: 100%;
    }

    .talent-info {
        padding: 30px 20px;
    }

    .footer-container {
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 40px;
    }

    /* Mobile Specific Animations */
    .bg-wave {
        animation: waveFloat 10s infinite alternate ease-in-out;
    }

    .talent-status {
        animation: statusPulse 2s infinite ease-in-out;
    }

    .hero-vector-line {
        animation: vectorSlide 6s infinite alternate ease-in-out;
    }
}

/* ==========================================================================
   ANIMATION KEYFRAMES
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes waveFloat {
    from {
        transform: rotate(-15deg) translateY(0);
    }

    to {
        transform: rotate(-13deg) translateY(-30px);
    }
}

@keyframes statusPulse {
    0% {
        opacity: 1;
        box-shadow: 0 0 0px rgba(255, 255, 255, 0);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 0px rgba(255, 255, 255, 0);
    }
}

@keyframes vectorSlide {
    from {
        transform: rotate(-25deg) translateX(-10%);
        opacity: 0.2;
    }

    to {
        transform: rotate(-25deg) translateX(10%);
        opacity: 0.6;
    }
}