/*
Theme Name: SEA ANCHOR
Author: Your Name
Description: シーアンカー公式サイトの自作テーマ
Version: 1.0
*/


        :root {
            --bg-dark: #000b18;
            --accent-blue: #03e9f4;
            --text-white: #ffffff;
            --glass: rgba(255, 255, 255, 0.1);
            --fb-color: #1877F2;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Helvetica Neue', Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
        }

        body {
            background-color: var(--bg-dark);
            color: var(--text-white);
            overflow-x: hidden;
            line-height: 1.6;
        }

        /* --- 背景動画の設定 --- */
        .video-fixed-background {
    position: fixed !important; /* 強制的に固定 */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    /* 親要素のスクロールに引きずられないようにする */
    will-change: transform; 
    pointer-events: none;
}

        .bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    /* 動画の自体の中心を親要素の50%位置に合わせる */
    transform: translate(-50%, -50%);
    
    /* 画面を覆い尽くす設定 */
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    
    /* 縦横比を維持して切り抜く */
    object-fit: cover;
    
    /* 万が一の余白を打ち消す */
    margin: 0;
    padding: 0;
    border: none;
}
        .fixed-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: radial-gradient(circle, transparent 20%, var(--bg-dark) 180%);
            z-index: -1;
            pointer-events: none;
        }

        /* --- ロゴ設定 --- */
        .logo-container {
            position: fixed;
            top: 20px;
            left: 5%;
            z-index: 100;
        }

        .logo-container img {
            height: clamp(40px, 8vw, 60px); 
            width: auto;
            filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
        }

        /* --- ナビゲーション --- */
        .nav-container {
            position: fixed;
            top: 25px;
            right: 5%;
            z-index: 200;
        }

        #menu-toggle { display: none; }

        .menu-btn {
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            width: 35px;
            height: 30px;
            cursor: pointer;
            z-index: 202; /* メニューより前面に */
            position: relative;
        }

        .menu-btn span {
            display: block;
            width: 100%;
            height: 3px;
            background: var(--text-white);
            border-radius: 10px;
            transition: all 0.3s ease;
        }

        /* 【追加】メニュー外タップ用の背景パネル */
        .menu-overlay-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: rgba(0,0,0,0.3); /* ほんのり暗く */
            opacity: 0;
            visibility: hidden;
            transition: 0.5s;
            z-index: 199;
        }

        .nav-menu {
            position: fixed;
            top: 0;
            right: -100%;
            width: 280px;
            height: 100vh;
            background: rgba(0, 11, 24, 0.95);
            backdrop-filter: blur(15px);
            padding-top: 100px;
            transition: all 0.5s ease;
            box-shadow: -5px 0 15px rgba(0,0,0,0.5);
            z-index: 200;
        }

        .nav-menu ul {
            list-style: none;
            padding: 20px;
        }

        .nav-menu ul li { margin-bottom: 25px; }

        .nav-menu ul li a {
            color: var(--text-white);
            text-decoration: none;
            font-size: 1.1rem;
            letter-spacing: 0.1em;
            display: block;
        }

        /* メニューが開いた時の動き */
        #menu-toggle:checked ~ .nav-menu { right: 0; }
        #menu-toggle:checked ~ .menu-overlay-bg { opacity: 1; visibility: visible; }
        #menu-toggle:checked ~ .menu-btn span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
        #menu-toggle:checked ~ .menu-btn span:nth-child(2) { opacity: 0; }
        #menu-toggle:checked ~ .menu-btn span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

        /* --- ヒーローセクション --- */
        .hero {
            position: relative;
            height: 100vh;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-content {
            text-align: center;
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .hero-content h1 {
            font-size: clamp(1.8rem, 8vw, 3.5rem);
            letter-spacing: 0.15em;
            text-shadow: 0 0 20px rgba(0,0,0,0.8);
            order: 2; 
        }

        .hero-content .sub-title {
            order: 1;
            font-size: clamp(1.1rem, 4vw, 1.8rem);
            font-weight: bold;
            text-shadow: 0 0 15px rgba(0,0,0,0.8);
        }

        .hero-content .catch-phrase {
            order: 3;
            margin-top: 10px;
            text-shadow: 0 0 10px rgba(0,0,0,0.8);
        }

        /* --- アニメーション --- */
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: all 1s ease-out;
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* --- 共通セクション --- */
        section {
            position: relative;
            z-index: 1;
            padding: 80px 5%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .section-title {
            font-size: 1.8rem;
            margin-bottom: 40px;
            border-left: 4px solid var(--accent-blue);
            padding-left: 15px;
        }

.services {
    display: grid;
    /* 基本は1列（スマホなど） */
    grid-template-columns: 1fr; 
    gap: 30px;
}

        .card {
            background: var(--glass);
            backdrop-filter: blur(10px);
            padding: 40px;
            border: 1px solid rgba(255,255,255,0.1);
            transition: 0.4s;
        }

        .card:hover {
            border-color: var(--accent-blue);
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.15);
        }

        .card h3 { color: var(--accent-blue); margin-bottom: 15px; }

        .notice-banner {
            background: rgba(3, 233, 244, 0.1);
            border: 1px dashed var(--accent-blue);
            padding: 20px;
            margin: 40px 0;
            display: flex;
            align-items: center;
            border-radius: 5px;
            backdrop-filter: blur(5px);
        }

        /* --- CONTACT & MAP --- */
        .contact-section {
            text-align: center;
            padding: 60px 5%;
            margin-top: 40px;
        }

        .btn-group {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            margin-top: 30px;
        }

        .contact-button {
            display: inline-block;
            width: 280px;
            padding: 15px 0;
            color: var(--accent-blue);
            border: 1px solid var(--accent-blue);
            text-decoration: none;
            font-weight: bold;
            transition: 0.3s;
            background: rgba(0, 11, 24, 0.6);
        }

        .contact-button:hover {
            background: var(--accent-blue);
            color: var(--bg-dark);
            box-shadow: 0 0 20px var(--accent-blue);
        }

        .fb-button {
            color: #fff;
            background: var(--fb-color);
            border: 1px solid var(--fb-color);
        }

        .fb-button:hover {
            background: transparent;
            color: var(--fb-color);
            box-shadow: 0 0 20px var(--fb-color);
        }

        .map-container {
            width: 100%;
            max-width: 1000px;
            margin: 40px auto 0;
        }

        .map-container iframe {
            width: 100%;
            height: 400px;
            border: 0;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }

        footer {
            position: relative;
            z-index: 1;
            padding: 40px 5%;
            text-align: center;
            background: rgba(0, 11, 24, 0.8);
            font-size: 0.75rem; 
            opacity: 0.7;
        }

        footer img {
            height: 40px; 
            width: auto;
            margin-bottom: 15px;
        }

        footer p {
            margin: 5px 0;
            letter-spacing: 0.05em;
        }
@media (min-width: 768px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* モバイル向け調整 */
@media (max-width: 768px) {
    footer img { height: 32px; }
    footer { font-size: 0.7rem; }
    
    .bg-video {
        /* 明るさやコントラストの微調整 */
        filter: brightness(1.0) contrast(1.2);
        /* スマホでも確実にセンターを維持 */
        width: auto;
        height: 100%;
        min-width: 100vw;
        object-fit: cover;
    }
    
    .fixed-overlay {
        /* スマホ時はオーバーレイをさらに薄くする */
        background: radial-gradient(circle, transparent 60%, rgba(0, 11, 24, 0.5) 180%);
    }
/* お問い合わせフォーム専用カスタム */
.custom-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-white);
}

.required {
    font-size: 0.7rem;
    background: var(--accent-blue);
    color: var(--bg-dark);
    padding: 2px 5px;
    margin-left: 10px;
    border-radius: 3px;
}

/* 入力欄のスタイル（ネオンブルーのアクセント） */
.wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    transition: 0.3s;
}

.wpcf7-form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(3, 233, 244, 0.3);
    outline: none;
}

/* 送信ボタン（既存の.contact-buttonのスタイルを継承） */
.wpcf7-submit {
    cursor: pointer;
    width: 100% !important;
    margin-top: 20px;
}

/* 成功・エラーメッセージの色調整 */
.wpcf7-response-output {
    border-radius: 4px;
    margin-top: 20px !important;
    color: var(--text-white);
}