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

/************************************
** 追加内容
************************************/

/* ==============================
 ads 一覧（details）ランキング風
============================== */
.ads-heading {
  border-left: 6px solid #ff5722;
  background: #fff3e0;
  padding: 12px 15px;
  margin: 20px 0 10px;
  font-weight: bold;
  font-size: 16px;
}

.ads-ranking-box {
  border: 1px solid #ddd;
  padding: 12px;
  margin: 10px 0 20px;
  border-radius: 6px;
  background: #fff;
}

.entry-content details.ads-item {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 12px 0;
  background: #fff;
}

/* summary 行 */
.entry-content details.ads-item > summary {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  cursor: pointer;
  list-style: none;
}

/* 三角アイコン消す（Chrome） */
.entry-content details.ads-item > summary::-webkit-details-marker {
  display: none;
}

/* キャッチコピー（左） */
.entry-content details.ads-item > summary {
  font-weight: 600;
}

/* 詳細ボタン（右端固定） */
.entry-content .ads-detail-btn {
  margin-left: auto;
  padding: 4px 10px;
  border: 1px solid #FFF;
  border-radius: 4px;
  background: #2b6cb0;
  font-size: 13px;
  white-space: nowrap;
}

/* hover */
.entry-content .ads-detail-btn:hover {
  background: #1f4f86; /* ← 色だけ調整（見やすく） */
}

/* 展開部分 */
.entry-content .ads-detail {
  padding: 14px 16px;
  border-top: 1px solid #ddd;
}

/* ボタン本体 */
.ads-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 60px;
  padding: 6px 14px;

  font-size: 13px;
  font-weight: 600;

  background: #f1f1f1;
  border: 1px solid #ccc;
  border-radius: 4px;

  color: transparent;        /* 元文字は見せない */
  position: relative;
  white-space: nowrap;
}

/* 表示文字（疑似要素） */
.ads-detail-btn::after {
  content: "詳細";
  color: #fff;  /* ← 文字色を白に変更 */
  position: absolute;
}

/* hover時の文字色も維持 */
.ads-detail-btn:hover::after {
  color: #fff;
}

/* open時 */
.ads-item[open] .ads-detail-btn::after {
  content: "閉じる";
  color: #fff;
}

.ads-ranking-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* 左：バナー */
.ads-ranking-left {
  flex: 0 0 300px;
}

/* 右：PRエリア */
.ads-ranking-right {
  flex: 1;
}

/* PRテキスト崩れ防止 */
.ads-pr-text {
  line-height: 1.6;
}

/* 画像ブロック余白リセット */
.ads-ranking-left img {
  display: block;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .ads-ranking-box {
    flex-direction: column;
  }

  .ads-ranking-left {
    flex: none;
  }
}

.ads-heading {
  font-size: 20px;
  font-weight: 700;
  margin: 10px 0 12px;
  line-height: 1.4;
}

.ads-section {
  background: linear-gradient(90deg, #ff9800, #ff5722);
  color: #fff;
  padding: 14px 18px;
  margin: 35px 0 20px;
  border-radius: 8px;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* 共通 おみくじ紙 */
.fake-h2 {
  font-size: 1.5em;
  font-weight: bold;
  padding: 0.6em 0.8em;
  margin: 2em 0 1em;
  border-left: 6px solid #c9a227;
  background: #fff8e1;
}

.omikuji-result {
  max-width: 600px;
  margin: 30px auto;
  padding: 30px;
  text-align: center;

  background: #fffdf5;
  border: 2px solid #d8c080;

  box-shadow: 0 5px 20px rgba(0,0,0,.15);
}


/* 運勢文字 */
.omikuji-fortune {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 25px;
  letter-spacing: .3em;
}


/* 🌸大吉 */
.fortune-大吉 .omikuji-fortune {

  color: #c40000;

  text-shadow:
  0 0 8px gold;

}


/* 吉・中吉 */
.fortune-吉 .omikuji-fortune,
.fortune-中吉 .omikuji-fortune {

  color: #b8860b;

}


/* 小吉・末吉 */
.fortune-小吉 .omikuji-fortune,
.fortune-末吉 .omikuji-fortune {

  color: #555;

}


/* 凶 */
.fortune-凶 {

  background:#f5f5f5;

}

.fortune-凶 .omikuji-fortune {

  color:#222;

}

/* =========================
   参拝画像ボタン
========================= */

#sanpaiButton {
  display: block;

  width: 100%;
  max-width: 100%;   /* 好きな幅に調整 */
  margin: 25px auto;

  padding: 0;

  background: transparent;
  border: none;
  box-shadow: none;

  cursor: pointer;
  line-height: 0;
}

#sanpaiButton img {
  display: block;
  width: 100%;
  height: auto;

  border-radius: 8px;

  transition:
    transform .2s ease,
    filter .2s ease,
    box-shadow .2s ease;

  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

#sanpaiButton:hover img {
  transform: scale(1.01);
  filter: brightness(1.05);
}

#sanpaiButton:active img {
  transform: scale(.99);
}

#sanpaiButton:disabled {
  opacity: .7;
  cursor: not-allowed;
}

#sanpaiButton:disabled img {
  filter: grayscale(.3);
}

/* 開運の参道・おみくじ導線 */
.glab-fortune-link {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #ead7a5;
  border-radius: 8px;
  background: #fffaf0;
  text-align: center;
}

.glab-fortune-link__text {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #5f5132;
}

.glab-fortune-link__button {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  background: #8a6f2a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.4;
}

.glab-fortune-link__button:hover {
  opacity: 0.88;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 600px) {
  .glab-fortune-link {
    margin: 16px 0;
    padding: 12px;
  }

  .glab-fortune-link__button {
    display: block;
    width: 100%;
  }
}

/* おみくじ*/
.omikuji-image-btn{
    display:block;
    width:100%;
    max-width:900px;     /* PCで大きすぎないように */
    margin:20px auto;
    cursor:pointer;
    transition:.25s;
}

.omikuji-image-btn:hover{
    transform:scale(1.02);
    filter:brightness(1.08);
    box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.omikuji-image-btn:active{
    transform:scale(0.98);
}

@media (max-width:768px){
    .omikuji-image-btn{
        max-width:100%;
    }
}
/* 本日2回目以降の案内 */
.omikuji-repeat-message {
  margin: 20px 0;
  padding: 16px;
  border: 2px solid #d6b25e;
  border-radius: 10px;
  background: #fff8e6;
  color: #7a4b00;
  text-align: center;
  font-weight: 700;
  line-height: 1.8;
}

.omikuji-repeat-message p {
  margin: 5px 0;
}

/* 読み込みエラー */
.omikuji-error {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #c62828;
  border-radius: 8px;
  background: #fff5f5;
  color: #a00000;
  text-align: center;
}