iframe {
    width: 90%;
    max-width: 800px;
    display: block;
    margin: 40px auto;
}

.container.contact {
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
}

.contact *:not(:first-child) {
    margin-top: 0;
}

.contact .background-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
}

.contact .horizontal-line {
    position: absolute;
    left: 0;
    height: 1px;
    width: 100%;
    background-color: #3498db;
}

.contact .line-1 {
    top: 20%;
}

.contact .line-2 {
    top: 40%;
}

.contact .line-3 {
    top: 60%;
}

.contact .line-4 {
    top: 80%;
}

.contact .vertical-line {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #3498db;
}

.contact .line-5 {
    left: 20%;
}

.contact .line-6 {
    left: 40%;
}

.contact .line-7 {
    left: 60%;
}

.contact .line-8 {
    left: 80%;
}

.contact .header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.contact .section-eyebrow {
    font-size: 16px;
    font-weight: 600;
    color: #3498db;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
}

.contact .section-eyebrow:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #3498db;
}

.contact .main-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #2c3e50 0%, #3498db 70%, #2980b9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact .subtitle {
    font-size: 18px;
    color: #7f8c8d;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.contact .form-container {
    background: rgba(52, 152, 219, 0.02);
    border-left: 3px solid #3498db;
    border-radius: 0 8px 8px 0;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.08);
    position: relative;
    overflow: hidden;
}

.contact .form-container:before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background-color: rgba(52, 152, 219, 0.03);
    border-radius: 50%;
    z-index: 0;
}

.contact .form-grid {
    display: grid;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.contact .form-group {
    position: relative;
    margin-bottom: 20px;
}

.contact .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact .form-label {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.contact .required {
    color: #e74c3c;
    margin-left: 4px;
}

.contact .form-input,
.contact .form-select,
.contact .form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ecf0f1;
    border-radius: 4px;
    font-size: 16px;
    color: #2c3e50;
    background-color: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.contact .form-input:focus,
.contact .form-select:focus,
.contact .form-textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.contact .form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.contact .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(52, 152, 219, 0.05);
    border-radius: 6px;
}

.contact .checkbox-input {
    margin-top: 4px;
    transform: scale(1.2);
    accent-color: #3498db;
}

.contact .checkbox-label {
    font-size: 14px;
    line-height: 1.6;
    color: #2c3e50;
}

.contact .checkbox-label a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.contact .checkbox-label a:hover {
    text-decoration: underline;
}

.contact .radio-group {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.contact .radio-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.contact .radio-item:hover {
    border-color: #3498db;
    background: #f8faff;
}

.contact .radio-item.selected {
    border-color: #3498db;
    background: linear-gradient(135deg, #3498db10, #764ba210);
}

.contact .radio-input {
    margin-right: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #3498db;
}

.contact .radio-label {
    font-weight: 500;
    cursor: pointer;
    flex: 1;
}

.contact .other-input {
    margin-top: 0.5rem;
    display: none;
}

.contact .other-input.show {
    display: block;
}

.contact .submit-container {
    text-align: center;
    margin-top: 40px;
}

.contact .submit-btn {
    display: inline-block;
    padding: 16px 50px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact .submit-btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #2980b9;
    transition: width 0.3s ease;
    z-index: -1;
}

.contact .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.contact .submit-btn:hover:before {
    width: 100%;
}

.contact .contact-info {
    margin-top: 60px;
    text-align: center;
    padding: 40px;
    background-color: #2c3e50;
    color: #fff;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.contact .contact-info:before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(45deg);
}

.contact .contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #3498db;
}

.contact .contact-info p {
    margin-bottom: 10px;
    opacity: 0.9;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact .animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

@media (max-width: 768px) {
    .container.contact {
        padding: 40px 15px;
    }

    .contact .main-title {
        font-size: 32px;
    }

    .contact .form-container {
        padding: 30px 20px;
    }

    .contact .form-row {
        grid-template-columns: 1fr;
    }

    .contact .submit-btn {
        width: 100%;
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .contact .main-title {
        font-size: 28px;
    }

    .contact .subtitle {
        font-size: 16px;
    }

    .contact .form-container {
        padding: 25px 15px;
    }
}
/* Thanks Container Styles */
:root {
    --primary-color: #0055b8;
    --primary-dark: #004497;
    --primary-light: rgba(0, 85, 184, 0.1);
    --secondary-color: #4da8ff;
    --accent-color: #ff9500;
    --accent-light: #fff7ed;
    --warning-color: #e53935;
    --warning-light: rgba(229, 57, 53, 0.1);
    --success-color: #27ae60;
    --dark-color: #1a1a1a;
    --light-color: #f9f9f9;
    --gray-color: #f0f0f0;
    --text-color: #333;
    --text-light: #666;
}

/* Thanks Container Styles */
.thanks-container {
    display: none;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.02) 0%, var(--primary-light) 100%);
    border-left: 3px solid var(--secondary-color);
    border-radius: 0 8px 8px 0;
    padding: 60px 40px;
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.08);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.thanks-container:before {
    content: "";
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(39, 174, 96, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.thanks-container:after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.thanks-content {
    position: relative;
    z-index: 1;
}

.thanks-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.thanks-icon:before {
    content: "✓";
    color: white;
    font-size: 36px;
    font-weight: bold;
}

.thanks-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 70%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.thanks-message {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.thanks-details {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid var(--primary-light);
}

.thanks-details-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.thanks-details-title:before {
    content: "📧";
    font-size: 24px;
}

.thanks-info-list {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.thanks-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-color);
}

.thanks-info-item:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
    margin-top: 2px;
}

/* 入力内容確認セクション */
.input-summary {
    background: var(--light-color);
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid var(--gray-color);
    text-align: left;
}

.input-summary-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.input-summary-title:before {
    content: "📝";
    font-size: 24px;
}

.summary-grid {
    display: grid;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.summary-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    align-items: start;
}

.summary-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.summary-value {
    color: var(--text-color);
    font-size: 16px;
    word-break: break-word;
    white-space: pre-wrap;
}

.summary-value.empty {
    color: var(--text-light);
    font-style: italic;
}
