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

/* カスタマイズする場合にはこれより下に追記してください  */

/* =========================================================
   同人LAB：CTAボタン
========================================================= */

/* 同人LAB：CTAボタン共通 */
.doujin-cta-buttons {
  justify-content: center;
  margin: 28px 0 42px;
}

/* 同人LAB：ボタン共通 */
.doujin-btn .wp-block-button__link {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none !important;
  transition:
    opacity 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* 同人LAB：ボタンhover共通 */
.doujin-btn .wp-block-button__link:hover {
  opacity: 0.92;
}

/* 同人LAB：作品詳細ボタン 外枠 */
.doujin-btn-detail {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

/* 同人LAB：作品詳細ボタン */
.doujin-btn-detail .wp-block-button__link {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  box-sizing: border-box;

  background: #e98f9a;
  color: #ffffff !important;
  border: 2px solid #e58f8f;

  box-shadow: 0 4px 12px rgba(229, 143, 143, 0.35);
  transform-origin: center center;
  animation: doujinCtaPulseEffect 1.2s ease-in-out infinite;
  will-change: transform;
}

/* 同人LAB：作品詳細ボタン hover */
.doujin-btn-detail .wp-block-button__link:hover,
.doujin-btn-detail .wp-block-button__link:focus {
  background: #df7f8c;
  color: #ffffff !important;
  border-color: #df7f8c;
  box-shadow: 0 6px 16px rgba(223, 127, 140, 0.42);
  text-decoration: none !important;
}

/* 同人LAB：作品詳細ボタン active */
.doujin-btn-detail .wp-block-button__link:active {
  animation: none;
  transform: scale(1);
  box-shadow: 0 3px 8px rgba(223, 127, 140, 0.3);
}

/* 同人LAB：作品詳細CTA pulse */
@keyframes doujinCtaPulseEffect {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

/* スマホ：はみ出し防止優先 */
@media screen and (max-width: 600px) {
  .doujin-cta-buttons {
    margin: 24px 0 38px;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .doujin-btn-detail .wp-block-button__link {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 14px 14px;
    font-size: 15px;
    animation: none;
  }
}

/* 同人LAB：Xボタン */
.doujin-btn-x .wp-block-button__link {
  background: #111;
  color: #fff !important;
  border: 1px solid #333;
}

/* 同人LAB：Xボタン hover */
.doujin-btn-x .wp-block-button__link:hover {
  border-color: #f0a0a0;
}


/* =========================================================
   投稿ページ
========================================================= */

/* 投稿ページのアイキャッチ画像キャプションを非表示 */
.single-post figure.single_thumbnail figcaption {
  display: none !important;
}


/* =========================================================
   アーカイブ
========================================================= */

/* 同人LAB：サークルアーカイブタイトル */
.circle-archive-title {
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 1.45;
  font-weight: 700;
}

@media screen and (max-width: 600px) {
  .circle-archive-title {
    font-size: 22px;
    line-height: 1.5;
    margin-bottom: 20px;
  }
}


/* =========================================================
   FANZA広告用 H2直前ウィジェット
========================================================= */

.doujin-mousouchu-fanza-widget-wrap {
  clear: both;
  width: 100%;
  max-width: 100%;
  margin: 30px auto;
  padding: 14px 12px;
  box-sizing: border-box;
  text-align: center;
  background: #fffafa;
  border: 1px solid rgba(233, 143, 154, 0.24);
  border-radius: 8px;
  overflow: hidden;
}

.doujin-mousouchu-fanza-widget-label {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.3;
  color: #777;
  text-align: center;
  letter-spacing: 0.04em;
}

.doujin-mousouchu-fanza-widget-inner {
  margin: 0 auto;
  padding: 0;
}

.doujin-mousouchu-fanza-widget-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #444;
  text-align: center;
}

.doujin-mousouchu-fanza-widget-wrap iframe,
.doujin-mousouchu-fanza-widget-wrap img {
  max-width: 100%;
}

.doujin-mousouchu-fanza-widget-wrap iframe {
  display: block;
  margin: 0 auto;
  border: 0;
}

@media screen and (max-width: 600px) {
  .doujin-mousouchu-fanza-widget-wrap {
    margin: 24px auto;
    padding: 12px 8px;
    border-radius: 7px;
  }
}


/* =========================================================
   サイドバーアダルトランキング
========================================================= */

.adultblog-ranking-box {
  margin: 0;
  padding: 16px 16px 20px;
  text-align: center;
  font-size: 13px;
  background: #fff;
}

.adultblog-ranking-box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 11px 20px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #fff;
  color: #555;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.adultblog-ranking-box a:hover {
  border-color: #bfc7dc;
  color: #2f3f70;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
}


/* =========================================================
   ランキング記事一覧
========================================================= */

/* ランキング記事一覧：ビュー数を小さく表示 */
.sc_article .sc_article_views {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.3;
  color: #333355;
  font-weight: normal;
}

/* リスト型ランキング用 */
.sc_article.list .meta .sc_article_views {
  font-size: 12px;
  margin-top: 2px;
}

/* スマホではさらに少し小さく */
@media screen and (max-width: 599px) {
  .sc_article .sc_article_views {
    font-size: 11px;
  }
}


/* =========================================================
   同人LAB：公開記事 本文デザイン
   ※ 投稿ページ（single-post）の本文だけに限定
========================================================= */

/* H2見出し */
.single-post .post_content h2.wp-block-heading,
.single-post .entry-content h2.wp-block-heading {
  margin: 42px 0 22px !important;
  padding: 14px 18px !important;
  box-sizing: border-box;

  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  color: #222 !important;

  background: #fff5f6 !important;
  border-left: 5px solid #f0a0a0 !important;
  border-radius: 5px !important;
}

/* H3見出し */
.single-post .post_content h3.wp-block-heading,
.single-post .entry-content h3.wp-block-heading {
  margin: 32px 0 18px !important;
  padding: 10px 14px !important;
  box-sizing: border-box;

  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  color: #222 !important;

  border-bottom: 2px solid #f0a0a0 !important;
}

/* 通常本文 */
.single-post .post_content p,
.single-post .entry-content p {
  line-height: 1.9;
}

/* リスト */
.single-post .post_content ul,
.single-post .post_content ol,
.single-post .entry-content ul,
.single-post .entry-content ol {
  line-height: 1.9;
}

/* 画像 */
.single-post .post_content img,
.single-post .entry-content img {
  max-width: 100%;
  height: auto;
}

/* 表 */
.single-post .post_content table,
.single-post .entry-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

.single-post .post_content table th,
.single-post .post_content table td,
.single-post .entry-content table th,
.single-post .entry-content table td {
  line-height: 1.7;
}

/* 引用 */
.single-post .post_content blockquote,
.single-post .entry-content blockquote {
  line-height: 1.8;
}

/* スマホ */
@media screen and (max-width: 767px) {
  .single-post .post_content h2.wp-block-heading,
  .single-post .entry-content h2.wp-block-heading {
    margin: 34px 0 18px !important;
    padding: 12px 14px !important;
    font-size: 20px !important;
  }

  .single-post .post_content h3.wp-block-heading,
  .single-post .entry-content h3.wp-block-heading {
    margin: 28px 0 16px !important;
    padding: 9px 12px !important;
    font-size: 18px !important;
  }
}

/* =========================
   公式SNS・運営メディア
========================= */

.official-media-page {
  max-width: 900px;
  margin: 0 auto;
}

.official-media-intro {
  margin-bottom: 32px;
  line-height: 1.9;
}

.official-media-intro p {
  margin: 0 0 16px;
}


/* SNSカード */

.official-media-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 30px 0 40px;
}

.official-media-card {
  display: block;
  padding: 24px;
  border: 1px solid rgba(120, 120, 120, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.official-media-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(120, 120, 120, 0.4);
}

.official-media-name {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 700;
}

.official-media-description {
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.official-media-link {
  font-size: 0.88rem;
  opacity: 0.72;
}


/* 補足 */

.official-media-note {
  margin-top: 36px;
  padding: 24px;
  border-radius: 14px;
  background: rgba(120, 120, 120, 0.07);
}

.official-media-note h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

.official-media-note p {
  margin: 0 0 12px;
  line-height: 1.85;
}

.official-media-note p:last-child {
  margin-bottom: 0;
}


/* スマートフォン */

@media screen and (max-width: 700px) {

  .official-media-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .official-media-card {
    padding: 20px;
  }

  .official-media-note {
    padding: 20px;
  }

}
