/* 色：落ち着いた紺と白 */
:root {
  --navy: #1f2f4f;
  --navy-dark: #15213a;
  --navy-light: #e9edf4;
  --text: #1f2a3a;
  --white: #ffffff;
  --accent: #f2b33d;      /* 連絡先ボタンの目立つ黄色 */
  --accent-dark: #e09a1c;
}

* {
  box-sizing: border-box;
}

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

.inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* いちばん上：名前とひとこと */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 40px 0 36px;
}

.hero h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

/* 名前と丸い写真を横に並べる */
.profile-name {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--white);
  background: var(--white);
  object-fit: cover;
}

@media (min-width: 600px) {
  .profile-name {
    gap: 24px;
  }

  .avatar {
    width: 112px;
    height: 112px;
  }
}

.lead {
  margin: 12px 0 24px;
  font-size: 19px;
}

/* ひとことの下の文：ひとことと続けて読めるよう、間をつめる */
.lead:has(+ .intro) {
  margin-bottom: 8px;
}

.intro {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.8;
}

/* 見出し：左に黄色の太い縦線、うすい紺の帯（A案） */
h2 {
  margin: 0 0 20px;
  padding: 10px 16px;
  border-left: 8px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--navy-light);
  color: var(--navy);
  font-size: 28px;
  line-height: 1.4;
}

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

section {
  padding: 36px 0 8px;
}

section p {
  margin: 4px 0 0;
}

/* できること：番号つきの一覧 */
.skills {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: skill;
}

.skills li {
  position: relative;
  margin-bottom: 20px;
  padding-left: 48px;
  counter-increment: skill;
}

.skills li::before {
  content: counter(skill);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: bold;
  line-height: 34px;
  text-align: center;
}

/* 広い画面では、できること4つを2つずつ2段に並べる（スマホでは上の縦並びのまま） */
@media (min-width: 640px) {
  .skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .skills li {
    margin-bottom: 0;
    padding: 64px 16px 18px;
    border: 1px solid #cfd6e2;
    border-radius: 8px;
  }

  .skills li::before {
    left: 16px;
    top: 18px;
  }
}

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

.works li {
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid #cfd6e2;
  border-radius: 8px;
}

/* 見本のサムネイル：クリックするとPDFが別のタブで開く */
.thumb {
  display: block;
  max-width: 320px; /* 縦長のA4なので、大きくなりすぎないようにする */
  margin-top: 12px;
  color: var(--navy);
  text-decoration: none;
}

.thumb img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #cfd6e2;
  border-radius: 6px;
  transition: box-shadow 0.2s;
}

.thumb:hover img,
.thumb:focus-visible img {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.thumb:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.thumb-note {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  text-decoration: underline;
}

/* 連絡先 */
.contact {
  margin: 28px 0 40px;
  padding: 28px 20px;
  background: var(--navy-light);
  border-radius: 8px;
}

/* 連絡先の欄は背景がうすい紺なので、見出しの帯は白にする */
.contact h2 {
  background: var(--white);
}

/* ボタン：指で押しやすい大きさ。連絡先へのボタンなので黄色で目立たせる */
.button {
  display: block;
  margin-top: 20px;
  padding: 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--navy);
  font-size: 21px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(21, 33, 58, 0.3);
  transition: background 0.15s, transform 0.15s;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.button-light {
  display: inline-block;
  margin-top: 0;
  padding: 14px 32px;
}

.button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 7px var(--white);
}

/* 広い画面では連絡ボタンを横幅いっぱいにしない */
@media (min-width: 600px) {
  .contact .button {
    display: inline-block;
    padding: 18px 56px;
  }
}
