/* =========================================================
 * 1. ベース・コンテナ設定
 * ========================================================= */
body {
    background-color: #f0f0f0;
    font-family: "Hiragino Sans", "Meiryo", sans-serif;
    color: #333;
    margin: 0;
}
.registration-container, .container {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
h1, h2{
    text-align: center;
}
.email-sent-message{
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 5%;
}
.page-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: bold;
}

/* =========================================================
 * 2. ステップフロー (共通パーツ)
 * ========================================================= */
.c-step-flow {
    display: flex;
    justify-content: center;
    margin: 40px auto;
    width: 100%;
}

.c-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

/* つなぎの線 */
.c-step-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 25px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #ddd;
    z-index: 1;
}

/* アクティブ/完了済みの線は黒く */
.c-step-item.is-active:not(:last-child)::after,
.c-step-item.is-completed:not(:last-child)::after {
    background-color: #333;
}

/* ◯数字部分 */
.c-step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    color: #444;
    border: 2px solid #ddd;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 2;
    margin-bottom: 8px;
}

/* 現在のステップ（濃紺） */
.c-step-item.is-active .c-step-number {
    background-color: #00177c;
    border-color: #00177c;
    color: #ffffff;
}

.c-step-text {
    font-size: 0.75rem;
    color: #999;
    text-align: center;
}

.c-step-item.is-active .c-step-text {
    color: #333;
    font-weight: bold;
}

/* =========================================================
 * 3. フォーム・入力パーツ
 * ========================================================= */
.form-group { margin-bottom: 4%; }
.form-label { display: block; font-size: 1rem; margin-bottom: 10px; font-weight: bold; }

.form-box label{
    display: block;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 6px;
}
.required {
    font-size: 0.8rem;
    background: #d73925;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 1%;
}

.form-input, input[type="email"], input[type="password"] {
    width: 100%;
    height: 48px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0 15px;
    box-sizing: border-box;
    font-size: 1rem;
}
.form-box .note{ font-size: 0.85rem; margin-top: 5px; text-align: center; }
.form-note { font-size: 0.85rem; color: #777; margin-top: 5px; }

/* 生年月日セレクト */
.birth-select-wrap { display: flex; align-items: center; gap: 10px; }
.birth-select-wrap select {
    width: 110px; height: 44px; border: 1px solid #ccc; border-radius: 8px; padding: 0 10px;
}

.error-message{
    font-weight: bold;
    font-size: 0.9rem;
    opacity: 0;
    color: #ff0000;
    margin: 1% auto 0;

}
/* =========================================================
 * 4. 確認画面（テーブル形式）
 * ========================================================= */
.confirm-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #bbb;
    margin-bottom: 40px;
}

.confirm-table th {
    width: 35%;
    background-color: #000;
    color: #fff;
    padding: 15px;
    font-weight: normal;
    border: 1px solid #bbb;
}

.confirm-table td {
    padding: 15px;
    background: #fff;
    border: 1px solid #bbb;
}

/* =========================================================
 * 5. 完了画面・コンテンツ
 * ========================================================= */
.benefit-box {
    background: #fff; border: 1px solid #bbb; border-radius: 4px;
    min-height: 250px; display: flex; justify-content: center; align-items: center;
    padding: 30px; margin-bottom: 30px;
}

.banner-area {
    background: #c0c0c0; border: 1px solid #bbb;
    min-height: 150px; display: flex; justify-content: center; align-items: center;
    margin-bottom: 40px; font-size: 1.5rem; font-weight: bold;
}

/* =========================================================
 * 6. ボタン共通
 * ========================================================= */
.button-group { display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* 実行ボタン（緑） */
.btn-submit, .submit-btn, .bottom-action a{
    display: block; width: 320px; height: 55px; background: #008305; margin: 30px auto;
    color: #fff; border: none; border-radius: 30px; font-size: 1.1rem;
    font-weight: bold; cursor: pointer; transition: 0.3s; text-align: center; line-height: 55px; text-decoration: none;
}
.btn-submit:hover ,.bottom-action a:hover{ background: #00aa09; }

/* 戻るボタン（赤） */
.btn-back {
    width: 320px; height: 55px; background-color: #b30000;
    color: #fff; border-radius: 30px; border: none; font-size: 1.1rem; cursor: pointer;
}
.btn-back:hover { background-color: #d81b1b; }

/* =========================================================
 * 7. スマホレスポンシブ
 * ========================================================= */
@media (max-width: 600px) {
    .registration-container { padding: 20px; }
    .confirm-table th, .confirm-table td { display: block; width: 100%; border-right: none; }
    .confirm-table th { background-color: #333; }
    .btn-submit, .btn-back { width: 100%; }
}