@charset "UTF-8";

/* ===============================================
   Base Styles
=============================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* ヘッダーの高さ分ずらす */
}

:root {
    --text-color: #333;
    --bg-color: #fff;
    --bg-gray: #f5f5f5;
    --bg-dark: #222;
    --accent-color: #555;
    --font-base: 'Noto Sans JP', "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

body {
    font-family: var(--font-base);
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

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

img, video {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* Utility Classes */
.inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}
.inner--sm {
    max-width: 800px;
}
.bg-gray { background-color: var(--bg-gray); }
.bg-dark { background-color: var(--bg-dark); color: #fff; }
.text-white { color: #fff !important; }
.pc-only { display: block; }
.sp-only { display: none; }

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

/* Section Common */
.section {
    padding: 100px 0;
}
@media (max-width: 768px) {
    .section { padding: 60px 0; }
}
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: 0.1em;
}
@media (max-width: 768px) {
    .section-title { font-size: 1.8rem; margin-bottom: 30px; }
}
.section-desc {
    text-align: center;
    margin-bottom: 60px;
}

/* ===============================================
   Header
=============================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
    transition: all 0.4s ease;
}

.header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ロゴ設定 */
.header__logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.header__logo img {
    height: 50px;
    width: auto;
    /* 初期状態：白く反転 */
    filter: brightness(0) invert(1);
    transition: filter 0.4s;
}

/* ナビゲーション設定 */
.header__nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}
.header__nav a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* 初期状態：白文字・影あり */
    color: #fff;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}
.nav-btn {
    background-color: var(--bg-dark);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 2px;
}

/* -----------------------------------------------
   スクロール時 (.is-scrolled) のデザイン
----------------------------------------------- */
.header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

/* スクロール時は文字を黒に、影を消す */
.header.is-scrolled a {
    color: #333;
    text-shadow: none;
}
.header.is-scrolled .nav-btn {
    background-color: #333;
    color: #fff !important;
    text-shadow: none;
}

/* -----------------------------------------------
   ロゴの色変更ロジック（最優先）
   スクロール時 または メニュー展開時は黒に戻す
----------------------------------------------- */
.header.is-scrolled .header__logo img,
.header.menu-open .header__logo img {
    filter: none !important;
    height: 40px;
}

/* スマホ表示 */
@media (max-width: 768px) {
    .header { padding: 10px 0; }
    .header__logo img { height: 40px; }
    .header__nav { display: none; } /* PCメニューは非表示 */
}

/* ===============================================
   First View (Video)
=============================================== */
.fv {
    position: relative;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0;
}
.fv__video-wrap {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
}
.fv__video-wrap video {
    width: 100%; height: 100%;
    object-fit: cover;
}
.fv__overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}
.fv__content {
    z-index: 1;
    padding: 20px;
}
.fv__catch {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0px;
    letter-spacing: 0.1em;
}
.fv__title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .fv { height: 100vh; min-height: 400px; }
    .fv__catch { font-size: 1rem; }
    /* スマホでの社名表示最適化（改行なし・最大サイズ） */
    .fv__title {
        font-size: 7vw;       /* 画面幅に合わせて最大化 */
        letter-spacing: 0;    /* 文字間を詰めて大きく見せる */
        white-space: nowrap;  /* 絶対に改行させない */
        width: 100%;
        display: block;
        padding: 0 2px;
    }
}

/* ===============================================
   Concept
=============================================== */
.concept__lead {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 0; /* プロフィール削除に伴い調整 */
}

/* ===============================================
   Services
=============================================== */
.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-item {
    background: #fff;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: transparent;
}
.service-item h3 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
}
@media (max-width: 768px) {
    .service-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .service-item { padding: 30px 20px; }
    .service-item h3 { font-size: 1rem; }
}
@media (max-width: 480px) {
    .service-list { grid-template-columns: 1fr; }
}

/* ===============================================
   Company (Table Layout)
=============================================== */
.company-info {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid #ddd;
    width: 100%;
}
.company-info dt,
.company-info dd {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}
.company-info dt {
    width: 30%;
    font-weight: 700;
    background-color: #f9f9f9;
}
.company-info dd {
    width: 70%;
    background-color: #fff;
}
@media (max-width: 768px) {
    .company-info dt, 
    .company-info dd {
        width: 100%;
        display: block;
    }
    .company-info dt {
        background-color: #eee;
        border-bottom: none;
        padding-bottom: 10px;
    }
    .company-info dd {
        padding-top: 5px;
        padding-left: 20px;
    }
}

/* ===============================================
   Contact Form
=============================================== */
.contact-desc { text-align: center; margin-bottom: 40px; }
.contact-form {
    background: #fff;
    padding: 40px;
    color: var(--text-color);
    border-radius: 4px;
}
.form-group { margin-bottom: 25px; }
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}
.required {
    font-size: 0.7rem;
    color: #fff;
    background: var(--bg-dark);
    padding: 2px 5px;
    margin-left: 5px;
    border-radius: 2px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 2px;
    box-sizing: border-box;
    font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}
.form-btn { text-align: center; }
.form-btn button {
    background-color: var(--bg-dark);
    color: #fff;
    border: none;
    padding: 15px 60px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s;
    border-radius: 2px;
}
.form-btn button:hover { opacity: 0.8; }
@media (max-width: 768px) {
    .contact-form { padding: 20px; }
    .form-btn button { width: 100%; padding: 15px; }
}

/* ===============================================
   Footer
=============================================== */
.footer {
    padding: 20px 0;
    text-align: center;
    background: #111;
    color: #888;
    font-size: 0.8rem;
}

/* ===============================================
   Hamburger Menu (SP Only)
=============================================== */
.hamburger { display: none; }

@media (max-width: 768px) {
    /* ハンバーガーボタン本体 */
    .hamburger {
        display: block;
        position: relative;
        z-index: 200;
        width: 50px;
        height: 50px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    
    /* 3本の線（初期状態：白） */
    .hamburger span {
        display: block;
        position: absolute;
        left: 10px;
        width: 30px;
        height: 2px;
        background-color: #fff;
        transition: all 0.3s;
    }
    .hamburger span:nth-child(1) { top: 15px; }
    .hamburger span:nth-child(2) { top: 24px; }
    .hamburger span:nth-child(3) { bottom: 15px; }

    /* スクロール時は黒線にする */
    .header.is-scrolled .hamburger span {
        background-color: #333;
    }

    /* メニュー展開時（Active）は強制的に黒線 */
    .hamburger.active span {
        background-color: #333 !important;
    }
    
    /* ×印への変形 */
    .hamburger.active span:nth-child(1) {
        top: 24px;
        transform: rotate(45deg);
    }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) {
        bottom: 24px;
        transform: rotate(-45deg);
    }

    /* 全画面ナビゲーション */
    .header__nav {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 150;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s, visibility 0.4s;
    }
    .header__nav.active {
        opacity: 1;
        visibility: visible;
    }
    .header__nav ul {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        gap: 40px;
    }
    .header__nav a {
        font-size: 1.2rem;
        color: #333 !important; /* メニュー内は常に黒文字 */
        font-weight: 700;
        text-shadow: none !important;
    }
}

/* ===============================================
   Menu Open Overrides (重要)
   メニューが開いている時は、FVにいても文字とロゴを黒にする
=============================================== */

/* リンク文字 */
.header.menu-open a {
    color: #333 !important;
    text-shadow: none !important;
}

/* CONTACTボタン */
.header.menu-open .nav-btn {
    background-color: #333 !important;
    color: #fff !important;
    text-shadow: none !important;
}