/* ========================================
   リセットとベース設定
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f4c75;
    --accent-light: #3282b8;
    --text-dark: #1a1a2e;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --gold: #d4af37;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

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

/* ========================================
   ヘッダー
   ======================================== */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 2px;
}

.logo a {
    text-decoration: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--accent-light);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-light);
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.btn-contact-nav {
    background: var(--accent-color);
    color: var(--white) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-contact-nav:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-contact-nav::after {
    display: none;
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
    background: linear-gradient(135deg, rgba(15, 76, 117, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%),
                url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1600&q=80') center/cover;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 76, 117, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 0;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ボタン
   ======================================== */
.btn-primary {
    background: var(--gold);
    color: var(--text-dark);
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
    background: #f0c547;
}

/* ========================================
   特徴セクション
   ======================================== */
.features {
    padding: 6rem 0;
    background: var(--white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   システム詳細セクション
   ======================================== */
.system-details {
    padding: 6rem 0;
    background: var(--bg-light);
}

.details-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.details-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.details-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.details-text p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.details-list {
    list-style: none;
}

.details-list li {
    padding: 0.8rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.details-list i {
    color: var(--accent-light);
    font-size: 1.2rem;
}

/* ========================================
   AIコンサルティングセクション
   ======================================== */
.ai-consulting {
    padding: 6rem 0;
    background: var(--white);
}

.consulting-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.consulting-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.consulting-text p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.consulting-list {
    list-style: none;
}

.consulting-list li {
    padding: 0.8rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.consulting-list i {
    color: var(--accent-light);
    font-size: 1.2rem;
}

.consulting-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* ========================================
   導入事例セクション
   ======================================== */
.case-study {
    padding: 6rem 0;
    background: var(--bg-light);
}

.case-image {
    margin: 3rem 0;
}

.case-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.case-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.benefit-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}

.benefit-item h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.benefit-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-light);
    margin: 0;
}

/* ========================================
   料金プラン
   ======================================== */
.pricing {
    padding: 6rem 0;
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.pricing-card.featured {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: var(--white);
    transform: scale(1.05);
}

.pricing-card.featured h3,
.pricing-card.featured .plan-price {
    color: var(--white);
}

.pricing-card.featured .plan-features li {
    color: rgba(255, 255, 255, 0.9);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--gold);
    color: var(--text-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.plan-name {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
}

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

.plan-features li {
    padding: 0.8rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pricing-card.featured .plan-features li i {
    color: var(--gold);
}

.plan-features i {
    color: var(--accent-light);
}

.btn-plan {
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-plan:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.pricing-card.featured .btn-plan {
    background: var(--gold);
    color: var(--text-dark);
}

.pricing-card.featured .btn-plan:hover {
    background: #f0c547;
}

/* ========================================
   動作環境
   ======================================== */
.requirements {
    padding: 6rem 0;
    background: var(--bg-light);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.req-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.req-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.req-item i {
    font-size: 2.5rem;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.req-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.req-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========================================
   CTA（コールトゥアクション）
   ======================================== */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    text-align: center;
    color: var(--white);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--accent-light);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   モーダル
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 3rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: var(--text-light);
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-dark);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* ========================================
   フォーム
   ======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-light);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ========================================
   法的ページ
   ======================================== */
.legal-page {
    padding: 4rem 0;
    background: var(--bg-light);
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.update-date {
    color: var(--text-light);
    font-size: 0.95rem;
}

.legal-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-light);
}

.legal-section h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
}

.text-content {
    color: var(--text-light);
    line-height: 1.9;
}

.text-content p {
    margin-bottom: 1rem;
}

.text-content ul,
.text-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.text-content li {
    margin-bottom: 0.5rem;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

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

.info-table th {
    background: var(--bg-light);
    color: var(--text-dark);
    font-weight: 600;
    width: 30%;
}

.info-table td {
    color: var(--text-light);
}

.note {
    background: #fff9e6;
    border-left: 4px solid var(--gold);
    padding: 1rem;
    margin: 1rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.contact-box {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.contact-box p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.back-to-top {
    text-align: center;
    margin-top: 3rem;
}

.btn-back {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ========================================
   レスポンシブデザイン
   ======================================== */
@media (max-width: 768px) {
    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .details-content,
    .consulting-content {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .pricing-grid,
    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
    }

    .info-table th,
    .info-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}