:root {
    --primary-color: #0000ff; /* 純粋な青 */
    --secondary-color: #4d4dff; /* 明るめの青 */
    --accent-color: #00d4ff; /* アクセントの水色 */
    --dark-bg: #000033; /* 濃い背景色 */
    --text-color: #333333;
    --bg-color: #FFFFFF;
    --light-gray: #F5F7FA;
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-jp);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

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

ul {
    list-style: none;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 700ms ease,
        transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav {
    margin-left: auto; /* メニューを右寄せ */
}

.hamburger {
    display: none; /* PCでは非表示（モバイルで表示） */
}

.logo {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo img {
    height: 32px;
    width: auto;
    display: block;
}

.nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

.nav a:hover {
    color: var(--secondary-color);
}

.btn-contact {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.btn-contact:hover {
    background-color: var(--secondary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
    background-color: var(--primary-color);
}

.hero-bg-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
}

.hero-bg-picture .hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transform: translateX(8%) scale(1.06); /* 画像自体を右に寄せる（はみ出し防止に少し拡大） */
    transform-origin: center;
    display: block;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    color: #fff;
}

.hero-sub {
    font-family: var(--font-en);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 255, 0.35);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Abstract Background Shape removed: composed in background.png */

/* Sections Common */
.section {
    padding: 5rem 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.en-title {
    display: block;
    font-family: var(--font-en);
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.jp-title {
    font-size: 2rem;
    color: var(--primary-color);
}

/* About Section */
.about {
    background-color: #fff;
}

.about-content {
    display: flex;
    justify-content: center;
    text-align: center;
}

.about-text {
    max-width: 800px;
}

.about-text h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #555;
}

/* Mission Section (separated from About) */
.mission-section {
    position: relative;
    padding: 5rem 5%;
    background-image: url("assets/images/mission/background.png"); /* 差し替えたい画像に変更してください */
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    color: #fff;
    overflow: hidden;
}

.mission-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 20, 0.78),
        rgba(0, 0, 90, 0.58)
    );
}

.mission-section .container {
    position: relative;
    z-index: 1;
}

.mission-content {
    display: flex;
    justify-content: center;
    text-align: center;
}

.mission {
    position: relative;
    margin-top: 4rem;
    padding: 3rem 2rem;
    text-align: center;
    background-color: transparent;
    border: none;
    border-radius: 0;
}

.mission-section .mission {
    margin-top: 0;
    max-width: 900px;
}

.mission strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

.mission-section .mission strong {
    color: #fff;
}

.mission-section .mission {
    color: rgba(255, 255, 255, 0.9);
}

.mission br + text { /* 2行目以降のテキスト用（CSSセレクタでは難しいので親のフォント設定で調整） */
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Services Section */
.services {
    background-color: var(--light-gray);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    font-family: var(--font-en);
}

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

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Company Section */
.company-info {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #ddd;
}

.info-row {
    display: flex;
    border-bottom: 1px solid #ddd;
    padding: 1.5rem 0;
}

.info-row dt {
    width: 30%;
    font-weight: 700;
    color: var(--primary-color);
}

.info-row dd {
    width: 70%;
}

/* Contact Section */
.contact {
    background: linear-gradient(rgba(0, 0, 255, 0.9), rgba(0, 0, 255, 0.9));
    color: #fff;
    text-align: center;
}

.contact-inner h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-inner p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact .btn-primary {
    background-color: #fff;
    color: var(--primary-color);
}

.contact .btn-primary:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
    display: inline-block;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-nav a {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: #fff;
}

.copyright {
    color: #fff;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        padding: 1rem;
    }

    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 990; /* ハンバーガー(z-index指定なしだが後述で調整)より後ろ */
        justify-content: center;
        align-items: center;
    }

    .nav.active {
        display: flex;
        animation: fadeIn 0.3s ease-out;
    }

    .nav ul {
        flex-direction: column;
        gap: 3rem;
    }

    .nav a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-color);
    }
    
    .hamburger {
        display: block;
        width: 30px;
        height: 24px;
        position: relative;
        cursor: pointer;
        z-index: 1000; /* メニューより手前に */
    }

    .hamburger span {
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--primary-color);
        transition: 0.3s;
        left: 0;
    }

    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .hamburger span:nth-child(3) { bottom: 0; }

    /* ハンバーガーのアニメーション */
    .hamburger.active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        bottom: auto;
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Hero Section Mobile */
    .hero {
        height: auto;
        min-height: 100vh; /* スマホ画面いっぱいに */
        padding-top: 5rem; /* ヘッダー被り防止 */
        padding-bottom: 3rem;
        text-align: center; /* 中央揃えで見やすく */
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.4;
    }

    .hero-title br {
        display: none; /* スマホでは自然な折り返しに任せる */
    }

    .hero-bg-picture .hero-bg-image {
        /* スマホでは余白が出ないように全面カバー優先（移動/拡大なし） */
        transform: none;
        object-position: 50% 50%;
    }

    /* Other Sections Mobile */
    .section {
        padding: 4rem 5%;
    }

    .info-row {
        flex-direction: column;
    }
    
    .info-row dt {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .info-row dd {
        width: 100%;
    }
    
    .service-grid {
        grid-template-columns: 1fr; /* 1カラムに */
    }
    
    .mission strong {
        font-size: 1.5rem;
    }
}

