/* ==== Base ==== */
:root {
  --bg: #0b0f14;
  --panel: #101720;
  --panel-2: #0e141d;
  --muted: #8ea0b5;
  --text: #e6eef7;
  --brand: #4ade80;
  /* ミント系 */
  --brand-2: #22c55e;
  --line: #06c755;
  /* LINE寄せ */
  --accent: #60a5fa;
  --ring: rgba(234, 255, 222, .35);
  --shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

/* 背景：メッシュ系グラデ＋超薄ノイズで段差を抑制 */
body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
  color: var(--text);
  letter-spacing: .02em;
  background-color: #0b0f14;
  background-image:
    radial-gradient(60rem 30rem at 15% -5%, rgba(34, 197, 94, .08), transparent 60%),
    radial-gradient(55rem 28rem at 85% 0%, rgba(99, 102, 241, .09), transparent 65%),
    radial-gradient(70rem 34rem at 10% 100%, rgba(59, 130, 246, .07), transparent 60%),
    radial-gradient(65rem 30rem at 100% 90%, rgba(16, 185, 129, .07), transparent 60%),
    linear-gradient(180deg, #0b0f14 0%, #0e1520 50%, #0b0f14 100%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .01) 0 2px, transparent 2px 4px);
  background-blend-mode: screen, screen, screen, screen, normal, overlay;
}

/* ==== Utilities ==== */
.section {
  padding: 72px 20px;
  text-align: center
}

.section-title {
  font: 700 1.9rem/1.2 "Montserrat", "Noto Sans JP", sans-serif;
  margin: 0 0 28px
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width:1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:640px) {
  .grid {
    grid-template-columns: 1fr
  }
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 22px 20px;
  text-align: left;
  box-shadow: var(--shadow);
}

.card .icon {
  font-size: 1.4rem;
  color: var(--brand);
  margin-right: .4rem
}

.card h3 {
  margin: .3rem 0 .2rem;
  font-weight: 800;
  font-family: "Montserrat", "Noto Sans JP"
}

.card p {
  margin: .2rem 0 0;
  color: var(--muted);
  font-size: .95rem
}

/* ==== Buttons ==== */
a.btn-primary,
a.btn-secondary,
a.btn-ghost,
.bottom-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: .2s ease;
}

a.btn-primary {
  background: linear-gradient(90deg, var(--line), var(--brand));
  color: #08240e;
  box-shadow: 0 10px 24px rgba(34, 197, 94, .35)
}

a.btn-primary:hover {
  transform: translateY(-1px) scale(1.01)
}

a.btn-secondary {
  background: #17212b;
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--text)
}

a.btn-secondary:hover {
  background: #1b2632
}

a.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--text)
}

a.btn-ghost:hover {
  background: rgba(255, 255, 255, .06)
}

/* ==== Nav ==== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 16px;
  background: rgba(10, 14, 20, .75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 10px 20px rgba(0, 0, 0, .25);
}

.logo {
  font: 800 1.3rem "Montserrat", "Noto Sans JP";
  color: #fff;
  text-decoration: none;
  letter-spacing: .02em;
}

.nav .hamburger {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  display: none;
  position: relative;
  z-index: 60;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 6px auto;
  transition: .2s ease;
}

.nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0
}

.nav-links a {
  color: #d9e6f2;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px
}

.nav-links a:hover {
  background: rgba(255, 255, 255, .06)
}

.nav-links .cta {
  background: linear-gradient(90deg, var(--line), var(--brand));
  color: #08240e;
  font-weight: 800
}

@media (max-width:880px) {
  .nav .hamburger {
    display: block
  }

  .nav-links {
    position: fixed;
    inset: 0 auto 0 0;
    right: auto;
    transform: translateX(-100%);
    transition: transform .25s ease;
    background: rgba(8, 12, 18, .95);
    padding: 90px 22px 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: min(80vw, 320px);
    height: calc(var(--vh, 1vh)*100);
    border-right: 1px solid rgba(255, 255, 255, .08);
  }

  .nav.menu-open .nav-links {
    transform: translateX(0)
  }

  .nav.menu-open .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg)
  }

  .nav.menu-open .hamburger span:nth-child(2) {
    opacity: 0
  }

  .nav.menu-open .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg)
  }
}

/* ==== Hero ==== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10px;
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 24px 20px 88px;
  /* リボン分の余白 */
}

.hero-inner .eyebrow {
  color: #bcd2eb;
  font-size: .9rem;
  letter-spacing: .08em
}

.hero h1 {
  margin: 8px 0 8px;
  font: 800 clamp(1.8rem, 3.6vw, 3rem)/1.15 "Montserrat", "Noto Sans JP"
}

/* 見出し先頭（「紙」）は常に白・縁取り無し */
.hero h1 span:first-child {
  -webkit-text-stroke: 0;
  color: #fff;
  opacity: 1
}

.tagline {
  color: var(--muted);
  margin: 0 0 16px
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  color: #c9d7e7
}

.hero-bullets li {
  margin: 6px 0
}

.hero-img {
  position: relative;
  z-index: 1;
  /* 画像のスタック順固定 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img img {
  width: 100%;
  max-width: 540px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow);
}

.floating-badge {
  position: absolute;
  top: 14px;
  right: 10px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  color: #071b10;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .9rem;
  box-shadow: 0 12px 24px rgba(34, 197, 94, .35);
}

.ribbon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -22px;
  z-index: 10;
  /* リボンを最前面 */
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  text-decoration: none;
  color: #eaf2ff;
  font-weight: 700;
}

@media (max-width:980px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: 32px;
    padding-bottom: 96px
  }

  .hero .ribbon {
    bottom: -12px
  }
}

/* ==== Screens ==== */
.screens-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width:1000px) {
  .screens-wrap {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:640px) {
  .screens-wrap {
    grid-template-columns: 1fr
  }
}

.screen-card {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 10px;
}

.screen {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow)
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  background: rgba(0, 0, 0, .5);
  color: #e6f6ea;
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(6px);
}

.badge-employee {
  background: rgba(0, 128, 0, .45)
}

.badge-admin {
  background: rgba(0, 0, 128, .45)
}

.note {
  color: var(--muted);
  margin-top: 10px
}

/* ==== Steps ==== */
.steps-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 840px;
  text-align: left;
}

.steps-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .06);
}

.steps-list .num {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--line), var(--brand));
  color: #08240e;
  font-weight: 900
}

.steps-cta {
  margin-top: 14px
}

/* ==== Price ==== */
.price-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 26px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow);
}

.price-value {
  font: 800 2.4rem "Montserrat", "Noto Sans JP"
}

.price-value span {
  font: 700 .95rem "Noto Sans JP";
  color: #cfe4d6;
  margin-left: 8px
}

.price-card ul {
  text-align: left;
  color: #cfe4d6;
  line-height: 1.7
}

.small {
  color: var(--muted);
  font-size: .86rem;
  margin-top: 6px
}

/* ==== FAQ ==== */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  text-align: left
}

.faq-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 10px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700
}

.faq-item[open] summary {
  color: #d6ffe5
}

.faq-a {
  color: #cfe4d6;
  margin-top: 6px
}

/* ==== Footer ==== */
.footer {
  padding: 40px 20px;
  text-align: center;
  color: #c3d2e4;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
}

.footer-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 6px
}

.footer a {
  color: #eaf2ff;
  text-decoration: none
}

.footer a:hover {
  text-decoration: underline
}

/* ==== Bottom CTA (mobile only) ==== */
.bottom-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  justify-content: center;
  background: linear-gradient(90deg, var(--line), var(--brand));
  color: #08240e;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(34, 197, 94, .35);
}

@media (min-width:980px) {
  .bottom-cta {
    display: none
  }
}

/* ==== Reveal animation ==== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: .5s ease
}

.reveal.in {
  opacity: 1;
  transform: none
}