@charset "UTF-8";

/* アプリ全体のレイアウト */
.app-wrapper {
  max-width: 500px;
  margin: 20px auto;
  padding: 15px;
  background-color: #fff;
  border: 2px solid var(--sub-color);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

/* ツールバー（進捗表示とスイッチ） */
.app-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.9em;
}

.status-display {
  font-weight: bold;
}

.filter-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* カードの3Dアニメーション設定 */
.card-container {
  perspective: 1000px;
  /* 立体感を出すための奥行き設定 */
  width: 100%;
  height: 250px;
  margin-bottom: 20px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  /* 子要素の3D配置を維持 */
}

/* JavaScriptでこのクラスをつけ外しして裏返します */
.card-inner.is-flipped {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  /* 裏返ったときに見えなくする */
  border-radius: 10px;
  border: 2px solid var(--sub-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 20px;
}

.card-front {
  background-color: #fff;
}

.card-back {
  background-color: var(--base-color);
  transform: rotateY(180deg);
  /* あらかじめ裏返しておく */
}

.card-text {
  font-size: 2em;
  font-weight: bold;
  word-break: break-word;
}

/* 操作パネル（ボタンとチェックボックス） */
.action-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  cursor: pointer;
  padding: 5px 15px;
  border-radius: 20px;
  background-color: var(--base-color);
}

.check-label input {
  transform: scale(1.2);
}

.nav-controls {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 15px;
}

.nav-btn {
  flex: 1;
  background-color: var(--accent-1);
  color: var(--text-color);
  border: none;
  padding: 12px;
  border-radius: 25px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 0 #e6ad45;
  transition: transform 0.1s;
}

.nav-btn:active {
  box-shadow: none;
  transform: translateY(4px);
}

.nav-btn:disabled {
  background-color: #ccc;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}