/* ベース設定 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #e0e5ec; /* ニューモーフィズム用の柔らかい背景色 */
  color: #333;
}

/* レイアウト共通 */
.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  padding: 0.5rem 0.5rem 0;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
}

.site-nav {
  margin-top: 0.75rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0;
  margin: 0;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: #555;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: #e0e5ec;
  box-shadow: 4px 4px 8px #b8bcca, -4px -4px 8px #ffffff;
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  box-shadow: inset 4px 4px 8px #b8bcca, inset -4px -4px 8px #ffffff;
  outline: none;
}

.logo-header{
  width: 150px;
}

/* メインコンテンツ */
.main {
  flex: 1;
  padding: 2rem 1.5rem 4.5rem;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

/* カード（ニューモーフィズム） */
.card {
/*  background: #e0e5ec;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 12px 12px 24px #b8bcca, -12px -12px 24px #ffffff;
  margin-bottom: 40px;
  */
}

/* Home 用：画像だけ */
.hero-image {
  width: 50%;
  border-radius: 1rem;
  display: block;
}

/* プロフィール */
.profile-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.profile-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: #e0e5ec;
  box-shadow: 12px 12px 24px #b8bcca, -12px -12px 24px #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-text h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}

.profile-text p {
  line-height: 1.7;
  margin-top: 0.5rem;
}

/* ブログ一覧 */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-item-title {
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
}

.blog-item-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.75rem;
}

.blog-item-excerpt {
  margin: 0;
  line-height: 1.7;
}

.blog-item-link {
  margin-top: 0.75rem;
}

.blog-item-link a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #444;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: #e0e5ec;
  box-shadow: 6px 6px 12px #b8bcca, -6px -6px 12px #ffffff;
  display: inline-block;
}

.blog-item-link a:hover,
.blog-item-link a:focus-visible {
  box-shadow: inset 4px 4px 8px #b8bcca, inset -4px -4px 8px #ffffff;
  outline: none;
}

/* ブログ記事 */
.post-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}

.post-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 1.5rem;
}

.post-content p {
  line-height: 1.8;
  margin: 1rem 0;
}

/* フッター */
.site-footer {
  padding: 1rem 1.5rem 1.5rem;
  font-size: 0.8rem;
  color: #888;
  text-align: center;
}

/* 画面左下の固定「トップへ戻る」ボタン */
.floating-menu {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(224, 229, 236, 0.78);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.18),
    inset 0 0 0 0 rgba(0, 0, 0, 0);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}
/* 矢印アイコン */
.floating-menu__icon {
  width: 22px;
  height: 22px;
  display: block;
}

.floating-menu__icon path {
  fill: rgba(90, 100, 120, 0.95);
}

/* 押し込まれた状態 */
.floating-menu--pressed {
  transform: translateY(2px) scale(0.96);
  box-shadow:
    0 6px 10px rgba(0, 0, 0, 0.15),
    inset 4px 4px 10px rgba(184, 188, 202, 0.9),
    inset -3px -3px 8px rgba(255, 255, 255, 0.9);
}

/* トップに戻ったあとの「ぴょん」アニメーション */
.floating-menu--bounce {
  animation: floatingMenuBounce 0.42s ease-out;
}

@keyframes floatingMenuBounce {
  0% {
    transform: translateY(2px) scale(0.96);
  }
  40% {
    transform: translateY(-6px) scale(1.02);
  }
  70% {
    transform: translateY(3px) scale(0.99);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}



/* レスポンシブ対応 */
@media (max-width: 768px) {
  .main {
    padding: 1.5rem 1.25rem 4.5rem;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .profile-avatar {
    width: 160px;
    height: 160px;
  }

  .profile-text {
    text-align: left;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .site-nav ul {
    gap: 0.5rem 0.75rem;
  }

  .site-nav a {
    font-size: 0.85rem;
    padding: 0.25rem 0.7rem;
  }
  
    .floating-menu {
    left: 1rem;
    bottom: 1rem;
    width: 52px;
    height: 52px;
  }
}
