/* ============================================================
   ブランドカラー変数
   ============================================================ */
:root {
  --brand:         #709c12;
  --brand-hover:   #5a7c0e;
  --brand-light:   #eef3e0;
  --brand-lighter: #f5f8ec;
  --bg-page:       #f4f6f0;
}

/* ============================================================
   ページ背景 (bg-natural-50 未定義の代替)
   ============================================================ */
body {
  background-color: var(--bg-page);
}

/* ============================================================
   サイドバー
   ============================================================ */
aside {
  background-color: #fff !important;
  border-right: 1px solid #dde8c0;
  max-width: 220px;
}

/* 固定ヘッダー部分 */
.sidebar-brand {
  background-color: var(--brand);
  color: #fff;
  padding: 16px;
  border-bottom: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-brand::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("/static/img/favicon.4e80199fcd52.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(10);
  flex-shrink: 0;
}

/* セクション見出し */
aside .font-semibold.text-gray-500 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-hover) !important;
  padding-left: 6px;
  border-left: 3px solid var(--brand);
  margin-bottom: 4px;
}

/* ナビリンク */
aside nav a {
  color: #374151;
  transition: background-color 0.12s ease, color 0.12s ease;
}
aside nav a:hover {
  background-color: var(--brand-light) !important;
  color: var(--brand-hover) !important;
}

/* Home リンク */
aside nav > a:first-child {
  font-weight: 500;
}

/* ============================================================
   カードヘッダー (service_menu_home.html)
   ============================================================ */
.card-header {
  background-color: #374151;
  color: #fff;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px 8px 0 0;
  border-left: 4px solid var(--brand);
}

/* ============================================================
   ボタン - ブランドカラー適用
   ============================================================ */
.btn-primary {
  background-color: var(--brand) !important;
}
.btn-primary:hover {
  background-color: var(--brand-hover) !important;
}

/* Google ログインボタン */
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 6px;
  padding: 11px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-decoration: none;
  transition: background-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.btn-google::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3Cpath fill='none' d='M0 0h48v48H0z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.btn-google:hover {
  background-color: #f8f9fa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  color: #3c4043;
}
/* <button> 要素にも適用できるようフォント継承を補完 */
button.btn-google {
  font: inherit;
  letter-spacing: inherit;
}

/* ============================================================
   トップナビバー (/home/ 専用)
   ============================================================ */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border-bottom: 2px solid var(--brand);
  padding: 10px 20px;
  box-shadow: 0 2px 6px rgba(112,156,18,0.10);
  gap: 12px;
}

.top-navbar-logo {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.top-navbar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2e05;
  white-space: nowrap;
}

.top-navbar-version {
  font-size: 0.7rem;
  color: #6b7280;
}
.top-navbar-version--alert {
  color: #b91c1c;
  font-weight: 600;
}

.top-navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.top-navbar-user {
  font-size: 0.8rem;
  color: #4b5563;
  padding-right: 8px;
  border-right: 1px solid #e5e7eb;
}

.top-navbar-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.12s;
}
.top-navbar-link:hover {
  color: var(--brand);
}

.top-navbar-logout {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  color: #fff;
  background-color: #6b7280;
  padding: 4px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.12s;
  white-space: nowrap;
}
.top-navbar-logout:hover {
  background-color: #374151;
  color: #fff;
}

/* ============================================================
   ログインページ
   ============================================================ */
.login-card {
  background: #fff;
  border: 1px solid #dde8c0;
  border-radius: 12px;
  padding: 28px 32px;
  max-width: 520px;
  margin: 32px auto 0;
  box-shadow: 0 2px 12px rgba(112,156,18,0.08);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.login-logo img {
  width: 36px;
  height: auto;
}
.login-logo-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2e05;
  line-height: 1.3;
}
.login-logo-provider {
  font-size: 0.8rem;
  color: #6b7280;
}

/* お知らせボックス */
.notice-box {
  background-color: var(--brand-lighter);
  border: 1px solid #c8d99a;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.notice-box .notice-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-hover);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.notice-box ul {
  list-style: disc;
  padding-left: 18px;
}
.notice-box ul li {
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.7;
}

/* ============================================================
   Tailwind 未コンパイルユーティリティ補完
   ============================================================ */
.mt-7  { margin-top: 1.75rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ============================================================
   テーブルセル 背景白
   ============================================================ */
.table-auto tbody td,
.table-fixed tbody td {
  background-color: #fff;
}

/* ============================================================
   フォーム入力フィールド
   ============================================================ */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="number"],
input[type="date"],
textarea,
select {
  background-color: #fff !important;
}

/* ============================================================
   ホームページ ユーザー情報エリア
   ============================================================ */
.user-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #dde8c0;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
}
.user-info-bar .user-email {
  font-size: 0.875rem;
  color: #374151;
}

/* 承認待ちメッセージ */
.pending-notice {
  background-color: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  margin-top: 20px;
}
.pending-notice p {
  color: #92400e;
  font-size: 0.875rem;
  margin-top: 6px;
  line-height: 1.6;
}

/* ============================================================
   ヘッダー内 service_description
   ============================================================ */
.service-description {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.8;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 6px;
}
.service-description .version-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand-hover);
  background: var(--brand-light);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
}

/* ============================================================
   ホームメニューカード内リンク
   ============================================================ */
.menu-card-body a.text-xl {
  color: var(--brand-hover);
}
.menu-card-body a.text-xl:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* 管理ページへのリンク・開発要望 */
.admin-links a {
  font-size: 0.8rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: color 0.12s;
}
.admin-links a:hover {
  color: var(--brand);
}
