/* =========================================================
   fun okinawa 追加スタイル
   - トップ: 参加するバナー (.bnr)
   - お知らせ一覧 / 詳細 (2カラム・サイドバー右)
   依存: assets/css/style.css (共通デザインシステム)
   ========================================================= */

/* ナビゲーション ドロップダウン（PC）
--------------------------------------------------------- */
.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  justify-content: center;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .2s;
}

a.nav__link {
  cursor: pointer;
}

a.nav__link:hover {
  opacity: .6;
}

.nav__chevron {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s;
  margin-left: 2px;
}

.nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  padding: 8px 0;
  list-style: none;
  z-index: 200;
}

/* トリガーとドロップダウンの間を透明ブリッジで埋める */
.nav__item--has-children::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 22px;
  display: none;
}

.nav__item--has-children:hover::after,
.nav__item--has-children:hover .nav__dropdown {
  display: block;
}

.nav__dropdown li {
  display: block;
}

.nav__dropdown a {
  display: block;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.nav__dropdown a:hover {
  background: var(--theme-soft);
  color: var(--theme);
  opacity: 1;
}


.header__actions {
  flex-shrink: 0;
}
/* SP ハンバーガーメニュー（全画面オーバーレイ）
--------------------------------------------------------- */
@media (max-width: 1024px) {
  /* backdrop-filter は fixed 子要素の包含ブロックを作ってしまうため解除
     （これがないと全画面オーバーレイがヘッダー内に閉じ込められる） */
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }

  /* ハンバーガーを最前面・X に変形できるように */
  .menu-button {
    position: relative;
    z-index: 120;
  }

  .menu-button span,
  .menu-button::before,
  .menu-button::after {
    transition: transform .3s, opacity .2s;
  }

  .nav-open .menu-button span {
    opacity: 0;
  }

  .nav-open .menu-button::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-open .menu-button::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* 全画面オーバーレイメニュー */
  .site .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    position: fixed;
    inset: 68px 0 0 0;
    z-index: 40;
    width: 100%;
    padding: 0 20px 40px;
    background: #fff;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
  }

  .site.nav-open .nav {
    opacity: 1;
    pointer-events: auto;
  }

  /* ナビリスト：縦並び・全幅 */
  .site .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    width: 100%;
  }

  .site .nav__item {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  /* 親リンク・親ボタン共通 */
  .site .nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
  }

  .site a.nav__link:hover,
  .site button.nav__link:hover {
    opacity: 1;
    color: var(--theme);
  }

  /* チェブロン：開いたら上向きに回転 */
  .site .nav__item--has-children.is-open > button > .nav__chevron {
    transform: rotate(-135deg) translateY(2px);
  }

  /* SP アコーディオン：max-height でスムーズ開閉 */
  .site .nav__dropdown {
    display: block !important;
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site .nav__item--has-children.is-open > .nav__dropdown {
    max-height: 400px;
    padding: 4px 0 12px !important;
  }

  .site .nav__dropdown a {
    padding: 11px 0 11px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    white-space: normal;
  }

  .site .nav__dropdown a:hover {
    color: var(--theme);
    background: transparent;
  }

  /* SNS など actions はメニュー最下部に通常フローで表示（JSでnav内へ移動） */
  .site .nav .header__actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: auto;
    padding: 28px 28px 0;
    justify-content: flex-start;
  }
}


/* ロゴ画像
--------------------------------------------------------- */
.logo {
  min-width: 0;
}

.logo img {
  display: block;
  height: 48px;
  width: auto;
}

/* 参加するバナー
--------------------------------------------------------- */
.bnr {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bnr li a {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.bnr li a:hover {
  border-color: var(--theme);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.bnr img {
  width: 100%;
  height: auto;
}

/* 広告バナー
--------------------------------------------------------- */
.ad_bnr {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.ad_bnr li a {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.ad_bnr li a:hover {
  border-color: var(--theme);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.ad_bnr img {
  width: 100%;
  height: auto;
}

/* パンくず
--------------------------------------------------------- */
.breadcrumb {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--color-muted);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb li + li::before {
  content: "›";
  color: #bbb;
}

.breadcrumb a {
  color: var(--color-muted);
  transition: color .2s;
}

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

/* ページヘッダー
--------------------------------------------------------- */
.page-header {
  padding: 28px 0 0;
}

.page-header__title {
  margin: 0;
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: .03em;
}

.page-header__lead {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

/* 2カラムレイアウト（メイン + サイドバー右）
--------------------------------------------------------- */
.layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
  padding: 40px 0 80px;
}

/* サイドバー
--------------------------------------------------------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 96px;
  align-self: start;
}

.widget {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 22px 24px 24px;
}

.widget__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}

.widget__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.widget__list li {
  border-bottom: 1px solid var(--color-border);
}

.widget__list li:last-child {
  border-bottom: 0;
}

.widget__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 2px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  transition: color .2s, padding-left .25s;
}

.widget__list a:hover {
  color: var(--theme);
  padding-left: 6px;
}

.widget__count {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.widget__list--recent a {
  display: block;
}

.widget__recent-date {
  display: block;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--color-muted);
  font-weight: 700;
  margin-top: 5px;
}

/* お知らせ一覧
--------------------------------------------------------- */
.news-list {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.news-list__row {
  display: grid;
  grid-template-columns: 96px 110px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
  transition: background .2s;
}

.news-list__row:last-child {
  border-bottom: 0;
}

.news-list__row:hover {
  background: var(--theme-soft);
}

.news-list__date {
  color: var(--color-muted);
  font-size: 13px;
}

.news-list__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

/* ページネーション
--------------------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .2s, color .2s;
}

.pagination a:hover {
  border-color: var(--theme);
  color: var(--theme);
}

.pagination .current {
  background: var(--theme);
  border-color: var(--theme);
  color: #fff;
}

/* お知らせ詳細（記事本体）
--------------------------------------------------------- */
.article {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 40px 44px 48px;
}

.article__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.article__date {
  color: var(--color-muted);
  font-size: 13px;
}

.article__title {
  margin: 14px 0 0;
  font-size: 28px;
  line-height: 1.5;
  letter-spacing: .02em;
}

.article__body {
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.9;
}

.article__body > *:first-child {
  margin-top: 0;
}

.article__body p {
  margin: 0 0 1.4em;
}

.article__body a {
  color: var(--theme);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article__body img,
.article__figure {
  margin: 28px 0;
}

.article__figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.article__figure img {
  width: 100%;
}

.article__figure figcaption {
  font-size: 12px;
  color: var(--color-muted);
  padding: 8px 2px 0;
}

.article__body h2 {
  margin: 2.2em 0 .8em;
  padding: 10px 16px;
  font-size: 22px;
  line-height: 1.45;
  background: var(--theme-soft);
  border-left: 4px solid var(--theme);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article__body h3 {
  margin: 2em 0 .7em;
  padding-bottom: 8px;
  font-size: 19px;
  line-height: 1.5;
  border-bottom: 2px solid var(--theme);
}

.article__body h4 {
  margin: 1.8em 0 .6em;
  padding-left: 12px;
  font-size: 17px;
  border-left: 3px solid var(--theme);
}

.article__body h5 {
  margin: 1.6em 0 .5em;
  font-size: 15px;
  color: var(--theme);
}

.article__body h6 {
  margin: 1.6em 0 .5em;
  font-size: 15px;
  color: inherit;
  font-weight: 400;
}

.article__body ul,
.article__body ol {
  margin: 0 0 1.4em;
  padding-left: 1.5em;
}

.article__body li {
  margin-bottom: .4em;
}

.article__body blockquote {
  margin: 1.6em 0;
  padding: 16px 20px;
  background: var(--color-bg);
  border-left: 3px solid #ccc;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #555;
}

.article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 14px;
}

.article__body th,
.article__body td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
}

.article__body th {
  background: var(--color-bg);
  white-space: nowrap;
}

.article__footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* レスポンシブ
--------------------------------------------------------- */
@media (max-width: 1024px) {
  .bnr {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* サイドバーは本文の下へ */
  .layout-2col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sidebar {
    position: static;
    top: auto;
  }
}

@media (max-width: 768px) {
  .bnr {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ad_bnr {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .page-header__title {
    font-size: 26px;
  }

  .logo img {
    height: 36px;
  }

  .layout-2col {
    padding: 28px 0 64px;
  }

  .news-list__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 18px;
  }

  .news-list__date {
    order: -1;
  }

  .article {
    padding: 26px 20px 32px;
  }

  .article__title {
    font-size: 22px;
  }

  .article__body h2 {
    font-size: 19px;
  }

  .article__body h3 {
    font-size: 17px;
  }

  .article__footer {
    flex-direction: column;
  }
}

/* エディター画像アライメント */
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.alignleft {
  float: left;
  margin: 0 1.5em 1em 0;
}
.alignright {
  float: right;
  margin: 0 0 1em 1.5em;
}
.alignnone {
  display: block;
}

/* 検索フォーム */
.search-form {
  margin-bottom: 32px;
}
.search-form__inner {
  display: flex;
  gap: 8px;
  max-width: 480px;
}
.search-form__input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}
.search-form__input:focus {
  outline: none;
  border-color: var(--theme);
}
.search-form__btn {
  height: 44px;
  padding: 0 22px;
  background: var(--theme);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.search-form__btn:hover {
  opacity: .85;
}
.search-noresult {
  padding: 60px 0;
  text-align: center;
  color: #666;
}

/* Hero Banner */
.hero-banner { background: #fff; padding: 20px 0; }
.hero-banner__inner { width: min(100% - 48px, 960px); margin: 0 auto; }
.hero-banner__inner h2 { margin-bottom: 12px; }
.hero-banner img { width: 100%; display: block; border-radius: 8px; }

@media (max-width: 768px) {
  .hero__image { background-position: right center; }
}

