.circle-submenu {
  visibility: hidden;
  opacity: 0;
  z-index: 1000;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.pc-header-btn.circle:hover + .circle-submenu,
.circle-submenu:hover {
  visibility: visible;
  opacity: 1;
}

.pc-header-btn.circle:hover + .circle-submenu::before,
.circle-submenu::before {
  position: absolute;
  top: -10px;
  right: 0;
  left: 0;
  height: 10px;
  content: "";
}
.section {
  max-width: 1200px;
  border: none;
  box-sizing: border-box;
  box-shadow: unset;
  background: transparent;

  gap: 0;
  padding-inline: 30px;
  padding-block: 0;
}
@media (max-width: 769px) {
  .section {
    width: 100%;
    padding: 1rem 0.5rem;
  }
  .all__wrap,
  .all__wrap--company-list {
    gap: 1rem;
  }
}
.breadcrumb {
  max-width: 1170px;
}
/* リセットとベーススタイル */
:root {
  --border-width: 2px;
  --border-color: #000000;
}

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

body {
  color: #333333;
  line-height: 1.6;
  font-family: "Noto Sans JP", "Meiryo", sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* タブ切り替え - BEM */
.circle-view {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;

  gap: 10px;
}

.circle-view__tab {
  display: flex;
  align-items: center;
  padding: 8px 24px;
  border: 2px solid #13a95b;
  border-radius: 5px;
  background-color: white;
  color: #13a95b;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;

  gap: 8px;
}

.circle-view__tab:hover {
  background-color: #e3f2fd;
}

.circle-view__tab:hover.circle-view__tab--active {
  background-color: #13a95b;
}

.circle-view__tab--active {
  background-color: #13a95b;
  color: white;
}

.circle-view__tab i {
  font-size: 18px;
}

.circle-view__icon {
  width: 18px;
  height: 18px;

  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(45%) sepia(78%) saturate(1200%)
    hue-rotate(110deg) brightness(95%) contrast(85%);
}

.circle-view__tab--active .circle-view__icon {
  filter: brightness(0) saturate(100%) invert(100%);
}

/* コントロール - BEM */
.circle-controls {
  width: 100%;
  padding: 20px;
  border-radius: 8px;
  background: white;
}

.circle-controls__search {
  display: grid;

  gap: 10px;
  grid-template-columns: 1fr 1fr 4.35fr 80px;
  /* grid-template-columns: 1fr 4.35fr 80px; */
}

.circle-controls__input {
  flex: 1;
  min-width: 150px;
  padding: 10px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font-size: 14px;
}
/* selectボックス専用のスタイリング */
select.circle-controls__input {
  padding-right: 30px; /* 矢印のスペースを確保 */
  background-image: url("../images/icon-arrow-bottom.svg");
  background-position: right 8px center;
  background-size: 12px 10px;
  background-repeat: no-repeat;
  cursor: pointer;

  appearance: none; /* デフォルトの矢印を削除 */
  -webkit-appearance: none;
  -moz-appearance: none;
}
@media (max-width: 769px) {
  select.circle-controls__input {
  }
}

/* placeholder風のオプション（最初のoption）のスタイル */
select.circle-controls__input option:first-child {
  color: #999999; /* プレースホルダー風の薄いグレー */
  font-style: italic;
}

/* その他のオプションのスタイル */
select.circle-controls__input option:not(:first-child) {
  color: #333333; /* 通常の文字色 */
  font-style: normal;
}

/* フォーカス時のスタイル */
select.circle-controls__input:focus {
  outline: 2px solid #13a95b;

  outline-offset: -2px;
}
.circle-controls__clear {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background-color: #e74c3c;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.circle-controls__clear:hover {
  background-color: #c0392b;
}

/* ビューコンテンツ - BEM */
.circle-content {
  width: 100%;
}
.circle-content__view {
  display: none;
}

.circle-content__view--active {
  display: block;
}
/* リスト表示時にheadlineを非表示 */
.circle-content__view--active#listView ~ .circle-headline {
  display: none;
}

/* または、より確実にするために以下のJavaScript連動方式 */
.circle-content--list-active .circle-headline {
  display: none;
}

/* リスト表示時のcircle-viewの配置を右寄せに */
body:has(.circle-content__view--active#listView) .top-menu {
  justify-content: flex-end;
}
/* リスト表示 - BEM */
.circle-list {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: white;

  margin-block-start: 20px;
}

.circle-list__header {
  display: grid;
  align-items: center;
  padding: 10px 15px;
  background-color: #345e52;
  color: white;
  font-weight: bold;
  font-size: 14px;

  grid-template-columns: 60px 80px 1fr 100px;
  gap: 10px;
}

.circle-list__header--sortable {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s;

  user-select: none;
  padding-inline-start: 0;
}
.justify-content-center {
  justify-content: center;
}

.circle-list__header--sortable:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sort-indicator {
  opacity: 0.3; /* 最初から薄く表示 */
  margin-left: 5px;
  font-size: 12px;
  transition: opacity 0.2s ease;
}

/* デフォルト状態でも昇順インジケータを表示 */
.sort-indicator::before {
  content: "▲";
}

.sort-indicator--asc::before {
  content: "▲";
}

.sort-indicator--desc::before {
  content: "▼";
}

/* ホバー時にインジケータを濃く表示 */
.circle-list__header--sortable:hover .sort-indicator {
  opacity: 0.6;
}

/* アクティブなソートフィールドのインジケータは完全に表示 */
.circle-list__header--sortable.active .sort-indicator {
  opacity: 1;
}

.circle-list__content {
}

.circle-list__item {
  display: grid;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #eeeeee;
  font-size: 14px;
  transition: background-color 0.2s;

  grid-template-columns: 60px 80px 1fr 100px;
  gap: 10px;
}

.circle-list__item:hover {
  background-color: #f8f9fa;
}

.circle-list__item:last-child {
  border-bottom: none;
}

.circle-list__item-symbol,
.circle-list__item-number {
  color: black;
  font-weight: bold;
  text-align: center;
}

.circle-list__item-name {
  overflow: hidden;
  font-weight: 500;
  white-space: nowrap;

  text-overflow: ellipsis;
}

.circle-list__item-links {
  display: flex;

  gap: 8px;
}
/* 準備会アイテムのスタイル */
.circle-list__item--preparation {
  background-color: #f5f6f2 !important;
}

.circle-list__item--preparation:hover {
  background-color: #f5f6f2 !important;
}
.circle-link {
  display: inline-block;
  width: 24px;
  height: 24px;
  text-decoration: none;
  transition: opacity 0.3s;
}
@media (max-width: 769px) {
  .circle-link {
    flex: 0 0 20px;
  }
}

.circle-link:hover {
  opacity: 0.7;
}

.circle-link__icon {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

/* グリッド表示 - BEM */
.circle-grid {
  display: grid;

  gap: 16px;
  margin-top: 2.5rem;
  /* border-left: var(--border-width) solid var(--border-color);
  border-top: var(--border-width) solid var(--border-color); */
}

/* デスクトップ（デフォルト） */
.circle-grid {
  grid-template-columns: repeat(6, 1fr);
  padding-block-end: 16px;
}

/* タブレット */
@media (max-width: 1023px) {
  .circle-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

/* スマートフォン */
@media (max-width: 767px) {
  .circle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.circle-grid__item {
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  transition: box-shadow 0.3s;
}
@media (max-width: 767px) {
  /* .circle-grid__item {
    max-height: 337px;
  } */
}

.circle-grid__item .block {
  display: none !important;
}

.circle-grid__item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.circle-grid__item:has(.block) {
  box-shadow: unset;

  aspect-ratio: 1 / 1.924;
}

.circle-grid__item:has(.block):hover {
  box-shadow: unset;
}

.circle-grid__item--double {
  grid-column: span 2;
}

.circle-grid__image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: #ecf0f1;
  color: #7f8c8d;
  font-size: 14px;

  aspect-ratio: 0.708 / 1;
}

.circle-grid__item--double .circle-grid__image {
  aspect-ratio: 1.48 / 1;
}

.circle-grid__image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.circle-grid__info {
  padding: 15px;
  background-color: #ffffff;
  color: #2c3e50;
}
@media (max-width: 767px) {
  .circle-grid__info {
    padding: 8px 8px;
  }
}

.circle-grid__name {
  width: 100%;
  overflow: hidden;
  font-weight: bold;
  white-space: nowrap;

  text-overflow: ellipsis;
}
.circle-grid__links {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 8px;
  padding-block-start: 6px;
}
/* ヘッダーバー（常に表示） */
.circle-grid__header {
  display: flex;
  align-items: center;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: 3vw;
}

.circle-grid__header-square {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  box-sizing: content-box;
  background-color: #000000;

  aspect-ratio: 1 / 1;
}

.circle-grid__header-position {
  display: flex;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  flex-direction: column;
}

@media (max-width: 1200px) {
  .circle-grid__header-position {
    font-size: 10px;
  }
}
@media (min-width: 1200px) {
  .circle-grid__header {
    max-height: 41px;
  }
}
@media (max-width: 1025px) {
  .circle-grid__header {
    height: 4.6vw;
  }
}
@media (max-width: 769px) {
  .circle-grid__header {
    height: 11.2vw;
  }
}

/* .circle-grid__header-name {
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
  padding-inline: 4px;
} */

.circle-grid__item--no-image .circle-grid__image {
  background-color: #ecf0f1;
}
.circle-headline {
  display: flex;
  color: #2a6146;
  font-weight: 900;
  font-size: 36px;

  gap: 8px;
  padding-block-start: 40px;
  padding-block-end: 24px;
}
/* アンカー先のオフセット調整 */
.circle-headline {
  scroll-margin-top: 24px;
}
.circle-headline__icon {
  display: flex;
  align-items: center;
  width: 40px;
}
@media (max-width: 1200px) {
  .circle-headline {
    font-size: 26px;

    padding-block-start: 20px;
    scroll-margin-top: -20px;
  }

  .circle-headline__icon {
    display: flex;
    align-items: center;
    width: 26px;
  }
}
/* .circle-direct {
} */
/* モーダル開閉時のスクロールバーがたつき防止 */
html:has(.modal--active) {
  background-color: #626262;

  scrollbar-gutter: stable;
}

/* モーダル */
.modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
}

.modal--active {
  display: flex;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.modal__content {
  position: relative;
  z-index: 1001;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: white;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #eeeeee;
  border-radius: 12px 12px 0 0;
  background-color: #f8f9fa;
}

.modal__title {
  margin: 0;
  color: #2c3e50;
  font-size: 1.4rem;
}

.modal__close {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  color: #7f8c8d;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s;
}

/* .modal__close:hover {
  opacity: 0.8;
} */

.modal__body {
  display: flex;
  padding: 25px;

  gap: 25px;
}

.modal__image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30%;
  min-height: 130px;
  overflow: hidden;
  color: #7f8c8d;
  font-size: 14px;

  aspect-ratio: 0.708 / 1;
}

.modal__image img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

.modal__info {
  display: flex;
  flex: 1;
  flex-direction: column;

  gap: 24px;
}

.modal__info > div {
  display: flex;
  flex-direction: column;

  gap: 5px;
}

.modal__label {
  color: #34495e;
  font-weight: bold;
  font-size: 0.9rem;
}

.modal__location {
  color: #2980b9;
  font-weight: 600;
  font-size: 1.1rem;
}

.modal__circle-name {
  color: #3a3e50;
  font-weight: 600;
  font-size: 1.2rem;
}

.modal__link-list {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;
}

.modal__link {
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}

.modal__link:hover {
  opacity: 0.8;
}

.modal__link-icon {
  width: 24px;
  height: 24px;

  object-fit: contain;
}
.modal__location-label {
  color: #3a3e50;
}

.modal__circle-name-label {
  color: #516274;
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
  .modal__content {
    width: 95%;
    max-height: 85vh;
  }

  .modal__body {
    align-items: flex-start;
    padding: 20px;

    gap: 20px;
  }

  /* .modal__image {
    width: 30%;
  } */
  .modal__location {
    font-size: 1rem;
  }
  .modal__circle-name {
    font-size: 0.8rem;
  }
  .modal__header {
    padding: 15px 20px;
  }

  .modal__title {
    font-size: 1.2rem;
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .circle-controls__search {
    grid-template-columns: 1fr 1fr;
  }

  .circle-controls__input.span2 {
    grid-column: span 2;
  }
  .circle-controls__clear {
    width: calc(30% - 5px);
    margin-left: auto;

    grid-column: span 2;
  }

  .circle-list__header,
  .circle-list__item {
    padding: 10px 8px;
    font-size: 13px;

    grid-template-columns: 45px 45px 1fr 75px;
    gap: 4px;
  }

  /* スマートフォン表示時は記号と番号のソートインジケータを非表示 */
  .circle-list__header-symbol .sort-indicator,
  .circle-list__header-number .sort-indicator {
    display: none;
  }

  /* グリッドは既に767px以下で設定済み */

  .circle-view__tab {
    flex: 1;
    justify-content: center;
    padding: 6px 16px;
    font-size: 14px;
  }

  .circle-view__tab i {
    font-size: 16px;
  }

  .circle-view__icon {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 768px) {
  .circle-view {
    align-items: center;
    width: 100%;
  }

  .circle-grid__header-position {
    font-size: 12px;
  }

  .circle-grid__header-name {
    font-size: 14px;
  }

  .circle-grid__name {
    font-size: 14px;
  }
}

/* 空のセクションは非表示 */
.circle-aki:empty,
.circle-ha:empty,
.circle-bara:empty,
.circle-cho:empty,
.circle-dou:empty,
.circle-jin:empty,
.circle-sai:empty,
.circle-plus:empty {
  display: none;
}

/* セクション見出しスタイル調整（グリッドビュー内） */
#gridView .circle-headline {
  margin-top: 0;
}

#gridView .circle-headline:first-child {
  margin-top: 0;
}
/* 参加形式アンカーリンク */
.participation-anchor {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;

  gap: 10px;
}

.participation-anchor__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 24px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  color: white;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;

  gap: 4px;
}

.participation-anchor__btn:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* 直接参加ボタン */
.participation-anchor__btn--direct {
  background-color: #ff8000;
}

.participation-anchor__btn--direct:hover {
  background-color: #e6720a;
}

/* 委託参加ボタン */
.participation-anchor__btn--consignment {
  background-color: #5467b1;
}

.participation-anchor__btn--consignment:hover {
  background-color: #4a5a9e;
}

/* DL参加ボタン */
.participation-anchor__btn--dl {
  background-color: #13a95b;
}

.participation-anchor__btn--dl:hover {
  background-color: #119651;
}

/* topへ戻るボタン */
.top-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  right: 20px;
  bottom: 30px;
  width: 64px;
  height: 64px;
  border-radius: 1000px;
  background-color: #119651;
  color: #ffffff;
}
@media (max-width: 768px) {
  .top-btn {
    width: 48px;
    height: 48px;
  }
}

.top-btn-01 {
  bottom: 137px;
}
@media (max-width: 768px) {
  .top-btn-01 {
    bottom: 140px;
  }
}
/* スムーススクロール */
html {
  scroll-behavior: smooth;
}
.anchor-icon {
  width: 12px;
}
.top-menu {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}
@media (max-width: 769px) {
  .top-menu {
    flex-direction: column;
    align-items: center;

    padding-inline: 10px;
  }
  .participation-anchor {
    width: 100%;
  }
  .participation-anchor__btn {
    flex: 1;
  }
}
.section::before {
  display: none;
}
.section::after {
  display: none;
}

.none {
  display: none;
}

/* -------------------------------------------
 言語切り替え
------------------------------------------- */

.lang-btn {
  height: 60px;
  width: 60px;
  position: fixed;
  right: 10px;
  bottom: 30px;
  background: #000000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  @media (max-width: 769px) {
    bottom: 70px;
  }
}

.lang-btn-up {
  right: 10px;
  bottom: 100px;
  transition: all 1s;
}

.lang-content {
  background-color: #0000006a;
  border-radius: 99999px;
  display: none;
  width: 60px;
  padding-bottom: 60px;
  position: fixed;
  z-index: 1;
  right: 10px;
  bottom: 30px;
  @media (max-width: 769px) {
    bottom: 70px;
  }
}

.lang-content ul {
  padding: 2px;
  margin: 0;
}

.lang-content-up {
  bottom: 100px;
  transition: all 1s;
}

.lang-content li a {
  background-color: #fff;
  border-radius: 50%;
  color: #000000;
  font-weight: bold;
  font-size: 1.2rem;
  display: block;
  height: 50px;
  padding-top: 12px;
  margin: 5px auto;
  text-align: center;
  width: 50px;
  box-sizing: border-box;
}

.lang:hover .lang-content {
  display: block;
  transition: all 0.5s;
}

#lang:checked ~ .lang-content {
  display: block;
  transition: all 0.5s;
}

.lang-check {
  display: none;
}

.lang img {
  width: 80%;
  filter: brightness(0) invert(1);
}

/* ページに合わせて内容調整 */
.lang {
  font-family: var(--font-base);
}
