/* =========================================
   Variables & Reset
========================================= */
:root {
    /* Colors */
    --color-teal: #39989E;       /* oarロゴのメインカラー */
    --color-teal-dark: #2A7A7F;
    --color-teal-light: #E8F4F5;
    --color-green: #56A838;      /* EDFロゴのグリーン */
    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-bg-light: #F9F9F9;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-main: 'Noto Sans JP', sans-serif;
    --font-accent: 'Inter', sans-serif;
    
    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Shadow */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-bg-light);
    overflow-x: hidden;
}

a {
    color: var(--color-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-teal-dark);
}

ul {
    list-style: none;
}

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

/* =========================================
   Typography & Utilities
========================================= */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 2rem; }
.text-small { font-size: 0.85rem; }
.text-muted { color: var(--color-text-muted); }

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

.text-white { color: var(--color-white); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    color: var(--color-teal);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-teal);
    border-radius: 3px;
}

.bg-teal .section-title {
    color: var(--color-white);
}

.bg-teal .section-title::after {
    background-color: var(--color-white);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--color-teal);
    color: var(--color-white);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--color-teal-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* =========================================
   Header & Navigation
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-img {
    height: 50px;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: brightness(1.05) contrast(1.1); /* 背景のベージュ色を白に飛ばして完全に透過させる */
    transform: scale(1.8); /* ロゴ自体を大きく表示する */
    transform-origin: left center; /* 左寄せで拡大 */
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list a {
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-list a:hover {
    color: var(--color-teal);
}

.nav-list .btn-primary {
    color: var(--color-white);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-teal);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* =========================================
   Hero Section
========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* Header height offset */
    overflow: hidden;
    background-color: var(--color-bg-light);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
    opacity: 0.15;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(249, 249, 249, 0.7);
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;
    z-index: 1;
}

.hero-subtitle {
    color: var(--color-teal);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 3rem;
    color: var(--color-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--color-teal);
    font-size: 5rem;
    font-family: var(--font-accent);
}

.hero-title small {
    font-size: 1.5rem;
    color: var(--color-text-muted);
}

.hero-text {
    max-width: 600px;
    font-size: 1.1rem;
    color: #444;
}

/* =========================================
   Concept Section
========================================= */
.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.concept-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.concept-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.concept-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-white);
}

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

.concept-card h3 {
    color: var(--color-teal);
    font-size: 1.4rem;
}

.concept-note {
    background-color: var(--color-white);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-teal);
    font-size: 0.95rem;
}

/* =========================================
   Flow Section
========================================= */
.flow-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--color-white);
    color: var(--color-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 20px;
}

.step-content h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.step-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.flow-arrow {
    font-size: 1.5rem;
    margin-bottom: 10px;
    opacity: 0.7;
}

/* =========================================
   Life & Support Section
========================================= */
.life-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.support-item {
    margin-bottom: 30px;
}

.support-item h3 {
    color: var(--color-teal);
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.support-item h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 24px;
    background-color: var(--color-green);
    margin-right: 10px;
    border-radius: 4px;
}

.rounded-image {
    border-radius: var(--radius-lg);
    width: 100%;
    object-fit: cover;
}

.shadow {
    box-shadow: var(--shadow-lg);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.price-table th, .price-table td {
    padding: 15px 20px;
    border: 1px solid #eee;
    text-align: left;
}

.price-table th {
    background-color: var(--color-teal-light);
    color: var(--color-teal-dark);
    font-weight: 700;
}

.price-table tr:hover {
    background-color: #fcfcfc;
}

.table-responsive {
    overflow-x: auto;
}

/* =========================================
   Staff Section
========================================= */
.staff-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.staff-quote {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-teal-dark);
    text-align: center;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
}

.staff-quote::before, .staff-quote::after {
    content: '"';
    font-size: 2rem;
    color: var(--color-teal-light);
    position: absolute;
}
.staff-quote::before { top: -10px; left: -20px; }
.staff-quote::after { bottom: -20px; right: -20px; }

.staff-list {
    background: var(--color-bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
}

.staff-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

.staff-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.manager-profile {
    border-left: 4px solid var(--color-teal);
    padding-left: 20px;
}

.manager-name {
    font-size: 1.2rem;
    color: var(--color-teal);
    margin-bottom: 2px;
}

.manager-creds {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.manager-message {
    font-size: 0.95rem;
}

/* =========================================
   Facility Info Section
========================================= */
.facility-info {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.info-list {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px 10px;
}

.info-list dt {
    font-weight: 700;
    color: var(--color-teal);
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.info-list dd {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.text-link {
    color: var(--color-teal);
    font-weight: 500;
}

/* =========================================
   Contact Form Section
========================================= */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--color-text-main);
}

.required {
    background-color: #e74c3c;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(57, 152, 158, 0.2);
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: var(--color-text-main);
    color: var(--color-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 40px;
}

.footer-logo {
    max-width: 300px;
}

.edf-logo-new {
    width: 240px;
    height: auto;
    background-color: #fcfcfc; /* 画像の背景色に近い色で枠を作る */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: contain;
}

.footer-org-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.footer-org-sub {
    font-size: 0.8rem;
    color: #ccc;
}

.footer-info {
    color: #ddd;
}

.footer-info p {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #aaa;
}

/* =========================================
   Animations & Effects
========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

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

/* =========================================
   Media Queries (Responsive)
========================================= */
@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }
    .hero-title span { font-size: 4rem; }
    .life-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }
    
    .nav.active .nav-list {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-content {
        padding: 0 20px;
        text-align: center;
    }
    .hero-overlay {
        background: rgba(255,255,255,0.85); /* モバイルでは読みやすさ重視 */
    }
    .info-list {
        grid-template-columns: 1fr;
    }
    .info-list dt {
        border-bottom: none;
        padding-bottom: 0;
    }
    .footer-content {
        flex-direction: column;
    }
}
