/* 株式会社サンプルワークス（架空の会社）のサイトのスタイル。
   フレームワークは使わず、このファイルだけで完結している。 */

:root {
  --ink: #1b2440;
  --ink-soft: #55607a;
  --line: #dfe3ec;
  --paper: #ffffff;
  --mist: #f4f6fb;
  --navy: #16224a;
  --accent: #f0643c;
  --accent-dark: #c9481f;
  --sky: #2f6fed;
  --radius: 14px;
  --wrap: 1080px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

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

a {
  color: var(--sky);
  text-underline-offset: 3px;
}

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

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

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  height: 36px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--mist);
  color: var(--accent-dark);
}

/* ---------- ページの見出し帯 ---------- */

.page-title {
  background: linear-gradient(120deg, var(--navy) 0%, #24367a 60%, #2f6fed 130%);
  color: #fff;
}

.page-title__inner {
  padding-top: 44px;
  padding-bottom: 44px;
}

.page-title__label {
  margin: 0 0 4px;
  color: #ffb9a3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.page-title__heading {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.4;
}

/* ---------- 下層ページの骨組み ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding-top: 44px;
  padding-bottom: 72px;
}

.layout--with-side {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.side-nav {
  align-self: start;
  position: sticky;
  top: 88px;
  padding: 20px;
  background: var(--mist);
  border-radius: var(--radius);
}

.side-nav__title {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.side-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-nav__list a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

.side-nav__list a:hover {
  background: #fff;
}

.side-nav__list .is-current a {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.side-nav__date {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
}

.side-nav--articles .side-nav__list {
  max-height: 70vh;
  overflow-y: auto;
}

/* ---------- 本文 ---------- */

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 2.4em 0 0.8em;
  padding-left: 14px;
  border-left: 5px solid var(--accent);
  font-size: 22px;
  line-height: 1.5;
}

.prose h3 {
  margin: 2em 0 0.6em;
  font-size: 18px;
}

.prose h4 {
  margin: 1.8em 0 0.5em;
  color: var(--navy);
  font-size: 16px;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.2em;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose .steps,
.prose .cards {
  padding-left: 0;
}

.prose li > ul,
.prose li > ol {
  margin-bottom: 0;
}

.prose hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose pre {
  padding: 20px;
  background: var(--mist);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  overflow: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.table {
  width: 100%;
  margin: 0 0 1.6em;
  border-collapse: collapse;
  border-top: 2px solid var(--navy);
}

.table th,
.table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  width: 11em;
  color: var(--navy);
  font-size: 14px;
  white-space: nowrap;
}

.table td > :last-child {
  margin-bottom: 0;
}

.box {
  margin: 0 0 1.6em;
  padding: 20px 24px;
  background: var(--mist);
  border-radius: var(--radius);
}

.box > :last-child {
  margin-bottom: 0;
}

.box--center {
  text-align: center;
  font-weight: 700;
}

.signature {
  text-align: right;
}

.profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.6em;
}

.profile img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
}

.profile__name {
  margin: 0;
  font-weight: 700;
  line-height: 1.5;
}

.profile__role {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 400;
}

/* 番号つきの手順（開発の流れなど） */
.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 0 0 1.6em;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 62px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
}

.steps strong {
  display: block;
}

/* カードを並べる */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 0 0 1.6em;
  padding: 0;
  list-style: none;
}

.card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card__title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.5;
}

.card__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.card__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  background: var(--mist);
  border-radius: 12px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

a.card:hover {
  box-shadow: 0 10px 28px rgba(22, 34, 74, 0.12);
  transform: translateY(-3px);
}

.tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 10px;
  background: var(--navy);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  vertical-align: middle;
}

.button {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-dark);
  color: #fff;
}

.button--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 2px #fff;
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ---------- お知らせ ---------- */

.news-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.news-list a {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.news-list a:hover .news-list__title {
  color: var(--accent-dark);
  text-decoration: underline;
}

.news-list__date {
  flex: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.news-list__title {
  flex: 1 1 280px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.article__date {
  margin: 0 0 1.6em;
  color: var(--ink-soft);
  font-size: 14px;
}

/* ---------- お問い合わせフォーム ---------- */

.form {
  display: grid;
  gap: 18px;
  max-width: 640px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.form input,
.form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c3cada;
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--sky);
  outline: 3px solid rgba(47, 111, 237, 0.2);
}

.form__required {
  color: var(--accent-dark);
  font-size: 12px;
}

.form__check {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  font-weight: 400 !important;
}

.form__check input {
  width: auto;
}

/* ---------- トップページ ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero::before {
  right: -120px;
  top: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 30% 30%, #3f7dff, #2a3f96 70%);
  opacity: 0.75;
}

.hero::after {
  right: 180px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  background: var(--accent);
  opacity: 0.9;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 104px;
}

.hero__label {
  margin: 0 0 14px;
  color: #ffb9a3;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.hero__headline {
  margin: 0 0 18px;
  font-size: clamp(30px, 6vw, 54px);
  line-height: 1.3;
}

.hero__copy {
  max-width: 34em;
  margin: 0 0 32px;
  color: #d5dcf2;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding: 72px 0;
}

.section--mist {
  background: var(--mist);
}

.section__label {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.section__heading {
  margin: 0 0 28px;
  font-size: 26px;
  line-height: 1.5;
}

.section__more {
  margin: 20px 0 0;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 48px;
}

.link-stack {
  display: grid;
  gap: 16px;
}

/* ---------- フッター ---------- */

.site-footer {
  padding: 48px 0 32px;
  background: var(--navy);
  color: #c9d1ea;
  font-size: 14px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
}

.site-footer__brand img {
  display: block;
  height: 34px;
  width: auto;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  max-width: 560px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__note {
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
}

/* ---------- 狭い画面 ---------- */

@media (max-width: 800px) {
  .layout--with-side,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .side-nav {
    position: static;
  }

  .table th,
  .table td {
    display: block;
    width: auto;
  }

  .table th {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .hero__inner {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .section {
    padding: 52px 0;
  }
}
