/*
Theme Name: Logixcel Partners
Description: ロジクセルパートナーズ株式会社のWordPressテーマ
Author: Logixcel Partners
Version: 1.1.1
*/

/* リセットCSSは reset.css で読み込み */

:root {
    --lp-accent: #0d9488;
    --lp-accent-muted: rgba(13, 148, 136, 0.12);
    --lp-accent-strong: #0f766e;
    --lp-slate-900: #0f172a;
    --lp-slate-600: #475569;
    --lp-slate-400: #94a3b8;
    --layout-max: min(92vw, 1720px);
    --layout-gap: clamp(1.25rem, 2.5vw, 2.25rem);
    --layout-pad-x: clamp(16px, 2.8vw, 40px);
    --toc-scroll-margin: 7.5rem;
}

/* 背景画像の設定 */
html {
    min-height: 100%;
    position: relative;
    background-image: url('images/back_Image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* 背景画像のスタイルは functions.php のインラインCSSで管理 */
/* html::before の定義は functions.php に移動しました */

/* bodyにも背景画像を設定（フォールバック） */
body {
    font-family: 'M PLUS 1', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background: transparent;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}


/* ページ全体を前面に表示 */
#page {
    position: relative;
    z-index: 1001;
    background: linear-gradient(
        168deg,
        rgba(255, 255, 255, 0.91) 0%,
        rgba(248, 250, 252, 0.86) 42%,
        rgba(236, 253, 245, 0.2) 100%
    );
    min-height: 100vh;
}

/* 見出しもM PLUS 1を使用 */

h1, h2, h3, h4, h5, h6 {
    font-family: 'M PLUS 1', sans-serif;
}

/* ヘッダー（JQスタイルに合わせてシンプルに） */
.site-header {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 8px 32px rgba(15, 23, 42, 0.04);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    max-height: 20vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.site-header-inner {
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 0 var(--layout-pad-x);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 0;
}

.site-branding {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.site-branding .custom-logo-link img {
    max-height: clamp(32px, 6vh, 48px);
    max-width: min(200px, 38vw);
    width: auto;
    height: auto;
    object-fit: contain;
}

/* WordPress標準のカスタムロゴ */
.custom-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    max-height: clamp(32px, 6vh, 48px);
    max-width: min(200px, 38vw);
}

.site-title {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

.site-title a:hover {
    color: var(--lp-accent-strong);
}

/* ナビゲーション */
.main-navigation {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--lp-accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--lp-accent-strong);
}

.nav-menu a:hover::after {
    width: 100%;
    background: var(--lp-accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid #333;
    border-radius: 4px;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #f5f5f5;
}

.menu-toggle.is-active {
    background: var(--lp-accent);
    border-color: var(--lp-accent-strong);
    color: #fff;
}

.menu-toggle.is-active .menu-toggle-icon {
    transform: rotate(90deg);
}

/* コンテンツ */
.site-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
}

/* 3列レイアウト — ワイド画面で横幅を広く活用 */
.three-column-layout {
    display: grid;
    grid-template-columns: minmax(220px, 290px) minmax(0, 1fr) minmax(240px, 320px);
    gap: var(--layout-gap);
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 2rem var(--layout-pad-x);
    min-height: calc(100vh - 200px);
}

@media (min-width: 1600px) {
    .three-column-layout {
        grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) minmax(260px, 340px);
    }
}


/* 左列：目次（H1–H4 階層・スクロール連動） */
.table-of-contents {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.06),
        0 12px 40px rgba(15, 23, 42, 0.06);
    padding: 1.35rem 1rem 1.35rem 1.1rem;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px) saturate(1.15);
    scrollbar-width: thin;
}

.toc-nav {
    position: relative;
}

.toc-title {
    font-size: 0.72rem;
    font-weight: 800;
    margin: 0 0 1rem;
    color: var(--lp-slate-900);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    position: relative;
}

.toc-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 2.5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--lp-accent), transparent);
    border-radius: 2px;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-sublist {
    list-style: none;
    margin: 0.2rem 0 0.35rem;
    padding: 0 0 0 0.65rem;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.toc-item {
    margin-bottom: 0.15rem;
}

.toc-item--empty {
    margin: 0;
}

.toc-empty-label {
    display: block;
    font-size: 0.82rem;
    color: var(--lp-slate-400);
    line-height: 1.5;
    padding: 0.35rem 0;
}

.toc-link {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.45rem 0.5rem 0.45rem 0.4rem;
    text-decoration: none;
    color: var(--lp-slate-600);
    border-radius: 8px;
    transition:
        background 0.22s ease,
        color 0.22s ease,
        transform 0.18s ease,
        box-shadow 0.22s ease;
    position: relative;
    border: 1px solid transparent;
    font-size: 0.88rem;
    line-height: 1.4;
}

.toc-indicator {
    flex-shrink: 0;
    width: 3px;
    margin-top: 0.38em;
    height: 0.85em;
    border-radius: 2px;
    background: var(--lp-slate-400);
    opacity: 0.35;
    transition: opacity 0.2s ease, background 0.2s ease, height 0.2s ease;
}

/* 階層別タイポ（H1 が最大、H4 が最小） */
.toc-link--depth-1 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--lp-slate-900);
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.toc-link--depth-1 .toc-indicator {
    height: 1em;
    margin-top: 0.32em;
}

.toc-link--depth-2 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lp-slate-600);
}

.toc-link--depth-3 {
    font-size: 0.84rem;
    font-weight: 500;
    color: #64748b;
}

.toc-link--depth-4 {
    font-size: 0.8rem;
    font-weight: 400;
    color: #64748b;
    opacity: 0.95;
}

.toc-link:hover {
    background: var(--lp-accent-muted);
    color: var(--lp-accent-strong);
    transform: translateX(2px);
}

.toc-link:hover .toc-indicator {
    opacity: 0.7;
    background: var(--lp-accent);
}

/* スクロール位置：現在セクション */
.toc-link.active {
    background: linear-gradient(105deg, rgba(13, 148, 136, 0.14) 0%, rgba(13, 148, 136, 0.02) 100%);
    color: var(--lp-accent-strong);
    font-weight: 700;
    border-color: rgba(13, 148, 136, 0.22);
    box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.08);
}

.toc-link.active .toc-indicator {
    opacity: 1;
    background: var(--lp-accent);
    height: 1.15em;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
}

/* 親階層の補助ハイライト */
.toc-link.active-trail {
    color: var(--lp-accent-strong);
    background: rgba(13, 148, 136, 0.06);
}

.toc-link.active-trail .toc-indicator {
    opacity: 0.6;
    background: var(--lp-accent);
}

.toc-text {
    line-height: 1.45;
    flex: 1;
    min-width: 0;
}

/* 従来テンプレの絵文字アイコン（残っている場合） */
.toc-icon {
    flex-shrink: 0;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* 中央列：メインコンテンツ */
.site-main {
    background: transparent;
}

.content-section {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 16px 48px rgba(15, 23, 42, 0.04);
    padding: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: 2rem;
    scroll-margin-top: var(--toc-scroll-margin);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

#primary h1,
#primary h2,
#primary h3,
#primary h4 {
    scroll-margin-top: var(--toc-scroll-margin);
}

/* 本文の行間・見出しのスクロール余白 */
.entry-content {
    line-height: 1.85;
    font-size: 1rem;
}
.entry-content p {
    margin-bottom: 1.35em;
}
.entry-content p:last-child {
    margin-bottom: 0;
}
.entry-content [id^="section-"] {
    scroll-margin-top: var(--toc-scroll-margin);
    padding-top: 0.25em;
}
.entry-content h1[id^="section-"],
.entry-content h2[id^="section-"],
.entry-content h3[id^="section-"],
.entry-content h4[id^="section-"] {
    margin-top: 1.75em;
    margin-bottom: 0.75em;
}
.entry-content h1[id^="section-"]:first-child,
.entry-content h2[id^="section-"]:first-child,
.entry-content h3[id^="section-"]:first-child,
.entry-content h4[id^="section-"]:first-child {
    margin-top: 0;
}

.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-icon {
    font-size: 2rem;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
    font-weight: 400;
}

/* AI機能セクション */
.ai-features-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 横長レイアウトのカード */
.feature-card-horizontal {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.5rem;
}

.card-content-left {
    flex: 1;
    min-width: 0;
}

.card-content-right {
    flex: 0 0 250px;
    min-width: 200px;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: transform 0.5s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.feature-card:hover::before {
    transform: scale(1.1);
}

.feature-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.feature-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.feature-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.feature-card:nth-child(5) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.feature-card:nth-child(6) {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card-horizontal .card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.feature-card-horizontal .card-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.card-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.feature-card-horizontal .card-description {
    font-size: 0.95rem;
    margin-bottom: 0;
    opacity: 0.9;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #fff;
}

/* 横長カードの右列のリスト */
.card-content-right .card-features {
    margin-top: 0;
}

.card-content-right .card-features li {
    font-size: 0.9rem;
    padding: 0.4rem 0;
    padding-left: 1.5rem;
}

/* 会社からのお知らせセクション */
.news-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #0073aa;
}

.news-date {
    font-size: 0.85rem;
    color: #0073aa;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #0073aa;
}

.news-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.news-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #005a87;
    text-decoration: underline;
}

/* 会社概要セクション */
.company-intro-content {
    text-align: center;
    padding: 2rem 0;
}

.company-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: #0073aa;
    margin-bottom: 1.5rem;
}

.company-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* 事業内容セクション */
.business-content-section {
    background: #fff;
}

.business-list {
    list-style: none;
    counter-reset: business-counter;
}

.business-list li {
    counter-increment: business-counter;
    margin-bottom: 2.5rem;
    padding-left: 3rem;
    position: relative;
}

.business-list li::before {
    content: "(" counter(business-counter) ")";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #0073aa;
}

.business-list h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

/* フッター */
.site-footer {
    background: rgba(44, 62, 80, 0.98);
    color: #fff;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
}

/* フッター上部：アクセスとInformation */
.footer-top {
    background: #34495e;
    padding: 3rem 0;
    border-bottom: 1px solid #4a5f7a;
}

.footer-top-inner {
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 0 var(--layout-pad-x);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.footer-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #fff;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 0.5rem;
}

/* アクセス（Googleマップ） */
.footer-access {
    color: #fff;
}

.map-address {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.map-address p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.map-address a {
    color: #4a9eff;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.map-address a:hover {
    color: #6bb3ff;
}

.footer-map-wrapper {
    position: relative;
}

.footer-google-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Information */
.footer-information {
    color: #fff;
}

.footer-info-list {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-date {
    display: block;
    font-size: 0.9rem;
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.info-title {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.info-title:hover {
    color: #4a9eff;
}

.info-more-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.info-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* フッター下部 */
.footer-bottom {
    background: #2c3e50;
    padding: 2rem 0;
}

.footer-bottom-inner {
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 0 var(--layout-pad-x);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-branding {
    flex: 1;
}

.footer-company-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #bdc3c7;
}

.footer-navigation {
    flex: 1;
}

.footer-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-menu a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #fff;
}

/* サイドバー */
#secondary {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 2;
}

/* 右列：ウィジェットエリア — デザイン刷新 */
.widget-area {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 12px 40px rgba(15, 23, 42, 0.06);
    padding: 1.5rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px) saturate(1.1);
}

.widget-area .widget {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.widget-area .widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget-area .widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--lp-slate-900);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--lp-accent);
    display: inline-block;
}

.widget-area ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-area li {
    margin-bottom: 0.6rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.widget-area li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.widget-area a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.widget-area a:hover {
    color: #0073aa;
}

.widget-area .search-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.widget-area .search-field {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
}

.widget-area .search-submit {
    padding: 0.6rem 1rem;
    background: var(--lp-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.widget-area .search-submit:hover {
    background: var(--lp-accent-strong);
}

/* レスポンシブ */
@media (max-width: 1200px) {
    .three-column-layout {
        grid-template-columns: 200px 1fr 250px;
        gap: 1.5rem;
    }
}

@media (max-width: 968px) {
    .three-column-layout {
        grid-template-columns: 180px 1fr;
    }
    
    #secondary {
        display: none;
    }
    
    .ai-features-grid {
        gap: 1.5rem;
    }
    
    .feature-card-horizontal {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .card-content-right {
        flex: 1;
        min-width: 0;
    }
    
    .news-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --toc-scroll-margin: 5rem;
    }

    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        min-width: 200px;
        z-index: 1000;
    }
    
    .nav-menu.is-active,
    .nav-menu.active {
        display: flex;
    }
    
    /* メニューが開いているときのbodyスタイル（スクロールロックなど） */
    body.menu-open {
        overflow: hidden;
    }
    
    .three-column-layout {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .table-of-contents {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
        max-height: none;
    }
    
    .content-section {
        padding: 2rem 1.5rem;
        scroll-margin-top: var(--toc-scroll-margin);
    }
    
    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .ai-features-grid,
    .news-cards {
        gap: 1.5rem;
    }
    
    .feature-card-horizontal {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .card-content-right {
        flex: 1;
        min-width: 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-top-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-google-map {
        height: 300px;
    }
    
    .footer-menu {
        justify-content: center;
    }
}

/* 投稿一覧・アーカイブページ用スタイル */
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #0073aa;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.entry-meta a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-meta a:hover {
    color: #005a87;
    text-decoration: underline;
}

.post-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

.entry-summary {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.entry-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.read-more {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #005a87;
    text-decoration: underline;
}

/* ページネーション */
.pagination {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

/* ページヘッダー */
.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.archive-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-top: 1rem;
}

/* 編集リンク */
.edit-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 0.9rem;
}

.edit-link a {
    color: #0073aa;
    text-decoration: none;
}

.edit-link a:hover {
    text-decoration: underline;
}

/* 投稿タグ */
.post-tags {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.tags-title {
    font-weight: 600;
    margin-right: 0.5rem;
    color: #333;
}

.tag-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    background: #f5f5f5;
    color: #0073aa;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #0073aa;
    color: #fff;
}

/* 前後の投稿ナビゲーション */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-subtitle {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: #333;
}

/* サイトマップリスト */
.sitemap-list {
    margin-top: 2rem;
}

.sitemap-list h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 0.5rem;
}

.sitemap-list ul {
    list-style: none;
    padding-left: 1.5rem;
}

.sitemap-list li {
    margin-bottom: 0.5rem;
}

.sitemap-list a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sitemap-list a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* パンくずリスト */
.breadcrumbs {
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: #666;
}

.breadcrumb-item::after {
    content: '/';
    margin-left: 0.5rem;
    color: #ccc;
}

.breadcrumb-item:last-child::after {
    display: none;
}

.breadcrumb-item a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* 検索フォーム */
.search-form-wrapper {
    margin: 2rem 0;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: #0073aa;
}

.search-form input[type="submit"],
.button {
    padding: 0.75rem 2rem;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease, transform 0.1s ease;
}

.search-form input[type="submit"]:hover,
.button:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.search-form input[type="submit"]:active,
.button:active {
    transform: translateY(0);
}

/* 404ページ */
.error-404 {
    text-align: center;
    padding: 4rem 2rem;
}

.error-404 .page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #333;
}

.error-404 .page-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-links {
    margin-top: 2rem;
}

/* 検索結果ページ */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
}

/* JQスタイル：カードのホバー効果を控えめに */
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.news-card:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

/* ===== お問い合わせフォーム（Contact Form 7） ===== */

/* コンテナ */
.wpcf7 {
    max-width: 640px;
    margin: 0 auto;
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

/* ラベル */
.wpcf7-form label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--lp-slate-900);
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
}

/* 必須バッジ */
.wpcf7-form label .required-badge,
.wpcf7-form label abbr {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: var(--lp-accent);
    padding: 0.1em 0.5em;
    border-radius: 4px;
    margin-left: 0.4em;
    vertical-align: middle;
    text-decoration: none;
}

/* 入力フィールド共通 */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid rgba(15, 23, 42, 0.14);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--lp-slate-900);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-sizing: border-box;
}

.wpcf7-form input[type="text"]:hover,
.wpcf7-form input[type="email"]:hover,
.wpcf7-form input[type="tel"]:hover,
.wpcf7-form input[type="url"]:hover,
.wpcf7-form textarea:hover,
.wpcf7-form select:hover {
    border-color: rgba(13, 148, 136, 0.4);
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: var(--lp-accent);
    box-shadow: 0 0 0 3px var(--lp-accent-muted);
    background: #fff;
}

.wpcf7-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* 送信ボタン */
.wpcf7-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 280px;
    margin: 0.25rem auto 0;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-accent-strong) 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 0.06em;
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.28);
}

.wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(13, 148, 136, 0.38);
    filter: brightness(1.06);
}

.wpcf7-form input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.22);
}

/* 送信中スピナー */
.wpcf7 .wpcf7-spinner {
    margin: 1rem auto 0;
    display: block;
}

/* バリデーションエラー */
.wpcf7-not-valid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.wpcf7-not-valid-tip {
    display: block;
    font-size: 0.82rem;
    color: #ef4444;
    margin-top: 0.4rem;
    padding-left: 0.2rem;
    animation: cf7-shake 0.35s ease;
}

@keyframes cf7-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
}

/* 送信完了メッセージ */
.wpcf7-response-output {
    margin: 0.75rem 0 0 !important;
    padding: 1rem 1.25rem !important;
    border-radius: 10px !important;
    font-size: 0.92rem;
    text-align: center;
    animation: cf7-fadeIn 0.4s ease;
}

@keyframes cf7-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wpcf7-mail-sent-ok,
.wpcf7 form.sent .wpcf7-response-output {
    background: rgba(13, 148, 136, 0.08) !important;
    border: 1.5px solid var(--lp-accent) !important;
    color: var(--lp-accent-strong);
}

.wpcf7-validation-errors,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    background: rgba(239, 68, 68, 0.06) !important;
    border: 1.5px solid #ef4444 !important;
    color: #dc2626;
}

/* お問い合わせページ見出し装飾 */
.page-template-page-contact .entry-title {
    text-align: center;
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.page-template-page-contact .entry-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--lp-accent), var(--lp-accent-strong));
    border-radius: 2px;
}

/* お問い合わせページ導入テキスト */
.page-template-page-contact .entry-content > p:first-child {
    text-align: center;
    color: var(--lp-slate-600);
    font-size: 1.02rem;
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .wpcf7-form input[type="submit"] {
        max-width: 100%;
    }
}

/* JQスタイル：セクションタイトル */
