/* Base Variables */
:root {
    --color-primary: #BDD400;
    /* Yellow Green Accent */
    --color-text: #333333;
    --color-heading: #000000;
    --color-require: #F39800;
    /* Orange Validation */
    --color-bg-grey: #F7F7F7;
    --color-white: #FFFFFF;
    --gradient-footer: linear-gradient(135deg, #00A96B 0%, #D4E000 100%);
    --font-en: 'Inter', sans-serif;
    --font-ja: 'Noto Sans JP', sans-serif;
}

/* Reset and Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-heading);
    font-family: var(--font-ja);
}

.inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* PC vs SP Utility */
@media (min-width: 769px) {
    .sp-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .pc-only {
        display: none !important;
    }
}

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

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

/* Common Components */
.btn-more {
    display: inline-flex;
    align-items: center;
    position: relative;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 1rem;
    color: #000;
    z-index: 1;
    letter-spacing: 1px;
}

.btn-more::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: var(--color-primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.btn-more:hover::before {
    transform: translateY(-50%) scale(1.1);
}

.btn-more .arrow {
    margin-left: 10px;
    font-weight: normal;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.section-header span {
    font-family: var(--font-en);
    font-weight: bold;
    font-size: 1.2rem;
    color: #ccc;
    display: block;
    margin-bottom: 30px;
}

/* Header */
.site-header {
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.header-logo img {
    height: 40px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    font-weight: bold;
    font-size: 0.95rem;
}

.header-cta {
    background: var(--color-heading);
    color: var(--color-white);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.95rem;
}

/* SP Hamburger */
.sp-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 101;
}

.sp-hamburger span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--color-heading);
    left: 0;
    transition: 0.3s;
}

.sp-hamburger span:nth-child(1) {
    top: 0;
}

.sp-hamburger span:nth-child(2) {
    top: 10px;
}

.sp-hamburger span:nth-child(3) {
    bottom: 0;
}

/* SP Menu Overlay */
.sp-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--gradient-footer);
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
}

.sp-menu.is-active {
    opacity: 1;
    visibility: visible;
}

.sp-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.sp-nav-links {
    list-style: none;
    text-align: center;
    margin-bottom: 40px;
}

.sp-nav-links li {
    margin-bottom: 25px;
}

.sp-nav-links a {
    font-size: 1.25rem;
    font-weight: bold;
}

.sp-menu-cta {
    background: #111;
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.sp-menu-socials {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.sp-menu-socials a {
    font-family: var(--font-en);
    font-weight: bold;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .pc-nav {
        display: none;
    }

    .sp-hamburger {
        display: block;
    }
}

/* TOP PAGE */
/* Hero Section */
.top-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-white);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.top-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--color-bg-grey);
    transform: skewY(-2deg);
    z-index: 3;
}

.hero-inner {
    position: relative;
    z-index: 4;
    width: 100%;
    padding: 0 5%;
}

.hero-text h2 {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 5vw;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text p {
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .hero-text h2 {
        font-size: 2.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
}

/* Servce Top */
.top-service {
    padding: 100px 0;
    background: var(--color-bg-grey);
}

.section-title {
    margin-bottom: 60px;
}

.section-title.center {
    text-align: center;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    font-weight: bold;
    letter-spacing: 2px;
}

.section-title span {
    font-family: var(--font-en);
    font-weight: bold;
    font-size: 1rem;
    color: #333;
    display: block;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 80px;
}

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

.service-img {
    flex: 1;
}

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

.service-text {
    flex: 1;
}

.service-tag {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    display: block;
    letter-spacing: 1px;
}

.service-text h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    letter-spacing: 2px;
    line-height: 1.3;
}

.service-text p {
    margin-bottom: 30px;
    color: #333;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .service-list {
        gap: 50px;
    }

    .service-item,
    .service-item.reverse {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }
}

/* About Top */
.top-about {
    position: relative;
    padding: 120px 0 100px;
    background: #f7f7f7;
    overflow: hidden;
}

.about-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 12vw;
    color: rgba(0, 0, 0, 0.03);
    white-space: nowrap;
    text-align: center;
    line-height: 0.9;
    pointer-events: none;
    z-index: 1;
}

.about-layout {
    display: flex;
    position: relative;
    z-index: 2;
    justify-content: space-between;
}

.about-left {
    width: 30%;
}

.about-right {
    width: 65%;
}

.about-desc {
    font-size: 1.05rem;
    line-height: 2.2;
    font-weight: 500;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .about-layout {
        flex-direction: column;
        gap: 40px;
    }

    .about-left,
    .about-right {
        width: 100%;
    }
}

/* Full Img */
.full-img {
    width: 100%;
}

.full-img img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    display: block;
}

/* News Top */
.top-news {
    display: flex;
    padding: 100px 20px;
    gap: 60px;
}

.news-left {
    width: 25%;
}

.news-left .btn-more {
    margin-top: 30px;
}

.news-right {
    width: 75%;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #ddd;
}

.news-item:first-child {
    border-top: 1px solid #ddd;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 180px;
}

.news-item time {
    color: #999;
    font-family: var(--font-en);
    font-size: 0.95rem;
}

.news-cat {
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.75rem;
    color: #666;
}

.news-title {
    flex: 1;
    font-weight: bold;
    padding-right: 20px;
    color: var(--color-heading);
}

.news-title:hover {
    color: var(--color-primary);
}

.news-arrow {
    font-family: var(--font-en);
    color: #999;
}

@media (max-width: 768px) {
    .top-news {
        flex-direction: column;
        gap: 30px;
    }

    .news-left {
        width: 100%;
    }

    .news-right {
        width: 100%;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        position: relative;
    }

    .news-arrow {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Recruit Top */
.top-recruit {
    background-size: cover;
    background-position: center;
    padding: 150px 0;
    position: relative;
}

.recruit-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px;
    width: 50%;
    max-width: 550px;
    margin-left: auto;
    margin-right: 15%;
}

.recruit-box p {
    margin: 30px 0;
    line-height: 1.8;
    font-weight: bold;
}

@media (max-width: 768px) {
    .recruit-box {
        width: 90%;
        margin: 0 auto;
        padding: 40px 30px;
    }
}

/* Subpage Settings Details (Contact, Service, etc) */
/* Kept intact from initial subpage styling */
.sub-hero {
    position: relative;
    padding: 100px 0 80px;
    background-color: var(--color-bg-grey);
    text-align: center;
    overflow: hidden;
}

.sub-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--color-white);
    transform: skewY(-2deg);
    z-index: 1;
}

.sub-hero h1 {
    font-family: var(--font-en);
    font-size: 3rem;
    margin-bottom: 10px;
}

.sub-hero p {
    font-size: 1rem;
    color: #666;
}

/* Contact Forms */
.form-group {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
}

.form-label {
    width: 250px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-require {
    background: var(--color-require);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 3px;
}

.form-input {
    flex: 1;
    width: 100%;
}

.form-input input,
.form-input select,
.form-input textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    background: var(--color-bg-grey);
    border-radius: 4px;
    font-family: inherit;
}

.btn-submit {
    background: var(--color-primary);
    color: #000;
    font-weight: bold;
    border: none;
    padding: 20px 60px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    display: block;
    margin: 40px auto 0;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #a9bd00;
    color: #fff;
}

/* Subpage Sidebar Layout */
.layout-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    padding: 60px 20px;
}

.sidebar {
    width: 250px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    color: #999;
    display: block;
}

.sidebar ul li.active a {
    color: var(--color-heading);
    font-weight: bold;
    padding-left: 20px;
    position: relative;
}

.sidebar ul li.active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.service-block {
    margin-bottom: 80px;
}

.service-category {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: bold;
    border: 1px solid var(--color-text);
    padding: 5px 15px;
    margin-bottom: 15px;
}

.service-block h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    padding-top: 20px;
}

.service-block h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 4px;
    background: var(--color-primary);
}

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

/* Accordion */
.accordion-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: bold;
}

.accordion-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    font-size: 0.9rem;
}

.accordion-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: bold;
    line-height: 1;
}

.accordion-content {
    display: none;
    padding: 0 0 20px;
}

@media (max-width: 768px) {
    .layout-sidebar {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 30px;
    }

    .form-group {
        flex-direction: column;
        gap: 15px;
    }

    .form-label {
        width: 100%;
    }
}

/* Footer Global Layout */
.site-footer {
    background: var(--gradient-footer);
    color: var(--color-white);
    padding: 60px 20px 20px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-nav {
    display: flex;
    gap: 80px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 0.95rem;
}

.footer-info {
    text-align: right;
}

.footer-company-en {
    font-family: var(--font-en);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.footer-address {
    font-size: 0.85rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-socials {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.footer-socials a {
    font-weight: bold;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
}

.footer-logo {
    height: 30px;
    filter: brightness(0) invert(1);
    /* make logo white if needed */
}

@media (max-width: 768px) {
    .footer-layout {
        flex-direction: column;
        gap: 40px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .footer-info {
        text-align: center;
        width: 100%;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}