/**
 * お問い合わせ完了画面のスタイル
 * ユーザーの達成感と次のアクションを促すUXに最適化
 */

/* ==========================================================================
   完了画面レイアウト設定
   ========================================================================== */

/* ページ全体のレイアウト調整 */
.page-template-page-contact-thanks .l-content,
.page-template-page-contact-thanks .l-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

.contact-thanks-page {
    min-height: 100vh;
    padding: 80px 0 80px 0;
    font-family: 'Helvetica', 'Noto Sans JP', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thanks-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

/* ==========================================================================
   成功メッセージエリア
   ========================================================================== */

.thanks-success {
    margin-bottom: 60px;
    animation: successFadeIn 0.8s ease forwards;
}

.success-icon {
    margin-bottom: 24px;
    animation: iconBounce 0.6s ease 0.2s both;
}

.thanks-title {
    font-size: 42px;
    font-weight: 700;
    color: #28a745;
    margin: 0 0 16px 0;
    font-family: 'Helvetica', 'Noto Sans JP', sans-serif;
    animation: titleSlideIn 0.6s ease 0.4s both;
}

.thanks-subtitle {
    font-size: 20px;
    color: #666666;
    margin: 0;
    font-weight: 400;
    animation: subtitleSlideIn 0.6s ease 0.6s both;
}

/* ==========================================================================
   完了メッセージ内容
   ========================================================================== */

.thanks-content {
    margin-bottom: 60px;
    animation: contentFadeIn 0.8s ease 0.8s both;
}

.thanks-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

.thanks-message p {
    font-size: 16px;
    color: #555555;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* 今後の流れ */
.thanks-info {
    margin-bottom: 40px;
}

.thanks-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #007BBF;
    margin-bottom: 20px;
    border-bottom: 2px solid #007BBF;
    padding-bottom: 8px;
}

.thanks-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.thanks-steps li {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007BBF;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #007BBF;
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
    margin-right: 16px;
    flex-shrink: 0;
}

.step-text {
    font-size: 15px;
    color: #555555;
    flex: 1;
}

/* 注意事項 */
.thanks-notice {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.thanks-notice p {
    margin: 0;
    font-size: 14px;
    color: #856404;
    line-height: 1.6;
}

/* 電話情報 */
.thanks-phone {
    background: linear-gradient(135deg, #007BBF, #0099df);
    color: white;
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
}

.phone-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.phone-icon {
    flex-shrink: 0;
}

.phone-details {
    flex: 1;
}

.phone-number {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.phone-hours {
    font-size: 16px;
    opacity: 0.9;
}

/* ==========================================================================
   アクションボタン
   ========================================================================== */

.thanks-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: actionsFadeIn 0.8s ease 1.2s both;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.action-btn--primary {
    background: #ffffff;
    border: 2px solid #007BBF;
    color: #007BBF;
}

.action-btn--secondary {
    background: #ffffff;
    border: 2px solid #FF8C42;
    color: #FF8C42;
}

/* ボタンホバーエフェクト */
.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.3s ease;
    z-index: -1;
}

.action-btn--primary::before {
    background: #007BBF;
}

.action-btn--secondary::before {
    background: #FF8C42;
}

.action-btn:hover::before {
    left: 0;
}

.action-btn:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

.action-btn--primary:hover {
    box-shadow: 0 8px 25px rgba(0, 123, 191, 0.3);
}

.action-btn--secondary:hover {
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.3);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.action-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   アニメーション
   ========================================================================== */

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconBounce {
    0% {
        transform: scale(0.3) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes subtitleSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes actionsFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */

@media (max-width: 768px) {
    .contact-thanks-page {
        padding: 60px 0;
    }
    
    .thanks-container {
        padding: 0 20px;
    }
    
    .thanks-success {
        margin-bottom: 40px;
    }
    
    .thanks-title {
        font-size: 32px;
    }
    
    .thanks-subtitle {
        font-size: 18px;
    }
    
    .thanks-box {
        padding: 30px 20px;
    }
    
    .thanks-actions {
        flex-direction: column;
        gap: 16px;
    }
    
    .action-btn {
        width: 100%;
        min-width: auto;
    }
    
    .phone-info {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .phone-number {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .contact-thanks-page {
        padding: 40px 0;
    }
    
    .thanks-container {
        padding: 0 15px;
    }
    
    .thanks-title {
        font-size: 28px;
    }
    
    .thanks-subtitle {
        font-size: 16px;
    }
    
    .thanks-box {
        padding: 20px 15px;
    }
    
    .thanks-steps li {
        padding: 12px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin-right: 12px;
    }
    
    .step-text {
        font-size: 14px;
    }
    
    .phone-number {
        font-size: 20px;
    }
    
    .phone-hours {
        font-size: 14px;
    }
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
    .thanks-success,
    .success-icon,
    .thanks-title,
    .thanks-subtitle,
    .thanks-content,
    .thanks-actions {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .action-btn,
    .action-btn::before,
    .btn-arrow {
        transition: none;
    }
}