/* 
 * Howto BOX スタイルシート
 * 記事一覧と記事詳細ページのスタイル
 */

/* 1. ヒーローセクション */
.hero-section {
    background-color: #f8f8f8;
    background-image: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.hero-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.hero-description {
    font-size: 1.4rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

/* サービス一覧ページと同様のCTAボタンスタイルを適用 */
.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* 検索ボックス */
.search-box {
    max-width: 500px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 1rem;
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. カテゴリーカードセクション */
.category-section {
    padding: 70px 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    font-weight: bold;
    position: relative;
}

.section-title span {
    background: #fff;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    /* テキスト部分の背景色をはっきりさせて線を隠す */
    display: inline-block;
}

.section-title:before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #eee;
    z-index: 0;
    /* テキストの後ろに表示されるようにする */
    pointer-events: none;
}

.category-grid {
    position: relative;
    max-width: 100%;
    margin-top: 40px;
    padding: 0 15px;
}

.category-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    margin-bottom: 25px;
}

.category-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    min-height: 250px;
    justify-content: space-between;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* カルーセルナビゲーション */
.carousel-nav {
    display: none; /* PCデフォルトでは非表示 */
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.carousel-prev,
.carousel-next {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--color-primary);
    width: 10px;
    height: 10px;
}

.category-icon {
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-card-shopify .category-icon {
    color: #5e8e3e;
}

.category-card-marketplace .category-icon {
    color: #ff9900;
}

.category-card-lpo .category-icon {
    color: #f24242;
}

.category-card-ads .category-icon {
    color: #4285f4;
}

.category-card-line .category-icon {
    color: #06c755;
}

.category-card-creative .category-icon {
    color: #f06292;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0;
    color: #333;
}

.category-title small {
    font-size: 1.2rem; /* 12px相当に変更、補足情報なので小さめ */
    opacity: 0.8;
    display: inline; /* 表示に正す */
    font-weight: normal;
}

.category-desc {
    display: block; /* 表示に正す */
    font-size: 1.5rem; /* 15px相当 */
    color: #666;
    margin: 10px 0 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.category-link {
    display: inline-flex; /* 表示に正す */
    color: var(--color-primary);
    font-weight: 600;
    align-items: center;
    margin-top: auto;
    font-size: 1.5rem; /* 15px相当 */
}

.category-link i {
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.category-card:hover .category-link i {
    transform: translateX(3px);
}

/* お役立ちサービスセクション */
.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.service-item {
    width: calc(33.333% - 20px);
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.service-image {
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
}

.service-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.service-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.service-button-container {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.service-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.service-link:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.service-cta {
    text-align: center;
    margin-top: 30px;
}

/* レスポンシブデザイン */
@media (max-width: 992px) {
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-cards {
        grid-template-columns: 1fr;
    }
}

/* 3. 特集ブロックセクション */
.featured-block-section {
    padding: 70px 0;
    background-color: #fff;
}

.featured-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.featured-block {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 30px;
}

.featured-block-icon {
    font-size: 2.5rem;
    margin-right: 20px;
}

.featured-block-pillar .featured-block-icon {
    color: #f24242;
}

.featured-block-whitepaper .featured-block-icon {
    color: #4285f4;
}

.featured-block-webinar .featured-block-icon {
    color: #06c755;
}

.featured-block-content {
    flex-grow: 1;
}

.featured-block-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 1.3rem; /* 13px相当に変更、タグなので少し小さめ */
    font-weight: bold;
    margin-bottom: 10px;
}

.featured-block-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.featured-block-desc {
    font-size: 1.5rem; /* 15px相当に変更 */
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.featured-block-link {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    font-size: 1.5rem; /* 15px相当に変更 */
    text-decoration: none;
}

.featured-block-link i {
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.featured-block-link:hover i {
    transform: translateX(3px);
}

/* 4. 新着記事セクション */
.article-grid-section {
    padding: 70px 0;
    background-color: #fff;
}

.posts-section {
    padding: 70px 0;
    background-color: #fff;
}

.posts-section .section-title {
    margin-bottom: 40px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.post-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ピラー記事のスタイル */
.post-card-featured {
    border: 2px solid var(--color-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.post-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

/* カテゴリーバッジはテンプレートの.badge badge-primaryクラスに置き換えました */

.post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-title {
    font-size: 1.8rem; /* 18px相当に変更、見出しなので大きめ */
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #333;
}

.post-excerpt {
    font-size: 1.5rem; /* 15px相当に変更 */
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    font-size: 1.3rem; /* 13px相当に調整、引用部分のメタ情報は少し小さめに */
    color: #888;
    border-top: 1px solid #f0f0f0;
}

.post-author {
    display: flex;
    align-items: center;
}

.post-author-image {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 8px;
}

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

.post-date {
    font-size: 0.85rem;
}

.view-all-articles {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* ボタンクラスはテンプレートの.btn-outline-primaryクラスに置き換えました */

/* 5. 成功事例スライダー */
.case-studies-section {
    padding: 70px 0;
    background-color: #f9f9f9;
}

.case-studies-container {
    position: relative;
    overflow-x: auto; /* 横スクロールを許可 */
    overflow-y: hidden; /* 縦スクロールは防止 */
    padding: 10px 0 20px 0; /* 下部にスクロールバー用のスペースを確保 */
    margin-bottom: 30px;
    /* スクロールバーを表示 */
    scrollbar-width: thin; /* Firefox用 */
    -ms-overflow-style: auto; /* IE、Edge用 */
    scroll-snap-type: x mandatory; /* スクロールスナップを追加 */
    -webkit-overflow-scrolling: touch; /* iOSのスムーズスクロール */
    cursor: grab; /* スクロール可能を示すカーソル */
}

/* ドラッグ中のカーソル */
.case-studies-container:active {
    cursor: grabbing;
}

/* Chrome、Safari、Opera用のスクロールバーカスタマイズ */
.case-studies-container::-webkit-scrollbar {
    height: 8px; /* 横スクロールバーの高さ */
    display: block;
}

/* スクロールバーのトラック（背景部分） */
.case-studies-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

/* スクロールバーのサム（動かす部分） */
.case-studies-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

/* サムにホバーしたとき */
.case-studies-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.case-studies-slider {
    display: flex;
    gap: 30px;
    width: max-content; /* 各カードがスムーズに横に并ぶようにする */
    scroll-behavior: smooth;
    position: relative;
    padding: 10px 0; /* スクロールに余裕を持たせるためのパディング */
    touch-action: pan-x; /* タッチデバイスでの横スクロールを許可 */
}

.case-study-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    /* カード幅を800pxに変更 */
    width: 800px;
    min-width: 800px;
    max-width: 800px;
    flex: 0 0 800px;
    scroll-snap-align: center; /* スクロールスナップの位置 */
    /* アニメーション効果追加 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

@media (min-width: 992px) {
    .case-study-item {
        flex-direction: row;
        /* 3つのカードが見えるように幅を調整 */
        width: calc(33.333% - 20px);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .case-study-item {
        /* タブレットでは2つのカードが見えるように */
        width: calc(50% - 15px);
    }
}

.case-study-image {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
}

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

.case-study-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.case-study-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.case-study-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}

.case-study-desc {
    font-size: 1.5rem; /* 15px相当に変更 */
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.case-study-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 1.5rem;
    color: #888;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: bold;
    color: #f24242;
}

.case-study-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.5rem; /* 15px相当に変更 */
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    text-decoration: none;
}

.case-study-link i {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.case-study-link:hover i {
    transform: translateX(3px);
}

/* カルーセルラッパーとボタン配置 */
.case-studies-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 auto;
    max-width: 100%;
}

.prev-btn,
.next-btn {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
}

.prev-btn {
    left: 0px;
}

.next-btn {
    right: 0px;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: #f5f5f5;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.prev-btn:active,
.next-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.case-studies-cta {
    text-align: center;
}

/* 6. 無料診断バナー */
.free-diagnosis-section {
    padding: 70px 0;
    background-color: #fff;
}

.diagnosis-banner {
    background: linear-gradient(135deg, #673ab7 0%, #512da8 100%);
    padding: 50px;
    border-radius: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 30px rgba(103, 58, 183, 0.2);
}

.diagnosis-banner-content {
    flex: 1;
}

.diagnosis-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.diagnosis-desc {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
    opacity: 0.9;
}

/* 診断バナーのボタンクラスはテンプレートの.btn-secondaryクラスに置き換えました */

.diagnosis-banner-image {
    flex: 0 0 300px;
    margin-left: 30px;
    display: none;
}

@media (min-width: 992px) {
    .diagnosis-banner-image {
        display: block;
    }
}

.diagnosis-banner-image img {
    max-width: 100%;
}

.cta-block h2 {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.cta-block p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

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

/* 7. メールマガジン登録セクション */
.newsletter-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.newsletter-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 992px) {
    .newsletter-content {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }
}

.newsletter-info {
    flex: 1;
}

.newsletter-subtitle {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: #333;
}

.newsletter-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.newsletter-benefits li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.newsletter-benefits li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--color-primary);
}

.newsletter-note {
    font-size: 1rem;
    color: #777;
    font-style: italic;
    margin-top: 15px;
    padding-left: 30px;
}

.newsletter-form {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.email-subscribe-form .form-group {
    display: flex;
    margin-bottom: 20px;
}

.email-input {
    flex-grow: 1;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.subscribe-btn {
    padding: 0 30px;
    border-radius: 0 4px 4px 0;
    font-weight: 600;
    font-size: 1rem;
}

.form-privacy {
    font-size: 0.9rem;
    color: #777;
}

.privacy-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.privacy-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.form-note {
    font-size: 0.85rem;
    color: #999;
    margin-top: 10px;
    margin-left: 24px;
}

/* 記事詳細ページ */
.article-header {
    background-color: #f8f8f8;
    padding: 60px 0;
}

.article-header-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.article-header-category {
    display: inline-block;
    background-color: #f24242;
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 1.4rem; /* 14px相当に変更、ラベルなので少し小さめ */
    font-weight: 600;
    margin-bottom: 15px;
}

.article-header-title {
    font-size: 2.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-header-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem; /* 15px相当に変更 */
    color: #666;
    gap: 20px;
}

.article-content-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.article-body {
    font-size: 1.5rem; /* 15px相当に変更 */
    line-height: 1.8;
    color: #333;
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f24242;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 30px 0 15px;
}

.article-body p {
    margin-bottom: 25px;
}

.article-body ul, .article-body ol {
    margin: 0 0 25px 20px;
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 8px;
}

.article-body blockquote {
    background-color: #f8f8f8;
    border-left: 4px solid #f24242;
    padding: 20px;
    margin: 25px 0;
    font-style: italic;
}

.article-body code {
    background-color: #f8f8f8;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

/* 関連記事セクション */
.related-articles {
    background-color: #f8f8f8;
    padding: 60px 0;
}

.related-articles h2 {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.back-to-list {
    text-align: center;
    margin: 60px 0;
}

.back-to-list a {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid #333;
    border-radius: 50px;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-to-list a:hover {
    background-color: #333;
    color: #fff;
}

/* レスポンシブスタイル */
@media (max-width: 992px) {
    .featured-blocks, .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .case-studies {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* タブレット表示用のカテゴリーカード設定 */
    .carousel-track {
        grid-template-columns: repeat(3, minmax(140px, 180px));
        grid-auto-flow: column;
        grid-auto-columns: minmax(140px, 180px);
        justify-content: center;
        gap: 15px;
    }
    
    .category-card {
        padding: 15px;
    }
    
    .category-icon {
        font-size: 2.5rem;
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .page-header, .article-header {
        padding: 40px 0;
    }
    
    .page-title, .article-header-title, .cta-block h2 {
        font-size: 2.2rem;
    }
    
    .page-description, .cta-block p {
        font-size: 1.5rem; /* 15px相当に変更 */
    }
    
    .article-grid-section {
        padding: 40px 0;
    }
    
    .filter-tabs {
        gap: 10px;
    }
    
    .filter-tab {
        padding: 6px 15px;
        font-size: 1.4rem; /* 14px相当に変更、タブなので少し小さめ */
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .article-body h2 {
        font-size: 1.6rem;
    }
    
    .article-body h3 {
        font-size: 1.3rem;
    }
    
    .related-articles h2 {
        font-size: 1.8rem;
    }
    
    /* カテゴリーカードセクションのレスポンシブ対応 */
    .category-grid {
        overflow: hidden;
    }
    
    .category-row {
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
        width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 0;
    }
    
    .category-row:first-child {
        margin-bottom: 20px;
    }
    
    .category-card {
        flex: 0 0 280px;
        margin: 0;
        scroll-snap-align: start;
    }
    
    .category-icon {
        font-size: 2.4rem;
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .category-title {
        font-size: 1.6rem;
    }
    
    /* カルーセルナビゲーションを表示 */
    .carousel-nav {
        display: flex;
        margin-top: 25px;
    }
    
    .sp-only {
        display: inline-block;
    }
}
    
    .pc-only {
        display: none;
    }


@media (max-width: 576px) {
    .page-title, .article-header-title, .cta-block h2 {
        font-size: 2rem;
    }
    
    .article-grid, .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-content-wrapper {
        margin: 40px auto;
    }
    
    .article-body {
        font-size: 1.5rem; /* 15px相当に変更 */
    }
    
    .article-body h2 {
        font-size: 1.4rem;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
    }
}

/* PC/スマホ表示切り替え */
.pc-only {
    display: block;
}

.sp-only {
    display: none;
}

@media (max-width: 767px) {
    .pc-only {
        display: none;
    }
    
    .sp-only {
        display: inline-block;
    }
}
