/* 
 * component.css
 * コンポーネントスタイル
 *
 * ⚫︎規則
 * 　margin等コンポーネント外部のレイアウトに影響するスタイル禁止
 */

/******************************/
/* 外部リンク　一覧 */
/******************************/
.c-externalLink-btn_item {
  position: relative;
  flex: 0 1 calc((100% - 40px) / 3) !important;
  max-width: unset !important;
  border-radius: 12px;
  box-shadow: 4px 4px 10px rgba(0, 100, 128, 0.26);
  background-color: #ffffff;
  transition: transform 0.4s ease;
}
.s .c-externalLink-btn_item {
  flex: 1 1 100% !important;
  min-width: auto;
  max-width: unset !important;
  border-radius: 8px;
}
.c-externalLink-btn_item:hover {
  transform: scale(1.03);
}
.c-externalLink-btn_item a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}
.c-externalLink-btn_title {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap; /* アイコンとタイトルを同一行に保つ */
  gap: 12px;
  padding: 16px 33px 12px 16px;
  font-size: 1.125rem;
  font-weight: bold;
  color: #111;
  text-align: center;
}
.s .c-externalLink-btn_title {
  justify-content: flex-start !important;
  gap: 8px;
  padding: 12px 26px 8px 12px;
  font-size: 0.875rem;
}
.c-externalLink-btn_title img {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}

/* タイトルテキスト（アイコン右側）にのみ折返しを適用 */
.c-externalLink_title__text,
.c-title__text {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.c-externalLink_title__text {
  max-width: 315px;
  text-align: left;
}
.c-externalLink_title.is-short,
.c-externalLink-btn_title.is-short {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.c-externalLink-btn_content {
  padding: 16px 24px;
  border-radius: 0 0 12px 12px;
  background-color: #f8f8f8;
  color: #333333;
  font-size: 0.875rem;
  flex: 1 1 auto;
  display: block;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.s .c-externalLink-btn_content {
  padding: 14px;
  border-radius: 0 0 8px 8px;
  font-size: 0.75rem;
}

.c-externalLink-btn_content p {
  /* 3行以上は省略の記述 */
  width: 100%;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 0.875rem;
  color: #333;
  line-height: 1.7;
  text-align: left;
}
.s .c-externalLink-btn_content p {
  margin: 0;
  font-size: 0.75rem;
}
.c-externalLink_iconBg {
    max-width: 72px;
    flex-shrink: 0;
    padding: 3px 3px;
    background-color: #f8f8f8;
    border: 2px solid #ccc;
    border-radius: 7px;
}
/******************************/
/* メインタイトル */
/******************************/
.c-mainTitle {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  color: #222222;
  font-weight: bold;
}
.s .c-mainTitle {
  gap: 6px;
  font-size: 1.375rem;
  padding: 0 8px;
}
.c-mainTitle img {
  width: 36px;
  height: 36px;
}
.s .c-mainTitle img {
  width: 32px;
  height: 32px;
}

/******************************/
/* h3 サブタイトル */
/******************************/
.c-subTitle {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap; /* アイコンとテキストは同一行、テキストのみ複数行に折返す */
  gap: 10px;
  font-size: 1.625rem;
  color: #333;
  font-weight: bold;
  letter-spacing: 0.08em;
}
.s .c-subTitle {
  gap: 8px;
  font-size: 1.125rem;
}
.c-subTitle img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.s .c-subTitle img {
  width: 22px;
  height: 22px;
}

/*********************************/
/* モーダル */
/*********************************/
/* モーダル全体のオーバーレイ */
.c-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 10;
}

/* 背景画像を薄く表示するための疑似要素*/
.c-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(../../images/modal-bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.8;
  pointer-events: none;
  z-index: 2;
}

/* モーダル内部を常に前面に出す */
.c-modal > * {
  position: relative;
  z-index: 1;
}

/* モーダルコンテナ */
.c-modal_content {
  width: 100%;
  max-height: 100vh;
  position: absolute;
  top: 5%;
  left: 10%;
  padding-bottom: 40px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 20px #01327429;
  z-index: 3;
}
.s .c-modal_content {
  top: 5%;
  left: 5%;
  padding-bottom: 24px;
  border-radius: 16px;
  box-sizing: border-box;
  max-height: calc(80dvh);
  margin-top: 30px;
}

/* モーダルサイズ　大 */
._modal-l {
  width: 80%;
  height: 80%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.s ._modal-l {
  width: 90%;
  height: auto;
}
/* SP時は他サイズも固定高さを解除 */
.s ._modal-m,
.s ._modal-s {
  height: auto;
}
._modal-l .c-modal_body {
  margin: 24px 32px;
  padding: 24px;
}
._modal-l .c-modal_closeBtn {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translatey(-50%);
  width: 3%;
  max-width: 36px;
}
/* モーダルのサイズ　中 */
._modal-m {
  max-width: 920px;
}

/* モーダルサイズ　小 */
._modal-s {
  max-width: 660px;
}
._modal-s .c-modal_body {
  height: 214px;
  margin: 29px 32px 22px;
  padding: 32px 34px;
  background-color: #f8f8f8;
}
._modal-s .c-modal_text {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
}
._modal-s .c-modal_cancel_btn {
  box-shadow: 0px 2px 10px rgba(116, 116, 116, 16%);
}
._modal-s .c-modal_buttonArea {
  gap: 16px;
}
/* モーダルヘッダー */
.c-modal_header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-bottom: 1px solid #e5e5e5;
}

/* モーダルタイトル */
.c-modal_title {
  padding: 20px 15px 15px;
  margin: 0 40px;
  font-size: 1.5rem;
  color: #333;
  font-weight: bold;
  letter-spacing: 0.08em;
}
.s .c-modal_title {
  padding: 14px 20px 10px 12px;
  font-size: 1.25rem;
}

/* 種別などのモーダル表示 */
.c-modal_headerArea {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  position: relative;
}
.s .c-modal_headerArea {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: -85px;
}

.c-modal_item {
  max-width: none;
  width: 41.6%;
  position: relative;
  /* margin-top: -20px; */
  border: 2px solid #ccc;
  border-radius: 16px;
  /* padding: 16px; */
  background-color: #ffffff;
}
.s .c-modal_item {
  width: 100%;
  margin-top: 0;
  border: 1.5px solid #ccc;
  border-radius: 8px;
}

/* モーダル閉じるボタン */
.c-modal_closeBtn {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  width: 4% !important;
  padding: 0 !important;
  border: 0;
  background-color: unset;
  cursor: pointer;
}
.s .c-modal_closeBtn {
  max-width: 30px;
  width: 8% !important;
}
/* モーダル内容部分 */
.c-modal_body {
  /* height: 386px; */
  margin: 23px 32px 22px;
  padding: 32px 48px 32px;
  border-radius: 16px;
}
.s .c-modal_body {
  height: auto; /* コンテンツに応じて伸縮 */
  margin: 12px;
  padding: 20px 12px 20px 20px;
  border-radius: 16px;
}
.c-modal_body._modalLower {
  position: relative;
  height: auto;
  padding: 32px 20px 20px;
  background-color: #f8f8f8;
  border-radius: 16px;
  /* overflow-y: auto; */
}

.s .c-modal_body._modalLower {
  margin-top: 75px;
  overflow-y: unset;
}
/* SP 外部リンク遷移前モーダル */
.modal-notice .c-modal_body {
  height: fit-content !important;
}
.modal-notice .c-modal_body .c-modal_text {
  font-size: 1.25rem !important;
}

/* テキスト */
.c-modal_text {
  grid-column: 1 / -1;
  max-height: 200px;
  height: auto;
  margin-top: 12px;
  padding: 32px;
  overflow-y: auto;
  overscroll-behavior-y: none;
  font-size: 1rem;
  color: #222;
}
.c-modal.modal-notice .c-modal_text {
  margin-top: 0;
  height: 150px;
}
.s .c-modal_text {
  flex: 1 1 auto;
  max-height: 210px;
  /* height: 400px; */
  overflow-y: auto;
  font-size: 0.8125rem;
  padding: 10px 3px 10px 10px;
}
.s .c-modal.modal-notice .c-modal_text {
  margin-top: 0;
  height: 230px;
  font-size: 1.375rem;
}

/* リンク */
/* .c-externalLink_url {
  width: 100%;
  display: inline-block;
  position: relative;
  padding-left: 14px;
  color: #1a0dab;
  text-decoration: underline;
  word-wrap: break-word;
}
.c-externalLink_url::before {
  content: '▶';
  font-size: 10px;
  position: absolute;
  left: 0;
  top: 10px;
}
.c-externalLink_url::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  padding-left: 17px;
  position: relative;
  top: -7px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url('../../images/icon-newWindow_blue.png');
}
.s .c-externalLink_url::after {
  width: 8px;
  height: 8px;
  padding-left: 11px;
  top: -3px;
} */
/* ボタン */
.c-modal_buttonArea {
  display: flex;
  justify-content: center;
  gap: 8px;
}
/* キャンセルボタン */
.modal-lower .c-button.c-modal_cancel_btn,
.modal-counterplan .c-button.c-modal_cancel_btn {
  display: none;
}
.c-modal_cancel_btn {
  border: 2px solid #ccc !important;
  color: #222 !important;
  font-weight: normal !important;
}
.s .c-modal_cancel_btn {
  display: block !important;
}

/******************************/
/* ボタン */
/******************************/
.c-button {
  position: relative;
  display: block;
  text-decoration: none;
  max-width: 168px;
  width: 100%;
  padding: 13px;
  text-align: center;
  font-size: 1.125rem;
  font-weight: bold;
  color: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0px 2px 10px rgba(116, 116, 116, 60%);
  cursor: pointer;
  transition: all 0.4s;
}
.s .c-button {
  max-width: 138px;
  padding: 12px;
  font-size: 1rem;
  border-radius: 6px;
  box-shadow: 0px 2px 10px rgba(116, 116, 116, 16%);
}
.c-button._bg-darkblue:hover {
  background-color: #0c72be !important;
  transition: all 0.4s;
}
.c-button_icon {
  position: absolute;
  top: 15%;
  right: 4%;
  width: 15px;
  height: 10px;
}

/* ハード対策、ソフト対策タグ見た目 */
.c-externalLink_tagArea {
  display: flex;
  gap: 4px;
  align-items: center;
}
.c-externalLink_counterplanTag {
  display: block;
  width: fit-content;
  padding: 3px 8px 4px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #fff;
  text-align: center;
}
/* ハード、ソフト対策タグ モーダル見た目 */
.c-externalLink_regionTag {
  width: fit-content !important;
  max-width: unset !important;
  flex: unset !important;
  width: fit-content;
  /* border: 0.6px solid #666; */
  box-shadow: inset 0 0 0 0.8px #666;
  border-radius: 30px;
  padding: 2px 8px 3px;
  background-color: #fff;
  font-size: 0.75rem;
  color: #333;
}
.c-externalLink_region {
  position: static;
  width: 32%;
  max-width: 268px;
  max-height: 182px;
  padding: 0 0 0 32px;
  z-index: 6;
  overflow-y: auto;
  overscroll-behavior-y: none;
}
.s .c-externalLink_region {
  max-width: 590px;
  max-height: unset;
  width: 100%;
  padding: 0 0 16px;
  overflow-y: unset;
  overscroll-behavior-y: unset;
}
.c-externalLink_regionArea {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 2px !important;
  justify-content: center !important;
  list-style: none !important;
}
.c-externalLink_region p {
  font-size: 0.875rem;
  text-align: center;
  margin-bottom: 12px;
}
.s .c-externalLink_region p {
  font-size: 0.8125rem;
  margin-bottom: 0;
  padding-bottom: 6px;
}

/*******************************/
/* イベントカレンダー　モーダル */
/*******************************/
._modalCalendar .c-modal_cancel_btn {
  margin: 0 auto;
  border: none !important;
  color: #fff !important;
}
.modal-calendar .c-modal_body {
  padding: 0;
  margin: 0;
}

/* ******************************/
/* 地域選択 */
/* ******************************/
.region-popover {
  display: none;
  position: absolute;
  top: 122%;
  right: 4%;
  z-index: 10;
  background: rgb(255, 255, 255);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 12px;
  min-width: 260px;
  width: 589px;
  border-radius: 12px;
  padding: 20px 24px 24px;
}
.c-filter-chips._region-all {
  width: 100%;
  margin-bottom: 8px;
}
/* SPモーダル */
.region-popover_sp {
  padding-top: 23px;
}
/* 地域選択 */
.region-popover .c-filter-chips__chip,
.region-popover_sp .c-filter-chips__chip {
  box-shadow: none;
  border: 1px solid #ccc;
  padding: 5px 14px 4px 10px;
}

/* SP */
.s .region-popover_sp .checkbox-round {
  width: 16px !important;
  height: 16px !important;
  min-width: unset !important;
  min-height: unset !important;
  max-width: unset !important;
  max-height: unset !important;
}
.s .region-popover_sp .c-filter-chips__list {
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.s .region-popover_sp .c-filter-chips__chip {
  width: 160px;
  gap: 6px;
  padding: 12px 16px 13px 16px;
  font-size: 1rem;
  font-weight: normal;
}
.s .region-popover_sp .checkbox-round:checked::after {
  top: 5px;
  left: 4px;
}
.s .region-categoryName {
  font-size: 0.8125rem;
}
.s .region-categoryName:first-child {
  padding-top: 20px;
}

.type-fieldset,
.region-fieldset {
  padding: 0 24px;
}

/* ******************************/
/* 種別のチェックリスト */
/* ******************************/
.type-fieldset .c-filter-chips {
  display: block;
}
.type-fieldset .c-filter-chips__list {
  display: flex;
  flex-direction: column;
}
.type-fieldset .c-filter-chips__list .c-filter-chips__chip {
  width: 100%;
}

/*****************************/
/* 検索結果が0件の場合 */
/*****************************/
.c-no-data-message {
  display: none;
  max-width: 1328px;
  width: 100%;
  height: 400px;
  margin: 32px auto 0;
  padding: 80px 20px;
  text-align: center;
  border: 2px solid #fff;
  border-radius: 40px;
  background-color: rgba(255, 255, 255, 0.2);
}
.s .c-no-data-message {
  max-width: unset;
  width: 100%;
  padding: 40px 26px;
  border-radius: 16px;
}
.c-no-data-message p {
  font-size: 1.5rem;
  color: #222;
}
.s .c-no-data-message p {
  font-size: 1.125rem;
}
