/*
  古賀なび — style-additions.css
  ====================================================
  既存 style.css に追記するだけで適用される追加スタイル。
  既存クラスは上書き最小限にとどめ、新クラスを追加する方針。
  Claude Code で style.css の末尾に @import するか concatenate して使用。
  ====================================================
*/


/* =============================================================
   カラー変数（config.php で上書きされる前提だが、
   古賀市ブランドカラーの推奨値をここに記録）
   ============================================================= */
/*
  --color-primary:   #1860a8;   青（メイン）
  --color-secondary: #3d6b4f;   緑（アクセント）
  --color-accent:    #0f4a8a;   濃い青
  --color-bg:        #f2f6fb;   薄い青みがかった白
  --color-text:      #1a2330;   ほぼ黒
*/


/* =============================================================
   ヘッダー改善（既存クラスの上書き）
   ============================================================= */

/* ヘッダー全体をより締まった印象に */
.site-header {
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.06);
}

/* ロゴ：テキストロゴのまま、サブタイトルを追加 */
.site-logo-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-logo-sub {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--color-secondary);
  letter-spacing: 0.03em;
  margin-top: 1px;
}

/* 検索フォームを白背景・角丸カードに */
.header-search {
  background: var(--color-bg);
  border-top: none;
  padding: 8px 12px 12px;
}

.search-form {
  background: #fff;
  border-radius: 10px;
  border: 1.5px solid #dde5f0;
  padding: 4px;
  gap: 0;
  flex-wrap: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.search-input {
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 0.875rem;
  border-radius: 0;
  flex: 2 1 140px;
}

.search-input:focus {
  outline: none;
  box-shadow: none;
}

.search-select {
  border: none;
  border-left: 1px solid #edf0f5;
  background: transparent;
  padding: 10px 8px;
  font-size: 0.8rem;
  border-radius: 0;
  color: var(--color-secondary);
  flex: 1 1 80px;
  min-width: 0;
}

.search-btn {
  border-radius: 7px;
  padding: 9px 14px;
  font-size: 0.85rem;
  margin: 2px;
  flex-shrink: 0;
}


/* =============================================================
   ヒーローセクション（新規）
   front-page.php の .header-search の直下に追加
   ============================================================= */

.hero-section {
  background: linear-gradient(
    150deg,
    var(--color-primary) 0%,
    color-mix(in oklch, var(--color-primary) 60%, var(--color-secondary)) 100%
  );
  padding: 20px var(--gutter) 32px;
  position: relative;
  overflow: hidden;
}

/* ドットテクスチャ */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-catch {
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.hero-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
  text-wrap: pretty;
}

/* クイックリンク（カテゴリ横スクロール） */
.hero-quick {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.hero-quick::-webkit-scrollbar { display: none; }

.hero-quick-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition);
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font-base);
}

.hero-quick-chip:hover {
  background: rgba(255,255,255,0.28);
  opacity: 1;
}

.hero-quick-chip.is-active {
  background: rgba(255,255,255,0.9);
  color: var(--color-primary);
  font-weight: 700;
  border-color: transparent;
}

/* wave separator */
.hero-wave {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}

.hero-wave svg {
  display: block;
  width: 100%;
}


/* =============================================================
   カテゴリセクション改善（既存クラス部分上書き）
   ============================================================= */

.category-section {
  padding: 24px 0;
}

/* 円形アイコンに影とホバー強化 */
.category-link {
  border-radius: 14px;
  padding: 14px 6px 12px;
  gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.category-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  border-color: var(--color-primary);
  opacity: 1;
}

.category-img {
  width: 56px;
  height: 56px;
}

.category-name {
  font-size: 0.72rem;
  line-height: 1.4;
}


/* =============================================================
   特集・おすすめセクション（新規）
   .pickup-section の直前に配置
   ============================================================= */

.feature-section {
  padding: 28px 0;
  background: #fff;
}

.feature-scroll {
  display: flex;
  gap: 12px;
  padding: 4px var(--gutter) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.feature-scroll::-webkit-scrollbar { display: none; }

.feature-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--color-bg);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e4ecf5;
  transition: box-shadow var(--transition);
  text-decoration: none;
  color: var(--color-text);
  display: block;
}

.feature-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  opacity: 1;
}

.feature-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dce8f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aab8c8;
  font-size: 0.75rem;
  font-family: monospace;
}

.feature-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card-body {
  padding: 12px 14px;
}

.feature-card-tag {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.feature-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.45;
}

.feature-card-sub {
  font-size: 0.75rem;
  color: var(--color-secondary);
  margin-top: 3px;
}


/* =============================================================
   エリアセクション改善（既存クラス部分上書き）
   ============================================================= */

.area-section {
  padding: 28px 0;
}

/* エリアをチップグループで表示（ドロップダウンの代わり） */
.area-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.area-chip {
  display: inline-block;
  padding: 6px 13px;
  border: 1.5px solid #d5e3f0;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--color-secondary);
  background: #fff;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  font-family: var(--font-base);
}

.area-chip:hover,
.area-chip.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  opacity: 1;
}

.area-chip--all {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  font-weight: 600;
}

.area-chip--all:hover,
.area-chip--all.is-active {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}


/* =============================================================
   新着情報セクション改善（既存クラス部分上書き）
   ============================================================= */

/* トップページの新着はカード表示に */
.news-section--home .news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 0;
}

.news-section--home .news-item {
  border-bottom: none;
}

.news-section--home .news-link {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid #e4ecf5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow var(--transition);
  gap: 0;
  flex-direction: column;
  align-items: flex-start;
}

.news-section--home .news-link:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  opacity: 1;
}

/* 日付+タグ行 */
.news-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.news-section--home .news-date {
  font-size: 0.75rem;
  color: var(--color-secondary);
}

.news-section--home .news-title {
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--color-text);
}


/* =============================================================
   セクションタイトル共通改善（既存上書き）
   ============================================================= */

.section-title {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* タイトル左にアクセントバー */
.section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background: var(--color-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title-action {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
}

.section-title-action:hover {
  opacity: 0.75;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 var(--gutter);
}

/* btn-more 改善 */
.btn-more {
  border-radius: 8px;
  font-size: 0.8rem;
  padding: 9px 24px;
}


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

@media (min-width: 640px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .feature-card {
    flex: 0 0 240px;
  }

  .news-section--home .news-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .area-chip-group {
    max-width: 640px;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 32px var(--gutter) 48px;
  }

  .hero-title {
    font-size: 1.75rem;
    max-width: 600px;
  }

  .feature-card {
    flex: 0 0 280px;
  }

  .news-section--home .news-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
