/**
 * OTONAEVENT Venues Display - タブ形式スタイル
 */

/* ========================================
   共通スタイル
   ======================================== */

* {
    box-sizing: border-box;
}

.ovd-container,
.ovd-venue-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ボタン */
.ovd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
    line-height: 1.5;
}

.ovd-btn-primary {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.ovd-btn-primary:hover {
    background: linear-gradient(135deg, #e55a2b, #e07a0a);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

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

.ovd-btn-secondary:hover {
    background: #fff9f5;
    color: #e55a2b;
    border-color: #e55a2b;
}

.ovd-btn-outline {
    background: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.ovd-btn-outline:hover {
    background: #ff6b35;
    color: #fff;
}

.ovd-btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.ovd-hero-title {
    color: #fff;
}

/* ========================================
   会場一覧ページ - グリッドレイアウト
   ======================================== */

.ovd-venue-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

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

.ovd-venue-grid > .ovd-venue-card {
    width: 100%;
}

.ovd-venue-grid > .ovd-venue-card:only-child {
    max-width: 520px;
    justify-self: center;
}

.ovd-venue-grid.ovd-columns-1,
.ovd-venue-list.ovd-columns-1 {
    grid-template-columns: 1fr;
}

.ovd-venue-grid.ovd-columns-2,
.ovd-venue-list.ovd-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ovd-venue-grid.ovd-columns-3,
.ovd-venue-list.ovd-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ovd-venue-grid.ovd-columns-4,
.ovd-venue-list.ovd-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 会場カード */
.ovd-preview-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.ovd-preview-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

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

.ovd-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ovd-card-image.has-image::before {
    content: none;
}

.ovd-card-image.has-image {
    background: none;
}

/* Venue favorites */
.ovd-fav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.ovd-fav-button:hover {
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
    transform: translateY(-1px);
}

.ovd-fav-button:focus-visible {
    outline: 3px solid rgba(255, 107, 53, 0.35);
    outline-offset: 2px;
}

.ovd-fav-button.is-active {
    border-color: #ff6b35;
}

.ovd-fav-button.is-loading {
    cursor: wait;
    opacity: 0.7;
}

.ovd-fav-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.ovd-fav-button--card {
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: none;
}

.ovd-fav-button--card .ovd-fav-label {
    display: none;
}

.ovd-fav-button-wrap--card {
    position: static;
}

.ovd-venue-favorite {
    margin-top: 12px;
}

.ovd-fav-button--detail .ovd-fav-icon {
    width: 24px;
    height: 24px;
}

.vod-preview-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.ovd-preview-card:hover .vod-preview-card-image img {
    transform: scale(1.05);
}

.vod-preview-no-image {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.vod-preview-card-content {
    padding: 20px;
}

.vod-preview-card-type {
    margin-bottom: 8px;
}

.vod-preview-card-type span {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    background: #fff3e6;
    color: #ff6b35;
    border-radius: 4px;
    font-weight: 600;
}

.vod-preview-card-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.4;
}

.vod-preview-card-catch {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.vod-preview-card-meta {
    font-size: 13px;
    color: #666;
}

.vod-preview-capacity {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========================================
   会場詳細ページ - タブ形式
   ======================================== */

/* ヒーロー画像（未使用になっても残してOK） */
.ovd-venue-hero {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    background: #f8f8f8;
}

.ovd-venue-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ovd-venue-title-section {
    max-width: 1200px;
    margin: 10px auto 12px;
    padding: 0 20px;
}

.ovd-action-buttons--title {
    margin-top: 10px;
}

.ovd-action-buttons--gallery {
    max-width: 1200px;
    margin: 12px auto 0;
    padding: 0 20px;
}

/* ========================================
   会場詳細ページ - ギャラリー（旧ヒーロー領域）
   ======================================== */

/* ★調整：ギャラリー（タイトル含む）をコンテナ幅に揃え、上下余白も詰める */
.ovd-venue-gallery-hero {
    max-width: 1200px;
    margin: 10px auto 18px;
    padding: 0 20px;
}

.ovd-venue-gallery {
    /* .ovd-venue-container 内で表示するため幅指定は不要 */
}


/* ギャラリー上のタイトルをテーマのh1スタイルから独立させる */
.ovd-venue-title--gallery {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 14px;
    color: #111;
}
@media (max-width: 768px) {
    .ovd-venue-title--gallery {
        font-size: 24px;
        margin: 0 0 12px;
    }
}
.ovd-venue-gallery-main {
    width: 660px;
    height: 370px;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}

.ovd-venue-gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ovd-venue-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}

.ovd-venue-thumb {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #e0e0e0;
    padding: 0;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.ovd-venue-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ovd-venue-thumb:hover {
    transform: translateY(-1px);
}

.ovd-venue-thumb.is-active {
    border-color: #ff6b35;
}

.ovd-venue-thumb:focus-visible {
    outline: 3px solid rgba(255, 107, 53, 0.35);
    outline-offset: 2px;
}

/* レスポンシブ: SPでは横幅いっぱい＋比率維持 */
@media (max-width: 768px) {
    .ovd-venue-gallery-main {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .ovd-venue-thumb {
        width: 84px;
        height: 84px;
    }

    /* ★SPでも詰める（左右はコンテナパディングで維持） */
    .ovd-venue-gallery-hero {
        margin: 8px auto 14px;
        padding: 0 16px;
    }
}

/* ヘッダー情報 */
/* ★調整：ヘッダー下の余白を減らす */
.ovd-venue-header {
    padding: 18px 0 12px;
}

.ovd-venue-type-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 12px;
}

.ovd-venue-title {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 18px 0; /* 少し詰める */
    color: #333;
    line-height: 1.3;
}

/* 会場詳細情報バー */
/* ★調整：詳細バーの下余白を詰める */
.ovd-venue-details-bar {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 14px;
}

.ovd-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.ovd-detail-item:last-child {
    margin-bottom: 0;
}

.ovd-detail-icon {
    flex-shrink: 0;
    color: #666;
    margin-top: 2px;
}

.ovd-detail-label {
    font-weight: 600;
    color: #666;
    min-width: 100px;
}

.ovd-detail-value {
    color: #333;
    flex: 1;
}

.ovd-map-link-inline {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    margin-left: 8px;
}

.ovd-map-link-inline:hover {
    text-decoration: underline;
}

/* アクションボタン */
/* ★調整：ボタンが無い時の余白をゼロにする */
.ovd-action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.ovd-action-buttons:empty {
    display: none;
    margin: 0;
}

/* タブナビゲーション */
.ovd-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.ovd-tab-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 24px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.ovd-tab-link:hover {
    color: #ff6b35;
    background: #fff9f5;
}

.ovd-tab-link.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

.ovd-tab-icon {
    color: currentColor;
}

/* タブコンテンツ */
.ovd-tab-content {
    min-height: 400px;
    padding-bottom: 40px;
}

.ovd-tab-pane {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* コンテンツセクション */
.ovd-content-section {
    margin-bottom: 40px;
}

.ovd-section-heading {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 20px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ovd-heading-icon {
    color: #ff6b35;
}

.ovd-section-body {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

/* 設備・特徴グリッド */
.ovd-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.ovd-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 6px;
    font-size: 14px;
    color: #444;
}

/* おすすめイベントカテゴリ */
.ovd-event-category-block {
    margin: 10px 0 0;
}

.ovd-venue-category-block {
    margin: 10px 0 0;
}

.ovd-venue-category-heading,
.ovd-feature-heading {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    margin-bottom: 6px;
}

.ovd-venue-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ovd-venue-category-pill {
    background: #f3f6ff;
    color: #2f5fd0;
    border: 1px solid rgba(47, 95, 208, 0.18);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.ovd-feature-block {
    margin: 10px 0 0;
}

.ovd-event-category-heading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.ovd-event-category-heading--small {
    font-size: 12px;
}

.ovd-event-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ovd-event-category-icon--before {
    color: #ff6b35;
}

.ovd-event-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    max-width: 100%;
}

.ovd-event-category-pill {
    background: #fff3e6;
    color: #ff6b35;
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.ovd-event-category-block--card {
    margin-top: 10px;
}

.ovd-event-category-block--card .ovd-event-category-pills {
    gap: 5px;
}

.ovd-event-category-block--card .ovd-event-category-pill {
    font-size: 11px;
    padding: 3px 8px;
}

.ovd-event-category-block--title .ovd-event-category-heading {
    font-size: 14px;
}

.ovd-feature-check {
    flex-shrink: 0;
}

/* ========================================
   メニュー表示
   ======================================== */

.ovd-menu-section {
    margin-bottom: 30px;
}

.ovd-menu-section:last-child {
    margin-bottom: 0;
}

.ovd-menu-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff6b35;
}

.ovd-menu-section-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
}

.ovd-menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.ovd-menu-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ovd-menu-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ovd-menu-item.has-image {
    display: flex;
    flex-direction: row;
}

.ovd-menu-item-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    background: #f5f5f5;
}

.ovd-menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ovd-menu-item-content {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.ovd-menu-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.ovd-menu-item-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}

.ovd-menu-item-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    background: #fff3e6;
    color: #ff6b35;
    border-radius: 4px;
    white-space: nowrap;
}

.ovd-menu-item-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
    flex: 1;
}

.ovd-menu-item-price {
    font-size: 15px;
    font-weight: 700;
    color: #ff6b35;
    margin-top: auto;
}

.ovd-menu-no-items {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* メニューアイテム：画像なしの場合 */
.ovd-menu-item:not(.has-image) .ovd-menu-item-content {
    padding: 16px;
}

/* レスポンシブ：メニュー */
@media (max-width: 600px) {
    .ovd-menu-items {
        grid-template-columns: 1fr;
    }

    .ovd-menu-item.has-image {
        flex-direction: column;
    }

    .ovd-menu-item-image {
        width: 100%;
        height: 160px;
    }
}

/* 空状態 */
.ovd-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.ovd-empty-icon {
    display: block;
    margin: 0 auto 20px;
}

.ovd-empty-state p {
    font-size: 16px;
    margin: 0 0 8px 0;
    color: #666;
}

.ovd-empty-note {
    font-size: 14px;
    color: #999;
}

/* フッター */
.ovd-venue-footer {
    padding: 40px 0;
    background: #f8f8f8;
    text-align: center;
}

.ovd-site-footer {
    margin-top: 40px;
    padding: 48px 0 32px;
    background: linear-gradient(135deg, #fff6ef, #ffffff);
    border-top: 1px solid #f1e5dd;
}

.ovd-site-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.ovd-footer-logo {
    display: inline-flex;
    font-size: 20px;
    font-weight: 700;
    color: #ff6b35;
    text-decoration: none;
}

.ovd-footer-tagline {
    margin: 10px 0 0;
    color: #666;
    font-size: 14px;
}

.ovd-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ovd-footer-links a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.ovd-footer-links a:hover {
    color: #ff6b35;
}

.ovd-footer-meta {
    font-size: 13px;
    color: #666;
    text-align: right;
}

.ovd-footer-meta p {
    margin: 0;
}

/* ========================================
   レスポンシブ
   ======================================== */

@media (max-width: 768px) {
    .ovd-venue-grid,
    .ovd-venue-grid.ovd-columns-2,
    .ovd-venue-grid.ovd-columns-3,
    .ovd-venue-grid.ovd-columns-4,
    .ovd-venue-list,
    .ovd-venue-list.ovd-columns-2,
    .ovd-venue-list.ovd-columns-3,
    .ovd-venue-list.ovd-columns-4 {
        grid-template-columns: 1fr;
    }

    .ovd-venue-hero {
        max-height: 250px;
    }

    .ovd-venue-title {
        font-size: 24px;
    }

    .ovd-tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ovd-tab-link {
        white-space: nowrap;
        padding: 14px 16px;
        font-size: 14px;
    }

    .ovd-detail-label {
        min-width: auto;
    }

    .ovd-action-buttons {
        flex-direction: column;
    }

    .ovd-action-buttons .ovd-btn {
        width: 100%;
        justify-content: center;
    }

    .ovd-features-grid {
        grid-template-columns: 1fr;
    }

    .ovd-site-footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ovd-footer-links {
        align-items: center;
    }

    .ovd-footer-meta {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .vod-preview-card-image {
        height: 160px;
    }

    .ovd-venue-header {
        padding: 18px 0 10px;
    }

    .ovd-tab-link {
        padding: 12px 12px;
        font-size: 13px;
    }
}
