/* ------------------------------------------------------------
   Bilingual typography (JA / EN) via lang attribute + variables
   Requirement:
   - Set <html lang="ja"> or <html lang="en"> in your layout
------------------------------------------------------------ */

:root {
    --bg-main: #FAF8F1;
    /* Font stacks */
    --font-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    --font-en: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    /* Defaults (JA) */
    --font-main: var(--font-ja);
    --body-line-height: 1.8;
    --body-letter-spacing: 0;
    --heading-letter-spacing: 0;
    --hero-h1-letter-spacing: 0;
}

/* English pages */
html:lang(en) {
    --font-main: var(--font-en);
    --body-line-height: 1.65;
    --body-letter-spacing: 0.01em;
    --heading-letter-spacing: -0.01em;
    --hero-h1-letter-spacing: -0.02em;
}

/* Japanese pages */
html:lang(ja) {
    --font-main: var(--font-ja);
    --body-line-height: 1.8;
    --body-letter-spacing: 0;
    --heading-letter-spacing: 0;
    --hero-h1-letter-spacing: 0;
}

/* Base */
html {
    background-color: var(--bg-main);
    font-family: var(--font-main);
    line-height: var(--body-line-height);
}

/* Global text */
body {
    font-family: var(--font-main);
    font-weight: 400;
    line-height: var(--body-line-height);
    color: #212529;
    letter-spacing: var(--body-letter-spacing);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 600;
    line-height: 1.3;
    color: #111;
    letter-spacing: var(--heading-letter-spacing);
}

/* Hero styling */
.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: var(--hero-h1-letter-spacing);
}

.hero p {
    font-size: 1.125rem;
    color: #6c757d;
}

/*
    Bg
*/
.bg-color-m1 {
    background-color: #334443;
}

.bg-color-m2 {
    background-color: #34656D;
}

.bg-color-m3 {
    background-color: #FAEAB1;
}

.bg-color-m4 {
    background-color: #FAF8F1;
}

/*
    Font
*/
.font-xxl {
    font-weight: 300;
    font-size: 2.5em;
}

.font-xl {
    font-weight: 300;
    font-size: 1.5em;
}

.font-lg {
    font-weight: 300;
    font-size: 1.2em;
}

.font-md {
    font-weight: 300;
    font-size: 1.0em;
}

.font-sm {
    font-weight: 300;
    font-size: 0.75em;
}

.font-xs {
    font-weight: 300;
    font-size: 0.6em;
}

/* Buttons */
.btn {
    border-radius: 0.4rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.15s ease;
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

    .btn-outline-primary:hover {
        background-color: var(--color-primary);
        color: #fff;
    }

/* Optional utility for smoother heading rendering */
h1, h2, h3 {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.benefit-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.logo-dark {
    filter: brightness(0) saturate(100%); /* turns white  black */
}

.hover-bg-light:hover {
    background-color: #f8f9fa !important;
    transition: background-color 0.2s ease-in-out;
}

.transition {
    transition: background-color 0.2s ease-in-out;
}
