:root {
  --bg-color: #1a1e24;
  --text-white: #ffffff;
  --text-accent: #d86928;
  --marker-red: #e60012;
  --font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-white);
  font-family: var(--font-family);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  padding: 16px;
}

.app-wrapper {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ヘッダー */
.header-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.sub-title {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.main-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.room-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-accent);
  letter-spacing: 0.05em;
}

/* 説明テキスト */
.guidance-section {
  font-size: 0.8rem;
  color: #cccccc;
}

.guidance-list {
  list-style: none;
}

.guidance-list li {
  margin-bottom: 4px;
}

/* 間取り図コンテナ */
.viewer-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.floorplan-container {
  position: relative;
  width: 100%;
  max-width: 800px; /* タブレット表示時の最大幅 */
  display: inline-block;
}

.floorplan-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* マーカーボタン */
.marker {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  z-index: 10;
  cursor: pointer;
}

.marker-dot {
  width: 20px;
  height: 20px;
  background-color: var(--marker-red);
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* タップを促す波紋アニメーション */
.marker-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--marker-red);
  border-radius: 50%;
  animation: pulse 2s infinite;
  opacity: 0;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.marker-label {
  margin-top: 4px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--marker-red);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* タブレット・広い画面向けの調整 */
@media (min-width: 768px) {
  body {
    padding: 32px;
  }
  .main-title {
    font-size: 2rem;
  }
  .room-number {
    font-size: 2.5rem;
  }
  .guidance-section {
    font-size: 0.95rem;
  }
  .marker-dot {
    width: 24px;
    height: 24px;
  }
  .marker-label {
    font-size: 0.8rem;
  }
}