/* =================================================
   株式会社データテクノシステム - Corporate Site
   ================================================= */

:root {
  --navy: #000080;
  --teal: #008080;
  --silver: #c0c0c0;
  --lime: #00ff00;
  --yellow: #ffff00;
  --red: #ff0000;
  --white: #ffffff;
  --black: #000000;
  --bg-dark: #000040;
  --panel-blue: #00005a;
  --line-blue: #0d3da3;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--navy);
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 3px
    );
  color: var(--silver);
  font-family: 'MS PGothic', 'MS Gothic', 'Osaka-Mono', 'ＭＳ ゴシック', monospace;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-frame {
  margin-inline: auto;
  width: min(100% - 24px, 980px);
}

.marquee-wrap {
  background: var(--black);
  border-top: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  overflow: hidden;
  padding: 4px 0;
}

.marquee-track {
  overflow: hidden;
}

.marquee-inner {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 28s linear infinite;
  color: var(--lime);
  font-size: 13px;
  letter-spacing: 0.05em;
}

@keyframes scroll-left {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(-100%);
  }
}

.site-header {
  background: linear-gradient(180deg, #001080 0%, #000040 100%);
  border-bottom: 3px groove var(--silver);
  box-shadow: inset 0 -1px 0 #1f77d0;
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 24px;
  padding: 18px 0 14px;
}

.site-header__brand {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.site-header__logo {
  display: grid;
  place-items: center;
  width: 76px;
  aspect-ratio: 1;
  background: linear-gradient(180deg, #00136a 0%, #00053a 100%);
  border: 2px groove var(--silver);
  box-shadow: inset 0 0 0 1px #0729aa;
}

.logo-diamond {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.site-header__copy {
  min-width: 0;
}

.site-header__kicker {
  color: #7ddcff;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.company-name-ja {
  color: var(--yellow);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-shadow: 2px 2px 0 var(--black), -1px -1px 0 #888800;
}

.company-name-en {
  color: #d7e3ff;
  font-size: 12px;
  letter-spacing: 0.22em;
  margin-top: 8px;
}

.site-header__panel {
  background: #001060;
  border: 2px groove var(--silver);
  padding: 8px 10px;
}

.site-header__panel-title {
  border-bottom: 1px solid #2163c1;
  color: var(--yellow);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.16em;
  margin-bottom: 6px;
  padding-bottom: 4px;
}

.site-header__panel-list {
  display: grid;
  gap: 4px;
}

.site-header__panel-list div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  font-size: 11px;
}

.site-header__panel-list dt {
  color: #62d9ff;
  font-weight: bold;
}

.site-header__panel-list dd {
  color: #f0f6ff;
}

.header-tagline {
  border-top: 1px solid #1f77d0;
  color: var(--teal);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 8px 0 10px;
  text-align: left;
}

.welcome-strip {
  background: #000;
  border: 1px solid var(--silver);
  color: #f8f8f8;
  font-size: 12px;
  margin: 0 0 12px;
  padding: 5px 10px;
  text-align: center;
}

.welcome-strip__badge {
  color: var(--yellow);
  font-weight: bold;
  margin-right: 10px;
}

.global-nav {
  background: var(--silver);
  border-top: 1px solid #f5f5f5;
  border-bottom: 2px solid #7f7f7f;
}

.global-nav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 4px 0;
}

.global-nav a {
  display: inline-block;
  background: var(--silver);
  border: 2px outset #e0e0e0;
  color: var(--black);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  padding: 3px 10px;
  text-decoration: none;
}

.global-nav a:hover,
.global-nav a[aria-current='page'] {
  background: #a0a0a0;
  border-style: inset;
}

.layout {
  display: grid;
  gap: 0;
  grid-template-columns: 180px minmax(0, 1fr);
  margin: 12px auto;
  width: min(100% - 24px, 980px);
  border: 2px groove var(--silver);
}

.sidebar {
  background: var(--bg-dark);
  border-right: 2px groove var(--silver);
  padding: 8px;
}

.sidebar-section {
  margin-bottom: 12px;
}

.sidebar-section--special {
  border: 1px solid #4d64b3;
  padding: 6px;
}

.sidebar-title {
  background: var(--teal);
  color: var(--white);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  padding: 2px 6px;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li::before {
  content: '▶ ';
  color: var(--lime);
  font-size: 10px;
}

.sidebar ul li a {
  color: #aaddff;
  font-size: 11px;
  line-height: 1.8;
  text-decoration: none;
}

.sidebar ul li a:hover {
  color: var(--yellow);
  text-decoration: underline;
}

.counter-box {
  background: var(--black);
  border: 2px inset var(--silver);
  margin-top: 8px;
  padding: 4px 6px;
  text-align: center;
}

.counter-label {
  color: var(--silver);
  font-size: 10px;
  margin-bottom: 2px;
}

.counter-value {
  color: var(--lime);
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 20px;
  letter-spacing: 0.15em;
}

.sidebar-note {
  color: #d7e8ff;
  font-size: 10px;
  line-height: 1.7;
  margin-top: 4px;
}

.sidebar-mini-note {
  color: #b8d9ff;
  font-size: 10px;
  line-height: 1.7;
  margin-top: 6px;
  text-align: center;
}

main {
  background: var(--panel-blue);
  padding: 10px 14px 16px;
}

.intro-box {
  background: #000040;
  border: 1px solid #6f89db;
  color: #e6f0ff;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.intro-box__title {
  color: var(--yellow);
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.intro-box__lead,
.intro-box__text {
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 8px;
}

.intro-box__links {
  color: #b9d7ff;
  font-size: 12px;
}

.notice-box {
  background: var(--black);
  border: 2px inset var(--silver);
  margin-bottom: 12px;
}

.notice-box-title {
  background: var(--navy);
  border-bottom: 1px solid var(--silver);
  color: var(--yellow);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.15em;
  padding: 3px 8px;
}

.notice-list {
  list-style: none;
  padding: 6px 10px;
}

.notice-list li {
  align-items: flex-start;
  border-bottom: 1px dotted #333;
  display: flex;
  font-size: 12px;
  gap: 8px;
  line-height: 2;
}

.notice-list li:last-child {
  border-bottom: none;
}

.notice-date {
  color: #aaaaaa;
  flex-shrink: 0;
  font-family: 'Courier New', monospace;
  font-size: 11px;
}

.notice-copy {
  flex: 1;
}

.badge-new {
  animation: blink 1s step-end infinite;
  background: var(--red);
  color: var(--white);
  display: inline-block;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: bold;
  margin-right: 4px;
  padding: 0 4px;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.section-heading {
  border-bottom: 1px solid var(--teal);
  border-left: 5px solid var(--teal);
  color: var(--yellow);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin: 14px 0 8px;
  padding: 3px 8px;
}

.greeting-text {
  color: #ccddee;
  font-size: 12px;
  line-height: 2;
  padding: 0 4px 8px;
}

.ceo-name {
  color: var(--yellow);
  font-size: 12px;
  font-weight: bold;
  padding: 0 4px 8px;
}

.service-table {
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 12px;
  width: 100%;
}

.service-table th {
  background: var(--teal);
  border: 1px solid #005555;
  color: var(--white);
  letter-spacing: 0.1em;
  padding: 4px 8px;
}

.service-table td {
  background: #000050;
  border: 1px solid #003366;
  color: var(--silver);
  padding: 4px 8px;
  vertical-align: top;
}

.service-table tr:hover td {
  background: #000080;
}

.case-hub {
  margin-top: 8px;
}

.case-hub[aria-busy='true'] .case-study-panel {
  opacity: 0.55;
}

.case-hub__lead {
  color: #bdd8ff;
  font-size: 12px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.case-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.case-nav a {
  background: #001d72;
  border: 1px solid #4a66bf;
  color: #d8f0ff;
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  text-decoration: none;
}

.case-nav a:hover,
.case-nav a.is-current,
.case-nav a[aria-current='true'] {
  background: #003a96;
  color: var(--yellow);
}

.noscript-note {
  color: #94b8ff;
  font-size: 11px;
  margin-bottom: 8px;
}

.case-study-panel {
  background: #000052;
  border: 1px solid #8aa0de;
  padding: 12px;
}

.case-study-eyebrow {
  color: #64e4ff;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.18em;
}

.case-study-panel h3 {
  color: var(--yellow);
  font-size: 20px;
  margin-top: 4px;
}

.case-study-summary {
  color: #e8f4ff;
  font-size: 12px;
  margin-top: 8px;
}

.case-study-meta {
  border-top: 1px solid #21439d;
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
}

.case-study-meta div {
  display: grid;
  gap: 10px;
  grid-template-columns: 74px minmax(0, 1fr);
  font-size: 11px;
}

.case-study-meta dt {
  color: #64e4ff;
  font-weight: bold;
}

.case-study-meta dd {
  color: #f6fbff;
}

.case-study-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.case-study-block {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #21439d;
  padding: 8px;
}

.case-study-block h4 {
  color: var(--yellow);
  font-size: 12px;
  margin-bottom: 6px;
}

.case-study-block p,
.case-study-block li {
  color: #d9e8ff;
  font-size: 11px;
  line-height: 1.8;
}

.case-study-list {
  list-style: square;
  margin-left: 16px;
}

.construction-bar {
  background: #000;
  border: 1px solid var(--silver);
  color: var(--yellow);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin: 12px 0;
  padding: 6px;
  text-align: center;
}

.construction-bar span {
  padding: 0;
}

.info-dl {
  font-size: 12px;
  width: 100%;
}

.info-dl__row {
  border-bottom: 1px solid #003;
  display: grid;
  grid-template-columns: 8em 1fr;
}

.info-dl__row:last-child {
  border-bottom: none;
}

.info-dl dt {
  background: #001860;
  border-right: 1px solid #003;
  color: var(--teal);
  padding: 4px 10px;
  white-space: nowrap;
}

.info-dl dd {
  background: #000040;
  color: var(--silver);
  padding: 4px 10px;
}

footer {
  background: var(--black);
  border-top: 3px groove var(--silver);
  color: #888;
  font-size: 11px;
  margin-top: 16px;
  padding: 10px;
  text-align: center;
}

footer hr {
  border-color: #333;
  margin: 6px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 6px;
}

.footer-links a {
  color: #6688aa;
  font-size: 11px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.footer-env {
  color: #555;
  font-size: 10px;
  margin-top: 4px;
}

a[href^='mailto'] {
  color: var(--lime);
}

.case-page-shell {
  margin: 18px auto 32px;
  width: min(100% - 24px, 900px);
}

.case-page__back {
  margin-bottom: 10px;
}

.case-page__back a {
  color: #d9e8ff;
  font-size: 12px;
}

.case-page__back a:hover {
  color: var(--yellow);
}

.case-page__title {
  color: var(--yellow);
  font-size: 18px;
  margin-bottom: 10px;
}

html[data-motion='reduced'] .marquee-inner,
html[data-motion='reduced'] .badge-new {
  animation: none;
  transform: none;
}

@media (max-width: 880px) {
  .site-header__inner {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .site-header__panel {
    width: min(100%, 420px);
  }

  .header-tagline {
    text-align: center;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-bottom: 2px groove var(--silver);
    border-right: none;
  }

  .case-study-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header__brand {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-header__kicker,
  .company-name-en,
  .header-tagline {
    letter-spacing: 0.12em;
  }

  .global-nav__inner,
  .case-nav {
    justify-content: center;
  }

  .notice-list li {
    display: grid;
    gap: 4px 8px;
  }

  .info-dl__row,
  .case-study-meta div {
    grid-template-columns: 1fr;
  }
}
