@charset "UTF-8";

/* --- Base Styles --- */
:root {
    --primary-color: #0099ce;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #fff;
    --font-serif: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
    --font-sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
    overflow-x: hidden; /* 横スクロール防止 */
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: normal;
}

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

ul {
    list-style: none;
}

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

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 60px;
    letter-spacing: 0.1em;
    color: var(--text-color);
}

/* --- Header / Hero --- */
header {
    position: relative;
    height: 80vh;
    min-height: 500px;
    color: var(--white);
    overflow: hidden;
}

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

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100; /* メニューを一番上に */
}

.logo {
    font-size: 2rem;
    font-family: var(--font-serif);
    z-index: 101; /* ロゴも一番上に */
}

/* ハンバーガーメニューの基本（PCでは非表示） */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 101; /* メニューより手前に */
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
}

.nav-links {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 5;
}

.hero-text h2 {
    font-size: 4rem;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* --- Intro Section --- */
.intro-section { padding: 100px 0; }
.intro-content { display: flex; alignItems: center; gap: 50px; }
.intro-text { flex: 1; }
.intro-text h2 { font-size: 2.2rem; margin-bottom: 30px; letter-spacing: 0.1em; line-height: 1.4; text-align: center; }
.intro-text p { margin-bottom: 20px; font-size: 0.95rem; text-align: justify; }
.intro-image { flex: 1; }
.intro-image img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* --- Services Section --- */
.services-section { background-color: var(--primary-color); padding: 80px 0 100px; color: var(--white); }
.services-section .section-title { color: var(--white); }
.cards-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.service-card { background: var(--white); color: var(--text-color); width: 320px; padding: 50px 30px; text-align: center; border-radius: 2px; transition: transform 0.3s; }
.service-card:hover { transform: translateY(-5px); }
.service-icon-img { margin-bottom: 20px; text-align: center; height: 80px; display: flex; align-items: center; justify-content: center; }
.service-icon-img img { width: 80px; height: auto; }
.service-card h3 { font-size: 1.4rem; color: var(--primary-color); margin-bottom: 20px; font-family: var(--font-serif); }
.service-card p { font-size: 0.9rem; text-align: left; line-height: 1.6; }

/* --- CEO Message --- */
.ceo-section { padding: 100px 0; }
.ceo-content { display: flex; gap: 50px; align-items: flex-start; }
.ceo-text { flex: 2; }
.ceo-text p { margin-bottom: 20px; text-align: justify; }
.ceo-image { flex: 1; text-align: right; }
.ceo-image img { width: 100%; max-width: 300px; height: auto; border-radius: 2px; }
.ceo-name { margin-top: 10px; font-size: 0.9rem; text-align: center; }

/* --- Company Profile --- */
.profile-section { background-color: var(--light-bg); padding: 80px 0; }
.profile-table { width: 100%; max-width: 800px; margin: 0 auto; border-collapse: collapse; }
.profile-row { display: flex; border-bottom: 1px solid #ccc; padding: 20px 0; }
.profile-label { width: 30%; font-weight: bold; padding-left: 10px; }
.profile-value { width: 70%; }

/* --- Certifications --- */
.cert-section { padding: 80px 0; text-align: center; }
.cert-table { width: 100%; max-width: 600px; margin: 0 auto; border: 1px solid #ddd; border-collapse: collapse; }
.cert-table th, .cert-table td { border: 1px solid #ddd; padding: 15px; text-align: left; font-size: 0.9rem; }
.cert-table th { background-color: #f9f9f9; width: 40%; text-align: center; }

/* --- Footer --- */
footer { background-color: var(--primary-color); color: var(--white); padding: 40px 0; text-align: center; }
.footer-logo { font-size: 1.2rem; font-family: var(--font-serif); margin-bottom: 20px; }
.footer-nav { display: flex; justify-content: center; gap: 20px; font-size: 0.8rem; margin-bottom: 30px; }
.copyright { font-size: 0.7rem; opacity: 0.8; }

/* --- Responsive Design (スマホ対応) --- */
@media (max-width: 768px) {
    /* 1. ハンバーガーボタンを表示 */
    .hamburger {
        display: block;
    }

    /* ハンバーガーがクリックされた時（×印にする） */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* 2. メニューを右からスライドさせる設定 */
    .nav-menu {
        position: fixed;
        right: -100%; /* 最初は画面外（右）に隠す */
        top: 0;
        width: 70%; /* 画面の7割くらいの幅 */
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease-in-out; /* スライドのアニメーション */
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }

    /* メニューが開いた時（JSでクラス付与） */
    .nav-menu.active {
        right: 0; /* 画面内に戻す */
    }

    /* リンクの並びを縦にする */
    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 80px; /* 上部の余白 */
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        color: var(--white);
    }

    /* その他のレスポンシブ調整 */
    .nav-bar { padding: 20px; }
    .hero-text h2 { font-size: 1.8rem; }
    .logo { font-size: 1.2rem;}
    
    .intro-content { flex-direction: column; }
    .ceo-content { flex-direction: column-reverse; }
    .intro-image, .ceo-image { width: 100%; text-align: center; }
    .ceo-image { order: -1; margin-bottom: 20px; }
    
    .cards-grid { flex-direction: column; align-items: center; }
    .service-card { width: 100%; }
    
    .profile-row { flex-direction: column; }
    .profile-label { width: 100%; margin-bottom: 5px; color: var(--primary-color); }
    .profile-value { width: 100%; }
}
