/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #f7f7f7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography & Layout */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #fff;
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}

.logo {
    color: #111;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.tagline {
    font-size: 0.95rem;
    color: #666;
    letter-spacing: 1px;
}

/* Main Content */
.main-content {
    padding: 0 0 60px;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* 視認性を高めるためのオーバーレイ（必要に応じて暗くする） */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    /* 画像に合わせて調整可能 */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    width: 100%;
}

.hero-tagline {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Intro Section */
.intro-section {
    background-color: #fff;
    padding: 60px 20px;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}

.intro-content {
    max-width: 700px;
    margin: 0 auto;
}

.intro-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 24px;
    line-height: 1.5;
}

.intro-text {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 16px;
    line-height: 1.8;
    text-align: left;
}

.intro-text strong {
    color: #111;
    font-weight: 700;
}

.pc-only {
    display: none;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: #111;
}

/* Form Styles */
.order-form {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #eaeaea;
}

.form-group {
    border: none;
    margin-bottom: 40px;
}

.group-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #222;
    width: 100%;
    display: block;
}

.form-item {
    margin-bottom: 24px;
}

.form-item label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form-item .block-label {
    display: block;
    font-weight: 500;
    margin-bottom: 12px;
}

.required {
    display: inline-block;
    background-color: #222;
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.optional {
    display: inline-block;
    background-color: #e0e0e0;
    color: #333;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fafafa;
    color: #333;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
    outline: none;
    border-color: #222;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.1);
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label,
.checkbox-label {
    display: inline-flex;
    align-items: center;
    font-weight: 400 !important;
    cursor: pointer;
}

.radio-label input,
.checkbox-label input {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #222;
    cursor: pointer;
}

.hidden-input-wrapper {
    display: none;
    margin-top: 16px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 6px;
    border-left: 4px solid #222;
}

.hidden-input-wrapper label {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Button */
.form-actions {
    margin-top: 48px;
    text-align: center;
}

.submit-btn {
    background-color: #222;
    color: #fff;
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: #000;
}

.submit-btn:active {
    transform: translateY(2px);
}

/* Footer */
.footer {
    background-color: #2b5c38;
    /* Green background as requested */
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 20px;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #fff;
}

/* Legal Section */
.legal-section {
    padding: 0;
}

.legal-table-wrapper {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #eaeaea;
    margin-bottom: 40px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
    padding: 16px;
    border-bottom: 1px solid #eaeaea;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    width: 30%;
    font-weight: 600;
    color: #111;
    background-color: #fafafa;
}

.legal-table td {
    width: 70%;
    color: #333;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table a {
    color: #2b5c38;
    text-decoration: underline;
}

.back-link {
    text-align: center;
}

.btn-outline {
    display: inline-block;
    padding: 14px 30px;
    border: 2px solid #222;
    color: #222;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #222;
    color: #fff;
}

.footer-links {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0 5px;
}

.footer-links a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* Legal Text Wrapper */
.legal-text-wrapper {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #eaeaea;
    margin-bottom: 40px;
    text-align: left;
}

.legal-text-wrapper h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 30px 0 15px;
    border-left: 4px solid #222;
    padding-left: 15px;
}

.legal-text-wrapper p,
.legal-text-wrapper ul,
.legal-text-wrapper ol {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
}

.legal-text-wrapper ul,
.legal-text-wrapper ol {
    padding-left: 20px;
}

.legal-text-wrapper li {
    margin-bottom: 10px;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 30px;
    line-height: 1.5;
}

.modal-close-btn {
    width: 100%;
    cursor: pointer;
}

/* Form Security & Agreement Items */
.terms-item {
    margin-top: 40px;
    margin-bottom: 20px !important;
    display: flex;
    justify-content: center;
}

.terms-item a {
    color: #2b5c38;
    text-decoration: underline;
    font-weight: 600;
}

.turnstile-item {
    display: flex;
    justify-content: center;
    margin-bottom: 30px !important;
}

/* Phone Inquiry Section */
.phone-inquiry {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px dashed #ccc;
    text-align: center;
}

.phone-inquiry-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.phone-inquiry-hours {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 24px;
}

.phone-btn {
    display: inline-block;
    background-color: #2b5c38;
    /* Matches footer green */
    color: #fff;
    text-decoration: none;
    padding: 16px 60px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(43, 92, 56, 0.2);
}

.phone-btn:hover {
    background-color: #21462a;
}

.phone-btn:active {
    transform: translateY(2px);
}

/* Media Queries */
@media (min-width: 768px) {
    .pc-only {
        display: inline;
    }

    .hero-tagline {
        font-size: 2.5rem;
    }

    .intro-title {
        font-size: 2rem;
    }

    .intro-text {
        font-size: 1.15rem;
    }

    .order-form,
    .legal-table-wrapper {
        padding: 50px;
    }

    .radio-group,
    .checkbox-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
    }

    .submit-btn {
        width: auto;
        min-width: 300px;
    }
}