/* opruco.com のプレサイト。値は Figma「Opruco — Site」の変数（Opruco / Color の Light・Opruco / Dimensions・Opruco Site / *）と同じ。 */
:root {
  --c-canvas: #f5f7f9;
  --c-surface: #ffffff;
  --c-text: #17202a;
  --c-strong: #25313c;
  --c-secondary: #526170;
  --c-muted: #627180;
  --c-brand: #114d5f;
  --c-on-brand: #ffffff;
  --c-tint: rgba(17, 77, 95, 0.08);
  --c-border: #d8e0e7;
  --c-border-button: #c9d4dd;
  --c-separator: #edf1f4;
  --c-warning-fg: #6b4300;
  --c-warning-bg: #fff0c2;
  --c-term-bg: #18222c;
  --c-term-border: #384652;
  --c-term-text: #edf2f6;
  --c-term-muted: #abbbc9;
  --c-term-ok: #a2e7ce;
  --c-bezel: #17202a;
  --shadow-card: 0 14px 32px rgba(23, 32, 42, 0.08);
  --f-sans: "IBM Plex Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --content: 1120px;
  --gutter: 20px;
  --sec-pad: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* 短いページ（404 など）で、フッターの下が白く残らないように、ページの外の地をフッターと同じ色にする */
html { background: var(--c-canvas); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--c-surface);
  color: var(--c-text);
  font: 400 16px/28px var(--f-sans);
  line-break: strict;
  overflow-wrap: anywhere;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 10; padding: 8px 14px; background: var(--c-brand); color: var(--c-on-brand); border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), 640px); margin-inline: auto; }
.ph { display: inline-block; }
.muted { color: var(--c-muted); }
.i { width: 18px; height: 18px; flex: none; color: var(--c-brand); }

/* ブランド */
.mark { width: 32px; height: 32px; flex: none; }
.mark .mark-box { fill: var(--c-brand); }
.mark .mark-o { fill: var(--c-on-brand); }
.mark-sm { width: 24px; height: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-strong); }
.wordmark { font-weight: 700; font-size: 19px; line-height: 24px; letter-spacing: -0.01em; }
.brand-sm .wordmark { font-weight: 400; font-size: 13px; line-height: 20px; letter-spacing: 0; }
.brand-lg .mark { width: 48px; height: 48px; }
.brand-lg .wordmark { font-size: 28px; line-height: 36px; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 24px; border-radius: 8px;
  font: 600 16px/20px var(--f-sans); text-decoration: none; text-align: center;
  border: 1px solid transparent;
}
.btn-primary { background: var(--c-brand); color: var(--c-on-brand); }
.btn-primary:hover { background: #0d3e4d; }
.btn-secondary { background: var(--c-surface); color: var(--c-strong); border-color: var(--c-border-button); }
.btn-secondary:hover { border-color: #84a9b4; }

/* ヘッダー */
.site-header { background: var(--c-surface); border-bottom: 1px solid var(--c-separator); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding-block: 12px; }
.header-nav { display: flex; align-items: center; gap: 20px; font-weight: 600; font-size: 14px; line-height: 20px; }
.header-nav a { text-decoration: none; padding-block: 12px; }
.header-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-lang { color: var(--c-secondary); }
.nav-contact { color: var(--c-brand); }

/* セクション */
.sec { padding-block: var(--sec-pad); }
.sec-canvas { background: var(--c-canvas); }
.sec-surface { background: var(--c-surface); }
.sec-head { display: grid; gap: 8px; margin-bottom: 32px; max-width: 720px; }
.sec-title { font-weight: 600; font-size: 24px; line-height: 36px; color: var(--c-strong); text-wrap: balance; }
.sec-lead { color: var(--c-secondary); }
.card-title { font-weight: 600; font-size: 18px; line-height: 28px; color: var(--c-strong); }

/* ヒーロー */
.hero { overflow-x: clip; }
.hero-text { width: min(100% - 2 * var(--gutter), 640px); margin-inline: auto; padding-top: 40px; display: grid; gap: 20px; }
.hero-title { font-weight: 700; font-size: 31px; line-height: 44px; color: var(--c-strong); text-wrap: balance; }
.hero-lead { font-size: 17px; line-height: 30px; color: var(--c-secondary); }
.hero-actions { display: grid; justify-items: start; gap: 14px; }
.status { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; color: var(--c-secondary); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-warning-fg); flex: none; }

.hero-vis { position: relative; width: 390px; max-width: 100%; height: 794px; margin: 32px auto 0; }
.hero-vis::before { content: ""; position: absolute; top: 150px; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); background: var(--c-brand); }
.phone { position: absolute; background: var(--c-bezel); border-radius: 40px; padding: 10px; box-shadow: var(--shadow-card); }
.phone img { border-radius: 30px; width: 100%; }
.phone-hero { width: 280px; left: calc(50% - 140px); top: 40px; }
.chat-card {
  position: absolute; left: max(8px, calc(50% - 181px)); top: 0; width: 262px;
  display: grid; gap: 8px; justify-items: start;
  padding: 14px 16px; border-radius: 14px; background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-card);
}
.chat-top { display: flex; align-items: center; gap: 8px; width: 100%; }
.chat-sender { font-weight: 600; font-size: 14px; line-height: 20px; color: var(--c-strong); }
.chat-time { margin-left: auto; font: 400 13px/20px var(--f-mono); color: var(--c-muted); }
.chat-body { font-size: 14px; line-height: 21px; color: var(--c-text); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: 12px; line-height: 16px; }
.pill-warning { background: var(--c-warning-bg); color: var(--c-warning-fg); }
.term-card {
  position: absolute; right: max(8px, calc(50% - 175px)); top: 610px; width: 250px;
  display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px;
  background: var(--c-term-bg); border: 1px solid var(--c-term-border); box-shadow: var(--shadow-card);
  font: 400 13px/20px var(--f-mono); color: var(--c-term-text); white-space: nowrap;
}
.term-title { color: var(--c-term-muted); }
.term-ok { color: var(--c-term-ok); }
.hero-cap { position: absolute; left: 20px; right: 20px; top: 730px; font-size: 13px; line-height: 20px; color: var(--c-on-brand); }

/* 連携の先 */
.int-groups { display: grid; gap: 28px; }
.int-group { display: grid; gap: 12px; align-content: start; }
.int-label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; line-height: 20px; color: var(--c-strong); }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.tile {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px;
  padding: 10px 16px 10px 12px; border-radius: 10px; background: var(--c-surface); border: 1px solid var(--c-border);
  font-weight: 600; font-size: 14px; line-height: 20px; color: var(--c-strong);
}
.tile-text { padding-left: 14px; min-height: 42px; }
.logo-img { width: 24px; height: 24px; flex: none; }
.tm { margin-top: 24px; font-size: 13px; line-height: 20px; color: var(--c-muted); }
.int-head .tm { display: none; }
.tm-after { display: block; }

/* 場面 */
.scene-grid { display: grid; }
.step { display: grid; grid-template-columns: 64px 32px minmax(0, 1fr); column-gap: 14px; }
.step-time { padding-top: 6px; font: 500 14px/22px var(--f-mono); color: var(--c-brand); }
.step-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step-marker { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-tint); }
.step-line { flex: 1; width: 2px; background: var(--c-border); }
.step-last .step-line { visibility: hidden; }
.step-body { padding: 3px 0 28px; display: grid; gap: 4px; }
.step-label { font-weight: 600; font-size: 18px; line-height: 28px; color: var(--c-strong); }
.step-body p { color: var(--c-secondary); }
.scene-shots { display: grid; justify-items: center; gap: 10px; padding: 8px 0 32px 0; }
.scene-shots .browser { display: none; }
.phone-sm { position: relative; width: 230px; padding: 8px; border-radius: 33px; }
.phone-sm img { border-radius: 25px; }
.shot-cap { font-size: 13px; line-height: 20px; color: var(--c-muted); }
.browser { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-card); }
.browser-bar { display: flex; gap: 6px; padding: 11px 14px; background: var(--c-canvas); border-bottom: 1px solid var(--c-border); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--c-border-button); }
.browser img { width: 100%; aspect-ratio: 540 / 321; object-fit: cover; object-position: top; }

/* Workflow */
.next .sec-head { max-width: 760px; }
.next-shot { display: grid; justify-items: center; gap: 10px; }
.next-shot .browser { display: none; }
.phone-next { position: relative; width: 260px; padding: 9px; border-radius: 36px; }
.phone-next img { border-radius: 28px; }

/* しくみ */
.dg {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 10px;
  grid-template-rows: auto 44px auto 56px auto 56px auto;
}
.node { display: grid; gap: 4px; align-content: start; padding: 12px; border-radius: 10px; background: var(--c-surface); border: 1px solid var(--c-border); }
.node-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; line-height: 24px; color: var(--c-strong); }
.node-sub { font-size: 13px; line-height: 20px; color: var(--c-muted); }
.node-logos { display: flex; gap: 6px; padding-top: 2px; }
.node-logos .logo-img { width: 18px; height: 18px; }
.node-cloud { background: var(--c-brand); border-color: var(--c-brand); }
.node-cloud .node-title, .node-cloud .node-sub { color: var(--c-on-brand); }
.mark-node { width: 20px; height: 20px; }
.node-cloud .mark .mark-box { fill: var(--c-on-brand); }
.node-cloud .mark .mark-o { fill: var(--c-brand); }
.node-runner { border: 1.5px solid var(--c-brand); }
.node-dash { border: 1px dashed var(--c-muted); }
.node-approver { grid-area: 1 / 1 / 2 / 4; }
.node-chat { grid-area: 1 / 4 / 2 / 7; }
.arw-approver { grid-area: 2 / 1 / 3 / 4; }
.arw-chat { grid-area: 2 / 4 / 3 / 7; }
.node-cloud { grid-area: 3 / 1 / 4 / 7; }
.arw-alert { grid-area: 4 / 1 / 7 / 3; }
.arw-plan { grid-area: 4 / 3 / 5 / 7; }
.node-runner { grid-area: 5 / 3 / 6 / 7; }
.arw-run { grid-area: 6 / 3 / 7 / 5; }
.arw-key { grid-area: 6 / 5 / 7 / 7; }
.node-monitor { grid-area: 7 / 1 / 8 / 3; }
.node-servers { grid-area: 7 / 3 / 8 / 5; }
.node-vault { grid-area: 7 / 5 / 8 / 7; }
.dg > .node:not(.node-cloud):not(.node-runner) { height: 100%; }
.node-monitor, .node-servers, .node-vault { padding: 10px; }
.node-monitor .node-sub, .node-servers .node-sub, .node-vault .node-sub { font-size: 12px; line-height: 18px; }
@media (max-width: 1179px) {
  .dg { column-gap: 8px; }
  .arw-plan .arw-lbl, .arw-key .arw-lbl { left: auto; right: calc(50% + 10px); }
}
@media (max-width: 1179px) { .node-monitor .node-title, .node-servers .node-title, .node-vault .node-title { flex-direction: column; align-items: flex-start; gap: 4px; } }
.arw { position: relative; color: var(--c-muted); }
.arw::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 1.5px; margin-left: -0.75px; background: currentColor; }
.arw.dash::before { background: repeating-linear-gradient(to bottom, currentColor 0 4px, transparent 4px 7px); }
.arw .hd { position: absolute; left: 50%; width: 8px; height: 8px; margin-left: -4px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; }
.arw .hd.dn { bottom: 7px; transform: rotate(45deg); }
.arw .hd.up { top: 7px; transform: rotate(-135deg); }
.arw-lbl { position: absolute; left: calc(50% + 10px); top: 50%; transform: translateY(-50%); font-size: 13px; line-height: 20px; color: var(--c-secondary); white-space: nowrap; }

/* 楽になること */
.feat-list { display: grid; gap: 28px; }
.feat-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.feat-item > div { display: grid; gap: 6px; align-content: start; }
.feat-item p, .aud-card p { color: var(--c-secondary); }
.icon-tile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c-tint); }
.icon-tile .i { width: 24px; height: 24px; }

/* だれ向け */
.aud-list { display: grid; gap: 12px; }
.aud-card { display: grid; gap: 10px; justify-items: start; padding: 20px; border-radius: 14px; background: var(--c-surface); }

/* 今の状態・お問い合わせ */
.band { background: var(--c-brand); color: var(--c-on-brand); padding-block: 48px; }
.band :focus-visible { outline-color: var(--c-on-brand); }
.band-inner { display: grid; gap: 24px; }
.band-status, .band-contact { display: grid; gap: 8px; align-content: start; }
.band-contact { gap: 12px; }
.band-status-title { font-weight: 600; font-size: 18px; line-height: 28px; }
.band-contact-title { font-weight: 600; font-size: 24px; line-height: 36px; }
.band-rule { height: 1px; background: rgba(255, 255, 255, 0.24); }
.btn-mail { width: 100%; min-height: 48px; margin-top: 4px; }

/* フッター */
.site-footer { background: var(--c-canvas); border-top: 1px solid var(--c-border); padding-block: 40px; }
.footer-inner { display: grid; gap: 16px; justify-items: start; }
.footer-meta { display: grid; gap: 4px; font-size: 13px; line-height: 20px; color: var(--c-secondary); }
.footer-link { text-underline-offset: 3px; }

/* 404・予備 */
.nf { background: var(--c-canvas); padding-block: 64px 96px; min-height: 60vh; }
.nf .wrap { display: grid; gap: 16px; justify-items: start; }
.nf-title { font-weight: 600; font-size: 28px; line-height: 40px; color: var(--c-strong); }
.nf-title-en { margin-top: 16px; font-size: 22px; line-height: 32px; }
.nf-body { color: var(--c-secondary); }
.nf-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* PC（1180px から） */
@media (min-width: 1180px) {
  :root { --sec-pad: 96px; }
  .wrap { width: min(100% - 2 * 40px, var(--content)); }
  .sec-head { gap: 12px; margin-bottom: 48px; }
  .sec-title { font-size: 34px; line-height: 48px; letter-spacing: -0.006em; }
  .sec-lead { font-size: 19px; line-height: 34px; }
  .btn { min-height: 48px; }

  .hero {
    display: grid; align-items: center;
    grid-template-columns: minmax(40px, 1fr) minmax(0, 600px) minmax(0, 520px) minmax(40px, 1fr);
    min-height: 820px;
  }
  .hero-text { grid-column: 2; width: auto; margin: 0; padding: 80px 0; gap: 28px; }
  .hero-title { font-size: clamp(44px, 3.7vw, 52px); line-height: 1.385; letter-spacing: -0.01em; }
  .hero-lead { font-size: 19px; line-height: 34px; max-width: 540px; }
  .hero-actions { gap: 16px; padding-top: 8px; }
  .hero-vis { grid-column: 3 / 5; grid-row: 1; align-self: stretch; width: auto; max-width: none; height: auto; min-height: 820px; margin: 0; }
  .hero-vis::before { top: 0; bottom: 0; left: 120px; right: 0; }
  .phone-hero { left: 250px; top: 104px; }
  .chat-card { left: -4px; top: 150px; }
  .term-card { left: min(360px, 100% - 270px); right: auto; top: 610px; }
  .hero-cap { left: 250px; right: 20px; top: auto; bottom: 40px; max-width: 420px; }

  .int-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); column-gap: 64px; }
  .int-head { margin-bottom: 0; align-content: start; }
  .int-head .tm { display: block; }
  .tm-after { display: none; }
  .int-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; row-gap: 48px; }

  .scene .sec-head { max-width: 900px; }
  .scene-grid { grid-template-columns: 480px minmax(0, 1fr); column-gap: 64px; }
  .steps-a { grid-column: 1; grid-row: 1; }
  .steps-b { grid-column: 1; grid-row: 2; }
  .scene-shots { grid-column: 2; grid-row: 1 / 3; align-self: start; position: sticky; top: 32px; display: grid; justify-items: start; align-content: start; gap: 14px; min-height: 690px; padding: 0; }
  .scene-shots .browser { display: block; width: min(540px, 100% - 60px); }
  .scene-shots .phone-sm { position: absolute; right: 0; top: 200px; }

  .next-shot { justify-items: start; gap: 14px; }
  .next-shot .browser { display: block; width: 100%; }
  .next-shot .browser img { aspect-ratio: 1120 / 700; }
  .next-shot .phone-next { display: none; }

  .how-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); column-gap: 64px; align-items: start; }
  .how .sec-head { margin-bottom: 0; }
  .dg { column-gap: 16px; }

  .feat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 80px; row-gap: 56px; }
  .feat-item { gap: 20px; }

  .aud-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .aud-card { padding: 32px; gap: 14px; }

  .band { padding-block: 64px; }
  .band-inner { grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); column-gap: 64px; }
  .band-status-title { margin-top: 2px; }
  .band-rule { height: auto; }
  .band-contact-title { font-size: 34px; line-height: 48px; }
  .btn-mail { width: auto; justify-self: start; }

  .footer-inner { grid-template-columns: auto auto; justify-content: space-between; align-items: center; }
  .footer-meta { justify-items: end; text-align: right; }

  .nf { padding-block: 96px 160px; }
  .nf-title { font-size: 34px; line-height: 48px; }
}
