/* ==========================================================================
   CSS Variables & Settings
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #005A9C;     /* Blue (Trust/Sincerity) */
    --color-primary-dark: #004275;
    --color-secondary: #69BE48;   /* Green (Cleanliness/Leaf) */
    --color-secondary-dark: #4f9634;
    --color-accent: #F2A93B;      /* Orange (Roof) */
    --color-accent-dark: #d69022;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #FFFFFF;
    --color-bg-light: #F7F9FA;
    --color-border: #E0E0E0;

    /* Typography */
    --font-base: 'Noto Sans JP', sans-serif;
    
    /* Structure */
    --sp-breakpoint: 768px;
    --container-max: 1100px;
    --header-height: 130px;
    --header-height-sp: 100px;

    /* Animations */
    --transition-base: 0.3s ease;
    --shadow-base: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

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

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

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

.mt-2 { margin-top: 1rem; }

.pc-only { display: block; }
.sp-only { display: none; }
.sp-br { display: none; }

body.no-scroll {
    overflow: hidden;
}

/* Typography Utilities */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-secondary);
    border-radius: 2px;
}

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

.section-title--left::after {
    left: 0;
    transform: none;
}

.section-title__sub {
    display: block;
    font-size: 1rem;
    color: var(--color-text-light);
    font-weight: 500;
    margin-top: 5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 50px;
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
}

.btn--primary {
    background-color: var(--color-primary);
    color: #fff;
    border: 2px solid var(--color-primary);
}
.btn--primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn--cta {
    background-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 10px rgba(242, 169, 59, 0.4);
}
.btn--cta:hover {
    background-color: var(--color-accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 169, 59, 0.5);
}

.btn--small {
    padding: 10px 24px;
    font-size: 0.95rem;
}

.btn--large {
    padding: 18px 40px;
    font-size: 1.25rem;
    flex-direction: column;
}
.btn__subtext {
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 5px;
    opacity: 0.9;
}
.btn__icon {
    margin-right: 8px;
    font-size: 1.4rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: all 0.3s;
}

.header__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header__logo-img {
    height: 110px;
    width: auto;
    object-fit: contain;
}

.header__logo-text {
    display: none;
}

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

.header__nav-list {
    display: flex;
    gap: 25px;
}

.header__nav-list a {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.header__nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-base);
}

.header__nav-list a:hover {
    color: var(--color-primary);
}
.header__nav-list a:hover::after {
    width: 100%;
}

.header__hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.header__hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.header__hamburger span:nth-child(1) { top: 0; }
.header__hamburger span:nth-child(2) { top: 9px; }
.header__hamburger span:nth-child(3) { top: 18px; }

.header__hamburger.is-active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}
.header__hamburger.is-active span:nth-child(2) {
    opacity: 0;
}
.header__hamburger.is-active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition-base);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    margin-top: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background-color: #002850; /* Fallback */
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 80, 0.65); /* Dark blue overlay */
    z-index: 2;
}

.hero__content {
    max-width: 900px;
    padding: 0 20px;
    position: relative;
    z-index: 3;
    animation: fadeIn 1s ease-out;
}

.hero__copy {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero__subcopy {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Strengths Section
   ========================================================================== */
.strengths__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.strength-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-base);
    text-align: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border-top: 4px solid var(--color-primary);
}

.strength-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.strength-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-light);
    border-radius: 50%;
}
.strength-card__icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.strength-card__title {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.strength-card__text {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
    text-align: left;
}

.strength-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.badge {
    background-color: rgba(105, 190, 72, 0.1);
    color: var(--color-secondary-dark);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
}

/* ==========================================================================
   Services Grid (Cards)
   ========================================================================== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-base);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-card__img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

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

.service-card:hover .service-card__img {
    transform: scale(1.05);
}

.service-card__content {
    padding: 24px;
    flex-grow: 1;
}

.service-card__title {
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

@media (min-width: 900px) {
    .service-card--featured {
        grid-column: span 2;
        display: flex;
        flex-direction: row;
    }
    .service-card--featured .service-card__img-wrap {
        width: 40%;
        height: auto;
    }
    .service-card--featured .service-card__content {
        width: 60%;
        padding: 30px;
    }
}

/* ==========================================================================
   Service List (Alternating Rows)
   ========================================================================== */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-base);
}

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

.service-row__img-wrap {
    flex: 0 0 45%;
    height: 300px;
    background-color: #f0f0f0;
}

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

.service-row__content {
    flex: 1;
    padding: 40px;
}

.service-row__title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 16px;
    font-weight: 700;
}

.service-row__text {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ==========================================================================
   Company Overview
   ========================================================================== */
.company__container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.company__content {
    flex: 1;
}

.company__image {
    flex: 0 0 40%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-base);
}

.company-img-element {
    width: 100%;
    height: auto;
    display: block;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.company-table th,
.company-table td {
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

.company-table th {
    width: 30%;
    background-color: var(--color-bg-light);
    color: var(--color-primary);
    font-weight: 700;
}

.company-table__list {
    list-style: disc;
    padding-left: 20px;
}

.company-table__list li {
    margin-bottom: 8px;
}

/* ==========================================================================
   Contact CTA Section
   ========================================================================== */
.cta-section {
    background-color: var(--color-primary);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cta-section__inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-section__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.cta-section__desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #2A2A2A;
    color: #fff;
    padding: 60px 0 0;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid #444;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer__img {
    height: 50px;
    width: auto;
}

.footer__logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer__info p {
    color: #aaa;
    font-size: 0.95rem;
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__links a {
    color: #fff;
    font-size: 0.95rem;
}

.footer__links a:hover {
    color: var(--color-accent);
}

.footer__bottom {
    text-align: center;
    padding: 20px 0;
    background-color: #1A1A1A;
}

.copyright {
    color: #777;
    font-size: 0.85rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .company__container {
        flex-direction: column;
    }
    .company__image {
        width: 100%;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    /* Base */
    .section { padding: 50px 0; }
    .sp-br { display: block; }
    .pc-only { display: none; }
    .sp-only { display: block; }
    
    .section-title { font-size: 1.6rem; margin-bottom: 30px; }

    /* Header & Mobile Nav */
    .header { height: var(--header-height-sp); }
    .header__logo-img { height: 85px; }
    .header__logo-text { font-size: 1.25rem; }
    
    .header__hamburger { display: block; }
    
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 40px;
        transition: right var(--transition-base);
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .header__nav.is-active { right: 0; }
    .mobile-nav-overlay.is-active { display: block; opacity: 1; }
    
    .header__nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-bottom: 30px;
    }
    
    .header__nav-list a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--color-border);
        color: var(--color-text);
    }
    .header__nav-list a::after { display: none; }
    
    .header__cta { width: 100%; }
    .header__cta .btn {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
    }

    /* Hero */
    .hero {
        margin-top: var(--header-height-sp);
        height: auto;
        padding: 100px 0;
    }
    .hero__copy { font-size: 1.8rem; }
    .hero__subcopy { font-size: 1rem; }
    .btn--large { font-size: 1.1rem; padding: 15px 24px; }

    /* Strengths */
    .strengths__grid { grid-template-columns: 1fr; gap: 20px; }
    .strength-card { padding: 30px 20px; }

    /* Services Lists */
    .service-row, .service-row--reverse {
        flex-direction: column;
        gap: 0;
    }
    .service-row__img-wrap { height: 200px; }
    .service-row__content { padding: 25px 20px; }
    .service-row__title { font-size: 1.25rem; }

    /* Company Table */
    .company-table th, .company-table td {
        display: block;
        width: 100%;
    }
    .company-table th { background-color: var(--color-bg-light); border-bottom: none; padding-bottom: 10px; }
    .company-table td { padding-top: 5px; }

    /* CTA */
    .cta-section__title { font-size: 1.4rem; }
    .cta-section__desc { font-size: 0.95rem; }

    /* Footer */
    .footer__container {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .footer__links {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==========================================================================
   Contact Page (Standalone)
   ========================================================================== */
.contact-page-body {
    background-color: #e5e5e5;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAIklEQVQIW2NkQAKrVq36zwjjgzhhYWGMYAEYB8RmROaABADeOQ8CXl/xfgAAAABJRU5ErkJggg==');
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.contact-container {
    background: #fff;
    width: 100%;
    max-width: 800px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #ccc;
}

.contact-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.contact-logo {
    font-size: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.contact-logo__icon {
    background-color: #3b8aec;
    color: #fff;
    font-size: 1rem;
    padding: 2px 8px;
    border-radius: 2px;
}

.contact-title-area {
    margin-bottom: 30px;
}

.contact-title {
    font-size: 1.4rem;
    color: #000;
    display: flex;
    align-items: center;
    font-weight: 700;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dotted #ccc;
}

.contact-title__icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid #66aaff;
    border-radius: 50%;
}

.contact-desc {
    font-size: 0.95rem;
    color: #333;
}

.contact-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.contact-table th, .contact-table td {
    border: 1px solid #ddd;
    padding: 15px;
    vertical-align: middle;
}

.contact-table th {
    width: 30%;
    background-color: #4fa3fc;
    color: #fff;
    font-weight: 700;
    text-align: left;
}

.contact-table td input[type="text"],
.contact-table td input[type="email"] {
    width: 80%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #999;
    border-radius: 2px;
    font-family: inherit;
}

.contact-table td textarea {
    width: 100%;
    height: 150px;
    padding: 8px 12px;
    border: 1px solid #999;
    border-radius: 2px;
    font-family: inherit;
    resize: vertical;
}

.contact-submit {
    text-align: center;
}

.contact-btn {
    padding: 5px 60px;
    background-color: #f0f0f0;
    border: 1px solid #999;
    color: #333;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.2s;
}

.contact-btn:hover {
    background-color: #e0e0e0;
}

@media (max-width: 600px) {
    .contact-table th, .contact-table td {
        display: block;
        width: 100%;
    }
    .contact-table th {
        width: 100%;
    }
    .contact-table td input[type="text"],
    .contact-table td input[type="email"] {
        width: 100%;
    }
}
