/*
Theme Name: pionics
Theme URI:
Template: lightning
Description:
Author:Reinevo
Tags:
Version: 0.6.1
*/


/* メインエリア調整 */

@media (min-width: 992px) {
    .main-section--col--two {
        width: 70%!important;
    }
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    background-color: #000;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

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

.slide-content {
    position: absolute;
    bottom: 80px;
    left: 40px;
    right: 40px;
    z-index: 10;
    color: white;
}

.badge {
    display: inline-block;
    background-color: #fbbf24;
    color: #000;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 12px;
}

.top-badge {
    display: inline-block;
    background-color: #fbbf24;
    color: #000;
    padding: 5px 16px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 12px;
}

.top-badge2 {
    display: inline-block;
    background-color: #fbbf24;
    color: #000;
    padding: 1px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.slide-category {
    display: inline-block;
    background-color: #dc2626;
    color: white;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.slide-title {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.slide-date {
    font-size: 16px;
    opacity: 0.9;
}


/* Navigation Arrows */

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-left {
    left: 20px;
}

.slider-arrow-right {
    right: 20px;
}

.slider-arrow svg {
    color: #000;
}


/* Pagination Dots */

.slider-pagination {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 12px;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.pagination-dot.active {
    background-color: #dc2626;
    width: 32px;
    border-radius: 6px;
}


/* Responsive Design */

@media (max-width: 768px) {
    .hero-slider {
        height: 500px;
    }
    .slide-content {
        bottom: 60px;
        left: 20px;
        right: 20px;
    }
    .slide-title {
        font-size: 28px;
    }
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    .slider-arrow-left {
        left: 12px;
    }
    .slider-arrow-right {
        right: 12px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 400px;
    }
    .slide-title {
        font-size: 22px;
    }
    .badge,
    .slide-category {
        font-size: 12px;
        padding: 6px 12px;
    }
}


/* カスタムヘッダーのスタイルを追加 */


/* ヘッダー全体 */

.pionics-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}


/* Removed border-bottom from header-top to eliminate boundary */

.header-top {
    /* border-bottom: 1px solid #e5e7eb; - removed */
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: right;
    align-items: stretch;
}

.header-cover {
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
}


/* Updated header-left to span full height of both header sections */

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2.5rem 1.5rem 0;
    background: #fff;
    /* position: absolute;
        left: 0;
        top: 0;
        bottom: 0; */
    z-index: 10;
}

.site-logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    justify-content: center;
    width: 200px;
}

.top-logo-right {
    width: 100px;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: bold;
    color: #dc2626;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1;
}


/* Updated separator to span full height */

.logo-separator {
    width: 1px;
    height: 100%;
    align-self: stretch;
    background: linear-gradient(to bottom, transparent, #d1d5db 10%, #d1d5db 90%, transparent);
}


/* Increased padding-left and moved header-right more to the right */

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0 0 0;
    padding-left: 320px;
    margin-left: auto;
}


/* Styled buttons for download and contact */

.header-btn {
    padding: 0.3rem 1rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 14px;
}

.btn-download {
    background: #06b6d4;
    color: white;
    box-shadow: 0 2px 4px rgba(6, 182, 212, 0.2);
}

.btn-download:hover {
    background: #0891b2;
    box-shadow: 0 4px 8px rgba(6, 182, 212, 0.3);
    transform: translateY(-1px);
}

.btn-contact {
    background: #dc2626;
    color: white;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
    border: solid 1px #e03131;
}

.btn-contact:hover {
    background: #fff;
    color: #e03131;
}

.company-name {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-left: 0.5rem;
}

.company-label {
    font-weight: 600;
    color: #dc2626;
    font-size: 1rem;
}

.company-full {
    font-size: 0.75rem;
    color: #6b7280;
}


/* ナビゲーションメニュー */

.header-nav {
    background: #fff;
}


/* Increased padding-left to align with adjusted logo space and moved icons more to the right */

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 320px;
    display: flex;
    gap: 3rem;
}

.menu-item {
    position: relative;
}


/* Increased gap between icon and text */

.menu-item>a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.menu-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.menu-item>a:hover .menu-icon {
    transform: scale(1.1);
}


/* ホバー時の下線アニメーション */

.menu-item>a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #dc2626;
    transition: width 0.3s ease;
}

.menu-item>a:hover::after,
.menu-item:hover>a::after {
    width: 100%;
}

.menu-item>a:hover {
    color: #dc2626;
}


/* メガメニュー */

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #f8fafc;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 250px;
    margin-top: 0.5rem;
    z-index: 100;
    border: 1px solid #e2e8f0;
}

.menu-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.mega-menu-content1 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0;
    padding: 0;
}

.mega-menu-content2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0;
}

.mega-menu-column {
    padding: 1.2rem 1.2rem 1rem 1.2rem;
    background: white;
    border-right: 1px solid #e2e8f0;
}

.mega-menu-column:last-child {
    border-right: none;
}

.mega-menu-column:nth-child(1) {
    /* background: linear-gradient(135deg, #fef3f2 0%, #ffffff 100%); */
    border-radius: 0.5rem;
}

.mega-menu-column:nth-child(2) {
    /* background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%); */
    border-radius: 0.5rem;
    padding-top: 0.5rem;
}

.mega-menu-column:nth-child(3) {
    /* background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%); */
    border-radius: 0.5rem;
    padding-top: 0.5rem
}

.mega-menu-column h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #dc2626;
}

.mega-menu-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu-column ul li {
    margin-bottom: 0.75rem;
}

.mega-menu-column ul li a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
    padding-left: 1rem;
}

.mega-menu-column ul li a::before {
    content: "→";
    position: absolute;
    left: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #dc2626;
}

.mega-menu-column ul li a:hover {
    color: #dc2626;
    padding-left: 1.5rem;
}

.mega-menu-column ul li a:hover::before {
    opacity: 1;
}


/* モバイルメニュートグル */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #1f2937;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* レスポンシブ対応 */

@media (max-width: 1024px) {
    .header-container {
        padding: 0 1rem;
    }
    .header-right {
        padding-left: 280px;
    }
    .main-menu {
        gap: 2rem;
        padding-left: 280px;
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 0.75rem 0;
    }
    .header-left {
        gap: 1rem;
        padding: 0;
        position: static;
        margin-left: 10px;
    }
    .header-right {
        padding-left: 0;
        padding-top: 0;
        margin-right: 10px;
    }
    .logo-separator {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .main-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 4rem 0 2rem;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }
    .main-menu.active {
        left: 0;
    }
    .menu-item {
        border-bottom: 1px solid #e5e7eb;
    }
    .menu-item>a {
        padding: 1rem 1.5rem;
    }
    .mega-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        min-width: auto;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .menu-item.active .mega-menu {
        max-height: 500px;
    }
.mega-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}
    .mega-menu-content {
        grid-template-columns: 1fr;
    }
    .mega-menu-column {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 1rem 1.5rem;
    }
    .mega-menu-column:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.25rem;
    }
    .logo-subtitle {
        font-size: 0.75rem;
    }
    .header-btn {
        padding: 0.3rem 0.55rem;
        font-size: 0.75rem;
    }
    .btn-contact {}
    .company-name {
        display: none;
    }
}


/* オーバーレイ（モバイルメニュー用） */

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }
}


/* Added section heading styles */

.section-heading {
    padding: 0 0 3rem 0;
    margin: 0;
}

.section-heading-container {
    /* max-width: 1400px; */
    margin: 0 auto;
}

.section-heading-content {
    position: relative;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.section-heading-content::before {
    content: "";
    position: absolute;
    left: 0;
    top: -7px;
    bottom: 0;
    width: 4px;
    background: #dc2626;
}

.section-heading-subtitle {
    font-size: 0.875rem;
    font-weight: 700;
    color: #dc2626!important;
    letter-spacing: 0.1em;
    margin: 0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


/* Added icon before subtitle text */


/* .section-heading-subtitle::before {
        content: "";
        display: inline-block;
        width: 20px;
        height: 20px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        flex-shrink: 0;
    } */

.popular-posts h2 {
    font-size: 22px;
}

.section-heading-title-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.section-heading-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0 1.5rem 0 0;
    border-radius: 0.25rem;
}


/* Added gradient line that fades from left to right */

.section-heading-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, #dc2626 0%, rgba(220, 38, 38, 0.5) 50%, rgba(220, 38, 38, 0) 100%);
    min-width: 100px;
}

@media (max-width: 768px) {
    .section-heading {
        padding: 1rem 0;
    }
    .section-heading-container {
        /* padding: 0 1rem; */
    }
    .section-heading-content {
        padding-left: 1.5rem;
    }
    .section-heading-title {
        font-size: 1.5rem;
    }
    .section-heading-title-wrapper {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .section-heading {
        padding: 1.5rem 0;
    }
    .section-heading-title {
        font-size: 1.5rem;
    }
    .section-heading-subtitle {
        font-size: 0.75rem;
    }
}


/* ウィジェット全体 */

.custom-tag-widget .widget-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 2px solid #ccc;
    /* 必要に応じて調整 */
    padding-bottom: 5px;
}


/* リスト全体のスタイルをリセット */

.custom-tag-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 10px!important;
}


/* 各タグアイテムのスタイル */

.custom-tag-widget li {
    display: flex;
    /* 横並び */
    justify-content: space-between;
    /* 左右に配置 */
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    align-items: center;
    margin-top: 0!important;
    margin-bottom: 0!important;
}


/* 記事数のスタイル */

.custom-tag-widget .count {
    color: #666;
    font-size: 0.9em;
    font-weight: bold;
    margin-left: 10px;
}


/* タグ名（リンク）のスタイル */

.custom-tag-widget li a {
    text-decoration: none;
    color: #333;
    flex-grow: 1;
    padding-right: 10px;
}


/* ------------------------------------- */


/* カスタムタグウィジェットのデザイン */


/* ------------------------------------- */


/* 矢印（>）を要素の右端に配置するための準備 */

.custom-tag-widget li {
    /* 既存のスタイルを再確認 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    /* 左右にパディングを追加して見栄えを良くする */
    border-bottom: 1px dashed #eee;
    /* ホバーエフェクトの準備 */
    transition: background-color 0.3s, color 0.3s;
    /* 色変化を滑らかにする */
    position: relative;
    /* 矢印の位置決め基準にする */
    cursor: pointer;
    /* マウスカーソルをポインターにする */
}


/* 記事数(count)の右側に矢印（>）を表示 */

.custom-tag-widget li::after {
    content: '>';
    /* 矢印の文字 */
    font-weight: bold;
    color: #ccc;
    /* 矢印のデフォルト色 */
    margin-left: 10px;
    transition: color 0.3s;
}


/* リンクテキストがリストの端まで広がるように修正 */

.custom-tag-widget li a {
    text-decoration: none;
    color: #333;
    flex-grow: 1;
    /* リンク全体がホバー領域になるように、paddingやmarginを調整 */
    padding: 0;
    margin-right: 10px;
    /* 記事数との間にスペース */
}


/* 記事数（カッコ書きの部分）の色設定 */

.custom-tag-widget .count {
    color: #666;
    font-weight: bold;
    transition: color 0.3s;
}


/* ------------------------------------- */


/* ホバーエフェクト */


/* ------------------------------------- */


/* 1. リスト要素全体にホバーした時 */

.custom-tag-widget li:hover {
    /* background-color: #f0f8ff; */
    background-color: #fce8e9;
    /* 背景色（薄い青など、任意のHEXコードを指定） */
}


/* 2. リンクテキストの色をホバー時に変更 */

.custom-tag-widget li:hover a {
    color: #de2327;
    /* テキストの色（青など、任意のHEXコードを指定） */
}


/* 3. 記事数（.count）の色をホバー時に変更 */

.custom-tag-widget li:hover .count {
    color: #de2327;
    /* 記事数の色 */
}


/* 4. 矢印（::after）の色をホバー時に変更 */

.custom-tag-widget li:hover::after {
    color: #de2327;
    /* 矢印の色 */
}


/* ------------------------------------- */


/* カスタムウィジェットの見出しデザイン */


/* ------------------------------------- */


/* 見出しのコンテナ（背景色と余白を設定） */

.custom-tag-widget .widget-header-custom {
    background-color: #1a2337;
    /* 濃い青/黒っぽい背景色（画像の色に合わせて調整） */
    color: #ffffff;
    /* テキストを白色に */
    padding: 10px 15px;
    /* 上下のパディングで高さを調整 */
    margin: -15px -15px 0 0;
    /* 親要素のパディングを相殺し、端まで広げる */
    /* 必要であれば border-radius の調整も */
}


/* 1. 英字ラベル (CATEGORY) のスタイル */

.custom-tag-widget .widget-category-label {
    display: block;
    /* 独立した行に */
    font-size: 0.75em;
    /* 小さめのフォントサイズ */
    font-weight: bold;
    color: #ff0000;
    /* 赤色（画像の色に合わせて調整） */
    margin-bottom: 3px;
    /* メインタイトルとの間隔 */
    letter-spacing: 0.1em;
    /* 文字間隔を調整 */
}


/* 2. メインタイトル (掲載メーカー) のスタイル */

.custom-tag-widget .widget-title-custom {
    color: #ffffff;
    /* 白色のテキスト */
    font-size: 1.2em;
    font-weight: bold;
    line-height: 1.2;
    margin: 0;
    /* h2タグのデフォルトマージンをリセット */
    padding: 0;
}


/*
   *** その他リスト部分のCSSは引き続き使用します ***
   リスト部分のデザイン（.custom-tag-widget li, .custom-tag-widget li:hover など）
   はそのまま活かしてください。
*/


/* CTA */


/* style.css に追記 */


/* ===================================== */


/* CTAセクションの基本スタイル */


/* ===================================== */

.cta-section-semicon {
    /* 外枠（画像のように角丸のボックス） */
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px 20px;
    /* 上下左右のパディング */
    margin: 30px auto;
    /* ページの真ん中に配置 */
    text-align: center;
    max-width: 800px;
    /* 最大幅を設定 */
}


/* ヘッダーエリアのスタイル */

.cta-section-semicon .cta-header {
    margin-bottom: 25px;
}


/* メインタイトル */

.cta-section-semicon h2 {
    font-size: 1.8em;
    font-weight: bold;
    color: #333333;
    /* 濃い目のテキスト色 */
    margin-top: 15px;
    margin-bottom: 0;
}


/* リードテキスト */

.cta-section-semicon .cta-lead-text {
    color: #666666;
    line-height: 1.8;
    margin-bottom: 30px;
}


/* ===================================== */


/* アイコンのスタイル */


/* ===================================== */

.cta-section-semicon .cta-icon-area {
    /* アイコンの円形の背景 */
    display: inline-flex;
    /* 中央寄せ */
    justify-content: center;
    align-items: center;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: #e0f2f7;
    /* 薄い水色（画像のデザイン） */
    border: 1px solid #b3e5fc;
    /* 明るい枠線 */
}

.cta-section-semicon .cta-icon-area i {
    /* アイコン本体の色とサイズ */
    font-size: 30px;
    color: #03a9f4;
    /* アイコンの色（水色系） */
}

.cta-style-contrast {
    /* 上下にアクセントラインを追加 */
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px 20px;
    margin: 30px auto;
    text-align: center;
    max-width: 800px;
    /* アクセントライン */
    border-top: 3px solid #d32f2f;
    border-bottom: 3px solid #d32f2f;
}


/* アイコンの色を赤系に設定 */

.cta-style-contrast .cta-icon-area {
    background-color: #ffebee;
    /* 薄い赤 */
    border: 1px solid #ef9a9a;
}

.cta-style-contrast .cta-icon-area i {
    color: #d32f2f;
    /* メインの赤 */
    font-size: 30px;
}

.cta-style-contrast .cta-header h2 {
    color: #333333;
}


/* プライマリボタン - 赤 */

.cta-style-contrast .primary-button {
    background-color: #d32f2f;
    color: #ffffff;
    border: 2px solid #d32f2f;
}

.cta-style-contrast .primary-button:hover {
    background-color: #c62828;
    border-color: #c62828;
}


/* セカンダリボタン - 枠線（青系） */

.cta-style-contrast .secondary-button {
    background-color: #ffffff;
    color: #039be5;
    /* 青系 */
    border: 2px solid #039be5;
}

.cta-style-contrast .secondary-button:hover {
    background-color: #e3f2fd;
    color: #0288d1;
}


/* プライバシー文言の強調 */

.cta-style-contrast .cta-privacy-bold {
    font-weight: bold;
    color: #333333;
}

.new-article li div img {
    width: 100%!important;
    object-fit: fill;
}


/* ===== 各投稿カード全体 ===== */

..wp-block-post-featured-image {
    overflow: hidden;
}

.post-top .wp-block-post {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* ===== hover時の動き ===== */

.post-top .wp-block-post:hover {
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.18);
}


/* ===== サムネイル画像 ===== */

.card-thumbnail {
    overflow: hidden;
}

.post-top .wp-block-post .card-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    overflow: hidden;
}


/* hover時に画像もわずかにズームイン（奥行き感） */

.post-top .wp-block-post:hover .card-thumbnail img {
    transform: scale(1.08);
    overflow: hidden;
}


/* ===== コンテンツ内の余白 ===== */

.post-top .wp-block-post .wp-block-group {
    padding: 16px;
}


/* ===== カテゴリーバッジ ===== */

.post-top .wp-block-post .card-category {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    margin-top: 15px;
    margin-left: 15px;
    text-decoration: none;
}

.post-top .wp-block-post .card-category a {
    text-decoration: none!important;
}


/* ===== タイトル ===== */

.post-top .wp-block-post .card-title a {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 22px;
}


/* hover時：メインカラーに変化 */

.post-top .wp-block-post:hover .card-title a {
    color: #dc2626;
}


/* ===== 抜粋 ===== */

.post-top .wp-block-post .card-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 10px 0 16px;
    transition: color 0.3s ease;
}


/* hover時：やや濃く */

.post-top .wp-block-post:hover .card-excerpt {
    color: #333;
}


/* ===== 日付 ===== */

.post-top .wp-block-post .card-date {
    font-size: 13px;
    color: #999;
    transition: color 0.3s ease;
}


/* hover時：文字も赤系に */

.post-top .wp-block-post:hover .card-date {
    color: #dc2626;
}


/* Lightningのグリッド間隔を調整（任意） */

..wp-block-querypost-top .wp-block-post {
    margin-bottom: 30px;
}


/* カード全体をクリック可能にする設定 */

.post-top .wp-block-post {
    position: relative;
}

.post-top .wp-block-post .card-title a {
    position: static;
    /* まずタイトルの通常リンクをリセット */
}


/* 疑似要素で全体リンク領域を拡張 */

.post-top .wp-block-post .card-title a::before {
    content: "";
    position: absolute;
    inset: 0;
    /* 全体をカバー */
    z-index: 1;
}


/* 特集 */

.special-card {
    border: 1px solid #e6e7eb;
    /* 普段の枠線（目立たない色） */
    transition: border-color 0.3s ease;
    /* ホバー効果を滑らかにする */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* 軽めのシャドウを追加 */
}

.special-card:hover {
    border: solid #de2327 1px;
}

.special-card div {
    margin-bottom: 0!important;
    gap: 0!important
}

.special-title {
    font-size: 22px!important;
    transition: color 0.3s ease;
    /* ホバー効果を滑らかにする */
}

.special-card:hover .special-title {
    color: #de2327;
    /* ホバー効果を滑らかにする */
}

.special-tag {
    color: #de2327;
    background-color: #fce8e9;
    padding: 3px 10px;
    display: inline-block;
    box-sizing: border-box;
    margin-top: -2px;
    margin-bottom: 8px!important;
    font-weight: bold;
    font-size: 14px!important;
}

.special-title {
    margin-bottom: 8px!important;
}

.special-img {
    height: 100%;
}

.special-img img {
    height: 100%;
}


/* コンテナ（カードを横並びにするため） */

.card-container {
    display: flex;
    flex-wrap: wrap;
    /* カードを折り返す */
    gap: 20px;
    /* カード間のスペース */
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 15px;
}


/* ★ カードの幅: 2列に設定 (20pxのgapを考慮して計算) ★ */

.service-card {
    /* (100% - 1 * 20px) / 2 = 49% */
    flex: 1 1 calc(50% - 10px);
    min-width: 300px;
    /* カードが小さくなりすぎないように最小幅を設定 */
    /* ... 既存のカードのスタイル（border, shadow, transitionなど） ... */
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}


/* --- タブレット対応 (992px以下で変更なし、2列を維持) --- */


/* (このメディアクエリは不要ですが、もし必要ならそのまま残します) */


/* --- スマートフォン対応 (約576px以下で適用) --- */

@media (max-width: 576px) {
    /* 1列表示にする */
    .service-card {
        flex: 1 1 100%;
        /* 全幅を使用 */
    }
}


/* カード全体の設定 */


/* ホバー時の効果 */

.service-card:hover {
    /* 枠線とシャドウを赤っぽく変更 */
    /* 赤系の枠線 */
    box-shadow: 0 6px 20px rgba(217, 83, 79, 0.25);
}


/* カード内部のレイアウト */

.card-content {
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 60px;
    overflow: hidden;
}


/* 新しく追加する画像のラッパーのスタイル */

.card-image-wrapper {
    width: 90px;
    height: 90px;
    /* ★ 角丸と切り取り設定をラッパーに適用！これが重要です ★ */
    border-radius: 8px;
    overflow: hidden;
    margin-right: 20px;
    display: flex;
    /* 画像の配置調整のため */
    justify-content: center;
    align-items: center;
}


/* 画像自体のスタイル修正 */

.card-icon {
    width: 100%;
    /* 親要素(ラッパー)のサイズに合わせる */
    height: 100%;
    object-fit: cover;
    /* 画像からは border-radius を削除（ラッパーが切り取るため） */
    /* transition は transform のみ残す */
    transition: transform 0.3s ease;
}


/* ホバー時のズーム効果 */

.service-card:hover .card-icon {
    transform: scale(1.2);
    /* ズームしても、ラッパーの角丸がキープされる */
}


/* テキストグループ */

.text-group {
    flex-grow: 1;
}


/* 見出し（日本語） */

.card-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    /* 通常は黒 */
    margin: 0 0 5px 0;
    transition: color 0.3s ease;
    /* ホバー時の変化を滑らかに */
}


/* ホバー時の見出しの文字色 */

.service-card:hover .card-title {
    color: #d9534f;
    /* 赤色に変更 */
}


/* サブタイトル（英語） */

.card-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}


/* 矢印ボタンのコンテナ */

.arrow-button {
    position: absolute;
    right: 0;
    width: 40px;
    height: 40px;
    background: #333;
    /* 通常は濃い色 */
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}


/* ホバー時の矢印ボタンの背景色 */

.service-card:hover .arrow-button {
    background: #d9534f;
    /* 赤色に変更 */
}


/* 矢印のSVGアイコン */

.arrow-button svg {
    width: 24px;
    height: 24px;
}


/* =========================================
   WordPress標準クエリーループ用デザイン
   対象ブロックに「news-list-block」クラスを追加
   ========================================= */

.news-list-block .wp-block-post {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
    border-radius: 3px;
    padding: 18px 16px;
    background-color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}


/* hover時（赤枠・赤文字・薄い赤背景） */

.news-list-block .wp-block-post:hover {
    border-color: #dc2626;
    color: #dc2626;
    background-color: #f5f5f5!important;
    box-shadow: 0 0 2px rgba(220, 38, 38, 0.2);
}


/* 投稿日・タグをまとめるためのラッパー */

.news-list-block .meta-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}


/* 投稿日 */

.news-list-block .wp-block-post-date {
    font-weight: 500;
    color: #333;
    font-size: 12px;
    margin-right: 20px!important;
}


/* タグ（デフォルトスタイル） */

.news-list-block .wp-block-post-terms {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 400;
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    background-color: #e5e7eb;
    margin: 0;
    pointer-events: none
}


/* タグが event の場合（黄色） */

.news-list-block .wp-block-post-terms a[href*="event"],
.news-list-block .wp-block-post-terms a:contains("event") {
    background-color: #facc15;
    color: #222;
}


/* タグが news の場合（グレー） */

.news-list-block .wp-block-post-terms a[href*="news"],
.news-list-block .wp-block-post-terms a:contains("news") {
    background-color: #e5e7eb;
    color: #333;
}


/* タイトル */

.news-list-block .wp-block-post-title {
    flex: 1;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    font-weight: normal;
}


/* hover時にタイトルも色変化 */

.news-list-block .wp-block-post:hover .wp-block-post-title a {
    color: #dc2626;
}


/* レスポンシブ対応 */

@media (max-width: 768px) {
    .news-list-block .wp-block-post {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    /* 日付とタグは横並び維持 */
    .news-list-block .meta-wrap {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }
}


/* CTA  */

.contact-demo-section {
    position: relative;
    background: url('https://pio-plus.com/wp-content/uploads/2025/12/top-contact-back-scaled.webp') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
}


/* 背景オーバーレイ */

.contact-demo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 35, 82, 0.5);
    z-index: 1;
    pointer-events: none;
}


/* ドットパターン */

.contact-demo-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 2;
    pointer-events: none;
}


/* 内側のコンテンツ */

.contact-demo-inner {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
}


/* タイトル */

.contact-demo-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.5;
}

.contact-demo-subtitle {
    margin-top: 10px;
    font-size: 1.1rem;
    opacity: 0.9;
}


/* ボタン配置 */

.contact-demo-buttons {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}


/* 白ボタン */

.btn-white {
    background: #fff;
    color: #002352;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-white:hover {
    background: #e9f0ff;
    transform: translateY(-3px);
}


/* 赤ボタン */

.btn-red {
    background: #dc2626;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-red:hover {
    background: #b91c1c;
    /* transform: translateY(-3px);3 */
}


/* スマホ対応 */

@media (max-width: 768px) {
    .contact-demo-section {
        padding: 40px 20px;
    }
    .contact-demo-title {
        font-size: 1.2rem;
    }
    .contact-demo-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .sp-only {
        display: inline;
    }
}

@media (min-width: 769px) {
    .sp-only {
        display: none;
    }
}


/* --- Footer 全体 --- */

.site-footer {
    background-color: #0d1c39;
    color: #cfd8e3;
    font-size: 0.95rem;
    padding: 80px 20px 20px;
}


/* --- コンテンツ配置 --- */

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 40px;
}


/* --- ロゴ部分 --- */

.footer-logo {
    font-size: 1.5rem;
    color: #dc2626;
    margin-bottom: 15px;
    font-weight: 700;
    width: 200px;
}

.footer-description {
    line-height: 1.7;
    color: #e0e6ef;
}


/* --- 各カラムタイトル --- */

.footer-title {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}


/* --- リンクリスト --- */

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #cfd8e3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #ffffff;
}


/* --- コピーライト部分 --- */

.footer-bottom {
    text-align: center;
    margin-top: 25px;
    font-size: 0.85rem;
    color: #9ca3af;
}


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

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .footer-inner {

    }
    .footer-logo {
        font-size: 1.3rem; 
         margin-bottom: 0;

    }
}


/* 固定ページheader */

.custom-page-header {
    background-color: #162846;
    padding: 30px 20px;
    text-align: left;
}

.custom-page-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    border-left: 4px solid #e63946;
    padding-left: 20px;
    padding: 5px 0 15px 20px;
    position: relative;
}

.custom-page-header-en {
    color: #e63946;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.custom-page-header-ja {
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    display: inline-block;
    padding-bottom: 5px;
    margin-top: 0;
    margin-bottom: 0;
}


/* 下線（右にフェードアウト） */

.custom-page-header-inner::after {
    content: "";
    position: absolute;
    left: 20px;
    /* 左端を揃える */
    right: 0;
    /* 親の右端まで */
    bottom: 10px;
    /* タイトルの下に配置 */
    height: 2px;
    /* 下線の太さ */
    background: linear-gradient( to right, #dc2626 0%, rgba(220, 38, 38, 0.5) 50%, rgba(220, 38, 38, 0) 100%);
    z-index: 1;
}

.news-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    margin-top: 50px;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.news-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.18);
}

.news-card:hover .news-card-img img {
    transform: scale(1.08);
}

.news-card-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    position: relative;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    object-fit: cover;
}

.news-card-cat {
    background: #dc2626;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    padding: 4px 10px;
    border-radius: 6px;
}

.news-card-body {
    padding: 16px;
}

.news-card-date {
    font-size: 14px;
    color: #777;
    margin-bottom: 0;
}

.news-card-title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 8px;
    line-height: 1.4;
    color: #000000;
    margin-bottom: 10px;
    line-height: 22px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-container a,
.pagination-container span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 2px solid #ccc;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1;
    white-space: nowrap;
    /* ← 「次へ」改行防止 */
}


/* ホバー時 */

.pagination-container a:hover {
    border-color: #d33;
    color: #d33;
}


/* 現在ページ */

.pagination-container .current {
    background-color: #d33;
    color: #fff;
    border-color: #d33;
}


/* 矢印ボタン（前へ・次へ）を少し小さく調整 */

.pagination-container a.prev,
.pagination-container a.next {
    font-size: 0.9em;
}


/* タイトルを赤にする */

.news-card:hover .news-card-title {
    color: #dc2626;
}

.news-desc,
.news-desc:hover {
    color: #666 !important;
    margin-bottom: 0;
    /* 任意の固定色 */
}

.page-header-style2 {
    background: #f7f8fa;
    padding: 40px 20px;
    text-align: center;
}

.page-numbers {
    margin-right: 10px;
}

.page-header-style2 .inner {
    max-width: 900px;
    margin: 0 auto;
}

.ph2-en {
    color: #e03131;
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.ph2-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f2238;
    margin-bottom: 10px;
    margin-top: 0;
}


/* --- 3色ライン --- */

.ph2-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0 auto 25px;
}

.ph2-line .line {
    display: inline-block;
    height: 6px;
    border-radius: 3px;
}

.ph2-line .red {
    background-color: #e03131;
}

.ph2-line .blue {
    background-color: #00bcd4;
}

.ph2-line .long {
    width: 60px;
}

.ph2-line .short {
    width: 30px;
}


/* --- サブタイトル --- */

.ph2-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-top: 15px;
    margin-bottom: 0;
}


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

@media (max-width: 768px) {
    .ph2-title {
        font-size: 32px;
    }
    .ph2-line .long {
        width: 40px;
    }
    .ph2-line .short {
        width: 20px;
    }
}


/* ---------- manufacturer card ---------- */

.manufacturer-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
    overflow: hidden;
    padding: 0;
    margin-bottom: 36px;
}


/* top area (logo) */

.manufacturer-card-top {
    padding: 34px 20px 0;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.manufacturer-logo {
    width: 220px;
    height: auto;
    display: inline-block;
    margin-bottom: 40px;
}


/* body */

.manufacturer-card-body {
    padding: 28px 30px 36px;
}


/* header: name + desc */

.manufacturer-header {
    margin-bottom: 18px;
}

.manufacturer-name {
    font-size: 28px;
    font-weight: 800;
    color: #0f2238;
    margin: 6px 0 16px;
}

.manufacturer-desc {
    color: #666;
    line-height: 1.9;
    font-size: 15px;
    margin: 0;
}


/* products tags */

.manufacturer-products {
    margin: 18px 0;
}

.products-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #0f2238;
    background: #eef7fb;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
}

.products-label .icon {
    width: 18px;
    height: 18px;
    color: #e03131;
}


/* tag list */

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.product-tags li {
    background: #fbfbfb;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    color: #333;
    border: 1px solid #eee;
}


/* separator */

.manufacturer-sep {
    border: none;
    height: 1px;
    background: #f0f0f0;
    margin: 20px 0;
}


/* info grid */

.manufacturer-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    color: #475569;
    font-size: 14px;
    margin-top: 6px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
}

.info-item .icon {
    width: 18px;
    height: 18px;
    color: #60a5fa;
}


/* buttons */

.manufacturer-links {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.manufacturer-links .btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.btn-red {
    background: #e03131;
    color: #fff;
    border: 1px solid #e03131;
}

.btn-red:hover {
    background: #fff;
    color: #e03131;
}

.btn-outline {
    background: #fff;
    color: #0f2238;
    border: 1.5px solid #0f2238;
}

.btn-outline:hover {
    background: #0f2238;
    color: #fff;
}


/* responsive */

@media (max-width:880px) {
    .manufacturer-card-body {
        padding: 20px;
    }
    .manufacturer-name {
        font-size: 22px;
    }
    .manufacturer-info {
        grid-template-columns: 1fr;
    }
    .manufacturer-card-top {
        padding-top: 20px;
    }
    .manufacturer-logo {
        max-width: 200px;
    }
}

.article-text {
    margin-top: 10px;
    margin-bottom: 20px;
}

.custom-tag-widget ul {
    margin-top: 20px;
}


/* ニュース一覧カード全体クリック化 */

.wp-block-post.category-news {
    position: relative;
}


/* タイトルリンクを全体に拡張 */

.wp-block-post.category-news .wp-block-post-title a {
    position: static;
}


/* 疑似要素で透明リンクを全体にかぶせる */

.wp-block-post.category-news .wp-block-post-title a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
}


/* hover時のビジュアル効果 */

.wp-block-post.category-news:hover {
    background-color: rgba(0, 0, 0, 0.03);
    transition: background-color 0.3s ease;
    cursor: pointer;
}


/* タグリンクなどが上にくるように保護 */

.wp-block-post.category-news .taxonomy-post_tag {
    position: relative;
    z-index: 5;
}

.sidebar-contact-box {
    background: #f7f7f7;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.sidebar-contact-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.sidebar-contact-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sidebar-contact-btn {
    display: inline-block;
    background-color: #c9392b;
    color: #fff;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: solid 1px #e03131
}

.sidebar-contact-btn:hover {
    background: #fff;
    color: #e03131;
}

.news-header {
    background-color: #0d1b3f;
    /* 紺系背景 */
    color: #fff;
    padding: 60px 20px;
    text-align: left;
    position: relative;
}

.news-header__back {
    display: block;
    color: #e44;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-decoration: none;
}

.news-header__back:hover {
    opacity: 0.7;
    color: #e44;
}

.news-header__title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}

.news-header__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.news-header__date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 1rem;
}

.post-tag {
    display: inline-block;
    color: #000000;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-size: 0.8em;
    margin-right: 8px;
}

.tag-event div .taxonomy-post_tag {
    background-color: #ffc207!important;
}

.taxonomy-post_tag a {
    text-decoration: none;
}

.news-header__line {
    border-bottom: 2px solid #c33;
    margin-top: 20px;
}

.custom-page-header-inner-news {
    border-left: none;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.post-navigation a {
    color: #d9534f;
    /* 赤っぽい色 */
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.post-navigation a:hover {
    opacity: 0.6;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.article-category {
    display: inline-block;
    color: #fff;
    font-size: 0.9rem;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    background-color: #d9534f;
}

@media (max-width: 480px) {
    .article-category {
        margin-bottom: 5px;
    }
}

.entry-meta-item-updated,
.author {
    display: none;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.article-tag {
    background-color: #f2f2f2;
    color: #333;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 6px;
}

.published {
    color: #666666;
}

.far {
    color: #666666;
}

.agenda {
    background-color: #f5f5f5;
    padding: 25px;
}

.agenda p {
    margin-bottom: 5px!important;
}

.article-point {
    padding: 15px 30px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.23);
}

.article-point2 {
    background-color: #ffffff;
    /* 薄いオレンジ（#fff8e1や#fff3cdもおすすめ） */
    border-left: 6px solid #d23b3b;
    /* 黄色ライン */
    border-radius: 10px;
    padding: 10px;
    margin: 1.5em 0;
    font-size: 1.1em;
    line-height: 1.8;
}

.article-point::before {
    font-weight: 700;
}

.article-point div {
    position: relative;
}

.entry-body p {
    /* color: #333333; */
}

.related-posts {
    margin-top: 80px;
    padding: 0 20px;
}

.related-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 1.5em;
    border-left: 5px solid #c33;
    padding-left: 10px;
}


/* --- グリッド --- */

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


/* --- カード --- */


/* --- カード本体 --- */

.related-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    /* 初期は枠線のみ＋極薄シャドウ */
    border: 1px solid rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
}

.related-card:hover {
    /* transform: translateY(-4px); */
    /* —— hover時：もっと狭く弱く —— */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), /* 下方向の薄い影 */
    0 1px 3px rgba(0, 0, 0, 0.04);
    /* 補助的な柔らかい影 */
    border-color: rgba(0, 0, 0, 0);
}


/* --- 画像ズーム --- */

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-card:hover .related-thumb img {
    transform: scale(1.04);
    /* ズーム度もやや弱めに */
}


/* --- サムネイル画像 --- */

.related-thumb {
    overflow: hidden;
    height: 150px;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-card:hover .related-thumb img {
    transform: scale(1.08);
}


/* --- テキスト部分 --- */

.related-content {
    padding: 11px 20px 15px;
}

.related-cat {
    color: #d33;
    font-size: 0.92em;
    margin-bottom: 8px;
}

.related-title-text {
    font-size: 1.2em;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
    line-height: 1.45;
    margin-top: 5px;
}

.related-date {
    font-size: 0.7em;
    color: #777;
    margin-bottom: 0;
}

.related-card:hover .related-title-text {
    color: #0078a3;
}


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

@media (max-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (max-width: 600px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 600px以下も2列 */
        gap: 20px;
    }
    .related-thumb {
        height: 150px;
    }
    .related-title-text {
        font-size: 1.05em;
    }
}

.wpp-ranking-list li:hover img {
    box-shadow: none!important;
}

.footer-bottom p {
    margin-bottom: 0;
}

.site-footer-copyright {
    display: none;
}

.articles-top {
    margin-bottom: 20px;
}

.point-img {
    position: absolute;
    top: -40px;
    left: -50px;
}

.top-loop-text {
    margin: 0 15px;
}

.article-point3 {
    background-color: #fffbf0;
    /* 薄いオレンジ（#fff8e1や#fff3cdもおすすめ） */
    border-left: 3px solid #ffc107;
    /* 黄色ライン */
    padding: 20px 20px 20px 10px;
    margin: 1.5em 0;
    line-height: 1.8;
    height: 100%;
}

.article-h2 {
    padding: 0.4em 0.5em;
    color: #000000;
    background: #f4f4f4;
    border-left: solid 5px #d23b3b;
    border-bottom: solid 3px #d7d7d7;
    font-size: 1.5em;
}

.article-h3 {
    position: relative;
    border-bottom: 1px solid #E6E6E6;
    background: 0 0;
    padding: 0 0 .5em;
    font-size: 1.4em;
}

.article-h3::after {
    content: ".";
    line-height: 0;
    display: block;
    overflow: hidden;
    position: absolute;
    bottom: -1px;
    width: 30%;
    border-bottom: 1px solid #d23b3b;
}

.article-check {
    position: relative;
    padding-left: 1.2em;
    /*アイコン分のスペース*/
    line-height: 1.4;
}

.article-check:before {
    font-family: "Font Awesome 5 Free";
    content: "\f00c";
    /*アイコンのユニコード*/
    font-weight: 900;
    position: absolute;
    /*絶対位置*/
    font-size: 1em;
    /*サイズ*/
    left: 0;
    /*アイコンの位置*/
    top: 0;
    /*アイコンの位置*/
    color: #5ab9ff;
    /*アイコン色*/
    font-weight: 900;
}

.article-h4 {
    font-weight: bold;
    padding: 0.3em 0.5em;
    border-left: 5px double #d23b3b;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.article-next {
    position: relative;
    display: inline-block;
}

.article-next::after {
    content: "→";
    color: #de2327;
    position: absolute;
    right: -30px;
    top: 0;
    transition: transform 0.3s ease;
    font-size: 20px;
}

.special-card:hover .article-next::after {
    transform: translateX(6px);
}

.banner-thumbnail {
    transition: opacity 0.3s ease;
    /* ← じわっとさせる */
}

.banner-thumbnail:hover {
    opacity: 0.7;
}

.article-contents-list {
    list-style-type: none;
    padding-left: 10px!important;
}

.article-contents-list li {
    padding-left: 10px;
    margin-top: 0;
    margin-bottom: 0;
}

.arrow-link a {
    position: relative;
    display: inline-block;
    padding-right: 19px;
    /* 矢印分のスペース */
    color: #dc2626;
    /* テキスト色 */
    text-decoration: none;
    transition: color 0.3s ease;
    text-decoration: none!important;
    font-size: 18px;
}

.arrow-link a::after {
    content: "→";
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: #dc2626;
}


/* Hover 時に矢印が右へ動く */

.arrow-link a:hover {
    opacity: 0.7;
}

.arrow-link a:hover::after {
    transform: translate(4px, -50%);
    opacity: 0.7;
}

.sidebar-maker-link {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.sidebar-maker-link:hover {
    opacity: 0.7;
}

.special-cat {
    background-color: rgb(220, 38, 38, 0.8);
    font-size: 16px;
    position: absolute;
    top: -97px;
    padding: 6px 10px;
    left: -16px;
    font-weight: bold;
    color: #ffffff;
}

.special-feature-box {
    margin-bottom: 50px;
}

.special-feature-box h2 {
    margin-top: 0;
    margin-bottom: 0;
}

.special-feature-en {
    color: rgb(220, 38, 38);
    font-size: 16px;
    margin-bottom: 0;
    font-weight: bold;
}

.special-feature-text {
    line-height: 22px;
    color: #666666;
}

.keyword-heading {
    margin-top: 40px;
    margin-bottom: 50px;
}

.keyword-heading__title {
    position: relative;
    padding: 1rem 1.5rem;
    border-radius: 0 5px 5px 5px;
    background: #fce8e9;
    font-size: 22px;
}

.keyword-heading__title:before {
    font-size: 14px;
    position: absolute;
    top: -31px;
    left: 0;
    /* height: 24px; */
    padding: 0 1em;
    content: '\キーワード';
    color: #fff;
    border-radius: 5px 5px 0 0;
    background: #de2327;
}

.fas {
    margin-right: 0!important;
}

.article-text-5 {
    position: relative;
    line-height: 1.4;
    padding: 0.25em 1em;
    display: inline-block;
    top: 0;
}

.article-text-5:before,
.article-text-5:after {
    position: absolute;
    top: 0;
    content: '';
    width: 8px;
    height: 100%;
    display: inline-block;
}

.article-text-5:before {
    border-left: solid 1px black;
    border-top: solid 1px black;
    border-bottom: solid 1px black;
    left: 0;
}

.article-text-5:after {
    content: '';
    border-top: solid 1px black;
    border-right: solid 1px black;
    border-bottom: solid 1px black;
    right: 0;
}

.veu_autoEyeCatchBox {
    max-width: 600px;
    margin: auto;
}

@media (max-width: 480px) {
    .entry-title {
        font-size: 22px;
    }
    .cta-box1 {
        padding: 30px 20px;
    }
}

.menu-item-sp {
    display: none;
}
.footer-logo-box-sp {
    display: none;
}
.register-form-btn a{
background: #e03131;
    color: #fff;
    border: 1px solid #e03131;
border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
padding: 5px 10px;
display: flex;
    align-items: center;
margin-top: 10px;
font-size: 16px;
width: 170px;
justify-content: center;
}

.register-form-btn a:hover {
 opacity: 0.7;}


/* スマホ表示時のハンバーガーメニューを非表示 */

@media screen and (max-width: 991px) {
    .vk-mobile-nav-menu-btn {
        display: none !important;
    }
.custom-tag-widget ul {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }
.sideber-maker-box div {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
align-items: center;
    }
.sidebar-contact-box {
display:none;
}
}

@media (max-width: 768px) {
    .header-right2 {
        display: flex;
        align-items: center;
    }
    .company-name {
        display: none;
    }
    .header-cover {
        height: 80px;
    }
    .sub-card {
        min-height: 0!important;
    }
    .menu-item-sp {
        display: block;
    }
    .arrow-link a {
        margin-right: 15px;
    }
.post-top .wp-block-post .card-title a {
        font-size: 16px;
    }
    .post-top .wp-block-post .card-category {
        font-size: 10px;
        padding: 4px 7px;
        margin-left: 5px;
    }
    .post-top-sp .wp-block-post {
        box-shadow: 0 0 0;
    }
.btn-red {
        max-width: 320px;
        text-align: center;
margin-right: 0;
margin: auto;
    }
.footer-logo-box {
        display: none;
    }
    .footer-logo-box-sp {
        display: block;
    }
.manufacturer-logo {
        margin-bottom: 30px;
        margin-top: 10px;
    }
.custom-page-header {
    background-color: #162846;
    padding: 10px 10px;
    text-align: left;
}
.news-header__back {
    margin-bottom: 10px;
}
}

@media (max-width: 480px) {
    .header-right2 {
        margin-right: 10px;
    }
    .header-left {
        width: 140px;
        margin-left: 10px;
    }
    .header-container {
        padding: 0;
    }
    .header-cover {
        height: 55px;
    }
    .site-body {
        padding: 1rem 0 2rem;
    }
.sidebar-maker-link a img {
width: 140px!important;
}
.site-footer {
    padding: 80px 20px 20px;
}
.ph2-desc {
    font-size: 12px;
}
    .custom-page-header-ja {
        font-size: 26px;
    }
.custom-page-header-inner {
    padding: 5px 0 15px 10px;
}
.keyword-heading {
    margin-bottom: 30px;
}
.keyword-heading__title {
    font-size: 18px;
}
.keyword-heading__title:before {
    font-size: 12px;
    top: -25px;
}
.news-list-block .wp-block-post-terms {
    padding: 2px 6px;
}
}

.news-heading1 {
  position: relative;
  padding: 5px 26px 5px 20px;
  background: #F2F2F2;
  font-size: 20px;
  color: #2d2d2d;
  line-height: 1.3;
  border-bottom: solid 3px #B0B0B0;
  z-index:0;
margin-bottom:15px;
font-weight:bold;
}

.news-text-box {
margin-left: 15px!important;
}

@media (max-width: 480px) {
.news-heading1 {
    padding: 5px 26px 5px 10px;
    font-size: 18px;
    margin-bottom: 10px;
}
.news-text-box {
margin-left: 10px!important;
}
}

.mrc_webform_apply:hover,
.mrc_webform_clear:hover {
  opacity: 0.7;
  cursor: pointer;
}

.company-name a:hover{
opacity: 0.7;
}