/*
  企業向け介護相談窓口 LP
  よるりメディカルサイトデザイン準拠
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
    /* Colors - よるりメディカルサイト準拠（指定カラー #8dc936） */
    --color-primary: #8dc936;
    --color-primary-dark: #6fa02a;
    --color-primary-light: #a5d85a;
    --color-secondary: #666666;
    --color-accent: #8dc936;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-lighter: #999999;
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-bg-section: #f5f5f5;
    --color-border: #eeeeee;
    --color-success: #8dc936;

    /* Typography */
    --font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 96px;
    --spacing-xxl: 128px;

    /* Layout */
    --container-max-width: 1280px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* Container */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header (Hero Section) */
.hero {
    position: relative;
    padding: var(--spacing-xxl) var(--spacing-sm) var(--spacing-xxl);
    background-image: url('yoruri_lp_fv.png');
    background-size: auto 100%;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fdf4 50%, #f0f7e8 100%);
    opacity: 0.95;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(141, 201, 54, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(141, 201, 54, 0.03) 0%, transparent 50%);
    background-size: 100% 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5%;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
    width: 100%;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title-main {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 64px;
    color: #333333;
    text-align: center;
}

.hero-title-sub {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 500;
    line-height: 1.6;
    margin: 64px auto 32px;
    color: #333333;
    text-align: center;
    white-space: nowrap;
    width: fit-content;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
}

.hero-decoration {
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
}

.hero-badge {
    display: block;
    padding: 8px 32px;
    background: linear-gradient(135deg, #8dc936 0%, #6fa02a 100%);
    color: white;
    border-radius: 25px;
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 500;
    margin: 32px auto 0;
    box-shadow: 0 4px 12px rgba(141, 201, 54, 0.3);
    animation: pulse 2s ease-in-out infinite;
    text-align: center;
    width: fit-content;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* =========================================
   Design Improvements (Rounded Font & Styles)
   ========================================= */

/* Font Upgrade */
:root {
    --font-heading: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
}

h1,
h2,
h3,
.section-title,
.hero-title-main,
.hero-title-sub,
.hero-badge {
    font-family: var(--font-heading);
}

/* Alternating Background for Cards */
.bg-green {
    background: linear-gradient(180deg, #f8fdf4 0%, #ffffff 100%);
    border: 1px solid #e2f0d9;
}

/* Highlight Effect Card */
.highlight-card {
    border: 3px solid var(--color-primary);
    box-shadow: 0 20px 40px rgba(141, 201, 54, 0.2);
    position: relative;
    overflow: visible;
}

.highlight-card::before {
    content: "重要";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hand-drawn Marker Effect */
.marker-hand {
    background: linear-gradient(transparent 60%, rgba(255, 240, 0, 0.6) 60%);
    padding: 0 4px;
    font-weight: bold;
    display: inline;
}

/* Floating CTA for Mobile */
.floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
    border-top: 1px solid #eee;
    transform: translateY(100%);
    animation: slideUp 0.5s ease-out forwards 1s;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.floating-cta .btn {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(141, 201, 54, 0.4);
}

/* Desktop: Hide Floating CTA */
@media (min-width: 769px) {
    .floating-cta {
        display: none;
    }
}

/* =========================================
   Final Polish: CTA Card & Hero BG
   ========================================= */

/* Use standard Pitta card for CTA */
.cta-card-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    /* Ensure white background */
}

/* Unified Image Style for CTA and others */
.cta-visual-center {
    margin: 32px 0;
    text-align: center;
}

.cta-img-unified {
    max-width: 200px;
    /* Force smaller size as requested */
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    /* Optional slight round */
}

/* Revert Hero Overlay to Original (Darker/Less Hazy) */
.hero-background {
    background: transparent !important;
    /* Remove the white overlay */
    opacity: 1 !important;
    /* Full opacity */
}

/* Also ensure pattern doesn't interfere too much */
.hero-pattern {
    opacity: 0.5;
    /* Reduce pattern if needed, or keep standard */
}

/* =========================================
   Consistency Updates (Card Size & Hero)
   ========================================= */

/* 1. Hero Visibility */
.hero-title-main {
    text-shadow: 0 4px 8px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
    color: #2c4a1b;
    /* Ensure dark enough contrast */
}

.hero-title-sub,
.hero-badge {
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

/* 2. Uniform Card Sizes */
.pitta-card,
.cta-card-wrapper {
    min-height: 600px;
    /* Base height for consistency */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically if short */
}

/* 3. About Image Cropping (Upper Body) */
.about .about-visual img {
    max-height: 400px;
    /* Limit height to match others */
    width: 100%;
    object-fit: contain;
    /* or cover if we want to crop specifically */
    object-position: top;
    /* Focus on faces/upper body */
}

/* 4. Support Section Alignment */
.cta-card-wrapper {
    max-width: 1060px !important;
    /* Match other cards (was 800px) */
    width: 100%;
}

.cta-box {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.cta-header h2 {
    font-size: 2.4rem;
    /* Larger font */
    margin-bottom: 1rem;
}

.cta-header p {
    font-size: 1.2rem;
    /* Larger text */
}

.cta-visual-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    /* Fixed height for image area */
}

.cta-img-unified {
    max-height: 100%;
    max-width: 300px;
    /* Slightly larger allow */
    width: auto;
}

/* =========================================
   Visual Refinements (Hero & Support Image)
   ========================================= */

/* Hero: Semi-transparent overlay for legibility + visibility */
.hero-background {
    background: rgba(255, 255, 255, 0.85) !important;
    /* High opacity white */
    opacity: 1 !important;
    /* Optional: Gradient to make edges blend if needed, but flat white usually works for 'faint' look */
    /* background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.7), rgba(255,255,255,0.9)) !important; */
}

.hero-title-main {
    /* Remove shadow if background is white enough, to match clean 'Pitta' look, or keep subtle */
    text-shadow: none;
    color: #333;
    /* Dark text */
}

.hero-title-sub {
    text-shadow: none;
}

/* Support Image: Landscape Crop */
.cta-visual-center {
    height: auto;
    /* Allow sizing by image */
    margin: 30px auto;
    width: 100%;
    max-width: 600px;
    /* Limit width */
    overflow: hidden;
    border-radius: var(--radius-md);
}

.cta-img-unified {
    width: 100%;
    height: 250px;
    /* Fixed height for landscape aspect */
    max-width: none;
    /* Override previous max-width */
    object-fit: cover;
    /* Crop to fill */
    object-position: 50% 20%;
    /* Focus on faces/upper body (adjust as needed) */
}