@charset "UTF-8";
.tw:has(~ .ts) {
  margin-bottom: 0;
}

.ts {
  position: relative;
  margin: 0 0 72px;
  padding: 72px 0 88px;
  overflow: clip;
  color: #f4f1ea;
  background: linear-gradient(180deg, #1d2656 0%, #0a1030 100%);
}
.ts::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: radial-gradient(1.5px 1.5px at 8% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 46%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 41% 9%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 57% 38%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 83% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 92% 52%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 4% 74%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 33% 86%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 68% 80%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 97% 90%, #fff 50%, transparent 51%);
  opacity: 0.8;
  animation: ts_twinkle 4s ease-in-out infinite alternate;
}
.ts.is_quake {
  animation: ts_quake 0.45s;
}
@media (max-width: 640px) {
  .ts {
    padding: 56px 0 64px;
  }
}

@keyframes ts_twinkle {
  to {
    opacity: 0.4;
  }
}
@keyframes ts_quake {
  20% {
    transform: translate(-5px, 3px);
  }
  40% {
    transform: translate(4px, -4px);
  }
  60% {
    transform: translate(-3px, -1px);
  }
  80% {
    transform: translate(2px, 2px);
  }
}
.ts_inner {
  position: relative;
}

/* ---------- 見出し（時計の見出しと同じ組み） ---------- */
.ts_head {
  max-width: 760px;
  margin-bottom: 40px;
}

.ts_eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 3px 12px;
  border: 1px solid rgba(244, 241, 234, 0.22);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.ts_live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ff7a6b;
  box-shadow: 0 0 8px #ff7a6b;
  animation: ts_live 1.2s ease-in-out infinite;
}

@keyframes ts_live {
  50% {
    opacity: 0.3;
  }
}
.ts_title {
  margin: 0 0 14px;
  color: #f4f1ea;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.ts_lead {
  margin: 0;
  color: rgba(244, 241, 234, 0.72);
  font-size: 15px;
}

/* ---------- 本体：盾と点検記録 ---------- */
.ts_body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .ts_body {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

.ts_shield_box {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 420px;
  padding-top: 30px;
}
.ts_shield_box::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360px;
  height: 360px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 207, 110, 0.22), transparent 65%);
  transform: translate(-50%, -55%);
  pointer-events: none;
}
@media (max-width: 640px) {
  .ts_shield_box {
    min-height: 360px;
  }
}

.ts_canvas {
  position: absolute;
  inset: -40px -60px;
  width: calc(100% + 120px);
  height: calc(100% + 80px);
  pointer-events: none;
}

.ts_shield_btn {
  position: relative;
  z-index: 1;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 700px;
  -webkit-tap-highlight-color: transparent;
}
.ts_shield_btn:focus-visible {
  outline: 3px solid #ffcf6e;
  outline-offset: 8px;
  border-radius: 12px;
}
.ts.is_ready .ts_shield_btn {
  animation: ts_drop 0.7s cubic-bezier(0.55, 0, 0.8, 0.4) both;
}
.ts:not(.is_seen).ts_js .ts_shield_btn {
  opacity: 0;
}

@keyframes ts_drop {
  0% {
    opacity: 0;
    transform: translateY(-60px) scale(2.1);
  }
  72% {
    opacity: 1;
    transform: none;
  }
  84% {
    transform: scale(1.08, 0.9);
  }
  100% {
    transform: none;
  }
}
.ts_shield_tilt {
  display: block;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ts_shield_tilt.is_hit {
  animation: ts_hit 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ts_shield_tilt.is_blast {
  animation: ts_blast 0.55s cubic-bezier(0.3, 1.45, 0.5, 1);
}

@keyframes ts_hit {
  40% {
    scale: 0.97;
  }
}
@keyframes ts_blast {
  30% {
    scale: 1.12;
  }
}
.ts_shield_svg {
  display: block;
  width: clamp(180px, 20vw, 240px);
  height: auto;
  overflow: visible;
}

.ts_shield_shadow {
  fill: rgba(0, 0, 0, 0.35);
  transform: translate(8px, 10px);
}

.ts_shield_rim {
  fill: #f4f1ea;
  filter: drop-shadow(0 0 16px rgba(255, 207, 110, 0.55));
}

.ts_shield_face {
  fill: #1d2656;
}

.ts_shield_hatch {
  fill: rgba(10, 16, 48, 0.45);
}

.ts_shield_shackle {
  fill: none;
  stroke: #ffcf6e;
  stroke-width: 7;
  stroke-linecap: round;
}

.ts_shield_body {
  fill: #ffcf6e;
  filter: drop-shadow(0 0 10px rgba(255, 207, 110, 0.8));
}

.ts_shield_hole {
  fill: #1d2656;
  stroke: #1d2656;
  stroke-width: 3;
  stroke-linecap: round;
}

.ts_count {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 26px 0 0;
  padding: 4px 18px;
  border: 1px solid rgba(244, 241, 234, 0.22);
  border-radius: 999px;
  background-color: rgba(10, 16, 48, 0.38);
  color: #f4f1ea;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.ts_count b {
  flex-shrink: 0;
  min-width: 3ch;
  white-space: nowrap;
  color: #ffcf6e;
  font-size: 28px;
  font-weight: 500;
  text-align: right;
}
.ts_count span {
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.ts_shield_note {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: rgba(244, 241, 234, 0.72);
  font-size: 12px;
  text-align: center;
}

/* ---------- 点検記録（時計の「きょうの作業記録」と同じカード） ---------- */
.ts_ledger {
  position: relative;
  z-index: 1;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 234, 0.22);
  border-radius: 16px;
  background-color: rgba(10, 16, 48, 0.38);
  backdrop-filter: blur(4px);
}
.ts_ledger th,
.ts_ledger td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.22);
  text-align: left;
  vertical-align: middle;
}
.ts_ledger thead th {
  color: rgba(244, 241, 234, 0.72);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.ts_ledger tbody th {
  color: #f4f1ea;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}
.ts_ledger tbody th small {
  display: block;
  color: rgba(244, 241, 234, 0.72);
  font-size: 12px;
  font-weight: 400;
}
.ts_ledger tbody tr:last-child th,
.ts_ledger tbody tr:last-child td {
  border-bottom: 0;
}
@media (max-width: 640px) {
  .ts_ledger th,
  .ts_ledger td {
    padding: 11px 12px;
  }
  .ts_ledger tbody th {
    font-size: 14px;
  }
}

.ts_ledger_cap {
  padding: 0 4px 12px;
  color: #f4f1ea;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  caption-side: top;
  text-align: left;
}
.ts_ledger_cap time {
  float: right;
  color: rgba(244, 241, 234, 0.72);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 400;
}

.ts_col_state {
  width: 92px;
  text-align: center !important;
}

.ts_row td {
  text-align: center;
}

.ts_stamp {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid #ffcf6e;
  border-radius: 50%;
  color: #ffcf6e;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: rotate(-12deg);
  box-shadow: 0 0 14px rgba(255, 207, 110, 0.35), inset 0 0 10px rgba(255, 207, 110, 0.2);
  text-shadow: 0 0 8px rgba(255, 207, 110, 0.7);
}
.ts_js .ts_stamp {
  opacity: 0;
  transform: rotate(-12deg) scale(2.2);
}
.ts_js .ts_row.is_on .ts_stamp {
  animation: ts_stamp 0.38s cubic-bezier(0.5, 0, 0.75, 0) forwards;
}

@keyframes ts_stamp {
  0% {
    opacity: 0;
    transform: rotate(-12deg) scale(2.2);
  }
  70% {
    opacity: 1;
    transform: rotate(-12deg) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: rotate(-12deg) scale(1);
  }
}
.ts_row.is_on th,
.ts_row.is_on td {
  animation: ts_row 0.5s 0.25s;
}

@keyframes ts_row {
  40% {
    background-color: rgba(255, 207, 110, 0.12);
  }
}
/* ---------- 下 ---------- */
.ts_note {
  margin: 40px 0 0;
  color: rgba(244, 241, 234, 0.72);
  font-size: 12px;
}

.ts_btns {
  margin-top: 18px;
}

.ts_btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #ffcf6e;
  color: #16203a;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}
.ts_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 207, 110, 0.35);
}
@media (max-width: 640px) {
  .ts_btn {
    width: 100%;
    justify-content: center;
  }
}
