/* ==========================================================
   mioss 公式サイト スタイル
   配色（デザイン提案）
   --color-bg        #FFFFFF  メイン（ホワイト）
   --color-bg-alt    #F4F8FD  セクション背景（淡いブルー）
   --color-accent    #1A5FD0  アクセント（ブルー）
   --color-accent-dk #134AA6  アクセント（濃）
   --color-text      #2B3038  本文（ダークグレー）
   --color-text-sub  #5A6270  補助テキスト
   --color-border    #DCE4EF  罫線
   ========================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f8fd;
  --color-accent: #1a5fd0;
  --color-accent-dk: #134aa6;
  --color-text: #2b3038;
  --color-text-sub: #5a6270;
  --color-border: #dce4ef;

  --font-base: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI",
    "Yu Gothic", YuGothic, Meiryo, "Noto Sans JP", system-ui, sans-serif;
  --container: 1040px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1px); /* ヘッダー下罫線分 */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--color-accent);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- スキップリンク ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  color: var(--color-accent);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.global-nav ul {
  display: flex;
  gap: 8px;
}

.global-nav a {
  display: block;
  padding: 8px 12px;
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

.global-nav a:hover {
  color: var(--color-accent);
  background: var(--color-bg-alt);
}

/* ---------- HOME ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 背景：hero-bg.svg（AI・ネットワークを想起させる自作SVG）
   中央に薄い暗色を重ね、文字の可読性を確保 */
.hero {
  display: flex;
  align-items: center;
  min-height: min(76vh, 640px);
  padding: 120px 0;
  background-color: #0b2a66;
  background-image:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(8, 28, 72, 0.72) 0%, rgba(8, 28, 72, 0) 100%),
    url("hero-bg.svg");
  background-position: center;
  background-size: cover;
  color: #ffffff;
  text-align: center;
}

.hero-catch {
  font-size: clamp(1.625rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 16px rgba(4, 16, 44, 0.45);
}

.hero-catch span {
  display: inline-block; /* 句読点の位置で改行させる */
}

.hero-lead {
  max-width: 40em;
  margin: 24px auto 0;
  color: #dce8fb;
  font-size: clamp(0.9375rem, 2.4vw, 1.0625rem);
  text-shadow: 0 1px 10px rgba(4, 16, 44, 0.5);
}

/* ---------- セクション共通 ---------- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 16px auto 0;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-lead {
  margin-top: 28px;
  color: var(--color-text-sub);
  text-align: center;
}

/* ---------- サービス ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  padding: 36px 32px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-accent);
  border-radius: 8px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
}

.service-card p {
  margin-top: 12px;
  color: var(--color-text-sub);
}

/* ---------- 事業概要 ---------- */
.profile {
  max-width: 720px;
  margin: 48px auto 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.profile-row {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  border-bottom: 1px solid var(--color-border);
}

.profile-row:last-child {
  border-bottom: 0;
}

.profile dt,
.profile dd {
  padding: 20px 24px;
}

.profile dt {
  color: var(--color-accent-dk);
  font-weight: 700;
}

/* ---------- フッター ---------- */
.site-footer {
  padding: 32px 0;
  background: var(--color-text);
  color: #e6e9ee;
  text-align: center;
}

.site-footer small {
  font-size: 0.8125rem;
}

/* ---------- タブレット ---------- */
@media (max-width: 768px) {
  .hero {
    min-height: 520px;
    padding: 96px 0;
  }

  .section {
    padding: 72px 0;
  }

  .service-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 36px;
  }
}

/* ---------- スマートフォン ---------- */
@media (max-width: 560px) {
  :root {
    --header-h: 104px;
  }

  .container {
    padding: 0 16px;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 0 6px;
  }

  .logo {
    text-align: center;
  }

  .global-nav ul {
    justify-content: center;
    gap: 4px;
  }

  .global-nav a {
    padding: 8px 10px;
    font-size: 0.875rem;
  }

  .hero {
    min-height: 440px;
    padding: 72px 0;
  }

  .service-card {
    padding: 28px 20px;
  }

  .profile-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile dt {
    padding: 16px 20px 0;
  }

  .profile dd {
    padding: 4px 20px 16px;
  }
}

/* ---------- reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
