/* =========================================
   Pitta Design System - Kaigo Sodan Ver.
   ========================================= */

:root {
    /* Brand Colors (Original Green) */
    --color-primary: #8dc936;
    --color-primary-dark: #6fa02a;
    --color-primary-light: #eff9e4;
    /* Very pale green for backgrounds */

    /* Neutral / Text */
    --color-text-main: #4a4a4a;
    /* Softer black */
    --color-text-sub: #7a7a7a;
    --color-bg-body: #fdfdfd;
    --color-bg-alt: #f4f6f2;
    /* Light grey-green */

    /* UI Tokens */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    /* For bubbles/buttons */

    --shadow-soft: 0 10px 40px -10px rgba(141, 201, 54, 0.15);
    /* Green-tinted shadow */
    --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.05);

    --font-heading: 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

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

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: .3s;
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.text-center {
    text-align: center;
}

/* Components */
.section {
    padding: 80px 0;
}

.section-label {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    background: var(--color-primary-light);
    padding: 4px 12px;
    border-radius: 20px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 24px;
    color: var(--color-text-main);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-text-sub);
}

.marker {
    background: linear-gradient(transparent 60%, rgba(141, 201, 54, 0.3) 60%);
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(141, 201, 54, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(141, 201, 54, 0.5);
}

.btn-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(141, 201, 54, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(141, 201, 54, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(141, 201, 54, 0);
    }
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 18px 48px;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    height: 70px;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-logo img {
    height: 32px;
}

/* Hero */
.hero {
    padding-top: 140px;
    /* Header offset */
    padding-bottom: 60px;
    background-color: var(--color-primary-light);
    position: relative;
    overflow: hidden;
}

/* Abstract BG Shape */
.hero-bg-shape {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    padding-bottom: 80%;
    background: white;
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(80px);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.text-highlight {
    color: var(--color-primary);
}

.hero-badge {
    display: inline-block;
    background: white;
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--color-primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-card);
}

.visual-card-wrapper {
    position: relative;
}

.hero-img-main {
    width: 100%;
    border-radius: var(--radius-lg);
    /* mask-image: radial-gradient(white, black); Optional neat effect */
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

/* Cards (Pitta Style) */
.pitta-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 60px;
    box-shadow: var(--shadow-soft);
}

.pitta-card.reverse .about-grid {
    direction: rtl;
}

/* Visual trick */
.pitta-card.reverse .about-grid>* {
    direction: ltr;
}

/* Text Reset */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.info-box {
    background: var(--color-bg-alt);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-top: 24px;
    border-left: 5px solid var(--color-primary);
}

.info-box h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--color-primary-dark);
}

.image-bubble {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    line-height: 0;
}

.image-bubble img {
    width: 100%;
}

/* Problem Section */
.problem {
    background-color: white;
}

.problem-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.problem-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background: var(--color-bg-alt);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: .3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: #f0f4ee;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-sub);
}

.result-arrow-container {
    text-align: center;
    margin-bottom: 40px;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--color-bg-alt);
    margin: 0 auto 20px;
}

.result-box {
    background: #fff0f0;
    /* Light alert red */
    color: #c0392b;
    padding: 20px;
    border-radius: var(--radius-md);
    display: inline-block;
}

.problem-visual-center img {
    margin: 0 auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* Effect Section */
.highlight-card {
    background: linear-gradient(135deg, white, #f7fdf0);
    border: 2px solid var(--color-primary-light);
}

.effect-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.check-list {
    list-style: none;
    margin-top: 30px;
}

.check-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.check-icon {
    background: var(--color-primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Support/CTA */
.cta-box {
    /* Nested card removed */
    background: transparent;
    box-shadow: none;
    border: none;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    /* Reduced padding as parent has padding */
}

.cta-visual-row img {
    height: 150px;
    margin: 30px auto;
    border-radius: 12px;
}

.arrow-icon {
    margin-left: 8px;
    font-weight: bold;
}

.cta-note {
    font-size: 0.8rem;
    color: #999;
    margin-top: 10px;
}

/* Footer */
.footer {
    background: white;
    padding: 40px 0;
    border-top: 1px solid #eee;
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #666;
}

.footer-logo img {
    height: 24px;
}

.footer-links a {
    margin-left: 20px;
    font-size: 0.9rem;
    color: #888;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
}

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

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .about-grid,
    .effect-grid {
        grid-template-columns: 1fr;
    }

    .pitta-card {
        padding: 30px;
    }

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

    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }
}

/* =========================================
   Reverted Hero Section (From Original)
   ========================================= */
.hero {
    position: relative;
    padding: 128px 16px 128px;
    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) */
}
