/* ===== デザイン：テック・AI（ダーク × シアン〜パープルのグラデーション） ===== */
:root {
    --bg: #070b16;
    --bg-2: #0d1426;
    --panel: rgba(255,255,255,.04);
    --border: rgba(255,255,255,.1);
    --text: #e6ebf5;
    --muted: #97a3b8;
    --cyan: #22d3ee;
    --violet: #8b5cf6;
    --grad: linear-gradient(120deg, #22d3ee 0%, #6366f1 55%, #a855f7 100%);
}
body { font-family: "Noto Sans JP", sans-serif; color: var(--text); background: var(--bg); }
.hero-eyebrow, .section-en, .keyword-no, .service-no, .mvv-item h3, .footer-logo { font-family: "Space Grotesk", "Noto Sans JP", sans-serif; }
.grad-text, .hero-title, .section-title { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title, .section-title { font-weight: 800; }

/* ヘッダー */
.site-header.is-scrolled, .nav-toggle:checked ~ .global-nav { background: rgba(7,11,22,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header.is-scrolled { border-bottom: 1px solid var(--border); }
.global-nav a { color: var(--muted); transition: color .2s; }
.global-nav a:hover { color: #fff; }
.nav-cta { background: var(--grad); color: #fff !important; padding: 8px 20px; border-radius: 999px; }
@media (max-width: 960px) { .site-header { background: rgba(7,11,22,.9); } }

/* ヒーロー */
.hero-bg {
    background:
        radial-gradient(600px circle at 78% 30%, rgba(99,102,241,.35), transparent 60%),
        radial-gradient(500px circle at 15% 80%, rgba(34,211,238,.22), transparent 60%),
        var(--bg);
}
.hero-bg::before { /* グリッド */
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
    animation: grid-move 20s linear infinite;
}
.hero-bg::after { /* 光の軌跡 */
    content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34,211,238,.12), transparent);
    transform: skewX(-20deg); animation: sweep 6s ease-in-out infinite;
}
@keyframes grid-move { to { background-position: 56px 56px; } }
@keyframes sweep { 0% { left: -40%; } 60%, 100% { left: 120%; } }
@media (prefers-reduced-motion: reduce) { .hero-bg::before, .hero-bg::after { animation: none; } }
.hero-eyebrow { display: inline-block; color: var(--cyan); border: 1px solid rgba(34,211,238,.4); border-radius: 999px; padding: 6px 16px; font-size: 12px; }
.hero-lead { color: var(--muted); }
.btn { border-radius: 999px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px rgba(99,102,241,.35); }
.btn-primary:hover { box-shadow: 0 10px 40px rgba(99,102,241,.55); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: var(--panel); }
.btn-ghost:hover { border-color: var(--cyan); }

/* 画面上を移動できる地球メニュー */
.orb-layer { position: fixed; top: 50vh; right: max(24px, calc(50vw - 556px)); z-index: 90; width: min(300px, calc(100vw - 16px)); padding: 9px 13px 11px; border: 1px solid rgba(123,213,240,.28); border-radius: 20px; background: rgba(7,14,31,.35); box-shadow: 0 14px 36px rgba(0,0,0,.26), inset 0 1px rgba(200,245,255,.06); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); text-align: center; cursor: move; touch-action: none; }
.orb-layer.is-moving { box-shadow: 0 24px 58px rgba(0,0,0,.56), 0 0 0 1px rgba(34,211,238,.55); }
.orb-layer-toolbar { display: flex; min-height: 24px; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 4px; text-align: left; cursor: move; outline: none; }
.orb-layer-toolbar::before { content: "⋮⋮"; color: var(--cyan); font-size: 16px; line-height: 1; letter-spacing: -.25em; }
.orb-layer-toolbar:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.orb-menu-heading { min-width: 0; flex: 1; overflow: hidden; color: var(--cyan); font: 700 10px "Space Grotesk", sans-serif; letter-spacing: .16em; text-overflow: ellipsis; white-space: nowrap; }
.orb-stage { position: relative; width: min(100%, 246px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; outline: none; }
.orb-stage.is-dragging { cursor: grabbing; }
.orb-stage:focus-visible { outline: 2px solid var(--cyan); outline-offset: 8px; }
.orb-stage::before { content: ""; position: absolute; inset: -13%; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.22), rgba(99,102,241,.09) 47%, transparent 70%); filter: blur(13px); pointer-events: none; }
.orb-stage::after { content: ""; position: absolute; inset: 2%; border-radius: 50%; border: 1px solid rgba(183,242,255,.42); box-shadow: inset 3px 3px 8px rgba(192,244,255,.16), inset -5px -5px 14px rgba(0,0,0,.75), 0 0 28px rgba(34,211,238,.22); pointer-events: none; }
.orb-surface { position: absolute; inset: 2%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 30% 25%, #2389c5, #063264 70%, #020b1c); box-shadow: inset -24px -20px 34px rgba(0,0,0,.64), 0 20px 32px rgba(0,0,0,.48); pointer-events: none; }
.orb-earth { display: block; width: 100%; height: 100%; border-radius: 50%; }
.orb-surface::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 22% 16%, rgba(255,255,255,.2), transparent 32%), radial-gradient(circle at 85% 83%, rgba(0,0,0,.2), transparent 55%); pointer-events: none; }
.orb-links { position: absolute; inset: 0; }
.orb-links a { position: absolute; z-index: 2; display: inline-flex; min-width: 70px; min-height: 29px; align-items: center; justify-content: center; padding: 4px 8px; border: 1px solid rgba(155,235,255,.8); border-radius: 999px; background: linear-gradient(160deg, rgba(47,104,152,.96), rgba(7,23,52,.97) 70%); box-shadow: inset 0 1px 2px rgba(226,252,255,.35), inset 0 -3px 6px rgba(0,0,0,.36), 0 6px 13px rgba(0,0,0,.52), 0 0 10px rgba(34,211,238,.22); color: #f4fbff; font-size: 11px; font-weight: 700; line-height: 1.3; white-space: nowrap; text-decoration: none; transform: translate(-50%, -50%) scale(var(--orb-scale, 1)); transition: background .2s, border-color .2s, box-shadow .2s; }
.orb-links a:hover, .orb-links a:focus-visible { background: #254985; border-color: #d1f8ff; box-shadow: 0 0 22px rgba(34,211,238,.55); outline: none; }
.orb-links a.orb-contact-cta {
    min-width: 0; min-height: 34px; padding: 8px 16px;
    border-color: rgba(226,245,255,.7);
    background: linear-gradient(180deg, rgba(255,255,255,.38), transparent 44%, rgba(31,20,93,.36)), var(--grad);
    box-shadow: inset 0 1px 2px rgba(255,255,255,.8), inset 0 -4px 7px rgba(25,16,85,.38), 0 4px 0 rgba(32,41,116,.9), 0 9px 16px rgba(0,0,0,.52);
    color: #fff; text-shadow: 0 1px 2px rgba(20,26,81,.6);
}
.orb-links a.orb-contact-cta:hover, .orb-links a.orb-contact-cta:focus-visible {
    border-color: rgba(255,255,255,.9);
    background: linear-gradient(180deg, rgba(255,255,255,.44), transparent 44%, rgba(31,20,93,.3)), var(--grad);
    box-shadow: inset 0 1px 3px rgba(255,255,255,.9), inset 0 -4px 7px rgba(25,16,85,.3), 0 4px 0 rgba(32,41,116,.9), 0 9px 20px rgba(0,0,0,.5), 0 0 16px rgba(139,92,246,.6);
}
.orb-links a.is-behind { visibility: hidden; pointer-events: none; }
.orb-ai { position: absolute; top: 50%; left: 50%; z-index: 300; display: flex; width: 58px; height: 58px; align-items: center; justify-content: center; border: 2px solid #fff0b5; border-radius: 50%; background: linear-gradient(145deg, #fff1a3, #ffbb55 58%, #f0753d); box-shadow: inset 0 2px 7px rgba(255,255,255,.75), inset 0 -5px 10px rgba(154,61,21,.28), 0 4px 18px rgba(0,0,0,.45), 0 0 22px rgba(255,172,66,.6); color: #4a220d; font: 800 24px "Space Grotesk", sans-serif; line-height: 1; text-decoration: none; transform: translate(-50%, -50%); cursor: pointer; }
.orb-ai:hover, .orb-ai:focus-visible { transform: translate(-50%, -50%) scale(1.07); box-shadow: inset 0 2px 7px rgba(255,255,255,.75), 0 0 28px rgba(255,190,81,.9); outline: 2px solid #fff4c5; outline-offset: 3px; }
/* JavaScript が使えない場合も、リンクを一覧として利用できるようにする。 */
.orb-stage:not(.is-ready) { height: auto; aspect-ratio: auto; border-radius: 20px; cursor: default; }
.orb-stage:not(.is-ready)::before, .orb-stage:not(.is-ready)::after, .orb-stage:not(.is-ready) .orb-surface { display: none; }
.orb-stage:not(.is-ready) .orb-links { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.orb-stage:not(.is-ready) .orb-links a { position: static; transform: none; }
.orb-stage:not(.is-ready) .orb-ai { position: relative; top: auto; left: auto; margin: 12px auto 0; transform: none; }
@media (max-width: 960px) {
    .orb-layer { width: min(264px, calc(100vw - 16px)); padding: 9px 11px 11px; }
    .orb-stage { width: min(78vw, 222px); }
}
@media (max-width: 720px) {
    .orb-layer { top: auto; right: 12px; bottom: 12px; width: min(233px, calc(100vw - 16px)); }
    .orb-stage { width: min(76vw, 200px); }
    .orb-links a { min-width: 62px; min-height: 26px; padding: 4px 7px; font-size: 10px; }
    .orb-ai { width: 50px; height: 50px; font-size: 21px; }
}
@media (max-height: 620px) {
    .orb-stage { width: min(58vh, 176px); }
    .orb-links a { min-width: 60px; min-height: 24px; padding: 4px 6px; font-size: 9px; }
    .orb-ai { width: 44px; height: 44px; font-size: 18px; }
}

/* キーワード */
.keywords { padding: 0 0 40px; margin-top: -80px; position: relative; z-index: 2; }
.keyword { background: rgba(13,20,38,.8); border: 1px solid var(--border); border-radius: 16px; padding: 28px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.keyword-no { color: var(--cyan); }
.keyword h2 { color: #fff; }
.keyword p { color: var(--muted); }

/* 見出し */
.section-en { color: var(--cyan); }
.section-desc { color: var(--muted); }
.section-alt { background: var(--bg-2); }

/* MVV */
.mvv-item { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.mvv-item h3 { color: #fff; }
.mvv-item h3 span { color: var(--cyan); }
.value-list li { color: var(--muted); }
.value-list strong { color: #fff; }

/* カード */
.card { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(34,211,238,.5); }
.card-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--grad); color: #fff; font-size: 24px; }
.card h3 { color: #fff; }
.card p { color: var(--muted); }

.card-cta { background: linear-gradient(135deg, rgba(34,211,238,.14), rgba(168,85,247,.18)); border-color: rgba(99,102,241,.45); }
.card-cta-link { color: var(--cyan); }

/* 開発の流れ */
.flow li { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; }
.flow-no { font-family: "Space Grotesk", sans-serif; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 22px; }
.flow h3 { color: #fff; }
.flow p { color: var(--muted); }
.quality-note { border: 1px solid rgba(34,211,238,.35); border-radius: 16px; background: rgba(34,211,238,.06); }
.quality-note i { color: var(--cyan); }
.quality-note p { color: var(--text); font-weight: 500; }

/* よくある質問 */
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(34,211,238,.4); }
.faq summary { color: #fff; }
.faq summary::before { content: "Q."; color: var(--cyan); font-family: "Space Grotesk", sans-serif; margin-right: 10px; }
.faq summary::after { color: var(--cyan); }
.faq details p { color: var(--muted); }

/* メッセージ */
.section-message { background: radial-gradient(700px circle at 50% 0%, rgba(139,92,246,.18), transparent 70%), var(--bg); }
.message-body { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 48px; }
.message-body p { color: var(--text); }
.message-sign { color: var(--muted) !important; }
.message-sign span { color: #fff; }
@media (max-width: 720px) { .message-body { padding: 28px 22px; } }

/* 表 */
.info-table { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--panel); }
.info-table > div { border-bottom: 1px solid var(--border); padding: 20px 28px; }
.info-table > div:last-of-type { border-bottom: 0; }
.info-table dt { color: var(--cyan); font-weight: 500; }
.info-table dd { color: var(--text); }
.info-table a { color: var(--cyan); }
.recruit-catch { color: #fff; }

/* お問い合わせ */
.contact-form { background: var(--panel); border: 1px solid var(--border); }
.contact-fields input, .contact-fields select, .contact-fields textarea { color: var(--text); background: #0b1425; border-color: rgba(151,163,184,.4); color-scheme: dark; }
.contact-fields input[type="file"] { padding: 9px 12px; }
.contact-fields input[type="file"]::file-selector-button { margin-right: 12px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-2); color: var(--text); cursor: pointer; }
.contact-fields input:focus, .contact-fields select:focus, .contact-fields textarea:focus { outline: 2px solid var(--cyan); outline-offset: 2px; border-color: var(--cyan); }
.contact-required { color: var(--cyan); }
.contact-hint { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.6; }
.contact-direct { color: var(--muted); }
.contact-direct a { color: var(--cyan); }

/* フッター */
.site-footer { background: #04070f; border-top: 1px solid var(--border); color: var(--muted); }
.footer-logo { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-logo span { color: var(--muted); -webkit-text-fill-color: var(--muted); }
.footer-info i { color: var(--cyan); }
.copyright { color: #5d6778; }

/* 一覧カード（コラム・関連ページ） */
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0; list-style: none; }
.link-cards li { margin: 0; }
.link-card { display: flex; height: 100%; flex-direction: column; padding: 28px 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); color: var(--text); text-decoration: none; transition: transform .25s, border-color .25s; }
.link-card:hover { transform: translateY(-4px); border-color: rgba(34,211,238,.5); }
.link-card .link-card-tag { color: var(--cyan); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.link-card h3, .link-card .link-card-title { margin: 8px 0 10px; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.6; }
.link-card p { color: var(--muted); font-size: 14px; }
.link-card .link-card-more { margin-top: auto; padding-top: 16px; color: var(--cyan); font-size: 14px; font-weight: 700; }

/* フッターのリンク */
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 4px 32px; }
.footer-links a { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: #fff; }

@media (max-width: 960px) { .link-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .link-cards { grid-template-columns: 1fr; } }

/* カード内の詳細ページへのリンク */
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--cyan); font-size: 14px; font-weight: 700; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.message-body a, .faq details p a, .contact-direct a { color: var(--cyan); }

/* ヘッダーメニューが折り返さないよう、中くらいの画面幅では間隔を詰める */
.global-nav a { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1200px) {
    .global-nav ul { gap: 16px; }
    .global-nav a { font-size: 13px; }
    .nav-cta { padding: 8px 16px; }
}

/* スマホで開いたメニューは、後ろの本文が透けないよう不透明にする */
@media (max-width: 960px) {
    .nav-toggle:checked ~ .global-nav { background: #070b16; border-bottom: 1px solid var(--border); }
}
