/* =========================================================
   COuld inc — Design System
   端正・上質 / 白基調 / 黒の縦バーをシグネチャに
   Brand: charcoal #3A3A3A / black #1A1A1A / accent blue #2D5BE3
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* color */
  --white: #ffffff;
  --paper: #f7f8fa;
  --paper-2: #eceef1;
  --ink: #1a1a1a;
  --charcoal: #3a3a3a;
  --body: #5b616e;
  --muted: #8a909c;
  --line: #e6e8ec;
  --line-strong: #d7dae0;

  --blue: #2d5be3;
  --blue-ink: #1f44b0;
  --orange: #f2a33c;
  --teal: #17a98a;
  --band-blue: #eef2fb;

  /* type */
  --sans: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --latin: "Inter", var(--sans);

  /* layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* shadow (subtle only) */
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow: 0 14px 40px -24px rgba(26, 32, 60, 0.32);
  --shadow-lg: 0 30px 70px -40px rgba(26, 32, 60, 0.42);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
::selection { background: rgba(45, 91, 227, 0.16); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(72px, 11vw, 140px); }
.section--tight { padding-block: clamp(56px, 8vw, 96px); }
.section--paper { background: var(--paper); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 62ch; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--blue);
}
.eyebrow--center { justify-content: center; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.28; letter-spacing: 0.01em; }
.display {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.005em;
}
.h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 900; line-height: 1.3; }
.h3 { font-size: clamp(1.18rem, 2vw, 1.45rem); font-weight: 700; }
.lead { font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--body); line-height: 1.9; }
.muted { color: var(--muted); }
.num { font-family: var(--latin); font-variant-numeric: tabular-nums; }

/* Signature: black vertical bar heading */
.barhead { position: relative; padding-left: 22px; }
.barhead::before {
  content: "";
  position: absolute;
  left: 0; top: 0.18em; bottom: 0.18em;
  width: 5px;
  background: var(--ink);
  border-radius: 2px;
}
.barhead.is-blue::before { background: var(--blue); }
.barhead.is-orange::before { background: var(--orange); }
.barhead.is-teal::before { background: var(--teal); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .h2 { margin-top: 16px; }
.section-head .lead { margin-top: 18px; }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:hover .arr { transform: translateX(4px); }
.btn--primary { --bg: var(--blue); --fg: #fff; }
.btn--primary:hover { background: var(--blue-ink); }
.btn--dark { --bg: var(--ink); --fg: #fff; }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--lg { padding: 17px 32px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.textlink .arr { transition: transform 0.3s var(--ease); color: var(--blue); }
.textlink:hover { color: var(--blue); }
.textlink:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, 0);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 0.92rem; font-weight: 500; color: var(--charcoal);
  position: relative; padding-block: 6px;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--blue); transition: width 0.3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 150px; padding-bottom: clamp(72px, 10vw, 130px); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(45, 91, 227, 0.07), transparent 70%),
    linear-gradient(180deg, var(--band-blue) 0%, #fff 62%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 10%, #000 0%, transparent 75%);
  mask-image: radial-gradient(80% 70% at 60% 10%, #000 0%, transparent 75%);
  opacity: 0.55;
}
.hero-inner { max-width: 920px; }
.hero .display { margin-top: 26px; }
.hero .display .accent { color: var(--blue); }
.hero-lead { margin-top: 28px; max-width: 40ch; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 0.85rem; color: var(--muted); }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat { padding: clamp(26px, 3vw, 40px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--latin); font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.4rem); color: var(--ink); line-height: 1; letter-spacing: -0.01em; }
.stat-num .suffix { color: var(--blue); }
.stat-label { margin-top: 12px; font-size: 0.9rem; color: var(--body); }

/* ---------- Service grid ---------- */
.cards { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(26px, 3vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--accent, var(--ink)); transform: scaleY(0); transform-origin: top;
  transition: transform 0.45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::after { transform: scaleY(1); }
.card-no { font-family: var(--latin); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; margin: 18px 0 20px;
  display: grid; place-items: center; font-size: 26px;
  background: color-mix(in srgb, var(--accent, var(--ink)) 12%, #fff);
}
.card h3 { font-size: 1.3rem; }
.card-tags { margin: 14px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.76rem; font-weight: 600; color: var(--charcoal);
  background: var(--paper); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 999px;
}
.card p { color: var(--body); font-size: 0.96rem; }
.card .textlink { margin-top: auto; padding-top: 22px; }
.card.is-blue { --accent: var(--blue); }
.card.is-orange { --accent: var(--orange); }
.card.is-teal { --accent: var(--teal); }
.card.is-ink { --accent: var(--ink); }

/* ---------- Reasons ---------- */
.reasons { display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); }
.reason { padding-top: 30px; border-top: 2px solid var(--ink); }
.reason .rno { font-family: var(--latin); font-weight: 800; font-size: 1.1rem; color: var(--blue); }
.reason h3 { margin: 14px 0 12px; font-size: 1.28rem; }
.reason p { color: var(--body); font-size: 0.96rem; }

/* ---------- Split / generic content rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature-list { display: grid; gap: 14px; margin-top: 8px; }
.feature-list li {
  position: relative; padding-left: 30px; color: var(--body); line-height: 1.8;
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/></svg>") center / 12px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/></svg>") center / 12px no-repeat;
}
.feature-list li strong { color: var(--ink); font-weight: 700; }

/* numbered feature blocks */
.featrows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.featrow {
  display: grid; grid-template-columns: 64px 1fr; gap: clamp(16px, 3vw, 40px);
  padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--line);
}
.featrow .fno { font-family: var(--latin); font-weight: 700; font-size: 1.1rem; color: var(--blue); }
.featrow h3 { font-size: 1.2rem; margin-bottom: 8px; }
.featrow p { color: var(--body); }

/* ---------- Plan / pricing table ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; background: #fff;
  display: flex; flex-direction: column;
}
.plan.is-featured { border-color: var(--blue); box-shadow: var(--shadow); position: relative; }
.plan.is-featured::before {
  content: "推奨"; position: absolute; top: -12px; left: 28px;
  background: var(--blue); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.plan .pname { font-family: var(--latin); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.plan .pmeta { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.plan ul { margin: 20px 0 24px; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 24px; font-size: 0.92rem; color: var(--body); }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.plan .price { margin-top: auto; font-weight: 700; color: var(--ink); }

/* ---------- Comparison table ---------- */
.compare { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.compare thead th { background: var(--paper); color: var(--ink); font-weight: 700; }
.compare tbody th { font-weight: 600; color: var(--charcoal); width: 30%; }
.compare .good { color: var(--teal); font-weight: 600; }
.compare .bad { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background: radial-gradient(50% 120% at 85% 10%, rgba(45, 91, 227, 0.55), transparent 60%),
              radial-gradient(40% 100% at 10% 100%, rgba(23, 169, 138, 0.4), transparent 60%);
}
.cta-band .container { position: relative; z-index: 1; text-align: center; }
.cta-band .h2 { color: #fff; }
.cta-band .lead { color: rgba(255, 255, 255, 0.78); margin: 18px auto 0; }
.cta-band .btn--primary { --bg: #fff; --fg: var(--ink); }
.cta-band .btn--primary:hover { background: var(--band-blue); color: var(--ink); }
.cta-band .actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .note { margin-top: 18px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { padding-top: 150px; padding-bottom: clamp(40px, 6vw, 72px); background: var(--band-blue); position: relative; overflow: clip; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 100%;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
  opacity: 0.5;
}
.page-hero .container { position: relative; z-index: 1; }
.crumbs { font-size: 0.82rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.crumbs a:hover { color: var(--blue); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; margin-top: 18px; }
.page-hero .lead { margin-top: 20px; max-width: 60ch; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.field .req { color: var(--blue); font-size: 0.78rem; margin-left: 6px; }
.field .opt { color: var(--muted); font-size: 0.78rem; margin-left: 6px; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--charcoal);
  padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; width: 100%; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45, 91, 227, 0.14);
}
.field textarea { min-height: 160px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); }

/* formrun validation error display (shown via .formrun-system-show) */
[data-formrun-show-if-error] { display: none; color: #e0344b; font-size: 0.82rem; margin-top: 4px; line-height: 1.6; }
.formrun-system-show { display: block !important; }
.field input.formrun-system-invalid,
.field textarea.formrun-system-invalid { border-color: #e0344b; box-shadow: 0 0 0 3px rgba(224, 52, 75, 0.12); }

/* consent checkbox row */
.field--consent .consent { display: flex; align-items: flex-start; gap: 11px; font-weight: 500; color: var(--body); cursor: pointer; line-height: 1.7; }
.field--consent .consent input { flex: none; width: 19px; height: 19px; margin-top: 3px; accent-color: var(--blue); cursor: pointer; }
.field--consent .consent a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.field--consent .req { margin-left: 6px; }
.contact-aside { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 38px); }
.contact-aside h3 { font-size: 1.2rem; margin-bottom: 14px; }
.contact-aside .points { display: grid; gap: 14px; margin-top: 18px; }
.contact-aside .points li { position: relative; padding-left: 26px; color: var(--body); font-size: 0.95rem; }
.contact-aside .points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 88px) 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 28px; }
.footer-brand p { margin-top: 18px; color: var(--body); font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-family: var(--latin); margin-bottom: 16px; }
.footer-col a { display: block; padding: 7px 0; color: var(--charcoal); font-size: 0.94rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-bottom small { color: var(--muted); font-size: 0.82rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .reasons { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line-strong); border-radius: 12px; background: #fff;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  body.menu-open .nav-toggle span { background: transparent; }
  body.menu-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  body.menu-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

  .mobile-menu {
    position: fixed; inset: 76px 0 0 0; z-index: 99;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(8px);
    padding: 28px var(--gutter); display: none; flex-direction: column; gap: 6px;
  }
  body.menu-open .mobile-menu { display: flex; }
  .mobile-menu a { padding: 14px 0; font-size: 1.1rem; font-weight: 600; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 18px; }

  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .compare { display: block; overflow-x: auto; white-space: nowrap; }
  .contact-layout { grid-template-columns: 1fr !important; }
}
.mobile-menu { display: none; }
