/*
 Theme Name:   Twenty Twenty-one Child
 Description:  Twenty Twenty-oneの子テーマです
 Template:     twentytwentyone
 Version:      3.1.2
*/

/* Variables */
:root {
    /* Font Family */
    --global--font-primary: var(
    --font-headings,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen-Sans,
    Ubuntu,
    Cantarell,
    "Helvetica Neue",
    sans-serif
    );
    --global--font-secondary: var(
    --font-base,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen-Sans,
    Ubuntu,
    Cantarell,
    "Helvetica Neue",
    sans-serif
    );

    /* Colors */
    --global--color-primary: var(
    --global--color-dark-gray
    ); /* Body text color, site title, footer text color. */
    --global--color-secondary: var(--global--color-gray); /* Headings */
    --global--color-primary-hover: var(--global--color-primary);
    --global--color-background: var(
    --global--color-green
    ); /* Mint, default body background */
    --global--color-border: var(
    --global--color-primary
    ); /* Used for borders (separators) */
}

/* 18歳未満閲覧禁止ポップアップ */
#age-verification-overlay {
  /*display: none; */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);

}

#age-verification-popup {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-in-out;
  margin:50px auto 0 auto;
}

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

#age-verification-popup h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

#age-verification-popup p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #666;
}

#age-verification-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

#age-verification-confirm,
#age-verification-reject {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

#age-verification-confirm {
  background-color: #0073aa;
  color: #ffffff;
}

#age-verification-confirm:hover {
  background-color: #005a87;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 115, 170, 0.4);
}

#age-verification-reject {
  background-color: #dc3232;
  color: #ffffff;
}

#age-verification-reject:hover {
  background-color: #b32d2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 50, 50, 0.4);
}

@media (max-width: 600px) {

  #age-verification-popup {
    padding: 30px 20px;
  }

  #age-verification-popup h2 {
    font-size: 24px;
  }

  #age-verification-buttons {
    flex-direction: column;
  }

  #age-verification-confirm,
  #age-verification-reject {
    width: 100%;
  }
}

/* ==========================================================================
   フロントページ 総合ハブ
   ========================================================================== */

.front-page-hub {
    max-width: 1100px;
    margin: 0 auto;
}

/* ---- セクション共通 ---- */
.hub-section {
    margin-bottom: 60px;
}

.hub-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--global--color-primary, #1565c0);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.hub-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.hub-section-more {
    font-size: 0.85rem;
    color: var(--global--color-primary, #1565c0);
    text-decoration: none;
    white-space: nowrap;
}
.hub-section-more:hover {
    text-decoration: underline;
}

.hub-section-footer {
    text-align: center;
    margin-top: 20px;
}

.hub-more-button {
    display: inline-block;
    padding: 10px 28px;
    background: var(--global--color-primary, #1565c0);
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}
.hub-more-button:hover {
    background: #0d47a1;
    color: #fff;
}

.hub-empty {
    color: #888;
    font-size: 0.9rem;
    padding: 16px 0;
}

/* ---- カテゴリ一覧 ---- */
.hub-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px 12px;
    margin-bottom:30px;
}

.hub-category-item {
    margin: 0;
}

.hub-category-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
    transition: background 0.15s;
}
.hub-category-link:hover {
    background: #e3eaf7;
    color: var(--global--color-primary, #1565c0);
}

.hub-category-arrow {
    color: var(--global--color-primary, #1565c0);
    font-weight: bold;
}

.hub-category-count {
    margin-left: auto;
    font-size: 0.78rem;
    color: #888;
}

/* ---- ランキングリスト ---- */
.hub-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hub-ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
}

.hub-ranking-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    background: #ccc;
    color: #fff;
}
.hub-ranking-number--1 {
    background: #d4a017;
    }
.hub-ranking-number--2 {
    background: #9e9e9e;
}
.hub-ranking-number--3 {
    background: #a0522d;
}

/* ランキングバッジ（board-card オーバーレイ用） */
.board-card {
    position: relative;
}
.hub-rank-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    background: #ccc;
    color: #fff;
    line-height: 1;
    pointer-events: none;
}
.hub-rank-badge--1 {
    background: #d4a017;
}
.hub-rank-badge--2 {
    background: #9e9e9e;
}
.hub-rank-badge--3 {
    background: #a0522d;
}

.hub-ranking-thumbnail {
    flex-shrink: 0;
    position: relative;
    width: 80px;
    height: 80px;
}
.hub-ranking-thumb-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
.hub-ranking-thumb-placeholder {
    width: 80px;
    height: 80px;
    background: #ddd;
    border-radius: 4px;
}
.hub-ranking-video-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}

.hub-ranking-video {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.hub-ranking-video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    pointer-events: none;
}

.hub-ranking-info {
    flex: 1;
    min-width: 0;
}

.hub-ranking-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: inherit;
    text-decoration: none;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hub-ranking-title:hover {
    color: var(--global--color-primary, #1565c0);
}

.hub-ranking-tags {
    margin-bottom: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.hub-ranking-stats {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: #666;
}

/* ---- 検索導線 ---- */

.hub-search-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hub-search-all-link {
    font-size: 0.9rem;
    color: var(--global--color-primary, #1565c0);
    text-decoration: none;
}
.hub-search-all-link:hover {
    text-decoration: underline;
}

/* ---- レスポンシブ ---- */
@media (max-width: 600px) {
    .hub-section{
        margin-bottom: 30px;
    }
    .hub-section-title {
        font-size: 1rem;
    }

    .hub-category-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-ranking-thumbnail {
        width: 60px;
        height: 60px;
    }
    .hub-ranking-thumb-img,
    .hub-ranking-thumb-placeholder,
    .hub-ranking-video-wrapper,
    .hub-ranking-video {
        width: 60px;
        height: 60px;
    }
    .hub-rank-badge {
        position:unset;
    }
    .front-page-hub {
    padding: 0 16px 20px;
    }
}

.site-main{
    padding-bottom:0px;
}

/*
///////////////////////////////////////////
////////パンくずリスト全体の背景/////////////
///////////////////////////////////////////
*/
.breadcrumb-nav {
    padding: 20px 0px;
    margin:0 auto;
    max-width: 1100px;
}

.breadcrumb-inner {
    padding:8px;
    background-color:#f5f5f5;
    max-width: 1100px;
    margin:0 auto;
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    font-size: 18px;
    color: #666;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: #0073aa; /* リンクの色（お好みで調整） */
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* 区切り文字「>」のスタイル */
.separator {
    margin: 0 8px;
    color: #ccc;
}

/* HOMEの前にアイコンを入れる（任意） */
.breadcrumb-item:first-child::before {
    content: "🏠";
    margin-right: 5px;
}

/* ---- レスポンシブ ---- */
@media (max-width: 600px)
{
    .breadcrumb-list{
        font-size:16px;
    }

}