/* =========================================
   SANKO Robotics Design System (NOMO Base)
   ========================================= */

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* NOMOカラーパレット（微調整版） */
:root {
    --nomo-bg-1: #0f172a;
    /* 深いネイビー */
    --nomo-bg-2: #1e293b;
    /* スレート */
    --nomo-accent-1: #38bdf8;
    /* スカイブルー */
    --nomo-accent-2: #2563eb;
    /* ロイヤルブルー */
    --nomo-accent-3: #4338ca;
    /* インディゴ */
    --text-primary: #334155;
    /* 濃いグレー */
    --text-secondary: #64748b;
    /* 中間のグレー */
    --bg-light: #f8fafc;
    /* 青みのある白 */

    /* 追加：戦略カラー */
    --strategy-highlight: #2e7d32;
    /* シミュレーション強調用の緑 */
    --strategy-alert: #d32f2f;
    /* 注意書き・強調用の赤 */
}

/* リンク色 */
a {
    color: var(--nomo-accent-2);
    text-underline-offset: 2px;
}

a:hover {
    color: var(--nomo-accent-1);
}

/* 基本設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--text-primary);
    overflow-x: hidden;
    background-color: var(--nomo-bg-1);
}

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

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* 視認性向上のため影を追加 */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo .logo-text a {
    color: var(--nomo-accent-2);
    /* ロゴ色を調整 */
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--nomo-accent-1);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--nomo-accent-2), var(--nomo-accent-1));
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* ヒーローセクション */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(1200px 720px at 14% 6%, rgba(67, 97, 238, 0.28), rgba(13, 21, 48, 0.00) 62%),
        radial-gradient(1000px 600px at 86% 20%, rgba(76, 201, 240, 0.22), rgba(13, 21, 48, 0.00) 60%),
        radial-gradient(1100px 680px at 24% 88%, rgba(58, 134, 255, 0.20), rgba(13, 21, 48, 0.00) 64%),
        linear-gradient(180deg, var(--nomo-bg-2) 0%, var(--nomo-bg-1) 50%, var(--nomo-bg-2) 100%);
    background-position: 0% 40%, 100% 55%, 35% 100%, 0% 0%;
    background-size: 240% 240%, 220% 220%, 220% 220%, 100% 100%;
    animation: gradientShift 26s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    /* ヘッダー被り防止 */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(76,201,240,0.10)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.highlight {
    background: linear-gradient(transparent 60%, rgba(76, 201, 240, 0.6) 60%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    animation: marker 1.5s 1s forwards ease-out;
    padding: 0 5px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes marker {
    0% {
        background-size: 0% 100%;
    }

    100% {
        background-size: 100% 100%;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* ボタン共通 */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

/* メインボタン（青系グラデーション） */
.btn-primary {
    background: linear-gradient(90deg, var(--nomo-accent-2), var(--nomo-accent-1));
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--nomo-accent-1), var(--nomo-accent-2));
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.4);
}

/* サブボタン（白系） */
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ヒーローイラスト */
.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out 0.6s both;
}

.usage-illustration {
    position: relative;
    width: 420px;
    height: 320px;
    transform: scale(1.2);
    /* 少し調整 */
    transform-origin: center;
}

.usage-illustration img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: normal;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
    animation: floatSlow 16s ease-in-out infinite alternate;
}

/* ウォーターマーク（背景の薄いロボット） */
.hero::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, calc(-50% + var(--parallaxY, 0px)));
    width: min(120vmin, 1200px);
    height: min(120vmin, 1200px);
    background-image: url('assets/robot-arm.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.05;
    /* さりげなく */
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
}

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 3;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
}

/* セクション共通 */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    color: #1e293b;
    font-weight: 800;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--nomo-accent-1), var(--nomo-accent-2));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* 会社概要・代表挨拶 */
.about {
    background: white;
    padding-bottom: 6rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.message-box {
    margin-bottom: 60px;
}

.message-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 25px;
    border-left: 6px solid var(--strategy-alert);
    /* 赤ラインで強調 */
    padding-left: 20px;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.message-content {
    line-height: 2;
    font-size: 1.05rem;
    color: #444;
}

.message-content p {
    margin-bottom: 20px;
}

/* 社名の由来 */
.sanko-origin {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--nomo-accent-2);
}

.sanko-origin h4 {
    color: var(--nomo-bg-2);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* プロフィール */
.profile-section {
    border-top: 1px solid #eee;
    padding-top: 50px;
    margin-top: 50px;
}

.profile {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.photo-placeholder {
    width: 150px;
    height: 150px;
    background: #ecf0f1;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    border: 3px dashed #bdc3c7;
    margin: 0 auto;
}

.profile-text h4 {
    font-size: 1.6rem;
    color: var(--nomo-bg-2);
    margin-bottom: 15px;
}

.profile-role {
    font-size: 0.7em;
    color: var(--text-secondary);
    font-weight: normal;
    display: block;
    margin-bottom: 5px;
}

/* サービスセクション */
.services {
    background: var(--bg-light);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: white;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

/* アイコン個別色 */
.service-icon.teaching {
    color: #e74c3c;
}

.service-icon.system {
    color: #3498db;
}

.service-icon.maintenance {
    color: #f1c40f;
}

.service-icon.consulting {
    color: #2ecc71;
}

.service-icon.simulation {
    color: var(--strategy-highlight);
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--nomo-bg-2);
    margin-bottom: 15px;
    font-weight: 700;
}

/* ★★★ 戦略的追加：シミュレーション診断カードの強調 ★★★ */
.service-card.recommended {
    border: 3px solid var(--strategy-highlight);
    /* 緑の太枠 */
    background: #f1f8e9;
    /* 薄い緑背景 */
    position: relative;
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.15);
}

.service-card.recommended::before {
    content: "導入前推奨";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--strategy-highlight);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.service-note {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--strategy-alert);
    font-weight: bold;
}

/* 導入事例 */
.cases {
    background: #ffffff;
}

.cases-grid.simple-cases {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.case-card.simple {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.case-card.simple:hover {
    transform: translateY(-5px);
    border-color: var(--nomo-accent-1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.case-icon {
    font-size: 3rem;
    color: var(--nomo-accent-2);
    margin-bottom: 20px;
    background: var(--bg-light);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    /* 修正 */
    transition: all 0.3s ease;
}

.case-card.simple:hover .case-icon {
    background: var(--nomo-accent-2);
    color: white;
}

/* 対応メーカー（スキル） */
.skills {
    padding: 80px 0;
    background: white;
}

.skills-content {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.skill-row {
    display: flex;
    border-bottom: 1px solid #eee;
}

.skill-row:last-child {
    border-bottom: none;
}

.skill-label {
    background: #f8fafc;
    padding: 25px;
    width: 250px;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: var(--nomo-bg-2);
    border-right: 1px solid #eee;
}

.skill-label i {
    margin-right: 15px;
    font-size: 1.2rem;
}

.skill-list {
    padding: 25px;
    flex: 1;
}

.text-highlight {
    color: var(--strategy-alert);
    /* 川崎重工を目立たせる */
    font-weight: 700;
    font-size: 1.1em;
    background: linear-gradient(transparent 70%, rgba(211, 47, 47, 0.1) 70%);
}

/* FAQ */
.faq {
    background: var(--bg-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--nomo-accent-2);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    font-size: 1.1rem;
    color: var(--nomo-bg-2);
    margin-bottom: 15px;
    font-weight: 700;
}

/* 導入の流れ */
.flow {
    background: white;
}

.flow-steps {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
    /* 線のためのスペース */
}

.flow-steps::before {
    content: '';
    position: absolute;
    left: 29px;
    /* 位置微調整 */
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--nomo-accent-2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin-right: 30px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    z-index: 1;
    /* 線より上に */
    transform: translateX(-50%);
    /* 線の上に中央配置 */
}

.step-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex: 1;
}

/* お問い合わせ */
.contact {
    background: linear-gradient(135deg, var(--nomo-bg-2) 0%, #0f172a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, transparent 60%);
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.contact .section-header h2 {
    color: white;
}

.contact .section-header h2::after {
    background: white;
}

.contact .section-header p {
    color: #cbd5e1;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 700;
}

.required {
    color: var(--strategy-alert);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--nomo-accent-2);
    background: white;
}

/* フォーム送信ボタン（オレンジ系で目立たせる） */
.contact-form .btn-primary {
    background: #e76f51;
    /* 元のデザインを踏襲：情熱の色 */
    color: white;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(231, 111, 81, 0.3);
    border: none;
}

.contact-form .btn-primary:hover {
    background: #d55a3f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 111, 81, 0.5);
}

/* インスタグラムセクション */
.instagram-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.instagram-feed-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.instagram-btn {
    display: inline-block;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s;
}

.instagram-btn:hover {
    opacity: 0.9;
}

/* フッター */
.footer {
    background: var(--nomo-bg-1);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.footer-logo p {
    color: #94a3b8;
}

.footer-info p {
    color: #cbd5e1;
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.9rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero {
        padding-top: 100px;
    }

    .profile {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .skill-row {
        flex-direction: column;
    }

    .skill-label {
        width: 100%;
        border-right: none;
        border-bottom: 1px dashed #eee;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* アニメーション用クラス */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 旧ロボットSVG用のスタイルは削除 */
/* hero-orbits 削除 */
/* hero-effectsなどはそのまま採用 */
.hero-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-effects::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 80px);
}