:root {
  color-scheme: light;
  --navy: #102c4b;
  --blue: #1565a9;
  --blue-soft: #eaf3fa;
  --ink: #1c2a38;
  --muted: #586978;
  --line: #d6e0e8;
  --canvas: #f5f7f9;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.6;
}

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }

.site-header { background: var(--white); border-bottom: 4px solid var(--navy); }

.header-inner,
.main-content {
  width: min(100% - 48px, 1060px);
  margin: 0 auto;
}

.header-inner {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.company-line { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.company-name { margin: 0; color: var(--blue); font-size: clamp(.75rem, 1.8vw, 1rem); font-weight: 700; letter-spacing: .04em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 6px; color: var(--navy); font-size: clamp(1.8rem, 4vw, 2.35rem); line-height: 1.3; letter-spacing: .04em; }
.lead { margin-bottom: 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.125rem); }

.logo-space {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
}

.logo-space img { display: block; width: auto; object-fit: contain; }
.logo-funnel { height: 23px; }
.logo-flag { height: 25px; }

.main-content { flex: 1; padding: 48px 0 64px; }
.system-section h2 { margin-bottom: 20px; color: var(--navy); font-size: 1.1rem; letter-spacing: .04em; }

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

.system-card {
  min-height: 210px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: 18px;
  padding: 28px;
  color: inherit;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgb(16 44 75 / 6%);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.system-card:hover { background: #fcfeff; border-color: #8db5d3; box-shadow: 0 5px 14px rgb(16 44 75 / 12%); }
.system-card:focus-visible { outline: 3px solid #157cc2; outline-offset: 3px; }

.icon-wrap {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  border-radius: 6px;
}

.icon-wrap svg { width: 30px; height: 30px; fill: none; stroke: var(--blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.card-content { align-self: center; min-width: 0; }
.system-name { display: block; margin-bottom: 9px; color: var(--navy); font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 700; line-height: 1.45; }
.system-description { display: block; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.card-action { grid-column: 2; margin-top: 18px; color: var(--blue); font-size: .95rem; font-weight: 700; text-align: right; }
.card-action span { margin-left: 5px; font-size: 1.15em; }

.site-footer { padding: 20px 24px; color: #6b7b89; font-size: .8rem; text-align: center; background: var(--white); border-top: 1px solid var(--line); }

@media (max-width: 680px) {
  .header-inner, .main-content { width: min(100% - 32px, 1060px); }
  .header-inner { min-height: 0; padding: 26px 0; align-items: flex-start; }
  .company-line { gap: 7px; }
  .logo-space { gap: 6px; }
  .logo-funnel { height: 21px; }
  .logo-flag { height: 23px; }
  .main-content { padding: 32px 0 40px; }
  .system-grid { grid-template-columns: 1fr; gap: 14px; }
  .system-card { min-height: 178px; padding: 23px 20px; column-gap: 16px; }
  .system-description { font-size: .96rem; }
}

@media (max-width: 390px) {
  .header-inner, .main-content { width: min(100% - 28px, 1060px); }
  .system-card { grid-template-columns: 50px minmax(0, 1fr); padding: 20px 16px; }
  .icon-wrap { width: 50px; height: 50px; }
  .icon-wrap svg { width: 27px; height: 27px; }
}
