:root {
  /* 全体的な配色を見直し、ナチュラル＆アットホームな雰囲気に */
  --bg-base-color: #fcfaf0; /* 少し黄色がかった白（クリーム系） */
  --text-color: #5d4037; /* 落ち着いたダークブラウン */

  /* リンクボタンの色を濃い青に変更 */
  --link-bg-color: #313979;
  --link-hover-color: #424d9c;

  --border-color: #d7ccc8; /* プロフィール画像のボーダー色 */
  --profile-img-size: 150px;
  --link-btn-height: 50px;
  --link-btn-width: 80%;
  --max-container-width: 600px;
}

body {
  /* 背景に優しい緑を加えて、よりネイチャーな雰囲気に */
  background-color: var(--bg-base-color);
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.4) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0.4) 75%,
      transparent 75%,
      transparent
    ),
    linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.4) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0.4) 75%,
      transparent 75%,
      transparent
    ),
    linear-gradient(120deg, #f0fff0, #e0f7f0, #d5f7de);

  background-size: 20px 20px, 20px 20px, 30px 30px, 30px 30px, 200% 200%;

  animation: background-move 60s linear infinite alternate;

  color: var(--text-color);
  font-family: "Roboto", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  text-align: center;
}

/* 背景をゆっくり動かすキーフレームアニメーション */
@keyframes background-move {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

.container {
  width: 100%;
  max-width: var(--max-container-width);
  padding: 20px;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  margin: 20px;
}

.profile-section {
  margin-bottom: 30px;
}

.profile-img {
  width: var(--profile-img-size);
  height: var(--profile-img-size);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-color);
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-name {
  font-size: 2.2em;
  font-weight: 700;
  color: #4a332a;
  margin-bottom: 5px;
}

.profile-bio {
  font-size: 1.05em;
  font-weight: 400;
  line-height: 1.7;
  margin-top: 0;
  color: var(--text-color);
}

.links-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
}

.link-btn {
  display: block;
  width: var(--link-btn-width);
  max-width: var(--max-container-width);
  height: var(--link-btn-height);
  line-height: var(--link-btn-height);

  /* ボタンの色とテキスト色の設定 */
  background-color: var(--link-bg-color);
  color: #ffffff; /* テキストの色を白に */

  text-decoration: none;
  font-size: 1.2em;
  font-weight: 600;
  border-radius: 30px;
  margin-bottom: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.link-btn:hover {
  /* ホバー時のボタンの色 */
  background-color: var(--link-hover-color);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  color: #ffffff; /* ホバー時のテキストの色も白に */
}

/* リンクボタン内のアイコンとテキストの調整 */
.link-btn {
  display: flex;
  justify-content: center;
  align-items: center;
}

.link-icon {
  height: 0.8em; /* ロゴを少し小さく */
  vertical-align: middle;
  margin-right: 8px;

  /* LINEロゴの色は元に戻す */
  filter: none;
}

.link-text {
  font-size: 0.9em; /* 文字をロゴより少し小さく */
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
  .container {
    padding: 15px;
    margin: 15px;
  }
  .profile-img {
    width: 110px;
    height: 110px;
    margin-bottom: 10px;
  }
  .profile-name {
    font-size: 1.8em;
  }
  .profile-bio {
    font-size: 0.95em;
  }
  .link-btn {
    font-size: 1.05em;
    height: 48px;
    line-height: 48px;
    margin-bottom: 15px;
  }
  .link-icon {
    height: 0.7em;
  }
  .link-text {
    font-size: 0.8em;
  }
}
