/* 全体の背景を明るい水色に */
body {
  background-color: #b3e5fc; /* 明るい水色 */
  color: #212529; /* 濃い文字色 */
}

/* ヘッダーバナー */
.site-header {
  width: 100%;
  margin: 0;
  padding: 0;
}

.header-banner {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 2rem 0 0 5%;
  border-radius: 30px;
}

/* 本文部分を白背景に */
.container {
  background-color: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
  margin-bottom: 2rem;
  max-width: 800px;
}

.name-block {
  width: 300px; /* 任意。自然な幅に調整 */
  text-align: center;
  margin-top: 1.5rem;
  margin-left: 15%;
}
.name {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;

  /* テキスト自体は中央揃えに */
  text-align: center;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
}

a {
  color: #1976d2;            /* 青系のリンク色 */
  text-decoration: none;     /* 下線を消す */
}

a:hover {
  color: #1565c0;            /* ホバー時に少し濃い青 */
  text-decoration: underline; /* ホバー時だけ下線つける（任意） */
}

/* レイアウトの幅をCSSで管理（インライン撤去） */
.account {
  width: 100%;
  max-width: 400px;
}

.career {
  width: 100%;
  max-width: 600px;
}

.devices {
  width: 100%;
  max-width: 600px;
}

/* キーボードフォーカスの可視化（ダーク背景上） */
a:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* 公開鍵セクション */
.public-key {
  width: 100%;
  max-width: 600px;
}

.public-key-card {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.public-key-item a {
  display: inline-flex;
  align-items: center;
}

.public-key-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 2px;
  padding: 0.125rem 0.25rem;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease,
              text-decoration-color 0.2s ease;
}


.public-key-link:hover {
  background-color: #e3f2fd; /* 薄い青色 */
  color: #1976d2;
  text-decoration-color: currentColor;
}

/* フォーカス時の背景強調は不要のため削除（キーボード操作時は全体の a:focus-visible アウトラインのみ適用） */

.public-key-link:active {
  background-color: #bbdefb;
}

.public-key-item a .fa-key {
  margin-right: 0.5rem;
}

.public-key .font-monospace {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  user-select: all; /* 指紋を選択しやすく */
}

.public-key-fpr {
  letter-spacing: 0.03em;
  word-spacing: 0.1em;
  white-space: nowrap;
  /* 指紋行を横スクロール可能に */
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
