/* plan8 subpages — TOP と揃えたトーン（幅・色・フォント・背景） */
:root {
  --bg: #0c1018;
  --fg: #f7f5f2;
  --dim: #e4e0d8;
  --faint: #c4bfb6;
  --line: rgba(255,255,255,0.14);
  --line-2: rgba(255,255,255,0.2);
  --read-shadow: 0 1px 2px rgba(0,0,0,0.75), 0 2px 14px rgba(0,0,0,0.65), 0 0 28px rgba(0,0,0,0.45);
  --chaos: #ff4d8d;
  --create: #5ef0c8;
  --cycle: #ffb454;
  --link: #9b8cff;
  --pad: clamp(24px, 4vw, 48px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: "Gen Interface JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.9;
  color: var(--fg);
  background: var(--bg);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.65; }
main a, .prose a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  color: var(--create);
}
main a:hover, .prose a:hover { opacity: 0.8; }
.wrap {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 48px 0 100px;
}
/* シェル幅は TOP と同じ 1200 */
.wrap.wide {
  width: min(1200px, calc(100% - var(--pad) * 2));
}
img { display: block; max-width: 100%; height: auto; }
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 56px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
header.top .brand { display: inline-flex; align-items: center; gap: 10px; }
header.top .brand img { height: 18px; width: auto; display: block; }
header.top .brand .name { font-weight: 700; font-size: 18px; letter-spacing: 0.04em; color: var(--fg); }
header.top .home { font-size: 16px; color: var(--faint); letter-spacing: 0.08em; }
.label, .kicker {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--faint);
  margin-bottom: 14px;
}
h1 {
  font-family: "Gen Interface JP Display", "Gen Interface JP", "Hiragino Sans", Meiryo, system-ui, sans-serif;
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--fg);
  text-shadow: var(--read-shadow);
}
h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.55;
  margin: 40px 0 12px;
  color: var(--fg);
  text-shadow: var(--read-shadow);
}
h3 { font-size: 19px; font-weight: 700; margin: 28px 0 8px; color: var(--fg); text-shadow: var(--read-shadow); }
p { margin-bottom: 14px; color: var(--dim); text-shadow: var(--read-shadow); }
p:last-child { margin-bottom: 0; }
.meta, small, .muted { color: var(--faint); font-size: 17px; }
.lead-def, .hero-service .sub { text-shadow: var(--read-shadow); }
ul { list-style: disc; padding-left: 1.35em; margin-bottom: 16px; color: var(--dim); }
ul li { padding: 4px 0; }
ol { padding-left: 1.35em; margin-bottom: 16px; color: var(--dim); }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.sec + .sec { margin-top: 8px; }
.contact-box {
  margin-top: 56px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}
.contact-box .addr { color: var(--dim); font-size: 18px; line-height: 2; margin: 8px 0 16px; }
.contact-box ul { list-style: none; padding: 0; }
.contact-box ul li a { color: var(--create); font-weight: 700; text-decoration: none; }
footer.bottom {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 16px;
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
footer.bottom a { color: var(--dim); text-decoration: none; }

/* app landing */
.hero-app { text-align: center; margin: 12px 0 48px; }
.hero-app .logo {
  width: 96px; height: 96px; margin: 0 auto 16px;
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  display: block;
  object-fit: cover;
}
.hero-app .name {
  font-family: "Gen Interface JP Display", "Gen Interface JP", "Hiragino Sans", Meiryo, system-ui, sans-serif;
  font-size: clamp(32px, 6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.hero-app .tagline { font-size: 19px; color: var(--dim); margin-top: 10px; }
.hero-app .subtitle { font-size: 17px; color: var(--faint); margin-top: 6px; }
.hero-app .cta { display: inline-block; margin-top: 28px; }
.hero-app .cta img { height: 48px; width: auto; display: block; }
.principles { display: grid; gap: 0; margin: 28px 0 48px; }
.principles .row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.principles .row:last-child { border-bottom: 1px solid var(--line); }
.principles .num { color: var(--faint); font-size: 15px; letter-spacing: 0.18em; font-weight: 600; }
.principles .label { font-weight: 700; font-size: 19px; color: var(--fg); }
.principles .desc { font-size: 17px; color: var(--dim); margin-top: 4px; line-height: 1.75; }
.nav { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 32px; }
.nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 2px; border-bottom: 1px solid var(--line);
  text-decoration: none; font-size: 18px; color: var(--fg);
}
.nav a::after { content: "→"; color: var(--faint); }
.nav a:hover { opacity: 1; color: var(--create); }

/* スマホ: フォント拡大前。拡大は PC（961px〜）のみ */
@media (max-width: 960px) {
  body { font-size: 16px; }
  header.top .brand .name { font-size: 14px; }
  header.top .home { font-size: 12px; }
  header.top nav a { font-size: 11px; }
  .label, .kicker { font-size: 11px; }
  h1 { font-size: clamp(26px, 5vw, 34px); }
  .lead { font-size: 17px; }
  h3 { font-size: 15px; }
  .meta, small, .muted { font-size: 13px; }
  .contact-box .addr { font-size: 14px; }
  .hero-app .kicker { font-size: 12px; }
  .hero-app .name { font-size: clamp(28px, 6vw, 36px); }
  .hero-app .tagline { font-size: 15px; }
  .hero-app .subtitle { font-size: 13px; }
  .principles .num { font-size: 11px; }
  .principles .label { font-size: 15px; }
  .principles .desc { font-size: 13px; }
  .nav a { font-size: 14px; }
}
@media (max-width: 520px) {
  body { font-size: 15px; }
  h1 { font-size: 24px; }
  .principles .row { grid-template-columns: 56px 1fr; }
}

/* ── SEO / service content pages ── */
.breadcrumb {
  font-size: 14px;
  color: var(--faint);
  margin: -8px 0 28px;
  letter-spacing: 0.02em;
}
.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); }
.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--faint);
  opacity: 0.6;
}
.breadcrumb a { color: var(--dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--fg); opacity: 1; }
.breadcrumb [aria-current="page"] { color: var(--fg); }

.lead-def {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.75;
  color: var(--fg);
  margin: 12px 0 28px;
  font-weight: 500;
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
  color: var(--faint);
  margin: 8px 0 32px;
}
.hero-service { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.hero-service .kicker { margin-bottom: 12px; }
.hero-service h1 { margin-bottom: 18px; }
.hero-service .sub {
  font-size: 18px;
  color: var(--dim);
  line-height: 1.85;
  margin-bottom: 22px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 20px 0 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-2);
  color: var(--fg) !important;
  background: rgba(8, 12, 18, 0.45);
  backdrop-filter: blur(6px);
}
.btn:hover { opacity: 0.85; }
.btn-primary {
  background: var(--fg);
  color: #0c1018 !important;
  border-color: var(--fg);
  backdrop-filter: none;
}
.btn-primary:hover { opacity: 0.9; }
.btn-ghost {
  color: var(--dim) !important;
  background: transparent;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 18px 0 28px;
}
@media (min-width: 640px) {
  .card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .card-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 16px;
  background: rgba(8, 12, 18, 0.55);
  backdrop-filter: blur(6px);
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; font-size: 16px; line-height: 1.75; }
.card .tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--create);
  margin-bottom: 8px;
  font-weight: 600;
}

.compare-scroll {
  margin: 16px 0 28px;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 15px;
}
.compare th, .compare td {
  border: 1px solid var(--line);
  padding: 12px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
  color: var(--dim);
}
.compare thead th {
  background: rgba(255,255,255,0.04);
  color: var(--fg);
  font-weight: 700;
  font-size: 14px;
}
.compare th[scope="row"],
.compare td:first-child, .compare th:first-child {
  color: var(--fg);
  font-weight: 600;
  width: 28%;
}
/* 広い表（5列）: タブレットまでは横スクロール、狭い画面はカード化 */
@media (max-width: 960px) {
  .compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    margin-right: calc(var(--pad, 24px) * -0.25);
    padding-bottom: 4px;
  }
  .compare-wide {
    min-width: 720px;
  }
  .compare-scroll::-webkit-scrollbar { height: 6px; }
  .compare-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 3px;
  }
}
/* スマホ: 横スクロールをやめ、観点ごとのカードに積み上げ */
@media (max-width: 640px) {
  .compare-scroll {
    overflow: visible;
    margin-right: 0;
    padding-bottom: 0;
  }
  .compare,
  .compare-wide {
    min-width: 0;
    display: block;
    border: 0;
  }
  .compare thead {
    display: none;
  }
  .compare tbody {
    display: block;
  }
  .compare tr {
    display: block;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
  }
  .compare th[scope="row"],
  .compare td {
    display: block;
    width: 100% !important;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 14px;
  }
  .compare th[scope="row"] {
    background: rgba(255,255,255,0.05);
    color: var(--fg);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }
  .compare td:last-child {
    border-bottom: 0;
  }
  .compare td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--faint);
    margin-bottom: 4px;
  }
  /* plan8 の列を強調 */
  .compare td:last-child {
    background: rgba(94, 240, 200, 0.07);
    color: var(--fg);
    font-weight: 600;
  }
  .compare td:last-child::before {
    color: var(--create);
  }
}

.steps { counter-reset: step; margin: 16px 0 28px; padding: 0; list-style: none; }
.steps li {
  position: relative;
  padding: 16px 0 16px 52px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  line-height: 1.75;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--faint);
}
.steps strong { display: block; color: var(--fg); margin-bottom: 4px; font-size: 17px; }

.faq { margin: 12px 0 28px; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--fg);
  font-size: 17px;
  line-height: 1.55;
  list-style: none;
  display: block;
  padding-right: 1.5em;
  position: relative;
  text-shadow: var(--read-shadow);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--faint);
  font-weight: 500;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  display: block;
  margin: 10px 0 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--dim);
  text-shadow: var(--read-shadow);
}

.toc {
  margin: 8px 0 32px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 12, 18, 0.55);
  backdrop-filter: blur(6px);
}
.toc p { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.14em; color: var(--faint); font-weight: 600; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { padding: 4px 0; }
.toc a { color: var(--dim); text-decoration: none; font-size: 15px; }
.toc a:hover { color: var(--create); opacity: 1; }

.site-nav-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 8px 0 0;
  font-size: 14px;
}
.site-nav-mini a { color: var(--dim); text-decoration: none; }
.site-nav-mini a:hover { color: var(--fg); opacity: 1; }

.case-template {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px;
  margin: 16px 0 24px;
  background: rgba(255,255,255,0.02);
}
.case-template h3 { margin-top: 0; }
.case-template dl { margin: 0; }
.case-template dt {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--faint);
  font-weight: 600;
  margin-top: 14px;
}
.case-template dd {
  margin: 4px 0 0;
  color: var(--dim);
  line-height: 1.75;
  font-size: 16px;
}
.case-template .placeholder { color: var(--faint); font-style: italic; }

.insight-list { list-style: none; padding: 0; margin: 12px 0 28px; }
.insight-list li {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.insight-list li:last-child { border-bottom: 1px solid var(--line); }
.insight-list a {
  display: block;
  text-decoration: none;
  color: var(--fg);
  font-weight: 700;
  font-size: 17px;
}
.insight-list a:hover { color: var(--create); opacity: 1; }
.insight-list .blurb {
  display: block;
  margin-top: 6px;
  color: var(--dim);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
}
.insight-list .status {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.footer-addr {
  margin-top: 10px;
  font-size: 14px;
  color: var(--faint);
  line-height: 1.7;
  width: 100%;
  letter-spacing: 0.02em;
}
.related {
  margin: 40px 0 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.related h2 { margin-top: 0; font-size: 16px; letter-spacing: 0.12em; color: var(--faint); }
.related ul { list-style: none; padding: 0; }
.related li { padding: 6px 0; }
.related a { color: var(--dim); }

/* top page AI intro block (index uses own styles; also available here) */
.prose-note { font-size: 15px; color: var(--faint); margin-top: 12px; }

/* ── TOP と同じ会社概要・お問い合わせ ── */
.company-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}
#company .label,
.sec#company .label {
  color: rgba(255,255,255,0.78);
}
#company h2,
.sec#company > h2 {
  color: #fff;
}
/* company section with label+h2 in grid */
.company-grid h2 {
  color: #fff;
  font-size: 17px;
  margin: 0;
}
dl.kv {
  margin: 0;
}
dl.kv > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
dl.kv > div:first-child { border-top: 1px solid var(--line); }
dl.kv dt {
  font-size: 15px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.62);
  padding-top: 3px;
  text-shadow: var(--read-shadow);
  margin: 0;
}
dl.kv dd {
  font-size: 19px;
  color: rgba(255,255,255,0.9);
  line-height: 1.75;
  text-shadow: var(--read-shadow);
  margin: 0;
}
dl.kv .rep-bio {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  color: rgba(255,255,255,0.72);
  text-shadow: var(--read-shadow);
}
.links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}
.links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg) !important;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
  text-decoration: none !important;
}
.links a::after { content: "→"; font-weight: 400; }
.links a:hover { opacity: 0.55; }
.contact-box {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 80px) 0 0;
  margin-top: 56px;
}
.contact-box h2 {
  margin-top: 0;
  color: #fff;
}
.contact-box .cta-note,
.contact-box > p {
  color: var(--dim);
  line-height: 1.9;
  text-shadow: var(--read-shadow);
}
@media (max-width: 960px) {
  .company-grid { grid-template-columns: 1fr; gap: 16px; }
  dl.kv dt { font-size: 13px; }
  dl.kv dd { font-size: 17px; }
  dl.kv .rep-bio { font-size: 14px; }
  .links a { font-size: 16px; }
}
@media (max-width: 520px) {
  dl.kv > div { grid-template-columns: 1fr; gap: 4px; }
  dl.kv .rep-bio { font-size: 13px; }
}
