:root {
    --color-primary: #D94F7C;
    --color-secondary: #F49AB8;
    --color-accent: #FFB74D;
    --color-text: #333;
    --color-text-secondary: #666;
    --color-border: #e8d5dc;
    --color-bg: #fdf5f7;
    --sidebar-width: 240px;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    color: var(--color-text);
    background: #fdf5f7;
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.02em;
    font-family: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
}

.logo-image {
    height: 80px;
    width: auto;
    max-width: 100%;
    display: block;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-nav a {
    font-size: 0.9rem;
    color: var(--color-text);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
    background: var(--color-bg);
    color: var(--color-primary);
}


/* Main Layout */
.main-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    padding: 2rem 1rem;
    border-right: 1px solid var(--color-border);
    position: sticky;
    top: 100px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    background: #fff;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    color: var(--color-text);
    transition: all 0.2s;
}

.nav-item:hover {
    background: var(--color-bg);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #fff;
    font-weight: 600;
}

.nav-icon {
    font-size: 1.25rem;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    min-width: 0;
    max-width: 880px;
    margin: 0 auto;
    width: 100%;
    background: #fff;
}

/* Mobile Categories (丸型デザイン) */
.mobile-categories {
    display: none;
    gap: 1rem;
    padding: 1.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
}

.mobile-categories::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s;
}

.category-pill .pill-circle {
/*    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0f0f0;*/
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
    transition: all 0.2s;
    /*border: 2px solid transparent;*/
}

.category-pill.active .pill-circle {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.category-pill .pill-label {
    font-size: 0.625rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

/* Sections */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

/* Article Section (マイベマガジン風) */
.article-section {
    margin-top: 0;
    margin-bottom: 3rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.article-card {
    display: block;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateY(-4px);
    opacity: 0.9;
}

.article-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    padding: 1rem 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-date {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

/* 記事個別ページのメインタイトルのみ、2行制限を解除して全文表示する */
.article-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    /* 以下の4行を復活させます（これでトップページが直ります） */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 信頼性セクション(一番下) */
.trust-section {
    background: linear-gradient(135deg, #f9fdf9 0%, #ffffff 100%);
    padding: 3rem 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    margin-top: 3rem;
}

.trust-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.trust-text {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.badge-icon {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

/* Footer */
.footer {
    background: #2a2a2a;
    color: #d0d0d0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-col p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #b0b0b0;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    font-size: 0.875rem;
    color: #b0b0b0;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #404040;
    padding: 1.5rem 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: #888;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

    .mobile-categories {
        display: flex;
    }

    .main-content {
        padding: 1.5rem;
    }

    .article-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .logo-image {
        height: 80px;
    }

    .header-inner {
        height: 70px;
    }

    .logo-text-sub {
        display: none;
    }

    .header-nav {
        gap: 0.5rem;
    }

    .header-nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 80px;
    }

    .header-inner {
        height: 60px;
        padding: 0 1rem;
    }

    .logo-text-main {
        font-size: 1.25rem;
    }

    .main-content {
        padding: 1rem;
    }

    .mobile-categories {
        padding: 1rem 0;
        gap: 0.75rem;
    }

    .category-pill.active .pill-circle {
    /* background: var(--color-primary); */ /* 背景削除 */
    color: var(--color-primary);            /* 文字色を緑にする */
    /* border-color: var(--color-primary); */ /* 枠線削除 */
    border-bottom: 2px solid var(--color-primary); /* 下線だけ引くと分かりやすい（お好みで） */
}

    .trust-section {
        padding: 2rem 1.5rem;
    }

    .trust-badges {
        flex-direction: column;
        gap: 1rem;
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .article-title {
        font-size: 0.9375rem;
    }

    .article-excerpt {
        font-size: 0.8125rem;
    }
}
 
/* ========================================
@media (max-width: 768px) {
    .logo-image {
        height: 60px;
    }
    .page-container {
        padding: 2rem 1rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-section h2 {
        font-size: 1.5rem;
    }

    .concept-list {
        gap: 1rem;
    }

    .concept-item {
        padding: 1rem;
    }
}


/* ========================================
   下層ページ用スタイル（シンプル版）
   ======================================== */

.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
}

.lead {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
}

.page-section {
    margin-bottom: 2.5rem;
}

.page-section h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    margin: 2rem 0 1rem;
}

.page-section h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1.5rem 0 0.75rem;
}

.page-section p,
.page-section li {
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.page-section ul {
    margin-left: 1.5rem;
}

.page-section a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* コンセプトリスト */
.concept-list {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.concept-item {
    padding: 1.25rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.concept-item h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.concept-item p {
    margin: 0;
    color: var(--color-text-secondary);
}

/* リスト */
.content-list,
.policy-list,
.contact-notes {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* 情報ボックス */
.info-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

/* フォーム */
.contact-form {
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-group .required {
    color: #dc3545;
    font-size: 0.875rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

.form-actions {
    margin-top: 1.5rem;
}

.contact-methods {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.contact-method {
    padding: 1.25rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.contact-method h3 {
    margin: 0 0 0.5rem 0;
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
}

.policy-date {
    text-align: right;
    margin-top: 2rem;
    color: var(--color-text-secondary);
}

.page-cta {
    text-align: center;
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 2rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-secondary);
}

.btn-secondary {
    background: #fff;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: #fff;
}

@media (max-width: 768px) {
    .page-container {
        padding: 2rem 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
}


/* レスポンシブ: ヘッダーロゴ調整 */
@media (max-width: 768px) {
    .header-inner {
        padding: 0.75rem 1rem;
    }
    
    .logo-image {
        height: 80px;
    }
    
    .header-nav {
        gap: 0.75rem;
    }
    
    .header-nav a {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 80px;
    }
    
    .header-nav {
        gap: 0.5rem;
    }
    
    .header-nav a {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }
}


/* ========================================
   記事ページ用スタイル
   ======================================== */

/* パンくずリスト */
.breadcrumb {
    background: #f9f9f9;
    border-bottom: 1px solid var(--color-border);
}

.breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.breadcrumb a {
    color: var(--color-primary);
    transition: opacity 0.2s;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: var(--color-text-secondary);
}

.breadcrumb .current {
    color: var(--color-text);
}

/* 記事コンテナ */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

/* 記事コンテンツ */
.article-content {
    background: #fff;
}

/* 記事ヘッダー */
.article-header {
    margin-bottom: 2rem;
}

.article-category {
    margin-bottom: 1rem;
}

.category-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.875rem;
    border-radius: 2rem;
    transition: background 0.2s;
}

.category-tag:hover {
    background: var(--color-secondary);
}

.article-title {
    font-size: 2.25rem;
    font-weight: bold;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* アイキャッチ画像 */
.article-eyecatch {
    margin: 0 0 2.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.article-eyecatch img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* 記事本文 */
.article-body {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--color-text);
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--color-primary);
    margin: 2.5rem 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-border);
}

.article-body h3 {
    font-size: 1.375rem;
    font-weight: bold;
    color: var(--color-text);
    margin: 0rem 0 1rem;
}

.article-body h4 {
    font-size: 1.125rem;
    font-weight: bold;
    margin: 1.5rem 0 0.75rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.article-body a {
    color: var(--color-primary);
    text-decoration: underline;
}

.article-body a:hover {
    opacity: 0.7;
}

/* 情報ボックス */
.info-box,
.warning-box {
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    border-left: 4px solid;
}

.info-box {
    background: #e8f4fd;
    border-left-color: #2196f3;
}

.info-box h4 {
    margin: 0 0 0.75rem 0;
    color: #2196f3;
}

.warning-box {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.warning-box h4 {
    margin: 0 0 0.75rem 0;
    color: #f57c00;
}

.info-box p,
.warning-box p {
    margin: 0;
}

/* テーブル */
.article-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9375rem;
}

.article-table th,
.article-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border: 1px solid var(--color-border);
}

.article-table thead th {
    background: var(--color-primary);
    color: #fff;
    font-weight: bold;
}

.article-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

/* 記事フッター */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border);
}

.article-tags {
    margin-bottom: 1.5rem;
}

.tag-label,
.share-label {
    font-weight: bold;
    margin-right: 0.75rem;
    color: var(--color-text-secondary);
}

.tag {
    display: inline-block;
    padding: 0.35rem 0.875rem;
    margin: 0 0.5rem 0.5rem 0;
    background: #f0f0f0;
    color: var(--color-text);
    font-size: 0.875rem;
    border-radius: 1rem;
    transition: background 0.2s;
}

.tag:hover {
    background: var(--color-bg);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    transition: transform 0.2s, opacity 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.share-btn.twitter {
    background: #000;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.line {
    background: #06c755;
    font-size: 0.75rem;
}

/* サイドバー */
.article-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 2.5rem;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-border);
}

/* 関連記事 */
.related-articles {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.related-article a {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.related-article a:hover {
    background: #f9f9f9;
}

.related-article img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.related-article-content {
    flex: 1;
}

.related-article h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.related-article time {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}

/* サイドバーカテゴリ */
.sidebar-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-categories li {
    margin-bottom: 0.75rem;
}

.sidebar-categories a {
    display: block;
    padding: 0.75rem 1rem;
    background: #f9f9f9;
    color: var(--color-text);
    border-radius: 4px;
    transition: all 0.2s;
}

.sidebar-categories a:hover {
    background: var(--color-primary);
    color: #fff;
}

/* レスポンシブ */
@media (max-width: 1024px) {
    .article-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .article-container {
        padding: 2rem 1rem;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body h3 {
        font-size: 1.25rem;
    }
    
    .related-article img {
        width: 60px;
        height: 60px;
    }

    .article-table th,
    .article-table td {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
}


/* 記事カードリンク対応 */
.article-card {
    position: relative;
}

.article-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.article-link:hover .article-title {
    color: var(--color-primary);
}

/* プロモーション表記 */
.pr-notice {
    font-size: 0.85rem;
    color: #666;
    text-align: right;
    margin-bottom: 20px;
}

/* 著者プロフィール枠 */
.author-profile {
    display: flex;
    align-items: center;
    background-color: #f7f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    gap: 20px;
}

.author-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-label {
    display: block;
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.author-info p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* アフィリエイトCTAボックス */
.cta-box {
    background-color: #fff;
    border: 2px solid #ffcc00;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.cta-title {
    color: #d35400;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.cta-box p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.3s;
    min-width: 160px;
}

.cta-btn:hover {
    opacity: 0.8;
}

.cta-amazon {
    background-color: #f3a847;
    border: 1px solid #a88734;
    color: #111;
}

.cta-rakuten {
    background-color: #bf0000;
}

/* 情報ボックス＆警告ボックス (テンプレートにない場合の補足) */
.info-box {
    background-color: #e3f2fd;
    border-left: 5px solid #2196f3;
    border: none;
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 0 4px 4px 0;
}

.warning-box {
    background-color: #fff3e0;
    border-left: 5px solid #ff9800;
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 0 4px 4px 0;
}

.info-box h4, .warning-box h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .author-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-btn {
        width: 100%;
    }
}

/* =========================================
   記事ページ用追加スタイル (ここから下を追記)
   ========================================= */

/* --- プロモーション表記 --- */
.pr-notice {
    font-size: 0.85rem;
    color: #666;
    text-align: right;
    margin-bottom: 20px;
}

/* --- 著者プロフィール枠 --- */
.author-profile {
    display: flex;
    align-items: center;
    background-color: #f7f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    gap: 20px;
}

.author-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-label {
    display: block;
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.author-info p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* --- アフィリエイトCTAボックス --- */
.cta-box {
    background-color: #fff;
    border: 2px solid #ffcc00;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.cta-title {
    color: #d35400;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.cta-box p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.3s;
    min-width: 160px;
}

.cta-btn:hover {
    opacity: 0.8;
}

.cta-amazon {
    background-color: #f3a847;
    border: 1px solid #a88734;
    color: #111;
}

.cta-rakuten {
    background-color: #bf0000;
}

/* --- 情報ボックス＆警告ボックス --- */
.info-box {
    background-color: #e3f2fd;
    border-left: 5px solid #2196f3;
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 0 4px 4px 0;
}

.warning-box {
    background-color: #fff3e0;
    border-left: 5px solid #ff9800;
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 0 4px 4px 0;
}

.info-box h4, .warning-box h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* --- よくある質問（FAQ）セクション --- */
.faq-section {
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.faq-section h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #333;
}

.faq-item {
    margin-bottom: 25px;
    background-color: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 15px;
}

.faq-question {
    font-size: 1.1rem;
    color: #d35400;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
    display: flex;
    align-items: baseline;
}

.faq-question::before {
    content: "Q.";
    font-size: 1.3rem;
    color: #e67e22;
    margin-right: 8px;
    font-weight: 900;
}

.faq-answer {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    padding-left: 28px;
    position: relative;
}

.faq-answer::before {
    content: "A.";
    font-size: 1.3rem;
    color: #27ae60;
    font-weight: 900;
    position: absolute;
    left: 0;
    top: -2px;
}

/* --- サイドバー（関連記事） --- */
.article-sidebar {
    background-color: #fcfcfc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.1rem;
    color: #333;
    border-bottom: 2px solid #8fc31f; /* サイトカラーに合わせて調整 */
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.related-articles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-article a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
    border-radius: 4px;
    padding: 5px;
}

.related-article a:hover {
    background-color: #f0f0f0;
}

.related-article img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.related-article-content h4 {
    font-size: 0.9rem;
    margin: 0 0 5px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-content time {
    font-size: 0.75rem;
    color: #888;
}

.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    margin-bottom: 10px;
}

.sidebar-categories a {
    text-decoration: none;
    color: #555;
    display: block;
    padding: 5px 0;
    transition: color 0.2s;
}

.sidebar-categories a:hover {
    color: #8fc31f; /* サイトカラーに合わせて調整 */
    padding-left: 5px;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .author-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-btn {
        width: 100%;
    }
}

/* --- 会話（吹き出し）デザイン --- */
.chat-area {
    margin: 30px 0;
    padding: 0 10px;
}

.chat-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

/* 右側（人間）のレイアウト */
.chat-box.right {
    flex-direction: row-reverse;
}

/* アイコン画像 */
.chat-face {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.chat-face img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chat-name {
    font-size: 0.7rem;
    text-align: center;
    margin-top: 4px;
    color: #666;
    display: block;
}

/* 吹き出し部分 */
.chat-text {
    position: relative;
    padding: 15px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 左側（鳥）の吹き出し色 */
.chat-box.left .chat-text {
    background-color: #fff8e1; /* 薄い黄色 */
    border: 2px solid #ffecb3;
    color: #5d4037;
}

/* 右側（人間）の吹き出し色 */
.chat-box.right .chat-text {
    background-color: #e3f2fd; /* 薄い青 */
    border: 2px solid #bbdefb;
    color: #333;
}

/* 吹き出しのしっぽ（左） */
.chat-box.left .chat-text::before {
    content: "";
    position: absolute;
    top: 20px;
    left: -10px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #ffecb3;
}

/* 吹き出しのしっぽ（右） */
.chat-box.right .chat-text::before {
    content: "";
    position: absolute;
    top: 20px;
    right: -10px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #bbdefb;
}

/* --- 手順（ステップ）リストのデザイン（タイムライン風） --- */
ol.step-list {
    counter-reset: number;
    list-style-type: none !important;
    padding: 0;
    margin: 20px 0;
}

ol.step-list li {
    position: relative;
    padding-left: 45px; /* 数字と線のスペース確保 */
    padding-bottom: 25px; /* 次の項目までの余白（ここで線の長さを調整） */
    margin-bottom: 0;
    font-weight: bold;
    color: #444;
    line-height: 1.6;
}

/* 最後の項目だけ余白をなくす */
ol.step-list li:last-child {
    padding-bottom: 0;
    margin-bottom: 20px;
}

/* 数字（①、②...）のデザイン */
ol.step-list li::before {
    counter-increment: number;
    content: counter(number);
    position: absolute;
    left: 0;
    top: 0; /* 位置調整 */
    width: 32px;
    height: 32px;
    background: #ff9800; /* 丸の色（オレンジ） */
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-size: 1.1rem;
    font-weight: bold;
    z-index: 2; /* 線より手前に表示 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* つなぐ棒（縦線）のデザイン */
ol.step-list li::after {
    content: "";
    position: absolute;
    left: 15px; /* 丸の中心（32pxの半分 - 線の太さの半分） */
    top: 32px;  /* 丸の下からスタート */
    height: 100%; /* 下まで伸ばす */
    width: 2px;   /* 線の太さ */
    background: #ffe0b2; /* 丸より薄いオレンジ色 */
    z-index: 1;
}

/* 最後の項目の棒は消す */
ol.step-list li:last-child::after {
    display: none;
}
/* --- 商品紹介カード（Gridレイアウト版） --- */
.item-link-card {
    display: grid;
    /* PCの配置： [画像] [説明] */
    /* [画像] [ボタン] */
    grid-template-columns: 120px 1fr; /* 左:120px, 右:残り全部 */
    grid-template-rows: auto auto;    /* 高さは成り行き */
    gap: 10px 20px; /* 縦の隙間10px, 横の隙間20px */
    
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 1. 画像エリア */
.item-image {
    /* PC: 左側の列で、上から下までぶち抜き */
    grid-row: 1 / 3; 
    grid-column: 1 / 2;
    
    text-align: center;
    align-self: start; /* 上寄せ */
}

.item-image img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

/* 2. 説明エリア */
.item-info {
    /* PC: 右上のセル */
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    min-width: 0;
}

.item-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.item-desc {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* 3. ボタンエリア */
.item-buttons {
    /* PC: 右下のセル */
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    
    display: flex;
    gap: 10px;
    align-self: end; /* 下寄せ */
}

/* 共通ボタンデザイン */
.btn-shop {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 10px 0;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    color: #fff;
    transition: opacity 0.2s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.btn-shop:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* 各ショップの色 */
.btn-shop.amazon { background: #dda835; color: #fff;}
.btn-shop.rakuten { background: #cb2726; color: #fff;}
.btn-shop.yahoo { background: #3384c3; color: #fff;}


/* --- スマホ対応（レイアウト変更） --- */
@media (max-width: 600px) {
    .item-link-card {
        padding: 12px;
        gap: 12px; /* 隙間を調整 */
        
        /* スマホの配置： [画像] [説明] */
        /* [ ボ タ ン ] */
        grid-template-columns: 80px 1fr; /* 左:80px, 右:残り */
    }

    .item-image {
        /* スマホ: 画像は上段左のみ */
        grid-row: 1 / 2;
        grid-column: 1 / 2;
        align-self: center; /* 上下中央 */
    }

    .item-image img {
        max-height: 80px; /* 画像小さく */
    }

    .item-info {
        /* スマホ: 説明は上段右 */
        grid-row: 1 / 2;
        grid-column: 2 / 3;
        align-self: center;
    }

    .item-title {
        font-size: 0.95rem;
        margin-bottom: 5px;
        border: none; /* 線を消す */
        padding: 0;
    }

    .item-desc {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* 2行で省略 */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .item-buttons {
        /* スマホ: ボタンは下段で全幅（左〜右までぶち抜き） */
        grid-row: 2 / 3;
        grid-column: 1 / 3;
        
        width: 100%;
        gap: 5px;
    }
    
    .btn-shop {
        padding: 8px 0;
        font-size: 0.75rem;
    }
}
img {
	width: 100%;
}

/* 【修正版】記事個別ページのメインタイトルのみ、2行制限を解除して全文表示する */
.article-content h1.article-title {
    display: block !important;
    -webkit-line-clamp: none !important;
    overflow: visible !important;
    font-size: 1.5rem; /* ※メインタイトルなので、もし文字を大きくしたければここで調整できます */
}

/* ============================================
   目次（Table of Contents）- とりペ共通
   info-box / warning-box と同じデザインシステム
   ============================================ */

/* --- ボックス本体 --- */
.toc-box {
  background: #fffdf8;
  border: 1.5px solid #e6ddd0;
  border-radius: 8px;
  padding: 0;
  margin: 32px 0 40px;
  overflow: hidden;
}

/* --- ヘッダー（クリックで開閉） --- */
.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  background: #faf6f0;
  border-bottom: 1px solid #ece4d8;
  transition: background 0.2s ease;
}

.toc-header:hover {
  background: #f5efe6;
}

.toc-title {
  font-size: 15px !important;
  font-weight: 700;
  color: #5a4a3a;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}


/* --- 開閉アイコン --- */
.toc-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9a8b7a;
  font-weight: 500;
  white-space: nowrap;
}

.toc-toggle-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1.5px solid #cdc0b0;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s ease, border-color 0.2s ease;
}

.toc-toggle-icon::before,
.toc-toggle-icon::after {
  content: "";
  position: absolute;
  background: #9a8b7a;
  border-radius: 1px;
  transition: opacity 0.3s ease;
}

/* 横線（常に表示） */
.toc-toggle-icon::before {
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

/* 縦線（閉じている時に表示 → ＋になる） */
.toc-toggle-icon::after {
  top: 50%;
  left: 50%;
  width: 1.5px;
  height: 10px;
  transform: translate(-50%, -50%);
  opacity: 0;
}

/* 閉じている状態：＋マーク */
.toc-box.is-closed .toc-toggle-icon::after {
  opacity: 1;
}

/* ホバー時 */
.toc-header:hover .toc-toggle-icon {
  border-color: #8a7a6a;
}

/* --- トグルのラベルテキスト --- */
/*.toc-toggle-label::before {
  content: "閉じる";
}

.toc-box.is-closed .toc-toggle-label::before {
  content: "開く";
}*/

/* --- コンテンツ（開閉アニメーション） --- */
.toc-content {
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
  padding: 16px 20px 20px;
  opacity: 1;
}

.toc-box.is-closed .toc-content {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

/* 閉じている時のヘッダーボーダーを消す */
.toc-box.is-closed .toc-header {
  border-bottom-color: transparent;
}

/* --- H2レベル（番号付きリスト） --- */
.toc-list {
  list-style: none;
  counter-reset: toc-counter;
  margin: 0;
  padding: 0;
}

.toc-list > li {
  counter-increment: toc-counter;
  margin-bottom: 4px;
  line-height: 1.6;
}

.toc-list > li:last-child {
  margin-bottom: 0;
}

/* --- H2リンク --- */
.toc-list > li > a {
  display: inline;
  color: #5a4a3a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.toc-list > li > a::before {
  content: counter(toc-counter) ". ";
  color: #c49a6c;
  font-weight: 700;
  font-size: 14px;
}

.toc-list > li > a:hover {
  color: #c49a6c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- H3レベル（ネスト） --- */
.toc-list > li > ul {
  list-style: none;
  margin: 3px 0 6px 18px;
  padding: 0;
}

.toc-list > li > ul > li {
  margin-bottom: 1px;
  line-height: 1.5;
}

/* --- H3リンク --- */
.toc-list > li > ul > li > a {
  display: inline;
  color: #8a7a6a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.toc-list > li > ul > li > a::before {
  content: "- ";
  color: #c9bbaa;
  font-size: 13px;
}

.toc-list > li > ul > li > a:hover {
  color: #c49a6c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================
   スムーズスクロール & アンカーオフセット
   ============================================ */

html {
  scroll-behavior: smooth;
}

[id^="section"] {
  scroll-margin-top: 80px;
}

/* ============================================
   レスポンシブ
   ============================================ */

@media (max-width: 768px) {
  .toc-box {
    margin: 24px 0 32px;
  }

  .toc-header {
    padding: 14px 16px;
  }

  .toc-content {
    padding: 14px 16px 16px;
  }

  .toc-title {
    font-size: 14px !important;
  }

  .toc-list > li > a {
    font-size: 13px;
  }

  .toc-list > li > ul {
    margin-left: 14px;
  }

  .toc-list > li > ul > li > a {
    font-size: 12.5px;
  }
}

@media (max-width: 480px) {
  .toc-header {
    padding: 12px 14px;
  }

  .toc-content {
    padding: 12px 14px 14px;
  }

  .toc-list > li > a {
    font-size: 12.5px;
  }

  .toc-list > li > ul > li > a {
    font-size: 12px;
  }

  .toc-toggle-label {
    display: none;
  }
}

/* ==========================================
   Ranking Comparison Site Components
   ========================================== */

/* セクション全体のリズム */
.main-content > section {
    margin-bottom: 4.5rem;
}

.main-content > section:last-child {
    margin-bottom: 2rem;
}

/* セクションタイトル装飾強化 */
.main-content > section > h2 {
    font-size: 1.5rem;
    color: #2b2b2b;
    margin: 0 0 2rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(90deg, #fff5f8 0%, #ffffff 100%);
    border-left: 6px solid var(--color-primary);
    border-radius: 6px;
    font-weight: 800;
    position: relative;
}

.main-content > section > h2::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--color-secondary);
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* 本文段落の余白と行間 */
.main-content p {
    margin-bottom: 1.25rem;
    line-height: 1.9;
}

/* ヒーロー */
.ranking-hero {
    background: linear-gradient(135deg, #fff5f8 0%, #ffecf2 50%, #ffdce6 100%);
    padding: 3.5rem 2rem;
    border-radius: 16px;
    margin: 2rem 0 4rem;
    text-align: center;
    border: 1px solid #f2d5de;
    box-shadow: 0 6px 20px rgba(217, 79, 124, 0.08);
}

.ranking-hero h1,
.ranking-hero-title {
    font-size: 1.75rem;
    line-height: 1.5;
    color: #2b2b2b;
    margin-bottom: 1rem;
    font-weight: 800;
}

.ranking-hero-update {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--color-primary);
    background: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.ranking-hero-sub-title {
    display: inline-block;
    font-size: 1rem;
    color: #666;
    font-weight: 600;
    margin-top: 0.5rem;
}

.ranking-hero-lead {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
    margin: 1.25rem auto;
    max-width: 680px;
    text-align: left;
}

.ranking-criteria-title {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px dashed var(--color-secondary);
    text-align: left;
}

.ranking-criteria-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    counter-reset: criteria-counter;
    text-align: left;
}

.ranking-criteria-list li {
    counter-increment: criteria-counter;
    padding: 0.6rem 0.75rem 0.6rem 2.5rem;
    position: relative;
    background: #fdf5f7;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.ranking-criteria-list li::before {
    content: counter(criteria-counter);
    position: absolute;
    left: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.ranking-criteria-disclaimer {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.75rem;
    text-align: left;
}

.ranking-quick-table-main {
    margin: 0;
}

.ranking-quick-table-main td small {
    display: block;
    color: #888;
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.article-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.ranking-hero .hero-conclusion {
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 700;
    margin: 1.25rem 0;
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(217, 79, 124, 0.1);
}

/* 選定基準ボックス */
.ranking-criteria {
    background: #fff;
    border: 2px solid var(--color-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.ranking-criteria h2 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px dashed var(--color-secondary);
}

.ranking-criteria ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.ranking-criteria li {
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    position: relative;
    background: #fdf5f7;
    border-radius: 6px;
    font-size: 0.95rem;
}

.ranking-criteria li::before {
    content: "✓";
    position: absolute;
    left: 0.75rem;
    color: var(--color-primary);
    font-weight: 900;
}

/* ランキング早見表 */
.ranking-quick-table {
    margin: 2.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ranking-quick-table table {
    width: 100%;
    min-width: 640px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.ranking-quick-table th {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    padding: 1rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    border: none;
}

.ranking-quick-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #f2e2e8;
    vertical-align: middle;
    text-align: center;
}

.ranking-quick-table tr:last-child td {
    border-bottom: none;
}

.ranking-quick-table tr:hover td {
    background: #fdf5f7;
}

/* ランキングカード(各アプリ詳細) */
.ranking-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin: 3rem 0;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    border-left: 8px solid var(--color-secondary);
    position: relative;
}

.ranking-card > * + * {
    margin-top: 1.25rem;
}

.ranking-card h2 + *,
.ranking-card h3 + * {
    margin-top: 1rem;
}

.ranking-card table {
    margin: 1.5rem 0;
}

.ranking-card ul,
.ranking-card ol {
    padding-left: 1.5rem;
    line-height: 1.9;
}

.ranking-card ul li,
.ranking-card ol li {
    margin-bottom: 0.4rem;
}

.ranking-card.rank-1 {
    border-left-color: #FFD700;
    background: linear-gradient(to right, #fffdf0 0%, #ffffff 20%);
}

.ranking-card.rank-2 {
    border-left-color: #C0C0C0;
}

.ranking-card.rank-3 {
    border-left-color: #CD7F32;
}

.ranking-card h3,
.ranking-card h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    color: #2b2b2b;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 800;
}

/* 順位バッジ */
.ranking-badge-1,
.ranking-badge-2,
.ranking-badge-3,
.ranking-badge-4,
.ranking-badge-5 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    font-family: Georgia, serif;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.ranking-badge-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.ranking-badge-2 {
    background: linear-gradient(135deg, #C0C0C0, #808080);
}

.ranking-badge-3 {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
}

.ranking-badge-4,
.ranking-badge-5 {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
}

/* 評価スコア */
.ranking-score {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff5f8;
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0.5rem 0 1rem;
    border: 1px solid #f2d5de;
}

.ranking-score::before {
    content: "★";
    color: #FFB74D;
}

/* メリット/デメリット2カラム */
.ranking-pros,
.ranking-cons {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin: 0.75rem 0;
}

.ranking-pros {
    background: #f0f9f4;
    border: 1px solid #c8e6d0;
}

.ranking-cons {
    background: #fdf0f0;
    border: 1px solid #f0c8c8;
}

.ranking-pros h4,
.ranking-cons h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.ranking-pros h4 {
    color: #2e7d4a;
}

.ranking-pros h4::before {
    content: "◎ ";
}

.ranking-cons h4 {
    color: #c0392b;
}

.ranking-cons h4::before {
    content: "△ ";
}

.ranking-pros ul,
.ranking-cons ul {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.95rem;
}

.ranking-pros li,
.ranking-cons li {
    margin-bottom: 0.35rem;
}

/* 実体験ブロック */
.ranking-experience {
    background: #fdf5f7;
    border-left: 4px solid var(--color-primary);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.8;
}

.ranking-experience::before {
    content: "💬 Sakiの体験談";
    display: block;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* CTAボタン */
.ranking-cta-primary {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 1.5rem auto;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #FF6B9B, #D94F7C);
    color: #fff !important;
    text-align: center;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(217, 79, 124, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
    line-height: 1.4;
}

.ranking-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 79, 124, 0.5);
    color: #fff !important;
}

.ranking-cta-primary::after {
    content: " ▶";
    display: inline-block;
    margin-left: 0.25rem;
}

.ranking-cta-secondary {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #fff;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.15s;
}

.ranking-cta-secondary:hover {
    background: var(--color-primary);
    color: #fff;
}

/* 選び方ガイド */
.selection-guide {
    background: #fff;
    border: 2px dashed var(--color-primary);
    border-radius: 12px;
    padding: 2rem 1.75rem;
    margin: 2.5rem 0;
}

.selection-guide h2 {
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.35rem;
}

.selection-guide ol {
    counter-reset: guide-counter;
    list-style: none;
    padding-left: 0;
}

.selection-guide ol > li {
    counter-increment: guide-counter;
    padding: 1rem 1rem 1rem 3.5rem;
    position: relative;
    background: #fdf5f7;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.selection-guide ol > li::before {
    content: counter(guide-counter);
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    font-family: Georgia, serif;
}

/* 5ステップフロー */
.flow-steps {
    counter-reset: flow-counter;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.flow-steps li {
    counter-increment: flow-counter;
    padding: 1.25rem 1.25rem 1.25rem 4rem;
    position: relative;
    background: #fff;
    border: 1px solid #f2d5de;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.flow-steps li::before {
    content: "STEP " counter(flow-counter);
    position: absolute;
    left: 1rem;
    top: 1.25rem;
    width: 2.5rem;
    color: var(--color-primary);
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.flow-steps li h4 {
    color: #2b2b2b;
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

/* セクション区切り装飾 */
.main-content > section + section::before {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 3px;
    margin: 0 auto 3rem;
    opacity: 0.6;
}

.main-content > section.ranking-hero + section::before {
    display: none;
}

/* カード内のh3装飾 */
.ranking-card h3 {
    font-size: 1.15rem;
    color: #2b2b2b;
    padding: 0.5rem 0 0.5rem 0.9rem;
    border-left: 4px solid var(--color-primary);
    margin: 1.75rem 0 1rem;
    font-weight: 700;
}

/* カード内の「向いてる・向いてない」ブロック */
.ranking-card .info-box,
.main-content .info-box {
    margin: 1.25rem 0;
    padding: 1.25rem 1.5rem;
    line-height: 1.9;
}

/* モバイル調整 */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }

    .main-content > section {
        margin-bottom: 3rem;
    }

    .main-content > section > h2 {
        font-size: 1.2rem;
        padding: 0.75rem 1rem;
    }

    .ranking-hero {
        padding: 2rem 1rem;
    }

    .ranking-hero h1 {
        font-size: 1.35rem;
    }

    .ranking-card {
        padding: 1.5rem 1.25rem;
        margin: 2rem 0;
    }
}

/* ==========================================
   Hero V2 (Visual FV) - 背景画像の空欄にテキストを重ねる
   ========================================== */

.hero-v2 {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: -2rem;
    margin-bottom: 3rem;
    aspect-ratio: 2688 / 1520;
    max-height: 1520px;
    overflow: hidden;
    background: #fff;
    isolation: isolate;
}

.hero-v2 + section::before {
    display: none !important;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* スクリーンリーダー用のみ(SEO/accessibility) */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* CTAボタン領域(参照画像内ボタン位置に透明リンクを重ねる) */
.hero-cta-area {
    position: absolute;
    bottom: 4%;
    left: 30%;
    width: 40%;
    height: 11%;
    border-radius: 999px;
    z-index: 3;
    cursor: pointer;
    background: transparent;
    transition: background 0.2s;
}

.hero-cta-area:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero-cta-area:focus-visible {
    outline: 3px solid #D94F7C;
    outline-offset: 2px;
}

/* =====================================================
   SWELL風 index.html スタイル (v3 シンプル版)
   ===================================================== */

/* ---- サイトヘッダー ---- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #f0e2e8;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 0.02em;
    text-decoration: none;
}

.site-nav {
    display: flex;
    gap: 2rem;
}

.site-nav a {
    font-size: 0.95rem;
    color: #2b2b2b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.site-nav a:hover {
    color: var(--color-primary);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    width: 100%;
    margin: 0 0 4rem;
    overflow: hidden;
    background: #fff;
}

.hero__image {
    width: 100%;
    aspect-ratio: 2688 / 1520;
    overflow: hidden;
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__cta-overlay {
    position: absolute;
    bottom: 4%;
    left: 30%;
    width: 40%;
    height: 11%;
    border-radius: 999px;
    z-index: 2;
    cursor: pointer;
    background: transparent;
    transition: background 0.2s;
}

.hero__cta-overlay:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero__cta-overlay:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* ---- セクション共通 ---- */
.section {
    padding: 5rem 0;
}

.section--intro,
.section--detail,
.section--guide,
.section--faq,
.section--author {
    background: #fff;
}

.section--ranking,
.section--compare,
.section--flow,
.section--related {
    background: #fdf5f7;
}

.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 2rem;
    padding-left: 1rem;
    border-left: 5px solid var(--color-primary);
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.section__subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2b2b2b;
    margin: 2.5rem 0 1rem;
}

.section__lead {
    font-size: 1rem;
    color: #444;
    line-height: 1.9;
    margin: 0 0 1.5rem;
}

.section__note {
    font-size: 0.85rem;
    color: #888;
    margin: 1rem 0 0;
}

/* ---- 結論ボックス ---- */
.conclusion-box {
    background: linear-gradient(135deg, #fff5f8, #ffecf2);
    border: 1px solid #f2d5de;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin: 2rem 0;
}

.conclusion-box__label {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.conclusion-box__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.conclusion-box__list li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    line-height: 1.7;
    font-size: 0.98rem;
}

.conclusion-box__list li::before {
    content: "◎";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 900;
}

/* ---- 選定基準リスト ---- */
.criteria-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    counter-reset: criteria;
}

.criteria-list li {
    counter-increment: criteria;
    padding: 0.75rem 0 0.75rem 2.5rem;
    position: relative;
    border-bottom: 1px solid #f2e2e8;
    line-height: 1.7;
}

.criteria-list li:last-child {
    border-bottom: none;
}

.criteria-list li::before {
    content: counter(criteria);
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ---- ランキング早見表 ---- */
.ranking-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
}

.ranking-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.9rem;
}

.ranking-table th {
    background: var(--color-primary);
    color: #fff;
    padding: 1rem 0.75rem;
    font-weight: 700;
    text-align: center;
    border: none;
}

.ranking-table td {
    padding: 1rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid #f2e2e8;
    vertical-align: middle;
}

.ranking-table tr:last-child td {
    border-bottom: none;
}

.ranking-table tr:hover td {
    background: #fdf5f7;
}

.app-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    background: #f0f0f0;
    color: #666;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.9rem;
}

.app-rank--1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
}

.app-rank--2 {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: #fff;
}

.app-rank--3 {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    color: #fff;
}

.app-score {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

/* ---- アプリ詳細カード ---- */
.app-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.app-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #f2e2e8;
    flex-wrap: wrap;
}

.app-card__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.app-card__tag {
    display: inline-block;
    background: #fdf5f7;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #f2c5d1;
}

.app-card__body {
    line-height: 1.9;
}

.app-card__desc {
    margin: 1rem 0;
    color: #444;
}

.app-card__closing {
    font-size: 0.95rem;
    color: #555;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: #fafafa;
    border-radius: 8px;
}

/* 料金表 */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.9rem;
    background: #fff;
    border: 1px solid #f2e2e8;
    border-radius: 8px;
    overflow: hidden;
}

.price-table th,
.price-table td {
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid #f2e2e8;
    text-align: left;
}

.price-table th {
    background: #fdf5f7;
    color: var(--color-primary);
    font-weight: 700;
    width: 40%;
}

.price-table tr:last-child th,
.price-table tr:last-child td {
    border-bottom: none;
}

/* メリット/デメリット */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.pros,
.cons {
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
}

.pros {
    background: #f0f9f4;
    border: 1px solid #c8e6d0;
}

.cons {
    background: #fdf0f0;
    border: 1px solid #f0c8c8;
}

.pros h4,
.cons h4 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.pros h4 {
    color: #2e7d4a;
}

.pros h4::before {
    content: "◎ ";
}

.cons h4 {
    color: #c0392b;
}

.cons h4::before {
    content: "△ ";
}

.pros ul,
.cons ul {
    margin: 0;
    padding-left: 1.2rem;
    line-height: 1.75;
    font-size: 0.9rem;
}

.pros li,
.cons li {
    margin-bottom: 0.35rem;
}

/* Sakiの声 */
.saki-voice {
    background: #fdf5f7;
    border-left: 4px solid var(--color-primary);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.9;
    color: #444;
}

.saki-voice::before {
    content: "💬 Sakiの声";
    display: block;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
}

/* ---- ボタン ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.15s;
    border: none;
    cursor: pointer;
    text-align: center;
    line-height: 1.4;
}

.btn--primary {
    background: linear-gradient(135deg, #FF6B9B, #D94F7C);
    color: #fff;
    box-shadow: 0 4px 16px rgba(217, 79, 124, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 79, 124, 0.4);
    color: #fff;
}

.btn--secondary {
    background: #fff;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn--sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* 中央寄せボタン用ラッパー */
.app-card .btn--primary {
    display: flex;
    max-width: 520px;
    margin: 1.5rem auto;
    padding: 1.15rem 1.5rem;
    font-size: 1.05rem;
}

/* ---- ガイドリスト ---- */
.guide-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    counter-reset: guide;
}

.guide-list > li {
    counter-increment: guide;
    padding: 1.25rem 1rem 1.25rem 4rem;
    position: relative;
    background: #fff;
    border: 1px solid #f2e2e8;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.guide-list > li::before {
    content: counter(guide);
    position: absolute;
    left: 1rem;
    top: 1.25rem;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}

.guide-list h3 {
    font-size: 1.05rem;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
    font-weight: 700;
}

/* ---- フロー ---- */
.flow-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.flow-item {
    padding: 1.5rem 1.5rem 1.5rem 5rem;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    line-height: 1.8;
}

.flow-item__step {
    position: absolute;
    left: 1.25rem;
    top: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    width: 3rem;
}

.flow-item h3 {
    font-size: 1.05rem;
    color: #1a1a1a;
    margin: 0 0 0.4rem;
    font-weight: 700;
}

/* ---- FAQ (details/summaryを使ったアコーディオン) ---- */
.faq-list {
    margin: 2rem 0;
}

.faq-item {
    background: #fff;
    border: 1px solid #f2e2e8;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-item[open] {
    box-shadow: 0 2px 12px rgba(217, 79, 124, 0.08);
}

.faq-question {
    padding: 1.25rem 3rem 1.25rem 3.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
    cursor: pointer;
    position: relative;
    list-style: none;
    line-height: 1.6;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::before {
    content: "Q";
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.faq-question::after {
    content: "＋";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--color-primary);
    transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
    content: "−";
}

.faq-answer {
    padding: 0 1.25rem 1.25rem 3.5rem;
    line-height: 1.9;
    color: #444;
    font-size: 0.95rem;
}

/* ---- 関連記事カード ---- */
.related-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.related-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s, box-shadow 0.15s;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.related-card h3 {
    font-size: 1.05rem;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
    line-height: 1.5;
    font-weight: 700;
}

.related-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ---- 運営者ミニ ---- */
.author-mini {
    background: #fdf5f7;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.author-mini h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin: 0 0 1rem;
    font-weight: 800;
}

.author-mini p {
    margin: 0 0 1rem;
    line-height: 1.9;
    color: #444;
}

/* ---- サイトフッター ---- */
.site-footer {
    background: #2b2b2b;
    color: #e0e0e0;
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 0;
}

.site-footer__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.site-footer__col h4 {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 0.75rem;
    font-weight: 700;
}

.site-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__col li {
    margin-bottom: 0.5rem;
}

.site-footer__col a {
    color: #c0c0c0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.site-footer__col a:hover {
    color: #fff;
}

.site-footer__logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.site-footer__copy {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2.5rem;
    border-top: 1px solid #444;
    font-size: 0.85rem;
    color: #888;
}

/* ---- モバイル調整 ---- */
@media (max-width: 768px) {
    .site-header__inner {
        padding: 0.75rem 1rem;
    }

    .site-nav {
        gap: 1rem;
    }

    .site-nav a {
        font-size: 0.85rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section__title {
        font-size: 1.35rem;
    }

    .app-card {
        padding: 1.5rem 1.25rem;
        margin: 2rem 0;
    }

    .app-card__title {
        font-size: 1.2rem;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .related-cards {
        grid-template-columns: 1fr;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .flow-item {
        padding: 1.25rem 1rem 1.25rem 4rem;
    }

    .guide-list > li {
        padding: 1rem 1rem 1rem 3.5rem;
    }
}

/* 吹き出し枠内テキスト(左上) */
.hero-slot-bubble {
    position: absolute;
    top: 9%;
    left: 22%;
    transform: translateX(-50%);
    font-size: clamp(0.8rem, 1.2vw, 1.1rem);
    font-weight: 700;
    color: #2b2b2b;
    margin: 0;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.hero-slot-bubble .slot-accent {
    color: #D94F7C;
    font-weight: 900;
}

/* メダル枠内テキスト(左下寄り) */
.hero-slot-medal {
    position: absolute;
    top: 72%;
    left: 6.5%;
    transform: translate(-50%, -50%);
    font-size: clamp(0.7rem, 0.85vw, 0.82rem);
    font-weight: 800;
    color: #a96a27;
    text-align: center;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.03em;
}

/* 3特徴アイコン横のテキスト(下中央) */
.hero-slot-features {
    position: absolute;
    top: 72%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: clamp(3rem, 7vw, 6rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-slot-feat {
    font-size: clamp(0.72rem, 0.95vw, 0.88rem);
    font-weight: 700;
    color: #2b2b2b;
    line-height: 1.45;
    text-align: left;
    padding-left: clamp(1.8rem, 2.5vw, 2.5rem);
    white-space: nowrap;
}

/* CTAボタン(画像、下中央) */
.hero-cta-image {
    position: absolute;
    bottom: 6.5%;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    transition: transform 0.15s ease-out, filter 0.15s;
    border-radius: 999px;
    pointer-events: auto;
}

.hero-cta-image:hover {
    transform: translateX(-50%) translateY(-3px);
    filter: brightness(1.05);
}

.hero-cta-image img {
    width: clamp(360px, 38vw, 620px);
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 22px rgba(217, 79, 124, 0.4));
    border-radius: 999px;
}

/* モバイル調整 */
@media (max-width: 768px) {
    .hero-v2 {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-top: -1rem;
        min-height: 460px;
    }

    .hero-bg img {
        object-position: 70% center;
    }

    .hero-v2::before {
        background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.65) 45%,
            rgba(255, 255, 255, 0.2) 80%,
            rgba(255, 255, 255, 0) 100%);
    }

    .hero-content {
        padding: 1.5rem 1.25rem 2rem;
    }

    .hero-catch img {
        max-width: 260px;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.35;
    }

    .hero-medal img {
        width: 110px;
    }

    .hero-cta-primary {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .hero-features {
        padding: 1.25rem 0.5rem;
        width: 100vw;
        margin-left: calc(50% - 50vw) !important;
    }

    .hero-features-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .hero-feature-item {
        padding: 1rem 0.5rem;
        border-bottom: 1px solid #f0d5e0;
    }

    .hero-feature-item:not(:last-child)::after {
        display: none;
    }

    .hero-feature-item:last-child {
        border-bottom: none;
    }

    .ranking-card h2,
    .ranking-card h3 {
        font-size: 1.2rem;
    }

    .ranking-badge-1,
    .ranking-badge-2,
    .ranking-badge-3,
    .ranking-badge-4,
    .ranking-badge-5 {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.95rem;
    }

    .ranking-cta-primary {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }

    .selection-guide ol > li {
        padding: 1rem 1rem 1rem 3rem;
    }
}

/* =====================================================
   re-koi.jp トップページ用 (記事一覧ハブ)
   既存 tori-pedia 風の .category-pill / .article-grid / .article-card を上書き
   ===================================================== */

/* カテゴリフィルター */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 2.5rem;
    padding: 0;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-pill {
    display: inline-block;
    flex: 0 0 auto;
    padding: 0.55rem 1.25rem;
    background: #fff;
    border: 1.5px solid #f2d5de;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    font-family: inherit;
    /* tori-pedia の .pill-circle 等の子要素構造を無効化 */
    width: auto;
    height: auto;
}

.category-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.category-pill.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* 記事グリッド(再定義) */
.article-section {
    margin: 0 0 4rem;
}

.article-section > .section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 1.5rem;
    padding-left: 1rem;
    border-left: 5px solid var(--color-primary);
    line-height: 1.4;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 0;
}

.article-grid__empty {
    grid-column: 1 / -1;
    padding: 3rem 1rem;
    text-align: center;
    color: #888;
    font-size: 0.95rem;
}

/* 記事カード(SWELL風、BEM命名で上書き) */
.article-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* 既存の .article-card の height/border 等を無効化 */
    border: 1px solid #f2e2e8;
    height: auto;
    padding: 0;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    color: inherit;
    border-color: #f2d5de;
}

.article-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fdf5f7;
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card__image img {
    transform: scale(1.03);
}

.article-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.article-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    color: #888;
    flex-wrap: wrap;
}

.article-card__category {
    display: inline-block;
    background: #fdf5f7;
    color: var(--color-primary);
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
}

.article-card__date::before {
    content: "📅 ";
    margin-right: 0.1em;
}

.article-card__readtime::before {
    content: "⏱ ";
    margin-right: 0.1em;
}

.article-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.55;
    margin: 0 0 0.75rem;
    /* 2行で省略 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__excerpt {
    font-size: 0.88rem;
    line-height: 1.75;
    color: #666;
    margin: 0;
    /* 3行で省略 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 運営者ミニセクション(トップページ専用) */
.author-section-top {
    margin: 4rem 0 0;
}

.author-section-top .author-mini {
    max-width: 720px;
    margin: 0 auto;
}

/* モバイル調整 */
@media (max-width: 768px) {
    .category-pills {
        margin-bottom: 1.5rem;
    }

    .category-pill {
        padding: 0.5rem 1rem;
        font-size: 0.82rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-card__title {
        font-size: 1rem;
    }

    .article-card__body {
        padding: 1rem 1.25rem 1.25rem;
    }
}