/*
Theme Name: ゴム報知新聞 NEXT
Description: ゴム報知新聞のフル幅対応モダンテーマ
Version: 1.0.0
*/

/* 検索入力欄のフォーカス時の青い枠線を消すためのリセット */
input:focus { outline: none; }

/* ロード時のフワッと表示されるアニメーション */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }

/* PRエリアの横スクロールバーを非表示にする */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* スマホ用横スワイプを促すアイコンアニメーション */
@keyframes swipe-x {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-4px); }
}
.animate-swipe-x {
    animation: swipe-x 1.5s ease-in-out infinite;
}

/* PRエリア専用の無限スクロールアニメーション */
@keyframes pr-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}
.animate-pr-marquee {
    display: flex;
    width: max-content;
    animation: pr-marquee 40s linear infinite;
}
.animate-pr-marquee:hover {
    animation-play-state: paused; 
}

/* =========================================
   記事本文のベーススタイル
========================================= */
.article-body p {
    margin-bottom: 1.5em;
    line-height: 1.8;
    color: #333;
}
.article-body a {
    color: #005ba1;
    text-decoration: underline;
}
.article-body a:hover {
    opacity: 0.8;
}

/* =========================================
   記事内ギミックのスタイル
========================================= */
/* 1. スクロール連動ハイライトマーカー（黄色） */
.marker-yellow {
    background-image: linear-gradient(transparent 60%, #fff000 60%);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 0% 100%;
    transition: background-size 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    font-weight: bold;
}
.marker-yellow.is-active {
    background-size: 100% 100%;
}

/* 2. テキストリンクのホバーギミック（背景スライド） */
.article-body a.gimmick-link {
    position: relative;
    text-decoration: none;
    color: #005ba1;
    font-weight: bold;
    padding: 0 4px;
    z-index: 1;
    transition: color 0.3s ease;
}
.article-body a.gimmick-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3ba2f2;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}
.article-body a.gimmick-link:hover {
    color: #003b6b;
    opacity: 1;
}
.article-body a.gimmick-link:hover::after {
    height: 100%;
    background-color: #e0f2fe;
}

/* 3. 画像のホバーギミック（ふわりと浮く＋ズーム） */
.article-image-wrapper {
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    display: inline-block;
    max-width: 100%;
}
.article-image-wrapper img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}
.article-image-wrapper:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}
.article-image-wrapper:hover img {
    transform: scale(1.04);
}

/* 4. 引用・重要ポイントのホバーギミック（右にスライドして浮く） */
.gimmick-quote {
    position: relative;
    background: #f8fafc;
    border-left: 5px solid #a4ce4e; 
    padding: 1.5em 1.5em 1.5em 2.5em;
    margin: 2em 0;
    border-radius: 0 6px 6px 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}
.gimmick-quote::before {
    content: '“';
    position: absolute;
    top: -15px;
    left: 10px;
    font-size: 5em;
    color: rgba(164, 206, 78, 0.15);
    font-family: serif;
    line-height: 1;
    transition: color 0.4s ease, transform 0.4s ease;
    z-index: -1;
}
.gimmick-quote:hover {
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateX(6px) translateY(-2px);
    border-left-color: #8cc63f;
}
.gimmick-quote:hover::before {
    color: rgba(164, 206, 78, 0.3);
    transform: rotate(-8deg) scale(1.1);
}
.gimmick-quote p:last-child {
    margin-bottom: 0;
}

/* 1. スクロール連動ハイライトマーカー（黄色） */
.is-style-marker-yellow {
    background-image: linear-gradient(transparent 60%, #fff000 60%);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 0% 100%;
    transition: background-size 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    font-weight: bold;
    display: inline; /* 段落全体ではなく文字部分だけに色を引くため */
}
.is-style-marker-yellow.is-active {
    background-size: 100% 100%;
}

/* 3. 画像のホバーギミック（ふわりと浮く＋ズーム） */
.is-style-hover-zoom {
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    display: inline-block;
    max-width: 100%;
}
.is-style-hover-zoom img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}
.is-style-hover-zoom:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}
.is-style-hover-zoom:hover img {
    transform: scale(1.04);
}

/* 4. 引用・重要ポイントのホバーギミック（右にスライドして浮く） */
.is-style-custom-quote {
    position: relative;
    background: #f8fafc;
    border-left: 5px solid #a4ce4e; 
    padding: 1.5em 1.5em 1.5em 2.5em;
    margin: 2em 0;
    border-radius: 0 6px 6px 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}
.is-style-custom-quote::before {
    content: '“';
    position: absolute;
    top: -15px;
    left: 10px;
    font-size: 5em;
    color: rgba(164, 206, 78, 0.15);
    font-family: serif;
    line-height: 1;
    transition: color 0.4s ease, transform 0.4s ease;
    z-index: -1;
}
.is-style-custom-quote:hover {
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateX(6px) translateY(-2px);
    border-left-color: #8cc63f;
}
.is-style-custom-quote:hover::before {
    color: rgba(164, 206, 78, 0.3);
    transform: rotate(-8deg) scale(1.1);
}
.is-style-custom-quote p:last-child {
    margin-bottom: 0;
}

/* =========================================
   目次ブロックのデザイン
========================================= */
.is-style-custom-toc {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    border-radius: 0.125rem;
    margin-bottom: 2.5rem;
    margin-top: 2rem;
}
.is-style-custom-toc h2,
.is-style-custom-toc h3 {
    font-weight: bold;
    font-size: 17px;
    color: #000;
    margin-bottom: 1rem;
    margin-top: 0;
}
.is-style-custom-toc ul {
    list-style-type: disc;
    list-style-position: inside;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    padding: 0;
}
.is-style-custom-toc ul li {
    margin-bottom: 0.75rem;
}
.is-style-custom-toc ul li a {
    color: #005ba1;
    text-decoration: underline;
}
.is-style-custom-toc ul li a:hover {
    opacity: 0.8;
}

/* =========================================
   記事内ページネーション（ページャー）のデザイン
========================================= */
.article-body .custom-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3.5rem;
    margin-bottom: 4rem;
}
.article-body .custom-pager a,
.article-body .custom-pager span.current {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-weight: bold;
    font-size: 13px;
    border-radius: 0.125rem;
    transition: all 0.3s;
    text-decoration: none;
}
.article-body .custom-pager span.current {
    background-color: #3ba2f2;
    color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: default;
}
.article-body .custom-pager a {
    background-color: #f0f0f0;
    color: #4b5563;
}
.article-body .custom-pager a:hover {
    background-color: #d1d5db;
    opacity: 1; /* 本文リンクのホバー透過を打ち消し */
}
/* =========================================
   アーカイブ用ページネーションのデザイン
========================================= */
.pagination-wrapper ul.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pagination-wrapper ul.page-numbers li a,
.pagination-wrapper ul.page-numbers li span.current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 0.5rem;
    font-weight: bold;
    font-size: 13px;
    border-radius: 0.125rem;
    transition: all 0.3s;
    text-decoration: none;
}
.pagination-wrapper ul.page-numbers li span.current {
    background-color: #3ba2f2;
    color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.pagination-wrapper ul.page-numbers li a {
    background-color: #f0f0f0;
    color: #4b5563;
}
.pagination-wrapper ul.page-numbers li a:hover {
    background-color: #d1d5db;
}

/* =========================================
   ラバーインダストリー専用ギミック
========================================= */
/* Swiperボタン */
.swiper-button-next, .swiper-button-prev {
    color: #005ba1 !important;
    background: white;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    transform: scale(1.1);
    background: #f0f8ff;
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: 900 !important;
}

/* ボタンのキラッと光る(Shine)アニメーション */
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(25deg);
    animation: shine 4s infinite;
}
@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* 記事カード：ふわりと浮く＋画像ズーム */
.card-hover-effect {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover-effect:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    border-color: #3ba2f2;
}
.card-hover-effect .img-wrap img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.card-hover-effect:hover .img-wrap img {
    transform: scale(1.08);
}
/* 矢印アイコンアニメーション */
.group:hover .arrow-icon {
    transform: translateX(5px);
}