/* 全体のスタイル */
:root {
    --primary-color: #00c896;
    --secondary-color: #0f1b2a;
    --text-color: #ffffff;
    --dark-bg: #0a1118;
    --card-bg: #1a2130;
    --transition: all 0.3s ease;
    --section-bg: #0d0d0d;
    --section-alt-bg: #0f0f0f;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

/* すべての画面サイズでテキストを中央揃えにするグローバルスタイル */
.subtitle, .specs {
    text-align: center !important;
    width: 80% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    background-image: 
        linear-gradient(to bottom, rgba(0, 0, 0, 0.97), rgba(5, 5, 5, 0.95), rgba(10, 10, 10, 0.93)),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjMDkwOTA5Ij48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDVMNSAwWk02IDRMNCA2Wk0tMSAxTDEgLTFaIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS13aWR0aD0iMSI+PC9wYXRoPgo8L3N2Zz4=');
    background-attachment: fixed;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 27px 0 28px;
}

/* セクション共通スタイル */
section {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 50%, rgba(57, 255, 20, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

section:nth-child(odd) {
    background-color: var(--section-bg);
    background-image: 
        linear-gradient(to bottom, rgba(13, 13, 13, 0.97), rgba(13, 13, 13, 0.95)),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0iIzBkMGQwZCI+PC9yZWN0Pgo8Y2lyY2xlIGN4PSIxMCIgY3k9IjEwIiByPSIyIiBmaWxsPSIjMTIxMjEyIj48L2NpcmNsZT4KPC9zdmc+');
}

section:nth-child(even) {
    background-color: var(--section-alt-bg);
    background-image: 
        linear-gradient(to bottom, rgba(15, 15, 15, 0.97), rgba(15, 15, 15, 0.95)),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0iIzBmMGYwZiI+PC9yZWN0Pgo8cGF0aCBkPSJNMCAwTDIwIDIwWk0yMCAwTDAgMjBaIiBzdHJva2U9IiMxMzEzMTMiIHN0cm9rZS13aWR0aD0iMC41Ij48L3BhdGg+Cjwvc3ZnPg==');
}

/* スタジオについて */
.about {
    background-color: var(--section-bg);
    background-image: 
        linear-gradient(to bottom, rgba(13, 13, 13, 0.97), rgba(13, 13, 13, 0.95)),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0iIzBkMGQwZCI+PC9yZWN0Pgo8Y2lyY2xlIGN4PSIxMCIgY3k9IjEwIiByPSIyIiBmaWxsPSIjMTIxMjEyIj48L2NpcmNsZT4KPC9zdmc+');
}

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

/* サービス */
.services {
    background-color: var(--section-alt-bg);
    background-image: 
        linear-gradient(to bottom, rgba(15, 15, 15, 0.97), rgba(15, 15, 15, 0.95)),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0iIzBmMGYwZiI+PC9yZWN0Pgo8cGF0aCBkPSJNMCAwTDIwIDIwWk0yMCAwTDAgMjBaIiBzdHJva2U9IiMxMzEzMTMiIHN0cm9rZS13aWR0aD0iMC41Ij48L3BhdGg+Cjwvc3ZnPg==');
}

/* ギャラリー */
.gallery {
    background-color: var(--section-bg);
    padding: 40px 0;
    background-image: 
        linear-gradient(to bottom, rgba(13, 13, 13, 0.97), rgba(13, 13, 13, 0.95)),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0iIzBkMGQwZCI+PC9yZWN0Pgo8Y2lyY2xlIGN4PSIxMCIgY3k9IjEwIiByPSIyIiBmaWxsPSIjMTIxMjEyIj48L2NpcmNsZT4KPC9zdmc+');
}

/* お問い合わせ */
.contact {
    background-color: var(--section-alt-bg);
    background-image: 
        linear-gradient(to bottom, rgba(15, 15, 15, 0.97), rgba(15, 15, 15, 0.95)),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0iIzBmMGYwZiI+PC9yZWN0Pgo8cGF0aCBkPSJNMCAwTDIwIDIwWk0yMCAwTDAgMjBaIiBzdHJva2U9IiMxMzEzMTMiIHN0cm9rZS13aWR0aD0iMC41Ij48L3BhdGg+Cjwvc3ZnPg==');
}

/* スタジオQ紹介動画 */
.intro-video {
    background-color: #000;
    padding: 30px 0;
    color: #fff;
    background-image: 
        linear-gradient(to bottom, rgba(0, 0, 0, 0.97), rgba(0, 0, 0, 0.95)),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCI+CjxyZWN0IHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgZmlsbD0iIzAwMDAwMCI+PC9yZWN0Pgo8Y2lyY2xlIGN4PSIyMCIgY3k9IjIwIiByPSIxIiBmaWxsPSIjMDgwODA4Ij48L2NpcmNsZT4KPC9zdmc+');
}

.direct-video-container {
    max-width: 800px;
    margin: 30px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.direct-video-container video {
    display: block;
    width: 100%;
    height: auto;
}

/* 最新映像 */
.latest-videos {
    background-color: #1a1a1a;
    padding: 30px 0;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 90%;
    background-image: 
        linear-gradient(to bottom, rgba(26, 26, 26, 0.97), rgba(26, 26, 26, 0.95)),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0iIzFhMWExYSI+PC9yZWN0Pgo8cGF0aCBkPSJNMCAwTDUgNUwxMCAwTDE1IDVMMjAgMEwyMCA1TDE1IDEwTDIwIDE1TDIwIDIwTDE1IDE1TDEwIDIwTDUgMTVMMCAyMEwwIDE1TDUgMTBMMCA1WiIgc3Ryb2tlPSIjMjIyMjIyIiBzdHJva2Utd2lkdGg9IjAuNSI+PC9wYXRoPgo8L3N2Zz4=');
}

/* Studio Qの特長 */
.features {
    background-color: #0a1118;
    padding: 40px 0;
    margin: 0;
    position: relative;
    background-image: 
        linear-gradient(to bottom, rgba(10, 17, 24, 0.97), rgba(10, 17, 24, 0.95)),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCI+CjxyZWN0IHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgZmlsbD0iIzBhMTExOCI+PC9yZWN0Pgo8cGF0aCBkPSJNMCAwTDMwIDMwWk0zMCAwTDAgMzBaIiBzdHJva2U9IiMxMjFjMjciIHN0cm9rZS13aWR0aD0iMC41Ij48L3BhdGg+Cjwvc3ZnPg==');
}

/* フッター */
footer {
    background-color: var(--secondary-color);
    padding: 40px 0;
    background-image: 
        linear-gradient(to bottom, rgba(15, 27, 42, 0.97), rgba(15, 27, 42, 0.95)),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0iIzBmMWIyYSI+PC9yZWN0Pgo8Y2lyY2xlIGN4PSIxMCIgY3k9IjEwIiByPSIyIiBmaWxsPSIjMTUyMjM0Ij48L2NpcmNsZT4KPC9zdmc+');
}

/* カード背景のテクスチャー */
.service-card,
.contact-info,
.contact-form,
.video-item,
.feature-description {
    position: relative;
}

.service-card::before,
.contact-info::before,
.contact-form::before,
.video-item::before,
.feature-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCI+CjxyZWN0IHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCIgZmlsbD0iIzExMTExMSI+PC9yZWN0Pgo8cGF0aCBkPSJNLTEgMUwxIC0xWk05IDExTDExIDlaIiBzdHJva2U9IiMxNTE1MTUiIHN0cm9rZS13aWR0aD0iMC41Ij48L3BhdGg+Cjwvc3ZnPg==');
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
    border-radius: inherit;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 12px 30px;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn:hover {
    background-color: #00a67e;
    transform: translateY(-3px);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 50px;
    opacity: 0.8;
}

/* レスポンシブタイトル設定 */
@media screen and (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
        max-width: 100%;
    }
    
    .intro-title {
        font-size: 1.6rem;
        max-width: 100%;
    }
    
    .video-text-overlay .section-title {
        font-size: 1.4rem;
    }
    
    #intro-video .video-text-overlay .section-title {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 576px) {
    .section-title {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .intro-title {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .video-text-overlay .section-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    #intro-video .video-text-overlay .section-title {
        font-size: 0.85rem;
        line-height: 1.2;
    }
}

/* ブログ タイトルのモバイル調整 */
/* 長文タイトルの折返しを最適化 */
.blog-post-title {
    word-break: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}
@media screen and (max-width: 768px) {
    .blog-post-title { /* 各記事ページのトップ見出し（h1） */
        font-size: 1.4rem !important;
        line-height: 1.25;
    }
    .blog-title { /* ブログ一覧カードのタイトル（h3） */
        font-size: 1.1rem;
        line-height: 1.4;
    }
}

@media screen and (max-width: 576px) {
    .blog-post-title {
        font-size: 1.3rem !important;
        line-height: 1.25;
    }
    .blog-title {
        font-size: 1.0rem;
        line-height: 1.4;
    }
}

/* ヘッダーとナビゲーション */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 1000;
    background-color: rgba(10, 17, 24, 0.9);
    transition: var(--transition);
}

.logo-image {
    height: 40px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 5px rgba(57, 255, 20, 0.5));
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* モバイル用ナビゲーションのレイアウト修正 */
@media screen and (max-width: 768px) {
    /* ハンバーガーを表示 */
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1002; /* ナビより前面に */
    }

    /* ヘッダー内ナビをドロップダウン化（ヘッダー直下に表示） */
    header nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 17, 24, 0.98);
        box-shadow: 0 6px 16px rgba(0,0,0,0.5);
        overflow: hidden;
        max-height: 0;          /* 初期は閉じる */
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease;
        z-index: 1001;          /* オーバーレイより下、トグルより下 */
        pointer-events: none;   /* 閉じている間は操作不可 */
    }

    header nav ul {
        flex-direction: column;
        padding: 10px 20px;
        gap: 8px;
    }

    header nav ul li {
        margin: 6px 0;
    }

    /* 開いた状態 */
    header nav.active {
        max-height: 60vh;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* ヒーローセクション */
.hero {
    padding-top: 80px;
    height: 100vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-logo {
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
}

.hero-logo-image {
    height: 60px;
    width: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 8px rgba(57, 255, 20, 0.7));
}

.hero-content-logo {
    height: 80px;
    width: auto;
    display: block;
    margin: 0 auto 15px;
    filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.8));
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out, visibility 0s linear 0.8s;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.05); /* 5%の黒色オーバーレイ */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 100px 20px;
    z-index: 2;
    box-sizing: border-box; /* 幅の計算にパディングを含める */
}

.slide-overlay.from-green-900\/50.via-green-600\/30.to-black\/90 {
    /* 黒を基調としたオーバーレイ */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05));
    box-shadow: none;
    border-bottom: none;
}

.slide-overlay.from-blue-900\/50.via-purple-600\/30.to-black\/90 {
    /* 黒を基調としたオーバーレイ */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05));
    box-shadow: none;
    border-bottom: none;
}

.slide-overlay.from-purple-900\/50.via-pink-600\/30.to-black\/90 {
    /* 黒を基調としたオーバーレイ */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05));
    box-shadow: none;
    border-bottom: none;
}

.slide-overlay.from-amber-900\/50.via-yellow-600\/30.to-black\/90 {
    /* 黒を基調としたオーバーレイ */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05));
    box-shadow: none;
    border-bottom: none;
}

.slide-overlay.from-teal-900\/50.via-teal-600\/30.to-black\/90 {
    /* 黒を基調としたオーバーレイ */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05));
    box-shadow: none;
    border-bottom: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #39ff14;
    text-shadow: 0 0 15px rgba(57, 255, 20, 0.7);
    letter-spacing: 2px;
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}



.hero-content p {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #ffffff;
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.hero-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    width: 100%;
}

.btn-primary {
    background-color: #39ff14;
    color: #000;
    border: 2px solid #39ff14;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

.btn-primary:hover {
    background-color: transparent;
    color: #39ff14;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #39ff14;
    color: #39ff14;
    transform: translateY(-3px);
}

.hero-info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 15px 10px;
    background: rgba(0, 0, 0, 0.8);
    z-index: 4;
}

.info-item {
    flex: 1;
    text-align: center;
    padding: 5px;
}

.info-item i {
    font-size: 1.5rem;
    color: #39ff14;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 1rem;
    color: #ffffff;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .slide-overlay {
        padding: 100px 20px 80px 20px;
    }

    .hero-content-logo {
        height: 60px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 576px) {
    .hero {
        height: 100svh; /* 安定したモバイル全画面高さ */
    }
    
    .slideshow-container {
        height: 100%;
    }
    
    .slide {
        height: 100%;
        position: absolute; /* フェード重ね合わせ維持 */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .slide-overlay {
        /* ヘッダーとインフォバーの高さを差し引いた領域内で中央配置 */
        --hero-header-h: 72px;
        --hero-infobar-h: 90px;
        min-height: calc(100% - var(--hero-header-h) - var(--hero-infobar-h));
        padding: 0 16px;
        box-sizing: border-box;
        display: grid;
        place-items: center; /* 縦横中央 */
    }

    .hero-content {
        padding: 0;
        height: auto;
        position: static; /* 絶対配置を解除して中央寄せが効くように */
    }

    .hero-content-logo {
        height: 50px;
        margin-bottom: 15px;
    }
    
    .slide-content {
        display: grid;
        place-items: center;
        gap: 12px;
        width: min(90%, 320px);
        margin: 0 auto;
        text-align: center;
    }
    
    /* すべてのスライドコンテンツ内の要素を中央揃えにする */
    .slide-content > * {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .slide-content .subtitle,
    .slide-content .specs {
        text-align: center;
        width: 80%;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block;
    }
    
    .slide-content .hero-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-top: 20px;
        max-width: 280px;
        padding: 0 10px;
    }
    
    .slide-content .btn {
        padding: 8px 10px;
        font-size: 0.9rem;
        min-width: 0;
        width: 48%;
        margin: 0;
        text-align: center;
        display: inline-block;
    }
}

/* スタジオについて */
.about {
    background-color: var(--secondary-color);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Aboutセクションのスライドショー */
.about-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.about-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.about-slide.active {
    opacity: 1;
}

.about-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* サービス */
.services {
    background-color: var(--dark-bg);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

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

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* ギャラリー */
.gallery {
    background-color: var(--dark-bg);
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* メディアクエリを削除して、常に2×2のグリッドを維持 */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ギャラリー内の動画サムネイル */
.video-gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-video-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-video-thumbnail img,
.gallery-video-thumbnail video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-video-thumbnail:hover img,
.gallery-video-thumbnail:hover video {
    transform: scale(1.05);
}

.gallery-video-thumbnail .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #999;
    z-index: 2;
}

.gallery-video-thumbnail .play-button i {
    color: #ccc;
    font-size: 18px;
}

.gallery-video-thumbnail:hover .play-button {
    background-color: rgba(0, 0, 0, 0.7);
}

.gallery-video-thumbnail:hover .play-button i {
    color: #fff;
}

.gallery-video-thumbnail .video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    padding: 15px;
    color: #fff;
    transition: all 0.3s ease;
}

.gallery-video-thumbnail .video-caption h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #fff;
}

.gallery-video-thumbnail .video-caption p {
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
}

.gallery-video-thumbnail:hover .video-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5));
}

.video-thumbnail {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    text-align: center;
    padding: 20px;
}

.video-text-overlay p,
.video-text-overlay h2,
.video-text-overlay .section-title,
.video-text-overlay .section-subtitle {
    text-align: center !important;
    width: 80%;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
}

.video-text-overlay .section-title {
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(51, 204, 51, 0.8);
}

.video-text-overlay .section-subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.intro-title {
    color: #33CC33;
    font-size: 2.2rem;
    word-wrap: break-word;
    text-align: center;
    overflow-wrap: break-word;
}

.intro-subtitle {
    color: #33CC33;
    font-size: 1.2rem;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.neon-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #39ff14;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.7);
    pointer-events: none;
}

.video-thumbnail:hover {
    transform: scale(1.02);
}

.video-thumbnail .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #999;
    z-index: 2;
}

.video-thumbnail .play-button i {
    color: #ccc;
    font-size: 18px;
}

.video-thumbnail:hover .play-button {
    background-color: rgba(0, 0, 0, 0.7);
}

.video-thumbnail:hover .play-button i {
    color: #fff;
}

.latest-video-thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
}

.latest-video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.latest-video-thumbnail:hover img {
    transform: scale(1.05);
}

.latest-video-thumbnail .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #999;
    z-index: 2;
}

.latest-video-thumbnail .play-button i {
    color: #ccc;
    font-size: 18px;
}

.latest-video-thumbnail:hover .play-button {
    background-color: rgba(0, 0, 0, 0.7);
}

.latest-video-thumbnail:hover .play-button i {
    color: #fff;
}

/* お問い合わせ */
.contact {
    background-color: var(--dark-bg);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
}

.contact-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.contact-form form {
    max-width: 700px;
    margin: 0 auto;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-color);
}

/* スタジオQ紹介動画 */
.intro-video {
    background-color: #000;
    padding: 60px 0;
    color: #fff;
}

.intro-video .section-title {
    color: #39ff14;
    text-align: center;
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.intro-video .section-subtitle {
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.studio-intro-container {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* 動画ポップアップ */
.video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 10px;
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
    box-sizing: border-box;
}

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

.popup-video {
    width: 95vw;
    height: 90vh;
    max-width: 1600px;
    max-height: 90vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border: 2px solid #333333;
    transform: scale(1);
    animation: fadeInScale 0.3s ease-out forwards;
    object-fit: contain;
}

/* YouTubeの埋め込み動画用の追加スタイル */
iframe.popup-video {
    width: 95vw;
    height: 90vh;
    min-height: 500px;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
    }
    to {
        transform: scale(1);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0.5;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10000;
    border: 2px solid #39ff14;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
    opacity: 0;
    transform: rotate(-90deg);
    animation: rotateIn 0.5s ease-out 0.3s forwards;
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-90deg);
    }
    to {
        opacity: 1;
        transform: rotate(0);
    }
}

.close-popup:hover {
    background-color: #39ff14;
    color: var(--dark-bg);
    transform: rotate(90deg);
}

/* 最新映像 */
.latest-videos {
    background-color: #1a1a1a;
    padding: 58px 0;
    border-radius: 10px;
    margin: 38px auto;
    max-width: 90%;
}

.latest-videos .section-title {
    color: #39ff14;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    position: relative;
}

.latest-videos .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: #39ff14;
}

.videos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile view - single column for videos */
@media screen and (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

.video-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

/* Studio Qの特長 */
.features {
    background-color: #0a1118;
    padding: 30px 0;
    margin: 0;
    position: relative;
}

.features .section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.features .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: #39ff14;
}

.feature-item {
    margin-bottom: 100px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.feature-title {
    color: #39ff14;
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
    position: relative;
}

.feature-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* 偶数番目の特長は画像を右側に配置 */
.feature-item:nth-child(even) .feature-content {
    flex-direction: row-reverse;
}

/* 奇数番目の特長は画像を左側に配置 */
.feature-item:nth-child(odd) .feature-content {
    flex-direction: row;
}

.feature-image {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    max-width: 500px;
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.feature-image:hover img {
    transform: scale(1.05);
}

.feature-second-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 15px;
    object-fit: cover;
    aspect-ratio: 4/3; /* 上の画像と同じアスペクト比に設定 */
}

.feature-description {
    flex: 1;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 0 20px;
    margin-top: 0;
}

.feature-description p {
    margin-top: 0;
    margin-bottom: 15px;
}

.feature-description p:first-child {
    margin-top: 0;
}

.feature-link {
    margin-top: 30px;
}

.btn-link {
    color: #39ff14;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #39ff14;
    transition: width 0.3s ease;
}

.btn-link:hover {
    color: #fff;
}

.btn-link:hover::after {
    width: 100%;
}

.btn-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-link:hover i {
    transform: translateX(5px);
}

/* Blog styles */
.blog-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

/* ブログプレビューセクション */
.blog-preview {
    background-color: #0a1118;
    padding: 60px 0;
    position: relative;
}

.blog-preview .section-title {
    color: #39ff14;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.blog-preview .section-subtitle {
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-size: 1rem;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

.blog-card {
    background-color: #1a2130;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(57, 255, 20, 0.8);
    color: #000;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.blog-category {
    background-color: #0f1b2a;
    color: #39ff14;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.blog-link {
    color: #39ff14;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.blog-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.blog-link:hover {
    color: #ffffff;
}

.blog-link:hover i {
    transform: translateX(3px);
}

.blog-more {
    text-align: center;
    margin-top: 40px;
}

/* レスポンシブデザイン - タブレット */
@media screen and (max-width: 992px) {
    .blog-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* レスポンシブデザイン - モバイル */
@media screen and (max-width: 768px) {
    .blog-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* Gamma document link styles */
.gamma-document-link {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
}

.gamma-document-link h3 {
    color: #333;
    margin-top: 0;
    font-size: 1.4rem;
}

.gamma-button {
    display: inline-block;
    background-color: #4285f4;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    margin: 15px 0;
    transition: background-color 0.3s ease;
}

.gamma-button:hover {
    background-color: #3367d6;
    text-decoration: none;
    color: white;
}

.gamma-icon {
    margin-right: 8px;
}

.gamma-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
}

/* 料金表ページのスタイル */
.fee-section {
    padding: 100px 0 60px;
    background-color: var(--section-bg);
}

.fee-section .section-title {
    margin-top: 20px;
    padding-top: 30px;
    position: relative;
}

.fee-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.fee-plan {
    margin-bottom: 40px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.fee-plan-title {
    background-color: #f39c12;
    color: #000;
    padding: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
}

.fee-row {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fee-row:last-child {
    border-bottom: none;
}

.fee-header {
    background-color: rgba(0, 0, 0, 0.2);
    font-weight: bold;
}

.fee-cell {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fee-amount {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    text-align: left;
}

/* 編集作業の行のスタイル調整 */
[colspan="2"] .fee-amount {
    padding-left: 0;
    margin-top: 0;
    margin-left: 0;
    padding-right: 0;
    text-align: left;
    display: block;
    width: 100%;
}

/* テキストの左端を揃えるための追加スタイル */
.fee-cell .fee-amount {
    padding-left: 0;
    text-align: left;
    display: block;
}

.fee-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.service-info, .fee-notice, .use-cases {
    margin-bottom: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: var(--border-radius);
}

.service-info h3, .fee-notice h3, .use-cases h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.update-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
    margin-top: 10px;
}

.use-cases ul {
    list-style-type: none;
    padding-left: 20px;
}

.use-cases ul li {
    position: relative;
    padding: 5px 0;
    padding-left: 20px;
}

.use-cases ul li:before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

@media screen and (max-width: 768px) {
    .fee-row {
        flex-direction: column;
    }
    
    .fee-cell {
        width: 100%;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-content {
        flex-direction: column !important;
    }
    
    .feature-image {
        margin-bottom: 30px;
        max-width: 100%;
    }
}

/* フッター */
footer {
    background-color: #111;
    color: #fff;
    padding: 60px 0 30px;
}

/* テーブルレイアウトとギャラリー関連のスタイル */
.gallery-table {
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0;
    border-spacing: 20px;
    border-collapse: separate;
}

.gallery-table td {
    width: 50%;
    vertical-align: top;
}

.gallery-video-thumbnail {
    background-size: cover;
    background-position: center;
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* アクセシビリティ関連のスタイル */
.skip-link {
    background: #000;
    color: #fff;
    font-weight: 700;
    left: 50%;
    padding: 4px;
    position: absolute;
    transform: translateY(-100%);
    transition: transform 0.3s;
    z-index: 100;
}

.skip-link:focus {
    transform: translateY(0%);
}

/* パンくずリストスタイル */
.breadcrumb {
    margin-bottom: 15px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    color: #ccc;
    font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 8px;
    color: #999;
}

.breadcrumb a {
    color: #ccc;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Google Mapスタイル */
.map-thumbnail iframe {
    border: 0;
    width: 100%;
    height: 450px;
}

/* タブレットサイズ対応のギャラリー画像スタイル */
@media (max-width: 768px) {
    .gallery-item img, 
    img[alt="eラーニング動画"] {
        display: block;
        min-height: 150px;
        object-fit: cover;
        width: 100%;
        height: auto;
        max-width: 100%;
    }
    
    /* eラーニング動画のサムネイル画像に対する特別なスタイル */
    img[alt*="eラーニング動画"] {
        display: block !important;
        min-height: 150px !important;
        object-fit: cover !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-image {
    height: 50px;
    width: auto;
    display: block;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(57, 255, 20, 0.5));
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--card-bg);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(10, 17, 24, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-top: 1px solid rgba(57, 255, 20, 0.2);
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    nav.active {
        transform: translateY(0);
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .hero {
        padding-top: 80px;
        height: 100vh;
        min-height: 500px;
        position: relative;
        overflow: hidden;
    }
    
    .slideshow-container {
        z-index: 5;
        text-align: center;
        max-width: 800px;
        padding: 0 20px;
    }

    .hero-content-logo {
        height: 60px;
    }
}

@media screen and (max-width: 576px) {
    /* モバイル表示時に次へボタンを非表示 */
    .next-slide {
        display: none !important;
    }
    
    .hero {
        padding-top: 80px;
        height: 100vh;
        min-height: 500px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        overflow: hidden;
        padding-bottom: 0;
    }
    .slideshow-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .slide {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .hero-info-bar {
        flex-wrap: nowrap;
        justify-content: space-around;
        padding: 15px 5px;
        bottom: 0;
        position: absolute;
        width: 100%;
        display: flex;
        align-items: center;
        flex-direction: row;
        z-index: 10;
    }
    .info-item {
        flex: 1 0 25%;
        padding: 3px;
    }

    .slide-overlay {
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 100px 20px 80px 20px;
    }

    .hero-content {
        position: relative;
        z-index: 5;
        text-align: center;
        max-width: 800px;
        padding: 0 20px;
    }

    .hero-content-logo {
        height: 50px;
    }
}

/* ===== FINAL MOBILE OVERRIDES (placed at EOF to win specificity/order) ===== */
@media screen and (max-width: 576px) {
  .hero .slideshow-container,
  .hero .slideshow-container .slide,
  .hero .slideshow-container .slide .slide-overlay {
    height: 100%;
  }

  .hero .slideshow-container .slide .slide-overlay {
    /* fallback vars if not defined earlier */
    --hero-header-h: var(--hero-header-h, 72px);
    --hero-infobar-h: var(--hero-infobar-h, 90px);
    min-height: calc(100svh - var(--hero-header-h) - var(--hero-infobar-h));
    padding: 0 16px !important;
    display: grid !important;
    place-items: center !important;
  }

  .hero .slideshow-container .slide .slide-content {
    display: grid !important;
    place-items: center !important;
    gap: 12px;
    width: min(90%, 340px);
    margin: 0 auto;
    text-align: center;
  }

  .hero .slideshow-container .slide .hero-content {
    position: static !important;
  }
}

/* ギャラリーセクション */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.gallery-video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-video-thumbnail img {
    transform: scale(1.05);
}

.gallery-video-thumbnail .play-button {
    position: absolute;
    font-size: 3rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    z-index: 2;
}

.gallery-video-thumbnail:hover .play-button {
    transform: scale(1.1);
}

.video-caption {
    padding: 20px;
    text-align: center;
}

.video-caption h3 {
    font-size: 1.3rem;
    color: var(--text-color-light);
    margin-bottom: 10px;
}

.video-caption p {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .slide-overlay {
        padding: 100px 20px 80px 20px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media screen and (max-width: 576px) {
    .slide-overlay {
        padding: 80px 15px 70px 15px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-actions {
    }

    .btn {
    }

    .hero-content-logo {
        height: 50px;
    }
}