/* ========================================
   グローバルスタイル
======================================== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    font-weight: 600;
    line-height: 1.4;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ========================================
   ヘッダー
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

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

.nav-link {
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

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

.nav-link.cta-button {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
}

.nav-link.cta-button::after {
    display: none;
}

.nav-link.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   ヒーローセクション
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    margin-top: 72px;
}

.hero-overlay {
    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 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,133.3C672,117,768,107,864,122.7C960,139,1056,181,1152,181.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 80px 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #667eea;
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.hero-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 60px;
}

.hero-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-feature-item i {
    font-size: 36px;
    margin-bottom: 8px;
}

.hero-feature-item span {
    font-size: 16px;
    font-weight: 500;
}

/* ========================================
   セクション共通スタイル
======================================== */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 60px;
}

/* ========================================
   課題提起セクション
======================================== */
.problem-section {
    background: var(--bg-light);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.problem-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.problem-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 50%;
    color: white;
    font-size: 36px;
}

.problem-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

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

/* ========================================
   ソリューションセクション
======================================== */
.solution-section {
    background: white;
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.solution-description {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.9;
}

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

.solution-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--border-color);
}

.solution-list li:last-child {
    border-bottom: none;
}

.solution-list i {
    color: #667eea;
    font-size: 24px;
}

.solution-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.solution-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ========================================
   特徴セクション
======================================== */
.features-section {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: white;
    padding: 48px 36px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

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

.feature-card.highlight {
    background: var(--gradient-primary);
    color: white;
}

.feature-card.highlight h3,
.feature-card.highlight p {
    color: white;
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 16px;
    color: white;
    font-size: 32px;
    margin-bottom: 24px;
}

.feature-card.highlight .feature-icon {
    background: rgba(255,255,255,0.2);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

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

.feature-benefits {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.benefit-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #667eea15;
    color: #667eea;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.feature-card.highlight .benefit-tag {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* ========================================
   AIセクション
======================================== */
.ai-section {
    background: white;
}

.ai-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.ai-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.ai-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.ai-description {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.9;
}

.ai-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.ai-feature-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    color: white;
    font-size: 24px;
}

.ai-feature-item h4 {
    font-size: 19px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.ai-feature-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ========================================
   料金プランセクション
======================================== */
.plans-section {
    background: white;
}

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

.plan-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #667eea;
}

.plan-card.popular {
    border-color: #667eea;
    background: linear-gradient(180deg, #667eea08 0%, white 100%);
}

.plan-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.plan-header h3 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.plan-tag {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.plan-price {
    margin: 32px 0;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.price-amount {
    font-size: 42px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    display: block;
}

.price-period {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 8px;
}

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

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
}

.plan-features i {
    color: #667eea;
    font-size: 18px;
}

.plan-button {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   サービス概要セクション
======================================== */
.about-section {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.about-text p {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #667eea;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
}

/* ========================================
   動作環境セクション
======================================== */
.requirements-section {
    background: white;
}

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

.requirement-item {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.requirement-item:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.requirement-item i {
    font-size: 42px;
    color: #667eea;
    margin-bottom: 16px;
}

.requirement-item h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.requirement-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* ========================================
   CTAセクション
======================================== */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.cta-title {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 40px;
}

.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #667eea;
    padding: 20px 56px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.cta-button-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

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

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

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
    opacity: 0.7;
}

/* ========================================
   モーダル
======================================== */
.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);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 40px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 26px;
    color: var(--primary-color);
}

.close-button {
    font-size: 32px;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-button:hover {
    background: var(--bg-light);
    color: var(--text-color);
}

/* ========================================
   フォーム
======================================== */
.contact-form {
    padding: 40px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.required {
    color: var(--accent-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.submit-button {
    flex: 1;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cancel-button {
    flex: 1;
    padding: 16px;
    background: var(--bg-light);
    color: var(--text-color);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-button:hover {
    background: var(--border-color);
}

/* ========================================
   法的ページ
======================================== */
.legal-page {
    padding-top: 120px;
    padding-bottom: 80px;
    background: var(--bg-light);
}

.legal-page .container {
    max-width: 900px;
    background: white;
    padding: 60px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.page-title {
    font-size: 38px;
    color: var(--primary-color);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 3px solid #667eea;
}

.legal-intro {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 48px;
}

.legal-section {
    margin-bottom: 48px;
}

.legal-section h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.legal-section h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin: 24px 0 16px;
}

.legal-section p {
    margin-bottom: 16px;
    line-height: 1.9;
    color: var(--text-color);
}

.legal-section ul,
.legal-section ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.legal-section li {
    margin-bottom: 12px;
    line-height: 1.9;
    color: var(--text-color);
}

.legal-section ul ul,
.legal-section ol ol {
    margin-top: 12px;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.price-table th,
.price-table td {
    padding: 16px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.price-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--primary-color);
}

.requirements-list p {
    margin-bottom: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.requirements-list p:last-child {
    border-bottom: none;
}

.note {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 8px;
}

.contact-info {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
    margin-top: 20px;
}

.contact-info p {
    margin-bottom: 8px;
}

.legal-footer {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.legal-footer p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid #667eea;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   レスポンシブデザイン
======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 24px;
    }
    
    .nav {
        display: none;
    }
    
    .solution-content,
    .ai-content,
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .legal-page .container {
        padding: 30px 20px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .form-actions {
        flex-direction: column;
    }
}