/* =========================================================
   SHINWA JLC — base.css
   Shared design tokens + structural components used on every page:
   reset, typography, header/hero, nav, buttons, contact block, footer.
   ========================================================= */

:root {
    /* Palette — shu-iro red (torii-gate red), warm gold accent, ink & paper */
    --ink: #221c19;
    --ink-soft: rgba(34, 28, 25, 0.66);
    --shu: #a3231f;
    --shu-dark: #7a1414;
    --gold: #c8973f;
    --gold-soft: rgba(200, 151, 63, 0.16);
    --cream: #faf6ee;
    --paper: #ffffff;
    --line: rgba(34, 28, 25, 0.1);
    --shadow-sm: 0 4px 14px rgba(34, 20, 15, 0.08);
    --shadow-md: 0 10px 28px rgba(34, 20, 15, 0.12);
    --shadow-lg: 0 16px 40px rgba(34, 20, 15, 0.18);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 9px;
    --maxw: min(94%, 1200px);

    --font-display: 'Playfair Display', serif;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Noto Sans JP', 'Noto Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    font-family: var(--font-body);
    line-height: 1.65;
    color: var(--ink);
    background:
        radial-gradient(1100px 500px at 50% -10%, var(--gold-soft), transparent 60%),
        var(--cream);
}

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

a {
    color: inherit;
}

::selection {
    background: var(--shu);
    color: #fff;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Eyebrow / section label (signature detail) ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--shu);
    margin-bottom: 10px;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--gold);
    display: inline-block;
}

.eyebrow .jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink-soft);
}

/* ---------- Hero (image banner used on every page) ---------- */
.hero {
    position: relative;
    width: var(--maxw);
    height: 320px;
    margin: 20px auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 12, 10, 0.35) 0%, rgba(20, 12, 10, 0.68) 100%);
}

.hero-text {
    position: absolute;
    inset: 0;
    z-index: 2;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.hero-kicker {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.hero-text h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 5vw, 52px);
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.hero-text p {
    font-size: clamp(15px, 2.5vw, 20px);
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.92);
}

/* ---------- Buttons ---------- */
.hero-btn,
.primary-btn,
.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--shu);
    color: #fff;
    text-decoration: none;
    padding: 12px 26px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-btn:hover,
.primary-btn:hover,
.card-btn:hover {
    background: var(--shu-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-btn:active,
.primary-btn:active,
.card-btn:active {
    transform: translateY(0);
}

/* ---------- Navigation ---------- */
.nav-wrapper {
    position: sticky;
    top: 12px;
    z-index: 50;
    width: var(--maxw);
    margin: 0 auto 34px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    padding: 10px 18px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--ink);
    font-size: 15px;
}

.brand img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

#menu-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.menu-btn {
    display: none;
    cursor: pointer;
    background: var(--shu);
    color: #fff;
    padding: 9px 16px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    user-select: none;
}

.navbar {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.navbar li a {
    display: block;
    text-decoration: none;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.25s ease, color 0.25s ease;
}

.navbar li a:hover {
    background: var(--gold-soft);
    color: var(--shu-dark);
}

.navbar li a[aria-current="page"] {
    background: var(--shu);
    color: #fff;
}

/* ---------- Contact ---------- */
.contact-section,
.container2 {
    width: var(--maxw);
    margin: 50px auto 34px;
    background: var(--paper);
    padding: 40px 24px;
    text-align: center;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.contact-section h2,
.container2 h2 {
    font-family: var(--font-heading);
    color: var(--shu);
    font-size: clamp(24px, 3.4vw, 30px);
    margin-bottom: 8px;
}

.contact-lead {
    color: var(--ink-soft);
    margin-bottom: 24px;
    font-size: 15px;
}

.contact-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.contact-link,
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    background: var(--cream);
    padding: 13px 18px;
    border-radius: 12px;
    border: 1px solid var(--line);
    font-weight: 500;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.contact-link:hover {
    color: var(--shu-dark);
    background: var(--gold-soft);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.icon,
.small-icon {
    width: 22px;
    height: 22px;
}

/* ---------- Footer ---------- */
footer.site-footer {
    width: var(--maxw);
    margin: 10px auto 30px;
    background: linear-gradient(135deg, var(--shu) 0%, var(--shu-dark) 100%);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 22px 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.footerimg {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.75);
}

.footer-tagline {
    font-size: 12.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 2px;
}

.footer-links {
    display: flex;
    gap: 18px;
    list-style: none;
    font-size: 14px;
}

.footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-note {
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 12px;
    margin-top: 4px;
}

/* ---------- Responsive: tablet ---------- */
@media (max-width: 900px) {
    .hero {
        height: 280px;
    }
}

/* ---------- Responsive: mobile ---------- */
@media (max-width: 640px) {
    .hero {
        width: 94%;
        height: 260px;
        margin-top: 14px;
        border-radius: 16px;
    }

    .hero-text h1 {
        font-size: 27px;
    }

    .nav-wrapper {
        padding: 10px 14px;
        top: 8px;
    }

    .menu-btn {
        display: block;
    }

    .navbar {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        margin-top: 12px;
    }

    #menu-toggle:checked~.navbar {
        display: flex;
    }

    .navbar li a {
        text-align: center;
        background: var(--cream);
    }

    .contact-row {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-link,
    .contact-item {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
    }

    footer.site-footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}
