/**
 * GPTXT Article Base CSS
 *
 * Phase14:
 * - 全パターン共通のベーススタイル
 * - パターンCSSで上書きする前提
 */

/* =========================
   Wrapper
========================= */
.gptxt-article-wrap {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 16px;
	font-size: 16px;
	line-height: 1.7;
	color: #333;
	box-sizing: border-box;
}

/* =========================
   Title
========================= */
.gptxt-title {
	font-size: 28px;
	font-weight: bold;
	line-height: 1.4;
	margin-bottom: 20px;
}

/* =========================
   Image
========================= */
.gptxt-img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
	margin-bottom: 20px;
}

/* =========================
   Link (wrap image)
========================= */
.gptxt-link {
	display: block;
	margin-bottom: 16px;
	text-decoration: none;
}

/* =========================
   Button
========================= */
.gptxt-btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 14px 16px;
	margin: 16px 0 24px;
	font-size: 16px;
	font-weight: bold;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.2s ease;
}

/* =========================
   Headings
========================= */
.gptxt-headding {
	font-size: 22px;
	font-weight: bold;
	margin: 32px 0 16px;
	line-height: 1.5;
}

/* =========================
   Text blocks
========================= */
.gptxt-txt {
	margin-bottom: 14px;
	line-height: 1.8;
}

/* =========================
   Spacing Adjust
========================= */
.gptxt-article-wrap p:last-child {
	margin-bottom: 0;
}

/* =========================
   Mobile
========================= */
@media screen and (max-width: 640px) {
	.gptxt-article-wrap {
		font-size: 15px;
		margin: 24px auto;
	}

	.gptxt-title {
		font-size: 22px;
	}

	.gptxt-headding {
		font-size: 18px;
	}
}

/* =========================
   Article Color Variables
========================= */
.gptxt-article-wrap,
.gptxt-article-wrap.gptxt-color-default,
.gptxt-article-wrap.gptxt-color-blue {
	--gptxt-article-bg: #f6f8fb;
	--gptxt-article-surface: #ffffff;
	--gptxt-article-soft-bg: #eef6ff;
	--gptxt-article-soft-bg-2: #dbeafe;
	--gptxt-article-border: #d8e6f3;
	--gptxt-article-border-strong: #1d4ed8;
	--gptxt-article-accent: #1d4ed8;
	--gptxt-article-accent-2: #4f8cff;
	--gptxt-article-title: #17324d;
	--gptxt-article-heading: #15324f;
	--gptxt-article-text: #334155;
}

.gptxt-article-wrap.gptxt-color-green {
	--gptxt-article-bg: #f0fdf4;
	--gptxt-article-soft-bg: #ecfdf5;
	--gptxt-article-soft-bg-2: #dcfce7;
	--gptxt-article-border: #bbf7d0;
	--gptxt-article-border-strong: #16a34a;
	--gptxt-article-accent: #16a34a;
	--gptxt-article-accent-2: #22c55e;
	--gptxt-article-title: #14532d;
	--gptxt-article-heading: #166534;
}

.gptxt-article-wrap.gptxt-color-red {
	--gptxt-article-bg: #fef2f2;
	--gptxt-article-soft-bg: #fff1f2;
	--gptxt-article-soft-bg-2: #fee2e2;
	--gptxt-article-border: #fecaca;
	--gptxt-article-border-strong: #dc2626;
	--gptxt-article-accent: #dc2626;
	--gptxt-article-accent-2: #ef4444;
	--gptxt-article-title: #7f1d1d;
	--gptxt-article-heading: #991b1b;
}

.gptxt-article-wrap.gptxt-color-yellow {
	--gptxt-article-bg: #fffbeb;
	--gptxt-article-soft-bg: #fefce8;
	--gptxt-article-soft-bg-2: #fef3c7;
	--gptxt-article-border: #fde68a;
	--gptxt-article-border-strong: #eab308;
	--gptxt-article-accent: #eab308;
	--gptxt-article-accent-2: #facc15;
	--gptxt-article-title: #713f12;
	--gptxt-article-heading: #854d0e;
}

.gptxt-article-wrap.gptxt-color-orange {
	--gptxt-article-bg: #fff7ed;
	--gptxt-article-soft-bg: #fff7ed;
	--gptxt-article-soft-bg-2: #ffedd5;
	--gptxt-article-border: #fed7aa;
	--gptxt-article-border-strong: #f97316;
	--gptxt-article-accent: #f97316;
	--gptxt-article-accent-2: #fb923c;
	--gptxt-article-title: #7c2d12;
	--gptxt-article-heading: #9a3412;
}

.gptxt-article-wrap.gptxt-color-purple {
	--gptxt-article-bg: #faf5ff;
	--gptxt-article-soft-bg: #faf5ff;
	--gptxt-article-soft-bg-2: #f3e8ff;
	--gptxt-article-border: #d8b4fe;
	--gptxt-article-border-strong: #9333ea;
	--gptxt-article-accent: #9333ea;
	--gptxt-article-accent-2: #a855f7;
	--gptxt-article-title: #581c87;
	--gptxt-article-heading: #6b21a8;
}

.gptxt-article-wrap.gptxt-color-black {
	--gptxt-article-bg: #f4f4f5;
	--gptxt-article-soft-bg: #f4f4f5;
	--gptxt-article-soft-bg-2: #e4e4e7;
	--gptxt-article-border: #d4d4d8;
	--gptxt-article-border-strong: #111827;
	--gptxt-article-accent: #111827;
	--gptxt-article-accent-2: #374151;
	--gptxt-article-title: #111827;
	--gptxt-article-heading: #18181b;
	--gptxt-article-text: #3f3f46;
}

/* =========================
   Button Color Classes
   - ボタン色のみ独立制御
========================= */

/* Green */
.gptxt-button-green .gptxt-btn {
	background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
	border-color: #16a34a;
	box-shadow: 0 12px 24px rgba(22, 163, 74, 0.22);
	color: #ffffff;
}

.gptxt-button-green .gptxt-btn:hover {
	background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
	border-color: #15803d;
	box-shadow: 0 14px 28px rgba(22, 163, 74, 0.28);
	color: #ffffff;
}

/* Red */
.gptxt-button-red .gptxt-btn {
	background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
	border-color: #dc2626;
	box-shadow: 0 12px 24px rgba(220, 38, 38, 0.22);
	color: #ffffff;
}

.gptxt-button-red .gptxt-btn:hover {
	background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
	border-color: #b91c1c;
	box-shadow: 0 14px 28px rgba(220, 38, 38, 0.28);
	color: #ffffff;
}

/* Blue */
.gptxt-button-blue .gptxt-btn {
	background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
	border-color: #2563eb;
	box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
	color: #ffffff;
}

.gptxt-button-blue .gptxt-btn:hover {
	background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
	border-color: #1d4ed8;
	box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
	color: #ffffff;
}

/* visited / focus / active の色維持 */
.gptxt-button-default .gptxt-btn:visited,
.gptxt-button-default .gptxt-btn:focus,
.gptxt-button-default .gptxt-btn:active,
.gptxt-button-green .gptxt-btn:visited,
.gptxt-button-green .gptxt-btn:focus,
.gptxt-button-green .gptxt-btn:active,
.gptxt-button-red .gptxt-btn:visited,
.gptxt-button-red .gptxt-btn:focus,
.gptxt-button-red .gptxt-btn:active,
.gptxt-button-blue .gptxt-btn:visited,
.gptxt-button-blue .gptxt-btn:focus,
.gptxt-button-blue .gptxt-btn:active {
	color: #ffffff;
	text-decoration: none;
}

/* =========================
   Article Color Classes
   - 背景色 / ボーダーカラー / フォントカラー制御
========================= */

/* =========================
   Color: Default / Blue
========================= */
.gptxt-article-wrap.gptxt-color-default,
.gptxt-article-wrap.gptxt-color-blue {
	--gptxt-article-bg: #f6f8fb;
	--gptxt-article-surface: #ffffff;
	--gptxt-article-soft-bg: #eef6ff;
	--gptxt-article-soft-bg-2: #dbeafe;
	--gptxt-article-border: #d8e6f3;
	--gptxt-article-border-strong: #1d4ed8;
	--gptxt-article-accent: #1d4ed8;
	--gptxt-article-accent-2: #4f8cff;
	--gptxt-article-title: #17324d;
	--gptxt-article-heading: #15324f;
	--gptxt-article-text: #334155;
}

/* =========================
   Color: Green
========================= */
.gptxt-article-wrap.gptxt-color-green {
	--gptxt-article-bg: #f0fdf4;
	--gptxt-article-surface: #ffffff;
	--gptxt-article-soft-bg: #ecfdf5;
	--gptxt-article-soft-bg-2: #dcfce7;
	--gptxt-article-border: #bbf7d0;
	--gptxt-article-border-strong: #16a34a;
	--gptxt-article-accent: #16a34a;
	--gptxt-article-accent-2: #22c55e;
	--gptxt-article-title: #14532d;
	--gptxt-article-heading: #166534;
	--gptxt-article-text: #334155;
}

/* =========================
   Color: Red
========================= */
.gptxt-article-wrap.gptxt-color-red {
	--gptxt-article-bg: #fef2f2;
	--gptxt-article-surface: #ffffff;
	--gptxt-article-soft-bg: #fff1f2;
	--gptxt-article-soft-bg-2: #fee2e2;
	--gptxt-article-border: #fecaca;
	--gptxt-article-border-strong: #dc2626;
	--gptxt-article-accent: #dc2626;
	--gptxt-article-accent-2: #ef4444;
	--gptxt-article-title: #7f1d1d;
	--gptxt-article-heading: #991b1b;
	--gptxt-article-text: #334155;
}

/* =========================
   Color: Yellow
========================= */
.gptxt-article-wrap.gptxt-color-yellow {
	--gptxt-article-bg: #fffbeb;
	--gptxt-article-surface: #ffffff;
	--gptxt-article-soft-bg: #fefce8;
	--gptxt-article-soft-bg-2: #fef3c7;
	--gptxt-article-border: #fde68a;
	--gptxt-article-border-strong: #eab308;
	--gptxt-article-accent: #eab308;
	--gptxt-article-accent-2: #facc15;
	--gptxt-article-title: #713f12;
	--gptxt-article-heading: #854d0e;
	--gptxt-article-text: #334155;
}

/* =========================
   Color: Orange
========================= */
.gptxt-article-wrap.gptxt-color-orange {
	--gptxt-article-bg: #fff7ed;
	--gptxt-article-surface: #ffffff;
	--gptxt-article-soft-bg: #fff7ed;
	--gptxt-article-soft-bg-2: #ffedd5;
	--gptxt-article-border: #fed7aa;
	--gptxt-article-border-strong: #f97316;
	--gptxt-article-accent: #f97316;
	--gptxt-article-accent-2: #fb923c;
	--gptxt-article-title: #7c2d12;
	--gptxt-article-heading: #9a3412;
	--gptxt-article-text: #334155;
}

/* =========================
   Color: Purple
========================= */
.gptxt-article-wrap.gptxt-color-purple {
	--gptxt-article-bg: #faf5ff;
	--gptxt-article-surface: #ffffff;
	--gptxt-article-soft-bg: #faf5ff;
	--gptxt-article-soft-bg-2: #f3e8ff;
	--gptxt-article-border: #d8b4fe;
	--gptxt-article-border-strong: #9333ea;
	--gptxt-article-accent: #9333ea;
	--gptxt-article-accent-2: #a855f7;
	--gptxt-article-title: #581c87;
	--gptxt-article-heading: #6b21a8;
	--gptxt-article-text: #334155;
}

/* =========================
   Color: Black
========================= */
.gptxt-article-wrap.gptxt-color-black {
	--gptxt-article-bg: #f4f4f5;
	--gptxt-article-surface: #ffffff;
	--gptxt-article-soft-bg: #f4f4f5;
	--gptxt-article-soft-bg-2: #e4e4e7;
	--gptxt-article-border: #d4d4d8;
	--gptxt-article-border-strong: #111827;
	--gptxt-article-accent: #111827;
	--gptxt-article-accent-2: #374151;
	--gptxt-article-title: #111827;
	--gptxt-article-heading: #18181b;
	--gptxt-article-text: #3f3f46;
}

/* =========================
   Pattern 01 Color Override
========================= */
.gptxt-article-wrap.gptxt-pattern-01[class*="gptxt-color-"] {
	background: var(--gptxt-article-bg);
	color: var(--gptxt-article-text);
}

.gptxt-article-wrap.gptxt-pattern-01[class*="gptxt-color-"] .gptxt-title,
.gptxt-article-wrap.gptxt-pattern-01[class*="gptxt-color-"] .gptxt-link,
.gptxt-article-wrap.gptxt-pattern-01[class*="gptxt-color-"] .gptxt-headding,
.gptxt-article-wrap.gptxt-pattern-01[class*="gptxt-color-"] .gptxt-txt {
	background: var(--gptxt-article-surface);
	border-color: var(--gptxt-article-border);
}

.gptxt-article-wrap.gptxt-pattern-01[class*="gptxt-color-"] .gptxt-title {
	color: var(--gptxt-article-title);
}

.gptxt-article-wrap.gptxt-pattern-01[class*="gptxt-color-"] .gptxt-headding {
	color: var(--gptxt-article-heading);
}

.gptxt-article-wrap.gptxt-pattern-01[class*="gptxt-color-"] .gptxt-headding::before {
	background: linear-gradient(180deg, var(--gptxt-article-accent) 0%, var(--gptxt-article-accent-2) 100%);
}

.gptxt-article-wrap.gptxt-pattern-01[class*="gptxt-color-"] .gptxt-txt {
	color: var(--gptxt-article-text);
}

.gptxt-article-wrap.gptxt-pattern-01[class*="gptxt-color-"] .gptxt-headding03 + .gptxt-txt07 {
	background: linear-gradient(180deg, var(--gptxt-article-surface) 0%, var(--gptxt-article-soft-bg) 100%);
	border-color: var(--gptxt-article-border);
}

/* =========================
   Pattern 02 Color Override
========================= */
.gptxt-article-wrap.gptxt-pattern-02[class*="gptxt-color-"] {
	background: var(--gptxt-article-surface);
	color: var(--gptxt-article-text);
}

.gptxt-article-wrap.gptxt-pattern-02[class*="gptxt-color-"] .gptxt-title {
	color: var(--gptxt-article-title);
}

.gptxt-article-wrap.gptxt-pattern-02[class*="gptxt-color-"] .gptxt-img {
	border-color: var(--gptxt-article-border);
}

.gptxt-article-wrap.gptxt-pattern-02[class*="gptxt-color-"] .gptxt-headding {
	color: var(--gptxt-article-heading);
}

.gptxt-article-wrap.gptxt-pattern-02[class*="gptxt-color-"] .gptxt-txt,
.gptxt-article-wrap.gptxt-pattern-02[class*="gptxt-color-"] .gptxt-txt07 {
	color: var(--gptxt-article-text);
}

/* =========================
   Pattern 03 Color Override
========================= */
.gptxt-article-wrap.gptxt-pattern-03[class*="gptxt-color-"] {
	background: var(--gptxt-article-surface);
	border-color: var(--gptxt-article-border);
	color: var(--gptxt-article-text);
}

.gptxt-article-wrap.gptxt-pattern-03[class*="gptxt-color-"] .gptxt-title {
	background: linear-gradient(135deg, var(--gptxt-article-soft-bg) 0%, var(--gptxt-article-surface) 100%);
	color: var(--gptxt-article-title);
}

.gptxt-article-wrap.gptxt-pattern-03[class*="gptxt-color-"] .gptxt-link {
	background: var(--gptxt-article-surface);
	border-color: var(--gptxt-article-border);
}

.gptxt-article-wrap.gptxt-pattern-03[class*="gptxt-color-"] .gptxt-headding {
	background: var(--gptxt-article-soft-bg-2);
	color: var(--gptxt-article-heading);
	border-bottom-color: var(--gptxt-article-border-strong);
}

.gptxt-article-wrap.gptxt-pattern-03[class*="gptxt-color-"] .gptxt-txt {
	background: var(--gptxt-article-surface);
	color: var(--gptxt-article-text);
}

.gptxt-article-wrap.gptxt-pattern-03[class*="gptxt-color-"] .gptxt-txt:not(.gptxt-txt03):not(.gptxt-txt06):not(.gptxt-txt07)::after {
	background-color: var(--gptxt-article-accent);
}

/* =========================
   Pattern 04 Color Override
========================= */
.gptxt-article-wrap.gptxt-pattern-04[class*="gptxt-color-"] {
	background: var(--gptxt-article-surface);
	border-color: var(--gptxt-article-border-strong);
	color: var(--gptxt-article-text);
}

.gptxt-article-wrap.gptxt-pattern-04[class*="gptxt-color-"] .gptxt-title {
	color: var(--gptxt-article-title);
	border-left-color: var(--gptxt-article-accent);
}

.gptxt-article-wrap.gptxt-pattern-04[class*="gptxt-color-"] .gptxt-img {
	border-color: var(--gptxt-article-border);
}

.gptxt-article-wrap.gptxt-pattern-04[class*="gptxt-color-"] .gptxt-headding {
	background: var(--gptxt-article-accent);
	border-color: var(--gptxt-article-accent);
	color: #ffffff;
}

.gptxt-article-wrap.gptxt-pattern-04[class*="gptxt-color-"] .gptxt-txt {
	color: var(--gptxt-article-text);
}

.gptxt-article-wrap.gptxt-pattern-04[class*="gptxt-color-"] .gptxt-txt07 {
	color: var(--gptxt-article-title);
}

/* =========================
   Pattern 05 Color Override
========================= */
.gptxt-article-wrap.gptxt-pattern-05[class*="gptxt-color-"] {
	background: var(--gptxt-article-bg);
	color: var(--gptxt-article-text);
}

.gptxt-article-wrap.gptxt-pattern-05[class*="gptxt-color-"] .gptxt-title {
	color: var(--gptxt-article-title);
}

.gptxt-article-wrap.gptxt-pattern-05[class*="gptxt-color-"] .gptxt-headding {
	color: var(--gptxt-article-accent);
}

.gptxt-article-wrap.gptxt-pattern-05[class*="gptxt-color-"] .gptxt-headding:not(.gptxt-headding03)::before {
	color: var(--gptxt-article-accent);
}

.gptxt-article-wrap.gptxt-pattern-05[class*="gptxt-color-"] .gptxt-txt {
	background: var(--gptxt-article-surface);
	color: var(--gptxt-article-text);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.gptxt-article-wrap.gptxt-pattern-05[class*="gptxt-color-"] .gptxt-headding03 {
	border-top-color: var(--gptxt-article-accent);
	border-bottom-color: var(--gptxt-article-accent);
}

/* =========================
   Button Color Force Override
   - pattern CSS よりボタンカラーを優先
========================= */

/* Green */
.gptxt-article-wrap[class*="gptxt-pattern-"].gptxt-button-green .gptxt-btn {
	background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
	border-color: #16a34a;
	box-shadow: 0 12px 24px rgba(22, 163, 74, 0.25);
	color: #ffffff;
}

.gptxt-article-wrap[class*="gptxt-pattern-"].gptxt-button-green .gptxt-btn:hover {
	background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
	border-color: #15803d;
	box-shadow: 0 14px 28px rgba(22, 163, 74, 0.3);
	color: #ffffff;
}

/* Red */
.gptxt-article-wrap[class*="gptxt-pattern-"].gptxt-button-red .gptxt-btn {
	background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
	border-color: #dc2626;
	box-shadow: 0 12px 24px rgba(220, 38, 38, 0.25);
	color: #ffffff;
}

.gptxt-article-wrap[class*="gptxt-pattern-"].gptxt-button-red .gptxt-btn:hover {
	background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
	border-color: #b91c1c;
	box-shadow: 0 14px 28px rgba(220, 38, 38, 0.3);
	color: #ffffff;
}

/* Blue */
.gptxt-article-wrap[class*="gptxt-pattern-"].gptxt-button-blue .gptxt-btn {
	background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
	border-color: #2563eb;
	box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
	color: #ffffff;
}

.gptxt-article-wrap[class*="gptxt-pattern-"].gptxt-button-blue .gptxt-btn:hover {
	background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
	border-color: #1d4ed8;
	box-shadow: 0 14px 28px rgba(37, 99, 235, 0.3);
	color: #ffffff;
}

/* visited / focus / active */
.gptxt-article-wrap[class*="gptxt-pattern-"].gptxt-button-green .gptxt-btn:visited,
.gptxt-article-wrap[class*="gptxt-pattern-"].gptxt-button-green .gptxt-btn:focus,
.gptxt-article-wrap[class*="gptxt-pattern-"].gptxt-button-green .gptxt-btn:active,
.gptxt-article-wrap[class*="gptxt-pattern-"].gptxt-button-red .gptxt-btn:visited,
.gptxt-article-wrap[class*="gptxt-pattern-"].gptxt-button-red .gptxt-btn:focus,
.gptxt-article-wrap[class*="gptxt-pattern-"].gptxt-button-red .gptxt-btn:active,
.gptxt-article-wrap[class*="gptxt-pattern-"].gptxt-button-blue .gptxt-btn:visited,
.gptxt-article-wrap[class*="gptxt-pattern-"].gptxt-button-blue .gptxt-btn:focus,
.gptxt-article-wrap[class*="gptxt-pattern-"].gptxt-button-blue .gptxt-btn:active {
	color: #ffffff;
	text-decoration: none;
}