@charset "utf-8";

:root {
  /* フォント */
  --ff-rounded: "M PLUS Rounded 1c", sans-serif;
  /* 色の定義 */
  --color-full: #ed6969;
  --color-few: #c6b90d;
  --color-empty: #1fa906;
}

body {
  margin: 0;
  padding: 0;
}

.pu-page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.pu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 40px;
  min-height: 78px;
  padding: 12px 16px 12px 34px;
  background-color: #3ca590;
  color: #fff;
}

.pu-header-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0 40px;
  font-family: var(--ff-rounded);
  font-size: clamp(20px, 4.5vw, 24px);
  font-weight: 500;
}

.pu-logout {
  margin-left: auto;
}

.pu-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 184px;
  min-height: 54px;
  border-radius: 10px;
  background-color: #fff;
  color: #3ca590;
  font-size: 20px;
}

@media (max-width: 768px) {
  .pu-header {
    flex-wrap: wrap;
  }

  .pu-logout-btn {
    width: 140px;
    min-height: 40px;
    font-size: 16px;
  }
}

.pu-main {
  flex-grow: 1;
  padding-top: 70px;
  padding-bottom: 70px;
  background-color: #f4f4f4;
}

.pu-inner {
  box-sizing: content-box;
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

.pu-inner.pu-inner--sm {
  max-width: 480px;
}

.pu-panel {
  padding: 48px 20px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  background-color: #fff;
}

.pu-panel__inner {
  margin-right: auto;
  margin-left: auto;
  max-width: 640px;
}

/* ログイン画面 */
.pu-login-form-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pu-login-form-logo {
  margin-bottom: 44px;
}

.pu-login-error {
  margin: 0 0 1em;
  color: #ed6969;
  font-weight: 500;
}

.pu-login-form-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.pu-login-form-item + .pu-login-form-item {
  margin-top: 24px;
}

.pu-login-form-item label {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

.pu-login-form-item .input {
  width: 280px;
  padding: 0.4375em 1em;
  border: 1px solid #707070;
  font-size: 16px;
}

.pu-login-submit {
  margin-top: 40px;
  margin-bottom: 0;
  text-align: center;
}

.pu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(240px, 100%);
  min-height: 54px;
  padding: 0.25em 0.5em;
  border-radius: 9999px;
  background-color: #0c398d;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10,20A10,10,0,1,1,20,10,10.011,10.011,0,0,1,10,20ZM8.83,5.159a.767.767,0,0,0-.518,1.332L11.7,10.118,8.332,13.491a.767.767,0,1,0,1,1.165l4.031-3.937a.775.775,0,0,0,.268-.571.763.763,0,0,0-.25-.577L9.348,5.36A.765.765,0,0,0,8.83,5.159Z" fill="%23fff"/></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 20px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.1em;
  transition: opacity 0.3s ease-in-out;
}
.pu-btn:hover,
.pu-btn:focus {
  opacity: 0.8;
  color: #fff;
}

.pu-btn.pu-btn--primary {
  background-color: #3ca590;
}

/* 情報更新画面 */
.pu-success-message,
.pu-error-message {
  margin: 2em 0;
  padding: 0.5em 1em;
  border-radius: 4px;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
}
.pu-success-message {
  background-color: #1fa906;
}
.pu-error-message {
  background-color: #ed6969;
}

.pu-form-content-header {
  display: flex;
  gap: 16px;
}

.pu-form-content-header-main {
}

.pu-parking-title {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 0;
}

.pu-form-action-text {
  margin: 0;
  margin-top: 12px;
  font-size: 18px;
  letter-spacing: 0;
}

.pu-last-updated {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
  font-size: 18px;
  letter-spacing: 0;
}

.pu-form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* --- 駐車場ステータス選択UI --- */

/* 選択肢を横に並べるラッパー */
.pu-status-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px 0 48px;
}

.pu-status-selector-item {
}

/* 本物のラジオボタンは画面外に隠す */
.pu-status-radio-input {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

/* 見た目となるラベルのスタイル */
.pu-status-radio-label {
  /* 各選択肢に適用される色の変数を定義 */
  --status-color: #333;

  /* 円のデザイン */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 178px;
  height: 178px;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;

  /* テキストのスタイル */
  font-family: var(--ff-rounded);
  font-size: 30px;
  font-weight: bold;
  letter-spacing: 0;
  line-height: 1.3;
  text-align: center;

  /* アニメーション効果 */
  transition: all 0.2s ease-in-out;

  /* ◆ 未選択の状態 ◆ */
  border: 4px solid var(--status-color);
  background-color: #fff;
  color: var(--status-color);
}

.pu-status-radio-label-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* 各選択肢の色を割り当て */
.pu-status-radio-label.full {
  --status-color: var(--color-full);
}

.pu-status-radio-label.few {
  --status-color: var(--color-few);
}

.pu-status-radio-label.empty {
  --status-color: var(--color-empty);
}

/* ◆ 選択中の状態 ◆ */
.pu-status-radio-input:checked + .pu-status-radio-label {
  border-color: transparent;
  background-color: var(--status-color);
  color: #fff;
}
