:root {
  color-scheme: light;
  --teal: #a0d3d9;
  --orange: #f29441;
  --red: #f2380f;
  --ink: #1f1f1f;
  --muted: #55514f;
  --paper: #f6f2ec;
  --card: rgba(255, 255, 255, 0.76);
  --line: rgba(27, 24, 20, 0.12);
  --shadow: 0 30px 70px rgba(242, 56, 15, 0.18),
    0 10px 30px rgba(31, 31, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body {
  position: relative;
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 500px at 8% 2%, rgba(160, 211, 217, 0.6), transparent 70%),
    radial-gradient(700px 600px at 95% 12%, rgba(242, 148, 65, 0.4), transparent 65%),
    radial-gradient(800px 600px at 50% 100%, rgba(242, 56, 15, 0.2), transparent 70%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 45%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -30% -20%;
  z-index: -1;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.7;
  transform: rotate(-3deg);
}

body::before {
  background: conic-gradient(
    from 120deg,
    rgba(160, 211, 217, 0.35),
    rgba(242, 148, 65, 0.25),
    rgba(242, 56, 15, 0.2),
    rgba(160, 211, 217, 0.2)
  );
  animation: float 16s ease-in-out infinite;
}

body::after {
  background: radial-gradient(
    closest-side,
    rgba(242, 148, 65, 0.18),
    transparent 65%
  );
  animation: float 22s ease-in-out infinite reverse;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 40px) clamp(18px, 4vw, 48px) 96px;
}

.hero {
  display: grid;
  gap: 18px;
  margin-bottom: 32px;
  animation: rise 0.8s ease forwards;
}

.badge {
  width: fit-content;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(
    120deg,
    rgba(160, 211, 217, 0.8),
    rgba(242, 148, 65, 0.7)
  );
  color: #231f1d;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 12px;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
  color: #1a1918;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
  font-size: clamp(14px, 2vw, 18px);
}

.panel {
  background: var(--card);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 32px);
  backdrop-filter: blur(18px);
  display: grid;
  gap: 20px;
}

.panel + .panel {
  margin-top: 28px;
}

.panel-head {
  display: grid;
  gap: 6px;
}

.panel-head h2 {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 24px);
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.upload-zone {
  position: relative;
  border-radius: 24px;
  padding: clamp(24px, 6vw, 46px);
  border: 1.5px dashed rgba(31, 31, 31, 0.25);
  background: linear-gradient(
    135deg,
    rgba(160, 211, 217, 0.28),
    rgba(255, 255, 255, 0.6)
  );
  display: grid;
  place-items: center;
  text-align: center;
  gap: 12px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  min-height: 220px;
}

.upload-zone.dragover {
  border-color: var(--orange);
  box-shadow: 0 18px 40px rgba(242, 148, 65, 0.18);
  transform: translateY(-2px);
}

.upload-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(
    160deg,
    rgba(242, 56, 15, 0.85),
    rgba(242, 148, 65, 0.9)
  );
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 30px;
  box-shadow: 0 12px 26px rgba(242, 56, 15, 0.25);
}

.upload-zone p {
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
}

.upload-zone span {
  color: var(--muted);
  font-size: 13px;
}

#file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.status[data-kind="warning"] {
  color: #9b4d12;
}


.secondary-btn {
  border: 1px solid rgba(31, 31, 31, 0.12);
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(
    120deg,
    rgba(160, 211, 217, 0.6),
    rgba(255, 255, 255, 0.9)
  );
  color: #1f1b19;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 24px rgba(160, 211, 217, 0.35);
  text-decoration: none;
  font-size: 15px;
}

.secondary-btn:not(:disabled):active {
  transform: scale(0.98);
}

.result-display {
  display: grid;
  gap: 16px;
}

.result-display img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.seo-content {
  line-height: 1.8;
}

.seo-content h2 {
  margin: 0;
  font-size: clamp(16px, 2vw, 18px);
}

.seo-content p {
  margin: 0;
  color: var(--muted);
}

.share-cta {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.share-cta strong {
  color: var(--ink);
}

.author-section {
  line-height: 1.8;
}

.author-section h2 {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 24px);
}

.author-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.author-info {
  display: grid;
  gap: 8px;
}

.author-info h3 {
  margin: 0;
  font-size: clamp(17px, 2.2vw, 20px);
}

.author-titles {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.author-info > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.author-info a {
  color: var(--ink);
  text-decoration: none;
}

.author-links {
  display: flex;
  gap: 14px;
}

.author-company {
  color: var(--orange);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.author-links a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.author-links a:hover {
  color: var(--ink);
}

.author-links svg {
  width: 20px;
  height: 20px;
  display: block;
}

.other-tools {
  display: grid;
  gap: 10px;
}

.other-tools-label {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tool-card {
  display: grid;
  gap: 6px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.tool-card strong {
  font-size: 16px;
}

.tool-card span {
  font-size: 13px;
  color: var(--muted);
}

.site-footer {
  margin-top: 40px;
  display: grid;
  gap: 10px;
  text-align: center;
}

.footer-notice {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  opacity: 0.7;
}

.footer-copy {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 600px) {
  .download-link {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-3deg);
  }
  50% {
    transform: translate3d(20px, -10px, 0) rotate(2deg);
  }
}
