/* 広告文生成ツール スタイル */
header { background: linear-gradient(135deg, #1e3a5f, #1e40af, #2563eb); color: white; padding: 20px 24px 16px; }
header h1 { font-size: 22px; }
header p  { font-size: 13px; opacity: .8; margin-top: 4px; }

.hero-stats { display: flex; align-items: center; justify-content: center; gap: 0; background: #0f172a; padding: 20px 24px; flex-wrap: wrap; }
.hero-stat { text-align: center; padding: 0 24px; }
.hero-stat-accent .hero-num { color: #93c5fd; }
.hero-num  { font-size: 40px; font-weight: 800; color: white; line-height: 1; }
.hero-unit { font-size: 18px; font-weight: 600; margin-left: 2px; }
.hero-label { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 4px; }
.hero-divider { width: 1px; height: 48px; background: rgba(255,255,255,.15); margin: 0 16px; }
@media(max-width:600px){ .hero-divider{display:none;} .hero-stats{gap:16px;} }

.tab-nav { display: flex; background: #1d4ed8; padding: 0 24px; overflow-x: auto; }
.tab { padding: 10px 20px; color: rgba(255,255,255,.65); font-size: 14px; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab:hover { color: white; }
.tab.active { color: white; border-bottom-color: white; font-weight: bold; }

.container { max-width: 960px; margin: 24px auto; padding: 0 16px; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.box { background: white; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.box h2 { font-size: 15px; color: #1e293b; margin-bottom: 14px; font-weight: 700; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.full { grid-column: span 2; }
@media(max-width:640px){ .form-grid{grid-template-columns:1fr;} .full{grid-column:span 1;} }
label { display: block; font-size: 12px; color: #64748b; margin-bottom: 4px; font-weight: 600; }
.req { color: #dc2626; font-size: 10px; background: #fee2e2; padding: 1px 5px; border-radius: 4px; margin-left: 4px; }

/* 目的ラジオ */
.goal-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.goal-chip { display: flex; align-items: center; gap: 6px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 20px; padding: 5px 12px; cursor: pointer; font-size: 12px; font-weight: normal; transition: background .15s; }
.goal-chip input[type=radio] { display: none; }
.goal-chip:has(input:checked) { background: #2563eb; color: white; border-color: #2563eb; }
.goal-chip:hover { background: #eff6ff; }
.goal-chip:has(input:checked):hover { background: #1d4ed8; }

.btn-row { margin-top: 16px; }
.btn-primary  { background: #2563eb; color: white; }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary{ background: #f1f5f9; color: #475569; }
.btn-sm { padding: 5px 10px; font-size: 11px; border-radius: 6px; border: none; cursor: pointer; font-weight: bold; }
.btn-copy-all { background: rgba(255,255,255,.15); color: white; border: 1px solid rgba(255,255,255,.3); }
.btn-copy-all:hover { background: rgba(255,255,255,.25); }

.progress-wrap { margin-top: 12px; }
.progress-bar  { background: #dbeafe; border-radius: 8px; height: 8px; overflow: hidden; }
.progress-fill { background: linear-gradient(90deg, #2563eb, #60a5fa); height: 100%; transition: width .4s; width: 0%; }
.progress-text { font-size: 12px; color: #1d4ed8; margin-top: 6px; }

/* tip */
.tip-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 16px 20px; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.tip-icon { font-size: 20px; flex-shrink: 0; }
.tip-box strong { color: #1e40af; }
.tip-box div { font-size: 13px; color: #1e3a5f; line-height: 1.7; }

/* ── プラットフォームカード ── */
.platform-card { border-radius: 14px; margin-bottom: 16px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.platform-google { border-top: 4px solid #4285f4; }
.platform-meta   { border-top: 4px solid #1877f2; }
.platform-line   { border-top: 4px solid #06c755; }

.platform-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: #f8fafc; flex-wrap: wrap; }
.platform-icon { font-size: 24px; flex-shrink: 0; }
.platform-name { font-size: 15px; font-weight: 700; color: #1e293b; }
.platform-note { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.platform-header .btn-copy-all { margin-left: auto; background: #1d4ed8; color: white; border: none; }

.ad-section { padding: 14px 20px; background: white; border-top: 1px solid #f1f5f9; }
.ad-label { font-size: 11px; font-weight: bold; color: #94a3b8; letter-spacing: .5px; margin-bottom: 8px; }

/* Google */
.headlines-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 6px; }
.headline-chip { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 6px 10px; font-size: 12px; color: #1e40af; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.headline-chip .hl-text { flex: 1; }
.headline-chip .hl-len  { font-size: 10px; color: #94a3b8; flex-shrink: 0; }
.headline-chip .hl-len.over { color: #dc2626; font-weight: bold; }
.copy-line { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.copy-line:last-child { border-bottom: none; }
.copy-line-text { flex: 1; font-size: 13px; color: #1e293b; line-height: 1.6; white-space: pre-wrap; }
.copy-line-len  { font-size: 10px; color: #94a3b8; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
.copy-line-len.over { color: #dc2626; }
.copy-mini { font-size: 10px; background: #f1f5f9; border: none; border-radius: 4px; padding: 2px 7px; cursor: pointer; flex-shrink: 0; margin-top: 2px; }

/* Meta */
.meta-primary { font-size: 13px; color: #1e293b; line-height: 1.7; white-space: pre-wrap; background: #f8fafc; border-radius: 8px; padding: 12px 14px; }
.meta-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media(max-width:640px){ .meta-row{grid-template-columns:1fr;} }
.meta-headline, .meta-desc { font-size: 14px; font-weight: 600; color: #1e3a5f; background: #eff6ff; border-radius: 8px; padding: 10px 12px; }
.cta-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.cta-tag { font-size: 11px; background: #1d4ed8; color: white; padding: 3px 10px; border-radius: 6px; font-weight: 600; }

/* LINE */
.line-title { font-size: 15px; font-weight: 700; color: #065f46; background: #dcfce7; border-radius: 8px; padding: 10px 14px; }
.line-text   { font-size: 13px; color: #1e293b; line-height: 1.7; white-space: pre-wrap; background: #f8fafc; border-radius: 8px; padding: 12px 14px; }

/* A/B */
.ab-section { padding: 12px 20px 16px; background: #fffbeb; border-top: 1px solid #fef9c3; }
.ab-label { font-size: 11px; font-weight: bold; color: #92400e; margin-bottom: 6px; }
.ab-text  { font-size: 12px; color: #451a03; background: #fef3c7; border-radius: 6px; padding: 8px 12px; line-height: 1.6; }

/* ポイント */
.point-box h2 { color: #1e40af; }
.copy-points { font-size: 13px; color: #1e293b; line-height: 1.8; }

.char-counter { font-size: 11px; color: #94a3b8; text-align: right; margin-top: 2px; }
.ai-note { font-size: 11px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 12px; margin-top: 12px; line-height: 1.6; }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
