.site-search {
  position: relative;
  width: 220px;
  max-width: 100%;
  color: var(--text);
  font-size: 14px;
}

.site-search-label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--text);
  opacity: 0.75;
}

.site-search input {
  box-sizing: border-box;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.site-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.site-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1100;
  width: min(340px, calc(100vw - 32px));
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 12px 36px rgb(0 0 0 / 14%);
}

.site-search-results ul {
  list-style: none;
  padding: 6px;
  margin: 0;
}

.site-search-results li a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s;
}

.site-search-results li a:hover,
.site-search-results li a:focus-visible {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.site-search-category {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.site-search-results li a strong {
  font-size: 14px;
}

.site-search-results li a span:last-child {
  font-size: 12px;
  line-height: 1.6;
  opacity: 0.75;
}

.site-search-results > p {
  margin: 0;
  padding: 16px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .site-search {
    width: 100%;
  }

  .site-search-results {
    left: 0;
    right: auto;
    width: 100%;
  }
}
```css :root {
  --bg: #ffffff;
  --text: #111111;
  --accent: #0071e3;
  --border: #e5e5e5;
}

::selection {
  background: var(--accent);
  color: white;
}

:root.dark {
  --bg: #000000;
  --text: #f5f5f7;
  --accent: #2997ff;
  --border: #333333;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* =========================
   ヘッダー
========================= */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  box-sizing: border-box;
}

.header-inner nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 0;
  align-items: center;
}

.header-inner nav a {
  text-decoration: none;
  color: var(--text);
}

.header-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50%;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.header-search:hover {
  background: var(--border);
  transform: scale(1.05);
}

.header-search:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.header-search svg {
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

html.menu-open,
body.menu-open {
  overflow: hidden;
  overscroll-behavior: none;
}

h1 {
  margin: 0;
  font-size: 1.4rem;
  white-space: nowrap;
  flex-shrink: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 100px 24px;
  box-sizing: border-box;
}

/* =========================
   ヒーロー・見出し
========================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  text-align: center;
  animation: fadeUp 0.8s ease;
  position: relative;
  overflow: hidden;
  padding: 100px 0 140px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(rgba(0, 113, 227, 0.25), transparent);
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.hero .button {
  margin: 12px;
}

.hero h2 {
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
  background: linear-gradient(
    180deg,
    var(--text),
    color-mix(in srgb, var(--text) 60%, transparent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.subtitle {
  font-size: 1.5rem;
  max-width: 650px;
  margin: 0 auto;
  opacity: 0.75;
}

.logo-circle {
  width: 180px;
  height: 180px;
  animation: float 4s ease-in-out infinite;
  margin: 0 auto 32px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #0071e3, #6cb6ff);
  box-shadow:
    0 0 40px rgba(0, 113, 227, 0.3),
    0 0 80px rgba(0, 113, 227, 0.15);
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* =========================
   カード一覧
========================= */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
  align-items: stretch;
}

/*
  ブログ一覧といいね一覧で共通使用するカード。
  .card 自体には大きな上余白を設定しない。
*/

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  box-sizing: border-box;
  padding: 28px;
  margin: 0;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
}

.card:hover::before {
  left: 100%;
}

.card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.card small {
  display: block;
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.8rem;
  opacity: 0.6;
}

.card h3,
.card p,
.card a {
  overflow-wrap: anywhere;
}

.character-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 16px;
}

/* =========================
   更新情報
========================= */

.updates {
  margin-top: 100px;
}

.updates h2 {
  text-align: center;
  margin-bottom: 40px;
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.update-item {
  box-sizing: border-box;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  line-height: 1.7;
}

.update-item .date {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  opacity: 0.6;
}

.update-item h3 {
  margin: 0 0 10px;
}

.update-item p {
  margin: 0 0 12px;
}

.update-item ul {
  padding-left: 24px;
  margin: 12px 0;
}

.update-item li {
  margin-bottom: 6px;
}

.update-item h4 {
  margin: 12px 0 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.updates-more {
  display: block;
  width: fit-content;
  margin: 24px auto 0;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.updates-more:hover {
  opacity: 0.7;
}

.date {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* =========================
   記事
========================= */

article {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  line-height: 1.9;
}

article h1 {
  font-size: 3rem;
  margin-bottom: 12px;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

article h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: 1.8rem;
}

article p {
  margin-bottom: 20px;
}

article a {
  color: var(--accent);
  font-weight: 500;
}

article a:hover {
  text-decoration: underline;
}

article ul {
  padding-left: 24px;
  margin-bottom: 24px;
}

article li {
  margin-bottom: 8px;
}

.post-date {
  opacity: 0.6;
  margin-bottom: 32px;
}

/* =========================
   フッター
========================= */

footer {
  margin-top: 100px;
  padding: 56px 24px 24px;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 48px;
}

.footer-brand,
.footer-column {
  min-width: 0;
}

.footer-logo {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 750;
  letter-spacing: -0.06em;
}

.footer-logo span {
  color: var(--accent);
}

.footer-brand > p {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.65;
}

.footer-brand .footer-description {
  line-height: 1.8;
}

.footer-column h2 {
  margin: 4px 0 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-nav {
  display: grid;
  gap: 13px;
}

.footer-nav a {
  width: fit-content;
  font-size: 0.88rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--text) 4%, var(--bg));
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.footer-social-link svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.footer-social-link:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  opacity: 1;
}

.youtube-link:hover {
  color: #ff3030;
}

.github-link:hover {
  color: var(--accent);
}

.footer-social-description {
  margin-top: 14px;
  font-size: 0.8rem;
  line-height: 1.7;
  opacity: 0.65;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-bottom p,
.footer-top-link {
  margin: 0;
  font-size: 0.76rem;
  opacity: 0.65;
}

.footer-top-link {
  white-space: nowrap;
}

/* =========================
   アカウントリンク
========================= */

.header-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
}

.header-account-link:hover {
  background: var(--border);
}

.header-account-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ログイン中のGoogleプロフィール画像 */

.header-account-link.is-logged-in {
  width: 42px;
  height: 42px;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 50%;
  justify-content: center;
  flex-shrink: 0;
}

.header-account-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.header-account-link.is-logged-in:hover {
  opacity: 0.8;
  background: transparent;
}

/* プロフィールとドロップダウンの配置 */

.header-account-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-account-menu {
  position: absolute;
  z-index: 10000;
  top: 100%;
  right: 0;
  width: 240px;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 12px 36px rgb(0 0 0 / 12%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: account-menu-in 160ms ease-out;
  margin-top: 10px;
}

.header-account-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -11px;
  height: 11px;
}

.header-account-menu[hidden] {
  display: none !important;
}

.header-account-menu-user {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.header-account-menu-label {
  color: var(--text);
  opacity: 0.6;
  font-size: 12px;
  font-weight: 400;
}

.header-account-menu-divider {
  height: 1px;
  margin: 4px 0;
  background: var(--border);
}

.header-account-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease;
}

.header-account-menu-item:hover {
  background: var(--border);
}

.header-account-logout {
  color: #d93025;
}

.header-account-menu-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.header-account-menu-item:disabled {
  opacity: 0.6;
  cursor: wait;
}

@keyframes account-menu-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   タブレット・スマートフォン
========================= */

@media (max-width: 768px) {
  main {
    padding: 64px 20px;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 32px;
  }

  .card {
    padding: 24px;
  }

  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .header-inner nav {
    display: flex;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    z-index: 100;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    box-shadow: 0 12px 32px rgb(0 0 0 / 12%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s;
  }

  .header-inner nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0s;
  }

  .header-inner nav a {
    display: block;
    padding: 14px 16px;
    border-radius: 10px;
  }

  .header-inner nav a:hover {
    background: var(--border);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  main {
    padding: 48px 16px;
  }

  .hero {
    padding: 64px 0 80px;
  }

  .hero::before {
    width: 360px;
    height: 360px;
  }

  .subtitle {
    font-size: 1.15rem;
  }

  .card {
    padding: 20px;
    border-radius: 20px;
  }

  article {
    padding: 24px 20px;
    border-radius: 20px;
  }

  article h1 {
    font-size: 2rem;
  }

  article h2 {
    font-size: 1.5rem;
  }

  footer {
    padding: 40px 20px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 36px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-search {
    width: 40px;
    height: 40px;
  }

  .header-account-link {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  #theme-toggle,
  .menu-toggle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
}

/* =========================
   ダークモード切り替え・メニュー
========================= */

#theme-toggle {
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

#theme-toggle:hover {
  transform: scale(1.05);
}

/* =========================
   アニメーション軽減設定
========================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .header-inner nav,
  .menu-toggle span,
  .header-account-menu,
  .footer-social-link,
  .footer-nav a,
  .card,
  .button,
  .hero {
    animation: none;
    transition: none;
  }

  .card:hover,
  .button:hover,
  .footer-social-link:hover {
    transform: none;
  }
}
