:root {
    --bg-black: #0a0a0a;
    --card-dark: #1a1a1a;
    --primary-red: #e60012;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --nav-height: 80px;
}

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

/* ページ全体：レイアウトは変えず、背景だけ固定レイヤーで追加 */
html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    overflow-x: hidden;
    background-color: var(--bg-black);
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-white);
    line-height: 1.8;
}

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 18%, rgba(230, 0, 18, 0.16), transparent 28%),
        radial-gradient(circle at 82% 42%, rgba(255, 255, 255, 0.08), transparent 25%),
        linear-gradient(135deg, #050505 0%, #111111 46%, #070707 100%);
}

.site-bg::before {
    content: "";
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    transform: perspective(900px) rotateX(58deg) translateY(8%);
    opacity: 0.35;
    animation: grid-drift 9.33s linear infinite;
}

.site-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.04) 45%, transparent 58%),
        linear-gradient(70deg, transparent 0%, rgba(230, 0, 18, 0.08) 55%, transparent 72%);
    mix-blend-mode: screen;
    opacity: 0.45;
    animation: light-sweep 6s ease-in-out infinite alternate;
}

.bg-wave {
    position: absolute;
    left: -18%;
    width: 136%;
    height: 34vh;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.58;
    transform-origin: center;
}

.bg-wave-red {
    bottom: 8%;
    background:
        radial-gradient(ellipse at 28% 52%, rgba(230, 0, 18, 0.38), transparent 34%),
        linear-gradient(100deg, transparent 4%, rgba(230, 0, 18, 0.24) 32%, rgba(255, 255, 255, 0.12) 49%, rgba(230, 0, 18, 0.22) 66%, transparent 94%);
    clip-path: polygon(0 62%, 12% 48%, 24% 60%, 38% 36%, 53% 54%, 69% 30%, 84% 48%, 100% 26%, 100% 76%, 0 100%);
    animation: wave-red 5.33s ease-in-out infinite alternate;
}

.bg-wave-white {
    top: 28%;
    background: linear-gradient(100deg, transparent 8%, rgba(255, 255, 255, 0.10) 34%, rgba(230, 0, 18, 0.10) 52%, rgba(255, 255, 255, 0.07) 74%, transparent 96%);
    clip-path: polygon(0 50%, 14% 42%, 29% 56%, 45% 38%, 60% 50%, 76% 34%, 100% 48%, 100% 66%, 77% 50%, 60% 66%, 43% 54%, 29% 70%, 12% 56%, 0 68%);
    animation: wave-white 7.33s ease-in-out infinite alternate;
}

.bg-data-grid {
    position: absolute;
    right: -12%;
    bottom: -18%;
    width: 72vw;
    height: 58vh;
    opacity: 0.34;
    background:
        radial-gradient(circle, rgba(255,255,255,0.45) 1.4px, transparent 2px) 0 0 / 34px 34px,
        linear-gradient(115deg, transparent 0 38%, rgba(230, 0, 18, 0.22) 39% 40%, transparent 41% 100%),
        linear-gradient(30deg, transparent 0 44%, rgba(255,255,255,0.12) 45% 46%, transparent 47% 100%);
    transform: rotate(-11deg) skewX(-13deg);
    animation: data-flow 6.67s linear infinite;
}

.bg-data-particles {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image:
        radial-gradient(circle, rgba(230, 0, 18, 0.75) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(255, 255, 255, 0.6) 0 1px, transparent 2px);
    background-size: 160px 160px, 220px 220px;
    background-position: 15px 50px, 80px 110px;
    animation: particles-drift 8.67s linear infinite;
}

@keyframes grid-drift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 54px 108px, 54px 108px; }
}

@keyframes light-sweep {
    from { transform: translateX(-8%) skewX(-8deg); }
    to { transform: translateX(8%) skewX(-8deg); }
}

@keyframes wave-red {
    from { transform: translate3d(-2%, 3%, 0) rotate(-2deg) scaleY(0.92); }
    to { transform: translate3d(3%, -2%, 0) rotate(2deg) scaleY(1.08); }
}

@keyframes wave-white {
    from { transform: translate3d(3%, -1%, 0) rotate(2deg) scaleY(1); }
    to { transform: translate3d(-3%, 2%, 0) rotate(-2deg) scaleY(1.12); }
}

@keyframes data-flow {
    from { background-position: 0 0, 0 0, 0 0; }
    to { background-position: 68px -68px, 180px 0, -120px 0; }
}

@keyframes particles-drift {
    from { background-position: 15px 50px, 80px 110px; }
    to { background-position: 175px -110px, -140px 330px; }
}

@media (prefers-reduced-motion: reduce) {
    .site-bg, .site-bg::before, .site-bg::after, .bg-wave, .bg-data-grid, .bg-data-particles {
        animation: none !important;
    }
}

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

/* ナビゲーション */
.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.logo { height: 45px; width: auto; }

/* ヒーローセクション（ボタン中央配置） */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 45%, rgba(96, 0, 0, 0.52) 0%, transparent 70%);
}
.hero-content {
    width: 100%;
    text-align: center; /* これでボタンも中央に来ます */
}
.hero h1 { font-size: clamp(2.5rem, 8vw, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.text-red { color: var(--primary-red); }
.subtitle { font-size: clamp(1rem, 3vw, 1.4rem); margin-bottom: 40px; }

/* ボタン */
.btn { 
    display: inline-block; 
    padding: 16px 45px; 
    background: var(--primary-red); 
    color: white; 
    text-decoration: none; 
    border-radius: 50px; 
    font-weight: bold;
    transition: 0.3s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(230, 0, 18, 0.4); }

/* セクション共通 */
.section { padding: 120px 0; }
.bg-dark { background-color: rgba(26, 26, 26, 0.78); backdrop-filter: blur(5px); }
.section-title { font-size: 2.8rem; margin-bottom: 60px; font-weight: 900; text-align: center; }
.section-title::after { content: ""; display: block; width: 60px; height: 4px; background: var(--primary-red); margin: 20px auto 0; }
.section-desc { text-align: center; margin-top: -40px; margin-bottom: 60px; color: var(--text-gray); }

/* ブランドメッセージ */
.brand-message { max-width: 900px; margin: 0 auto; text-align: center; }
.brand-message .large-text { font-size: clamp(1.5rem, 4vw, 2.2rem); color: var(--primary-red); font-weight: 700; margin-bottom: 35px; }
.brand-message p { word-break: keep-all; overflow-wrap: anywhere; margin-bottom: 1.5rem; }

/* Core Strengths レイアウト */
.strengths-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.strength-item { background: rgba(40, 40, 40, 0.62); padding: 40px; border-radius: 15px; border-top: 3px solid var(--primary-red); backdrop-filter: blur(2px); }
.strength-item .num { font-size: 1.5rem; color: var(--primary-red); font-weight: 900; display: block; margin-bottom: 10px; }
.strength-item h3 { font-size: 1.5rem; margin-bottom: 20px; }

/* ソリューション共通（交互配置の復元） */
.solution-block { margin-bottom: 100px; }
.flex-row { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }

/* reverseクラスが付いている場合に左右を入れ替える */
.flex-row.reverse { flex-direction: row-reverse; }

.flex-text, .flex-image-dummy { flex: 1; min-width: 320px; }
.flex-text h3 {
    font-size: clamp(1.6rem, 3.8vw, 2.25rem) !important;
    white-space: nowrap !important;
    margin-bottom: 0.6em !important;
    font-weight: 900;
}
.tag { display: inline-block; color: var(--primary-red); border: 1px solid var(--primary-red); padding: 3px 12px; font-size: 0.85rem; font-weight: bold; margin-bottom: 15px; }
.flex-image-dummy { height: 350px; background: rgba(50, 50, 50, 0.52); border: 1px solid #444; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: #777; backdrop-filter: blur(2px); }

/* フロー */
.flow-container { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; }
.flow-item { background: rgba(37, 37, 37, 0.88); padding: 30px 15px; flex: 1; min-width: 200px; border-radius: 12px; text-align: center; backdrop-filter: blur(2px); }
.flow-item span { font-size: 1.8rem; font-weight: 900; color: var(--primary-red); display: block; margin-bottom: 10px; }
.flow-arrow { font-size: 1.5rem; color: var(--primary-red); }

/* フッター */
.footer { padding: 80px 0; background: #000; text-align: center; }
.footer-logo { height: 40px; margin-bottom: 25px; }

@media (max-width: 992px) {
    .flex-row, .flex-row.reverse { flex-direction: column; }
    .flex-text h3 { white-space: normal !important; }
}

/* --- ヒーローセクションのボタン中央配置（維持） --- */
.hero-content {
    width: 100%;
    text-align: center;
}

/* --- ソリューション共通レイアウト（Focus 02の被り防止調整版） --- */
.solution-block {
    margin-bottom: 120px;
    width: 100%;
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 60px; /* 写真とテキストの間の余白 */
    flex-wrap: wrap;
}

/* reverseクラス（Focus 02）でテキスト左・画像右にする */
.flex-row.reverse {
    flex-direction: row; 
}

.flex-text, .flex-image-dummy {
    flex: 1;
    min-width: 320px;
}

/* 見出しの調整：写真に被らないようサイズを微減し、右側に余白を確保 */
.flex-text h3 {
    /* 1行を維持しつつ、写真枠に被らないサイズに調整 */
    font-size: clamp(1.5rem, 3.5vw, 2rem) !important; 
    white-space: nowrap !important;
    margin-bottom: 0.6em;
    font-weight: 900;
    letter-spacing: -0.02em;
    /* Focus 02でテキストが左に来た際、右の写真との距離を確保 */
    padding-right: 30px; 
}

/* モバイル対応：画面が狭い時は縦並びにして、1行解除 */
@media (max-width: 992px) {
    .flex-row, .flex-row.reverse {
        flex-direction: column;
    }
    .flex-text h3 {
        white-space: normal !important;
        padding-right: 0;
        text-align: center;
    }
}   
/* --- Social Value 中央配置用スタイル --- */

/* セクション内の要素をすべて中央に寄せる */
.text-center {
    text-align: center;
}

/* 画像コンテナ：中央に配置し、幅を調整 */
.value-image-container {
    max-width: 800px; /* 他の画像枠とバランスを取るサイズ */
    margin: 0 auto 40px; /* 中央配置し、下の文字との間に余白を作る */
}

/* 文字部分の調整 */
.value-text h3 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    margin-bottom: 25px;
    color: var(--text-white);
}

.value-text p {
    max-width: 850px;
    margin: 0 auto;
    line-height: 2;
    word-break: keep-all; /* 不自然な改行を防止 */
    overflow-wrap: anywhere;
}