/**
 * 全画面共通基本スタイル (style.css)
 */

/* ベーススタイルリセット */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1e293b; /* slate-800 */
}

.site-body {
  background-color: #f8fafc; /* slate-50 */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 共通ヘッダー */
.site-header {
  background-color: #0f172a; /* slate-900 */
  color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.header-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-logo:hover {
  color: #e2e8f0;
}

/* ナビゲーションメニュー */
.main-nav {
  display: none;
  gap: 1rem;
  font-size: 0.875rem;
  gap: 30px;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
    align-items: center;
  }
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #ffffff;
}

/* ヘッダー右側（ユーザー情報＆ログイン/ログアウト） */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-name {
  color: #cbd5e1;
  font-size: 0.75rem;
  display: none;
}

@media (min-width: 640px) {
  .user-name {
    display: inline;
  }
}

.link-password-change {
  color: #94a3b8;
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.link-password-change:hover {
  color: #ffffff;
}

.logout-form {
  margin: 0;
  display: inline;
}

.btn-logout {
  background-color: #1e293b;
  color: #e2e8f0;
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #334155;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-logout:hover {
  background-color: #334155;
}

.btn-login {
  background-color: #4f46e5;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.375rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn-login:hover {
  background-color: #4338ca;
}

/* メイン領域 */
.site-main {
  flex-grow: 1;
}

/* 共通フッター */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 1rem 0;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* 非表示用ユーティリティ */
.hidden-element {
  display: none !important;
}

/* 共通 */
.page-container {
  max-width: 1152px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
/* ページヘッダー */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.page-description {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}