/* --- Reset & Base Styles --- */
:root {
    --primary-color: #0a0e17; /* 深い紺色 */
    --accent-color: #002b5c; /* 青 */
    --highlight-color: #00afcc; /* シアン/水色 */
    --text-color: #333;
    --bg-light: #f9f9f9;
    --white: #fff;
    --border-color: #ddd;
}

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

body {
    /* システムフォントを優先指定 */
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--highlight-color);
}

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-white { color: var(--white); }

/* --- Icons (SVG) --- */
.icon {
    width: 40px;
    height: 40px;
}
.icon-sm {
    width: 20px;
    height: 20px;
    vertical-align: text-bottom;
    margin-right: 5px;
}
.icon-lg {
    width: 50px;
    height: 50px;
}
.icon-xl {
    width: 60px;
    height: 60px;
}

/* --- Header --- */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    display: block;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--highlight-color);
}

.nav-btn {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 4px;
}

/* カレント表示用のスタイル */
.nav-list a.current {
    color: var(--highlight-color);
    position: relative;
}

/* 下線を表示する場合のオプション */
.nav-list a.current::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--highlight-color);
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    margin-bottom: 6px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .concept {
        min-height: 500px;
        padding: 60px 15px;
    }
}

/* --- Problems Section --- */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
    row-gap: 40px;
}

.problem-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.problem-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    flex-shrink: 0;
}

.avatar {
    background: #e0e0e0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    margin-bottom: 10px;
}

.role {
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.3;
    color: var(--primary-color);
}

.bubble {
    background: #f0f4f8;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    flex-grow: 1;
}

.bubble::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 30px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #f0f4f8;
}

/* --- Diagnosis & Risks (Card Styles) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 20px;
}

.card-icon, .simple-icon {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.simple-icon {
    color: #555; 
}

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

.strength-item h3 {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 5px 5px 0 0;
    margin-bottom: 0;
}

.strength-item p {
    background: var(--white);
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    min-height: 120px;
}

/* --- Concept Section --- */
.concept {
    background:
        linear-gradient(
            180deg,
            rgba(15,27,46,0.88) 0%,
            rgba(47, 138, 178, 1) 50%,
            rgba(15,27,46,0.88) 100%
        );

    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;

    color: #dbeafe;
}

/* PCなどの大画面で画像エリアが広がりすぎないよう調整 */
@media (min-width: 1200px) {
    .concept {
        min-height: 600px; /* 固定の高さへシフトして安定させる */
    }
}

/* スマホ対応 */
@media (max-width: 768px) {
    .concept {
        /* スマホでは中身（リスト等）を優先し、背景色をしっかり見せる */
        min-height: 500px;
        padding: 60px 15px;
        aspect-ratio: auto;
    }
}
    
    /* コンテンツが4:3の枠を超えそうな場合は高さを自動にする */
    .concept {
        aspect-ratio: auto;
        min-height: 480px;
    }

.concept-desc {
    margin-bottom: 50px;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Fusion Block (Center / Top) --- */
.fusion-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 60px; /* 下の要素との距離を確保 */
    position: relative;
    z-index: 2;
}

.fusion-item {
    width: 100%;
    max-width: 600px;
    background: linear-gradient(135deg, rgba(0, 43, 92, 0.6) 0%, rgba(10, 14, 23, 0.9) 100%);
    border: 2px solid var(--highlight-color);
    box-shadow: 0 0 30px rgba(0, 209, 255, 0.2);
    padding: 30px;
    border-radius: 10px;
    /* 他のscale-item設定を上書き */
    display: block; 
}

.fusion-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.fusion-header h4 {
    margin-bottom: 0;
    font-size: 1.4rem;
    color: var(--highlight-color);
    font-weight: bold;
}

.fusion-lead {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
    display: inline-block;
}

.text-center-list {
    text-align: center;
    list-style: none;
    padding-left: 0;
}

.text-center-list li::before {
    content: "✔";
    color: var(--highlight-color);
    margin-right: 10px;
    font-weight: bold;
}

/* --- Scale Visual (Bottom: Left & Right) --- */
.scale-visual {
    display: flex;
    justify-content: center;
    align-items: stretch; /* 高さを揃える */
    gap: 40px;
    margin-bottom: 40px;
}

.scale-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(0, 209, 255, 0.3);
    backdrop-filter: blur(5px);
    
    width: 45%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* fusion-item以外（左右のアイテム）に対するスタイル */
.scale-visual .scale-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--white);
}

.scale-visual .scale-item .sub-text {
    font-size: 0.9rem;
    font-weight: normal;
    display: block;
    margin-top: 5px;
    opacity: 0.9;
    color: #ccc;
}

.scale-visual .scale-item .icon-xl {
    color: var(--highlight-color);
    margin-bottom: 15px;
}

.concept-list {
    text-align: left;
    margin-top: 10px;
    font-size: 0.95rem;
    list-style: disc;
    padding-left: 20px;
    line-height: 1.8;
}

/* 中央のセパレーターアイコン */
.scale-center {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* アイコンの下に「VS」や「＆」のような接続線をイメージさせる装飾（オプション） */
.scale-center::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--highlight-color), transparent);
    opacity: 0.5;
    z-index: 0;
}

.scale-center .icon-xl {
    color: #fff;
    width: 50px;
    height: 50px;
    opacity: 0.8;
    background: var(--primary-color); /* 線の上にアイコンを乗せるため背景色をつける */
    position: relative;
    z-index: 1;
    border-radius: 50%;
    padding: 5px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .scale-visual {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .scale-item {
        width: 100%;
        max-width: 100%;
    }

    .scale-center {
        margin: 10px 0;
        transform: rotate(90deg); /* 縦並び用に回転 */
    }
    .scale-center::before {
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, transparent, var(--highlight-color), transparent);
    }
    
    .fusion-header {
        flex-direction: column;
        gap: 5px;
    }
}

/* --- Menu --- */
.menu-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px dotted #ccc;
}

.menu-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.star-icon {
    color: #CAA846; /* Gold */
    font-size: 1.5rem;
}

.menu-header h3 {
    font-size: 1.3rem;
}

/* --- Comparison Table --- */
.table-scroll {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 600px;
}

.comparison-table th, .comparison-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #ddd;
}

.comparison-table th {
    background: #f0f0f0;
    font-weight: bold;
}

.comparison-table th.highlight,
.comparison-table td.highlight {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: #333;
}

.circle { color: var(--highlight-color); font-weight: bold; }
.triangle { color: #888; }
.cross { color: #ff4d4d; }

/* --- Footer --- */
.footer {
    background: #000;
    color: #fff;
    padding: 50px 0 20px;
    text-align: center;
}

.footer-cta {
    margin-bottom: 40px;
}

.footer-btn {
    border: 1px solid var(--white);
}

.copyright {
    font-size: 0.8rem;
    color: #888;
}

/* --- Responsive (Mobile Global) --- */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .nav {
        position: absolute;
        top: 70px;
        right: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        transition: 0.3s;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }
    
    .hamburger {
        display: block;
    }

    /* Stack Grids */
    .problems-grid,
    .card-grid,
    .strengths-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title::after {
        left: 0; 
    }
}


/* =========================================
   Company Page Styles
   ========================================= */

/* --- Layout & Typography --- */
.company-main {
    padding-top: 120px; /* ヘッダー分の余白 + α */
    padding-bottom: 80px;
    min-height: calc(100vh - 100px); /* フッターを下に押し下げるための高さ確保 */
}

.page-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 60px;
    border-left: none; /* LPの装飾をリセット */
    padding-left: 0;
}

/* --- Center Logo Section --- */
.company-logo-section {
    text-align: center;
    margin-bottom: 60px;
}

.center-logo {
    display: block;      /* ブロック要素に変更 */
    margin: 0 auto;      /* 左右の余白を自動調整して中央へ */
    max-width: 200px;    /* サイズはお好みで */
    height: auto;
}

/* --- Info Table --- */
.company-info {
    margin-bottom: 80px;
}

.info-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.info-table th, .info-table td {
    padding: 20px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.info-table th {
    background-color: #f9f9f9;
    width: 30%;
    font-weight: normal;
    white-space: nowrap; /* ラベルの折り返し防止 */
}

.map-link {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.8rem;
    text-decoration: underline;
    color: #666;
}

/* --- Business Lines (3 Columns) --- */
.business-lines {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 100px; /* 3番目の値（下側）を100px程度に設定 */
}

.business-col h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: none; /* リセット */
}

.business-col ul {
    list-style: disc;
    padding-left: 20px;
}

.business-col ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Footer Simple (Company Page用) --- */
.footer-simple {
    background: #fff;
    color: #333;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #eee;
}

/* --- Navigation Active State --- */
.nav-list a.active {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

/* --- Responsive (Company Page) --- */
@media (max-width: 768px) {
    .page-title {
        margin-bottom: 40px;
        font-size: 1.5rem;
    }

    /* テーブルのスマホ表示調整 */
    .info-table th, .info-table td {
        display: block; /* 縦積みに変更 */
        width: 100%;
        border-bottom: none;
    }
    
    .info-table th {
        background-color: #f0f0f0;
        border-bottom: 1px solid #ddd; /* 区切り線 */
        font-weight: bold;
        padding: 10px 15px;
    }

    .info-table td {
        padding: 15px;
        border-top: none;
    }

    /* 3カラムを1カラムに */
    .business-lines {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* =========================================
   Develop Flow (Refactored)
   ========================================= */

.develop-flow {
    margin-top: 50px;
    display: flex;
    justify-content: space-between; /* 均等配置 */
    align-items: stretch; /* 高さを揃える */
    gap: 15px; /* アイテム間の隙間 */
}

.flow-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 25px 15px; /* 横幅が狭くなるためパディングを少し調整 */
    flex: 1; /* 横並び時に幅を自動調整 */
    min-width: 0; /* Flexboxのはみ出し防止 */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: bold;
    min-height: 1.6em; /* 2行になっても高さがズレにくいように */
}

.flow-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: auto; /* コンテンツが少ない場合でも上下中央寄せっぽく調整 */
}

/* 矢印 (共通) */
.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--highlight-color);
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0; /* 矢印が潰れないように */
}

.flow-arrow::after {
    content: "→"; /* デスクトップは右向き */
    font-family: sans-serif;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 900px) { /* 狭くなりすぎる前に早めに縦並びに切り替え */
    .develop-flow {
        flex-direction: column;
        align-items: center;
        gap: 0; /* 矢印のマージンで調整するため */
    }

    .flow-item {
        width: 100%;
        max-width: 400px; /* スマホで見やすい最大幅 */
        padding: 30px 20px;
    }

    .flow-item h3 {
        min-height: auto;
    }

    /* 矢印を回転させて下向きにする */
    .flow-arrow {
        width: 100%;
        height: 40px;
        transform: rotate(90deg); /* 右向き矢印を回転させて下向きに */
        margin: 10px 0;
    }
}

/* ===============================
   DevSecOps Hero
================================ */
.hero-devsecops {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    background:
        linear-gradient(
            180deg,
            rgba(15,27,46,0.88) 0%,
            rgba(47, 138, 178, 1) 50%,
            rgba(15,27,46,0.88) 100%
        );

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;

    color: #dbeafe;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;
}

/* panel styles */
.neon-panel {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(56,189,248,0.35);

    box-shadow:
        0 0 10px rgba(56,189,248,0.15),
        inset 0 0 15px rgba(56,189,248,0.05);

    backdrop-filter: blur(6px);
}

.panel-header {
    border-bottom: 2px solid #1a5f8a;
}

.glow-text {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.alert-box {
    border: 1px solid #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    background: rgba(60, 10, 10, 0.6);
}

.circuit-line {
    position: absolute;
    background: #0ea5e9;
    box-shadow: 0 0 8px #0ea5e9;
    opacity: 0.4;
    z-index: 0;
}

/* =========================
   DevSecOps Diagram
========================= */

.concept-diagram {
    background: rgba(5, 16, 36, 0.85);
    border: 2px solid #1a5f8a;
    box-shadow:
        0 0 15px rgba(0,140,255,.2),
        inset 0 0 20px rgba(0,140,255,.05);

    backdrop-filter: blur(8px);
    border-radius: 18px;

    padding: 48px 28px;
    margin-top: 30px;
}

/* grid background */
.concept-diagram .grid-bg {
  background-image:
    linear-gradient(rgba(64,196,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64,196,255,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  position: absolute;
  inset: 0;
  opacity: .3;
  z-index: 0;
}

/* neon boxes */

.neon-box {
  background: rgba(13,22,40,.7);
  border: 1px solid rgba(64,196,255,.3);
  box-shadow:
    0 0 15px rgba(64,196,255,.1),
    inset 0 0 20px rgba(64,196,255,.05);
  backdrop-filter: blur(5px);
}

.neon-box-pink {
  background: rgba(40,13,30,.7);
  border: 1px solid rgba(255,64,129,.3);
  box-shadow:
    0 0 15px rgba(255,64,129,.1),
    inset 0 0 20px rgba(255,64,129,.05);
}

/* glow text */
.glow-text {
    text-shadow:
        0 0 6px rgba(56,189,248,0.6),
        0 0 12px rgba(56,189,248,0.25);
}