:root {
    --primary: #406aff;
    --primary-dark: #2c4ebf;
    --text: #1d2433;
    --text-light: #6b7280;
    --bg: #f8f9fb;
    --white: #ffffff;
    --max-width: 1200px;
    --font-heading: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    --font-body: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 40px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 15px rgba(64, 106, 255, 0.3);
    border: 2px solid transparent;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 106, 255, 0.4);
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.btn.secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('../img/ai_service_hero.png') no-repeat center center/cover;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

/* Section Common */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
}

/* Problem Section */
.problem {
    background-color: var(--white);
}

.problem-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.problem-item {
    background: var(--bg);
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    transition: transform 0.3s ease;
}

.problem-item:hover {
    transform: translateY(-5px);
}

.problem-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.problem-highlight {
    background: #eef2ff;
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin-top: 40px;
    border-radius: 4px;
    font-weight: 500;
}

/* Stance */
.stance {
    background-color: var(--bg);
    text-align: center;
}

.stance p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
}

.stance-message {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 30px;
}

/* Service Overview */
.service-overview {
    background-color: var(--white);
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.service-steps {
    display: grid;
    gap: 30px;
}

.step-card {
    background: var(--white);
    border: 1px solid #e1e4e8;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary);
}

.step-badge {
    background: var(--primary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

.step-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 15px;
}

.diagram-img {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-radius: 20px;
    transition: transform 0.3s;
}

/* Pick-up Service */
.service-pickup {
    background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
    grid-column: 1 / -1; /* Cross full width */
    margin-bottom: 20px;
    display: flex; /* Horizontal layout for pickup */
    flex-wrap: wrap;
    gap: 30px;
}

.service-pickup .step-badge {
    background: #ff4757; /* Attention color */
}

.pickup-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff4757;
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    border-bottom-left-radius: 10px;
}

/* Diagram in Pickup */
.service-pickup .diagram-img {
    max-width: 100%;
    height: auto;
}

/* Responsive adjustment for pickup */
@media (min-width: 769px) {
    .service-pickup {
        align-items: center;
        padding: 40px;
    }
    .service-pickup-content {
        flex: 1;
    }
    .service-pickup-image {
        flex: 1;
        text-align: center;
    }
}

.diagram-img:hover {
    transform: scale(1.02);
}

/* Plans */
.contact-section { /* Reusing for plans-like visual if needed or standard table */
    background: var(--bg);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 40px;
}

.pricing-table th, .pricing-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.pricing-table th {
    background: #f4f6f9;
    font-weight: 700;
}

/* About / Works */
.about-section {
    background: var(--white);
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--bg);
    padding: 40px;
    border-radius: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.profile-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.profile-text h3 {
    margin-bottom: 20px;
}

/* Contact */
.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(64, 106, 255, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: #111;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

footer p {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-container {
        flex-direction: column;
        text-align: center;
    }
    
    .pricing-table {
        display: block;
        overflow-x: auto;
    }
}
