@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200;300;400&family=Noto+Sans+JP:wght@300;400&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  background: url('IMG_9845.jpg') center center / cover no-repeat fixed;
  color: #fff8f0;
  min-height: 100vh;
  line-height: 1.9;
  font-weight: 300;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(12, 3, 0, 0.42);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

/* ===== ログインページ ===== */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 40px 20px;
}

.login-box {
  background: transparent;
  border: none;
  padding: 56px 48px;
}

.login-box h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
  font-weight: 200;
  letter-spacing: 0.3em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6), 0 0 30px rgba(0,0,0,0.4);
}

.login-subtitle {
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  margin-bottom: 56px;
  letter-spacing: 0.2em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.form-group { margin-bottom: 32px; }

.form-group label {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
  letter-spacing: 0.25em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.form-group input {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  font-size: 14px;
  color: #fff;
  font-family: inherit;
  font-weight: 300;
  transition: border-color 0.3s;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.form-group input::placeholder { color: rgba(255,255,255,0.4); }
.form-group input:focus { outline: none; border-bottom-color: rgba(255,200,140,0.8); }

.error-msg {
  color: #ffb090;
  font-size: 12px;
  margin-bottom: 12px;
  min-height: 18px;
}

.btn-login {
  width: 100%;
  padding: 16px;
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  font-size: 12px;
  font-weight: 300;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  letter-spacing: 0.3em;
  margin-top: 16px;
}

.btn-login:hover {
  background: rgba(255,160,80,0.15);
  border-color: rgba(255,200,140,0.8);
}

/* ===== ヘッダー・ナビ ===== */
header {
  background: rgba(10, 3, 0, 0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,200,140,0.15);
  color: #fff8f0;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  font-weight: 300;
  color: #fff8f0;
  letter-spacing: 0.35em;
}

nav { display: flex; gap: 0; }

nav a {
  color: rgba(255,220,180,0.6);
  text-decoration: none;
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: 0.15em;
  transition: color 0.3s;
  position: relative;
  white-space: nowrap;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 20px; right: 20px;
  height: 1px;
  background: rgba(255,200,140,0.8);
  transform: scaleX(0);
  transition: transform 0.3s;
}

nav a:hover, nav a.active { color: #fff8f0; }
nav a:hover::after, nav a.active::after { transform: scaleX(1); }

.btn-logout {
  background: transparent;
  border: 1px solid rgba(255,200,140,0.25);
  color: rgba(255,220,180,0.6);
  padding: 7px 18px;
  font-size: 10px;
  font-family: inherit;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

.btn-logout:hover { color: #fff8f0; border-color: rgba(255,200,140,0.7); }

/* ===== メインコンテンツ ===== */
main { max-width: 1000px; margin: 72px auto; padding: 0 56px; }

.page-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  color: #fff8f0;
  margin-bottom: 56px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,200,140,0.2);
  font-weight: 200;
  letter-spacing: 0.2em;
}

/* ===== トップページカード ===== */
.top-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,200,140,0.1);
  border: 1px solid rgba(255,200,140,0.15);
  margin-bottom: 72px;
}

.card {
  background: rgba(10, 3, 0, 0.45);
  backdrop-filter: blur(12px);
  padding: 48px 36px 56px;
  text-decoration: none;
  color: #fff8f0;
  transition: background 0.4s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,200,140,0.6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.card::after {
  content: '→';
  position: absolute;
  bottom: 32px; right: 32px;
  font-size: 14px;
  color: rgba(255,200,140,0.3);
  transition: color 0.3s, right 0.3s;
  font-family: sans-serif;
}

.card:hover { background: rgba(20, 8, 0, 0.6); }
.card:hover::before { transform: scaleX(1); }
.card:hover::after { color: rgba(255,180,100,0.9); right: 24px; }

.card-icon { margin-bottom: 28px; color: rgba(255,200,140,0.6); }
.card-text { flex: 1; }

.card h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: #fff8f0;
  margin-bottom: 12px;
  font-weight: 400;
  letter-spacing: 0.25em;
}

.card p { font-size: 11px; color: rgba(255,220,180,0.6); letter-spacing: 0.05em; line-height: 1.9; }

/* ===== 支部タブ ===== */
.branch-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,200,140,0.15);
}

.branch-tab {
  padding: 14px 20px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: rgba(255,220,180,0.55);
  font-size: 11px;
  font-family: inherit;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
  margin-bottom: -1px;
  white-space: nowrap;
}

.branch-tab:hover { color: #fff8f0; }
.branch-tab.active { color: #fff8f0; border-bottom-color: rgba(255,180,100,0.8); }

/* ===== お知らせ・活動報告リスト ===== */
.news-list, .activity-list {
  background: rgba(10, 3, 0, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,200,140,0.1);
  padding: 0 24px;
}

.news-item, .activity-item {
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,200,140,0.1);
  gap: 12px;
}

.news-item-meta, .activity-item-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.news-item:last-child, .activity-item:last-child { border-bottom: none; }

.item-meta { display: flex; align-items: center; gap: 16px; }
.item-date { font-size: 11px; color: rgba(255,220,180,0.45); letter-spacing: 0.05em; }

.item-badge {
  font-size: 10px;
  background: transparent;
  color: rgba(255,220,180,0.6);
  padding: 2px 10px;
  border: 1px solid rgba(255,200,140,0.25);
  white-space: nowrap;
  letter-spacing: 0.1em;
}

.item-badge.red { color: #ffb090; border-color: rgba(255,150,100,0.3); }

.item-content h3 { font-size: 14px; margin-bottom: 6px; color: #fff8f0; font-weight: 400; letter-spacing: 0.05em; }
.item-content p { font-size: 12px; color: rgba(255,220,180,0.5); letter-spacing: 0.03em; }

/* ===== 資料ページ ===== */
.doc-section {
  background: rgba(10, 3, 0, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,200,140,0.1);
  padding: 0 24px;
  margin-bottom: 32px;
}

.doc-section-title {
  background: transparent;
  border-bottom: 1px solid rgba(255,200,140,0.2);
  color: rgba(255,220,180,0.85);
  padding: 16px 0;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.25em;
}

.doc-item {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,200,140,0.08);
  gap: 20px;
}

.doc-item:last-child { border-bottom: none; }
.doc-icon { font-size: 18px; }
.doc-info { flex: 1; }

.doc-info h3 { font-size: 13px; margin-bottom: 4px; color: #fff8f0; font-weight: 300; letter-spacing: 0.05em; }
.doc-info p { font-size: 11px; color: rgba(255,220,180,0.45); letter-spacing: 0.05em; }

.btn-download {
  background: transparent;
  color: rgba(255,220,180,0.7);
  border: 1px solid rgba(255,200,140,0.25);
  padding: 8px 22px;
  font-size: 11px;
  font-family: inherit;
  font-weight: 300;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.15em;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-download:hover {
  background: rgba(255,160,80,0.2);
  color: #fff8f0;
  border-color: rgba(255,200,140,0.7);
}

/* ===== 交渉結果テーブル ===== */
.result-table {
  margin-top: 16px;
  border-top: 1px solid rgba(255,200,140,0.15);
}

.result-row {
  display: flex;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,200,140,0.1);
  font-size: 12px;
  flex-wrap: wrap;
}

.result-label {
  color: rgba(255,220,180,0.5);
  min-width: 140px;
  letter-spacing: 0.05em;
}

.result-value {
  color: #fff8f0;
  letter-spacing: 0.05em;
}

.result-value strong {
  color: rgba(255,200,140,0.9);
  font-weight: 400;
}

@media (max-width: 700px) {
  header { padding: 0 20px; height: auto; min-height: 64px; flex-wrap: wrap; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
  main { padding: 0 20px; margin: 48px auto; }
  .top-cards { grid-template-columns: 1fr; }
}
