/*
Theme Name: K2-Portal
Theme URI: https://example.com/k2-portal
Author: K2
Author URI: https://example.com
Description: ポータルサイト用オリジナルテーマ。モバイルファースト・レスポンシブ、Bootstrap 5、Swiper.js メインスライダー、イベントカスタム投稿タイプ対応。
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: otaru-portal
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, blog, news, tourism, one-column, two-columns, right-sidebar, responsive-layout
*/

/* ==========================================================================
   モバイルファースト・ベース
   ========================================================================== */
:root {
  --otaru-primary: #1a5f7a;
  --otaru-secondary: #159895;
  --otaru-accent: #57c5b6;
  --otaru-text: #333;
  --otaru-light: #f8f9fa;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--otaru-text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--otaru-primary);
  text-decoration: none;
}
a:hover {
  color: var(--otaru-secondary);
}

/* ヘッダー ロゴ表示サイズ */
.site-branding {
  line-height: 0;
}
.site-branding a {
  display: inline-block;
}
.site-branding img,
.site-branding .custom-logo {
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   イベント（カスタム投稿）ページ ヘッダーアイキャッチ
   PC: 左＝残り幅で引き伸ばし＋暗く、右＝高さに合わせて画像全体を表示
   ========================================================================== */
.single-event-hero {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 280px;
  overflow: hidden;
}
.single-event-hero__left {
  flex: 1;
  min-width: 0;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--otaru-light);
}
.single-event-hero__left::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.single-event-hero__right {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: visible;
  padding: 10px;
  box-sizing: border-box;
  background-color: #000;
}
.single-event-hero__right img {
  display: block;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  object-position: left top;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.single-event-hero__title {
  flex: 0 0 60px;
  width: 60px;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  background: #000;
  box-sizing: border-box;
}
.single-event-hero__title-inner {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #fff;
  letter-spacing: 0.05em;
}
@media (min-width: 992px) {
  .single-event-hero {
    height: 600px;
  }
  .single-event-hero__title-inner {
    font-size: 1.4rem;
  }
}

/* イベント詳細：会場地図の iframe を ratio 枠いっぱいに表示 */
.event-venue-map-frame.ratio {
  min-height: 200px;
  background: var(--otaru-light);
}
.event-venue-map-frame.ratio iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

/* ==========================================================================
   サムネイル比率
   - 通常投稿（観光スポット等）: 4:3
   - イベント投稿（ポスター＝A4）: A判縦 1:1.414（一覧は小さめに表示）
   ========================================================================== */
.thumbnail-4-3 {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* 4:3 = 3/4 */
  overflow: hidden;
  background: var(--otaru-light);
}
.thumbnail-4-3 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* イベントサムネ: コンテナ高さはA4で固定。画像は横幅に合わせて比率保って表示（contain） */
.thumbnail-a-vertical {
  position: relative;
  width: 100%;
  padding-bottom: 141.4%; /* A4縦 1:1.414 */
  overflow: hidden;
  background: var(--otaru-light);
}
.thumbnail-a-vertical img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* 横幅に合わせ、比率を変えずに表示（余白は上下に出る） */
  object-position: top center;
}

/* カード内サムネイル用 */
.card .thumbnail-4-3,
.card .thumbnail-a-vertical {
  padding-bottom: 75%;
}
.card.event .thumbnail-a-vertical {
  padding-bottom: 141.4%; /* A4縦で固定 */
}

/* イベントサムネ左上のステータスバッジ（開催中・終了・開催前） */
.event-thumb-wrap {
  position: relative;
}
.event-status-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.event-status-ongoing {
  background: #0d6efd;
}
.event-status-ended {
  background: #6c757d;
}
.event-status-upcoming {
  background: #198754;
}

/* 月別イベント情報: 当月＋5ヶ月＝6ヶ月。PCは1行6列・スマホは3カラム×2列 */
.event-month-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.event-month-row .col {
  flex: 0 0 auto;
  min-width: 0;
  width: 16.666%; /* 6ヶ月で均等 */
  border-right: 1px solid var(--bs-border-color, #dee2e6);
  padding-right: 0.5rem;
}
.event-month-row .col:last-child {
  border-right: none;
  padding-right: 0;
}
@media (max-width: 767px) {
  .event-month-row {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .event-month-row .col {
    width: 33.333%; /* 3カラム */
    min-width: 0;
    padding-right: 0.5rem;
    border-right: 1px solid var(--bs-border-color, #dee2e6);
  }
  .event-month-row .col:nth-child(3n) {
    border-right: none;
  }
  .event-month-row .col:last-child {
    border-right: none;
  }
  /* 2～4月の下にボーダー */
  .event-month-row .col:nth-child(1),
  .event-month-row .col:nth-child(2),
  .event-month-row .col:nth-child(3) {
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    padding-bottom: 0.5rem;
  }
  /* 5～7月の上にボーダー */
  .event-month-row .col:nth-child(4),
  .event-month-row .col:nth-child(5),
  .event-month-row .col:nth-child(6) {
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    padding-top: 0.5rem;
  }
}
.event-calendar-text {
  font-size: 0.8125rem;
}
.event-calendar-text .event-month-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bs-secondary);
  margin-bottom: 0.35rem;
}
.event-calendar-text .event-month-list,
.event-calendar-text .event-month-list li {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
}
.event-calendar-text .event-month-empty {
  font-size: 0.7rem;
  color: var(--bs-secondary);
  margin: 0;
}

/* イベントセクション: 1行6列（front-page.php で row-cols-lg-6 指定） */

/* 正方形サムネイル（グルメ・飲食一覧用） */
.thumbnail-square {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  background: var(--otaru-light);
}
.thumbnail-square img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* グルメ・飲食: Instagram風サムネ表示（PCはホバーでタイトル表示） */
.category-grid-section .category-grid-item {
  overflow: hidden;
}
.category-grid-section .category-grid-item .card,
.category-grid-section .category-grid-item .category-grid-link {
  height: 100%;
}
.category-grid-section .category-grid-link {
  color: inherit;
}
.category-grid-section .category-grid-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 0.5rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  opacity: 0;
  transition: opacity 0.2s ease;
}
@media (hover: hover) {
  .category-grid-section .category-grid-link:hover .category-grid-title {
    opacity: 1;
  }
}
/* スマホ: タップ可能であることが分かるよう、タイトルを常時表示（薄いオーバーレイ） */
@media (max-width: 991px) {
  .category-grid-section .category-grid-title {
    opacity: 1;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    padding: 0.35rem 0.4rem 0.3rem;
    font-size: 0.7rem;
  }
}

/* 投稿閲覧数バッジ（Instagram風・ホバーで表示） */
.post-views-overlay {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.45rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.post-views-icon {
  flex-shrink: 0;
}
@media (hover: hover) {
  .card:hover .post-views-overlay,
  .category-grid-link:hover .post-views-overlay {
    opacity: 1;
  }
}
/* スマホ: タップ可能なカードでは閲覧数を常時表示 */
@media (max-width: 991px) {
  .post-views-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.55);
  }
}

/* グルメ・飲食タブ用の正方形（120px） */
.category-grid-tab .category-grid-tab-inner {
  width: 120px;
  height: 120px;
  padding-bottom: 0;
}
.category-grid-tab .category-grid-tab-inner.thumbnail-square img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-grid-tab.active {
  outline: 2px solid var(--otaru-primary);
  outline-offset: 2px;
}
.category-grid-tab:focus-visible {
  outline: 2px solid var(--otaru-primary);
  outline-offset: 2px;
}

/* ==========================================================================
   カルーセル（Swiper 投稿カード）
   ========================================================================== */
.main-slider.main-carousel {
  margin-bottom: 2rem;
  overflow: hidden;
}
.main-carousel .main-swiper {
  padding: 0 1rem 2.5rem;
}
.main-carousel .swiper-slide {
  height: auto;
}
.main-carousel-card {
  display: block;
  transition: box-shadow 0.2s ease;
}
.main-carousel-card:hover {
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1) !important;
}
.main-carousel-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.main-carousel-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.main-carousel-card-img--noimg {
  background: var(--bs-secondary-bg, #e9ecef);
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-carousel-title {
  font-weight: 600;
}
.main-carousel .swiper-button-prev,
.main-carousel .swiper-button-next {
  color: var(--bs-body-color, #212529);
}
.main-carousel .swiper-pagination-bullet-active {
  background: var(--bs-primary, #0d6efd);
}

/* ==========================================================================
   PRエリア・バナーエリア
   ========================================================================== */
.pr-area,
.banner-area {
  padding: 1rem 0;
}
.banner-area .banner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
.banner-area .banner-item img {
  max-height: 60px;
  width: auto;
}

/* ==========================================================================
   去年の今頃の記事（付箋風スイッチ＋スライドパネル・高さ約200px）
   ========================================================================== */

/* オーバーレイ */
.last-year-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.last-year-panel-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* パネル全体：右端に付箋がちょろっと出ている。押すと付箋が左にスライドし、右側に記事が出る */
.last-year-panel {
  position: fixed;
  top: 50%;
  right: 0;
  width: 56px;
  height: 200px;
  margin-top: -100px;
  z-index: 1050;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  transition: width 0.3s ease;
}
.last-year-panel.is-open {
  width: 376px;
}

/* 記事パネル（付箋の右側・開くと右端に表示。付箋はこの記事エリアの左上に配置） */
.last-year-panel-inner {
  width: 0;
  flex-shrink: 0;
  height: 200px;
  background: #fff;
  border-radius: 0 8px 8px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: none;
  border-left: none;
  box-shadow: none;
  transition: width 0.3s ease, box-shadow 0.3s ease;
}
.last-year-panel.is-open .last-year-panel-inner {
  width: 320px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-left: none;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
}

/* 付箋（正方形・記事の左上に配置。右端にちょろっと出ており、押すと左にスライド） */
.last-year-panel-tab {
  width: 56px;
  min-width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: #fef08a;
  color: #854d0e;
  border: 1px solid #e5c434;
  border-right: none;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.18);
  transition: background 0.2s, box-shadow 0.2s;
}
.last-year-panel-tab:hover {
  background: #fde047;
  box-shadow: -3px 3px 10px rgba(0, 0, 0, 0.22);
}
.last-year-panel-tab-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.last-year-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--otaru-light, #f8f9fa);
  flex-shrink: 0;
}
.last-year-panel-title {
  font-weight: 600;
  font-size: 0.9rem;
}
.last-year-panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  -webkit-overflow-scrolling: touch;
}

.last-year-posts-list .last-year-posts-item:last-child {
  border-bottom: none !important;
}
.last-year-posts-title {
  color: var(--otaru-text);
  transition: color 0.2s;
  font-size: inherit;
}
.last-year-posts-item a:hover .last-year-posts-title {
  color: var(--otaru-primary);
}
.last-year-posts-date {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   マガジン付箋（見やすさを考慮したサイズ・A4表紙縮小表示）
   ========================================================================== */
.magazine-sticky {
  position: fixed;
  left: 0;
  top: 50%;
  margin-top: -100px;
  z-index: 1040;
  width: 108px;
  min-height: 0;
  padding: 10px 8px 8px 10px;
  background: #fef9c3;
  border: 1px solid #e4d872;
  border-left: none;
  border-radius: 0 8px 8px 0;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
  transform: rotate(0deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #713f12;
}
.magazine-sticky-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.magazine-sticky-body {
  position: relative;
  width: 100%;
}
.magazine-sticky-link:hover {
  color: inherit;
}
/* 開いているときの NEW */
.magazine-sticky-new {
  display: block;
  text-align: center;
  margin-bottom: 4px;
  padding: 2px 5px;
  background: #dc2626;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 3px;
}
.magazine-sticky-label {
  font-weight: 700;
  margin-bottom: 4px;
}
.magazine-sticky-issue {
  font-weight: 600;
  margin-bottom: 4px;
}
.magazine-sticky-status {
  font-size: 0.85rem;
  margin-bottom: 4px;
}
/* A4縦の画像を切り取らず全体表示（幅で縮小し縦横比維持） */
.magazine-sticky-cover {
  display: block;
  margin-top: 4px;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  border-radius: 3px;
}
.magazine-sticky-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 72px;
  max-height: 140px;
  object-fit: contain;
  object-position: center center;
  border-radius: 3px;
  vertical-align: middle;
}
.magazine-sticky .magazine-sticky-cover {
  max-width: 72px;
}
.magazine-sticky .magazine-sticky-img {
  max-width: 72px;
  max-height: 140px;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

/* 閉じるボタン（NEWの上・左矢印で「押すと引っ込む」を表示） */
.magazine-sticky-close {
  display: block;
  width: 100%;
  margin: 0 0 6px 0;
  padding: 4px 0;
  border: none;
  border-radius: 4px;
  background: rgba(113, 63, 18, 0.12);
  color: #713f12;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.magazine-sticky-close:hover {
  background: rgba(113, 63, 18, 0.22);
  color: #333;
}
.magazine-sticky-close-arrow {
  display: inline-block;
  font-weight: bold;
  animation: magazine-sticky-close-nudge 2s ease-in-out infinite;
}

@keyframes magazine-sticky-close-nudge {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(-5px); opacity: 0.85; }
}

.magazine-sticky-close:hover .magazine-sticky-close-arrow {
  animation: none;
}

/* 隠れているときの「開く」タブ */
.magazine-sticky-open {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 8px 4px;
  border: none;
  border-radius: 0 8px 8px 0;
  background: #fef9c3;
  border: 1px solid #e4d872;
  border-left: none;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
  color: #713f12;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  writing-mode: vertical-rl;
  letter-spacing: 0.05em;
  z-index: 1;
  box-sizing: border-box;
}
.magazine-sticky-open:hover {
  background: #fde047;
}
/* 閉じているときの NEW バッジ（タブからはみ出してポップ） */
.magazine-sticky-open-new {
  display: none;
  position: absolute;
  top: -4px;
  right: -8px;
  padding: 2px 4px;
  background: #dc2626;
  color: #fff;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  z-index: 2;
  writing-mode: horizontal-tb;
}
.magazine-sticky--hidden .magazine-sticky-open-new {
  display: block;
  animation: magazine-sticky-new-pulse 1.5s ease-in-out infinite;
}

@keyframes magazine-sticky-new-pulse {
  0%, 100% { transform: scale(1) translateY(0); opacity: 1; }
  25% { transform: scale(1.08) translateY(-4px); opacity: 0.95; }
  50% { transform: scale(1.12) translateY(2px); opacity: 0.92; }
  75% { transform: scale(1.05) translateY(-2px); opacity: 0.96; }
}

/* 隠れ状態 */
.magazine-sticky--hidden {
  width: 28px;
  min-height: 100px;
  padding: 0;
  margin-top: -50px;
}
.magazine-sticky--hidden .magazine-sticky-body,
.magazine-sticky--hidden .magazine-sticky-close {
  display: none !important;
}
.magazine-sticky--hidden .magazine-sticky-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   SNSリンク
   ========================================================================== */
.sns-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.sns-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--otaru-light);
  color: var(--otaru-text);
  transition: background 0.2s, color 0.2s;
}
.sns-links a:hover {
  background: var(--otaru-primary);
  color: #fff;
}
.sns-links .sns-logo-icon {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  vertical-align: middle;
}

/* フッター：SNSリンクは白系 */
.site-footer .sns-links a {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.site-footer .sns-links a:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.site-footer .sns-links .sns-logo-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ==========================================================================
   フッターウィジェット上エリア・フッターウィジェット（3カラム）
   ========================================================================== */
.footer-widget-upper .site-footer-logo-sns .custom-logo-link {
  display: inline-block;
}
.footer-widget-upper .site-footer-logo-sns .custom-logo-link img {
  max-height: 60px;
  width: auto;
  height: auto;
  vertical-align: middle;
}
.footer-upper-inner {
  text-align: left;
}
.footer-upper-widgets {
  flex: 1;
  min-width: 200px;
}
.footer-widgets .widget {
  font-size: 0.9rem;
}
.footer-widgets .widget a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.footer-widgets .widget a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-widgets .widget-title {
  color: #fff;
}

/* ==========================================================================
   ユーティリティ
   ========================================================================== */
.post-type-badge {
  display: inline-block;
  padding: 0.2em 0.5em;
  font-size: 0.75rem;
  background: var(--otaru-secondary);
  color: #fff;
  border-radius: 4px;
}
.event-type-badge {
  font-size: 0.7rem;
  color: var(--bs-secondary-color);
}

.event-meta-above-title .event-meta-row {
  margin-bottom: 0.25rem;
}
.event-meta-above-title .event-meta-row:last-child {
  margin-bottom: 0;
}

/* イベント一覧：カード内の時間・会場ラベル */
.event-archive-meta .event-meta-label {
  display: inline-block;
  min-width: 4.5em;
  font-weight: 600;
  color: var(--bs-body-color);
}
.event-archive-thumb {
  overflow: hidden;
}
.event-archive-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* トップページ 観光・グルメ「もっと見る」リンク（中央寄せ・下矢印で下に追加表示されることを示す） */
.otaru-load-more-wrap {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.otaru-load-more-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4em;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--otaru-secondary, #198754);
  text-decoration: none;
  padding: 0.5em 1em;
  transition: color 0.2s;
}
.otaru-load-more-link:hover {
  color: var(--otaru-secondary-dark, #157347);
}
.otaru-load-more-arrow {
  display: block;
  width: 0;
  height: 0;
  border-left: 0.4em solid transparent;
  border-right: 0.4em solid transparent;
  border-top: 0.5em solid currentColor;
  transition: transform 0.2s;
}
.otaru-load-more-link:hover .otaru-load-more-arrow {
  transform: translateY(2px);
}
.otaru-load-more-link.disabled {
  pointer-events: none;
  opacity: 0.6;
}
.otaru-load-more-link.disabled .otaru-load-more-arrow {
  transform: none;
}

/* ヘッダー検索フォーム */
.site-search-form {
  flex-shrink: 0;
}
.site-search-form .search-form {
  max-width: 200px;
  flex-wrap: nowrap;
}
.site-search-form .search-form .form-control,
.site-search-form .search-form .btn {
  white-space: nowrap;
}
.site-search-form .form-control-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}
.site-search-form .search-form .btn {
  flex-shrink: 0;
}

/* 記事・イベント 共有ボタン */
.share-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.share-buttons-label {
  display: inline-block;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s;
}
.share-btn:hover {
  color: #fff;
  opacity: 0.9;
}
.share-btn-twitter { background: #000; }
.share-btn-facebook { background: #1877f2; }
.share-btn-line { background: #00b900; }
