@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;
}

/* ==================================================
 * ジーラボ スマートフォン共通ナビゲーション
 * 対象: max-width 1199px
 * ================================================== */
.ak-mobile-menu-toggle,
.ak-mobile-drawer,
.ak-mobile-footer{display:none}

@media (max-width:1199px){
  body.ak-mobile-drawer-open{overflow:hidden}
  .ak-mobile-menu-toggle{position:fixed;top:12px;right:12px;z-index:10040;display:flex;box-sizing:border-box;width:50px;height:50px;align-items:center;justify-content:center;margin:0;padding:9px;border:1px solid rgba(255,255,255,.28);border-radius:8px;color:#fff;background:rgba(4,10,22,.72);box-shadow:0 4px 16px rgba(0,0,0,.35);cursor:pointer}
  .ak-mobile-menu-lines{display:flex;width:31px;height:23px;flex-direction:column;align-items:center;justify-content:center;gap:7px}
  .ak-mobile-menu-lines>span{display:block;width:31px;height:3px;flex:0 0 3px;border-radius:4px;background:#fff}
  .ak-mobile-drawer{position:fixed;z-index:10050;inset:0;display:block;visibility:hidden;pointer-events:none}
  .ak-mobile-drawer.is-open{visibility:visible;pointer-events:auto}
  .ak-mobile-drawer__backdrop{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:0;background:rgba(3,8,18,.66);opacity:0;transition:opacity .2s ease}
  .ak-mobile-drawer.is-open .ak-mobile-drawer__backdrop{opacity:1}
  .ak-mobile-drawer__panel{position:absolute;top:0;right:0;width:min(82vw,320px);height:100%;overflow-y:auto;color:#fff;background:rgba(4,10,22,.98);box-shadow:-12px 0 28px rgba(0,0,0,.45);transform:translateX(105%);transition:transform .22s ease;overscroll-behavior:contain}
  .ak-mobile-drawer.is-open .ak-mobile-drawer__panel{transform:translateX(0)}
  .ak-mobile-drawer__title{display:flex;min-height:76px;align-items:center;justify-content:space-between;padding:12px 14px 12px 18px;border-bottom:1px solid rgba(68,151,222,.48);background:linear-gradient(90deg,#0b4c80,#062849)}
  .ak-mobile-drawer__title h2{margin:0;padding:0;border:0;color:#fff;background:transparent;box-shadow:none;font-size:16px;line-height:1.2}
  .ak-mobile-drawer__title button{display:grid;width:40px;height:40px;place-items:center;margin:0;padding:0;border:1px solid rgba(255,255,255,.2);border-radius:50%;color:#fff;background:#17263b;font-size:24px;line-height:1;cursor:pointer}
  .ak-mobile-drawer__nav{display:grid;width:100%;padding:0 18px 22px}
  .ak-mobile-drawer__nav>a,.ak-mobile-drawer__nav>button{display:flex;box-sizing:border-box;width:100%;min-height:52px;align-items:center;margin:0;padding:0 12px;border:0;border-bottom:1px solid rgba(255,255,255,.12);border-radius:0;color:#fff;background:transparent;font:inherit;font-size:14px;font-weight:700;line-height:1.2;text-align:left;text-decoration:none;cursor:pointer}
  .ak-mobile-drawer__nav>a:hover,.ak-mobile-drawer__nav>a:focus-visible,.ak-mobile-drawer__nav>button:hover,.ak-mobile-drawer__nav>button:focus-visible,.ak-mobile-drawer__nav>[aria-current="page"]{background:linear-gradient(180deg,#126fae,#07528e)}
  .ak-mobile-footer{position:fixed!important;z-index:10020;right:0!important;bottom:0!important;left:0!important;margin:0!important;transform:none!important;display:grid;height:calc(58px + env(safe-area-inset-bottom));gap:4px;padding:4px 4px calc(4px + env(safe-area-inset-bottom));border-top:1px solid #334a67;background:#07182b;box-shadow:0 -3px 12px rgba(0,0,0,.28)}
  .ak-mobile-footer[data-count="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ak-mobile-footer[data-count="5"]{grid-template-columns:repeat(5,minmax(0,1fr))}
  .ak-mobile-footer>a,.ak-mobile-footer>button{display:flex;box-sizing:border-box;min-width:0;height:50px;align-items:center;justify-content:center;flex-direction:column;gap:2px;margin:0;padding:3px 1px;border:1px solid #526b8a;border-radius:6px;color:#fff;background:linear-gradient(180deg,#243b5a 0%,#142a46 100%);font:inherit;font-size:15px;font-weight:700;line-height:1.05;text-align:center;text-decoration:none;text-shadow:0 1px 1px rgba(0,0,0,.35);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);overflow:hidden;cursor:pointer}
  .ak-mobile-footer>a:active,.ak-mobile-footer>button:active{border-color:#66b9ed;background:linear-gradient(180deg,#167dbb 0%,#07558d 100%)}
  .ak-mobile-footer>br{display:none}
  .ak-mobile-footer__icon{display:flex;width:20px;height:20px;align-items:center;justify-content:center;font-size:18px;font-weight:800;line-height:1}
  .ak-mobile-footer__icon--note{border-radius:4px;color:#07101f;background:#fff;font-family:Arial,sans-serif;font-size:15px}
  .ak-mobile-footer__label{font-size:15px;font-weight:700;line-height:1.05;white-space:normal;overflow-wrap:nowrap}
  .ak-mobile-footer[data-count="5"] .ak-mobile-footer__label{font-size:clamp(12px,3.4vw,14px)}
  .ak-mobile-footer__menu-lines{display:flex;width:20px;height:18px;flex-direction:column;align-items:center;justify-content:center;gap:3px}
  .ak-mobile-footer__menu-lines>span{display:block;width:18px;height:2px;border-radius:2px;background:#fff}
}
