/* ===============================================
   サンクスページ用スタイル (改)
   =============================================== */

/* form-main の align-items を中央揃えに変更 */
.form-main {
    align-items: center;
}

/* メインのコンテナ */
.thankyou-container {
    width: 100%;
    max-width: 700px; /* form-containerと同じ幅に設定 */
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 4rem; /* 内側の余白を広めに確保 */
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    
    /* レイアウトを左揃えに変更 */
    text-align: left;
    
    /* フェードインアニメーション */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s 0.2s ease-out forwards;
}

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

/* アイキャッチテキスト */
.thankyou-eyecatch {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-muted);
    letter-spacing: 0.2em; /* 文字間を広げてデザイン的に */
    text-transform: uppercase;
    margin-bottom: 2rem;
    padding-left: 0.1rem; /* 微調整 */
}

/* メッセージ */
.thankyou-message h1 {
    font-family: var(--font-sans);
    font-size: 2.5rem; /* 大胆に大きく */
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: var(--color-text-primary);
}

.thankyou-message p {
    font-size: 1rem;
    font-family: var(--font-sans);
    color: var(--color-text-secondary); /* メインのテキストより少し薄く */
    line-height: 1.9;
    max-width: 500px; /* 一行が長くなりすぎないように制御 */
}

/* アクションボタン */
.thankyou-action {
    margin-top: 3rem; /* 上の要素との余白をしっかり取る */
}

.thankyou-action .cta-button {
    min-width: 280px;
    padding: 1rem 2.5rem;
    text-align: center;
    display: inline-block; /* text-align: leftの影響をリセット */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .form-main {
        padding: 8rem 1rem 4rem;
        align-items: flex-start; /* スマホでは上から表示 */
    }

    .thankyou-container {
        padding: 2.5rem 2rem;
    }

    .thankyou-eyecatch {
        font-size: 0.8rem;
        letter-spacing: 0.15em;
        margin-bottom: 1.5rem;
    }

    .thankyou-message h1 {
        font-size: 1.8rem;
    }

    .thankyou-message p {
        font-size: 0.9rem;
    }

    .thankyou-action {
        margin-top: 2.5rem;
    }

    .thankyou-action .cta-button {
        width: 100%; /* スマホではボタンを全幅に */
        min-width: unset;
    }
}