/* WP ASP マイページ（フロント） */

.asp-mypage {
	--asp-border: #e5e7eb;
	--asp-muted: #6b7280;
	--asp-accent: #111827;
	max-width: 960px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.7;
}

.asp-mypage * { box-sizing: border-box; }

.asp-mypage__head {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: space-between;
	align-items: center;
	padding: 18px 20px;
	border: 1px solid var(--asp-border);
	border-radius: 10px;
	margin-bottom: 18px;
}

.asp-mypage__label {
	display: block;
	font-size: 12px;
	color: var(--asp-muted);
}

.asp-mypage__code {
	font-size: 22px;
	letter-spacing: .08em;
}

.asp-mypage__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
}

.asp-mypage__stats span {
	display: block;
	font-size: 12px;
	color: var(--asp-muted);
}

.asp-mypage__stats strong { font-size: 18px; }

.asp-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	border-bottom: 1px solid var(--asp-border);
	margin-bottom: 20px;
}

.asp-tab {
	padding: 10px 16px;
	text-decoration: none;
	color: var(--asp-muted);
	border-bottom: 2px solid transparent;
}

.asp-tab.is-active {
	color: var(--asp-accent);
	border-bottom-color: var(--asp-accent);
	font-weight: 600;
}

.asp-panel h3 { margin: 24px 0 10px; font-size: 17px; }
.asp-panel h3:first-child { margin-top: 0; }
.asp-panel h4 { margin: 18px 0 8px; font-size: 15px; }

.asp-kpis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
}

.asp-kpi {
	padding: 14px 16px;
	border: 1px solid var(--asp-border);
	border-radius: 8px;
}

.asp-kpi span { display: block; font-size: 12px; color: var(--asp-muted); }
.asp-kpi strong { font-size: 22px; }

.asp-table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0 20px;
	font-size: 14px;
}

.asp-table th,
.asp-table td {
	padding: 9px 10px;
	border-bottom: 1px solid var(--asp-border);
	text-align: left;
}

.asp-table th {
	font-size: 12px;
	color: var(--asp-muted);
	font-weight: 600;
}

.asp-badge {
	display: inline-block;
	padding: 1px 9px;
	border-radius: 10px;
	font-size: 12px;
	background: #f3f4f6;
	color: #374151;
}

.asp-badge--approved,
.asp-badge--paid { background: #ecfdf3; color: #067647; }

.asp-badge--pending,
.asp-badge--requested { background: #fffaeb; color: #b54708; }

.asp-badge--rejected { background: #fef3f2; color: #b42318; }

.asp-program {
	padding: 16px 18px;
	border: 1px solid var(--asp-border);
	border-radius: 10px;
	margin-bottom: 14px;
}

.asp-program h4 { margin: 0 0 4px; }
.asp-reward { margin: 0 0 8px; font-weight: 600; }

.asp-copy {
	display: block;
	margin: 8px 0;
}

.asp-copy span {
	display: block;
	font-size: 12px;
	color: var(--asp-muted);
}

.asp-copy input,
.asp-url {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--asp-border);
	border-radius: 6px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px;
	background: #f9fafb;
}

.asp-creatives {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
}

.asp-creative {
	padding: 12px;
	border: 1px solid var(--asp-border);
	border-radius: 8px;
}

.asp-creative img { max-width: 100%; height: auto; display: block; margin-bottom: 8px; }
.asp-creative strong { display: block; margin-bottom: 6px; font-size: 14px; }
.asp-creative textarea {
	width: 100%;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	border: 1px solid var(--asp-border);
	border-radius: 6px;
	padding: 8px;
	background: #f9fafb;
}

.asp-pool {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border: 1px solid var(--asp-border);
	border-radius: 10px;
}

.asp-pool__balance span { display: block; font-size: 12px; color: var(--asp-muted); }
.asp-pool__balance strong { font-size: 30px; line-height: 1.3; }

.asp-form { margin: 12px 0 20px; }

.asp-field { margin-bottom: 14px; }

.asp-field label {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
	font-weight: 600;
}

.asp-field--check label { font-weight: 400; }

.asp-field input[type="text"],
.asp-field input[type="email"],
.asp-field input[type="url"],
.asp-field select,
.asp-field textarea {
	width: 100%;
	max-width: 420px;
	padding: 9px 11px;
	border: 1px solid var(--asp-border);
	border-radius: 6px;
	font-size: 14px;
}

.asp-taxnote {
	margin: -4px 0 20px;
	padding: 12px 14px;
	border: 1px solid var(--asp-border);
	border-left: 4px solid #9ca3af;
	border-radius: 6px;
	background: #f9fafb;
	font-size: 13px;
}

.asp-taxnote.is-registered {
	border-left-color: #067647;
	background: #ecfdf3;
}

.asp-taxnote strong {
	display: block;
	margin-bottom: 2px;
}

.asp-form--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.asp-form--inline input,
.asp-form--inline select {
	padding: 8px 10px;
	border: 1px solid var(--asp-border);
	border-radius: 6px;
	font-size: 14px;
}

.asp-button {
	display: inline-block;
	padding: 9px 18px;
	border: 1px solid var(--asp-accent);
	border-radius: 6px;
	background: #fff;
	color: var(--asp-accent);
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
}

.asp-button--primary {
	background: var(--asp-accent);
	color: #fff;
}

.asp-button--ghost {
	border-color: var(--asp-border);
	color: var(--asp-muted);
	padding: 5px 12px;
	font-size: 13px;
}

.asp-notice {
	padding: 11px 14px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}

.asp-notice--success { background: #ecfdf3; color: #067647; }
.asp-notice--error { background: #fef3f2; color: #b42318; }
.asp-notice--info { background: #f3f4f6; color: #374151; }

.asp-small { font-size: 12px; }
.asp-muted { color: var(--asp-muted); }
.asp-required { color: #b42318; }
.asp-positive { color: #067647; }
.asp-negative { color: #b42318; }

.asp-pagination {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.asp-pagination a {
	padding: 5px 11px;
	border: 1px solid var(--asp-border);
	border-radius: 6px;
	text-decoration: none;
	color: var(--asp-muted);
}

.asp-pagination a.is-active {
	background: var(--asp-accent);
	color: #fff;
	border-color: var(--asp-accent);
}

.asp-guide-points {
	list-style: none;
	padding: 0;
	margin: 0 0 22px;
	display: grid;
	gap: 10px;
}

.asp-guide-points li {
	padding: 12px 16px;
	border: 1px solid var(--asp-border);
	border-left: 3px solid var(--asp-accent);
	border-radius: 0 8px 8px 0;
}

.asp-guide-points a { font-weight: 700; }

.asp-guide-points span {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	color: var(--asp-muted);
}

.asp-guide-frame {
	border: 1px solid var(--asp-border);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.asp-guide-frame iframe {
	display: block;
	width: 100%;
	height: 70vh;
	min-height: 480px;
	border: 0;
}
