:root {
  --navy: #223555;
  --blue: #2674b8;
  --teal: #378e8a;
  --accent: #f07a25;
  --accent-dark: #b64b00;
  --ink: #333;
  --muted: #5a6b80;
  --line: #d7dee5;
  --soft: #f3f6f8;
  --paper: #fff;
  --container: 1120px;
  --focus: #d05b02;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 50;
  padding: 10px 16px; transform: translateY(-150%);
  color: #fff; background: var(--navy);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky; top: 0; z-index: 10; background: #fff;
  border-bottom: 4px solid var(--accent);
}
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; }
.brand img { width: 88px; height: 74px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-size: 14px; font-weight: 700; text-decoration: none; }
.nav a:hover { color: var(--accent-dark); }
.nav-toggle {
  display: none; width: 44px; height: 44px;
  border: 2px solid var(--accent); border-radius: 6px; background: #fff;
}
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--navy); }
.eyebrow, .case-kicker {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px; font-weight: 700; line-height: 1.6;
}
.hero { background: var(--soft); }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 552px);
  align-items: center; gap: 48px; padding-block: 64px;
}
.hero-copy, .hero-figure { min-width: 0; }
.hero h1 {
  margin: 0; color: var(--navy); font-size: 44px;
  line-height: 1.35; letter-spacing: 0.01em;
}
.hero-lead { max-width: 40em; margin: 20px 0 24px; }
.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%; border: 1px solid var(--line); background: #fff;
  object-fit: contain;
}
.hero-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.button {
  display: inline-flex; min-height: 48px; align-items: center; gap: 24px;
  padding: 11px 20px; border: 2px solid var(--navy); border-radius: 4px;
  color: #fff; background: var(--navy); font-weight: 700; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.button:hover { color: var(--navy); background: #fff; }
.section { padding-block: 80px; }
.cases { padding-top: 56px; }
.section-heading { margin-bottom: 32px; }
.section-heading h2, .profile-copy h2 {
  margin: 0; color: var(--navy); font-size: 30px; line-height: 1.45;
}
.section-heading--row {
  display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 48px;
}
.section-intro { max-width: 36em; margin: 0; }
.cases { background: var(--soft); }
.case-features { display: grid; gap: 48px; }
.case-card { min-width: 0; }
.case-card--featured, .case-card--scss {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start; gap: 20px 32px;
}
.case-card--featured { background: #fff; border-top: 5px solid var(--accent); }
.case-card--scss { padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.case-card--featured .case-content { padding: 30px 0 0 32px; }
.case-card--featured .case-detail { padding: 0 0 30px 32px; }
.case-card--scss .case-content { padding: 8px 0 0; }
.case-detail { grid-column: 1; grid-row: 2; }
.case-detail > p:first-child { margin: 0 0 16px; }
.case-content h3 { margin: 0 0 10px; color: var(--navy); font-size: 26px; line-height: 1.4; }
.case-content h3 a { text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: 5px; }
.case-content h3 a:hover { color: var(--accent-dark); }
.case-content > p:not(.case-kicker) { margin: 0 0 16px; }
.case-subtitle { color: var(--navy); font-size: 18px; font-weight: 700; line-height: 1.6; }
.case-media { min-width: 0; align-self: start; }
.case-visual { display: block; min-width: 0; }
.case-visual img {
  width: 100%; height: auto; border: 1px solid var(--line); background: #fff;
  object-fit: contain;
}
.case-media .text-link { margin-top: 6px; }
.case-media { grid-column: 2; grid-row: 1 / span 2; }
.case-card--featured .case-media { margin-top: 30px; margin-right: 30px; }
.case-roles { display: grid; gap: 0; margin: 20px 0; }
.case-roles > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 10px 12px; border-left: 3px solid transparent; line-height: 1.7; }
.case-roles > div:first-child, .case-overview .role-owner { border-left-color: var(--teal); background: #e8f0ef; }
.case-roles > div + div, .case-overview .role-support { color: var(--muted); font-size: 0.9375rem; }
.case-roles > div + div dt, .case-overview .role-support dt { color: var(--muted); font-weight: 500; }
.case-roles dt { color: var(--navy); font-weight: 700; }
.case-roles dd { margin: 0; }
.case-decision {
  padding: 10px 0 10px 16px; border-left: 3px solid var(--accent);
  color: var(--navy); font-weight: 700;
}
.scss-logo { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.scss-logo img { width: 180px; height: auto; }
.scss-logo span { color: var(--muted); font-size: 13px; }
.text-link {
  display: inline-flex; min-height: 44px; align-items: center; gap: 6px;
  color: var(--navy); font-size: 15px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 4px;
}
.text-link:hover { color: var(--accent-dark); }
.case-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px; margin-top: 48px;
}
.case-card--compact { background: #fff; border: 1px solid var(--line); }
.case-card--compact .case-content { padding: 24px; }
.case-card--compact h3 { font-size: 22px; }
.knowledge-mini {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px; min-height: 122px; padding: 20px; background: #e8f0ef;
  color: var(--navy); text-align: center;
}
.knowledge-mini span, .knowledge-mini strong, .excel-mini span, .excel-mini strong {
  padding: 7px 10px; background: #fff; font-size: 13px; line-height: 1.5;
}
.knowledge-mini strong { border-left: 3px solid var(--teal); }
.knowledge-mini i, .excel-mini i { color: var(--accent-dark); font-style: normal; }
.excel-mini {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 7px; min-height: 122px; padding: 20px; background: #f4f5f7;
  color: var(--navy); text-align: center;
}
.excel-mini strong { border-bottom: 3px solid var(--teal); }
.about-ai .section-heading {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.roles { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; }
.role { padding: 20px 24px; border-top: 3px solid var(--teal); background: #e8f0ef; }
.role + .role { padding-inline: 0; border-color: var(--line); background: transparent; }
.role + .role h3 { font-size: 19px; }
.role + .role p { color: var(--muted); }
.role h3 { margin: 0 0 8px; color: var(--navy); font-size: 22px; line-height: 1.5; }
.role p { margin: 0; }
.workflow { color: #fff; background: var(--navy); }
.workflow .section-heading h2 { color: #fff; }
.workflow a:focus-visible { outline-color: #fff; }
.workflow-list { margin: 0; padding: 0; list-style: none; }
.workflow-list li {
  display: grid; grid-template-columns: 32px 210px minmax(0, 1fr);
  gap: 20px; align-items: start; padding: 16px 0;
  border-top: 1px solid #aab7c8;
}
.workflow-number { color: #ffac6c; font-family: Inter, sans-serif; font-weight: 700; }
.workflow-list h3 { margin: 0; font-size: 19px; line-height: 1.5; }
.workflow-list p { max-width: 42em; margin: 0; line-height: 1.7; }
.workflow-owner { font-weight: 700; }
.workflow-list .workflow-support { margin-top: 6px; color: #d1d9e3; font-size: 14px; line-height: 1.6; }
.workflow-note { margin-top: 28px; padding: 20px 0 0; border-top: 1px solid #aab7c8; }
.workflow-note h3 { margin: 0 0 8px; font-size: 20px; }
.workflow-note p { max-width: 42em; margin: 0 0 8px; }
.workflow-note .text-link { color: #fff; }
.tools-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.tools-body { min-width: 0; }
.tools-heading-tail { display: inline-block; }
.tool-list { margin: 0; }
.tool-list > div {
  display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px;
  padding: 17px 0; border-top: 1px solid var(--line);
}
.tool-list dt { color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.6; }
.tool-purpose { display: block; margin-bottom: 4px; color: var(--navy); font-size: 0.9375rem; font-weight: 700; }
.tool-production { display: block; }
.tool-production + .tool-production { margin-top: 8px; }
.tool-list dd { max-width: 36em; margin: 0; }
.tool-extra { padding: 20px 0; border-top: 1px solid var(--line); }
.tool-extra h3 { margin: 0 0 6px; color: var(--navy); font-size: 18px; }
.tool-extra p { max-width: 40em; margin: 0; }
.profile { background: var(--soft); }
.profile-inner {
  display: grid; grid-template-columns: 200px minmax(0, 1fr);
  align-items: center; gap: 48px; max-width: 920px;
}
.profile-illustration {
  width: 200px; aspect-ratio: 1; border: 1px solid var(--navy);
  border-radius: 50%; object-fit: cover; background: #fff;
}
.profile-copy h2 { margin-bottom: 4px; }
.profile-copy p { max-width: 40em; margin: 0 0 16px; }
.profile-copy .profile-name-en { margin-bottom: 24px; color: var(--muted); font-family: Inter, sans-serif; font-size: 0.875rem; font-weight: 500; line-height: 1.5; letter-spacing: 0.06em; }
.site-footer { color: #fff; background: var(--navy); }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 100px; padding-block: 14px; }
.footer-brand { display: grid; gap: 0; }
.footer-brand strong { font-size: 17px; line-height: 1.5; }
.footer-brand span { color: #d1d9e3; font-size: 13px; font-weight: 400; line-height: 1.5; }
.footer-inner small { color: #d1d9e3; font-size: 12px; }
.footer-inner .footer-copyright { margin-top: 6px; font-size: 11px; line-height: 1.5; }/* Shared detail-page structure */
.detail-hero {
  padding: 72px 0 50px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumb a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--navy);
  text-decoration: none;
}
.detail-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.3;
}
.detail-lead {
  max-width: 40em;
  margin: 18px 0 0;
  font-size: 16px;
}
.detail-category {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font:
    700 11px Inter,
    "Noto Sans JP",
    sans-serif;
  letter-spacing: 0.09em;
}
.detail-section {
  padding-block: 58px;
  border-bottom: 1px solid var(--line);
}
.detail-section h2 {
  margin: 0 0 20px;
  color: var(--navy);
  font-size: 27px;
  line-height: 1.45;
}
.detail-section p {
  max-width: 40em;
}
.detail-section ul {
  padding-left: 1.2em;
}
.detail-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
}
.detail-columns > div {
  padding: 22px 24px;
  background: var(--soft);
  border-top: 3px solid var(--teal);
}
.detail-columns > div + div {
  border-color: var(--accent);
}
.detail-columns h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}
.detail-columns p {
  margin: 9px 0 0;
  font-size: 14px;
}
.step-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}
.step-flow li {
  padding: 16px;
  background: var(--soft);
  border-top: 3px solid var(--teal);
}
.step-flow span {
  display: block;
  color: var(--accent-dark);
  font:
    700 12px Inter,
    sans-serif;
}
.step-flow strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 14px;
}
.diagram-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
  padding: 24px;
  background: var(--soft);
}
.diagram-flow span,
.diagram-flow strong {
  padding: 12px 15px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 13px;
}
.diagram-flow strong {
  border-color: #82aaa6;
  background: #f1f7f6;
}
.diagram-flow i {
  color: var(--accent);
  font-style: normal;
}
.knowledge-flow {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 30px 0;
  padding: 26px 20px;
  background: var(--soft);
  text-align: center;
}
.knowledge-flow > div {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.knowledge-flow span,
.knowledge-flow strong {
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 13px;
}
.knowledge-flow strong {
  border-left: 3px solid var(--teal);
}
.knowledge-flow i {
  color: var(--accent);
  font-style: normal;
}
.mini-note {
  padding: 15px 18px;
  border-left: 4px solid var(--accent);
  background: #fff8f2;
  font-size: 13px;
}
.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}
.screenshot-grid figure {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
}
.screenshot-grid img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  object-position: top;
}
.screenshot-grid figcaption {
  padding: 10px 13px;
  color: var(--muted);
  font-size: 12px;
}
.screenshot-grid--aoi {
  grid-template-columns: 1.3fr 1fr;
}
.screenshot-grid--aoi figure:first-child {
  grid-row: span 2;
}
.screenshot-grid--aoi figure:first-child img {
  height: 100%;
  max-height: 690px;
  object-fit: contain;
  background: #f3f4f6;
}
.screenshot-grid--aoi .rpl-comparison {
  aspect-ratio: 2.55;
  object-fit: contain;
  background: var(--soft);
}
.case-back {
  display: flex;
  justify-content: center;
  padding: 50px 0 72px;
}
.detail-taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 !important;
  list-style: none;
}
.detail-taglist li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 12px;
}
.detail-footer {
  margin-top: 0;
}
/* T04/T05 shared case-study patterns */
.case-overview { display: grid; gap: 12px; max-width: 44rem; margin: 24px 0; }
.case-overview > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
.case-overview .role-owner, .case-overview .role-support { padding: 10px 12px; border-left: 3px solid transparent; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; line-height: 1.7; }
.case-overview .role-owner { border-left-color: var(--teal); }
.case-overview dt { color: var(--navy); font-weight: 700; }
.case-overview dd { margin: 0; }
.case-figure { margin: 24px 0; }
.case-figure img { width: 100%; height: auto; border: 1px solid var(--line); }
.case-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.case-figure--logo img { width: 180px; }
.scss-design-note {
  display: grid; grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center; gap: 32px; max-width: 760px;
}
.scss-design-note > p { margin: 0; }
.scss-design-note .case-figure { margin: 0; }
.decision-note {
  max-width: 44rem; margin: 24px 0; padding: 14px 20px;
  border-left: 4px solid var(--accent); background: #fff8f2;
}
.case-flow {
  display: grid; gap: 12px; margin: 24px 0; padding: 0;
  list-style: none; counter-reset: case-step;
}
.case-flow > li {
  position: relative; min-width: 0; padding: 18px 20px 18px 60px;
  border: 1px solid var(--line); background: var(--soft);
  counter-increment: case-step;
}
.case-flow > li::before {
  position: absolute; left: 20px; top: 18px;
  color: var(--accent-dark); font-family: Inter, sans-serif; font-weight: 700;
  content: counter(case-step, decimal-leading-zero);
}
.case-flow > li > strong { display: block; color: var(--navy); }
.case-flow__inputs {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px; align-items: center;
}
.case-flow__inputs > div { padding: 12px; border: 1px solid var(--line); background: #fff; }
.case-flow__operator { color: var(--accent-dark); font-weight: 700; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 48px; }
  .hero-copy { max-width: 44rem; }
  .hero-figure { max-width: 720px; }
  .section-heading--row, .about-ai .section-heading, .tools-inner { grid-template-columns: 1fr; gap: 16px; }
  .case-card--featured, .case-card--scss, .case-grid { grid-template-columns: 1fr; }
  .case-features { gap: 36px; }
  .case-detail, .case-media { grid-column: auto; grid-row: auto; }
  .case-card--featured .case-content { padding: 24px 24px 0; }
  .case-card--featured .case-detail { padding: 0 24px 24px; }
  .case-card--featured .case-media { margin: 0 24px 24px; }
  .case-card--scss .case-content { padding: 0; }
  .case-card--scss .case-media { margin: 0; }
  .case-grid { gap: 24px; margin-top: 36px; }
  .workflow-list li { grid-template-columns: 32px minmax(0, 1fr); gap: 8px 12px; }
  .workflow-list li > div { grid-column: 1 / -1; }
  .workflow-list h3 { font-size: 20px; }
  .step-flow { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 78px; }
  body { line-height: 1.8; }
  .container { width: calc(100% - 36px); }
  .header-inner { min-height: 72px; }
  .brand img { width: 74px; height: 64px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; right: 0; left: 0;
    display: none; align-items: stretch; gap: 0;
    padding: 8px 18px 14px; background: #fff;
    border: 1px solid var(--line);
  }
  .site-header.is-open .nav { display: flex; flex-direction: column; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border: 0; }
  .hero h1 { font-size: 32px; line-height: 1.4; }
  .hero-figure img { width: 100%; }
  .section { padding-block: 52px; }
  .cases { padding-top: 36px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading h2, .profile-copy h2 { font-size: 25px; line-height: 1.5; }
  .case-content h3 { font-size: 23px; }
  .case-subtitle { font-size: 17px; }
  .case-card--featured .case-content { padding: 20px 18px 0; }
  .case-card--featured .case-detail { padding: 0 18px 20px; }
  .case-card--featured .case-media { margin: 0 18px 18px; }
  .case-grid { gap: 18px; }
  .case-card--compact .case-content { padding: 20px 18px; }
  .case-roles > div { grid-template-columns: 38px minmax(0, 1fr); }
  .scss-logo { flex-wrap: wrap; }
  .scss-logo img { width: 160px; }
  .roles { grid-template-columns: 1fr; gap: 24px; }
  .workflow-list li { padding: 16px 0; }
  .workflow-list h3 { font-size: 18px; }
  .tool-list > div { grid-template-columns: 1fr; gap: 8px; }
  .profile-inner { grid-template-columns: 1fr; gap: 20px; }
  .profile-illustration { width: 160px; }
  .detail-hero { padding: 45px 0 35px; }
  .detail-hero h1 { font-size: 30px; }
  .detail-lead { font-size: 16px; }
  .detail-section { padding-block: 36px; }
  .detail-section h2 { font-size: 22px; }
  .detail-columns { grid-template-columns: 1fr; gap: 12px; }
  .detail-columns > div { padding: 18px; }
  .step-flow { grid-template-columns: 1fr 1fr; gap: 8px; }
  .step-flow li { padding: 12px; }
  .knowledge-flow { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
  .knowledge-flow > i { transform: rotate(90deg); }
  .knowledge-flow > div { gap: 6px; }
  .knowledge-flow > div:last-child { grid-template-columns: 1fr 1fr; }
  .screenshot-grid, .screenshot-grid--aoi { grid-template-columns: 1fr; }
  .screenshot-grid--aoi figure:first-child { grid-row: auto; }
  .screenshot-grid--aoi figure:first-child img { max-height: 330px; }
  .screenshot-grid img { max-height: 380px; }
  .case-back { padding: 36px 0 54px; }
  .diagram-flow { flex-direction: column; }
  .diagram-flow i { transform: rotate(90deg); }
  .case-overview > div { grid-template-columns: 1fr; gap: 0; }
  .case-overview .role-owner, .case-overview .role-support { grid-template-columns: 38px minmax(0, 1fr); gap: 8px; }
  .case-flow__inputs { grid-template-columns: 1fr; gap: 8px; }
  .case-flow__operator { justify-self: center; line-height: 1; }
  .scss-design-note { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
