/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #F26622;
    /* Brand Orange */
    --color-primary-hover: #D95A1E;
    --color-secondary: #42B883;
    /* Teal Accent (Filter colors) */
    --color-dark: #333333;
    /* Dark Text */
    --color-gray-dark: #666666;
    --color-gray: #999999;
    --color-gray-light: #EFEFEF;
    --color-bg: #F8F9FA;
    /* Light Background */
    --color-bg-alt: #FDF1EA;
    /* Light Orange Background for cards */
    --color-white: #FFFFFF;

    /* Typography */
    --font-family-base: 'Noto Sans JP', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-base);
    color: var(--color-dark);
    line-height: 1.6;
    background-color: var(--color-white);
    /* Main bg is white, sections might be gray */
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--color-gray);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-bg-gray {
    background-color: var(--color-bg);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
}

/* ==========================================================================
   Components
   ========================================================================== */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
}

/* ==========================================================================
   Layout - Header & Footer
   ========================================================================== */
.header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.header-nav {
    display: flex;
    gap: 1rem;
}

.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: var(--spacing-md) 0;
    font-size: 0.875rem;
}

/* ==========================================================================
   Sections - Hero
   ========================================================================== */
.hero-section {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-white) 100%);
    border-bottom: 1px solid var(--color-gray-light);
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    color: var(--color-dark);
    letter-spacing: -0.03em;
}

.hero-title span {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray-dark);
    font-weight: 500;
}

/* ==========================================================================
   Sections - Problem
   ========================================================================== */
.problem-section {
    background-color: var(--color-white);
}

.problem-intro {
    margin-bottom: var(--spacing-lg);
    font-size: 1.15rem;
}

.problem-cards-wrapper {
    background-color: var(--color-bg-alt);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.problem-cards {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: space-between;
}

.problem-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.problem-speech-bubble {
    background-color: var(--color-bg-alt);
    /* slightly darker or white? image uses white maybe */
    background-color: var(--color-white);
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-md);
    text-align: center;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 700;
    position: relative;
    color: var(--color-gray-dark);
}

.problem-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--color-white) transparent transparent transparent;
}

.problem-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.problem-outro {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.cta-pill {
    background-color: #1274A1;
    /* Deep Teal Blue */
    color: var(--color-white);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-full);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: var(--shadow-md);
}

.cta-pill:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background-color: #0F5E84;
}

.cta-pill-text {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.cta-pill-title {
    font-size: 1.75rem;
    font-weight: 900;
}

/* ==========================================================================
   Sections - Concept
   ========================================================================== */
.concept-desc {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    background-color: var(--color-white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    flex-shrink: 0;
    margin-top: 4px;
}

.feature-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.feature-text p {
    color: var(--color-gray-dark);
    margin-bottom: 0;
}

.concept-transition {
    margin-top: var(--spacing-xl);
}

.concept-transition .lg-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--color-primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ==========================================================================
   Sections - Before/After
   ========================================================================== */
.ba-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.ba-card {
    flex: 1;
    background-color: var(--color-bg);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--radius-lg);
    min-height: 280px;
}

.ba-card.before {
    background-color: var(--color-bg);
    border: 1px solid var(--color-gray-light);
}

.ba-card.after {
    background-color: var(--color-bg-alt);
    /* Light Orange */
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
    border: 1px solid rgba(242, 102, 34, 0.2);
}

.ba-title {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    font-weight: 900;
}

.text-primary {
    color: var(--color-primary);
}

.ba-card p {
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
}

.ba-card ul {
    list-style: none;
}

.ba-card ul li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.ba-center-logo {
    width: 120px;
    height: 120px;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 3px solid var(--color-primary);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.logo-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

/* ==========================================================================
   Sections - Pillars
   ========================================================================== */
.pillars-section {
    background-color: var(--color-white);
}

.pillar-cards {
    display: flex;
    gap: var(--spacing-md);
    justify-content: space-between;
}

.pillar-card {
    flex: 1;
    background-color: var(--color-bg-alt);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

.pillar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 8px;
}

.pillar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.pillar-card p {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.pillar-icon-img {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}

.lg-text {
    font-size: 1.25rem;
    line-height: 1.8;
}

/* ==========================================================================
   Sections - Filters
   ========================================================================== */
.filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
}

.filter-item {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.filter-header {
    background-color: #D35400;
    /* Darker orange for filter headers */
    color: var(--color-white);
    padding: var(--spacing-md);
}

.filter-header h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.filter-header p {
    font-size: 0.9rem;
    margin: 0;
}

.filter-body {
    background-color: var(--color-bg-alt);
    padding: var(--spacing-md);
    flex-grow: 1;
    font-size: 0.95rem;
}

.filter-body ul {
    list-style: none;
}

.filter-body ul li {
    margin-bottom: 0.25rem;
}

.text-right {
    text-align: right;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Sections - About POS
   ========================================================================== */
.about-pos-section {
    background-color: var(--color-white);
}

.pos-content {
    max-width: 800px;
    margin: 0 auto;
}

.pos-logo {
    margin-bottom: var(--spacing-sm);
}

.pos-links {
    margin-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.pos-links a {
    color: var(--color-gray-dark);
    font-size: 0.9rem;
}

.pos-links a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Sections - Bottom CTA
   ========================================================================== */
.bottom-cta-section {
    background-color: var(--color-white);
    padding-bottom: var(--spacing-xl);
}

.bottom-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

.cta-pill-light {
    background-color: #79C2E3;
    /* Light Blue */
    color: var(--color-dark);
}

.cta-pill-light:hover {
    background-color: #63B2D6;
    color: var(--color-dark);
}