/* 濃紺の帯に名前を置き、その下は面（塗り）の濃淡で区切る。罫線は使わない */
:root {
  --bg: #eef2f9;
  --surface: #ffffff;
  --tint: #dfe7f5;
  --fg: #0d1830;
  --muted: #55617a;
  --brand: #0f2f6e;      /* 名義の色。帯にだけ使う */
  --on-brand: #eaf0ff;
  --on-brand-muted: #a9bce6;
  --accent: #1f56d6;     /* 操作できる要素にだけ使う */
  --font: "IBM Plex Sans JP", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08101f;
    --surface: #101c34;
    --tint: #16264a;
    --fg: #e3e9f6;
    --muted: #8e9cb8;
    --brand: #0d2a66;
    --on-brand: #eaf0ff;
    --on-brand-muted: #9fb3df;
    --accent: #7ea6ff;
    color-scheme: dark;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

.in { max-width: 820px; margin-inline: auto; padding-inline: 20px; }

h1, h2, h3 { font-weight: 500; letter-spacing: 0.01em; margin: 0; }

.band { background: var(--brand); color: var(--on-brand); }
.band .in {
  padding-block: calc(64px + env(safe-area-inset-top, 0px)) 56px;
  display: grid;
  gap: 12px;
}
.host { font-size: 13px; color: var(--on-brand-muted); letter-spacing: 0.04em; }
h1 { font-size: clamp(46px, 12vw, 84px); line-height: 1.1; }

main .in { padding-block: 48px 40px; display: grid; gap: 48px; }
section { display: grid; gap: 18px; }
h2 { font-size: 24px; line-height: 1.3; }

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

.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.work a {
  display: grid;
  height: 100%;
  align-content: start;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease;
}
.work img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.work .meta { display: grid; gap: 6px; padding: 18px 20px 20px; min-width: 0; align-content: start; }
.work h3 { font-size: 20px; line-height: 1.35; }
.work p { margin: 0; color: var(--muted); font-size: 14px; }
.work .go { color: var(--accent); font-weight: 700; font-size: 14px; margin-top: 4px; white-space: nowrap; }
.work a:hover { transform: translateY(-3px); }

.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.links a {
  display: grid;
  gap: 2px;
  padding: 16px 20px;
  background: var(--tint);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: background-color .2s ease;
}
.links .name { font-weight: 700; white-space: nowrap; }
.links .addr { color: var(--accent); font-size: 14px; overflow-wrap: anywhere; }
.links a:hover { background: var(--surface); }

.work a:focus-visible, .links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

footer .in {
  padding-block: 8px calc(48px + env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .work a, .links a { transition: none; }
  .work a:hover { transform: none; }
}
