/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --color-primary: #0B4485;
    /* Nikken Blue */
    --color-primary-light: #165CAE;
    --color-white: #FFFFFF;
    --color-bg-light: #F8F9FA;
    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-gold: #c5a880;
    /* Subtle gold accent */
    --color-border: #E0E0E0;

    --font-heading: 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;

    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    line-height: 1.8;
    background-color: var(--color-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.section__title {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.section__subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section__desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.section--dark {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section--dark .section__title {
    color: var(--color-white);
}

.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header__logo img {
    /* Extract text and hide white background seamlessly on Nikken Blue */
    filter: grayscale(1) contrast(5) invert(1);
    mix-blend-mode: screen;
}

.header__logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    font-weight: 700;
}

.header__nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.header__nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-white);
}

.header__nav a:hover {
    color: var(--color-gold);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary,
.btn-primary-small {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    padding: 0.8rem 2.5rem;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid var(--color-primary);
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover,
.btn-primary-small:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white) !important;
}

.btn-primary-small {
    padding: 0.5rem 1.5rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    padding-top: 80px;
    overflow: hidden;
}

.hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    background-color: var(--color-primary);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 43, 91, 0.4);
    z-index: -1;
}

.hero__catch {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero__lead {
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   About / Tradition (Cards)
   ========================================================================== */
.about__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card__img {
    height: 250px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

.card__body {
    padding: 2.5rem;
}

.card__title {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* ==========================================================================
   Products
   ========================================================================== */
.product-featured {
    display: flex;
    align-items: stretch;
    background-color: var(--color-bg-light);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

.product-featured.reverse {
    flex-direction: row-reverse;
}

.product-featured__img {
    flex: 1;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
}

.product-featured__content {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-featured__content h3 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.product-featured__content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
}

.product-featured__content p {
    font-size: 1.05rem;
}

.products__grid--4cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.product-card__img {
    height: 160px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 2rem;
}

.pt-4 {
    padding-top: 2rem;
}

.product-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 43, 91, 0.08);
}

.product-card__icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.product-card h4 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-card__desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    text-align: left;
}

/* ==========================================================================
   Split Section (Welfare & Future)
   ========================================================================== */
.split-item {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-item.reverse {
    flex-direction: row-reverse;
}

.split-item__img {
    flex: 1;
    height: 350px;
    border-radius: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--color-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.split-item__content {
    flex: 1;
}

.split-item__title {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Recruitment Section
   ========================================================================== */
.recruit__content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.recruit__features {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
}

.recruit__feature {
    flex: 1;
    background: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--color-primary);
}

.recruit__feature h4 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.recruit__feature p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Let's redefine for 6 items in a uniform tile/gallery style */
.recruit__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.recruit__img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.recruit__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recruit__img:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   Company Profile
   ========================================================================== */
.company__wrapper {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.company__image {
    flex: 0 0 45%;
    max-width: 500px;
    height: 400px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px;
}

.company__info {
    flex: 1;
}

.company__list {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    grid-template-columns: 30% 70%;
}

.company__list dt {
    padding: 1.5rem 0;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.company__list dd {
    padding: 1.5rem 0 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Locations
   ========================================================================== */
.locations__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.location-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.location-card__info {
    padding: 2rem;
}

.location-card__info h3 {
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--color-gold);
    padding-left: 1rem;
}

.location-card__info p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.location-card__map {
    width: 100%;
    flex-grow: 1;
    min-height: 300px;
}

.location-card__map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.required {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    border-radius: 2px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 43, 91, 0.1);
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

select {
    appearance: none;
    background-color: transparent;
}

.form-submit {
    text-align: center;
    margin-top: 3rem;
}

.form-submit button {
    width: 100%;
    max-width: 300px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #001630;
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
    text-align: center;
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer__copyright {
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .hero__catch {
        font-size: 2.2rem;
    }

    .about__grid {
        grid-template-columns: 1fr;
    }

    .recruit__features {
        flex-direction: column;
    }

    .recruit__gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .recruit__img:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .product-featured,
    .product-featured.reverse,
    .recruit__features {
        flex-direction: column;
    }

    .products__grid--4cols {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .company__wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .locations__grid {
        grid-template-columns: 1fr;
    }

    .company__image {
        width: 100%;
        height: 250px;
    }

    .company__list {
        grid-template-columns: 1fr;
    }

    .company__list dt {
        border-bottom: none;
        padding-bottom: 0;
    }

    .company__list dd {
        padding-left: 0;
    }

    .split-item,
    .split-item.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .company__list dt,
    .company__list dd {
        width: 100%;
        float: none;
        padding: 1rem 0;
    }

    .company__list dt {
        border-bottom: none;
        padding-bottom: 0;
    }

    .company__list dd {
        padding-left: 0;
    }

    .header__nav {
        display: none;
    }
}