/* =========================================================
   UPRESS LP — reproduction of the STUDIO site (hand-coded)
   Brand: red #D21E2D / check green #2ABD36 / text #1C1A1A
   ========================================================= */

:root {
  --red: #d21e2d;
  --red-dark: #b81a28;
  --green: #2abd36;
  --ink: #1c1a1a;
  --ink-2: #333333;
  --gray: #6b6b6b;
  --line: #dcd8d8;
  --line-2: #eeeeee;
  --bg: #ffffff;
  --bg-soft: #f8f6f6;
  --hero-grad: linear-gradient(0deg, #f2e6e6 0%, #ffffff 100%);
  --radius: 14px;
  --shadow: 0 10px 40px rgba(28, 26, 26, .06);
  --maxw: 1080px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line-2);
}
.site-header .container {
  display: flex; align-items: center; gap: 14px;
  height: 60px;
}
.site-header .logo { display: flex; align-items: center; gap: 12px; }
.site-header .logo img { height: 19px; width: auto; }
.site-header .logo span { font-size: 13px; color: var(--ink-2); font-weight: 700; letter-spacing: .02em; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--hero-grad);
  padding: 70px 0 90px;
  overflow: hidden;
}
/* decorative red triangles on the left */
.hero-tri { position: absolute; width: 0; height: 0; border-style: solid; z-index: 0; }
.hero-tri.t1 { left: 4%;  top: 90px;  border-width: 0 70px 120px 70px;  border-color: transparent transparent var(--red) transparent; opacity: .85; }
.hero-tri.t2 { left: 14%; top: 230px; border-width: 0 32px 55px 32px;   border-color: transparent transparent var(--red) transparent; opacity: .35; }
.hero-tri.t3 { left: -1%; top: 320px; border-width: 0 100px 175px 100px; border-color: transparent transparent var(--red) transparent; opacity: 1; }
.hero .container { position: relative; z-index: 1; }
.hero-head {
  display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap;
  margin-bottom: 44px;
}
.hero-lead { text-align: left; }
.hero-kicker { font-size: clamp(15px, 2vw, 19px); font-weight: 800; margin: 0 0 12px; letter-spacing: .01em; }
.hero-lockup { max-width: min(420px, 72vw); margin: 0; }
.hero-sub { font-size: 14px; color: var(--gray); margin: 10px 0 0; font-weight: 700; }
.hero-badges { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  padding: 12px 22px; border-radius: 999px; font-weight: 800; font-size: 15px;
  box-shadow: var(--shadow);
}
.badge .check {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center; font-size: 13px;
}
.hero-visual { max-width: 720px; margin: 0 auto; }
.hero-visual img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Section scaffolding ---------- */
.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }
.section-title { text-align: center; font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin: 0 0 8px; }
.section-title .u { color: var(--red); }
.section-lead { text-align: center; color: var(--gray); margin: 0 auto 48px; max-width: 720px; }

/* ---------- Reason cards (Point.1-3) ---------- */
.reason { display: grid; gap: 28px; }
.reason-card {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 40px;
  display: grid; grid-template-columns: 400px 1fr; gap: 40px; align-items: center;
}
.reason-card .thumb { border-radius: 10px; overflow: hidden; }
.reason-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.point-tag {
  display: inline-block; background: var(--red); color: #fff; font-weight: 800;
  font-size: 13px; padding: 4px 12px; border-radius: 4px; margin-bottom: 12px; letter-spacing: .04em;
}
.reason-card h3 { font-size: clamp(19px, 2.4vw, 24px); font-weight: 800; margin: 0 0 14px; }
.reason-card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; }
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px;
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.compare th, .compare td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.compare thead th { background: var(--bg-soft); font-weight: 800; }
.compare thead th.col-upress { background: var(--red); color: #fff; }
.compare tbody th { text-align: left; font-weight: 700; background: #fff; }
.compare td.good { color: var(--red); font-weight: 800; }
.compare td.maru { font-size: 18px; }

/* ---------- Flow diagram ---------- */
.flow { text-align: center; }
.flow img { margin: 0 auto; border-radius: 8px; }
.flow .desktop { display: block; }
.flow .mobile { display: none; }

/* ---------- Customize columns ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.cz-card { background: transparent; padding: 0; }
.cz-card .cz-industry { color: var(--red); font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.cz-card .cz-feature {
  display: inline-block; background: var(--red); color: #fff; font-weight: 800; font-size: 15px;
  padding: 7px 18px; border-radius: 999px; margin-bottom: 16px;
}
.cz-card ul { margin: 0; padding-left: 0; color: var(--ink-2); font-size: 14px; line-height: 1.9; list-style: none; }
.cz-card ul li { position: relative; padding-left: 1em; }
.cz-card ul li::before { content: "・"; position: absolute; left: -1px; color: var(--ink-2); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); position: relative; }
.step .step-no { color: var(--red); font-weight: 800; font-size: 13px; letter-spacing: .08em; margin-bottom: 10px; }
.step h4 { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.step p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* ---------- CTA / buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: 16px; padding: 16px 40px; border-radius: 999px;
  transition: transform .15s, background .2s, box-shadow .2s; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: #fff; color: var(--ink-2); border: 1.5px solid var(--green); border-radius: 6px; box-shadow: 0 6px 20px rgba(28,26,26,.08); }
.btn-primary:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.cta-block { text-align: center; }
.cta-block h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 24px; }

/* ---------- Sticky floating CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(28, 26, 26, .92); backdrop-filter: blur(6px);
  padding: 14px 16px; display: flex; justify-content: center;
  transform: none;
}
.sticky-cta .btn {
  background: #fff; color: var(--ink-2); border-color: var(--green); border-radius: 5px;
  font-size: 15px; padding: 11px 30px; box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.sticky-cta .btn:hover { background: var(--green); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line-2); padding: 48px 0 90px; }
.site-footer .foot-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: space-between; }
.site-footer .company { font-weight: 800; margin-bottom: 6px; }
.site-footer a.link { color: var(--red); text-decoration: underline; }
.site-footer .addr, .site-footer p { font-size: 13px; color: var(--gray); margin: 4px 0; }
.site-footer .copy { font-size: 12px; color: var(--gray); margin-top: 24px; }
.site-footer .foot-logo { height: 30px; width: auto; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Legal page ---------- */
.legal { padding: 60px 0 100px; }
.legal h1 { font-size: 26px; margin-bottom: 28px; }
.legal dl { display: grid; grid-template-columns: 220px 1fr; border-top: 1px solid var(--line); }
.legal dt, .legal dd { padding: 16px 8px; border-bottom: 1px solid var(--line); margin: 0; font-size: 14px; }
.legal dt { font-weight: 700; background: var(--bg-soft); }
.legal dd { color: var(--ink-2); }
.back-link { display: inline-block; margin-top: 28px; color: var(--red); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-head { gap: 28px; margin-bottom: 32px; }
  .hero-tri.t1 { border-width: 0 42px 72px 42px; top: 40px; left: 2%; opacity: .5; }
  .hero-tri.t2 { display: none; }
  .hero-tri.t3 { display: none; }
  .reason-card { grid-template-columns: 1fr; gap: 22px; padding: 28px; }
  .reason-card .thumb { max-height: 220px; }
  .cards-4, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero-tri { display: none; }
  .hero-head { flex-direction: column; align-items: center; }
  .hero-lead { text-align: center; }
  .hero-badges { align-items: center; }
  .flow .desktop { display: none; }
  .flow .mobile { display: block; max-width: 360px; }
  .cards-4 { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .cz-card .cz-industry { font-size: 14px; }
  .cz-card .cz-feature { font-size: 13px; padding: 6px 13px; }
  .cz-card ul { font-size: 13px; }
  .steps { grid-template-columns: 1fr; }
  .legal dl { grid-template-columns: 1fr; }
  .legal dt { border-bottom: none; }
  .site-header .logo span { font-size: 11px; }
  /* comparison table: fit mobile, no min-width, compact */
  .compare { min-width: 0; }
  .compare th, .compare td { padding: 10px 5px; font-size: 12px; }
  .compare thead th { font-size: 12px; }
  .compare td.maru { font-size: 15px; }
}
