/* 共通設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f5f4f1;
  color: #111;
}

.wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

/* アイキャッチ領域 */
.eyecatch {
  width: 100%;
  height: 240px;
  background-image: url('images/profile.jpg');
  background-size: cover;
  background-position: top left;
  position: relative;
}

/* プロフィール画像：中央下に少しはみ出して配置 */
.profile-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  position: absolute;
  left: 50%;
  bottom: -60px; /* 画像サイズの半分 */
  transform: translateX(-50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* 本文コンテンツ */
.content {
  display: flex;
  gap: 2rem;
  margin-top: 110px; /* アイコン分の余白 */
  flex-wrap: wrap;
}

.profile-section {
  padding: 1rem;
  line-height: 1.8;
}

.link-section {
  padding: .5rem;
}

.profile-section h2 {
  position: relative;
  padding: .3rem;
  font-size: 1.4rem;
  font-weight: normal;
}

.profile-section h2:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  content: '';
  background-image: -webkit-repeating-linear-gradient(135deg, #000000, #000000 1px, transparent 2px, transparent 5px);
  background-image: repeating-linear-gradient(-45deg, #22bfca, #22bfca 1px, transparent 2px, transparent 5px);
  background-size: 7px 7px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* カラム幅 */
.profile-section {
  flex: 2;
}

.link-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.button-link {
  background: #444;
  color: #fff;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  text-align: left;
  text-decoration: none;
  border: 0;
  font-weight: bold;
  border-radius: 10px;
}

.button-link:hover {
  background: #b8b8b8;
  border: 0;
}

/* スマホ用レスポンシブ */
@media (max-width: 768px) {
  .content {
    flex-direction: column;
  }

  .profile-icon {
    bottom: -60px; /* はみ出し位置は変えない */
  }

  aside {
    order: 1;
  }

  section.profile-section {
    order: 2;
  }
}
