/* ==========================================================================
   CSS Variables & Resets
   ========================================================================== */
:root {
    /* Color Palette */
    --primary: #1e3a8a;
    /* Deep Blue bg-blue-900 */
    --primary-light: #3b82f6;
    /* Blue-500 */
    --secondary: #0f172a;
    /* Slate 900 */
    --accent: #f97316;
    /* Orange 500 */
    --accent-hover: #ea580c;
    /* Orange 600 */
    --text-main: #334155;
    /* Slate 700 */
    --text-muted: #64748b;
    /* Slate 500 */
    --bg-light: #f8fafc;
    /* Slate 50 */
    --bg-white: #ffffff;
    --border: #e2e8f0;
    /* Slate 200 */

    /* Typography */
    --font-family: 'Noto Sans JP', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.8;

    /* Spacing */
    --space-sm: 10px;
    --space-md: 20px;
    --space-lg: 40px;
    --space-xl: 80px;
    --space-xxl: 120px;

    /* Borders & Shadows */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-main);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: var(--primary-light);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.text-white {
    color: white;
}

.color-primary {
    color: var(--primary);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--secondary);
}

.bg-accent {
    background-color: var(--primary);
}

.bg-white {
    background-color: var(--bg-white);
}

.font-bold {
    font-weight: 700;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.w-full {
    width: 100%;
}

.max-w-800 {
    max-width: 800px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: var(--secondary);
}

.bg-dark .section-title,
.bg-accent .section-title {
    color: white;
}

section {
    padding: var(--space-xl) 0;
}

/* Hide on Mobile / PC */
.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .sp-only {
        display: block;
    }

    .pc-only {
        display: none;
    }

    section {
        padding: var(--space-lg) 0;
    }

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
    border-radius: var(--radius-sm);
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background-color: var(--primary);
    color: white;
}

.btn-secondary:hover {
    background-color: #1e40af;
    color: white;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: var(--space-xl) 0 var(--space-xxl);
    background: linear-gradient(135deg, #f0f4f8 0%, #e0e7ff 100%);
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.3;
    color: var(--secondary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: var(--primary);
    display: inline-block;
    margin-bottom: 8px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    position: relative;
    max-width: 500px;
}

.main-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.abstract-shape {
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
    background-color: var(--primary);
    border-radius: var(--radius-lg);
    z-index: 1;
    opacity: 0.1;
    transform: rotate(3deg);
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

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

/* ==========================================================================
   Intro Section
   ========================================================================== */
.intro-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.speech-bubbles {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    align-items: center;
}

.bubble {
    background-color: var(--bg-light);
    padding: 16px 24px;
    border-radius: 20px;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    box-shadow: var(--shadow-sm);
    max-width: 600px;
    text-align: center;
    border: 1px solid var(--border);
}

.intro-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.check-list {
    margin: 24px 0;
    background-color: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-md);
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.check-list li:last-child {
    margin-bottom: 0;
}

.check-list i {
    color: var(--primary);
    font-size: 1.5em;
}

.strong-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    margin-top: 32px;
    padding: 20px;
    border-left: 4px solid var(--accent);
    background-color: rgba(249, 115, 22, 0.05);
}

/* ==========================================================================
   Suitable For
   ========================================================================== */
.section-header {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
    background: var(--bg-light);
    padding: 15px;
    border-radius: 50%;
}

.card p {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary);
}

/* ==========================================================================
   Two Column Layouts (Philosophy, Difference)
   ========================================================================== */
.two-column {
    display: flex;
    gap: 50px;
}

.align-center {
    align-items: center;
}

.col-text,
.col-image {
    flex: 1;
}

.col-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.rounded-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.bad-list {
    margin-top: 20px;
}

.bad-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-weight: 500;
}

.bad-list li::before {
    content: "✕";
    position: absolute;
    left: 0;
    top: 0;
    color: #ef4444;
    font-weight: bold;
}

@media (max-width: 768px) {
    .two-column {
        flex-direction: column;
    }
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background-color: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 0 0 5px white;
}

.step-content {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.step-content h3 {
    color: var(--secondary);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

@media (max-width: 600px) {
    .timeline::before {
        left: 20px;
    }

    .step-num {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .timeline-item {
        padding-left: 60px;
        margin-bottom: 30px;
    }
}

/* ==========================================================================
   Features
   ========================================================================== */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-box {
    display: flex;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateX(10px);
}

.feature-box .num {
    background-color: var(--primary);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.highlight-box .num {
    background-color: var(--accent);
}

.feature-box .content {
    padding: 30px;
}

.feature-box h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--secondary);
}

@media (max-width: 600px) {
    .feature-box {
        flex-direction: column;
    }

    .feature-box .num {
        padding: 15px;
        min-width: auto;
        font-size: 1.5rem;
    }

    .feature-box:hover {
        transform: translateY(-5px) translateX(0);
    }
}

/* ==========================================================================
   Target Audience Tags
   ========================================================================== */
.target-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
}

/* ==========================================================================
   One Liners Carousel
   ========================================================================== */
.one-liners {
    padding: 40px 0;
    overflow: hidden;
}

.carousel-text {
    position: relative;
    height: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

.carousel-text p {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
}

.cta-subtitle {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.cta-main-box {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 50px;
    max-width: 600px;
    margin: 0 auto;
    border-top: 5px solid var(--accent);
}

.cta-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.cta-lead {
    margin-bottom: 30px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
}

@media (max-width: 600px) {
    .cta-main-box {
        padding: 30px 20px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--secondary);
    color: var(--text-muted);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-company a {
    color: white;
}

.footer-company a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.pricing-group {
    margin-bottom: 60px;
}

.pricing-group-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* 制作プランカード */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.pricing-card {
    position: relative;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.pricing-card-featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.12);
}

.pricing-badge {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 6px;
    width: fit-content;
}

.pricing-card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pricing-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}

.pricing-price {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.pricing-price-sm {
    font-size: 1.5rem;
}

.pricing-unit {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 4px;
}

.pricing-desc {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.75;
}

/* 管理費説明ボックス */
.pricing-note-box {
    background: linear-gradient(135deg, #eff6ff 0%, #fff7ed 100%);
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    margin-bottom: 52px;
}

.pricing-note-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.pricing-note-icon {
    flex-shrink: 0;
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 2px;
}

.pricing-note-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.pricing-note-text p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 10px;
}

.pricing-note-text p:last-child {
    margin-bottom: 0;
}

/* 運用・管理サポートカード */
.pricing-ops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.pricing-ops-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.pricing-ops-card-accent {
    border-color: var(--accent);
    background: linear-gradient(135deg, white 0%, #fff7ed 100%);
}

.pricing-ops-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.pricing-ops-card-accent .pricing-ops-icon {
    color: var(--accent);
}

.pricing-ops-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 6px;
}

.pricing-ops-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.pricing-ops-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.pricing-ops-card-accent .pricing-ops-price {
    color: var(--accent);
}

.pricing-ops-price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 2px;
}

@media (max-width: 768px) {
    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .pricing-ops-grid {
        grid-template-columns: 1fr;
    }

    .pricing-note-inner {
        flex-direction: column;
        gap: 12px;
    }

    .pricing-note-box {
        padding: 20px;
    }
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

/* ハニーポット：人間には見えない */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}

.contact-form {
    margin-top: 28px;
    text-align: left;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
}

.required {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--bg-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.7;
}

/* Turnstile ウィジェット */
.cf-turnstile {
    margin: 16px 0;
}

/* 送信結果メッセージ */
.form-message {
    display: none;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.form-message--success {
    display: block;
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.form-message--error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* プライバシー注記 */
.form-privacy {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

/* CTAボックス: フォーム追加に合わせて幅を広げる */
.cta-main-box {
    max-width: 760px;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}