/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0.0
*/

/* ============================================================
   CSS Variables
============================================================ */
:root {
    --color-primary:        #f39c12;
    --color-secondary:      #e67e22;
    --color-accent:         #3498db;
    --color-background:     #ffffff;
    --color-bg-sub:         #ecf0f1;
    --color-text:           #2c3e50;
    --color-text-muted:     #666666;
    --color-footer-bg:      #333333;
    --color-border:         #bdc3c7;
    --color-hero-deco:      rgba(243, 156, 18, 0.08);
    --font-base:            'Noto Sans JP', sans-serif;
    --container-max:        1200px;
}

/* ============================================================
   Base
============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-background);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a { color: var(--color-primary); text-decoration: none; }
a:focus, button:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }

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

/* ============================================================
   ホームページ レイアウト制御
   #page / #content / #primary の制約を解除し、
   #main を全幅で通常スクロールさせる
============================================================ */
body.home #page,
body.home #content,
body.home #primary {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

body.home #main {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

/* セクション共通（画面高さ相当の余白感を維持） */
body.home #main > section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* separate-containers レイアウトの上書き */
.separate-containers.home #content,
.separate-containers.home #primary,
.separate-containers.home #main {
    padding: 0 !important;
    margin: 0 !important;
}


/* コンテナ共通 */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ============================================================
   ヘッダー
   GP の main.min.css が header{display:flex;align-items:center} を注入するため、
   #masthead を直接 flex コンテナとして利用し、子要素を直に配置する。
============================================================ */
#masthead {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 40px !important;
    height: 70px;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 9999 !important;
    transition: box-shadow 0.3s ease;
}

/* GP の .site-header::after clearfix を無効化 */
#masthead::before,
#masthead::after {
    display: none !important;
    content: none !important;
}

#masthead.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-spacer {
    width: 28px;
    flex-shrink: 0;
}

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

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

/* ハンバーガーボタン */
/* GP: button.menu-toggle{flex-grow:1} を上書き（詳細度対策で !important） */
.menu-toggle {
    position: static !important;
    background: none;
    border: none;
    cursor: pointer;
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    width: 28px;
    flex-grow: 0 !important;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   フルスクリーンメニュー
============================================================ */
.fullscreen-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.menu-close {
    position: absolute;
    top: 30px; right: 30px;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px; height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.menu-close span {
    display: block;
    width: 30px; height: 3px;
    background: #ffffff;
    border-radius: 2px;
    position: absolute;
    transition: background 0.3s ease;
}

.menu-close span:nth-child(1) { transform: rotate(45deg); }
.menu-close span:nth-child(2) { transform: rotate(-45deg); }
.menu-close:hover span { background: var(--color-primary); }

.menu-list {
    list-style: none;
    padding: 0; margin: 0;
    text-align: center;
}

.menu-list > li { margin: 20px 0; position: relative; }

.menu-list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    display: block;
    padding: 10px 20px;
    transition: color 0.3s ease;
}

.menu-list a:hover { color: var(--color-primary); }

.menu-item-has-children > a {
    position: relative;
    padding-right: 50px;
}

.menu-item-has-children > a::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.menu-item-has-children.is-open > a::after {
    transform: translateY(-50%) rotate(180deg);
}

.sub-menu {
    list-style: none;
    padding: 0; margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.menu-item-has-children.is-open > .sub-menu {
    max-height: 300px;
}

.sub-menu a { font-size: 1.1rem; color: #cccccc; }
.sub-menu a:hover { color: var(--color-primary); }

/* ============================================================
   ヒーローセクション
============================================================ */
.hero {
    background: var(--color-background);
    text-align: center;
    flex-direction: column;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: -25vw; left: -25vw;
    width: 50vw; height: 50vw;
    background: rgba(243, 156, 18, 0.08);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: -15vw; right: -15vw;
    width: 35vw; height: 35vw;
    background: rgba(243, 156, 18, 0.08);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-catch {
    font-size: clamp(1.4rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.4;
    margin: 0;
    letter-spacing: 0.02em;
}

.hero-sub {
    font-size: clamp(0.95rem, 2vw, 1.3rem);
    font-weight: 400;
    color: var(--color-text-muted);
    margin: 16px 0 0;
    letter-spacing: 0.04em;
}

.cta-btn {
    display: inline-block;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 50px;
    margin-top: 40px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover, .cta-btn:focus {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(243, 156, 18, 0.45);
}

/* ============================================================
   サービススライドセクション
============================================================ */
.service-slide {
    padding: 0;
    background: var(--color-background);
}

.service-slide-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 100vh;
    max-width: none;
}

/* レイアウト反転（偶数スライド / --reverse） */
.service-slide--reverse .service-slide-container {
    direction: rtl;
}
.service-slide--reverse .service-slide-content {
    direction: ltr;
}

.service-slide-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-sub);
    overflow: hidden;
}

.service-image-placeholder {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    gap: 12px;
}

.service-image-placeholder span { font-size: 3rem; }
.service-image-placeholder p { margin: 0; }

.service-image-placeholder--photo {
    background: none;
    padding: 0;
}

.service-image-placeholder--photo img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.service-slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    background: var(--color-background);
    direction: ltr;
    animation: fadeInUp 0.8s ease-out;
}

.service-slide-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 1.5rem;
    line-height: 1.2;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
}

.service-slide-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin: 0 0 2rem;
    max-width: 480px;
}

.service-slide-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-slide-button:hover, .service-slide-button:focus {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

/* ============================================================
   会社概要セクション
============================================================ */
.about {
    background: var(--color-background);
    padding: 80px 20px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
}

.about-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 1.5rem;
    text-align: left;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin: 0 0 1rem;
}

.placeholder-image {
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 40px;
}

.placeholder-image img {
    max-height: 200px;
    width: auto;
    object-fit: contain;
}

/* ============================================================
   Instagram セクション
============================================================ */
.instagram-section {
    background: var(--color-bg-sub);
    padding: 80px 20px;
    flex-direction: column;
}

.instagram-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin: 0 0 1rem;
}

.instagram-description {
    text-align: center;
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.instagram-grid-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    border: 2px dashed var(--color-border);
}

.instagram-follow-wrap {
    text-align: center;
    margin-top: 30px;
}

.instagram-follow-button {
    display: inline-block;
    background: var(--color-primary);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
}

.instagram-follow-button:hover, .instagram-follow-button:focus {
    color: #ffffff;
    background: var(--color-secondary);
    transform: translateY(-2px);
}

/* ============================================================
   お問い合わせ CTA
============================================================ */
.cta-section {
    background: var(--color-bg-sub);
    padding: 80px 20px;
    flex-direction: column;
    text-align: center;
}

.cta-section .container { display: flex; flex-direction: column; align-items: center; }

.cta-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 1rem;
    text-align: center;
    background: none;
    border: none;
    padding: 0;
}

.cta-sub {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin: 0 0 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--color-primary);
    color: #ffffff;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--font-base);
}

.cta-button:hover, .cta-button:focus {
    color: #ffffff;
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* ============================================================
   フッター（スクロールスナップセクション）
============================================================ */
/* トップページのスナップセクション用 */
.top-page-footer {
    background: var(--color-footer-bg);
    color: #ffffff;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 0;
}

/* 下層ページ footer.php 出力用 */
.site-footer-custom {
    background: var(--color-footer-bg);
    color: #ffffff;
    padding: 0;
}

.footer-inner {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 56px 40px 0;
    box-sizing: border-box;
}

/* 2カラムグリッド（ロゴ列 ＋ ナビ2×2列） */
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #555555;
    margin-bottom: 20px;
}

/* 列1：ロゴ・会社情報（flex column） */
.footer-col-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    height: 52px;
    width: auto;
    max-width: 180px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    filter: brightness(0) invert(1);
    margin-bottom: 16px;
    align-self: flex-start;
}

.footer-company-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
}

.footer-catchcopy {
    font-size: 0.9rem;
    color: #cccccc;
    line-height: 1.6;
    margin: 0 0 12px;
}

.footer-services-text {
    font-size: 0.85rem;
    color: #cccccc;
    margin: 0 0 6px;
    line-height: 1.4;
}

.footer-address {
    font-size: 0.85rem;
    color: #cccccc;
    margin: 0;
    line-height: 1.4;
}

.footer-hours {
    font-size: 0.85rem;
    color: #cccccc;
    margin: 6px 0 0;
    line-height: 1.4;
}

/* 列2：ナビ 2×2グリッド */
.footer-col-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 40px;
    align-content: start;
}

.footer-nav-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #f39c12;
}

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

.footer-nav-list li { margin-bottom: 10px; }

.footer-nav-list li a {
    color: #cccccc;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav-list li a:hover { color: #f39c12; }

.footer-cta-text {
    font-size: 0.9rem;
    color: #cccccc;
    margin: 0 0 14px;
}

.footer-cta-btn {
    display: inline-block;
    background-color: #f39c12;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.footer-cta-btn:hover {
    background-color: #e67e22;
    color: #ffffff;
}

.footer-social {
    margin-top: 20px;
}

.footer-social-label {
    font-size: 0.8rem;
    color: #aaaaaa;
    margin: 0 0 10px;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #555555;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.footer-social-icons a:hover {
    background-color: #f39c12;
    color: #ffffff;
}

.footer-social-icons svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

/* 下部バー */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 28px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #888888;
    margin: 0;
}

.footer-privacy {
    font-size: 0.8rem;
    color: #888888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-privacy:hover { color: var(--color-primary); }

/* ============================================================
   アニメーション
============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   レスポンシブ
============================================================ */
@media (max-width: 768px) {
    /* サービススライド: 1カラムに */
    .service-slide-container {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }

    .service-slide--reverse .service-slide-container { direction: ltr; }
    .service-slide--reverse .service-slide-content { direction: ltr; }

    /* 画像エリアの高さを縮小 */
    .service-slide-image { height: 220px; min-height: 220px; }

    .service-slide-content {
        padding: 2.5rem 1.5rem;
        align-items: center;
        text-align: center;
    }

    .service-slide-content h2 { text-align: center; }
    .service-slide-content p { max-width: none; }
    .service-slide-button { align-self: center; }

    /* 会社概要 */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-text h2 { text-align: center; }

    /* フッター */
    .footer-inner { padding: 40px 24px 0; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-col-1 { text-align: center; align-items: center; }

    .footer-col-nav {
        grid-template-columns: 1fr 1fr;
        gap: 20px 24px;
    }

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

    .top-page-footer { min-height: auto; }
}

@media (max-width: 480px) {
    #masthead { padding: 0 20px !important; height: 60px; }

    .header-spacer { width: 24px; }

    .header-logo-img { height: 30px; }

    .menu-toggle { width: 24px; gap: 5px; }

    .menu-toggle span { width: 24px; }

    .hero-catch { font-size: clamp(1.2rem, 6vw, 1.8rem); }

    .service-slide-content { padding: 2rem 1rem; }

    .footer-inner { padding: 32px 16px 0; }
}

/* ============================================================
   サービスページ共通（page-service-*.php）
   GP の right-sidebar レイアウトを無効化（サイドバーなし全幅）
============================================================ */
body.page-slug-service-system #page,
body.page-slug-service-website #page,
body.page-slug-service-support #page,
body.page-slug-about #page,
body.page-slug-cases #page,
body.page-slug-contact #page,
body.page-slug-privacy-policy #page,
.category #page {
    max-width: 100% !important;
}

body.page-slug-service-system #content,
body.page-slug-service-website #content,
body.page-slug-service-support #content,
body.page-slug-about #content,
body.page-slug-cases #content,
body.page-slug-contact #content,
body.page-slug-privacy-policy #content,
.category #content {
    padding: 0 !important;
    display: block !important;
}

body.page-slug-service-system #primary,
body.page-slug-service-website #primary,
body.page-slug-service-support #primary,
body.page-slug-about #primary,
body.page-slug-cases #primary,
body.page-slug-contact #primary,
body.page-slug-privacy-policy #primary,
.category #primary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

body.page-slug-service-system #main,
body.page-slug-service-website #main,
body.page-slug-service-support #main,
body.page-slug-about #main,
body.page-slug-cases #main,
body.page-slug-contact #main,
body.page-slug-privacy-policy #main,
.category #main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden;
}

body.page-slug-service-system #main > *,
body.page-slug-service-website #main > *,
body.page-slug-service-support #main > *,
body.page-slug-about #main > *,
body.page-slug-cases #main > *,
body.page-slug-contact #main > *,
body.page-slug-privacy-policy #main > *,
.category #main > * {
    margin-bottom: 0;
}

/* セクション共通（通常スクロール） */
.ps-section {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    padding: 100px 0;
}

/* コンテナ */
.ps-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* セクション見出し */
.ps-section-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 12px;
    text-align: center;
}

.ps-section-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 32px;
}

/* ----------------------------------------
   1. ヒーロー
---------------------------------------- */
.ps-hero {
    background: #ffffff;
    color: var(--color-text);
    text-align: center;
    padding-top: 170px; /* 固定ヘッダー70px + 上部余白100px */
    position: relative;
    overflow: hidden;
}

.ps-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--color-hero-deco);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
    pointer-events: none;
    z-index: 0;
}

.ps-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--color-hero-deco);
    border-radius: 50%;
    top: -100px;
    right: -80px;
    pointer-events: none;
    z-index: 0;
}

.ps-hero .ps-container {
    position: relative;
    z-index: 1;
}

.ps-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 16px;
}

.ps-hero-h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 28px;
    line-height: 1.2;
}

.ps-hero-lead {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto;
}

/* ----------------------------------------
   2. お悩み
---------------------------------------- */
.ps-problems {
    background: var(--color-bg-sub);
}

/* ----------------------------------------
   3. 解決策
---------------------------------------- */
.ps-solutions {
    background: #ffffff;
}

/* ----------------------------------------
   カードグリッド（2×2）
---------------------------------------- */
.ps-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 28px;
}

/* ----------------------------------------
   カードグリッド（3カラム）
---------------------------------------- */
.ps-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 28px;
}

/* 悩みカード */
.ps-pain-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 22px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

/* 特徴カード */
.ps-feature-card {
    background: var(--color-bg-sub);
    border-radius: 12px;
    padding: 24px 22px;
    box-shadow: none;
}

.ps-card-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}

.ps-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
}

.ps-card-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 0;
}

/* ----------------------------------------
   4. 流れ
---------------------------------------- */
.ps-process {
    background: #ffffff;
}

.ps-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 28px 0 32px;
    position: relative;
}

/* ステップ間の横ライン（4ステップ用） */
.ps-steps::before {
    content: '';
    position: absolute;
    top: 27px;
    left: calc(12.5% + 14px);
    right: calc(12.5% + 14px);
    height: 2px;
    background: var(--color-primary);
    z-index: 0;
}

/* 5ステップ用オーバーライド */
.ps-steps-5 {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.ps-steps-5::before {
    left: calc(10% + 14px);
    right: calc(10% + 14px);
}

.ps-steps-5 .ps-step-num {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
}

.ps-steps-5 .ps-step-title {
    font-size: 0.82rem;
}

.ps-steps-5 .ps-step-desc {
    font-size: 0.75rem;
}

.ps-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.ps-step-num {
    width: 54px;
    height: 54px;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.ps-step-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
    line-height: 1.4;
}

.ps-step-desc {
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 0;
}

/* CTA ブロック */
.ps-cta-block {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid #e8e8e8;
}

.ps-cta-lead {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0 0 18px;
}

.ps-cta-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 14px 44px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.ps-cta-button:hover {
    background-color: var(--color-secondary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ----------------------------------------
   レスポンシブ：768px
---------------------------------------- */
@media (max-width: 768px) {
    .ps-section { padding: 80px 0 60px; }
    .ps-hero { padding-top: 130px; }

    .ps-container { padding: 0 24px; }

    .ps-hero-lead br { display: none; }

    .ps-grid-2x2 { grid-template-columns: 1fr; gap: 16px; }

    .ps-grid-3col { grid-template-columns: 1fr; gap: 16px; }

    .ps-steps {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .ps-steps-5 { grid-template-columns: 1fr 1fr; }

    .ps-steps::before { display: none; }
}

/* ----------------------------------------
   レスポンシブ：480px
---------------------------------------- */
@media (max-width: 480px) {
    .ps-container { padding: 0 16px; }

    .ps-steps { grid-template-columns: 1fr; }

    .ps-steps-5 { grid-template-columns: 1fr; }

    .ps-cta-button { padding: 12px 32px; font-size: 0.95rem; }
}

/* ============================================================
   会社案内ページ（page-about.php）
============================================================ */

/* ab-section: 共通セクションベース */
.ab-section {
    width: 100%;
    box-sizing: border-box;
    padding: 80px 20px;
}

/* ナロー幅コンテナ（代表挨拶・会社概要用） */
.ab-text-wrap {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

/* セクション見出し */
.ab-section-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 40px;
    text-align: center;
    line-height: 1.4;
}

/* ----------------------------------------
   2. 代表挨拶
---------------------------------------- */
.ab-message {
    background: #ffffff;
}

.ab-message p {
    font-size: 1rem;
    line-height: 2;
    color: var(--color-text);
    margin: 0 0 1.5rem;
}

.ab-message p:last-child {
    margin-bottom: 0;
}

.ab-signature {
    text-align: right;
    font-weight: 500;
    color: var(--color-text);
    margin-top: 2rem !important;
}

/* ----------------------------------------
   3. 経営理念
---------------------------------------- */
.ab-philosophy {
    background: var(--color-bg-sub);
}

.ab-philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ab-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.ab-card-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 16px;
    letter-spacing: 0.05em;
}

.ab-card p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin: 0;
}

/* ----------------------------------------
   4. 会社概要
---------------------------------------- */
.ab-company {
    background: #ffffff;
}

.ab-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.7;
}

.ab-table th,
.ab-table td {
    padding: 14px 20px;
    border: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

.ab-table th {
    width: 150px;
    background: var(--color-bg-sub);
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
}

.ab-table td {
    background: #ffffff;
    color: var(--color-text);
}

/* ----------------------------------------
   地図
---------------------------------------- */
.about-map {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
}

.about-map iframe {
    width: 100%;
    height: 400px;
    display: block;
}

/* ----------------------------------------
   5. CTA
---------------------------------------- */
.ab-cta {
    background: var(--color-bg-sub);
    text-align: center;
}

.ab-cta-heading {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 28px;
}

/* ----------------------------------------
   会社案内レスポンシブ
---------------------------------------- */
@media (max-width: 768px) {
    .ab-section { padding: 60px 20px; }
    .ab-philosophy-grid { grid-template-columns: 1fr; gap: 16px; }
    .ab-table th { width: 110px; }
}

@media (max-width: 480px) {
    .ab-section { padding: 50px 16px; }
    .ab-table,
    .ab-table tbody,
    .ab-table tr,
    .ab-table th,
    .ab-table td {
        display: block;
    }
    .ab-table th {
        width: 100%;
        white-space: normal;
        border-bottom: none;
    }
    .ab-table tr {
        margin-bottom: 16px;
    }
}

/* ============================================================
   導入事例一覧ページ（page-cases.php）
============================================================ */

.cs-section {
    width: 100%;
    box-sizing: border-box;
    padding: 80px 0;
}

/* ----------------------------------------
   カード一覧
---------------------------------------- */
.cs-list {
    background: var(--color-bg-sub);
}

.cs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cs-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

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

.cs-card-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.cs-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cs-card:hover .cs-card-img img {
    transform: scale(1.04);
}

.cs-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cs-card-cats {
    margin-bottom: 10px;
}

.cs-cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    margin-right: 6px;
}

.cs-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 12px;
    line-height: 1.6;
}

.cs-card-excerpt {
    font-size: 0.85rem;
    line-height: 1.75;
    color: var(--color-text-muted);
    margin: 0 0 16px;
    flex: 1;
}

.cs-read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: auto;
}

.cs-empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: 60px 0;
}

.cs-card-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0 0 8px;
}

.cs-card-img--noimg {
    display: block;
}

.cs-card-noimg-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-card-noimg-placeholder span {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.cs-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 48px;
    flex-wrap: wrap;
}

.cs-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s;
}

.cs-pagination .page-numbers.current,
.cs-pagination .page-numbers:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.cs-pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* ----------------------------------------
   CTA
---------------------------------------- */
.cs-cta {
    background: #ffffff;
    text-align: center;
}

.cs-cta-heading {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 16px;
}

.cs-cta-lead {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin: 0 0 32px;
}

/* ----------------------------------------
   レスポンシブ
---------------------------------------- */
@media (max-width: 900px) {
    .cs-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 600px) {
    .cs-section { padding: 60px 0; }
    .cs-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   個別投稿ページ（single.php）
   GP の right-sidebar レイアウトを無効化
============================================================ */
.single #page    { max-width: 100% !important; }
.single #content { padding: 0 !important; display: block !important; }
.single #primary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}
.single #main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden;
}
.single #main > * { margin-bottom: 0; }
.single .widget-area  { display: none !important; }
.category .widget-area { display: none !important; }

/* ----------------------------------------
   ヒーロー
---------------------------------------- */
.sg-hero {
    background: #ffffff;
    padding: 160px 20px 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.sg-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--color-hero-deco);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
    pointer-events: none;
}

.sg-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--color-hero-deco);
    border-radius: 50%;
    top: -100px;
    right: -80px;
    pointer-events: none;
}

.sg-hero-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }

.sg-hero-meta { margin: 0 0 16px; }

.sg-cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    margin: 0 4px 4px;
}

.sg-title {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.4;
    margin: 0 0 20px;
}

.sg-date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ----------------------------------------
   アイキャッチ画像（フルワイド）
---------------------------------------- */
.sg-thumbnail {
    width: 100%;
    max-height: 540px;
    overflow: hidden;
    line-height: 0;
}

.sg-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ----------------------------------------
   本文
---------------------------------------- */
.sg-content {
    background: #ffffff;
    padding: 72px 20px;
}

.sg-container {
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
}

/* 本文内のタイポグラフィ */
.sg-content h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.sg-content h3 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 2rem 0 0.75rem;
}

.sg-content p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text);
    margin: 0 0 1.4rem;
}

.sg-content ul,
.sg-content ol {
    padding-left: 1.6rem;
    margin: 0 0 1.4rem;
}

.sg-content li {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.sg-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.sg-content table th,
.sg-content table td {
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}

.sg-content table th {
    width: 140px;
    background: var(--color-bg-sub);
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
}

.sg-content table td { background: #ffffff; }

.sg-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sg-content em {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: -1.2rem;
    margin-bottom: 2rem;
}

/* ----------------------------------------
   前後の記事ナビ
---------------------------------------- */
.sg-post-nav {
    background: var(--color-bg-sub);
    padding: 40px 20px;
}

.sg-post-nav-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.sg-nav-prev { text-align: left; flex: 1; }
.sg-nav-next { text-align: right; flex: 1; }

.sg-nav-link {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.2s;
}

.sg-nav-link:hover { color: var(--color-primary); }

.sg-nav-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.sg-nav-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
}

/* ----------------------------------------
   CTA
---------------------------------------- */
.sg-cta {
    background: var(--color-bg-sub);
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.sg-cta-heading {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 16px;
}

.sg-cta-lead {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin: 0 0 32px;
}

/* ----------------------------------------
   レスポンシブ
---------------------------------------- */
@media (max-width: 768px) {
    .sg-hero { padding-top: 130px; }
    .sg-thumbnail { max-height: 280px; }
    .sg-content { padding: 52px 20px; }
    .sg-post-nav-inner { flex-direction: column; gap: 16px; }
    .sg-nav-next { text-align: left; }
    .sg-content table th { width: auto; white-space: normal; }
}

@media (max-width: 480px) {
    .sg-content { padding: 40px 16px; }
    .sg-content table,
    .sg-content table tbody,
    .sg-content table tr,
    .sg-content table th,
    .sg-content table td { display: block; }
    .sg-content table th { border-bottom: none; }
    .sg-content table tr { margin-bottom: 12px; }
}

/* ============================================================
   最新情報セクション（#latest-news）
============================================================ */
#latest-news {
    background: var(--color-bg-sub);
}

.ln-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    text-align: center;
}

.ln-inner h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 40px;
}

.ln-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.ln-tab {
    padding: 8px 24px;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-base);
    transition: background 0.3s ease, color 0.3s ease;
}

.ln-tab.active,
.ln-tab:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.ln-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: left;
}

/* タブレット：3列×1行に収める。
   2列にすると4枚で2行になり、iPad横(1024x768)等で縦に間延びするため。
   表示枚数の3枚への制限は js/main.js の lnCardLimit() 側で行う。 */
@media (min-width: 769px) and (max-width: 1024px) {
    .ln-grid { grid-template-columns: repeat(3, 1fr); }
}

.ln-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ln-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.ln-card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.ln-card-noimg-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.ln-card-noimg-placeholder span {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.ln-card-body {
    padding: 20px;
}

.ln-cat {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 700;
}

.ln-cat a {
    color: var(--color-primary);
    text-decoration: none;
}

.ln-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 8px 0;
    line-height: 1.5;
}

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

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

.ln-card-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0;
}

.ln-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-text-muted);
    padding: 40px 0;
}

.ln-more {
    margin-top: 40px;
}

.ln-more-link {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
}

.ln-more-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .ln-inner { padding: 48px 16px; }
    .ln-inner h2 { font-size: 1.5rem; margin-bottom: 24px; }
    .ln-tabs { gap: 8px; }
    .ln-tab { font-size: 0.8rem; padding: 6px 14px; }
    .ln-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ln-card-img img { height: 110px; }
    .ln-card-noimg-placeholder { height: 110px; }
    .ln-card-body { padding: 10px 12px; }
    .ln-card-title { font-size: 0.8rem; }
    .ln-more { margin-top: 24px; }
}

/* ============================================================
   お問い合わせページ (page-contact.php)
============================================================ */

/* レイアウトリセット */
body.page-slug-contact #page    { max-width: 100% !important; }
body.page-slug-contact #content { padding: 0 !important; display: block !important; }
body.page-slug-contact #primary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}
body.page-slug-contact #main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden;
}
body.page-slug-contact #main > * { margin-bottom: 0; }
body.page-slug-contact .widget-area { display: none !important; }

/* ----------------------------------------
   ヒーロー装飾円
---------------------------------------- */
.ct-hero { position: relative; overflow: hidden; }

.ct-hero-deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(243, 156, 18, 0.06);
    pointer-events: none;
}

.ct-hero-deco--1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -100px;
}

.ct-hero-deco--2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -60px;
    background: rgba(243, 156, 18, 0.04);
}

/* ----------------------------------------
   安心ポイント
---------------------------------------- */
.ct-points { background: #ffffff; }

.ct-points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.ct-point-card {
    background: var(--color-bg-sub);
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
}

.ct-point-icon {
    font-size: 2.4rem;
    margin: 0 0 16px;
    line-height: 1;
}

.ct-point-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 12px;
}

.ct-point-body {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin: 0;
}

/* ----------------------------------------
   フォームセクション
---------------------------------------- */
.ct-form-section { background: var(--color-bg-sub); }

.ct-form-wrap {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 60px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.ct-form-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0 0 32px;
    text-align: right;
}

/* ----------------------------------------
   Contact Form 7 スタイルオーバーライド
---------------------------------------- */
.wpcf7 { width: 100%; }

.ct-form-row {
    margin-bottom: 24px;
}

.ct-form-row label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 6px;
}

.ct-required {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.ct-optional {
    display: inline-block;
    background: #aaa;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-textarea,
.wpcf7-form-control.wpcf7-select {
    width: 100%;
    border: 1px solid #dde0e4;
    border-radius: 4px;
    padding: 12px 16px;
    font-family: var(--font-main, 'Noto Sans JP', sans-serif);
    font-size: 0.95rem;
    color: var(--color-text);
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-email:focus,
.wpcf7-form-control.wpcf7-textarea:focus,
.wpcf7-form-control.wpcf7-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.12);
}

.wpcf7-form-control.wpcf7-textarea {
    min-height: 180px;
    resize: vertical;
}

.wpcf7-form-control.wpcf7-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.ct-form-submit {
    margin-top: 40px;
    text-align: center;
}

.wpcf7-form-control.wpcf7-submit {
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 16px 60px;
    font-size: 1rem;
    font-family: var(--font-main, 'Noto Sans JP', sans-serif);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.05em;
}

.wpcf7-form-control.wpcf7-submit:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.35);
}

/* バリデーションエラー */
.wpcf7-not-valid-tip {
    display: block;
    font-size: 0.8rem;
    color: #e74c3c;
    margin-top: 4px;
}

.wpcf7-form-control.wpcf7-not-valid {
    border-color: #e74c3c !important;
}

/* 送信結果メッセージ */
.wpcf7-response-output {
    margin-top: 24px !important;
    padding: 16px 20px !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    border: none !important;
}

.wpcf7-mail-sent-ok {
    background: #eafaf1 !important;
    color: #1e8449 !important;
}

.wpcf7-mail-sent-ng,
.wpcf7-validation-errors {
    background: #fdedec !important;
    color: #c0392b !important;
}

/* ----------------------------------------
   レスポンシブ
---------------------------------------- */
@media (max-width: 768px) {
    .ct-points-grid { grid-template-columns: 1fr; gap: 16px; }
    .ct-point-card { padding: 28px 24px; }
    .ct-form-wrap { padding: 32px 24px; border-radius: 12px; }
    .wpcf7-form-control.wpcf7-submit { padding: 14px 40px; width: 100%; }
}

/* ============================================================
   プライバシーポリシーページ (page-privacy-policy.php)
============================================================ */

/* レイアウトリセット */
body.page-slug-privacy-policy #page    { max-width: 100% !important; }
body.page-slug-privacy-policy #content { padding: 0 !important; display: block !important; }
body.page-slug-privacy-policy #primary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}
body.page-slug-privacy-policy #main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden;
}
body.page-slug-privacy-policy #main > * { margin-bottom: 0; }
body.page-slug-privacy-policy .widget-area { display: none !important; }

/* ----------------------------------------
   コンテンツラッパー
---------------------------------------- */
.pp-wrap {
    background: #ffffff;
    padding: 80px 0 100px;
}

.pp-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* ----------------------------------------
   見出し
---------------------------------------- */
.pp-h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 48px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--color-primary);
}

.pp-container h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 48px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--color-primary);
}

/* ----------------------------------------
   本文
---------------------------------------- */
.pp-container p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--color-text);
    margin: 0 0 16px;
}

.pp-container ul {
    margin: 0 0 16px;
    padding-left: 24px;
}

.pp-container ul li {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--color-text);
    margin-bottom: 6px;
    list-style-type: disc;
}

.pp-date {
    text-align: right !important;
    font-size: 0.85rem !important;
    color: var(--color-text-muted) !important;
    margin-top: 48px !important;
}

/* ----------------------------------------
   レスポンシブ
---------------------------------------- */
@media (max-width: 768px) {
    .pp-wrap { padding: 48px 0 64px; }
    .pp-container { padding: 0 20px; }
    .pp-h1 { font-size: 1.6rem; margin-bottom: 32px; }
    .pp-container h2 { margin-top: 32px; }
}

/* ----------------------------------------
   お問い合わせページ：住所・営業時間
---------------------------------------- */
.contact-info {
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 2;
}
