/* ===========================
   変数定義
   =========================== */
:root {
    --primary: #0052CC;
    --primary-dark: #003D99;
    --primary-light: #0066FF;
    --secondary: #E3F2FD;
    --accent: #00A3FF;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-white: #FFFFFF;
    --bg-light: #F8FBFF;
    --bg-gray: #F5F7FA;
    --border: #E0E6ED;
    --shadow-sm: 0 2px 8px rgba(0, 82, 204, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 82, 204, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 82, 204, 0.16);
}

/* ===========================
   リセット & 基本設定
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Sans", sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    background: var(--bg-white);
}

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

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

/* ===========================
   コンテナ
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   ヘッダー
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.6s ease;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

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

.nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

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

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

.btn-header {
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 600;
}

.btn-header::after {
    display: none;
}

.btn-header:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===========================
   ヒーローセクション
   =========================== */
.hero {
    position: relative;
    padding: 180px 0 120px;
    overflow: hidden;
    background: linear-gradient(135deg, #F8FBFF 0%, #E3F2FD 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 82, 204, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 163, 255, 0.06) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: white;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease both;
}

.title-line:nth-child(1) {
    animation-delay: 0.3s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease 0.5s both;
}

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

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.7s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 36px;
    background: var(--primary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    background: white;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.btn-phone:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.title-sub {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title h2,
.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
}

/* ===========================
   課題セクション
   =========================== */
.problems {
    background: var(--bg-white);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.problem-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    transition: all 0.4s ease;
}

.problem-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    margin-bottom: 24px;
}

.problem-card h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.problem-card p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-gray);
}

/* ===========================
   ソリューションセクション
   =========================== */
.solution {
    background: var(--bg-light);
}

.solution-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 24px;
    padding: 60px;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.solution-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.solution-main {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.solution-main h3 {
    font-size: 36px;
    font-weight: 800;
    color: white;
    line-height: 1.4;
    margin-bottom: 20px;
}

.solution-main p {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.process-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}

.process-step {
    background: white;
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

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

.process-number {
    position: absolute;
    top: -12px;
    left: 24px;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.process-icon {
    margin: 0 auto 24px;
}

.process-step h4 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.process-step p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-gray);
}

.process-arrow {
    font-size: 32px;
    color: var(--primary);
    font-weight: 300;
}

/* ===========================
   特徴セクション
   =========================== */
.features {
    background: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 48px 32px;
    position: relative;
    transition: all 0.4s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

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

.feature-number {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 24px;
    opacity: 0.5;
}

.feature-icon {
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 16px;
    color: var(--text-dark);
}

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

.feature-detail {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.detail-badge {
    display: inline-block;
    padding: 6px 14px;
    background: white;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--primary);
}

/* ===========================
   料金セクション
   =========================== */
.pricing {
    background: var(--bg-light);
}

.pricing-box {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}

.pricing-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 48px;
    text-align: center;
    color: white;
}

.pricing-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.pricing-header p {
    font-size: 16px;
    opacity: 0.9;
}

.pricing-content {
    padding: 60px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.price-main {
    text-align: center;
}

.price-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 16px;
}

.currency {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-gray);
}

.amount {
    font-size: 72px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.unit {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-gray);
}

.price-note {
    font-size: 14px;
    color: var(--text-gray);
}

.price-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.price-include h4,
.price-spec h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.price-include ul {
    list-style: none;
}

.price-include li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.price-spec p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

.pricing-cta {
    padding: 0 48px 48px;
    text-align: center;
}

.pricing-cta .btn-primary {
    font-size: 18px;
    padding: 20px 60px;
}

/* ===========================
   フローセクション
   =========================== */
.flow {
    background: white;
}

.flow-steps {
    display: grid;
    gap: 60px;
}

.flow-step {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.flow-step:nth-child(even) {
    grid-template-columns: 1fr 300px;
}

.flow-step:nth-child(even) .step-header {
    order: 2;
}

.flow-step:nth-child(even) .step-content {
    order: 1;
}

.step-header {
    position: sticky;
    top: 120px;
}

.step-number {
    display: inline-block;
    padding: 8px 20px;
    background: var(--secondary);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    border-radius: 24px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.step-header h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.4;
}

.step-content {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    gap: 32px;
    align-items: center;
}

.step-image {
    flex-shrink: 0;
}

.step-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
}

/* ===========================
   FAQセクション
   =========================== */
.faq {
    background: var(--bg-light);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 32px;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.6;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 32px 28px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-gray);
}

/* ===========================
   CTAセクション
   =========================== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.btn-cta-phone {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 40px;
    background: white;
    color: var(--primary);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

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

.phone-label {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.phone-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.phone-hours {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 4px;
}

.btn-cta-form {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 24px 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid white;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta-form:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-4px);
}

/* ===========================
   お問い合わせフォーム
   =========================== */
.contact-form {
    background: white;
}

.form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 48px;
    border-radius: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

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

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

.required {
    color: #FF4444;
    font-size: 12px;
    margin-left: 4px;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-submit {
    text-align: center;
    padding-top: 16px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 60px;
    background: var(--primary);
    color: white;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

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

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

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

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

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

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

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ===========================
   レスポンシブ対応
   =========================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .feature-grid,
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .process-flow {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .process-arrow {
        display: none;
    }
    
    .pricing-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .flow-step {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .flow-step:nth-child(even) {
        grid-template-columns: 1fr;
    }
    
    .flow-step:nth-child(even) .step-header,
    .flow-step:nth-child(even) .step-content {
        order: initial;
    }
    
    .step-header {
        position: static;
    }
    
    .step-content {
        flex-direction: column;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
