:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: dark;
  color: #e8e8e8;
  background-color: #0d0f14;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}
.login-container {
  min-height: 100vh;
  min-height: 100dvh; /* モバイルのビューポート高さに対応 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(135deg, #0d0f14 0%, #161a22 100%);
}

.login-card {
  background-color: #161a22;
  border-radius: 20px;
  padding: 32px 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(232, 106, 255, 0.1);
  border: 1px solid rgba(232, 106, 255, 0.15);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-title {
  font-size: 28px;
  font-weight: 600;
  color: #e8e8e8;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #e86aff 0%, #6f8cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.login-subtitle {
  font-size: 13px;
  color: #a0a0a0;
  letter-spacing: 0.2px;
  line-height: 1.4;
}

.google-login-btn {
  width: 100%;
  min-height: 48px; /* タッチターゲットサイズ確保 */
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(232, 106, 255, 0.1) 0%, rgba(111, 140, 255, 0.1) 100%);
  border: 1px solid rgba(232, 106, 255, 0.3);
  border-radius: 12px;
  color: #e8e8e8;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.google-login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232, 106, 255, 0.2), transparent);
  transition: left 0.5s;
}

.google-login-btn:hover::before {
  left: 100%;
}

.google-login-btn:hover {
  border-color: rgba(232, 106, 255, 0.5);
  box-shadow: 0 0 20px rgba(232, 106, 255, 0.3),
              0 0 40px rgba(111, 140, 255, 0.2);
  transform: translateY(-1px);
}

.google-login-btn:active {
  transform: scale(0.98);
  background: linear-gradient(135deg, rgba(232, 106, 255, 0.15) 0%, rgba(111, 140, 255, 0.15) 100%);
}

.google-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.google-signin-button {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
}

/* Google ボタンのスタイル調整 */
.google-signin-button > div {
  width: 100% !important;
}

.google-signin-button iframe {
  width: 100% !important;
}

/* 非表示のGoogleボタン（カスタムボタンからクリックをトリガーするため） */
.google-signin-button-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  overflow: hidden;
}


.login-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  position: relative;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(232, 106, 255, 0.2);
}

.divider-text {
  padding: 0 16px;
  color: #a0a0a0;
  font-size: 13px;
}

.x-login-btn {
  width: 100%;
  min-height: 48px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(232, 106, 255, 0.1) 0%, rgba(111, 140, 255, 0.1) 100%);
  border: 1px solid rgba(232, 106, 255, 0.3);
  border-radius: 12px;
  color: #e8e8e8;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.x-login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232, 106, 255, 0.2), transparent);
  transition: left 0.5s;
}

.x-login-btn:hover::before {
  left: 100%;
}

.x-login-btn:hover {
  border-color: rgba(232, 106, 255, 0.5);
  box-shadow: 0 0 20px rgba(232, 106, 255, 0.3),
              0 0 40px rgba(111, 140, 255, 0.2);
  transform: translateY(-1px);
}

.x-login-btn:active {
  transform: scale(0.98);
  background: linear-gradient(135deg, rgba(232, 106, 255, 0.15) 0%, rgba(111, 140, 255, 0.15) 100%);
}

.x-login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.x-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* タブレット以上 */
@media (min-width: 768px) {
  .login-container {
    padding: 24px;
  }

  .login-card {
    padding: 48px 40px;
    border-radius: 16px;
  }

  .login-title {
    font-size: 36px;
  }

  .login-subtitle {
    font-size: 14px;
  }

  .google-login-btn {
    font-size: 16px;
    padding: 14px 24px;
  }

  .x-login-btn {
    font-size: 16px;
    padding: 14px 24px;
  }
}

.home-container {
  min-height: 100vh;
  min-height: 100dvh; /* モバイルのビューポート高さに対応 */
  padding: 20px 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 100px; /* ナビゲーションバーのための余白を確保 */
}

.home-header {
  text-align: center;
  margin-bottom: 32px;
  padding-top: 24px;
}

.home-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
}

.home-header-top > div {
  flex: 1;
}

.logout-btn {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid rgba(232, 106, 255, 0.3);
  border-radius: 8px;
  color: #e86aff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.1px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.logout-btn:active {
  transform: scale(0.96);
  background: rgba(232, 106, 255, 0.1);
  border-color: rgba(232, 106, 255, 0.5);
}

.home-title {
  font-size: 28px;
  font-weight: 600;
  color: #e8e8e8;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #e86aff 0%, #6f8cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.home-subtitle {
  font-size: 14px;
  color: #a0a0a0;
  letter-spacing: 0.2px;
  line-height: 1.4;
  margin-bottom: 24px;
}

.user-info {
  margin-top: 24px;
  padding: 20px;
  background-color: #161a22;
  border-radius: 12px;
  border: 1px solid rgba(232, 106, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(232, 106, 255, 0.3);
  object-fit: cover;
}

.user-details {
  flex: 1;
}

.user-name {
  font-size: 16px;
  font-weight: 500;
  color: #e8e8e8;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}

.user-id {
  font-size: 13px;
  color: #6f8cff;
  margin-bottom: 2px;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.1px;
}

.user-email {
  font-size: 12px;
  color: #a0a0a0;
  letter-spacing: 0.1px;
}

.logs-section {
  margin-top: 32px;
}

.stats-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background-color: #161a22;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(232, 106, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-label {
  font-size: 14px;
  color: #a0a0a0;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.stat-value {
  font-size: 32px;
  font-weight: 600;
  color: #e8e8e8;
  letter-spacing: 0.2px;
}

.stat-value-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-rating-number {
  font-size: 32px;
  font-weight: 600;
  color: #e8e8e8;
  letter-spacing: 0.2px;
}

.stat-no-data {
  font-size: 16px;
  color: #a0a0a0;
  font-weight: 400;
}

.chart-section {
  margin-bottom: 32px;
}

.chart-section-title {
  font-size: 20px;
  font-weight: 500;
  color: #e8e8e8;
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}

.logs-section-title {
  font-size: 20px;
  font-weight: 500;
  color: #e8e8e8;
  margin-bottom: 20px;
  letter-spacing: 0.2px;
}

.logs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.log-card {
  background-color: #161a22;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(232, 106, 255, 0.15);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.log-card:active {
  transform: scale(0.98);
  background-color: rgba(22, 26, 34, 0.9);
}

.log-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #e86aff, #6f8cff);
  opacity: 0;
  transition: opacity 0.3s ease;
}


.log-card-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.log-card-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(232, 106, 255, 0.2);
}

.log-card-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.log-card-header-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-card-title {
  font-size: 16px;
  font-weight: 500;
  color: #e86aff;
  flex: 1;
  letter-spacing: 0.1px;
  line-height: 1.4;
}

.log-card-title.clickable {
  cursor: pointer;
  color: #e86aff !important;
  transition: color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  text-decoration: underline;
}

.log-card-title.clickable:visited {
  color: #e86aff;
}

.log-card-title.clickable:hover {
  color: #ff8aff;
}

.log-card-title.clickable:active {
  color: #ff8aff;
  opacity: 0.8;
}

.log-card-date {
  font-size: 14px;
  color: #6f8cff;
  white-space: nowrap;
  font-weight: 400;
  flex-shrink: 0;
}

.log-card-info {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.log-card-shop {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.log-card-shop-type {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.log-card-shop-name {
  font-size: 14px;
  color: #e86aff;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.log-card-shop-name.clickable {
  cursor: pointer;
  color: #e86aff !important;
  transition: color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  text-decoration: underline;
}

.log-card-shop-name.clickable:visited {
  color: #e86aff;
}

.log-card-shop-name.clickable:hover {
  color: #ff8aff;
}

.log-card-shop-name.clickable:active {
  color: #ff8aff;
  opacity: 0.8;
}

.log-card-rating {
  display: flex;
  align-items: center;
}

.log-card-ratings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.log-card-ratings .log-card-rating-item {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.log-card-rating-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
}

.log-card-rating-item .star-rating {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  width: 100%;
}

.log-card-rating-label {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  min-width: 50px;
  width: 50px;
  flex-shrink: 0;
  flex-grow: 0;
  letter-spacing: 0.1px;
  white-space: nowrap;
}

.log-card-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(111, 140, 255, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(111, 140, 255, 0.2);
  animation: fadeIn 0.3s ease-in-out;
}

.log-card-price-label {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.log-card-price-value {
  font-size: 16px;
  color: #e8e8e8;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.log-card-review {
  margin-bottom: 16px;
  animation: fadeIn 0.3s ease-in-out;
}

.log-card-preview {
  font-size: 17px;
  color: #a0a0a0;
  line-height: 1.6;
  letter-spacing: 0.1px;
  white-space: pre-line;
  word-wrap: break-word;
  margin: 0;
}

.log-card-review.collapsed .log-card-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.log-card-review.expanded .log-card-preview {
  display: block;
}

.log-card-review-ellipsis {
  color: #6f8cff;
  font-weight: 500;
}

.loading-message,
.error-message,
.empty-message {
  padding: 24px;
  text-align: center;
  color: #a0a0a0;
  font-size: 14px;
  letter-spacing: 0.1px;
}

.error-message {
  color: #ff6b6b;
  background-color: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 8px;
}

.log-card-expand-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
  animation: fadeIn 0.3s ease-in-out;
}

.log-card-expand-btn {
  min-height: 36px;
  min-width: 36px;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(232, 106, 255, 0.3);
  border-radius: 8px;
  color: #e86aff;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
}

.log-card-expand-btn svg {
  width: 20px;
  height: 20px;
}

.log-card-expand-btn:active {
  transform: scale(0.96);
  background: rgba(232, 106, 255, 0.1);
  border-color: rgba(232, 106, 255, 0.5);
}

.log-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 106, 255, 0.1);
}

.log-card-footer-right {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.log-card-btn {
  min-height: 40px;
  min-width: 40px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(232, 106, 255, 0.3);
  border-radius: 8px;
  color: #e86aff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.1px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
}

.log-card-btn svg {
  width: 18px;
  height: 18px;
}

.log-card-btn-edit {
  border-color: rgba(111, 140, 255, 0.3);
  color: #6f8cff;
}

.log-card-btn-delete {
  border-color: rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
}

.log-card-btn-delete:hover {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.5);
}

.delete-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.delete-confirm-dialog {
  background-color: #161a22;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(232, 106, 255, 0.3);
  max-width: 400px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.delete-confirm-title {
  font-size: 20px;
  font-weight: 500;
  color: #e8e8e8;
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}

.delete-confirm-message {
  font-size: 14px;
  color: #a0a0a0;
  line-height: 1.6;
  margin-bottom: 24px;
  letter-spacing: 0.1px;
}

.delete-confirm-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.delete-confirm-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.1px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  border: 1px solid;
}

.delete-confirm-btn-cancel {
  background: transparent;
  border-color: rgba(232, 106, 255, 0.3);
  color: #e86aff;
}

.delete-confirm-btn-cancel:hover:not(:disabled) {
  background: rgba(232, 106, 255, 0.1);
  border-color: rgba(232, 106, 255, 0.5);
}

.delete-confirm-btn-delete {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
}

.delete-confirm-btn-delete:hover:not(:disabled) {
  background: rgba(255, 107, 107, 0.2);
  border-color: rgba(255, 107, 107, 0.5);
}

.delete-confirm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.log-card-btn:active {
  transform: scale(0.96);
  background: rgba(232, 106, 255, 0.1);
  border-color: rgba(232, 106, 255, 0.5);
}

.log-card-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spinning {
  animation: spin 1s linear infinite;
}

/* タブレット以上 */
@media (min-width: 768px) {
  .home-container {
    padding: 40px 24px;
  }

  .home-header {
    margin-bottom: 60px;
    padding-top: 40px;
  }

  .logout-btn:hover {
    background: rgba(232, 106, 255, 0.1);
    border-color: rgba(232, 106, 255, 0.5);
    box-shadow: 0 0 12px rgba(232, 106, 255, 0.2);
  }

  .home-title {
    font-size: 42px;
    margin-bottom: 12px;
  }

  .home-subtitle {
    font-size: 16px;
  }

  .logs-section {
    margin-top: 60px;
  }

  .stats-section {
    gap: 24px;
    margin-bottom: 40px;
  }

  .stat-card {
    padding: 24px;
    border-radius: 16px;
  }

  .stat-label {
    font-size: 15px;
  }

  .stat-value {
    font-size: 40px;
  }

  .stat-rating-number {
    font-size: 40px;
  }

  .stat-no-data {
    font-size: 18px;
  }

  .logs-section-title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .logs-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
  }

  .log-card {
    padding: 24px;
    border-radius: 12px;
  }

  .log-card:hover {
    border-color: rgba(232, 106, 255, 0.3);
    box-shadow: 0 4px 16px rgba(232, 106, 255, 0.1);
  }

  .log-card:active {
    transform: scale(0.99);
  }

  .log-card-header {
    margin-bottom: 16px;
    gap: 16px;
  }

  .log-card-image {
    width: 100px;
    height: 100px;
  }

  .log-card-header-content {
    gap: 12px;
  }

  .log-card-title {
    font-size: 18px;
  }

  .log-card-date {
    font-size: 12px;
  }

  .log-card-info {
    margin-bottom: 16px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .log-card-ratings {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }

  .log-card-rating-item {
    flex: none;
    width: 100%;
  }

  .log-card-rating-label {
    min-width: 70px;
    width: 70px;
    font-size: 13px;
  }

  .log-card-shop {
    flex: 1;
  }

  .log-card-shop-type {
    font-size: 13px;
  }

  .log-card-shop-name {
    font-size: 15px;
  }

  .log-card-review {
    margin-bottom: 20px;
  }

  .log-card-review.collapsed .log-card-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .log-card-review.expanded .log-card-preview {
    display: block;
  }

  .log-card-preview {
    font-size: 18px;
    white-space: pre-line;
    word-wrap: break-word;
  }

  .log-card-expand-container {
    margin-bottom: 16px;
  }

  .log-card-expand-btn {
    min-height: 32px;
    min-width: 32px;
    padding: 6px;
  }

  .log-card-expand-btn svg {
    width: 18px;
    height: 18px;
  }

  .log-card-expand-btn:hover {
    background: rgba(232, 106, 255, 0.1);
    border-color: rgba(232, 106, 255, 0.5);
    box-shadow: 0 0 12px rgba(232, 106, 255, 0.2);
  }

  .log-card-btn {
    padding: 8px;
    min-height: 36px;
    min-width: 36px;
  }

  .log-card-btn svg {
    width: 16px;
    height: 16px;
  }

  .log-card-btn:hover {
    background: rgba(232, 106, 255, 0.1);
    border-color: rgba(232, 106, 255, 0.5);
    box-shadow: 0 0 12px rgba(232, 106, 255, 0.2);
  }

  .delete-confirm-dialog {
    padding: 32px;
    max-width: 480px;
  }

  .delete-confirm-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .delete-confirm-message {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .delete-confirm-btn {
    padding: 12px 24px;
    font-size: 15px;
  }

  .delete-confirm-btn:hover:not(:disabled) {
    transform: translateY(-1px);
  }
}

.star-rating {
  display: flex;
  gap: 0;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  justify-content: space-between;
}

.star {
  font-size: clamp(18px, 1.6vw, 18px);
  line-height: 1;
  color: #4a4a4a;
  cursor: default;
  transition: color 0.2s ease;
  flex-shrink: 0;
  flex: 0 0 auto;
}

.star.filled {
  color: #ffd700;
}

.star.half-filled {
  position: relative;
  color: #4a4a4a;
}

.star.half-filled::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #ffd700;
}

.star.clickable {
  cursor: pointer;
}

.star.clickable:hover {
  color: #ffed4e;
}

.record-form-container {
  background-color: #161a22;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(232, 106, 255, 0.15);
  margin-bottom: 32px;
}

.record-form-title {
  font-size: 20px;
  font-weight: 500;
  color: #e8e8e8;
  margin-bottom: 24px;
  letter-spacing: 0.2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
}

.form-cancel-btn {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid rgba(232, 106, 255, 0.3);
  border-radius: 8px;
  color: #e86aff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.1px;
  margin-bottom: 16px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.form-cancel-btn:hover:not(:disabled) {
  background: rgba(232, 106, 255, 0.1);
  border-color: rgba(232, 106, 255, 0.5);
}

.form-cancel-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.form-cancel-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.record-form-title:hover {
  color: #e86aff;
}

.expand-icon {
  font-size: 14px;
  color: #e86aff;
  transition: transform 0.3s ease;
  margin-left: 12px;
}

.expand-icon.expanded {
  transform: rotate(180deg);
}

.record-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: #e8e8e8;
  letter-spacing: 0.1px;
}

.required {
  color: #e86aff;
  margin-left: 4px;
}

.form-input,
.form-textarea,
.form-select {
  padding: 12px 16px;
  background-color: #0d0f14;
  border: 1px solid rgba(232, 106, 255, 0.2);
  border-radius: 8px;
  color: #e8e8e8;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  letter-spacing: 0.1px;
}

.form-textarea {
  font-size: 16px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: rgba(232, 106, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(232, 106, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #6a6a6a;
}

.form-input:disabled,
.form-textarea:disabled,
.form-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e86aff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background-color: #0d0f14;
  color: #e8e8e8;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.form-error {
  padding: 12px 16px;
  background-color: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 8px;
  color: #ff6b6b;
  font-size: 14px;
  letter-spacing: 0.1px;
}

.form-submit-btn {
  padding: 14px 24px;
  background: linear-gradient(135deg, #e86aff 0%, #6f8cff 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.1px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.form-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 106, 255, 0.3);
}

.form-submit-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(232, 106, 255, 0.2);
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* タブレット以上 */
@media (min-width: 768px) {
  .record-form-container {
    padding: 32px;
  }

  .record-form-title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .form-group {
    gap: 10px;
  }

  .form-label {
    font-size: 15px;
  }

  .form-input,
  .form-textarea,
  .form-select {
    padding: 14px 18px;
    font-size: 15px;
  }

  .form-textarea {
    font-size: 17px;
  }

  .form-select {
    padding-right: 44px;
    background-position: right 18px center;
  }
}

.mypage-container {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 100px; /* ナビゲーションバーのための余白を確保 */
}

.mypage-user-section {
  margin-bottom: 20px;
  padding-top: 24px;
}

.mypage-user-info {
  padding: 20px;
  background-color: #161a22;
  border-radius: 12px;
  border: 1px solid rgba(232, 106, 255, 0.15);
}

.mypage-user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(232, 106, 255, 0.3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(232, 106, 255, 0.05);
  color: #e8e8e8;
}

.mypage-user-avatar svg {
  width: 50px;
  height: 50px;
}

.mypage-user-details {
  flex: 1;
}

.mypage-user-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mypage-provider-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #a0a0a0;
  width: 18px;
  height: 18px;
}

.mypage-user-name {
  font-size: 20px;
  font-weight: 600;
  color: #e8e8e8;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.mypage-user-id {
  font-size: 14px;
  color: #6f8cff;
  margin-bottom: 4px;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.1px;
}

.mypage-user-email {
  font-size: 15px;
  color: #e8e8e8;
  letter-spacing: 0.1px;
  margin: 0;
  font-weight: 500;
}

.mypage-menu-section {
  margin-top: 20px;
}

.mypage-menu-list {
  background-color: #161a22;
  border-radius: 12px;
  border: 1px solid rgba(232, 106, 255, 0.15);
  overflow: hidden;
}

.mypage-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(232, 106, 255, 0.1);
  color: #e8e8e8;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  text-decoration: none;
}

.mypage-menu-link {
  text-decoration: none;
}

.mypage-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: #a0a0a0;
  flex-shrink: 0;
}

.mypage-favicon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.mypage-menu-item:last-child {
  border-bottom: none;
}

.mypage-menu-list:has(.mypage-menu-item:only-child) .mypage-menu-item {
  border-bottom: none;
}

.mypage-menu-item:active {
  background-color: rgba(232, 106, 255, 0.1);
}

.mypage-menu-label {
  flex: 1;
  text-align: left;
  letter-spacing: 0.1px;
}

.mypage-menu-arrow {
  color: #6f8cff;
  font-size: 24px;
  font-weight: 300;
  margin-left: 12px;
}

.mypage-version {
  margin-top: 32px;
  text-align: center;
  padding: 16px 0;
}

.mypage-version-text {
  font-size: 13px;
  color: #5a5a5a;
  margin: 0;
  letter-spacing: 0.1px;
  opacity: 0.6;
}

/* タブレット以上 */
@media (min-width: 768px) {
  .mypage-container {
    padding: 40px 24px;
  }

  .mypage-user-section {
    margin-bottom: 40px;
    padding-top: 40px;
  }

  .mypage-user-info {
    padding: 32px;
  }

  .mypage-user-avatar {
    width: 100px;
    height: 100px;
  }

  .mypage-user-avatar svg {
    width: 60px;
    height: 60px;
  }

  .mypage-user-name {
    font-size: 24px;
  }

  .mypage-user-id {
    font-size: 15px;
  }

  .mypage-user-email {
    font-size: 14px;
  }

  .mypage-menu-item {
    padding: 20px 24px;
    font-size: 17px;
  }

  .mypage-menu-item:hover {
    background-color: rgba(232, 106, 255, 0.1);
  }


  .mypage-version {
    margin-top: 40px;
  }

  .mypage-version-text {
    font-size: 14px;
  }
}

.review-search-container {
  min-height: 100vh;
  min-height: 100dvh; /* モバイルのビューポート高さに対応 */
  padding: 20px 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 100px; /* ナビゲーションバーのための余白を確保 */
}

.review-search-title {
  font-size: 28px;
  font-weight: 600;
  color: #e8e8e8;
  margin-bottom: 32px;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #e86aff 0%, #6f8cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.review-search-form {
  background-color: rgba(232, 106, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(232, 106, 255, 0.1);
  padding: 24px;
  margin-bottom: 32px;
}

.search-form-group {
  margin-bottom: 24px;
}

.search-form-group:last-child {
  margin-bottom: 0;
}

.search-form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #e8e8e8;
  margin-bottom: 12px;
  letter-spacing: 0.1px;
}

.shop-type-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.shop-type-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(232, 106, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  color: #e8e8e8;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.shop-type-checkbox-label:hover {
  background-color: rgba(232, 106, 255, 0.1);
  border-color: rgba(232, 106, 255, 0.3);
}

.shop-type-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #e86aff;
}

.rating-range {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.rating-range-item {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rating-range-label {
  font-size: 12px;
  color: #a0a0a0;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.rating-range-separator {
  color: #a0a0a0;
  font-size: 16px;
  font-weight: 500;
  margin: 0 8px;
  flex-shrink: 0;
}

.date-range {
  display: flex;
  align-items: center;
  gap: 12px;
}

.date-input {
  flex: 1;
  padding: 10px 12px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(232, 106, 255, 0.2);
  border-radius: 8px;
  color: #e8e8e8;
  font-size: 14px;
  transition: all 0.3s ease;
}

.date-input:focus {
  outline: none;
  border-color: rgba(232, 106, 255, 0.5);
  background-color: rgba(0, 0, 0, 0.4);
}

.date-range-separator {
  color: #a0a0a0;
  font-size: 14px;
  font-weight: 500;
}

.search-button {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #e86aff 0%, #6f8cff 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.1px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.search-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 106, 255, 0.4);
}

.search-button:active:not(:disabled) {
  transform: translateY(0);
}

.search-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.search-results {
  margin-top: 32px;
}

.search-results-title {
  font-size: 20px;
  font-weight: 600;
  color: #e8e8e8;
  margin-bottom: 24px;
  letter-spacing: 0.2px;
}

.logs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.log-card {
  background-color: rgba(232, 106, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(232, 106, 255, 0.1);
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.log-card:hover {
  background-color: rgba(232, 106, 255, 0.1);
  border-color: rgba(232, 106, 255, 0.3);
  transform: translateY(-2px);
}

.log-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.log-card-image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(232, 106, 255, 0.2);
}

.log-card-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.log-card-header-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.log-card-shop {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-direction: row;
}

.log-card-shop-type {
  font-size: 12px;
  color: #6f8cff;
  background-color: rgba(111, 140, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.log-card-shop-name {
  font-size: 14px;
  font-weight: 500;
  color: #e8e8e8;
}

.log-card-shop-name.clickable {
  color: #e86aff;
  cursor: pointer;
  text-decoration: underline;
}

.log-card-date {
  font-size: 14px;
  color: #a0a0a0;
}

.log-card-info {
  margin-bottom: 12px;
}

.log-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #e8e8e8;
  margin: 0;
}

.log-card-title.clickable {
  color: #e86aff;
  cursor: pointer;
  text-decoration: underline;
}

.log-card-ratings {
  margin-bottom: 12px;
}

.log-card-rating-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.log-card-rating-label {
  font-size: 12px;
  color: #a0a0a0;
  min-width: 60px;
}

.log-card-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid rgba(232, 106, 255, 0.1);
  margin-top: 8px;
}

.log-card-price-label {
  font-size: 12px;
  color: #a0a0a0;
}

.log-card-price-value {
  font-size: 14px;
  color: #e8e8e8;
  font-weight: 500;
}

.log-card-review {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 106, 255, 0.1);
}

.log-card-review.collapsed {
  max-height: 100px;
  overflow: hidden;
}

.log-card-preview {
  font-size: 14px;
  color: #e8e8e8;
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 0;
}

.log-card-review-ellipsis {
  color: #a0a0a0;
}

.log-card-expand-container {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.log-card-expand-btn {
  background: transparent;
  border: none;
  color: #e86aff;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.log-card-expand-btn:hover {
  transform: translateY(2px);
}

.loading-message,
.error-message,
.empty-message {
  padding: 24px;
  text-align: center;
  color: #a0a0a0;
  font-size: 14px;
  letter-spacing: 0.1px;
}

.error-message {
  color: #ff6b6b;
  background-color: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 8px;
  margin-bottom: 24px;
}

.empty-message {
  background-color: #161a22;
  border: 1px solid rgba(232, 106, 255, 0.15);
  border-radius: 12px;
  margin-top: 32px;
}

/* タブレット以上 */
@media (min-width: 768px) {
  .review-search-container {
    padding: 40px 24px;
  }

  .review-search-title {
    font-size: 42px;
    margin-bottom: 40px;
  }

  .review-search-form {
    padding: 32px;
  }

  .logs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .log-card {
    padding: 20px;
  }
}

/* デスクトップ */
@media (min-width: 1024px) {
  .logs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


.shop-detail-container {
  min-height: 100vh;
  min-height: 100dvh; /* モバイルのビューポート高さに対応 */
  padding: 20px 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 100px; /* ナビゲーションバーのための余白を確保 */
}

.shop-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(232, 106, 255, 0.15);
}

.shop-detail-back-btn {
  min-height: 40px;
  min-width: 40px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(232, 106, 255, 0.3);
  border-radius: 8px;
  color: #e86aff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.shop-detail-back-btn:active {
  transform: scale(0.96);
  background: rgba(232, 106, 255, 0.1);
  border-color: rgba(232, 106, 255, 0.5);
}

.shop-detail-title-section {
  flex: 1;
}

.shop-detail-title {
  font-size: 24px;
  font-weight: 600;
  color: #e8e8e8;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.shop-detail-subtitle {
  font-size: 14px;
  color: #6f8cff;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
}

.shop-detail-visit-count {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 106, 255, 0.1);
}

.shop-detail-visit-count-label {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  letter-spacing: 0.1px;
  margin-right: 8px;
}

.shop-detail-visit-count-value {
  font-size: 16px;
  font-weight: 600;
  color: #e86aff;
  letter-spacing: 0.1px;
}

.shop-detail-average-price {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 106, 255, 0.1);
}

.shop-detail-average-price-label {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  letter-spacing: 0.1px;
  margin-right: 8px;
}

.shop-detail-average-price-value {
  font-size: 16px;
  font-weight: 600;
  color: #e86aff;
  letter-spacing: 0.1px;
}

.shop-detail-average-rating {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 106, 255, 0.1);
}

.shop-detail-average-rating-label {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  letter-spacing: 0.1px;
  margin-bottom: 8px;
  display: block;
}

.shop-detail-average-rating-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-detail-average-rating-value {
  font-size: 16px;
  font-weight: 600;
  color: #ffd700;
  letter-spacing: 0.1px;
}

.shop-detail-last-visit-date {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 106, 255, 0.1);
}

.shop-detail-last-visit-date-label {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  letter-spacing: 0.1px;
  margin-right: 8px;
}

.shop-detail-last-visit-date-value {
  font-size: 16px;
  font-weight: 600;
  color: #e86aff;
  letter-spacing: 0.1px;
}

.shop-detail-records {
  margin-top: 24px;
}

.shop-detail-records-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.shop-detail-records-title {
  font-size: 18px;
  font-weight: 500;
  color: #e8e8e8;
  letter-spacing: 0.2px;
}

.shop-detail-records-count {
  font-size: 14px;
  color: #6f8cff;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.logs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.log-card {
  background-color: #161a22;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(232, 106, 255, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.log-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #e86aff, #6f8cff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.log-card:active {
  border-color: rgba(232, 106, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(232, 106, 255, 0.2);
  transform: scale(0.98);
}

.log-card:active::before {
  opacity: 1;
}

.log-card-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.log-card-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(232, 106, 255, 0.2);
}

.log-card-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.log-card-header-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-card-title {
  font-size: 16px;
  font-weight: 500;
  color: #e8e8e8;
  flex: 1;
  letter-spacing: 0.1px;
  line-height: 1.4;
}

.log-card-title-clickable {
  color: #6f8cff;
  transition: color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.log-card-title-clickable:visited {
  color: #6f8cff;
}

.log-card-title-clickable:active {
  color: #e86aff;
}

.log-card-date {
  font-size: 14px;
  color: #6f8cff;
  white-space: nowrap;
  font-weight: 400;
  flex-shrink: 0;
}

.log-card-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.log-card-shop {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.log-card-shop-type {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.log-card-shop-name {
  font-size: 14px;
  color: #e8e8e8;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.log-card-ratings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.log-card-ratings .log-card-rating-item {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.log-card-rating-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.log-card-rating-label {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  min-width: 50px;
  flex-shrink: 0;
  letter-spacing: 0.1px;
}

.log-card-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(111, 140, 255, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(111, 140, 255, 0.2);
  animation: fadeIn 0.3s ease-in-out;
}

.log-card-price-label {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.log-card-price-value {
  font-size: 16px;
  color: #e8e8e8;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.log-card-preview {
  font-size: 17px;
  color: #a0a0a0;
  line-height: 1.6;
  margin-bottom: 16px;
  letter-spacing: 0.1px;
  white-space: pre-line;
  word-wrap: break-word;
  animation: fadeIn 0.3s ease-in-out;
}

.log-card-preview.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.log-card-preview.expanded {
  display: block;
}

.loading-message,
.error-message,
.empty-message {
  padding: 24px;
  text-align: center;
  color: #a0a0a0;
  font-size: 14px;
  letter-spacing: 0.1px;
}

.error-message {
  color: #ff6b6b;
  background-color: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 8px;
}

.empty-message {
  background-color: #161a22;
  border: 1px solid rgba(232, 106, 255, 0.15);
  border-radius: 12px;
}

.log-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 106, 255, 0.1);
}

.log-card-footer-right {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.log-card-btn {
  min-height: 40px;
  min-width: 40px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(232, 106, 255, 0.3);
  border-radius: 8px;
  color: #e86aff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.1px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
}

.log-card-btn svg {
  width: 18px;
  height: 18px;
}

.log-card-btn:active {
  transform: scale(0.96);
  background: rgba(232, 106, 255, 0.1);
  border-color: rgba(232, 106, 255, 0.5);
}

/* タブレット以上 */
@media (min-width: 768px) {
  .shop-detail-container {
    padding: 40px 24px;
  }

  .shop-detail-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
  }

  .shop-detail-back-btn:hover {
    background: rgba(232, 106, 255, 0.1);
    border-color: rgba(232, 106, 255, 0.5);
    box-shadow: 0 0 12px rgba(232, 106, 255, 0.2);
  }

  .shop-detail-title {
    font-size: 32px;
  }

  .shop-detail-subtitle {
    font-size: 16px;
  }

  .shop-detail-visit-count {
    margin-top: 16px;
    padding-top: 16px;
  }

  .shop-detail-visit-count-label {
    font-size: 13px;
  }

  .shop-detail-visit-count-value {
    font-size: 18px;
  }

  .shop-detail-average-rating {
    margin-top: 16px;
    padding-top: 16px;
  }

  .shop-detail-average-rating-label {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .shop-detail-average-rating-value {
    font-size: 18px;
  }

  .shop-detail-last-visit-date {
    margin-top: 16px;
    padding-top: 16px;
  }

  .shop-detail-last-visit-date-label {
    font-size: 13px;
  }

  .shop-detail-last-visit-date-value {
    font-size: 18px;
  }

  .shop-detail-records {
    margin-top: 32px;
  }

  .shop-detail-records-header {
    margin-bottom: 24px;
  }

  .shop-detail-records-title {
    font-size: 20px;
  }

  .shop-detail-records-count {
    font-size: 15px;
  }

  .logs-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
  }

  .log-card {
    padding: 24px;
    border-radius: 12px;
  }

  .log-card:hover {
    border-color: rgba(232, 106, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(232, 106, 255, 0.2);
    transform: translateY(-2px);
  }

  .log-card:hover::before {
    opacity: 1;
  }

  .log-card:active {
    transform: scale(0.98);
  }

  .log-card-header {
    margin-bottom: 16px;
    gap: 16px;
  }

  .log-card-image {
    width: 100px;
    height: 100px;
  }

  .log-card-title {
    font-size: 18px;
  }

  .log-card-title-clickable:hover {
    color: #e86aff;
  }

  .log-card-date {
    font-size: 14px;
  }

  .log-card-info {
    margin-bottom: 0;
  }

  .log-card-header-content {
    gap: 12px;
  }

  .log-card-ratings {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
  }

  .log-card-rating-item {
    flex: 1;
    min-width: 120px;
  }

  .log-card-rating-label {
    min-width: 70px;
    font-size: 13px;
  }

  .log-card-shop {
    flex: 1;
  }

  .log-card-shop-type {
    font-size: 13px;
  }

  .log-card-shop-name {
    font-size: 15px;
  }

  .log-card-preview {
    font-size: 18px;
    margin-bottom: 20px;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    white-space: pre-line;
    word-wrap: break-word;
  }

  .log-card-btn {
    padding: 8px;
    min-height: 36px;
    min-width: 36px;
  }

  .log-card-btn svg {
    width: 16px;
    height: 16px;
  }

  .log-card-btn:hover {
    background: rgba(232, 106, 255, 0.1);
    border-color: rgba(232, 106, 255, 0.5);
    box-shadow: 0 0 12px rgba(232, 106, 255, 0.2);
  }
}

/* お店情報セクション */
.shop-detail-info-section {
  margin-bottom: 32px;
  background-color: #161a22;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(232, 106, 255, 0.15);
}

.shop-detail-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(232, 106, 255, 0.1);
}

.shop-detail-info-title {
  font-size: 18px;
  font-weight: 500;
  color: #e8e8e8;
  letter-spacing: 0.2px;
}

.shop-detail-edit-btn,
.shop-detail-add-info-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(232, 106, 255, 0.3);
  border-radius: 8px;
  color: #e86aff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.1px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.shop-detail-edit-btn:active,
.shop-detail-add-info-btn:active {
  transform: scale(0.96);
  background: rgba(232, 106, 255, 0.1);
  border-color: rgba(232, 106, 255, 0.5);
}

.shop-detail-edit-actions {
  display: flex;
  gap: 12px;
}

.shop-detail-cancel-btn,
.shop-detail-save-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.1px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  border: 1px solid;
}

.shop-detail-cancel-btn {
  background: transparent;
  border-color: rgba(232, 106, 255, 0.3);
  color: #e86aff;
}

.shop-detail-cancel-btn:active:not(:disabled) {
  transform: scale(0.96);
  background: rgba(232, 106, 255, 0.1);
  border-color: rgba(232, 106, 255, 0.5);
}

.shop-detail-save-btn {
  background: rgba(232, 106, 255, 0.1);
  border-color: rgba(232, 106, 255, 0.3);
  color: #e86aff;
}

.shop-detail-save-btn:active:not(:disabled) {
  transform: scale(0.96);
  background: rgba(232, 106, 255, 0.2);
  border-color: rgba(232, 106, 255, 0.5);
}

.shop-detail-cancel-btn:disabled,
.shop-detail-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.shop-detail-memo-display,
.shop-detail-urls-display {
  margin-bottom: 20px;
}

.shop-detail-memo-label,
.shop-detail-urls-label {
  font-size: 14px;
  font-weight: 500;
  color: #6f8cff;
  margin-bottom: 8px;
  letter-spacing: 0.1px;
}

.shop-detail-memo-text {
  font-size: 14px;
  color: #e8e8e8;
  line-height: 1.6;
  white-space: pre-line;
  word-wrap: break-word;
  letter-spacing: 0.1px;
}

.shop-detail-urls-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-detail-url-item {
  display: flex;
  align-items: center;
}

.shop-detail-url-link {
  font-size: 14px;
  color: #6f8cff;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.3s ease;
}

.shop-detail-url-link:visited {
  color: #6f8cff;
}

.shop-detail-url-link:hover {
  color: #e86aff;
  text-decoration: underline;
}

.shop-detail-empty-info {
  text-align: center;
  padding: 24px;
  color: #a0a0a0;
  font-size: 14px;
}

.shop-detail-form-group {
  margin-bottom: 20px;
}

.shop-detail-form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #6f8cff;
  margin-bottom: 8px;
  letter-spacing: 0.1px;
}

.shop-detail-form-textarea,
.shop-detail-form-input {
  width: 100%;
  padding: 12px;
  background-color: rgba(232, 106, 255, 0.05);
  border: 1px solid rgba(232, 106, 255, 0.2);
  border-radius: 8px;
  color: #e8e8e8;
  font-size: 14px;
  font-family: inherit;
  letter-spacing: 0.1px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.shop-detail-form-textarea {
  font-size: 16px;
}

.shop-detail-form-textarea {
  resize: vertical;
  min-height: 100px;
}

.shop-detail-form-textarea:focus,
.shop-detail-form-input:focus {
  outline: none;
  border-color: rgba(232, 106, 255, 0.5);
  background-color: rgba(232, 106, 255, 0.08);
}

.shop-detail-form-textarea::placeholder,
.shop-detail-form-input::placeholder {
  color: #6f8cff;
  opacity: 0.5;
}

.shop-detail-url-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.shop-detail-url-input-group .shop-detail-form-input {
  flex: 1;
}

.shop-detail-url-remove-btn {
  min-width: 36px;
  min-height: 36px;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 8px;
  color: #ff6b6b;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.shop-detail-url-remove-btn:active {
  transform: scale(0.96);
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.5);
}

.shop-detail-url-add-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(111, 140, 255, 0.3);
  border-radius: 8px;
  color: #6f8cff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.1px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.shop-detail-url-add-btn:active {
  transform: scale(0.96);
  background: rgba(111, 140, 255, 0.1);
  border-color: rgba(111, 140, 255, 0.5);
}

.shop-detail-error-message {
  padding: 12px;
  background-color: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 8px;
  color: #ff6b6b;
  font-size: 14px;
  margin-top: 12px;
  letter-spacing: 0.1px;
}

/* タブレット以上 */
@media (min-width: 768px) {
  .shop-detail-info-section {
    padding: 24px;
    border-radius: 12px;
  }

  .shop-detail-info-title {
    font-size: 20px;
  }

  .shop-detail-edit-btn:hover,
  .shop-detail-add-info-btn:hover {
    background: rgba(232, 106, 255, 0.1);
    border-color: rgba(232, 106, 255, 0.5);
    box-shadow: 0 0 12px rgba(232, 106, 255, 0.2);
  }

  .shop-detail-cancel-btn:hover:not(:disabled),
  .shop-detail-save-btn:hover:not(:disabled) {
    transform: translateY(-1px);
  }

  .shop-detail-cancel-btn:hover:not(:disabled) {
    background: rgba(232, 106, 255, 0.1);
    border-color: rgba(232, 106, 255, 0.5);
  }

  .shop-detail-save-btn:hover:not(:disabled) {
    background: rgba(232, 106, 255, 0.2);
    border-color: rgba(232, 106, 255, 0.5);
  }

  .shop-detail-url-remove-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.5);
  }

  .shop-detail-url-add-btn:hover {
    background: rgba(111, 140, 255, 0.1);
    border-color: rgba(111, 140, 255, 0.5);
  }
}

.record-ranking-container {
  min-height: 100vh;
  min-height: 100dvh; /* モバイルのビューポート高さに対応 */
  padding: 20px 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 100px; /* ナビゲーションバーのための余白を確保 */
}

.ranking-section-title {
  font-size: 20px;
  font-weight: 500;
  color: #e8e8e8;
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}

.ranking-type-selector {
  margin-bottom: 24px;
}

.ranking-type-select {
  width: 100%;
  padding: 12px 16px;
  background-color: #161a22;
  border: 1px solid rgba(232, 106, 255, 0.15);
  border-radius: 12px;
  color: #e8e8e8;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.1px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236f8cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.ranking-type-select:focus {
  outline: none;
  border-color: rgba(232, 106, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(232, 106, 255, 0.1);
}

.ranking-type-select:active {
  transform: scale(0.98);
}

.ranking-type-select option {
  background-color: #161a22;
  color: #e8e8e8;
  padding: 8px;
}

.ranking-section {
  margin-top: 0;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ranking-item {
  background-color: #161a22;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(232, 106, 255, 0.15);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.ranking-item.clickable {
  cursor: pointer;
}

.ranking-item.clickable:active {
  transform: scale(0.98);
  border-color: rgba(232, 106, 255, 0.3);
}

.ranking-item.expanded {
  border-color: rgba(232, 106, 255, 0.4);
}

.ranking-rank {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e86aff 0%, #6f8cff 100%);
  border-radius: 12px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.ranking-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.ranking-top-section {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}

.ranking-bottom-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-image-container {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  min-width: 100px;
  min-height: 100px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(232, 106, 255, 0.2);
  background: rgba(232, 106, 255, 0.05);
}

.ranking-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ranking-info {
  flex: 1;
  min-width: 0;
}

.ranking-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.ranking-shop {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.ranking-shop-type {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.ranking-shop-name {
  font-size: 14px;
  color: #e8e8e8;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.ranking-shop-name.clickable {
  cursor: pointer;
  color: #6f8cff;
  transition: color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  text-decoration: underline;
}

.ranking-shop-name.clickable:hover {
  color: #e86aff;
}

.ranking-shop-name.clickable:active {
  color: #e86aff;
  opacity: 0.8;
}

.ranking-date {
  font-size: 14px;
  color: #6f8cff;
  white-space: nowrap;
  font-weight: 400;
  flex-shrink: 0;
}

.ranking-girl-name {
  font-size: 16px;
  font-weight: 500;
  color: #e8e8e8;
  margin-bottom: 12px;
  letter-spacing: 0.1px;
  line-height: 1.4;
}

.ranking-girl-name-link.clickable {
  cursor: pointer;
  color: #6f8cff;
  transition: color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  text-decoration: underline;
}

.ranking-girl-name-link.clickable:hover {
  color: #e86aff;
}

.ranking-girl-name-link.clickable:active {
  color: #e86aff;
  opacity: 0.8;
}

.ranking-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ranking-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  width: 100%;
}

.ranking-rating-label {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  min-width: 60px;
  flex-shrink: 0;
  letter-spacing: 0.1px;
}

.ranking-rating .star-rating {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  justify-content: flex-start;
  gap: 2px;
}

.ranking-rating .star-rating .star {
  font-size: 14px;
  flex-shrink: 1;
}

.ranking-rating-value {
  font-size: 12px;
  color: #a0a0a0;
  font-weight: 400;
  margin-left: 4px;
  letter-spacing: 0.1px;
  flex-shrink: 0;
  white-space: nowrap;
}


.ranking-visit-count {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ranking-visit-count-label {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  min-width: 60px;
  flex-shrink: 0;
  letter-spacing: 0.1px;
}

.ranking-visit-count-value {
  font-size: 16px;
  color: #e8e8e8;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.ranking-expanded-content {
  width: 100%;
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 106, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ranking-other-ratings {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ranking-price,
.ranking-course {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(111, 140, 255, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(111, 140, 255, 0.2);
}

.ranking-price-label,
.ranking-course-label {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  min-width: 70px;
  flex-shrink: 0;
  letter-spacing: 0.1px;
}

.ranking-price-value,
.ranking-course-value {
  font-size: 16px;
  color: #e8e8e8;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.ranking-review {
  margin-top: 4px;
}

.ranking-review-label {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.1px;
}

.ranking-review-text {
  font-size: 14px;
  color: #e8e8e8;
  line-height: 1.6;
  letter-spacing: 0.1px;
  white-space: pre-line;
  word-wrap: break-word;
}

.loading-message,
.error-message,
.empty-message {
  padding: 24px;
  text-align: center;
  color: #a0a0a0;
  font-size: 14px;
  letter-spacing: 0.1px;
}

.error-message {
  color: #ff6b6b;
  background-color: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 8px;
}

/* タブレット以上 */
@media (min-width: 768px) {
  .record-ranking-container {
    padding: 40px 24px;
  }

  .ranking-section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .ranking-type-selector {
    margin-bottom: 32px;
  }

  .ranking-type-select {
    padding: 14px 20px;
    font-size: 15px;
    padding-right: 44px;
  }

  .ranking-type-select:hover {
    background-color: rgba(232, 106, 255, 0.05);
    border-color: rgba(232, 106, 255, 0.3);
  }

  .ranking-list {
    gap: 20px;
  }

  .ranking-item {
    padding: 24px;
    border-radius: 12px;
  }

  .ranking-rank {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .ranking-image-container {
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
    border-radius: 16px;
  }

  .ranking-content {
    gap: 20px;
  }

  .ranking-top-section {
    gap: 20px;
  }

  .ranking-header {
    margin-bottom: 16px;
  }

  .ranking-shop-type {
    font-size: 13px;
  }

  .ranking-shop-name {
    font-size: 15px;
  }

  .ranking-date {
    font-size: 14px;
  }

  .ranking-girl-name {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .ranking-rating-label,
  .ranking-visit-count-label {
    min-width: 70px;
    font-size: 13px;
  }

  .ranking-rating-value {
    font-size: 13px;
  }

  .ranking-visit-count-value {
    font-size: 18px;
  }

  .ranking-item.clickable:hover {
    border-color: rgba(232, 106, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }

  .ranking-expanded-content {
    margin-top: 20px;
    padding-top: 20px;
    gap: 16px;
  }

  .ranking-price,
  .ranking-course {
    padding: 14px;
  }

  .ranking-price-label,
  .ranking-course-label {
    min-width: 80px;
    font-size: 13px;
  }

  .ranking-price-value,
  .ranking-course-value {
    font-size: 18px;
  }

  .ranking-review-label {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .ranking-review-text {
    font-size: 15px;
  }
}

.ranking-charts-section {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ranking-chart-container {
  margin-bottom: 0;
}

.ranking-chart-title {
  font-size: 20px;
  font-weight: 500;
  color: #e8e8e8;
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}

/* タブレット以上 */
@media (min-width: 768px) {
  .ranking-charts-section {
    margin-top: 40px;
    gap: 40px;
  }

  .ranking-chart-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
}

.chart-container {
  width: 100%;
  padding: 20px;
  background: rgba(26, 26, 46, 0.6);
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-wrapper {
  width: 100%;
  height: 300px;
  position: relative;
}

.chart-loading,
.chart-error,
.chart-empty {
  text-align: center;
  padding: 40px 20px;
  color: #a0a0a0;
  font-size: 14px;
}

.chart-error {
  color: #ff6b6b;
}

@media (max-width: 768px) {
  .chart-container {
    padding: 16px;
    margin-bottom: 16px;
  }

  .chart-wrapper {
    height: 250px;
  }
}

.chart-container {
  width: 100%;
  padding: 20px;
  background: rgba(26, 26, 46, 0.6);
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-wrapper {
  width: 100%;
  height: 300px;
  position: relative;
}

.chart-loading,
.chart-error,
.chart-empty {
  text-align: center;
  padding: 40px 20px;
  color: #a0a0a0;
  font-size: 14px;
}

.chart-error {
  color: #ff6b6b;
}

@media (max-width: 768px) {
  .chart-container {
    padding: 16px;
    margin-bottom: 16px;
  }

  .chart-wrapper {
    height: 250px;
  }
}


.chart-container {
  width: 100%;
  padding: 20px;
  background: rgba(26, 26, 46, 0.6);
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-wrapper {
  width: 100%;
  height: 300px;
  position: relative;
}

.chart-loading,
.chart-error,
.chart-empty {
  text-align: center;
  padding: 40px 20px;
  color: #a0a0a0;
  font-size: 14px;
}

.chart-error {
  color: #ff6b6b;
}

@media (max-width: 768px) {
  .chart-container {
    padding: 16px;
    margin-bottom: 16px;
  }

  .chart-wrapper {
    height: 250px;
  }
}

.girl-detail-container {
  min-height: 100vh;
  min-height: 100dvh; /* モバイルのビューポート高さに対応 */
  padding: 20px 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 100px; /* ナビゲーションバーのための余白を確保 */
}

.girl-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(232, 106, 255, 0.15);
}

.girl-detail-image-container {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  min-width: 120px;
  min-height: 120px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(232, 106, 255, 0.2);
  background: rgba(232, 106, 255, 0.05);
  position: relative;
}

.girl-detail-image-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.girl-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  max-width: 100%;
  max-height: 100%;
  cursor: pointer;
}

.girl-detail-image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(232, 106, 255, 0.3);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e86aff;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.girl-detail-image-nav:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(232, 106, 255, 0.5);
}

.girl-detail-image-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.girl-detail-image-nav-prev {
  left: 4px;
}

.girl-detail-image-nav-next {
  right: 4px;
}

.girl-detail-image-nav svg {
  width: 14px;
  height: 14px;
}

.girl-detail-image-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #e8e8e8;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  z-index: 10;
}

.girl-detail-back-btn {
  min-height: 40px;
  min-width: 40px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(232, 106, 255, 0.3);
  border-radius: 8px;
  color: #e86aff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.girl-detail-back-btn:active {
  transform: scale(0.96);
  background: rgba(232, 106, 255, 0.1);
  border-color: rgba(232, 106, 255, 0.5);
}

.girl-detail-title-section {
  flex: 1;
}

.girl-detail-title {
  font-size: 24px;
  font-weight: 600;
  color: #e8e8e8;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.girl-detail-subtitle {
  font-size: 14px;
  color: #6f8cff;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
}

.girl-detail-visit-count {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 106, 255, 0.1);
}

.girl-detail-visit-count-label {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  letter-spacing: 0.1px;
  margin-right: 8px;
}

.girl-detail-visit-count-value {
  font-size: 16px;
  font-weight: 600;
  color: #e86aff;
  letter-spacing: 0.1px;
}

.girl-detail-total-price {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 106, 255, 0.1);
}

.girl-detail-total-price-label {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  letter-spacing: 0.1px;
  margin-right: 8px;
}

.girl-detail-total-price-value {
  font-size: 16px;
  font-weight: 600;
  color: #e86aff;
  letter-spacing: 0.1px;
}

.girl-detail-average-rating {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 106, 255, 0.1);
}

.girl-detail-average-rating-label {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  letter-spacing: 0.1px;
  margin-bottom: 8px;
  display: block;
}

.girl-detail-average-rating-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.girl-detail-average-rating-value {
  font-size: 16px;
  font-weight: 600;
  color: #ffd700;
  letter-spacing: 0.1px;
}

.girl-detail-records {
  margin-top: 24px;
}

.girl-detail-records-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.girl-detail-records-title {
  font-size: 18px;
  font-weight: 500;
  color: #e8e8e8;
  letter-spacing: 0.2px;
}

.girl-detail-records-count {
  font-size: 14px;
  color: #6f8cff;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.logs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.log-card {
  background-color: #161a22;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(232, 106, 255, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.log-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #e86aff, #6f8cff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.log-card:active {
  border-color: rgba(232, 106, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(232, 106, 255, 0.2);
  transform: scale(0.98);
}

.log-card:active::before {
  opacity: 1;
}

.log-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.log-card-title {
  font-size: 16px;
  font-weight: 500;
  color: #e8e8e8;
  flex: 1;
  letter-spacing: 0.1px;
  line-height: 1.4;
}

.log-card-date {
  font-size: 14px;
  color: #6f8cff;
  white-space: nowrap;
  font-weight: 400;
  flex-shrink: 0;
}

.log-card-info {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.log-card-shop {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.log-card-shop-type {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.log-card-shop-name {
  font-size: 14px;
  color: #e8e8e8;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.log-card-ratings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.log-card-ratings .log-card-rating-item {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.log-card-rating-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.log-card-rating-label {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  min-width: 60px;
  letter-spacing: 0.1px;
}

.log-card-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(111, 140, 255, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(111, 140, 255, 0.2);
  animation: fadeIn 0.3s ease-in-out;
}

.log-card-price-label {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.log-card-price-value {
  font-size: 16px;
  color: #e8e8e8;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.log-card-preview {
  font-size: 13px;
  color: #a0a0a0;
  line-height: 1.6;
  margin-bottom: 16px;
  letter-spacing: 0.1px;
  white-space: pre-line;
  word-wrap: break-word;
  animation: fadeIn 0.3s ease-in-out;
}

.log-card-preview.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.log-card-preview.expanded {
  display: block;
}

.loading-message,
.error-message,
.empty-message {
  padding: 24px;
  text-align: center;
  color: #a0a0a0;
  font-size: 14px;
  letter-spacing: 0.1px;
}

.error-message {
  color: #ff6b6b;
  background-color: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 8px;
}

.empty-message {
  background-color: #161a22;
  border: 1px solid rgba(232, 106, 255, 0.15);
  border-radius: 12px;
}

.log-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 106, 255, 0.1);
}

.log-card-footer-right {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.log-card-btn {
  min-height: 40px;
  min-width: 40px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(232, 106, 255, 0.3);
  border-radius: 8px;
  color: #e86aff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.1px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
}

.log-card-btn svg {
  width: 18px;
  height: 18px;
}

.log-card-btn:active {
  transform: scale(0.96);
  background: rgba(232, 106, 255, 0.1);
  border-color: rgba(232, 106, 255, 0.5);
}

/* タブレット以上 */
@media (min-width: 768px) {
  .girl-detail-container {
    padding: 40px 24px;
  }

  .girl-detail-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
  }

  .girl-detail-image-container {
    width: 160px;
    height: 160px;
    min-width: 160px;
    min-height: 160px;
    border-radius: 16px;
  }

  .girl-detail-image-nav {
    width: 28px;
    height: 28px;
  }

  .girl-detail-image-nav svg {
    width: 16px;
    height: 16px;
  }

  .girl-detail-back-btn:hover {
    background: rgba(232, 106, 255, 0.1);
    border-color: rgba(232, 106, 255, 0.5);
    box-shadow: 0 0 12px rgba(232, 106, 255, 0.2);
  }

  .girl-detail-title {
    font-size: 32px;
  }

  .girl-detail-subtitle {
    font-size: 16px;
  }

  .girl-detail-visit-count {
    margin-top: 16px;
    padding-top: 16px;
  }

  .girl-detail-visit-count-label {
    font-size: 13px;
  }

  .girl-detail-visit-count-value {
    font-size: 18px;
  }

  .girl-detail-average-rating {
    margin-top: 16px;
    padding-top: 16px;
  }

  .girl-detail-average-rating-label {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .girl-detail-average-rating-value {
    font-size: 18px;
  }

  .girl-detail-records {
    margin-top: 32px;
  }

  .girl-detail-records-header {
    margin-bottom: 24px;
  }

  .girl-detail-records-title {
    font-size: 20px;
  }

  .girl-detail-records-count {
    font-size: 15px;
  }

  .logs-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
  }

  .log-card {
    padding: 24px;
    border-radius: 12px;
  }

  .log-card:hover {
    border-color: rgba(232, 106, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(232, 106, 255, 0.2);
    transform: translateY(-2px);
  }

  .log-card:hover::before {
    opacity: 1;
  }

  .log-card:active {
    transform: scale(0.98);
  }

  .log-card-header {
    margin-bottom: 16px;
  }

  .log-card-title {
    font-size: 18px;
  }

  .log-card-date {
    font-size: 14px;
  }

  .log-card-info {
    margin-bottom: 16px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .log-card-ratings {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
  }

  .log-card-rating-item {
    flex: 1;
    min-width: 120px;
  }

  .log-card-rating-label {
    min-width: 70px;
    font-size: 13px;
  }

  .log-card-shop {
    flex: 1;
  }

  .log-card-shop-type {
    font-size: 13px;
  }

  .log-card-shop-name {
    font-size: 15px;
  }

  .log-card-preview {
    font-size: 14px;
    margin-bottom: 20px;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    white-space: pre-line;
    word-wrap: break-word;
  }

  .log-card-btn {
    padding: 8px;
    min-height: 36px;
    min-width: 36px;
  }

  .log-card-btn svg {
    width: 16px;
    height: 16px;
  }

  .log-card-btn:hover {
    background: rgba(232, 106, 255, 0.1);
    border-color: rgba(232, 106, 255, 0.5);
    box-shadow: 0 0 12px rgba(232, 106, 255, 0.2);
  }
}

/* お店情報セクション */
.girl-detail-info-section {
  margin-bottom: 32px;
  background-color: #161a22;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(232, 106, 255, 0.15);
}

.girl-detail-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(232, 106, 255, 0.1);
}

.girl-detail-info-title {
  font-size: 18px;
  font-weight: 500;
  color: #e8e8e8;
  letter-spacing: 0.2px;
}

.girl-detail-edit-btn,
.girl-detail-add-info-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(232, 106, 255, 0.3);
  border-radius: 8px;
  color: #e86aff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.1px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.girl-detail-edit-btn:active,
.girl-detail-add-info-btn:active {
  transform: scale(0.96);
  background: rgba(232, 106, 255, 0.1);
  border-color: rgba(232, 106, 255, 0.5);
}

.girl-detail-edit-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(232, 106, 255, 0.1);
  justify-content: flex-end;
}

.girl-detail-cancel-btn,
.girl-detail-save-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.1px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  border: 1px solid;
}

.girl-detail-cancel-btn {
  background: transparent;
  border-color: rgba(232, 106, 255, 0.3);
  color: #e86aff;
}

.girl-detail-cancel-btn:active:not(:disabled) {
  transform: scale(0.96);
  background: rgba(232, 106, 255, 0.1);
  border-color: rgba(232, 106, 255, 0.5);
}

.girl-detail-save-btn {
  background: rgba(232, 106, 255, 0.1);
  border-color: rgba(232, 106, 255, 0.3);
  color: #e86aff;
}

.girl-detail-save-btn:active:not(:disabled) {
  transform: scale(0.96);
  background: rgba(232, 106, 255, 0.2);
  border-color: rgba(232, 106, 255, 0.5);
}

.girl-detail-cancel-btn:disabled,
.girl-detail-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.girl-detail-memo-display,
.girl-detail-urls-display {
  margin-bottom: 20px;
}

.girl-detail-memo-label,
.girl-detail-urls-label {
  font-size: 14px;
  font-weight: 600;
  color: #e8e8e8;
  margin-bottom: 8px;
  letter-spacing: 0.1px;
}

.girl-detail-memo-text {
  font-size: 14px;
  color: #e8e8e8;
  line-height: 1.6;
  white-space: pre-line;
  word-wrap: break-word;
  letter-spacing: 0.1px;
}

.girl-detail-urls-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.girl-detail-url-item {
  display: flex;
  align-items: center;
}

.girl-detail-url-link {
  font-size: 14px;
  color: #6f8cff;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.3s ease;
}

.girl-detail-url-link:visited {
  color: #6f8cff;
}

.girl-detail-url-link:hover {
  color: #e86aff;
  text-decoration: underline;
}

.girl-detail-empty-info {
  text-align: center;
  padding: 24px;
  color: #a0a0a0;
  font-size: 14px;
}

.girl-detail-form-group {
  margin-bottom: 20px;
}

.girl-detail-form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #6f8cff;
  margin-bottom: 8px;
  letter-spacing: 0.1px;
}

.girl-detail-form-textarea,
.girl-detail-form-input {
  width: 100%;
  padding: 12px;
  background-color: rgba(232, 106, 255, 0.05);
  border: 1px solid rgba(232, 106, 255, 0.2);
  border-radius: 8px;
  color: #e8e8e8;
  font-size: 14px;
  font-family: inherit;
  letter-spacing: 0.1px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.girl-detail-form-textarea {
  resize: vertical;
  min-height: 100px;
}

.girl-detail-form-textarea:focus,
.girl-detail-form-input:focus {
  outline: none;
  border-color: rgba(232, 106, 255, 0.5);
  background-color: rgba(232, 106, 255, 0.08);
}

.girl-detail-form-textarea::placeholder,
.girl-detail-form-input::placeholder {
  color: #6f8cff;
  opacity: 0.5;
}

.girl-detail-image-url-item {
  margin-bottom: 16px;
}

.girl-detail-url-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.girl-detail-url-input-group .girl-detail-form-input {
  flex: 1;
}

.girl-detail-url-remove-btn {
  min-width: 36px;
  min-height: 36px;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 8px;
  color: #ff6b6b;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.girl-detail-url-remove-btn:active {
  transform: scale(0.96);
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.5);
}

.girl-detail-url-add-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(111, 140, 255, 0.3);
  border-radius: 8px;
  color: #6f8cff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.1px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.girl-detail-url-add-btn:active {
  transform: scale(0.96);
  background: rgba(111, 140, 255, 0.1);
  border-color: rgba(111, 140, 255, 0.5);
}

.girl-detail-error-message {
  padding: 12px;
  background-color: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 8px;
  color: #ff6b6b;
  font-size: 14px;
  margin-top: 12px;
  letter-spacing: 0.1px;
}

.girl-detail-image-preview {
  margin-top: 12px;
  width: 100%;
  max-width: 300px;
  max-height: 300px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(232, 106, 255, 0.2);
  background: rgba(232, 106, 255, 0.05);
}

.girl-detail-image-preview-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.girl-detail-image-error {
  margin-top: 8px;
  padding: 8px;
  background-color: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 8px;
  color: #ff6b6b;
  font-size: 12px;
  letter-spacing: 0.1px;
}

/* タブレット以上 */
@media (min-width: 768px) {
  .girl-detail-info-section {
    padding: 24px;
    border-radius: 12px;
  }

  .girl-detail-info-title {
    font-size: 20px;
  }

  .girl-detail-edit-btn:hover,
  .girl-detail-add-info-btn:hover {
    background: rgba(232, 106, 255, 0.1);
    border-color: rgba(232, 106, 255, 0.5);
    box-shadow: 0 0 12px rgba(232, 106, 255, 0.2);
  }

  .girl-detail-cancel-btn:hover:not(:disabled),
  .girl-detail-save-btn:hover:not(:disabled) {
    transform: translateY(-1px);
  }

  .girl-detail-cancel-btn:hover:not(:disabled) {
    background: rgba(232, 106, 255, 0.1);
    border-color: rgba(232, 106, 255, 0.5);
  }

  .girl-detail-save-btn:hover:not(:disabled) {
    background: rgba(232, 106, 255, 0.2);
    border-color: rgba(232, 106, 255, 0.5);
  }

  .girl-detail-url-remove-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.5);
  }

  .girl-detail-url-add-btn:hover {
    background: rgba(111, 140, 255, 0.1);
    border-color: rgba(111, 140, 255, 0.5);
  }
}

/* お店情報セクション */
.girl-detail-shops-section {
  margin-bottom: 32px;
}

.girl-detail-shops-title {
  font-size: 18px;
  font-weight: 500;
  color: #e8e8e8;
  letter-spacing: 0.2px;
  margin-bottom: 20px;
}

.girl-detail-shops-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.girl-detail-shop-item {
  background-color: #161a22;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(232, 106, 255, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.girl-detail-shop-item:active {
  border-color: rgba(232, 106, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(232, 106, 255, 0.2);
  transform: scale(0.98);
}

.girl-detail-shop-item-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(232, 106, 255, 0.1);
}

.girl-detail-shop-type {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.girl-detail-shop-name {
  font-size: 16px;
  font-weight: 500;
  color: #e8e8e8;
  letter-spacing: 0.1px;
  line-height: 1.4;
}

.girl-detail-shop-item-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.girl-detail-shop-item-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.girl-detail-shop-item-stat-label {
  font-size: 12px;
  color: #6f8cff;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.girl-detail-shop-item-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: #e86aff;
  letter-spacing: 0.1px;
}

.girl-detail-shop-item-rating {
  display: flex;
  align-items: center;
  gap: 12px;
}

.girl-detail-shop-item-rating-value {
  font-size: 14px;
  font-weight: 600;
  color: #ffd700;
  letter-spacing: 0.1px;
}

/* タブレット以上 */
@media (min-width: 768px) {
  .girl-detail-shops-section {
    margin-bottom: 40px;
  }

  .girl-detail-shops-title {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .girl-detail-shops-list {
    gap: 20px;
  }

  .girl-detail-shop-item {
    padding: 24px;
    border-radius: 12px;
  }

  .girl-detail-shop-item:hover {
    border-color: rgba(232, 106, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(232, 106, 255, 0.2);
    transform: translateY(-2px);
  }

  .girl-detail-shop-item:active {
    transform: scale(0.98);
  }

  .girl-detail-shop-item-header {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .girl-detail-shop-type {
    font-size: 13px;
  }

  .girl-detail-shop-name {
    font-size: 18px;
  }

  .girl-detail-shop-item-stats {
    flex-direction: row;
    gap: 24px;
  }

  .girl-detail-shop-item-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .girl-detail-shop-item-stat-label {
    font-size: 13px;
  }

  .girl-detail-shop-item-stat-value {
    font-size: 16px;
  }

  .girl-detail-shop-item-rating {
    gap: 12px;
  }

  .girl-detail-shop-item-rating-value {
    font-size: 16px;
  }
}

/* 画像ポップアップ */
.girl-detail-image-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.girl-detail-image-popup-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.girl-detail-image-popup-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.girl-detail-image-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(232, 106, 255, 0.3);
  border-radius: 50%;
  color: #e86aff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.girl-detail-image-popup-close:active {
  transform: scale(0.95);
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(232, 106, 255, 0.5);
}

.girl-detail-image-popup-close svg {
  width: 20px;
  height: 20px;
}

.girl-detail-image-popup-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(232, 106, 255, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e86aff;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.girl-detail-image-popup-nav:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(232, 106, 255, 0.5);
}

.girl-detail-image-popup-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.girl-detail-image-popup-nav-prev {
  left: 20px;
}

.girl-detail-image-popup-nav-next {
  right: 20px;
}

.girl-detail-image-popup-nav svg {
  width: 20px;
  height: 20px;
}

.girl-detail-image-popup-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #e8e8e8;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1001;
}

.bottom-navigation {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #1a1a1a;
  border-top: 1px solid #2a2a2a;
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  min-width: 60px;
  color: #888;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-item:active {
  opacity: 0.7;
}

.nav-item.active {
  color: #e8e8e8;
}

.nav-item.active .nav-icon {
  color: #e8e8e8;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: inherit;
  transition: color 0.2s ease;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
}

.nav-profile-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-label {
  font-size: 11px;
  font-weight: 400;
  color: inherit;
  transition: color 0.2s ease;
}

/* アクティブ状態のアイコンを少し強調 */
.nav-item.active .nav-icon {
  transform: scale(1.05);
}

/* モバイルでのタッチ領域を確保 */
@media (max-width: 768px) {
  .nav-item {
    min-width: 64px;
    padding: 10px 8px;
  }
  
  .nav-label {
    font-size: 10px;
  }
}






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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.app {
  min-height: 100vh;
  min-height: 100dvh; /* モバイルのビューポート高さに対応 */
  background-color: #0d0f14;
  color: #e8e8e8;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* iOS Safari のバウンススクロールを防ぐ */
  overscroll-behavior: none;
  /* テキスト選択の最適化 */
  -webkit-user-select: none;
  user-select: none;
}

/* ボタンやリンクはテキスト選択可能に */
button,
a {
  -webkit-user-select: auto;
  user-select: auto;
}

/* リンクの基本スタイル */
a {
  color: inherit;
  text-decoration: none;
}

/* 訪問済みリンクの色を変更しない（親要素の色を継承） */
a:visited {
  color: inherit;
}

a:hover,
a:active {
  color: inherit;
}

/* 公開URLなどの外部リンクのスタイル */
.public-url-link {
  color: #4a90e2;
}

.public-url-link:visited {
  color: #4a90e2;
}
