/* ============================================
   OrigenAI — Site Stylesheet
   White-base, clean SaaS design (trust-focused)
   Brand gradient: #0098ff → #34ac77 → #b0d94d
   ============================================ */

:root {
  --blue: #0098ff;
  --green: #34ac77;
  --lime: #b0d94d;
  --navy: #0e2740;
  --text: #22344a;
  --muted: #5d6f82;
  --bg: #ffffff;
  --bg-alt: #f4f8fb;
  --bg-soft: #eaf4fb;
  --border: #dfe9f1;
  --shadow: 0 6px 24px rgba(14, 39, 64, 0.08);
  --shadow-sm: 0 2px 10px rgba(14, 39, 64, 0.06);
  --grad: linear-gradient(100deg, #0098ff 10%, #34ac77 60%, #b0d94d 105%);
  --grad-soft: linear-gradient(100deg, rgba(0,152,255,.08), rgba(52,172,119,.08) 60%, rgba(176,217,77,.10));
  --radius: 14px;
  --maxw: 1120px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Outfit", "Noto Sans JP", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
ul, ol { list-style: none; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 20px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 4px; align-items: center; }
.gnav a {
  display: block; padding: 8px 13px; color: var(--text);
  font-size: 14.5px; font-weight: 500; border-radius: 8px;
  white-space: nowrap;
}
.gnav a:hover { background: var(--bg-alt); color: var(--blue); }
.header-cta { display: flex; gap: 10px; flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; border-radius: 999px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  text-align: center; border: none; line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--grad); color: #fff;
  padding: 12px 26px; font-size: 15px;
  box-shadow: 0 4px 14px rgba(0, 152, 255, .30);
}
.btn-primary:hover { box-shadow: 0 8px 22px rgba(0, 152, 255, .38); }
.btn-outline {
  background: #fff; color: var(--navy);
  border: 2px solid var(--navy);
  padding: 10px 24px; font-size: 15px;
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost {
  background: var(--bg-alt); color: var(--navy);
  padding: 12px 22px; font-size: 14.5px;
}
.btn-lg { padding: 16px 44px; font-size: 17px; }
.btn-white {
  background: #fff; color: var(--navy);
  padding: 15px 40px; font-size: 16px;
  box-shadow: 0 4px 16px rgba(14,39,64,.18);
}

/* Mobile nav */
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: none; background: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); transition: .2s; display: block; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(176,217,77,.16), transparent 60%),
    radial-gradient(900px 520px at -10% 20%, rgba(0,152,255,.12), transparent 55%),
    linear-gradient(180deg, #f6fafd 0%, #ffffff 100%);
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero-copy .eyebrow {
  display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--green);
  background: rgba(52,172,119,.10); border: 1px solid rgba(52,172,119,.25);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 18px;
}
h1.hero-title {
  font-size: clamp(30px, 4.2vw, 46px); font-weight: 900; color: var(--navy);
  line-height: 1.35; letter-spacing: .01em; margin-bottom: 18px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 16.5px; color: var(--muted); margin-bottom: 26px; max-width: 34em; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-badges .badge {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 10px 16px; text-align: center; min-width: 128px;
}
.badge .b-top { font-size: 11.5px; color: var(--muted); font-weight: 600; display: block; }
.badge .b-main { font-size: 16px; font-weight: 900; color: var(--navy); display: block; line-height: 1.4; }
.badge .b-main em { font-style: normal; color: var(--green); }

.hero-visual { position: relative; }
.hero-visual .shot {
  border-radius: 14px; box-shadow: 0 18px 50px rgba(14,39,64,.18);
  border: 1px solid var(--border);
}
.hero-visual .shot-sub {
  position: absolute; right: -14px; bottom: -26px; width: 46%;
  border-radius: 10px; box-shadow: 0 12px 34px rgba(14,39,64,.22);
  border: 1px solid var(--border); background: #fff;
}

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.alt { background: var(--bg-alt); }
.sec-head { text-align: center; margin-bottom: 46px; }
.sec-label {
  font-family: var(--font-en); font-size: 13px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green); display: block; margin-bottom: 10px;
}
h2.sec-title {
  font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; color: var(--navy);
  line-height: 1.5;
}
.sec-desc { margin-top: 14px; color: var(--muted); font-size: 15.5px; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 10px; line-height: 1.5; }
.card p { font-size: 14.5px; color: var(--muted); }
.card .icon {
  width: 52px; height: 52px; border-radius: 13px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); font-size: 25px;
}
.num-badge {
  font-family: var(--font-en); font-weight: 700; font-size: 15px;
  background: var(--grad); color: #fff;
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}

/* ---------- Problems / checks ---------- */
.prob-list li, .check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; font-size: 15.5px;
}
.prob-list .x, .check-list .c {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; margin-top: 3px;
}
.prob-list .x { background: #fdecec; color: #d64545; }
.check-list .c { background: rgba(52,172,119,.12); color: var(--green); }

/* ---------- Feature rows ---------- */
.feat-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
  padding: 44px 0;
}
.feat-row .shot {
  border-radius: 14px; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.feat-row h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 900; color: var(--navy); line-height: 1.55; margin-bottom: 14px; }
.feat-row .tag {
  display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--blue);
  background: rgba(0,152,255,.08); border-radius: 999px; padding: 4px 14px; margin-bottom: 12px;
}
.feat-row p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }

/* ---------- Case cards ---------- */
.case-card { display: flex; flex-direction: column; }
.case-ind {
  font-size: 12.5px; font-weight: 700; color: var(--blue);
  background: rgba(0,152,255,.08); align-self: flex-start;
  padding: 4px 14px; border-radius: 999px; margin-bottom: 12px;
}
.case-company { font-size: 13.5px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.case-card h3 { font-size: 16.5px; }
.case-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: auto; padding-top: 18px;
}
.metric {
  background: var(--bg-alt); border-radius: 10px; padding: 12px 6px; text-align: center;
}
.metric .m-val {
  font-family: var(--font-en); font-weight: 800; font-size: 17px; display: block;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric .m-label { font-size: 11px; color: var(--muted); display: block; line-height: 1.5; margin-top: 2px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 36px 30px; display: flex; flex-direction: column; position: relative;
  box-shadow: var(--shadow-sm);
}
.price-card.popular { border: 2px solid var(--green); box-shadow: var(--shadow); }
.pop-tag {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 5px 20px; border-radius: 999px; white-space: nowrap;
}
.price-card .plan-name { font-size: 19px; font-weight: 800; color: var(--navy); }
.price-card .plan-for { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.price-value { margin-bottom: 20px; }
.price-value .yen { font-family: var(--font-en); font-size: 40px; font-weight: 800; color: var(--navy); }
.price-value .per { font-size: 14px; color: var(--muted); }
.price-card ul { border-top: 1px solid var(--border); padding-top: 18px; margin-bottom: 24px; flex-grow: 1; }
.price-card li {
  display: flex; gap: 10px; font-size: 14px; padding: 6px 0; color: var(--text);
}
.price-card li::before { content: "✓"; color: var(--green); font-weight: 900; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 22px;
  font-weight: 700; font-size: 15.5px; color: var(--navy); position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q."; color: var(--blue); font-family: var(--font-en); font-weight: 800; margin-right: 10px; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--green); font-weight: 400; transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a {
  padding: 0 22px 20px 22px; font-size: 14.5px; color: var(--muted);
  border-top: 1px dashed var(--border); padding-top: 14px; margin: 0 0;
}
.faq-item .faq-a::before { content: "A."; color: var(--green); font-family: var(--font-en); font-weight: 800; margin-right: 10px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; position: relative; box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 16px; font-weight: 800; color: var(--navy); margin: 8px 0 8px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* ---------- Trust / security ---------- */
.trust-item { text-align: center; padding: 26px 18px; }
.trust-item .icon { margin: 0 auto 14px; }
.trust-item h3 { font-size: 16px; }
.trust-item p { font-size: 13.5px; }

/* ---------- Company table ---------- */
.company-table { width: 100%; max-width: 760px; margin: 0 auto; border-collapse: collapse; }
.company-table th, .company-table td {
  text-align: left; padding: 18px 16px; border-bottom: 1px solid var(--border);
  font-size: 15px; vertical-align: top;
}
.company-table th { width: 180px; color: var(--navy); font-weight: 700; white-space: nowrap; }
.company-table td { color: var(--text); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(176,217,77,.28), transparent 60%),
    linear-gradient(105deg, #0b3f6e 0%, #12744f 100%);
  color: #fff; text-align: center; padding: 72px 0;
}
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 900; line-height: 1.6; margin-bottom: 14px; }
.cta-band p { opacity: .92; margin-bottom: 30px; font-size: 15.5px; }
.cta-band .hero-btns { justify-content: center; }

/* ---------- News ---------- */
.news-list { max-width: 820px; margin: 0 auto; }
.news-list li { border-bottom: 1px solid var(--border); }
.news-list a {
  display: flex; gap: 24px; align-items: baseline; padding: 20px 8px; color: var(--text);
}
.news-list a:hover { background: var(--bg-alt); }
.news-date { font-family: var(--font-en); color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.news-cat {
  font-size: 11.5px; font-weight: 700; color: var(--green);
  border: 1px solid var(--green); border-radius: 999px; padding: 2px 12px; white-space: nowrap;
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: var(--grad-soft), linear-gradient(180deg, #f6fafd, #fff);
  padding: 64px 0 48px; text-align: center;
}
.page-hero h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; color: var(--navy); line-height: 1.5; margin-bottom: 12px; }
.page-hero p { color: var(--muted); font-size: 15.5px; }

/* ---------- Legal ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 19px; font-weight: 800; color: var(--navy); margin: 38px 0 12px; }
.legal p, .legal li { font-size: 14.5px; color: var(--text); margin-bottom: 8px; }
.legal ol { list-style: decimal; padding-left: 22px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal .note { color: var(--muted); font-size: 13px; margin-top: 34px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cfdbe7; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-brand img { height: 30px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13px; opacity: .8; }
.site-footer h4 { color: #fff; font-size: 13.5px; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #cfdbe7; font-size: 13.5px; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; opacity: .75;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--border); padding: 10px 14px;
  gap: 10px;
}
.sticky-cta .btn { flex: 1; padding: 12px 8px; font-size: 14px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.on { opacity: 1; transform: none; }

/* ---------- Feature pages ---------- */
.feature-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.feature-nav a {
  font-size: 13.5px; font-weight: 700; color: var(--navy);
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 18px; box-shadow: var(--shadow-sm);
}
.feature-nav a:hover { border-color: var(--green); color: var(--green); }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.app-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 18px; box-shadow: var(--shadow-sm);
}
.app-card .a-icon { font-size: 24px; margin-bottom: 8px; }
.app-card h4 { font-size: 14.5px; font-weight: 800; color: var(--navy); margin-bottom: 6px; line-height: 1.5; }
.app-card p { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.app-card .official {
  display: inline-block; font-size: 10.5px; font-weight: 700; color: #fff;
  background: var(--grad); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px;
}
.badge-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.badge-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; font-size: 13px; font-weight: 700; color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.integ-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.breadcrumb {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px 0;
  font-size: 13px; color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }

/* UI mockup (for features without screenshots) */
.ui-mock {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden; font-size: 13px;
}
.ui-mock .mock-bar {
  display: flex; gap: 6px; padding: 10px 14px;
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.ui-mock .mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d8e2ea; }
.ui-mock .mock-body { padding: 18px; }
.ui-mock .mock-title { font-weight: 800; color: var(--navy); font-size: 15px; margin-bottom: 4px; }
.ui-mock .mock-sub { color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.mock-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--bg-alt); border-radius: 10px; padding: 11px 14px; margin-bottom: 9px;
}
.mock-item .mi-icon { flex-shrink: 0; }
.mock-item .mi-label { font-weight: 700; color: var(--navy); font-size: 12.5px; }
.mock-item .mi-text { color: var(--muted); font-size: 12px; line-height: 1.7; }
.mock-item.hl { background: var(--grad-soft); border: 1px solid rgba(52,172,119,.30); }
.detail-link { margin-top: 16px; }
.detail-link a { font-weight: 700; font-size: 14.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .gnav a { padding: 8px 8px; font-size: 13.5px; }
}
@media (max-width: 900px) {
  .gnav {
    display: none; position: fixed; inset: 68px 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); padding: 12px 20px 20px;
  }
  .gnav.open { display: block; }
  .gnav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .gnav a { padding: 13px 8px; font-size: 15.5px; border-bottom: 1px solid var(--bg-alt); }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .hero-grid, .feat-row, .grid-3, .grid-2, .grid-4, .price-grid, .steps { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .hero-visual { margin-top: 8px; }
  .hero-visual .shot-sub { display: none; }
  section { padding: 56px 0; }
  .feat-row { gap: 24px; padding: 28px 0; }
  .feat-row.rev .feat-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 66px; }
  .company-table th { width: 120px; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .integ-grid { grid-template-columns: 1fr 1fr; }
}
