@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;600;700;800;900&display=swap");
:root {
  color-scheme: light;
  --bg: #f7fbff;
  --panel: #eaf4ff;
  --ink: #172e46;
  --muted: #526b83;
  --accent: #2565a6;
  --line: #d4e4f3;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", "Microsoft YaHei", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
header {
  height: 90px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  background: var(--bg);
}
.brand {
  font-weight: 900;
  font-size: 29px;
  letter-spacing: -2px;
}
.brand span {
  color: var(--accent);
}
nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
}
nav a:hover,
footer a:hover {
  color: var(--accent);
}
#language {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: transparent;
  color: var(--ink);
  padding: 9px 18px;
  font-size: 12px;
}
.hero {
  padding: 65px 6% 0;
  overflow: hidden;
}
.eyebrow,
.section-label,
.category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 35px;
  min-height: 530px;
}
h1 {
  font-size: clamp(38px, 4.8vw, 72px);
  line-height: 1.45;
  letter-spacing: -3px;
  margin: 32px 0 24px;
}
h1 span,
.contact h2 span {
  color: var(--accent);
}
.intro {
  font-size: 13px;
  line-height: 1.9;
  font-weight: 600;
}
.lead {
  font-size: 14px;
  line-height: 2.1;
  color: var(--muted);
  margin: 23px 0 30px;
}
.button {
  background: var(--accent);
  color: #ffffff;
  display: inline-block;
  padding: 17px 24px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  transition: transform 0.2s;
}
.button:hover {
  transform: translateY(-3px);
  background: #1c5189;
}
.text-link {
  margin-left: 26px;
  font-size: 13px;
}
.art {
  height: 450px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse, #cce7ffaa, transparent 65%);
}
.orbit {
  position: absolute;
  border: 1px solid #85b8e499;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  transform: rotate(-30deg) scaleX(0.8);
}
.o2 {
  transform: rotate(35deg) scaleX(0.65);
  width: 410px;
  height: 410px;
}
.o3 {
  transform: rotate(90deg) scaleX(0.6);
  width: 420px;
  height: 420px;
}
.core {
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -2px;
  transform: rotate(-8deg);
}
.lime {
  color: var(--accent);
}
.chip {
  position: absolute;
  border: 1px solid #c5def4;
  border-radius: 5px;
  background: #f1f8ff;
  padding: 9px 12px;
  font-size: 9px;
  letter-spacing: 1.2px;
}
.c1 {
  top: 40px;
  left: 18px;
}
.c2 {
  right: 0;
  top: 210px;
}
.c3 {
  bottom: 65px;
  left: 30px;
}
.art-note {
  position: absolute;
  bottom: 10px;
  right: 8px;
  font: 9px/1.7 monospace;
  color: #526f8c;
  letter-spacing: 1px;
}
.hero-bottom {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 26px 0;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
}
.section {
  padding: 100px 6%;
  border-top: 1px solid var(--line);
}
.about,
.skills {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 55px;
}
.section-label {
  color: var(--accent);
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.5;
  letter-spacing: -1.5px;
  margin: 0 0 26px;
}
.about p {
  font-size: 15px;
  color: var(--muted);
  line-height: 2.2;
  max-width: 700px;
}
.focus {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  display: flex;
  gap: 28px;
  align-items: center;
}
.focus span {
  font-size: 11px;
  color: var(--muted);
}
.focus strong {
  font-size: 12px;
  font-weight: 500;
}
.work {
  background: var(--panel);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.muted {
  color: var(--muted);
  font-size: 11px;
}
.project {
  display: grid;
  grid-template-columns: 55px 1fr 190px;
  gap: 35px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.project-index {
  align-self: start;
  font: 14px monospace;
  color: var(--muted);
}
.category {
  color: var(--accent);
  font-size: 9px;
}
.project h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 16px 0;
}
.project p {
  font-size: 13px;
  line-height: 2.1;
  color: var(--muted);
  max-width: 660px;
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.tags span {
  border: 1px solid #c7ddef;
  border-radius: 30px;
  padding: 6px 12px;
  font-size: 10px;
  color: #456784;
}
.project-symbol {
  font-size: 100px;
  color: var(--accent);
  text-align: center;
  opacity: 0.8;
}
.mini-bars {
  height: 110px;
  display: flex;
  gap: 9px;
  align-items: end;
  justify-content: center;
}
.mini-bars i {
  width: 20px;
  background: #8bbde8;
  height: 30%;
}
.mini-bars i:nth-child(2) {
  height: 52%;
}
.mini-bars i:nth-child(3) {
  height: 42%;
}
.mini-bars i:nth-child(4) {
  height: 77%;
}
.mini-bars i:nth-child(5) {
  height: 100%;
  background: var(--accent);
}
.server-art {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
}
.server-art i {
  font: 16px monospace;
  border: 1px solid #a0c7e9;
  color: var(--accent);
  padding: 10px 15px;
  border-radius: 4px;
}
.skill-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  gap: 20px;
}
.skill-row h3 {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}
.skill-row p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.9;
}
.contact {
  text-align: center;
  background: radial-gradient(ellipse at bottom, #d7ebff, transparent 65%);
  padding: 90px 6% 100px;
}
.contact h2 {
  font-size: clamp(35px, 4.5vw, 60px);
}
footer {
  border-top: 1px solid var(--line);
  padding: 30px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
footer > span,
footer > a:last-child {
  font-size: 10px;
  color: var(--muted);
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
@media (min-width: 1500px) {
  main,
  header,
  footer {
    max-width: 1500px;
    margin: auto;
  }
}
@media (max-width: 800px) {
  header {
    height: 76px;
  }
  nav {
    gap: 18px;
    font-size: 11px;
  }
  .hero {
    padding-top: 40px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .art {
    height: 330px;
    max-width: 430px;
    width: 100%;
    margin: 15px auto 30px;
  }
  .orbit {
    width: 260px;
    height: 260px;
  }
  .o2,
  .o3 {
    width: 310px;
    height: 310px;
  }
  .core {
    font-size: 36px;
  }
  .c1 {
    top: 10px;
  }
  .c3 {
    bottom: 28px;
  }
  h1 {
    font-size: clamp(36px, 7vw, 58px);
  }
  .section {
    padding: 65px 6%;
  }
  .about,
  .skills {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .project {
    grid-template-columns: 25px 1fr;
    gap: 18px;
  }
  .project-symbol,
  .mini-bars,
  .server-art {
    display: none;
  }
  .project h3 {
    font-size: 21px;
  }
  .section-heading {
    display: block;
  }
  .section-heading > .muted {
    display: block;
    margin-bottom: 24px;
  }
  .skill-row {
    grid-template-columns: 140px 1fr;
  }
  .focus {
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero-bottom {
    font-size: 8px;
    letter-spacing: 1px;
  }
}
@media (max-width: 460px) {
  nav a:first-child {
    display: none;
  }
  nav {
    gap: 14px;
  }
  .brand {
    font-size: 25px;
  }
  #language {
    padding: 8px 12px;
  }
  h1 {
    letter-spacing: -2px;
  }
  .skill-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .lead {
    font-size: 12px;
  }
  .project h3 {
    font-size: 19px;
  }
  .intro {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button {
    transition: none;
  }
} /* 動きは視認性を優先し、設定に応じて停止する */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f7fbffed;
  backdrop-filter: blur(18px);
}
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 30;
  pointer-events: none;
}
nav a {
  position: relative;
  padding: 8px 0;
}
nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
nav a:hover::after,
nav a[aria-current]::after {
  transform: scaleX(1);
}
.hero {
  background: radial-gradient(ellipse at 85% 20%, #d7ebff90, transparent 55%);
}
.o1 {
  animation: orbit-one 24s linear infinite;
}
.o2 {
  animation: orbit-two 32s linear infinite reverse;
}
.o3 {
  animation: orbit-three 38s linear infinite;
}
.orbit::after {
  content: "";
  position: absolute;
  top: 16%;
  left: 12%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px #2565a640;
}
.o2::after {
  width: 6px;
  height: 6px;
  background: #79acdb;
}
.core {
  animation: core-float 7s ease-in-out infinite;
}
.chip {
  animation: chip-float 6s ease-in-out infinite;
}
.c2 {
  animation-delay: -2s;
}
.c3 {
  animation-delay: -4s;
}
.project {
  position: relative;
  border-radius: 8px;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
.project:hover {
  background: #ffffff70;
  box-shadow: 0 15px 45px #172e4606;
}
.project-symbol,
.server-art {
  transition: transform 0.4s;
}
.project:hover .project-symbol,
.project:hover .server-art {
  transform: translateY(-5px);
}
.mini-bars i {
  transform-origin: bottom;
  transition: transform 0.5s;
}
.project:hover .mini-bars i:nth-child(odd) {
  transform: scaleY(0.8);
}
.process {
  background: #f2f8ff;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 25px;
}
.process-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 290px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  transition:
    transform 0.3s,
    border-color 0.3s;
}
.process-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    300px circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
    #cce7ffbb,
    transparent 75%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.process-card:hover {
  transform: translateY(-6px);
  border-color: #85b8e4;
}
.process-card:hover::before {
  opacity: 1;
}
.step-number {
  font: 10px monospace;
  letter-spacing: 2px;
  color: var(--accent);
}
.process-card h3 {
  font-size: 22px;
  margin: 24px 0 16px;
}
.process-card p {
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
  max-width: 320px;
}
.process-icon {
  display: block;
  font-size: 35px;
  color: var(--accent);
  margin-top: 24px;
}
.reveal-ready {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal-ready.is-visible {
  opacity: 1;
  transform: none;
}
@keyframes orbit-one {
  from {
    transform: rotate(-30deg) scaleX(0.8) rotate(0);
  }
  to {
    transform: rotate(-30deg) scaleX(0.8) rotate(360deg);
  }
}
@keyframes orbit-two {
  from {
    transform: rotate(35deg) scaleX(0.65) rotate(0);
  }
  to {
    transform: rotate(35deg) scaleX(0.65) rotate(360deg);
  }
}
@keyframes orbit-three {
  from {
    transform: rotate(90deg) scaleX(0.6) rotate(0);
  }
  to {
    transform: rotate(90deg) scaleX(0.6) rotate(360deg);
  }
}
@keyframes core-float {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(-10px) rotate(-6deg);
  }
}
@keyframes chip-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}
@media (max-width: 800px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-card {
    min-height: 0;
    padding: 26px;
  }
  .process-card p {
    max-width: none;
  }
  .process-icon {
    position: absolute;
    right: 24px;
    top: 6px;
    font-size: 28px;
  }
  .process-card h3 {
    font-size: 21px;
  }
  .project:hover {
    box-shadow: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal-ready {
    opacity: 1;
    transform: none;
  }
  .process-card:hover {
    transform: none;
  }
}
/* テーマごとの構成をアニメーションで示す。 */
.section-intro {
  max-width: 650px;
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
}
.lab {
  background: #e2f0ff;
}
.explorer-tabs {
  display: flex;
  gap: 8px;
  margin: 35px 0 20px;
  flex-wrap: wrap;
}
.explorer-tabs button {
  border: 1px solid #bbd6ee;
  border-radius: 30px;
  padding: 12px 22px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  transition:
    background 0.25s,
    color 0.25s;
}
.explorer-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.explorer-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 70px;
  align-items: center;
  background: #f7fbff;
  border: 1px solid #cfe2f3;
  border-radius: 20px;
  padding: 48px;
  animation: panel-in 0.5s ease;
}
.explorer-panel[hidden] {
  display: none;
}
.explorer-panel h3 {
  font-size: 28px;
  line-height: 1.6;
  margin: 20px 0;
}
.explorer-panel p,
.note-card p,
.faq p {
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
}
.flow-diagram {
  padding: 0 20px;
}
.flow-node {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 24px;
  background: #edf6ff;
  border: 1px solid #bbd6ee;
  border-radius: 10px;
  box-shadow: 0 8px 20px #172e4605;
}
.flow-node > span {
  font: 11px monospace;
  color: var(--accent);
}
.flow-node strong {
  font-size: 14px;
  font-weight: 500;
}
.flow-connector {
  height: 35px;
  width: 1px;
  background: #9dc1e1;
  margin: auto;
  position: relative;
  overflow: hidden;
}
.flow-connector i {
  position: absolute;
  width: 3px;
  height: 15px;
  left: -1px;
  top: -15px;
  background: var(--accent);
  animation: data-travel 2s linear infinite;
}
.flow-connector:nth-of-type(4) i {
  animation-delay: 1s;
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 45px;
}
.note-card {
  border-top: 2px solid var(--accent);
  padding-top: 22px;
}
.note-card h3 {
  font-size: 21px;
  margin: 22px 0 12px;
}
.faq {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 70px;
  background: #eaf4ff;
}
.faq details {
  border-bottom: 1px solid #c7ddef;
  padding: 24px 0;
}
.faq details:first-child {
  border-top: 1px solid #c7ddef;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 25px;
  justify-content: space-between;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details[open] p {
  animation: panel-in 0.3s ease;
}
.faq p {
  padding-right: 30px;
  margin-bottom: 0;
}
.faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
}
#motion-toggle {
  background: none;
  border: 0;
  color: var(--accent);
  padding: 0;
  font-size: 10px;
  letter-spacing: 1px;
}
.hero-bottom {
  align-items: center;
  gap: 15px;
}
.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
}
.motion-paused .reveal-ready {
  opacity: 1;
  transform: none;
  transition: none;
}
.motion-paused .process-card:hover {
  transform: none;
}
.button {
  box-shadow: 0 4px 0 #16457120;
}
.art {
  transition: background-position 0.4s;
}
.hero .eyebrow {
  animation: panel-in 0.6s both;
}
.hero h1 {
  animation: panel-in 0.8s 0.1s both;
}
.hero .lead {
  animation: panel-in 0.8s 0.2s both;
}
.contact {
  position: relative;
  overflow: hidden;
}
.contact::before,
.contact::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  pointer-events: none;
  border: 1px solid #85b8e440;
  border-radius: 50%;
  left: -300px;
  top: 0;
  animation: contact-wave 10s ease-in-out infinite;
}
.contact::after {
  left: auto;
  right: -300px;
  animation-delay: -5s;
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes data-travel {
  to {
    top: 50px;
  }
}
@keyframes contact-wave {
  50% {
    transform: scale(1.2) translateY(20px);
  }
}
@media (max-width: 800px) {
  .explorer-panel {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 28px;
  }
  .explorer-panel h3 {
    font-size: 23px;
  }
  .flow-diagram {
    padding: 0;
  }
  .notes-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .faq {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .hero-bottom {
    flex-wrap: wrap;
  }
  .hero-bottom > span:last-child {
    display: none;
  }
  nav {
    gap: 15px;
  }
  .faq summary {
    font-size: 15px;
  }
  .explorer-tabs button {
    padding: 11px 18px;
  }
  .contact::before,
  .contact::after {
    width: 350px;
    height: 350px;
  }
}
@media (max-width: 460px) {
  nav {
    gap: 12px;
    font-size: 10px;
  }
  header {
    padding: 0 5%;
  }
  #language {
    font-size: 10px;
    padding: 8px 9px;
  }
  .brand {
    font-size: 23px;
  }
  .explorer-panel {
    padding: 24px;
  }
  .explorer-panel h3 {
    font-size: 21px;
  }
  .flow-node {
    padding: 18px;
  }
  .section-intro {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .explorer-panel,
  .hero .eyebrow,
  .hero h1,
  .hero .lead,
  .faq details[open] p {
    animation: none;
  }
  .flow-connector i {
    top: 10px;
  }
}
/* プロジェクトの詳細は必要な時だけ開く。 */
.project-detail {
  grid-column: 2 / -1;
  border-top: 1px dashed var(--line);
  margin-top: 8px;
  padding-top: 18px;
}
.project-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  color: var(--accent);
  padding: 8px 0;
}
.project-detail summary::-webkit-details-marker {
  display: none;
}
.project-detail summary::after {
  content: "↗";
  transition: transform 0.25s;
}
.project-detail[open] summary::after {
  transform: rotate(90deg);
}
.project-detail summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 16px 0 8px;
}
.detail-grid h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 8px 0 12px;
}
.detail-grid p {
  font-size: 12px;
  margin: 0;
}
.analytics-story {
  background: linear-gradient(140deg, #f7fbff, #e9f4ff);
}
.analysis-steps {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 46px 0 36px;
}
.analysis-steps li {
  position: relative;
  border-top: 1px solid #accce8;
  padding-top: 26px;
}
.analysis-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid #b4d4ee;
  border-radius: 50%;
  color: var(--accent);
  font: 14px monospace;
  background: #f7fbff;
}
.analysis-steps h3 {
  font-size: 19px;
  margin: 24px 0 14px;
}
.analysis-steps p {
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
  margin-bottom: 22px;
}
.analysis-steps .category {
  font-size: 8px;
  letter-spacing: 1px;
}
.data-note {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 22px 28px;
  background: #ffffff90;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.data-note > span {
  font-size: 30px;
  color: var(--accent);
}
.data-note p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
}
.project-detail[open] .detail-grid {
  animation: panel-in 0.35s ease;
}
@media (max-width: 1000px) {
  .analysis-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .project-detail {
    grid-column: 1 / -1;
  }
  .analysis-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .analysis-steps li {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 20px;
  }
  .analysis-steps h3 {
    margin-top: 0;
  }
  .analysis-steps p {
    margin-bottom: 14px;
  }
  .data-note {
    padding: 20px;
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-detail[open] .detail-grid {
    animation: none;
  }
}
.operations-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .operations-details {
    grid-template-columns: 1fr;
  }
}
/* 監視設計の観点と対応手順をまとめる。 */
.monitoring {
  background: linear-gradient(160deg, #eef7ff, #f7fbff);
}
.monitor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 38px 0 55px;
}
.monitor-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffffb0;
  padding: 26px;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.monitor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px #2565a60c;
}
.monitor-card .step-number {
  font-size: 9px;
  letter-spacing: 1px;
}
.monitor-card h3 {
  font-size: 20px;
  margin: 24px 0 16px;
}
.monitor-card p {
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
}
.monitor-key {
  display: block;
  margin-top: 25px;
  font: 10px/1.8 monospace;
  color: var(--accent);
}
.response-heading h3 {
  font-size: 24px;
  margin-bottom: 12px;
}
.response-heading p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.response-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 32px 0 40px;
  border-top: 1px solid #bbd6ee;
}
.response-flow li {
  position: relative;
  padding: 26px 20px 8px 0;
}
.response-number {
  display: inline-flex;
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: white;
  font: 10px monospace;
}
.response-flow h4 {
  font-size: 16px;
  margin: 18px 0 12px;
}
.response-flow p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.ops-checklist {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7fbff;
  padding: 22px 26px;
}
.ops-checklist summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 14px;
}
.ops-checklist summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding-top: 15px;
}
.checklist-grid h4 {
  font-size: 15px;
}
.checklist-grid ul {
  padding-left: 20px;
}
.checklist-grid li {
  font-size: 13px;
  line-height: 2.2;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .monitor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .monitor-grid {
    grid-template-columns: 1fr;
  }
  .monitor-card {
    padding: 24px;
  }
  .response-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .checklist-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ops-checklist {
    padding: 22px;
  }
  .response-heading h3 {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .monitor-card:hover {
    transform: none;
  }
}
/* 各分野の詳細ページと共通ナビゲーション。 */
.site-header nav a[aria-current="page"] {
  color: var(--accent);
}
.page-hero {
  position: relative;
  padding: 58px 6% 70px;
  background: radial-gradient(ellipse at 90% 10%, #d7ebff, transparent 65%);
  border-bottom: 1px solid var(--line);
}
.back-link {
  font-size: 12px;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 45px;
}
.page-hero h1 {
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.5;
  max-width: 1050px;
  margin: 20px 0;
}
.page-intro {
  max-width: 760px;
  font-size: 16px;
  line-height: 2;
  color: var(--muted);
}
.page-tools {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}
.chapter:nth-child(even) {
  background: #edf6ff;
}
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}
.chapter-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff90;
}
.chapter-card h3 {
  font-size: 19px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.chapter-card p {
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
  margin: 0;
}
.related {
  background: #eaf4ff;
}
.related-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.related-links > a {
  padding: 26px;
  border: 1px solid #bbd6ee;
  background: #f7fbff;
  border-radius: 10px;
  color: var(--accent);
  font-size: 19px;
  transition: transform 0.2s;
}
.related-links > a:hover {
  transform: translateY(-3px);
}
.topic-directory {
  background: #edf6ff;
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 35px;
}
.directory-card {
  display: block;
  padding: 30px;
  background: #f7fbff;
  border: 1px solid #c7ddef;
  border-radius: 15px;
  transition:
    box-shadow 0.25s,
    border-color 0.25s;
}
.directory-card:hover {
  box-shadow: 0 12px 30px #2565a610;
  border-color: var(--accent);
}
.directory-card h3 {
  font-size: 23px;
  margin: 24px 0 18px;
}
.directory-card p {
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
  margin: 0;
}
.project-page-link {
  grid-column: 2 / -1;
  justify-self: start;
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  padding: 12px 0;
  border-bottom: 1px solid #9dc1e1;
}
.page-hero .section-label {
  margin-bottom: 16px;
}
@media (max-width: 800px) {
  .chapter-grid,
  .directory-grid {
    grid-template-columns: 1fr;
  }
  .page-hero {
    padding-top: 35px;
  }
  .back-link {
    margin-bottom: 30px;
  }
  .page-intro {
    font-size: 14px;
  }
  .site-header {
    height: auto;
    min-height: 90px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 12px;
  }
  .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 12px;
  }
  .site-header #language {
    grid-column: 2;
    grid-row: 1;
  }
  .site-header nav a:first-child {
    display: block;
  }
  .site-header nav a {
    font-size: 12px;
  }
  .related-links {
    grid-template-columns: 1fr;
  }
  .page-hero h1 {
    letter-spacing: -1.5px;
  }
  .chapter-card {
    padding: 24px;
  }
  .project-page-link {
    grid-column: 1 / -1;
  }
  .detail-page {
    scroll-padding-top: 120px;
  }
  html {
    scroll-padding-top: 120px;
  }
}
.directory-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 800px) {
  .directory-grid {
    grid-template-columns: 1fr;
  }
  .site-header nav {
    gap: 8px;
  }
  .site-header nav a {
    font-size: 11px;
  }
}
/* キーボード操作の入口と各ページの目次。 */
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 50;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.page-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  padding: 28px 6%;
  border-bottom: 1px solid var(--line);
  background: #edf6ff;
}
.page-toc > span {
  font-size: 11px;
  color: var(--muted);
  margin-right: 10px;
}
.page-toc a {
  font-size: 12px;
  line-height: 1.8;
  color: var(--accent);
}
@media (max-width: 800px) {
  .page-toc {
    display: grid;
    gap: 12px;
  }
  .page-toc a:first-child {
    display: block;
  }
}
/* 背景とデータの流れを重ね、本文の操作は妨げない。 */
.hero,
.page-hero {
  position: relative;
  isolation: isolate;
}
.particle-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: 5%;
  top: 8%;
  width: 240px;
  height: 240px;
  border: 1px solid #85b8e450;
  border-radius: 38% 62% 65% 35%;
  background: radial-gradient(ellipse, #cce7ff40, transparent 70%);
  z-index: -1;
  animation: cloud-morph 14s ease-in-out infinite;
}
.page-hero .section-label {
  animation: panel-in 0.7s both;
}
.page-hero h1 {
  animation: panel-in 0.9s 0.12s both;
}
.page-intro {
  animation: panel-in 0.9s 0.25s both;
}
.page-tools {
  animation: panel-in 0.9s 0.35s both;
}
.chapter-card,
.directory-card,
.monitor-card {
  position: relative;
  isolation: isolate;
  rotate: 0 1 0 var(--tilt, 0deg);
  transition:
    rotate 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}
.chapter-card::before,
.directory-card::before,
.monitor-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    240px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    #cce7ffb0,
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.chapter-card:hover::before,
.directory-card:hover::before,
.monitor-card:hover::before {
  opacity: 1;
}
.chapter-grid > .chapter-card:nth-child(2),
.directory-grid > .directory-card:nth-child(2) {
  transition-delay: 0.08s;
}
.chapter-grid > .chapter-card:nth-child(3),
.directory-grid > .directory-card:nth-child(3) {
  transition-delay: 0.16s;
}
.stream-art {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 32px;
  margin: 30px 0;
  border: 1px solid #bbd6ee;
  border-radius: 14px;
  background: linear-gradient(120deg, #edf6ff, #ffffff, #e2f0ff);
  background-size: 200% 100%;
  animation: stream-gradient 8s ease-in-out infinite;
}
.stream-station {
  flex-shrink: 0;
  font: 11px monospace;
  letter-spacing: 1px;
  color: var(--accent);
  padding: 18px;
  border: 1px solid #bbd6ee;
  border-radius: 10px;
  background: #f7fbff;
  animation: station-pulse 4s ease-in-out infinite;
}
.stream-station:nth-child(3) {
  animation-delay: 1.3s;
}
.stream-station:nth-child(5) {
  animation-delay: 2.6s;
}
.stream-track {
  height: 1px;
  background: #bbd6ee;
  flex: 1;
  position: relative;
  overflow: hidden;
}
.stream-track i {
  position: absolute;
  top: -2px;
  left: -20%;
  width: 20%;
  height: 5px;
  background: #2565a6;
  border-radius: 50%;
  animation: stream-packet 2.5s linear infinite;
}
.stream-track i:nth-child(2) {
  animation-delay: -0.8s;
}
.stream-track i:nth-child(3) {
  animation-delay: -1.6s;
}
.mini-bars i {
  animation: chart-wave 4s ease-in-out infinite;
}
.mini-bars i:nth-child(2) {
  animation-delay: -0.5s;
}
.mini-bars i:nth-child(3) {
  animation-delay: -1s;
}
.mini-bars i:nth-child(4) {
  animation-delay: -1.5s;
}
.server-art i {
  animation: station-pulse 4s ease-in-out infinite;
}
.server-art i:nth-child(2) {
  animation-delay: -1.3s;
}
.server-art i:nth-child(3) {
  animation-delay: -2.6s;
}
.motion-paused .chapter-card,
.motion-paused .directory-card,
.motion-paused .monitor-card {
  rotate: none;
}
.motion-paused .chapter-card::before,
.motion-paused .directory-card::before,
.motion-paused .monitor-card::before {
  opacity: 0;
}
@keyframes cloud-morph {
  50% {
    border-radius: 65% 35% 38% 62%;
    transform: rotate(30deg) scale(1.15);
  }
}
@keyframes stream-gradient {
  50% {
    background-position: 100% 50%;
  }
}
@keyframes stream-packet {
  to {
    left: 120%;
  }
}
@keyframes station-pulse {
  50% {
    box-shadow: 0 0 20px #2565a61c;
    border-color: #79acdb;
  }
}
@keyframes chart-wave {
  50% {
    scale: 1 0.72;
  }
}
@media (max-width: 600px) {
  .stream-art {
    padding: 20px 12px;
    gap: 6px;
  }
  .stream-station {
    font-size: 8px;
    padding: 14px 8px;
    letter-spacing: 0;
  }
  .page-hero::after {
    width: 170px;
    height: 170px;
  }
  .chapter-card,
  .directory-card,
  .monitor-card {
    rotate: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chapter-card,
  .directory-card,
  .monitor-card {
    rotate: none;
  }
  .chapter-card::before,
  .directory-card::before,
  .monitor-card::before {
    display: none;
  }
}
.page-hero {
  overflow: clip;
}
.stream-track {
  min-width: 0;
}
/* 立体粒子とスクロールによるシーン変換。 */
.particle-sculpture {
  height: 500px;
  isolation: isolate;
  background: radial-gradient(ellipse, #d8edff, transparent 70%);
  border: 1px solid #bbd6ee80;
  border-radius: 28px;
  overflow: hidden;
}
.particle-sculpture canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.sculpture-kicker {
  position: absolute;
  top: 24px;
  left: 24px;
  font: 9px monospace;
  letter-spacing: 1.5px;
  color: var(--accent);
  pointer-events: none;
}
.sculpture-caption {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
}
.sculpture-caption strong {
  display: block;
  font:
    900 19px Arial,
    sans-serif;
  letter-spacing: 3px;
}
.sculpture-caption > span {
  display: block;
  margin-top: 10px;
  font-size: 10px;
  color: var(--muted);
}
.sculpture-controls {
  position: absolute;
  bottom: 22px;
  display: flex;
  gap: 6px;
}
.sculpture-controls button {
  border: 1px solid #bbd6ee;
  background: #f7fbffdc;
  color: var(--accent);
  padding: 8px 12px;
  border-radius: 25px;
  font: 10px monospace;
}
.sculpture-controls button[aria-pressed="true"] {
  background: var(--accent);
  color: white;
}
.scroll-story {
  height: 220vh;
  position: relative;
  background: linear-gradient(135deg, #edf6ff, #e0efff 60%, #f7fbff);
}
.story-stage {
  position: sticky;
  top: 90px;
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  padding: 30px 6%;
  gap: 20px;
  overflow: hidden;
}
.story-copy {
  position: relative;
  z-index: 1;
}
.story-copy h2 {
  font-size: clamp(30px, 3.8vw, 54px);
}
.story-copy p {
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
  max-width: 400px;
}
.story-copy .text-link {
  display: inline-block;
  margin: 22px 0;
}
.story-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}
.story-steps span {
  border: 1px solid #bbd6ee;
  border-radius: 22px;
  padding: 10px 14px;
  font: 10px monospace;
  color: var(--muted);
  transition:
    background 0.3s,
    color 0.3s;
}
.story-steps .active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.story-visual {
  position: relative;
  height: min(65vh, 600px);
  min-height: 360px;
}
.story-visual canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.story-state {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  text-align: center;
  font: 10px monospace;
  letter-spacing: 3px;
  color: var(--accent);
}
.chapter-card,
.directory-card,
.monitor-card {
  overflow: hidden;
}
.chapter-card::after,
.directory-card::after,
.monitor-card::after {
  content: "";
  position: absolute;
  inset: -100% -60%;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 43%, #ffffffa0 49%, transparent 55%);
  transform: translateX(-75%);
  transition: none;
}
.chapter-card:hover::after,
.directory-card:hover::after,
.monitor-card:hover::after {
  transform: translateX(75%);
  transition: transform 0.9s ease;
}
.chapter-card:hover,
.directory-card:hover,
.monitor-card:hover {
  border-color: #79acdb;
  box-shadow:
    0 14px 40px #2565a61c,
    0 0 0 1px #b4dcff70;
}
@media (max-width: 800px) {
  .particle-sculpture {
    height: 400px;
    max-width: 500px;
  }
  .story-stage {
    top: 110px;
    min-height: calc(100svh - 110px);
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 25px;
    padding-bottom: 20px;
  }
  .story-copy h2 {
    font-size: 28px;
    margin-bottom: 12px;
  }
  .story-copy p {
    font-size: 12px;
    margin: 0;
  }
  .story-copy .section-label {
    margin-bottom: 12px;
  }
  .story-steps {
    margin-top: 15px;
  }
  .story-copy .text-link {
    margin: 14px 0 0;
  }
  .story-visual {
    height: 38svh;
    min-height: 220px;
  }
  .scroll-story {
    height: 210vh;
  }
  .story-steps span {
    padding: 8px 12px;
  }
  .sculpture-caption strong {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chapter-card::after,
  .directory-card::after,
  .monitor-card::after {
    display: none;
  }
  .scroll-story {
    height: auto;
  }
  .story-stage {
    position: relative;
    top: 0;
    min-height: 0;
  }
  .sculpture-controls #scatter {
    display: none;
  }
}
.motion-paused .chapter-card::after,
.motion-paused .directory-card::after,
.motion-paused .monitor-card::after {
  display: none;
}
/* 内容の階層を、事例・手順・成果物で分けて読みやすくする。 */
.editorial {
  background: #f7fbff;
}
.editorial-lead {
  font-size: 16px;
  line-height: 2.15;
  color: var(--muted);
  max-width: 820px;
  margin: 0 0 50px;
}
.practice-case {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 65px;
  padding: 50px 0;
  border-top: 1px solid var(--line);
}
.case-intro h3 {
  font-size: clamp(23px, 2.3vw, 31px);
  line-height: 1.6;
  margin: 20px 0;
}
.case-intro > p {
  font-size: 14px;
  line-height: 2.15;
  color: var(--muted);
}
.case-steps {
  padding: 0;
  margin: 0;
  list-style: none;
}
.case-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  padding: 0 0 25px;
}
.case-step-number {
  font: 11px monospace;
  color: var(--accent);
  padding-top: 6px;
}
.case-steps h4 {
  font-size: 16px;
  margin: 0 0 10px;
  line-height: 1.7;
}
.case-steps p {
  font-size: 14px;
  line-height: 2.05;
  color: var(--muted);
  margin: 0;
}
.case-result {
  padding: 22px 26px;
  border-left: 3px solid var(--accent);
  background: #eaf4ff;
  border-radius: 0 10px 10px 0;
}
.case-result > span {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 1px;
}
.case-result > p {
  font-size: 14px;
  line-height: 1.9;
  margin: 12px 0 0;
}
.deliverables {
  background: #eaf4ff;
}
.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 35px;
}
.deliverable-grid article {
  padding-top: 22px;
  border-top: 1px solid #accce8;
}
.deliverable-grid h3 {
  font-size: 20px;
  margin: 20px 0 14px;
}
.deliverable-grid p {
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
}
.perspective-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 70px;
  align-items: start;
}
.perspective-text {
  font-size: 16px;
  line-height: 2.3;
  color: var(--muted);
  margin: 0;
}
.perspective-points > div {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.perspective-points h3 {
  font-size: 17px;
  margin: 0 0 12px;
}
.perspective-points p {
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
  margin: 0;
}
.rls-matrix {
  margin-top: 45px;
}
.rls-matrix h3 {
  font-size: 23px;
  line-height: 1.6;
}
.matrix-caption {
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
  max-width: 800px;
}
.matrix-scroll {
  overflow: auto;
  border: 1px solid #bbd6ee;
  border-radius: 12px;
  margin-top: 24px;
}
.rls-matrix table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  text-align: left;
  font-size: 13px;
  line-height: 1.9;
}
.rls-matrix th,
.rls-matrix td {
  padding: 20px 24px;
  border-bottom: 1px solid #d4e4f3;
  vertical-align: top;
}
.rls-matrix thead {
  background: #e2f0ff;
  color: var(--accent);
}
.rls-matrix tbody th {
  font-weight: 500;
  width: 24%;
}
.rls-matrix tbody td {
  color: var(--muted);
}
.rls-matrix tbody tr:last-child > * {
  border-bottom: 0;
}
.rls-matrix tbody tr:nth-child(even) {
  background: #edf6ff;
}
.detail-page .section-intro {
  max-width: 850px;
  font-size: 15px;
}
.case-intro .category {
  line-height: 1.8;
  display: block;
}
@media (max-width: 900px) {
  .practice-case {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .case-intro > p {
    max-width: 760px;
  }
  .perspective-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .deliverable-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  .editorial-lead {
    font-size: 14px;
    margin-bottom: 30px;
  }
  .practice-case {
    padding: 30px 0;
  }
  .case-steps li {
    gap: 12px;
    grid-template-columns: 24px 1fr;
  }
  .case-steps p,
  .case-intro > p {
    font-size: 13px;
  }
  .case-result {
    padding: 18px;
  }
  .perspective-text {
    font-size: 14px;
    line-height: 2.15;
  }
  .rls-matrix h3 {
    font-size: 20px;
  }
  .rls-matrix th,
  .rls-matrix td {
    padding: 16px;
  }
  .detail-page .section-intro {
    font-size: 14px;
  }
}

/* Accessible mobile navigation, light theme and touch-friendly targets. */
.mobile-menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  min-height: 44px;
}
.site-header nav a,
#language {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-header nav a:focus-visible,
.mobile-menu-toggle:focus-visible,
#language:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.case-study {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}
.case-study h3 {
  font-size: 20px;
  line-height: 1.5;
}
.case-study p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
.case-study a {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  margin-top: 12px;
}
@media (max-width: 900px) {
  .case-study-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-height: 70px;
    padding: 10px 5%;
    height: auto;
  }
  .site-header .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .site-header .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    grid-column: 2;
    grid-row: 1;
    white-space: nowrap;
    font-size: 12px;
  }
  .site-header #language {
    grid-column: 3;
    grid-row: 1;
    padding: 10px;
    font-size: 12px;
  }
  .site-header nav {
    display: none;
    grid-column: 1/-1;
    grid-row: 2;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    border-top: 1px solid var(--line);
    padding: 8px 0;
    max-height: 65svh;
    overflow-y: auto;
  }
  .site-header.nav-open nav {
    display: flex;
  }
  .site-header nav a {
    display: flex !important;
    padding: 10px 12px;
    font-size: 14px;
    min-height: 44px;
  }
  .hero-grid,
  .story-stage {
    min-width: 0;
  }
  .particle-sculpture {
    width: 100%;
    max-width: 100%;
    height: clamp(280px, 70vw, 390px);
  }
  .story-stage {
    top: 70px;
    min-height: calc(100svh - 70px);
  }
  .story-visual {
    min-width: 0;
  }
}
@media (max-width: 420px) {
  .site-header {
    gap: 5px;
  }
  .site-header .brand {
    font-size: 22px;
  }
  .site-header #language {
    padding: 8px;
  }
  .mobile-menu-toggle {
    padding: 8px;
  }
}

/* 言語選択はモバイルでも操作できる幅を確保する。 */
select#language {
  font-family: inherit;
  cursor: pointer;
  max-width: 160px;
}
html[lang="en"] .page-hero h1 {
  overflow-wrap: anywhere;
}

/* 中国語は簡体字フォントを優先し、和文フォントとの混在を防ぐ。 */
:lang(zh-CN) {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
html[lang="zh-CN"] :is(h1, h2, h3) {
  letter-spacing: 0;
  font-weight: 700;
}
html[lang="zh-CN"] .hero h1 {
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: 1.55;
}
html[lang="zh-CN"] .page-hero h1 {
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.55;
}
html[lang="zh-CN"] .hero h1 span {
  white-space: nowrap;
}

/* デモ画像は比率を維持し、小さな画面では一列に並べる。 */
.dashboard-gallery {
  background: #edf6ff;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 36px;
}
.dashboard-card {
  margin: 0;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.dashboard-featured {
  grid-column: 1 / -1;
}
.dashboard-preview {
  display: block;
  background: #e5f1fc;
  overflow: hidden;
}
.dashboard-preview img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}
.dashboard-preview:hover img {
  transform: scale(1.015);
}
.dashboard-preview:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -4px;
}
.dashboard-card figcaption {
  padding: 26px 30px 30px;
}
.dashboard-card h3 {
  margin: 12px 0;
  font-size: 23px;
  line-height: 1.5;
}
.dashboard-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}
.dashboard-card .text-link {
  display: inline-block;
  margin: 8px 0 0;
  font-size: 14px;
}
@media (max-width: 800px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .dashboard-card figcaption {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-preview img {
    transition: none;
  }
  .dashboard-preview:hover img {
    transform: none;
  }
}
.motion-paused .dashboard-preview:hover img {
  transform: none;
}
