/* サンクスページ専用CSS */

/* ページ全体のレイアウト */
.ptogo-thanks-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
}

/* 成功アイコン */
.ptogo-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 32px rgba(46, 204, 113, 0.3);
}

.ptogo-success-icon::before {
    content: '✓';
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
}

/* メインタイトル */
.ptogo-thanks-title {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* サブタイトル */
.ptogo-thanks-subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* 注文情報カード */
.ptogo-order-summary {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border: 2px solid #e1e8ed;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.8s ease 0.6s both;
}

.ptogo-order-number {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.ptogo-order-number .order-id {
    color: #667eea;
    font-family: 'Courier New', monospace;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

/* 注文詳細テーブル */
.ptogo-order-details {
    margin: 1.5rem 0;
}

.ptogo-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.ptogo-detail-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
}

.ptogo-detail-label {
    color: #7f8c8d;
}

.ptogo-detail-value {
    color: #2c3e50;
    font-weight: 500;
}

/* アクションボタン */
.ptogo-action-buttons {
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.ptogo-primary-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ptogo-primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

.ptogo-secondary-button {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 12px 26px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin: 8px;
    transition: all 0.3s ease;
}

.ptogo-secondary-button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* 注意事項セクション */
.ptogo-notice-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease 1s both;
}

.ptogo-notice-title {
    color: #856404;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ptogo-notice-title::before {
    content: '⚠️';
    font-size: 1.2rem;
}

.ptogo-notice-list {
    color: #856404;
    text-align: left;
    line-height: 1.6;
}

.ptogo-notice-list li {
    margin-bottom: 8px;
}

/* ソーシャルシェア */
.ptogo-social-share {
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease 1.2s both;
}

.ptogo-social-title {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.ptogo-social-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.ptogo-social-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.ptogo-social-button:hover {
    transform: translateY(-3px) scale(1.1);
    text-decoration: none;
    color: white;
}

.ptogo-social-twitter {
    background: #1da1f2;
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}

.ptogo-social-facebook {
    background: #1877f2;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.ptogo-social-line {
    background: #00c300;
    box-shadow: 0 4px 15px rgba(0, 195, 0, 0.3);
}

/* フッター情報 */
.ptogo-thanks-footer {
    margin: 3rem 0 1rem;
    color: #95a5a6;
    font-size: 0.9rem;
    animation: fadeInUp 0.8s ease 1.4s both;
}

/* アニメーション定義 */
@keyframes successBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 紙吹雪エフェクト（オプション） */
.ptogo-confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.ptogo-confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #667eea;
    animation: confettiFall 3s linear infinite;
}

.ptogo-confetti-piece:nth-child(odd) {
    background: #764ba2;
    animation-delay: -0.5s;
}

.ptogo-confetti-piece:nth-child(3n) {
    background: #27ae60;
    animation-delay: -1s;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .ptogo-thanks-container {
        padding: 1.5rem 1rem;
    }

    .ptogo-thanks-title {
        font-size: 1.8rem;
    }

    .ptogo-success-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }

    .ptogo-success-icon::before {
        font-size: 2rem;
    }

    .ptogo-order-summary {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .ptogo-primary-button,
    .ptogo-secondary-button {
        display: block;
        width: 100%;
        margin: 8px 0;
    }

    .ptogo-social-buttons {
        gap: 8px;
    }

    .ptogo-social-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .ptogo-thanks-title {
        font-size: 1.5rem;
    }

    .ptogo-thanks-subtitle {
        font-size: 1rem;
    }

    .ptogo-order-summary {
        padding: 1rem;
    }

    .ptogo-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .ptogo-notice-section {
        padding: 1rem;
    }
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {

    .ptogo-success-icon,
    .ptogo-thanks-title,
    .ptogo-thanks-subtitle,
    .ptogo-order-summary,
    .ptogo-action-buttons,
    .ptogo-notice-section,
    .ptogo-social-share,
    .ptogo-thanks-footer {
        animation: none;
    }

    .ptogo-confetti-piece {
        display: none;
    }

    .ptogo-primary-button:hover,
    .ptogo-secondary-button:hover,
    .ptogo-social-button:hover {
        transform: none;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .ptogo-order-summary {
        border: 2px solid #000;
    }

    .ptogo-primary-button,
    .ptogo-secondary-button {
        border: 2px solid #000;
    }

    .ptogo-notice-section {
        border: 2px solid #000;
    }
}

/* プリント用スタイル */
@media print {

    .ptogo-action-buttons,
    .ptogo-social-share,
    .ptogo-confetti {
        display: none;
    }

    .ptogo-thanks-container {
        max-width: none;
        padding: 1rem;
    }

    .ptogo-order-summary {
        box-shadow: none;
        border: 1px solid #000;
    }

    * {
        color: #000 !important;
        background: white !important;
    }
}