:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #dfe5ef;
  --main: #2563eb;
  --main-dark: #1d4ed8;
  --soft: #eaf1ff;
  --accent: #facc15;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans JP",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  font-weight: 800;
}

.logo strong {
  display: block;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.logo small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.global-nav a {
  text-decoration: none;
  color: #344054;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 999px;
}

.global-nav a:hover,
.global-nav a.active {
  background: var(--soft);
  color: var(--main-dark);
}

.hero {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 70px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--main);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 760px;
  color: #344054;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  margin: 22px 0 0;
}

.hero-actions,
.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.btn.primary {
  border-color: var(--main);
  background: var(--main);
  color: #fff;
}

.btn.primary:hover {
  background: var(--main-dark);
}

.notice {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 18px 22px;
  background: #fffbea;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
}

.notice p {
  margin: 6px 0 0;
  color: #5f4b00;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 64px auto;
}

.section.compact {
  margin-top: 48px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 820px;
  margin: 12px 0 0;
  color: var(--muted);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  gap: 18px;
}

.app-card.featured {
  border-color: rgba(37, 99, 235, 0.35);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(255, 255, 255, 0.95)),
    #fff;
}

.card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 18px;
  background: var(--soft);
  font-size: 1.8rem;
}

.card-body h3 {
  margin: 0;
  font-size: 1.35rem;
}

.card-body p {
  margin: 10px 0 0;
  color: #465266;
}

.point-list {
  margin: 16px 0 0;
  padding-left: 1.2em;
  color: #475467;
}

.point-list li + li {
  margin-top: 4px;
}

/* ===== 画像加工アプリ：作品例ギャラリー ===== */
.work-example {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(250, 204, 21, 0.10)),
    #ffffff;
  box-shadow: var(--shadow);
}

.work-example-head h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.work-example-head p {
  max-width: 860px;
  margin: 12px 0 0;
  color: var(--muted);
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.example-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.example-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.example-figure {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  margin: 0;
  background: #f8fafc;
  border-right: 1px solid var(--line);
}

.example-figure:last-child {
  border-right: none;
}

.example-figure.result {
  background: #f1f5f9;
}

.example-figure.result.dark {
  background: #222;
}

.example-figure img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
}

.example-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #172033;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.example-caption {
  padding: 16px 18px 18px;
}

.example-caption h4 {
  margin: 0;
  font-size: 1.08rem;
}

.example-caption p {
  margin: 8px 0 0;
  color: #475467;
  font-size: 0.95rem;
}

.doc-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.doc-table th,
.doc-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  background: #f1f5fb;
  font-size: 0.92rem;
}

.doc-table tr:last-child td {
  border-bottom: none;
}

.doc-table td:nth-child(1) {
  font-weight: 700;
  width: 26%;
}

.doc-table td:nth-child(3) {
  width: 120px;
}

.doc-table a {
  color: var(--main-dark);
  font-weight: 800;
}

.note-box {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 8px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.note-box p {
  margin: 0;
}

.site-footer {
  margin-top: 72px;
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  margin: 4px 0;
}

.site-footer a {
  color: var(--main-dark);
  font-weight: 700;
}

@media (max-width: 920px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 12px;
  }

  .global-nav {
    justify-content: flex-start;
  }

  .app-grid,
  .example-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    flex-direction: row;
  }
}

@media (max-width: 620px) {
  .hero-inner {
    padding: 54px 0 48px;
  }

  .app-card {
    padding: 18px;
    flex-direction: column;
  }

  .card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.55rem;
  }

  .btn {
    width: 100%;
  }

  .global-nav a {
    font-size: 0.86rem;
    padding: 7px 10px;
  }

  .work-example {
    padding: 18px;
  }

  .example-pair {
    grid-template-columns: 1fr;
  }

  .example-figure {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .example-figure:last-child {
    border-bottom: none;
  }

  .example-figure img {
    height: 280px;
  }
}
