/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0050a0;
    --secondary-color: #1a2a3a;
    --accent-color: #00a0d4;
    --text-color: #2c3e50;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --gradient-1: linear-gradient(135deg, #0050a0, #00a0d4);
    --gradient-2: linear-gradient(45deg, rgba(0, 80, 160, 0.05), rgba(0, 160, 212, 0.05));
    --spacing-unit: 8rem;
    --container-width: 1200px;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: #fff;
    letter-spacing: 0.02em;
}

/* Global Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--spacing-unit) 0;
    width: 100%;
}

#greeting {
    position: relative;
    color: #fff;
}

.greeting-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#greeting::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

#greeting .section-inner {
    position: relative;
    z-index: 2;
}

#greeting .section-title h2 {
    color: #fff;
}

#services {
    background: var(--secondary-color);
    color: #fff;
}

#services .section-title h2 {
    color: #fff;
}

.section-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
    text-decoration: none;
    color: var(--secondary-color);
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo {
    height: 45px;
    width: auto;
}

header h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
    background: url('../images/頚部.png') center center/cover no-repeat;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.4;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.hero-description {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    line-height: 1.8;
    opacity: 0.9;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* Greeting Section */
.greeting-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.greeting-content p {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 2rem;
    color: #fff;
}

.mission-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.8;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.cta-container {
    text-align: center;
    margin-top: 3rem;
}

.outline-button {
    display: inline-block;
    padding: 1rem 3rem;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.outline-button:hover {
    background: #fff;
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.service-image-placeholder {
    width: 100%;
    padding-top: 66.67%; /* 3:2 アスペクト比 */
    background: var(--light-gray);
    position: relative;
}

.service-card h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.service-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0 1.5rem 1.5rem;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
        margin: 1.2rem;
    }

    .service-card p {
        margin: 0 1.2rem 1.2rem;
    }
}

/* Contact Section */
.contact-section {
    background: var(--light-gray);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-lead {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

#contact-form {
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

button[type="submit"] {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

button[type="submit"]:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: #fff;
    padding: calc(var(--spacing-unit) * 0.75) 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 6rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.footer-info {
    flex: 2;
}

.footer-nav {
    flex: 1;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    font-weight: 500;
}

.footer-info p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-address {
    margin-top: 2rem;
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.8;
}

.copyright {
    text-align: center;
    padding: 2rem 0;
    background: rgba(0,0,0,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* Required Field */
.required {
    color: #e74c3c;
    margin-left: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --spacing-unit: 4rem;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .target-groups {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }

    nav ul {
        gap: 1.5rem;
    }

    #contact-form {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .target-group {
        padding: 1.5rem;
    }

    nav ul {
        gap: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
    }
}
