@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){
  /*必要ならばここにコードを書く*/
}

/* 共通スタイル */
.focus-posts {
    display: flex;
    gap: 20px; /* 記事間のスペース */
}

.focus-post {
    display: block;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.focus-post:hover {
    background: #eaeaea;
    transform: translateY(-5px); /* マウスオーバー時の動き */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.focus-post .post-title {
    font-weight: bold;
    font-size: 16px;
    margin: 0;
}

/*固定ページの日付非表示*/

.page .date-tags {
display: none;
}

/* ===============================
   投稿本文画像クリックでふわっと拡大（スマホ控えめ・PC強め）
   =============================== */
.image-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.image-zoom-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* 画像の共通スタイル */
.image-zoom-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.9); /* 初期は少し小さめ */
  transition: transform 0.4s ease; /* ふわっと感を少しゆっくりに */
}

/* スマホ：控えめな拡大 */
.image-zoom-overlay.active img {
  transform: scale(1.03);
}

/* PC（768px以上）：もう少し拡大 */
@media (min-width: 768px) {
  .image-zoom-overlay.active img {
    transform: scale(1.05);
  }
}

.single .entry-content img {
  cursor: zoom-in;
}
