:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #eef5ff;
  --text: #172033;
  --muted: #5b6680;
  --line: #dce4f0;
  --blue: #1769e0;
  --green: #0b8f79;
  --orange: #d96d1f;
  --shadow: 0 18px 45px rgba(28, 42, 68, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.site-hero {
  background:
    linear-gradient(
      90deg,
      rgba(12,31,58,.92),
      rgba(17,58,84,.72)
    ),
    url("./title.webp") center/cover no-repeat;
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0px 0 50px;
}

.topbar,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-subtitle{
  margin:0;
  color:rgba(255,255,255,.85);
  font-size:.95rem;
  font-weight:700;
  line-height:1.5;
  letter-spacing:.05em;
}

.top-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.top-links a {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-copy {
  width: min(900px, 100%);
  padding-top: 0px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-hero::before {
  background: rgba(12,31,58,.82);
}

.site-hero .eyebrow {
  color: #86f0d5;
}

.hero-copy h1 {
  margin: 30px 0;
  font-size: clamp(1.1rem, 7vw, 4.1rem);
  line-height: 1.08;
  white-space: nowrap;
  color: #fbfdff;
}

.hero-copy h1 a,
.hero-copy h1 a:hover,
.hero-copy h1 a:visited{
  color: #fbfdff;
  text-decoration: none;
}

.hero-copy p:not(.eyebrow) {
  max-width: none;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-actions a {
  min-width: 140px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.button-primary {
  background: #ffffff;
  color: #123053;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.top-layout {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) minmax(220px, 290px);
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: -28px auto 44px;
  align-items: start;
}

.service-panel,
.content-panel,
.side-panel {
  display: grid;
  gap: 18px;
}

.nav-card,
.content-card,
.side-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.nav-card,
.side-card {
  padding: 18px;
}

.nav-primary {
  border-top: 5px solid var(--green);
}

.nav-card h2,
.side-card h2,
.card-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.35;
}

.link-stack {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.link-stack a {
  display: grid;
  gap: 2px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--text);
  font-weight: 800;
}

.link-stack.compact a {
  display: block;
  padding: 9px 10px;
  font-size: 0.94rem;
}

.link-stack small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.content-card {
  overflow: hidden;
}

.card-heading {
  padding: 20px 22px 0;
}

.feature-body,
.news-card dl {
  padding: 8px 22px 22px;
}

.hero-diary .feature-body {
  padding-top: 0;
}

.hero-diary h2,
.hero-diary div h2 {
  font-size: 1.35rem;
}

.hero-diary img {
  border-radius: 8px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mail-feature img,
.feature-body > a > img {
  float: left;
  width: min(145px, 42%);
  margin: 3px 14px 10px 0;
  border-radius: 8px;
}

.more-link {
  clear: both;
  margin-bottom: 0;
  font-weight: 800;
}

.news-card dl {
  margin: 0;
}

.news-card dt {
  margin-top: 16px;
  font-weight: 800;
}

.news-card dd {
  margin: 8px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: var(--panel-soft);
}

.news-card dt:first-of-type {
  margin-top: 0;
}

.side-card {
  color: var(--muted);
}

.side-card h2 {
  margin-bottom: 12px;
}

.video-thumb img,
.graph-wrap img,
#simfree img {
  border-radius: 8px;
}

.video-thumb img,
.graph-wrap img{
  width:100%;
  max-width: 252px;
  height:auto;
}

.server-card table {
  margin: 10px auto;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

.font10 {
  font-size: 0.72rem;
}

.font12,
.font13 {
  font-size: 0.9rem;
}

.site-footer {
  background: #172033;
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.site-footer p {
  margin: 0 0 6px;
}

.site-footer a {
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 1020px) {
  .top-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  }

  .service-panel {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {

  .hero-inner,
  .top-layout,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .hero-copy h1 {
    font-size: 1.4rem;
    letter-spacing: -0.08em;
    white-space: nowrap;
  }

  .topbar,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-links {
    gap: 8px 12px;
  }


  .top-layout,
  .service-panel,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .top-layout {
    margin-top: -18px;
  }

  .nav-card,
  .side-card {
    padding: 16px;
  }

  .card-heading {
    padding: 18px 18px 0;
  }

  .feature-body,
  .news-card dl {
    padding: 8px 18px 18px;
  }

  .mail-feature img,
  .feature-body > a > img {
    float: none;
    display: block;
    width: 100%;
    max-width: 220px;
    margin: 4px 0 14px;
  }
}

.static-main {
  position: relative;
  z-index: 1;
}

.static-content-card {
  border-top: 5px solid var(--green);
}

.legacy-content {
  overflow-wrap: anywhere;
}

.legacy-content .meslist {
  display: grid;
  gap: 14px;
}

.legacy-content h2,
.legacy-content h3,
.legacy-content .section-title {
  margin: 22px 0 10px;
  color: var(--text);
  line-height: 1.35;
}

.legacy-content h2:first-child,
.legacy-content h3:first-child {
  margin-top: 0;
}

.legacy-content h2:nth-of-type(n + 2) {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legacy-content p {
  margin: 0 0 14px;
}

.legacy-content ul,
.legacy-content ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
}

.legacy-content li {
  margin: 8px 0;
}

.legacy-content dl {
  margin: 0;
}

.legacy-content dt {
  margin-top: 16px;
  font-weight: 800;
}

.legacy-content dd {
  margin: 8px 0 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: var(--panel-soft);
}

.legacy-content table {
  width: 100%;
  margin: 16px 0 24px;
  border-collapse: collapse;
  border: 1px solid #b9c6d8;
  background: #ffffff;
}

.legacy-content th,
.legacy-content td {
  padding: 14px 16px;
  border: 1px solid #b9c6d8;
  text-align: left;
  vertical-align: top;
}

.legacy-content th {
  width: 28%;
  background: var(--panel-soft);
  font-weight: 800;
  white-space: nowrap;
}

.legacy-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.legacy-content article {
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.legacy-content article:first-child {
  border-top: 0;
  padding-top: 0;
}

.legacy-content article > img {
  display: block;
  margin: 10px 0 14px;
}

@media (max-width: 760px) {
  .legacy-content th,
  .legacy-content td {
    display: block;
    width: 100%;
  }

  .legacy-content th {
    border-bottom: 0;
  }
}

.single-page {
  width: min(920px, calc(100% - 32px));
  margin: -28px auto 44px;
  display: grid;
  gap: 18px;
}

.single-page .card-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.single-page .card-heading .eyebrow {
  margin: 0;
}

.single-page .card-heading h2 {
  margin: 0;
}

.inquiry-main {
  position: relative;
  z-index: 1;
}

.contact-list {
  display: grid;
  gap: 18px;
}

.inquiry-lead {
  border-top: 5px solid var(--green);
}

.inquiry-body p {
  margin: 0 0 14px;
}

.inquiry-body p:last-child {
  margin-bottom: 0;
}

.contact-card .feature-body {
  display: grid;
  gap: 14px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-actions .button-primary {
  background: var(--blue);
  color: #ffffff;
}

.contact-outline {
  border-color: var(--line);
  color: var(--blue);
  background: #ffffff;
}

.mail-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

.inquiry-figure {
  margin: 4px 0 0;
}

.inquiry-figure img {
  display: block;
  width: min(100%, 500px);
  border-radius: 8px;
  border: 1px solid var(--line);
}

@media (max-width: 760px) {
  .single-page {
    width: min(100% - 22px, 920px);
    margin-top: -18px;
  }

  .contact-actions {
    display: grid;
  }
}
