@charset "UTF-8";
/* ============================================
   Elevate Free Content Site - Unified Design System
   ============================================ */

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

:root {
    --ink: #0d0d0d;
    --cream: #f5f0e8;
    --warm-white: #faf8f4;
    --accent: #1a5fb4;
    --accent-light: #4a8fd4;
    --muted: #8a8070;
    --border: rgba(13, 13, 13, 0.1);
    --serif: 'Inter', 'Noto Sans JP', sans-serif;
    --sans: 'Inter', 'Noto Sans JP', sans-serif;
    --purple: #7c3aed;
    --purple-light: #ede9fe;
    --amber: #d97706;
    --amber-light: #fef3cd;
    --red: #dc2626;
    --red-light: #fee2e2;
    --green: #16a34a;
    --green-light: #dcfce7;
    --teal: #0d9488;
    --teal-light: #ccfbf1;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--warm-white);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-light);
}

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

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── NAV ─── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 2.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: height 0.3s;
}

.nav-logo {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 7px;
    font-size: 1.1rem;
    color: white;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 900;
}

.logo-highlight {
    font-style: normal;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-cta {
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

/* ─── FOOTER ─── */
footer,
.site-footer {
    background: #0d0d0d !important;
    color: #ffffff !important;
    padding: 3.5rem 5vw 1.5rem;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.footer-brand {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.8rem;
}

.footer-brand span:not(.logo-highlight) {
    display: block;
    font-family: sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.2rem;
}

.footer-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.8;
}

.footer-col-title {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
}

/* ─── CARDS ─── */
.article-card {
    background: var(--warm-white);
    padding: 2.2rem;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: background 0.2s;
    position: relative;
    overflow: hidden;
}

.article-card:hover {
    background: var(--cream);
}

.card-tag {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--accent);
    color: white;
    padding: 0.22rem 0.7rem;
    border-radius: 50px;
    display: inline-block;
    align-self: flex-start;
}

.card-title {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
}

.card-arrow {
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ─── CATEGORY ELEMENTS ─── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
}

.cat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.8rem 1.4rem;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* ─── ARTICLE LAYOUT ─── */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-header {
    padding: 6rem 0 3rem;
    text-align: center;
}

.article-breadcrumb {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    align-items: center;
}

.article-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    opacity: 0.8;
}

.article-breadcrumb a:hover {
    color: var(--accent);
    opacity: 1;
}

.article-breadcrumb .sep {
    opacity: 0.4;
}

.article-tag {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.article-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--ink);
    padding-bottom: 5rem;
}

.article-content h2 {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 700;
    margin: 3.5rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.article-content h3 {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    padding-left: 0.8rem;
    border-left: 4px solid var(--accent);
}

.article-content p {
    margin-bottom: 1.8rem;
}

.article-content strong {
    font-weight: 700;
    color: var(--ink);
}

/* ─── ARTICLE COMPONENTS ─── */
.example-box {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin: 2.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.example-box .english {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.example-box .japanese {
    font-size: 0.95rem;
    color: var(--muted);
}

.callout {
    padding: 2rem;
    border-radius: 12px;
    margin: 2.5rem 0;
    border-left: 5px solid transparent;
}

.callout.info {
    background: #f0f7ff;
    border-left-color: #3b82f6;
}

.callout.success {
    background: #f0fdf4;
    border-left-color: #22c55e;
}

.callout.warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.callout.danger {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.callout-title {
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    font-size: 0.95rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.compare-table th,
.compare-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.compare-table th {
    background: rgba(13, 13, 13, 0.02);
    font-weight: 700;
    color: var(--muted);
}

.highlight {
    background: rgba(56, 189, 248, 0.2);
    padding: 0 0.2rem;
    border-radius: 4px;
}

.highlight-b {
    background: rgba(129, 140, 248, 0.2);
    padding: 0 0.2rem;
    border-radius: 4px;
}

.cta-banner {
    background: linear-gradient(135deg, #1a5fb4 0%, #2d3a8c 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin: 5rem 0;
}

.cta-banner h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: white;
    border: none;
    padding: 0;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: var(--accent);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 1.5rem;
    transition: transform 0.2s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    color: var(--accent);
}

/* ─── ANIMATIONS ─── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE ─── */

/* ─── AD SLOTS ─── */
.ad-slot {
    display: none !important;
}

@media (max-width: 900px) {
    nav {
        padding: 0 1.2rem;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .cat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .example-box {
        padding: 1.5rem;
    }
}

/* ─── AMAZON PRODUCT CARD ─── */
.amazon-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    margin: 3rem 0;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.23s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.amazon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-light);
}

.amazon-img-box {
    flex-shrink: 0;
    width: 120px;
    height: 160px;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.amazon-img-box img {
    max-height: 100%;
    object-fit: contain;
}

.amazon-info {
    flex-grow: 1;
}

.amazon-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
    display: block;
}

.amazon-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.amazon-author {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.2rem;
}

.amazon-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ff9900;
    color: white !important;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.amazon-card:hover .amazon-btn {
    background: #e68a00;
}

@media (max-width: 600px) {
    .amazon-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .amazon-img-box {
        width: 140px;
        height: 180px;
        margin: 0 auto;
    }

    .amazon-btn {
        width: 100%;
        justify-content: center;
    }
}