:root {
    --primary-color: #7FB394;
    --primary-dark: #66967A;
    --bg-color: #F7F9F8;
    --bg-light: #FFFFFF;
    --text-color: #4A4A4A;
    --text-light: #888888;
    --accent-color: #E8F1EC;
    --container-width: 1000px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

h1, h2, h3, .hero-title {
    font-family: 'Noto Serif JP', serif;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.bg-light {
    background-color: var(--bg-light);
}

/* Header */
header {
    padding: 20px 0;
    background-color: transparent;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    color: var(--text-color);
    letter-spacing: 0.1em;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: #fff;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 25% center; /* カウンセラー（左側）を優先して表示 */
}

.hero-content {
    position: relative;
    z-index: 5;
    width: 100%;
    display: flex;
    justify-content: flex-end; /* テキストを右側に寄せる */
}

.hero-text-box {
    max-width: 500px;
    margin-right: calc((100% - var(--container-width)) / 2 + 20px);
    background-color: rgba(255, 255, 255, 0.85);
    padding: 60px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.hero-sub {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(127, 179, 148, 0.3);
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 179, 148, 0.4);
}

/* Problem Section */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.problem-item {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.problem-item .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Affinity Section */
.affinity {
    background-image: linear-gradient(rgba(232, 241, 236, 0.8), rgba(232, 241, 236, 0.8)), url('assets/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

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

/* Solution Section */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.solution-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

/* Profile Section */
.profile-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.profile-image {
    flex: 0 0 300px;
}

.profile-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.profile-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-name {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Contact Section */
.contact-box {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.contact-info {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.submit-button {
    width: 100%;
    padding: 18px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: var(--primary-dark);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #eee;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    header {
        display: none;
    }

    .hero {
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
    }

    .hero-image {
        position: relative;
        width: 100%;
        height: 400px;
        opacity: 1;
    }

    .hero-image img {
        object-position: center 20%; /* 顔が見えるように調整 */
    }

    .hero-content {
        position: relative;
        justify-content: center;
        margin-top: -60px; /* 画像と少し重ねて一体感を出す */
    }

    .hero-text-box {
        margin: 0 15px;
        padding: 30px 20px;
        text-align: center;
        width: calc(100% - 30px);
        max-width: none;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .problem-grid, .solution-grid {
        grid-template-columns: 1fr;
    }

    .profile-flex {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        flex: 0 0 200px;
        width: 200px;
        margin: 0 auto;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }
}
