:root {
  --bg-color: #f8f9fa;
  --text-color: #333;
  --card-bg: #ffffff;
  --accent-color: #4caf50;
  --header-text: #ffffff;
  --border-color: #e0e0e0;
}

[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --card-bg: #1e1e1e;
  --accent-color: #81c784;
  --border-color: #333;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  transition: all 0.3s ease;
}

header {
  background-color: var(--accent-color);
  color: var(--header-text);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.theme-toggle {
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: bold;
  transition: background 0.3s;
}

.container {
  display: flex;
  max-width: 1200px;
  margin: 1.5rem auto;
  gap: 1.5rem;
  padding: 0 1rem;
}

.sidebar {
  flex: 1;
  min-width: 250px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  background-color: var(--card-bg);
  margin-bottom: 0.6rem;
  padding: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sidebar li:hover {
  border-color: var(--accent-color);
  transform: translateX(5px);
}

.sidebar li.active {
  background-color: var(--accent-color);
  color: white;
}

.map-view {
  flex: 3;
  background-color: var(--card-bg);
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
}

.iframe-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: none;
}

.comment-box {
  margin-top: 1.2rem;
  padding: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--bg-color);
  border-left: 5px solid var(--accent-color);
  border-radius: 4px;
}


/* モバイル対応 */
@media (max-width: 850px) {
  .container {
    flex-direction: column;
  }
  .sidebar {
    order: 2;
  }
  .map-view {
    order: 1;
  }
  .theme-toggle {
    position: static;
    transform: none;
    display: block;
    margin: 10px auto 0;
  }
}
