.family-container {
  min-height: 100vh;
  background: #f7fbef;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding: 30px 16px 60px;
  box-sizing: border-box;
}


/* 家族カード */
.family-card {
  width: 100%;
  max-width: 420px;

  background: #fff;
  border-radius: 24px;
  padding: 30px 20px;
  box-sizing: border-box;

  text-align: center;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  margin: 0 auto;
}


/* タイトル */
.family-card h1 {
  color: #6aa84f;
  margin-bottom: 20px;
}

.page-title {
  text-align: center;
}


/* サブタイトル */
.family-card .subtitle {
  color: #888;
  margin-bottom: 45px;
}


/* 家族名入力 */
.family-field {
  margin-bottom: 35px;
}

.family-field label {
  display: block;
  text-align: left;

  margin-bottom: 10px;

  font-weight: bold;
  color: #555;
}

.family-field input {
  width: 100%;
  padding: 14px;

  border: 2px solid #e5e5e5;
  border-radius: 14px;

  box-sizing: border-box;

  font-size: 16px;
  background: #fffef5;
}


/* 次へボタン */
.next-btn {
  width: 100%;
  padding: 14px;

  border: none;
  border-radius: 999px;

  background: #9bcf53;
  color: white;

  font-size: 18px;
  font-weight: bold;

  cursor: pointer;
  transition: 0.2s;
}

.next-btn:hover {
  background: #84b948;
  transform: translateY(-2px);
}


/* 招待参加ボタン */
.join-btn {
  display: block;

  width: 100%;
  margin-top: 18px;
  padding: 14px;

  box-sizing: border-box;

  background: #f4d58d;
  color: #6b5a2b;

  border-radius: 999px;

  text-decoration: none;

  font-size: 18px;
  font-weight: bold;

  transition: 0.2s;
}

.join-btn:hover {
  background: #edc56b;
  transform: translateY(-2px);
}


/* 招待コード */
.invite-code {
  font-size: 30px;
  font-weight: bold;
  letter-spacing: 6px;

  color: #5c7c52;

  text-align: center;

  background: #f7fbef;

  padding: 15px;
  border-radius: 12px;

  margin: 15px 0;

  box-sizing: border-box;
}


/* 招待コードコピー */
.copy-button {
  display: block;

  width: 100%;
  margin-top: 20px;
  padding: 12px;

  background: #ffe28a;
  color: #5c7c52;

  border: none;
  border-radius: 12px;

  font-size: 16px;
  font-weight: bold;

  cursor: pointer;

  transition: 0.2s;
}

.copy-button:hover {
  transform: translateY(-2px);
  background: #ffd75e;
}


/* 旧クラス用コピー */
.copy-btn {
  width: 100%;
  padding: 14px;

  border: none;
  border-radius: 999px;

  background: #f4d58d;
  color: #6b5a2b;

  font-size: 18px;
  font-weight: bold;
}


/* 説明文 */
.share-text {
  margin: 35px 0 20px;

  color: #777;
  font-weight: bold;
}


/* 家族名・家族メンバーなどの設定項目 */
.setting-item {
  margin-bottom: 24px;
}

.setting-title {
  font-weight: bold;
  color: #5c7c52;
  margin-bottom: 8px;
}

.setting-value {
  color: #555;
}


/* 役割割合などのリンク */
.setting-link {
  display: block;

  color: inherit;
  text-decoration: none;
}

.setting-clickable {
  display: flex;
  justify-content: space-between;
  align-items: center;

  text-align: left;

  background: #f7fbef;
  padding: 16px;

  border-radius: 16px;

  transition: 0.2s;
}

.setting-clickable:hover {
  transform: translateY(-2px);
}

.setting-description {
  margin: 0;

  color: #888;
  font-size: 14px;
}

.arrow {
  font-size: 28px;
  color: #6aa84f;
}


/* エラーメッセージ */
.error-messages {
  margin-bottom: 16px;
  padding: 10px 14px;

  border-radius: 10px;

  background-color: #fff0f0;
  color: #d9534f;

  font-size: 14px;
  text-align: left;
}

.error-messages p {
  margin: 0;
}


/* 家族カードを中央配置 */
.family-card-wrapper {
  display: flex;
  justify-content: center;

  width: 100%;
}

.back-button-area {
  margin-top: 20px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  text-align: center;
}
