/*
Theme Name: Loylyland Kawasaki LP
Theme URI: https://example.com/
Author: Your Team
Description: LP upload theme for WordPress (ZIP).
Version: 1.3.0
*/

/* ────────── Custom Properties ────────── */
:root {
    /* Color */
    --base:          #eee9df;
    --surface:       #f7f4ee;
    --ink:           #1b1916;
    --muted:         #6a645b;
    --accent:        #9b8248;
    --accent-hover:  #7f6a3a;
    --ink-strong:    #131110;
    --ink-soft:      #2c2924;
    --divider:       #e7ded0;

    /* Type scale */
    --fs-body:    15px;
    --fs-sm:      13px;
    --fs-xs:      11px;
    --lh-body:    1.7;

    /* Spacing */
    --sp-section: 64px;
    --sp-block:   40px;
    --sp-card:    24px;

    /* Shape */
    --radius:       6px;
    --radius-pill:  999px;
    --shadow-soft:  0 4px 16px rgba(0,0,0,0.04);
    --shadow-img:   0 4px 16px rgba(0,0,0,0.08);
}

/* ────────── Base ────────── */
body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #ddd5c8;
    color: var(--ink);
    margin: 0;
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.mobile-viewport {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    background-color: var(--base);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 56px rgba(0,0,0,0.10);
}

/* ────────── Typography ────────── */
.serif {
    font-family: 'Shippori Mincho B1', serif;
}

.en-thin {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.title-xl {
    font-size: clamp(26px, 5.8vw, 34px);
    line-height: 1.35;
    letter-spacing: 0.01em;
}
.title-lg {
    font-size: clamp(21px, 4.5vw, 26px);
    line-height: 1.4;
    letter-spacing: 0.01em;
}
.title-md {
    font-size: clamp(17px, 3.8vw, 21px);
    line-height: 1.5;
    letter-spacing: 0;
}

p {
    letter-spacing: 0.02em;
}

.btn-text {
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* ────────── Vertical text ────────── */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    opacity: 0.06;
}

/* ────────── Sections ────────── */
.section-light {
    background: var(--base);
    color: var(--ink);
}
.section-ink {
    background: var(--ink-strong);
    color: var(--surface);
}
.section-accent {
    background: var(--accent);
    color: var(--ink);
}
.section-light,
.section-accent,
.bg-white {
    border-top: 1px solid rgba(0,0,0,0.04);
}
.section-ink {
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ────────── Text utilities ────────── */
.text-ink       { color: var(--ink); }
.text-ink\/70   { color: var(--muted); }
.text-ink\/60   { color: var(--muted); }
.text-ink\/50   { color: var(--muted); }
.text-ink\/10   { color: rgba(26, 24, 22, 0.08); }

/* ────────── Cards ────────── */
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid rgba(26, 24, 22, 0.07);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
.card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.25;
}
.card-dark {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
}

/* ────────── Pills & Chips ────────── */
.pill {
    display: inline-block;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 3px;
    background: rgba(160,133,69,0.12);
    color: var(--ink);
}
.step-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--ink);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ────────── Images ────────── */
.shadow-soft { box-shadow: var(--shadow-soft); }
.img-frame {
    border-radius: var(--radius);
    box-shadow: var(--shadow-img);
    border: 1px solid rgba(0,0,0,0.04);
}
.img-mask {
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* ────────── Buttons ────────── */
.accent-button {
    background: var(--accent);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius);
    min-height: 52px;
    transition: background 0.2s ease;
}
.accent-button:hover {
    background: var(--accent-hover);
}
.accent-button:active {
    transform: scale(0.98);
}

/* Dark CTA variant */
.cta-dark {
    background: var(--ink);
    color: var(--base);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    min-height: 52px;
    transition: background 0.2s ease;
}
.cta-dark:hover {
    background: var(--ink-soft);
}

/* ────────── Forms ────────── */
.form-input {
    background: transparent;
    border-color: rgba(26, 24, 22, 0.25);
    color: var(--ink);
    font-size: var(--fs-body);
    border-radius: 0;
}
.form-input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.focus-ring:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ────────── Text shadow ────────── */
.text-shadow-soft {
    text-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* ────────── Grain (controlled) ────────── */
.grain {
    position: relative;
}
.grain::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
    opacity: 0.008;
    pointer-events: none;
    z-index: 1;
}

/* ────────── Fog / Gradients (restrained) ────────── */
.fog-overlay {
    background: linear-gradient(
        to bottom,
        var(--base) 0%,
        transparent 12%,
        transparent 85%,
        var(--base) 100%
    );
}
.warm-fog {
    background: linear-gradient(
        to bottom,
        rgba(235,230,219,0.5) 0%,
        transparent 20%,
        transparent 75%,
        rgba(19,17,16,0.7) 100%
    );
}

/* ────────── Hero staggered fade ────────── */
.hero-fade {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-fade-1 { animation-delay: 0.3s; }
.hero-fade-2 { animation-delay: 0.6s; }
.hero-fade-3 { animation-delay: 0.9s; }
.hero-fade-4 { animation-delay: 1.2s; }

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

/* ────────── FAQ Accordion ────────── */
.faq-item {
    border-bottom: 1px solid rgba(26, 24, 22, 0.08);
}
.faq-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--ink);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}
.faq-toggle::after {
    content: "+";
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--muted);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.2s ease;
}
.faq-toggle[aria-expanded="true"]::after {
    content: "−";
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-answer.open {
    max-height: 500px;
}
.faq-answer-inner {
    padding: 0 0 20px 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
}

/* ────────── Mobile Nav Overlay ────────── */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: rgba(19, 17, 16, 0.97);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}
.nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%);
}
.nav-overlay a {
    display: block;
    padding: 14px 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.2s ease;
}
.nav-overlay a:hover,
.nav-overlay a:focus {
    color: #ffffff;
}
.nav-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* ────────── Review card ────────── */
.review-card {
    background: var(--surface);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius);
    padding: 20px;
}

/* ────────── Problem checklist ────────── */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.check-list li {
    position: relative;
    padding: 12px 12px 12px 34px;
    background: var(--surface);
    border: 1px solid rgba(26, 24, 22, 0.08);
    border-radius: var(--radius);
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 12px;
    top: 12px;
    color: var(--accent);
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
}

/* ────────── Comparison tables ────────── */
.compare-wrap {
    overflow-x: auto;
    border: 1px solid rgba(26, 24, 22, 0.1);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 4px 12px rgba(0,0,0,0.035);
}
.compare-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}
.compare-table th,
.compare-table td {
    border-bottom: 1px solid rgba(26, 24, 22, 0.08);
    border-right: 1px solid rgba(26, 24, 22, 0.08);
    text-align: left;
    vertical-align: top;
    padding: 12px;
    line-height: 1.7;
    color: var(--ink);
}
.compare-table th:last-child,
.compare-table td:last-child {
    border-right: none;
}
.compare-table thead th {
    background: #f1ece2;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.55;
}
.compare-table tbody td {
    font-size: 13px;
}
.compare-table tbody td:nth-child(2),
.compare-table tbody td:nth-child(3) {
    font-family: 'IBM Plex Sans', sans-serif;
    font-variant-numeric: tabular-nums;
}

.compare-wrap::-webkit-scrollbar {
    height: 8px;
}
.compare-wrap::-webkit-scrollbar-thumb {
    background: rgba(26, 24, 22, 0.2);
    border-radius: 999px;
}
.ledger-shift {
    margin-left: 6px;
}

/* ────────── Guide cards ────────── */
.guide-layout {
    display: grid;
    gap: 12px;
}
.guide-card {
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(26, 24, 22, 0.1);
    border-radius: var(--radius);
    padding: 18px;
}
.guide-card:nth-child(2) {
    margin-left: 8px;
}
.guide-card:nth-child(3) {
    margin-right: 6px;
}
.guide-items {
    list-style: none;
    margin: 0;
    padding: 0;
}
.guide-items li {
    padding: 10px 0;
    border-top: 1px solid rgba(26, 24, 22, 0.08);
}
.guide-items li:first-child {
    border-top: none;
    padding-top: 0;
}
.guide-label {
    display: block;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 3px;
}

/* ────────── Map embed ────────── */
.map-embed {
    overflow: hidden;
    border: 1px solid rgba(26, 24, 22, 0.1);
    background: var(--surface);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.map-embed iframe {
    display: block;
    width: 100%;
    height: 220px;
    border: 0;
}

/* ────────── Header scroll state ────────── */
.site-header {
    transition: background 0.3s ease;
}
.site-header.scrolled {
    background: rgba(238, 233, 223, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.site-header.scrolled h1 {
    color: rgba(26, 25, 22, 0.7);
}
.site-header.scrolled .header-bar {
    background: rgba(26, 25, 22, 0.6);
}

/* ────────── Floating CTA ────────── */
.floating-cta {
    pointer-events: none;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.floating-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.floating-cta-inner {
    pointer-events: auto;
    background: rgba(238, 233, 223, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 25, 22, 0.08);
}

/* ────────── Reduced motion ────────── */
@media (prefers-reduced-motion: reduce) {
    .hero-fade {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .floating-cta {
        transition: none;
    }
    .faq-answer {
        transition: none;
    }
    .nav-overlay {
        transition: none;
    }
    .site-header {
        transition: none;
    }
}
