@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/* カテゴリーページの記事一覧を非表示 */
.archive.category .main .entry-card-wrap {
    display: none;
}
/*カテゴリーページの記事一覧を非表示にしたことで表示される404メッセージを非表示*/
.posts-not-found {
	display: none !important;
}
/* カテゴリーページのタイトルを非表示にする */
.archive-title {
    display: none;
}
/* カテゴリーページの記事型の投稿ページだけアイキャッチ非表示 */
.category .article .eye-catch,
.category .entry-card-thumb,
.category .eye-catch-wrap {
  display: none !important;
}
/*ページ内リンクのスクロール化*/
html {
	scroll-behavior: smooth;
}

/* ======================================================
   墓じまい ステップナビゲーション
====================================================== */
.hmb-nav {
  font-family: 'Noto Sans JP', 'Noto Serif JP', sans-serif;
  background: #fff;
  border: 1px solid #d6d0cb;
  border-radius: 10px;
  padding: 24px 28px 20px;
  margin: 0 0 36px;
  max-width: 780px;
}
.hmb-nav__heading {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #2c2a28;
  text-align: center;
  margin: 0 0 22px;
}
.hmb-nav__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  gap: 0;
}
.hmb-nav__track::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(12.5% + 4px);
  right: calc(12.5% + 4px);
  height: 2px;
  background: #e2ddd8;
  z-index: 0;
}
.hmb-nav__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  text-decoration: none;
  color: inherit;
  cursor: default;
  padding-top: 0;
}
.hmb-nav__step--current {
  padding-top: 0;
}
.hmb-nav__step--current .hmb-nav__label {
  margin-top: 22px;
}
.hmb-nav__step[href] {
  cursor: pointer;
}
.hmb-nav__badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #e2ddd8;
  background: #faf9f7;
  color: #b0aca8;
  transition: background .2s, border-color .2s, color .2s;
  position: relative;
}
.hmb-nav__step--done .hmb-nav__badge {
  background: #c8dbc4;
  border-color: #c8dbc4;
  color: #fff;
}
.hmb-nav__step--current .hmb-nav__badge {
  background: #4a6741;
  border-color: #4a6741;
  color: #fff;
  box-shadow: 0 0 0 4px #e8f0e6;
}
.hmb-nav__badge-now {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #4a6741;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 4px;
}
.hmb-nav__badge-now::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: #4a6741;
}
.hmb-nav__step--current .hmb-nav__badge-now {
  display: block;
}
.hmb-nav__label {
  font-size: 12px;
  font-weight: 700;
  color: #b0aca8;
  text-align: center;
  line-height: 1.4;
  transition: color .2s;
}
.hmb-nav__step--done .hmb-nav__label {
  color: #6b8e64;
}
.hmb-nav__step--current .hmb-nav__label {
  color: #2c2a28;
}
.hmb-nav__sub {
  font-size: 10px;
  color: #b0aca8;
  text-align: center;
  line-height: 1.4;
}
.hmb-nav__step--current .hmb-nav__sub {
  color: #6b6560;
}
.hmb-nav__step[href]:hover .hmb-nav__label {
  color: #4a6741;
  text-decoration: underline;
}
.hmb-nav__footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e2ddd8;
  text-align: center;
}
.hmb-nav__footer a {
  font-size: 12px;
  color: #4a6741;
  text-decoration: none;
  letter-spacing: .02em;
}
.hmb-nav__footer a:hover {
  text-decoration: underline;
}
@media (max-width: 540px) {
  .hmb-nav { padding: 20px 16px 16px; }
  .hmb-nav__track { grid-template-columns: 1fr 1fr; gap: 24px 8px; }
  .hmb-nav__track::before { display: none; }
  .hmb-nav__badge { width: 36px; height: 36px; font-size: 13px; }
  .hmb-nav__label { font-size: 11px; }
}
/* ======================================================
   墓じまい ステップナビゲーション END
====================================================== */

/*アフィボタン*/

/* 全体を囲むコンテナ */
.afibtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  margin: 40px auto;
  text-align: center;
  box-sizing: border-box;
}

/* 煽り文：赤文字＋黄色のアンダーライン */
.afibtn .afititle {
  display: inline-block;
  color: #ff3333;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  background: linear-gradient(transparent 60%, #ffff33 60%);
  animation: afi-bounce 1.5s infinite ease-in-out;
}

/* ボタンを囲むdiv：最低40%〜最大100%でテキストに合わせて可変 */
.afibtn .afibtn-btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  min-width: 40%;  /* ★追加：最低でも画面（親要素）の40%の幅を維持 */
  max-width: 100%; /* 最大でも画面幅に収める */
  border-radius: 50px;
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  box-shadow: 0 6px 20px rgba(255, 75, 43, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

/* リンクエリア */
.afibtn .afibtn-btn a {
  display: block;
  padding: 18px 32px;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff !important;
  text-decoration: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  white-space: normal;
  word-break: break-all;
}

/* マウスホバー時の動き */
.afibtn .afibtn-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 75, 43, 0.6);
}

/* クリックした瞬間の動き */
.afibtn .afibtn-btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(255, 75, 43, 0.4);
}

/* キラッと光るエフェクト */
.afibtn .afibtn-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: afi-shine 3.5s infinite ease-in-out;
  pointer-events: none;
}

/* アニメーション：煽り文のジャンプ */
@keyframes afi-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* アニメーション：ボタンが光る */
@keyframes afi-shine {
  0% { left: -100%; }
  20% { left: 150%; }
  100% { left: 150%; }
}



/*アフィボタンEND*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
