* {
  box-sizing: border-box;
}

:root {
  --ink: #102033;
  --muted: #64748b;
  --line: #dbe5f1;
  --blue: #1f4fd8;
  --blue-dark: #142f82;
  --cyan: #35c2e6;
  --pale: #f5f8ff;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(21, 47, 89, 0.12);
  --radius: 28px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 38%, #f4f8ff 100%);
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.5;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(53, 194, 230, 0.30), transparent 68%);
  top: -180px;
  right: -120px;
}

.orb-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(31, 79, 216, 0.18), transparent 68%);
  top: 440px;
  left: -160px;
}

.orb-3 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(93, 204, 174, 0.16), transparent 70%);
  bottom: 120px;
  right: 10%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 12px 16px;
  border: 1px solid rgba(219, 229, 241, 0.9);
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 45px rgba(20, 47, 130, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 24px rgba(31,79,216,.26);
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
}

.nav a:hover {
  color: var(--blue);
}

.header-cta {
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

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

.section.narrow {
  max-width: 980px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: 48px;
  min-height: 760px;
  padding-top: 86px;
}

.section-label {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.07em;
}

h1 span {
  background: linear-gradient(135deg, var(--blue-dark), var(--cyan));
  -webkit-background-clip: text;
  color: transparent;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.05em;
}

h3 {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.hero-lead,
.section-lead,
.section-head p,
.tool-intro p,
.contact p {
  color: var(--muted);
  font-size: 16px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 16px 34px rgba(31, 79, 216, 0.24);
}

.btn.ghost {
  color: var(--blue-dark);
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
}

.btn.soft {
  color: var(--blue-dark);
  background: #edf4ff;
}

.btn.small {
  min-height: 38px;
  padding: 9px 13px;
  font-size: 13px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-tags span {
  padding: 8px 12px;
  border: 1px solid rgba(31, 79, 216, 0.14);
  border-radius: 999px;
  color: #31516f;
  background: rgba(255,255,255,0.76);
  font-size: 13px;
  font-weight: 800;
}

.hero-visual {
  perspective: 1000px;
}

.mock-window {
  overflow: hidden;
  border: 1px solid rgba(219,229,241,.95);
  border-radius: 34px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  transform: rotateY(-4deg) rotateX(3deg);
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
}

.window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #b8c6d8;
}

.window-bar span:nth-child(1) { background: #ff6978; }
.window-bar span:nth-child(2) { background: #ffc857; }
.window-bar span:nth-child(3) { background: #55d6a7; }

.mock-content {
  padding: 26px;
}

.mock-title {
  margin-bottom: 18px;
  font-size: 21px;
  font-weight: 900;
}

.timeline {
  display: flex;
  overflow: hidden;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #eef5ff;
}

.timeline div {
  width: var(--w);
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 12px;
  font-weight: 900;
  border-right: 1px solid rgba(255,255,255,.4);
}

.cut-card {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(21, 47, 89, 0.06);
}

.cut-card.active {
  border-color: rgba(31,79,216,.36);
  background: linear-gradient(180deg, #ffffff, #f6faff);
}

.cut-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.mini-grid span {
  display: block;
  height: 84px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(31,79,216,.12), rgba(53,194,230,.10)),
    radial-gradient(circle at 70% 30%, rgba(31,79,216,.2), transparent 34%);
}

.problem-list {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.problem-list div {
  position: relative;
  padding: 20px 24px 20px 58px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 14px 38px rgba(21,47,89,.06);
  font-weight: 800;
}

.problem-list div::before {
  content: "✓";
  position: absolute;
  left: 22px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 13px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.6fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 36px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card,
.flow-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.84);
  box-shadow: 0 18px 50px rgba(21,47,89,.07);
}

.feature-card img {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
}

.feature-card p,
.flow-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.tool-section {
  max-width: 1240px;
}

.tool-intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(360px, .86fr) minmax(0, 1.14fr);
  gap: 22px;
}

.panel {
  padding: 26px;
  border: 1px solid rgba(219,229,241,.96);
  border-radius: 32px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.panel-title span {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 900;
}

.panel-title h3 {
  margin: 0;
}

.panel-title p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #29415c;
  font-size: 13px;
  font-weight: 900;
}

label.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d6e0ee;
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
  font-size: 14px;
  transition: box-shadow .18s ease, border-color .18s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(31,79,216,.55);
  box-shadow: 0 0 0 5px rgba(31,79,216,.10);
}

.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.button-row.compact {
  justify-content: flex-end;
  margin: 0;
}

.concept-box {
  padding: 18px 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(31,79,216,.14);
  border-radius: 22px;
  background: linear-gradient(135deg, #f7fbff, #eef7ff);
}

.hidden {
  display: none;
}

.empty-state {
  min-height: 380px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #c9d8ea;
  border-radius: 24px;
  background: #f8fbff;
}

.empty-state img {
  width: min(260px, 70%);
  margin-bottom: 12px;
}

.plan-block {
  margin-top: 22px;
}

.plan-title {
  padding-left: 14px;
  border-left: 5px solid var(--blue);
  font-size: 20px;
}

.plan-block > p {
  color: var(--muted);
}

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

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid #e7eef8;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: #29415c;
  background: #f3f8ff;
  white-space: nowrap;
  font-weight: 900;
}

tbody tr:hover {
  background: #fbfdff;
}

tr:last-child td {
  border-bottom: 0;
}

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

.flow-card span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 900;
}

.contact {
  text-align: center;
  max-width: 900px;
  padding-top: 70px;
}

.footer {
  padding: 32px 24px 46px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  padding: 13px 18px;
  border-radius: 16px;
  color: #fff;
  background: #102033;
  box-shadow: 0 18px 48px rgba(16,32,51,.24);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    margin: 10px 12px 0;
  }

  .nav {
    display: none;
  }

  .hero,
  .app-shell,
  .section-head {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 70px;
  }

  .feature-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 18px;
  }

  .header-cta {
    display: none;
  }

  .brand {
    font-size: 14px;
  }

  .hero-actions .btn,
  .button-row .btn {
    width: 100%;
  }

  .feature-grid,
  .flow-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .result-header {
    display: block;
  }

  .button-row.compact {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .panel {
    padding: 20px;
    border-radius: 24px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }
}
