@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){
  /*必要ならばここにコードを書く*/
}
/* カテゴリーページ上部の画像ナビ */
.category-image-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0 40px;
}

.category-image-item {
  position: relative;
  width: 600px;
}

.category-image-item img {
  display: block;
  width: 100%;
  height: auto;
}

/* クリックポイント全体 */
.image-point {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-decoration: none;
  z-index: 10;
}
/* 1個目の●の位置 */
.point-1 {
  left: 50%;
  top: 50%;
}

/* 2個目の●の位置 */
.point-2 {
  left: 60%;
  top: 30%;
}

/* 3個目の●の位置 */
.point-3 {
  left: 40%;
  top: 60%;
}

/* ４個目の●の位置 */
.point-4 {
  left: 75%;
  top: 50%;
}

}
/* 5個目の●の位置 */
.point-5 {
  left: 60%;
  top: 90%;
}


/* ● */
.point-dot {
  display: block;
  width: 20px;
  height: 20px;
  background: #111;
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: pointer;
}

/* 記事名 */
.point-title {
  display: none;
  position: absolute;

  left: 28px;
  top: 50%;
  transform: translateY(-50%);

  width: max-content;
  max-width: 220px;

  background: rgba(0, 0, 0, 0.8);
  color: #fff;

  padding: 6px 10px;
  border-radius: 4px;

  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
}

/* ●に記事名を表示 */
.image-point .point-title {
  display: block;
}

/* point5の位置調整 */
.image-point.point-5 .point-title {
  margin-top: -25px;
}

/* 右端の●はタイトルを左側に表示 */
.image-point.title-left .point-title {
    left: auto;
    right: 28px;
    transform: translateY(-50%);
}

/* タイトルを上側に表示 */
.image-point.title-top .point-title {
  left: 50%;
  top: auto;
  bottom: 28px;
  transform: translateX(-50%);
}

/* タイトルを下側に表示 */
.image-point.title-bottom .point-title {
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
}