@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* ---- リセット & ラッパー ---- */
#slide-imagemap-wrap {
  position: relative;
  width: 100%;
  /* width: 100vw;
  margin-left: calc(50% - 50vw); */   /* 全幅化（コンテナ幅リセット） */
  overflow: hidden;
  background: #000;
  user-select: none;
}

/* ---- スライダー本体 ---- */
.sim-slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* ---- 各スライド ---- */
.sim-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
}
.sim-slide img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none; /* SVGオーバーレイが受け取る */
}

/* ---- SVGオーバーレイ（JSで生成） ---- */
.sim-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.sim-area {
  fill: rgba(255,255,255,0.08);
  stroke: rgba(255,255,255,0.6);
  stroke-width: 1.5;
  cursor: pointer;
  transition: fill 0.2s;
  vector-effect: non-scaling-stroke;
}
.sim-area:hover,
.sim-area:focus {
  fill: rgba(255,255,255,0.25);
  outline: none;
}

/* ---- ナビゲーション ---- */
.sim-nav {
  position: absolute;
  bottom: 16px;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
  z-index: 10;
}
.sim-prev,
.sim-next {
  pointer-events: all;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.sim-prev:hover,
.sim-next:hover { background: rgba(0,0,0,0.75); }

.sim-dots {
  display: flex;
  gap: 8px;
  pointer-events: all;
}
.sim-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.sim-dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* ---- ツールチップ ---- */
.sim-tooltip {
  position: fixed;
  background: rgba(0,0,0,0.78);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  padding: 5px 10px;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 9999;
}
.sim-tooltip.is-visible { opacity: 1; }
