/* ============================================================
   有限会社アップストリーム  共通スタイルシート
   ============================================================ */
:root {
  --blue:        #1a6cc4;
  --blue-dark:   #145394;
  --blue-light:  #e8f1fb;
  --ink:         #1f2733;
  --ink-soft:    #4a5568;
  --line:        #d9e2ec;
  --bg:          #f4f7fa;
  --white:       #ffffff;
  --radius:      10px;
  --maxw:        1040px;
  --shadow:      0 1px 3px rgba(20,40,70,.08), 0 6px 20px rgba(20,40,70,.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-dark); }

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

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}
.logo {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-dark);
  text-decoration: none;
}
.logo .mark { width: 38px; height: 38px; flex: none; }
.btn-contact {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn-contact:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ---------- Global nav ---------- */
.gnav { background: var(--blue); }
.gnav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--maxw);
  margin-inline: auto;
}
.gnav li { flex: 1 1 auto; }
.gnav a {
  display: block;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 16px 12px;
  transition: background .2s ease;
}
.gnav a:hover,
.gnav a[aria-current="page"] { background: var(--blue-dark); }

/* ---------- Hero (top page) ---------- */
.hero {
  background: linear-gradient(180deg, var(--blue-light), var(--bg));
  padding-block: 40px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.hero-copy h2 {
  font-size: 1.6rem;
  line-height: 1.5;
  margin: 0 0 12px;
  color: var(--blue-dark);
}
.hero-copy p { margin: 0 0 22px; color: var(--ink-soft); }
.hero-img { display: flex; justify-content: center; }
.hero-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: auto;
  max-width: 100%;
  max-height: 280px;
}
.btn-text {
  display: inline-block;
  background: var(--white);
  border: 1.5px solid var(--blue);
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.btn-text:hover { background: var(--blue); color: #fff; }

/* ---------- Page heading (sub pages) ---------- */
.page-head {
  background: linear-gradient(180deg, var(--blue-light), var(--bg));
  padding-block: 36px;
}
.page-head h1 {
  margin: 0;
  font-size: 1.7rem;
  color: var(--blue-dark);
}
.breadcrumb {
  margin: 6px 0 0;
  font-size: .82rem;
  color: var(--ink-soft);
}
.breadcrumb a { color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section { padding-block: 48px; }
.section-title {
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 24px;
  padding-left: 14px;
  border-left: 4px solid var(--blue);
}

.layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  align-items: start;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 24px; }

/* ---------- Service block (works page) ---------- */
.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  scroll-margin-top: 20px;
}
.service + .service { margin-top: 28px; }
.service h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: var(--blue-dark);
}
.service h3 .icon {
  width: 42px; height: 42px; flex: none;
  border-radius: 8px;
  background: var(--blue-light);
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.service .lead { color: var(--ink-soft); margin: 0 0 16px; }
.service h4 {
  margin: 18px 0 10px;
  font-size: 1rem;
  color: var(--ink);
}
.feature-list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}
.feature-list li {
  padding-left: 22px;
  position: relative;
}
.feature-list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--blue);
  font-weight: 700;
}
.numbered { margin: 0; padding-left: 1.3em; }
.numbered li { margin-bottom: 10px; }
.numbered li strong { color: var(--blue-dark); }
.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 600;
}

/* ---------- Definition / info table ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table th,
.info-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.info-table th {
  width: 30%;
  white-space: nowrap;
  color: var(--ink-soft);
  background: var(--bg);
  font-weight: 600;
}

/* ---------- Ordered legal list ---------- */
.legal { counter-reset: item; padding: 0; margin: 0; list-style: none; }
.legal > li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 22px;
}
.legal > li::before {
  counter-increment: item;
  content: counter(item);
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .9rem;
  font-weight: 700;
}
.legal h3 {
  margin: 2px 0 6px;
  font-size: 1.05rem;
  color: var(--blue-dark);
}
.legal p { margin: 0; }
.sub-list {
  margin: 8px 0 0;
  padding-left: 1.2em;
  color: var(--ink-soft);
}
.sub-list li { margin-bottom: 4px; }

/* ---------- Service banners (sidebar) ---------- */
.banners {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
}
.banners a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.banners a:hover {
  border-color: var(--blue);
  transform: translateX(2px);
  box-shadow: var(--shadow);
}
.banners .icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 8px;
  background: var(--blue-light);
  display: grid; place-items: center;
  font-size: 1.1rem;
}
.banners small {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: .82rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c7d2de;
  padding-block: 32px;
  margin-top: 40px;
}
.site-footer address {
  font-style: normal;
  line-height: 1.9;
  font-size: .92rem;
}
.site-footer .company { color: #fff; font-weight: 600; font-size: 1rem; }

.pagetop {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid; place-items: center;
  text-decoration: none;
  box-shadow: var(--shadow);
  font-size: 1.2rem;
  transition: background .2s ease;
}
.pagetop:hover { background: var(--blue-dark); }

.note {
  font-size: .85rem;
  color: var(--ink-soft);
  margin-top: 28px;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .layout { grid-template-columns: 1fr; }
  .gnav a { padding: 14px 8px; font-size: .95rem; }
  .feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-header .wrap { flex-direction: column; align-items: stretch; text-align: center; }
  .logo a { justify-content: center; }
  .gnav ul { flex-direction: column; }
  .hero-copy h2 { font-size: 1.35rem; }
  .info-table th { width: 40%; }
}
