:root {
  --rn-blue: #4fa5e6;
  --rn-blue-light: #6bb6ea;
  --rn-blue-dark: #3394e1;
  --rn-sky: #87ceeb;
  --rn-sky-deep: #5dade2;
  --rn-ink: #1a1a2e;
  --rn-body: #4a5568;
  --rn-muted: #737373;
  --rn-line: #e5e5e5;
  --rn-pearl: #f8f9fa;
  --rn-soft: #eef6fd;
  --rn-soft-2: #f7fbff;
  --rn-red: #ff0000;
  --rn-green-line: #06c755;
  --rn-grad-sky: linear-gradient(135deg, #87ceeb 0%, #6bb6ea 25%, #5dade2 50%, #6bb6ea 75%, #87ceeb 100%);
  --rn-grad-btn: linear-gradient(135deg, #6bb6ea 0%, #4fa5e6 100%);
  --rn-grad-border: linear-gradient(135deg, #87ceeb 0%, #6bb6ea 25%, #5dade2 50%, #6bb6ea 75%, #87ceeb 100%);
  --rn-shadow-btn: 0 10px 26px rgba(79, 165, 230, 0.35);
  --rn-shadow-card: 0 10px 30px rgba(79, 165, 230, 0.16);
  --rn-font: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

.rn-frag,
.rn-before,
.rn-after {
  display: contents;
}
.rn-before[hidden],
.rn-after[hidden] {
  display: none !important;
}

/* 未確定、後で消すもの(赤字ボールド)。該当部分だけに付ける。長文の本文は赤くしない */
.rn-ph,
.rn-note {
  color: #ff0000 !important;
  font-weight: 800 !important;
  background: rgba(255, 255, 255, 0.94);
  padding: 0 0.28em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  -webkit-text-fill-color: #ff0000;
  text-shadow: none;
  letter-spacing: 0;
}

/* 新設セクションの共通土台(既存の見た目を写す) */
.rn-sec {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0;
  font-family: var(--rn-font);
  color: var(--rn-body);
  line-height: 1.8;
  box-sizing: border-box;
}
.rn-sec *,
.rn-sec *::before,
.rn-sec *::after {
  box-sizing: border-box;
}
.rn-sec :where(h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd) {
  margin: 0;
  padding: 0;
}
.rn-sec :where(ul, ol) {
  list-style: none;
}
.rn-sec :where(a) {
  color: inherit;
  text-decoration: none;
}
.rn-sec :where(img, svg) {
  max-width: 100%;
  display: block;
}
/* Brand word as the logo image, inline with the surrounding text (CEO 2026-11-01: never the word MALINE as plain text).
   Size and alignment follow the LP's own inline logo (the Gmail guideline notice): height 1.2em, vertical-align middle. */
.rn-wm {
  display: inline-block;
  height: 1.2em;
  width: auto;
  max-width: none;
  vertical-align: middle;
  margin: 0 0.08em 0.1em 0.04em;
}
/* 'MALINE HUB' as one wordmark image (build.py HUB_LOGO); a little more room on both sides because the brackets are gone */
.rn-wm--hub {
  margin: 0 0.16em 0.1em 0.14em;
}
.rn-sec--soft {
  background: linear-gradient(135deg, var(--rn-soft) 0%, var(--rn-soft-2) 100%);
}
.rn-sec--pearl {
  background: var(--rn-pearl);
}
.rn-sec--sky {
  background: var(--rn-grad-sky);
  color: #fff;
}
.rn-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.rn-head {
  text-align: center;
  margin: 0 auto clamp(28px, 4vw, 48px);
}

/* 見出しバッジ(既存 .section-badge-top と同じ見た目) */
.rn-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  padding: 10px 30px;
  border-radius: 50px;
  background: linear-gradient(135deg, #87ceeb 0%, #5dade2 100%);
  color: #fff;
  font-family: 'Inter', var(--rn-font);
  font-size: 14.4px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(93, 173, 226, 0.3);
}
/* 見出し(既存 .section-title の見た目。文字のグラデーションは使わず、確実に読める濃色 + 青) */
.rn-title {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--rn-ink);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.rn-title em,
.rn-title .rn-blue {
  font-style: normal;
  color: var(--rn-blue-dark);
}
.rn-lead {
  margin-top: 14px;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.9;
  color: var(--rn-body);
}

/* ボタン(既存のピル型を踏襲。タップ領域は44px以上) */
.rn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 30px;
  border: 2px solid transparent;
  border-radius: 50px;
  font-family: var(--rn-font);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.rn-btn:hover {
  transform: translateY(-2px);
}
.rn-btn:focus-visible {
  outline: 3px solid #1a1a2e;
  outline-offset: 3px;
}
.rn-btn--primary {
  background: var(--rn-grad-btn);
  color: #fff;
  box-shadow: var(--rn-shadow-btn);
}
.rn-btn--ghost {
  background: #fff;
  color: var(--rn-blue-dark);
  border-color: var(--rn-blue-light);
}
.rn-btn--white {
  background: #fff;
  color: var(--rn-sky-deep);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.rn-btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.95);
}
.rn-btn--lg {
  min-height: 58px;
  padding: 16px 40px;
  font-size: 1.1rem;
}
.rn-btn--sm {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 0.92rem;
}

/* カード(既存 .faq-item のグラデーション枠) */
.rn-card {
  border: 2px solid transparent;
  border-radius: 24px;
  background: linear-gradient(#fff, #fff) padding-box, var(--rn-grad-border) border-box;
  box-shadow: var(--rn-shadow-card);
}
.rn-card--flat {
  background: #fff;
  border: 1px solid var(--rn-line);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.rn-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--rn-soft);
  color: var(--rn-blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.5;
}
.rn-chip--new {
  background: #e8352e;
  color: #fff;
}

.rn-grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}
.rn-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .rn-container {
    padding: 0 16px;
  }
  .rn-btn {
    padding: 12px 22px;
  }
  .rn-btn--lg {
    padding: 14px 28px;
    font-size: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rn-btn {
    transition: none;
  }
}

/* Device cut-outs (transparent WebP: the deck's studio laptop + phone with the background removed, CEO 11/1).
   No card: a soft shadow follows the silhouette. img.rn-devimg outranks the site's card styles (.trial-dashboard-image-mobile, .hero-laptop-img) */
img.rn-devimg {
  display: block;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  filter: drop-shadow(0 24px 34px rgba(2, 55, 83, 0.32));
}
img.rn-devimg--onblue {
  filter: drop-shadow(0 24px 34px rgba(2, 55, 83, 0.45));
}
/* the device pictures of R02, R19, R21, R24 carry their own soft table shadow inside the image (3D render), so no extra silhouette shadow on top */
img.rn-devimg.rn-devimg--baked {
  filter: none;
}
.rn-frag--fill {
  width: 100%;
  min-width: 0;
}
@media (max-width: 600px) {
  img.rn-devimg,
  img.rn-devimg--onblue {
    filter: drop-shadow(0 14px 20px rgba(2, 55, 83, 0.35));
  }
}

/* the original final CTA (#cta) is width:100vw with a negative margin, which is 8px wider than the page whenever a vertical scrollbar exists:
   clip the sideways overflow at the root (clip, not hidden, so nothing becomes a scroll container and sticky parts keep working) */
html {
  overflow-x: clip;
}

/* CEO 11/15 "型崩れ(変な改行)": headings wrap in balanced lines, paragraphs avoid a one- or two-character last line. Where text-wrap is unsupported the normal wrap applies. */
h1, h2, h3, h4,
.rn-lead,
.rn-r34-sub {
  text-wrap: balance;
}
p,
li,
figcaption {
  text-wrap: balance;
}

/* CEO 11/15 line-break sweep (360-1440px): these original blocks left a one- or two-character last line; break at phrases and avoid short last lines */
h2.ai-agent-hero-title,
p.payment-description,
#api-promo p {
  word-break: auto-phrase;
  text-wrap: pretty;
}

/* AUDIT 11/15 (CEO "PC, SP, TBで型崩れがないか"): Japanese lines broke in the middle of a word on narrow screens
   ("セキュリテ/ィ", "リリー/ス", "ご利/用開始"). Headings break between phrases at every width; on tablets and phones the
   running text does too, and headings are balanced so that no single character is left alone on the last line.
   Browsers without auto-phrase keep the previous behaviour. */
h1, h2, h3, h4, h5, summary {
  word-break: auto-phrase;
}
@media (max-width: 820px) {
  body {
    word-break: auto-phrase;
    overflow-wrap: break-word;
  }
  h1, h2, h3, h4, h5 {
    text-wrap: balance;
  }
}

/* the original gradient headings carry word-break: break-word, which cut "セキュリテ/ィ" and "ご利/用開始" */
.maline-blue-title,
.maline-blue-title span,
.ultra-silver-title {
  word-break: auto-phrase;
}

/* AUDIT 11/15: at 320px the question mark of "このようなことでお困りですか？" was left alone on a second line */
@media (max-width: 340px) {
  #features .section-header-center .section-title {
    font-size: 1.1rem !important;
    white-space: nowrap;
  }
}
