/* 全体的なスタイル */
body {
    font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 20px auto 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* ロゴヘッダー */
.page-header {
    text-align: center;
    padding: 30px 20px;
}
.page-header img {
    max-width: 350px; /* ロゴの最大サイズを大きくしました */
    width: 100%;      /* コンテナの幅に合わせて伸縮するように変更 */
    height: auto;
    vertical-align: middle;
}

h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

h2 {
    font-size: 18px;
    padding-left: 10px;
    border-left: 4px solid #e85f2e;
    margin-bottom: 20px;
}

/* ステップ表示 */
.step-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #aaa;
    width: 100px;
    position: relative;
}
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 17px;
    left: 65%;
    width: 70%;
    height: 2px;
    background-color: #ddd;
}
.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ccc;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-bottom: 5px;
    z-index: 1;
}
.step-name {
    font-size: 12px;
}
.step-item.active .step-number {
    background-color: #e85f2e;
}
.step-item.active .step-name {
    color: #e85f2e;
    font-weight: bold;
}
.step-item.done .step-number {
    background-color: #e85f2e;
}
.step-item.done::after {
    background-color: #e85f2e;
}


/* フォーム要素 */
.form-section {
    margin-bottom: 40px;
}
.form-group {
    margin-bottom: 25px;
}
.form-group > label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
.required-tag {
    background-color: #e53935;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}
input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}
input.error-field, select.error-field {
    background-color: #fff2f2;
    border-color: #e53935;
}
.form-note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}
.radio-group .radio-label {
    margin-right: 20px;
    font-weight: normal;
}
.input-with-checkbox {
    display: flex;
    align-items: center;
}
.input-with-checkbox input[type="text"] {
    flex-grow: 1;
    margin-right: 15px;
}
/* ★★★「未定」チェックボックスのスタイルを修正★★★ */
.input-with-checkbox .checkbox-label {
    display: inline-flex;
    align-items: center;
    white-space: nowrap; /* テキストの改行を防ぐ */
    font-weight: normal;
    cursor: pointer;
}
.input-with-checkbox .checkbox-label input[type="checkbox"] {
    margin-right: 5px; /* チェックボックスとテキストの間の余白 */
}


/* エラーメッセージ */
.error-summary {
    background-color: #fff2f2;
    border: 1px solid #e53935;
    color: #c62828;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.error-summary ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

/* フッターとボタン */
.form-footer {
    text-align: center;
    background-color: #f7f7f7;
    padding: 30px;
    border-radius: 8px;
}
.privacy-policy-info {
    font-size: 14px;
    color: #555;
}
.submit-button, .back-button {
    display: inline-block;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; /* リンクの下線を消す */
    text-align: center;
}
.submit-button {
    background-color: #e85f2e;
    color: white;
}
.submit-button:hover {
    opacity: 0.8;
}
.arrow-right {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    margin-left: 10px;
}

/* 確認ページ */
.confirm-message {
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
}
.confirm-table dl {
    display: flex;
    flex-wrap: wrap; /* スマホ表示で折り返すように */
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin: 0;
}
.confirm-table dt {
    width: 30%;
    font-weight: bold;
    padding-right: 20px;
    box-sizing: border-box;
}
.confirm-table dd {
    width: 70%;
    margin: 0;
    box-sizing: border-box;
}
.confirm-table hr {
    border: none;
    border-top: 2px solid #e85f2e;
    margin: 20px 0;
}
.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* スマホ表示で折り返すように */
}
.submit-form {
    margin: 0;
}
.back-button {
    background-color: #aaa;
    color: white;
}
.back-button:hover {
    background-color: #888;
}

/* 完了ページ */
.complete-message {
    text-align: center;
    padding: 40px 20px;
}
.complete-message h2 {
    border: none;
    padding: 0;
    font-size: 22px;
}
.back-to-top-button {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.back-to-top-button:hover {
    background-color: #555;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .container {
        padding: 20px;
    }
    h1 {
        font-size: 20px;
    }
    .page-header img {
        max-width: 90%; /* スマホでの最大幅を調整 */
    }
    .confirm-table dt, .confirm-table dd {
        width: 100%;
    }
    .confirm-table dt {
        padding-bottom: 5px;
        border-bottom: 1px dotted #ccc;
        margin-bottom: 5px;
    }
}
