/*
Theme Name: One LP
Theme URI: https://tsumanai-log.com/one-lp
Description: WordPress初心者でも、管理画面から入力するだけで1枚のランディングページを公開できるテーマ。検索順位や売上を保証するものではありません。フォーム送信内容はWordPressのデータベースに保存されます。
Version: 4.0.0
Author: Taiji Shinohara
Author URI: https://tsumanai-log.com/
Text Domain: one-lp
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.3
Tested up to: 6.8
*/

:root {
	--lp-accent: #0f766e;
	--lp-btn-bg: linear-gradient(135deg, #0d9488, #0f766e);
	--lp-bg-soft: #f0fdfa;
	--lp-border-soft: #99f6e4;
	--lp-hero-bg: linear-gradient(160deg, #f0fdfa 0%, #ffffff 55%, #ecfeff 100%);
	--lp-text: #0f172a;
	--lp-sub: #475569;
	--lp-border: #e2e8f0;
	--lp-surface: #ffffff;
	--lp-radius: 16px;
	--lp-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
	--lp-font: "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.one-lp-body {
	margin: 0;
	color: var(--lp-text);
	background: #ffffff;
	font-family: var(--lp-font);
	line-height: 1.75;
	font-size: 16px;
}

.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: 72px 0;
}

.lp-section-soft {
	background: var(--lp-bg-soft);
}

.lp-section-title {
	margin: 0 0 36px;
	text-align: center;
	font-size: clamp(24px, 4vw, 32px);
	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: 80px 0 64px;
	background: var(--lp-hero-bg);
	text-align: center;
}

.lp-hero-title {
	margin: 0 0 18px;
	font-size: clamp(30px, 5.5vw, 44px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.3;
}

.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;
}

.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: 999px;
	font: inherit;
	font-weight: 800;
	font-size: 17px;
	text-decoration: none;
	cursor: pointer;
	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);
}

.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 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: 999px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.footer {
	padding: 28px 0;
	color: #64748b;
	border-top: 1px solid var(--lp-border);
	font-size: 13px;
	text-align: center;
}

.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); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		scroll-behavior: auto !important;
		animation: none !important;
		transition: none !important;
	}
}
