/*
 Theme Name:   Sweetbell
 Template:     lightning
 Version:      1.2.0
*/
/* @import removed and handled via functions.php to avoid 404 */

/* ===================================
   Brand Colors
   =================================== */
   :root {
    /* カラーパレット */
    --color-primary: #dc2626;
    --color-secondary: #16a34a;
    --color-accent: #fbbf24;
    --color-bg-white: #ffffff;
    --color-bg-light: #ffffff;
    --color-text-primary: #1f2937;
    --color-text-secondary: #6b7280;
    --color-border: #e5e7eb;

    /* タイポグラフィ */
    --font-heading: 'Shippori Mincho', 'Noto Serif JP', serif;
    --font-body: 'Noto Sans JP', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-h1: 32px;
    --font-size-h2: 24px;
    --font-size-h3: 20px;
    --font-size-body: 16px;
    --font-size-small: 14px;
    --font-weight-regular: 400;
    --font-weight-bold: 700;
    --line-height-heading: 1.2;
    --line-height-body: 1.6;
    --line-height-comfy: 1.75;
    --letter-spacing-wide: 0.02em;

    /* スペーシング */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 60px;

    /* ボーダー半径 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* シャドウ */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* トランジション */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ===================================
   Home hero (Lightning slider)
   Mobile-first sizing
   =================================== */
.ltg-slide .swiper-slide {
	position: relative;
}
.ltg-slide .swiper-slide picture {
	display: block;
	height: 38vh;
	min-height: 240px;
}
.ltg-slide .swiper-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ltg-slide .swiper-slide::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
}
.ltg-slide-text-set {
	z-index: 2;
}
.ltg-slide .ltg-slide-text-set .container {
	padding-left: 1rem;
	padding-right: 1rem;
	text-align: center !important;
}
.ltg-slide .ltg-slide-text-title {
	color: #ffffff !important;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45) !important;
}
@media (min-width: 768px) {
	.ltg-slide .swiper-slide picture {
		height: 55vh;
		min-height: 420px;
	}
}

/* ===================================
   Desktop typography alignment
   (User request: center on PC)
   Keep forms/tables/lists readable.
   =================================== */
@media (min-width: 992px) {
	/* Make pages truly centered by removing the (often empty) sidebar column */
	body.post-type-page .sub-section.sub-section--col--two {
		display: none;
	}
	body.post-type-page .main-section.main-section--col--two {
		width: 100%;
	}
	body.post-type-page .site-body-container {
		justify-content: center;
	}

	/* Center only headings (NOT paragraphs) */
	.entry-body :is(h1, h2, h3, h4, h5, h6) {
		text-align: center;
	}

	/* Keep paragraphs left-aligned inside columns */
	.entry-body .wp-block-columns p,
	.entry-body .wp-block-column p {
		text-align: left;
	}

	/* Contact Form 7 labels: left-aligned */
	.entry-body .wpcf7 p,
	.entry-body .wpcf7 label {
		text-align: left !important;
	}

	.page-header-inner {
		text-align: center;
	}

	/* Lists: left-aligned text (changed from center) */
	.entry-body :is(ul, ol, .wp-block-list) {
		text-align: left;
		list-style-position: inside;
	}
	/* Special handling for the custom check-list (stable checkmark positioning) */
	.entry-body ul.check-list {
		list-style: none;
		padding-left: 0;
	}
	.entry-body ul.check-list li {
		position: relative;
		width: fit-content;
		margin-left: auto;
		margin-right: auto;
		padding-left: 1.6rem;
		text-align: left;
	}
	.entry-body ul.check-list li::before {
		position: absolute;
		left: 0;
		top: 0.15em;
	}

	/* Keep tables/forms readable, but centered as a block */
	.entry-body :is(table, .wp-block-table, form, .wpcf7) {
		margin-left: auto;
		margin-right: auto;
		text-align: left;
	}
}

/* ===================================
   Footer alignment
   =================================== */
.site-footer-copyright {
	text-align: center;
}
@media (min-width: 768px) {
	.footer-nav-list {
		display: flex;
		justify-content: center;
		flex-wrap: wrap;
		gap: 0.75rem 1.25rem;
	}
	.footer-nav-list li {
		float: none;
	}
	.footer-nav-list li a {
		text-align: center;
	}
}

/* ===================================
   Typography
   =================================== */
body {
    background-color: #ffffff;
    font-family: 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.75;
    letter-spacing: 0.02em;
}

.entry-content,
.widget {
    font-family: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

/* ===================================
   Contact Form 7
   =================================== */
.wpcf7 {
	margin-top: 1.5rem;
}
.wpcf7 form {
	max-width: 720px;
	margin: 0 auto;
}

/* ラベルを左寄せに */
.wpcf7 p {
	text-align: left;
}

.wpcf7 label {
	text-align: left;
	display: block;
	margin-bottom: 0.5rem;
}

.wpcf7 .wpcf7-form-control-wrap {
	display: block;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}
.wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="search"], textarea, select).wpcf7-form-control {
	width: 100%;
	box-sizing: border-box;
	padding: 0.9rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	background: #f3f4f6; /* 少しグレーにして未入力でも境界が見えるように */
	color: var(--color-text-primary);
	font-size: 1rem;
	line-height: 1.4;
}
.wpcf7 textarea.wpcf7-form-control {
	min-height: 140px;
	resize: vertical;
}
.wpcf7 :is(input, textarea, select).wpcf7-form-control:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}
.wpcf7 .wpcf7-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border: 0;
	border-radius: var(--radius-full);
	padding: 0.9rem 1.6rem;
	background: var(--color-primary);
	color: #ffffff;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	margin: 1.5rem auto 0; /* フォーム中央に配置 */
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.wpcf7 .wpcf7-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(220, 38, 38, 0.18);
}
.wpcf7 .wpcf7-submit:active {
	transform: translateY(0);
}
.wpcf7 .wpcf7-acceptance label {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
}
.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
	margin-top: 0.25rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-header .site-title,
.entry-title {
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ===================================
   Custom Components & Fidelity
   =================================== */

/* Section Headlines with Gradient Underline */
.entry-content h2,
.entry-body h2,
.post h2 {
    position: relative;
    font-size: 2rem;
    padding-bottom: 0.75rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
}

.entry-content h2::after,
.entry-body h2::after,
.post h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #fbbf24);
    border-radius: 999px;
}

/* Custom Checkmark Lists */
.entry-content ul.check-list,
.entry-body ul.check-list {
    list-style: none;
    padding-left: 0;
}

.entry-content ul.check-list li,
.entry-body ul.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.entry-content ul.check-list li::before,
.entry-body ul.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: bold;
    font-size: 1.25rem;
}

/* Section Backgrouds - Full Width Hack for Guttenberg */
.section-alt {
    background-color: #ffffff;
    padding: 4rem 2rem;
    position: relative;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.section-white {
    padding: 4rem 0;
}

/* Premium Card Style for Columns */
.premium-card {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: transform 0.3s ease;
    height: 100%;
}

.premium-card:hover {
    transform: translateY(-5px);
}

.btn-secondary,
.button-secondary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #ffffff;
}

.btn-secondary:hover,
.button-secondary:hover {
    background-color: #15803d;
    border-color: #15803d;
    color: #ffffff;
}

/* Outline Button Refinement for White BG */
.wp-block-button.is-style-outline .wp-block-button__link {
    border: 2px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
    background-color: transparent !important;
    font-weight: 700;
    transition: all 0.3s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

/* ===================================
   Lightning UI Overrides
   =================================== */

/* Page Header */
.page-header,
.vk_post_title_area {
    background-color: var(--color-primary) !important;
}

/* Hide default page header for specific pages and templates */
.page-template-about-sweetbell .page-header,
.page-template-about-garden .page-header,
.page-template-producers .page-header,
.page-template-company .page-header,
.page-template-page-onecolumn-full .page-header,
.post-name-about-sweetbell .page-header,
.post-name-about-garden .page-header,
.post-name-producers .page-header,
.post-name-company .page-header {
    display: none !important;
}

.page-template-about-sweetbell .vk_post_title_area,
.page-template-about-garden .vk_post_title_area,
.page-template-producers .vk_post_title_area,
.page-template-company .vk_post_title_area,
.page-template-page-onecolumn-full .vk_post_title_area,
.post-name-about-sweetbell .vk_post_title_area,
.post-name-about-garden .vk_post_title_area,
.post-name-producers .vk_post_title_area,
.post-name-company .vk_post_title_area {
    display: none !important;
}

/* Header Icons styling */
:root {
    --sb-header-logo-height-desktop: 52px;
    --sb-header-logo-height-mobile: 44px;
}

.site-header-container {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.site-header-logo {
	order: 1;
}

.site-header-logo .custom-logo,
.site-header-logo .header__logo-img,
.site-header .custom-logo,
.site-header img.custom-logo {
    display: block;
    width: auto;
    height: var(--sb-header-logo-height-desktop);
    max-height: none;
}

.global-nav {
	order: 2;
	margin-left: auto;
}

.header-custom-icons {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.75rem;
    order: 3;
    flex-shrink: 0;
}

.header-icon-link,
.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--sb-header-logo-height-desktop);
    height: var(--sb-header-logo-height-desktop);
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    flex-shrink: 0;
    border-radius: 9999px;
}

.header-icon-link:hover,
.header-icon-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.header-custom-icons img {
    display: block;
    width: calc(var(--sb-header-logo-height-desktop) - 2px);
    height: calc(var(--sb-header-logo-height-desktop) - 2px);
    object-fit: contain;
    /* Prevent squashing for non-square icons */
}

/* Adjust for mobile */
@media (max-width: 991px) {
    .site-header-logo .custom-logo,
    .site-header-logo .header__logo-img,
    .site-header .custom-logo,
    .site-header img.custom-logo {
        height: var(--sb-header-logo-height-mobile);
    }

    .site-header-container {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
    }

    .header-custom-icons {
        /* Keep icons inside the header (no scroll-following) and reserve MENU space */
        margin: 0;
        margin-left: auto;
        margin-right: calc(env(safe-area-inset-right, 0px) + 76px);
        gap: 0;
    }

    .header-icon-link,
    .header-icon-btn {
        width: var(--sb-header-logo-height-mobile);
        height: var(--sb-header-logo-height-mobile);
        border-radius: 2px;
    }

    .header-custom-icons img {
        width: calc(var(--sb-header-logo-height-mobile) - 2px);
        height: calc(var(--sb-header-logo-height-mobile) - 2px);
    }
}

/* WordPress admin bar offset (match vk-mobile-nav) */
.admin-bar .header-custom-icons {
    top: auto;
}
@media (max-width: 782px) {
    .admin-bar .header-custom-icons {
        top: auto;
    }
}

/* Site Header Background */
.site-header,
.site-header-container,
.global-nav {
    background-color: var(--color-bg-light) !important;
}

/* Breadcrumbs */
.breadcrumb,
.vk_breadcrumb {
    background-color: transparent !important;
    padding: 1rem 0;
}

/* Footer Accent */
/* ===================================
   Footer (Lightning G2/G3) - "brand + 2 columns + copyright"
   NOTE:
   - G3 uses `.site-footer`
   - G2 uses `.siteFooter` and `.copySection`
   =================================== */
.site-footer,
.siteFooter {
	background: #1f2a36;
	color: #ffffff;
	border-top: none;
	padding: 3.5rem 0 1.75rem;
}
.site-footer a,
.siteFooter a,
.site-footer a:visited,
.siteFooter a:visited {
	color: #ffffff !important; /* override Lightning skin/link colors */
	text-decoration: none;
	transition: opacity var(--transition-fast), text-decoration var(--transition-fast);
}
.site-footer a:hover,
.siteFooter a:hover {
	opacity: 0.85;
	text-decoration: underline;
}

/* Brand (injected via lightning_site_footer_content_prepend) */
.site-footer .sb-footer-brand,
.siteFooter .sb-footer-brand {
	text-align: center;
	margin: 0 auto 2.75rem;
}
.site-footer .sb-footer-brand__link,
.siteFooter .sb-footer-brand__link {
	display: inline-block;
	font-family: var(--font-heading);
	font-weight: 700;
	letter-spacing: 0.02em;
	font-size: clamp(1.9rem, 2.3vw, 2.8rem);
	line-height: 1.1;
}
/* Footer nav (optional; if used, keep it subtle) */
.site-footer .footer-nav,
.siteFooter .footerMenu {
	margin: 0 0 1.5rem;
}
.site-footer .footer-nav-list,
.siteFooter .footerMenu .nav,
.siteFooter .footer-nav-list {
	justify-content: center;
}
.site-footer .footer-nav-list a,
.siteFooter .footerMenu .nav a,
.siteFooter .footer-nav-list a {
	opacity: 0.95;
}

/* Widgets -> 2 columns */
.site-footer .site-footer-content,
.siteFooter .footerWidget {
	margin-top: 0.5rem;
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
}
.site-footer .site-footer-content .row,
.siteFooter .footerWidget .row {
	justify-content: center;
	row-gap: 2rem;
	gap: 2rem clamp(2rem, 6vw, 5.5rem);
}
/* Override Bootstrap col widths so 2 columns can sit centered with a visible gap */
.site-footer .site-footer-content .row > div,
.siteFooter .footerWidget .row > div {
	flex: 1 1 320px;
	max-width: 520px;
}
.site-footer .widgettitle,
.site-footer h2,
.site-footer h3,
.siteFooter .widgettitle,
.siteFooter h2,
.siteFooter h3 {
	font-family: var(--font-heading);
	font-weight: 700;
	color: #ffffff !important;
	margin: 0 0 0.75rem;
	font-size: 1.75rem;
	line-height: 1.2;
}
.site-footer .textwidget,
.site-footer .widget,
.siteFooter .textwidget,
.siteFooter .widget {
	color: rgba(255, 255, 255, 0.92);
}
.site-footer .widget ul,
.siteFooter .widget ul {
	list-style: none;
	padding-left: 0;
	margin: 0.25rem 0 0;
}
.site-footer .widget li,
.siteFooter .widget li {
	margin: 0.6rem 0;
}
.site-footer .widget li a,
.siteFooter .widget li a {
	display: inline-block;
	font-size: 1rem;
	line-height: 1.6;
}

/* Contact-like primary link */
.site-footer .widget a.button,
.site-footer .widget a.wp-block-button__link,
.siteFooter .widget a.button,
.siteFooter .widget a.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.1rem;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.25);
	text-decoration: none;
}
.site-footer .widget a.button:hover,
.site-footer .widget a.wp-block-button__link:hover,
.siteFooter .widget a.button:hover,
.siteFooter .widget a.wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.16);
	text-decoration: none;
}

/* Copyright */
.site-footer .site-footer-copyright,
.siteFooter .copySection {
	margin-top: 3rem;
	padding-top: 1.25rem;
	border-top: 1px dashed rgba(255, 255, 255, 0.25);
	text-align: center;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9rem;
}
.siteFooter .copySection,
.siteFooter .copySection * {
	color: rgba(255, 255, 255, 0.82) !important; /* ensure "Powered by..." is visible */
}

@media (max-width: 767px) {
	.site-footer,
	.siteFooter {
		padding: 2.75rem 0 1.5rem;
	}
	.site-footer .sb-footer-brand,
	.siteFooter .sb-footer-brand {
		margin-bottom: 2rem;
	}
	.site-footer .widgettitle,
	.site-footer h2,
	.site-footer h3,
	.siteFooter .widgettitle,
	.siteFooter h2,
	.siteFooter h3 {
		font-size: 1.5rem;
	}
}

/* ===================================
   Search Modal
   =================================== */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.search-modal.active {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    opacity: 1;
}

.search-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.search-modal__container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: var(--spacing-2xl) var(--spacing-md);
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--spacing-3xl) * 2);
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-modal__close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background-color var(--transition-fast);
    z-index: 1;
}

.search-modal__close-icon {
    font-size: 32px;
    color: var(--color-text-secondary);
    line-height: 1;
}

.search-modal__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    padding: var(--spacing-xl) var(--spacing-lg);
    padding-right: 60px;
    margin: 0;
    border-bottom: 1px solid var(--color-border);
}

.search-modal__form {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.search-modal__input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.search-modal__input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    padding-right: 50px;
    font-size: var(--font-size-body);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    outline: none;
    transition: border-color var(--transition-fast);
}

.search-modal__submit {
    position: absolute;
    right: var(--spacing-xs);
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.search-modal__icon {
    width: 20px;
    height: 20px;
    color: var(--color-bg-white);
}

.search-modal__results {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
    min-height: 200px;
    max-height: 400px;
}

.search-modal__empty {
    text-align: center;
    color: var(--color-text-secondary);
    padding: var(--spacing-3xl) var(--spacing-lg);
    font-size: var(--font-size-body);
}

.search-result-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.search-result-item__link {
    text-decoration: none;
    color: inherit;
}

.search-result-item__title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .premium-card {
        padding: 1.5rem;
    }
}

/* ===================================
   VK ExUnit Sitemap Styling
   =================================== */
.vkExUnit_sitemap,
.vk_sitemap {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.vkExUnit_sitemap h2,
.vk_sitemap h2 {
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
    color: var(--color-text-primary);
}

.vkExUnit_sitemap h2:first-child,
.vk_sitemap h2:first-child {
    margin-top: 0;
}

.vkExUnit_sitemap h2::after,
.vk_sitemap h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #fbbf24);
    border-radius: 999px;
}

.vkExUnit_sitemap h2,
.vk_sitemap h2,
.veu_sitemap h2 {
    position: relative;
}

.vkExUnit_sitemap ul,
.vk_sitemap ul,
.veu_sitemap ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.vkExUnit_sitemap ul li,
.vk_sitemap ul li,
.veu_sitemap ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.vkExUnit_sitemap ul li::before,
.vk_sitemap ul li::before,
.veu_sitemap ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.vkExUnit_sitemap ul li a,
.vk_sitemap ul li a,
.veu_sitemap ul li a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.vkExUnit_sitemap ul li a:hover,
.vk_sitemap ul li a:hover,
.veu_sitemap ul li a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* 2階層目以降のインデント */
.vkExUnit_sitemap ul ul,
.vk_sitemap ul ul,
.veu_sitemap ul ul {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
    padding-left: 0;
}

.vkExUnit_sitemap ul ul li,
.vk_sitemap ul ul li,
.veu_sitemap ul ul li {
    padding-left: 1.25rem;
    font-size: 0.95rem;
}

.vkExUnit_sitemap ul ul li::before,
.vk_sitemap ul ul li::before,
.veu_sitemap ul ul li::before {
    content: "▪";
    color: var(--color-secondary);
}

/* 3階層目以降 */
.vkExUnit_sitemap ul ul ul,
.vk_sitemap ul ul ul,
.veu_sitemap ul ul ul {
    margin-left: 1.25rem;
}

.vkExUnit_sitemap ul ul ul li::before,
.vk_sitemap ul ul ul li::before,
.veu_sitemap ul ul ul li::before {
    content: "•";
    font-size: 0.8rem;
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
    .vkExUnit_sitemap,
    .vk_sitemap,
    .veu_sitemap {
        padding: 0 2rem;
    }
    
    .vkExUnit_sitemap h2,
    .vk_sitemap h2,
    .veu_sitemap h2 {
        font-size: 2rem;
    }
}

/* ===================================
   VK ExUnit HTML Sitemap (prod) - Better layout
   note: 本番は `.row.veu_sitemap > .sitemap-col > ul.link-list` 構造
   =================================== */
body.post-name-sitemap .veu_sitemap {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    /* 1カラム時に横に伸びすぎないよう上限を付け、余白は中央寄せ */
    grid-template-columns: repeat(auto-fit, minmax(280px, 520px));
    justify-content: center;
    gap: 1.25rem;
}

/* Bootstrapの.row/.col-md-6のガター（負のmargin / 幅50%）が残って中央がズレるので、サイトマップだけ上書き */
body.post-name-sitemap .veu_sitemap.row {
    margin-left: auto;
    margin-right: auto;
}
body.post-name-sitemap .veu_sitemap > .sitemap-col {
    /* .col-md-6 の 50% 幅を無効化して、gridの列幅に従わせる */
    width: auto;
    max-width: none;
    flex: none;
}

body.post-name-sitemap .veu_sitemap .sitemap-col {
    padding: 1.1rem 1.1rem 0.9rem;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

/* ExUnitが空のカラムを出す場合があるため、空要素は非表示（謎のボックス対策） */
body.post-name-sitemap .veu_sitemap .sitemap-col:empty {
    display: none;
}
/* whitespace等で :empty が効かない場合もあるので、リンクを含まないカラムも非表示 */
body.post-name-sitemap .veu_sitemap .sitemap-col:not(:has(a)) {
    display: none;
}

body.post-name-sitemap .veu_sitemap .sitemap-col .sitemap-post-type-title,
body.post-name-sitemap .veu_sitemap .sitemap-col .sitemap-taxonomy-title {
    margin: 0 0 0.75rem;
    padding: 0 0 0.6rem;
    border-bottom: 1px solid #eef0f3;
    font-weight: 800;
}

body.post-name-sitemap .veu_sitemap .sitemap-col ul.link-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* 既存のマーカー（▸等）があれば消す */
body.post-name-sitemap .veu_sitemap .sitemap-col ul.link-list > li {
    margin: 0 0 0.5rem;
    padding-left: 0;
}
body.post-name-sitemap .veu_sitemap .sitemap-col ul.link-list > li::before {
    content: none !important;
}

body.post-name-sitemap .veu_sitemap .sitemap-col ul.link-list > li > a {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: #f9fafb;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

body.post-name-sitemap .veu_sitemap .sitemap-col ul.link-list > li > a:hover {
    background: #eef2ff;
    color: var(--color-primary);
    transform: translateY(-1px);
    text-decoration: none;
}

@media (max-width: 520px) {
    body.post-name-sitemap .veu_sitemap {
        grid-template-columns: 1fr;
    }
}

/* CF7 Turnstile を強制的に中央寄せ */
.wpcf7 form .cf7-turnstile-center{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 16px 0 !important;
}

/* Turnstile本体/ラッパーの候補をまとめて中央へ */
.wpcf7 form .cf7-turnstile-center .cf-turnstile,
.wpcf7 form .cf7-turnstile-center .cf7-turnstile,
.wpcf7 form .cf7-turnstile-center .wpcf7-form-control-wrap{
  margin: 0 auto !important;
}

/* iframeが効いてる場合の保険 */
.wpcf7 form .cf7-turnstile-center iframe{
  display: block !important;
  margin: 0 auto !important;
}

/* 検索アイコンの表示/非表示はカスタマイザー「ヘッダーアイコン設定」の「検索アイコンを表示」で切り替え（デフォルトは非表示） */

/* ===================================
   404 Error Page
   =================================== */
.error-404-page {
    border: none !important;
    box-shadow: none !important;
}

.error-404-content {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--spacing-3xl) var(--spacing-md);
    text-align: center;
}

/* Logo */
.error-404-logo {
    margin-bottom: var(--spacing-lg);
}

.error-404-logo__img {
    max-height: 60px;
    width: auto;
    opacity: 0.85;
    transition: opacity var(--transition-normal);
}

.error-404-logo__img:hover {
    opacity: 1;
}

/* Error Code */
.error-404-code {
    margin-bottom: var(--spacing-md);
}

.error-404-code__number {
    font-family: var(--font-heading);
    font-size: 100px;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.15;
    letter-spacing: 0.05em;
    display: block;
}

/* Heading */
.error-404-heading {
    font-family: var(--font-heading);
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin: 0 0 var(--spacing-md);
    letter-spacing: var(--letter-spacing-wide);
}

/* Message */
.error-404-message {
    font-size: var(--font-size-body);
    line-height: var(--line-height-comfy);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
}

/* Action Buttons */
.error-404-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-2xl);
}

.error-404-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    letter-spacing: var(--letter-spacing-wide);
}

.error-404-btn--primary {
    background-color: var(--color-primary);
    color: #ffffff;
    border: 2px solid var(--color-primary);
}

.error-404-btn--primary:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.error-404-btn--outline {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-border);
}

.error-404-btn--outline:hover {
    border-color: var(--color-text-primary);
    color: var(--color-text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Navigation Links */
.error-404-nav {
    border-top: 1px solid var(--color-border);
    padding-top: var(--spacing-xl);
}

.error-404-nav__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin: 0 0 var(--spacing-lg);
    letter-spacing: var(--letter-spacing-wide);
}

.error-404-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}

.error-404-nav__item {
    padding: 0;
}

.error-404-nav__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: var(--font-size-body);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.error-404-nav__link:hover {
    background-color: #fef2f2;
    color: var(--color-primary);
    padding-left: 24px;
}

.error-404-nav__link svg {
    flex-shrink: 0;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.error-404-nav__link:hover svg {
    color: var(--color-primary);
}

/* Responsive */
@media (min-width: 576px) {
    .error-404-code__number {
        font-size: 140px;
    }
    .error-404-heading {
        font-size: 28px;
    }
    .error-404-nav__list {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===================================
   Pop-style headings for Sweetbell
   =================================== */
.sb-pop-heading {
	font-family: 'Zen Maru Gothic', 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: #f5426c;
	font-weight: 700;
	letter-spacing: 0.08em;
}

@media (min-width: 768px) {
	.sb-pop-heading {
		font-size: clamp(1.8rem, 2.3vw, 2.4rem);
	}
}

/* Sweetbell pop text (any page):
   - 対象: <span class="sb-pop-text">スイートベル</span> で囲った部分のみ
*/
.sb-pop-text {
    font-family: 'Hachi Maru Pop', 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: #f5426c;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* 会社概要ページ：ラベル列と値列の距離を詰める */
.post-name-company .entry-body .wp-block-table.is-style-stripes table {
  table-layout: fixed;   /* 列幅を安定させる */
  width: 100%;
}

/* 1列目（社名：／所在地：など）を細くする */
.post-name-company .entry-body .wp-block-table.is-style-stripes td:first-child {
  width: 8em;            /* お好みで 6em〜10em くらいに調整 */
  white-space: nowrap;   /* 改行させない */
}

/* 2列目の左パディングを少しだけにして“距離”を縮める */
.post-name-company .entry-body .wp-block-table.is-style-stripes td + td {
  padding-left: 8px;     /* デフォルトより小さめにする。4〜12pxで微調整可 */
}