﻿body {
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.header-logo {
    width: 160px;
    height: auto;
    flex-shrink: 0;
}

h1 {
    margin-bottom: 0;
    color: #333;
    font-size: 24px;
}

@media (max-width: 600px) {
    .header {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .header-logo {
        align-self: flex-end;
        width: 120px;
        margin-bottom: 12px;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: #0066cc;
        box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    }

textarea {
    resize: vertical;
    min-height: 100px;
}

.required::after {
    content: " *";
    color: #e74c3c;
}

.radio-group-inline {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.radio-item-inline {
    margin-bottom: 0;
}

    .radio-item-inline input[type="radio"] {
        margin-right: 8px;
        width: auto;
    }

    .radio-item-inline label {
        display: inline;
        margin-bottom: 0;
        font-weight: normal;
    }

.radio-group {
    margin-top: 10px;
}

.radio-item {
    margin-bottom: 10px;
}

    .radio-item input[type="radio"] {
        margin-right: 8px;
        width: auto;
    }

    .radio-item label {
        display: inline;
        margin-bottom: 0;
        font-weight: normal;
    }

.conditional-field {
    margin-left: 30px;
    margin-top: 10px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 3px solid #0066cc;
    border-radius: 4px;
    display: none;
}

    .conditional-field.show {
        display: block;
    }

button, input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

    button:hover, .button:hover, input[type="submit"]:hover {
        background-color: #0052a3;
    }

    button:disabled, .button:disabled, input[type="submit"]:disabled {
        background-color: #ccc;
        cursor: not-allowed;
    }

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

    .message.success {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
        display: block;
    }

    .message.error {
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
        display: block;
    }

.error-text {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

    .error-text.show {
        display: block;
    }

input.invalid,
select.invalid {
    border-color: #e74c3c;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 10px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0066cc;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .radio-group-inline {
        flex-direction: column;
        gap: 10px;
    }
}



/* プライバシーポリシーと免責事項 */
.disclaimer-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

.disclaimer-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 5px;
}

    .disclaimer-content h3:first-child {
        margin-top: 0;
    }

.disclaimer-content p {
    margin-bottom: 10px;
}

.disclaimer-content ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.disclaimer-content li {
    margin-bottom: 5px;
}

.disclaimer-content a {
    color: #0066cc;
    text-decoration: none;
}

    .disclaimer-content a:hover {
        text-decoration: underline;
    }

.confirmation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

    .confirmation-modal.show {
        display: flex;
    }

.confirmation-modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.confirmation-modal-content h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 20px;
    text-align: center;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 15px;
}

.confirmation-summary {
    margin-bottom: 30px;
}

.summary-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

    .summary-item:last-child {
        border-bottom: none;
    }

    .summary-item label {
        display: block;
        color: #555;
        font-weight: 600;
        margin-bottom: 8px;
        font-size: 14px;
    }

    .summary-item p {
        color: #333;
        margin: 0;
        word-break: break-word;
        white-space: pre-wrap;
    }

.confirmation-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.btn-back, .btn-confirm {
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-back {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

    .btn-back:hover {
        background-color: #e0e0e0;
    }

.btn-confirm {
    background-color: #0066cc;
    color: white;
}

    .btn-confirm:hover {
        background-color: #0052a3;
    }

@media (max-width: 600px) {
    .confirmation-modal-content {
        padding: 30px 20px;
    }

    .confirmation-buttons {
        grid-template-columns: 1fr;
    }
}

.site-footer {
    border-top: 1px solid #ddd;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: #888;
    font-size: 12px;
    line-height: 1.8;
}

    .site-footer .footer-company {
        font-size: 13px;
        font-weight: 600;
        color: #555;
        margin-bottom: 4px;
    }

    .site-footer .footer-detail {
        margin-bottom: 8px;
    }

    .site-footer .footer-copyright {
        color: #aaa;
        font-size: 11px;
    }
