/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本スタイル */
:root {
    --primary-color: #2D8C3C;
    --primary-dark: #237a30;
    --secondary-color: #34d399;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ヘッダー */
.header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 2rem;
}

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

.nav a:hover {
    color: var(--primary-color);
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

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

.btn-secondary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

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

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* セクション */
section {
    padding: 4rem 0;
}

/* 利用規約・プライバシーポリシー用のセクションスタイルをリセット */
main.container section {
    padding: 0;
    margin-bottom: 1.5rem;
}

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

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

.problem-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.problem-item {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: block;
}

.problem-item p {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* 機能紹介セクション */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: block;
}

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

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

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

.pricing-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    position: relative;
}

.pricing-card-featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--bg-light);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pricing-badge-featured {
    background-color: var(--primary-color);
    color: white;
}

.pricing-price {
    margin-bottom: 2rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.price-note {
    font-size: 1rem;
    color: var(--text-light);
    margin-left: 0.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-condition {
    margin-top: 2rem;
}

.condition-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.condition-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.condition-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
    line-height: 1.6;
}

/* 購入セクション */
.purchase-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.purchase-info {
    background-color: white;
    padding: 2.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.purchase-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.purchase-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.purchase-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.required {
    color: #ef4444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

.affiliate-box {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.affiliate-box h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.affiliate-box p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.affiliate-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
    line-height: 1.6;
}

/* 移行全体の流れセクション */
.migration-flow {
    background-color: white;
    padding: 4rem 0;
}

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

.flow-step {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.flow-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.flow-step h3 {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.flow-step p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.flow-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

/* 操作画面セクション */
.screens {
    background-color: var(--bg-light);
}

.screens-subtitle {
    max-width: 760px;
    margin: -1.5rem auto 2.25rem;
    text-align: center;
    color: var(--text-light);
}

.screens-mobile-hint {
    display: none;
}

.screens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.screen-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.screen-card a {
    display: block;
    line-height: 0;
    background-color: #f3f4f6;
}

.screen-card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.25s ease;
}

.screen-card a:hover img {
    transform: scale(1.015);
}

.screen-card figcaption {
    padding: 0.9rem 1rem 1rem;
}

.screen-card figcaption strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.screen-card figcaption span {
    display: block;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* セキュリティ・信頼性セクション */
.security {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

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

.security-item {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.security-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

.security-note {
    text-align: center;
    margin-top: 2rem;
}

.security-note a {
    color: var(--primary-color);
    text-decoration: none;
}

.security-note a:hover {
    text-decoration: underline;
}

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

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

.faq-item {
    background-color: white;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question,
.faq-answer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
}

.faq-question {
    background-color: var(--bg-light);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f3f4f6;
}

.faq-question span,
.faq-answer span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.faq-answer span {
    background-color: var(--secondary-color);
}

.faq-question p,
.faq-answer p {
    flex: 1;
    margin: 0;
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.8;
}

/* フッター */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-note a {
    color: white;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-note a:hover {
    text-decoration: underline;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

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

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

    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pricing-card-featured {
        transform: none;
    }

    .purchase-content {
        grid-template-columns: 1fr;
    }

    .screens-subtitle {
        margin-top: -1rem;
        margin-bottom: 1rem;
    }

    .screens-mobile-hint {
        display: block;
        margin: 0 auto 0.9rem;
        text-align: center;
        font-size: 0.85rem;
        color: var(--text-light);
    }

    .screens-grid {
        display: flex;
        gap: 0.9rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding: 0.2rem 0.1rem 0.8rem;
    }

    .screens-grid::-webkit-scrollbar {
        height: 6px;
    }

    .screens-grid::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 999px;
    }

    .screen-card {
        flex: 0 0 86%;
        min-width: 86%;
        scroll-snap-align: start;
    }

    .screen-card a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.35rem;
    }

    .screen-card img {
        height: auto;
        max-height: min(62vh, 420px);
        object-fit: contain;
        object-position: center top;
    }

    .sp-only {
        display: block;
    }
}

@media (min-width: 769px) {
    .sp-only {
        display: none;
    }
}
