:root {
  --blue-700: #0055AA;
  --yellow-400: #FFFF00;
  --white: #FFFFFF;
  --black: #000000;
  --fb-blue: #1877F2;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', system-ui, -apple-system, Segoe UI, Roboto, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic UI', 'Yu Gothic', Meiryo, sans-serif;
  color: var(--black);
  background: var(--white);
}

.site-header .header-bg {
  background: url('images/header_bg.png') center/cover no-repeat;
  height: 400px; /* Figma基準 */
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 25px 0 0 50px; /* Figmaの余白に合わせる */
  overflow: hidden;
}

.header-name {
  height: 100%;
  display: block;
  margin: auto;
}

.title-bar {
  background: var(--blue-700);
  height: 40px; /* Figma指定 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px 3px;
}

.title-bar h1 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
}

.content {
  background: var(--yellow-400);
  padding: 25px; /* Figma指定 */
}

h2 {
  font-size: 1.25rem;
  text-align: center;
  border-top: 2px solid;
  border-bottom: 2px solid;
  line-height: 1;
  padding: 5px 0 7px;
  color: #0055AA;
}

.profile-box {
  width: 600px;
  margin: 0 auto 35px;
}

.profile-box p {
  line-height: 1.8;
  color: #0055AA;
}

.links-box {
  width: 600px;
  margin: 0 auto;
}

.links-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px;
}

.link-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 0; /* Figmaのカード内余白 */
  margin: auto;
}

.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  transition: transform .3s ease; /* ゆっくり変化させる */
}

.icon-circle img {
  width: 45px;
  height: auto;
  object-fit: contain;
  display: block;
}

.icon-circle:hover {
  transform: scale(1.1); /* 拡大 */
}

.card-label {
  font-size: 16px; /* Noto Sans JP 500 */
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

/* アイコン背景色（Figmaのfillsに準拠） */
.icon--blog { background: #0088E7; }
.icon--hatena-blog { background: var(--white); }
.icon--facebook { background: var(--fb-blue); }
.icon--instagram {
  background: linear-gradient(45deg, rgba(255, 221, 131, 1) 0%, rgba(242, 105, 57, 1) 33%, rgba(207, 46, 146, 1) 66%, rgba(76, 100, 211, 1) 100%);
}
.icon--x { background: var(--black); }
.icon--threads { background: var(--black); }

.site-footer {
  background: var(--blue-700);
  text-align: center;
  color: #FFFFFF;
  line-height: 1;
  padding: 12px 0 15px;
}

/* レスポンシブの微調整 */
@media (max-width: 768px) {
  .site-header .header-bg {
    height: 320px;
    padding: 15px 0 0 50px;
  }
  .profile-box, .links-box {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .site-header .header-bg {
    height: 240px;
  }
}