@charset "UTF-8";

/* ============================================================
   Technophere Home — "Bold Type × Geometry"
   トップページ（index.php）専用のセクション群
   ------------------------------------------------------------
   色・書体・角丸・イージングは css/tokens.css の var(--…) を使う。
   .tp-container / .tp-section* / .tp-eyebrow* / .tp-btn* / .tp-text-link /
   .tp-lead-hl / スクロールリビールは css/components.css（全ページ共通）にある。
   ここにはトップ固有のもの（ヒーロー・ワードマーク・ジオメトリ・マーキー・
   実績数値・沿革・代表メッセージ・CONTACT帯）だけを置く。
   ============================================================ */

/* base.css の overflow-x: hidden は body をスクロールコンテナ化し
   position: sticky（沿革のピン留め）を殺すため、clip に上書きする */
html {
    overflow-x: clip;
}

body.home,
body.blog {
    overflow-x: clip;
    background-color: var(--c-paper);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--c-ink);
}

.tp-home {
    width: 100%;
    display: block;
    overflow: clip;
}

body.home .header,
body.blog .header {
    background: linear-gradient(to bottom, rgba(241, 244, 248, 0.82), rgba(241, 244, 248, 0));
}

body.home .header.is-scrolled,
body.blog .header.is-scrolled {
    background: rgba(241, 244, 248, 0.88);
    box-shadow: 0 1px 0 var(--c-line);
}

body.home .header-title,
body.blog .header-title,
body.home .global-navigation-item a,
body.blog .global-navigation-item a {
    color: var(--c-ink);
}

body.home .global-navigation-item a::after,
body.blog .global-navigation-item a::after {
    background-color: var(--c-cobalt);
}

body.home .hamburger span,
body.blog .hamburger span {
    background-color: var(--c-ink);
}

body.home .menu.open .hamburger span,
body.blog .menu.open .hamburger span {
    background-color: #fff;
}

.tp-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--c-paper);
    background-image:
        linear-gradient(rgba(37, 87, 245, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 87, 245, 0.028) 1px, transparent 1px);
    background-size: 64px 64px, 64px 64px;
    /* 図形が次のセクションまで転がり落ちるので縦は切らない（横は html の overflow-x: clip が担当） */
    overflow: visible;
    padding: 150px 0 120px;
}

.tp-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 48px;
}

.tp-hero-copy {
    max-width: 860px;
}

/* グリッドをヒーローの奥に沈め、下端で自然に消す */
.tp-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 32%;
    background: linear-gradient(to bottom, transparent, var(--c-paper));
    pointer-events: none;
    z-index: 0;
}

/* ワードマーク: Techn(o)phere。タイトルケースでも必ず1行に収める */
.tp-wordmark {
    --wm-pad: 48px;
    font-family: var(--f-disp);
    font-weight: 700;
    font-size: min(136px, calc((100vw - var(--wm-pad) * 2) / 6.25));
    line-height: 1;
    letter-spacing: -0.035em;
    color: var(--c-ink);
    max-width: none;
    white-space: nowrap;
    margin-bottom: 14px;
}

/* TECHN / PHERE の2セグメント（ヒーロー退場で左右に割れるため inline-block 必須） */
.tp-wordmark-seg {
    display: inline-block;
    will-change: transform;
}

.tp-wordmark-jp {
    display: block;
    font-family: var(--f-mono);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.55em;
    color: var(--c-ink-mute);
    margin-bottom: 18px;
}

.tp-hero-mission {
    margin-top: 18px;
    margin-bottom: 40px;
}

/* o グリフ = 円を円で抜いた、最小構成のフラットシンボル。
   Technophere は小文字 o なので、大文字高ではなく x ハイトに合わせる */
.tp-o {
    position: relative;
    z-index: 3; /* 退場時にボールが文字の上を転がっていくように */
    display: inline-block;
    width: 0.52em;
    height: 0.52em;
    margin: 0 0.05em;
    vertical-align: -0.012em;
    border-radius: 50%;
    background-color: var(--c-cobalt);
    box-shadow: none;
    animation: tpRollIn 1.1s cubic-bezier(0.22, 0.9, 0.3, 1.04) 0.55s both;
}

/* 背景色の円で中央を抜き、ワードマークの o として読める円環にする。
   小さくなったぶん線が太く見えるので、抜き円を大きめにして線幅を保つ */
.tp-o::before {
    content: "";
    position: absolute;
    inset: 27%;
    border-radius: 50%;
    background-color: var(--c-paper);
    pointer-events: none;
}

.tp-o::after {
    content: none;
}

.tp-o-dot {
    position: absolute;
    top: 8%;
    left: 64%;
    width: 13%;
    height: 13%;
    border-radius: 0;
    background-color: var(--c-cyan);
    box-shadow: none;
    z-index: 1;
}

@keyframes tpRollIn {
    from {
        transform: translateX(-55vw) rotate(-520deg);
    }
    to {
        transform: translateX(0) rotate(0deg);
    }
}

.tp-hero-lead {
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.035em;
    color: var(--c-ink);
    margin-bottom: 24px;
}

.tp-hero-text {
    max-width: 620px;
    font-size: 15px;
    line-height: 2.1;
    color: var(--c-ink-soft);
    margin-bottom: 40px;
}

.tp-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ロード時シーケンス（コピー側） */
.tp-seq {
    opacity: 0;
    transform: translateY(26px);
    animation: tpSeqIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: calc(var(--seq, 1) * 0.14s + 0.15s);
}

@keyframes tpSeqIn {
    to {
        opacity: 1;
        transform: none;
    }
}

/* 円のコンポジション（ポップイン + パララックス）。
   z-index:1 = 後続セクションの背景より上、本文より下。
   図形が次セクションの背景の上を転がり、文字には被らない */
.tp-geo-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.tp-pop {
    animation-name: tpPop, tpGeoIdle;
    animation-duration: 0.8s, var(--idle-duration, 11s);
    animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1), cubic-bezier(0.77, 0, 0.175, 1);
    animation-delay: calc(var(--g, 1) * 0.13s + 0.45s), calc(var(--g, 1) * -1.15s);
    animation-iteration-count: 1, infinite;
    animation-direction: normal, alternate;
    animation-fill-mode: both, both;
    will-change: transform, translate, rotate;
}

@keyframes tpPop {
    from {
        opacity: 0;
        scale: 0.92;
    }
    to {
        opacity: 1;
        scale: 1;
    }
}

/* スクロール連動の transform と独立した、停止中も続く緩やかな漂い */
@keyframes tpGeoIdle {
    from {
        translate: 0 0;
        rotate: 0deg;
    }
    to {
        translate: var(--idle-x, 0) var(--idle-y, 12px);
        rotate: var(--idle-rotate, 0deg);
    }
}

.tp-geo--sky {
    --idle-x: -14px;
    --idle-y: 18px;
    --idle-duration: 13s;
    width: clamp(280px, 40vw, 560px);
    height: clamp(280px, 40vw, 560px);
    top: 4%;
    right: -9%;
    background-color: var(--c-sky);
    border: 0;
    box-shadow: none;
}

.tp-geo--outline {
    --idle-x: 18px;
    --idle-y: -12px;
    --idle-duration: 11s;
    width: clamp(220px, 30vw, 420px);
    height: clamp(220px, 30vw, 420px);
    top: 38%;
    right: 6%;
    border: 1px solid rgba(24, 42, 77, 0.48);
    background: transparent;
    box-shadow: none;
}

.tp-geo--half {
    --idle-x: -18px;
    --idle-y: -9px;
    --idle-duration: 10s;
    width: clamp(180px, 21vw, 300px);
    height: clamp(90px, 10.5vw, 150px);
    right: 11%;
    bottom: 0;
    border-radius: 999px 999px 0 0;
    background-color: var(--c-cobalt);
}

.tp-geo--quarter {
    --idle-x: 12px;
    --idle-y: -15px;
    --idle-duration: 12s;
    width: clamp(120px, 15vw, 210px);
    height: clamp(120px, 15vw, 210px);
    bottom: 0;
    right: 0;
    border-radius: 100% 0 0 0;
    background-color: var(--c-ink);
}

.tp-geo--dot {
    --idle-x: 10px;
    --idle-y: -20px;
    --idle-rotate: 12deg;
    --idle-duration: 6s;
    width: clamp(10px, 1.1vw, 16px);
    height: clamp(10px, 1.1vw, 16px);
    top: 46%;
    right: 30%;
    border-radius: 1px;
    background-color: var(--c-cyan);
    box-shadow: none;
}

/* スクロールキュー: 文字が1つずつ沈み、コバルトの光が線を伝って落ちる
   （transform を JS のヒーロー退場フェードに明け渡すため、中央寄せに transform を使わない） */
.tp-scroll-cue {
    position: absolute;
    bottom: 34px;
    left: 0;
    right: 0;
    width: max-content;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.tp-scroll-text {
    display: flex;
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.4em;
    color: var(--c-ink-soft);
}

.tp-scroll-text span {
    display: inline-block;
    animation: tpScrollLetter 2.6s cubic-bezier(0.45, 0, 0.3, 1) infinite;
    animation-delay: calc(var(--i, 0) * 0.07s);
}

@keyframes tpScrollLetter {
    0%, 55%, 100% { transform: translateY(0); opacity: 0.55; }
    22% { transform: translateY(5px); opacity: 1; }
}

.tp-scroll-line {
    position: relative;
    width: 1px;
    height: 52px;
    overflow: hidden;
    background-color: rgba(23, 28, 51, 0.16);
}

/* 線の上をコバルトの光が流れ落ちる（丸は置かない） */
.tp-scroll-line::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, transparent, var(--c-cobalt));
    animation: tpScrollDrop 2.6s cubic-bezier(0.45, 0, 0.3, 1) infinite;
}

@keyframes tpScrollDrop {
    0% { top: -60%; }
    70%, 100% { top: 100%; }
}

/* 装飾ジオメトリ（セクション背景、パララックス対象） */
.tp-deco-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.tp-deco-ring--a {
    width: 420px;
    height: 420px;
    top: -140px;
    right: -160px;
    background: linear-gradient(145deg, rgba(220, 230, 250, 0.76), rgba(200, 215, 243, 0.38));
}

.tp-deco-ring--a::after {
    content: "";
    position: absolute;
    bottom: 6%;
    left: -4%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--c-cyan);
}

.tp-deco-ring--c {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -120px;
    background-color: rgba(43, 89, 255, 0.08);
}

/* ============================================================
   WHAT WE DO
   ============================================================ */
.tp-wwd {
    background-color: var(--c-paper);
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(226, 233, 244, 0.32));
    padding: 140px 0 120px;
    overflow: hidden;
}

.tp-wwd .tp-section-head {
    max-width: 880px;
    margin-bottom: 72px;
}

.tp-wwd .tp-section-title {
    font-family: var(--f-disp);
    font-size: clamp(40px, 5.6vw, 72px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.tp-capabilities {
    display: grid;
    gap: 72px;
}

.tp-wwd-more {
    margin-top: 56px;
}

.tp-capability {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
    min-height: 460px;
    overflow: hidden;
    background-color: rgba(228, 235, 247, 0.62);
    border-top: 1px solid rgba(37, 87, 245, 0.42);
    border-bottom: 1px solid var(--c-line);
    border-radius: 12px;
    isolation: isolate;
}

/* 偶数枚目は画像を右に置き、右へ寄せて A-B-A のリズムを作る */
.tp-capability--reverse {
    grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1fr);
    width: calc(100% - 72px);
    margin-left: 72px;
    background-color: rgba(218, 228, 247, 0.76);
}

.tp-capability-visual {
    position: relative;
    min-width: 0;
    min-height: 460px;
    margin: 0;
    overflow: hidden;
    background-color: var(--c-paper-shade);
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s);
}

.tp-capability.visible .tp-capability-visual {
    clip-path: inset(0);
}

.tp-capability-visual > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.tp-capability-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 52px 46px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease calc(var(--d, 0s) + 0.2s), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--d, 0s) + 0.2s);
}

.tp-capability.visible .tp-capability-content {
    opacity: 1;
    transform: none;
}

.tp-capability-label {
    font-family: var(--f-mono);
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-cobalt);
    margin-bottom: 20px;
}

.tp-capability-title {
    font-family: var(--f-body);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.025em;
    margin-bottom: 22px;
    color: var(--c-ink);
}

.tp-capability-text {
    font-size: 15px;
    line-height: 2;
    color: var(--c-ink-soft);
    margin-bottom: 32px;
}

.tp-capability--reverse .tp-capability-visual {
    grid-column: 2;
    grid-row: 1;
}

.tp-capability--reverse .tp-capability-content {
    grid-column: 1;
    grid-row: 1;
}

/* ============================================================
   STATISTIC — フラットなインク帯
   ============================================================ */
.tp-stat {
    background-color: var(--c-ink-deep);
    background-image:
        linear-gradient(rgba(142, 169, 226, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(142, 169, 226, 0.055) 1px, transparent 1px),
        radial-gradient(circle at 82% 10%, rgba(37, 87, 245, 0.25), transparent 34%);
    background-size: 56px 56px, 56px 56px, auto;
    padding: 120px 0 100px;
    overflow: hidden;
    position: relative;
}

.tp-stat::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -180px;
    width: 480px;
    height: 480px;
    border: 2px dashed rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    pointer-events: none;
    transform: rotate(calc(var(--p, 0) * 140deg)) translateY(calc(var(--p, 0) * 60px));
    will-change: transform;
}

/* シアン円はセクション下端に半分沈めて置く（数値の上に乗らないよう縦移動のみ） */
.tp-stat::after {
    content: "";
    position: absolute;
    bottom: -22px;
    right: 7%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--c-cyan);
    pointer-events: none;
    transform: translate3d(0, calc(var(--p, 0) * -34px), 0);
    will-change: transform;
}

.tp-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 24px;
}

.tp-stat-item {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 24px;
}

.tp-stat-label {
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--c-on-dark-mute);
    margin-bottom: 14px;
    line-height: 1.6;
}

.tp-stat-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.tp-stat-num {
    font-family: var(--f-mono);
    font-size: clamp(34px, 3.6vw, 50px);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.tp-stat-unit {
    font-family: var(--f-mono);
    font-size: 14px;
    color: var(--c-cyan);
    letter-spacing: 0.08em;
}

.tp-stat-note {
    margin-top: 48px;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--c-on-dark-faint);
}

/* Webサイト／アプリの実績を並列表示するグループ単位 */
.tp-stat-group {
    margin-top: 56px;
}

.tp-stat-group-label {
    font-family: var(--f-mono);
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--c-cyan);
    margin-bottom: 20px;
}

.tp-stat-group .tp-stat-note {
    margin-top: 32px;
}

/* 2つ目のグループ（アプリの実績）は区切り線で分ける */
.tp-stat-sub {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* ============================================================
   OUR STORY（スクロール連動タイムライン）
   ============================================================ */
.tp-story {
    background-color: var(--c-paper);
    background-image: linear-gradient(to bottom, rgba(226, 233, 244, 0.5), transparent 28%);
    padding: 130px 0 120px;
}

/* 8項目を左右2段（左列＝前半4件／右列＝後半4件）に分けた静的タイムライン。
   以前はピン留め横スクロールだったが、スクロール占有が大きいため通常フローに戻した。 */
.tp-story-list {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(4, auto);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 72px;
    row-gap: 0;
    list-style: none;
    padding: 0;
}

.tp-story-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* 左の余白はドット(13px)＋間隔。日付テキストに線がかぶらない幅を確保する */
    padding: 0 0 34px 34px;
}

.tp-story-item:nth-child(4n) {
    padding-bottom: 0;
}

/* タイムラインのドット（日付の1行目の中心に合わせる） */
.tp-story-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: var(--c-paper);
    border: 2px solid rgba(43, 89, 255, 0.55);
    z-index: 1;
}

/* 項目どうしをつなぐ縦線。ドットの中心（left: 6px）に揃える */
.tp-story-item::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 20px;
    bottom: 0;
    width: 1px;
    background-color: rgba(23, 28, 51, 0.18);
}

.tp-story-item:nth-child(4n)::after {
    display: none;
}

.tp-story-date {
    display: block;
    font-family: var(--f-mono);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
    color: var(--c-ink);
}

.tp-story-text {
    font-size: 14px;
    line-height: 1.75;
    color: var(--c-ink-soft);
}

/* ============================================================
   MESSAGE
   ============================================================ */
.tp-message {
    background-color: var(--c-paper);
    background-image: radial-gradient(circle at 88% 22%, rgba(37, 87, 245, 0.06), transparent 26%);
    padding: 130px 0;
    overflow: hidden;
}

.tp-message-card {
    display: grid;
    grid-template-columns: minmax(300px, 470px) 1fr;
    gap: 48px;
    background-color: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 18px 46px rgba(28, 55, 101, 0.08);
    align-items: center;
}

/* 写真は横位置（900×506）。縦長にトリミングすると人物が切れるため元の比率で見せる */
.tp-message-figure {
    position: relative;
    aspect-ratio: 900 / 506;
}

/* 写真の背後にコバルト円をずらして敷く（幾何学モチーフの反復） */
.tp-message-figure::before {
    content: "";
    position: absolute;
    bottom: -18px;
    left: -18px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background-color: var(--c-cobalt);
    z-index: 0;
    transform: translate3d(0, calc((var(--p, 0.5) - 0.5) * -110px), 0);
    will-change: transform;
}

.tp-message-figure::after {
    content: "";
    position: absolute;
    top: -12px;
    right: -12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--c-cyan);
    z-index: 2;
    transform: translate3d(0, calc((var(--p, 0.5) - 0.5) * 150px), 0);
    will-change: transform;
}

.tp-message-figure img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    z-index: 1;
}

.tp-message-post {
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--c-ink-soft);
    margin-bottom: 6px;
}

.tp-message-name {
    font-family: var(--f-disp);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--c-ink);
    line-height: 1.2;
    margin-bottom: 14px;
}

.tp-message-role {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--c-cobalt);
    border: 1px solid rgba(43, 89, 255, 0.35);
    border-radius: 4px;
    padding: 5px 14px;
    margin-bottom: 22px;
    line-height: 1.4;
}

.tp-message-text {
    font-size: 15px;
    line-height: 2.1;
    color: var(--c-ink-soft);
    margin-bottom: 24px;
    max-width: 560px;
}

.tp-message-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
}

/* ============================================================
   CONTACT — フラットなコバルト面
   ============================================================ */
.tp-contact {
    position: relative;
    background-color: var(--c-cobalt-bright);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px),
        radial-gradient(circle at 78% 18%, rgba(120, 235, 255, 0.2), transparent 30%);
    background-size: 52px 52px, 52px 52px, auto;
    padding: 150px 0 160px;
    overflow: hidden;
    /* 球が広がるように開幕（--p はJSがスクロール進捗で駆動、非JS時は1=全表示） */
    clip-path: circle(calc(var(--p, 1) * 115%) at 50% 30%);
}

.tp-contact::before {
    content: none;
}

.tp-contact::after {
    content: none;
}

.tp-contact-lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.tp-contact-lines path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.28);
    stroke-width: 1.25;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    will-change: d;
}

.tp-contact-lines path:nth-child(2),
.tp-contact-lines path:nth-child(4) {
    stroke: rgba(130, 237, 255, 0.48);
}

.tp-contact-lines path:nth-child(3) {
    stroke-width: 1.75;
}

.tp-contact-geometry {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.tp-contact-shape {
    position: absolute;
    display: block;
    will-change: transform;
}

.tp-contact-shape > span {
    display: block;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.tp-contact-shape--ring {
    bottom: -260px;
    left: -180px;
    width: 560px;
    height: 560px;
}

.tp-contact-shape--ring > span {
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    animation: tpContactRingIdle 12s cubic-bezier(0.77, 0, 0.175, 1) infinite alternate;
}

.tp-contact-shape--disc {
    top: -110px;
    right: -110px;
    width: 300px;
    height: 300px;
}

.tp-contact-shape--disc > span {
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    animation: tpContactDiscIdle 9s cubic-bezier(0.77, 0, 0.175, 1) infinite alternate;
}

.tp-contact-shape--square {
    right: 10%;
    bottom: 17%;
    width: 72px;
    height: 72px;
}

.tp-contact-shape--square > span {
    border: 1px solid rgba(255, 255, 255, 0.34);
    animation: tpContactSquareIdle 16s cubic-bezier(0.77, 0, 0.175, 1) infinite alternate;
}

@keyframes tpContactRingIdle {
    to {
        transform: translate3d(24px, -18px, 0);
    }
}

@keyframes tpContactDiscIdle {
    to {
        transform: translate3d(-18px, 20px, 0) scale(0.94);
    }
}

@keyframes tpContactSquareIdle {
    to {
        transform: translate3d(-14px, -18px, 0) rotate(90deg);
    }
}

.tp-contact-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* CONTACTは親を丸ごとフェードせず、要素ごとのマスクリビールで見せる */
.tp-contact-inner.animation,
.tp-contact-inner.animation.visible {
    opacity: 1;
    transform: none;
}

.tp-contact-title {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.5;
    color: #fff;
    margin-bottom: 28px;
}

.tp-contact-line {
    display: block;
    overflow: hidden;
}

.tp-contact-line > span {
    display: block;
    transform: translate3d(0, 112%, 0);
    transition: transform 900ms cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.tp-contact-line:nth-child(2) > span {
    transition-delay: 90ms;
}

.tp-contact-inner.visible .tp-contact-line > span {
    transform: translate3d(0, 0, 0);
}

.tp-contact-text {
    max-width: 620px;
    font-size: 15px;
    line-height: 2.1;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 44px;
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
        opacity 650ms cubic-bezier(0.23, 1, 0.32, 1) 240ms,
        transform 650ms cubic-bezier(0.23, 1, 0.32, 1) 240ms;
}

.tp-contact-inner.visible .tp-contact-text {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* コバルト面ではCTAを白に反転 */
.tp-contact .tp-btn--primary {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #fff;
    color: var(--c-ink);
    box-shadow: 0 12px 30px rgba(9, 28, 101, 0.28);
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition:
        opacity 650ms cubic-bezier(0.23, 1, 0.32, 1) 330ms,
        transform 650ms cubic-bezier(0.23, 1, 0.32, 1) 330ms,
        color 180ms ease,
        box-shadow 220ms ease,
        scale 140ms cubic-bezier(0.23, 1, 0.32, 1);
}

.tp-contact-inner.visible .tp-btn--primary {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.tp-contact .tp-btn--primary::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 25px;
    z-index: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--c-ink);
    opacity: 0;
    transform: translate3d(0, -50%, 0) scale(0.8);
    transition:
        opacity 120ms ease,
        transform 280ms cubic-bezier(0.23, 1, 0.32, 1);
}

.tp-contact .tp-btn--primary > span,
.tp-contact .tp-btn--primary > svg {
    position: relative;
    z-index: 1;
    color: #fff;
    mix-blend-mode: difference;
}

.tp-contact .tp-btn--primary:active {
    scale: 0.97;
}

@media (hover: hover) and (pointer: fine) {
    .tp-contact .tp-btn--primary:hover {
        box-shadow: 0 16px 38px rgba(8, 24, 82, 0.38);
    }

    .tp-contact .tp-btn--primary:hover::before {
        opacity: 1;
        transform: translate3d(0, -50%, 0) scale(50);
    }
}

/* ============================================================
   スクロールFX（マーキー帯・沿革アクティブ）
   ============================================================ */

/* キネティック・タイポグラフィ帯（スクロール連動で横に流れる） */
.tp-marquee {
    overflow: clip;
    padding: 72px 0 8px;
    background-color: var(--c-paper);
}

.tp-marquee--tight {
    padding: 0 0 64px;
}

.tp-marquee-line {
    white-space: nowrap;
    width: max-content;
    font-family: var(--f-disp);
    font-weight: 700;
    font-size: clamp(52px, 7.6vw, 108px);
    line-height: 1.08;
    letter-spacing: 0.01em;
    will-change: transform;
}

.tp-marquee-line--b {
    margin-top: -0.16em;
}

.tp-marquee-chunk {
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(32, 52, 88, 0.28);
}

.tp-marquee-line--b .tp-marquee-chunk {
    -webkit-text-stroke-color: rgba(43, 89, 255, 0.48);
}

.tp-story-item::before {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tp-story-date {
    transition: color 0.3s ease;
}

.tp-story-item:hover::before {
    background-color: var(--c-cobalt);
    border-color: var(--c-cobalt);
    box-shadow: 0 0 0 5px rgba(43, 89, 255, 0.14);
}

.tp-story-item:hover .tp-story-date {
    color: var(--c-cobalt);
}

/* ============================================================
   レスポンシブ
   ============================================================ */

/* ============================================================
   レスポンシブ
   ============================================================ */
@media screen and (max-width: 1080px) {
    .tp-hero {
        padding: 130px 0 110px;
    }

    .tp-hero-inner {
        padding: 0 32px;
    }

    .tp-wordmark {
        --wm-pad: 32px;
    }

    .tp-geo--sky {
        top: 2%;
        right: -14%;
    }

    .tp-geo--outline {
        top: 46%;
        right: -4%;
    }

    .tp-geo--half {
        right: 6%;
        bottom: 0;
    }

    .tp-geo--dot {
        right: 24%;
    }

    .tp-wwd {
        padding: 100px 0 80px;
    }

    .tp-capabilities {
        gap: 52px;
    }

    .tp-capability {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.92fr);
        min-height: 420px;
    }

    .tp-capability--reverse {
        grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1fr);
        width: calc(100% - 36px);
        margin-left: 36px;
    }

    .tp-capability-visual {
        min-height: 420px;
    }

    .tp-capability-content {
        padding: 40px 32px;
    }

    .tp-stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
    }

    .tp-story,
    .tp-message {
        padding-top: 100px;
    }

    .tp-story {
        padding-bottom: 100px;
    }

    .tp-message {
        padding-bottom: 100px;
    }

    .tp-message-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 36px;
    }

    .tp-message-figure {
        max-width: 460px;
    }

    .tp-story-list {
        column-gap: 48px;
    }
}

@media screen and (max-width: 768px) {
    body.home,
    body.blog {
        font-size: 15px;
    }

    .tp-hero {
        padding: 120px 0 96px;
        overflow: hidden;
    }

    .tp-hero-inner {
        padding: 0 22px;
    }

    .tp-wordmark {
        --wm-pad: 22px;
        font-size: calc((100vw - var(--wm-pad) * 2) / 6.25);
        letter-spacing: -0.045em;
        margin-bottom: 12px;
    }

    .tp-wordmark-jp {
        font-size: 11px;
        letter-spacing: 0.45em;
        margin-bottom: 16px;
    }

    .tp-hero-cta {
        width: 100%;
        gap: 12px;
    }

    .tp-hero-text {
        width: 100%;
        overflow-wrap: anywhere;
    }

    /* SPは円を小さく・重なりを控えめに */
    .tp-geo--sky {
        --idle-x: -7px;
        --idle-y: 9px;
    }

    .tp-geo--outline {
        --idle-x: 8px;
        --idle-y: -6px;
    }

    .tp-geo--half {
        --idle-x: -8px;
        --idle-y: -5px;
    }

    .tp-geo--quarter {
        --idle-x: 6px;
        --idle-y: -7px;
    }

    .tp-geo--sky {
        width: 220px;
        height: 220px;
        top: 1%;
        right: -110px;
    }

    .tp-geo--outline {
        width: 170px;
        height: 170px;
        top: auto;
        bottom: 3%;
        right: -50px;
    }

    .tp-geo--half {
        width: 130px;
        height: 65px;
        right: auto;
        left: -40px;
        bottom: 0;
    }

    .tp-geo--quarter {
        width: 110px;
        height: 110px;
    }

    .tp-geo--dot {
        --idle-x: 5px;
        --idle-y: -9px;
        width: 11px;
        height: 11px;
        top: 24%;
        right: 40px;
    }

    .tp-wwd .tp-section-head {
        margin-bottom: 48px;
    }

    .tp-wwd-more {
        margin-top: 40px;
    }

    .tp-capabilities {
        gap: 38px;
    }

    .tp-capability,
    .tp-capability--reverse {
        grid-template-columns: 1fr;
        width: 100%;
        min-height: 0;
        margin-left: 0;
    }

    .tp-capability-visual,
    .tp-capability--reverse .tp-capability-visual {
        grid-column: 1;
        grid-row: 1;
        min-height: clamp(240px, 66vw, 420px);
    }

    .tp-capability-content,
    .tp-capability--reverse .tp-capability-content {
        grid-column: 1;
        grid-row: 2;
        padding: 32px 26px 36px;
    }

    .tp-capability-label {
        margin-bottom: 14px;
    }

    .tp-capability-title {
        margin-bottom: 16px;
    }

    .tp-capability-text {
        margin-bottom: 26px;
    }

    .tp-marquee {
        padding: 44px 0 4px;
    }

    .tp-marquee--tight {
        padding: 0 0 40px;
    }

    .tp-stat {
        padding: 90px 0 80px;
    }

    /* 数値が大きく min-content で列が広がるため minmax(0,1fr) で抑え、単位は折り返す */
    .tp-stat-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 36px 20px;
    }

    .tp-stat-item {
        padding-left: 16px;
    }

    .tp-stat-num {
        font-size: clamp(26px, 7.4vw, 40px);
    }

    /* 単位は4項目とも同じ位置（数値の下）に揃える。折り返し任せだと項目ごとにばらつく */
    .tp-stat-value {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .tp-stat-note {
        margin-top: 36px;
    }

    /* タイムライン: SPは2段をやめて1列の縦積みにする */
    .tp-story {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .tp-story-list {
        grid-auto-flow: row;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
    }

    .tp-story-item {
        padding-bottom: 28px;
    }

    .tp-story-item:nth-child(4n) {
        padding-bottom: 28px;
    }

    .tp-story-item:nth-child(4n)::after {
        display: block;
    }

    .tp-story-item:last-child {
        padding-bottom: 0;
    }

    .tp-story-item:last-child::after {
        display: none;
    }

    .tp-story-date {
        font-size: 15px;
    }

    .tp-story-text {
        line-height: 1.7;
    }

    .tp-message-card {
        padding: 28px 22px;
    }

    .tp-message-figure::before {
        width: 90px;
        height: 90px;
        bottom: -12px;
        left: -10px;
    }

    .tp-contact {
        padding: 110px 0 120px;
    }

    .tp-contact-title {
        font-size: 27px;
    }

    .tp-deco-ring--a {
        width: 260px;
        height: 260px;
        top: -110px;
        right: -130px;
    }

    .tp-deco-ring--c {
        width: 200px;
        height: 200px;
        top: -80px;
        right: -100px;
    }
}

/* ============================================================
   Reduced motion: 全モーション停止・全要素即時表示
   ============================================================ */

/* ============================================================
   Reduced motion: 全モーション停止・全要素即時表示
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .tp-seq,
    .tp-pop,
    .tp-o,
    .tp-home .animation {
        opacity: 1;
        transform: none;
        translate: none;
        rotate: 0deg;
        scale: 1;
        animation: none;
        transition: none;
    }

    .tp-scroll-text span,
    .tp-scroll-line::after {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .tp-btn,
    .tp-capability,
    .tp-capability-visual,
    .tp-capability-content {
        transition: none;
    }

    .tp-capability-visual {
        clip-path: none;
    }

    .tp-capability-content {
        opacity: 1;
        transform: none;
    }


    /* スクロールFXの静止（JS側も起動しないが二重に保険） */
    .tp-marquee-line,
    .tp-wordmark-seg,
    .tp-o,
    .tp-stat::before,
    .tp-stat::after,
    .tp-message-figure::before,
    .tp-message-figure::after {
        transform: none !important;
    }

    .tp-contact {
        clip-path: none;
    }

    .tp-contact::before,
    .tp-contact::after {
        animation: none;
        transform: none;
    }

    .tp-contact-shape {
        transform: none !important;
    }

    .tp-contact-shape > span {
        animation: none;
        transform: none;
    }

    .tp-contact-line > span,
    .tp-contact-text,
    .tp-contact .tp-btn--primary {
        opacity: 1;
        transform: none;
        scale: 1;
        transition: none;
    }

    .tp-contact .tp-btn--primary::before {
        display: none;
    }
}