/*
Theme Name: RAVENOL JP
Theme URI: https://www.ravenol.de/
Author: NOVEL
Description: RAVENOL Japan custom theme.
Version: 1.0.0
Text Domain: ravenol-jp
*/

@font-face {
    font-family: "Eurostile LT Std";
    src: url("assets/fonts/EurostileLTStd.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Eurostile LT Std";
    src: url("assets/fonts/Eurostile-LT-Std-Oblique_16312.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Eurostile LT Std";
    src: url("assets/fonts/Eurostile-LT-Std-Demi_16310.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Eurostile LT Std";
    src: url("assets/fonts/Eurostile-LT-Std-Demi-Oblique_16309.ttf") format("truetype");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Eurostile LT Std";
    src: url("assets/fonts/EurostileLTStd-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Eurostile LT Std";
    src: url("assets/fonts/Eurostile-LT-Std-Bold-Oblique_16306.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Eurostile LT Std";
    src: url("assets/fonts/EurostileLTStd-Cn.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-stretch: condensed;
    font-display: swap;
}

@font-face {
    font-family: "Eurostile LT Std";
    src: url("assets/fonts/EurostileLTStd-BoldCn.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-stretch: condensed;
    font-display: swap;
}

@font-face {
    font-family: "Eurostile LT Std";
    src: url("assets/fonts/EurostileLTStd-BoldEx2.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-stretch: expanded;
    font-display: swap;
}

:root {
    --nav-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    --accent: #FFDA47;
    --text-dark: #1a1a1a;
    --white: #ffffff;
    --blue: #007ABC;
    --navy-blue: #004A9A;
    --navy: #0A2C68;
}

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



/* Force top flush even when WordPress adds admin-bar offset */
html {
    margin-top: 0 !important;
}

body {
    margin-top: -24px !important;
}

body {
    font-family: "Noto Sans JP", "Montserrat", sans-serif;
    color: var(--text-dark);
}

.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b2f6b, #0b68c6);
    color: var(--white);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(10, 44, 104, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 999;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:focus-visible {
    outline: 2px solid #0b68c6;
    outline-offset: 3px;
}

.page-header {
    text-align: center;
    margin-bottom: 56px;
}

.page-header h1 {
    font-size: 30px;
    color: var(--navy);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    font-family: "Noto Sans JP", sans-serif;
}

.page-breadcrumb {
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--navy-blue);
}

.content-inner {
    width: min(1440px, 80%);
    margin: 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.nav-wrap {
    background: transparent;
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 6px 14px 6px 26px;
    border-radius: 4px;
    position: relative;
    isolation: isolate;
    filter: drop-shadow(0 12px 24px rgba(10, 44, 104, 0.22));
}

.nav-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--white);
    clip-path: polygon(2.5% 0%, 100% 0%, 97.5% 100%, 0% 100%);
    z-index: 0;
}

.nav-wrap > * {
    position: relative;
    z-index: 1;
}
.nav {
    justify-self: end;
}

.brand img {
    width: 140px;
    display: block;
}

.nav {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    font-size: 14px;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: var(--navy);
    position: relative;
}

.nav a {
    position: relative;
    padding-bottom: 4px;
}

@media (min-width: 990px) {
    .nav {
        grid-column: 2;
        justify-self: center;
    }
}

.nav-link {
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    padding: 0 0 4px;
    letter-spacing: inherit;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: var(--navy);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-toggle {
    position: relative;
}

.nav-toggle i {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-toggle .icon-open {
    opacity: 1;
    transform: rotate(0deg);
}

.nav-toggle .icon-close {
    opacity: 0;
    transform: rotate(90deg);
}

.nav-toggle.is-open .icon-open {
    opacity: 0;
    transform: rotate(-90deg);
}

.nav-toggle.is-open .icon-close {
    opacity: 1;
    transform: rotate(0deg);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.nav-submenu {
    position: absolute;
    left: 0;
    right: 2.5%;
    top: 100%;
    background: var(--white);
    border-top: 2px solid var(--blue);
    box-shadow: 0 14px 28px rgba(10, 44, 104, 0.12);
    display: flex;
    visibility: hidden;
    pointer-events: none;
    gap: 80px;
    padding: 18px 24px 34px 24px;
    z-index: 5;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-submenu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    background: linear-gradient(to right, #1e284c 0, #1d93d1 100%);
}

.nav-submenu.is-open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.nav-submenu a {
    font-size: 14px;
    letter-spacing: 0.08em;
    color: var(--blue);
    font-weight: 700;
}

.nav-submenu a + a {
    border-left: 1px solid #e9ecef;
    padding-left: 20px;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
    width: 100%;
}

.hero-social {
    position: absolute;
    right: 40px;
    bottom: 28px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.hero-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
    display: grid;
    place-items: center;
    font-size: 14px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-social a:hover,
.hero-social a:focus-visible {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.75);
}

.site-footer {
    background: rgba(216, 216, 216, .1);
    padding: 80px 0;
}

.site-footer-inner {
    width: min(1040px, 90%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer-copy {
    font-size: 12px;
    color: #6b6b6b;
    letter-spacing: 0.03em;
}

.site-footer-social {
    display: flex;
    gap: 12px;
}

.site-footer-social a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #3f3f3f;
    color: var(--white);
    display: grid;
    place-items: center;
    font-size: 12px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.site-footer-social a:hover,
.site-footer-social a:focus-visible {
    transform: translateY(-2px);
    background: #262626;
}

.header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.2s ease;
    opacity: 0;
    z-index: 0;
}

.header {
    min-height: 50vh;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 32px 64px;
    overflow: visible;
}

.header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.35));
    pointer-events: none;
    z-index: 1;
}

.hero {
    min-height: 80%;
    width: 80%;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 32px 64px;
    overflow: visible;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-header {
    width: min(1440px, 90%);
    position: relative;
    z-index: 2;
}



@media (max-width: 990px) {
    .hero {
        min-height: 70vh;
        padding: 40px 32px 64px;
    }

    .nav-wrap {
        grid-template-columns: 1fr auto;
        gap: 0px;
        justify-items: stretch;
        align-items: center;
        padding: 7px 24px 7px;
    }

    .nav-wrap::before {
        clip-path: polygon(3% 0%, 100% 0%, 97% 100%, 0% 100%);
    }

    .brand {
        justify-self: start;
    }

    .nav-toggle {
        justify-self: end;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        width: 100%;
        flex-direction: column;
        align-items: center;
        row-gap: 10px;
        background: var(--white);
        border-radius: 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        pointer-events: none;
        max-height: 0;
        padding: 0 16px;
        overflow: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, max-height 0.2s ease, padding 0.2s ease;
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
        max-height: 480px;
        padding: 30px 16px 10px 16px;
    }

    .nav-submenu {
        position: static;
        width: calc(100% - 3%);
        justify-content: flex-start;
        box-shadow: none;
        gap: 32px;
        padding: 14px 16px 22px 16px;
    }

    .nav-submenu a {
        font-size: 13px;
    }

    .hero-social {
        right: 18px;
        bottom: 18px;
    }

    .hero-content {
        width: min(880px, 90%);
        margin-bottom: 90px;
    }

    .product-card {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 40vh;
        padding: 20px 22px;
        width: 90%;
    }

    .nav-submenu {
        gap: 18px;
        padding: 10px 12px 18px 12px;
    }

    .nav-submenu a {
        font-size: 12px;
        letter-spacing: 0.06em;
    }

    .nav-submenu.is-open {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-submenu a + a {
        border-left: none;
        padding-left: 0;
    }

    .nav {
        font-size: 13px;
        gap: 14px;
    }

    .nav-wrap {
        padding: 7px 16px 7px;
    }

    .nav-toggle {
        width: 32px;
        height: 32px;
    }

    .hero-social {
        display: none;
    }

    .brand img {
        width: 100px;
    }

    .hero-content-item {
        grid-template-columns: 1fr;
    }

    .hero-card img {
        height: 240px;
    }

    .page-header {
        margin-bottom: 40px;
    }

    .page-header h1 {
        font-size: 22px;
        letter-spacing: 0.12em;
    }    

    .content-inner {
        width: 90%;
    }

    .products {
        padding: 64px 0 90px;
    }

    .products-header {
        margin-bottom: 32px;
    }

    .product-card {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .product-image {
        padding: 14px;
    }

    .product-image img {
        max-height: 260px;
    }

    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
