/*
Theme Name: template-theme-newhalf
Version: 1.0
*/

/*フォント*/
body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Hiragino Sans",
        "Yu Gothic",
        "Meiryo",
        sans-serif;
}

/* トップページ全体 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 記事一覧 */
.post-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
}

.post-card {
    width: 430px;
    max-width: 100%;
    justify-self: center;
}

/* アイキャッチ */
.post-card img {
    width: 430px;
    height: 430px;
    object-fit: cover;
    display: block;
    max-width: 100%;
}

/* スマホ */
@media (max-width: 767px) {

    .post-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .post-card {
        width: 100%;
        max-width: 100%;
        justify-self: stretch;
    }

    .post-card img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

}

.post-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card h2 {
    font-size:16px;
    margin: 10px 0 0;
}


/*ヘッダーまわり*/
.site-header {
    border-bottom: 1px solid #ddd;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title {
    text-align: center;
}

.site-title a {
    text-decoration: none;
    color: #263248;
    font-size: 32px;
    font-weight: bold;
}

.site-nav a {
    text-decoration: none;
    color: #263248;
    font-size: 20px;
}

@media (max-width: 767px) {

    .site-title a {
        font-size: 22px;
    }

    .site-nav a {
        font-size: 14px;
    }

}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #ddd;
}


/* 個別ページ */
body {
    background: #f1f6fb;
}

.single-main {
    max-width: 767px;
    margin: 45px auto;
    padding: 40px 55px;
    background: #fff;
    box-sizing: border-box;
}

.single-post {
    width: 100%;
}

.single-title {
    margin: 0 0 30px;
    color: #263248;
    font-size: 30px;
    line-height: 1.5;
}

.ad-notice {
    margin-bottom: 45px;
    color: #888;
    font-size: 14px;
}

.single-content {
    color: #263248;
    font-size: 16px;
    line-height: 2;
}

.single-content h2 {
    margin: 45px 0 25px;
    padding-left: 14px;
    border-left: 5px solid #4aa3df;
    color: #263248;
    font-size: 30px;
    line-height: 1.4;
}

@media (max-width: 768px) {

    .single-main {
        margin: 20px 10px;
        padding: 30px 15px;
    }

    .single-title {
        font-size: 20px;
        line-height: 1.5;
        margin-bottom: 30px;
    }

    .ad-notice {
        margin-bottom: 35px;
    }

    .single-post h2 {
        font-size: 20px;
        padding-left: 0px;
    }

}

.sample-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.sample-img {
    width: 100%;
    height: auto;
    display: block;
}

/*いいねボタン*/
.favorite-btn {

  display: block;
  margin: 15px auto 40px;
  background: none;
  border: none;
  color: #ffb6d9;
  font-size: 14px;
  cursor: pointer;
  height: 24px;
  line-height: 24px;

}

.favorite-btn:hover,
.favorite-btn:focus,
.favorite-btn:active {

  background-color: transparent;
  color: #ffc6e3;
	
}

.favorite-btn {

  border: none;
  outline: none;
  box-shadow: none;

}


/* =========================
  共通ボタン
========================= */

.full-btn {
  display: inline-block;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

/* ボタンバリエーション */

.btn-top {
  background: radial-gradient(circle at 30% 30%, #ff9ac7, #ff2e7a);
  box-shadow: 0 6px 0 #cc1f63, 0 8px 15px rgba(0,0,0,0.3);
}

.btn-middle {
  background: linear-gradient(135deg, #9fd8ff, #6bbcff);
  box-shadow: 0 3px 0 #4aa3e0, 0 4px 8px rgba(0,0,0,0.15);
  color: #fff;
}

.btn-bottom {
  background: linear-gradient(135deg, #4facfe, #007bff);
  box-shadow: 0 6px 0 #0056b3, 0 8px 15px rgba(0,0,0,0.3);
}

/* タップ時 */

/* hoverはPCだけ */
@media (hover: hover) {
  .full-btn:hover {
    transform: translateY(-2px);
    filter: brightness(0.95);
  }
}

/* タップ */
.full-btn.is-active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(0,0,0,0.4);
}

/* リンク色 */

.full-btn,
.full-btn:link,
.full-btn:visited,
.full-btn:hover,
.full-btn:active {
  color: #fff;
}

/* 外側・中央配置 */

.full-btn-wrap {
  margin: 20px 0;
  text-align: center;
}

@media (max-width: 767px) {
    iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 560 / 450;
        display: block;
    }
}

/* =========================
   Footer
========================= */

.site-footer {
    margin-top: 60px;
}

/* フッターリンク部分 */
.footer-links {
    background: #f1f1f1;
    border-bottom: 1px solid #d5d5d5;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 148px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 80px;
}

.footer-inner a {
    color: #0077d9;
    text-decoration: none;
    font-size: 20px;
}

.footer-inner a:hover {
    text-decoration: underline;
}

/* コピーライト */
.footer-copyright {
    min-height: 144px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #40516a;
    font-size: 20px;
    text-align: center;
}

/* =========================
   Back to top
========================= */

.back-to-top {
    position: fixed;
    right: 36px;
    bottom: 40px;

    width: 47px;
    height: 47px;

    border: none;
    border-radius: 3px;

    background: #0077d9;
    color: #fff;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 999;
}

.back-to-top:hover {
    opacity: 0.85;
}

@media (max-width: 768px) {

    .footer-inner {
        min-height: 120px;
        padding: 0 25px;
    }

    .footer-inner a {
        font-size: 16px;
    }

    .footer-copyright {
        min-height: 110px;
        font-size: 15px;
    }

    .back-to-top {
        right: 15px;
        bottom: 20px;

        width: 44px;
        height: 44px;

        font-size: 27px;
    }

}

/* =========================
  h2見出し
========================= */
body.single .single-post h2 {
    border-left: 4px solid #4facfe;
    padding-left: 10px;
    margin: 30px 0 15px;
    font-size: 25px;
}

/* =========================
  あとでみる削除モーダル
========================= */

.favorite-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.favorite-modal.is-open {
    display: flex;
}

.favorite-modal-inner {
    width: calc(100% - 40px);
    max-width: 400px;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    text-align: center;
}

.favorite-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.favorite-modal-buttons button {
    flex: 1;
}

#favorite-clear {
    padding: 14px 24px;
    font-size: 16px;
    margin-bottom: 30px;
}

.favorite-modal-buttons button {
    flex: 1;
    padding: 14px 10px;
    font-size: 16px;
    min-height: 50px;
}

/* =========================
  ハッシュタグ
========================= */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.hash-link {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #444;
  font-size: 14px;
}

a.hash-link {
  display: inline-block;
  text-decoration: none;
  transition: 0.2s;
}

a.hash-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
  opacity: 0.8;
}

/* =========================
  　レビューとnoteデザイン調整
========================= */
/* レビュー */
.review {
  text-align: center;
  line-height: 1.8;
  margin: 12px 0 16px;
  font-size: 15px;
  color:#39465a;
}

/* 改行の余白を自然に */
.review br {
  display: block;
  margin: 6px 0;
  content: "";
}


/* =========================
  ページネーション
========================= */

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
}

.pagination .page-numbers.current {
    background: #333;
    color: #fff;
    border-color: #333;
}

.pagination .page-numbers:hover {
    background: #f2f2f2;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    font-size: 24px;
}

body.favorite-page .site-main {
    background-color: #fff7f9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ctext x='20' y='45' font-size='18' fill='%23ff9db5' fill-opacity='.18'%3E%E2%99%A1%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* =========================
  年齢確認
========================= */
#age-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: none; /* ← flexからnoneへ */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

body.age-not-checked #age-gate {
  display: flex;
}

.age-box {
  background: #fff;
  padding: 28px 24px;
  border-radius: 14px;
  text-align: center;
  width: 80%;
  max-width: 320px;
}

.age-box p {
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: bold;
}

.age-box button {
  display: inline-block;
  margin: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
}

/* YES */
#age-yes {
  background: linear-gradient(135deg, #2f9e7a, #237a5f);
  color: #fff;
}

/* NO */
#age-no {
  background: #eee;
}

/* =========================
  トップページコンテンツ枠
========================= */

.home main {
    background: #fff;
    padding: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .home main {
        padding: 20px 15px;
        border-radius: 0;
    }
}

/* =========================
  ctaリード文
========================= */

.cta-lead {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f5f5f5;
  font-size: 12px;
  color: #666;
  letter-spacing: 0.04em;
  position: relative;
}

/* もくもく */
.cta-lead::before,
.cta-lead::after {
  content: "";
  position: absolute;
  background: #f5f5f5;
  border-radius: 50%;
}

/* 小さい丸（ちょい下） */
.cta-lead::before {
  width: 6px;
  height: 6px;
  left: 60%;
  bottom: -18px;
}

/* 大きい丸（少し上） */
.cta-lead::after {
  width: 10px;
  height: 10px;
  left: 55%;
  bottom: -12px;
}

/* =========================================================
   記事下おすすめスライダー
========================================================= */

.recommend-section {
    margin: 40px 0;
}

.recommend-title {
    font-size: 20px;
    line-height: 1.4;
    margin: 0 0 15px;
}


/* =========================
   スライダー
========================= */

.recommend-slider {
    display: flex;
    gap: 12px;

    overflow-x: auto;

    scroll-snap-type: x mandatory;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;

    padding-bottom: 3px;
}

.recommend-slider::-webkit-scrollbar {
    display: none;
}


/* =========================
   カード
========================= */

.recommend-slider .recommend-card {
    flex: 0 0 calc((100% - 12px) / 2.5);

    min-width: 0;

    scroll-snap-align: start;
}

.recommend-slider .recommend-card h2 {
    border: none;
    padding: 0;
    margin: 6px 0 0;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}


/* =========================
   画像
========================= */

.recommend-slider .recommend-card img {
    width: 100%;
    height: auto;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    display: block;
}

/* =========================
   ドット
========================= */
.recommend-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.recommend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
    border: 0;
    padding: 0;
}

.recommend-dot.is-active {
    background: #555;
}

/* ========================================
   DMMランキング
======================================== */

.ranking-top {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.ranking-top .post-card {
    width: 100%;
    max-width: 430px;
}


/* ========================================
   順位
======================================== */

.ranking-rank {
    margin-bottom: 6px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}


/* TOP3 王冠 */

.ranking-rank.rank-1,
.ranking-rank.rank-2,
.ranking-rank.rank-3 {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 40px;
}


/* 王冠 */

.ranking-rank.rank-1::first-letter,
.ranking-rank.rank-2::first-letter,
.ranking-rank.rank-3::first-letter {
    font-size: 40px;
}


/* 数字 */

.ranking-rank.rank-1 span,
.ranking-rank.rank-2 span,
.ranking-rank.rank-3 span {
    font-size: 25px;
    font-weight: 700;
}


/* 1位 */

.ranking-rank.rank-1 {
    color: #c9a227;
}


/* 2位 */

.ranking-rank.rank-2 {
    color: #888;
}


/* 3位 */

.ranking-rank.rank-3 {
    color: #a66a3f;
}


/* ========================================
   6〜15位 スライダー
======================================== */

.recommend-slider .ranking-rank {
    margin-bottom: 6px;
}

.ranking-top + .recommend-slider-wrap .recommend-dots {
    margin-top: 20px;
}