body {
  max-width: 850px;
  margin: 60px auto;
  padding: 0 30px;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;

  line-height: 1.8;
  color: #222;
  background: #fff;
}

header {
  margin-bottom: 70px;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 15px;
}

h2 {
  font-size: 1.5rem;
  margin-top: 50px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

nav a {
  color: #333;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

a {
  color: #315a9b;
}

section {
  margin-bottom: 60px;
}

footer {
  margin-top: 100px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  color: #777;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 16px;

  border: 1px solid #ddd;
  border-radius: 8px;

  color: #222;
  background: #fff;
  text-decoration: none;

  transition: 0.2s;
}

.social-button:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}


.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;

  font-size: 1.2rem;
  font-weight: bold;
}

/* スマートフォン */
@media (max-width: 600px) {

  body {
    margin: 30px auto;
    padding: 0 20px;
  }

  h1 {
    font-size: 2rem;
  }

  nav {
    gap: 12px;
  }
}

/* キーボード操作で選択中のリンクを明示 */
a:focus-visible {
  outline: 2px solid #315a9b;
  outline-offset: 3px;
}
