/*
 * RinX サービスサイト
 * 配色・質感は RinX の市民向け画面に合わせる
 * （背景 blue-400 → violet-300、白の半透明カード、ボタン blue-600 → indigo-600、文字は gray 系）
 */

:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-400: #60a5fa;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --violet-300: #c4b5fd;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;

  --bg-brand: linear-gradient(180deg, var(--blue-400) 0%, var(--violet-300) 100%);
  --btn-brand: linear-gradient(90deg, var(--blue-600) 0%, var(--indigo-600) 100%);
  --btn-brand-hover: linear-gradient(90deg, var(--blue-700) 0%, var(--indigo-700) 100%);

  --radius-lg: 1.5rem;
  --radius: 1rem;
  --radius-sm: 0.75rem;
  --shadow-card: 0 8px 30px rgb(0 0 0 / 0.08);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --header-h: 64px;
  --wrap: min(1160px, 100% - 2.5rem);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-700);
  background: #fff;
  font-feature-settings: "palt";
  overflow-wrap: anywhere;
  line-break: strict;
}

h1,
h2,
h3 {
  word-break: keep-all;
}

body.is-menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-600);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--gray-900);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(820px, 100% - 2.5rem);
}

.nw {
  display: inline-block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
}

/* アイコン */
.ico {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico--sm {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.ico-badge {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  background: var(--btn-brand);
  box-shadow: 0 8px 16px -6px rgb(79 70 229 / 0.5);
}

/* 半透明カード（RinX のマイページと同じ質感） */
.glass {
  background: rgb(255 255 255 / 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.grad-text {
  background: var(--btn-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 150ms ease, background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #fff;
  background: var(--btn-brand);
  box-shadow: 0 10px 15px -3px rgb(37 99 235 / 0.3), 0 4px 6px -4px rgb(37 99 235 / 0.3);
}

.btn-primary:hover {
  background: var(--btn-brand-hover);
}

.btn-ghost {
  color: var(--blue-700);
  background: #fff;
  border: 1px solid var(--blue-200);
}

.btn-ghost:hover {
  background: var(--blue-50);
}

.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  min-height: 56px;
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

/* ヘッダー */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
  background: rgb(255 255 255 / 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--gray-200);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--gray-900);
}

.brand-mark {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--gray-900);
}

.brand-mark span {
  background: var(--btn-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-700);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--blue-600);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.9);
  cursor: pointer;
}

.menu-toggle-bar,
.menu-toggle-bar::before,
.menu-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--gray-900);
  transition: transform 200ms ease, opacity 200ms ease;
}

.menu-toggle-bar {
  position: relative;
}

.menu-toggle-bar::before,
.menu-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-bar::before {
  top: -6px;
}

.menu-toggle-bar::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* ヒーロー */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  background: var(--bg-brand);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 255 255 / 0.35), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 3rem;
}

.hero-card {
  padding: 3rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}

.hero h1 {
  font-size: clamp(1.875rem, 1.2rem + 2.4vw, 2.875rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-lead {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  color: var(--gray-700);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-note {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.hero-visual img {
  width: min(100%, 440px);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 3rem;
  padding: 0.5rem;
}

.facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--gray-600);
}

.facts li + li {
  border-left: 1px solid var(--gray-200);
}

.facts .ico {
  color: var(--blue-600);
  margin-top: 2px;
}

.facts strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--gray-900);
}

/* セクション共通 */
.section {
  padding: 6rem 0;
}

.section--tint {
  background: linear-gradient(180deg, var(--blue-50) 0%, #f5f3ff 100%);
}

.section-head {
  max-width: 760px;
  margin-bottom: 3rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--indigo-600);
}

.section-head h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 800;
}

.lead {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--gray-600);
}

.note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.note--center {
  text-align: center;
  margin-top: 2rem;
}

.card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin-top: 1rem;
  font-size: 1.1875rem;
}

.card p:not(.card-who) {
  margin-top: 0.5rem;
  color: var(--gray-600);
}

.card--compact {
  padding: 1.5rem;
}

.card--compact h3 {
  font-size: 1.0625rem;
}

.card-who {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--indigo-600);
}

.card-who + h3 {
  margin-top: 0.25rem;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* しくみの図 */
.diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.1fr auto 1fr;
  align-items: stretch;
  gap: 0.75rem;
  margin: 0;
}

.diagram-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-card);
}

.diagram-title {
  margin-top: 0.25rem;
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--gray-900);
}

.diagram-sub {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.diagram-node--core {
  justify-content: center;
  color: #fff;
  background: var(--btn-brand);
  border: 0;
  box-shadow: 0 20px 40px -12px rgb(79 70 229 / 0.55);
}

.diagram-core-mark {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.diagram-arrow {
  display: grid;
  place-items: center;
  color: var(--indigo-600);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.25rem;
}

.chips li {
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--blue-50);
}

.chips--light li {
  color: #fff;
  background: rgb(255 255 255 / 0.2);
}

.diagram-list {
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.9;
}

/* 機能タブ */
.tabs {
  max-width: 920px;
  margin-inline: auto;
}

.tab-list {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  width: fit-content;
  margin: 0 auto 1.5rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--gray-100);
}

[role="tab"] {
  min-height: 44px;
  padding: 0.5rem 1.5rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-600);
  background: transparent;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

[role="tab"][aria-selected="true"] {
  color: #fff;
  background: var(--btn-brand);
  box-shadow: 0 6px 12px -4px rgb(37 99 235 / 0.4);
}

.tab-panel {
  padding: 2.5rem;
}

.tab-panel-lead {
  margin-bottom: 1.5rem;
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--gray-900);
}

.check-list {
  display: grid;
  gap: 0.75rem;
}

.check-list--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--gray-700);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}

/* 比較表 */
.compare {
  max-width: 960px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.3fr;
}

.compare-row > span {
  padding: 1.125rem 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.compare-row--head > span {
  border-top: 0;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--gray-500);
}

.compare-row [role="rowheader"] {
  font-weight: 700;
  color: var(--gray-900);
}

.compare-row [role="cell"]:not(.compare-rinx) {
  color: var(--gray-500);
}

.compare-rinx {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--gray-900);
  background: var(--blue-50);
}

.compare-rinx .ico {
  color: var(--blue-600);
}

.compare-row--head .compare-rinx {
  color: #fff;
  background: var(--btn-brand);
  font-size: 1rem;
}

/* 活用イメージ */
.scene {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.scene img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.scene-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.75rem 2rem 2rem;
}

.scene-body h3 {
  margin-top: 0;
}

.scene-staff {
  margin-top: auto !important;
  padding-top: 1.25rem;
  font-size: 0.875rem;
}

.scene-staff span {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--indigo-600);
  background: #eef2ff;
}

.mini-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.mini-flow li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue-700);
  background: var(--blue-50);
}

/* 調達向け要点 */
.spec {
  margin-top: 2rem;
  padding: 2.5rem;
}

.spec-title {
  margin-top: 0 !important;
  font-size: 1.1875rem;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
  margin: 1.5rem 0 0;
}

.spec-list > div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding: 0.875rem 0;
  border-top: 1px solid var(--gray-200);
}

.spec-list dt {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-500);
}

.spec-list dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-900);
}

/* 導入の流れ */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  right: calc(25% - 0.375rem - 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue-200), var(--violet-300));
}

.timeline-item {
  position: relative;
}

.timeline-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--blue-700);
  background: #fff;
  border: 2px solid var(--blue-200);
}

.timeline-item--goal .timeline-num {
  color: #fff;
  border: 0;
  background: var(--btn-brand);
}

.timeline-period {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.125rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--indigo-600);
  background: #eef2ff;
}

.timeline-item h3 {
  margin-top: 0.5rem;
  font-size: 1.125rem;
}

.timeline-item p:last-child {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

/* 費用 */
.cost {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  margin-top: 4rem;
  padding: 2.5rem;
}

.cost-head h3 {
  margin-top: 0;
  font-size: 1.375rem;
}

.cost-head p:last-child {
  margin-top: 0.75rem;
  color: var(--gray-600);
}

.cost-formula {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cost-item {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}

.cost-item-title {
  font-weight: 800;
  color: var(--gray-900);
}

.cost .cost-item p:not(.cost-item-title) {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.cost-plus {
  display: grid;
  place-items: center;
  color: var(--indigo-600);
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.04);
}

.faq-item summary {
  position: relative;
  padding: 1.25rem 3.5rem 1.25rem 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--blue-600);
  border-bottom: 2px solid var(--blue-600);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--gray-600);
}

.faq-answer p + p {
  margin-top: 0.5rem;
}

/* CTA */
.cta {
  padding: 6rem 0;
  background: var(--bg-brand);
}

.cta-card {
  max-width: 860px;
  margin-inline: auto;
  padding: 3.5rem 3rem;
  text-align: center;
}

.cta-card h2 {
  font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem);
  font-weight: 800;
}

.cta-card p {
  margin-top: 1rem;
  color: var(--gray-600);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* フッター */
.site-footer {
  padding: 3rem 0 2rem;
  background: var(--gray-900);
  color: var(--gray-300);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.brand-mark--footer {
  color: #fff;
}

.footer-company {
  margin-top: 1rem;
  font-size: 0.8125rem;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-content: flex-start;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--gray-300);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  display: block;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* スマホの追従 CTA */
.sticky-cta {
  display: none;
}

/* スクロールで表示 */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

/* タブレット */
@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts li:nth-child(3) {
    border-left: 0;
  }

  .facts li:nth-child(n + 3) {
    border-top: 1px solid var(--gray-200);
  }

  .diagram {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  .diagram-arrow {
    transform: rotate(90deg);
  }

  .spec-list {
    grid-template-columns: 1fr;
  }

  .cost {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.5rem;
  }

  .timeline::before {
    display: none;
  }
}

/* スマホ */
@media (max-width: 760px) {
  :root {
    --header-h: 56px;
    --wrap: calc(100% - 2rem);
  }

  body {
    font-size: 15px;
    padding-bottom: 72px;
  }

  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .brand-sub {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem 2rem;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  }

  .mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mobile-nav > a {
    padding: 1rem 0.25rem;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
  }

  .mobile-nav-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .site-header:has(.mobile-nav.is-open) {
    background: #fff;
  }

  .hero {
    padding: calc(var(--header-h) + 1.25rem) 0 2.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-card {
    padding: 1.75rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual img {
    width: min(78%, 340px);
  }

  .facts {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .facts li + li,
  .facts li:nth-child(n + 3) {
    border-left: 0;
    border-top: 1px solid var(--gray-200);
  }

  .section {
    padding: 4rem 0;
  }

  .section-head {
    margin-bottom: 2rem;
  }

  .section-head--center {
    text-align: left;
  }

  .section-head h2 .nw {
    display: inline;
  }

  .lead {
    font-size: 1rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .card,
  .tab-panel,
  .spec,
  .cost {
    padding: 1.5rem;
  }

  .tab-list {
    width: 100%;
  }

  [role="tab"] {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .check-list--2 {
    grid-template-columns: 1fr;
  }

  .compare-row {
    grid-template-columns: 1fr 1fr;
  }

  .compare-row > span {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }

  .compare-row--head > span:first-child {
    display: none;
  }

  .compare-row [role="rowheader"] {
    grid-column: 1 / -1;
    background: var(--gray-50);
  }

  .compare-row [role="rowheader"] + [role="cell"],
  .compare-row [role="rowheader"] + [role="cell"] + [role="cell"] {
    border-top: 0;
  }

  .compare-rinx {
    align-items: flex-start;
  }

  .compare-rinx .ico {
    margin-top: 2px;
  }

  .scene-body {
    padding: 1.25rem 1.5rem 1.5rem;
  }

  .spec-list > div {
    grid-template-columns: 1fr;
    gap: 0.125rem;
  }

  .timeline {
    grid-template-columns: 1fr;
    row-gap: 1.75rem;
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1rem;
  }

  .timeline-item::after {
    content: "";
    position: absolute;
    top: 52px;
    bottom: -1.5rem;
    left: 23px;
    width: 2px;
    background: var(--blue-100);
  }

  .timeline-item:last-child::after {
    display: none;
  }

  .timeline-period {
    margin-top: 0.625rem;
  }

  .cost-formula {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 4rem 0;
  }

  .cta-card {
    padding: 2rem 1.5rem;
    text-align: left;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .sticky-cta {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.625rem 1rem calc(0.625rem + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 -1px 0 var(--gray-200);
    transform: translateY(110%);
    transition: transform 250ms ease;
  }

  .sticky-cta.is-visible {
    transform: none;
  }
}
