/* REOrGA Design System CSS */

/* CSS Variables for Design System */
:root {
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 20px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 72px;

    --radius-card: 12px;
    --radius-btn: 24px;
    --radius-chip: 16px;
    --radius-input: 8px;

    --size-btn-height: 48px;
    --size-chip-height: 32px;
    --size-input-height: 44px;
}

/* Base Typography */
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #1E2A36;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.8;
}

.font-en {
    font-family: 'Montserrat', sans-serif;
}

/* Typography Styles - Design System */
.h-hero {
    font-size: 2.5rem;
    line-height: 1.3;
}

.h-section {
    font-size: 1.75rem;
    line-height: 1.4;
}

.h-sub {
    font-size: 1.25rem;
    line-height: 1.5;
}

.text-body {
    font-size: 1rem;
    line-height: 1.8;
}

.text-meta {
    font-size: 0.875rem;
    line-height: 1.6;
}

.text-eyebrow {
    font-size: 0.75rem;
    line-height: 1.6;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Button Styles - Design System */
.btn-primary {
    height: var(--size-btn-height);
    padding: 0 24px;
    border-radius: var(--radius-btn);
    transition: all 0.3s ease;
    font-weight: 700;
    letter-spacing: 0.05em;
    background-color: #0B4BCF;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #003399;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 68, 204, 0.3);
}

.btn-secondary {
    height: var(--size-btn-height);
    padding: 0 24px;
    border-radius: var(--radius-btn);
    border: 1px solid #0B4BCF;
    background: transparent;
    transition: all 0.3s ease;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #0B4BCF;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #0B4BCF;
    color: white;
}

.btn-ghost {
    height: var(--size-btn-height);
    padding: 0 24px;
    border-radius: var(--radius-btn);
    border: 1px solid white;
    background: transparent;
    color: white;
    transition: all 0.3s ease;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Card Styles - Design System */
.card-base {
    border-radius: var(--radius-card);
    padding: var(--space-md) var(--space-lg);
    border: 1px solid #E5E7EB;
    background: white;
}

.card-service {
    border-radius: var(--radius-card);
    padding: var(--space-md) var(--space-lg);
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
    background: white;
}

.card-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-article {
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    background: white;
}

.card-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Section Spacing - Design System */
.section-spacing {
    padding: var(--space-xxl) 0;
}

.section-title-spacing {
    margin-bottom: var(--space-lg);
}

.block-spacing {
    margin: var(--space-lg) 0;
}

/* Common Components - Design System */
.chip-filter {
    height: var(--size-chip-height);
    border-radius: var(--radius-chip);
    padding: 0 16px;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: 1px solid #D1D5DB;
    background: white;
    color: #6B7280;
    cursor: pointer;
}

.chip-filter.active {
    background-color: #0B4BCF;
    color: white;
    border-color: #0B4BCF;
}

.chip-filter:hover {
    border-color: #0B4BCF;
    color: #0B4BCF;
}

.chip-filter.active:hover {
    background-color: #003399;
}

/* News Row */
.news-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-md);
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.news-row:hover {
    background-color: rgba(0, 68, 204, 0.06);
}

/* Form Components */
.form-input {
    height: var(--size-input-height);
    border-radius: var(--radius-input);
    border: 1px solid #D1D5DB;
    padding: 0 12px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.form-input:focus {
    outline: none;
    border-color: #0B4BCF;
    box-shadow: 0 0 0 1px #0B4BCF;
}

.form-textarea {
    border-radius: var(--radius-input);
    border: 1px solid #D1D5DB;
    padding: 12px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    min-height: 120px;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: #0B4BCF;
    box-shadow: 0 0 0 1px #0B4BCF;
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Diagonal Clips */
.diagonal-clip {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.diagonal-clip-top {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.diagonal-clip-bottom {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Heading Line Animation */
.heading-line {
    display: inline-block;
    position: relative;
}

.heading-line::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 3px;
    background-color: #0B4BCF;
    transition: width 0.6s ease-out;
}

.reveal.active .heading-line::after {
    width: 60px;
}

/* Hover Card Effect */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Pagination */
.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
}

.pagination-btn:hover {
    border-color: #0B4BCF;
    color: #0B4BCF;
}

.pagination-btn.active {
    background-color: #0B4BCF;
    color: white;
    border-color: #0B4BCF;
}

/* Section / Title Block */
.title-block {
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.title-block__eyebrow {
    font-size: 0.75rem;
    line-height: 1.6;
    letter-spacing: 0.2em;
    font-weight: 700;
    text-transform: uppercase;
    color: #0B4BCF;
}

.title-block__title {
    font-size: 1.75rem;
    line-height: 1.4;
    font-weight: 700;
    color: #0C1426;
}

.title-block__description {
    font-size: 1rem;
    line-height: 1.8;
    color: #4B5563;
}

/* Section / CTA */
.cta-section {
    background: #0C1426;
    color: white;
    border-radius: 16px;
    padding: var(--space-xl);
    display: grid;
    gap: var(--space-md);
    align-items: center;
}

.cta-section__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .cta-section {
        grid-template-columns: 1.2fr auto;
    }
}
