.header {
    position: relative;
    padding: 20px 20px 0 20px;
}

#title {
    margin: 0;
    font-size: 1.8rem;
}

.lang-select-container {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 0.95rem;
}

.lang-label {
    color: #333;
}

#langSelect {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fff;
    color: #333;
    cursor: pointer;
}

#langSelect:focus {
    outline: none;
    border-color: #66afe9;
    box-shadow: 0 0 3px rgba(102, 175, 233, 0.6);
}


.lang-select-button {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.popup-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px; /* ここで余白を統一的に管理 */
}