/* 日経の選ぶ経営者の集い TOPページのCSS（社長TV風デザイン） */

/* === フォント設定 === */
:root {
    --color-bg: #002b36;
    --color-accent: #b87333;
    --color-tint: rgba(255,255,255,0.07);
    --color-text: #ffffff;
    --color-text-muted: rgba(255,255,255,0.85);
    --color-border: rgba(184,115,51,0.3);
    --color-surface: rgba(255,255,255,0.08);
}

/* ベースとなるスタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

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

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 43, 54, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
}

.header-logo {
    display: flex;
    align-items: center;
    height: 40px; /* ヘッダー内での高さを確保 */
}

.header-logo img {
    height: 100%; /* 親要素の高さいっぱいに */
    width: auto;  /* 幅は自動調整（SVGのアスペクト比維持） */
    max-width: 180px; /* PCでの最大幅制限 */
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container .logo {
    height: 50px;
    width: auto;
    background-color: #ffffff !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    font-size: 16px;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.cta-button {
    background-color: var(--color-accent);
    color: var(--color-bg);
    padding: 8px 20px;
    border-radius: 3px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

/* ハンバーガーメニュー */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    width: 30px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* モバイルメニュー */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 43, 54, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: none;
}

.mobile-menu.active {
    max-height: 300px;
    border-bottom: 1px solid var(--color-border);
}

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

.mobile-nav-menu li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
}

.mobile-nav-menu a {
    display: block;
    padding: 15px 30px;
    font-size: 16px;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.mobile-nav-menu a:hover {
    background-color: rgba(184, 115, 51, 0.1);
    padding-left: 40px;
}

.mobile-nav-menu .cta-button {
    background-color: transparent;
    border: 2px solid var(--color-accent);
    margin: 10px 30px;
    padding: 12px 20px;
    border-radius: 3px;
    text-align: center;
    display: block;
}

.mobile-nav-menu .cta-button:hover {
    background-color: var(--color-accent);
    color: var(--color-bg);
    padding-left: 20px;
}

/* メインコンテンツ */
.main-content {
    padding-top: 80px;
    color: var(--color-bg);
}

/* メインビデオセクション */
.main-video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.main-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.main-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: sepia(0.3) brightness(0.7) contrast(1.2);
    z-index: -1;
    /* iOS Safari向けの追加スタイル */
    -webkit-transform: translate(-50%, -50%);
    -webkit-filter: sepia(0.3) brightness(0.7) contrast(1.2);
    pointer-events: none; /* iOS向けのタッチイベント無効化 */
    -webkit-appearance: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

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

.video-tagline {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    background: rgba(0, 43, 54, 0.6);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
}

.video-title-logo {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.video-title-logo img {
    max-width: 90%;
    width: 480px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
    animation: fadeInUp 1.5s ease-out;
}

.video-description {
    color: #fff;
    font-size: 1rem;
    line-height: 1.8;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 1rem;
}

.video-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 84px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
    letter-spacing: 0.15em;
    color: #ffffff;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.8),
        0 4px 20px rgba(184, 115, 51, 0.4),
        0 0 40px rgba(184, 115, 51, 0.2);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
    margin-right: -0.4em; /* 句点の分だけ右マージンを詰めて視覚的な中央揃えを調整 */
}

/* 句点のスタイル調整 */
.video-title .period {
    letter-spacing: -0.4em; /* 句点自体の余白を詰める */
    margin-right: 0.4em; /* 全体のバランス調整 */
}

.video-title.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.video-company {
    font-size: 24px;
    margin-bottom: 40px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.video-buttons {
    display: flex;
    gap: 20px;
}

.play-button, .info-button {
    padding: 12px 30px;
    border-radius: 3px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.play-button {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

.play-button:hover {
    color: var(--color-bg);
}

.info-button {
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: #ffffff;
}

.info-button:hover {
    background-color: var(--color-accent);
    color: #ffffff;
    transform: translateY(-1px);
}

.play-button i, .info-button i {
    margin-right: 8px;
}

/* 最新動画セクション */
.latest-videos {
    padding: 80px 0;
    background-color: #001825; /* より深い背景色で階層感を演出 */
}

.latest-videos-header {
    text-align: center;
    margin-bottom: 60px;
}

.latest-videos-title {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.video-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-card {
    background-color: var(--color-surface);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(184, 115, 51, 0.3);
    border-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.1);
}

.video-card-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.play-icon {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 40px;
    height: 40px;
    background-color: rgba(184, 115, 51, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg);
    font-size: 18px;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-card:hover .play-icon {
    background-color: var(--color-accent);
    transform: scale(1.1) !important;
}

.video-card-content {
    padding: 20px;
}

.video-card-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #ffffff;
}

.video-card-company {
    font-size: 14px;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.video-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-text-muted);
}

.view-all-button {
    display: block;
    width: 200px;
    margin: 0 auto;
    padding: 15px 30px;
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: #ffffff;
    text-align: center;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-button:hover {
    background-color: var(--color-accent);
    color: #ffffff;
    transform: translateY(-1px);
}

/* カテゴリセクション */
.categories {
    padding: 80px 0;
    background-color: #001825;
}

.categories-header {
    text-align: center;
    margin-bottom: 60px;
}

.categories-title {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--color-accent);
}

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

.category-card {
    position: relative;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(184, 115, 51, 0.3);
}

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

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 43, 54, 0.3), rgba(0, 43, 54, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-title {
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 経営者特典セクション */
.benefits {
    padding: 80px 0;
    background-color: var(--color-bg);
}

.benefits-header {
    text-align: center;
    margin-bottom: 60px;
}

.benefits-title {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--color-accent);
}

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

.benefit-card {
    background-color: var(--color-surface);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(184, 115, 51, 0.4);
    border-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--color-bg);
}

.benefit-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #ffffff;
}

.benefit-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* 参加企業セクション */
.companies {
    padding: 80px 0;
    background-color: #001219;
}

.companies-header {
    text-align: center;
    margin-bottom: 60px;
}

.companies-title {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.companies-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) rgba(255, 255, 255, 0.1);
}

.companies-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.companies-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.companies-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--color-accent);
    border-radius: 10px;
}

.companies-grid {
    display: flex;
    gap: 30px;
    padding: 0 10px;
    width: max-content;
}

.company-logo {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    width: 240px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(184, 115, 51, 0.1);
}

.company-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(184, 115, 51, 0.3);
    border-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 1);
}

.company-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

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

/* お問い合わせセクション */
.contact {
    padding: 80px 0;
    background-color: #001825; /* 階層感のための深い背景 */
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.contact-title {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.contact-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--color-text-muted);
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--color-text);
    padding: 16px 20px;
    background-color: rgba(184, 115, 51, 0.15);
    border: 1px solid var(--color-accent);
    border-radius: 6px;
    font-weight: 500;
}

.contact-feature i {
    background-color: var(--color-accent);
    color: #ffffff;
    font-size: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-feature span {
    color: var(--color-text);
}

.contact-info {
    flex: 1;
}

.contact-cta {
    margin-top: 40px;
}

.contact-cta iframe {
    min-height: 1400px;
    height: 1400px;
    border: none;
    border-radius: 8px;
    background-color: #ffffff;
    display: block;
    overflow: hidden;
}

.contact-cta-button {
    display: inline-block;
    padding: 20px 50px;
    background-color: var(--color-accent);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.contact-cta-button:hover {
    background-color: #c68a4a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 115, 51, 0.4);
    color: #ffffff;
}

.contact-form {
    background-color: var(--color-surface);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(184, 115, 51, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
    display: inline-block;
    width: 100%;
    padding: 16px;
    background-color: var(--color-accent);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.submit-btn:hover {
    background-color: #c68a4a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.4);
    color: #ffffff;
}

/* フッター */
.footer {
    background-color: #001219;
    padding: 60px 0 30px;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 15px;
    background-color: #ffffff !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
}

.footer-description {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.footer-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    font-size: 14px;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
}

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

.footer-bottom p {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* レスポンシブデザイン */

/* タブレット対応 */
@media (max-width: 1024px) {
    .main-video-section {
        height: 80vh;
    }
    
    .video-title {
        font-family: 'Noto Serif JP', serif;
        font-size: 64px;
        font-weight: 700;
        letter-spacing: 0.13em;
    }
}

/* スマートフォン対応 */
@media (max-width: 768px) {
    .header-container {
        padding: 15px 20px;
        justify-content: space-between; /* justify-content を flex-end から space-between に変更 */
    }
    
    .header-logo {
        height: 32px; /* スマホでは高さを少し小さく */
    }

    .header-logo img {
        max-width: 140px; /* スマホサイズでの最大幅 */
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    /* メインビデオセクションのモバイル対応 */
    .main-video-section {
        height: 70vh; /* モバイルでは高さを調整 */
    }
    
    .main-video {
        /* モバイルでのパフォーマンス最適化 */
        filter: sepia(0.2) brightness(0.8) contrast(1.1);
        -webkit-filter: sepia(0.2) brightness(0.8) contrast(1.1);
        /* iOSでの動画表示を確実にするための追加スタイル */
        width: 100vw;
        height: 100%;
        min-width: 100vw;
        min-height: 100%;
        object-fit: cover;
        -webkit-transform: translate(-50%, -50%) scale(1.01); /* 微小なスケールでレンダリングを強制 */
        transform: translate(-50%, -50%) scale(1.01);
        -webkit-mask-image: -webkit-radial-gradient(white, black);
        mask-image: radial-gradient(white, black);
    }
    
    .video-title {
        font-family: 'Noto Serif JP', serif;
        font-size: 42px;
        font-weight: 700;
        letter-spacing: 0.12em;
        padding: 0 20px;
    }
    
    .video-company {
        font-size: 18px;
    }
    
    .video-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-cta {
        margin-top: 30px;
        text-align: center;
    }
    
    .contact-cta iframe {
        min-height: 1600px;
        height: 1600px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .companies-scroll-wrapper {
        padding: 10px 0;
    }
    
    .companies-grid {
        display: grid;
        grid-template-rows: repeat(2, 1fr);
        grid-auto-flow: column;
        grid-auto-columns: 200px;
        gap: 20px;
        padding: 0 10px;
        width: auto;
        overflow-x: auto;
    }
    
    .company-logo {
        width: 200px;
        padding: 25px;
    }
    
    .company-logo img {
        max-height: 70px;
    }

    .video-tagline {
        font-size: 0.9rem;
        width: 90%;
        text-align: center;
    }
    
    .video-title-logo img {
        width: 280px; /* スマホではロゴを少し小さく */
    }
    
    .video-description {
        font-size: 0.9rem;
        width: 90%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .video-title {
        font-family: 'Noto Serif JP', serif;
        font-size: 32px;
        font-weight: 700;
        letter-spacing: 0.1em;
    }
    
    .video-company {
        font-size: 16px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .companies-scroll-wrapper {
        padding: 10px 0;
    }

    .companies-grid {
        display: grid;
        grid-template-rows: repeat(2, 1fr);
        grid-auto-flow: column;
        grid-auto-columns: 180px;
        gap: 15px;
        padding: 0 5px;
        width: auto;
        overflow-x: auto;
    }

    .company-logo {
        width: 180px;
        padding: 20px;
    }

    .company-logo img {
        max-height: 65px;
    }
}

/* アニメーション定義 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
