/*
Theme Name: One LP Pro
Theme URI: https://tsumanai-log.com/one-lp-pro
Description: ジム・サロン・スクール向けの長尺LP部品キット。繰り返しCTA帯、比較表、料金プラン、プロフィール、ステップ、ビフォーアフターを管理画面から組み立てます。検索順位や売上は保証しません。フォーム送信内容はWordPressのデータベースに保存されます。
Version: 1.0.0
Author: Taiji Shinohara
Author URI: https://tsumanai-log.com/
Text Domain: one-lp-pro
Domain Path: /languages
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 6.0
Requires PHP: 8.0
Tested up to: 7.1
*/

:root {
	--lp-accent: #c2410c;
	--lp-btn-bg: linear-gradient(135deg, #f97316, #c2410c);
	--lp-bg-soft: #fff4eb;
	--lp-border-soft: #fdba74;
	--lp-hero-bg: radial-gradient(1200px 500px at 50% -10%, #ffedd5 0%, #ffffff 55%);
	--lp-text: #0f172a;
	--lp-sub: #475569;
	--lp-border: #e2e8f0;
	--lp-surface: #ffffff;
	--lp-radius: 18px;
	--lp-btn-radius: 999px;
	--lp-shadow: 0 14px 36px rgba(194, 65, 12, 0.16);
	--lp-font: "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
	--lp-display: "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
	--lp-space-section: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.one-lp-body {
	margin: 0;
	color: var(--lp-text);
	background:
		radial-gradient(900px 420px at 100% 0%, color-mix(in srgb, var(--lp-bg-soft) 85%, transparent) 0%, transparent 60%),
		#ffffff;
	font-family: var(--lp-font);
	line-height: 1.75;
	font-size: 16px;
}

body.one-lp-preset-trust {
	--lp-display: "Hiragino Sans", "Yu Gothic UI", sans-serif;
	--lp-space-section: 88px;
}

body.one-lp-preset-sales {
	--lp-space-section: 72px;
}

body.one-lp-preset-luxury {
	--lp-display: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
	--lp-space-section: 96px;
	letter-spacing: 0.02em;
}

body.one-lp-preset-minimal {
	--lp-space-section: 64px;
	background: #ffffff;
}

body.one-lp-preset-natural {
	--lp-space-section: 80px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.skip-link:focus {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 10000;
	padding: 12px 20px;
	background: #0f172a;
	color: #ffffff;
	text-decoration: none;
	border-radius: 8px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--lp-accent);
	outline-offset: 2px;
}

.container {
	width: min(920px, calc(100% - 40px));
	margin: 0 auto;
}

.site-branding {
	padding: 18px 0 0;
	background: transparent;
}

.site-branding .custom-logo {
	display: block;
	height: 44px;
	width: auto;
}

/* —— LP design system —— */
.lp-section {
	padding: var(--lp-space-section) 0;
	position: relative;
}

.lp-section-soft {
	background: var(--lp-bg-soft);
}

.lp-section-title {
	margin: 0 0 36px;
	text-align: center;
	font-family: var(--lp-display);
	font-size: clamp(24px, 4vw, 34px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.35;
}

.lp-lead {
	margin: 0 auto 24px;
	max-width: 36em;
	color: var(--lp-sub);
	font-size: 1.05rem;
	text-align: center;
}

.lp-badge {
	display: inline-block;
	margin: 0 0 18px;
	padding: 6px 14px;
	color: var(--lp-accent);
	background: var(--lp-surface);
	border: 1px solid var(--lp-border-soft);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
}

.lp-hero {
	padding: 88px 0 72px;
	background: var(--lp-hero-bg);
	text-align: center;
	overflow: hidden;
}

.lp-hero-atmosphere {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(115deg, transparent 0%, transparent 42%, color-mix(in srgb, var(--lp-accent) 8%, transparent) 42.5%, transparent 70%),
		radial-gradient(ellipse 70% 50% at 50% -20%, color-mix(in srgb, var(--lp-accent) 14%, transparent), transparent 70%);
	opacity: 0.9;
	animation: one-lp-drift 14s ease-in-out infinite alternate;
}

.lp-hero-inner {
	position: relative;
	z-index: 1;
}

.lp-hero-title {
	margin: 0 0 18px;
	font-family: var(--lp-display);
	font-size: clamp(30px, 5.5vw, 46px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.3;
	animation: one-lp-rise 0.7s ease both;
}

.lp-hero .lp-lead,
.lp-hero .lp-badge,
.lp-hero .lp-cta-row {
	animation: one-lp-rise 0.8s ease both;
}

.lp-hero .lp-lead { animation-delay: 0.08s; }
.lp-hero .lp-cta-row { animation-delay: 0.16s; }

.lp-hero-image {
	display: block;
	width: 100%;
	max-width: 860px;
	height: auto;
	margin: 36px auto 0;
	border-radius: var(--lp-radius);
	box-shadow: var(--lp-shadow);
	object-fit: cover;
	animation: one-lp-rise 0.9s ease both;
	animation-delay: 0.22s;
}

@keyframes one-lp-rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes one-lp-drift {
	from { transform: translate3d(0, 0, 0) scale(1); }
	to { transform: translate3d(-1.5%, 1%, 0) scale(1.03); }
}

.lp-cta-row {
	margin: 28px 0 8px;
	text-align: center;
}

.lp-btn {
	display: inline-block;
	padding: 16px 36px;
	color: #ffffff;
	background: var(--lp-btn-bg);
	border: 0;
	border-radius: var(--lp-btn-radius);
	font: inherit;
	font-weight: 800;
	font-size: 17px;
	text-decoration: none;
	cursor: pointer;
	box-shadow: var(--lp-shadow);
	transition: transform 0.2s ease, filter 0.2s ease;
}

.lp-btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.05);
	color: #ffffff;
}

.lp-btn-light {
	color: var(--lp-accent);
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.lp-btn-light:hover {
	color: var(--lp-accent);
}

.lp-mid-cta {
	padding: 56px 0;
	background: var(--lp-accent);
	color: #ffffff;
	text-align: center;
}

.lp-mid-cta-title {
	margin: 0 0 12px;
	font-size: clamp(22px, 3.5vw, 28px);
	font-weight: 800;
}

.lp-mid-cta .lp-lead {
	color: rgba(255, 255, 255, 0.9);
}

.lp-grid {
	display: grid;
	gap: 20px;
}

.lp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.lp-card {
	padding: 28px 24px;
	background: var(--lp-surface);
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	box-shadow: var(--lp-shadow);
}

.lp-card-accent {
	border-top: 4px solid var(--lp-accent);
}

.lp-card-title {
	margin: 0 0 12px;
	font-size: 1.15rem;
	font-weight: 800;
}

.lp-card-body {
	color: var(--lp-sub);
	font-size: 0.98rem;
}

.lp-card-body p:last-child { margin-bottom: 0; }

.lp-pain-list {
	margin: 0;
	padding: 0;
	list-style: none;
	max-width: 640px;
	margin-inline: auto;
}

.lp-pain-list li {
	margin: 12px 0;
	padding: 16px 18px 16px 44px;
	position: relative;
	background: var(--lp-surface);
	border: 1px solid var(--lp-border-soft);
	border-radius: 12px;
	font-weight: 600;
}

.lp-pain-list li::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 50%;
	width: 10px;
	height: 10px;
	margin-top: -5px;
	border-radius: 50%;
	background: var(--lp-accent);
}

.lp-cause {
	margin: 28px auto 0;
	max-width: 640px;
	padding: 16px 20px;
	color: var(--lp-accent);
	background: var(--lp-surface);
	border: 1px dashed var(--lp-border-soft);
	border-radius: 12px;
	text-align: center;
	font-weight: 700;
}

.lp-stat {
	padding: 28px 20px;
	background: var(--lp-surface);
	border-radius: var(--lp-radius);
	border: 1px solid var(--lp-border);
	text-align: center;
}

.lp-stat-number {
	margin: 0 0 8px;
	color: var(--lp-accent);
	font-size: clamp(28px, 4vw, 36px);
	font-weight: 900;
	letter-spacing: -0.03em;
}

.lp-stat-label {
	margin: 0;
	color: var(--lp-sub);
	font-size: 0.95rem;
	font-weight: 600;
}

.lp-voice-body {
	color: var(--lp-text);
	font-size: 1rem;
}

.lp-voice-meta {
	margin: 16px 0 0;
	color: var(--lp-sub);
	font-size: 0.92rem;
}

.lp-voice-meta span {
	margin-left: 8px;
}

.lp-faq {
	max-width: 720px;
	margin: 0 auto;
}

.lp-faq-item {
	margin-bottom: 12px;
	background: var(--lp-surface);
	border: 1px solid var(--lp-border);
	border-radius: 12px;
	overflow: hidden;
}

.lp-faq-q {
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	color: inherit;
	background: transparent;
	border: 0;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	text-align: left;
}

.lp-faq-a {
	padding: 0 20px 18px;
	color: var(--lp-sub);
	border-top: 1px dashed var(--lp-border);
}

.lp-offer {
	max-width: 680px;
	margin: 0 auto;
	padding: 40px 28px;
	background: var(--lp-bg-soft);
	border: 1px solid var(--lp-border-soft);
	border-radius: calc(var(--lp-radius) + 4px);
	text-align: center;
}

.lp-prices { margin-bottom: 8px; }
.lp-price-old {
	margin: 0;
	color: #64748b;
	text-decoration: line-through;
	font-size: 15px;
}
.lp-price-new {
	margin: 6px 0 0;
	color: var(--lp-accent);
	font-size: 40px;
	font-weight: 900;
}

.lp-form {
	margin-top: 28px;
	padding: 28px 24px;
	background: var(--lp-surface);
	border: 1px solid var(--lp-border);
	border-radius: 12px;
	text-align: left;
}

.lp-form-note {
	margin: 0 0 16px;
	padding: 12px 14px;
	background: var(--lp-bg-soft);
	border-radius: 8px;
	color: var(--lp-sub);
	font-size: 13px;
	font-weight: 600;
}

.lp-form label {
	display: block;
	margin: 14px 0 6px;
	font-weight: 700;
}

.lp-form input[type="text"],
.lp-form input[type="email"],
.lp-form input[type="tel"],
.lp-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font: inherit;
}

.form-status {
	padding: 15px;
	border-radius: 8px;
	font-weight: 700;
	text-align: center;
}

.form-status.is-success { background: #dcfce7; color: #15803d; }
.form-status.is-error { background: #fef2f2; color: #b91c1c; }

.privacy-note { color: var(--lp-sub); font-size: 13px; margin: 16px 0; }

.consent-field label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-weight: 600;
}

.consent-field input { margin-top: 4px; }
.g-recaptcha { margin: 16px 0; }
.hp-field { position: absolute !important; left: -9999px !important; }

.floating-cta-wrap {
	position: fixed;
	z-index: 1000;
	bottom: 20px;
	left: 50%;
	transform: translate(-50%, 120px);
	transition: transform 0.3s ease;
}

.floating-cta-wrap.is-active { transform: translate(-50%, 0); }

.floating-cta-btn {
	display: block;
	padding: 14px 28px;
	color: #ffffff;
	background: var(--lp-btn-bg);
	border-radius: var(--lp-btn-radius);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

/* Preset personality */
body.one-lp-preset-trust .lp-card,
body.one-lp-preset-trust .lp-stat,
body.one-lp-preset-trust .lp-offer {
	border-color: var(--lp-border-soft);
	box-shadow: none;
}

body.one-lp-preset-trust .lp-badge {
	border-radius: 4px;
	text-transform: none;
	letter-spacing: 0.04em;
}

body.one-lp-preset-sales .lp-mid-cta {
	background: linear-gradient(120deg, var(--lp-accent), color-mix(in srgb, var(--lp-accent) 70%, #000));
}

body.one-lp-preset-sales .lp-btn {
	letter-spacing: 0.04em;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

body.one-lp-preset-luxury .lp-hero-title,
body.one-lp-preset-luxury .lp-section-title {
	font-weight: 600;
	letter-spacing: 0.06em;
}

body.one-lp-preset-luxury .lp-badge {
	border-radius: 0;
	border-width: 1px 0;
	background: transparent;
}

body.one-lp-preset-luxury .lp-card,
body.one-lp-preset-luxury .lp-offer,
body.one-lp-preset-luxury .lp-hero-image {
	border-radius: 2px;
}

body.one-lp-preset-minimal .lp-card,
body.one-lp-preset-minimal .lp-stat,
body.one-lp-preset-minimal .lp-offer,
body.one-lp-preset-minimal .lp-faq-item,
body.one-lp-preset-minimal .lp-form {
	border-radius: 0;
	box-shadow: none;
	border-color: #e5e7eb;
}

body.one-lp-preset-minimal .lp-badge {
	border-radius: 0;
	border-color: #111827;
	color: #111827;
}

body.one-lp-preset-minimal .lp-btn,
body.one-lp-preset-minimal .floating-cta-btn {
	box-shadow: none;
}

body.one-lp-preset-natural .lp-pain-list li {
	border-radius: 999px;
}

body.one-lp-preset-natural .lp-section-soft {
	background:
		radial-gradient(circle at 10% 20%, color-mix(in srgb, var(--lp-border-soft) 55%, transparent), transparent 40%),
		var(--lp-bg-soft);
}

.lp-hero-placeholder {
	width: 100%;
	max-width: 720px;
	margin: 40px auto 0;
	padding: 28px 24px 24px;
	background: var(--lp-surface);
	border: 1px solid var(--lp-border-soft);
	border-radius: var(--lp-radius);
	box-shadow: var(--lp-shadow);
	text-align: left;
}

.lp-hero-placeholder-bar {
	display: block;
	height: 14px;
	width: 72%;
	margin-bottom: 12px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--lp-accent) 22%, var(--lp-bg-soft));
}

.lp-hero-placeholder-bar.is-short {
	width: 48%;
	height: 10px;
	opacity: 0.8;
}

.lp-hero-placeholder-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 22px;
}

.lp-hero-placeholder-cards span {
	display: block;
	height: 86px;
	border-radius: calc(var(--lp-radius) / 2);
	background: var(--lp-bg-soft);
	border: 1px solid var(--lp-border-soft);
}

.lp-legal-body {
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 28px;
	background: var(--lp-surface);
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	color: var(--lp-sub);
	font-size: 0.95rem;
	line-height: 1.8;
	text-align: left;
}

.lp-legal-body p:last-child { margin-bottom: 0; }

.footer-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 16px;
	margin: 10px 0 0;
}

.footer-nav a {
	color: #64748b;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.footer-nav a:hover { color: var(--lp-accent); }

.footer {
	padding: 28px 0;
	color: #64748b;
	border-top: 1px solid var(--lp-border);
	font-size: 13px;
	text-align: center;
}

body.one-lp-has-float {
	padding-bottom: 96px;
}

.comments-area {
	margin-top: 28px;
}

.comment-list {
	margin: 0 0 24px;
	padding-left: 1.2em;
}

.text-center { text-align: center; }
.entry-list { margin-bottom: 20px; }
.entry-list h2 { margin-top: 0; }
.entry-list h2 a { color: inherit; text-decoration: none; }
.entry-list h2 a:hover { color: var(--lp-accent); }

@media (max-width: 768px) {
	.lp-grid-2,
	.lp-grid-3 { grid-template-columns: 1fr; }
	.lp-section { padding: 48px 0; }
	.lp-hero { padding: 56px 0 40px; }
	.container { width: min(100% - 28px, 920px); }
	.lp-hero-placeholder-cards { grid-template-columns: 1fr; }
	.floating-cta-wrap { max-width: calc(100% - 24px); }
	.floating-cta-btn { white-space: normal; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		scroll-behavior: auto !important;
		animation: none !important;
		transition: none !important;
	}
}


/* —— One LP Pro components —— */
.lp-cta-band {
	padding: 36px 0;
	background: linear-gradient(105deg, var(--lp-accent) 0%, color-mix(in srgb, var(--lp-accent) 75%, #000) 100%);
	color: #fff;
}
.lp-cta-band .container,
.lp-cta-band-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.lp-cta-band-copy { flex: 1 1 280px; }
.lp-cta-band-action { flex: 0 0 auto; }
.lp-cta-band-title { margin: 0 0 8px; font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 800; }
.lp-cta-band-text { margin: 0; opacity: .92; }
.lp-btn-band { background: #fff; color: var(--lp-accent); box-shadow: none; }
.lp-btn-band:hover { filter: brightness(0.97); color: var(--lp-accent); }

.lp-table-wrap { overflow-x: auto; border-radius: var(--lp-radius); border: 1px solid var(--lp-border); }
.lp-compare-table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--lp-surface); }
.lp-compare-table th, .lp-compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--lp-border); text-align: left; vertical-align: top; }
.lp-compare-table thead th { background: var(--lp-accent); color: #fff; font-weight: 700; }
.lp-compare-table tbody th { background: var(--lp-bg-soft); font-weight: 700; width: 28%; }
.lp-compare-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--lp-bg-soft) 55%, #fff); }

.lp-plan-card {
	padding: 28px 24px;
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	background: var(--lp-surface);
	box-shadow: var(--lp-shadow);
}
.lp-plan-card.is-highlight {
	border-color: var(--lp-accent);
	outline: 2px solid color-mix(in srgb, var(--lp-accent) 35%, transparent);
}
.lp-plan-name { margin: 0 0 8px; font-size: 1.15rem; font-weight: 800; }
.lp-plan-price { margin: 0; font-size: 1.8rem; font-weight: 900; color: var(--lp-accent); }
.lp-plan-note { margin: 6px 0 16px; color: var(--lp-sub); font-size: .92rem; }
.lp-plan-features { margin: 0; padding-left: 1.1em; color: var(--lp-sub); }
.lp-plan-features li { margin: 6px 0; }

.lp-profile-card { text-align: center; padding: 24px 18px; background: var(--lp-surface); border: 1px solid var(--lp-border); border-radius: var(--lp-radius); }
.lp-profile-photo { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin: 0 auto 14px; display: block; }
.lp-profile-photo.is-placeholder { background: var(--lp-bg-soft); border: 1px dashed var(--lp-border-soft); }
.lp-profile-name { margin: 0 0 4px; font-weight: 800; }
.lp-profile-role { margin: 0 0 10px; color: var(--lp-accent); font-weight: 700; font-size: .92rem; }
.lp-profile-bio { margin: 0; color: var(--lp-sub); font-size: .95rem; }

.lp-steps { list-style: none; margin: 0; padding: 0; max-width: 720px; margin-inline: auto; }
.lp-step { display: flex; gap: 18px; margin: 0 0 22px; align-items: flex-start; }
.lp-step-num,
.lp-step-label {
	flex: 0 0 auto;
	min-width: 72px;
	padding: 8px 10px;
	text-align: center;
	font-weight: 800;
	font-size: .85rem;
	color: #fff;
	background: var(--lp-accent);
	border-radius: var(--lp-btn-radius);
}
.lp-step-body { flex: 1 1 auto; }
.lp-step-title { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; }
.lp-step-desc { margin: 0; color: var(--lp-sub); }

.lp-ba-card { padding: 24px; background: var(--lp-surface); border: 1px solid var(--lp-border); border-radius: var(--lp-radius); }
.lp-ba-meta { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 14px; color: var(--lp-sub); font-size: .92rem; }
.lp-ba-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-ba-col { padding: 14px; background: var(--lp-bg-soft); border-radius: calc(var(--lp-radius) - 4px); }
.lp-ba-col.is-after { background: color-mix(in srgb, var(--lp-accent) 12%, #fff); }
.lp-ba-label { display: block; margin-bottom: 6px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; color: var(--lp-accent); }
.lp-ba-metric { margin: 14px 0 0; font-weight: 800; color: var(--lp-accent); text-align: center; }

@media (max-width: 768px) {
	.lp-cta-band .container,
	.lp-cta-band-inner { flex-direction: column; text-align: center; }
	.lp-ba-cols { grid-template-columns: 1fr; }
}