/*
Theme Name: AI Bridge
Theme URI: https://aibridge.jp
Author: AI Bridge Inc.
Author URI: https://aibridge.jp
Description: 日本の企業サイト向けWordPressテーマ。ブロックエディタ完全対応、メガメニュー、ニュースティッカー、右サイドCTA等の機能を搭載。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aibridge
Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-width-template, block-styles, wide-blocks, translation-ready
*/

/* Color variables are set dynamically in header.php from admin settings */
:root {
    /* These are fallback values - actual colors come from header.php inline styles */
    --sidebar-width: 60px;
    --right-cta-width: 80px;
    --header-height: 80px;
    --font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    --font-family-en: "Cormorant Garamond", "Times New Roman", serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    overflow-x: hidden;
}

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

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

ul, ol {
    list-style: none;
}

/* ===== Layout ===== */
.site-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== Left Sidebar ===== */
.left-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
    z-index: 1000;
}

.left-sidebar .site-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-family-en);
    font-size: 14px;
    letter-spacing: 0.2em;
    color: var(--text-light);
    font-weight: 400;
}

.left-sidebar .left-catchcopy {
    font-family: var(--font-family-en);
    font-size: 18px;
    letter-spacing: 0.15em;
    color: var(--text-light);
    font-weight: 400;
    white-space: nowrap;
    transform: rotate(90deg);
    transform-origin: center center;
}

.left-sidebar .social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.left-sidebar .social-links a {
    font-size: 16px;
    color: var(--text-light);
}

.left-sidebar .social-links a:hover {
    color: var(--primary-color);
}

/* ===== Right CTA Sidebar ===== */
.right-cta {
    position: fixed;
    right: 0;
    top: 0;
    width: var(--right-cta-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.right-cta a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    color: #fff;
    font-size: 12px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.right-cta a:hover {
    opacity: 1;
}

.right-cta .cta-contact {
    background-color: var(--primary-color);
}

.right-cta .cta-contact:hover {
    background-color: var(--primary-dark);
}

.right-cta .cta-download {
    background-color: var(--accent-color);
}

.right-cta .cta-download:hover {
    background-color: #B89A6E;
}

.right-cta .cta-tel {
    background-color: var(--text-color);
}

.right-cta .cta-tel:hover {
    background-color: #222;
}

.right-cta .cta-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.right-cta .cta-text {
    writing-mode: vertical-rl;
    letter-spacing: 0.1em;
}

/* ===== Main Content Area ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    margin-right: var(--right-cta-width);
    overflow-x: hidden;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: var(--right-cta-width);
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 99;
    border-bottom: 1px solid var(--border-color);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo img {
    height: 40px;
    width: auto;
}

.header-logo .logo-text {
    font-family: var(--font-family-en);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.header-logo .logo-sub {
    font-size: 10px;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

/* ===== Navigation ===== */
.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    font-size: 14px;
    letter-spacing: 0.1em;
    position: relative;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav > ul > li > a i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.main-nav > ul > li:hover > a i {
    transform: rotate(180deg);
}

.main-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav > ul > li:hover > a::after {
    width: 100%;
}

.main-nav > ul > li:hover > a {
    opacity: 1;
    color: var(--primary-color);
}

/* ===== Mega Menu ===== */
.megamenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 480px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 20px;
}

.megamenu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
}

.megamenu::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #fff;
}

.has-megamenu:hover .megamenu {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

.megamenu-wide {
    min-width: 800px;
}

.megamenu-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 25px;
}

.megamenu-wide .megamenu-inner {
    grid-template-columns: repeat(4, 1fr);
}

.megamenu-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.megamenu-item a {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.megamenu-item a:hover {
    background: var(--bg-light);
    opacity: 1;
}

.megamenu-item a::after {
    display: none;
}

.megamenu-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 10px;
    color: var(--primary-color);
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.megamenu-item a:hover .megamenu-icon {
    background: var(--primary-color);
    color: #fff;
}

.megamenu-item.featured .megamenu-icon {
    background: var(--primary-color);
    color: #fff;
}

.megamenu-item.featured a:hover .megamenu-icon {
    background: var(--primary-dark);
}

.megamenu-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.megamenu-item a:hover .megamenu-content h4 {
    color: var(--primary-color);
}

.megamenu-content p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

.megamenu-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.megamenu-link {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.megamenu-link:hover {
    gap: 12px;
    opacity: 1;
}

.megamenu-link::after {
    display: none;
}

.header-search {
    font-size: 18px;
    cursor: pointer;
    color: var(--text-light);
}

/* ===== Hero Section with Swiper ===== */
.hero-section {
    margin-top: var(--header-height);
    height: calc(100vh - var(--header-height));
    min-height: calc(100vh - var(--header-height));
    position: relative;
    overflow: hidden;
    background-color: #1a1a2e;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1a1a2e;
    z-index: 0;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-wrapper {
    height: 100% !important;
}

.hero-swiper .swiper-slide {
    height: 100% !important;
    width: 100% !important;
}

.hero-slide {
    height: 100% !important;
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 8s ease-out;
    z-index: 0;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.swiper-slide-active .hero-bg-image {
    transform: scale(1);
}

/* Swiper Fade Effect Fix */
.hero-swiper {
    background-color: #1a1a2e;
}

.hero-swiper .swiper-wrapper {
    background-color: #1a1a2e;
}

.hero-swiper .swiper-slide {
    background-color: #1a1a2e;
}

.hero-swiper .swiper-slide .hero-bg-image {
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg-1 {
    background: linear-gradient(135deg, #8B7355 0%, #5D4E3A 50%, #3D342A 100%);
}

.hero-bg-2 {
    background: linear-gradient(135deg, #2C3E50 0%, #4A6741 50%, #8B7355 100%);
}

.hero-bg-3 {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.hero-slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    width: 80%;
    max-width: 800px;
}

.hero-title {
    font-size: 52px;
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 25px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.4);
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 18px;
    letter-spacing: 0.12em;
    opacity: 0.95;
    margin-bottom: 40px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.btn-hero {
    display: inline-block;
    padding: 16px 45px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.8);
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.1em;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-hero:hover {
    color: var(--primary-color);
    border-color: #fff;
    opacity: 1;
}

.btn-hero:hover::before {
    left: 0;
}

.hero-vertical-text {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-size: 24px;
    letter-spacing: 0.4em;
    color: #fff;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
    z-index: 20;
    font-weight: 300;
}

/* Swiper Pagination */
.hero-swiper .swiper-pagination {
    bottom: 50px;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    opacity: 1;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.2);
}

/* Swiper Navigation */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
    color: #fff;
    transform: scale(1.1);
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
    font-size: 28px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    opacity: 0.8;
}

.scroll-text {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-family: var(--font-family-en);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, #fff 0%, transparent 100%);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===== News Ticker ===== */
.news-ticker {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.9);
    padding: 10px 30px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
}

.news-ticker .date {
    color: var(--primary-color);
    font-family: var(--font-family-en);
}

/* ===== News Ticker Bar (Below Hero) ===== */
.news-ticker-bar {
    background: var(--ticker-content-bg, #1a1a2e);
    position: relative;
    z-index: 10;
    width: 100%;
    overflow: hidden;
}

.news-ticker-inner {
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.news-ticker-label {
    padding: 18px 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--ticker-label-text, #fff);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    background: var(--ticker-label-bg, #8B7355);
}

.news-ticker-label i {
    font-size: 14px;
    color: var(--ticker-label-text, #fff);
}

.news-ticker-label span {
    font-family: var(--font-family-en);
}

.news-ticker-content {
    flex: 1;
    overflow: hidden;
    overflow-x: clip;
    position: relative;
    contain: content;
}

.news-ticker-track {
    display: flex;
    animation: tickerScroll var(--ticker-speed, 25s) linear infinite;
    width: max-content;
}

.news-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes tickerScrollReverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.ticker-reverse .news-ticker-track {
    animation-name: tickerScrollReverse;
}

.news-ticker-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    color: var(--ticker-content-text, #fff);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
}

.news-ticker-item:hover {
    background: rgba(255,255,255,0.1);
}

.news-ticker-more {
    padding: 18px 25px;
    font-size: 13px;
    color: var(--ticker-content-text, #fff);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    background: rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.news-ticker-more:hover {
    background: rgba(255,255,255,0.1);
    color: var(--ticker-content-text, #fff);
}

.ticker-date {
    color: var(--ticker-date-color, #8B7355);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 300;
}

.ticker-title {
    font-size: 13px;
    font-weight: 400;
}

/* ===== Section Common ===== */
.section {
    padding: 100px 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-en {
    font-family: var(--font-family-en);
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title-ja {
    font-size: 14px;
    color: var(--text-light);
    letter-spacing: 0.2em;
}

/* ===== About Section ===== */
.about-section {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.about-text p {
    font-size: 15px;
    line-height: 2;
    color: var(--text-light);
}

/* ===== Service Section ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 45px 35px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    transform: translateY(-10px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary-color);
    background: var(--bg-light);
    border-radius: 50%;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.service-card:hover h4 {
    color: var(--primary-color);
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-link {
    display: inline-block;
    color: var(--primary-color);
    font-size: 13px;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 3px;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.service-card:hover .service-link::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ===== Features Section with Parallax ===== */
.features-section {
    background: var(--text-color);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.features-section.parallax-bg {
    background: url('assets/images/features-bg.jpg') center center / cover no-repeat fixed;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(51, 51, 51, 0.92);
    z-index: 1;
}

.features-content {
    position: relative;
    z-index: 2;
}

.features-section .section-title-en {
    color: var(--accent-color);
}

.features-section .section-title-ja {
    color: rgba(255,255,255,0.7);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-item {
    display: flex;
    gap: 25px;
    padding: 35px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent-color);
    transition: height 0.4s ease;
}

.feature-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
    transform: translateX(10px);
}

.feature-item:hover::before {
    height: 100%;
}

.feature-number {
    font-family: var(--font-family-en);
    font-size: 42px;
    color: var(--accent-color);
    line-height: 1;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-number {
    transform: scale(1.1);
}

.feature-content h4 {
    font-size: 18px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.feature-item:hover .feature-content h4 {
    color: var(--accent-color);
}

.feature-content p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.9;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 80px 60px;
    margin-bottom: 0;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.cta-section p {
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 18px 50px;
    font-size: 14px;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-white:hover {
    background: var(--bg-light);
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    margin-left: 20px;
}

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

/* ===== Footer ===== */
.site-footer {
    background: var(--text-color);
    color: #fff;
    padding: 60px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-family-en);
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 100%;
    height: auto;
}

.footer-info p {
    font-size: 13px;
    opacity: 0.7;
    line-height: 2;
}

.footer-nav h5 {
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

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

.footer-nav a {
    font-size: 13px;
    opacity: 0.7;
}

.footer-nav a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    opacity: 0.6;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom[style*="text-align: left"] {
    justify-content: flex-start;
}

.footer-bottom[style*="text-align: center"] {
    justify-content: center;
}

.footer-bottom[style*="text-align: right"] {
    justify-content: flex-end;
}

.footer-bottom[style*="text-align: left"] .footer-social,
.footer-bottom[style*="text-align: right"] .footer-social {
    margin-left: auto;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    :root {
        --sidebar-width: 0px;
        --right-cta-width: 0px;
    }

    .left-sidebar,
    .right-cta {
        display: none;
    }

    .site-header {
        left: 0;
        right: 0;
        padding: 0 20px;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .section {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-vertical-text {
        display: none;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* News Ticker Bar Mobile */
    .news-ticker-inner {
        flex-direction: column;
    }

    .news-ticker-label {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .news-ticker-content {
        width: 100%;
    }

    .news-ticker-item {
        padding: 12px 25px;
    }

    .news-ticker-more {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

/* ===== Mobile Menu ===== */
.mobile-menu-toggle {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.mobile-menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-toggle span:nth-child(3) { bottom: 0; }

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.bg-light { background-color: var(--bg-light); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ===== Enhanced About Section ===== */
.about-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.about-image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0ddd8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.3;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-size: 14px;
    letter-spacing: 0.05em;
    margin-top: 30px;
    transition: all 0.3s ease;
}

.btn-link i {
    transition: transform 0.3s ease;
}

.btn-link:hover {
    opacity: 1;
    gap: 15px;
}

.btn-link:hover i {
    transform: translateX(5px);
}

/* ===== Enhanced CTA Section ===== */
.cta-content {
    position: relative;
    z-index: 2;
}

.btn-hover-effect {
    position: relative;
    overflow: hidden;
}

.btn-hover-effect span {
    position: relative;
    z-index: 2;
}

.btn-hover-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-hover-effect:hover::before {
    width: 300px;
    height: 300px;
}

/* ===== Parallax Container ===== */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-image {
    will-change: transform;
}

/* ===== Header Scroll State ===== */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* ===== Page Top Button ===== */
.page-top-btn {
    position: fixed;
    bottom: 30px;
    right: calc(var(--right-cta-width) + 20px);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 90;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

.page-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.page-top-btn:hover {
    transform: translateY(-5px);
    background: var(--primary-dark);
}

/* ===== Loading Animation ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--bg-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Enhanced Responsive ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
        letter-spacing: 0.08em;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-vertical-text {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-swiper .swiper-button-prev,
    .hero-swiper .swiper-button-next {
        display: none;
    }

    .btn-hero {
        padding: 12px 30px;
        font-size: 13px;
    }

    .section-title-en {
        font-size: 36px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-number {
        font-size: 32px;
    }

    .page-top-btn {
        right: 20px;
        bottom: 20px;
    }

    /* Stats Section Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 0 20px;
    }

    .stat-number {
        font-size: 48px;
    }

    .stat-suffix {
        font-size: 24px;
        margin-top: 10px;
    }

    /* Testimonials Mobile */
    .testimonial-item {
        padding: 30px 20px;
    }

    .testimonial-content {
        padding: 0;
    }

    .testimonial-content::before {
        font-size: 80px;
        top: -20px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .testimonial-author {
        flex-direction: column;
        gap: 10px;
    }

    .testimonial-info {
        text-align: center;
    }

    /* News Mobile */
    .news-item {
        flex-wrap: wrap;
        gap: 10px 15px;
    }

    .news-date {
        min-width: auto;
    }

    .news-title {
        width: 100%;
    }

    /* FAQ Mobile */
    .faq-question {
        padding: 20px;
    }

    .faq-answer-content {
        padding: 0 20px 20px;
    }

    .faq-question h4 {
        font-size: 14px;
    }
}

/* ===== Stats Section ===== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.stat-item {
    text-align: center;
    color: #fff;
}

.stat-number {
    font-family: var(--font-family-en);
    font-size: 72px;
    font-weight: 400;
    line-height: 1;
    display: inline-block;
}

.stat-suffix {
    font-family: var(--font-family-en);
    font-size: 32px;
    font-weight: 400;
    display: inline-block;
    margin-left: 5px;
    vertical-align: top;
    margin-top: 15px;
}

.stat-label {
    font-size: 14px;
    margin-top: 15px;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    background: var(--bg-light);
}

.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.testimonial-item {
    background: #fff;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.testimonial-content {
    position: relative;
    padding: 0 40px;
}

.testimonial-content::before {
    content: '"';
    font-family: var(--font-family-en);
    font-size: 120px;
    color: var(--accent-color);
    position: absolute;
    top: -40px;
    left: 0;
    opacity: 0.3;
    line-height: 1;
}

.testimonial-text {
    font-size: 16px;
    line-height: 2;
    color: var(--text-color);
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-avatar i {
    font-size: 24px;
    color: var(--primary-color);
}

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

.testimonial-info {
    text-align: left;
}

.testimonial-name {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 4px;
}

.testimonial-company {
    font-size: 13px;
    color: var(--text-light);
}

/* Testimonial navigation dots */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active,
.testimonial-dot:hover {
    background: var(--primary-color);
}

/* ===== News Section ===== */
.news-section {
    background: #fff;
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.news-empty {
    text-align: center;
    color: var(--text-light);
    padding: 40px 0;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.news-item:hover {
    padding-left: 15px;
    background: var(--bg-light);
}

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

.news-date {
    font-family: var(--font-family-en);
    font-size: 14px;
    color: var(--text-light);
    white-space: nowrap;
    min-width: 100px;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 2px;
    white-space: nowrap;
}

.news-category.news {
    background: var(--primary-color);
}

.news-category.info {
    background: #5B9BD5;
}

.news-category.press {
    background: #70AD47;
}

.news-title {
    flex: 1;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

.news-more {
    text-align: center;
    margin-top: 40px;
}

/* ===== FAQ Section ===== */
.faq-section {
    background: var(--bg-light);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question-text {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.faq-q {
    font-family: var(--font-family-en);
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1;
}

.faq-question h4 {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

.faq-toggle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-toggle i {
    font-size: 12px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    background: var(--primary-color);
}

.faq-item.active .faq-toggle i {
    color: #fff;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    display: flex;
    gap: 15px;
    padding: 0 30px 25px;
}

.faq-a {
    font-family: var(--font-family-en);
    font-size: 20px;
    color: var(--accent-color);
    font-weight: 500;
    line-height: 1;
}

.faq-answer p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-light);
}

/* ===== Page Main ===== */
.site-main.page-main {
    padding-top: var(--header-height);
}

/* ===== Page Header ===== */
.page-header {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    overflow: hidden;
}

.page-header-hero {
    min-height: 500px;
}

.page-header-minimal {
    min-height: 200px;
    background: var(--bg-light);
}

/* ミニマルでもオーバーレイは有効 */

.page-header-minimal .page-title {
    color: var(--text-color);
}

.page-header-minimal .breadcrumb a,
.page-header-minimal .breadcrumb .current {
    color: var(--text-light);
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-header-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    z-index: 1;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
}

.page-title {
    font-family: var(--font-family-en);
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0;
}

.page-subtitle {
    font-size: 16px;
    margin-top: 15px;
    opacity: 0.9;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 13px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.breadcrumb a {
    color: #fff;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb .separator {
    margin: 0 10px;
    opacity: 0.5;
}

.breadcrumb .current {
    opacity: 0.8;
}

.breadcrumb-hero {
    margin-bottom: 30px;
}

/* Hero Page Style */
.hero-page {
    min-height: 70vh;
}

/* ===== Page Content ===== */
.page-content-wrap {
    padding: 20px 0 0;
}

/* 全幅レイアウト時は余白完全削除 */
.page-content-wrap.page-content-full {
    padding: 0;
    margin: 0;
}

.page-content-full .page-content {
    max-width: none;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Allow alignwide/alignfull to break out of container */
.page-content-wrap {
    overflow-x: clip;
}

.page-content-wrap .container {
    overflow: visible;
}

.container-with-sidebar {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
}

.container-with-sidebar.sidebar-right {
    grid-template-columns: 1fr 280px;
}

/* ===== Full Width Sidebar Layout ===== */
.page-with-sidebar-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

.page-with-sidebar-layout .page-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: var(--bg-light);
    padding: 20px 40px;
    position: relative;
}

.page-with-sidebar-layout .page-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100vw;
    height: 100%;
    background: var(--bg-light);
    z-index: -1;
}

.page-with-sidebar-layout.sidebar-left .page-sidebar::before {
    right: 0;
}

.page-with-sidebar-layout.sidebar-right .page-sidebar::before {
    left: 0;
}

.page-with-sidebar-layout .page-sidebar-inner {
    position: sticky;
    top: 90px;
}

.page-with-sidebar-layout .page-main-content {
    flex: 1;
    padding: 0;
    max-width: calc(100% - 320px);
}

.page-with-sidebar-layout.sidebar-right {
    flex-direction: row-reverse;
}

/* Sidebar Menu Styles */
.page-sidebar-menu .widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-sidebar-menu .widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
}

.page-sidebar-menu .sidebar-menu-list,
.page-sidebar-menu .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-sidebar-menu .sidebar-menu-list li,
.page-sidebar-menu .widget ul li {
    border-bottom: 1px solid var(--border-color);
}

.page-sidebar-menu .sidebar-menu-list li:last-child,
.page-sidebar-menu .widget ul li:last-child {
    border-bottom: none;
}

.page-sidebar-menu .sidebar-menu-list li a,
.page-sidebar-menu .widget ul li a {
    display: block;
    padding: 12px 0;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
}

.page-sidebar-menu .sidebar-menu-list li a:hover,
.page-sidebar-menu .widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.page-sidebar-menu .sidebar-menu-list li.current-menu-item a,
.page-sidebar-menu .widget ul li.current_page_item a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Sidebar submenu */
.page-sidebar-menu .sidebar-menu-list .sub-menu {
    padding-left: 20px;
}

.page-sidebar-menu .sidebar-menu-list .sub-menu li a {
    padding: 10px 0;
    font-size: 13px;
}

/* Sidebar Contact Box */
.page-sidebar-menu .widget-contact {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-sidebar-menu .widget-contact .widget-title {
    border-bottom-color: var(--primary-color);
}

.page-sidebar-menu .widget-contact-content {
    font-size: 14px;
}

.page-sidebar-menu .widget-contact-content p {
    margin-bottom: 12px;
}

.page-sidebar-menu .widget-contact-content i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 16px;
}

.page-sidebar-menu .widget-contact .btn-small {
    display: block;
    text-align: center;
    padding: 12px 20px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 15px;
    transition: all 0.3s;
}

.page-sidebar-menu .widget-contact .btn-small:hover {
    background: var(--primary-dark);
}

.page-content {
    font-size: 16px;
    line-height: 2;
}

.page-content h2 {
    font-size: 28px;
    font-weight: 500;
    margin: 20px 0 25px;
    padding-bottom: 0;
    border-bottom: none;
}

.page-content h3 {
    font-size: 22px;
    font-weight: 500;
    margin: 50px 0 20px;
    padding-left: 15px;
    border-left: 4px solid var(--primary-color);
}

.page-content h4 {
    font-size: 18px;
    font-weight: 500;
    margin: 40px 0 15px;
}

.page-content p {
    margin-bottom: 1.5em;
}

/* 最後の要素のマージンを消す（フッターにピタリ付け） */
.page-content > *:last-child,
.page-content .aibridge-section:last-child,
.page-content .wp-block-group:last-child,
.page-content .wp-block-columns:last-child {
    margin-bottom: 0 !important;
}

/* フッター完全詰め - 全ページ適用 */
.page-content-wrap .container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

article.page-content {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.page-content > .aibridge-section:last-child,
.page-content > .wp-block-aibridge-section:last-child {
    margin-bottom: 0 !important;
}

/* main要素の余白も消す */
.site-main.page-main {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.page-content ul,
.page-content ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.page-content ul {
    list-style: disc;
}

.page-content ol {
    list-style: decimal;
}

.page-content li {
    margin-bottom: 0.5em;
}

.page-content img {
    border-radius: 8px;
    margin: 30px 0;
}

.page-content blockquote {
    background: var(--bg-light);
    padding: 30px;
    border-left: 4px solid var(--primary-color);
    margin: 30px 0;
    font-style: italic;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.page-content th,
.page-content td {
    padding: 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.page-content th {
    background: var(--bg-light);
    font-weight: 500;
}

/* ===== Sidebar ===== */
.sidebar {
    position: sticky;
    top: 120px;
}

.sidebar .widget {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.sidebar .widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar .widget ul {
    list-style: none;
}

.sidebar .widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
}

.sidebar .widget ul li a {
    display: block;
    color: var(--text-color);
    transition: all 0.3s;
}

.sidebar .widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.sidebar .widget-contact-content {
    font-size: 14px;
}

.sidebar .widget-contact-content p {
    margin-bottom: 10px;
}

.sidebar .widget-contact-content i {
    margin-right: 8px;
    color: var(--primary-color);
}

.sidebar .btn-small {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 10px;
    transition: background 0.3s;
}

.sidebar .btn-small:hover {
    background: var(--primary-dark);
    opacity: 1;
}

/* ===== Landing Page ===== */
.landing-page .site-main {
    margin-left: 0;
    margin-right: 0;
}

/* ===== Page Responsive ===== */
@media (max-width: 992px) {
    .container-with-sidebar {
        grid-template-columns: 1fr;
    }

    .container-with-sidebar.sidebar-right {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .sidebar-left {
        order: 2;
    }

    /* Full Width Sidebar Layout Responsive */
    .page-with-sidebar-layout {
        flex-direction: column;
    }

    .page-with-sidebar-layout.sidebar-right {
        flex-direction: column;
    }

    .page-with-sidebar-layout .page-sidebar {
        width: 100%;
        padding: 40px 20px;
    }

    .page-with-sidebar-layout .page-sidebar::before {
        display: none;
    }

    .page-with-sidebar-layout .page-sidebar-inner {
        position: static;
    }

    .page-with-sidebar-layout .page-main-content {
        max-width: 100%;
        padding: 0;
    }

    .page-sidebar-menu .sidebar-menu-list li.current-menu-item a::before,
    .page-sidebar-menu .widget ul li.current_page_item a::before {
        left: -10px;
    }
}

@media (max-width: 768px) {
    .page-header {
        min-height: 250px;
    }

    .page-header-hero {
        min-height: 400px;
    }

    .page-title {
        font-size: 32px;
    }

    .page-content-wrap {
        padding: 20px 0 0;
    }

    .container {
        padding: 0 20px;
    }

    .page-content h2 {
        font-size: 24px;
    }

    .page-content h3 {
        font-size: 20px;
    }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== Selection Color ===== */
::selection {
    background: var(--primary-color);
    color: #fff;
}

::-moz-selection {
    background: var(--primary-color);
    color: #fff;
}

/* ===== Block Editor Alignment Support ===== */

/* Wide alignment - breaks out to 1200px but stays within main-content */
.alignwide {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Full width alignment - edge to edge within main content (NOT viewport) */
.alignfull {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* 見出しのalign対応 - なし（デフォルト）*/
.page-content h1:not(.alignwide):not(.alignfull),
.page-content h2:not(.alignwide):not(.alignfull),
.page-content h3:not(.alignwide):not(.alignfull),
.page-main-content h1:not(.alignwide):not(.alignfull),
.page-main-content h2:not(.alignwide):not(.alignfull),
.page-main-content h3:not(.alignwide):not(.alignfull) {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* 見出しのalign対応 - 幅広 */
h1.alignwide, h2.alignwide, h3.alignwide, h4.alignwide, h5.alignwide, h6.alignwide,
.wp-block-heading.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 見出しのalign対応 - 全幅 */
h1.alignfull, h2.alignfull, h3.alignfull, h4.alignfull, h5.alignfull, h6.alignfull,
.wp-block-heading.alignfull {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* alignfull時はセクション内側パディングも削除（インラインスタイル上書き） */
.alignfull .aibridge-section__inner,
.aibridge-section.alignfull .aibridge-section__inner,
.page-content .aibridge-section.alignfull .aibridge-section__inner,
.page-main-content .aibridge-section.alignfull .aibridge-section__inner,
article .aibridge-section.alignfull .aibridge-section__inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding: 0 !important;
}

/* Ensure images within alignwide/alignfull fill the container */
.alignwide img,
.alignfull img {
    width: 100%;
    height: auto;
}

/* Fix for figures */
.alignwide figure,
.alignfull figure {
    margin: 0;
}

.alignwide figure img,
.alignfull figure img {
    width: 100%;
}

/* ===== Block Styles - Buttons ===== */
.wp-block-button.is-style-aibridge-primary .wp-block-button__link {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wp-block-button.is-style-aibridge-primary .wp-block-button__link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.wp-block-button.is-style-aibridge-secondary .wp-block-button__link {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 13px 38px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wp-block-button.is-style-aibridge-secondary .wp-block-button__link:hover {
    background: var(--primary-color);
    color: #fff;
}

.wp-block-button.is-style-aibridge-arrow .wp-block-button__link {
    background: transparent;
    color: var(--text-color);
    border: none;
    padding: 10px 0;
    font-weight: 500;
    position: relative;
}

.wp-block-button.is-style-aibridge-arrow .wp-block-button__link::after {
    content: '→';
    margin-left: 10px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.wp-block-button.is-style-aibridge-arrow .wp-block-button__link:hover::after {
    transform: translateX(5px);
}

/* ===== Block Styles - Groups ===== */
.is-style-aibridge-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 30px;
    transition: all 0.3s ease;
}

.is-style-aibridge-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.is-style-aibridge-shadow {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.is-style-aibridge-border {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
}

/* ===== Block Styles - Images ===== */
.is-style-aibridge-rounded img {
    border-radius: 12px;
}

.is-style-aibridge-shadow img {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* ===== Block Styles - Lists ===== */
.is-style-aibridge-check-list {
    list-style: none;
    padding-left: 0;
}

.is-style-aibridge-check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.is-style-aibridge-check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.is-style-aibridge-numbered {
    list-style: none;
    padding-left: 0;
    counter-reset: item;
}

.is-style-aibridge-numbered li {
    position: relative;
    padding-left: 45px;
    margin-bottom: 15px;
    counter-increment: item;
}

.is-style-aibridge-numbered li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* ===== Block Styles - Headings ===== */
/* 管理画面から設定可能な見出し装飾スタイル */

/* 下線付き */
.is-style-aibridge-underline,
.page-content h2.is-style-aibridge-underline,
.page-content h3.is-style-aibridge-underline,
.page-main-content h2.is-style-aibridge-underline,
.page-main-content h3.is-style-aibridge-underline {
    padding: 10px 0 15px 0;
    border-bottom: var(--hs-underline-thickness, 3px) solid var(--hs-underline-color, var(--primary-color)) !important;
}

/* アクセントライン */
.is-style-aibridge-accent {
    position: relative;
    padding: 10px 0 10px 20px;
}

.is-style-aibridge-accent::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: var(--hs-accent-thickness, 4px);
    height: 100%;
    background: var(--hs-accent-color, var(--primary-color));
}

/* グラデーション下線 */
.is-style-aibridge-gradient-underline {
    position: relative;
    padding: 10px 0 15px 0;
    border-bottom: none !important;
}

.is-style-aibridge-gradient-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: var(--hs-gradient-thickness, 3px);
    background: linear-gradient(90deg, var(--hs-gradient-start, var(--primary-color)) 0%, var(--hs-gradient-end, var(--accent-color)) 50%, transparent 100%);
}

/* ボックス */
.is-style-aibridge-box {
    background: var(--hs-box-bg, var(--bg-light));
    color: var(--hs-box-text, var(--text-color));
    padding: 20px 25px 20px 25px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-left: 4px solid var(--hs-box-border, var(--primary-color)) !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-radius: 0 8px 8px 0;
    line-height: 1.5;
}

/* リボン */
.is-style-aibridge-ribbon {
    position: relative;
    background: var(--hs-ribbon-bg, var(--primary-color));
    color: var(--hs-ribbon-text, #fff) !important;
    /* padding: 15px 25px 15px 30px; */
    margin-left: 15px;
}

.is-style-aibridge-ribbon::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 0;
    border-style: solid;
    border-width: 0 15px 50% 0;
    border-color: transparent var(--hs-ribbon-bg, var(--primary-color)) transparent transparent;
}

.is-style-aibridge-ribbon::after {
    content: '';
    position: absolute;
    left: -15px;
    bottom: 0;
    border-style: solid;
    border-width: 50% 15px 0 0;
    border-color: transparent var(--hs-ribbon-bg, var(--primary-color)) transparent transparent;
}

/* 吹き出し */
.is-style-aibridge-balloon {
    position: relative;
    background: var(--hs-balloon-bg, var(--primary-color));
    color: var(--hs-balloon-text, #fff) !important;
    /* padding: 15px 25px; */
    border-radius: 8px;
    display: block;
    width: 100%;
}

.is-style-aibridge-balloon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-style: solid;
    border-width: 10px 10px 0 10px;
    border-color: var(--hs-balloon-bg, var(--primary-color)) transparent transparent transparent;
}

/* ストライプ背景 */
.is-style-aibridge-stripe {
    background: repeating-linear-gradient(
        -45deg,
        var(--hs-stripe-color1, var(--primary-color)),
        var(--hs-stripe-color1, var(--primary-color)) 10px,
        var(--hs-stripe-color2, var(--accent-color)) 10px,
        var(--hs-stripe-color2, var(--accent-color)) 20px
    );
    color: var(--hs-stripe-text, #fff) !important;
    /* padding: 20px 25px; */
}

/* マーカー */
.is-style-aibridge-marker {
    background: linear-gradient(transparent 60%, var(--hs-marker-color, #FFF59D) 60%);
    color: var(--hs-marker-text, var(--text-color));
    display: block;
    padding: 5px 5px;
    width: 100%;
}

/* 括弧付き */
.is-style-aibridge-brackets {
    position: relative;
    padding: 10px 40px;
    text-align: center;
}

.is-style-aibridge-brackets::before,
.is-style-aibridge-brackets::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    color: var(--hs-brackets-color, var(--primary-color));
    font-weight: 300;
}

.is-style-aibridge-brackets::before {
    content: '「';
    left: 0;
}

.is-style-aibridge-brackets::after {
    content: '」';
    right: 0;
}

/* ステップ番号 */
.is-style-aibridge-step {
    position: relative;
    padding: 10px 0 10px 60px;
    counter-increment: heading-counter;
    color: var(--hs-step-text, var(--text-color));
}

.is-style-aibridge-step::before {
    content: counter(heading-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--hs-step-badge-bg, var(--primary-color));
    color: var(--hs-step-badge-text, #fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

/* ===== Block Styles - Quote ===== */
.is-style-aibridge-large {
    font-size: 1.25em;
    padding: 40px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.is-style-aibridge-large cite {
    font-size: 0.8em;
    color: var(--text-light);
}

/* ===== Block Styles - Separator ===== */
.is-style-aibridge-dots {
    border: none;
    text-align: center;
    background: transparent;
}

.is-style-aibridge-dots::before {
    content: '• • •';
    color: var(--primary-color);
    font-size: 24px;
    letter-spacing: 10px;
}

/* ===== Cover Block Enhancements ===== */
.wp-block-cover {
    min-height: 400px;
}

.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover h3 {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 1240px) {
    .alignwide {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .alignwide,
    .alignfull {
        max-width: 100%;
        width: 100%;
    }
}

/* ===== History Page Styles ===== */
.history-page .container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Section Header */
.history-page .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.history-page .section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.history-page .section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 15px;
}

.history-page .section-description {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}

/* History Section */
.history-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    padding-right: 60px;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    padding-left: 60px;
    text-align: left;
}

.timeline-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(74, 111, 165, 0.4);
}

.timeline-item.left .timeline-icon {
    right: -25px;
    top: 30px;
}

.timeline-item.right .timeline-icon {
    left: -25px;
    top: 30px;
}

.timeline-icon svg {
    width: 24px;
    height: 24px;
}

.timeline-date {
    margin-bottom: 10px;
}

.timeline-date .year {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1.2;
}

.timeline-date .month {
    font-size: 14px;
    color: var(--text-light);
}

.timeline-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 10px;
}

.timeline-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Founder Section */
.founder-section {
    padding: 80px 0;
    background: #fff;
}

.founder-profile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.founder-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    text-align: center;
    position: sticky;
    top: 120px;
}

.founder-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

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

.founder-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
}

.founder-photo-placeholder svg {
    width: 80px;
    height: 80px;
}

.founder-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px;
}

.founder-title {
    font-size: 14px;
    opacity: 0.8;
    margin: 0 0 20px;
    letter-spacing: 1px;
}

.founder-message {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.9;
    margin: 0;
}

.founder-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.detail-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.detail-title svg {
    color: var(--primary-color);
}

/* Career Timeline */
.career-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.career-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px 0;
    border-left: 2px solid #e5e5e5;
    padding-left: 25px;
    position: relative;
}

.career-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 20px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.career-year {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 70px;
    flex-shrink: 0;
}

.career-content {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
}

/* Skills */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.skill-percent {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.skill-bar {
    height: 8px;
    background: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 4px;
    transition: width 1s ease-out;
}

/* Vision Section */
.vision-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: #fff;
}

.vision-content {
    max-width: 800px;
    margin: 0 auto;
}

.vision-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.vision-icon svg {
    width: 48px;
    height: 48px;
}

.vision-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 25px;
}

.vision-text {
    font-size: 18px;
    line-height: 2;
    opacity: 0.9;
    margin: 0;
}

/* History Page Responsive */
@media (max-width: 992px) {
    .founder-profile {
        grid-template-columns: 1fr;
    }

    .founder-card {
        position: static;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 80px !important;
        padding-right: 20px !important;
        text-align: left !important;
    }

    .timeline-line {
        left: 30px;
    }

    .timeline-icon {
        left: 5px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .history-page .container-wide {
        padding: 0 20px;
    }

    .history-section,
    .founder-section {
        padding: 60px 0;
    }

    .history-page .section-title {
        font-size: 28px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-date .year {
        font-size: 24px;
    }

    .founder-card {
        padding: 30px 20px;
    }

    .vision-section {
        padding: 60px 0;
    }

    .vision-title {
        font-size: 24px;
    }

    .vision-text {
        font-size: 16px;
    }

    .vision-text br {
        display: none;
    }
}

/* ===== Service Page Styles ===== */
.service-hero-section {
    text-align: center;
    padding: 80px 20px 40px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2d2d4a 100%);
    margin: -40px -40px 0 -40px;
    width: calc(100% + 80px);
}

.service-main-title {
    font-family: var(--font-family-en);
    font-size: 64px;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: #fff;
    margin-bottom: 20px;
}

.service-main-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.service-intro-section {
    text-align: center;
    padding: 60px 20px;
}

.service-intro-section .lead-text {
    font-size: 18px;
    line-height: 2;
    color: var(--text-color);
}

.service-cards-section {
    padding: 20px 20px 60px;
}

.service-card-row {
    gap: 30px !important;
    margin-bottom: 30px;
}

.service-card-large {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
}

.service-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transition: height 0.3s ease;
}

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

.service-card-large:hover::before {
    height: 6px;
}

.service-card-large.consulting::before { background: linear-gradient(90deg, #3498db, #2ecc71); }
.service-card-large.maintenance::before { background: linear-gradient(90deg, #9b59b6, #3498db); }
.service-card-large.patent::before { background: linear-gradient(90deg, #e74c3c, #f39c12); }
.service-card-large.ai-support::before { background: linear-gradient(90deg, #1abc9c, #3498db); }

.service-card-number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-family: var(--font-family-en);
    font-size: 48px;
    font-weight: 700;
    color: rgba(0,0,0,0.05);
    line-height: 1;
}

.service-card-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.service-card-large h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card-large > p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 25px 0 !important;
}

.service-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-color);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-card-btn .wp-block-button__link {
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 6px;
}

/* Flow Section */
.service-flow-section {
    background: var(--bg-light);
    padding: 80px 20px;
    margin: 0 -40px;
    width: calc(100% + 80px);
}

.service-flow-section .section-title {
    font-size: 32px;
    margin-bottom: 50px;
}

.flow-steps {
    gap: 20px !important;
}

.flow-step {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
}

.flow-step::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--primary-color);
}

.flow-step:last-child::after {
    display: none;
}

.flow-number {
    font-family: var(--font-family-en);
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.flow-step h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.flow-step p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.service-cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 80px 20px;
    margin: 0 -40px -40px -40px;
    width: calc(100% + 80px);
    text-align: center;
}

.service-cta-section h2 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 15px;
}

.service-cta-section p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.service-cta-section .wp-block-buttons {
    gap: 15px;
}

.cta-button-primary .wp-block-button__link {
    background: #fff !important;
    color: var(--primary-color) !important;
    padding: 15px 40px;
    font-weight: 600;
    border-radius: 8px;
}

.cta-button-secondary .wp-block-button__link {
    border-color: #fff !important;
    color: #fff !important;
    padding: 15px 40px;
    border-radius: 8px;
}

/* PC only line break */
.pc-only { display: inline; }

@media (max-width: 992px) {
    .service-hero-section,
    .service-flow-section,
    .service-cta-section {
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }
    
    .service-main-title {
        font-size: 42px;
        letter-spacing: 0.15em;
    }
    
    .flow-step::after {
        display: none;
    }
    
    .pc-only { display: none; }
}

@media (max-width: 768px) {
    .service-card-row {
        flex-direction: column;
    }
    
    .service-card-large {
        padding: 30px;
    }
    
    .service-main-title {
        font-size: 32px;
    }
    
    .service-flow-section .section-title {
        font-size: 24px;
    }
    
    .service-cta-section h2 {
        font-size: 24px;
    }
}

/* ===== Blog Card List Styles ===== */
.blog-card-list.wp-block-latest-posts {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
}

.blog-card-list.wp-block-latest-posts li {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    list-style: none;
}

.blog-card-list.wp-block-latest-posts li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-card-list.wp-block-latest-posts .wp-block-latest-posts__featured-image {
    margin-bottom: 0;
}

.blog-card-list.wp-block-latest-posts .wp-block-latest-posts__featured-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.blog-card-list.wp-block-latest-posts .wp-block-latest-posts__post-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    padding: 20px 20px 10px;
    color: var(--text-color);
}

.blog-card-list.wp-block-latest-posts .wp-block-latest-posts__post-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-list.wp-block-latest-posts .wp-block-latest-posts__post-title a:hover {
    color: var(--primary-color);
}

.blog-card-list.wp-block-latest-posts .wp-block-latest-posts__post-excerpt {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
    padding: 0 20px;
    margin: 0;
}

.blog-card-list.wp-block-latest-posts .wp-block-latest-posts__post-author,
.blog-card-list.wp-block-latest-posts .wp-block-latest-posts__post-date {
    font-size: 12px;
    color: #999;
    padding: 0 20px 15px;
    margin: 0;
}

.blog-card-list.wp-block-latest-posts .wp-block-latest-posts__post-date {
    padding-bottom: 20px;
}

/* グリッドレイアウト調整 */
.blog-card-list.wp-block-latest-posts.is-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .blog-card-list.wp-block-latest-posts.is-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-card-list.wp-block-latest-posts.is-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card-list.wp-block-latest-posts .wp-block-latest-posts__featured-image img {
        height: 180px;
    }
}

/* ===== Blog Archive Card Styles ===== */
.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-card-no-image {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 48px;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #999;
}

.blog-card-meta time i {
    margin-right: 5px;
}

.blog-card-category {
    background: var(--primary-color);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 12px;
    border: none !important;
    padding: 0 !important;
}

.blog-card-title a {
    color: var(--text-color);
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 15px;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
}

.blog-card-link:hover {
    gap: 12px;
}

.blog-card-link i {
    transition: transform 0.3s ease;
}

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

/* Pagination */
.blog-pagination {
    margin-top: 50px;
    text-align: center;
}

.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: #fff;
    color: var(--text-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.blog-pagination .page-numbers:hover {
    background: var(--primary-color);
    color: #fff;
}

.blog-pagination .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-card-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-hero h1 {
        font-size: 36px !important;
    }
    
    .blog-card-image {
        height: 180px;
    }
}
