/* ==========================================================================
   1. サイト全体のベース設定（ライトモード基準へ修正）
   ========================================================================== */
body {
  background-color: #ffffff; /* サイト全体の背景を白に固定 */
  color: #2b2930;            /* 全体の文字色を読みやすい濃いグレーに固定 */
}

.site-header {
  gap: 12px;
}

.site-nav {
  gap: 2px;
}

.nav-link {
  padding-right: 10px;
  padding-left: 10px;
  color: #4a4754;            /* ナビゲーションの文字を少し明るめのグレーに */
}

/* ==========================================================================
   2. ヘッダー・各種ボタンのアクション設定
   ========================================================================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle,
.nav-toggle {
  min-width: 38px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(0, 0, 0, 0.12); /* 枠線を黒の半透明に変更 */
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.03);       /* 背景を薄い黒（グレー）に変更 */
  color: #5a5766;                        /* アイコンの色を調整 */
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.theme-toggle:hover,
.nav-toggle:hover {
  border-color: rgba(102, 61, 255, 0.3); /* ホバー時のアクセント（明るい紫） */
  background: rgba(102, 61, 255, 0.06);
  color: #5423ff;
}

.theme-toggle:focus-visible,
.nav-toggle:focus-visible,
.nav-link:focus-visible,
.footer-links a:focus-visible,
.footer-socials a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* モバイル用ナビゲーション */
.nav-toggle {
  display: none;
}

.nav-toggle-icon {
  position: relative;
  width: 30px;
  height: 20px;
  display: block;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  content: "";
  transition: top 160ms ease, transform 160ms ease;
}

.nav-toggle-icon::before {
  top: 2px;
}

.nav-toggle-icon::after {
  top: 16px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 9px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 9px;
  transform: rotate(-45deg);
}

.nav-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

/* フッター */
.footer-links,
.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a,
.footer-socials a {
  color: #5a5766;
}

/* ==========================================================================
   3. メインコンテンツエリアの設定（白背景用に黒文字化）
   ========================================================================== */
.content-shell {
  width: min(100% - 56px, 920px);
}

.content-main {
  flex: 1;
  padding: 70px 0 76px;
}

.content-heading {
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* 区切り線を黒の半透明に変更 */
}

.content-heading h1 {
  margin: 17px 0 12px;
  color: #1a191e;           /* 見出しの文字色をハッキリした黒に変更 */
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 600;
  letter-spacing: -0.07em;
}

.content-heading h1 span {
  color: var(--accent);
}

.content-description {
  margin: 0;
  color: #5a5766;           /* 説明文の文字を読みやすいダークグレーに変更 */
  font-size: 13px;
  line-height: 1.9;
}

/* ==========================================================================
   4. ニュースセクションの設定
   ========================================================================== */
.news-list {
  padding-top: 28px;
}

.news-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* 区切り線を黒の半透明に変更 */
}

.news-item time {
  color: #767283;           /* 日付の文字をグレーに変更 */
  font-family: var(--mono);
  font-size: 10px;
}

.news-item h2 {
  margin: 9px 0;
  color: #1a191e;           /* ニュースタイトルの文字色を黒に変更 */
  font-size: 18px;
  font-weight: 600;
}

.news-item-link {
  color: inherit;
  text-decoration: none;
}

.news-item-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.news-item p {
  margin: 0;
  color: #4a4754;           /* 本文の文字色を黒系に変更 */
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-line;
}

.news-continue-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* エラー・空状態のスタイル調整 */
.news-error {
  padding: 15px 18px;
  border: 1px solid rgba(190, 94, 94, 0.28);
  border-radius: 12px;
  background: rgba(190, 94, 94, 0.05); /* 背景を少し明るく */
  color: #a64b4b;                      /* 文字色を少し濃くして読みやすく */
  font-size: 12px;
  line-height: 1.8;
}

.empty-state {
  margin: 0;
  padding: 30px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.015);    /* 背景を薄いグレーに変更 */
  color: #5a5766;                       /* 文字をグレーに変更 */
  font-size: 13px;
  text-align: center;
}

/* ==========================================================================
   5. プロフィール・カードセクション（黒グラデーションから白カードへ修正）
   ========================================================================== */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 28px;
}

.profile-card {
  padding: 25px;
  border: 1px solid rgba(0, 0, 0, 0.08); /* 境界線を薄い黒に変更 */
  border-radius: 18px;
  background: #ffffff;                    /* 背景を完全に「白」に変更 */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04); /* 高級感を出すために軽い影を追加 */
}

.profile-card:last-child {
  grid-column: 1 / -1;
}

.profile-label {
  color: #767283;           /* ラベル文字をグレーに変更 */
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.profile-card h2 {
  margin: 13px 0 9px;
  color: #1a191e;           /* 名前見出しの文字を黒に変更 */
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.profile-card p {
  margin: 0;
  color: #4a4754;           /* プロフィール本文の文字を黒系に変更 */
  font-size: 12px;
  line-height: 1.9;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
}

.profile-links a {
  color: var(--accent);
  font-size: 11px;
  text-decoration: none;
}

/* ティーザー（要約）パーツ */
.news-teaser,
.about-teaser {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 36px;
  padding: 23px 26px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.015);    /* 背景を薄いグレーに変更 */
}

.news-teaser h2,
.about-teaser h2 {
  margin: 9px 0 5px;
  color: #1a191e;           /* 文字を黒に変更 */
  font-size: 20px;
  font-weight: 600;
}

.news-teaser p,
.about-teaser p {
  margin: 0;
  color: #5a5766;           /* 文字をグレーに変更 */
  font-size: 11px;
  line-height: 1.8;
}

/* ==========================================================================
   6. レスポンシブ設定（スマホ対応）
   ========================================================================== */
@media (max-width: 760px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
    column-gap: 12px;
    padding: 8px 0;
  }

  .header-actions {
    order: 2;
    justify-self: end;
    margin-left: 0;
  }

  .site-header > .brand {
    order: 1;
    justify-self: start;
  }

  .nav-toggle {
    width: 48px;
    height: 48px;
    display: inline-flex;
    flex: 0 0 auto;
    padding: 0;
    border-radius: 14px;
  }

  .site-nav {
    width: 100%;
    display: none;
    order: 3;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    margin-left: 0;
    padding: 8px 0 2px;
  }

  .site-nav.is-open {
    display: flex;
    justify-self: end;
  }

  .nav-link {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .site-footer {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 18px 0;
  }

  .footer-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 9px 14px;
  }

  .footer-socials {
    margin-left: auto;
  }

  .content-shell {
    width: min(100% - 36px, 560px);
  }

  .content-main {
    padding: 50px 0 56px;
  }
}

@media (max-width: 520px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-card:last-child {
    grid-column: auto;
  }

  .news-teaser,
  .about-teaser {
    align-items: flex-start;
    padding: 19px;
  }

  .news-teaser .social-teaser-link,
  .about-teaser .social-teaser-link {
    gap: 7px;
    padding-top: 13px;
    font-size: 10px;
    white-space: nowrap;
  }

  .news-teaser .social-teaser-arrow,
  .about-teaser .social-teaser-arrow {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle,
  .nav-toggle {
    transition: none;
  }
}
