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

.post-feedback {
  margin-top: 1.5em;
  padding: 1em;
  border-top: 1px solid #ddd;
  font-size: 0.95em;
}
.post-feedback p {
  margin-bottom: 0.75em;
  font-weight: bold;
}
.post-feedback button {
  margin-right: 0.5em;
  padding: 0.4em 0.8em;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f8f8f8;
  cursor: pointer;
}
.post-feedback button:hover {
  background: #eaeaea;
}

/* === フィルム風ブログカード（下余白カット版）=== */
.film-card {
  position: relative;
  background: #f9f7f3;
  border-radius: 4px;
  padding: 0.15em 0.8em 0.25em; /* ← 上0.15em, 下0.25em にして下を短く */
  margin: 0.8em auto;
  max-width: 80%;
  transform: scale(0.93);
  transform-origin: center center;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: visible;
}

/* 🎞 黒縁 */
.film-side {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 20px;
  background: #000;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.film-side.left { left: -22px; }
.film-side.right { right: -22px; }

/* 🎞 白い穴（穴バランスはそのまま維持） */
.film-side::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background: #fff;
  margin: 3px 0;
  border-radius: 2px;
  box-shadow:
    0 18px #fff,
    0 36px #fff,
    0 54px #fff,
    0 72px #fff,
    0 90px #fff,
    0 108px #fff,
    0 126px #fff,
    0 144px #fff,
    0 162px #fff,
    0 180px #fff;
  z-index: 3;
}

/* 🔄 傾き＋hover */
.film-card:nth-child(odd) { transform: scale(0.93) rotate(-2.5deg); }
.film-card:nth-child(even) { transform: scale(0.93) rotate(2.5deg); }
.film-card:hover {
  transform: scale(0.98) rotate(0deg);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

/* Cocoonブログカード内部の中央寄せ */
.film-card .blogcard {
  border: none !important;
  background: transparent !important;
  position: relative;
  z-index: 1;
  transform: scale(0.88);
  transform-origin: center top; /* ← 上端基準にして上に寄せる */
  margin: 0 auto;
  padding-top: 0.1em;   /* ← 上に少し余裕 */
  padding-bottom: 0;    /* ← 下余白を完全にカット */
}
