/*
Theme Name: Wizard Theme
Description: Wizard株式会社用カスタムテーマ
Author: Wizard Inc.
Version: 1.0.0
*/

/* Reset & Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    --color-black: #000000;
    --color-dark: #111111;
    --color-gray: #f5f5f5;
    --color-white: #ffffff;
    --font-main: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Base Layout */
#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#content {
    flex: 1;
}

/* Header - Transparent & Sticky */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    color: var(--color-white);
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

/* Scrolled State */
.site-header.scrolled {
    background-color: var(--color-white);
    padding: 15px 60px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Logo */
.site-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    position: relative;
    z-index: 1001;
    /* Above mobile menu */
}

.site-title a {
    color: var(--color-white);
}

.site-header.scrolled .site-title a {
    color: var(--color-black);
}

/* Navigation Links */
.main-navigation {
    display: block;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0;
    list-style: none;
}

/* Base Top-level Link Container */
.main-navigation>ul>li {
    position: relative;
    padding: 15px 0;
    /* Padding to bridge gap for hover state down to sub-menu */
}

.main-navigation a {
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    display: inline-block;
}

.site-header.scrolled .main-navigation a {
    color: var(--color-black);
}

/* Hover Animation: Underline (Top-level only, except Contact button) */
.main-navigation>ul>li:not(:last-child)>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-white);
    transition: width 0.3s ease;
}

.site-header.scrolled .main-navigation>ul>li:not(:last-child)>a::after {
    background-color: var(--color-black);
}

.main-navigation>ul>li:not(:last-child)>a:hover::after {
    width: 100%;
}

.main-navigation>ul>li:not(:last-child)>a:hover {
    opacity: 0.8;
}

/* Dropdown Menu (Sub-menu) */
.main-navigation ul li {
    position: relative;
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 220px;
    background-color: var(--color-white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    padding: 10px 0;
    z-index: 1000;
    pointer-events: none;
}

/* ホバー時の表示（クラスに依存せず、ul li の構造で制御） */
.main-navigation ul li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.main-navigation .sub-menu li {
    padding: 0;
    width: 100%;
}

.main-navigation .sub-menu a {
    color: var(--color-black) !important;
    /* 強制的に黒字化 */
    padding: 12px 24px;
    display: block;
    width: 100%;
    font-size: 13px;
    border: none !important;
    /* サブメニューの枠線を強制解除 */
}

.main-navigation .sub-menu a:hover {
    background-color: var(--color-gray);
    opacity: 1;
}

/* 枠線のリセットとCONTACTボタンの装飾 */
/* まず、すべてのリンクの枠線を消す */
.main-navigation a {
    border: none;
}

/* 最後のメニューアイテム（CONTACT）のみ枠線をつける */
.main-navigation>ul>li:last-child>a {
    border: 1px solid var(--color-white) !important;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.main-navigation>ul>li:last-child>a:hover {
    background-color: var(--color-white);
    color: var(--color-black) !important;
}

/* Scrolled state for Contact Button */
.site-header.scrolled .main-navigation>ul>li:last-child>a {
    border-color: var(--color-black) !important;
}

.site-header.scrolled .main-navigation>ul>li:last-child>a:hover {
    background-color: var(--color-black);
    color: var(--color-white) !important;
}

/* Hamburger Menu Button (Mobile Only) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    position: absolute;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.site-header.scrolled .hamburger-inner,
.site-header.scrolled .hamburger-inner::before,
.site-header.scrolled .hamburger-inner::after {
    background-color: var(--color-black);
}

.hamburger-inner::before {
    content: '';
    top: -8px;
}

.hamburger-inner::after {
    content: '';
    bottom: -8px;
}

/* Hamburger active state (X shape) */
.menu-toggle.is-active .hamburger-inner {
    background-color: transparent !important;
    /* hide middle line */
}

.menu-toggle.is-active .hamburger-inner::before {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--color-white) !important;
    /* Force white on overlay */
}

.menu-toggle.is-active .hamburger-inner::after {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--color-white) !important;
}

.site-header.menu-open .site-title a {
    color: var(--color-white) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    background-color: var(--color-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 鮮やかな青色背景でも白文字キャッチコピーをくっきり読ませるための半透明黒グラデーション */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
    word-break: keep-all;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.hero-action {
    margin-top: 40px;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--color-white);
    color: var(--color-black);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    box-shadow: 0 0 0 2px var(--color-white) inset;
}

/* Base Sections */
.news-section,
.flooring-section,
.services-section,
.rnd-section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 3px;
    color: var(--color-dark);
}

/* News Section */
.news-list {
    list-style: none;
    border-top: 2px solid var(--color-dark);
}

.news-item {
    display: flex;
    padding: 30px 0;
    border-bottom: 1px solid #ccc;
    align-items: baseline;
}

.news-date {
    width: 160px;
    font-weight: 600;
    color: #666;
    font-size: 1.1rem;
}

.news-title {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 600;
}

.news-title a {
    color: var(--color-dark);
}

.news-title a:hover {
    color: #666;
}

/* Flooring Section */
.flooring-grid {
    display: grid;
    /* PC表示時は2列で完全に均等な幅に */
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* スマホ表示時は1列に縦並び */
@media (max-width: 768px) {
    .flooring-grid {
        grid-template-columns: 1fr;
    }
}

.flooring-item {
    position: relative;
    overflow: hidden;
    /* 均等なアスペクト比を持たせ、パネルの高さをピタリと揃える */
    aspect-ratio: 4 / 3;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
}

.flooring-bg,
.services-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.flooring-overlay,
.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    transition: background 0.4s ease;
}

.flooring-item:hover .flooring-bg,
.services-banner:hover .services-bg {
    transform: scale(1.05);
}

.flooring-item:hover .flooring-overlay,
.services-banner:hover .services-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.flooring-content,
.services-content {
    position: relative;
    z-index: 2;
    padding: 30px;
}

.flooring-title,
.services-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.flooring-desc,
.services-desc {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Services Section */
.services-banner {
    position: relative;
    overflow: hidden;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    width: 100%;
}

/* R&D Log Section */
.rnd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.rnd-card {
    background: var(--color-gray);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rnd-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.rnd-card-link {
    display: block;
    color: var(--color-dark);
}

.rnd-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.rnd-card-link:hover .rnd-card-thumb img {
    transform: scale(1.05);
}

.rnd-card-body {
    padding: 25px;
}

.rnd-card-date {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.rnd-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.4;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
}

/* Company Section */
.company-section {
    padding: 0;
}

.company-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 80px 10%;
    transition: background-color 0.3s ease;
}

.company-banner:hover {
    background-color: var(--color-black);
}

.company-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 4px;
    margin: 0;
}

.company-desc {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: #aaa;
}

.company-arrow {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.company-banner:hover .company-arrow {
    transform: translateX(10px);
}

/* Footer Section */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 80px 60px 40px;
    border-top: 1px solid #333;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-block {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-info p {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

/* Block B: Links */
.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: var(--color-white);
    text-transform: uppercase;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    display: inline-block;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-white);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-links a:hover::after {
    width: 100%;
}

/* ---- Submenu styling (Nested List) ---- */
.footer-submenu {
    list-style: none;
    margin: 8px 0 8px 15px;
    /* 親の下に配置、左へ15pxのインデント */
    padding: 0;
    display: block;
    /* 初期状態から常に表示 */
}

.footer-submenu li {
    margin-bottom: 6px;
}

.footer-submenu li:last-child {
    margin-bottom: 0;
}

/* サブメニュー内の個別リンクスタイル */
.footer-links .footer-submenu a {
    color: #888;
    /* 控えめなグレー */
    display: flex;
    align-items: center;
    padding: 2px 0;
    font-size: 0.85rem;
    /* 親より一回り小さく */
    font-weight: 500;
}

/* リストアイテムの先頭に記号「-」を付与 */
.footer-links .footer-submenu a::before {
    content: '-';
    margin-right: 6px;
    font-size: 0.8rem;
    color: #666;
}

/* サブメニューでは親メニューのような下線アニメーションを無効化 */
.footer-links .footer-submenu a::after {
    display: none;
}

/* サブメニューホバー時は白文字にして視認性を高める */
.footer-links .footer-submenu a:hover {
    color: var(--color-white);
}

/* Block C: CTA Area */
.footer-cta {
    align-items: flex-start;
}

.footer-btn {
    display: inline-block;
    padding: 16px 30px;
    background-color: var(--color-dark);
    border: 1px solid var(--color-white);
    color: var(--color-white);
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.footer-btn-jp {
    font-size: 0.8rem;
    font-weight: 400;
    display: block;
    margin-top: 5px;
    opacity: 0.9;
}

.footer-btn:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
    border: 1px solid var(--color-dark);
}

.site-info {
    text-align: center;
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.85rem;
}

/* Page Content Defaults (for non-front-page) */
.site-main {
    padding-top: 0;
}

body:not(.home) .site-header {
    background: var(--color-dark);
    /* Solid header on other pages initially */
}

body:not(.home) .site-header.scrolled {
    background: var(--color-white);
    /* Ensure scrolled header turns white to match black text */
}

body:not(.home) .site-main {
    padding: 40px;
    max-width: 1200px;
    margin: 100px auto 0;
}

body:not(.home) .entry-header {
    margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 900px) {

    .site-header,
    .site-header.scrolled {
        padding: 20px;
    }

    .site-title {
        font-size: 20px;
    }

    .menu-toggle {
        display: block;
    }

    /* Mobile Menu Full Screen Overlay */
    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(17, 17, 17, 0.98);
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        z-index: 1000;
    }

    .main-navigation.is-active {
        opacity: 1;
        visibility: visible;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .main-navigation a {
        font-size: 1.5rem;
        color: var(--color-white);
        /* Always white in mobile overlay */
    }

    .site-header.scrolled .main-navigation a {
        color: var(--color-white);
    }

    .main-navigation li:not(:last-child) a::after {
        background-color: var(--color-white);
    }

    .site-header.scrolled .main-navigation li:not(:last-child) a::after {
        background-color: var(--color-white);
    }

    .main-navigation li:last-child a {
        font-size: 1.1rem;
        padding: 12px 30px;
        margin-top: 20px;
    }

    .site-header.scrolled .main-navigation li:last-child a {
        border-color: var(--color-white);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .news-section,
    .flooring-section,
    .services-section,
    .rnd-section {
        padding: 60px 20px;
    }

    .flooring-grid,
    .rnd-grid {
        grid-template-columns: 1fr;
    }

    .flooring-item {
        height: 40vh;
        min-height: 300px;
    }

    .news-item {
        flex-direction: column;
    }

    .news-date {
        margin-bottom: 15px;
    }

    .company-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 20px;
        position: relative;
    }

    .company-title {
        font-size: 2.2rem;
    }

    .company-arrow {
        position: absolute;
        right: 40px;
        top: 50%;
        transform: translateY(-50%);
    }

    .site-footer {
        padding: 60px 20px 30px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================= */
/* Pickleball Mat Page Styles                */
/* ========================================= */
.wizard-pickleball-wrap {
    font-family: var(--font-primary, 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif);
    color: #333;
    line-height: 1.6;
    background-color: var(--color-white, #fff);
}

.wizard-pickleball-wrap img {
    max-width: 100%;
    height: auto;
    display: block;
}

.wizard-pickleball-wrap .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.wizard-pickleball-wrap .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    color: #0A3D80;
    /* Blue brand color */
    margin-bottom: 50px;
    letter-spacing: 2px;
}

/* Hero Section */
.wizard-pickleball-wrap .pickleball-hero {
    background: linear-gradient(135deg, #06234f 0%, #0A3D80 100%);
    color: #fff;
    padding: 160px 20px 100px;
    /* Header is sticky so adding top padding */
    text-align: center;
}

.wizard-pickleball-wrap .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #fff;
    word-break: keep-all;
}

.wizard-pickleball-wrap .hero-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Intro Section */
.wizard-pickleball-wrap .pickleball-intro {
    padding: 80px 0;
    background-color: #f7f9fc;
}

.wizard-pickleball-wrap .intro-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

/* Comparison Section */
/* ==================================
   Size & Price Section
================================== */
.wizard-pickleball-wrap .pickleball-size-price {
    padding: 80px 0;
    background-color: var(--color-gray, #f5f5f5);
}

.wizard-pickleball-wrap .size-price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.wizard-pickleball-wrap .sp-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #0B2A51;
    /* Theme Navy */
    display: flex;
    flex-direction: column;
}

.wizard-pickleball-wrap .sp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.wizard-pickleball-wrap .sp-card-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background-color: #ffffff;
    display: block;
}

.wizard-pickleball-wrap .sp-card-body {
    padding: 30px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wizard-pickleball-wrap .sp-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #111;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wizard-pickleball-wrap .sp-card-size-label {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
}

.wizard-pickleball-wrap .sp-card-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    font-size: 0.95rem;
    flex: 1;
}

.wizard-pickleball-wrap .sp-card-specs li {
    margin-bottom: 10px;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 10px;
    color: #444;
}

.wizard-pickleball-wrap .sp-card-specs li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.wizard-pickleball-wrap .sp-card-specs strong {
    color: #111;
}

.wizard-pickleball-wrap .sp-card-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0B2A51;
    /* Theme Navy */
    text-align: right;
    margin-top: auto;
}

.wizard-pickleball-wrap .sp-card-price span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-left: 5px;
}

/* Info Box */
.wizard-pickleball-wrap .sp-info-box {
    background: #fff;
    border: 2px solid #0B2A51;
    /* Theme Navy */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.wizard-pickleball-wrap .sp-shipping {
    font-size: 1.2rem;
    font-weight: 800;
    color: #D32F2F;
    /* Accent red for visibility */
    margin-bottom: 15px;
}

.wizard-pickleball-wrap .sp-notes {
    list-style: none;
    padding: 0;
    margin: 0;
    font-weight: 600;
    color: #111;
}

.wizard-pickleball-wrap .sp-notes li {
    margin-bottom: 5px;
}

.wizard-pickleball-wrap .sp-notes li:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .wizard-pickleball-wrap .size-price-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================================
   Comparison Section
================================== */
.wizard-pickleball-wrap .pickleball-comparison {
    padding: 80px 0;
}

.wizard-pickleball-wrap .comparison-desc {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.1rem;
    color: #555;
}

.wizard-pickleball-wrap .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 40px;
}

.wizard-pickleball-wrap .pickleball-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.wizard-pickleball-wrap .pickleball-table th,
.wizard-pickleball-wrap .pickleball-table td {
    padding: 20px;
    border: 1px solid #eee;
    vertical-align: middle;
}

/* Header style */
.wizard-pickleball-wrap .pickleball-table thead th {
    background-color: #0A3D80;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    border-color: #0A3D80;
}

.wizard-pickleball-wrap .pickleball-table thead th:first-child {
    width: 20%;
}

.wizard-pickleball-wrap .pickleball-table thead th:nth-child(2) {
    width: 40%;
    background-color: #06234f;
}

.wizard-pickleball-wrap .pickleball-table thead th:nth-child(3) {
    width: 40%;
    background-color: #555;
    border-color: #555;
}

/* Body style */
.wizard-pickleball-wrap .table-item-name {
    background-color: #f7f9fc;
    color: #0A3D80;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}

.wizard-pickleball-wrap .wizard-col {
    color: #0A3D80;
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
    background-color: #f0f5fb;
}

.wizard-pickleball-wrap .other-col {
    color: #555;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}

.wizard-pickleball-wrap .table-desc {
    padding: 30px !important;
}

.wizard-pickleball-wrap .table-desc p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-top: 0;
    margin-bottom: 20px;
}

.wizard-pickleball-wrap .table-image {
    margin: 0;
    text-align: center;
}

.wizard-pickleball-wrap .table-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto 15px;
}

.wizard-pickleball-wrap .table-image figcaption {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    text-align: center;
}

/* Features */
.wizard-pickleball-wrap .pickleball-features {
    padding: 100px 0;
    background-color: #06234f;
    color: #fff;
}

.wizard-pickleball-wrap .pickleball-features .section-title {
    color: #fff;
}

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

.wizard-pickleball-wrap .feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-top: 5px solid #0A3D80;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wizard-pickleball-wrap .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.wizard-pickleball-wrap .feature-icon {
    width: 60px;
    height: 60px;
    background-color: #0A3D80;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

.wizard-pickleball-wrap .feature-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0A3D80;
    margin-bottom: 20px;
    line-height: 1.5;
}

.wizard-pickleball-wrap .feature-desc {
    font-size: 1rem;
    color: #444;
    text-align: left;
    line-height: 1.7;
}

/* CTA Section */
.wizard-pickleball-wrap .pickleball-cta {
    padding: 100px 0;
    text-align: center;
}

.wizard-pickleball-wrap .cta-heading {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 40px;
}

.wizard-pickleball-wrap .cta-button {
    display: inline-block;
    padding: 20px 50px;
    background-color: #0A3D80;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(10, 61, 128, 0.3);
}

.wizard-pickleball-wrap .cta-button:hover {
    background-color: #06234f;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(10, 61, 128, 0.4);
    color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
    .wizard-pickleball-wrap .hero-title {
        font-size: 2.2rem;
    }

    .wizard-pickleball-wrap .pickleball-table th,
    .wizard-pickleball-wrap .pickleball-table td {
        padding: 15px 10px;
    }

    .wizard-pickleball-wrap .container {
        padding: 0 20px;
    }

    .wizard-pickleball-wrap .pickleball-features {
        padding: 80px 0;
    }

    .wizard-pickleball-wrap .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================= */
/* Table Tennis Mat Page Styles              */
/* ========================================= */
.wizard-tableten-wrap {
    font-family: var(--font-primary, 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif);
    color: #333;
    line-height: 1.6;
    background-color: var(--color-white, #fff);
}

.wizard-tableten-wrap .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.wizard-tableten-wrap .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    color: #c62828;
    /* Red brand color */
    margin-bottom: 50px;
    letter-spacing: 2px;
}

/* Hero Section */
.wizard-tableten-wrap .tableten-hero {
    background: linear-gradient(135deg, #8A1515 0%, #c62828 100%);
    color: #fff;
    padding: 160px 20px 100px;
    text-align: center;
}

.wizard-tableten-wrap .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #fff;
    word-break: keep-all;
}

.wizard-tableten-wrap .hero-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Intro Section */
.wizard-tableten-wrap .tableten-intro {
    padding: 80px 0;
    background-color: #fcf7f7;
}

.wizard-tableten-wrap .intro-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

/* Features grid */
.wizard-tableten-wrap .tableten-features {
    padding: 80px 0;
}

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

.wizard-tableten-wrap .feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 5px solid #c62828;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wizard-tableten-wrap .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.wizard-tableten-wrap .highlight-card {
    border-top-width: 8px;
    border-top-color: #FFD700;
    background: #fff9f9;
}

.wizard-tableten-wrap .feature-icon {
    width: 60px;
    height: 60px;
    background-color: #c62828;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

.wizard-tableten-wrap .highlight-icon {
    background-color: #FFD700;
    color: #c62828;
}

.wizard-tableten-wrap .feature-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #c62828;
    margin-bottom: 20px;
    line-height: 1.5;
}

.wizard-tableten-wrap .highlight-card .feature-heading {
    color: #b31b1b;
}

.wizard-tableten-wrap .feature-desc {
    font-size: 1rem;
    color: #666;
    text-align: left;
    line-height: 1.7;
}

/* Spec Section */
.wizard-tableten-wrap .tableten-spec {
    padding: 80px 0;
    background-color: #8A1515;
    color: #fff;
}

.wizard-tableten-wrap .tableten-spec .section-title {
    color: #fff;
}

.wizard-tableten-wrap .spec-image-container {
    max-width: 800px;
    margin: 0 auto 40px;
}

.wizard-tableten-wrap .spec-image {
    margin: 0;
    text-align: center;
}

.wizard-tableten-wrap .spec-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto 12px;
}

.wizard-tableten-wrap .spec-image figcaption {
    font-size: 0.9rem;
    color: #ffd;
    text-align: center;
    opacity: 0.8;
}

.wizard-tableten-wrap .spec-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wizard-tableten-wrap .spec-table {
    width: 100%;
    border-collapse: collapse;
}

.wizard-tableten-wrap .spec-table th,
.wizard-tableten-wrap .spec-table td {
    padding: 25px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
}

.wizard-tableten-wrap .spec-table tr:last-child th,
.wizard-tableten-wrap .spec-table tr:last-child td {
    border-bottom: none;
}

.wizard-tableten-wrap .spec-table th {
    background-color: #f7f9fc;
    color: #333;
    font-weight: 700;
    width: 30%;
}

.wizard-tableten-wrap .spec-table td {
    color: #555;
    font-weight: 600;
    width: 70%;
}

/* Color Chips */
.wizard-tableten-wrap .color-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.wizard-tableten-wrap .color-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wizard-tableten-wrap .chip {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ddd;
}

.wizard-tableten-wrap .chip-red {
    background-color: #e53935;
}

.wizard-tableten-wrap .chip-blue {
    background-color: #1e88e5;
}

.wizard-tableten-wrap .chip-green {
    background-color: #43a047;
}

.wizard-tableten-wrap .chip-purple {
    background-color: #8e24aa;
}

.wizard-tableten-wrap .color-name {
    font-size: 0.95rem;
    color: #333;
}

.wizard-tableten-wrap .color-note {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

/* Pricing */
.wizard-tableten-wrap .price-main {
    margin-bottom: 8px;
}

.wizard-tableten-wrap .price-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: #c62828;
}

.wizard-tableten-wrap .price-unit {
    font-size: 0.95rem;
    color: #555;
    font-weight: 600;
}

.wizard-tableten-wrap .price-note {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Installation Showcase */
.wizard-tableten-wrap .tableten-showcase {
    padding: 100px 0;
    background-color: #fcf7f7;
}

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

.wizard-tableten-wrap .showcase-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #c62828;
}

.wizard-tableten-wrap .showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.wizard-tableten-wrap .showcase-image {
    margin: 0;
    width: 100%;
}

.wizard-tableten-wrap .showcase-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.wizard-tableten-wrap .showcase-content {
    padding: 30px 25px;
}

.wizard-tableten-wrap .showcase-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: #c62828;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.wizard-tableten-wrap .showcase-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.wizard-tableten-wrap .showcase-quote {
    margin: 0;
    padding: 15px;
    background-color: #f7f9fc;
    border-left: 4px solid #c62828;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.wizard-tableten-wrap .showcase-quote p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.wizard-tableten-wrap .tableten-cta {
    padding: 100px 0;
    text-align: center;
}

.wizard-tableten-wrap .cta-heading {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 40px;
}

.wizard-tableten-wrap .cta-button {
    display: inline-block;
    padding: 20px 50px;
    background-color: #c62828;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.3);
}

.wizard-tableten-wrap .cta-button:hover {
    background-color: #8A1515;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(198, 40, 40, 0.4);
    color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
    .wizard-tableten-wrap .hero-title {
        font-size: 2.2rem;
    }

    .wizard-tableten-wrap .features-grid,
    .wizard-tableten-wrap .showcase-grid {
        grid-template-columns: 1fr;
    }

    .wizard-tableten-wrap .container {
        padding: 0 20px;
    }

    .wizard-tableten-wrap .spec-table th,
    .wizard-tableten-wrap .spec-table td {
        display: block;
        width: 100%;
    }

    .wizard-tableten-wrap .spec-table th {
        border-bottom: none;
        padding-bottom: 10px;
    }

    .wizard-tableten-wrap .spec-table td {
        padding-top: 0;
    }
}

/* ========================================= */
/* Contact Page Styles                       */
/* ========================================= */
.wizard-contact-wrap {
    font-family: 'Inter', var(--font-primary, 'Helvetica Neue', Arial, sans-serif);
    color: #111;
    line-height: 1.6;
    background-color: #fff;
}

.wizard-contact-wrap .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero Section */
.wizard-contact-wrap .contact-hero {
    padding: 120px 20px 60px;
    text-align: center;
    background-color: #fafafa;
    border-bottom: 1px solid #eaeaea;
}

.wizard-contact-wrap .hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0;
    color: #000;
}

/* Form Section */
.wizard-contact-wrap .contact-form-section {
    padding: 80px 0 120px;
}

.wizard-contact-wrap .intro-text {
    font-size: 1.1rem;
    color: #444;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.8;
}

.wizard-contact-wrap .form-wrapper {
    background: #fff;
}

/* Contact Form 7 Styles Override */
.wizard-contact-wrap .wpcf7-form p {
    margin-bottom: 25px;
}

.wizard-contact-wrap .wpcf7-form label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.wizard-contact-wrap input[type="text"].wpcf7-form-control,
.wizard-contact-wrap input[type="email"].wpcf7-form-control,
.wizard-contact-wrap input[type="tel"].wpcf7-form-control,
.wizard-contact-wrap textarea.wpcf7-form-control {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 0;
    /* シャープな印象に */
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: 'Inter', var(--font-primary, 'Helvetica Neue', Arial, sans-serif);
}

.wizard-contact-wrap textarea.wpcf7-form-control {
    min-height: 200px;
    resize: vertical;
}

/* フォーカス時のスタイル */
.wizard-contact-wrap input[type="text"].wpcf7-form-control:focus,
.wizard-contact-wrap input[type="email"].wpcf7-form-control:focus,
.wizard-contact-wrap input[type="tel"].wpcf7-form-control:focus,
.wizard-contact-wrap textarea.wpcf7-form-control:focus {
    outline: none;
    border-color: #000;
    background-color: #fff;
    box-shadow: 0 0 0 1px #000;
}

/* 送信ボタンのスタイル */
.wizard-contact-wrap .wpcf7-submit {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 40px auto 0;
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background-color: #000;
    border: 2px solid #000;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.wizard-contact-wrap .wpcf7-submit:hover {
    background-color: #fff;
    color: #000;
}

/* Validation errors formatting */
.wizard-contact-wrap .wpcf7-not-valid-tip {
    font-size: 0.85rem;
    color: #d32f2f;
    margin-top: 5px;
}

.wizard-contact-wrap .wpcf7-response-output {
    margin-top: 30px !important;
    border-radius: 0 !important;
    padding: 15px !important;
    font-size: 0.95rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-contact-wrap .hero-title {
        font-size: 2rem;
    }

    .wizard-contact-wrap .container {
        padding: 0 20px;
    }

    .wizard-contact-wrap .contact-form-section {
        padding: 50px 0 80px;
    }
}

/* ========================================= */
/* R&D LOG - Archive (List) Styles           */
/* ========================================= */
.wizard-log-archive-wrap {
    font-family: 'Inter', var(--font-primary, 'Helvetica Neue', Arial, sans-serif);
    color: #111;
    line-height: 1.6;
    background-color: #f9f9f9;
}

.wizard-log-archive-wrap .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Archive Hero styling logic moved and handled at bottom */

/* Archive Content */
.wizard-log-archive-wrap .log-archive-content {
    padding: 80px 0 120px;
}

/* Grid Layout */
.wizard-log-archive-wrap .log-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Post Card */
.wizard-log-archive-wrap .log-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.wizard-log-archive-wrap .log-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.wizard-log-archive-wrap .log-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.wizard-log-archive-wrap .log-card-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 66.66%;
    /* 3:2 aspect ratio */
    overflow: hidden;
    background-color: #eaeaea;
}

.wizard-log-archive-wrap .log-card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wizard-log-archive-wrap .log-card:hover .log-card-thumbnail img {
    transform: scale(1.05);
    /* Zoom effect on hover */
}

.wizard-log-archive-wrap .no-thumbnail {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 0.9rem;
}

.wizard-log-archive-wrap .log-card-cat {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #000;
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 20px;
    z-index: 2;
    text-transform: uppercase;
}

.wizard-log-archive-wrap .log-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wizard-log-archive-wrap .log-card-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.wizard-log-archive-wrap .log-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    color: #111;
}

/* Pagination */
.wizard-log-archive-wrap .log-pagination {
    margin-top: 60px;
    text-align: center;
}

.wizard-log-archive-wrap .nav-links {
    display: inline-flex;
    gap: 10px;
}

.wizard-log-archive-wrap .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background-color: #fff;
    color: #111;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.wizard-log-archive-wrap .page-numbers.current,
.wizard-log-archive-wrap .page-numbers:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* Responsive Archive */
@media (max-width: 900px) {
    .wizard-log-archive-wrap .log-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .wizard-log-archive-wrap .log-grid {
        grid-template-columns: 1fr;
    }

    .wizard-log-archive-wrap .container {
        padding: 0 20px;
    }
}

/* ========================================= */
/* R&D LOG - Single (Detail) Styles          */
/* ========================================= */
.wizard-log-single-wrap {
    font-family: 'Inter', var(--font-primary, 'Helvetica Neue', Arial, sans-serif);
    color: #222;
    line-height: 1.8;
    background-color: #fff;
}

.wizard-log-single-wrap .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.wizard-log-single-wrap .container-narrow {
    max-width: 800px;
    /* Narrow width for reading */
}

/* Single Header */
.wizard-log-single-wrap .log-single-header {
    padding: 80px 0 40px;
    text-align: center;
}

.wizard-log-single-wrap .log-single-meta {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.wizard-log-single-wrap .log-single-date {
    font-size: 0.95rem;
    color: #666;
}

.wizard-log-single-wrap .log-single-cat {
    background-color: #000;
    color: #fff;
    padding: 3px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.wizard-log-single-wrap .log-single-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
    color: #000;
}

/* Single Thumbnail */
.wizard-log-single-wrap .log-single-thumbnail {
    margin-bottom: 60px;
}

.wizard-log-single-wrap .log-single-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* Single Content Area */
.wizard-log-single-wrap .log-single-content {
    padding-bottom: 60px;
    font-size: 1.1rem;
    color: #333;
}

.wizard-log-single-wrap .log-single-content h2,
.wizard-log-single-wrap .log-single-content h3 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: #000;
    font-weight: 700;
}

.wizard-log-single-wrap .log-single-content p {
    margin-bottom: 1.5em;
}

.wizard-log-single-wrap .log-single-content a {
    color: #000;
    text-decoration: underline;
}

.wizard-log-single-wrap .log-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2em 0;
}

/* Navigation inside Post */
.wizard-log-single-wrap .log-single-nav {
    border-top: 1px solid #eaeaea;
    padding: 40px 0 80px;
}

.wizard-log-single-wrap .log-nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.wizard-log-single-wrap .nav-prev,
.wizard-log-single-wrap .nav-next {
    flex: 1;
    min-width: 200px;
}

.wizard-log-single-wrap .nav-next {
    text-align: right;
}

.wizard-log-single-wrap .log-nav-links a {
    color: #111;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.wizard-log-single-wrap .log-nav-links a:hover {
    color: #666;
}

.wizard-log-single-wrap .back-to-list-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #000;
    color: #fff !important;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.wizard-log-single-wrap .back-to-list-btn:hover {
    background-color: #444;
}

/* Responsive Single */
@media (max-width: 768px) {
    .wizard-log-single-wrap .log-single-title {
        font-size: 1.75rem;
    }

    .wizard-log-single-wrap .container {
        padding: 0 20px;
    }

    .wizard-log-single-wrap .log-nav-links {
        flex-direction: column;
        text-align: center;
    }

    .wizard-log-single-wrap .nav-prev,
    .wizard-log-single-wrap .nav-next {
        text-align: center;
    }

    .wizard-log-single-wrap .nav-back {
        order: -1;
        /* Move back button to top on mobile */
        margin-bottom: 20px;
    }
}

/* ==================================
   Base & Variables
================================== */
:root {
    --lp-color-navy: #0B2A51;
    --lp-color-navy-light: #1A5B9C;
    --lp-color-text: #333333;
    --lp-color-text-muted: #666666;
    --lp-color-light: #F8F9FA;
    --lp-color-white: #FFFFFF;
}

/* ==================================
   Layout Utility
================================== */
.lp-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.lp-section {
    padding: 80px 0;
}

.lp-section__header {
    text-align: center;
    margin-bottom: 50px;
}

.lp-section__title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--lp-color-navy);
    margin-bottom: 15px;
}

/* ユーティリティ背景クラス */
.bg-light_gray {
    background-color: var(--lp-color-light);
}

.text-navy {
    color: var(--lp-color-navy) !important;
}

/* SP表示/PC表示の切り替え */
.is-sp-only {
    display: none;
}

.is-pc-only {
    display: inline;
}

@media (max-width: 768px) {
    .is-sp-only {
        display: inline;
    }

    .is-pc-only {
        display: none;
    }
}

/* ==================================
   1. Hero Section
================================== */
.lp-hero {
    position: relative;
    background-color: var(--lp-color-navy);
    color: var(--lp-color-white);
    padding: 120px 20px;
    text-align: center;
    /* 背景画像を入れる場合 */
    /* background-image: url('hero-bg.jpg'); background-size: cover; */
}

.lp-hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.lp-hero__title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 30px;
}

.lp-hero__title-sub {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #8EB7E5;
    /* ハイライト色 */
}

.lp-hero__desc {
    font-size: 1.25rem;
    line-height: 1.8;
    font-weight: 400;
}

/* ==================================
   2. Problem Section
================================== */
.lp-problem__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.lp-card {
    background: var(--lp-color-white);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--lp-color-navy-light);
}

.lp-card__icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.lp-card__text {
    font-weight: 600;
    line-height: 1.6;
    color: var(--lp-color-text);
}

.lp-problem__conclusion {
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
    background: var(--lp-color-light);
    padding: 30px;
    border-radius: 8px;
    color: var(--lp-color-text);
}

.lp-problem__conclusion strong {
    color: var(--lp-color-navy);
    border-bottom: 2px solid var(--lp-color-navy-light);
}

/* ==================================
   3. Solution Section
================================== */
.lp-solution__content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.lp-solution__text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
}

.lp-solution__list {
    margin-top: 25px;
    padding: 0;
    list-style: none;
}

.lp-solution__list li {
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.check-icon {
    color: var(--lp-color-navy-light);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

.lp-solution__image {
    flex: 1;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: #E2E8F0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lp-color-text-muted);
    font-weight: bold;
}

/* ==================================
   4. Vision Section
================================== */
.lp-vision__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.vision-item {
    text-align: center;
}

.vision-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: var(--lp-color-light);
    border-radius: 50%;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--lp-color-navy);
    transition: transform 0.3s ease;
}

.vision-item:hover .vision-icon {
    transform: scale(1.1);
}

.vision-item h3 {
    font-size: 1.1rem;
    color: var(--lp-color-text);
    font-weight: 700;
}

.lp-vision__message {
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.8;
    padding-top: 30px;
    border-top: 1px solid #E2E8F0;
}

/* ==================================
   Responsive (スマホ表示調整)
================================== */
@media (max-width: 768px) {
    .lp-hero__title {
        font-size: 2rem;
    }

    .lp-section {
        padding: 50px 0;
    }

    .lp-section__title {
        font-size: 1.5rem;
    }

    .lp-problem__grid,
    .lp-vision__grid {
        grid-template-columns: 1fr;
    }

    .lp-solution__content {
        flex-direction: column;
    }
}

/* ==================================
   Gothic Typography Override & Video Section
================================== */
.lp-page {
    /* 力強さと精緻さを出すモダンゴシック指定 (Noto Sans JP or 游ゴシック etc.) */
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

.text-white {
    color: var(--lp-color-white) !important;
}

/* 動画セクションの装飾（グラデーションと発光効果） */
.lp-video-section {
    background: linear-gradient(135deg, #0B2A51 0%, #031224 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    color: var(--lp-color-white);
}

/* 背景のぼんやりとした光 */
.lp-video-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(26, 91, 156, 0.15) 0%, rgba(0, 0, 0, 0) 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.lp-video-section .lp-container {
    position: relative;
    z-index: 1;
}

/* 動画枠にグロー（発光）エフェクトを与えてクリックを促す */
.lp-video-container {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(26, 91, 156, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lp-video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(26, 91, 156, 0.5);
}

.lp-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 8px;
    overflow: hidden;
}

.lp-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lp-video-text {
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
}

.lp-video-text strong {
    color: #8EB7E5;
    font-size: 1.25rem;
}

/* ソリューション（独自技術）のリスト */
.lp-competence-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.lp-competence-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--lp-color-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-left: 4px solid var(--lp-color-navy);
}

.comp-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--lp-color-navy);
    color: var(--lp-color-white);
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.lp-competence-list h3 {
    color: var(--lp-color-navy);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.lp-competence-list p {
    margin: 0;
    font-weight: 500;
    color: var(--lp-color-text);
}

/* ==================================
   Abstract Hero Background
================================== */
.lp-hero--abstract {
    background-color: #031224;
    /* 深いダークネイビー */
    background-image:
        radial-gradient(circle at 75% 50%, rgba(26, 91, 156, 0.4) 0%, transparent 65%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-position: center center, center center, center center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lp-hero--abstract::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 0;
}

.lp-hero--abstract .lp-hero__content {
    position: relative;
    z-index: 1;
}

/* ==================================
   Application Fields Grid
================================== */
.lp-fields-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.lp-field-card {
    background: var(--lp-color-white);
    padding: 40px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lp-field-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.lp-field-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.lp-field-card h3 {
    font-size: 1.2rem;
    color: var(--lp-color-navy);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.lp-field-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--lp-color-text);
    margin: 0;
}

@media (max-width: 992px) {
    .lp-fields-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .lp-fields-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================================
   Logo Image Sizing
================================== */
.header-logo-img {
    max-height: 40px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.footer-logo-img {
    max-width: 200px;
    height: auto;
    display: block;
    margin-bottom: 5px;
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .header-logo-img {
        max-height: 35px;
        max-width: 150px;
        object-fit: contain;
    }

    .footer-logo-img {
        max-width: 160px;
    }
}

/* --- アーカイブ ヒーローセクションのデザイン --- */
.wizard-log-archive-wrap .log-archive-hero {
    position: relative;
    width: 100%;
    min-height: 400px;
    /* 他の主要ページとバランスを合わせる高さ */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* 背景画像の設定 */
.wizard-log-archive-wrap .log-archive-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    /* 一番後ろのアセット */
}

/* 視認性向上のための暗いオーバーレイ */
.wizard-log-archive-wrap .log-archive-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* 文字を読みやすくする黒半透明 */
    z-index: 2;
    /* 背景画像の上に覆いかぶせる */
}

/* 文字コンテンツの設定 */
.wizard-log-archive-wrap .log-archive-hero .hero-content {
    position: relative;
    z-index: 3;
    /* 背景とオーバーレイより手前に配置 */
    padding: 0 20px;
    width: 100%;
}

/* ページタイトル（白文字） */
.wizard-log-archive-wrap .log-archive-hero .archive-title {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    /* スマホ・PCで綺麗に可変するサイズ */
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* サブタイトル（白文字） */
.wizard-log-archive-wrap .log-archive-hero .archive-subtitle {
    color: #ffffff;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin: 0;
}

/* YouTube動画をコンテンツ幅いっぱいに表示し、16:9のアスペクト比を維持する */
figure.wp-block-embed-youtube {
    width: 100% !important;
    /* ブロックの幅を100%に強制 */
    max-width: 100% !important;
    margin-left: 0;
    margin-right: 0;
}

figure.wp-block-embed-youtube .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* 16:9のアスペクト比を維持 */
}

figure.wp-block-embed-youtube .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    /* デフォルトの枠線を消す */
}

/* サイト全体のSpectra画像ギャラリー/スライダーのキャプションを完全に非表示にする */
.uag-image-gallery__caption {
    display: none !important;
}

/* マウスオーバー時の背景（オーバーレイ）もスッキリさせる場合 */
.uagb-image-gallery__overlay {
    background-color: transparent !important;
}

/* --- R&D LOG Archive Layout & Blog Cards Design --- */

/* 1. 全体のグリッドレイアウト（スマホ時は縦一列、1カラム） */
.log-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    /* カード同士の間隔 */
    margin-bottom: 60px;
}

/* PC等の大きな画面（画面幅768px以上）では3カラムにする */
@media (min-width: 768px) {
    .log-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2. カードコンテナ自体のデザイン */
.log-card {
    background-color: #ffffff;
    border: 1px solid #eef0f3;
    /* 極めて薄い枠線でシャープに */
    border-radius: 12px;
    /* 丸みを持たせてモダンな印象に */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    /* うっすらとした洗練された影 */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバー時の浮き上がり・影の強調エフェクト */
.log-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    /* 通常時より少し強めの影 */
}

/* リンク要素をブロック化して全体に高さを確保 */
.log-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 3. アイキャッチ画像のエリア */
.log-card-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* 縦横比を16:9で統一 */
    background-color: #f7f9fa;
    /* 画像読み込み前や未設定時の下地色 */
    overflow: hidden;
}

.log-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 画像の比率を維持したまま余白なく埋める */
    transition: transform 0.5s ease;
}

/* ホバー時に画像をゆっくり少しだけズームする */
.log-card:hover .log-card-thumbnail img {
    transform: scale(1.04);
}

/* サムネイルがない場合 */
.log-card-thumbnail .no-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* 4. 丸薬型（Pill）のカテゴリーラベル（画像の上に被せる） */
.log-card-cat {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--color-navy, #1e293b);
    /* テーマに合わせて調整 */
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    /* pill(丸薬)型 */
    line-height: 1;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    /* ラベル自体にも少し影 */
    letter-spacing: 0.05em;
}

/* 5. カード本文エリア（日付・タイトル） */
.log-card-body {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* 日付 */
.log-card-date {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    /* スレートグレー系で洗練された印象に */
    margin-bottom: 12px;
    font-weight: 500;
}

/* 記事タイトル */
.log-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    color: #1a202c;
    /* ダークグレー */
    /* 読みにくくないよう2行に抑え、あふれれば「...」を表示 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- ページネーションのデザイン --- */
.log-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.log-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    background-color: #f1f5f9;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.log-pagination .page-numbers.current,
.log-pagination .page-numbers:hover {
    background-color: var(--color-navy, #1e293b);
    color: #ffffff;
}

/* --- R&D Logページ用の全幅制限解除 --- */
body.page-template-page-rnd .site-main,
body.archive .site-main,
body.blog .site-main {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* ヘッダーの被りを防ぐための調整 */
body.page-template-page-rnd .wizard-log-archive-wrap,
body.archive .wizard-log-archive-wrap {
    padding-top: 80px; 
}