/* 用途・機能・セキュリティの7ページ用のCSS（1ファイルにまとめ、読み込みを1回にする）。
   このCSSはページを移った後も残るため、変数を含めてすべて本文の枠（.shell）の中だけに当てる。
   文字はサイト共通のフォント（next/font の Inter・Noto Sans JP）を使い、独自のフォントファイルは読み込まない。 */
/* tokens/colors.css */
.shell {
  /* Brand */
  --nc-blue: #2933f5; /* primary: headings, buttons, links */
  --nc-blue-press: #1a22c9; /* hover/press on blue */
  --nc-violet: #3212fe; /* gradient start */
  --nc-azure: #1e7ee8; /* gradient mid */
  --nc-cyan: #01c4cc; /* gradient end */
  --nc-indigo: #241a7a; /* deep accent in text sweeps */
  --nc-purple: #8a3cff; /* mist blob only */
  /* Neutrals */
  --nc-ink: #1a1a19;
  --nc-ink-card: #1c1c1b;
  --nc-ink-2: #5a5a56;
  --nc-ink-3: #8a8a86;
  --nc-white: #ffffff;
  --nc-tint: #f3f4ff; /* blue-tinted surface */
  --nc-tint-2: #f6f7fd;
  --nc-tint-3: #fafaff;
  --nc-gray-100: #f2f2f3;
  --nc-gray-200: #eeeef2;
  --nc-gray-300: #e4e4e7;
  --nc-hairline: rgba(41, 51, 245, 0.22); /* 1px grid lines */
  /* Gradients */
  --nc-grad: linear-gradient(90deg, #3212fe 0%, #01c4cc 100%); /* @kind color */
  --nc-grad-diag: linear-gradient(
    135deg,
    #3212fe 0%,
    #01c4cc 100%
  ); /* @kind color */
  --nc-grad-text: linear-gradient(
    90deg,
    #3212fe 0%,
    #1e7ee8 55%,
    #01c4cc 100%
  ); /* @kind color */
  /* Status (added 2026-11 for Badge; not in source sites). Text values pass 4.5:1 on their tint. */
  --nc-success: #0b7a53;
  --nc-success-tint: #e6f5ee;
  --nc-warning: #9a5b00;
  --nc-warning-tint: #fdf2de;
  --nc-danger: #c42b2b;
  --nc-danger-tint: #fdecec;
  /* Semantic */
  --text-primary: var(--nc-ink);
  --text-secondary: var(--nc-ink-2);
  --text-muted: var(--nc-ink-3);
  --text-brand: var(--nc-blue);
  --text-on-brand: var(--nc-white);
  --surface-page: var(--nc-white);
  --surface-tint: var(--nc-tint);
  --surface-inverse: var(--nc-ink-card);
  --border-grid: var(--nc-hairline);
  --border-row: var(--nc-gray-300);
  --action-primary: var(--nc-blue);
  --action-primary-hover: var(--nc-blue-press);
  --action-dark: var(--nc-ink);
}

/* tokens/typography.css */
.shell {
  --font-display:
    var(--font-inter), var(--font-noto), sans-serif; /* Inter for Latin/numbers, Noto Sans JP for Japanese */
  --font-body: var(--font-inter), var(--font-noto), sans-serif;
  --font-latin: var(--font-inter), sans-serif;
  --font-jp: var(--font-noto), sans-serif;
  --font-num: var(--font-inter), sans-serif; /* dates, figures */
  --fw-medium: 500; /* @kind font */
  --fw-bold: 700; /* @kind font */
  --fw-black: 900; /* @kind font */
  /* Web scale (px) */
  --fs-hero: 60px;
  --lh-hero: 1.2; /* @kind font */
  --fs-h2: 56px;
  --lh-h2: 1; /* @kind font */ /* DEPRECATED (v5): old Latin section title. SectionHeading now = eyebrow 20px blue + display 44px JP */
  --fs-h2-sub: 28px;
  --lh-h2-sub: 1.5; /* @kind font */ /* JP subtitle */
  --fs-display: 44px;
  --lh-display: 1.35; /* @kind font */
  --fs-eyebrow: 20px;
  --lh-eyebrow: 28px; /* @kind font */
  --fs-lg: 18px;
  --fs-body: 16px;
  --fs-sm: 15px;
  --fs-xs: 13px;
  --fs-tag: 12px;
  --fs-micro: 11px;
  --lh-body: 1.8; /* @kind font */
  --lh-tight: 1; /* @kind font */
  --ls-label: 0.08em; /* @kind font */
  --ls-display: 0px; /* @kind font */
  --ls-h2: 1px; /* @kind font */
}

/* tokens/spacing.css */
.shell {
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-20: 20px;
  --sp-24: 24px;
  --sp-28: 28px;
  --sp-32: 32px;
  --sp-40: 40px;
  --sp-48: 48px;
  --sp-56: 56px;
  --sp-64: 64px;
  --sp-72: 72px;
  --sp-80: 80px;
  --sp-96: 96px;
  --sp-120: 120px;
  --page-max: 1442px;
  --page-pad: 80px;
  --page-pad-tablet: 40px;
  --page-pad-mobile: 20px;
  --header-h: 88px; /* @kind spacing */
  --header-h-mobile: 64px; /* @kind spacing */
  --grid-gap: 1px; /* @kind spacing */ /* sections sit on a hairline-blue grid */
  --dot-sp: 24px; /* @kind spacing */ /* dot-grid pitch (hero); 18px secondary */
  --radius-pill: 999px;
  --radius-card: 16px;
  --radius-media: 20px;
  --radius-value: 21px;
  --radius-panel: 24px;
  --radius-bg: 28px;
  --radius-photo: 12px;
  --radius-xs: 2px;
}

/* tokens/effects.css */
.shell {
  --shadow-hairline: 0 1px 0 rgba(41, 51, 245, 0.22);
  --shadow-card: 0 8px 24px rgba(41, 51, 245, 0.1);
  --shadow-card-hover: 0 14px 32px rgba(41, 51, 245, 0.22);
  --shadow-media: 0 24px 64px rgba(41, 51, 245, 0.18);
  --shadow-menu: 0 24px 40px -16px rgba(26, 26, 60, 0.2);
  --shadow-device: drop-shadow(0 24px 32px rgba(26, 26, 60, 0.18));
  --shadow-phone: drop-shadow(0 20px 28px rgba(26, 26, 60, 0.28));
}

/* tokens/motion.css */
.shell {
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1); /* @kind other */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); /* @kind other */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1); /* @kind other */
  --ease-pop: cubic-bezier(0.3, 1.4, 0.5, 1); /* @kind other */
  --dur-fast: 0.2s; /* @kind other */
  --dur-base: 0.35s; /* @kind other */
  --dur-reveal: 0.8s; /* @kind other */
  --dur-sweep: 2.8s; /* @kind other */
}

/* tokens/base.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.shell {
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
:where(.shell) a {
  color: var(--nc-blue);
  text-decoration: none;
}
:where(.shell) a:hover {
  color: var(--nc-violet);
  text-decoration: underline;
}

/* proposal.css */
/* このCSSはページを移った後も残るため、すべて本文の枠（.shell）の中だけに当てる */
html:has(.shell) {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
.shell {
  font-weight: 700;
}
:where(.shell) p {
  font-weight: 500;
  line-height: 1.95;
  margin: 20px 0;
}
:where(.shell) a:focus-visible,
:where(.shell) summary:focus-visible,
:where(.shell) select:focus-visible {
  outline: 3px solid var(--nc-blue);
  outline-offset: 4px;
}
:where(.shell) .review {
  background: var(--nc-tint);
  padding: 10px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
:where(.shell) .review select {
  font: inherit;
  color: var(--nc-blue);
  border: 1px solid var(--nc-hairline);
  border-radius: 12px;
  padding: 8px;
  max-width: 65%;
  background: var(--nc-white);
}
.shell {
  max-width: 1442px;
  margin: auto;
  border-left: 1px solid var(--nc-hairline);
  border-right: 1px solid var(--nc-hairline);
}
.shell > header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--nc-hairline);
  background: var(--nc-white);
}
.shell > header img {
  width: 140px;
}
.shell > header nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 15px;
}
:where(.shell) .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 2px solid var(--nc-blue);
  border-radius: 999px;
  padding: 12px 28px;
  background: var(--nc-blue);
  color: var(--nc-white);
  font-size: 16px;
  text-decoration: none;
  line-height: 1.5;
}
:where(.shell) .btn:hover {
  background: var(--nc-blue-press);
  color: var(--nc-white);
  text-decoration: none;
}
:where(.shell) .btn.secondary {
  background: var(--nc-white);
  color: var(--nc-blue);
}
:where(.shell) .hero {
  padding: 32px 80px 72px;
  border-bottom: 1px solid var(--nc-hairline);
}
:where(.shell) .crumb-nav {
  font-size: 13px;
  color: var(--nc-ink-2);
  margin-bottom: 44px;
}
:where(.shell) .hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
:where(.shell) .eyebrow {
  font-size: 20px;
  line-height: 28px;
  color: var(--nc-blue);
  font-weight: 900;
  display: block;
  margin-bottom: 12px;
}
:where(.shell) h1 {
  font-size: 60px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  text-wrap: balance;
}
:where(.shell) .lead {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
}
:where(.shell) .flow {
  border-radius: 24px;
  background: var(--nc-tint);
  padding: 32px;
}
:where(.shell) .flow-label {
  color: var(--nc-blue);
  font-size: 13px;
  letter-spacing: 0.08em;
}
:where(.shell) .flow h2 {
  font-size: 28px;
  line-height: 1.5;
  margin: 12px 0 24px;
}
:where(.shell) .flow ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  counter-reset: step;
}
:where(.shell) .flow li {
  background: var(--nc-white);
  border: 1px solid var(--nc-hairline);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  counter-increment: step;
}
:where(.shell) .flow li:before {
  content: counter(step, decimal-leading-zero);
  color: var(--nc-blue);
  font-size: 20px;
  font-weight: 900;
}
:where(.shell) .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
:where(.shell) .layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 64px;
  padding: 0 80px;
}
:where(.shell) .toc {
  align-self: start;
  position: sticky;
  top: 24px;
  padding: 40px 0;
  font-size: 13px;
}
:where(.shell) .toc strong {
  display: block;
  color: var(--nc-blue);
  margin-bottom: 18px;
}
:where(.shell) .toc a {
  display: block;
  color: var(--nc-ink-2);
  padding: 10px 0;
  line-height: 1.6;
  border-bottom: 1px solid var(--nc-hairline);
}
:where(.shell) .content {
  min-width: 0;
}
:where(.shell) .intro {
  padding: 32px 0;
}
:where(.shell) .content section {
  padding: 64px 0;
  border-top: 1px solid var(--nc-hairline);
}
:where(.shell) h2 {
  font-size: 44px;
  line-height: 1.35;
  font-weight: 900;
  margin: 0 0 32px;
  text-wrap: balance;
}
:where(.shell) h3 {
  font-size: 24px;
  line-height: 1.5;
  margin: 40px 0 16px;
  font-weight: 900;
}
:where(.shell) table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.8;
}
:where(.shell) th,
:where(.shell) td {
  padding: 20px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--nc-hairline);
}
:where(.shell) th {
  background: var(--nc-tint);
  color: var(--nc-blue);
}
:where(.shell) td:first-child {
  font-weight: 700;
  min-width: 140px;
}
:where(.shell) td {
  font-weight: 500;
}
:where(.shell) .table-scroll {
  overflow: auto;
  border: 1px solid var(--nc-hairline);
  border-radius: 16px;
  margin: 28px 0;
}
:where(.shell) .cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
:where(.shell) .usecard {
  border: 2.25px solid var(--nc-hairline);
  border-radius: 16px;
  padding: 28px;
  background: var(--nc-white);
  box-shadow: 0 8px 24px rgba(41, 51, 245, 0.1);
}
:where(.shell) .usecard h3 {
  font-size: 24px;
  margin: 12px 0 20px;
}
:where(.shell) .usecard p {
  font-size: 15px;
}
:where(.shell) .usecard .number {
  font-size: 20px;
  color: var(--nc-blue);
}
:where(.shell) .usecard a {
  display: inline-block;
  margin-top: 12px;
}
:where(.shell) .conversation {
  background: var(--nc-tint-2);
  padding: 24px;
  border-radius: 24px;
}
:where(.shell) .conversation p {
  padding: 16px 20px;
  background: var(--nc-white);
  border-radius: 16px;
  margin: 12px 0;
}
:where(.shell) .conversation p:nth-child(even) {
  margin-left: 30px;
  background: var(--nc-tint);
}
:where(.shell) .cta {
  padding: 32px;
  background: var(--nc-tint);
  border-radius: 24px;
  margin: 32px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
:where(.shell) .note {
  font-size: 13px;
  color: var(--nc-ink-2);
}
.shell > footer {
  padding: 40px 80px;
  border-top: 1px solid var(--nc-hairline);
  font-size: 13px;
  color: var(--nc-ink-2);
  line-height: 1.8;
}
.shell > footer a {
  margin-right: 20px;
}
:where(.shell) .section-label {
  display: block;
  font-size: 20px;
  line-height: 28px;
  color: var(--nc-blue);
  margin-bottom: 8px;
  font-weight: 900;
}
:where(.shell) li {
  line-height: 1.9;
}
:where(.shell) strong {
  font-weight: 900;
}
@media (max-width: 1200px) {
  :where(.shell) .hero {
    padding: 32px 40px 56px;
  }
  :where(.shell) .layout {
    padding: 0 40px;
    gap: 32px;
    grid-template-columns: 180px minmax(0, 1fr);
  }
  :where(.shell) h1 {
    font-size: 48px;
  }
  :where(.shell) .hero-grid {
    gap: 32px;
  }
  :where(.shell) h2 {
    font-size: 36px;
  }
}
@media (max-width: 768px) {
  .shell > header {
    height: auto;
    min-height: 80px;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
  }
  .shell > header img {
    width: 112px;
  }
  .shell > header nav {
    gap: 16px;
    font-size: 13px;
    flex-wrap: wrap;
  }
  .shell > header nav .btn {
    display: none;
  }
  :where(.shell) .review {
    padding: 10px 20px;
    align-items: flex-start;
  }
  :where(.shell) .review select {
    max-width: 62%;
    width: 62%;
  }
  :where(.shell) .hero {
    padding: 24px 20px 40px;
  }
  :where(.shell) .crumb-nav {
    margin-bottom: 28px;
  }
  :where(.shell) .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  :where(.shell) h1 {
    font-size: 38px;
    line-height: 1.35;
  }
  :where(.shell) .flow {
    padding: 24px;
  }
  :where(.shell) .layout {
    display: block;
    padding: 0 20px;
  }
  :where(.shell) .toc {
    position: static;
    padding: 24px 0;
    border-bottom: 1px solid var(--nc-hairline);
  }
  :where(.shell) .toc a {
    display: inline-block;
    border: 0;
    padding: 6px 12px 6px 0;
  }
  :where(.shell) .content section {
    padding: 40px 0;
  }
  :where(.shell) h2 {
    font-size: 30px;
  }
  :where(.shell) h3 {
    font-size: 22px;
  }
  :where(.shell) .cards {
    grid-template-columns: 1fr;
  }
  :where(.shell) .actions .btn {
    width: 100%;
  }
  :where(.shell) .cta {
    padding: 24px;
  }
  :where(.shell) .cta .btn {
    width: 100%;
  }
  :where(.shell) th,
  :where(.shell) td {
    padding: 16px;
    min-width: 150px;
  }
  :where(.shell) .table-scroll table {
    min-width: 560px;
  }
  .shell > footer {
    padding: 32px 20px;
  }
  :where(.shell) .conversation {
    padding: 12px;
  }
  :where(.shell) .conversation p {
    padding: 14px;
  }
  :where(.shell) .eyebrow,
  :where(.shell) .section-label {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

:where(.shell) h1 span {
  display: block;
}
:where(.shell) h1 {
  font-size: 48px;
}
@media (max-width: 768px) {
  :where(.shell) h1 {
    font-size: 30px;
    letter-spacing: -0.04em;
  }
}
:where(.shell) .as-of {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--nc-ink-2);
}

/* ---- 比較・業種などの9ページ（src/app/_seo-design.css）と見た目をそろえる ---- */
:where(.shell) h2 {
  font-size: 44px;
}
:where(.shell) .content {
  font-size: 16px;
  line-height: 1.9;
}
/* 本文中のリンクは下線で見分けられるようにする（ボタン・目次・パンくずは除く） */
:where(.shell) .content a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* 表の1列目（会社名など）が変な位置で改行されないよう幅を確保する */
:where(.shell) tbody th,
:where(.shell) td:first-child {
  min-width: 10em;
}
@media (max-width: 768px) {
  :where(.shell) h2 {
    font-size: 28px;
  }
  :where(.shell) .btn {
    padding: 12px 16px;
    font-size: 15px;
  }
}
/* パンくずは比較・業種などのページと同じ灰色（このファイルは Tailwind より優先されるため、ここで色を指定する） */
:where(.shell) .crumb-nav a {
  color: #5a5a56;
  text-decoration: none;
}
:where(.shell) .crumb-nav a:hover {
  color: #5a5a56;
  text-decoration: underline;
}
:where(.shell) .crumb-nav li {
  margin: 0;
}

/* スマートフォンで表の列が細くなり、社名などの長い語が途中で切れないよう、列の幅を確保する（表は横にスクロール） */
@media (max-width: 768px) {
  :where(.shell) th,
  :where(.shell) td {
    min-width: 14em;
  }
  :where(.shell) .table-scroll table {
    min-width: 720px;
  }
}

/* ---- 比較・導入の流れ・サンプル通話・業種の9ページ（Markdownの本文）を、用途ページと同じ見た目で出す ---- */
:where(.shell) .flow-title {
  font-size: 28px;
  line-height: 1.5;
  font-weight: 900;
  margin: 12px 0 24px;
}
/* 本文の各見出しの上の英字ラベルと区切り線（用途ページの section と同じ間隔） */
:where(.shell) .seo-h2-label {
  display: block;
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--nc-hairline);
  font-size: 20px;
  line-height: 28px;
  color: var(--nc-blue);
  margin-bottom: 8px;
  font-weight: 900;
}
:where(.shell) .seo-in-shell h2 {
  margin-top: 0;
}
:where(.shell) .seo-table {
  overflow: auto;
  border: 1px solid var(--nc-hairline);
  border-radius: 16px;
  margin: 28px 0;
}
:where(.shell) .seo-in-shell blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--nc-blue);
  background: var(--nc-tint);
  border-radius: 12px;
}
@media (max-width: 768px) {
  :where(.shell) .flow-title {
    font-size: 22px;
  }
  :where(.shell) .seo-h2-label {
    margin-top: 40px;
    padding-top: 40px;
  }
}
/* 見出しの無い一覧ページは目次を出さず、本文を全幅にする */
:where(.shell) .layout.no-toc {
  grid-template-columns: minmax(0, 1fr);
}
/* カードの番号（01・02…）が長い項目に押されて縦に割れないようにする */
:where(.shell) .flow li:before {
  flex-shrink: 0;
  white-space: nowrap;
}
/* 表の「詳しく」などの短い列が細くなりすぎないようにする */
:where(.shell) td {
  min-width: 8em;
}
