/* =======================================================
   共通スタイル
   ======================================================= */
html, body {
    cursor: default !important;
}

/* リンクやボタン、カードはポインター */
a, button, .custom-select-btn, .company-card, .link-button, .swiper-button-prev, .swiper-button-next {
    cursor: pointer !important;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ================== ヘッダー ================== */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    display: flex;
    justify-content: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1200px;
    padding: 1rem 0;
    box-sizing: border-box;
}

/* ================== ロゴ ================== */
.home-link {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

/* ================== ナビゲーション ================== */
.nav {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.nav-item a.active {
    color: red;
    background-color: transparent;
}

/* ================== フッター ================== */
.footer {
    background-color: #fff;
    padding: 1rem 2rem;
    text-align: center;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

/* ================== 検索・ソート共通 ================== */
.search-sort-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.search-container {
    flex-grow: 1;
    display: flex;
    gap: 10px;
}

#search-input {
    flex-grow: 1;
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-btn,
.reset-btn,
.favorites-btn {
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f0f0f0;
}

.filter-sort-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-sort-container select,
.filter-sort-container button {
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
}

.favorites-btn.active {
    background-color: #333;
    color: #fff;
}

/* ================== カード共通 ================== */
.company-card, .movie-card-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

/* ================== 会社カードボタンの2行レイアウト ================== */
.company-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* ボタン間の隙間 */
    box-sizing: border-box; /* 幅計算に padding を含める */
}

/* 全ボタン共通スタイル */
.company-links a.link-button {
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
    box-sizing: border-box; /* 幅計算に padding を含める */
}

.company-links a.link-button:hover {
    background-color: #007bff;
    color: #fff;
}

/* 1行目「企業シート」を幅いっぱいに */
.company-links a.link-button:first-child {
    flex: 1 1 100%;
}

/* 2行目「企業HP」「PR動画」を2つ横並びに */
.company-links a.link-button:nth-child(2),
.company-links a.link-button:nth-child(3) {
    flex: 1 1 calc(50% - 5px);
}

/* カードホバーアニメーション */
.company-card:hover, .movie-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card-image-wrapper, .movie-image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.card-image-wrapper img, .movie-image-container img {
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.1);
}

.card-content, .movie-card-info {
    padding: 15px;
    background-color: #f9f9f9;
}

/* 会社名と星マークを横並びに */
.company-header, .movie-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.industry-icon-container img {
    width: 40px;
    height: 40px;
}

/* ================== お気に入り星マーク統合 ================== */
.favorite-btn {
    cursor: pointer;
    font-size: 24px;
    color: #ccc; /* 非アクティブはグレー */
    transition: color 0.2s, transform 0.2s;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.favorite-btn.active {
    color: gold; /* アクティブは黄色 */
}

/* ページネーション */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.page-button {
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

.page-button.active {
    background-color: #333;
    color: #fff;
}

.page-arrow {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.page-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.carousel-buttons-container {
    text-align: center;
    margin-top: 20px;
}

/* indexの動画一覧ボタン */
.btn-movie {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    color: red;
    background-color: transparent;
    border: 2px solid red;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-movie:hover {
    background-color: red;
    color: #fff;
}

/* =====================================================
   カスタムドロップダウン（業種別・開催日）
   ===================================================== */

/* ラッパー全体 */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
}

/* メインボタン */
.custom-select-btn {
    padding: 10px 12px;
    font-size: 16px;
    height: 42px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer !important;
    box-sizing: border-box;
    min-width: 140px;
    text-align: left;
    transition: background-color 0.2s, border-color 0.2s;
}

/* ホバー時 */
.custom-select-btn:hover {
    background-color: #f9f9f9;
    border-color: #999;
}

/* ▼ オプションリスト */
.custom-select-options {
    display: none; /* ← 初期は非表示 */
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 200;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ▼ 各リスト項目 */
.custom-select-options li {
    padding: 6px 10px;
	line-height: 1.2;
    cursor: pointer;
    font-size: 14px;
    color: #333;
	white-space: nowrap;
    transition: background-color 0.2s;
}

.custom-select-options li:hover {
    background-color: #f0f0f0;
}

/* ドロップダウンを開いた状態 */
.custom-select-wrapper.open .custom-select-options {
    display: block;
}

/* -----------------------------
   レイアウト調整
----------------------------- */
.filter-sort-container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .filter-sort-container {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .custom-select-wrapper {
        width: 100%;
    }

    .custom-select-btn {
        width: 100%;
    }

    .custom-select-options {
        width: 100%;
        max-height: 200px;
    }
}

/* companyページのカードはカーソルを通常にし、クリック無効化 */
body.company-page a.company-card-item {
    cursor: default !important;     /* 指マーク禁止 */
    pointer-events: none !important; /* クリック無効 */
}

body.company-page a.company-card-item,
body.company-page .company-card {
    cursor: default !important;
    pointer-events: none !important;
}

/* 下部リンクボタンだけ有効化＆指マーク */
body.company-page .company-card .company-links,
body.company-page .company-card .company-links a {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* 星ボタン（お気に入り）だけ有効化 */
body.company-page .company-card .favorite-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
}
/* ======================================================
   ハイライトカード（movieと同じ仕様）
   ====================================================== */
.company-card.highlight {
    border: 2px solid #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* companyカードをスマホで1カラム表示 */
@media screen and (max-width: 767px) {
    .company-list { /* company.html のカード一覧を包むコンテナ */
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

/* =========================================
   スマホ時は hover（ホバー）効果を無効化
   ========================================= */
@media (hover: none) and (pointer: coarse) {
  /* すべての hover スタイルをリセット */
  a:hover,
  button:hover,
  .card:hover,
  .movie-card:hover,
  .company-card:hover {
transform: none !important;
box-shadow: none !important;
filter: none !important;
opacity: 1 !important;
	  /*
background: inherit !important;
*/	
	
  }
}