@charset "UTF-8";

/* ===============================================
   1. Base & Reset
   基本設定とボックスサイズの統一
=============================================== */
*, *::before, *::after {
    box-sizing: border-box; /* 枠線や余白を幅に含める */
}

:root {
    /* カラーパレット：サイバーブルーテーマ */
    --brand-blue: #031126;       /* 深い紺（メイン背景・強調色） */
    --brand-accent: #00BFFF;     /* 発光するシアン（アクセント・ホバー色） */
    --brand-light-blue: #F0F7FF; /* 薄い青（セクション背景） */
    --brand-orange: #FF6B00;     /* 鮮やかなオレンジ（必須マーク用） */
    
    --text-main: #051525;        /* メイン文字色 */
    --text-white: #ffffff;
    --border-color: #DEE5EB;     /* 枠線グレー */
    
    --font-base: 'Noto Sans JP', "Helvetica Neue", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

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

/* ===============================================
   2. Layout & Utility
=============================================== */

/* ページ全体に固定される背景レイヤー（将来の背景演出用） */
.global-fixed-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}
.inner--sm {
    max-width: 800px;
}

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

/* 背景リセット用コンテナ */
.redesign-container {
    background-color: #fff;
    position: relative;
    z-index: 10;
    width: 100%;
}

/* ===============================================
   3. Header
=============================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.header__inner {
    width: 100%;
    padding: 0 3vw;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ロゴ */
.header__logo a {
    display: flex;
    align-items: center;
}
.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);
    transition: color 0.3s;
}

/* メニューホバー時：シアンに発光 */
.header__nav ul li a:not(.nav-btn):hover {
    color: var(--brand-accent) !important;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.4);
    opacity: 1;
}

/* --- CONTACTボタン（最新デザイン） --- */
/* 通常時・スクロール時共通：濃紺背景 */
.nav-btn,
.header.is-scrolled .nav-btn {
    background-color: var(--brand-blue) !important;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 2px;
    border: 1px solid var(--brand-blue) !important;
    transition: all 0.4s ease;
    text-shadow: none !important;
}

/* ホバー時：白背景・水色文字・白枠 */
.nav-btn:hover,
.header.is-scrolled .nav-btn:hover {
    background-color: #ffffff !important;   /* 背景を白に */
    color: var(--brand-accent) !important;  /* 文字を水色に */
    border-color: #ffffff !important;       /* 枠線も白 */
    outline: none;                          /* アウトライン削除 */
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.4); /* 青い光彩 */
    opacity: 1;
}

/* --- スクロール時 / メニューオープン時のヘッダー背景 --- */
.header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}
/* スクロール時の文字色変更（ボタン以外） */
.header.is-scrolled a:not(.nav-btn),
.header.menu-open a:not(.nav-btn) {
    color: var(--text-main);
    text-shadow: none;
}
.header.is-scrolled .header__logo img,
.header.menu-open .header__logo img {
    filter: none; /* ロゴを黒に戻す */
    height: 40px;
}

/* ===============================================
   4. First View (Video)
=============================================== */
.fv {
    position: relative;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fv__video-wrap {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}
.fv__video-wrap video {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* ===============================================
   5. Main Content (Redesign)
=============================================== */

/* --- セクション共通 --- */
.section-new {
    padding: 120px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 80px;
}
.section-title-new {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin: 0;
    letter-spacing: 0.15em;
    position: relative;
    font-family: 'Noto Sans JP', sans-serif;
}
.section-title-new::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--brand-accent);
    margin: 20px auto 0;
    box-shadow: 0 0 5px rgba(0, 191, 255, 0.5);
}
.section-subtitle {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #888;
    letter-spacing: 0.1em;
}

/* --- Concept --- */
.concept-new {
    background-color: #fff;
    text-align: center;
}
.concept-lead-new {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--brand-blue);
}
/* コンセプトの強調テキスト */
.highlight-text {
    display: block;
    color: var(--brand-blue);
    position: relative;
    padding-bottom: 16px;
}
.highlight-text::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--brand-accent);
    margin: 12px auto 0;
    box-shadow: 0 0 6px rgba(0, 191, 255, 0.5);
}
.concept-text {
    font-size: 1.1rem;
    line-height: 2.2;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Services (Grid Layout) --- */
.services-new {
    background-color: var(--brand-light-blue);
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.service-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-accent);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.15);
}
.card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.service-num {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #dcebf8;
    line-height: 1;
    margin-bottom: -10px;
}
.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin: 10px 0 0;
}
.service-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.service-detail-list li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 10px;
    color: #444;
}
.service-detail-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background-color: var(--brand-accent);
}

/* グリッド配置設定 (PC) */
/* 01〜04: 上段4列に自動配置（span指定不要） */

/* 05 空間デザイン: 下段全幅・横並びレイアウト */
.service-card:nth-child(5) {
    grid-column: span 4;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}
.service-card.card-wide .card-header {
    flex: 0 0 28%;
    border-bottom: none;
    border-right: 1px solid var(--border-color);
    margin-bottom: 0;
    padding-right: 30px;
}
.service-card.card-wide .card-body {
    flex: 1;
    padding-left: 40px;
}

/* 連絡先リンクのスタイル */
.company-row dd a {
    color: inherit;
    text-decoration: none;
}
.company-row dd a:hover {
    color: var(--brand-accent);
}

/* --- Company (Table Layout) --- */
.company-new {
    background-color: #fff;
}
.company-list-new {
    border-top: 2px solid var(--brand-accent);
    width: 100%;
    margin: 0;
}
.company-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}
.company-row dt {
    width: 25%;
    padding: 25px;
    background-color: #fff;
    font-weight: 700;
    color: var(--brand-blue);
}
.company-row dd {
    width: 75%;
    padding: 25px;
    margin: 0;
    color: #333;
}

/* --- Contact (Dark Theme) --- */
.contact-new {
    background: linear-gradient(135deg, #031126 0%, #051C3B 100%);
    color: #fff;
}
.contact-header {
    text-align: center;
    margin-bottom: 40px;
}
.contact-new .section-title-new { color: #fff; }
.contact-new .section-title-new::after { background-color: var(--brand-accent); }
.contact-lead { color: #ccc; margin-bottom: 30px; }

/* フォーム本体 */
.contact-form-new {
    background: #fff;
    padding: 50px;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto;
}
.form-row { margin-bottom: 30px; }
.form-row label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 700;
}

/* 必須バッジ（鮮やかなオレンジ・発光） */
.required-badge {
    background: var(--brand-orange);
    border: 1px solid var(--brand-orange);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 8px;
    margin-left: 10px;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 107, 0, 0.5);
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    border-radius: 2px;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--brand-accent);
    background: #fff;
}
.form-btn-area { text-align: center; margin-top: 40px; }

/* 送信ボタン */
.btn-submit-new {
    background-color: var(--brand-blue);
    color: #fff;
    padding: 18px 80px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.1em;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.1);
}
.btn-submit-new:hover {
    background-color: var(--brand-accent);
    color: #fff;
    border-color: transparent; /* ホバー時は枠線を透明に */
    outline: none;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.6);
}

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

/* ===============================================
   7. Responsive (SP / Mobile)
=============================================== */
.hamburger { display: none; }

@media (max-width: 768px) {
    .pc-only { display: none; }
    .sp-only { display: block; }
    
    /* ヘッダー周り */
    .header__inner { padding: 0 20px; }
    .header__logo img { height: 40px; }
    .header__nav { display: none; }
    
    /* ハンバーガーメニュー */
    .hamburger {
        display: block;
        position: relative;
        z-index: 200;
        width: 50px;
        height: 50px;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    .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; }
    
    /* メニューオープン時 */
    .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 {
        /* SP用全画面メニュー */
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: rgba(255,255,255,0.98);
        z-index: 150;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s;
    }
    .header__nav.active {
        display: block;
        opacity: 1;
        visibility: visible;
    }
    .header__nav ul {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }
    /* SPメニュー内のリンク */
    .header__nav a { 
        color: var(--brand-blue) !important; 
        font-size: 1.2rem; 
        font-weight: 700; 
    }
    
    /* セクション共通 */
    .section-new { padding: 60px 0; }
    .section-title-new { font-size: 2rem; }
    
    /* Concept */
    .concept-lead-new { font-size: 1.4rem; }
    .concept-text { text-align: left; }
    
    /* Services (グリッド解除して1列に) */
    .service-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .service-card {
        padding: 30px 20px;
    }
    /* 05空間デザイン（card-wide）を縦積みに戻す */
    .service-card.card-wide {
        flex-direction: column;
    }
    .service-card.card-wide .card-header {
        flex: none;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    .service-card.card-wide .card-body {
        padding-left: 0;
    }
    
    /* Company (SP用デザイン) */
    .company-row { display: block; }
    .company-row dt {
        width: 100%;
        padding: 15px 20px;
        background-color: var(--brand-light-blue);
    }
    .company-row dd {
        width: 100%;
        padding: 15px 20px 25px;
    }
    
    /* Contact Form (SP修正版) */
    .contact-form-new {
        width: 100%;
        padding: 30px 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    .form-row input, 
    .form-row textarea {
        font-size: 16px; /* ズーム防止 */
        height: 55px; /* タップしやすく */
    }
    .form-row textarea { height: 150px; }
    .btn-submit-new {
        width: 100%;
        padding: 15px;
    }
}

/* ===============================================
   SP Menu Button Fix
   スマホメニュー内のCONTACTボタン文字色を白に戻す
=============================================== */
@media (max-width: 768px) {
    .header__nav a.nav-btn {
        color: #ffffff !important;
    }
}