/* ========================================
   リセット & ベーススタイル
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット */
    --primary-color: #00a0e9;
    --primary-dark: #0088cc;
    --secondary-color: #ff6b6b;
    --success-color: #51cf66;
    --warning-color: #ffd43b;
    --danger-color: #ff6b6b;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', YuGothic, Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   ヘッダー
   ======================================== */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem 1rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.logo {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* ========================================
   メインコンテンツ
   ======================================== */
main {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   イントロセクション
   ======================================== */
.intro-section {
    margin-top: -1rem;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

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

.info-card h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.info-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   注意事項セクション
   ======================================== */
.warning-section {
    margin-top: 1.5rem;
}

.warning-card {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 5px solid var(--danger-color);
}

.warning-icon {
    font-size: 2rem;
    color: var(--danger-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

.warning-card h3 {
    font-size: 1.1rem;
    color: var(--danger-color);
    margin-bottom: 1rem;
    text-align: center;
}

.warning-card ul {
    list-style: none;
}

.warning-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.warning-card li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
}

/* ========================================
   間違った操作例セクション
   ======================================== */
.wrong-examples-section {
    margin: 2rem 0;
}

.wrong-example-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 3px solid #ffe0e0;
    position: relative;
}

.wrong-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.wrong-label i {
    font-size: 1.2rem;
}

.wrong-image {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffcccc;
}

.wrong-image img {
    width: 100%;
    height: auto;
    display: block;
}

.wrong-description {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 1rem;
    background-color: #fff5f5;
    border-radius: 8px;
    border-left: 4px solid var(--danger-color);
}

.wrong-description strong {
    color: var(--danger-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* ========================================
   ステップカード
   ======================================== */
.step-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 160, 233, 0.3);
}

.step-header h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    flex: 1;
}

.step-content {
    padding-left: 0;
}

.step-image {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-image img {
    width: 100%;
    height: auto;
    display: block;
}

.step-description {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.7;
}

.step-description p {
    margin-bottom: 1rem;
}

/* ========================================
   ノート・ハイライト
   ======================================== */
.note {
    background-color: #e7f5ff;
    border-left: 4px solid var(--primary-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

.note i {
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.note span {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.highlight-box {
    background-color: #fff3cd;
    border: 2px solid var(--warning-color);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

.highlight-box i {
    color: #e67700;
    margin-top: 0.2rem;
    font-size: 1.2rem;
}

.highlight-box strong {
    color: #e67700;
}

/* ========================================
   バーコードガイド
   ======================================== */
.barcode-guide {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.barcode-example {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.barcode-example img {
    width: 100%;
    height: auto;
    display: block;
}

.barcode-guide ul {
    list-style: none;
}

.barcode-guide li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.barcode-guide .fa-check {
    color: var(--success-color);
}

.barcode-guide .fa-times {
    color: var(--danger-color);
}

/* ========================================
   支払いステップ
   ======================================== */
.payment-steps {
    background-color: #e7f5ff;
    border-radius: 12px;
    padding: 1rem 1rem 1rem 2rem;
    margin-top: 1rem;
}

.payment-steps ol {
    margin: 0;
    padding-left: 1rem;
}

.payment-steps li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.success-box {
    background: linear-gradient(135deg, #d4f4dd 0%, #b8e6c9 100%);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.success-box i {
    color: var(--success-color);
    font-size: 1.5rem;
}

.success-box span {
    font-weight: 600;
    color: #2b8a3e;
    font-size: 1rem;
}

/* ========================================
   FAQ セクション
   ======================================== */
.faq-list {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.3s ease;
    user-select: none;
}

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

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.faq-question span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    flex: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background-color: #f8f9fa;
}

.faq-answer p,
.faq-answer ul {
    padding: 0 1.5rem 1rem 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-answer ul {
    list-style-position: inside;
    padding-left: 2rem;
}

.faq-answer li {
    padding: 0.25rem 0;
}

.faq-item.active .faq-question i {
    transform: rotate(90deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 0.5rem;
}

/* ========================================
   サマリーセクション
   ======================================== */
.summary-card {
    background: linear-gradient(135deg, #fff9e6 0%, #ffedd5 100%);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    border: 2px solid #ffd43b;
}

.summary-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.summary-card h3 i {
    color: #f59f00;
}

.summary-list {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 1.5rem 1.5rem 2.5rem;
    margin-bottom: 1rem;
}

.summary-list li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.summary-note {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
}

.summary-note i {
    color: #f59f00;
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.summary-note p {
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ========================================
   フッター
   ======================================== */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-content p i {
    margin-right: 0.3rem;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 1rem;
}

/* ========================================
   レスポンシブ対応
   ======================================== */
@media (max-width: 375px) {
    header h1 {
        font-size: 1.3rem;
    }

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

    .step-header h3 {
        font-size: 1.1rem;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* ========================================
   アニメーション
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }
.step-card:nth-child(4) { animation-delay: 0.4s; }
.step-card:nth-child(5) { animation-delay: 0.5s; }
.step-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   スクロール効果
   ======================================== */
html {
    scroll-behavior: smooth;
}