/* --- Global Variables --- */
:root {
    --p-green: #0E7E47;      /* ブランドカラー：深緑 */
    --text-gray: #afadad;
    --bg-black: #000000;
    --border-dark: #111111;
}

/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: #ffffff;
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-align: center; /* 基本全ての要素をセンターへ */
}

/* --- Header Styles --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px; 
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%; 
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    max-width: 50%; 
    height: 100%;
}

.header-logo {
    height: 70px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.btn-coming-soon {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
    color: var(--text-gray);
    background: var(--p-green);
    border: 1px solid var(--p-green);
    padding: 12px 24px;
    border-radius: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: not-allowed;
}

/* --- Layout Components --- */
.section-container {
    padding: 120px 5%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-underline {
    width: 40px;
    height: 4px;
    background: var(--p-green);
    margin: 20px auto 60px;
}

h2.section-title {
    font-size: clamp(24px, 4vw, 32px);
    letter-spacing: 0.2em;
    font-weight: 900;
}

/* --- Hero Section --- */
.hero-product {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 800px;
    background-color: var(--bg-black);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* ★ 背景写真の制御：最背面に固定 ★ */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden; /* はみ出た分を隠す */
}

/* ★ ここが写真の制御：物理的にセンターへ接着し、画面幅に合わせてズームする ★ */
.hero-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center center !important;
    filter: brightness(0.7) contrast(1.1);
    pointer-events: none;
    max-width: none !important;
}



/* --- コンテンツエリア --- */
.hero-container {
    position: relative;
    z-index: 10; 
    width: 100%;
    max-width: 1200px;
    padding: 0 5%;
    text-align: center;
}

/* Numbers Don't Lie. (ブランドグリーン) */
.hero-eyebrow {
    color: var(--p-green);
    font-size: 14px;
    letter-spacing: 0.5em;
    margin-bottom: 24px;
    text-transform: uppercase;
    opacity: 0;
    animation: heroReveal 1s ease forwards 0.2s;
}

/* メインタイトル (巨大・斜体) */
.hero-title {
    font-family: 'Geist', sans-serif;
    font-size: clamp(64px, 12vw, 160px); 
    font-weight: 900;
    font-style: italic; 
    line-height: 1.15; 
    letter-spacing: -0.08em; 
    margin-bottom: 48px;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    animation: heroReveal 1s ease forwards 0.4s;
}

.hero-title .text-brand {
    color: var(--p-green);
}

/* --- リード文 (灰色 + 強い文字の影) --- */
.hero-lead {
    max-width: 700px;
    margin: 0 auto 60px;
    color: var(--text-gray); /* 元の灰色 */
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.6;
    opacity: 0;
    animation: heroReveal 1s ease forwards 0.6s;
    text-align: center;

    /* ★ ここが「文字の影」の設定 ★ */
    /* 複数の影を重ねることで、背景がどんな色でも文字を浮かせます */
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),  /* 右下の濃い影 */
        -1px -1px 0px rgba(0, 0, 0, 0.5), /* 左上の薄い縁取り */
        0px 0px 10px rgba(0, 0, 0, 0.8);  /* 全体のボヤけた影 */
    
    font-weight: 500; /* 影に負けないよう少しだけ太くすると綺麗です */
}

/* --- レスポンシブ：どんな画面幅でも「真ん中」を死守 --- */
@media (max-width: 768px) {
    .hero-bg-media {
        object-position: center center !important;
    }
    
    .hero-title {
        font-size: clamp(54px, 18vw, 90px);
        line-height: 1.1;
    }
}

@media (max-width: 480px) {
    .hero-bg-media {
        /* スマホの縦長画面ではアスリートの頭が切れないよう少し上を意識 */
        object-position: center 40% !important; 
    }
}

/* アニメーション */
@keyframes heroReveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 3-STEP GRID --- */
.grid-3step {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    margin-top: 40px;
}

.step-card {
    padding: 60px 40px;
    background: #0a0a0a;
    border: 1px solid var(--border-dark);
    border-radius: 32px;
    transition: 0.3s;
}

.step-card:hover {
    border-color: var(--p-green);
    transform: translateY(-10px);
}

.step-num {
    font-family: 'JetBrains Mono';
    color: var(--p-green);
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 20px;
    display: block;
}

/* --- COMPARE TABLE (Visual refinement) --- */
.compare-table-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 60px auto 0;
    display: flex;
    justify-content: center;
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    table-layout: fixed;
    /* 表全体の枠線をうっすら引く */
    border: 1px solid #222; 
}

.compare-table th, .compare-table td {
    padding: 24px 15px;
    /* セパレーター線：黒に近いグレーで「質感」を出す */
    border-bottom: 1px solid #222;
    border-right: 1px solid #111; 
    text-align: center;
    vertical-align: middle;
}

/* 最後の列の右線を消す */
.compare-table th:last-child, 
.compare-table td:last-child {
    border-right: none;
}

.compare-table th {
    background-color: #050505; /* ヘッダーだけ少し色を変える */
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- CombineCam（ターゲット列）の強調 --- */
.compare-table th.highlight, 
.compare-table td.highlight {
    color: var(--p-green);
    font-weight: 700;
    /* 縦のラインをブランドカラーで縁取る */
    border-left: 1px solid rgba(14, 126, 71, 0.3);
    border-right: 1px solid rgba(14, 126, 71, 0.3);
    /* 背景をほんの少しだけ浮かび上がらせる */
    background: rgba(14, 126, 71, 0.02); 
}

/* 数値の強調設定 */
.compare-table td.highlight {
    font-size: 18px;
    font-family: 'JetBrains Mono', monospace;
}

/* 一番下の線は不要（フッターとの兼ね合い） */
.compare-table tr:last-child td {
    border-bottom: none;
}

/* スマホ表示の調整 */
@media (max-width: 768px) {
    .compare-table-wrapper {
        justify-content: flex-start; /* スマホでは左端からスクロール可能に */
        padding: 0 20px;
    }
    .compare-table th, .compare-table td {
        font-size: 12px;
        padding: 16px 8px;
    }
}

/* --- INTELLIGENCE GRID --- */
.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 均等に2分割 */
    gap: 30px;
    width: 100%;
    max-width: 1100px;
    margin-top: 20px;
}

.data-card {
    background: #0a0a0a; /* 背景よりわずかに明るい黒 */
    border: 1px solid #1a1a1a;
    padding: 60px 40px;
    border-radius: 32px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.data-card:hover {
    border-color: var(--p-green);
    transform: translateY(-5px);
    background: linear-gradient(145deg, #0d0d0d, #050505);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 20px;
}

.data-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #fff;
}

.data-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* スマホ対応：画面が狭くなったら縦に並べる */
@media (max-width: 900px) {
    .data-grid {
        grid-template-columns: 1fr;
    }
    
    .data-card {
        padding: 40px 30px;
    }
}

/* --- CEO CARD --- */
.ceo-card {
    max-width: 900px;
    border: 1px solid var(--p-green);
    padding: 80px 40px;
    border-radius: 48px;
    background: linear-gradient(145deg, #050505, #000);
}

.ceo-quote {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    font-style: italic;
    color: var(--p-green);
    margin-bottom: 30px;
}

.ceo-text {
    font-size: 18px;
    line-height: 2;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

.ceo-name {
    margin-top: 40px;
    font-family: 'JetBrains Mono';
    letter-spacing: 0.2em;
}

/* --- FOOTER --- */
footer {
    background-color: var(--p-green);
    padding: 80px 40px;
    color: #fff;
    text-align: center;
}

.footer-links { display: flex; justify-content: center; gap: 20px; font-size: 12px; margin-bottom: 20px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; }
.copyright { font-size: 11px; opacity: 0.5; font-family: 'JetBrains Mono'; }
.corporate-link { margin-bottom: 20px; font-size: 14px; font-weight: 700; }
.corporate-link a { color: #fff; text-decoration: underline; }

/* --- Animation --- */
@keyframes heroReveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-container > * { animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }