:root{
  --bg:#f7f4ef;
  --card:#ffffff;
  --text:#2f2a26;
  --muted:#7a6f66;
  --line:#e8dfd6;
  --accent:#6f8b74;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:"Noto Serif JP", serif;
  color:var(--text);
  background:var(--bg);
}

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:32px 16px 64px;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:24px;
  box-shadow:0 8px 24px rgba(0,0,0,0.04);
}

h1{
  margin:0 0 8px;
  font-size:28px;
  font-weight:600;
}

.sub{
  margin:0 0 20px;
  color:var(--muted);
  font-size:14px;
}

.toolbar{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-bottom:16px;
}

.summary{
  color:var(--muted);
  font-size:14px;
}

.btn{
  appearance:none;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  border-radius:10px;
  padding:10px 14px;
  font:inherit;
  cursor:pointer;
}

.btn:hover{
  border-color:#d7c9bb;
  background:#fcfaf7;
}

.table-wrap{
  overflow:auto;
  border:1px solid var(--line);
  border-radius:12px;
}

table{
  width:100%;
  border-collapse:collapse;
  min-width:700px;
  background:#fff;
}

thead th{
  background:#faf7f3;
  color:var(--text);
  font-weight:600;
  font-size:12px;
  text-align:left;
  padding:10px 6px;
  border-bottom:1px solid var(--line);
  white-space:nowrap;
}

tbody td{
  padding:14px 12px;
  border-bottom:1px solid var(--line);
  font-size:12px;
  vertical-align:middle;
}

tbody tr:last-child td{
  border-bottom:none;
}

.center{
  text-align:center;
  vertical-align:middle;
  font-size:18px;
  font-weight:600;
  letter-spacing:0.04em;
  line-height: 1;
  white-space: nowrap;
}

.loading,
.error,
.empty{
  padding:20px 0;
  color:var(--muted);
  font-size:15px;
}

.error{
  color:#a33a3a;
}

/* =========================
   Language switcher
   ========================= */
.langSwitch{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  margin: 8px 0 12px;
}

/* 固定配置（index用） */
.langSwitch--fixed{
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;

  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 999px;
  padding: 8px 10px;
}

.langBtn{
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 400;
  transition: background 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.langBtn:hover{
  transform: translateY(-1px);
}

.langBtn:active{
  transform: translateY(0px);
}

.langBtn.active,
.langBtn.isActive{
  font-weight: 700;
  background: rgba(34, 197, 94, 0.30); /* light green */
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

#langJa.active,
#langJa.isActive{
  font-weight: 700;
  background: rgba(59, 130, 246, 0.30); /* light blue */
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

#langJa::before{
  content:"🍵";
  margin-right: 6px;
}

#langEn::before{
  content:"🌿";
  margin-right: 6px;
}

/* keyboard focus */
.langBtn:focus-visible{
  outline: 2px solid rgba(0,0,0,0.25);
  outline-offset: 2px;
}


/* table */
.tableWrap{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#tableWrap table{
  min-width: 400px;
  width: 100%;
  border-collapse: collapse;
}

/* 長い文字（メール等）がはみ出すのを防ぐ */
.guestListTable th,
.guestListTable td{
  overflow-wrap: anywhere;
  word-break: break-word;
}

thead th:nth-child(2),
thead th:nth-child(3),
thead th:nth-child(4),
tbody td:nth-child(2),
tbody td:nth-child(3),
tbody td:nth-child(4){
  text-align: center;
  width: 88px;
}

/* backlink */
.topbar{
  margin: 0 0 12px;
}

#backLink{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: var(--muted);
  text-decoration: none;
  font-size: 14px;

  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.70);
}

#backLink:hover{
  color: var(--text);
  background: rgba(255,255,255,0.95);
  border-color: #d7c9bb;
}
