/*
	Theme Name: diver_child
	Template: diver
	Description:  Diverの子テーマです。
	Theme URI: http://tan-taka.com/diver/
	Author: Takato Takagi
 */

/* カスタマイズする場合にはこれより下に追記してください  */
:root{
  --yuru-bg:#FFFDF7;
  --yuru-text:#333333;
  --yuru-mint:#AEE0C8;      /* メイン */
  --yuru-mint-deep:#7BBE9E; /* リンク/ボタン濃色 */
  --yuru-coral:#F6A5A5;     /* 注意・ノート */
  --yuru-blue:#BFD9E8;      /* 引用ボックス */
}

.single .entry-content,
.page .entry-content{ background:var(--yuru-bg); }

.yuru-wrap{ max-width: 860px; margin:0 auto; }
.yuru-badge{
  display:inline-block; background:var(--yuru-mint); color:#234;
  padding:4px 10px; border-radius:999px; font-size:12px; line-height:1;
}
.yuru-lead{
  background:#FAFFFD; border:1px solid #E6F6EE; padding:16px; border-radius:12px;
}
.yuru-h2{
  font-size:1.4rem; margin:2.2em 0 0.8em;
  border-left:6px solid var(--yuru-mint); padding-left:10px; color:#2f564a;
}
.yuru-h3{ font-size:1.15rem; margin:1.6em 0 0.6em; }

.yuru-toc{
  background:#F6FBF9; border:1px solid #D9EFE6; padding:16px; border-radius:12px; margin:20px 0;
}
.yuru-toc ol{ margin:0; padding-left:1.4em; }
.yuru-note{
  background:#FFF8F6; border-left:4px solid var(--yuru-coral);
  padding:12px; border-radius:8px; margin:1em 0;
}
.yuru-quote{
  margin:16px 0; padding:12px 16px; background:#F4F7FA; border-left:4px solid var(--yuru-blue);
}

.yuru-list li{ margin:8px 0; }

.yuru-cta{
  background:#E9F7F0; border:1px solid #CFEBDD; padding:16px; border-radius:12px; margin:28px 0;
  display:flex; gap:12px; flex-wrap:wrap; align-items:center;
}
.yuru-btn{
  display:inline-block; padding:10px 16px; border-radius:999px;
  background:var(--yuru-mint-deep); color:#fff !important; text-decoration:none;
}
.yuru-btn:hover{ filter:brightness(0.95); }

/* 目次内リンクのホバー */
.yuru-toc a{ color:#2E8B6C; text-decoration:underline; }
.yuru-toc a:hover{ opacity:.9; }

/* スマホ微調整 */
@media (max-width: 767px){
  .yuru-wrap{ padding:0 4px; }
}

/* ==============================
   CTAボックス（登録・誘導エリア）
   ============================== */
.yuru-cta {
  background: #E9F7F0;              /* 優しいミント系背景 */
  border: 1px solid #CFEBDD;
  padding: 20px;
  border-radius: 14px;
  margin: 32px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.yuru-cta p {
  margin: 0;
  color: #234;
  line-height: 1.6;
}

.yuru-cta strong {
  color: #1B5B45;
}

/* CTA内のボタン */
.yuru-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--yuru-mint-deep, #7BBE9E);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: 0.2s;
}

.yuru-btn:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

/* リストの整形 */
.yuru-cta .yuru-list {
  margin: 6px 0;
  padding-left: 18px;
}
.yuru-cta .yuru-list li {
  margin: 4px 0;
  line-height: 1.5;
}

/* ==============================
   スマホ表示の整形
   ============================== */
@media (max-width: 767px) {
  .yuru-cta {
    flex-direction: column;
    text-align: center;
    padding: 18px;
  }

  .yuru-btn {
    width: 100%;
    font-size: 15px;
  }

  .yuru-cta .yuru-list {
    text-align: left;
  }
}

/* ==============================
   ハピタス専用CTAデザイン
   ============================== */
.yuru-cta.hapitas {
  background: linear-gradient(135deg, #E9F7F0 0%, #F9FFFC 100%);
  border: 2px solid #AEE0C8;
  border-radius: 16px;
  padding: 24px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 10px rgba(174, 224, 200, 0.25);
  transition: 0.3s ease;
}

.yuru-cta.hapitas:hover {
  box-shadow: 0 6px 14px rgba(174, 224, 200, 0.35);
}

.yuru-cta.hapitas .icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #AEE0C8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.yuru-cta.hapitas .content {
  flex: 1;
  min-width: 240px;
  color: #234;
}

.yuru-cta.hapitas .content strong {
  color: #15755B;
  font-size: 1.1em;
}

.yuru-cta.hapitas .content p {
  margin: 6px 0;
  line-height: 1.7;
}

.yuru-cta.hapitas .yuru-btn {
  background: #7BBE9E;
  font-size: 17px;
  padding: 12px 28px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  box-shadow: 0 3px 6px rgba(123,190,158,0.25);
}

.yuru-cta.hapitas .yuru-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* スマホ対応 */
@media (max-width: 767px) {
  .yuru-cta.hapitas {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .yuru-cta.hapitas .icon {
    margin-bottom: 8px;
  }

  .yuru-cta.hapitas .yuru-btn {
    width: 100%;
  }
}

/* ==============================
   ハピタス画像CTA用
   ============================== */
.yuru-cta.hapitas-img {
  text-align: center;
  margin: 40px 0;
}

.hapitas-banner {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.hapitas-banner:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}
