/* Cookitem Drumtable LP — 業務用カタログ的ミニマリズム */
:root {
	--ckdt-ink: #1a1a1a;
	--ckdt-red: oklch(0.55 0.22 27);
	--ckdt-red-dark: oklch(0.42 0.2 27);
	--ckdt-line: #06C755;
	--ckdt-serif: 'Noto Serif JP', '游明朝', YuMincho, 'ヒラギノ明朝 ProN', 'Hiragino Mincho ProN', serif;
	--ckdt-sans: 'メイリオ', Meiryo, 'Noto Sans JP', sans-serif;
	--ckdt-ease: cubic-bezier(0.23, 1, 0.32, 1);
	--ckdt-line-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.03 2 11c0 2.7 1.3 5.12 3.36 6.82-.15.54-.57 1.96-.65 2.27-.1.38.14.38.29.28.12-.08 1.56-1.06 2.19-1.5.83.14 1.69.22 2.57.22 5.52 0 10-4.03 10-9C22 6.03 17.52 2 12 2z'/%3E%3C/svg%3E");
	--ckdt-tel-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24 11.47 11.47 0 003.58.57 1 1 0 011 1V21a1 1 0 01-1 1A17 17 0 013 5a1 1 0 011-1h3.5a1 1 0 011 1 11.47 11.47 0 00.57 3.58 1 1 0 01-.25 1.01l-2.2 2.2z'/%3E%3C/svg%3E");
}
html, body { overflow-x: hidden; max-width: 100%; }
body { font-family: var(--ckdt-sans); -webkit-font-smoothing: antialiased; margin: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.ckdt-main img, .ckdt-footer img { max-width: 100%; height: auto; }
.ckdt-main figure { margin: 0; }
.ckdt-main p { margin: 0; }

/* 共通見出し */
.ckdt-h2 {
	font-family: var(--ckdt-serif);
	font-size: clamp(1.1rem, 3vw, 1.4rem) !important;
	font-weight: 700; color: var(--ckdt-ink);
	margin-top: 0 !important; margin-bottom: 2.5rem !important; letter-spacing: .02em;
}
.ckdt-center { justify-content: center; }

/* 表示切替 */
.ckdt-full img { width: 100%; display: block; }
.ckdt-full { line-height: 0; }
@media (max-width: 639px) { .ckdt-show-pc { display: none !important; } }
@media (min-width: 640px) { .ckdt-show-sp { display: none !important; } }

/* ── ボタン ── */
.wp-block-button[class*="is-style-ckdt-"] .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font-family: var(--ckdt-sans); font-weight: 700; letter-spacing: .03em;
	color: #fff; text-decoration: none; border-radius: .5rem; padding: .75rem 1.25rem; box-sizing: border-box;
	font-size: clamp(.9rem, 2.5vw, 1rem); line-height: 1.4;
}
.is-style-ckdt-phone .wp-block-button__link::before,
.is-style-ckdt-sticky-phone .wp-block-button__link::before,
.is-style-ckdt-line .wp-block-button__link::before {
	content: ""; width: 20px; height: 20px; flex-shrink: 0; background: #fff;
	-webkit-mask: var(--ckdt-tel-icon) center/contain no-repeat; mask: var(--ckdt-tel-icon) center/contain no-repeat;
}
.is-style-ckdt-line .wp-block-button__link::before { -webkit-mask-image: var(--ckdt-line-icon); mask-image: var(--ckdt-line-icon); width: 22px; height: 22px; }

@keyframes ckdt-pulse {
	0%   { box-shadow: 0 0 0 0 oklch(0.5 0.22 27 / .75); transform: scale(1); }
	40%  { box-shadow: 0 0 0 18px oklch(0.5 0.22 27 / 0); transform: scale(1.025); }
	55%  { transform: scale(.99); }
	70%  { transform: scale(1.015); }
	100% { box-shadow: 0 0 0 0 oklch(0.5 0.22 27 / 0); transform: scale(1); }
}
@keyframes ckdt-shine { 0% { background-position: -300% center; } 100% { background-position: 300% center; } }
.is-style-ckdt-phone .wp-block-button__link {
	position: relative; overflow: hidden;
	background: linear-gradient(135deg, var(--ckdt-red) 0%, var(--ckdt-red-dark) 100%);
	border: 1px solid oklch(0.6 0.2 27); border-radius: .35rem; padding: 1rem 2rem;
	box-shadow: 0 4px 20px oklch(0.5 0.22 27 / .55), inset 0 1px 0 oklch(1 0 0 / .2);
	animation: ckdt-pulse 2.2s var(--ckdt-ease) infinite;
	transition: transform .18s var(--ckdt-ease), box-shadow .22s var(--ckdt-ease);
}
.is-style-ckdt-phone .wp-block-button__link::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(105deg, transparent 35%, oklch(1 0 0 / .14) 50%, transparent 65%);
	background-size: 300% 100%; animation: ckdt-shine 2.2s var(--ckdt-ease) infinite;
}
.is-style-ckdt-phone .wp-block-button__link:hover {
	animation: none; transform: translateY(-3px) scale(1.03);
	background: linear-gradient(135deg, oklch(0.62 0.22 27) 0%, oklch(0.5 0.22 27) 100%);
	box-shadow: 0 14px 36px oklch(0.5 0.22 27 / .6), 0 4px 12px oklch(0.5 0.22 27 / .35);
}
.is-style-ckdt-phone .wp-block-button__link:active { transform: scale(.97) translateY(1px); }
.is-style-ckdt-line .wp-block-button__link,
.is-style-ckdt-line-plain .wp-block-button__link {
	background: var(--ckdt-line); box-shadow: 0 4px 14px rgba(6,199,85,.4);
	transition: transform .15s ease-out, opacity .2s;
}
.is-style-ckdt-line .wp-block-button__link:hover { transform: translateY(-2px); }
.is-style-ckdt-dark .wp-block-button__link { background: var(--ckdt-ink); border-radius: .25rem; }
@media (max-width: 639px) {
	.is-style-ckdt-phone, .is-style-ckdt-phone .wp-block-button__link { width: 100%; }
}

/* ── ヒーロー ── */
.ckdt-hero { line-height: 0; }
.ckdt-proof {
	background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
	padding: 1.2rem 1rem; overflow-x: auto;
	border-top: 3px solid oklch(0.65 0.22 27); border-bottom: 3px solid oklch(0.65 0.22 27);
}
.ckdt-proof-inner { max-width: 1024px; margin: 0 auto; display: flex; justify-content: center; align-items: center; gap: clamp(.5rem, 3vw, 1rem); flex-wrap: nowrap; }
.ckdt-proof-inner > * { margin: 0 !important; }
.ckdt-proof-item {
	text-align: center; flex-shrink: 0; white-space: nowrap;
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: .75rem;
	padding: .7rem clamp(.8rem, 3vw, 2rem); min-width: clamp(90px, 20vw, 160px);
	color: rgba(255,255,255,.8); font-size: clamp(.7rem, 1.8vw, .85rem); font-weight: 600; letter-spacing: .05em; line-height: 1.3;
}
.ckdt-proof-icon { display: block; font-size: clamp(1.1rem, 3vw, 1.5rem); line-height: 1; margin-bottom: .2rem; }
.ckdt-proof-item strong {
	display: block; font-size: clamp(1.2rem, 4vw, 1.9rem); font-weight: 900; line-height: 1.1; letter-spacing: -.01em;
	color: oklch(0.82 0.2 60); text-shadow: 0 0 20px oklch(0.78 0.18 60 / .5); margin-bottom: .25rem;
}
.ckdt-lead { padding-top: 3rem; padding-bottom: 3.5rem; text-align: center; }
.ckdt-lead > * { margin-left: auto !important; margin-right: auto !important; }
.ckdt-badge {
	display: table; background: var(--ckdt-red); color: #fff; font-size: .95rem; font-weight: 700;
	padding: .45rem 1.1rem; border-radius: 2rem; margin-bottom: 1.2rem !important; letter-spacing: .04em; line-height: 1.5;
}
.ckdt-h1 {
	font-family: var(--ckdt-serif); font-size: clamp(1.3rem, 4vw, 2rem) !important; font-weight: 700;
	line-height: 1.65; margin-top: 0 !important; margin-bottom: 1.25rem !important; letter-spacing: .02em;
}
.ckdt-lead .ckdt-lead-text { font-size: clamp(.9rem, 2vw, 1rem); color: #444; line-height: 1.9; margin-bottom: 2rem !important; max-width: 640px; }
.ckdt-lead .ckdt-cta-pair { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; max-width: 640px; }
.ckdt-cta-pair > .wp-block-button { flex: 1 1 200px; margin: 0; }
.ckdt-cta-pair .wp-block-button__link { width: 100%; padding: .75rem 1.25rem !important; }
.ckdt-note { font-size: .78rem; color: #888; margin-top: .6rem !important; }

/* マーキー */
@keyframes ckdt-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.wp-block-gallery.ckdt-marquee {
	display: flex !important; flex-wrap: nowrap !important; gap: .75rem !important; width: max-content;
	margin: 0 0 30px !important; padding: 0 !important;
}
.ckdt-js .wp-block-gallery.ckdt-marquee.is-running { animation: ckdt-marquee 28s linear infinite; }
.ckdt-js .wp-block-gallery.ckdt-marquee.is-paused { animation-play-state: paused; }
.ckdt-marquee-wrap { overflow: hidden; width: 100%; }
.wp-block-gallery.ckdt-marquee > .wp-block-image {
	flex: 0 0 auto !important; width: auto !important; margin: 0 !important; border-radius: .5rem; overflow: hidden; cursor: zoom-in;
}
.wp-block-gallery.ckdt-marquee > .wp-block-image img {
	height: clamp(160px, 28vw, 240px) !important; width: auto !important; object-fit: cover; display: block; border-radius: .5rem;
	transition: transform .25s var(--ckdt-ease), filter .25s;
}
.wp-block-gallery.ckdt-marquee > .wp-block-image:hover img { transform: scale(1.04); filter: brightness(.85); }
@media (prefers-reduced-motion: reduce) { .ckdt-js .wp-block-gallery.ckdt-marquee.is-running { animation: none; } }

/* パララックス */
.ckdt-parallax { position: relative; overflow: hidden; height: 480px; line-height: 0; }
.ckdt-parallax .wp-block-image { position: absolute; inset: -7.5% 0 auto 0; height: 115%; margin: 0; }
.ckdt-parallax .wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; object-position: center 40%; display: block; transform: scale(1.15); will-change: transform; }
@media (max-width: 639px) { .ckdt-parallax { height: 320px; } }

/* ── 納品実績 ── */
.ckdt-works { background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%); padding-top: 5rem; padding-bottom: 5rem; }
.ckdt-works .ckdt-h2 { color: #f5f5f5; }
.wp-block-gallery.ckdt-works-grid { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 1rem !important; }
.wp-block-gallery.ckdt-works-grid > .wp-block-image {
	width: auto !important; margin: 0 !important; flex-direction: column !important; cursor: zoom-in;
	transition: transform .35s var(--ckdt-ease), box-shadow .35s var(--ckdt-ease);
}
.wp-block-gallery.ckdt-works-grid > .wp-block-image img {
	aspect-ratio: 16/9; height: auto !important; width: 100% !important; object-fit: cover; background: #e5e5e5;
	transition: transform .45s var(--ckdt-ease);
}
.wp-block-gallery.ckdt-works-grid > .wp-block-image:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.wp-block-gallery.ckdt-works-grid > .wp-block-image figcaption {
	position: static !important; background: none !important; padding: 0 !important; max-height: none !important; overflow: visible !important;
	color: #aaa !important; font-size: .8rem !important; text-align: left !important; margin-top: .6rem !important; letter-spacing: .02em; text-shadow: none !important;
	-webkit-mask-image: none !important; mask-image: none !important; backdrop-filter: none !important;
}
.wp-block-gallery.ckdt-works-grid > .wp-block-image::before { display: none !important; }
@media (max-width: 767px) { .wp-block-gallery.ckdt-works-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem !important; } }

/* ── 商品紹介 ── */
.ckdt-products { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.ckdt-products .ckdt-h2 { margin-bottom: 2rem !important; }
.ckdt-products-cols { gap: 1.5rem; margin: 0; }
.ckdt-zoom { overflow: hidden; }
.ckdt-zoom img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #e5e5e5; display: block; transition: transform .4s var(--ckdt-ease); }
.ckdt-zoom:hover img { transform: scale(1.03); }
.ckdt-main .wp-element-caption { font-size: .8rem; color: #777; margin-top: .6rem; letter-spacing: .02em; text-align: left; }

/* ── 特徴 ── */
.ckdt-features { background: linear-gradient(160deg, #fdf8f0 0%, #fef3e2 50%, #fdf8f0 100%); padding-top: 5rem; padding-bottom: 5rem; border-top: 1px solid oklch(0.9 0 0); }
.ckdt-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem !important; }
@media (max-width: 639px) { .ckdt-features-grid { grid-template-columns: 1fr !important; } }
.ckdt-feature { border-top: 2px solid var(--ckdt-ink); padding-top: 1.25rem; }
.ckdt-feature .wp-block-image { border-radius: 6px; overflow: hidden; margin-bottom: 1rem !important; }
.ckdt-feature .wp-block-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.ckdt-feature h3 {
	font-family: var(--ckdt-serif); font-size: clamp(.9rem, 2vw, 1rem); line-height: 1.6; margin: 0 0 .6rem;
	border-left: 3px solid var(--ckdt-ink); padding-left: .75rem;
}
.ckdt-feature p { font-size: .875rem; color: #555; line-height: 1.85; padding-left: .75rem; }

/* ── FAQ ── */
.ckdt-faq { background: linear-gradient(160deg, #f5f5f0 0%, #eeede8 50%, #f5f5f0 100%); padding-top: 5rem; padding-bottom: 5rem; }
.ckdt-qa { border-top: 1px solid #e5e5e5; margin-top: 0 !important; margin-bottom: 0 !important; }
.ckdt-qa:last-child { border-bottom: 1px solid #e5e5e5; }
.ckdt-qa summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
	padding: 1.25rem 0; font-family: var(--ckdt-serif); font-size: clamp(.9rem, 2vw, 1rem); font-weight: 700; line-height: 1.6;
}
.ckdt-qa summary::-webkit-details-marker { display: none; }
.ckdt-qa summary::before { content: "Q."; color: #888; margin-right: .6rem; font-family: var(--ckdt-sans); flex-shrink: 0; }
.ckdt-qa summary::after { content: "＋"; margin-left: auto; color: #888; font-size: 1.2rem; transition: transform .25s var(--ckdt-ease); flex-shrink: 0; font-family: var(--ckdt-sans); }
.ckdt-qa[open] summary::after { transform: rotate(45deg); }
.ckdt-qa > p { font-size: .9rem; color: #444; line-height: 1.9; padding: 0 0 1.5rem 1.4rem; border-left: 2px solid #e5e5e5; margin: 0 0 0 .2rem; }
.ckdt-qa > p::before { content: "A."; color: #888; margin-right: .5rem; }

/* ── 電話相談 ── */
.ckdt-consult {
	background: linear-gradient(135deg, #c0392b 0%, #922b21 40%, #7b241c 70%, #1a1a1a 100%);
	padding-top: 9.5rem; padding-bottom: 9.5rem; text-align: center;
}
.ckdt-consult h2 { color: #fff; font-size: clamp(1.2rem, 3.5vw, 1.6rem); margin-top: 0; margin-bottom: 1.5rem; line-height: 1.6; letter-spacing: .02em; }
.ckdt-consult p { color: rgba(255,255,255,.85); font-size: clamp(.9rem, 2vw, 1rem); line-height: 2; margin-bottom: 2.5rem !important; }
.ckdt-consult .is-style-ckdt-phone .wp-block-button__link { font-size: clamp(1rem, 2.5vw, 1.1rem); }

/* ── 問い合わせ ── */
.ckdt-contact { background: linear-gradient(160deg, #f5f5f0 0%, #eeede8 50%, #f5f5f0 100%); padding-top: 5rem; padding-bottom: 5rem; border-top: 1px solid oklch(0.9 0 0); }
.ckdt-contact .ckdt-h2 { margin-bottom: .75rem !important; }
.ckdt-contact-lead { font-size: .9rem; color: #555; line-height: 1.8; margin-bottom: 2.5rem !important; }
.ckdt-contact-line { margin-bottom: 2rem; }
.ckdt-contact-line .wp-block-button__link { padding: .75rem 1.75rem !important; }
.ckdt-form, .ckdt-form-done { background: #fff; border: 1px solid #e0e0e0; border-radius: .4rem; padding: 2rem 1.75rem; display: flex; flex-direction: column; gap: 1.5rem; }
.ckdt-form-done { text-align: center; padding: 3rem 2rem; gap: .75rem; font-size: .875rem; color: #555; line-height: 1.8; }
.ckdt-form-done-icon { font-size: 2rem; }
.ckdt-form-done-title { font-size: 1rem; font-weight: 700; color: var(--ckdt-ink); }
.ckdt-form-again { display: inline-block; margin-top: .75rem; font-size: .85rem; color: #888; border: 1px solid #ccc; border-radius: .25rem; padding: .4rem 1rem; text-decoration: none; }
.ckdt-field label { display: block; font-size: .85rem; font-weight: 700; color: #333; margin-bottom: .4rem; }
.ckdt-req, .ckdt-opt { display: inline-block; font-size: .7rem; padding: .05rem .35rem; border-radius: .15rem; margin-left: .4rem; vertical-align: middle; letter-spacing: .04em; font-weight: 400; }
.ckdt-req { color: #fff; background: var(--ckdt-ink); }
.ckdt-opt { color: #888; border: 1px solid #ccc; }
.ckdt-field input, .ckdt-field textarea {
	width: 100%; box-sizing: border-box; padding: .75rem 1rem; border: 1px solid #d0d0d0; border-radius: .25rem;
	font-family: var(--ckdt-sans); font-size: .95rem; color: var(--ckdt-ink); background: #fff; outline: none; transition: border-color .2s;
}
.ckdt-field textarea { resize: vertical; min-height: 120px; }
.ckdt-field input:focus, .ckdt-field textarea:focus { border-color: var(--ckdt-ink); }
.ckdt-field.has-error input, .ckdt-field.has-error textarea { border-color: #c0392b; }
.ckdt-field-error { font-size: .8rem; color: #c0392b; margin-top: .3rem !important; }
.ckdt-form-global-error { font-size: .875rem; color: #c0392b; padding: .75rem 1rem; background: #fdf2f2; border: 1px solid #f5c6c6; border-radius: .25rem; }
.ckdt-submit {
	font-family: var(--ckdt-sans); font-size: 1rem; font-weight: 700; color: #fff; background: var(--ckdt-ink); border: none;
	border-radius: .25rem; padding: .9rem 1.5rem; cursor: pointer; letter-spacing: .04em; width: 100%; transition: background-color .2s, transform .16s var(--ckdt-ease);
}
.ckdt-submit:hover { background: #333; }
.ckdt-submit:active { transform: scale(.97); }
.ckdt-submit[disabled] { background: #888; cursor: not-allowed; }
.ckdt-form-note { font-size: .75rem; color: #999; text-align: center; line-height: 1.7; }
.ckdt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ── 会社情報 ── */
.ckdt-company { padding-top: 7rem; padding-bottom: 4rem; border-top: 1px solid oklch(0.9 0 0); }
.ckdt-company-title { font-size: .75rem !important; color: #999; letter-spacing: .12em; margin-top: 0 !important; margin-bottom: 1.5rem !important; }
.ckdt-company-table { margin: 0; }
.ckdt-company-table table { border-collapse: collapse; width: auto; font-size: .9rem; color: #333; line-height: 1.7; }
.ckdt-company-table td { border: none !important; padding: .3rem 1.5rem .3rem 0 !important; vertical-align: top; }
.ckdt-company-table td:first-child { color: #888; white-space: nowrap; }
.ckdt-company-table a { color: var(--ckdt-ink); text-decoration: none; letter-spacing: .04em; }

/* ── フッター ── */
.ckdt-footer { background: var(--ckdt-ink); padding: 4rem 1.25rem; text-align: center; }
.ckdt-footer p { margin: 0; }
.ckdt-footer-lead { font-size: .8rem; color: #aaa; margin-bottom: 1rem !important; letter-spacing: .04em; }
.ckdt-footer-tel { margin-bottom: 1.5rem !important; line-height: 1.2; }
.ckdt-footer-tel a {
	display: inline-flex; align-items: center; gap: .3em; color: #fff; text-decoration: none;
	font-size: clamp(1.8rem, 6vw, 2.8rem); font-weight: 700; letter-spacing: .06em;
}
.ckdt-footer-tel a::before { content: ""; width: .85em; height: .85em; background: #fff; -webkit-mask: var(--ckdt-tel-icon) center/contain no-repeat; mask: var(--ckdt-tel-icon) center/contain no-repeat; }
.ckdt-footer .wp-block-buttons { margin-bottom: 3rem; }
.ckdt-copy { font-size: .75rem; color: #666; margin-top: 1rem !important; }
@media (max-width: 767px) { .ckdt-footer { padding-bottom: 7.5rem; } }

/* ── 固定CTAバー（スマホのみ） ── */
.ckdt-sticky-cta {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
	padding: 1rem 1rem 1.25rem;
	background: linear-gradient(135deg, var(--ckdt-red) 0%, var(--ckdt-red-dark) 100%);
	box-shadow: 0 -4px 20px oklch(0.5 0.22 27 / .45);
}
.ckdt-sticky-cta .wp-block-buttons { display: flex; flex-wrap: nowrap; gap: .75rem; }
.ckdt-sticky-cta .wp-block-button { flex: 1; margin: 0; }
.ckdt-sticky-cta .wp-block-button__link { width: 100%; padding: .85rem .5rem !important; font-size: clamp(.8rem, 3.5vw, 1rem) !important; box-shadow: none !important; }
.is-style-ckdt-sticky-phone .wp-block-button__link { background: var(--ckdt-red-dark); }
@media (min-width: 768px) { .ckdt-sticky-cta { display: none !important; } }

/* ── LINEポップアップ ── */
@keyframes ckdt-popup-in { from { opacity: 0; transform: translateY(1rem) scale(.95); } to { opacity: 1; transform: none; } }
.ckdt-line-popup {
	position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 50; width: 17rem; box-sizing: border-box;
	background: #fff; border-radius: 1rem; box-shadow: 0 8px 32px rgba(0,0,0,.18); border: 1px solid #f0f0f0; padding: 1.25rem;
	animation: ckdt-popup-in .5s var(--ckdt-ease) both;
}
.ckdt-line-popup.is-closed { display: none; }
.ckdt-line-popup p { margin: 0; }
.ckdt-line-popup-head { position: relative; padding-left: 3.25rem; min-height: 2.5rem; font-size: .75rem; color: #6b7280; line-height: 1.45; margin-bottom: .75rem !important; }
.ckdt-line-popup-head strong { font-size: .875rem; color: #1f2937; }
.ckdt-line-popup-head::before { content: ""; position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.03 2 11c0 2.7 1.3 5.12 3.36 6.82-.15.54-.57 1.96-.65 2.27-.1.38.14.38.29.28.12-.08 1.56-1.06 2.19-1.5.83.14 1.69.22 2.57.22 5.52 0 10-4.03 10-9C22 6.03 17.52 2 12 2z'/%3E%3C/svg%3E"); background-color: var(--ckdt-line); background-repeat: no-repeat; background-position: center; background-size: 22px; }
.ckdt-line-popup-text { font-size: .875rem; color: #4b5563; line-height: 1.6; margin-bottom: 1rem !important; }
.ckdt-line-popup .is-style-ckdt-line-plain .wp-block-button__link { width: 100%; border-radius: .75rem; font-size: .875rem; box-shadow: none; }
.ckdt-line-popup .is-style-ckdt-line-plain .wp-block-button__link:hover { opacity: .9; }
.ckdt-popup-close { position: absolute; top: .6rem; right: .6rem; background: none; border: none; cursor: pointer; color: #9ca3af; padding: .25rem; line-height: 1; font-size: 1.1rem; }
@media (max-width: 767px) { .ckdt-line-popup { right: 1rem; bottom: 6.5rem; width: min(17rem, calc(100vw - 2rem)); } }

/* ── ライトボックス ── */
@keyframes ckdt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ckdt-scale { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
.ckdt-lb { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; animation: ckdt-fade .22s var(--ckdt-ease); }
.ckdt-lb-inner { max-width: min(90vw, 900px); width: 100%; animation: ckdt-scale .25s var(--ckdt-ease); }
.ckdt-lb img { width: 100%; max-height: 80vh; object-fit: contain; display: block; border-radius: 4px; }
.ckdt-lb-cap { color: #ccc; font-size: .9rem; text-align: center; margin-top: .75rem; letter-spacing: .04em; }
.ckdt-lb-cap span { color: #666; margin-left: .75rem; font-size: .8rem; }
.ckdt-lb button { position: absolute; border: none; color: #fff; cursor: pointer; z-index: 1001; }
.ckdt-lb-close { top: 1rem; right: 1.25rem; background: none; font-size: 2rem; line-height: 1; opacity: .85; }
.ckdt-lb-prev, .ckdt-lb-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 1.75rem; }
.ckdt-lb-prev:hover, .ckdt-lb-next:hover { background: rgba(255,255,255,.25); }
.ckdt-lb-prev { left: 1rem; } .ckdt-lb-next { right: 1rem; }

/* ── フェードイン（フロントのみ） ── */
@media (prefers-reduced-motion: no-preference) {
	.ckdt-js .ckdt-fade { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ckdt-ease), transform .5s var(--ckdt-ease); }
	.ckdt-js .ckdt-fade.is-visible { opacity: 1; transform: none; }
}

/* ── 通常ページ ── */
.ckdt-page { padding-top: 3rem; padding-bottom: 4rem; }
.ckdt-page-title { font-size: clamp(1.3rem, 4vw, 1.8rem); margin-bottom: 2rem; }
.ckdt-page .wp-block-post-content > * + * { margin-top: 1.2em; }

/* ── エディター内の見え方調整 ── */
.editor-styles-wrapper .ckdt-sticky-cta, .editor-styles-wrapper .ckdt-line-popup { position: relative; inset: auto; width: auto; }
.editor-styles-wrapper .ckdt-parallax { height: auto; }
.editor-styles-wrapper .ckdt-parallax .wp-block-image { position: static; height: auto; }
.editor-styles-wrapper .ckdt-parallax img { transform: none; height: auto !important; }
.editor-styles-wrapper .wp-block-gallery.ckdt-marquee { width: auto; flex-wrap: wrap !important; }
