:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --success-color: #059669;
    --error-color: #dc2626;
    --text-color: #1f2937;
    --border-color: #e5e7eb;
    --background-color: #f3f4f6;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: var(--text-color);
    background-color: var(--background-color);
    font-family: "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", sans-serif;
    line-height: 1.6;
}

/* メインコンテナ */
.content {
    position: relative;
    margin: 2rem auto;
    background-color: #fff;
    max-width: 600px;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
    animation: fadeIn 0.5s ease-out;
}

.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 1rem 1rem 0 0;
}

/* 見出し */
h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
}

/* フォーム要素 */
.control {
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ボタン */
.btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* 必須マーク */
.required {
    margin-left: 0.5rem;
    color: var(--error-color);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background-color: #fef2f2;
    border-radius: 0.25rem;
    font-weight: 600;
}

/* エラーメッセージ */
.error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: var(--error-color);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
}

/* 確認情報 */
.check-info {
    color: var(--text-color);
    font-weight: 500;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* ナビゲーションボタン */
.back-btn {
    width: 48%;
    padding: 0.875rem;
    background: linear-gradient(to right, var(--success-color), #065f46);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.next-btn {
    width: 48%;
    float: right;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブデザイン */
@media (max-width: 640px) {
    .content {
        margin: 1rem;
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .back-btn, .next-btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .back-btn {
        float: none;
    }
}

/* 確認情報のスタイルを修正 */
.check-info {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0; /* パディングを上下のみに変更 */
    background-color: transparent; /* 背景色を削除 */
    border-radius: 0;
    margin: 0; /* マージンを削除 */
    display: inline-block; /* インラインブロック要素に変更 */
}

/* 確認画面のコントロール要素を調整 */
.control {
    margin-bottom: 1.5rem;
}

.control p {
    margin-bottom: 0.5rem;
}

.control p:first-child {
    font-weight: 600;
    color: var(--text-color);
}

/* 矢印アイコンの位置調整 */
.fas.fa-angle-double-right {
    margin: 0 0.5rem;
    color: var(--primary-color);
}

/* 確認画面のボタン配置を調整 */
.clear {
    clear: both;
    margin-top: 1rem;
}

.info-text {
    margin: 20px 0;
    text-align: center;
}

.info-text p {
    margin: 10px 0;
    line-height: 1.6;
}

.redirect-text {
    margin-top: 20px;
    color: #666;
    font-size: 0.9em;
}