/* assets/css/front-page.css
   ------------------------------------------------------------
   - 画像×説明を交互レイアウト（PC: 左右交互 / SP: 上下）
   - 文章のジャンプ率（見出し > リード > 本文）を強めに設計
   - 波モチーフ無し：抽象的なシェイプ/グラデ/薄いテクスチャのみ
   - カスタム変数中心（後から色・余白・角丸を変更しやすい）
   ------------------------------------------------------------ */

/* ============================================================
   0) Tokens
============================================================ */
:root {
    --base-color: var(--base-color, #ffffff);
    --text-color: var(--text-color, #0b1f2a);
    --muted-color: var(--muted-color, rgba(11, 31, 42, .74));
    --border-color: var(--border-color, rgba(11, 31, 42, .12));

    --main-color: var(--main-color, #0b6f86);
    --sub-color: var(--sub-color, #0a5670);
    --accent-solor: var(--accent-solor, #0b6f86);

    --container: var(--container, 1120px);
    --gutter: 16px;

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --radius-xxl: 34px;

    --shadow-1: 0 10px 28px rgba(11, 31, 42, .10);
    --shadow-2: 0 18px 55px rgba(11, 31, 42, .12);
    --shadow-3: 0 26px 85px rgba(11, 31, 42, .16);

    --surface: rgba(255, 255, 255, .92);
    --surface-strong: #ffffff;

    --space-1: 6px;
    --space-2: 10px;
    --space-3: 14px;
    --space-4: 18px;
    --space-5: 1rem;
    --space-6: 1rem;
    --space-7: 1rem;
    --space-8: 2rem;
    --space-9: 5rem;

    --fz-h1: clamp(2rem, 8vw, 3rem);
    --fz-h2: clamp(1.5rem, 6vw, 2rem);
    --fz-lead: clamp(1.2rem, 3vw, 1.4rem);
    --fz-body: 1rem;
    --lh-body: 1.95;

    --btn-h: 54px;
    --btn-radius: 16px;

    --scroll-offset: 5rem;
    --top-text: #e5e5e5;
}

/* ============================================================
   1) Base
============================================================ */



.tm-main {
    background: var(--base-color);
    color: var(--top-text);
}

.tm-top {
    background: transparent;
}

.tm-container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#tm-issue,
#tm-mechanism,
#tm-facility,
#tm-why,
#tm-poc,
#tm-value,
#tm-contact {
    scroll-margin-top: var(--scroll-offset);
}

.tm-divider {
    margin: 0 0 var(--space-6);
    height: 4px;
    /* ← 太さを数値で指定 */
    width: 5rem;
    /* 線の長さ */
    background-color: rgba(228, 228, 228, 0.35);
}

/* ============================================================
   Background Video (Global)
============================================================ */

.tm-bgVideo {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.tm-bgVideo__video {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transform: scale(1.11, 1);
    transform-origin: center center;
}

/* 暗くするレイヤー */
.tm-bgVideo__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    /* ← 暗さはここ */
    z-index: 1;
}

/* コンテンツを前面に */
.tm-main {
    position: relative;
    z-index: 2;

}


/* ============================================================
   2) Hero
============================================================ */
.tm-hero {
    position: relative;
    padding: var(--space-9) 0 var(--space-9);

}

.tm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .24;
    pointer-events: none;
}

.tm-hero__container {
    position: relative;
    z-index: 1;
}

.tm-hero__grid {
    display: grid;
    grid-template-columns: 4fr 3fr;
    gap: var(--space-7);
    align-items: center;

    padding: var(--space-7);
    background: transparent;
    max-width: 1200px;
}

/* media */
.tm-hero__media {
    margin: 0;
    position: relative;
    border-radius: var(--radius-xxl);
    overflow: hidden;
    box-shadow: var(--shadow-2);
}

.tm-mediaSquare {
    display: none;
}

.tm-hero__img {
    display: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transform: scale(1.01);
}

/* copy */
.tm-hero__copy {
    min-width: 0;
}

.tm-text--onDark {
    color: var(--top-text);
}

.tm-h1 {
    margin: 0;
    font-size: var(--fz-h1);
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-weight: 950;
}

.tm-heroLead {
    margin: var(--space-4) 0 0;
    font-size: var(--fz-lead);
    line-height: 1.5;
    color: var(--top-text);
    font-weight: 900;
}

/* actions */
.tm-hero__actions {
    margin-top: var(--space-5);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tm-pillBtn {
    height: var(--btn-h);
    border-radius: var(--btn-radius);
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #eaeaea;
    text-decoration: none;
    border: 1px solid rgba(11, 31, 42, .12);
    color: #000000;

    font-weight: 950;
    letter-spacing: .02em;

    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, filter .18s ease;
}

.tm-pillBtn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-1);
}

.tm-pillBtn--strong {
    background: var(--accent-solor);
    color: var(--text-color);
    box-shadow: 0 18px 36px rgba(255, 212, 0, .22);
    border-color: rgba(255, 212, 0, .55);
}

.tm-pillBtn--strong:hover {
    filter: brightness(.98);
}

.tm-pillBtn__arrow {
    transform: translateY(1px);
}

/* ============================================================
   3) Sections (Split)
============================================================ */
.tm-section {
    padding: var(--space-9) 0;

    /* 上下は完全に同じ色 */
}


.tm-section--contact {
    padding-bottom: calc(var(--space-9) + 10px);
}

/* Split layout */
.tm-split {
    display: grid;
    grid-template-columns: 3fr 4fr;
    gap: var(--space-7);
    align-items: center;
    max-width: 1200px;
}

.tm-split--reverse {
    grid-template-columns: 4fr 3fr;
}

.tm-split--reverse .tm-split__media {
    order: 2;
}

.tm-split--reverse .tm-split__content {
    order: 1;
}

/* media */
.tm-split__media {
    margin: 0;
    position: relative;
    border-radius: var(--radius-xxl);
    overflow: hidden;
    box-shadow: var(--shadow-2);

    margin: var(--space-5);
}

.tm-split__img {
    display: none;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    transform: scale(1.01);
}

/* content / card */
.tm-card {
    border-radius: var(--radius-xxl);
    background: transparent;
    padding: var(--space-7);
    color: var(--top-text);
}


.tm-h2 {
    margin: 0;
    font-size: var(--fz-h2);
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-weight: 950;
    color: var(--top-text);
}

/* Text hierarchy */
.tm-text {
    margin-top: var(--space-4);
}

.tm-leadline {
    margin: var(--space-4) 0 0;
    font-size: var(--fz-lead);
    line-height: 1.5;
    font-weight: 900;
    color: var(--top-text);
}

.tm-text p {
    margin: var(--space-4) 0 0;
    font-size: var(--fz-body);
    line-height: var(--lh-body);
    color: var(--top-text);
    font-weight: 500;
    word-break: break-word;
    text-wrap: pretty;
    line-height: 1.7;
}

.tm-lines {
    border-radius: var(--radius-lg);
    color: var(--top-text);
    font-weight: 500;
    line-height: 1.7;
}

.tm-lines {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tm-lines li {
    position: relative;
    padding-left: 1rem;
    /* 線＋余白 */
    line-height: 1.7;
    margin: 0.4rem;
}

.tm-lines li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    /* 行の中央あたり */
    width: 5px;
    /* ― の長さ */
    height: 5px;
    /* ← 太さを自由に変更 */
    background-color: var(--muted-color);
}


.tm-subhead {
    margin-top: var(--space-6);
    font-weight: 950;
    font-size: clamp(16px, 1.7vw, 20px);
    letter-spacing: -0.01em;
    color: var(--top-text);
}

/* CTA row */
.tm-ctaRow {
    margin-top: var(--space-6);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.tm-ctaRow__note {
    flex: 1 1 280px;
    min-height: 1px;
}

/* ============================================================
   4) Responsive
============================================================ */
@media (max-width: 1080px) {
    .tm-hero__grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        padding: var(--space-6);
    }

    .tm-split,
    .tm-split--reverse {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .tm-split--reverse .tm-split__media {
        order: 1;
        /* SPでは常に画像→テキスト */
    }

    .tm-split--reverse .tm-split__content {
        order: 2;
    }


}

@media (max-width: 720px) {
    :root {
        --gutter: 14px;
        --scroll-offset: 84px;
    }

    .tm-hero {
        padding: var(--space-7) 0 var(--space-7);
    }

    .tm-hero__grid {
        border-radius: var(--radius-xl);
        padding: var(--space-5);
    }

    .reveal {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }




    .tm-hero__media,
    .tm-split__media,
    .tm-card {
        border-radius: var(--radius-xl);
    }

    .tm-card {
        padding: var(--space-5);
    }

    .tm-pillBtn {
        width: 100%;
        justify-content: space-between;
    }

    .tm-section {
        padding: var(--space-8) 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .tm-pillBtn,
    .tm-pillBtn:hover {
        transition: none !important;
        transform: none !important;
    }
}


/* ============================================================
   Scroll Reveal
============================================================ */

/* 初期状態 */
[data-animate],
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
}

.reveal {
    margin-top: 2rem;
}

/* 表示状態 */
.is-visible {
    opacity: 1;
    transform: translateY(0);

}

/* 少し強調したい引用 */
.story__quote {
    font-weight: 800;
}

/* モーションを嫌う設定への配慮 */
@media (prefers-reduced-motion: reduce) {

    [data-animate],
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.front-page .tm-footer {
    background: rgba(95, 95, 95, 0.8);
    backdrop-filter: blur(6px);
    padding-bottom: 0;
}

.front-page .tm-footer__inner {
    border-top: none;
    padding-top: 0;
    display: none;
}

.front-page footer.tm-footer {
    display: none;
}