/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base */
body {
  background: #FFFFFF;
  color: #111111;
  font-family: 'Inter', -apple-system, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 420px;
  margin: 0 auto;
  padding: 48px 28px 64px;
}

/* Header */
.header {
  margin-bottom: 48px;
}

.logo {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  color: #111111;
}

.date {
  font-size: 12px;
  font-weight: 400;
  color: #999999;
  margin-top: 4px;
  font-family: 'Inter', monospace;
  letter-spacing: 0.05em;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 8px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
  border-radius: 0;
}

.sign-ja {
  font-size: 14px;
  font-weight: 400;
  display: block;
  letter-spacing: 0.05em;
}

.sign-en {
  font-size: 10px;
  font-weight: 300;
  color: #999999;
  display: block;
  margin-top: 3px;
  letter-spacing: 0.08em;
  transition: color 200ms ease;
}

.sign:hover {
  background: #F5F5F5;
}

.sign:active,
.sign.active {
  background: #111111;
  color: #FFFFFF;
}

.sign:active .sign-en,
.sign.active .sign-en {
  color: rgba(255, 255, 255, 0.5);
}

/* Views */
.view {
  opacity: 1;
  transition: opacity 200ms ease;
}

.view.hidden {
  display: none;
}

.view.fade-out {
  opacity: 0;
}

/* Result */
.result {
  opacity: 1;
}

.result-header {
  margin-bottom: 0;
}

.result-name {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.result-en {
  font-size: 12px;
  font-weight: 300;
  color: #999999;
  letter-spacing: 0.15em;
  margin-top: 2px;
}

.result-period {
  font-size: 12px;
  font-weight: 400;
  color: #999999;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid #E0E0E0;
  margin: 24px 0;
}

/* Energy */
.energy {
  text-align: center;
  padding: 8px 0;
}

.energy-label {
  font-size: 11px;
  font-weight: 300;
  color: #999999;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.energy-number {
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.energy-total {
  font-size: 16px;
  font-weight: 300;
  color: #999999;
}

/* Categories */
.categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-row {
  display: flex;
  align-items: center;
  font-size: 13px;
}

.category-label {
  font-weight: 300;
  letter-spacing: 0.1em;
  width: 52px;
  flex-shrink: 0;
  color: #999999;
}

.category-dots {
  flex: 1;
  overflow: hidden;
  color: #E0E0E0;
  font-size: 10px;
  letter-spacing: 0.15em;
  line-height: 1;
  margin: 0 12px;
}

.category-dots::before {
  content: '\B7\B7\B7\B7\B7\B7\B7\B7\B7\B7\B7\B7\B7\B7\B7\B7\B7\B7\B7\B7';
}

.category-stars {
  font-size: 12px;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  color: #111111;
}

/* Keywords */
.keywords {
  text-align: center;
  padding: 4px 0;
}

.keywords-label {
  font-size: 11px;
  font-weight: 300;
  color: #999999;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.keywords-value {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* Message */
.message {
  padding: 4px 0;
}

.message p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  color: #333333;
}

/* Back Link */
.back-link {
  display: inline-block;
  margin-top: 40px;
  font-size: 12px;
  font-weight: 300;
  color: #999999;
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.1em;
  transition: color 200ms ease;
}

.back-link:hover {
  color: #111111;
}
