/*
Theme Name: allell_remake
Theme URI: 
Description: 
Author: 
Author URI: 
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: allell
Tags: custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/**
 * 1. Design System & Variables
 */
html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    /* overflow-x: hidden; REMOVED to fix sticky header */
}

:root {
    /* Color Palette - Client Site Inspired (arueru.com) */
    --primary-color: #0d4411;
    /* Deep Forest Green */
    --brown-dark: #211a18;
    /* Even darker, blackish brown for premium feel */
    --accent-color: #1eb27e;
    /* Vibrant Green */
    --accent-red: #cf1a1d;
    /* Precise Analyzed Logo Red */
    --text-main: #333333;
    /* Charcoal Gray */
    --text-sub: #666666;
    --bg-main: #ffffff;
    --bg-soft: #ffffff;
    /* Soft Gray changed to White for Header/FV unity */
    --white: #ffffff;
    --black: #000000;

    /* Typography - Client Site Inspired */
    --font-heading: 'Noto Sans JP', sans-serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-english: 'Noto Sans JP', sans-serif;
    --font-luxury: 'Noto Sans JP', sans-serif;

    --line-height-base: 1.8;
    --letter-spacing-base: 0.05em;
    --letter-spacing-en: 0.1em;

    /* Fonts sizes from Customizer PX */
    --b-size: var(--b-size-pc, 16px);
    --h2-size: var(--fs-h2-px-pc, 32px);

    /* Responsive Font Sizes using explicit Customizer values */
    --fs-base: var(--b-size);
    --fs-h1: calc(var(--h2-size) * 1.5);
    --fs-h2: var(--h2-size);
    --fs-h3: calc(var(--h2-size) * 0.8);

    /* Spacing & Frame (Maruyama Style) */
    --frame-gap: 30px;
    --sp-section: clamp(4rem, 10vw, 8rem);
    --sp-inner: clamp(2rem, 4vw, 4rem);

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    :root {
        --frame-gap: 15px;
        /* Tighter margins on mobile */
        --b-size: var(--b-size-sp, 14px);
        --h2-size: var(--fs-h2-px-sp, 24px);
    }
}

/**
 * 2. Reset & Core Base
 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: var(--line-height-base);
    letter-spacing: var(--letter-spacing-base);
    color: var(--text-main);
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
}

/* REMOVED: Outermost Frame Effect (Vignette) requested by user for cleaner look */

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul,
ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

/**
 * 3. Accessibility & Layout
 */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.l-container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--sp-inner);
    width: 100%;
}

.l-container-wide {
    max-width: 1400px;
}

/* Visibility Utilities */
.sp-only {
    display: none !important;
}

@media (max-width: 768px) {
    .pc-only {
        display: none !important;
    }

    .sp-only {
        display: block !important;
        /* or inline-block based on element, but usually works */
    }

    span.sp-only,
    br.sp-only {
        display: inline !important;
    }
}

/**
 * 4. Typography Rules
 */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 1em;
    line-height: 1.3;
    font-weight: 700;
    font-family: var(--font-heading);
    overflow-wrap: break-word;
    word-break: break-all;
    /* Prevent overflow on tight mobile screens */
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
    line-height: 1.2;
}

h3 {
    font-size: var(--fs-h3);
}

p {
    margin-bottom: 2em;
    /* Paragraph bottom margin 2.0em */
}

/* Components */
.aio-conclusion {
    background: var(--bg-soft);
    padding: 2rem;
    border-radius: 8px;
    border-left: 6px solid var(--primary-color);
    margin-bottom: 3rem;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid #ddd;
    padding: 1rem;
    text-align: left;
}

th {
    background: var(--bg-soft);
}

/**
 * 5. Theme Components & Sections
 */

/* Header & Navigation */
.site-header {
    background: var(--white);
    color: var(--primary-color);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

/* FV全画面時：ヘッダーをヒーローに重ねる */
.site-header.pattern-fv1:not(.is-scrolled),
.site-header.pattern-fv2:not(.is-scrolled) {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    padding: 0;
    height: auto;
    z-index: 1000;
}
.site-header.pattern-fv1.is-scrolled,
.site-header.pattern-fv2.is-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

/* ------------------------------------------------------------
 * 10. Footer Section (3-Column Layout with Landscape Map)
 * ------------------------------------------------------------ */
.site-footer {
    background-color: #22ac6c !important;
    color: #ffffff !important;
    padding: 100px 0 80px;
    font-family: var(--font-sans);
}

.footer-flex-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.8fr; /* Map column is wider */
    gap: 60px;
}

.footer-col {
    width: 100%;
}

/* Column 1: Info (Decorated) */
.footer-logo-wrap {
    margin-bottom: 2.2rem;
}

.footer-logo {
    max-height: 52px;
    width: auto;
    display: block;
}

.footer-address-block {
    position: relative;
    padding-left: 0;
}

.footer-address-block p {
    margin-bottom: 0.8rem; /* Tighter vertical spacing */
    line-height: 1.5;
}

.f-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-right: 12px;
    vertical-align: middle;
    min-width: 50px;
    padding: 3px 10px;
    background: #1a3a2a;
    color: #fff;
    border-radius: 4px;
    text-align: center;
    opacity: 1;
}

.f-address {
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
}

.f-address .addr-text {
    flex: 1;
}

.f-tel,
.f-fax {
    font-size: 1.15rem; /* Unified font size as requested */
    font-weight: 700;
    display: flex;
    align-items: center;
    color: inherit;
    font-family: var(--font-english);
}

.f-tel a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.f-tel a:hover {
    color: var(--accent-color);
}

.f-fax {
    opacity: 0.9;
}

/* Column 2: Navigation (Dynamic Menu) */
.f-nav-title {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.25;
}

.f-nav-sub {
    display: block;
    font-size: 0.8rem;
    opacity: 0.75;
    font-weight: 400;
    margin-top: 0.3rem;
}

.footer-sitemap {
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* Narrower gap as requested */
    padding: 0;
    margin: 0;
    list-style: none;
}

/* 2-Column Mode override */
.footer-sitemap.is-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem 1.5rem;
}

.footer-sitemap li a {
    color: #fff;
    opacity: 1;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.3;
    transition: var(--transition-smooth);
}

.footer-sitemap li a:hover {
    opacity: 0.75;
    color: #fff;
    text-decoration: underline;
}

/* Column 3: Landscape Map */
.footer-map-wrap {
    width: 100%;
    height: 100%;
    min-height: 280px; /* Keep it landscape proportion in the column */
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-map-wrap iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* 11. Copyright Section (Clearly Separated) */
.footer-copyright-section {
    background-color: #1a7a3c !important;
    color: #ffffff !important;
    padding: 30px 0;
    text-align: center;
}

.footer-copyright-section .copyright {
    font-size: 0.75rem;
    opacity: 0.7;
    margin: 0;
    letter-spacing: 0.08em;
}

/* Mobile Overrides (Footer) */
@media (max-width: 992px) {
    .footer-flex-container {
        display: flex;
        flex-wrap: wrap;
        gap: 60px 40px;
    }
    
    .footer-col-info {
        flex: 0 0 100%;
    }
    
    .footer-col-nav {
        flex: 1;
    }
    
    .footer-col-map {
        flex: 1.5;
    }
}

@media (max-width: 767px) {
    .site-footer {
        padding: 60px 0 60px;
    }
    
    .footer-flex-container {
        flex-direction: column;
        gap: 50px;
    }
    
    .footer-col {
        min-width: 100%;
    }

    .footer-map-wrap {
        height: 220px;
    }

    .f-nav-title {
        margin-bottom: 1.5rem;
    }

    .footer-sitemap.is-2-cols {
        grid-template-columns: 1fr;
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    padding: 0;
    width: auto;
    margin: 0 var(--frame-gap);
    max-width: none;
    transition: var(--transition-smooth);
}

.site-header.pattern-fv1:not(.is-scrolled) .header-inner,
.site-header.pattern-fv2:not(.is-scrolled) .header-inner {
    margin: 0;
    padding: 0 2rem;
    min-height: 80px;
    max-width: none;
    align-items: center;
}

@media (max-width: 1200px) {
    .header-inner {
        padding: 0 0 0 2rem;
    }
}

.site-branding {
    background: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 0 0 25px 0;
    box-shadow: none;
    z-index: 10;
    transition: var(--transition-smooth);
}

.site-branding::before {
    content: '';
    position: absolute;
    top: calc(var(--frame-gap) * -1);
    left: calc(var(--frame-gap) * -1);
    width: var(--frame-gap);
    height: var(--frame-gap);
    background: white;
}

.site-header.pattern-fv2:not(.is-scrolled) .site-branding {
    padding: 0.8rem 2rem;
    border-radius: 0 0 20px 0;
    background: #ffffff;
    box-shadow: none;
}

.site-header.pattern-fv1:not(.is-scrolled) .site-branding::before,
.site-header.pattern-fv2:not(.is-scrolled) .site-branding::before {
    display: none;
}

.logo-link {
    display: inline-block;
    line-height: 0;
}

.site-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .site-logo {
        max-height: 40px;
    }

    .pattern-fv2 .site-logo {
        max-height: 44px;
    }
}


/* Base Navigation Styles */
.main-navigation {
    display: flex;
    justify-content: flex-end;
}

.nav-bar-container {
    background: transparent;
    border-radius: 0;
    margin-right: calc(var(--frame-gap) * -1);
    padding: calc(0.8rem + 5px) calc(var(--frame-gap) + 1.5rem) calc(0.8rem + 5px) clamp(1.5rem, 3vw, 3rem);
    display: flex;
    align-items: center;
    width: auto;
    box-shadow: none;
}

.site-header.pattern-fv2:not(.is-scrolled) .nav-bar-container {
    background: transparent;
    border-radius: 0;
    padding: 1rem 2.4rem 1rem clamp(1.5rem, 2.5vw, 2.8rem);
    margin-right: calc(var(--frame-gap) * -1);
    margin-top: 0;
    box-shadow: none;
}

/* Nav Menu List */
.nav-menu-list {
    display: flex;
    gap: clamp(1rem, 2.5vw, 3rem);
    /* Fluid gap prevents wrap */
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-list li a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: clamp(12px, 1.1vw, 15px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.site-header.pattern-fv2:not(.is-scrolled) .nav-menu-list li a {
    color: var(--primary-color);
    text-shadow: none;
    font-size: clamp(13px, 1.1vw, 15px);
}

.nav-menu-list li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-red);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu-list li a:hover {
    color: var(--brown-dark);
}

.nav-menu-list li a:hover::after {
    transform: scaleX(1);
    /* Smoothly extends right out from the center */
}

/* Nav Contact Info Area */
.nav-contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 1px solid rgba(13, 68, 17, 0.2);
    padding-left: clamp(1rem, 2vw, 2rem);
    margin-left: clamp(1rem, 2vw, 2rem);
    min-width: fit-content;
}

.site-header.pattern-fv2:not(.is-scrolled) .nav-contact-info {
    border-left: 1px solid rgba(13, 68, 17, 0.15);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-family: var(--font-english);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.site-header.pattern-fv2:not(.is-scrolled) .contact-item {
    color: var(--primary-color);
}

.contact-item .label {
    font-size: 10px;
    border: 1px solid var(--primary-color);
    padding: 2px 5px;
    border-radius: 2px;
    min-width: 35px;
    text-align: center;
}

.site-header.pattern-fv2:not(.is-scrolled) .contact-item .label {
    border-color: var(--primary-color);
}

.menu-toggle {
    display: none;
    /* Hidden on PC */
}

/* Mobile Adjustments (768px and below) */
@media (max-width: 768px) {
    .header-inner {
        position: relative;
        justify-content: space-between;
        padding: 0 1.2rem;
        min-height: 70px;
    }

    .site-branding {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        z-index: 10;
        margin: 0;
        line-height: 0;
        width: auto;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        background: transparent;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .site-logo {
        max-height: 40px;
        width: auto;
    }

    .nav-bar-container {
        display: none;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        /* Visible ONLY on Mobile */
        position: absolute;
        right: 1.2rem;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        outline: none;
        cursor: pointer;
        padding: 5px;
        z-index: 1100;
    }

    .menu-toggle:focus,
    .menu-toggle:focus-visible {
        outline: none;
    }

    .hamburger {
        width: 30px;
        height: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--hamburger-color, var(--brown-dark));
        transition: var(--transition-smooth);
    }

    .hamburger-label {
        display: block;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.1em;
        color: var(--hamburger-label-color, var(--brown-dark));
        line-height: 1;
    }

    .menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .main-navigation ul {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(13, 68, 17, 0.98);
        /* Deep Green */
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1050;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
    }

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

    .main-navigation ul li a {
        font-size: 2rem;
        color: var(--white);
    }
}

/* ============================================================
   フルスクリーンメニュー（サークルリビール）
   ============================================================ */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1060;
    pointer-events: none;
    overflow: hidden;
}

.fullscreen-menu.is-active {
    pointer-events: auto;
}

/* 丸く広がる背景 */
.fullscreen-menu-circle {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center;
}

.fullscreen-menu.is-active .fullscreen-menu-circle {
    transform: scale(80);
}

/* コンテンツ */
.fullscreen-menu-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fullscreen-menu.is-visible .fullscreen-menu-content {
    opacity: 1;
    transform: translateY(0);
}

/* ロゴ */
.fullscreen-menu-logo {
    margin-bottom: 2.5rem;
}

.fullscreen-menu-logo img {
    width: 100px;
    height: auto;
}

/* ナビリスト */
.fullscreen-menu-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fullscreen-menu-nav li {
    opacity: 0;
    transform: translateY(15px);
}

.fullscreen-menu.is-visible .fullscreen-menu-nav li {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fullscreen-menu.is-visible .fullscreen-menu-nav li:nth-child(1) { transition-delay: 0.05s; }
.fullscreen-menu.is-visible .fullscreen-menu-nav li:nth-child(2) { transition-delay: 0.1s; }
.fullscreen-menu.is-visible .fullscreen-menu-nav li:nth-child(3) { transition-delay: 0.15s; }
.fullscreen-menu.is-visible .fullscreen-menu-nav li:nth-child(4) { transition-delay: 0.2s; }
.fullscreen-menu.is-visible .fullscreen-menu-nav li:nth-child(5) { transition-delay: 0.25s; }

.fullscreen-menu-nav li a {
    display: flex;
    align-items: baseline;
    gap: 0.8em;
    padding: 1rem 0;
    text-decoration: none;
    color: var(--color-text);
    transition: opacity 0.2s;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.fullscreen-menu-nav li:last-child a {
    border-bottom: none;
}

.fullscreen-menu-nav li a:hover {
    opacity: 0.6;
}

.fullscreen-menu-nav-en {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-text);
}

.fullscreen-menu-nav-jp {
    font-size: 0.78rem;
    color: rgba(0,0,0,0.4);
    letter-spacing: 0.05em;
}

/* CTAボタン */
.fullscreen-menu-cta {
    margin-top: 2.5rem;
    opacity: 0;
    transform: translateY(10px);
}

.fullscreen-menu.is-visible .fullscreen-menu-cta {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s;
}

.fullscreen-menu-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.9em 2.5em;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s;
}

.fullscreen-menu-cta-btn:hover {
    background: var(--primary-color-dark, #1a6b3a);
    color: #fff;
    transform: translateY(-2px);
}

/* コピーライト */
.fullscreen-menu-copy {
    margin-top: 2rem;
    font-size: 0.7rem;
    color: rgba(0,0,0,0.3);
    letter-spacing: 0.1em;
    opacity: 0;
}

.fullscreen-menu.is-visible .fullscreen-menu-copy {
    opacity: 1;
    transition: opacity 0.4s ease 0.4s;
}

/* PC: 非表示のまま（PCはナビバーを使用） */
@media (min-width: 769px) {
    .fullscreen-menu {
        display: none;
    }
}

/* スマホ調整 */
@media (max-width: 768px) {
    .fullscreen-menu-circle {
        top: 15px;
        right: 20px;
    }

    .fullscreen-menu-content {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 5rem 1.5rem 2.5rem;
        justify-content: flex-start;
    }

    .fullscreen-menu-nav-en {
        font-size: 1.7rem;
    }

    .fullscreen-menu-nav-jp {
        font-size: 0.85rem;
    }

    .fullscreen-menu-nav li a {
        padding: 1rem 0;
    }

    .fullscreen-menu-logo {
        margin-bottom: 2rem;
    }

    .fullscreen-menu-logo img {
        width: 80px;
    }
}

/* ============================================================
   フルスクリーンメニュー テンプレート2（2カラム詳細ナビ）
   ============================================================ */
.tpl2-content {
    justify-content: center;
    padding: 1.5rem 2rem;
    height: 100dvh;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.tpl2-header {
    width: 100%;
    margin-bottom: 1.2rem;
}

.fullscreen-menu--tpl2 .fullscreen-menu-logo img {
    width: 110px;
}

.tpl2-columns {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    width: 100%;
    max-width: 700px;
}

.tpl2-col-label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: rgba(0,0,0,0.35);
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* 左カラム：メインナビ */
.tpl2-nav-main {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tpl2-nav-main li {
    opacity: 0;
    transform: translateX(-15px);
}

.fullscreen-menu.is-visible .tpl2-nav-main li {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fullscreen-menu.is-visible .tpl2-nav-main li:nth-child(1) { transition-delay: 0.05s; }
.fullscreen-menu.is-visible .tpl2-nav-main li:nth-child(2) { transition-delay: 0.1s; }
.fullscreen-menu.is-visible .tpl2-nav-main li:nth-child(3) { transition-delay: 0.15s; }
.fullscreen-menu.is-visible .tpl2-nav-main li:nth-child(4) { transition-delay: 0.2s; }

.tpl2-nav-main li a {
    display: flex;
    align-items: center;
    gap: 0.8em;
    padding: 0.6rem 0;
    text-decoration: none;
    color: var(--color-text);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: opacity 0.2s;
}

.tpl2-nav-main li:last-child a {
    border-bottom: none;
}

.tpl2-nav-main li a:hover {
    opacity: 0.7;
}

.tpl2-nav-num {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(0,0,0,0.3);
    min-width: 1.8em;
}

.tpl2-nav-text {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.02em;
}

/* 右カラム：サブナビ */
.tpl2-nav-sub {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tpl2-nav-sub li {
    opacity: 0;
    transform: translateX(15px);
}

.fullscreen-menu.is-visible .tpl2-nav-sub li {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fullscreen-menu.is-visible .tpl2-nav-sub li:nth-child(1) { transition-delay: 0.12s; }
.fullscreen-menu.is-visible .tpl2-nav-sub li:nth-child(2) { transition-delay: 0.17s; }

.tpl2-nav-sub li a {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.5rem 0;
    text-decoration: none;
    color: rgba(0,0,0,0.7);
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: color 0.2s;
}

.tpl2-nav-sub li:last-child a {
    border-bottom: none;
}

.tpl2-nav-sub li a:hover {
    color: var(--primary-color);
}

.tpl2-nav-sub li a svg {
    color: rgba(0,0,0,0.3);
    flex-shrink: 0;
}

/* CTA */
.tpl2-cta {
    margin-top: 1.2rem;
    opacity: 0;
    transform: translateY(10px);
}

.fullscreen-menu.is-visible .tpl2-cta {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

.tpl2-cta-label {
    font-size: 0.68rem;
    color: rgba(0,0,0,0.4);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.tpl2-cta-btn {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.65em 1.5em;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 0.6rem;
    justify-content: center;
}

.tpl2-cta-btn:hover {
    background: var(--primary-color-dark, #1a6b3a);
    color: #fff;
    transform: translateY(-1px);
}

.tpl2-cta-tel {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.65em 1.5em;
    background: transparent;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 100px;
    border: 1px solid rgba(0,0,0,0.2);
    text-decoration: none;
    transition: all 0.3s;
    justify-content: center;
}

.tpl2-cta-tel:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

/* スマホ調整 */
@media (max-width: 768px) {
    .tpl2-content {
        padding: 5rem 1.5rem 2rem;
        justify-content: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: 100dvh;
    }

    .tpl2-header {
        margin-bottom: 1.2rem;
    }

    .fullscreen-menu--tpl2 .fullscreen-menu-logo img {
        width: 100px;
    }

    .tpl2-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tpl2-col-label {
        font-size: 0.7rem;
        margin-bottom: 0.6rem;
        margin-top: 1.4rem;
    }

    .tpl2-col-left .tpl2-col-label {
        margin-top: 0;
    }

    .tpl2-nav-text {
        font-size: 1.15rem;
    }

    .tpl2-nav-num {
        font-size: 0.72rem;
    }

    .tpl2-nav-main li a {
        padding: 0.75rem 0;
        min-height: 44px;
    }

    .tpl2-nav-sub li a {
        padding: 0.6rem 0;
        font-size: 1rem;
        min-height: 44px;
    }

    .tpl2-cta {
        margin-top: 1.5rem;
    }

    .tpl2-cta-label {
        font-size: 0.65rem;
        margin-bottom: 0.6rem;
    }

    .tpl2-cta-btn {
        font-size: 0.9rem;
        padding: 0.75em 1.5em;
        margin-bottom: 0.6rem;
        min-height: 44px;
    }

    .tpl2-cta-tel {
        font-size: 0.9rem;
        padding: 0.75em 1.5em;
        min-height: 44px;
    }

    .fullscreen-menu--tpl2 .fullscreen-menu-copy {
        margin-top: 1.5rem;
        font-size: 0.65rem;
        color: rgba(0,0,0,0.3);
    }
}

/* Page Layouts & Utilities */
.section-padding {
    padding: var(--sp-section) 0;
}

.page-header {
    background: var(--primary-color);
    color: var(--white);
    padding: calc(var(--sp-section) * 1.5) 0 var(--sp-section);
    text-align: center;
}

.page-title {
    font-size: var(--fs-h1);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-family: var(--font-english);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-en);
    font-size: 1.1rem;
    font-weight: 700;
}

.service-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .service-content-grid {
        grid-template-columns: 1fr;
    }
}

.placeholder-img {
    aspect-ratio: 4/3;
    border-radius: 12px;
    background: #f0f0f0;
}

.service-detail.flipped .service-content-grid {
    direction: rtl;
}

.service-detail.flipped .service-text {
    direction: ltr;
}

.aio-check {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-main);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.aio-check h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.aio-check ul {
    list-style: none;
    padding: 0;
}

.aio-check ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
}

.aio-check ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}


/* Hero Section - Viewport Fit Frame with Dynamic Weight */
.hero-section {
    position: relative;
    height: 100vh;
    height: 100dvh;
    height: var(--fv-vh, 100dvh);
    min-height: 600px;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.hero-section.pattern-fv2 {
    height: 100vh;
    height: 100dvh;
    height: var(--fv-vh, 100dvh);
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .site-header.pattern-fv1:not(.is-scrolled),
    .site-header.pattern-fv2:not(.is-scrolled) {
        height: auto;
        background: #ffffff;
    }

    .site-header.pattern-fv1:not(.is-scrolled) .site-branding,
    .site-header.pattern-fv2:not(.is-scrolled) .site-branding {
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }

    .site-header.pattern-fv1:not(.is-scrolled) .header-inner,
    .site-header.pattern-fv2:not(.is-scrolled) .header-inner {
        min-height: 70px;
        padding: 0 1rem;
    }

    .hero-section,
    .hero-section.pattern-fv2 {
        height: 100vh;
        height: 100svh;
        height: var(--fv-vh, 100svh);
        min-height: 0;
        padding: 0;
    }
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 0;
    overflow: hidden;
}

.pattern-fv2 .hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 1;
    overflow: hidden;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.hero-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

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


/* Floating News Card (FV2 Original Style) */
.hero-news-card {
    position: absolute;
    bottom: calc(var(--frame-gap) + 2rem);
    right: calc(var(--frame-gap) + 2rem);
    background: rgba(255, 255, 255, 0.95);
    /* Slight transparency for elegance */
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem 1.5rem 5.5rem;
    /* Space on left for icon */
    border-radius: 24px;
    /* Soft floating frame, not a corner cutout */
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 450px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    /* Centralized soft shadow */
    transition: var(--transition-smooth);
}

.hero-news-card:hover {
    transform: translateY(-5px);
    /* Lift up effect instead of right stretch */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .hero-news-card {
        display: none !important;
    }
}

.hn-label {
    font-family: var(--font-sans);
    /* Changed to Noto Sans JP */
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.hn-sub {
    font-size: 0.7rem;
    font-family: var(--font-sans);
    font-weight: 400;
    opacity: 0.7;
}

.hn-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hn-date {
    font-size: 0.8rem;
    font-family: var(--font-english);
    color: var(--text-sub);
}

.hn-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hn-more {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    animation: hn-pulse 2.4s ease-in-out infinite;
}

@keyframes hn-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13, 68, 17, 0.35); }
    60%       { box-shadow: 0 0 0 10px rgba(13, 68, 17, 0); }
}

.hn-more .arrow {
    display: block;
    width: 9px;
    height: 9px;
    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    transform: rotate(45deg) translate(-2px, 2px);
    flex-shrink: 0;
}

.hero-news-card:hover .hn-more {
    background: var(--accent-red);
    transform: translateY(-50%) scale(1.1);
    animation: none;
}

.hero-news-card:hover .hn-more .arrow {
    border-color: #ffffff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 3;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    padding: 0 4rem;
}

.hero-inner-text {
    width: 100%;
    color: var(--white);
    max-width: 1000px;
}

.hero-main-phrase {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-family: var(--font-luxury);
    /* Shippori Mincho B1 */
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease 0.6s;
    text-align: left;
}

.hero-slide.is-active .hero-main-phrase {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 1.5rem;
        justify-content: center;
        width: 100%;
    }

    .hero-main-phrase {
        font-size: 1.8rem;
        /* Scaled down for mobile safety */
        text-align: center;
        width: 100%;
        line-height: 1.3;
        word-break: break-all;
        /* Force wrap */
        overflow-wrap: break-word;
    }
}

.hero-title {
    margin-bottom: 2rem;
}

.hero-title .sub-title {
    display: block;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--accent-color);
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    font-family: var(--font-english);
    text-transform: uppercase;
}

.hero-title .main-title {
    display: block;
    font-size: var(--fs-h1);
    line-height: 1.2;
    font-family: var(--font-heading);
}

.hero-desc {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    max-width: 800px;
    margin-inline: auto;
    margin-bottom: 3.5rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 1rem;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Sections */
section {
    padding: var(--sp-section) 0;
}

/* ============================================================
   Results Section
   ============================================================ */
.results-section {
    padding: 5rem 0 1rem;
    background: #29b765;
}

.results-header {
    text-align: center;
    margin-bottom: 1rem;
}

.results-layout {
    margin-top: 2rem;
}

.results-eng {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.results-eng .p-red {
    color: #b04535;
}

.results-jp {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
}

/* Results Layout: Text + Overlapping Images */
.results-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.results-text-col {
    flex: 1;
}

.results-text-body {
    font-size: 1rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.results-btn-wrap {
    display: flex;
}

.btn-results {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid var(--white);
    border-radius: 50px;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
}

.btn-results:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Right: Overlapping Images */
.results-images-col {
    flex: 1;
    position: relative;
    min-height: 380px;
}

.results-img-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.results-img-main {
    position: relative;
    width: 85%;
    z-index: 2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.results-img-main img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.results-img-sub {
    position: absolute;
    bottom: -30px;
    right: -10px;
    width: 55%;
    z-index: 3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--primary-color);
}

.results-img-sub img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media (max-width: 768px) {
    .results-section {
        padding: 4rem 0 0.5rem;
    }

    .results-layout {
        flex-direction: column-reverse;
        gap: 2.5rem;
    }

    .results-text-col {
        text-align: center;
    }

    .results-btn-wrap {
        justify-content: center;
    }

    .results-images-col {
        width: 100%;
        min-height: 260px;
    }

    .results-img-main {
        width: 80%;
    }

    .results-img-sub {
        width: 50%;
        bottom: -20px;
        right: 0;
    }
}

/* ============================================================
   Results Post Cards Section
   ============================================================ */
.results-cards-section {
    padding: 1rem 0 5rem;
    background: #29b765;
}

.results-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Card */
.rc-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.rc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

/* Card Image */
.rc-card-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

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

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

/* No Image Placeholder */
.rc-card-noimg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f0e8 0%, #c5d8c5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rc-noimg-text {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    font-style: italic;
    color: rgba(34, 172, 108, 0.4);
    letter-spacing: 0.05em;
}

/* Badge */
.rc-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.9rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

/* Card Body */
.rc-card-body {
    padding: 1.5rem 1.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rc-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.rc-card-excerpt {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    flex: 1;
}

.rc-card-btn-wrap {
    display: flex;
}

.rc-card-btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    letter-spacing: 0.06em;
    transition: background 0.3s ease;
}

.rc-card-btn:hover {
    background: #1a8a56;
    color: var(--white);
}

/* More Button */
.results-cards-more {
    text-align: center;
    margin-top: 3rem;
}

.btn-results-cards {
    display: inline-block;
    padding: 1rem 3.5rem;
    background: transparent;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid var(--white);
    border-radius: 50px;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
}

.btn-results-cards:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .results-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rc-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .results-cards-section {
        padding: 0.5rem 0 4rem;
    }

    .results-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 360px;
        margin: 0 auto;
    }

    .rc-card:last-child {
        grid-column: auto;
        max-width: 100%;
    }

    .rc-card-body {
        padding: 1.2rem 1.2rem 1.5rem;
    }

    .rc-card-title {
        font-size: 1rem;
    }

    .btn-results-cards {
        padding: 0.8rem 2.5rem;
        font-size: 0.9rem;
    }
}

/* Results Archive Card Grid */
.rc-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 991px) {
    .rc-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rc-archive-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
        margin: 0 auto 2rem;
    }
}

/* Problem Solving Section (Use Case Style with Split Background) */
.problem-solving-section {
    background: linear-gradient(to bottom, #f2f2f2 55%, #22ac6c 55%);
    padding-top: 8rem;
    padding-bottom: 5rem;
    overflow: hidden;
    /* Prevent background decorations from causing sway */
}

.use-case-header {
    margin-bottom: 5rem;
    text-align: center;
    /* Center align head as requested */
}

.use-case-jp,
.services-jp {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    /* Gap to subtext */
}

.use-case-eng,
.services-eng {
    display: block;
    color: #999;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-heading);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.use-case-eng .p-red,
.services-eng .p-red,
.news-subtitle .p-red {
    color: #b04535;
}

/* Problem Section: widen container */
.problem-solving-section .l-container {
    max-width: 1600px;
    padding-inline: var(--frame-gap);
}

/* Problem Grid */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
    position: relative;
    z-index: 10;
}

/* Title Card (1st item) */
.problem-card--title {
    background: linear-gradient(160deg, #0d4411 0%, #1a6b22 100%) !important;
    border: none !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 2rem;
}

.problem-title-en {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.problem-title-ja {
    color: #fff;
    font-size: clamp(1.2rem, 1.6vw, 1.7rem);
    font-weight: 700;
    line-height: 1.8;
    margin: 0;
}

.problem-card {
    background: var(--white);
    border-radius: 20px;
    border: 2px solid #9b3a2a;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-header {
    background-color: var(--header-bg-color, #fff);
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.problem-card:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.problem-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

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

.problem-body {
    padding: 2.5rem 1.2rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 画像なし時はカードを縦中央揃え */
.problem-card:not(:has(.problem-thumb)) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
}

.problem-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    opacity: 0.7;
}

.problem-text {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--primary-color);
    margin: 0;
}

/* Problem Footer */
.problem-footer {
    text-align: center;
    max-width: 900px;
    margin-inline: auto;
    position: relative;
    z-index: 10;
}

.problem-footer-text {
    font-size: clamp(0.95rem, 2vw, 1.3rem);
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.04em;
    line-height: 1.6;
}

.problem-btn-wrap {
    display: flex;
    justify-content: center;
}

.btn-use-case {
    display: inline-flex;
    align-items: center;
    padding: 1.2rem 4rem;
    border: 2px solid var(--white);
    background: transparent;
    border-radius: 50px;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-use-case::after {
    content: '>';
    margin-left: 1.5rem;
    transition: transform 0.3s ease;
}

.btn-use-case:hover {
    background: var(--white);
    color: #22ac6c;
}

/* Record Banner */
.problem-record-banner {
    display: block;
    max-width: 620px;
    margin: 1.5rem auto 0;
    padding: 2rem 2.5rem;
    background: url('assets/images/s-2400x1600_v-frms_webp_507cc610-ea0e-4454-b32d-d9e08495dc91_small.png') center 30% / cover no-repeat;
    border-radius: 50px;
    text-decoration: none;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--white);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-record-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 58, 42, 0.78) 0%, rgba(34, 120, 80, 0.6) 100%);
    z-index: 1;
}

.problem-record-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: var(--white);
    border-color: #b04535;
}

.record-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.record-heading-en {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    margin-bottom: 0.3rem;
}

.record-accent {
    color: #b04535;
}

.record-heading-jp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.record-arrow {
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.problem-record-banner:hover .record-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .problem-record-banner {
        max-width: 88%;
        margin: 2rem auto 0;
        padding: 1.5rem 1.5rem;
        border-radius: 40px;
    }

    .record-heading-en {
        font-size: 1.3rem;
    }

    .record-heading-jp {
        font-size: 1rem;
    }
}

/* Main Services Section (Alternating Editorial Layout) */
.main-services-section {
    background-color: var(--white);
    padding-top: 8rem;
    padding-bottom: 8rem;
    overflow: hidden;
}

.services-header {
    margin-bottom: 5rem;
    text-align: center;
}

.services-jp {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.services-eng {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    color: #999;
    text-transform: uppercase;
}

.services-intro {
    max-width: 800px;
    margin: 2.5rem auto 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
}

.service-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2.5rem, 5vw, 5.5rem);
    width: 100%;
    max-width: 1320px;
    margin: 0 auto clamp(7rem, 10vw, 10rem);
    padding: clamp(1.5rem, 3vw, 2rem) var(--sp-inner);
    position: relative;
    isolation: isolate;
    --service-panel-gradient: linear-gradient(135deg, rgba(218, 251, 226, 0.96) 0%, rgba(125, 216, 127, 0.94) 45%, rgba(30, 178, 126, 0.92) 72%, rgba(13, 68, 17, 0.94) 100%);
}

.service-row-item::before {
    display: none;
}

.service-row-item:last-child {
    margin-bottom: 0;
}

.service-row-image {
    order: 2;
    width: 100%;
    max-width: 660px;
    flex: 0 1 56%;
    margin-left: auto;
    position: relative;
    z-index: 2;
    isolation: isolate;
}

.service-row-image::before {
    content: '';
    position: absolute;
    top: clamp(-5.5rem, -7vw, -3.5rem);
    right: clamp(-6rem, -7vw, -3.5rem);
    width: clamp(190px, 24vw, 320px);
    height: clamp(210px, 25vw, 340px);
    background: var(--service-panel-gradient);
    z-index: 1;
    pointer-events: none;
}

.service-row-image img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
    border-radius: 0;
    box-shadow: 0 18px 35px rgba(13, 68, 17, 0.14);
}

.service-row-content {
    order: 1;
    width: 100%;
    max-width: 480px;
    flex: 1 1 40%;
    position: relative;
    padding: 0;
    margin: 0;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.service-row-content.l-container {
    max-width: 480px;
    padding-inline: 0;
}

.service-row-item.is-reverse::before {
    display: none;
}

.service-row-item.is-reverse .service-row-image {
    order: 1;
    margin-right: auto;
    margin-left: 0;
}

.service-row-item.is-reverse .service-row-image::before {
    right: auto;
    left: clamp(-6rem, -7vw, -3.5rem);
}

.service-row-item.is-reverse .service-row-content {
    order: 2;
    margin-left: auto;
}

/* Dynamic Background Graphic (The Triangle Image) */
.service-row-bg-graphic {
    position: absolute;
    height: auto;
    background-image: url('assets/images/service-bg-triangle.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
    pointer-events: none;
    /* Removed translate to allow direct PX positioning */
}

/* Mirror for reverse rows without translate offset */
.service-row-item.is-reverse .service-row-bg-graphic {
    transform: scaleX(-1);
}

.service-row-inner {
    max-width: 580px;
    width: 100%;
}

.service-row-num {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.3em;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
    position: relative;
}

/* 数字の前の細いライン */
.service-row-num::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--primary-color);
    opacity: 0.5;
    flex-shrink: 0;
}

/* 背景のゴースト大数字 */
.service-row-num::after {
    content: attr(data-num);
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-55%);
    font-size: clamp(5rem, 9vw, 8rem);
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.4px rgba(13, 68, 17, 0.16);
    pointer-events: none;
    z-index: -1;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.service-row-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.35;
    font-weight: 700;
    white-space: normal;
    letter-spacing: -0.03em;
}

.service-row-text {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.9;
    margin-bottom: 3.5rem;
    letter-spacing: 0.05em;
}

/* Rounded Button with Gradient */
.btn-service-row {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 1.1rem 4rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(180deg, #29b765 0%, #0a5c2a 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 92, 42, 0.35);
}

.btn-service-row::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #0a5c2a 0%, #29b765 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-service-row:hover {
    color: #fff;
    box-shadow: 0 6px 20px rgba(10, 92, 42, 0.5);
}

.btn-service-row:hover::before {
    opacity: 1;
}

/* Mobile Optimization for Service Section */
@media (max-width: 991px) {
    .service-row-item {
        display: flex;
        flex-direction: column !important;
        align-items: stretch;
        max-width: none;
        margin-bottom: 6rem;
        padding: 1rem 0 0;
        gap: 2.25rem;
    }

    .service-row-item.is-reverse {
        flex-direction: column !important;
    }

    .service-row-item::before {
        display: none;
    }

    .service-row-item.is-reverse::before {
        display: none;
    }

    .service-row-image,
    .service-row-item.is-reverse .service-row-image {
        order: 1;
        width: min(92vw, 640px) !important;
        max-width: none;
        flex: 0 0 auto !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .service-row-image::before {
        top: clamp(-3.2rem, -10vw, -2rem);
        right: clamp(-2rem, -5vw, -1rem);
        width: min(34vw, 180px);
        height: min(48vw, 240px);
    }

    .service-row-item.is-reverse .service-row-image::before {
        right: auto;
        left: clamp(-2rem, -5vw, -1rem);
    }

    .service-row-image img {
        aspect-ratio: 16/10;
        box-shadow: 0 14px 28px rgba(13, 68, 17, 0.14);
    }

    .service-row-content,
    .service-row-item.is-reverse .service-row-content,
    .service-row-content.l-container {
        order: 2;
        width: 100% !important;
        max-width: 620px;
        flex: 0 0 auto !important;
        margin: 0 auto !important;
        padding: 0 var(--sp-inner) !important;
        text-align: left;
        display: flex;
    }

    .service-row-inner {
        max-width: 100%;
        text-align: left;
    }

    .service-row-title {
        font-size: 1.8rem;
        white-space: normal;
        margin-bottom: 1.5rem;
    }

    .service-row-text {
        font-size: 1rem;
        text-align: left;
        margin-bottom: 2rem;
    }

    .btn-service-row {
        display: inline-flex;
        padding: 1rem 3.5rem;
    }

    .service-row-bg-graphic {
        display: none !important;
    }
}

/* Mobile Responsive for Grid Systems */
@media (max-width: 991px) {
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .problem-card--title {
        grid-column: 1 / -1;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .problem-grid {
        grid-template-columns: 1fr;
    }
    .problem-card--title {
        grid-column: auto;
    }

    .use-case-jp {
        font-size: 1.6rem;
        letter-spacing: 0.02em;
        white-space: normal;
    }

    .problem-text {
        font-size: 1rem;
    }

    .services-jp {
        font-size: 2rem;
        letter-spacing: 0.02em;
    }

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

    .use-case-header {
        margin-bottom: 2.5rem;
    }

    .use-case-eng,
    .services-eng {
        font-size: 0.9rem;
        /* Slightly smaller for sub-titles */
        letter-spacing: 0.15em;
        /* Reduced letter spacing for mobile safety */
    }

    .news-subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.1em;
    }

    .problem-solving-section {
        padding-top: 6rem;
        padding-bottom: 4rem;
        background: linear-gradient(to bottom, #f2f2f2 70%, #22ac6c 70%);
    }

    .problem-footer-text {
        font-size: 0.9rem;
    }

    .btn-use-case {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* FAQ */
.faq-grid {
    max-width: 800px;
    margin-inline: auto;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.faq-question {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* ============================================================
   GALLERY SLIDER (Marquee)
   ============================================================ */
.gallery-slider-section {
    width: 100%;
    overflow: hidden;
    padding: 0;
    /* Flush to edges */
    margin: 0;
    /* Keep flush with top/bottom */
    background: linear-gradient(to bottom, #ffffff 50%, #f4faf6 50%);
    /* Half-and-half transition */
}

/* Ensure images stand out against pastel green */
.gallery-marquee-item img {
    background-color: var(--white);
}

.gallery-marquee {
    padding: 5rem 0;
    /* Vertical space for the slider within its container */
}

.gallery-marquee {
    width: 100%;
    display: flex;
    overflow: hidden;
}

.gallery-marquee-inner {
    display: flex;
    width: max-content;
    animation: marquee 60s linear infinite;
    /* Adjust speed here */
}

/* Pause on hover if desired (Uncomment to enable)
.gallery-marquee-inner:hover {
    animation-play-state: paused;
}
*/

.gallery-marquee-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-marquee-item {
    flex: 0 0 auto;
    width: 480px;
    /* Adjusted width */
    height: 320px;
    padding: 0 15px;
    /* Spacing between "cards" */
}

@media (max-width: 768px) {
    .gallery-marquee-item {
        width: 320px;
        height: 220px;
        padding: 0 10px;
    }
}

.gallery-marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 30px;
    /* Beautiful rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft shadow for depth */
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move half world for seamless loop */
    }
}

/* ============================================================
   NEWS SECTION
   ============================================================ */
/* ============================================================
   NEWS SECTION — 2-column layout
   ============================================================ */
.news-section {
    display: flex;
    background: #fff;
}

.news-col-left {
    width: 30%;
    flex-shrink: 0;
    background: linear-gradient(180deg, #1a6b2e 0%, #2ea84d 100%);
    display: flex;
    align-items: center;
    padding: 5rem 3rem 5rem 4rem;
}

.news-col-left-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.news-title {
    font-size: clamp(2.8rem, 4vw, 4rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    line-height: 1;
}

.news-subtitle {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2.5rem;
}

.news-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1.8rem;
    position: relative;
    transition: opacity 0.2s ease;
}

.news-all-link::after {
    content: '';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
}

.news-all-link:hover {
    opacity: 0.75;
}

.news-all-icon {
    display: none;
}

.news-col-right {
    flex: 1;
    padding: 4rem 5rem 4rem 4rem;
    background: #fff;
}

.news-list {
    width: 100%;
}

.news-item {
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

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

.news-item::after {
    content: '—';
    position: absolute;
    right: 0;
    bottom: -0.65em;
    font-size: 0.8rem;
    color: #ccc;
    line-height: 1;
}

.news-item:last-child::after {
    display: none;
}

.news-item-link {
    display: block;
    padding: 1.4rem 0;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-date {
    font-size: 0.88rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.news-category {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.news-item-title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-main);
    transition: color 0.2s ease;
}

.news-item-link:hover .news-item-title {
    color: var(--primary-color);
}

/* Mobile */
@media (max-width: 768px) {
    .news-section {
        flex-direction: column;
    }
    .news-col-left {
        width: 100%;
        padding: 3rem 2rem;
    }
    .news-col-right {
        padding: 2.5rem 1.5rem;
    }
}

/* Footer */
.site-footer {
    background: #22ac6c;
    color: #fff;
    padding: 6rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

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

.footer-logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
}

.footer-navigation ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* ============================================================
   FLOATING CTA BUTTONS (Right Side Sticky)
   ============================================================ */
.floating-cta-container {
    position: fixed;
    right: 0;
    top: calc(var(--cta-top, 50%) + var(--cta-top-offset, 0px));
    transform: translateY(-50%) translateX(100%);
    /* Start completely hidden on the right */
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    /* Elegant slide-in */
}

/* Visibility Control */
.floating-cta-container.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.floating-cta-container.is-hidden-on-load {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(100%);
}

/* ------------------------------------------------------------
 * 14. Page Top Button
 * ------------------------------------------------------------ */
.page-top-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.page-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.page-top-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Base Icon (Arrow) */
.pagetop-icon {
    position: relative;
    display: block;
}

.pagetop-icon::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(-45deg);
}

/* Template 1: Simple Circle */
.is-style1 .page-top-link {
    width: 60px;
    height: 60px;
    background-color: var(--pagetop-color);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.is-style1 .pagetop-icon {
    top: 3px;
}

.is-style1 .page-top-link:hover {
    transform: translateY(-5px);
    background-color: #000;
}

/* Template 2: Text Focused (Square) */
.is-style2 .page-top-link {
    width: 70px;
    height: 70px;
    background-color: var(--pagetop-color);
    border-radius: 8px;
}

.is-style2 .pagetop-icon {
    top: -2px;
    margin-bottom: 5px;
}

.is-style2 .pagetop-text {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.is-style2 .page-top-link:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    background-color: var(--accent-color);
}

/* Template 3: Modern Capsule */
.is-style3 .page-top-link {
    padding: 12px 20px;
    background-color: #fff;
    color: var(--pagetop-color);
    border: 2px solid var(--pagetop-color);
    border-radius: 50px;
    flex-direction: row;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.is-style3 .pagetop-icon {
    top: 2px;
}

.is-style3 .pagetop-text {
    font-size: 12px;
    font-weight: 700;
}

.is-style3 .page-top-link:hover {
    background-color: var(--pagetop-color);
    color: #fff;
    transform: scale(1.05);
}

/* Custom Image Style */
.is-custom .page-top-link {
    background: none;
    border: none;
    width: auto;
    height: auto;
}

.is-custom img {
    max-width: 80px;
    height: auto;
    transition: transform 0.3s ease;
}

.is-custom .page-top-link:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* Responsive */
@media (max-width: 767px) {
    .page-top-btn {
        right: 20px;
        bottom: 20px;
    }
    
    .is-style1 .page-top-link {
        width: 50px;
        height: 50px;
    }
    
    .is-style2 .page-top-link {
        width: 60px;
        height: 60px;
    }

    .is-custom img {
        max-width: 60px;
    }
}

/* ------------------------------------------------------------
 * 15. Blog & Archive Layout
 * ------------------------------------------------------------ */
.archive-hero-v2 {
    position: relative;
    padding: 100px 0 60px;
    overflow: hidden;
    margin-bottom: 0;
    min-height: 350px;
    display: flex;
    align-items: center;
    background-color: #f0faf4;
    color: #1e293b;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    color: rgba(0,0,0,0.03);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    line-height: 1;
}

.archive-hero-v2 .l-container {
    position: relative;
    z-index: 2;
}

.archive-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.archive-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* Alignment Controls */
.is-align-center { text-align: center; }
.is-align-left { text-align: left; }
.is-align-right { text-align: right; }

.is-align-left .breadcrumb-nav { justify-content: flex-start; }
.is-align-center .breadcrumb-nav { justify-content: center; }
.is-align-right .breadcrumb-nav { justify-content: flex-end; }

/* Breadcrumbs */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.6;
}

.breadcrumb-nav a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb-nav .sep {
    font-weight: 300;
}

/* Intro Section */
.archive-intro-section {
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 60px;
}

.intro-desc {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.intro-pill {
    display: inline-block;
    padding: 10px 40px;
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Main Section below Hero */
.archive-main-section {
    background-color: #fff;
    padding: 80px 0 120px;
    position: relative;
    z-index: 10;
}

.blog-flex-container {
    display: grid;
    gap: 50px;
    align-items: start;
}

/* Sidebar Positioning */
.blog-flex-container.is-sidebar-right {
    grid-template-columns: 7fr 3fr;
}

.blog-flex-container.is-sidebar-left {
    grid-template-columns: 3fr 7fr;
}

.is-sidebar-none .blog-flex-container {
    grid-template-columns: 1fr;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Post Grid / List */
.post-grid {
    display: grid;
    gap: 40px 30px;
}

.archive-list-board {
    background: #ffffff !important;
    border-radius: 40px;
    padding: 40px 0;
    box-shadow: 0 40px 100px rgba(0,0,0,0.03);
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
    display: block !important; /* Force visible */
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure child news items are absolutely visible */
.archive-list-board .news-item {
    display: block !important;
    position: relative;
    border-bottom: none !important;
}

.archive-list-board .news-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1.5px;
    border-bottom: 2px dotted #7a4f2e; /* Visible brown line */
}

.archive-list-board .news-item-link {
    display: flex !important;
    align-items: center;
    padding: 3rem 80px !important;
    text-decoration: none;
    color: #222 !important;
    visibility: visible !important;
}

.archive-list-board .news-meta {
    flex: 0 0 250px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.archive-list-board .news-date {
    font-size: 1.1rem;
    color: #444;
    font-weight: 700;
}

.news-categories {
    display: flex;
    gap: 10px;
}

.archive-list-board .news-category {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.4rem 1.2rem;
    background-color: #f2f2f2;
    color: #1a472a; /* Brand green */
    border-radius: 4px;
}

.archive-list-board .news-item-title {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    margin: 0;
}

.archive-list-board .news-excerpt {
    display: block;
    font-size: 1rem;
    color: #777;
    margin-top: 5px;
}

.archive-list-board .article-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    position: relative;
    width: 100% !important;
}

/* 80% Dotted Centered Line */
.archive-list-board .article-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    border-bottom: 1px dotted #ccc;
}

.archive-list-board .article-card:last-child::after {
    display: none;
}

.archive-list-board .card-inner {
    padding: 30px 60px !important; /* Balanced internal padding */
}

.archive-list-board .entry-header {
    display: flex;
    align-items: center;
    gap: 25px;
}

.archive-list-board .posted-on {
    font-size: 1rem;
    color: #444;
    font-weight: 600;
    font-family: inherit;
    min-width: 100px;
}

.post-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    background: #f4f6f8;
    padding: 4px 14px;
    border-radius: 2px;
    text-align: center;
    min-width: 90px;
}

.archive-list-board .entry-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #222;
    margin: 0;
    line-height: 1.5;
}

.archive-list-board .entry-title a {
    text-decoration: none;
    color: inherit;
}

.archive-list-board .article-card:hover .entry-title a {
    color: var(--primary-color);
}

/* もっと読むボタン：PC非表示・スマホのみ */
.news-readmore-wrap {
    display: none;
}

.news-readmore-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
    border-radius: 50px;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: background 0.2s, color 0.2s;
}

.news-readmore-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ── News Archive: スマホ最適化 ── */
@media (max-width: 768px) {
    .archive-hero-v2 {
        padding: 60px 0 40px;
        min-height: 220px;
    }

    .archive-hero-inner .archive-hero-title,
    .archive-hero-inner h1 {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .archive-hero-inner .archive-hero-subtitle {
        font-size: 0.88rem;
    }

    .archive-main-section {
        padding: 40px 0 60px;
    }

    .archive-list-board {
        border-radius: 16px;
        padding: 20px 0;
        box-shadow: none;
    }

    .archive-list-board .card-inner {
        padding: 20px !important;
    }

    .archive-list-board .entry-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .archive-list-board .posted-on {
        font-size: 0.82rem;
        min-width: auto;
    }

    .archive-list-board .entry-title {
        font-size: 0.95rem;
        line-height: 1.6;
        width: 100%;
    }

    .archive-list-board .news-item-link {
        flex-direction: column;
        align-items: flex-start !important;
        padding: 1.5rem 20px !important;
        gap: 0.6rem;
    }

    .archive-list-board .news-meta {
        flex: none;
        width: 100%;
    }

    .archive-list-board .news-date {
        font-size: 0.82rem;
    }

    .archive-list-board .news-item-title {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .pagination-wrap {
        margin-top: 40px;
    }

    .pagination .page-numbers {
        width: 38px;
        height: 38px;
        font-size: 0.82rem;
    }

    .news-readmore-wrap {
        display: block;
        padding: 0 20px 1.5rem;
    }
}

.blog-flex-container {
    display: grid;
    gap: 50px;
    align-items: start;
}

/* Sidebar Positioning */
.blog-flex-container.is-sidebar-right {
    grid-template-columns: 7fr 3fr;
}

.blog-flex-container.is-sidebar-left {
    grid-template-columns: 3fr 7fr;
}

.is-sidebar-none .blog-flex-container {
    grid-template-columns: 1fr;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Post Grid / List */
.post-grid {
    display: grid;
    gap: 40px 30px;
}

/* Pagination: Refined Circles (〇) */
.pagination-wrap {
    margin-top: 80px;
}

.pagination .nav-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #ddd;
    color: #333;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background: #222;
    color: #fff;
    border-color: #222;
}

@media (max-width: 768px) {
    .archive-list-board {
        border-radius: 20px;
    }
    .archive-list-board .entry-header {
        gap: 15px;
    }
}

@media (max-width: 650px) {
    .archive-list-board .entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ============================================================
   No Results
   ============================================================ */
.no-results-wrap {
    text-align: center;
    padding: 6rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.no-results-icon {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.no-results-icon svg {
    width: 64px;
    height: 64px;
}

.no-results-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.no-results-text {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.no-results-home-link {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 2rem;
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.no-results-home-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

@media (max-width: 768px) {
    .no-results-wrap {
        padding: 3rem 1.5rem;
    }

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

    .no-results-title {
        font-size: 1.2rem;
    }

    .no-results-text {
        font-size: 0.85rem;
    }
}

.is-sidebar-none .entry-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 0;
    flex-shrink: 0;
}
.cat-pill {
    background: #eeeeee;
    padding: 5px 15px;
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #444;
    display: inline-block;
    min-width: 90px;
    text-align: center;
}

.is-sidebar-none .entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.is-sidebar-none .entry-title a:hover {
    color: var(--primary-color);
}

/* Article Card Styles */
.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition-smooth);
    height: 100%;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.12);
}

.article-card .post-thumbnail {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.category-tag {
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    color: var(--primary-color);
    padding: 6px 15px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 0 0 10px 0;
    z-index: 2;
    border: 1px solid rgba(0,0,0,0.1);
}

.article-card .post-content {
    padding: 25px;
}

.article-card .entry-meta {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-bottom: 0.8rem;
}

.article-card .entry-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.article-card .entry-summary {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

/* List View Override */
.article-card.is-list {
    display: flex;
    gap: 30px;
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    border-radius: 0;
    padding-bottom: 30px;
}

.article-card.is-list:hover {
    transform: none;
}

.article-card.is-list .post-thumbnail {
    flex: 0 0 300px;
    border-radius: 10px;
}

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

.nav-links .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.nav-links .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.nav-links .page-numbers:hover:not(.current) {
    background: rgba(0,0,0,0.05);
}

/* ------------------------------------------------------------
 * 16. Sidebar & Widgets
 * ------------------------------------------------------------ */
.widget-area {
    position: sticky;
    top: 100px;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important; /* Section-to-section gap forced here */
    min-height: auto !important;
}

.widget {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 0 !important; /* Remove top space of title */
    margin-bottom: 0.8rem !important;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.widget ul li a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.widget ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Search Widget */
.search-form {
    display: flex;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
}

.search-form input[type="search"] {
    flex: 1;
    border: none;
    padding: 12px 20px;
    outline: none;
}

.search-form input[type="submit"] {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
}

/* ------------------------------------------------------------
 * 17. Single Post Details
 * ------------------------------------------------------------ */

/* ── Single Hero（全幅） ── */
.single-hero {
    position: relative;
    width: 100%;
    min-height: 100px;
    display: flex;
    align-items: flex-end;
    background: var(--primary-color);
    background-image: var(--single-hero-bg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--single-hero-grad-start, rgba(0,0,0,0.72)) 0%,
        rgba(0, 0, 0, 0.2) 60%,
        var(--single-hero-grad-end, rgba(0,0,0,0.05)) 100%
    );
}

.single-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 0.5rem;
    padding-bottom: 0.4rem;
    width: 100%;
}

.single-hero-cats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}

.single-cat-badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.single-cat-badge:hover {
    background: rgba(255, 255, 255, 0.35);
}

.single-hero-title {
    font-size: clamp(1.5rem, 3.5vw, 2.6rem);
    line-height: 1.3;
    color: #fff;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.single-hero-meta {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-english);
    letter-spacing: 0.05em;
}

/* ── パンくずバー ── */
.single-breadcrumb-bar {
    background: #f5f6f4;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem 0;
}

.single-breadcrumb-bar .breadcrumb {
    font-size: 0.8rem;
    margin: 0;
}

.single-breadcrumb-bar .breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.single-breadcrumb-bar .breadcrumb li a {
    color: var(--primary-color);
    text-decoration: none;
}

.single-breadcrumb-bar .sep {
    color: rgba(0, 0, 0, 0.3);
}
.single-breadcrumb-footer {
    display: none;
}

/* ── ページ全体ラッパー ── */
.single-content-area {
    padding: var(--sp-section) 0;
}

.single-content-area .l-container {
    max-width: 1200px;
}

/* 1カラム時はコンテンツ幅を絞って中央揃え */
.is-sidebar-none .blog-main {
    max-width: 860px;
    margin: 0 auto;
}

/* ── Entry Header ── */
.single-post-article .entry-header {
    text-align: center;
    margin-bottom: 3rem;
}

.single-post-article .entry-cats {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.single-post-article .cat-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 4px 14px;
    border-radius: 50px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.single-post-article .cat-badge:hover {
    opacity: 0.75;
}

.single-post-article .entry-title {
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    line-height: 1.25;
    margin-bottom: 1.2rem;
    color: var(--text-main);
}

.single-post-article .entry-meta-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-sub);
}

.single-post-article .entry-date {
    font-family: var(--font-english);
    letter-spacing: 0.05em;
}

/* ── アイキャッチ ── */
.single-post-article .entry-thumbnail {
    margin-bottom: 3.5rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16 / 7;
}

.single-post-article .entry-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Article Box（角丸グレー囲み） ── */
.single-article-box {
    background: #f5f5f3;
    border-radius: 24px;
    padding: 3rem 3.5rem;
}

/* ── Entry Content ── */
.single-post-article .entry-content {
    font-size: 1.05rem;
    line-height: 2;
    color: #444;
}

.single-post-article .entry-content h2 {
    font-size: 1.5rem;
    margin: 3rem 0 1.2rem;
    padding: 0.8rem 1.2rem;
    background: rgba(13, 68, 17, 0.04);
    border-left: 5px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.single-post-article .entry-content h3 {
    font-size: 1.25rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(13, 68, 17, 0.15);
    color: var(--primary-color);
}

.single-post-article .entry-content h4 {
    font-size: 1.1rem;
    margin: 2rem 0 0.8rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-red);
}

.single-post-article .entry-content p {
    margin-bottom: 1.6rem;
}

.single-post-article .entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.8rem;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #555;
}

.single-post-article .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.single-post-article .entry-content ul,
.single-post-article .entry-content ol {
    margin: 1.2rem 0 1.6rem 1.5rem;
    line-height: 2;
}

/* ── タグ ── */
.single-post-article .entry-footer {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.single-post-article .entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.single-post-article .tag-item {
    display: inline-block;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid rgba(13, 68, 17, 0.3);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s;
}

.single-post-article .tag-item:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ── 一覧へ戻るボタン ── */
.post-back-wrap {
    margin-top: 3rem;
    text-align: center;
}

.post-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 2.2rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s;
    letter-spacing: 0.05em;
}

.post-back-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.back-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(-45deg);
    flex-shrink: 0;
}

/* ── 前後記事ナビ ── */
.single-post-nav {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.spn-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.spn-prev,
.spn-next {
    min-height: 90px;
}

.spn-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 1.4rem 1.6rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.25s;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.spn-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(13, 68, 17, 0.1);
    transform: translateY(-2px);
}

.spn-card--next {
    text-align: right;
}

.spn-dir {
    display: block;
    font-size: 0.72rem;
    font-family: var(--font-english);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary-color);
}

.spn-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ── シェア・フォローCTA ── */
.single-share-cta {
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: #f5f6f4;
    border-radius: 16px;
    text-align: center;
}

.share-cta-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--text-sub);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.share-cta-btns {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* アイコンのみ・円形ボタン共通 */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    flex-shrink: 0;
}

.share-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}

.share-btn--line    { background: #06c755; color: #fff; }
.share-btn--x       { background: #000;    color: #fff; }
.share-btn--insta   { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); color: #fff; cursor: pointer; border: none; }
.share-btn--fb      { background: #1877f2; color: #fff; }
.share-btn--threads { background: #000;    color: #fff; }
.share-btn--mail    { background: #6b7280; color: #fff; }

/* ── 関連記事 ── */
.single-related {
    margin-top: 5rem;
    padding-top: 3.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.related-heading {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
}

.related-heading-en {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.08em;
}

.related-heading-ja {
    font-size: 0.85rem;
    color: var(--text-sub);
    letter-spacing: 0.05em;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-card {
    display: block;
    text-decoration: none;
    color: var(--text-main);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.25s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.related-card-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eee;
}

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

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

.related-card-no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13,68,17,0.08), rgba(13,68,17,0.03));
}

.related-card-body {
    padding: 1.1rem 1.2rem;
}

.related-card-date {
    display: block;
    font-size: 0.75rem;
    font-family: var(--font-english);
    color: var(--text-sub);
    margin-bottom: 0.4rem;
}

.related-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .single-hero {
        min-height: 80px;
    }

    .single-hero-inner {
        padding-top: 0.4rem;
        padding-bottom: 0.3rem;
    }

    .single-hero-title {
        font-size: clamp(1.15rem, 5vw, 1.6rem);
    }

    .single-breadcrumb-bar {
        display: none;
    }
    .single-breadcrumb-footer {
        display: block;
    }
    .single-content-area .l-container {
        padding-inline: 10px;
    }
    .single-article-box {
        padding: 1.5rem 10px;
        border-radius: 16px;
    }
    .single-post-article .entry-thumbnail {
        aspect-ratio: 4 / 3;
        border-radius: 14px;
        margin-bottom: 2.5rem;
    }

    .spn-inner {
        grid-template-columns: 1fr;
    }

    .spn-card--next {
        text-align: left;
    }

    .single-post-article .entry-content h2 {
        font-size: 1.2rem;
    }

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

    .share-cta-btns {
        gap: 12px;
    }

    .share-btn {
        width: 42px;
        height: 42px;
    }
}

/* ------------------------------------------------------------
 * Consultation Page
 * ------------------------------------------------------------ */

/* Hero上書き */
/* ── 専門家連携セクション ── */
.experts-section {
    background: #fff;
    padding: 8rem 0 5rem;
    position: relative;
}

.experts-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 28%;
    height: 100%;
    background: linear-gradient(135deg, #e8f5ec 0%, #c8ecd4 100%);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.experts-container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.experts-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.experts-desc {
    font-size: 15px;
    line-height: 2;
    color: #555;
    margin-bottom: 3rem;
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.experts-ghost {
    position: absolute;
    right: 50px;
    top: 0;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(180, 220, 190, 0.55);
    pointer-events: none;
    user-select: none;
    line-height: 1;
    z-index: 100;
}

.experts-section .expert-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.expert-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.experts-mobile-image-wrap {
    display: none;
}

.experts-mobile-image {
    display: block;
    width: 100%;
    height: auto;
}

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

    .experts-section.has-mobile-image::after {
        display: none;
    }

    .experts-section.has-mobile-image .experts-grid {
        display: none;
    }

    .experts-section.has-mobile-image .experts-mobile-image-wrap {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 2rem;
    }

    .experts-section.has-mobile-image .experts-mobile-image {
        width: min(100%, 420px);
        margin: 0 auto;
        object-fit: contain;
    }
}

/* ── 大切にしていることセクション ── */
.our-values-section {
    background: #fff;
    overflow: hidden;
}

.our-values-inner {
    display: flex;
    width: 100%;
    min-height: 350px;
}

.our-values-left {
    flex: 0 0 50%;
    padding: 3rem 3rem 3rem max(2rem, calc((100vw - 1200px) / 2 + 2rem));
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
    z-index: 2;
}

.our-values-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 210px 120px 0 0;
    border-color: var(--primary-color) transparent transparent transparent;
}

.our-values-right {
    flex: 1;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-color: #d6e8d8;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
}

.our-values-sub {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
}

.our-values-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 1.8rem;
    letter-spacing: 0.03em;
}

.our-values-body p {
    font-size: 15px;
    line-height: 2;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

@media (min-width: 901px) {
    .our-values-left {
        padding-right: clamp(5rem, 8vw, 8rem);
    }

    .our-values-body p {
        max-width: 620px;
    }
}

@media (max-width: 900px) {
    .our-values-inner {
        flex-direction: column;
    }
    .our-values-left {
        flex: none;
        padding: 3rem 2rem;
        clip-path: none;
    }
    .our-values-left::before {
        display: none;
    }
    .our-values-right {
        flex: none;
        height: 260px;
        clip-path: none;
    }
}

/* ── 相談ページ ヒーロー ── */
.consultation-page-hero {
    display: flex;
    min-height: 420px;
    background: #fff;
    overflow: hidden;
}

.consultation-page-hero-left {
    flex: 0 0 58%;
    padding: 4rem 4rem 4rem clamp(2rem, 14vw, 17rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    position: relative;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.consultation-page-hero-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 280px 120px 0 0;
    border-color: var(--primary-color) transparent transparent transparent;
}

.consultation-page-hero-right {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-color: #d6e8d8;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
}

.consultation-page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.5;
    margin-bottom: 1.6rem;
    letter-spacing: 0.03em;
}

.consultation-page-hero-body {
    margin-bottom: 2rem;
}

.consultation-page-hero-body p {
    font-size: 17px;
    line-height: 2;
    color: #444;
    margin-bottom: 0.6rem;
}

.consultation-page-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(180deg, #29b765 0%, #0a5c2a 100%);
    border: none;
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
    transition: opacity 0.2s;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(10,92,42,0.35);
}

.consultation-page-hero-btn::after {
    content: '›';
    font-size: 1.3rem;
    line-height: 1;
}

.consultation-page-hero-btn:hover {
    opacity: 0.85;
    color: #fff;
}

@media (min-width: 901px) {
    .consultation-page-hero-title {
        white-space: nowrap;
    }
}

@media (max-width: 900px) {
    .consultation-page-hero {
        flex-direction: column;
    }
    .consultation-page-hero-left {
        flex: none;
        padding: 3rem 2rem;
        clip-path: none;
    }
    .consultation-page-hero-left::before {
        display: none;
    }
    .consultation-page-hero-right {
        flex: none;
        height: 260px;
        clip-path: none;
    }
}

/* Page breadcrumb (footer above) */
.page-breadcrumb {
    background: #f5f5f0;
    border-top: 1px solid #e8e8e2;
    padding: 0.75rem 0;
}
.page-breadcrumb .l-container {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #999;
}
.page-breadcrumb a {
    color: #777;
    text-decoration: none;
    transition: color 0.2s;
}
.page-breadcrumb a:hover {
    color: #22ac6c;
}
/* ── プライバシーポリシー ── */
.privacy-section {
    padding: 5rem 0;
    background: #fff;
}
.privacy-inner {
    max-width: 820px;
    margin: 0 auto;
}
.privacy-lead {
    font-size: 1rem;
    line-height: 2;
    color: #444;
    margin-bottom: 3rem;
}
.privacy-block {
    margin-bottom: 2.5rem;
}
.privacy-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a3a2a;
    padding-left: 1rem;
    border-left: 4px solid #22ac6c;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.privacy-block p {
    font-size: 1rem;
    line-height: 2;
    color: #444;
}
.privacy-list {
    margin: 1rem 0 0 1.5rem;
    line-height: 2;
    color: #444;
    font-size: 1rem;
}
.privacy-list li {
    position: relative;
    padding-left: 0.5rem;
}
.privacy-list li::marker {
    color: #22ac6c;
}
.privacy-contact-card {
    margin-top: 3rem;
    background: #f5f5f3;
    border-radius: 16px;
    padding: 2rem 2.5rem;
}
.privacy-contact-label {
    font-size: 1rem;
    font-weight: 700;
    color: #1a3a2a;
    margin-bottom: 0.8rem;
}
.privacy-contact-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}
.privacy-contact-card a {
    color: #22ac6c;
    font-weight: 700;
    text-decoration: none;
}
.privacy-contact-card a:hover {
    text-decoration: underline;
}
.privacy-contact-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0d8;
}
@media (max-width: 768px) {
    .privacy-section {
        padding: 3rem 0;
    }
    .privacy-inner {
        padding: 0 0.5rem;
    }
    .privacy-contact-card {
        padding: 1.5rem 1.25rem;
    }
}

.page-breadcrumb-sep {
    color: #ccc;
}


/* お悩みカードのアイコンサムネイル */
.consult-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px 12px 0 0;
}
.consult-thumb--inheritance { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.consult-thumb--empty       { background: linear-gradient(135deg, #f3e5f5, #e1bee7); }
.consult-thumb--land        { background: linear-gradient(135deg, #e8f5e9, #a5d6a7); }

.consult-icon {
    font-size: 3rem;
    line-height: 1;
}

.problem-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* 専門家連携セクション（reason layout） */
.reason-section {
    background: #fff;
    padding: var(--sp-section) 0;
    position: relative;
    overflow: hidden;
}

/* ゴースト文字あしらい（CTA下端〜reasonセクション上端にまたがる） */
.reason-section::before {
    display: none;
}

.reason-header {
    margin-bottom: 4rem;
}

.reason-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.reason-heading-accent {
    color: var(--primary-color);
}

.reason-divider {
    display: flex;
    gap: 0;
    align-items: center;
}

.reason-divider::before {
    content: '';
    width: 40px;
    height: 3px;
    background: #1a5c2a;
}

.reason-divider::after {
    content: '';
    width: 60px;
    height: 3px;
    background: #a01518;
}

/* アイテム */
.reason-item {
    display: grid;
    grid-template-columns: 45fr 50fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.reason-item:last-child {
    margin-bottom: 0;
}

.reason-num {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reason-num::after {
    content: '';
    flex: 1;
    height: 4px;
    background: radial-gradient(circle, rgba(34, 172, 108, 0.45) 1.5px, transparent 1.5px);
    background-size: 10px 4px;
}

.reason-num-zero,
.reason-num-digit {
    color: #a01518;
}

.reason-item-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a5c2a;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.reason-item-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: #1e293b;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.reason-item-accent {
    color: var(--primary-color);
}

.reason-item-text {
    font-size: 1rem;
    line-height: 1.9;
    color: #555;
}

/* 右側ビジュアル */
.reason-item-visual {
    background: #f5f5f5;
    border-radius: 16px 80px 16px 16px;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    box-shadow: 10px 10px 0 #1a5c2a;
}

.reason-item-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .reason-item-visual {
        box-shadow: 6px 6px 0 #1a5c2a;
    }
}

@media (max-width: 768px) {
    .reason-item {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        margin-bottom: 3rem;
    }

    .reason-item-visual {
        order: -1;
    }
}

/* 旧スタイル（不使用） */
.consult-expert-section {
    background: #f8faf7;
    padding: var(--sp-section) 0;
}

/* リード */
.expert-lead {
    margin-bottom: 3.5rem;
}

.expert-lead-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.expert-lead-text {
    font-size: 1rem;
    line-height: 2;
    color: var(--text-main);
}

/* グリッド */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

/* 中央カードをずらしてスタガー効果 */
.expert-card:nth-child(2) {
    margin-top: 2.5rem;
}

/* カード */
.expert-card {
    background: #fff;
    border-radius: 4px;
    overflow: visible;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* 画像エリア（写真差し替え可） */
.expert-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #c8ddd0;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

.expert-card-img--02 {
    background: #ddc8c8;
}

.expert-card-img--03 {
    background: #c8cedd;
}

/* 番号 */
.expert-card-num {
    position: absolute;
    top: 10px;
    right: 14px;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255,255,255,0.55);
    line-height: 1;
    letter-spacing: -0.02em;
    font-style: italic;
}

/* タイトルバー：画像に重なる帯 */
.expert-card-title-bar {
    position: relative;
    z-index: 2;
    margin-top: -1.8rem;
    padding: 0.75em 1.2em;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.expert-card-title-bar--green {
    background: #1a5c2a;
}

.expert-card-title-bar--red {
    background: #a01518;
}

/* 本文エリア */
.expert-card-body {
    padding: 1.4rem 1.4rem 2rem;
    background: #fff;
    border-radius: 0 0 4px 4px;
}

.expert-card-sub {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.expert-card-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-sub);
}

@media (max-width: 768px) {
    .expert-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .expert-card:nth-child(2) {
        margin-top: 0;
    }
}

/* ============================================================
   Case Slider Section
   ============================================================ */

.case-slider-section {
    padding: var(--sp-section) 0;
    background: #fff;
    position: relative;
}

.case-slider-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 28%;
    height: 100%;
    background: linear-gradient(225deg, #e8f5ec 0%, #c8ecd4 100%);
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
    z-index: 0;
    pointer-events: none;
}

.case-slider-ghost {
    position: absolute;
    left: 50px;
    top: 0;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(180, 220, 190, 0.55);
    pointer-events: none;
    user-select: none;
    line-height: 1;
    z-index: 100;
}

.case-swiper-outer {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0 2rem;
}

.case-swiper-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    max-width: 100%;
    margin: 0 auto 3.5rem;
    padding: 0 1rem;
}

.case-swiper {
    flex: 1;
    min-width: 0;
    overflow: visible !important;
}

/* カード：アクティブは濃い緑枠、非アクティブはグレー枠 */
.case-card {
    background: #fff;
    border-radius: 24px;
    border: 2px solid #ddd;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    padding: 2rem 2.2rem 2rem;
}

.swiper-slide-active .case-card {
    border-color: #1a5c2a;
}

.swiper-slide:not(.swiper-slide-active) .case-card {
    opacity: 0.5;
}

/* カード上部：アバター左、タグ＋タイトル右 */
.case-card-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.case-card-avatar {
    flex-shrink: 0;
}

.case-card-head-right {
    flex: 1;
    min-width: 0;
}

.case-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.case-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary-color);
    border: none;
    border-radius: 4px;
    padding: 3px 12px;
    letter-spacing: 0.03em;
}

.case-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.case-card-title::before {
    content: '';
    flex-shrink: 0;
    width: 22px;
    height: 20px;
    background: var(--primary-color);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M2 2h20v13H8l-4 4v-4H2z'/%3E%3Ccircle cx='8' cy='8.5' r='1.2'/%3E%3Ccircle cx='12' cy='8.5' r='1.2'/%3E%3Ccircle cx='16' cy='8.5' r='1.2'/%3E%3C/svg%3E") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M2 2h20v13H8l-4 4v-4H2z'/%3E%3Ccircle cx='8' cy='8.5' r='1.2'/%3E%3Ccircle cx='12' cy='8.5' r='1.2'/%3E%3Ccircle cx='16' cy='8.5' r='1.2'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* カード本文 */
.case-card-body {
    padding: 0;
}

/* 状況/解決ポイントのボックス */
.case-box,
.case-card-box {
    display: grid;
    grid-template-columns: 8.5em 1fr;
    gap: 0;
    padding: 1.4rem 1.6rem;
    font-size: 1.125rem;
    line-height: 1.8;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #f0f0f0;
}

.case-box--accent,
.case-card-box--accent {
    background: #fce8e6;
    border-color: #f3d5d1;
}

/* 下矢印 */
.case-card-arrow-down {
    text-align: center;
    padding: 0.5rem 0;
    line-height: 1;
}

.case-card-arrow-down::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 16px solid #e8a09a;
}

/* ラベル（縦線区切り） */
.case-card-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #555;
    padding-right: 1.2em;
    border-right: 1px solid #ddd;
    display: flex;
    align-items: center;
}

.case-box--accent .case-card-label,
.case-card-box--accent .case-card-label {
    color: var(--primary-color);
    border-right-color: rgba(0,0,0,0.1);
}

.case-card-content {
    color: #333;
    padding-left: 1.2em;
}

.case-highlight {
    color: #c0392b;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ページネーション：セクション下部 */
.case-swiper-pagination {
    text-align: center;
    margin-top: 2rem;
    position: relative;
}

.case-swiper-pagination .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
    width: 10px;
    height: 10px;
    margin: 0 5px;
}

.case-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* 下部ナビゲーション（PC用） */
.case-swiper-bottom-nav {
    display: none;
}

@media (min-width: 769px) {
    .case-swiper-bottom-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        margin-top: 1.5rem;
    }
}

.case-swiper-btn-bottom {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.case-swiper-btn-bottom:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ナビゲーションボタン */
.case-swiper-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s;
}

.case-swiper-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .case-swiper-outer {
        padding: 0;
    }

    .case-swiper-wrap {
        display: block;
        padding: 0 10px;
        margin-bottom: 2rem;
    }

    .case-swiper-btn {
        display: none;
    }

    .case-swiper {
        overflow: visible !important;
    }

    .case-swiper .swiper-wrapper {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

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

    .swiper-slide:not(.swiper-slide-active) .case-card {
        opacity: 1 !important;
    }

    .case-card {
        padding: 1rem 0.8rem;
        border-radius: 16px;
        border-color: #1a5c2a;
        background: #fff;
        box-shadow: none;
        opacity: 1 !important;
    }

    .case-card-head {
        gap: 0.7rem;
        margin-bottom: 0.6rem;
    }

    .case-card-avatar svg {
        width: 40px;
        height: 40px;
    }

    .case-card-title {
        font-size: 0.9rem;
    }

    .case-swiper-pagination {
        display: none;
    }

    .case-box,
    .case-card-box {
        grid-template-columns: 1fr;
        gap: 0.2rem;
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
        line-height: 1.6;
        background-color: #eee !important;
        border: 2px solid #ccc !important;
        border-radius: 12px;
        position: relative;
        z-index: 2;
    }

    .case-box.case-box--accent,
    .case-card-box.case-card-box--accent {
        background-color: #fce8e6 !important;
        border-color: #e8b4af !important;
    }

    .case-card-label {
        border-right: none;
        border-bottom: none;
        padding-right: 0;
        font-size: 0.72rem;
        color: #888;
        margin-bottom: 0;
    }

    .case-box--accent .case-card-label,
    .case-card-box--accent .case-card-label {
        color: var(--primary-color);
    }

    .case-card-content {
        padding-left: 0;
        font-size: 0.82rem;
    }

    .case-card-arrow-down {
        padding: 0.15rem 0;
    }

    .case-card-arrow-down::before {
        border-left-width: 10px;
        border-right-width: 10px;
        border-top-width: 10px;
    }

    .case-box--accent,
    .case-card-box--accent {
        padding: 0.7rem 0.8rem;
    }

    .case-swiper-btn {
        width: 32px;
        height: 32px;
        background: #1a5c2a;
        color: #fff;
        border-color: #1a5c2a;
    }

    .case-swiper-btn:hover {
        background: #155221;
        border-color: #155221;
    }

    .case-swiper-btn svg {
        width: 14px;
        height: 14px;
    }

    .swiper-slide:not(.swiper-slide-active) .case-card {
        opacity: 0.4;
    }

    .sale-purchase-case-slider,
    .consultation-case-slider,
    .fp-consulting-case-slider {
        padding-top: 4.5rem;
        overflow: hidden;
    }

    .sale-purchase-case-slider::after,
    .consultation-case-slider::after,
    .fp-consulting-case-slider::after {
        display: block;
        width: 54vw;
        height: 10.5rem;
        opacity: 0.72;
        clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
    }

    .sale-purchase-case-slider .case-slider-ghost,
    .consultation-case-slider .case-slider-ghost,
    .fp-consulting-case-slider .case-slider-ghost {
        display: block;
        top: 0.9rem;
        left: 0.9rem;
        transform: none;
        z-index: 0;
        font-size: clamp(3.8rem, 19vw, 5.8rem);
        -webkit-text-stroke: 1.2px rgba(13, 68, 17, 0.13);
    }

    .sale-purchase-case-slider > .l-container,
    .sale-purchase-case-slider .use-case-header,
    .sale-purchase-case-slider .case-swiper-outer,
    .consultation-case-slider > .l-container,
    .consultation-case-slider .use-case-header,
    .consultation-case-slider .case-swiper-outer,
    .fp-consulting-case-slider > .l-container,
    .fp-consulting-case-slider .use-case-header,
    .fp-consulting-case-slider .case-swiper-outer {
        position: relative;
        z-index: 2;
    }
}

/* ご相談事例セクション（旧） */
.consult-case-section {
    padding: var(--sp-section) 0;
    background: #fff;
}

.consult-case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.consult-case-card {
    background: #f8faf7;
    border-radius: 20px;
    padding: 2.5rem;
    border-left: 4px solid var(--primary-color);
}

.consult-case-card--placeholder {
    border-left-color: #ccc;
    background: #fafafa;
}

.consult-case-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.consult-case-card--placeholder .consult-case-label {
    color: #999;
}

.consult-case-voice {
    font-size: 1rem;
    line-height: 2;
    color: var(--text-main);
    margin: 0 0 1rem;
    font-style: normal;
    border: none;
    padding: 0;
}

.consult-case-placeholder-text {
    font-size: 0.9rem;
    color: #999;
    line-height: 1.8;
}

.consult-case-notice {
    font-size: 0.72rem;
    color: #aaa;
    margin-top: 1rem;
}

.consult-cta-wrap {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.consult-cta-lead {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 2;
    color: var(--text-main);
    margin-bottom: 2.5rem;
}

/* ============================================================
   事例セクション下部CTA
   ============================================================ */
/* ============================================================
   事例下CTAセクション
   ============================================================ */
.case-cta-section {
    background: #7bc67e var(--cta-bg, none) center / cover no-repeat;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.case-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    pointer-events: none;
    z-index: 0;
}

.case-cta-section .l-container {
    position: relative;
    z-index: 1;
}

.case-cta-eng {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.case-cta-eng .p-red {
    color: rgba(160, 21, 24, 0.6);
}

.case-cta-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.case-cta-accent {
    color: var(--primary-color);
}

.case-cta-card {
    background: #fff;
    border-radius: 80px;
    padding: 3.5rem 3.5rem;
    max-width: 780px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.case-cta-lead {
    font-size: 15px;
    line-height: 2;
    color: #1a1a1a;
    font-weight: 500;
    margin-bottom: 2rem;
}

.case-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    padding: 1.2em 3em;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(26, 92, 42, 0.3);
}

.case-cta-btn:hover {
    background: #145a22;
    color: #fff;
    box-shadow: 0 6px 28px rgba(26, 92, 42, 0.4);
    transform: translateY(-2px);
}

.case-cta-btn svg {
    flex-shrink: 0;
}

.case-cta-note {
    font-size: 0.82rem;
    line-height: 1.9;
    color: #888;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .case-cta-section {
        padding: 2rem 0;
    }

    .case-cta-eng {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .case-cta-heading {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .case-cta-section .l-container {
        padding-inline: 0;
    }

    .case-cta-card {
        margin: 0 10px;
        padding: 1.2rem 1rem;
        border-radius: 20px;
    }

    .case-cta-lead {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    .case-cta-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.9em 1.5em;
    }

    .case-cta-note {
        font-size: 0.68rem;
        margin-top: 1rem;
        line-height: 1.7;
    }
}

/* ============================================================
   お悩みセクション リード文
   ============================================================ */
.worries-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.worries-card {
    border: 1px solid #d8e8d8;
    border-radius: 4px;
    padding: 2.5rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
}

.worries-card-icon {
    width: 88px;
    height: 88px;
    color: var(--primary-color);
    margin-bottom: -1rem;
}

.worries-card-icon svg {
    width: 100%;
    height: 100%;
}

.worries-card-text {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-main);
    font-weight: 500;
}

@media (max-width: 768px) {
    .worries-card-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
        max-width: 100%;
    }
    .worries-card {
        padding: 1.5rem 1rem;
    }
}

.pc-only {
    display: inline;
}

@media (max-width: 768px) {
    .pc-only {
        display: none;
    }

    .consult-worries-lead p {
        font-size: 0.85rem;
        line-height: 2;
        text-align: left;
    }
}

/* ============================================================
   オンライン無料査定セクション
   ============================================================ */
.sp-assessment-section {
    padding: var(--sp-section) 0;
    background: #f0ebe4;
}

.sp-assessment-card {
    background: #fff;
    border-radius: 24px;
    padding: 3rem;
    max-width: 860px;
    margin: 2.5rem auto 0;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
    border: 2px solid rgba(26, 92, 42, 0.08);
}

.sp-assessment-text {
    font-size: 1rem;
    line-height: 2.2;
    color: #555;
    margin-bottom: 1.5rem;
}

.sp-assessment-note {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
}

.sp-assessment-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background: #a01518;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.1em 3em;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(160, 21, 24, 0.25);
}

.sp-assessment-btn:hover {
    background: #8a1215;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(160, 21, 24, 0.35);
}

.sp-assessment-btn-arrow {
    font-size: 1.2em;
    transition: transform 0.3s;
}

.sp-assessment-btn:hover .sp-assessment-btn-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .sp-assessment-card {
        padding: 2rem 1.2rem;
        margin: 1.5rem auto 0;
        border-radius: 20px;
    }

    .sp-assessment-text {
        font-size: 0.85rem;
        line-height: 2;
        text-align: left;
    }

    .sp-assessment-note {
        font-size: 0.82rem;
    }

    .sp-assessment-btn {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 1em 2em;
    }
}

/* ============================================================
   売却・購入の流れセクション（Bデザイン＋角丸＋ゴーストFLOW）
   ============================================================ */
/* ── 売却・購入 流れセクション（expertsデザイン流用） ── */
.sp-flow-experts-section {
    background: #fff;
    padding: 8rem 0 5rem;
    position: relative;
}

.sp-flow-experts-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 28%;
    height: 50%;
    background: linear-gradient(135deg, #e8f5ec 0%, #c8ecd4 100%);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
    pointer-events: none;
}

.sp-flow-experts-ghost {
    position: absolute;
    right: 50px;
    top: 0;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(180, 220, 190, 0.55);
    pointer-events: none;
    user-select: none;
    line-height: 1;
    z-index: 100;
}

.sp-flow-experts-container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.sp-flow-experts-container .sp-flow-list,
.sp-flow-experts-container .sp-flow-card-title,
.sp-flow-experts-container .sp-flow-card-text {
    text-align: left;
}

.sp-flow-experts-container .sp-flow-list {
    padding-left: 4rem;
    max-width: 720px;
}

.sp-flow-experts-container .sp-flow-card {
    gap: 0;
}

.sp-flow-experts-container .sp-flow-card-title {
    margin-bottom: 0.15rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .sp-flow-experts-section {
        padding: 4rem 0 3rem;
    }
    .sp-flow-experts-ghost {
        display: none;
    }
    .experts-ghost,
    .case-slider-ghost {
        -webkit-text-stroke: 1.5px rgba(13, 68, 17, 0.12);
        font-size: clamp(3rem, 16vw, 5rem);
        transform: translateY(0);
        top: 1rem;
    }
    .experts-section,
    .case-slider-section {
        overflow-x: hidden;
    }
    .sp-flow-experts-section::after {
        display: none;
    }
    .sp-flow-experts-container .sp-flow-list {
        padding-left: 0;
        max-width: 100%;
    }
}

/* ── FP相談 こんなお悩みセクション ── */
.fp-problems-section {
    padding: 6rem 0;
    background: #fff;
}
.fp-problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
.fp-problems-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 2rem 1.5rem 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.fp-problems-num {
    position: absolute;
    top: -1px;
    left: -1px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 6px 0 6px 0;
    letter-spacing: 0.03em;
    line-height: 1.6;
}
.fp-problems-num em {
    font-style: normal;
    font-size: 1.1em;
    margin-left: 0.1em;
}
.fp-problems-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    text-align: center;
    margin: 0;
}
.fp-problems-text strong {
    color: var(--primary-color);
}
@media (max-width: 768px) {
    .fp-problems-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .fp-problems-card:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: 100%;
        margin: 0;
    }
}

/* ── 売却・購入 イントロセクション ── */
.sp-intro-section {
    padding: 5rem 0;
    background: #fff;
}

.sp-intro-inner {
    display: flex;
    align-items: stretch;
    gap: 5rem;
}

.sp-intro-left {
    flex: 0 0 calc(52% - 50px);
}

.sp-intro-img-wrap {
    position: relative;
    padding-top: 2.5rem;
    padding-left: 1rem;
    height: 100%;
}

.sp-intro-img-deco {
    position: absolute;
    top: 0;
    left: -1rem;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #7bd49a 0%, #29b765 100%);
    z-index: 0;
}

.sp-intro-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 2px;
}

.sp-intro-img-placeholder {
    width: 100%;
    height: 100%;
    background: #e8f5ec;
}

.sp-intro-right {
    flex: 1;
    position: relative;
    min-height: 200px;
}

.sp-intro-ghost {
    position: absolute;
    top: -0.4em;
    right: -0.5rem;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(180, 220, 190, 0.55);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.sp-intro-num {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
}

.sp-intro-num-line {
    display: inline-block;
    width: 28px;
    height: 1.5px;
    background: #888;
}

.sp-intro-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    position: relative;
}

.sp-intro-text {
    font-size: 15px;
    line-height: 2;
    color: #555;
    margin-bottom: 2.5rem;
    position: relative;
}

.sp-intro-btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    letter-spacing: 0.05em;
    transition: background 0.2s;
}

.sp-intro-btn:hover {
    background: #1a5c2a;
    color: #fff;
}

@media (max-width: 900px) {
    .sp-intro-inner {
        flex-direction: column;
        gap: 2.5rem;
    }
    .sp-intro-left {
        flex: none;
        width: 100%;
    }
    .sp-intro-ghost {
        display: none;
    }
}

.sp-flow-section {
    padding: var(--sp-section) 0;
    background: #f5f7f5;
    position: relative;
    overflow: hidden;
}

/* ゴーストテキスト */
.sp-flow-ghost {
    position: absolute;
    top: 0;
    right: 1.5rem;
    transform: translateY(-30%);
    font-family: var(--font-heading);
    font-size: clamp(4rem, 14vw, 12rem);
    font-weight: 900;
    color: rgba(26, 92, 42, 0.05);
    letter-spacing: -0.02em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    z-index: 0;
}

.sp-flow-section .l-container {
    position: relative;
    z-index: 1;
}

.sp-flow-intro {
    font-size: 1rem;
    line-height: 2;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

/* タブ */
.sp-flow-tabs {
    display: flex;
    gap: 0.6rem;
    max-width: 820px;
    margin: 0 auto 2rem;
}

.sp-flow-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.85em 1em;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    border: 2px solid rgba(26,92,42,0.2);
    border-radius: 100px;
    background: #fff;
    color: #888;
    cursor: pointer;
    transition: all 0.25s;
}

.sp-flow-tab.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.sp-flow-tab:hover:not(.is-active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* パネル */
.sp-flow-panel {
    display: none;
    max-width: 820px;
    margin: 0 auto;
}

.sp-flow-panel.is-active {
    display: block;
}

/* フローリスト */
.sp-flow-list {
    display: flex;
    flex-direction: column;
}

/* フローアイテム */
.sp-flow-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0;
    align-items: center;
}

/* 丸番号 */
.sp-flow-num {
    width: 52px;
    height: 52px;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(26,92,42,0.25);
}

/* カード */
.sp-flow-card {
    background: #fff;
    border-radius: 16px;
    padding: 0.9rem 1.4rem;
    border: 1px solid rgba(26,92,42,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sp-flow-card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.sp-flow-card-text {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

/* 矢印 */
.sp-flow-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.2rem 0;
    color: var(--primary-color);
    grid-column: 1 / -1;
    padding-left: 32px;
}

@media (max-width: 768px) {
    .sp-flow-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .sp-flow-tab {
        font-size: 0.88rem;
        padding: 0.75em 1em;
    }

    .sp-flow-intro {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .sp-flow-item {
        grid-template-columns: 52px 1fr;
    }

    .sp-flow-num {
        width: 40px;
        height: 40px;
        font-size: 0.88rem;
    }

    .sp-flow-card {
        padding: 0.8rem 1rem;
        border-radius: 12px;
        gap: 0.2rem;
    }

    .sp-flow-card-title {
        font-size: 0.9rem;
    }

    .sp-flow-card-text {
        font-size: 15px;
        line-height: 1.7;
    }

    .sp-flow-arrow {
        padding-left: 26px;
    }
}

@media (max-width: 768px) {
    .consult-expert-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .consult-case-grid {
        grid-template-columns: 1fr;
    }

    .consult-expert-card {
        padding: 2rem 1.5rem;
    }

    .consult-case-card {
        padding: 2rem 1.5rem;
    }
}

/* ------------------------------------------------------------
 * Home CTA Section
 * ------------------------------------------------------------ */
.home-cta-section {
    padding: 0;
    margin: 0;
}

.home-cta-inner {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    width: 100%;
}

.home-cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.home-cta-content {
    position: relative;
    z-index: 2;
    padding: 5rem 4rem;
    text-align: center;
    color: #fff;
}

.home-cta-heading {
    font-size: clamp(1.3rem, 2.8vw, 2rem);
    font-weight: 700;
    line-height: 2;
    margin-bottom: 2rem;
}

.home-cta-heading span {
    display: inline;
    background: var(--primary-color);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0.1em 0.6em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.home-cta-heading .home-cta-heading-line2 {
    display: inline;
}

.home-cta-text {
    font-size: clamp(0.88rem, 1.4vw, 1rem);
    line-height: 2;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.home-cta-btns {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.home-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
    letter-spacing: 0.05em;
}

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

.home-cta-btn--primary:hover {
    background: var(--primary-color);
    color: #fff;
}

.home-cta-btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.home-cta-btn--outline:hover {
    background: #b04535;
    color: #fff;
    border-color: #b04535;
}

@media (max-width: 768px) {
    .home-cta-section {
        padding: 0;
    }

    .home-cta-content {
        padding: 3rem 1.5rem;
    }

    .home-cta-heading {
        font-size: 0.9rem;
        text-align: center;
    }

    .home-cta-text {
        font-size: 0.88rem;
        line-height: 1.9;
        text-align: center;
    }

    .home-cta-btns {
        flex-direction: column;
        align-items: center;
    }

    .home-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ------------------------------------------------------------
 * FV Scroll Indicator
 * ------------------------------------------------------------ */
.fv-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.fv-scroll-text {
    font-family: var(--font-english);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.95);
    padding-top: 10px;
}

.fv-scroll-line {
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,0));
    animation: fv-scroll-drop 1.8s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes fv-scroll-drop {
    0%   { transform: scaleY(0); opacity: 1; transform-origin: top center; }
    50%  { transform: scaleY(1); opacity: 1; transform-origin: top center; }
    100% { transform: scaleY(1); opacity: 0; transform-origin: bottom center; }
}

@media (max-width: 768px) {
    .fv-scroll-indicator {
        bottom: 1.5rem;
    }

    .fv-scroll-text {
        color: rgba(13, 68, 17, 0.85);
    }

    .fv-scroll-line {
        height: 44px;
        background: linear-gradient(to bottom, rgba(13, 68, 17, 0.85), rgba(13, 68, 17, 0));
    }
}

/* ------------------------------------------------------------
 * 18. Floating CTA Item Styles (Restored)
 * ------------------------------------------------------------ */
.floating-cta-item {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem 1.2rem;
    min-width: 52px;
    background: linear-gradient(180deg, #7dd87f 0%, #0d4411 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    writing-mode: vertical-rl;
    letter-spacing: 0.12em;
    border-radius: 0;
    box-shadow: -3px 4px 16px rgba(0, 0, 0, 0.18);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-cta-item:hover {
    background: linear-gradient(180deg, #0d4411 0%, #7dd87f 100%);
    color: #fff;
    box-shadow: -4px 6px 20px rgba(0, 0, 0, 0.25);
}

.floating-cta-item .cta-text {
    display: block;
}

/* Mobile Adjustments for Floating CTA */
@media (max-width: 768px) {
    .floating-cta-item {
        padding: 1rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 0;
    }
}

/* ============================================================
   Worries CTA Section
   ============================================================ */

.worries-cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a6b22 60%, #4ab8d8 100%);
    padding: 5rem 0;
    position: relative;
    overflow: visible;
}

.worries-cta-section::after {
    content: 'SUPPORT';
    position: absolute;
    bottom: 0;
    right: 1.5rem;
    transform: translateY(70%);
    font-family: var(--font-heading);
    font-size: clamp(4rem, 14vw, 12rem);
    font-weight: 900;
    color: rgba(26, 92, 42, 0.06);
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: -0.02em;
    z-index: 1;
}

/* C: カードに柔らかいボーダー・背景あしらい */
.worries-cta-card {
    background: #fff;
    border-radius: 28px;
    padding: 3.5rem 3rem;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    border: 2px solid rgba(26, 92, 42, 0.12);
    position: relative;
    overflow: hidden;
}

.worries-cta-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26,92,42,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.worries-cta-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(160,21,24,0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* A: 吹き出し風サブテキスト */
.worries-cta-sub {
    font-size: 0.85rem;
    line-height: 2;
    color: #777;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.worries-cta-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.worries-cta-accent {
    color: var(--primary-color);
}

.worries-cta-text {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

/* B + D: ボタンにアイコン・矢印、大きく */
.worries-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.1em 3em;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(26, 92, 42, 0.3);
    position: relative;
    z-index: 1;
}

.worries-cta-btn:hover {
    background: #145a22;
    color: #fff;
    box-shadow: 0 6px 24px rgba(26, 92, 42, 0.4);
    transform: translateY(-2px);
}

.worries-cta-btn-icon {
    display: inline-flex;
    align-items: center;
}

.worries-cta-btn-arrow {
    font-size: 1.2em;
    transition: transform 0.3s;
}

.worries-cta-btn:hover .worries-cta-btn-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .worries-cta-section {
        padding: 2.5rem 0;
    }

    .worries-cta-section .l-container {
        padding-inline: 0;
    }

    .worries-cta-card {
        margin: 0 10px;
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }

    .worries-cta-sub {
        font-size: 0.68rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
    }

    .worries-cta-heading {
        font-size: 1.15rem;
        margin-bottom: 0.6rem;
    }

    .worries-cta-text {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }

    .worries-cta-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.9em 1.5em;
    }

    .worries-cta-section::after {
        transform: translateY(60%);
    }
}

/* ============================================================
   中間CTA（シンプル版）
   ============================================================ */
.mid-cta-section {
    background: linear-gradient(180deg, #29b765 0%, #0a5c2a 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mid-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.mid-cta-eng {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    color: rgba(255,255,255,0.45);
    margin-bottom: 0.6rem;
}

.mid-cta-eng .p-red {
    color: rgba(255, 180, 180, 0.7);
}

.mid-cta-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.mid-cta-accent {
    position: relative;
    display: inline-block;
}

.mid-cta-accent::after {
    display: none;
}

.mid-cta-text {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.mid-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background: #fff;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.9em 2.5em;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.mid-cta-btn:hover {
    background: rgba(255,255,255,0.9);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0,0,0,0.2);
}

.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .mid-cta-section {
        padding: 2.5rem 0;
    }

    .mid-cta-heading {
        font-size: 1.35rem;
    }

    .mid-cta-text {
        font-size: 0.85rem;
    }

    .mid-cta-btn {
        font-size: 0.95rem;
        padding: 0.85em 2em;
    }

    .sp-only {
        display: inline;
    }
}

/* ============================================================
   Consultation Worries List
   ============================================================ */

.consult-worries-section .use-case-jp {
    color: #5a4a3a;
}

.consult-worries-section .use-case-eng {
    color: #9e8a78;
}

.consult-worries-section .p-red {
    color: #c0785a;
}

.consult-worries-section {
    background: #ffffff;
    padding: var(--sp-section) 0;
}

.consult-worries-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 720px;
}

.consult-worry-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.consult-worry-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.consult-worry-text {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.5;
}

/* ============================================================
   Consult Cases Section
   ============================================================ */
.consult-cases-section {
    background: #fff;
    overflow: hidden;
}

.consult-cases-inner {
    display: flex;
    height: 560px;
}

/* 左：画像カラム */
.consult-cases-images {
    width: 45%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.consult-cases-img {
    flex: 1;
    overflow: hidden;
}

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

.consult-cases-img-placeholder {
    width: 100%;
    height: 100%;
    background: #e8ede9;
}

/* 右：コンテンツカラム */
.consult-cases-content {
    flex: 1;
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.consult-cases-label {
    font-size: 0.85rem;
    color: var(--primary-color);
    letter-spacing: 0.1em;
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.consult-cases-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.consult-cases-divider {
    width: 36px;
    height: 2px;
    background: var(--primary-color);
    margin-bottom: 1.2rem;
}

.consult-cases-desc {
    font-size: 0.92rem;
    color: var(--text-sub);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.consult-cases-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.consult-case-item {
    padding: 1rem 1.4rem 1rem 3rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.6;
    position: relative;
}

.consult-case-item::before {
    content: '✓';
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #0a4010;
    font-size: 1rem;
    font-weight: 900;
}

.consult-case-item:nth-child(odd) {
    background: #edf7f1;
}

.consult-case-item:nth-child(even) {
    background: #ffffff;
}


.consult-case-accent {
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .consult-cases-inner {
        height: auto;
    }
    .consult-cases-images {
        width: 40%;
    }
    .consult-cases-content {
        padding: 3rem 2.5rem;
    }
}

@media (max-width: 768px) {
    .consult-cases-inner {
        flex-direction: column;
        height: auto;
    }
    .consult-cases-images {
        width: 100%;
        height: 400px;
        flex-direction: row;
    }
    .consult-cases-content {
        padding: 3rem 1.5rem;
    }
}

/* ============================================================
   Care Problems Section
   ============================================================ */

.care-problems-section {
    background: #f4f4f4;
    padding: var(--sp-section) 0;
    position: relative;
}

.care-problems-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    text-align: center;
    color: #1e293b;
    margin-bottom: 2.5rem;
}

.care-problems-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 720px;
    margin-inline: auto;
}

.care-problem-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
}

.care-problem-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.care-problem-text {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.5;
}

/* ============================================================
   Care About Section
   ============================================================ */

.care-about-section {
    padding: var(--sp-section) 0;
}

.care-about-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    color: #1e293b;
    line-height: 1.5;
    margin-bottom: 3rem;
}

.care-about-heading-sub {
    color: var(--primary-color);
    font-weight: 400;
}

.care-about-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.care-about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

.care-about-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: #1e293b;
    margin-bottom: 1.2rem;
}

.care-about-btn-wrap {
    text-align: center;
    margin-top: 2rem;
}

.care-about-btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85em 2.5em;
    border-radius: 100px;
    text-decoration: none;
    transition: opacity 0.2s;
    width: 50%;
    text-align: center;
}

.care-about-btn:hover {
    opacity: 0.85;
    color: #fff;
}

@media (max-width: 768px) {
    .care-about-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .care-about-btn {
        width: 80%;
    }
}

/* ============================================================
   CONTACT PAGE
============================================================ */
.contact-section {
    padding: 5rem 0 6rem;
    background: #f5f5f0;
}
.contact-inner {
    max-width: 720px;
    margin: 0 auto;
}

/* イントロ */
.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}
.contact-intro p {
    font-size: 1rem;
    color: #555;
    line-height: 2;
    margin-bottom: 1.5rem;
}
.contact-notes {
    list-style: none;
    padding: 1.1rem 1.5rem;
    background: #fff;
    border: 1px solid #e8e8e2;
    border-radius: 12px;
    text-align: left;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}
.contact-notes li {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.9;
    padding-left: 1em;
    position: relative;
}
.contact-notes li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: #22ac6c;
}
.contact-required-mark {
    display: inline-block;
    background: #c0392b;
    color: #fff;
    font-size: 0.68rem;
    padding: 0.1em 0.5em;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 0.3em;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* 電話カード */
.contact-tel-card {
    background: linear-gradient(135deg, #1a3a2a 0%, #22503a 100%);
    border-radius: 24px;
    padding: 2.25rem 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(26,58,42,0.22);
}
.contact-tel-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}
.contact-tel-hours {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}
.contact-tel-number {
    display: inline-block;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.06em;
    text-decoration: none;
    line-height: 1;
    transition: opacity 0.2s;
}
.contact-tel-number:hover {
    opacity: 0.8;
}

/* フォームカード */
.contact-line-wrap {
    background: #f0faf4;
    border: 1.5px solid #06c755;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-line-text {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.contact-line-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #06c755;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s;
}

.contact-line-btn:hover {
    background: #05b34b;
}

@media (max-width: 768px) {
    .contact-line-wrap {
        padding: 1.5rem 1.2rem;
    }
    .contact-line-btn {
        width: 100%;
        justify-content: center;
    }
}

.contact-form-wrap {
    background: #fff;
    border-radius: 24px;
    padding: 3rem 3.5rem;
    box-shadow: 0 4px 30px rgba(0,0,0,0.07);
}

/* CF7 フィールドグループ */
.contact-form-wrap .wpcf7-form p {
    margin-bottom: 0;
}
.contact-field-group {
    margin-bottom: 1.75rem;
}
.contact-field-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a3a2a;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}
.contact-field-label .req {
    display: inline-block;
    background: #c0392b;
    color: #fff;
    font-size: 0.65rem;
    padding: 0.15em 0.55em;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.contact-field-label .opt {
    display: inline-block;
    background: #aaa;
    color: #fff;
    font-size: 0.65rem;
    padding: 0.15em 0.55em;
    border-radius: 3px;
    font-weight: 500;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

/* CF7 入力共通 */
.contact-form-wrap .wpcf7-form input[type="text"],
.contact-form-wrap .wpcf7-form input[type="email"],
.contact-form-wrap .wpcf7-form input[type="tel"],
.contact-form-wrap .wpcf7-form select,
.contact-form-wrap .wpcf7-form textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 1.5px solid #e0e0d8;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background: #fafaf8;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
    appearance: none;
}
.contact-form-wrap .wpcf7-form input[type="text"]:focus,
.contact-form-wrap .wpcf7-form input[type="email"]:focus,
.contact-form-wrap .wpcf7-form input[type="tel"]:focus,
.contact-form-wrap .wpcf7-form select:focus,
.contact-form-wrap .wpcf7-form textarea:focus {
    outline: none;
    border-color: #22ac6c;
    box-shadow: 0 0 0 4px rgba(34,172,108,0.1);
    background: #fff;
}
.contact-form-wrap .wpcf7-form textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.8;
}

/* 区切り線 */
.contact-form-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 2rem 0;
}

/* 送信ボタン */
.contact-form-wrap .wpcf7-form input[type="submit"] {
    display: block;
    width: 100%;
    padding: 1.1rem 2rem;
    background: linear-gradient(135deg, #1a3a2a 0%, #22503a 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    letter-spacing: 0.12em;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(26,58,42,0.25);
    margin-top: 0.5rem;
}
.contact-form-wrap .wpcf7-form input[type="submit"]:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,58,42,0.3);
}

/* バリデーション・レスポンス */
.contact-form-wrap .wpcf7-not-valid-tip {
    font-size: 0.78rem;
    color: #c0392b;
    margin-top: 0.35rem;
    display: block;
}
/* セレクトボックス（お問い合わせ種別） */
.contact-form-wrap .wpcf7-select {
    width: 100%;
    padding: 0.85rem 2.5rem 0.85rem 1.1rem;
    border: 1.5px solid #e0e0d8;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background: #fafaf8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.contact-form-wrap .wpcf7-select:focus {
    outline: none;
    border-color: #22ac6c;
    box-shadow: 0 0 0 4px rgba(34,172,108,0.1);
    background-color: #fff;
}

/* 同意チェックボックス */
.contact-acceptance {
    margin-bottom: 1.75rem;
    text-align: center;
}
.contact-acceptance .wpcf7-form-control {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
}
.contact-acceptance .wpcf7-form-control label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #444;
    font-weight: normal;
    margin-bottom: 0 !important;
    line-height: 1.4;
}
.contact-acceptance .wpcf7-list-item {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
}
.contact-acceptance .wpcf7-list-item-label {
    display: inline !important;
    font-size: 0.9rem;
    color: #444;
}
.contact-acceptance input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    border: 2px solid #ccc !important;
    border-radius: 5px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: #fff !important;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    display: inline-block !important;
    vertical-align: middle;
    margin: 0 !important;
    padding: 0 !important;
}
.contact-acceptance input[type="checkbox"]:checked {
    background: #1a3a2a !important;
    border-color: #1a3a2a !important;
}
.contact-acceptance input[type="checkbox"]:checked::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    position: absolute;
    top: 2px;
    left: 6px;
}
.contact-acceptance a {
    color: #22ac6c;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.contact-acceptance a:hover {
    color: #1a3a2a;
}
.contact-acceptance .wpcf7-not-valid-tip {
    text-align: center;
    margin-top: 0.4rem;
    display: block;
}

.contact-form-wrap .wpcf7-response-output {
    margin-top: 1.5rem;
    padding: 0.85rem 1.1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    border: 1px solid #ddd;
    text-align: center;
}
.contact-form-wrap .wpcf7-mail-sent-ok {
    border-color: #22ac6c;
    background: #f0faf5;
    color: #1a5c38;
}
.contact-form-wrap .wpcf7-validation-errors,
.contact-form-wrap .wpcf7-mail-sent-ng {
    border-color: #e74c3c;
    background: #fdf3f2;
    color: #c0392b;
}
.contact-form-wrap .wpcf7-form .wpcf7-spinner {
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 0 4rem;
    }
    .contact-section .l-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .contact-form-wrap {
        padding: 2rem 1.2rem;
        border-radius: 8px;
    }
    .contact-tel-card {
        padding: 1.5rem 1rem;
    }
    .contact-tel-number {
        white-space: nowrap;
        font-size: clamp(1.6rem, 8vw, 2.4rem);
    }
    .contact-intro {
        text-align: left;
    }
}

/* ============================================================
   COMPANY PAGE
============================================================ */

/* Hero */
.company-hero {
    background-color: #1a3a2a;
    padding: 5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.company-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f2418 0%, #1a3a2a 50%, #22503a 100%);
}
.company-hero .l-container {
    position: relative;
    z-index: 1;
}
.company-hero-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.company-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}
.company-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}
.company-breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}
.company-breadcrumb a:hover {
    color: #fff;
}
.company-breadcrumb-sep {
    opacity: 0.5;
}

/* Catch section */
.company-catch-section {
    background: #fff;
    padding: 7rem 0 6rem;
    overflow-x: hidden;
}
.company-catch-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    column-gap: 0;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* 左画像 */
.company-catch-col-left {
    position: relative;
    align-self: start;
    display: flex;
    align-items: stretch;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1s cubic-bezier(0.25,0.46,0.45,0.94), transform 1s cubic-bezier(0.25,0.46,0.45,0.94);
}
.company-catch-col-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}
.company-catch-img-wrap {
    position: relative;
    padding-bottom: 2.5rem;
    padding-right: 2.5rem;
    width: 100%;
}
.company-catch-img-deco {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 65%;
    height: 85%;
    background: linear-gradient(135deg, #7bd49a 0%, #c8ecd4 100%);
    z-index: 0;
}
.company-catch-img-left {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 10px 32px rgba(0,0,0,0.14);
    display: block;
}

/* 中央 */
.company-catch-col-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: center;
    text-align: center;
    padding: 4rem 5rem;
    position: relative;
    z-index: 1;
}
.company-catch-heading {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    color: #1a3a2a;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    line-height: 1.3;
    white-space: nowrap;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}
.company-catch-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1a3a2a;
    transition: width 0.8s cubic-bezier(0.25,0.46,0.45,0.94), left 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.company-catch-heading.is-visible::after {
    width: 80%;
    left: 10%;
}
.company-catch-sub-text {
    font-size: 1rem;
    color: #555;
    line-height: 2;
    margin-bottom: 2.5rem;
}
.company-catch-box {
    padding: 2.5rem 3rem;
    text-align: left;
}
.company-catch-box p {
    font-size: 1rem;
    color: #444;
    line-height: 2;
    margin-bottom: 1rem;
}
.company-catch-box p:last-child {
    margin-bottom: 0;
}

/* 右画像（メイン大＋小を重ねる） */
.company-catch-col-right {
    position: relative;
    align-self: end;
    width: 220px;
    height: 300px;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1s cubic-bezier(0.25,0.46,0.45,0.94) 0.3s, transform 1s cubic-bezier(0.25,0.46,0.45,0.94) 0.3s;
}
.company-catch-col-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}
.company-catch-img-r1 {
    width: 200px;
    height: 260px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 12px 36px rgba(0,0,0,0.18);
    display: block;
    position: relative;
    z-index: 1;
}
.company-catch-img-r2 {
    position: absolute;
    bottom: -20px;
    right: -30px;
    width: 130px;
    height: 160px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
    z-index: 2;
}
.company-catch-right-deco {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7bd49a 0%, #c8ecd4 100%);
    z-index: 0;
}
.company-catch-img-placeholder {
    background: #e8f4ee;
    border-radius: 0;
}
.company-catch-img-placeholder.company-catch-img-r1 {
    width: 200px;
    height: 300px;
}
.company-catch-img-placeholder.company-catch-img-r2 {
    position: absolute;
    bottom: -20px;
    right: -30px;
    width: 130px;
    height: 160px;
    border: 3px solid #fff;
}

/* President section */
.company-president-section {
    background: #f5f5f0;
    padding: 5rem 0;
    overflow-x: hidden;
}
.company-president-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
}
.company-president-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #c0392b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.company-president-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #1a3a2a;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}
.company-president-message {
    font-size: 1rem;
    color: #333;
    line-height: 2;
    margin-bottom: 1.2rem;
}
.company-president-namecard {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
}
.company-president-namecard-main {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}
.company-president-namecard-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a3a2a;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    line-height: 1.3;
    margin: 0 0 6px 0;
}
.company-president-namecard-name-en {
    font-size: 0.82rem;
    font-weight: 400;
    color: #777;
    letter-spacing: 0.05em;
}
.company-president-namecard-role {
    display: inline-block;
    font-size: 0.75rem;
    background: #1a3a2a;
    color: #fff;
    padding: 0.15em 0.6em;
    border-radius: 3px;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0;
}
.company-president-namecard-title {
    font-size: 0.78rem;
    background: #1a3a2a;
    color: #fff;
    padding: 0.15em 0.6em;
    border-radius: 3px;
    font-weight: 400;
    letter-spacing: 0.05em;
}
.company-president-namecard-profile {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.8;
}
.company-president-photo {
    width: 260px;
    flex-shrink: 0;
    position: relative;
    align-self: center;
}
.company-president-photo::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c8ecd4 0%, #e8f5ec 100%);
    border-radius: 6px;
    z-index: 0;
}
.company-president-photo img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top center;
    border-radius: 6px;
    display: block;
    position: relative;
    z-index: 1;
}
.company-president-placeholder {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: #e8f4ee;
}

/* Info (table) section */
.company-info-section {
    background: #1a3a2a;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.company-info-ghost {
    position: absolute;
    top: 0.3em;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: clamp(6rem, 14vw, 12rem);
    font-weight: 800;
    color: rgba(255,255,255,0.04);
    letter-spacing: 0.05em;
    white-space: nowrap;
    pointer-events: none;
    line-height: 1;
    z-index: 0;
}
.company-info-header {
    position: relative;
    z-index: 1;
}
.company-info-eng {
    color: rgba(255,255,255,0.4) !important;
}
.company-info-eng .p-red {
    color: #a8e6b0 !important;
}
.company-info-jp {
    color: #fff !important;
}
/* 会社概要 DLテーブル */
.company-table-wrap {
    max-width: 780px;
    margin: 0 auto 3.5rem;
    position: relative;
    z-index: 1;
}
.company-dl {
    margin: 0;
}
.company-dl-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 1.3rem 0;
}
.company-dl-row:first-child {
    border-top: 1px solid rgba(255,255,255,0.12);
}
.company-dl dt {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.03em;
    padding-top: 0.05em;
}
.company-dl dd {
    margin: 0;
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.8;
}
.company-table-tel {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}
.company-table-tel:hover {
    opacity: 0.7;
}
.company-map-wrap {
    max-width: 780px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1;
}
.company-map-wrap iframe {
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
    .company-catch-layout {
        grid-template-columns: 160px 1fr 220px;
        padding: 0 2.5rem;
    }
    .company-catch-col-center {
        padding: 0 2rem;
    }
    .company-catch-img-r1 {
        width: 160px;
        height: 240px;
    }
    .company-catch-img-r2 {
        width: 110px;
        height: 130px;
        right: -15px;
    }
}
@media (max-width: 768px) {
    .company-hero {
        padding: 3.5rem 0 2.5rem;
    }
    .company-catch-section {
        padding: 4.5rem 0 4rem;
    }
    .company-catch-layout {
        grid-template-columns: 1fr;
        padding: 0 1.25rem;
        gap: 2rem;
    }
    .company-catch-col-left {
        order: -1;
        width: 100%;
        transform: translateY(24px);
    }
    .company-catch-col-left.is-visible {
        transform: translateY(0);
    }
    .company-catch-img-wrap {
        padding-top: 1.5rem;
        padding-right: 1.5rem;
    }
    .company-catch-img-left {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 0;
        box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    }
    .company-catch-col-right {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        gap: 12px;
        justify-content: center;
        order: 3;
        transform: translateY(24px);
    }
    .company-catch-col-right.is-visible {
        transform: translateY(0);
    }
    .company-catch-img-r1 {
        width: 55%;
        height: 180px;
        position: static;
        box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    }
    .company-catch-img-r2 {
        position: static;
        width: 40%;
        height: 180px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    }
    .company-catch-col-center {
        padding: 0;
        order: 1;
    }
    .company-catch-heading {
        font-size: clamp(1.6rem, 6.5vw, 2.4rem);
        letter-spacing: 0.08em;
        white-space: nowrap;
    }
    .company-catch-box {
        padding: 1.25rem;
    }
    .company-president-inner {
        grid-template-columns: 1fr;
    }
    .company-president-photo {
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
        order: -1;
    }
    .company-president-photo img {
        height: 300px;
    }
    .company-president-photo::after {
        top: 14px;
        left: 14px;
    }
    .company-president-namecard {
        padding: 1rem 1.25rem;
        margin-top: 1.5rem;
    }
    .company-president-namecard-main {
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .company-president-namecard-name {
        font-size: 0.95rem;
        gap: 0.5rem;
    }
    .company-president-namecard-profile {
        font-size: 0.78rem;
    }
    .company-info-section {
        padding: 3.5rem 0;
    }
    .company-info-ghost {
        font-size: 4rem;
        top: 0.2em;
    }
    .company-dl-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 1rem 0;
    }
    .company-dl dt {
        font-size: 0.75rem;
    }
    .company-dl dd {
        font-size: 0.88rem;
        overflow-wrap: anywhere;
        word-break: normal;
    }
    .company-map-wrap iframe {
        height: 300px;
    }
}

/* ============================================================
   FIXED CONTACT BUTTON (PC Right Edge)
   ============================================================ */
.fixed-contact-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    background: linear-gradient(180deg, #29b765 0%, #0a5c2a 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    writing-mode: vertical-rl;
    letter-spacing: 0.15em;
    padding: 1.6rem 1.1rem;
    border-radius: 0;
    box-shadow: -3px 4px 18px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s ease,
                visibility 0.5s ease,
                background 0.3s ease;
}

.fixed-contact-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.fixed-contact-btn:hover {
    background: linear-gradient(180deg, #0a5c2a 0%, #29b765 100%);
    color: #fff;
    box-shadow: -4px 6px 22px rgba(0, 0, 0, 0.28);
}

@media (max-width: 768px) {
    .fixed-contact-btn {
        display: none;
    }
}

/* ============================================================
   SQUARE DESIGN & GREEN GRADIENT OVERRIDES
   ============================================================ */

/* 1. 全角丸削除（circle 50% は維持） */
.btn,
.btn-primary,
.btn-outline,
.btn-results,
.btn-results-cards,
.btn-use-case,
.btn-service-row,
.fullscreen-menu-cta-btn,
.tpl2-cta-btn,
.tpl2-cta-tel,
.news-readmore-btn,
.problem-card,
.case-card,
.site-branding,
.nav-bar-container,
.floating-cta-item,
.care-about-btn,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="submit"],
input[type="button"],
button,
textarea,
select,
.wp-block-button__link {
    border-radius: 0 !important;
}

/* site-brandingの角丸埋めパーツ不要 */
.site-branding::before {
    display: none !important;
}

/* 2. グラデーション：塗りつぶしボタン（画像2の緑版） */
.btn-primary,
.fullscreen-menu-cta-btn,
.tpl2-cta-btn,
.news-readmore-btn,
input[type="submit"],
.wp-block-button__link {
    background: linear-gradient(135deg, #7dd87f 0%, #0d4411 100%) !important;
    color: #fff !important;
    border: none !important;
}

.btn-primary:hover,
.fullscreen-menu-cta-btn:hover,
.tpl2-cta-btn:hover,
.news-readmore-btn:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
    background: linear-gradient(135deg, #0d4411 0%, #4caf6e 100%) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* 3. グラデーション：アウトラインボタン（画像1の緑版） */
.btn-outline {
    background: transparent !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #7dd87f 0%, #0d4411 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
}

/* ============================================
   [S04] Card Gallery Slider
   ============================================ */
.card-gallery-section {
    --cg-left-offset: clamp(1rem, 21vw, 25.25rem);
    --cg-card-gap: clamp(1.25rem, 2.3vw, 2.75rem);
    --cg-card-width: clamp(17.5rem, 21vw, 25.25rem);
    --cg-card-height: clamp(22rem, 27.5vw, 32.5rem);
    padding: 80px 0 60px;
    background: #fff;
    position: relative;
}

.card-gallery-section::before {
    content: '';
    position: absolute;
    top: 30px;
    left: calc(var(--cg-left-offset) - 200px);
    width: 300px;
    height: 480px;
    background: linear-gradient(135deg, #d4f5e2 0%, #3dbf72 100%);
    opacity: 0.9;
    z-index: 0;
}

.card-gallery-section::after {
    content: 'GALLERY';
    position: absolute;
    top: 40px;
    left: calc(var(--cg-left-offset) / 2 + 20px);
    transform: translateX(-50%);
    writing-mode: vertical-rl;
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 6vw, 6rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: transparent;
    -webkit-text-stroke: 1.2px rgba(10, 92, 42, 0.25);
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
}

.card-gallery-header {
    margin-bottom: 4rem;
    text-align: center;
}

.card-gallery-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.8rem;
    line-height: 1.3;
}

.card-gallery-subtitle {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: #aaa;
    text-transform: uppercase;
}

/* Slider: left offset, bleeds right */
.card-gallery-wrapper {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: var(--cg-left-offset);
    padding-right: 0;
    box-sizing: border-box;
    z-index: 1;
}

.card-gallery-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: var(--cg-left-offset);
    height: 100%;
    background: #fff;
    z-index: 2;
    pointer-events: none;
}

.card-gallery-track {
    position: relative;
    z-index: 1;
    display: flex;
    gap: var(--cg-card-gap);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    cursor: grab;
    user-select: none;
}

.card-gallery-track.is-dragging {
    cursor: grabbing;
    transition: none;
}

.card-gallery-item {
    flex: 0 0 var(--cg-card-width);
    display: flex;
    flex-direction: column;
}

.card-gallery-card {
    position: relative;
    width: 100%;
    height: var(--cg-card-height);
    background-size: cover;
    background-position: center;
    background-color: var(--primary-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 24px;
    box-sizing: border-box;
    color: #fff;
    text-decoration: none;
    -webkit-user-drag: none;
}

.card-gallery-card-body {
    background: #fff;
    padding: 14px 16px 12px;
    text-align: left;
}

.card-gallery-card-text1 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0 0 4px;
}

.card-gallery-card-text2 {
    font-size: 0.78rem;
    color: #777;
    line-height: 1.4;
    margin: 0;
}

.card-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.05) 60%, transparent 100%);
    pointer-events: none;
}

.card-gallery-card-text {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 12px;
}

.card-gallery-card-btn {
    position: relative;
    z-index: 1;
    align-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.6);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
    flex-shrink: 0;
    pointer-events: none;
}

.card-gallery-card:hover .card-gallery-card-btn,
.card-gallery-card-btn:hover {
    background: rgba(255,255,255,0.45);
}

/* Footer: progress + nav */
.card-gallery-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px var(--frame-gap) 0 var(--cg-left-offset);
}

.card-gallery-progress-wrap {
    flex: 1;
    height: 2px;
    background: rgba(0,0,0,0.12);
    margin-right: 24px;
}

.card-gallery-progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 25%;
    transition: width 0.4s ease;
}

.card-gallery-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.card-gallery-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-radius: 0;
}

.card-gallery-nav-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

@media (max-width: 768px) {
    .card-gallery-section {
        --cg-left-offset: 16px;
        --cg-card-gap: 16px;
        --cg-card-width: 72vw;
        --cg-card-height: 58vw;
        padding: 56px 0 40px;
    }
    .card-gallery-header {
        padding: 0 16px 20px var(--cg-left-offset);
    }
    .card-gallery-wrapper {
        padding-left: var(--cg-left-offset);
    }
    .card-gallery-footer {
        padding: 20px var(--frame-gap) 0;
    }
}

/* Gallery Read More Button */
.card-gallery-readmore {
    text-align: center;
    margin-top: 3rem;
    padding-bottom: 0.5rem;
}

.btn-cg-readmore {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 1.1rem 4rem;
    border: none;
    border-radius: 0;
    background: linear-gradient(180deg, #29b765 0%, #0a5c2a 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 92, 42, 0.35);
}

.btn-cg-readmore::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #0a5c2a 0%, #29b765 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cg-readmore:hover {
    color: #fff;
    box-shadow: 0 6px 20px rgba(10, 92, 42, 0.5);
}

.btn-cg-readmore:hover::before {
    opacity: 1;
}

/* ============================================
   Results Showcase Page
   ============================================ */
.results-showcase-template {
    background: #f7faf8;
}

.results-showcase-section,
.results-showcase-section *,
.results-lightbox,
.results-lightbox * {
    box-sizing: border-box;
}

.results-showcase-section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    background:
        linear-gradient(180deg, #fff 0%, #fff 220px, #f7faf8 220px, #f7faf8 100%);
}

.results-showcase-intro {
    max-width: 820px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
    color: var(--text-main);
    font-size: 1rem;
    line-height: 2;
}

.results-property-list {
    display: grid;
    gap: clamp(3rem, 6vw, 5rem);
}

.results-property {
    padding: clamp(1.5rem, 4vw, 3rem);
    background: #fff;
    border: 1px solid rgba(13, 68, 17, 0.1);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(19, 44, 29, 0.08);
}

.results-property-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.results-property-kicker {
    margin: 0;
    color: #2c7a55;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.results-property-title {
    margin: 0;
    color: var(--primary-color);
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
}

.results-property-address {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0;
    color: #46564d;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.7;
}

.results-property-address svg {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.25rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.results-property-description {
    max-width: 760px;
    margin: 0;
    color: var(--text-main);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.9;
}

.results-property-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.results-map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.results-map-btn--maps {
    background: #0f7a3f;
    box-shadow: 0 8px 18px rgba(15, 122, 63, 0.2);
}

.results-map-btn--earth {
    background: #245c7a;
    box-shadow: 0 8px 18px rgba(36, 92, 122, 0.2);
}

.results-map-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(19, 44, 29, 0.2);
}

.results-property-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.4vw, 1.25rem);
    min-width: 0;
}

.results-property-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    background: #edf4ef;
    border-radius: 8px;
}

.results-property-photo-btn {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.results-property-photo img {
    width: 100%;
    height: 100%;
    min-width: 0;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.results-property-photo:hover img {
    transform: scale(1.04);
}

.results-showcase-empty {
    padding: 3rem 1.5rem;
    background: #fff;
    border: 1px solid rgba(13, 68, 17, 0.1);
    border-radius: 8px;
    text-align: center;
    color: #66736b;
}

.results-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.results-lightbox.is-active {
    display: flex;
}

.results-lightbox-backdrop {
    position: absolute;
    inset: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.78);
    cursor: zoom-out;
}

.results-lightbox-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
}

.results-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 86px);
    width: auto;
    height: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.results-lightbox-caption {
    margin: 0.75rem 0 0;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.results-lightbox-close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
}

.results-lightbox-close::before,
.results-lightbox-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: currentColor;
}

.results-lightbox-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.results-lightbox-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 900px) {
    .results-property-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .results-showcase-section > .l-container {
        width: 100%;
        max-width: none;
        padding-inline: 10px;
    }

    .results-showcase-section {
        padding: 3rem 0;
    }

    .results-property {
        padding: 1rem 10px;
    }

    .results-property-gallery {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .results-property-photo {
        flex: 0 0 calc((100% - 18px) / 4);
        max-width: calc((100% - 18px) / 4);
        border-radius: 5px;
    }

    .results-property-actions {
        width: 100%;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .results-map-btn {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        padding-inline: 0.6rem;
        font-size: 0.84rem;
    }

    .results-lightbox {
        padding: 10px;
    }

    .results-lightbox-image {
        max-height: calc(100vh - 78px);
    }

    .results-lightbox-close {
        top: -42px;
        width: 36px;
        height: 36px;
    }
}

/* Mobile header stacking */
@media (max-width: 768px) {
    .site-header,
    .site-header.pattern-fv1:not(.is-scrolled),
    .site-header.pattern-fv2:not(.is-scrolled),
    .site-header.pattern-fv1.is-scrolled,
    .site-header.pattern-fv2.is-scrolled {
        z-index: 1040;
    }

    .floating-cta-container,
    .page-top-btn {
        z-index: 990;
    }
}
