@charset "UTF-8";

/*----------------------------------------------------------
厨房機器活用セミナー（/cl-seminar-list/）
※共通スタイルは coin-seminar-list.css を流用し、
　このファイルには厨房機器版の差分のみを定義する。

=開催内容マルチセレクト(.csl-selectm)
=エリア入力(.csl-area-input)
=地図(.csl-map)

=スマホ(780px以下)
-------------------------------------------------------------*/

/* =エリア入力(.csl-area-input)
-------------------------------------------------------------*/
.csl-area-input {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 480px;
  max-width: 100%;
  height: 40px;
  padding: 8px 12px 8px 16px;
  border: 1px solid #8F99B2;
  border-radius: 4px;
  background: #FFF;
}

.csl-area-input input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-size: 14px;
  color: #505564;
  outline: none;
}

.csl-area-input input::placeholder {
  color: #8F99B2;
}

.csl-area-input-btn {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 0;
}

/* =地図(.csl-map)
-------------------------------------------------------------*/
.csl-map {
  position: relative;
  margin-bottom: 40px;
  height: 360px;
  border: 4px solid #FFF;
  overflow: hidden;
  background: #E8EAED;
}

/* Google Maps 描画エリア */
.csl-map-canvas {
  width: 100%;
  height: 100%;
}

/* 地図上のカスタム吹き出し（Google標準のInfoWindowは使わずデザインに合わせる）
   ・基準点＝ピンの座標。そこから上へ出し、下向きの三角がピンを指す */
.csl-map-overlay {
  position: absolute;
  transform: translate(-50%, -100%);
  /* 三角の先端（吹き出しの下端 +19px）がマーカーの頭に触れる位置まで持ち上げる。
     40px＝Google標準マーカーの高さ（anchorPoint と同じ基準） */
  margin-top: -59px;
  line-height: 1.6;
}

/* ※オーバーレイは地図(Googleのpane)直下に描画され .csl-area の外に出るため、
   共通で当てている box-sizing がここには効かない。個別に指定する */
.csl-map-overlay,
.csl-map-overlay *,
.csl-map-overlay *:before,
.csl-map-overlay *:after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

/* オーバーレイ内では位置指定を解除（静止画フォールバック用の指定を打ち消す） */
.csl-map-overlay .csl-map-popup {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  max-width: none;
}

/* 吹き出し内も reset.css のクリアフィックス疑似要素を無効化
   ※.csl-map-popup 自身の :after は三角なので対象外 */
.csl-map-popup > p:after,
.csl-map-popup dt:after,
.csl-map-popup dd:after,
.csl-map-popup-list:after,
.csl-map-popup-list li:after,
.csl-map-popup-item-date:after {
  display: none;
}

/* APIキー未設定時のフォールバック画像 */
.csl-map-bg img {
  display: block;
  width: 100%;
  height: 352px;
  -o-object-fit: cover;
     object-fit: cover;
}

/* 情報ポップアップ（フォールバック静止画用） */
.csl-map-popup {
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  width: 335px;
  max-width: calc(100% - 40px);
  padding: 16px;
  background: #FFF;
  -webkit-filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.2));
          filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.2));
}

/* 吹き出しの下向き三角 */
.csl-map-popup:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -19px;
  transform: translateX(-50%);
  border: 20px solid transparent;
  border-top-color: #FFF;
  border-bottom: 0;
  border-left-width: 20px;
  border-right-width: 20px;
}

.csl-map-popup-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 2px solid #FFF;
  border-radius: 50%;
  background: #505564;
  cursor: pointer;
}

.csl-map-popup-close span {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.csl-map-popup-close span:before,
.csl-map-popup-close span:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: #FFF;
  transform: translate(-50%, -50%) rotate(45deg);
}

.csl-map-popup-close span:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.csl-map-popup-title {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  color: #505564;
}

.csl-map-popup .csl-unit-line {
  margin: 8px 0;
}

/* --- 同じ会場に複数セミナー（複数日程）がある場合の吹き出し --- */
/* 会場（見出し） */
.csl-map-popup-place {
  font-size: 15px;
  font-weight: bold;
  line-height: 1.4;
  color: #505564;
  padding-bottom: 8px;
  border-bottom: 1px solid #BAC0CF;
}

/* セミナーの一覧（多い時はスクロール） */
/* 会場に複数のセミナーがあるときのリスト。
   地図からはみ出さないよう、JS が地図の高さに応じて max-height を上書きする */
.csl-map-popup-list {
  max-height: 260px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  list-style: none;
}

.csl-map-popup-item {
  padding: 12px 0;
}

.csl-map-popup-item + .csl-map-popup-item {
  border-top: 1px solid #E4E7EF;
}

.csl-map-popup-item-title {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.4;
  color: #505564;
}

.csl-map-popup-item-date {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: #505564;
}

.csl-map-popup-item-date span {
  flex-shrink: 0;
  font-weight: bold;
  color: #005AAA;
}

.csl-map-popup-meta > div {
  display: flex;
  gap: 4px;
  font-size: 13px;
  line-height: 1.4;
}

.csl-map-popup-meta > div + div {
  margin-top: 8px;
}

/* 「開催日時」「会場」で値の開始位置を揃える */
.csl-map-popup-meta dt {
  flex-shrink: 0;
  width: 56px;
  font-weight: bold;
  color: #005AAA;
}

.csl-map-popup-meta dd {
  color: #505564;
}

.csl-map-popup-btn {
  margin-top: 8px;
  text-align: center;
}

.csl-map-popup-btn a {
  display: inline-block;
  position: relative;
  width: 170px;
  padding: 8px 0;
  border-radius: 100vw;
  background: #FF4F25;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  line-height: 1;
  color: #FFF;
  transition: 0.2s;
}

.csl-map-popup-btn a:hover {
  opacity: 0.8;
}

.csl-map-popup-btn a:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 6px;
  height: 6px;
  border-top: 2px solid #FFF;
  border-right: 2px solid #FFF;
  transform: translateY(-50%) rotate(45deg);
}

/* =スマホ(780px以下)
-------------------------------------------------------------*/
@media screen and (max-width: 780px) {


  .csl-area-input {
    width: 100%;
    height: 42px;
    padding-left: 12px;
  }

  .csl-map {
    margin-bottom: 24px;
    height: 280px;
  }

  .csl-map-bg img {
    height: 272px;
  }

  .csl-map-popup {
    top: 24px;
  }

  /* 地図が狭く、335px のままだと閉じるボタン（枠外に12pxはみ出す）が
     .csl-map の overflow:hidden に切られるため縮める */
  .csl-map-overlay .csl-map-popup {
    width: calc(100vw - 88px);
    max-width: 335px;
  }
}

/* スマホここまで */
