@charset "UTF-8";

/* ベース設定 */
:root {
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --error-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e9ecef;
    --bg-light: #f8f9fa;
    --white: #fff;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 6px 30px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 50px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    font-size: 16px;
}

/* ヘッダー */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.header-container {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-logo {
    line-height: 0;
    margin: 0;
}

.site-logo img {
    height: 40px;
}

/* ステップインジケーター */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #adb5bd;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.step.completed .step-number {
    background-color: #e8f5e9;
    border-color: #4caf50;
    color: #4caf50;
}

.step-label {
    font-size: 0.9em;
    color: #adb5bd;
    font-weight: 600;
}

.step.active .step-label {
    color: var(--primary-color);
}

.step.completed .step-label {
    color: #4caf50;
}

/* メインコンテナ */
.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* エラーメッセージ */
.error-message {
    background-color: #fee;
    border-left: 4px solid var(--error-color);
    color: #c0392b;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
}

.field-error {
    font-size: 0.9em;
    color: var(--error-color);
    margin: 5px 0;
    padding: 8px 12px;
    background-color: #fff5f5;
    border-radius: 4px;
}

/* フォーム説明 */
.form-description {
    margin-bottom: 30px;
    color: var(--text-light);
    line-height: 1.6;
    text-align: center;
    font-size: 1em;
}

.required-note {
    color: var(--error-color);
    font-weight: 700;
}

/* フォームグループ */
.form-group {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.form-group-title {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    margin: -30px -30px 30px -30px;
    padding: 20px 30px;
    text-align: center;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* フォームフィールド */
.form-field {
    margin-bottom: 25px;
}

.form-field:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1em;
}

.form-label.required::after {
    content: "必須";
    background-color: var(--error-color);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    margin-left: 8px;
    font-weight: 700;
}

/* 入力フィールド */
.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: var(--white);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #adb5bd;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

/* ボタン */
.form-submit {
    text-align: center;
    margin: 20px 0;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 16px 48px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    min-width: 280px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.5);
    color: var(--white) !important;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: #6c757d;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* 注意書き */
.form-notice {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: var(--radius-sm);
    padding: 20px;
}

.form-notice p {
    margin: 0;
    color: #856404;
    font-weight: 400;
    line-height: 1.6;
    text-align: center;
    font-size: 0.9em;
}

.form-notice strong {
    color: #664d03;
}

.contact-info {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-number {
    display: inline-block;
    padding: 10px 24px;
    font-size: 0.95em;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    background-color: var(--white);
    color: #495057 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-number:hover {
    background-color: #f8f9fa;
    color: #212529 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.contact-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9em;
    margin-right: 8px;
}

/* フッター */
.site-footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 40px 20px;
    margin-top: 20px;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-container p {
    margin: 10px 0;
    text-align: center;
}

.footer-container a {
    font-size: 0.9em;
    color: #95a5a6;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-container a:hover {
    color: var(--primary-color);
}

.copyright {
    font-size: 0.9em;
    color: #95a5a6;
}

/* 確認画面用のスタイル */
.confirm-table {
    width: 100%;
}

.confirm-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.confirm-row:last-child {
    border-bottom: none;
}

.confirm-label {
    flex: 0 0 30%;
    font-weight: 600;
    color: #2c3e50;
    padding-right: 20px;
}

.confirm-value {
    flex: 1;
    color: var(--text-color);
    word-break: break-word;
}

.btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* 完了画面用のスタイル */
.complete-message {
    text-align: center;
    padding: 40px 20px;
}

.complete-message h3 {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 30px 0;
    line-height: 1.6;
    text-align: center;
}

.complete-message p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 15px 0;
    text-align: center;
}

/* 個人情報の取り扱い */
#privacy-error-target {
    display: block;
}

#privacy-error-target:not(:empty) + .privacy-agreement {
    margin-top: 10px;
}

.field-error-privacy {
    margin-bottom: 10px;
}

.privacy-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.privacy-agreement {
    margin: 30px 0 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: var(--radius-sm);
    border: 1px solid #dee2e6;
}

.privacy-title {
    font-size: 1em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    text-align: center;
}

.privacy-text {
    font-size: 0.9em;
    color: #495057;
    line-height: 1.8;
    margin: 0 0 16px 0;
}

.privacy-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.privacy-text a:hover {
    color: var(--primary-dark);
}

.privacy-checkbox-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.privacy-checkbox-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.95em;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--white);
    color: #495057;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.privacy-checkbox-button:hover {
    background-color: #f8f9fa;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.privacy-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 3px;
    margin-right: 10px;
    background-color: var(--white);
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.privacy-checkbox-input:checked + .privacy-checkbox-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

.privacy-checkbox-label {
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* PCのみ表示 */
.pc-only {
    display: inline;
}

/* SPのみ表示 */
.sp-only {
    display: none;
}

/* バリデーションエラースタイル */
.formError {
    position: relative !important;
    display: block !important;
    margin: 0 0 10px 0 !important;
    padding: 12px 16px !important;
    background-color: var(--error-color) !important;
    color: var(--white) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.9em !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3) !important;
    border: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

.formError .formErrorContent {
    background: none !important;
    border: none !important;
    color: var(--white) !important;
    padding: 0 !important;
    width: auto !important;
    text-shadow: none !important;
}

.formError .formErrorArrow {
    display: none !important;
}

.inputContainer {
    position: relative;
    display: block;
}

/* エラーが発生したフィールドのスタイル */
.error-field {
    border-color: var(--error-color) !important;
    background-color: #fff5f5 !important;
}

.error-field:focus {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .site-logo img {
        height: 35px;
    }

    .pc-only {
        display: none;
    }

    .sp-only {
        display: inline;
    }

    .privacy-agreement {
        padding: 16px;
    }

    .privacy-title {
        font-size: 0.95em;
    }

    .privacy-text {
        font-size: 0.85em;
    }

    .privacy-checkbox-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    .privacy-checkbox-label {
        white-space: normal;
    }

    .step-indicator::before {
        width: 80%;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }

    .step-label {
        font-size: 0.8em;
    }

    .main-container {
        padding: 20px 15px;
    }

    .page-header h1 {
        font-size: 1.5em;
    }

    .form-group {
        padding: 20px 15px;
    }

    .form-group-title {
        margin: -20px -15px 20px -15px;
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .confirm-row {
        flex-direction: column;
        gap: 5px;
    }

    .confirm-label {
        flex: none;
        padding-right: 0;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        min-width: auto;
        padding: 16px 32px;
    }

    .form-notice p {
        text-align: left;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-number {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .complete-message p {
        text-align: left;
    }
}