:root {
  --navy: #1b2a4a;
  --navy-dark: #111c33;
  --navy-soft: #eef1f6;
  --text: #1f2633;
  --muted: #535b6b;
  --line: #d9dee7;
  --bg: #ffffff;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

/* 上部メニュー */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px;
}

.nav a {
  padding: 8px 10px;
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
}

.nav a:hover {
  background: var(--navy-dark);
}

.nav a:focus-visible {
  outline-color: #ffffff;
}

.nav .nav-contact {
  background: #ffffff;
  color: var(--navy);
  font-weight: bold;
}

.nav .nav-contact:hover {
  background: var(--navy-soft);
}

/* 共通 */
.hero,
.section {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 16px;
  scroll-margin-top: 56px;
}

h2 {
  margin-bottom: 16px;
  padding-bottom: 8px;
  color: var(--navy);
  font-size: 21px;
  border-bottom: 1px solid var(--line);
}

h3 {
  color: var(--navy);
  font-size: 17px;
  line-height: 1.5;
}

/* 冒頭 */
.hero {
  padding-bottom: 8px;
}

.name {
  display: flex;
  align-items: center;
  gap: 16px;
}

.photo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
}

.hero h1 {
  color: var(--navy);
  font-size: 28px;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.lead {
  margin-top: 16px;
  font-size: 18px;
  font-weight: bold;
}

.profile {
  margin-top: 8px;
  color: var(--muted);
}

/* ボタン */
.button {
  display: block;
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--navy);
  color: #ffffff;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
}

.button:hover {
  background: var(--navy-dark);
}

/* できること */
.cards {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 16px;
  background: var(--navy-soft);
  border-radius: 6px;
}

.card p {
  margin-top: 6px;
  color: var(--muted);
}

/* 作ったもの */
.works {
  margin: 0;
  padding: 0;
  list-style: none;
}

.works li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.works li:first-child {
  padding-top: 0;
}

.works p {
  margin-top: 6px;
  color: var(--muted);
}

/* 連絡先 */
.contact {
  max-width: none;
  background: var(--navy);
  color: #ffffff;
}

.contact > * {
  max-width: 688px;
  margin-left: auto;
  margin-right: auto;
}

.contact h2 {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.contact a:focus-visible {
  outline-color: #ffffff;
}

.button-light {
  background: #ffffff;
  color: var(--navy);
}

.button-light:hover {
  background: var(--navy-soft);
}

.footer {
  padding: 16px;
  background: var(--navy-dark);
  color: #c9d1df;
  font-size: 12px;
  text-align: center;
}

@media (min-width: 600px) {
  .button {
    display: inline-block;
    min-width: 240px;
  }

  .contact .button {
    display: block;
    width: 280px;
  }
}
