/*
Theme Name:   hotmanmanga
Template:     cocoon-master
Description:  Cocoon子テーマ - hotmanmanga配信ナビサイト
Author:       hotmanmanga
Version:      1.0.0
Text Domain:  hotmanmanga
License:      GPL v2 or later
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --hmm-bg:             #0d0d0d;
    --hmm-bg-card:        #1a1a1a;
    --hmm-bg-card-hover:  #222222;
    --hmm-bg-secondary:   #141414;
    --hmm-bg-table:       #111111;
    --hmm-text:           #ffffff;
    --hmm-text-muted:     #999999;
    --hmm-text-sub:       #cccccc;
    --hmm-accent:         #ff0033;
    --hmm-accent-hover:   #e6002e;
    --hmm-accent-glow:    rgba(255, 0, 51, 0.3);
    --hmm-accent-light:   #ff3366;
    --hmm-border:         #333333;
    --hmm-border-accent:  #ff0033;
    --hmm-gold:           #ffd700;

    /* Typography */
    --hmm-font-base:    'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
    --hmm-font-heading: 'Inter', 'Noto Sans JP', sans-serif;

    /* Spacing */
    --hmm-gap:     16px;
    --hmm-gap-lg:  24px;
    --hmm-gap-xl:  32px;

    /* Border Radius */
    --hmm-radius:    4px;
    --hmm-radius-sm: 2px;
    --hmm-radius-lg: 8px;
}

/* ============================================
   GLOBAL RESET & BASE
   ============================================ */
body,
html,
.body-wrap,
#content,
#content-in,
.content-in,
#main,
.main,
.content,
.wrap,
#container,
.container,
#body,
.no-sidebar .content-in,
.appeal,
.notice-area,
.notice-area-link,
.entry-content,
.breadcrumb,
.breadcrumb-in {
    background-color: var(--hmm-bg) !important;
    color: var(--hmm-text);
    font-family: var(--hmm-font-base);
}

a {
    color: var(--hmm-accent-light);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--hmm-accent);
}

/* Cocoonデフォルトの白背景を上書き */
.article,
.article-header,
.article-body,
.article-footer,
.entry-content,
.post,
.page,
.page .entry-content,
.type-page,
.page-template-default,
.hentry,
.post-date,
.post-update,
.date-tags,
.author-info {
    background-color: transparent !important;
    color: var(--hmm-text);
}

/* Cocoon全体の余白白背景を完全除去 */
#header-container,
.header-container,
.header-container-in,
#header-container-in,
.tagline,
.appeal-in,
.navi-in,
.footer-bottom-logo,
.footer-bottom-content,
.go-to-top,
.footer-left-widget-area,
.footer-center-widget-area,
.footer-right-widget-area,
.footer-widget-area {
    background-color: var(--hmm-bg) !important;
}

/* ============================================
   HEADER
   ============================================ */
.site-header-logo,
#header .site-name-text {
    color: var(--hmm-text) !important;
    font-family: var(--hmm-font-heading);
    font-weight: 800;
    letter-spacing: 0.05em;
}

#header {
    background-color: var(--hmm-bg) !important;
    border-bottom: 2px solid var(--hmm-accent);
}

#header-container,
.header-container,
.header-container-in,
.logo-header,
.tagline {
    background-color: var(--hmm-bg) !important;
}

/* ヘッダーとコンテンツ間の余白を除去 */
.header-container,
#header-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* コンテンツ上部の余白 */
#content,
.content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* フッター上の余白 */
#footer,
.footer {
    margin-top: 0 !important;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navi,
#navi .navi-in,
.mobile-menu-buttons {
    background-color: var(--hmm-bg-secondary) !important;
}

.navi a,
.navi-in a {
    color: var(--hmm-text) !important;
    font-weight: 700;
}
.navi a:hover,
.navi-in a:hover {
    color: var(--hmm-accent) !important;
    background-color: rgba(255, 0, 51, 0.1) !important;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.hmm-breadcrumb,
.breadcrumb {
    background-color: var(--hmm-bg-secondary) !important;
    color: var(--hmm-text-muted);
    padding: 8px var(--hmm-gap);
    font-size: 12px;
}
.breadcrumb a {
    color: var(--hmm-text-sub);
}

/* ============================================
   SINGLE WORKS PAGE
   ============================================ */
.hmm-single-works {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--hmm-gap);
}

/* --- H1: ジャンキー寄せタイトル --- */
.hmm-single__title {
    font-family: var(--hmm-font-heading);
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    font-weight: 900;
    line-height: 1.3;
    color: var(--hmm-text);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--hmm-accent);
}

/* --- セールバッジ --- */
.hmm-badge--sale {
    display: inline-block;
    background: var(--hmm-accent);
    color: #fff;
    font-size: 0.7em;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: var(--hmm-radius-sm);
    margin-right: 8px;
    vertical-align: middle;
    animation: hmm-pulse 2s infinite;
}

@keyframes hmm-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.7; }
}

/* --- 冒頭煽り --- */
.hmm-single__intro {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hmm-text-sub);
    line-height: 1.7;
    margin-bottom: var(--hmm-gap-lg);
    padding-left: 12px;
    border-left: 4px solid var(--hmm-accent);
}

/* ============================================
   CTA BUTTONS（全ページ共通）
   ============================================ */
.hmm-cta {
    margin: var(--hmm-gap-lg) 0;
    text-align: center;
}

.hmm-cta__btn {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 18px 24px;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none !important;
    border-radius: var(--hmm-radius);
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.05em;
}

/* Primary: 赤ベース */
.hmm-cta__btn--primary {
    background: linear-gradient(135deg, var(--hmm-accent), #cc0029);
    color: #ffffff !important;
    box-shadow: 0 4px 16px var(--hmm-accent-glow);
}
.hmm-cta__btn--primary:hover {
    background: linear-gradient(135deg, #cc0029, var(--hmm-accent));
    box-shadow: 0 6px 24px var(--hmm-accent-glow);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Accent: ゴールドオレンジ */
.hmm-cta__btn--accent {
    background: linear-gradient(135deg, #ff6600, #ff3300);
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(255, 102, 0, 0.3);
}
.hmm-cta__btn--accent:hover {
    background: linear-gradient(135deg, #ff3300, #ff6600);
    box-shadow: 0 6px 24px rgba(255, 102, 0, 0.4);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* CTA Label */
.hmm-cta__label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hmm-text-sub);
    margin-bottom: 8px;
}

/* --- 月額CTA Box --- */
.hmm-cta--monthly {
    background: var(--hmm-bg-card);
    border: 2px solid var(--hmm-accent);
    border-radius: var(--hmm-radius-lg);
    padding: var(--hmm-gap-lg);
    margin: var(--hmm-gap-xl) 0;
}
.hmm-cta__monthly-lead {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.hmm-cta__monthly-desc {
    font-size: 0.9rem;
    color: var(--hmm-text-sub);
    margin-bottom: var(--hmm-gap);
    line-height: 1.6;
}

/* ============================================
   DATA TABLE
   ============================================ */
.hmm-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--hmm-gap) 0;
    background: var(--hmm-bg-table);
    border-radius: var(--hmm-radius);
    overflow: hidden;
}
.hmm-data-table th,
.hmm-data-table td {
    padding: 12px var(--hmm-gap);
    border-bottom: 1px solid var(--hmm-border);
    text-align: left;
    font-size: 0.9rem;
}
.hmm-data-table th {
    background: rgba(255, 0, 51, 0.08);
    color: var(--hmm-accent-light);
    font-weight: 700;
    width: 100px;
    white-space: nowrap;
}
.hmm-data-table td {
    color: var(--hmm-text);
}

/* 星評価 */
.hmm-stars {
    color: var(--hmm-gold);
    font-size: 1rem;
    letter-spacing: 2px;
}
.hmm-review-count {
    color: var(--hmm-text-muted);
    font-size: 0.8rem;
}

/* ============================================
   TAGS
   ============================================ */
.hmm-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--hmm-radius-sm);
    font-size: 0.8rem;
    margin: 2px 4px 2px 0;
    transition: all 0.2s ease;
}
.hmm-tag--actress {
    background: rgba(255, 0, 51, 0.15);
    color: var(--hmm-accent-light);
    border: 1px solid rgba(255, 0, 51, 0.3);
}
.hmm-tag--actress:hover {
    background: var(--hmm-accent);
    color: #fff;
}
.hmm-tag--genre {
    background: rgba(255, 255, 255, 0.08);
    color: var(--hmm-text-sub);
    border: 1px solid var(--hmm-border);
}
.hmm-tag--genre-sm {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--hmm-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--hmm-radius-sm);
}

/* ============================================
   API IMAGE GRID
   ============================================ */
.hmm-image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--hmm-gap);
    margin: var(--hmm-gap) 0;
}
.hmm-image-grid__item {
    margin: 0;
    border-radius: var(--hmm-radius);
    overflow: hidden;
    background: var(--hmm-bg-card);
}
.hmm-api-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 2カラム（タブレット以上） */
@media (min-width: 600px) {
    .hmm-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   CARD GRID（一覧ページ共通）
   ============================================ */
.hmm-card-grid {
    display: grid;
    gap: var(--hmm-gap);
    margin: var(--hmm-gap-lg) 0;
}
.hmm-card-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}
.hmm-card-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

/* モバイル: 常に2カラム */
@media (max-width: 599px) {
    .hmm-card-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- カード --- */
.hmm-card {
    display: block;
    background: var(--hmm-bg-card);
    border: 1px solid var(--hmm-border);
    border-radius: var(--hmm-radius);
    overflow: hidden;
    transition: all 0.25s ease;
    text-decoration: none !important;
    color: var(--hmm-text) !important;
}
.hmm-card:hover {
    border-color: var(--hmm-accent);
    box-shadow: 0 4px 20px var(--hmm-accent-glow);
    transform: translateY(-3px);
}
.hmm-card__thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 5 / 7;
    background: var(--hmm-bg-secondary);
}
.hmm-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.hmm-card:hover .hmm-card__thumb img {
    transform: scale(1.05);
}
.hmm-card__badge {
    position: absolute;
    top: 8px;
    left: 0;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
}
.hmm-card__body {
    padding: 10px 12px 14px;
}
.hmm-card__title {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px;
    color: var(--hmm-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hmm-card__actress {
    font-size: 0.75rem;
    color: var(--hmm-accent-light);
    margin: 0 0 4px;
}
.hmm-card__rating {
    font-size: 0.75rem;
    color: var(--hmm-gold);
}

/* ============================================
   SECTION TITLES
   ============================================ */
.hmm-section-title {
    font-family: var(--hmm-font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--hmm-text);
    margin: var(--hmm-gap-xl) 0 var(--hmm-gap);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--hmm-accent);
}

/* ============================================
   ARCHIVE PAGES
   ============================================ */
.hmm-archive {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--hmm-gap);
}
.hmm-archive__header {
    margin-bottom: var(--hmm-gap-xl);
}
.hmm-archive__title {
    font-family: var(--hmm-font-heading);
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 900;
    border-bottom: 3px solid var(--hmm-accent);
    padding-bottom: 10px;
    margin-bottom: var(--hmm-gap);
}
.hmm-archive__label {
    display: block;
    font-size: 0.7em;
    color: var(--hmm-accent);
    letter-spacing: 0.1em;
}
.hmm-archive__count {
    font-size: 0.6em;
    color: var(--hmm-text-muted);
    font-weight: 400;
}
.hmm-archive__desc {
    font-size: 0.95rem;
    color: var(--hmm-text-sub);
    line-height: 1.7;
    margin-bottom: var(--hmm-gap);
}

/* ============================================
   PAGINATION
   ============================================ */
.hmm-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: var(--hmm-gap-xl) 0;
}
.hmm-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--hmm-bg-card);
    color: var(--hmm-text);
    border: 1px solid var(--hmm-border);
    border-radius: var(--hmm-radius);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.hmm-pagination .page-numbers.current,
.hmm-pagination .page-numbers:hover {
    background: var(--hmm-accent);
    color: #fff;
    border-color: var(--hmm-accent);
}

/* ============================================
   STICKY CTA（モバイル スクロール追従）
   ============================================ */
.hmm-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 10px var(--hmm-gap);
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 2px solid var(--hmm-accent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.hmm-sticky-cta.is-visible {
    transform: translateY(0);
}
.hmm-sticky-cta__btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--hmm-accent), #cc0029);
    color: #fff !important;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    border-radius: var(--hmm-radius);
    text-decoration: none !important;
}

/* モバイルでのみ表示 */
@media (max-width: 768px) {
    .hmm-sticky-cta {
        display: block;
    }
    /* 追従CTAの分の下余白 */
    .hmm-single-works {
        padding-bottom: 80px;
    }
}

/* ============================================
   FRONT PAGE
   ============================================ */
.hmm-front {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--hmm-gap);
}

/* --- Hero Section --- */
.hmm-hero {
    text-align: center;
    padding: 48px 16px 40px;
    background: linear-gradient(180deg, rgba(255,0,51,.06) 0%, transparent 100%);
    border-bottom: 1px solid var(--hmm-border);
    margin-bottom: var(--hmm-gap-xl);
}
.hmm-hero__title {
    font-family: var(--hmm-font-heading);
    font-size: clamp(2rem, 7vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--hmm-text);
    margin-bottom: 10px;
}
.hmm-hero__sub {
    font-size: 1rem;
    color: var(--hmm-text-muted);
    margin-bottom: 24px;
}
.hmm-hero__cta {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--hmm-accent), #cc0029);
    color: #fff !important;
    font-weight: 800;
    font-size: 1rem;
    border-radius: var(--hmm-radius);
    box-shadow: 0 4px 20px var(--hmm-accent-glow);
    transition: all 0.25s ease;
    text-decoration: none !important;
}
.hmm-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--hmm-accent-glow);
    color: #fff !important;
}

/* --- Top Section Wrapper --- */
.hmm-top-section {
    margin-bottom: 48px;
}

/* --- Section Header (title + more) --- */
.hmm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--hmm-gap);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--hmm-accent);
}
.hmm-section-header__title {
    font-family: var(--hmm-font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--hmm-text);
    margin: 0;
}
.hmm-section-header__more {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--hmm-accent-light);
    padding: 4px 12px;
    border: 1px solid var(--hmm-accent);
    border-radius: var(--hmm-radius);
    transition: all 0.2s ease;
}
.hmm-section-header__more:hover {
    background: var(--hmm-accent);
    color: #fff;
}

/* --- Featured Scroll (今アツい) --- */
.hmm-featured-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--hmm-accent) var(--hmm-bg-card);
}
.hmm-featured-scroll::-webkit-scrollbar { height: 4px; }
.hmm-featured-scroll::-webkit-scrollbar-track { background: var(--hmm-bg-card); border-radius: 2px; }
.hmm-featured-scroll::-webkit-scrollbar-thumb { background: var(--hmm-accent); border-radius: 2px; }

.hmm-featured-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background: var(--hmm-bg-card);
    border: 1px solid var(--hmm-border);
    border-radius: var(--hmm-radius-lg);
    overflow: hidden;
    transition: all 0.25s ease;
    text-decoration: none !important;
    color: var(--hmm-text) !important;
    position: relative;
    display: block;
}
.hmm-featured-card:hover {
    border-color: var(--hmm-accent);
    box-shadow: 0 6px 24px var(--hmm-accent-glow);
    transform: translateY(-3px);
}
.hmm-featured-card__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--hmm-bg-secondary);
}
.hmm-featured-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hmm-featured-card__badge {
    position: absolute;
    top: 10px;
    left: 0;
    background: var(--hmm-accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 12px 3px 8px;
    border-radius: 0 4px 4px 0;
    z-index: 2;
    animation: hmm-pulse 2s infinite;
}
.hmm-featured-card__body {
    padding: 12px 14px;
}
.hmm-featured-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hmm-featured-card__meta {
    font-size: 0.75rem;
    color: var(--hmm-accent-light);
}

/* --- Genre Chips --- */
.hmm-genre-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--hmm-gap-lg);
}
.hmm-genre-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--hmm-bg-card);
    border: 1px solid var(--hmm-border);
    border-radius: var(--hmm-radius);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--hmm-text-sub);
    transition: all 0.2s ease;
    text-decoration: none !important;
}
.hmm-genre-chip:hover {
    border-color: var(--hmm-accent);
    color: var(--hmm-accent-light);
}

/* --- Card bottom row --- */
.hmm-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}
.hmm-card__stars {
    font-size: 0.68rem;
    color: var(--hmm-gold);
    letter-spacing: 1px;
}

/* --- Tag Cloud (女優) --- */
.hmm-tag-cloud {
    background: var(--hmm-bg-card);
    border: 1px solid var(--hmm-border);
    border-radius: var(--hmm-radius-lg);
    padding: var(--hmm-gap-lg);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.hmm-tag-item {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255, 0, 51, 0.1);
    border: 1px solid rgba(255, 0, 51, 0.25);
    border-radius: 20px;
    color: var(--hmm-accent-light);
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s ease;
    text-decoration: none !important;
}
.hmm-tag-item:hover {
    background: var(--hmm-accent);
    color: #fff !important;
    border-color: var(--hmm-accent);
}
.hmm-tag-item--lg {
    font-size: 1rem;
    padding: 6px 18px;
}
.hmm-tag-item--sm {
    font-size: 0.72rem;
    padding: 4px 10px;
    opacity: 0.8;
}
.hmm-tag-count {
    font-size: 0.65em;
    opacity: 0.6;
    margin-left: 2px;
}

/* --- Ranking Strip --- */
.hmm-ranking-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.hmm-ranking-strip::-webkit-scrollbar { height: 3px; }
.hmm-ranking-strip::-webkit-scrollbar-thumb { background: var(--hmm-border); border-radius: 2px; }

.hmm-ranking-item {
    flex: 0 0 140px;
    text-align: center;
    text-decoration: none !important;
    color: var(--hmm-text) !important;
}
.hmm-ranking-item__img {
    width: 100%;
    aspect-ratio: 5 / 7;
    overflow: hidden;
    border-radius: var(--hmm-radius);
    border: 1px solid var(--hmm-border);
    transition: border-color 0.2s ease;
    background: var(--hmm-bg-secondary);
}
.hmm-ranking-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hmm-ranking-item:hover .hmm-ranking-item__img {
    border-color: var(--hmm-accent);
}
.hmm-ranking-item__num {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--hmm-accent);
    line-height: 1;
    margin-top: 6px;
}
.hmm-ranking-item__name {
    font-size: 0.7rem;
    color: var(--hmm-text-sub);
    margin-top: 2px;
}

/* --- Monthly CTA Box --- */
.hmm-monthly-box {
    background: linear-gradient(135deg, #1a0a0e 0%, var(--hmm-bg-card) 100%);
    border: 2px solid var(--hmm-accent);
    border-radius: var(--hmm-radius-lg);
    padding: var(--hmm-gap-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hmm-monthly-box::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 0, 51, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hmm-monthly-box__lead {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 8px;
}
.hmm-monthly-box__desc {
    font-size: 0.9rem;
    color: var(--hmm-text-sub);
    margin-bottom: var(--hmm-gap-lg);
    line-height: 1.7;
}
.hmm-monthly-box__btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #ff6600, #ff3300);
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: var(--hmm-radius);
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.3);
    transition: all 0.25s ease;
    text-decoration: none !important;
}
.hmm-monthly-box__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 102, 0, 0.4);
    color: #fff !important;
}
.hmm-monthly-box__note {
    font-size: 0.78rem;
    color: var(--hmm-text-muted);
    margin-top: 12px;
}

/* 旧互換: ウィジェット用 */
.hmm-widget-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--hmm-accent);
    margin-bottom: var(--hmm-gap);
}

/* モバイル: ヒーロー調整 */
@media (max-width: 599px) {
    .hmm-hero {
        padding: 32px 16px 28px;
    }
    .hmm-featured-card {
        flex: 0 0 220px;
    }
}

/* ============================================
   MONTHLY COMPARE PAGE
   ============================================ */
.hmm-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--hmm-gap-lg) 0;
    background: var(--hmm-bg-card);
    border-radius: var(--hmm-radius-lg);
    overflow: hidden;
}
.hmm-compare-table th,
.hmm-compare-table td {
    padding: 14px var(--hmm-gap);
    border-bottom: 1px solid var(--hmm-border);
    text-align: center;
    font-size: 0.9rem;
}
.hmm-compare-table thead th {
    background: var(--hmm-accent);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
}
.hmm-compare-table .hmm-compare--best {
    background: rgba(255, 0, 51, 0.08);
    color: var(--hmm-accent);
    font-weight: 700;
}
.hmm-compare-table .hmm-compare__label {
    text-align: left;
    font-weight: 700;
    color: var(--hmm-text-sub);
}

/* ============================================
   API CREDIT
   ============================================ */
.hmm-api-credit {
    font-size: 0.75rem;
    color: var(--hmm-text-muted);
    text-align: center;
    padding: var(--hmm-gap) 0;
    margin-top: var(--hmm-gap-xl);
    border-top: 1px solid var(--hmm-border);
}
.hmm-api-credit a {
    color: var(--hmm-text-sub);
    text-decoration: underline;
}

/* ============================================
   UTILITY
   ============================================ */
.hmm-text-accent {
    color: var(--hmm-accent) !important;
}
.hmm-text-bold {
    font-weight: 800;
}
.hmm-no-posts,
.hmm-no-related {
    text-align: center;
    color: var(--hmm-text-muted);
    padding: var(--hmm-gap-xl);
}

/* ============================================
   COCOON OVERRIDES: サイドバー制御
   ============================================ */
/* モバイル: サイドバー非表示 & 1カラム */
@media (max-width: 1023px) {
    #sidebar,
    .sidebar {
        display: none !important;
    }
    #content-in,
    .content-in {
        display: block !important;
    }
    #main,
    .main {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}

/* Cocoon目次を非表示（works記事のみ） */
.single-works .toc,
.single-works .table-of-contents,
.single-works #toc-widget-area {
    display: none !important;
}

/* Cocoonカードの黒背景化 */
.e-card,
.entry-card,
.entry-card-wrap,
.widget-entry-card-link {
    background: var(--hmm-bg-card) !important;
    border: 1px solid var(--hmm-border) !important;
    border-radius: var(--hmm-radius) !important;
    color: var(--hmm-text) !important;
    transition: all 0.25s ease;
}
.e-card:hover,
.entry-card-wrap:hover {
    border-color: var(--hmm-accent) !important;
    box-shadow: 0 4px 20px var(--hmm-accent-glow);
}
.entry-card-title,
.card-title,
.widget-entry-card-title {
    color: var(--hmm-text) !important;
}
.entry-card-snippet,
.card-snippet {
    color: var(--hmm-text-muted) !important;
}

/* ============================================
   SIDEBAR（PC表示時）
   ============================================ */
#sidebar,
.sidebar {
    background: var(--hmm-bg-secondary);
    color: var(--hmm-text);
}
.sidebar .widget,
.sidebar .widget-title {
    color: var(--hmm-text);
}
.sidebar .widget-title {
    border-bottom: 2px solid var(--hmm-accent);
}

/* ============================================
   FOOTER
   ============================================ */
#footer,
.footer,
.footer-bottom,
.footer-top,
.footer-in,
.footer-bottom-in,
.footer-bottom-logo,
.navi-footer,
.navi-footer-in,
.footer-left,
.footer-center,
.footer-right,
.copyright {
    background: var(--hmm-bg) !important;
    color: var(--hmm-text-muted) !important;
    border-top: 1px solid var(--hmm-border);
}
.footer a,
.navi-footer a,
.footer-bottom a,
.copyright a {
    color: var(--hmm-text-sub) !important;
}
.navi-footer a:hover {
    color: var(--hmm-accent) !important;
}

/* ============================================
   RESPONSIVE FINE-TUNING
   ============================================ */

/* Small phones */
@media (max-width: 374px) {
    .hmm-card-grid--2col {
        grid-template-columns: 1fr;
    }
    .hmm-cta__btn {
        font-size: 1rem;
        padding: 16px 20px;
    }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 1023px) {
    .hmm-single-works {
        padding: var(--hmm-gap-lg);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hmm-card-grid--2col {
        grid-template-columns: repeat(3, 1fr);
    }
    .hmm-card-grid--3col {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   CONTACT FORM 7 STYLING
   ============================================ */
.wpcf7 {
    max-width: 640px;
}
.wpcf7-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--hmm-text-sub);
    margin-bottom: 6px;
    margin-top: var(--hmm-gap);
}
.wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    padding: 12px 14px;
    background: var(--hmm-bg-card);
    color: var(--hmm-text);
    border: 1px solid var(--hmm-border);
    border-radius: var(--hmm-radius);
    font-family: var(--hmm-font-base);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}
.wpcf7-form-control:not(.wpcf7-submit):focus {
    outline: none;
    border-color: var(--hmm-accent);
    box-shadow: 0 0 0 3px var(--hmm-accent-glow);
}
.wpcf7-textarea {
    min-height: 180px;
    resize: vertical;
}
.wpcf7-submit {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: var(--hmm-gap-lg) 0;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--hmm-accent), #cc0029);
    color: #fff;
    border: none;
    border-radius: var(--hmm-radius);
    font-family: var(--hmm-font-base);
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px var(--hmm-accent-glow);
}
.wpcf7-submit:hover {
    background: linear-gradient(135deg, #cc0029, var(--hmm-accent));
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--hmm-accent-glow);
}
.wpcf7-response-output {
    margin: var(--hmm-gap) 0;
    padding: 12px;
    border-radius: var(--hmm-radius);
    font-size: 0.9rem;
}
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background: rgba(255, 0, 51, 0.1);
    border: 1px solid var(--hmm-accent);
    color: var(--hmm-accent-light);
}
.wpcf7-mail-sent-ok {
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid #00c853;
    color: #69f0ae;
}
.wpcf7-not-valid-tip {
    color: var(--hmm-accent);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ============================================
   固定ページ共通（プライバシー等）
   ============================================ */
.page .article-body h2,
.page .entry-content h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--hmm-text);
    margin: var(--hmm-gap-xl) 0 var(--hmm-gap) 0;
    padding: 10px 14px;
    background: rgba(255, 0, 51, 0.08);
    border-left: 4px solid var(--hmm-accent);
    border-radius: var(--hmm-radius);
}
.page .article-body h3,
.page .entry-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hmm-accent-light);
    margin: var(--hmm-gap-lg) 0 10px 0;
}
.page .entry-content p {
    color: var(--hmm-text-sub);
    line-height: 1.9;
}
.page .entry-content ul,
.page .entry-content ol {
    color: var(--hmm-text-sub);
}
.page .entry-content table th {
    background: rgba(255, 0, 51, 0.08);
    color: var(--hmm-accent-light);
    font-weight: 700;
}
.page .entry-content table td {
    color: var(--hmm-text);
}
