/* ===== 変数 ===== */
:root {
  --ink: #1c2230;
  --sub: #5a6070;
  --ground: #f5f3ee;
  --surface: #ffffff;
  --line: #e3dfd6;
  --accent: #2a4db7;
  --accent-dark: #1f3a8c;
  --accent-soft: #e8ecf8;

  --font-heading: "IBM Plex Sans JP", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;

  --container: 1120px;
  --radius: 16px;
  --space: 112px;
}

/* ===== ベース ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--font-heading); font-weight: 700; line-height: 1.45; word-break: auto-phrase; }
p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 16px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 8px; }

/* ===== ボタン ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border: 2px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: #fff;
  font-weight: 700; text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn--light { background: #fff; border-color: #fff; color: var(--accent); }
.btn--light:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-dark); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }

/* ===== ヘッダー ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(245, 243, 238, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.header__name { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.header__name span { font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--sub); }
.header__nav { display: flex; align-items: center; gap: 28px; }
.header__nav ul { display: flex; gap: 24px; font-size: 14px; }
.header__nav ul a { color: var(--ink); text-decoration: none; }
.header__nav ul a:hover { color: var(--accent); }

/* ===== ヒーロー ===== */
.hero__inner { padding-top: 120px; padding-bottom: 104px; }
.hero__role { margin-bottom: 20px; font-size: 14px; font-weight: 700; letter-spacing: .16em; color: var(--accent); }
.hero__title { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.35; letter-spacing: .01em; }
.hero__lead { max-width: 640px; margin-top: 28px; color: var(--sub); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; margin-top: 72px; }
.stats__item { padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stats__item dt { font-size: 13px; color: var(--sub); }
.stats__item dd { margin-top: 4px; font-weight: 700; }
.stats__item strong { font-family: var(--font-heading); font-size: 36px; line-height: 1.2; margin-right: 4px; }
.stats__item small { margin-left: 4px; font-size: 13px; font-weight: 400; color: var(--sub); }

/* ===== セクション共通 ===== */
.section { padding: var(--space) 0; background: var(--surface); }
.section--alt { background: var(--ground); }
.section-head { margin-bottom: 56px; }
.section-head__en { margin-bottom: 8px; font-size: 14px; font-weight: 700; letter-spacing: .16em; color: var(--accent); text-transform: uppercase; }
.section-head__title { font-size: clamp(26px, 3.5vw, 36px); }
.section-head__lead { max-width: 640px; margin-top: 16px; color: var(--sub); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { padding: 2px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 13px; font-weight: 500; }

/* ===== 制作サンプル ===== */
.work { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.work__visual { position: relative; padding-bottom: 48px; }
.mock-browser { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 24px 48px rgba(28, 34, 48, .12); }
.mock-browser__bar { display: flex; gap: 6px; padding: 10px 12px; background: #eeebe4; }
.mock-browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: #cfc9bd; }
.mock-phone {
  position: absolute; right: -12px; bottom: 0; width: 28%;
  overflow: hidden; border: 6px solid var(--ink); border-radius: 22px; background: #fff;
  box-shadow: 0 16px 32px rgba(28, 34, 48, .2);
}
.mock-phone img { aspect-ratio: 375 / 700; object-fit: cover; object-position: top; }

.work__tag { font-size: 13px; font-weight: 700; color: var(--accent); }
.work__title { margin: 8px 0 20px; font-size: 28px; }
.work__title span { display: block; margin-top: 4px; font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--sub); }
.work__subtitle { margin: 32px 0 16px; font-size: 17px; }
.point-list { display: grid; gap: 16px; margin-bottom: 28px; }
.point-list li { padding-left: 20px; border-left: 3px solid var(--accent); }
.point-list strong { display: block; }
.work__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ===== 実績 ===== */
.exp-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; }
.exp { display: flex; flex-direction: column; gap: 14px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.exp__meta { font-size: 13px; color: var(--sub); }
.exp__title { font-size: 20px; }
.exp .tag-list { margin-top: auto; padding-top: 8px; }
.exp-note { margin-top: 24px; font-size: 14px; color: var(--sub); }

/* ===== スキル ===== */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.skill { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.skill__title { margin-bottom: 16px; font-size: 20px; }
.skill__list { display: grid; gap: 8px; }
.skill__list li { position: relative; padding-left: 20px; }
.skill__list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ===== 進め方 ===== */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.process__item { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.process__num { font-family: var(--font-heading); font-size: 32px; font-weight: 700; line-height: 1; color: var(--accent); }
.process__title { margin: 16px 0 8px; font-size: 18px; }
.process__item p:last-child { font-size: 15px; color: var(--sub); }

.conditions { display: grid; gap: 0; margin-top: 48px; border-top: 1px solid var(--line); }
.conditions div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.conditions dt { font-weight: 700; }

/* ===== お問い合わせ ===== */
.contact { background: var(--accent); color: #fff; }
.contact__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 104px; padding-bottom: 104px; text-align: center; }
.contact .section-head__en { color: #c9d4f5; margin-bottom: 0; }
.contact__title { font-size: clamp(26px, 3.5vw, 36px); }
.contact .btn { margin-top: 12px; }

/* ===== フッター ===== */
.footer { background: var(--ink); color: #c4c8d2; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; }
.footer__name { font-family: var(--font-heading); font-weight: 700; color: #fff; }

/* ===== タブレット以下 ===== */
@media (max-width: 960px) {
  .work { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .mock-phone { right: 0; }
}

/* ===== スマホ ===== */
@media (max-width: 767px) {
  :root { --space: 72px; }
  body { font-size: 15px; }
  .header__nav ul { display: none; }
  .hero__inner { padding-top: 64px; padding-bottom: 72px; }
  .stats { margin-top: 48px; }
  .section-head { margin-bottom: 36px; }
  .work__visual { padding-bottom: 32px; }
  .mock-phone { width: 32%; border-width: 4px; border-radius: 16px; }
  .work__title { font-size: 24px; }
  .exp, .skill { padding: 24px; }
  .conditions div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contact__inner { padding-top: 72px; padding-bottom: 72px; }
}
