/* ========================================
   GOLDLABO - 手紙テイストLP
   シンプル・ミニマル・文章中心
   ======================================== */

/* ========================================
   リセット & 基本設定
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    line-height: 2.0;
    color: #000;
    background-color: #ffffff;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   メインレイアウト
   ======================================== */

.letter {
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.letter-content {
    max-width: 700px;
    width: 100%;
    background-color: transparent;
}

/* ========================================
   段落スタイル
   ======================================== */

.letter-content p {
    margin-bottom: 1.5em;
    color: #000;
    font-size: 18px;
    font-weight: 600;
    line-height: 2.0;
}

/* 最後の段落のマージン調整 */
.letter-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   メタ情報（時刻・場所）
   ======================================== */

.letter-meta {
    color: #333;
    font-size: 16px;
    margin-bottom: 2em !important;
    font-style: italic;
    font-weight: 600;
}

/* ========================================
   注釈
   ======================================== */

.note {
    color: #333;
    font-size: 15px;
    padding-left: 1em;
    border-left: 2px solid #ccc;
    margin-bottom: 2.5em !important;
    font-weight: 600;
}

/* ========================================
   重要部分の強調
   ======================================== */

/* 中程度の強調 */
.emphasis-medium {
    color: #000;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.8;
    margin-top: 1.5em !important;
    margin-bottom: 1.5em !important;
}

/* 大きな強調（最重要） */
.emphasis-large {
    color: #000;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.7;
    margin-top: 2em !important;
    margin-bottom: 2em !important;
}

/* 特大強調（最重要のキーメッセージ） */
.emphasis-xlarge {
    color: #ff0000 !important;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.5;
    margin-top: 3em !important;
    margin-bottom: 3em !important;
}

/* 大文字スタイル（インパクト強調） */
.emphasis-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 金額表示 */
.emphasis-price {
    color: #000;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.5;
    margin-top: 1.5em !important;
    margin-bottom: 1.5em !important;
    text-align: center;
}

/* ========================================
   スペーサー
   ======================================== */

.spacer {
    height: 40px;
    margin: 0 !important;
}

/* ========================================
   署名
   ======================================== */

.signature {
    text-align: right;
    font-size: 20px;
    color: #000;
    font-weight: 600;
    margin-top: 3em !important;
    margin-bottom: 0 !important;
}

/* ========================================
   画像コンテナ
   ======================================== */

.image-container {
    margin: 3em 0;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========================================
   スマホ専用改行
   ======================================== */

.br-mobile {
    display: none;
}

@media (max-width: 480px) {
    .br-mobile {
        display: block;
        content: "";
        margin: 0;
    }
    
    .br-mobile::before {
        content: "\A";
        white-space: pre;
    }
}

/* ========================================
   CTAセクション（削除済み）
   ======================================== */

/* CTAボタンを削除しました */

/* ========================================
   レスポンシブデザイン
   ======================================== */

/* タブレット */
@media (max-width: 768px) {
    body {
        font-size: 17px;
        line-height: 1.9;
    }

    .letter {
        padding: 40px 20px;
    }

    .letter-content p {
        font-size: 17px;
        margin-bottom: 1.4em;
        color: #000;
    }

    .letter-meta {
        font-size: 15px;
    }

    .note {
        font-size: 14px;
    }

    .emphasis-medium {
        font-size: 19px;
    }

    .emphasis-large {
        font-size: 22px;
    }

    .emphasis-xlarge {
        font-size: 34px;
        margin-top: 2.5em !important;
        margin-bottom: 2.5em !important;
    }

    .emphasis-price {
        font-size: 28px;
    }

    .signature {
        font-size: 18px;
    }

    .spacer {
        height: 30px;
    }
}

/* スマートフォン */
@media (max-width: 480px) {
    body {
        font-size: 16px;
        line-height: 1.85;
    }

    .letter {
        padding: 30px 16px;
    }

    .letter-content p {
        font-size: 16px;
        margin-bottom: 1.3em;
        color: #000;
    }

    .letter-meta {
        font-size: 14px;
        margin-bottom: 1.8em !important;
    }

    .note {
        font-size: 13px;
        padding-left: 0.8em;
        margin-bottom: 2em !important;
    }

    .emphasis-medium {
        font-size: 18px;
        margin-top: 1.2em !important;
        margin-bottom: 1.2em !important;
    }

    .emphasis-large {
        font-size: 20px;
        margin-top: 1.5em !important;
        margin-bottom: 1.5em !important;
    }

    .emphasis-xlarge {
        font-size: 32px;
        margin-top: 2.5em !important;
        margin-bottom: 2.5em !important;
    }

    .emphasis-price {
        font-size: 26px;
        margin-top: 1.2em !important;
        margin-bottom: 1.2em !important;
    }

    .signature {
        font-size: 17px;
        margin-top: 2.5em !important;
    }

    .spacer {
        height: 25px;
    }
}

/* 極小スマートフォン */
@media (max-width: 360px) {
    body {
        font-size: 15px;
    }

    .letter {
        padding: 20px 12px;
    }

    .letter-content p {
        font-size: 15px;
        color: #000;
    }

    .emphasis-large {
        font-size: 18px;
    }

    .emphasis-price {
        font-size: 24px;
    }
}

/* ========================================
   印刷用スタイル
   ======================================== */

@media print {
    body {
        background-color: #fff;
        color: #000;
    }

    .letter-content p {
        page-break-inside: avoid;
    }
}

/* ========================================
   アクセシビリティ
   ======================================== */

/* フォーカス表示（削除済み） */

/* ダークモード対応（オプション） */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #d0d0d0;
    }

    .letter-content p {
        color: #d0d0d0;
    }

    .emphasis-medium,
    .emphasis-large,
    .emphasis-price,
    .signature {
        color: #ffffff;
    }

    .letter-meta,
    .note {
        color: #999;
    }

    .note {
        border-left-color: #444;
    }
}

/* ========================================
   最小限のフェードインアニメーション
   ======================================== */

.letter-content {
    animation: gentleFadeIn 1.2s ease-out;
}

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

/* 段落のフェードイン（控えめ） */
.letter-content p {
    opacity: 0;
    animation: fadeInParagraph 0.8s ease-out forwards;
}

@keyframes fadeInParagraph {
    to {
        opacity: 1;
    }
}

/* 段落ごとに遅延を設定（最初の20段落のみ） */
.letter-content p:nth-child(1) { animation-delay: 0.1s; }
.letter-content p:nth-child(2) { animation-delay: 0.15s; }
.letter-content p:nth-child(3) { animation-delay: 0.2s; }
.letter-content p:nth-child(4) { animation-delay: 0.25s; }
.letter-content p:nth-child(5) { animation-delay: 0.3s; }
.letter-content p:nth-child(6) { animation-delay: 0.35s; }
.letter-content p:nth-child(7) { animation-delay: 0.4s; }
.letter-content p:nth-child(8) { animation-delay: 0.45s; }
.letter-content p:nth-child(9) { animation-delay: 0.5s; }
.letter-content p:nth-child(10) { animation-delay: 0.55s; }

/* 11番目以降は遅延なし（パフォーマンス最適化） */
.letter-content p:nth-child(n+11) {
    animation-delay: 0s;
    opacity: 1;
}

/* CTAセクションのフェードイン（削除済み） */

/* アニメーション無効化の設定 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .letter-content p {
        opacity: 1;
        animation: none;
    }
}

/* ========================================
   パフォーマンス最適化
   ======================================== */

/* フォント読み込み最適化 */
@font-face {
    font-family: 'Noto Serif JP';
    font-display: swap;
}
