/* ===============================
   ヘッダー基本スタイル
=============================== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #E0E4EA;
  padding: 0;
  height: 64px; /* 高さは明確に指定 */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
  height: 100%;
  padding-left: 34px;
  padding-right: 24px;
  box-sizing: border-box;
  min-width: 0; /* はみ出し防止 */
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 1; /* ロゴが縮む余地を持つ */
}

.site-branding img,
.header-logo {
  height: 38px;
  max-height: none;
  width: auto;
  display: inline-block;
}

.site-help-label {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-accent);
  position: relative;
  top: -2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0; /* ボタンは縮まないように */
}

/* ===============================
   ボタンデザイン
=============================== */

/* 白フチボタン（お問い合わせ） */
.btn-outline {
  padding: 8px 16px;
  border: 2px solid var(--color-primary);
  background-color: var(--color-white);
  color: var(--color-primary);
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background-color: var(--color-bg-hover);
  color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

/* 青ボタン（ログイン等） */
.btn-login,
.login-button {
  padding: 8px 16px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}
.btn-login:hover,
.login-button:hover {
  background-color: var(--color-primary-hover);
}

/* テキストリンクボタン */
.howto-link {
  font-size: 0.875rem;
  color: #333;
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: center;
}
.howto-link:hover {
  text-decoration: underline;
}

/* ===============================
   レスポンシブ対応（スマホ）
=============================== */
@media (max-width: 768px) {
  .site-header {
    height: auto; /* 自動調整 */
  }

  .header-inner {
    flex-direction: row;         /* 横並び維持 */
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 16px;
    height: 64px;
  }

  .site-branding img {
    max-height: 28px;
  }

  .btn-outline {
    font-size: 0.75rem;
    padding: 4px 10px;
    white-space: nowrap; /* 改行防止 */
  }
}
