:root {
  --footer-height: 48px;
  --bg: #f6f7fb;
  --bg-image: url("/fig/bg.webp");
  --bg-overlay: rgba(255, 255, 255, 0.18);
  --text: #1f2937;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--bg-overlay), var(--bg-overlay)),
    var(--bg-image);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

a {
  color: inherit;
}

header {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 10px rgba(15, 23, 42, 0.08);
  z-index: 10;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
  text-decoration: none;
}

.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-name {
  display: inline-flex;
  align-items: center;
  line-height: 1.35;
  white-space: nowrap;
}

footer {
  min-height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 0.85rem;
  color: rgba(31, 41, 55, 0.78);
  text-align: center;
}

/* スマホ縦持ち：ロゴ画像とサイト名を縦並びにし、区切り文字で改行する */
@media (max-width: 767px) and (orientation: portrait) {
  .logo {
    flex-direction: column;
    gap: 6px;
    min-height: auto;
    padding: 10px 18px;
    font-size: 0.72rem;
    text-align: center;
  }

  .logo img {
    width: 34px;
    height: 34px;
  }

  .site-name {
    flex-direction: column;
    align-items: center;
    white-space: normal;
  }

  .site-separator {
    display: none;
  }
}

/* スマホ横持ち：ロゴをコンパクトにする */
@media (max-width: 950px) and (max-height: 520px) and (orientation: landscape) {
  .logo {
    min-height: 40px;
    padding: 6px 14px;
    font-size: 0.85rem;
  }

  .logo img {
    width: 28px;
    height: 28px;
  }
}
