/* ==========================================
   XM出金ガイド - モバイルファーストCSS
   ========================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

ul, ol {
    list-style: none;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.4;
    color: #222;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #0066cc;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #333;
}

h4 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
    color: #444;
}

p {
    margin-bottom: 1rem;
}

strong {
    font-weight: 700;
    color: #222;
}

/* ---------- Utility ---------- */
.sp-only {
    display: inline;
}

.pc-only {
    display: none;
}

/* ---------- Section ---------- */
.section {
    padding: 48px 0;
}

.section-alt {
    background-color: #f8f9fa;
}

.section-lead {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

/* ---------- Hero (First View) ---------- */
.hero {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: #fff;
    padding: 60px 0 50px;
    text-align: center;
}

.hero h1 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.hero-sub {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #1a365d;
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    padding: 16px 32px;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    opacity: 1;
}

/* ---------- Boxes ---------- */
.box {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.box-green {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.box-gray {
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
}

.box-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid currentColor;
}

.box-green .box-title {
    color: #16a34a;
    border-color: #86efac;
}

.box-gray .box-title {
    color: #64748b;
    border-color: #cbd5e1;
}

/* ---------- Lists ---------- */
.check-list li,
.cross-list li,
.normal-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 700;
}

.cross-list li::before {
    content: "△";
    position: absolute;
    left: 0;
    color: #94a3b8;
    font-weight: 700;
}

.normal-list li::before {
    content: "•";
    position: absolute;
    left: 0.25rem;
    color: #0066cc;
    font-weight: 700;
}

.summary-list {
    background: #f8f9fa;
    padding: 20px 20px 20px 24px;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.summary-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.summary-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: 700;
}

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

/* ---------- Note ---------- */
.note {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 1rem;
}

/* ---------- Content Block ---------- */
.content-block {
    background: #fff;
    padding: 24px 20px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.content-block h3 {
    color: #1a365d;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1rem;
}

/* ---------- Point Box ---------- */
.point-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #0066cc;
    padding: 16px 20px;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.point-title {
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.point-box p:last-child {
    margin-bottom: 0;
}

/* ---------- Warning Box ---------- */
.warning-box {
    background: #fff7ed;
    border-left: 4px solid #f97316;
    padding: 16px 20px;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.warning-title {
    font-weight: 700;
    color: #ea580c;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.warning-box p:last-child {
    margin-bottom: 0;
}

/* ---------- Criteria List ---------- */
.criteria-list {
    margin: 2rem 0;
}

.criteria-item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.criteria-item h3 {
    color: #1a365d;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid #0066cc;
}

.criteria-item p {
    margin-bottom: 0;
    color: #555;
}

/* ---------- Comparison Flow ---------- */
.comparison-flow {
    margin: 2rem 0;
}

.flow-item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    position: relative;
}

.flow-item::before {
    content: "";
    position: absolute;
    left: 20px;
    bottom: -16px;
    width: 2px;
    height: 16px;
    background: #cbd5e1;
}

.flow-item:last-child::before {
    display: none;
}

.flow-item h3 {
    font-size: 1rem;
    color: #334155;
    margin-bottom: 0.5rem;
}

.flow-item p {
    margin-bottom: 0;
    color: #64748b;
    font-size: 0.95rem;
}

/* ---------- Steps ---------- */
.steps {
    margin: 2rem 0;
}

.step {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    position: relative;
    padding-left: 20px;
}

.step-num {
    display: inline-block;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step p {
    margin-bottom: 0;
    color: #555;
}

/* ---------- CTA Box ---------- */
.cta-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    margin-top: 2rem;
}

.cta-lead {
    font-size: 1rem;
    color: #334155;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.cta-note {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 1rem;
    margin-bottom: 0;
}

.cta-final {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    border: none;
}

.cta-final .cta-note {
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- FAQ ---------- */
.faq-list {
    margin-top: 1.5rem;
}

.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-q {
    display: block;
    width: 100%;
    padding: 16px 48px 16px 20px;
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    position: relative;
    list-style: none;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q::before {
    content: "Q.";
    color: #0066cc;
    margin-right: 0.5rem;
}

.faq-q::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-q::after {
    content: "−";
}

.faq-a {
    padding: 0 20px 20px;
    color: #555;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    margin-top: 0;
}

.faq-a p {
    margin-bottom: 0;
}

/* ---------- Summary ---------- */
.summary-content {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* ---------- Disclaimer ---------- */
.section-disclaimer {
    background: #f1f5f9;
    padding: 32px 0;
}

.section-disclaimer h2 {
    font-size: 1.1rem;
    border-bottom: none;
    margin-bottom: 1rem;
    color: #64748b;
}

.disclaimer-content {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.7;
}

.disclaimer-content ul {
    padding-left: 0;
}

.disclaimer-content li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.disclaimer-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #94a3b8;
}

/* ---------- Footer ---------- */
.footer {
    background: #1a365d;
    color: rgba(255, 255, 255, 0.8);
    padding: 32px 0;
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

/* ==========================================
   Tablet & Desktop (min-width: 768px)
   ========================================== */
@media (min-width: 768px) {
    html {
        font-size: 17px;
    }

    .container {
        padding: 0 24px;
    }

    .sp-only {
        display: none;
    }

    .pc-only {
        display: inline;
    }

    .section {
        padding: 64px 0;
    }

    .hero {
        padding: 80px 0 70px;
    }

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

    .hero-sub {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.35rem;
    }

    .box {
        padding: 28px;
    }

    .content-block {
        padding: 32px;
    }

    .criteria-item,
    .flow-item,
    .step {
        padding: 24px;
    }

    .cta-box {
        padding: 40px 32px;
    }

    .faq-q {
        padding: 20px 56px 20px 24px;
    }

    .faq-a {
        padding: 0 24px 24px;
        padding-top: 20px;
    }

    .summary-content {
        padding: 32px;
    }
}

/* ==========================================
   Large Desktop (min-width: 1024px)
   ========================================== */
@media (min-width: 1024px) {
    .container {
        max-width: 800px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }
}

/* ==========================================
   Accessibility & Performance
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
summary:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .btn {
        border: 1px solid #333;
    }

    .section {
        page-break-inside: avoid;
    }
}
