@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap");

/* ==========================================================================
   Design Tokens - Modern White Gallery Aesthetic
   ========================================================================== */
:root {
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8f9fa;
  --color-bg-tertiary: #f3f4f7;
  --color-text-primary: #0f1117;
  --color-text-secondary: #424242;
  --color-text-muted: #757575;
  --color-accent-primary: #1f2937;
  --color-accent-blue: #2563eb;
  --color-accent-pink: #ff5a5f;
  --color-border: #e8e8e8;
  --color-shadow-xs: rgba(0, 0, 0, 0.04);
  --color-shadow-sm: rgba(0, 0, 0, 0.08);
  --color-shadow-md: rgba(0, 0, 0, 0.12);
  --color-shadow-lg: rgba(0, 0, 0, 0.16);

  --font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --transition-smooth: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-ease: 300ms ease-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.3px;
  background: #f4f4f4;
      font-weight: 500;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-ease), opacity var(--transition-ease);
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 90px;
  box-sizing: border-box;
}

.container-narrow {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .container {
    max-width: 1200px;
    padding: 0 48px;
  }
  .container-narrow {
    padding: 0 48px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 32px;
  }
  .container-narrow {
    padding: 0 32px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }
  .container-narrow {
    padding: 0 20px;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {position: sticky;top: 0;z-index: 100;padding: 20px 0;background: rgba(255, 255, 255, 0.95);backdrop-filter: blur(10px);background-color: rgba(255, 255, 255, 0.6);-webkit-backdrop-filter: blur(5px);backdrop-filter: blur(5px);}

.header-inner {
  display: flex;
  align-items: center;
}

.site-logo {
  margin-right: auto;
}

.site-logo a {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-text-primary);
}

.site-logo a:hover {
  color: var(--color-accent-blue);
}

.site-nav ul {
  display: flex;
  gap: 30px;
}

.site-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.6px;
  position: relative;
  padding: 8px 0;
  display: inline-block;
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FE94BF;
  transition: width var(--transition-smooth);
}

.site-nav a:hover {
  color: #FE94BF;
}

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

/* ==========================================================================
   Page Header
   ========================================================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 20px 0 20px 0;
    padding: 0 10px;
    gap: 20px;
}

.page-header-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ==========================================================================
   Search Result Bar - Modern Filter UI
   ========================================================================== */
.search-result-bar {
    margin-top: 24px;
    margin-bottom: 40px;
}

.search-result-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 24px;
    background: #ffffff;

    border-radius: 16px;

}

.search-result-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-result-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 20px;
    border-right: 1px solid var(--color-border);
}

.search-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #3d3d3d;
    border-radius: 50px;
    color: #fff;
}

.search-result-count {
    font-size: 15px;
    color: var(--color-text-secondary);
}

.search-result-count strong {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-right: 2px;
}

.search-result-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #FE94BF;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: all var(--transition-ease);
}

.filter-tag:hover {
    background: #ffbfd9;
}

/* 対話形式タグの色分け */
.filter-tag-chatbot-hybrid {
    background: rgb(234,0,137);
}

.filter-tag-chatbot-hybrid:hover {
    background: rgba(234,0,137,0.8);
}

.filter-tag-chatbot-ai {
    background: rgb(2,171,237);
}

.filter-tag-chatbot-ai:hover {
    background: rgba(2,171,237,0.8);
}

.filter-tag-chatbot-faq {
    background: rgb(131,194,63);
}

.filter-tag-chatbot-faq:hover {
    background: rgba(131,194,63,0.8);
}

.filter-tag-label {
    line-height: 1;
}

.filter-tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    background: rgba(65, 65, 65, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all var(--transition-ease);
}

.filter-tag:hover .filter-tag-remove {
    background: rgba(255, 255, 255, 0.3);
}

.filter-tag-chatbot-hybrid:hover .filter-tag-remove {
    background: rgba(255, 255, 255, 0.3);
}

.filter-tag-chatbot-ai:hover .filter-tag-remove {
    background: rgba(255, 255, 255, 0.3);
}

.filter-tag-chatbot-faq:hover .filter-tag-remove {
    background: rgba(255, 255, 255, 0.3);
}


.search-result-actions {
    flex-shrink: 0;
}

.search-result-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition-ease);
}

.search-result-clear:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

.search-result-clear svg {
    opacity: 0.7;
}

.search-result-clear:hover svg {
    opacity: 1;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .search-result-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }

    .search-result-status {
        padding-right: 0;
        border-right: none;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--color-border);
        width: 100%;
    }

    .search-result-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    .search-result-actions {
        width: 100%;
    }

    .search-result-clear {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Category Header - カテゴリページ専用ヘッダー
   ========================================================================== */
.category-page-header {
    margin: 30px 0 20px 0;
    padding: 0 10px;
}

.category-page-header-main {
    flex: 1;
}

.category-page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 16px 0;
    line-height: 1.3;
    letter-spacing: 1px;
}

.category-page-description {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.8;
}

.category-page-count-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    padding: 0 10px;
}

.category-page-count {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .category-page-header {
        margin: 20px 0 20px 0;
    }

    .category-page-title {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Home Page Header - トップページ専用ヘッダー
   ========================================================================== */
.home-page-header {
    display: flex;
    justify-content: flex-end;
    margin: 10px 0 10px 0;
    padding: 0 10px;
}

.home-page-count {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}

/* 件数表示の数字部分（全ページ共通） */
.count-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FE94BF;
    margin: 0 2px;
}

/* ==========================================================================
   Likes Page - お気に入りページ専用スタイル
   ========================================================================== */
.likes-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px 0;
    padding: 0 10px;
}

.likes-page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.3;
    letter-spacing: 1px;
}

.likes-page-count-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    padding: 0 10px;
}

.likes-page-count {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
    white-space: nowrap;
}

.likes-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-ease);
    flex-shrink: 0;
    box-shadow: 0 2px 12px var(--color-shadow-xs);
}

.likes-reset-btn:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

.likes-reset-btn svg {
    opacity: 0.7;
}

.likes-reset-btn:hover svg {
    opacity: 1;
}

@media (max-width: 768px) {
    .likes-page-header {
        margin: 20px 0 20px 0;
    }

    .likes-page-title {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   History Page - 閲覧履歴ページ専用スタイル
   ========================================================================== */
.history-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px 0;
    padding: 0 10px;
}

.history-page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.3;
    letter-spacing: 1px;
}

.history-page-count-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    padding: 0 10px;
}

.history-page-count {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
    white-space: nowrap;
}

.history-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-ease);
    flex-shrink: 0;
        box-shadow: 0 2px 12px var(--color-shadow-xs);
}

.history-reset-btn:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

.history-reset-btn svg {
    opacity: 0.7;
}

.history-reset-btn:hover svg {
    opacity: 1;
}

@media (max-width: 768px) {
    .history-page-header {
        margin: 20px 0 20px 0;
    }

    .history-page-title {
        font-size: 1.2rem;
    }
}

.page-header-right {
    flex-shrink: 0;
}

.page-header .page-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--color-text-primary);
    letter-spacing: 1px;
    line-height: 1.2;
    text-align: left;
}

.page-header .page-description {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.8;
    text-align: left;
}

.page-header .page-count {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
    text-align: right;
}

.page-header h2 {
  font-size: 56px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--color-text-primary);
  letter-spacing: -0.8px;
  line-height: 1.1;
}

.page-header p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.8;
}

/* ==========================================================================
   Card Grid
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  margin-bottom: 120px;
}

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ==========================================================================
   Card Component
   ========================================================================== */
.card {
  display: flex;
  flex-direction: column;
  position: relative;
  /* 修正: スタッキングコンテキストを分離し、内部の重なりを保護 */
  isolation: isolate;
}

.card-thumb-link {
  display: block;
  width: 100%;
  aspect-ratio: 6 / 5;
  background: linear-gradient(135deg, #f5f7fa 0%, #eef1f7 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 10px;

  transition: all var(--transition-smooth);
  pointer-events: auto;
  z-index: 1;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.02), 0 1px 5px 1px rgba(0, 0, 0, 0.07);
}



.card-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}


.card-thumb-link.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b0b0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

/* PR Badge */
.card-badge-pr {
  position: absolute;
    top: 16px;
    right: 16px;
    background: rgb(249, 160, 26);
    /* backdrop-filter: blur(8px); */
    color: #ffffff;
    padding: 2px 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 6px;
    z-index: 10;
  /* box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); */
}

/* Card Body */
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  /* 修正: テキストエリア全体をリンク層より上に持ち上げる */
  position: relative;
  z-index: 5;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0px;
  gap: 16px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  flex: 1;
  color: var(--color-text-primary);
  letter-spacing: -0.3px;
}

.card-title a:hover {
  color: #FE94BF;
}

.card-icons {
  display: flex;
  gap: 0px;
  align-items: center;
  flex-shrink: 0;
}

.icon-btn {
  background: transparent;
  border: none;
  padding: 4px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--transition-ease);
  /* 修正: ボタンを最前面に保証 */
  position: relative;
  z-index: 10;
}
.icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}
.icon-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5px;
}



.card-like[aria-pressed="true"] {
  color: var(--color-accent-pink);
}

.card-like[aria-pressed="true"] svg {
  fill: var(--color-accent-pink);
  stroke: var(--color-accent-pink);
}

.card-like[aria-pressed="true"]:hover {
  background: rgba(236, 72, 153, 0.08);
}

/* Badges / Tags */
.card-meta-row {
  display: flex;
  flex-wrap: wrap;
    gap: 14px;
    margin-top: 4px;
    position: relative;
    z-index: 10;
}
.badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    padding: 2px 12px;
    color: #4f4f4f;
    border-radius: 12px;
    background: rgb(255, 255, 255, .8);
    letter-spacing: .5px;
    transition: all var(--transition-ease);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
    box-shadow: 2px  3px 7px var(--color-shadow-xs);
    /* border: 2px solid #ffffff; */
}

.badge:hover {
  border-color: var(--color-accent-blue);
  color: #fff;
  background: rgba(254, 148, 191, 0.7);
  transform: translateY(-2px);
}

/* Chatbot Type Badges */
.badge-chatbot-type {
  cursor: pointer;
  pointer-events: auto;
}

.badge-chatbot-hybrid {
  background: rgb(234,0,137,.6);
  color: rgb(255 255 255);
  box-shadow: none;
}

.badge-chatbot-hybrid:hover {
  background: rgb(234,0,137,.3);
}

.badge-chatbot-ai {
  background: rgb(2,171,237,.8);
  color: rgb(255 255 255);
  box-shadow: none;
}

.badge-chatbot-ai:hover {
  background: rgba(2,171,235, 0.5);
}

.badge-chatbot-faq {
  background: rgb(131,194,63,.8);
  color: rgb(255 255 255);
  box-shadow: none;
}

.badge-chatbot-faq:hover {
  background: rgba(131,194,63, 0.5);
}


/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 120px 0 100px 0;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-radius: 100%;
  background: #fff;
  transition: all var(--transition-ease);
  cursor: pointer;
}

.page-link:hover:not(.current) {
  color: #fff;
  background: rgba(254, 148, 191, 0.7);
  transform: translateY(-2px);
}

.page-link.current {
  background: #3d3d3d;
  color: rgba(243,243,243,.9);
  font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 80px 0 40px;
  background: rgb(38, 47, 47, .9);
  color: #b8b8b8;
}

.site-footer .container {
  max-width: 1400px;
  padding: 0 60px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
}

.footer-left {
  flex: 0 0 auto;
}

.footer-logo img {
  height: 35px;
  margin-bottom: 14px;
}

.footer-tagline {
    font-size: 12px;
    color: rgb(176, 185, 185, .5);
    margin: 0;
    line-height: 1.6;
    background: rgba(72, 91, 92, .5);
    padding: 6px 12px;
    border-radius: 8px;
    text-align: center;
}

.footer-right {
  flex: 1;
}

.footer-nav {
  margin-bottom: 60px;
,
  margin-top: 40px;,
  margin-top: 40px;,
  margin-top: 40p;,
  margin-top: 40;,
  margin-top: 4;
  /* margin-top: 40px; */
}

.footer-nav ul {
  display: flex;
  justify-content: flex-start;
  gap: 50px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav a {
  font-size: 18px;
  color: rgba(195, 207, 207, .9);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 80px;
}

.footer-column-title {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-single {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-grid li,
.footer-links-single li {
  list-style: none;
}

.footer-links-grid a,
.footer-links-single a {
  font-size: 16px;
  font-weight: 500;
  color: rgba(173, 184, 184, .9);
  transition: color 0.2s ease;
  display: block;
  white-space: nowrap;
}

.footer-links-grid a:hover,
.footer-links-single a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-company ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-company a {
  font-size: 13px;
  color: rgba(116, 132, 132, .9);
  transition: color 0.2s ease;
}

.footer-company a:hover {
  color: #fff;
}

.copyright {
  font-size: 14px;
  color: rgba(116, 132, 132, .9);
  margin: 0;
}

/* タブレット */
@media (max-width: 1024px) {
  .site-footer .container {
    padding: 0 40px;
  }

  .footer-main {
    flex-direction: column;
    gap: 40px;
  }

  .footer-right {
    width: 100%;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* スマホ */
@media (max-width: 768px) {
  .site-footer {
    padding: 40px 0 30px;
  }

  .site-footer .container {
    padding: 0 24px;
  }

  .footer-main {
    flex-direction: column;
    gap: 30px;
  }

  .footer-nav {
    margin-bottom: 30px;
  }

  .footer-nav ul {
    flex-wrap: wrap;
    gap: 30px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links-grid {
    gap: 4px 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-top: 40px;
  }

/* レスポンシブ */
.footer-company ul {
  gap: 20px;
}
}

/* ==========================================================================
   Detail Page - Vertical Stack Layout (案B)
   ========================================================================== */

.detail-page {
  min-height: 100vh;
  background: var(--color-bg-secondary);
  padding-bottom: 100px;
}

/* ===== Breadcrumb ===== */
.detail-breadcrumb {
  padding: 5px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

/* スクロールバーを非表示 */
.detail-breadcrumb::-webkit-scrollbar {
  display: none;
}

.detail-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
  min-width: min-content;
}

.detail-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.detail-breadcrumb li:not(:last-child)::after {
  content: ">";
  color: var(--color-text-muted);
}

.detail-breadcrumb a {
  color: var(--color-text-muted);
  transition: color var(--transition-ease);
}

.detail-breadcrumb a:hover {
  color: var(--color-accent-blue);
}

.detail-breadcrumb li:last-child span {
  color: var(--color-text-secondary);
}

/* ===== Header: タイトル中央寄せ ===== */
.detail-header {
  text-align: center;
  padding: 24px 0 40px 0;
}

.detail-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--color-text-primary);
  letter-spacing: 1px;
  line-height: 1.3;
}

.detail-company {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0;
}

/* ===== Media Section: ビューア＋タブ ===== */
.detail-media-section {
  /* containerが幅を管理 */
}

.detail-viewer {

  border-radius: 20px;
  overflow: hidden;

}

.detail-viewer-stage {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;

}

.detail-viewer-item {
  display: none;
  width: 100%;

  animation: detailFadeIn 0.4s ease-out;
}

.detail-viewer-item.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes detailFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.detail-viewer-item img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 8px;

}

.detail-viewer-item video {
  max-width: 100%;
  max-height: 65vh;
  border-radius: 8px;

}

/* タブナビ */
.detail-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.detail-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-ease);
  box-shadow: 0 2px 12px var(--color-shadow-xs);
}

.detail-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-shadow-sm);
}

.detail-tab.active {
  border-color: #FE94BF;
  color: #ff579b;
  background: rgb(235 37 160 / 4%);
}

.detail-tab svg {
  color: var(--color-text-muted);
  transition: color var(--transition-ease);
}

.detail-tab.active svg {
  color: #FE94BF;
}

/* No Media */
.detail-no-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 120px 40px;
  background: #ffffff;
  border-radius: 20px;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 32px var(--color-shadow-sm);
}

.detail-no-media svg {
  opacity: 0.4;
}

/* ===== Info Section: 横長カード ===== */
.detail-info-section {
    width: 100%;
    max-width: 1200px;
    margin: 48px auto;
    padding: 0 90px;
    box-sizing: border-box;
}

.detail-info-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 48px;

}

.detail-info-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 28px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.detail-info-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* 左: メタ＋説明 */
.detail-info-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
  border-radius: 8px;
  transition: all var(--transition-ease);
}

.detail-tag:hover {


  color: #fff;
  background: rgba(254, 148, 191, 0.7);
  transform: translateY(-2px);

}

.detail-tag--static {
  cursor: default;
}

.detail-tag--static:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
}

/* Chatbot Type Tags */
.detail-tag-chatbot-type {
  cursor: pointer;
  color: #ffffff;
}



.detail-tag-chatbot-type:hover {
  transform: none;
}

.detail-tag-chatbot-hybrid {
  background: rgb(234,0,137,.6);
}

.detail-tag-chatbot-hybrid:hover {
  background: rgba(234,0,137,0.4);
  color: #ffffff;
}

.detail-tag-chatbot-ai {
  background: rgb(2,171,237,.8);
}

.detail-tag-chatbot-ai:hover {
  background: rgba(2,171,237,0.4);
  color: #ffffff;
}

.detail-tag-chatbot-faq {
  background: rgb(131,194,63,.8);
}

.detail-tag-chatbot-faq:hover {
  background: rgba(131,194,63,0.4);
  color: #ffffff;
}

.detail-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  margin: 0 0 12px 0;
}

.detail-description p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text-secondary);
  margin: 0 0 1.5em 0;
}

.detail-description p:last-child {
  margin-bottom: 0;
}

/* 右: ポイント＋リンク */
.detail-info-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-points-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-points-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--color-bg-secondary);
  border-radius: 10px;
}

.detail-point-num {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  color: #ff579b;
  letter-spacing: 0.5px;
  padding-top: 1px;
}

.detail-points-list li span:last-child {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.detail-site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--color-accent-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  transition: all var(--transition-ease);
  margin-top: auto;
}

.detail-site-link:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

/* ===== Update Date ===== */
.detail-update-date {
  margin-top: auto;
  padding-top: 16px;
  text-align: right;
}

.detail-update-date time {
  display: inline-block;
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ===== Error State ===== */
.detail-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 60px 20px;
}

.detail-error-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--color-text-primary);
}

.detail-error-message {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0 0 32px 0;
}

.detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--color-accent-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: all var(--transition-ease);
}

.detail-back-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* ==========================================================================
   Detail Page - Responsive
   ========================================================================== */

/* ===== Related Section ===== */
.related-section {
  max-width: 1100px;
  margin: 64px auto 0;
  padding: 0 24px 80px;
}

.related-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 32px 0;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 900px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .related-section {
    padding: 0 0 20px;
    margin-top: 48px;
  }

  .related-title {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 1024px) {
  .detail-header {
    padding: 32px 24px;
  }

  .detail-title {
    font-size: 28px;
  }

  .detail-info-card {
    padding: 32px 36px;
  }
}

@media (max-width: 768px) {
  .detail-header {
    padding: 24px 20px 32px;
  }

  .detail-title {
    font-size: 24px;
  }

  .detail-company {
    font-size: 14px;
  }

  .detail-viewer {
    border-radius: 16px;
  }

  .detail-viewer-stage {
    min-height: 320px;
  }

  .detail-viewer-item {
    padding: 20px;
  }

  .detail-tabs {
    gap: 8px;
    flex-wrap: wrap;
  }

  .detail-tab {
    padding: 12px 20px;
    font-size: 12px;
  }

  .detail-info-section {
    margin-top: 32px;
  }

  .detail-info-card {
    padding: 28px 24px;
    border-radius: 16px;
  }

  .detail-info-heading {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .detail-info-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .detail-header {
    padding: 16px 16px 24px;
  }

  .detail-breadcrumb {
    padding: 16px;
  }

  .detail-title {
    font-size: 20px;
  }

  .detail-viewer {
    border-radius: 14px;
  }

  .detail-viewer-stage {
    min-height: 260px;
  }

  .detail-viewer-item {
    padding: 16px;
  }

  .detail-viewer-item img,
  .detail-viewer-item video {
    max-height: 45vh;
  }

  .detail-tabs {
    margin-top: 16px;
  }

  .detail-tab {
    padding: 10px 16px;
    border-radius: 10px;
    flex: 1;
    justify-content: center;
  }

  .detail-tab span:last-child {
    display: none;
  }

  .detail-info-section {
    margin-top: 24px;
    padding: 0;
  }

  .detail-info-card {
    padding: 24px 20px;
    border-radius: 14px;
  }

  .detail-points-list li {
    padding: 12px 14px;
  }

  .detail-site-link {
    width: 100%;
    padding: 14px 24px;
  }
}

/* ==========================================================================
   Category Page
   ========================================================================== */

/* Breadcrumb（カテゴリページ用） */
.breadcrumb {
  margin: 24px 0 0 0;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color var(--transition-ease);
}

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

.breadcrumb li:last-child span {
  color: var(--color-text-secondary);
}

/* Page Title（カテゴリページ用） */
.page-title {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--color-text-primary);
  letter-spacing: 1px;
  line-height: 1.2;
}

.page-description {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin: 0 0 8px 0;
  line-height: 1.8;
}

.page-count {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  font-size: 15px;
  color: var(--color-text-muted);
}

/* Page Header Actions */
.page-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.reset-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-ease);
}

.reset-btn:hover {
  color: #dc2626;
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.04);
}

/* Category Footer */
.category-footer {
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 48px;
  background: var(--color-bg-primary);
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--color-shadow-xs);
}

.category-footer h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 16px 0;
}

.category-footer p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-secondary);
  margin: 0;
}

@media (max-width: 768px) {
  .page-title {
    font-size: 28px;
  }

  .category-footer {
    margin: 0 16px 60px;
    padding: 32px 24px;
  }

  .category-footer h2 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 24px;
  }

  .breadcrumb {
    margin: 16px 0 0 0;
  }

  .breadcrumb ol {
    font-size: 12px;
  }
}

/* ==========================================================================
   404 Error Page
   ========================================================================== */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 60px 20px;
}

.error-title {
  font-size: 120px;
  font-weight: 700;
  color: var(--color-border);
  margin: 0 0 16px 0;
  line-height: 1;
  letter-spacing: -4px;
}

.error-message {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 12px 0;
}

.error-description {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0 0 40px 0;
  max-width: 400px;
}

.error-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--color-accent-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  transition: all var(--transition-ease);
}

.error-back-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

@media (max-width: 480px) {
  .error-title {
    font-size: 80px;
  }

  .error-message {
    font-size: 20px;
  }

  .error-back-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #3d3d3d;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-out;
  z-index: 10000;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  .toast {
    left: 20px;
    right: 20px;
    transform: translateX(0) translateY(20px);
    text-align: center;
    white-space: normal;
  }

  .toast.show {
    transform: translateX(0) translateY(0);
  }
}

/* ==========================================================================
   Modal Dialog
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-out;
  z-index: 10001;
  padding: 20px;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s ease-out;
}

.modal-overlay.show .modal {
  transform: scale(1);
}

.modal-message {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-primary);
  text-align: center;
  margin: 0 0 28px 0;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-btn {
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-ease);
  border: none;
}

.modal-btn-cancel {
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
}

.modal-btn-cancel:hover {
  background: var(--color-border);
}

.modal-btn-confirm {
  background: #ff7bb1;
  color: #ffffff;
}

.modal-btn-confirm:hover {
  background: #ff7bb1;
}

@media (max-width: 480px) {
  .modal {
    padding: 24px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-btn {
    width: 100%;
  }
}












/* Filter UI Styles (Final) */

#filter-container {
    margin-bottom: 30px;
}

.filter-box {
    /* PCでの表示制御: 幅を制限して左寄せ */
    max-width: 320px;
    width: 100%;
}

/* プルダウン */
.filter-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    /* 簡易矢印アイコン */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    margin-bottom: 10px;
}

.filter-select:focus {
    outline: none;
    border-color: #0056b3;
    background-color: #fff;
}

/* タグエリア */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag-link {
    display: inline-block;
    padding: 5px 10px;
    font-size: 13px;
    color: #555;
    background: #eee;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.filter-tag-link:hover {
    background: #ddd;
    color: #333;
}

h1.site-logo img {
    height: 2rem;
    width: auto;
    display: block;
}

/* ==========================================================================
   Category List Page (/category/)
   ========================================================================== */
.category-list-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.category-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-list-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(72, 91, 92, .1);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.category-list-title svg {
    color: #FE94BF;
}

.category-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 768px) {
    .category-list-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-list-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: #FE94BF;
    color: #fff;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(254, 148, 191, 0.3);
}

.category-list-btn:hover {
    background: #fd7eb0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 148, 191, 0.4);
}

/* 対話形式ボタンの色分け */
.category-list-btn-hybrid {
    background: rgb(234,0,137,.6);
    box-shadow: 0 2px 6px rgba(234, 0, 137, 0.3);
}

.category-list-btn-hybrid:hover {
    background: rgb(234,0,137,.3);
    box-shadow: 0 4px 12px rgba(234, 0, 137, 0.4);
}

.category-list-btn-ai {
    background: rgb(2,171,237,.8);
    box-shadow: 0 2px 6px rgba(2, 171, 237, 0.3);
}

.category-list-btn-ai:hover {
    background: rgba(2,171,235, 0.5);
    box-shadow: 0 4px 12px rgba(2, 171, 237, 0.4);
}

.category-list-btn-faq {
    background: rgb(131,194,63,.8);
    box-shadow: 0 2px 6px rgba(131, 194, 63, 0.3);
}

.category-list-btn-faq:hover {
    background: rgba(131,194,63, 0.5);
    box-shadow: 0 4px 12px rgba(131, 194, 63, 0.4);
}

/* ==========================================================================
   About Page (/about/)
   ========================================================================== */
.about-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.about-content h2 {
        font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(72, 91, 92, .1);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    margin-top: 50px;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: #555;
}

.about-list {
    margin: 0 0 16px 0;
    line-height: 2;
    color: #555;
}

.about-list li {
    margin-bottom: 8px;
}
/* SP: pointer-eventsを無効化してタイトル・カテゴリーのクリックを妨害しない */
@media (max-width: 768px) {
.about-content {
    padding: 25px;
}
}

/* ==========================================================================
   Header Responsive & SP Navigation
   ========================================================================== */
/* PC: 検索ボタンと被らないようにナビに余白 */
.site-nav-pc {
    margin-left: 60px;
}

/* ヘッダーアイコンナビ共通スタイル */
.header-icons {
    display: flex;
    align-items: center;
    gap: 0px;
}

/* PC用アイコンナビ */
.header-icons-pc {
    display: flex;
    margin-left: 30px;
    margin-right: 10px;
}

.header-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.2s;
    color: #4d4d4d;
}

.header-icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.header-icon-btn svg {
    display: block;
}

.header-count-badge {
    position: absolute;
    top: 1px;
    right: -1px;
    min-width: 18px;
    height: 18px;
    background: #ff5a5f;
    color: #fff;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
}

.header-count-badge.show {
    display: flex;
}

/* SP用アイコンナビ - 768px以下で表示 */
.header-icons-sp {
    display: none;
}

/* SP用ハンバーガーボタン - PCでは非表示 */
.sp-menu-toggle {
    display: none;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 101;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 0;
}
.hamburger-line {
    display: block;
    width: 32px;
    height: 2px;
    background: var(--color-text-primary);
    transition: transform 0.3s ease;
}
.sp-menu-toggle.is-open .hamburger-line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.sp-menu-toggle.is-open .hamburger-line:nth-child(2) {
       opacity: 0 !important;
    visibility: hidden;
ransition: opacity 0.15s ease; /* 真ん中だけ早く消す */
}
.sp-menu-toggle.is-open .hamburger-line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}
/* SP用ナビゲーションオーバーレイ */
.sp-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
}
.sp-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
/* sp-nav-overlay-inner: スタイルは1199px以下のメディアクエリ内で定義 */
.sp-nav-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.98);
    box-sizing: border-box;
}
.sp-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}
.sp-nav-menu li {
    margin-bottom: 30px;
}
.sp-nav-menu a {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text-primary);
    text-decoration: none;
    padding: 10px 20px;
    display: inline-block;
}
.sp-nav-menu a:hover {
    color: var(--color-accent-blue);
}
/* タブレット・SP: 1199px以下 */
@media (max-width: 1199px) {
    /* ヘッダーレイアウト調整 */
    .header-inner {
        justify-content: space-between;
    }

    .site-logo {
        margin-right: 0;
    }

    /* PCナビを非表示 */
    .site-nav-pc {
        display: none;
        margin-left: 0;
    }

    /* PC用アイコンを非表示 */
    .header-icons-pc {
        display: none;
    }

    /* SP用アイコンを表示 */
    .header-icons-sp {
        display: flex;
        gap: 9px;
    }

    /* SPハンバーガーを表示 */
    .sp-menu-toggle {
        display: flex;
    }
    /* SPオーバーレイを有効化 */
    .sp-nav-overlay {
        display: block;
    }
/* iOS Safari対策 */
.sp-nav-overlay-inner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    display: block;
    width: 100vw;
}
.sp-nav-overlay-inner .sp-nav-menu {
    position: relative;
    height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
}
    /* ロゴサイズ調整 */
    h1.site-logo img {
        height: 1.3rem;
    }

    /* SP用アイコンのサイズ調整 */
    .header-icons-sp .header-icon-btn {
        width: 35px;
        height: 50px;
    }

.header-count-badge {

    top: 3px;
    right: -6px;

}

}

/* ==========================================================================
   Card Detail Overlay
   ========================================================================== */
.card-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.card-detail-text {
    background: #fff;
    color: #333;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease;
    pointer-events: none;
}

.card-detail-overlay:hover .card-detail-text {
    transform: scale(1.05);
}

/* PC: カード画像部分のホバーのみで表示 */
@media (min-width: 769px) {
    .card-detail-overlay {
        pointer-events: auto;
    }

    .card-thumb-link:hover .card-detail-overlay {
        opacity: 1;
    }
}

/* SP: pointer-eventsを無効化してタイトル・カテゴリーのクリックを妨害しない */
@media (max-width: 768px) {
    .card-detail-overlay {
        pointer-events: none;
    }

    .card.show-detail .card-detail-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ==========================================================================
   Detail Page Header Icons
   ========================================================================== */
.detail-header-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    margin-top: 15px;
}

.detail-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #757575;
}

.detail-icon-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}

.detail-icon-btn:hover {
    background: #f5f5f5;
}

/* お気に入りボタン（未登録） */
.detail-icon-like {
    color: #757575;
}

.detail-icon-like svg {
    stroke: currentColor;
    fill: none;
}

.detail-icon-like:hover {
    color: #ff5a5f;
}

/* お気に入りボタン（登録済み） */
.detail-icon-like[aria-pressed="true"] {
    color: #ff5a5f;
}

.detail-icon-like[aria-pressed="true"] svg {
    stroke: #ff5a5f;
    fill: #ff5a5f;
}

/* 外部リンクボタン */
.detail-icon-external {
    color: #757575;
}

.detail-icon-external:hover {
    color: #2563eb;
}

/* SP版 */
@media (max-width: 768px) {
    .detail-header-icons {
        gap: 0px;
        margin-top: 12px;
    }

    .detail-icon-btn {
        width: 30px;
        height: 30px;
    }

    .detail-icon-btn svg {
        width: 22px;
        height: 22px;
    }

    .site-header {
    position: sticky;

    padding: 12px 0;

}
.count-number {
    font-size: 1.3rem;
}
.home-page-header {
    margin: 10px 0 10px 0;
}

}
