/* apps.yukiotsue.com の共通の枠（ヘッダー・フッター）。yukiotsue.com（site/src/styles/global.css）の見た目に合わせたもの。
   白基調でダークモードには追従しない。スクリプトは使わない */
:root {
  --yo-bg: #ffffff;
  --yo-text: #1d1d1f;
  --yo-text-secondary: #6e6e73;
  --yo-accent: #0071e3;
  --yo-separator: rgba(0, 0, 0, 0.08);
  --yo-header-material: rgba(255, 255, 255, 0.72);
  --yo-ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
}
html { color-scheme: only light; background: #ffffff; }

/* ヘッダー: 半透明マテリアル。スクロールしたときだけ下に線（scroll-timeline に対応していないブラウザは線を出さない） */
.yo-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--yo-header-material);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
}
@supports (animation-timeline: scroll()) {
  .yo-header { animation: yo-header-line linear both; animation-timeline: scroll(root); animation-range: 0 12px; }
  @keyframes yo-header-line { to { border-bottom-color: var(--yo-separator); } }
}
.yo-header-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.yo-logo { display: flex; align-items: center; }
.yo-logo img { height: 1.5rem; width: auto; display: block; }
.yo-nav { display: flex; gap: 0.25rem; overflow-x: auto; margin: 0; padding: 0; list-style: none; }
.yo-nav a {
  display: block;
  color: var(--yo-text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  padding: 0.375rem 0.75rem;
  border-radius: 980px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease, transform 100ms ease-out;
}
.yo-nav a:hover { color: var(--yo-text); background: var(--yo-separator); }
.yo-nav a:active { transform: scale(0.96); }
@media (max-width: 600px) { .yo-nav .optional { display: none; } }

/* フッター */
.yo-footer { border-top: 1px solid var(--yo-separator); }
.yo-footer-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  color: var(--yo-text-secondary);
  font-size: 0.8125rem;
  text-align: center;
}
.yo-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin: 0 0 0.75rem; padding: 0; list-style: none; }
.yo-footer-nav a { color: var(--yo-text-secondary); text-decoration: none; }
.yo-footer-nav a:hover { color: var(--yo-text); }
.yo-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) { .yo-nav a { transition: none; } }
