*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-light: #EFF6FF;
  --text: #0F172A;
  --muted: #64748B;
  --border: #E2E8F0;
  --bg: #FFFFFF;
  --card-bg: #F8FAFC;
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		"Hiragino Sans",
		"Hiragino Kaku Gothic ProN",
		"Yu Gothic",
		"Meiryo",
		sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== 全画面ドロップオーバーレイ ===== */
#globalDropOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(37, 99, 235, 0.08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 3px dashed var(--blue);
  pointer-events: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  animation: overlayIn 0.15s ease both;
}
#globalDropOverlay.active { display: flex; }

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.overlay-icon {
  width: 72px;
  height: 72px;
  background: var(--blue);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 32px rgba(37,99,235,0.4);
  animation: bounce 0.6s ease infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}

.overlay-label {
  font-size: 22px;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.01em;
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(16px, 5vw, 48px);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: clamp(15px, 2.5vw, 17px);
  color: var(--text);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 20px);
}

.btn-ghost {
  background: none;
  border: none;
  cursor: pointer;
  font-size: clamp(13px, 1.8vw, 15px);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}
.btn-ghost:hover { background: var(--blue-light); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: clamp(13px, 1.8vw, 15px);
  padding: 9px clamp(14px, 2.5vw, 22px);
  border-radius: 10px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}
.btn-primary:active { transform: translateY(0); }

/* ===== HERO ===== */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(40px, 8vw, 96px) clamp(16px, 5vw, 32px) clamp(32px, 6vw, 80px);
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 700px;
  animation: fadeUp 0.6s 0.05s ease both;
}

.hero p {
  margin-top: clamp(12px, 2vw, 20px);
  font-size: clamp(14px, 2vw, 18px);
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.1s ease both;
}

/* ===== DROPZONE ===== */
.dropzone-wrap {
  margin-top: clamp(28px, 5vw, 52px);
  width: 100%;
  max-width: 640px;
  animation: fadeUp 0.6s 0.15s ease both;
}

.dropzone {
  background: var(--card-bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 64px) clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
.dropzone:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  transform: scale(1.01);
}

.upload-icon {
  width: clamp(36px, 6vw, 48px);
  height: clamp(36px, 6vw, 48px);
  color: var(--blue);
}

.dropzone-title {
  font-size: clamp(15px, 2.5vw, 18px);
  font-weight: 700;
  color: var(--text);
}

.dropzone-sub {
  font-size: clamp(12px, 1.8vw, 14px);
  color: var(--muted);
}

.btn-select {
  margin-top: 4px;
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: clamp(14px, 2vw, 16px);
  padding: clamp(11px, 2vw, 14px) clamp(28px, 5vw, 48px);
  border-radius: 12px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(37,99,235,0.3);
}
.btn-select:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}
.btn-select:active { transform: translateY(0); }

#imageFiles { display: none; }

/* preview */
.preview-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  animation: fadeUp 0.4s ease both;
}
.preview-wrap.visible { display: flex; }

.preview-img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.processing-bar {
  width: 100%;
  max-width: 400px;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.processing-bar-inner {
  height: 100%;
  background: var(--blue);
  border-radius: 99px;
  width: 0%;
  animation: progress 1.8s ease forwards;
}

@keyframes progress {
  0%  { width: 0%; }
  80% { width: 85%; }
  100%{ width: 100%; }
}

.processing-label {
  font-size: 13px;
  color: var(--muted);
}

/* ===== FEATURES ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 3vw, 28px);
  max-width: 860px;
  width: 100%;
  margin: clamp(32px, 6vw, 64px) auto 0;
  padding: 0 clamp(16px, 5vw, 32px);
  animation: fadeUp 0.6s 0.2s ease both;
}

@media (max-width: 580px) {
  .features { grid-template-columns: 1fr; max-width: 480px; }
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(14px, 2.5vw, 20px);
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon.yellow { background: #FEF9C3; }
.feature-icon.green  { background: #DCFCE7; }
.feature-icon.purple { background: #F3E8FF; }

.feature-text .feature-title {
  font-size: clamp(13px, 2vw, 15px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}
.feature-text p {
  font-size: clamp(11px, 1.6vw, 13px);
  color: var(--muted);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: clamp(20px, 4vw, 36px) 16px;
  font-size: clamp(11px, 1.5vw, 13px);
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: clamp(32px, 6vw, 64px);
}
.page {
  padding: 80px 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.lead {
  margin-top: 12px;
  color: #666;
}

.card {
  margin-top: 32px;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.card h2 {
  margin-bottom: 12px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th {
  text-align: left;
  width: 160px;
  padding: 8px 0;
  color: #666;
}

.info-table td {
  padding: 8px 0;
}

/* =========================
   SEO CONTENT
========================= */

.seo-content {
	max-width: 960px;
	margin: 96px auto 120px;
	padding: 0 24px;
}

.seo-content h2 {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 24px;
	color: #111827;
}

.seo-content p {
	font-size: 16px;
	line-height: 2;
	color: #4B5563;
	margin-bottom: 28px;
}

.seo-list {
	margin: 0 0 40px 20px;
	padding: 0;
}

.seo-list li {
	font-size: 16px;
	line-height: 2;
	color: #374151;
	margin-bottom: 8px;
}

/* スマホ */
@media (max-width: 768px) {

	.seo-content {
		margin: 72px auto 96px;
		padding: 0 20px;
	}

	.seo-content h2 {
		font-size: 24px;
		margin-bottom: 18px;
	}

	.seo-content p,
	.seo-list li {
		font-size: 15px;
		line-height: 1.9;
	}
}

/* =========================
   BEFORE / AFTER SAMPLE
========================= */

.sample-section {
	max-width: 1100px;
	margin: 96px auto;
	padding: 0 24px;
	text-align: center;
}

.sample-section h2 {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 16px;
	color: #111827;
}

.sample-section p {
	max-width: 720px;
	margin: 0 auto 40px;
	font-size: 16px;
	line-height: 2;
	color: #4B5563;
}

.sample-images {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
	margin-top: 32px;
}

.sample-image {
	margin: 0;
}

.sample-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
	border: 1px solid var(--border);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sample-image figcaption {
	margin-top: 12px;
	font-size: 15px;
	font-weight: 700;
	color: var(--text);
}

.faq-section {
	max-width: 960px;
	margin: 80px auto 120px;
	padding: 0 24px;
}

.faq-section h2 {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 40px;
	color: #111827;
	text-align: center;
}

.faq-section h3 {
	font-size: 22px;
	font-weight: 700;
	margin-top: 32px;
	margin-bottom: 12px;
	padding-left: 12px;
	border-left: 4px solid var(--blue);
	color: #111827;
}

.faq-section p {
	font-size: 16px;
	line-height: 2;
	color: #4B5563;
	margin-bottom: 24px;
}

@media (max-width: 768px) {

	.faq-section {
		margin: 72px auto 96px;
		padding: 0 20px;
	}

	.faq-section h2 {
		font-size: 24px;
	}

	.faq-section h3 {
		font-size: 18px;
	}

	.faq-section p {
		font-size: 15px;
		line-height: 1.9;
	}
}
/* =========================
   ARTICLE SECTION
========================= */

.article-section {
	max-width: 1100px;
	margin: 100px auto;
	padding: 0 24px;
}

.article-section h2 {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 16px;
}

.article-section > p {
	color: #6B7280;
	line-height: 1.8;
	margin-bottom: 40px;
}

.article-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}

.article-card {
	display: block;
	text-decoration: none;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 16px;
	padding: 24px;
	transition: all .2s ease;
}

.article-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,.08);
	border-color: #2563EB;
}

.article-card h3 {
	font-size: 18px;
	color: #111827;
	margin-bottom: 12px;
	line-height: 1.5;
}

.article-card p {
	font-size: 14px;
	color: #6B7280;
	line-height: 1.8;
}

@media (max-width: 768px) {

	.article-section {
		margin: 80px auto;
		padding: 0 20px;
	}

	.article-section h2 {
		font-size: 24px;
	}

	.article-grid {
		grid-template-columns: 1fr;
	}
}

/* =========================
   BREADCRUMB
========================= */

.breadcrumb {
	margin: 0 0 24px;
	font-size: 14px;
	line-height: 1.6;
}

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumb li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	list-style: none;
}

.breadcrumb li + li::before {
	content: "/";
	color: var(--border);
}

.breadcrumb a {
	color: var(--blue);
	text-decoration: none;
}

.breadcrumb a:hover {
	text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
	color: var(--muted);
}

/* =========================
   RELATED ARTICLES
========================= */

.related-articles {
	margin: 64px 0 0;
	padding: 28px 32px;
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: 12px;
}

.related-articles h2 {
	margin: 0 0 16px;
	font-size: 20px;
	color: var(--text);
}

.related-articles ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.related-articles li {
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
	list-style: none;
}

.related-articles li:last-child {
	border-bottom: none;
}

.related-articles a {
	color: var(--blue);
	text-decoration: none;
	font-size: 15px;
	line-height: 1.7;
}

.related-articles a:hover {
	text-decoration: underline;
}

@media (max-width: 768px) {

	.related-articles {
		padding: 20px;
	}

	.related-articles h2 {
		font-size: 18px;
	}
}
