/* --- 変数定義 --- */
:root {
    --primary-blue: #1c6ece;
    --primary-navy: #0f172a;
    --accent-orange: #f97316;
    --bg-slate: #dce7f6;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
}

/* --- リセット & 基本設定 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    padding-top: 80px; /* ヘッダー固定用 */
}

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

/* --- ヘッダー --- */
.site-header {
    position: fixed;
    top: 0; width: 100%; height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.company-name { font-size: 10px; color: var(--text-muted); display: block; }
.product-logo { font-size: 20px; font-weight: bold; color: var(--primary-navy); }
.product-logo span { color: var(--primary-blue); }

.header-nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text-main); font-size: 14px; font-weight: 500; }
.header-cta { display: flex; gap: 10px; }

/* --- ロゴ画像の調整 --- */
.header-logo a {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 60px; /* ヘッダーの高さに合わせて調整 */
    width: auto;  /* アスペクト比を維持 */
    display: block;
    margin-top: 2px;
}

/* 社名テキストの微調整 */
.company-name {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
    line-height: 1;
}

/* スマホ表示でのサイズ調整（必要に応じて） */
@media (max-width: 768px) {
    .logo-img {
        height: 32px;
    }
}

/* --- ロゴエリアの横並び設定 --- */
.logo-wrapper {
    display: flex;
    align-items: center; /* 上下中央揃え */
    gap: 15px;           /* 社名とロゴの間の余白 */
}

.company-name {
    font-size: 14px;      /* 横並びに合わせて少しサイズアップ */
    font-weight: bold;
    color: var(--primary-navy);
    white-space: nowrap;  /* 改行を防ぐ */
    margin-bottom: 0;     /* 以前の余白をリセット */
}

.logo-img {
    height: 55px;         /* 高さを調整して社名とバランスを取る */
    width: auto;
    display: block;
}

/* スマホ表示での調整 */
@media (max-width: 768px) {
    .logo-wrapper {
        gap: 10px;
    }
    .company-name {
        font-size: 12px;
    }
    .logo-img {
        height: 26px;
    }
}
/* --- ボタン --- */
.btn-main { background: var(--accent-orange); color: var(--white); text-decoration: none; border-radius: 8px; font-weight: bold; transition: 0.2s; text-align: center; display: inline-block; }
.btn-sub { background: var(--white); border: 1px solid #cbd5e1; color: var(--text-main); text-decoration: none; border-radius: 8px; font-weight: bold; transition: 0.2s; text-align: center; display: inline-block; }
.btn-dark { background: #334155; color: var(--white); text-decoration: none; border-radius: 8px; font-weight: bold; transition: 0.2s; text-align: center; display: inline-block; }
.btn-blue { background: var(--primary-blue); color: var(--white); text-decoration: none; border-radius: 8px; font-weight: bold; transition: 0.2s; text-align: center; display: inline-block; }

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 40px; font-size: 18px; }
.btn-xl { padding: 20px 60px; font-size: 22px; width: 100%; max-width: 450px; }
.btn-shadow { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.btn-main:hover, .btn-dark:hover, .btn-blue:hover { transform: translateY(-2px); opacity: 0.9; }

/* --- ファーストビュー --- */
.hero { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); padding: 100px 0; text-align: center; border-bottom: 1px solid #e2e8f0; }
.seminar-tag { display: inline-block; background: #fff7ed; border: 1px solid var(--accent-orange); color: #c2410c; padding: 4px 16px; border-radius: 6px; font-weight: bold; margin-bottom: 30px; font-size: 14px; }
.hero-title { font-size: 3rem; font-weight: bold; line-height: 1.2; margin-bottom: 30px; }
.hero-title span { color: var(--primary-blue); }
.hero-subtext { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; }
.hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 40px; }
.hero-points span { background: var(--white); border: 1px solid #e2e8f0; padding: 10px 20px; border-radius: 8px; font-weight: 500; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.hero-cta-group { display: flex; justify-content: center; gap: 20px; }

/* --- 課題・グリッド共通 --- */
section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2rem; font-weight: bold; margin-bottom: 50px; }
.grid { display: grid; gap: 25px; }
.col-3 { grid-template-columns: repeat(3, 1fr); }
.col-4 { grid-template-columns: repeat(4, 1fr); }

.problem-card { border-left: 4px solid #f87171; background: #f8fafc; padding: 30px; }
.problem-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.problem-footer { text-align: center; margin-top: 40px; font-weight: bold; font-size: 1.1rem; color: #475569; }

/* --- 機能 --- */
.section-features { background: var(--bg-slate); }
.feature-card { background: var(--white); padding: 40px; border-radius: 15px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); text-align: center; position: relative; }
.feature-card.highlight { border: 2px solid var(--primary-blue); }
.feature-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary-blue); color: var(--white); padding: 2px 14px; border-radius: 20px; font-size: 12px; }
.feature-card .icon { font-size: 3rem; margin-bottom: 20px; }
.feature-card h3 { margin-bottom: 15px; }

/* --- 背景セクション --- */
.why-box { background: #eff6ff; padding: 50px; border-radius: 30px; }
.why-text { font-size: 1.1rem; margin-bottom: 30px; }
.why-highlight { font-weight: bold; color: var(--primary-blue); font-size: 1.2rem; margin-bottom: 20px; }
.why-list { list-style: none; margin-bottom: 40px; }
.why-list li::before { content: "●"; color: var(--primary-blue); margin-right: 10px; }
.why-conclusion { text-align: center; font-size: 1.5rem; font-weight: bold; border-top: 1px solid #bfdbfe; padding-top: 30px; }

/* --- システムメリット --- */
.section-merit { background: var(--primary-navy); color: var(--white); }
.text-white { color: var(--white); }
.merit-item h4 { font-size: 1.1rem; margin-bottom: 10px; color: #93c5fd; }
.merit-item p { font-size: 0.9rem; color: #94a3b8; }

/* --- 特長セクション（ジグザグレイアウト） --- */
.feature-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

/* 偶数番目（またはreverseクラス）の左右を反転 */
.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-num {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 10px;
    opacity: 0.5;
}

.feature-heading {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-navy);
}

.feature-check-list {
    margin-top: 20px;
}

.feature-check-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-weight: bold;
}

.feature-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-orange);
}

/* --- 画像ウィンドウ装飾 --- */
.feature-image {
    flex: 1;
}

.window-mock {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.window-header {
    background: #f1f5f9;
    padding: 10px 15px;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid #e2e8f0;
}

.window-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.window-mock img {
    width: 100%;
    height: auto;
    display: block;
    /* 仮の画像がない時のための背景 */
    background: #f8fafc;
    min-height: 250px;
}

/* --- スマホ対応 --- */
@media (max-width: 768px) {
    .feature-item, .feature-item.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }
}

/* --- セミナー --- */
.section-seminar { background: #fff7ed; }
.seminar-card { background: var(--white); border: 2px solid #fed7aa; border-radius: 30px; padding: 60px; text-align: center; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); max-width: 900px; margin: 0 auto; }
.seminar-label { background: var(--accent-orange); color: var(--white); padding: 5px 15px; border-radius: 4px; font-weight: bold; font-size: 14px; }
.seminar-title { font-size: 2.25rem; margin: 25px 0; line-height: 1.3; }
.seminar-info-grid { display: flex; gap: 20px; justify-content: center; margin-bottom: 40px; }
.info-box { background: #f8fafc; padding: 20px 40px; border-radius: 12px; text-align: left; }
.info-label { font-size: 12px; color: var(--text-muted); display: block; }
.info-value { font-size: 1.25rem; font-weight: bold; }
.seminar-note { font-size: 12px; color: var(--text-muted); margin-top: 20px; }

/* --- サポート --- */
.support-item { padding: 30px; text-align: center; }
.border-x { border-left: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0; }

/* --- 価格プランセクション --- */
.section-pricing {
    background-color: var(--white);
}

.section-subtitle {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 50px;
    color: var(--text-muted);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: flex-start;
}

.pricing-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: 0.3s;
    position: relative;
}

/* おすすめプランの強調 */
.pricing-card.recommended {
    border: 2px solid var(--primary-blue);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    transform: scale(1.05);
}

.recommend-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: var(--white);
    padding: 4px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
}

.pricing-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.plan-name {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.plan-target {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.price-display {
    margin-bottom: 30px;
}

.price-label {
    font-size: 14px;
    font-weight: bold;
}

.price-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-navy);
}

.price-unit {
    font-size: 12px;
    color: var(--text-muted);
}

.plan-features {
    text-align: left;
    margin-bottom: 40px;
    list-style: none;
}

.plan-features li {
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px dashed #e2e8f0;
}

.plan-features li::before {
    content: "●";
    color: var(--primary-blue);
    margin-right: 10px;
}

.btn-full {
    width: 100%;
}

.pricing-note {
    margin-top: 50px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .pricing-card.recommended {
        transform: scale(1);
    }
}
/* --- ビジュアルエリアの調整 --- */
.feature-visual {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ロボットのスタイリング */
.robot-container {
    width: 200px; /* ロボットのサイズ調整 */
    z-index: 2;
    margin-bottom: -40px; /* 下のウィンドウと少し重ねる演出 */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.robot-character {
    width: 100%;
    height: auto;
    /* フワフワ浮くようなアニメーション（任意） */
    animation: floating 3s ease-in-out infinite;
}

/* ウィンドウ（操作画面）の調整 */
.small-mock {
    width: 100%;
    max-width: 450px;
    z-index: 1;
}

/* 浮遊アニメーションの設定 */
@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* スマホ対応の微調整 */
@media (max-width: 768px) {
    .robot-container {
        width: 150px;
        margin-bottom: -20px;
    }
}
/* --- フォームセクション --- */
.section-form {
    background-color: var(--bg-slate);
    padding: 100px 0;
}

.contact-form {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    background: #ef4444;
    color: var(--white);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-main);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: #f8faff;
}

.radio-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.radio-group label {
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

.form-agreement {
    text-align: center;
    margin: 40px 0 20px;
}

.form-agreement a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.form-submit {
    text-align: center;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .contact-form {
        padding: 30px 20px;
    }
    .radio-group {
        grid-template-columns: 1fr;
    }
}

/* --- 送信完了メッセージのスタイル --- */
.form-success-message {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #22c55e; /* 緑色 */
    color: white;
    font-size: 40px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.form-success-message h3 {
    color: var(--primary-navy);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.form-success-message p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}

.success-note {
    margin-top: 15px;
    font-size: 12px !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- フッター --- */
.site-footer { background: #f1f5f9; padding: 80px 0; text-align: center; border-top: 1px solid #e2e8f0; }
.footer-title { margin-bottom: 30px; }
.footer-cta { display: flex; justify-content: center; gap: 20px; margin-bottom: 50px; }
.footer-product { font-weight: bold; color: var(--text-muted); margin-bottom: 10px; }
.footer-copy { font-size: 12px; color: #94a3b8; }

/* --- レスポンス対応 --- */
@media (max-width: 1024px) {
    .col-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-nav { display: none; }
    .hero-title { font-size: 2rem; }
    .col-3, .col-4 { grid-template-columns: 1fr; }
    .hero-cta-group, .footer-cta, .seminar-info-grid { flex-direction: column; align-items: center; }
    .btn-xl { width: 100%; }
}
/* --- ハンバーガーボタンのスタイル --- */
.hamburger {
    display: none; /* デスクトップでは隠す */
    position: relative;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-navy);
    transition: all 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { bottom: 0; }

/* ボタンがアクティブな時（×印に変形） */
.hamburger.is-active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* --- スマホ用ナビゲーションのスタイル --- */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* スマホで表示 */
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: -100%; /* 最初は画面の外側に隠す */
        width: 80%;
        height: 100vh;
        background: var(--white);
        box-shadow: -10px 0 20px rgba(0,0,0,0.1);
        padding: 100px 40px;
        flex-direction: column;
        align-items: flex-start;
        transition: all 0.4s ease;
        z-index: 1050;
        display: flex; /* gridやnoneではなくflexで制御 */
    }

    /* メニューが開いている状態 */
    .header-nav.is-active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 30px;
        width: 100%;
        margin-bottom: 40px;
    }

    .nav-links a {
        font-size: 18px;
        display: block;
        width: 100%;
    }

    .header-cta {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .header-cta .btn-sm {
        width: 100%;
        padding: 15px;
    }
}