* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: #f0f0f0;
  color: #333;
  -webkit-font-smoothing: antialiased;
}

.page-wrapper {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
}

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: 52px;
}

.header-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #111;
}

.btn-back {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
  color: #555;
  line-height: 1;
  min-width: 40px;
  -webkit-tap-highlight-color: transparent;
}

.header-spacer {
  min-width: 40px;
}

/* === Profile badge === */
.profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #ddd;
}

.profile-name {
  font-size: 14px;
  color: #555;
}

/* === Content area === */
.content {
  padding: 16px;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

/* === Card === */
.card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.card:active {
  background: #f8f8f8;
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.card-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 10px;
}

/* === Like / Bookmark buttons === */
.btn-like,
.btn-bookmark {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 24px;
  padding: 4px 10px;
  border-radius: 8px;
  color: #ccc;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  -webkit-tap-highlight-color: transparent;
}

.btn-like:disabled,
.btn-bookmark:disabled {
  opacity: 0.4;
  cursor: default;
}

.btn-like.liked {
  color: #e74c3c;
}

.btn-bookmark.bookmarked {
  color: #f39c12;
}

.btn-label {
  font-size: 11px;
  color: #aaa;
}

/* === Industry detail === */
.industry-detail {
  padding: 20px 16px 16px;
  border-bottom: 1px solid #eee;
}

.industry-detail-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.industry-detail-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* === Company detail header === */
.company-detail {
  padding: 20px 16px 16px;
  border-bottom: 1px solid #eee;
}

.company-detail-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.company-detail-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* === Panels === */
.panels-section {
  padding: 16px;
}

.panel {
  margin-bottom: 28px;
}

.panel-num {
  font-size: 11px;
  font-weight: 600;
  color: #bbb;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.panel-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e9e9e9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.panel-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.panel-dialogue {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.panel-character {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #4a90d9;
  border-radius: 4px;
  padding: 3px 6px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 3px;
}

.panel-character.haruki {
  background: #27ae60;
}

.panel-character.both {
  background: #8e44ad;
}

.panel-text {
  font-size: 15px;
  line-height: 1.65;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 8px 12px;
  flex: 1;
}

/* === Action bar === */
.action-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 16px;
  border-top: 1px solid #eee;
  background: #fff;
}

.action-bar .btn-like,
.action-bar .btn-bookmark {
  font-size: 30px;
}

/* === Verification footer === */
.verification-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: #f7f7f7;
  border-top: 1px solid #e8e8e8;
  font-size: 12px;
  color: #888;
}

.verification-date {
  flex-shrink: 0;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-stale {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcc80;
}

.badge-unverified {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.badge-verified {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

/* === Loading / Error / Empty === */
.loading-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.loading-text {
  color: #bbb;
  font-size: 15px;
}

.error-text {
  color: #e74c3c;
  font-size: 14px;
  padding: 24px 16px;
  text-align: center;
  line-height: 1.6;
}

.empty-text {
  color: #aaa;
  font-size: 14px;
  text-align: center;
  padding: 40px 16px;
}
