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

:root {
    /* Amazonカラー */
    --amazon-orange: #FF9900;
    --amazon-dark: #131921;
    --amazon-light: #232F3E;
    --amazon-blue: #146EB4;
    --amazon-yellow: #FEBD69;
    
    /* その他のカラー */
    --white: #FFFFFF;
    --light-gray: #F3F3F3;
    --gray: #DDDDDD;
    --text-dark: #111111;
    --text-gray: #565959;
    --success: #067D62;
    --warning: #F08804;
    --border-radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--light-gray);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
    background: linear-gradient(135deg, var(--amazon-dark) 0%, var(--amazon-light) 100%);
    color: var(--white);
    padding: 20px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.amazon-logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--amazon-orange);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--amazon-yellow);
    opacity: 0.95;
}

/* ========================================
   メインコンテンツ
   ======================================== */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

/* ========================================
   イントロセクション
   ======================================== */
.intro-section {
    margin-bottom: 30px;
}

.intro-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--amazon-orange);
}

.intro-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--amazon-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.intro-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========================================
   ステップセクション
   ======================================== */
.steps-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--amazon-dark);
    margin-bottom: 20px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--amazon-orange), var(--amazon-yellow));
    border-radius: var(--border-radius);
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.step-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.step-header {
    margin-bottom: 16px;
}

.step-number {
    display: inline-block;
    background: var(--amazon-orange);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.step-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--amazon-dark);
    margin-top: 8px;
    line-height: 1.5;
}

.step-content p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.8;
}

/* ========================================
   画像コンテナ
   ======================================== */
.image-container {
    margin-top: 16px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid var(--gray);
    background: var(--light-gray);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-container:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.image-container:active img {
    opacity: 0.9;
}

/* STEP 15 重要ステップのスタイル */
.important-step {
    border: 3px solid var(--amazon-orange);
    background: linear-gradient(135deg, #FFF9F0 0%, #FFFFFF 100%);
}

.important-text {
    font-weight: 700;
    color: var(--amazon-dark);
    font-size: 16px;
    margin-bottom: 20px;
}

.contact-info {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 16px;
    border: 2px solid var(--amazon-yellow);
}

.contact-method {
    margin-bottom: 20px;
}

.contact-method:last-child {
    margin-bottom: 0;
}

.contact-method h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--amazon-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-method p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 4px;
    line-height: 1.6;
}

.phone-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--amazon-orange);
    margin: 8px 0;
    letter-spacing: 1px;
}

.phone-hours {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 400;
}

/* お問い合わせリンクのスタイル */
.contact-link {
    color: var(--amazon-blue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: var(--amazon-orange);
    border-bottom: 2px solid var(--amazon-orange);
}

.contact-link:active {
    transform: translateY(1px);
}


/* ========================================
   注意事項セクション
   ======================================== */
.notice-section {
    margin-bottom: 30px;
}

.notice-card {
    background: linear-gradient(135deg, #FFF3CD 0%, #FFF8E1 100%);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--warning);
}

.notice-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--amazon-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-list {
    list-style: none;
    padding-left: 0;
}

.notice-list li {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    line-height: 1.8;
}

.notice-list li:before {
    content: "•";
    color: var(--warning);
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

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

/* ========================================
   フッター情報
   ======================================== */
.footer-info {
    margin-bottom: 30px;
}

.info-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--amazon-blue);
}

.info-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--amazon-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background: var(--amazon-dark);
    color: var(--white);
    padding: 24px 16px;
    text-align: center;
    margin-top: 40px;
}

.footer-content p {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-note {
    font-size: 12px;
    color: var(--gray);
    opacity: 0.8;
}

/* ========================================
   モーダル（画像拡大表示）
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 800px;
    border-radius: var(--border-radius);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
    }
    to {
        transform: scale(1);
    }
}

.modal-caption {
    margin: 16px auto;
    display: block;
    width: 90%;
    max-width: 800px;
    text-align: center;
    color: var(--white);
    padding: 12px 0;
    font-size: 14px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: var(--amazon-orange);
}

/* ========================================
   レスポンシブデザイン（タブレット以上）
   ======================================== */
@media (min-width: 768px) {
    .header {
        padding: 30px 24px;
    }
    
    .amazon-logo h1 {
        font-size: 36px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .main-content {
        padding: 30px 24px 60px;
    }
    
    .intro-card {
        padding: 28px;
    }
    
    .intro-card h2 {
        font-size: 24px;
    }
    
    .intro-card p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 26px;
        padding: 16px 24px;
    }
    
    .step-card {
        padding: 28px;
        margin-bottom: 20px;
    }
    
    .step-number {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .step-header h3 {
        font-size: 20px;
    }
    
    .step-content p {
        font-size: 16px;
    }
    
    .notice-card,
    .info-card {
        padding: 28px;
    }
    
    .notice-card h2,
    .info-card h3 {
        font-size: 22px;
    }
    
    .notice-list li,
    .info-card p {
        font-size: 16px;
    }
    
    .footer {
        padding: 32px 24px;
    }
    
    .footer-content p {
        font-size: 15px;
    }
    
    .footer-note {
        font-size: 13px;
    }
    
    /* STEP 15のレスポンシブスタイル */
    .important-text {
        font-size: 17px;
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .contact-method h4 {
        font-size: 18px;
    }
    
    .phone-number {
        font-size: 24px;
    }
    
    .phone-hours {
        font-size: 15px;
    }
}

/* ========================================
   スクロールバーのスタイリング（Webkit）
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--amazon-orange);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--amazon-yellow);
}

/* ========================================
   印刷スタイル
   ======================================== */
@media print {
    .header {
        position: static;
    }
    
    .modal {
        display: none !important;
    }
    
    .step-card {
        page-break-inside: avoid;
    }
    
    .image-container {
        cursor: default;
    }
    
    .image-container:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
}