/* ========================================
   障がい者グループホーム 美ら桜 - Design System
   Inspired by warm, welcoming healthcare aesthetics
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    /* Primary Colors - Refined Navy Blue + Elegant Sakura Pink */
    --primary: #2C435F;
    /* 深みのあるネイビーブルー */
    --primary-light: #4A6584;
    /* やや明るいネイビーブルー */
    --primary-dark: #1E2E42;
    /* さらに濃いネイビーブルー */
    --secondary: #333333;
    /* 濃いチャコールグレー */

    /* Sakura (Pink) - くすんだ上品なピンク */
    --sakura: #E5C2C2;
    /* 落ち着いた薄ピンク */
    --sakura-light: #F5EBEB;
    /* 非常に淡いピンクグレー */
    --sakura-dark: #C9A0A0;
    /* くすみピンク */

    /* Warm Backgrounds - クリーンなオフホワイト */
    --bg-cream: #FCFCFC;
    /* ほぼ白に近いクリーム */
    --bg-sakura: #FDFBFB;
    /* ほんのり暖かみのある白 */
    --bg-warm-gray: #F7F7F7;
    /* 洗練されたライトグレー */
    --bg-white: #FFFFFF;

    /* Text Colors */
    --text-dark: #333333;
    /* 真っ黒を避けた高品位なダークグレー */
    --text-body: #555555;
    /* 読みやすいミディアムグレー */
    --text-light: #999999;
    /* 控えめなライトグレー */

    /* Accent - 控えめで上品なゴールドやセージグリーン */
    --accent-green: #8FA890;
    /* くすんだセージグリーン */
    --accent-yellow: #D5C295;
    /* シャンパンゴールド系 */
}

/* --- Base Styles --- */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--bg-cream);
    line-height: 1.8;
}

/* --- Scroll Animation Classes --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* --- Staggered Animation Delays --- */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* --- Hero Section --- */
.hero-gradient {
    background: linear-gradient(160deg, var(--bg-sakura) 0%, var(--bg-cream) 40%, var(--bg-warm-gray) 100%);
}

.hero-pattern {
    background-image:
        radial-gradient(circle at 15% 85%, rgba(249, 168, 212, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(91, 155, 213, 0.08) 0%, transparent 50%);
}

/* Full-screen hero with background image */
.hero-fullscreen {
    position: relative;
}

.hero-fullscreen img {
    transition: transform 8s ease-out;
}

.hero-fullscreen:hover img {
    transform: scale(1.03);
}


/* --- Sakura Petal Decoration --- */
.sakura-petal {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--sakura-light);
    border-radius: 50% 0 50% 0;
    opacity: 0.5;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* --- Diagonal Section Divider --- */
.section-skew {
    position: relative;
}

.section-skew::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 80px;
    background: inherit;
    transform: skewY(-2deg);
    z-index: 1;
}

.section-skew-reverse::before {
    transform: skewY(2deg);
}

/* Petal-shaped divider (alternative) */
.section-petal-divider {
    position: relative;
    overflow: hidden;
}

.section-petal-divider::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 40px;
    background: var(--sakura-light);
    border-radius: 50% 50% 0 0;
    opacity: 0.4;
}

/* --- Card Styles - Refined Premium Effect --- */
.card-warm {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-warm:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.06), 0 8px 16px rgba(0, 0, 0, 0.02);
}

/* Legacy card-hover support */
.card-hover {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.06), 0 8px 16px rgba(0, 0, 0, 0.02);
}

/* --- Service Card Icon --- */
.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 28px;
    transition: transform 0.3s ease;
}

.service-icon:hover {
    transform: scale(1.1);
}

/* --- Step Flow --- */
.step-connector {
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -32px;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), transparent);
}

@media (max-width: 768px) {
    .step-connector::after {
        top: auto;
        bottom: -16px;
        right: 50%;
        width: 2px;
        height: 16px;
        background: linear-gradient(180deg, var(--primary-light), transparent);
        transform: translateX(50%);
    }
}

/* --- CTA Button Animation - Elegant --- */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::after {
    width: 400px;
    height: 400px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(44, 67, 95, 0.25);
}

/* Secondary soft button */
.btn-soft {
    background: var(--sakura-light);
    color: var(--primary);
    border: 1px solid rgba(44, 67, 95, 0.1);
    border-radius: 8px;
    padding: 12px 32px;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.4s ease;
}

.btn-soft:hover {
    background: var(--sakura);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 194, 194, 0.4);
}

/* --- Accordion --- */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.accordion-content.open {
    max-height: 500px;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-btn.active .accordion-icon {
    transform: rotate(180deg);
}

/* --- Mobile Menu --- */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100%;
    height: 100dvh;
    /* For accurate mobile viewport height */
    background-color: #FCFCFC;
    /* cream */
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* --- Mobile Menu Overlay --- */
#mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

/* --- Navbar Scroll Effect --- */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* --- Page Header --- */
.page-header {
    background: linear-gradient(135deg, var(--bg-sakura) 0%, var(--bg-cream) 50%, var(--bg-warm-gray) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 168, 212, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

/* --- Breadcrumb --- */
.breadcrumb a {
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* --- Section Divider (gradient line) --- */
.section-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--sakura-light), var(--primary-light), var(--sakura-light), transparent);
    border-radius: 2px;
}

/* --- Facility Card Image --- */
.facility-img {
    transition: transform 0.5s ease;
}

.facility-card:hover .facility-img {
    transform: scale(1.05);
}

/* --- News Item --- */
.news-item {
    transition: background-color 0.2s ease;
}

.news-item:hover {
    background-color: var(--bg-sakura);
}

/* --- Form Styles --- */
.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.12);
    outline: none;
}

/* --- Footer --- */
.footer-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
    color: var(--sakura);
    padding-left: 4px;
}

/* --- Scroll to Top --- */
.scroll-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

/* --- Recruit Table --- */
.recruit-table tr {
    transition: background-color 0.2s ease;
}

.recruit-table tr:hover {
    background-color: var(--bg-sakura);
}

/* --- Pulse animation for CTA --- */
@keyframes gentle-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(91, 155, 213, 0.3);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(91, 155, 213, 0);
    }
}

.pulse-cta {
    animation: gentle-pulse 3s ease-in-out infinite;
}

/* --- Loading animation --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* --- Image rounded warm style - Refined --- */
.img-warm {
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* --- Decorative blob shapes - Softened --- */
.blob-sakura {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(229, 194, 194, 0.15), rgba(245, 235, 235, 0.1));
    filter: blur(60px);
    pointer-events: none;
}

.blob-blue {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(44, 67, 95, 0.08), rgba(74, 101, 132, 0.05));
    filter: blur(60px);
    pointer-events: none;
}