/* 株式会社rIde ホームページ
   色: ブランドの青 #007BBF → 水色 #1FB8D9、文字 濃紺 #0B1B33・灰 #5A6B80(会社紹介資料と同じ) */
:root {
  --blue: #007BBF;
  --cyan: #1FB8D9;
  --navy: #0B1B33;
  --gray: #5A6B80;
  --line: #E3EAF2;
  --bg: #FFFFFF;
  --bg-alt: #F4F8FB;
  --grad: linear-gradient(90deg, var(--blue), var(--cyan));
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 27, 51, .07);
  --wrap: 1120px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  font-feature-settings: "palt" 1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.4; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sp { display: none; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 15px; }
.brand img { height: 32px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: var(--blue); }
.site-nav .nav-cta { color: #fff; background: var(--grad); padding: 8px 18px; border-radius: 999px; }
.site-nav .nav-cta:hover { color: #fff; opacity: .9; }
.nav-toggle, .nav-btn { display: none; }

/* ---------- hero ---------- */
.hero {
  background: url("../img/hero-bg.jpg") right center / cover no-repeat, #fff;
  padding: 120px 0 130px;
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 900; letter-spacing: .03em; margin: 14px 0 26px; }
.hero-lead { color: var(--gray); font-size: clamp(15px, 1.6vw, 18px); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 14px 30px; border-radius: 999px; font-size: 15px; transition: transform .15s, box-shadow .15s; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(0, 123, 191, .25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 123, 191, .32); }
.btn-ghost { color: var(--blue); border: 1.5px solid var(--blue); background: #fff; }
.btn-ghost:hover { background: #F0F8FD; }

/* ---------- sections ---------- */
.section { padding: 100px 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow {
  font-family: "Inter", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .18em;
  color: var(--blue); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--grad); }
.section h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 700; margin: 10px 0 18px; }
.section-lead { color: var(--gray); margin-bottom: 44px; max-width: 760px; }
.section h2 + .grid, .section h2 + .vision, .section h2 + .compare, .section h2 + .steps, .section h2 + .company { margin-top: 44px; }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 15px; }
.num { font-family: "Inter", sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .08em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 6px; }
.punch { margin-top: 44px; text-align: center; font-weight: 700; font-size: clamp(17px, 2vw, 21px); }
.punch.light { color: #fff; }

/* vision */
.vision { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: start; }
.vision-copy { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; line-height: 1.5; }
.vision-body { display: grid; gap: 28px; }
.vision-item { padding-left: 22px; border-left: 3px solid; border-image: var(--grad) 1; }
.vision-item h3 { font-size: 16px; color: var(--blue); margin-bottom: 6px; }
.vision-item p { color: var(--gray); }

/* compare */
.compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.compare-head, .compare-row { display: grid; grid-template-columns: 200px 1fr 1fr; }
.compare-head span { padding: 14px 24px; font-weight: 700; font-size: 14px; background: #EEF3F8; color: var(--gray); }
.compare-head span.to { background: var(--grad); color: #fff; }
.compare-row span { padding: 22px 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--gray); }
.compare-row .k { font-weight: 700; color: var(--navy); background: #FAFCFE; }
.compare-row .to { color: var(--navy); font-weight: 500; background: #F3FAFE; }
.note-line { margin-top: 32px; color: var(--gray); text-align: center; }

/* value */
.pillar img { width: 64px; height: 64px; margin-bottom: 18px; }
.pillar .strong { color: var(--navy); font-weight: 700; margin-bottom: 10px; }
.strengths { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.strengths div { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 999px; padding: 12px 22px 12px 12px; border: 1px solid var(--line); }
.strengths b { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 15px; }
.strengths span { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* services */
.service { display: flex; flex-direction: column; }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.svc-top img { width: 56px; height: 56px; }
.tag { font-size: 12px; font-weight: 700; color: var(--blue); border: 1px solid var(--blue); border-radius: 999px; padding: 2px 12px; }
.tag.main { background: var(--grad); color: #fff; border-color: transparent; }
.service .when { background: var(--bg-alt); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 4px 0 16px; }
.service ul { margin: 0; padding: 0; list-style: none; }
.service li { position: relative; padding-left: 20px; font-size: 15px; margin-bottom: 8px; line-height: 1.7; }
.service li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* practice (濃紺の帯) */
.section.dark { background: var(--navy); color: #fff; }
.section.dark .eyebrow { color: var(--cyan); }
.section.dark .section-lead { color: #B8C6D6; }
.practice { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.practice img { width: 56px; height: 56px; margin-bottom: 16px; filter: brightness(1.25); }
.practice h3 { color: #fff; }
.practice p { color: #B8C6D6; }

/* cases */
.case-no { font-family: "Inter", sans-serif; font-weight: 800; font-size: 13px; letter-spacing: .12em; color: #fff; background: var(--grad); border-radius: 6px; padding: 3px 10px; }
.case-client { margin-top: 16px !important; font-size: 14px !important; }
.case h3 { font-size: 21px; margin: 4px 0 18px; }
.case dl { margin: 0; display: grid; grid-template-columns: 56px 1fr; gap: 10px 12px; }
.case dt { font-weight: 700; font-size: 13px; color: var(--blue); background: #EEF6FC; border-radius: 6px; text-align: center; height: fit-content; padding: 2px 0; }
.case dd { margin: 0; color: var(--gray); font-size: 15px; line-height: 1.75; }
.result { margin-top: 22px !important; padding-top: 16px; border-top: 1px dashed var(--line); color: var(--navy) !important; font-weight: 700; }
.result span { font-family: "Inter", sans-serif; font-size: 12px; letter-spacing: .12em; color: var(--blue); margin-right: 12px; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px 28px; box-shadow: var(--shadow); }
.steps li:not(:last-child)::after { content: ""; position: absolute; right: -18px; top: 50%; width: 12px; height: 12px; border-top: 3px solid var(--cyan); border-right: 3px solid var(--cyan); transform: translateY(-50%) rotate(45deg); }
.step-no { font-family: "Inter", sans-serif; font-weight: 800; font-size: 40px; line-height: 1; display: block; margin-bottom: 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--gray); font-size: 15px; }

/* company */
.company { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.message { margin: 0; background: var(--bg-alt); border-radius: var(--radius); padding: 36px 34px; position: relative; }
.message::before { content: "\201C"; position: absolute; top: -6px; left: 22px; font-size: 90px; font-family: Georgia, serif; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.message .message-title { font-size: 21px; font-weight: 700; color: var(--navy); margin: 18px 0 16px; }
.message p { color: var(--gray); margin-bottom: 14px; }
.message footer { text-align: right; font-weight: 700; margin-top: 20px; }
.profile { width: 100%; border-collapse: collapse; font-size: 15px; }
.profile th, .profile td { text-align: left; vertical-align: top; padding: 16px 8px; border-bottom: 1px solid var(--line); }
.profile th { width: 108px; color: var(--blue); font-weight: 700; white-space: nowrap; }
.profile td { color: var(--navy); }
.profile a { text-decoration: none; }

/* contact */
.contact { background: linear-gradient(120deg, #F0F8FD 0%, #E6F6FB 100%); text-align: center; }
.contact .eyebrow { justify-content: center; }
.contact .section-lead { margin-left: auto; margin-right: auto; }
.contact-ways { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.contact-card { display: flex; flex-direction: column; gap: 4px; min-width: 300px; background: #fff; border-radius: var(--radius); padding: 24px 32px; text-decoration: none; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .15s; }
.contact-card:hover { transform: translateY(-2px); }
.contact-card .label { font-family: "Inter", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .18em; color: var(--blue); }
.contact-card .value { font-size: 22px; font-weight: 700; color: var(--navy); }

/* footer */
.site-footer { background: var(--navy); color: #B8C6D6; padding: 40px 0; font-size: 13px; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer .brand { color: #fff; }
.site-footer .brand img { height: 26px; background: #fff; border-radius: 4px; padding: 3px 5px; }
.site-footer .copy { margin-left: auto; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3, .strengths { grid-template-columns: 1fr; }
  .vision, .company { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { right: 50%; top: auto; bottom: -19px; transform: translateX(50%) rotate(135deg); }

  .nav-btn { display: block; width: 44px; height: 44px; position: relative; cursor: pointer; z-index: 60; }
  .nav-btn span, .nav-btn span::before, .nav-btn span::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--navy); content: ""; transition: transform .2s, top .2s, opacity .2s; }
  .nav-btn span { top: 21px; }
  .nav-btn span::before { left: 0; top: -7px; }
  .nav-btn span::after { left: 0; top: 7px; }
  .nav-toggle:checked + .nav-btn span { background: transparent; }
  .nav-toggle:checked + .nav-btn span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked + .nav-btn span::after { top: 0; transform: rotate(-45deg); }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 24px 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s; }
  .nav-toggle:checked ~ .site-nav { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .site-nav .nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .sp { display: inline; }
  .hero { padding: 72px 0 80px; background-position: 70% center; }
  .section { padding: 68px 0; }
  .g2, .g4 { grid-template-columns: 1fr; }
  .card { padding: 26px 22px; }
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; border-top: 1px solid var(--line); }
  .compare-row:first-of-type { border-top: 0; }
  .compare-row span { border-top: 0; padding: 12px 18px; }
  .compare-row .k { padding-top: 18px; }
  .compare-row span:nth-child(2)::before { content: "これまで "; font-size: 12px; font-weight: 700; color: var(--gray); margin-right: 6px; }
  .compare-row .to::before { content: "これから "; font-size: 12px; font-weight: 700; color: var(--blue); margin-right: 6px; }
  .contact-card { min-width: 0; width: 100%; }
  .contact-card .value { font-size: 19px; }
  .message { padding: 32px 22px 26px; }
  .profile th { width: 84px; }
  .site-footer .copy { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
