/* ================== 
   イベント一覧専用スタイル
   共通スタイルは /public/assets/css/style.css を参照
   パンくずリストのスタイルは共通CSSに定義済み
   ================== */

/* ==== イベント特有のスタイル ==== */

/* カレンダーアコーディオン */
#calendarContainer {
    display: none;
  width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff !important;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
}

#calendarContainer.active {
    display: block !important;
    animation: slideDown 0.3s ease-out;
}

/* カレンダーラッパー（絞り込みページと同じ） */
#calendarContainer .calendar-wrapper {
    display: flex;
  justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#calendarContainer .calendar-container {
    width: 100%;
    position: relative;
    background: transparent;
    display: block;
    height: auto;
}

/* メインカレンダーコンテナ（max-widthなし） */
#mainCalendarContainer {
    width: 100% !important;
    max-width: none !important;
}

.calendar-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    gap: 20px;
}

.calendar-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 16px;
  cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.calendar-arrow:hover {
    background: #f0f0f0;
    border-color: #999;
}

.month-container {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.month-label {
    font-size: 12px;
    color: #666;
}

.year-label {
  font-size: 24px;
    font-weight: 700;
    color: #333;
}

.month-container span:last-child {
    font-size: 14px;
    color: #666;
}

.calendar-content {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.calendar-content > div {
    flex: 1;
}

.calendar {
  width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
    table-layout: fixed;
}

.calendar th,
.calendar td {
    width: 14.28%;
    height: 48px;
    text-align: center;
    vertical-align: top;
    border: 1px solid #e0e0e0;
    padding: 2px;
    position: relative;
}

.calendar th {
    background: #888;
    color: #000;  /* 平日は黒文字 */
  font-size: 12px;
    font-weight: normal;
    height: 30px;
}

.calendar th.sun {
    background: #e57373 !important;
    color: #fff !important;  /* 日曜は白文字 */
}

.calendar th.sat {
    background: #3b96dd !important;
    color: #fff !important;  /* 土曜は白文字 */
}

.calendar td {
  cursor: pointer;
    transition: background-color 0.3s;
}

.calendar td:hover {
    background-color: #f0f8ff;
}

/* 日付と件数のスタイル */
.date {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 1px;
    color: #1a73e8;
    text-decoration: underline;
}

.date-weekend {
    color: #e74c3c;
}

.price {
    display: inline-block;
    font-size: 9px;
    background: #ededed;
    padding: 0px 4px;
    border-radius: 2px;
    border: 1px solid #d0d0d0;
    color: #424031;
    font-weight: 600;
    line-height: 1.2;
}

.ken {
    font-size: 7px;
    vertical-align: baseline;
}

/* 背景色 */
.sunday-bg {
    background: #ffeaea !important;
}

.saturday-bg {
    background: #eaf3ff !important;
}

.calendar td.has-event {
    background-color: #e8f4fd;
    font-weight: bold;
    color: #175fff;
}

.calendar td.has-event:hover {
    background-color: #d0e8f8;
}

.calendar td.today {
    background-color: #ff7c00 !important;
}

.calendar td.today .date {
    color: white !important;
}

.calendar td.today .price {
    background: white;
    color: #333;
}

.calendar td.past {
    color: #ccc;
    cursor: not-allowed;
}

.calendar td.past:hover {
    background-color: transparent;
}

.empty-cell {
    background: #f5f5f5;
    cursor: default;
}

.empty-cell:hover {
    background: #f5f5f5;
}

/* flexユーティリティクラス（カレンダー用） */
.flex {
    display: flex;
}

.col {
    flex-direction: column;
}

.a-c {
    align-items: center;
}

.a-b {
    align-items: baseline;
}

.j-c {
    justify-content: center;
}

.j-b {
    justify-content: space-between;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .calendar-wrapper {
        padding: 15px;
        margin: 15px 10px;
    }
    
    .calendar-content {
        flex-direction: column;
        gap: 20px;
    }
    
    /* スマホで2つ目のカレンダーを非表示 */
    #calendar2.pc-only {
        display: none !important;
    }
    
    /* スマホで2つ目の月表示を非表示 */
    .month-container.pc-only {
        display: none !important;
    }
    
    .calendar-top {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .month-container {
        font-size: 14px;
        min-width: 80px;
    }
    
    .calendar th,
    .calendar td {
        padding: 8px 5px;
        font-size: 12px;
    }
}

/* ================== blogItem構造のスタイル - Figma Design ================== */
/* PC Layout - Figma Design */
.blogList {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 960px;
  margin: 0 auto;
}

.blogItem {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  margin-bottom: 20px;
}

.blogLink {
  display: flex;
  flex-direction: row;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.blogImg {
  width: 300px;
  height: 230px;
  position: relative;
  background: #f2f2f2;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  border-radius: 0;
}

.blogImg .slider {
  position: relative;
  max-width: 300px;
  height: 200px;
  width: ;
  overflow: hidden;
  border-radius: 0;
}

.blogImg .slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  border-radius: 0;
}

.blogImg .slider img.active {
  opacity: 1;
  z-index: 1;
}

.blogImg .dots {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 3px 125px 2px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 300px;
  height: auto;
  pointer-events: none;
}

.blogImg .dots span {
  width: 10px;
  height: 10px;
  background: #6782ae;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.25;
  pointer-events: auto;
}

.blogImg .dots span.active {
  opacity: 0.75;
}

.blogContent {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding: 12px 0px 0px 20px;
  flex: 1;
  gap: 12px;
}

.blogHeader {
  display: flex;
  flex-direction: row;
  align-self: stretch;
  gap: 20px;
  padding-bottom: 0.75px;
}

.blogTitle {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.36;
  color: #333333;
  margin-bottom: 0;
  flex: 1;
}

.blogDetail {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-shrink: 0;
}

.detailBtn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid #989483;
  border-radius: 20px;
  height: 40px;
  text-decoration: none;
  font-family: 'Hiragino Sans', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.42;
  color: #333333;
  white-space: nowrap;
}

.detailBtn:hover {
  background: rgba(152, 148, 131, 0.1);
}

.blogInfo {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 16px;
  padding-top: 9.25px;
}

.blogTags {
  display: flex;
  flex-direction: row;
  gap: 4px;
}

.tag {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2px;
  padding: 8px;
  background: #dddbd6;
  border-radius: 2.63px;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 0.75;
  text-align: center;
  color: #1c1a10;
}

.blogMeta {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 8px;
}

.metaItem {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.metaLabel {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.36;
  text-transform: uppercase;
  color: #333333;
  min-width: 50px;
}

.metaValue {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.36;
  text-transform: uppercase;
  color: #e94b08;
}

.metaItem:nth-child(2) .metaValue {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.07;
  text-transform: none;
  color: #1c1a10;
}

.companyName {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.07;
  color: #1c1a10;
}

/* Mobile Layout - Figma Design */
@media (max-width: 768px) {
  .blogList {
    display: flex;
    flex-direction: column;
    gap: 8px;
  width: 100%;
    padding: 12px;
  }

  .blogItem {
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
    align-self: stretch;
  width: 100%;
    background: #ffffff;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 8px;
  }

  .blogLink {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
  }

  .blogImg {
    width: 125px;
    height: 125px;
    background: #ebebeb;
    flex-shrink: 0;
    border-radius: 0;
  }

  .blogImg .slider {
    max-width: 125px;
    width: auto;
    height: 125px;
    border-radius: 0;
  }

  .blogImg .slider img {
    border-radius: 0;
  }

  .blogImg .dots {
    display: none;
  }

  .blogContent {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  .blogHeader {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 0;
  }

  .blogTitle {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.36;
    color: #333333;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
  }
  
  .blogTitle:hover {
    color: #175fff;
    text-decoration: underline;
  }

  .blogDetail {
    display: none;
  }

  .blogInfo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 0;
  width: 100%;
    min-width: 0;
  }

  .blogTags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    flex-shrink: 0;
  }

  .tag {
    padding: 4px;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    font-size: 10px;
    line-height: 1.36;
  text-align: center;
    color: #424031;
    height: auto;
    min-height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dddbd6;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .blogMeta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
  }

  .metaItem {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 2px;
  width: 100%;
    min-width: 0;
  }

  .metaItem:last-child {
    display: flex;
    flex-direction: row;
    width: 100%;
  }

  .metaLabel {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    font-size: 10px;
    line-height: 1.36;
  color: #333333;
    min-width: auto;
    flex-shrink: 0;
  }

  .metaValue {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    font-size: 10px;
    line-height: 1.36;
    color: #333333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
  }

  .metaItem:nth-child(2) .metaValue {
    font-weight: 400;
    font-size: 10px;
    line-height: 1.5;
    color: #333333;
  }

  .companyName {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 1.5;
    color: #333333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
  }
}

/* ================== PC用画像スライダー（モデルハウスと同じ構造） ================== */
.card-image-slider {
  position: relative;
  width: 300px;
  height: 230px;  /* モデルハウスと同じ高さに */
  overflow: hidden;
  background: #f5f5f5;
  display: none; /* デフォルトは非表示 */
  border-radius: 0;
}

/* イベント一覧専用のスライダー背景白設定 */
.card-image-slider.event-slider,
.blogItem .card-image-slider {
  background: #fff !important;
}

.card-image-slider .image-wrapper {
  width: 100%;
  height: 200px;  /* 画像エリアは200px */
  position: relative;
  overflow: hidden;
}

.card-image-slider .image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;  /* 画像の高さを200pxに固定 */
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 0;
}

.card-image-slider .image-wrapper img.active {
  opacity: 1;
  z-index: 1;
}

.card-image-slider .dots {
  position: absolute;
  bottom: 7px;  /* モデルハウスと同じ位置 */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.card-image-slider .dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card-image-slider .dots .dot.active {
  background-color: #6782ae;
}

/* PC表示時のスタイル調整 */
@media (min-width: 769px) {
  .blogItem .card-image-slider {
    display: block !important;
  }
  
  .blogItem .blogImg {
    display: none !important;
  }
}

/* 追加のギャップクラス */
.g-12 {
  gap: 12px;
}

/* サイドバー */
header .sideBar {
  margin-bottom: 30px;
}

/* ================== イベント専用コンポーネント ================== */

/* カスタムセレクト */
.select-form {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 30px;
  font-size: 13px;
}

.custom-select-wrapper {
  width: 200px;
  position: relative;
  font-family: sans-serif;
}

.custom-select {
  border: 1px solid #ccc;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-select .arrow {
  font-size: 12px;
  color: #888;
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  border: 1px solid #ccc;
  border-top: none;
  background: white;
  z-index: 1000;
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.custom-options li {
  padding: 10px;
  cursor: pointer;
  border-top: 1px solid #eee;
}

.custom-options li:hover {
  background-color: #f0f0f0;
}

/* 地図表示 */
main .map {
  display: none;
  width: 100%;
  margin-bottom: 30px;
}

main .map img {
  width: 100%;
  height: auto;
}

.map-show {
  display: block !important;
}

/* 絞り込みページ専用スタイル */
.filterArea {
  display: flex !important;
  min-height: 100vh;
}

/* ステータスグループ */
.status-group {
  gap: 4px;
  margin-bottom: 8px;
}

.status {
  padding: 2px 8px;
  background-color: rgba(221, 219, 214, 1);
  color: rgba(28, 26, 16, 1);
  font-size: 14px;
  font-weight: 600;
  border-radius: 3px;
}

.card-info-txt {
  margin-bottom: 8px;
}

.com-name p:nth-of-type(2) {
  font-weight: normal;
  margin-left: 4px;
}

/* 検索ボタングループ */
main .sBtn-group {
  width: max-content;
  gap: 12px;
}

main .searchBtn:hover {
  background-color: rgba(103, 130, 174, 1);
  color: #ffffff;
}

/* フィルターボタン（並び替えボタン） */
.filter-button {
  font-size: 12px;
  font-weight: 600;
  width: 105px;
  height: 32px;
  border: 1px solid #989483;
  border-radius: 16px;
  background-color: #ffffff;
  cursor: pointer !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-sizing: border-box;
  pointer-events: auto !important;
  z-index: 10;
  position: relative;
}

.filter-button:hover {
  background-color: rgba(103, 130, 174, 1);
  color: #ffffff;
}

/* ソートモーダル */
.sortModal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer; /* オーバーレイがクリック可能であることを示す */
}

.sortModal-overlay.show {
  display: flex;
}

.sortModal-box {
  background: white;
  border-radius: 8px;
  padding: 20px;
  min-width: 300px;
  max-width: 90%;
  position: relative;
  cursor: default; /* モーダルボックス内では通常のカーソル */
}

.sortModal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer !important;
  color: #666;
  z-index: 10001;
  pointer-events: auto !important;
  width: 30px;
  height: 30px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.sortModal-close:hover {
  background-color: #f0f0f0;
  border-radius: 50%;
}

.sortModal-header {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

.sortModal-item {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sortModal-item:hover {
  background-color: #f5f5f5;
}

.sortModal-item:last-child {
  border-bottom: none;
}

/* マーカーアイコン */
.marker {
  width: 12px;
  height: auto;
  cursor: pointer;
  transition: all 0.3s ease;
}

.marker path {
  transition: fill 0.3s, stroke 0.3s;
}

.marker circle {
  transition: fill 0.3s;
}

.marker:hover path {
  fill: #ffffff;
}

.marker:hover circle {
  fill: rgba(103, 130, 174, 1);
}

/* いいねボタンアクティブ状態 */
.like-btn-act {
  background-color: #2f689d !important;
  color: #ffffff !important;
}

/* フィルター下部ボタン */
.filter-bottom-btn {
  width: 100%;
  padding-inline: 12.5px;
  padding-block: 12px;
}

.filter-bottom-btn a {
  background-color: #ff7c00;
  width: 365px;
  height: 51px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 4px;
}

/* ソートボタン */
.sort-button {
  padding: 12px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

/* スマホ用ソートモーダル */
@media (max-width: 768px) {
  .sortModal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: flex-end;
    z-index: 999;
  }

  .sortModal-overlay.show {
  display: flex;
  }

  .sortModal-box {
    background-color: white;
    width: 98%;
    border-radius: 12px 12px 0 0;
    padding: 16px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
  }

  .sortModal-header {
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 14px;
    margin-left: 10px;
    border-left: 3px solid rgba(103, 130, 174, 1);
    padding-left: 10px;
  }

  .sortModal-item {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
  display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  .sortModal-item span {
    color: rgba(103, 130, 174, 1);
  }

  .sortModal-item:first-of-type {
    border-top: none;
  }

  .sortModal-close {
  position: absolute;
    bottom: 350px;
    right: 20px;
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    background: none;
    border: none;
  cursor: pointer;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* カレンダー表示機能 */
.calendar-wrapper {
  display: none;
  width: 100%;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

/* 絞り込みページ内のカレンダーは常に表示 */
.filterArea .calendar-wrapper {
  display: flex !important;
  flex-direction: column;
  gap: 20px;
}

.calendar-wrapper.calendar-show {
  display: block;
}

.calendar-top {
  justify-content: space-between;
  margin-bottom: 20px;
}

.calendar-arrow {
  background: none;
  border: 1px solid #ddd;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
}

.calendar-arrow:hover {
  background-color: #f5f5f5;
}

.month-container {
  font-size: 16px;
  font-weight: bold;
}

.calendar-content {
  gap: 20px;
}

.calendar {
  width: 100%;
  border-collapse: collapse;
}

.calendar th,
.calendar td {
  width: 14.28%;
  height: 40px;
  text-align: center;
  vertical-align: middle;
  border: 1px solid #eee;
}

/* 重複したカレンダーヘッダースタイル削除 - 上部で定義済み */

.calendar-day {
  cursor: pointer;
  transition: background-color 0.2s;
}

.calendar-day:hover {
  background-color: #e9ecef;
}

.calendar-day.today {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}

.calendar-day.has-event {
  background-color: #28a745;
  color: white;
}

.empty-cell {
  background-color: #f8f9fa;
}

/* 地図表示機能 */
.mapArea_size01 {
  display: none;
  width: 100%;
  margin-bottom: 20px;
}

.mapArea_size01.map-show {
  display: block;
}

/* カレンダーモーダル（旧） - 削除済み */
/* 新しいアコーディオン式カレンダーを使用 */

.calendar-box {
  background: white;
  border-radius: 8px;
  padding: 20px;
  min-width: 400px;
  max-width: 90%;
  position: relative;
}

.calendar-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer !important;
  color: #666;
  z-index: 10001;
  pointer-events: auto !important;
  width: 30px;
  height: 30px;
  display: flex !important;
  align-items: center;
    justify-content: center;
  }

.calendar-close:hover {
  background-color: #f0f0f0;
  border-radius: 50%;
}

.calendar-header {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

/* ================== イベント用カードスタイル ================== */

/* イベント日付表示 */
.event-date {
  background-color: #f8f9fa;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

/* イベントカテゴリ */
.event-category {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.event-category.seminar {
  background-color: #28a745;
}

.event-category.tour {
  background-color: #ffc107;
  color: #333;
}

.event-category.consultation {
  background-color: #dc3545;
}

/* 詳しく見るボタン */
.detail-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.detail-btn:hover {
  background-color: #0056b3;
}

/* イベント予約ボタン */
.event-reserve-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.event-reserve-btn:hover {
  background-color: #0056b3;
}

/* イベント詳細情報 */
.event-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.event-time {
  color: #666;
  font-size: 14px;
  margin-bottom: 4px;
}

.event-location {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
}

/* イベント情報の調整 */
.cardG .card .event-info {
    margin: 12px 0;
}

.cardG .card .event-info p {
    font-size: 14px;
    color: #666;
}

.cardG .card .event-info .date {
    font-size: 18px;
    font-weight: bold;
    color: #E94B08;
    margin-left: 8px;
}

.cardG .card .event-info .time {
    font-size: 14px;
    font-weight: normal;
}

/* 開催地情報 */
.cardG .card .location-info {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.cardG .card .location-info p {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cardG .card .location-info p span {
    color: #333;
    font-weight: 500;
}

/* ステータスグループ */
.cardG .card .status-group {
    gap: 4px;
    margin-bottom: 8px;
}

/* ステータスバッジ - サンプルと同じデザイン */
.cardG .card .status-group .status {
    display: inline-block;
    padding: 2px 8px;
    background-color: rgba(221, 219, 214, 1);
    color: rgba(28, 26, 16, 1);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 0;
}

/* カード全体の調整 - PCは元のデザイン維持 */
main .cardG .card {
    background-color: #ffffff;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

/* PC/モバイル表示切り替え */
.pc-only {
    display: block;
}

.mobile-only {
    display: none;
  }

/* PC表示の調整 */
@media (min-width: 769px) {    
    .cardG .card .card-content {
        padding-left: 20px;
        flex: 1;
    }
    
    .cardG .card .card-image-slider {
        display: block !important;
        width: 280px;
        height: 200px;
        flex-shrink: 0;
    }
    
    /* スマホ用画像を非表示 */
    .cardG .card .cardImgG {
        display: none !important;
    }
}

/* レスポンシブ対応 - スマホ表示（works-archiveと完全同一） */
@media (max-width: 768px) {
    /* スマホ時のカード全体スタイル */
    main .cardG .card {
        background-color: #ffffff !important;
        border-radius: 0 !important;
        margin-bottom: 8px;
        box-shadow: 0px 1.5px 8.5px 0px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        width: 100%;
        padding: 0;
    }
        
    /* PC用スライダーを非表示 */
    .cardG .card .card-image-slider {
    display: none;
  }
    
    /* スマホ用画像を表示 */
    .cardImgG {
        display: flex !important;
        width: 100%;
        gap: 0 !important;
    }
    
    /* コンテンツエリアの調整は共通CSSを使用 */
    
    .cardG .card .card-contentT {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* 開催地情報の調整 */
    .cardG .card .location-info {
    flex-direction: column;
        gap: 8px;
        padding-top: 8px;
    }
    
    .cardG .card .location-info p {
        font-size: 13px;
    }
    
    /* イベント情報の調整 */
    .cardG .card .event-info {
    margin: 0;
    }
    
    .cardG .card .event-info .date {
  font-size: 16px;
    }
    
    /* チェックボックスエリアの調整 */
    .cardG .card .cardTop {
        padding: 12px 16px;
    }
    
    /* topRのスマホ用スタイル - works-archiveと同一 */
    main .cardG .topR {
  position: absolute;
  top: 50%;
        right: 15px;
  transform: translateY(-50%);
        z-index: 10;
        background: none;
        border: none;
        padding: 0;
        width: 17px;
        height: 20px;
    }
    
    /* PC/モバイル表示切り替え */
    .pc-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .cardG .card .event-info .mobile-only {
        display: flex !important;
        flex-direction: column;
        gap: 4px;
    }

    /* カレンダーボックスのスマホ対応 */
    .calendar-box {
        min-width: 300px;
        padding: 15px;
    }
    
    .event-category {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .event-reserve-btn {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* お気に入りアイコンのスタイル（イベント用） */
.favorite-icon {
  width: 17px;
  height: 20px;
  transition: all 0.2s ease;
}

.favorite-btn:hover .favorite-icon {
  transform: scale(1.1);
}

/* 地図エリアのアコーディオン表示 */
.mapArea_size01 {
    display: none;
    transition: all 0.3s ease;
  }

.mapArea_size01.show {
    display: block;
  }

/* 地図から探すボタン（モバイル） */
@media (max-width: 768px) {
    .searchBtn.mobile-only {
        font-size: 12px;
        font-weight: 600;
        width: 125px;
        height: 32px;
        border: 1px solid #989483;
        border-radius: 16px;
        background-color: #ffffff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        box-sizing: border-box;
        margin: 0 4px;
    }
    
    .searchBtn.mobile-only .marker {
        width: 12px;
    height: auto;
  }
    
    .searchBtn.mobile-only p {
        margin: 0;
    font-size: 12px;
        font-weight: 600;
    }
    
    .searchBtn.mobile-only:hover {
        background-color: rgba(103, 130, 174, 1);
        color: #ffffff;
    }
    
    /* カスタムセレクトのスマホ対応 */
    .custom-select-wrapper {
        position: relative;
        z-index: 1001;
    }
    
    .custom-options {
        z-index: 1002 !important;
        max-height: 200px;
        overflow-y: auto;
    }
    
    .custom-options li {
        padding: 12px 10px;
        font-size: 14px;
    }
}

/* ================== メディアクエリ（イベント特有） ================== */
@media (max-width: 965px) {
  /* イベント情報を縦並びに */
  main .cardG .card .card-info-txt {
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  main .cardG .card .card-info-txt p {
    width: 100% !important;
  }
  
  .event-info {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  
  .event-date {
    margin-bottom: 8px;
  }
}

@media (max-width: 768px) {
  /* イベント情報を縦並びに */
  main .cardG .card .card-info-txt {
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  main .cardG .card .card-info-txt p {
    width: 100% !important;
  }
  
  .select-form {
    display: none;
  }

  /* スマホでのイベント表示調整 */
  .event-details {
    padding-top: 8px;
    margin-top: 8px;
  }
  
  .event-time,
  .event-location {
    font-size: 13px;
  }
}

/* ================== フィルター関連の追加スタイル ================== */

/* フィルター検索タイトル */
#filterContent .filter-searchT {
  text-align: center;
  margin: 30px 0;
}

#filterContent .filter-searchT p:first-child {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333333;
}

#filterContent .filter-searchT p:last-child {
  font-size: 16px;
  color: #666;
}

/* 検索タイトル（フィルターエリア内） */
main .searchT {
  font-size: 18px;
  font-weight: 600;
  width: 100%;
}

main .searchT p:nth-of-type(1) {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 45px;
}

main .searchT p:nth-of-type(1)::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: #6782ae;
  top: 38px;
}

/* トグルボタン */
.toggle-button {
  cursor: pointer;
  background: none;
  border: none;
  color: #175fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.toggle-icon {
  font-size: 12px;
  transition: transform 0.3s ease;
}

/* rotateクラスは共通CSSを使用 */

.toggle-section-wrapper {
  overflow: hidden;
  transition: max-height 0.3s ease;
  max-height: 0;
  width: 100%;
}

.toggle-section {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
}

.toggle-section-wrapper.acodian-show {
  max-height: 200px; /* Adjust depending on content */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  main .filterArea .searchT {
    display: none;
  }
  
  main .spN {
    display: none;
  }
  
  main #filterForm {
    border: none;
  }
  
  main .filterArea .container {
    background-color: rgba(28, 26, 16, 0.8);
    padding-top: 52px;
    position: relative;
    margin-bottom: 15px;
  }
  
  .rangeBar .sectionT {
    margin-bottom: 45px;
  }
}

@media (max-width: 700px) {
  .toggle-section {
    gap: 8px 10px;
  }
}

/* ================== PC・スマホ表示切り替え（イベント情報用） ================== */
.event-info .pc-only {
  display: block;
}

.event-info .mobile-only {
    display: none;
  }

/* 開催地情報のスタイル */
.location-info p {
  color: #666;
  font-size: 14px;
}

.location-info span {
  color: #333;
  font-weight: 500;
}

/* スマホ表示時 */
@media (max-width: 768px) {
  .event-info .pc-only {
    display: none;
  }
  
  .event-info .mobile-only {
    display: block;
  }
  
  .event-info .mobile-only p {
    margin-bottom: 8px;
  }
}

.blogTags .status {
  display: inline-block;
  padding: 2px 8px;
  background-color: rgba(221, 219, 214, 1);
  color: rgba(28, 26, 16, 1);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 0;
}

@media (max-width: 768px) {
  .blogTags .status {
  font-size: 12px;
  }
}
#mapArea {
  width: 100%;
  height: 500px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  #mapArea {
    height: 400px;
    height: min(400px, 70svh);
    margin-bottom: 10px;
  }
}
