/* =========================================================
   俳句FAN：俳句結社・俳句団体一覧
   ファイル：/portal-css/portal-kessha.css

   役割：
   - 共通デザインは portal-base.css に任せる
   - このCSSでは「結社・団体リンク集ページ」としての個別デザインを行う

   表示方針：
   - 全国団体・協会：CSVのdescriptionを表示
   - その他カテゴリ：CSVのdescriptionは非表示
========================================================= */


/* =========================================================
   0. /kessha/ ページ：Lightning側のページタイトル帯を非表示
========================================================= */

body:has(.hf-kessha-page) .page-header,
body:has(.hf-kessha-page) .vk_pageHeader,
body:has(.hf-kessha-page) .entry-header,
body:has(.hf-kessha-page) .page-header_pageTitle,
body:has(.hf-kessha-page) .vk_pageHeader_title,
body:has(.hf-kessha-page) .entry-title {
  display: none !important;
}


/* =========================================================
   1. ページ全体
========================================================= */

.hf-kessha-page {
  max-width: var(--hf-width-wide);
  margin: 0 auto;
  padding: 0 16px 64px;
  color: var(--hf-color-text);
}

.hf-kessha-page * {
  box-sizing: border-box;
}


/* =========================================================
   2. ヒーローエリア
========================================================= */

.hf-kessha-hero {
  max-width: var(--hf-width-main);
  margin: 0 auto 42px;
  padding: 36px 38px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 253, 248, 0.98) 0%,
      rgba(250, 247, 239, 0.98) 100%
    );

  border: 1px solid var(--hf-color-border);
  border-radius: var(--hf-radius-section);
  box-shadow: var(--hf-shadow-section);
}

.hf-kessha-hero-inner {
  max-width: 860px;
}

.hf-kessha-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0 0 14px;
  padding: 5px 12px;

  background: var(--hf-color-accent);
  border-radius: 999px;
  color: #fff;

  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
}

.hf-kessha-hero-title {
  margin: 0 0 16px;
  padding: 0;
  border: none;

  color: var(--hf-color-text);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.45;
}

.hf-kessha-hero-title::before,
.hf-kessha-hero-title::after {
  content: none !important;
  display: none !important;
}

.hf-kessha-hero-lead {
  margin: 0;

  color: var(--hf-color-subtext);
  font-size: 1rem;
  line-height: 1.9;
}

.hf-kessha-hero-note {
  margin: 18px 0 0;
  padding: 13px 15px;

  background: rgba(255, 255, 255, 0.72);
  border-left: 4px solid var(--hf-color-accent);
  border-radius: 0 var(--hf-radius-small) var(--hf-radius-small) 0;

  color: var(--hf-color-subtext);
  font-size: 0.9rem;
  line-height: 1.8;
}


/* =========================================================
   3. カテゴリセクション
========================================================= */

.hf-kessha-section {
  max-width: var(--hf-width-main);
  margin: 0 auto 42px;
}

.hf-kessha-section-header {
  margin: 0 0 20px;
}

.hf-kessha-section-title {
  margin-bottom: 12px;
}

.hf-kessha-section-title::before {
  background: var(--hf-color-accent);
}

.hf-kessha-section-lead,
.hf-kessha-section .hf-section-lead {
  display: block;
  max-width: 760px;
  margin: 0;
  color: var(--hf-color-subtext);
  font-size: 0.92rem;
  line-height: 1.85;
}


/* =========================================================
   4. カードグリッド
========================================================= */

.hf-kessha-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--hf-gap-list);

  margin: 0;
  padding: 0;
}


/* =========================================================
   5. 結社・団体カード
========================================================= */

.hf-kessha-card,
.hf-kessha-card:link,
.hf-kessha-card:visited {
  display: flex;
  flex-direction: column;

  min-height: auto;
  padding: 18px 20px;

  background: var(--hf-color-white);
  border: 1px solid var(--hf-color-border);
  border-radius: var(--hf-radius-card);
  box-shadow: var(--hf-shadow-card);

  color: var(--hf-color-text) !important;
  text-decoration: none !important;

  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease;
}

.hf-kessha-card:hover {
  transform: translateY(-2px);
  border-color: #c8ad83;
  background: var(--hf-color-card);
  box-shadow: var(--hf-shadow-card-hover);

  color: var(--hf-color-text) !important;
  text-decoration: none !important;
}

.hf-kessha-card::before,
.hf-kessha-card::after {
  content: none !important;
  display: none !important;
}


/* 全国団体・協会は説明文を表示するため、少しだけ余白を確保 */
.hf-kessha-section.is-zenkoku .hf-kessha-card,
.hf-kessha-section.is-zenkoku .hf-kessha-card:link,
.hf-kessha-section.is-zenkoku .hf-kessha-card:visited {
  padding: 20px;
}


/* =========================================================
   6. カード上部
========================================================= */

.hf-kessha-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;

  margin: 0 0 8px;
}

.hf-kessha-card-title {
  flex: 1;

  margin: 0 !important;
  padding: 0 !important;
  border: none !important;

  color: var(--hf-color-text);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.55;
}

.hf-kessha-card-title::before,
.hf-kessha-card-title::after {
  content: none !important;
  display: none !important;
}

.hf-kessha-prefecture {
  flex: 0 0 auto;

  padding: 4px 9px;

  background: #f4efe3;
  border: 1px solid #e4d6bd;
  color: #7a5a25;

  font-size: 0.72rem;
  font-weight: 700;
}


/* =========================================================
   7. カード本文
========================================================= */

.hf-kessha-card-body {
  margin: 0;
}

.hf-kessha-leader {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;

  margin: 0;

  color: var(--hf-color-subtext);
  font-size: 0.88rem;
  line-height: 1.7;
}

.hf-kessha-leader span {
  color: var(--hf-color-muted);
  font-weight: 700;
}

/* CSVのdescriptionは基本非表示 */
.hf-kessha-description {
  display: none;
}

/* 全国団体・協会だけCSVのdescriptionを表示 */
.hf-kessha-section.is-zenkoku .hf-kessha-description {
  display: block;

  margin: 10px 0 0;

  color: var(--hf-color-subtext);
  font-size: 0.88rem;
  line-height: 1.75;
}


/* =========================================================
   8. 掲載希望・修正依頼
========================================================= */

.hf-kessha-request-section {
  max-width: var(--hf-width-main);
  margin: 48px auto 0;
}

.hf-kessha-request {
  padding: 22px 24px;

  background: var(--hf-color-card);
  border: 1px solid var(--hf-color-border);
  border-radius: var(--hf-radius-card);
  box-shadow: var(--hf-shadow-card);
}

.hf-kessha-request-title {
  margin: 0 0 10px;
  padding: 0;
  border: none;

  color: var(--hf-color-text);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
}

.hf-kessha-request-title::before,
.hf-kessha-request-title::after {
  content: none !important;
  display: none !important;
}

.hf-kessha-request p {
  margin: 0;

  color: var(--hf-color-subtext);
  font-size: 0.92rem;
  line-height: 1.8;
}


/* =========================================================
   9. タブレット
========================================================= */

@media (max-width: 900px) {

  .hf-kessha-page {
    padding: 0 14px 56px;
  }

  .hf-kessha-hero {
    padding: 32px 28px;
  }

  .hf-kessha-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   10. スマホ
========================================================= */

@media (max-width: 640px) {

  .hf-kessha-page {
    padding: 0 14px 44px;
  }

  .hf-kessha-hero {
    margin-bottom: 34px;
    padding: 26px 20px;
    border-radius: 18px;
  }

  .hf-kessha-eyebrow {
    font-size: 0.7rem;
  }

  .hf-kessha-hero-title {
    font-size: 1.5rem;
  }

  .hf-kessha-hero-lead {
    font-size: 0.94rem;
  }

  .hf-kessha-hero-note {
    font-size: 0.84rem;
  }

  .hf-kessha-section {
    margin-bottom: 36px;
  }

  .hf-kessha-grid {
    grid-template-columns: 1fr;
  }

  .hf-kessha-card,
  .hf-kessha-card:link,
  .hf-kessha-card:visited,
  .hf-kessha-section.is-zenkoku .hf-kessha-card,
  .hf-kessha-section.is-zenkoku .hf-kessha-card:link,
  .hf-kessha-section.is-zenkoku .hf-kessha-card:visited {
    padding: 18px;
  }

  .hf-kessha-card-title {
    font-size: 1.02rem;
  }

  .hf-kessha-leader,
  .hf-kessha-section.is-zenkoku .hf-kessha-description {
    font-size: 0.86rem;
  }

  .hf-kessha-request {
    padding: 20px 18px;
  }
}