:root {
  --navy: #14213d;
  --line: rgba(255, 255, 255, 0.35);
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

/* ページ全体：スマホ1画面に収まる縦並び */
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 56px 16px 40px;
  text-align: center;
}

.name {
  margin: 0 0 48px;
  font-size: 40px;
  font-weight: bold;
  letter-spacing: 0.08em;
}

/* 各まとまり */
.block {
  margin-bottom: 40px;
}

/* 見出し：左に短い縦線を付ける */
.label {
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--white);
  font-size: 18px;
  font-weight: bold;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-align: left;
}

/* できること：スマホでは縦に並べる */
.skills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skills li {
  padding: 20px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 17px;
  font-weight: bold;
  text-align: center;
}

/* 作ったもの */
.work {
  display: block;
  margin: 0;
  padding: 20px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  font-weight: bold;
}

/* 作ったものがリンクのときだけ下線を付ける */
a.work {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 連絡先ボタン */
.contact {
  display: block;
  padding: 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}

.contact:active {
  opacity: 0.85;
}

/* 広い画面では、できること3つを横に並べる */
@media (min-width: 600px) {
  .page {
    max-width: 720px;
  }

  .skills {
    grid-template-columns: repeat(3, 1fr);
  }
}
