/* =========================================================
   1. まずここを変えると全体の雰囲気を変えやすい
   色・角丸・幅などをまとめて管理する場所
   初心者は最初にここを見るのがおすすめ
========================================================= */

:root {
  /* 背景全体の色 */
  --bg-color: #ffffff;

  /* 基本の文字色 */
  --text-color: #000000;

  /* 補助文字色 */
  --sub-text-color: #464646;

  /* 上のプロフィールまとまりの背景 */
  --profile-group-bg: rgba(255, 255, 255, 0.88);

  /* 自己紹介カードの背景 */
  --card-bg: rgba(219, 219, 219, 0.45);

  /* ボタンの背景色 */
  --button-color: #ffffff;

  /* ボタンの文字色 */
  --button-text-color: #000000;

  /* ボタンの縁色 */
  --button-border-color: #8d8d8d;

  /* 枠線 */
  --border-color: rgba(61, 42, 52, 0.14);

  /* 影 */
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.08);

  /* 最大幅 */
  --page-width: 620px;

  /* フォント */
  --font-main: "Hiragino Sans", "Yu Gothic", sans-serif;
}

/* =========================================================
   2. 基本設定
========================================================= */


html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);


  /* 背景画像を使う場所
     いらなければ background-image 以下を消してOK */
  background-image:
    url("images/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   3. ページ全体の配置用ボックス
   ここには背景をつけない
   → 背景画像が見えやすくなる
========================================================= */
.page {
  width: min(100% - 24px, var(--page-width));
  margin: 100px auto 40px;
}

/* =========================================================
   4. 上のまとまり
   プロフィール + 自己紹介をひとつに見せる
   下のSNSやボタンとは独立させる
========================================================= */
.profile-wrap {
  margin-bottom: 22px;
  padding: 22px 20px;
  background: var(--profile-group-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

/* プロフィール部分 */
.profile {
  text-align: center;
  margin-bottom: 18px;
}

.mini-label {
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sub-text-color);
}

.profile-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 14px;
  border-radius: 50%;
  object-fit: cover;
  background: #ddd;
}

.name {
  margin: 0 0 6px;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.3;
}

.role {
  margin: 0 0 10px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--sub-text-color);
}

.intro {
  width: min(100%, 460px);
  margin: 0 auto;
  font-size: 0.94rem;
  font-weight: 600;
}

/* =========================================================
   5. 自己紹介カード
   profile-wrap の中に入る1パーツ
========================================================= */
.about-card {
  padding: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-medium);
}

.section-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
}

.about-text {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--sub-text-color);
}

/* =========================================================
   6. SNSアイコン
   profile-wrap から独立したパーツ
   背景が見えるように小さめ・単独で配置
========================================================= */
.social {
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
}

.social-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* =========================================================
   7. ボタン一覧
   ボタン同士の間を空けて、1個ずつ独立して見せる
========================================================= */
.link-list {
  display: grid;

  /* ボタン同士の間隔
     背景を見せたいならこの数字を少し大きくする */
  gap: 18px;
}

/* 1個ずつのボタン */
.link-button {
  display: block;

  /* ボタンの高さ */
  padding: 15px 18px;

  /* 背景色 */
  background: var(--button-color);

  /* 文字色 */
  color: var(--button-text-color);

  /* 丸み */
  border-radius: var(--radius-large);

  /* 枠 */
  border: 3px solid var(--button-border-color);

  /* 影 */
  box-shadow: var(--shadow-soft);

  /* 中央寄せ */
  text-align: center;

  /* ボタンを少しだけ細めにして背景を見せる
     100% にすると横いっぱい
     94% くらいだと左右に背景が見える */
  width: 94%;
  margin: 0 auto;

  transition: transform 0.2s ease;
}

.link-button:hover {
  transform: translateY(-2px);
}

.link-button-text {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}

/* =========================================================
   8. スマホ向け調整
   スマホではさらに余白を減らしつつ、
   でも独立感は残す
========================================================= */
@media (max-width: 640px) {
  /* =========================
     ページ全体
     左右余白を少し減らして、全体も詰める
  ========================= */
  .page {
    width: 100%;
    margin: 100px auto 24px;
  }

  /* =========================
     上のプロフィールまとまり
  ========================= */
  .profile-wrap {
    width: 75%;
    margin: 0 auto 18px;
    padding: 14px 12px;
  }

  .profile {
    margin-bottom: 14px;
  }

  .profile,
  .about-card {
    width: calc(100% - 24px);
    margin-left: auto;
    margin-right: auto;
  }

  .mini-label {
    margin: 0 0 10px;
    font-size: 0.8rem;
  }

  .profile-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 10px;
  }

  .name {
    margin: 0 0 4px;
    font-size: 1.2rem;
  }

  .role {
    margin: 0 0 8px;
    font-size: 0.82rem;
  }

  .intro {
    width: min(100%, 320px);
    font-size: 0.82rem;
    line-height: 1.5;
  }

  /* =========================
     自己紹介欄
  ========================= */
  .about-card {
    width: calc(100% - 24px);
    margin: 0 auto;
    padding: 10px 8px;
  }

  .section-title {
    margin: 0 0 8px;
    font-size: 0.9rem;
  }

  .about-text {
    margin: 0 0 10px;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  /* =========================
     SNSアイコン
  ========================= */
  .social {
    margin-bottom: 14px;
  }

  .social-links {
    gap: 8px;
  }

  .social-link {
    width: 36px;
    height: 36px;
  }

  .social-link img {
    width: 16px;
    height: 16px;
  }

  /* =========================
     ボタン一覧
  ========================= */
  .link-list {
    gap: 8px;
  }

  .link-button {
    width: 75%;
    padding: 10px 12px;
    border-width: 2px;
  }

  .link-button-text {
    font-size: 0.84rem;
    line-height: 1.35;
  }
}