*{box-sizing:border-box}
:root{
  --app-visible-height: 100vh;
  --app-header-height: clamp(56px, 9vw, 92px);
  --app-header-padding-y: clamp(8px, 1.8vw, 16px);
  --app-header-padding-x: clamp(16px, 3vw, 28px);
}

.help-modal {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  animation: none;
  padding: 16px 0;
}

.help-modal .modal-content {
  position: relative;
  top: auto;
  left: auto;
  width: min(520px, calc(100vw - 32px));
  height: auto;
  max-height: calc(100vh - 80px);
  margin: 40px auto;
  border-radius: 20px;
  padding: 32px 28px;
  overflow-y: auto;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  text-align: left;
  animation: modalFadeIn 0.4s ease;
  background: linear-gradient(135deg, #ffffff 0%, #f6fbff 50%, #f0f5ff 100%);
}

.help-modal .modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  font-size: 30px;
  border-width: 2px;
  animation: none;
  box-shadow: 0 10px 24px rgba(255, 107, 107, 0.35),
              inset 0 2px 6px rgba(255, 255, 255, 0.35);
  z-index: 2;
}

.help-modal .modal-close:hover,
.help-modal .modal-close:focus {
  transform: scale(1.12);
}

.help-modal .modal-close-btn {
  margin: 44px 0 24px auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  animation: none;
position: relative;
}

.help-modal .modal-close-btn:hover,
.help-modal .modal-close-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.help-modal .modal-close-btn:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.help-modal-content h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.5rem;
  color: #1e3c72;
}

.help-intro,
.help-closing {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #333;
}

.help-steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.help-step {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.1) 100%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.help-step-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f2f7ff 100%);
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.9), 0 10px 24px rgba(102, 126, 234, 0.25);
}

.help-step-figure svg {
  width: 60px;
  height: 60px;
}

.help-step-body strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #1e3c72;
}

.help-step-body p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: #1f1f1f;
}

.help-illus-circle {
  fill: rgba(102, 126, 234, 0.22);
  stroke: #1e3c72;
  stroke-width: 2;
}

.help-illus-arc {
  fill: none;
  stroke: #2a5298;
  stroke-width: 4;
  stroke-linecap: round;
}

.help-illus-arrow,
.help-illus-pointer {
  fill: #2a5298;
}

.help-illus-line {
  stroke: #2a5298;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-illus-list,
.help-illus-card,
.help-illus-button {
  fill: rgba(30, 60, 114, 0.08);
  stroke: #2a5298;
  stroke-width: 2;
}

.help-illus-card {
  fill: rgba(236, 245, 255, 0.9);
}

.help-illus-button {
  fill: rgba(72, 207, 173, 0.2);
}

.help-illus-bullet {
  fill: #2a5298;
}

.help-illus-check {
  fill: none;
  stroke: #2a5298;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-hints {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 206, 84, 0.16) 0%, rgba(255, 154, 158, 0.1) 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.help-hints h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: #8a5cb8;
}

.help-tips {
  margin: 0;
  padding-left: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.help-tips li {
  margin-bottom: 6px;
}

@media (max-width: 600px) {
  .app-header__help-button {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .help-modal .modal-content {
    width: calc(100vw - 24px);
    margin: 24px auto;
    padding: 24px 20px;
    max-height: calc(100vh - 48px);
  }

  .help-step {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 16px 14px;
  }

  .help-step-figure {
    margin: 0 auto 12px;
  }

  .help-step-body strong {
    text-align: center;
  }

  .help-step-body p {
    text-align: center;
  }
}

html,body{margin:0;padding:0;border:0;height:100%;width:100%;box-sizing:border-box;
  /* Android・モバイル端末向け最適化 */
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  /* iPhone SE用の環境対応 */
  -webkit-text-size-adjust: 100%;
}

/* スプラッシュスクリーン */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #ff6b6b 60%, #feca57 100%);
  background-size: 300% 300%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: splashGradient 2s ease-in-out infinite;
}

.splash-content {
  text-align: center;
  color: white;
  animation: splashFadeIn 0.8s ease-out;
}
.splash-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(260px, 70vw);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #fff;
  padding: 0;
  border: 6px solid #fff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}
.splash-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(110%);
}

.app-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: iconBounce 1.5s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(255,255,255,0.8);
}

.app-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  letter-spacing: 2px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

/* メインアプリケーション（初期状態では非表示） */
.main-app {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

.main-app.show {
  display: block;
  opacity: 1;
}

/* スプラッシュスクリーン非表示のアニメーション */
.splash-screen.hide {
  animation: splashFadeOut 0.5s ease-in forwards;
}

@keyframes splashGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes splashFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splashFadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.1);
  }
}

@keyframes iconBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* グローブローディング表示 */
.globe-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.5s ease-out;
}

.globe-loading.hide {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  color: #333;
  animation: loadingPulse 2s ease-in-out infinite;
}

.loading-spinner-globe {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(0,0,0,0.1);
  border-top: 6px solid #667eea;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1.2s linear infinite;
}

.loading-content p {
  margin: 8px 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.loading-subtext {
  font-size: 0.9rem !important;
  opacity: 0.8;
  font-weight: normal !important;
}

@keyframes loadingPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.98);
  }
}

/* モーダル表示時の body スタイル */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}
.app-header,
.app-footer {
  color: #fff;
  position: sticky;
  z-index: 10;
}
.app-header {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: var(--app-header-padding-y) var(--app-header-padding-x);
  min-height: var(--app-header-height);
  background: linear-gradient(135deg, rgba(30, 60, 114, 0.94) 0%, rgba(46, 91, 160, 0.96) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 22px -12px rgba(12, 32, 75, 0.6);
  backdrop-filter: blur(18px);
}
.app-footer {
  padding: 12px 16px;
}
.app-header__title {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.4;
  color: #f5f8ff;
  text-shadow: 0 1px 2px rgba(5, 18, 44, 0.35);
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.8vw, 14px);
  min-height: calc(var(--app-header-height) - (2 * var(--app-header-padding-y)));
}

.header-title-icon {
  width: clamp(32px, calc(var(--app-header-height) - (2 * var(--app-header-padding-y))), var(--app-header-height));
  height: clamp(32px, calc(var(--app-header-height) - (2 * var(--app-header-padding-y))), var(--app-header-height));
  object-fit: contain;
  flex-shrink: 0;
}
.app-header__help-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.18);
  color: #f7faff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 12px -6px rgba(10, 32, 72, 0.6);
  overflow: visible;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.app-header__help-button:before {
  display: none;
}
.app-header__help-button:hover,
.app-header__help-button:focus {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -8px rgba(10, 32, 72, 0.6);
  outline: none;
}
.app-header__help-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px -6px rgba(10, 32, 72, 0.5);
}
.app-header__help-button:focus-visible {
  outline: 3px solid rgba(255, 206, 84, 0.8);
  outline-offset: 2px;
}
.app-footer {
  bottom: 0;
  background: #111;
}
.app-main{
  position:relative;margin:0;padding:0;border:0;user-select:none;
  -webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;z-index:1;
  display:flex;flex-direction:column;
  height:var(--app-main-height, calc(var(--app-visible-height) - var(--app-header-height)));
  min-height: var(--app-main-height, calc(var(--app-visible-height) - var(--app-header-height))); /* iPhone SE対応 */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
#globe-container{
  flex:1;position:relative;margin:0;padding:0;border:0;user-select:none;
  -webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;
  min-height:350px;background:#ffffff !important;
}
#globe-container canvas{
  display:block;width:100%!important;height:100%!important;outline:none;
  margin:0;padding:0;border:0;user-select:none;
  -webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;
  background-color:#ffffff !important;
}
.controls-panel{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #ff6b6b 60%, #feca57 100%);
  background-size: 300% 300%;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 30px rgba(102,126,234,0.3), 
              0 0 0 2px rgba(255,255,255,0.2),
              inset 0 2px 8px rgba(255,255,255,0.3);
  display: flex;
  flex-direction: column;
  gap: 16px;
  user-select: text;
  backdrop-filter: blur(20px);
  border-top: 3px solid rgba(255,255,255,0.4);
  border-radius: 25px 25px 0 0;
  z-index: 100;
  animation: panelGradient 8s ease-in-out infinite,
             panelFloat 4s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.controls-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes panelGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes panelFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

@keyframes shimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}
.texture-controls{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(255,154,158,0.3),
              inset 0 2px 8px rgba(255,255,255,0.4);
  border: 3px solid rgba(255,255,255,0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: perspective(1000px) rotateX(5deg);
  animation: textureFloat 5s ease-in-out infinite;
}

@keyframes textureFloat {
  0%, 100% { transform: perspective(1000px) rotateX(5deg) translateY(0px); }
  50% { transform: perspective(1000px) rotateX(5deg) translateY(-8px); }
}

.texture-controls:hover {
  transform: perspective(1000px) rotateX(0deg) translateY(-10px);
  box-shadow: 0 12px 30px rgba(255,154,158,0.4),
              inset 0 4px 12px rgba(255,255,255,0.5);
  background: linear-gradient(135deg, #ffa8ac 0%, #fed0f1 50%, #fed0f1 100%);
}

.texture-controls label{
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  letter-spacing: 0.5px;
}

.texture-controls select{
  padding: 8px 16px;
  border: 3px solid rgba(255,255,255,0.4);
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #fafafa);
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1),
              inset 0 2px 4px rgba(255,255,255,0.8);
}

.texture-controls select:focus{
  outline: none;
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255,107,107,0.3),
              0 6px 16px rgba(0,0,0,0.15);
  transform: scale(1.05);
}

.texture-controls select:hover{
  border-color: #ff7979;
  background: linear-gradient(145deg, #fff, #fffafa);
  transform: scale(1.02);
}
.search-container{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,247,255,0.9) 100%);
  padding: 16px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1),
              inset 0 2px 8px rgba(255,255,255,0.6);
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.3s ease;
  transform: perspective(1000px) rotateY(-3deg);
}

.search-container:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15),
              inset 0 4px 12px rgba(255,255,255,0.7);
}

.search-container label{
  font-size: 13px;
  color: #555;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.search-container input{
  padding: 12px 16px;
  border: 3px solid rgba(255,255,255,0.6);
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #fafafa);
  font-size: 14px;
  width: 280px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1),
              inset 0 2px 4px rgba(255,255,255,0.8);
  font-weight: 500;
}

.search-container input:focus{
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.2),
              0 6px 16px rgba(0,0,0,0.15);
  transform: scale(1.02);
  background: linear-gradient(145deg, #fff, #f8f9ff);
}
.country-select-container{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff6b6b 100%);
  background-size: 300% 300%;
  padding: 20px;
  border-radius: 25px;
  box-shadow: 0 12px 30px rgba(102,126,234,0.3),
              inset 0 2px 8px rgba(255,255,255,0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 3px solid rgba(255,255,255,0.2);
  animation: selectGradient 6s ease-in-out infinite,
             selectBounce 4s ease-in-out infinite;
  transform: perspective(1000px) rotateY(3deg);
}

@keyframes selectGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes selectBounce {
  0%, 100% { transform: perspective(1000px) rotateY(3deg) translateY(0px); }
  50% { transform: perspective(1000px) rotateY(3deg) translateY(-8px); }
}

.country-select-container:hover{
  transform: perspective(1000px) rotateY(0deg) translateY(-12px);
  box-shadow: 0 18px 40px rgba(102,126,234,0.4),
              inset 0 4px 12px rgba(255,255,255,0.4);
  background: linear-gradient(135deg, #7289f0 0%, #8a5cb8 50%, #ff7979 100%);
  animation: none;
}
.country-select-container label{
  font-size: 15px;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 6px;
  letter-spacing: 1px;
  animation: labelGlow 3s ease-in-out infinite;
}

@keyframes labelGlow {
  0%, 100% { text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
  50% { text-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 0 10px rgba(255,255,255,0.5); }
}

.country-select-container select{
  padding: 14px 18px;
  border: 3px solid rgba(255,255,255,0.4);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f8f9ff);
  font-size: 15px;
  width: 100%;
  cursor: pointer;
  font-weight: 600;
  color: #333;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.05),
              0 4px 15px rgba(255,255,255,0.3);
  transition: all 0.4s ease;
}

.country-select-container select:focus{
  outline: none;
  border-color: #feca57;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.05), 
              0 0 0 4px rgba(254,202,87,0.3),
              0 8px 20px rgba(255,255,255,0.4);
  background: linear-gradient(145deg, #fff, #fffef9);
  transform: scale(1.02);
}

.country-select-container select:hover{
  border-color: #ff9ff3;
  background: linear-gradient(145deg, #fff, #fef5ff);
  transform: scale(1.01);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.05),
              0 6px 18px rgba(255,159,243,0.2);
}
.search-results{
  max-height: 220px;
  overflow-y: auto;
  background: linear-gradient(135deg, #fff 0%, #fef7ff 100%);
  border: 3px solid rgba(102,126,234,0.3);
  border-radius: 18px;
  margin-top: 8px;
  display: none;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15),
              inset 0 2px 8px rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  animation: resultsSlideIn 0.3s ease-out;
}

@keyframes resultsSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-results.show{
  display: block;
}

.search-result-item{
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(102,126,234,0.1);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 4px;
}

.search-result-item:last-child{
  border-bottom: none;
}

.search-result-item:hover{
  background: linear-gradient(135deg, #e8f4fd 0%, #fef0ff 100%);
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 4px 12px rgba(102,126,234,0.2);
}

.search-result-item.highlighted{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(102,126,234,0.3);
}

.search-result-item.highlighted .country-japanese,
.search-result-item.highlighted .country-english {
  color: #fff;
}

.country-japanese{
  font-weight: 700;
  color: #333;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.country-english{
  color: #666;
  font-size: 12px;
  font-weight: 500;
}
#selected-country{
  font-weight: 700;
  background: linear-gradient(135deg, #48cfad 0%, #a8e6cf 50%, #c8e6c9 100%);
  background-size: 300% 300%;
  color: #fff;
  padding: 16px 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(76,175,80,0.3),
              inset 0 2px 8px rgba(255,255,255,0.3);
  margin-bottom: 12px;
  font-size: 15px;
  transition: all 0.4s ease;
  border: 3px solid rgba(255,255,255,0.3);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  letter-spacing: 1px;
  animation: selectedCountryGradient 4s ease-in-out infinite;
}

@keyframes selectedCountryGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#selected-country:not(:empty){
  animation: selectedCountryGradient 4s ease-in-out infinite,
             selectedPulse 2s ease-in-out infinite,
             selectedGlow 3s ease-in-out infinite;
}

@keyframes selectedPulse {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 8px 20px rgba(76,175,80,0.3),
                inset 0 2px 8px rgba(255,255,255,0.3);
  }
  50% { 
    transform: scale(1.05); 
    box-shadow: 0 12px 30px rgba(76,175,80,0.4),
                inset 0 4px 12px rgba(255,255,255,0.4);
  }
}

@keyframes selectedGlow {
  0%, 100% { 
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }
  50% { 
    text-shadow: 0 2px 4px rgba(0,0,0,0.2), 
                 0 0 15px rgba(255,255,255,0.6);
  }
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,247,255,0.8) 100%);
  padding: 18px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1),
              inset 0 2px 8px rgba(255,255,255,0.5);
  border: 2px solid rgba(255,255,255,0.4);
  animation: actionFloat 5s ease-in-out infinite;
}

@keyframes actionFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

#country-info-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 50%, #ff9ff3 100%);
  background-size: 300% 300%;
  font-size: 14px;
  padding: 14px 20px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(255,107,107,0.3),
              inset 0 2px 8px rgba(255,255,255,0.3);
  border: 3px solid rgba(255,255,255,0.3);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  animation: btnGradientShift 4s ease-in-out infinite,
             btnPulse 3s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes btnGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes btnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

#country-info-btn:hover {
  background: linear-gradient(135deg, #ff7979 0%, #fd6a6a 50%, #ffa8ff 100%);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 30px rgba(255,107,107,0.4),
              inset 0 4px 12px rgba(255,255,255,0.4);
  animation: none;
}

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

#country-info-btn:hover:before {
  left: 100%;
}

#country-info-btn[disabled] {
  background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

#country-info-btn[disabled]:hover {
  transform: none;
  box-shadow: 0 6px 20px rgba(102,126,234,0.25);
}
button{
  padding:12px 20px;border:0;border-radius:12px;
  background:linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color:#fff;font-weight:600;cursor:pointer;user-select:none;
  font-size:14px;box-shadow:0 6px 20px rgba(102,126,234,0.25);
  transition:all 0.3s ease;position:relative;overflow:hidden;
  border:1px solid rgba(255,255,255,0.1);
}
button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
button:hover:before {
  left: 100%;
}
button:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 25px rgba(102,126,234,0.35);
  background:linear-gradient(135deg, #7289f0 0%, #8a5cb8 100%);
}
button:active{
  transform:translateY(0px);
  box-shadow:0 4px 15px rgba(102,126,234,0.25);
}
button[disabled]{
  opacity:.5;cursor:not-allowed;transform:none;
  background:linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
}
button[disabled]:hover{
  transform:none;box-shadow:0 6px 20px rgba(102,126,234,0.25);
}
.modal {
  display: none; /* デフォルトは非表示 */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: linear-gradient(45deg, 
    rgba(255,107,107,0.9) 0%, 
    rgba(255,154,158,0.9) 25%, 
    rgba(255,206,84,0.9) 50%, 
    rgba(72,207,173,0.9) 75%, 
    rgba(118,75,162,0.9) 100%);
  backdrop-filter: blur(20px);
  animation: modalBackgroundAnimation 15s ease-in-out infinite;
  margin: 0;
  padding: 0;
}

@keyframes modalBackgroundAnimation {
  0% { background: linear-gradient(45deg, rgba(255,107,107,0.9) 0%, rgba(255,154,158,0.9) 25%, rgba(255,206,84,0.9) 50%, rgba(72,207,173,0.9) 75%, rgba(118,75,162,0.9) 100%); }
  25% { background: linear-gradient(90deg, rgba(72,207,173,0.9) 0%, rgba(255,206,84,0.9) 25%, rgba(255,107,107,0.9) 50%, rgba(118,75,162,0.9) 75%, rgba(255,154,158,0.9) 100%); }
  50% { background: linear-gradient(135deg, rgba(255,206,84,0.9) 0%, rgba(118,75,162,0.9) 25%, rgba(255,154,158,0.9) 50%, rgba(255,107,107,0.9) 75%, rgba(72,207,173,0.9) 100%); }
  75% { background: linear-gradient(180deg, rgba(118,75,162,0.9) 0%, rgba(72,207,173,0.9) 25%, rgba(255,107,107,0.9) 50%, rgba(255,206,84,0.9) 75%, rgba(255,154,158,0.9) 100%); }
  100% { background: linear-gradient(45deg, rgba(255,107,107,0.9) 0%, rgba(255,154,158,0.9) 25%, rgba(255,206,84,0.9) 50%, rgba(72,207,173,0.9) 75%, rgba(118,75,162,0.9) 100%); }
}
.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #fef7ff 50%, #f8f5ff 100%);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: 24px 32px;
  border-radius: 0;
  box-shadow: inset 0 0 100px rgba(255,255,255,0.3),
              0 0 50px rgba(255,255,255,0.5);
  text-align: center;
  font-size: 1.1em;
  overflow-y: auto;
  margin: 0;
  z-index: 10000;
  position: relative;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255,107,107,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(72,207,173,0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 70%, rgba(255,206,84,0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(118,75,162,0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* 国紹介モーダル専用スタイル */
.modal-content.country-modal {
  max-width: none;
  width: 100vw;
  height: 100vh;
  max-height: none;
  overflow-y: auto;
  text-align: left;
  padding: 40px;
  position: fixed;
  top: 0;
  left: 0;
  margin: 0;
  z-index: 10000;
  background: linear-gradient(135deg, #ffffff 0%, #fef7ff 30%, #f0f9ff 60%, #f8f5ff 100%);
  animation: modalFadeIn 0.8s ease-out;
}

@keyframes modalFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(50px);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.02) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  z-index: 10001;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 25px rgba(255,107,107,0.4),
              inset 0 2px 8px rgba(255,255,255,0.3);
  border: 3px solid rgba(255,255,255,0.8);
  animation: buttonBounce 2s ease-in-out infinite;
}

@keyframes buttonBounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
}

.modal-close:hover,
.modal-close:focus {
  color: #fff;
  background: linear-gradient(135deg, #ff7979 0%, #fd6a6a 100%);
  transform: scale(1.2) rotate(-5deg);
  box-shadow: 0 12px 35px rgba(255,107,107,0.6),
              inset 0 2px 8px rgba(255,255,255,0.4);
  animation: none;
}

.country-flag {
  text-align: center;
  margin-bottom: 20px;
  animation: flagWave 3s ease-in-out infinite;
}

@keyframes flagWave {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.05) rotate(1deg); }
  75% { transform: scale(1.05) rotate(-1deg); }
}

.country-flag img {
  width: 140px;
  height: auto;
  border: 4px solid transparent;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2),
              0 4px 15px rgba(255,255,255,0.3) inset;
  background: linear-gradient(45deg, #ff9a9e, #fecfef, #fecfef, #ff9a9e);
  padding: 4px;
  transition: all 0.4s ease;
}

.country-flag img:hover {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 12px 35px rgba(0,0,0,0.25),
              0 6px 20px rgba(255,255,255,0.4) inset;
}

.country-modal h2 {
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 40%, #ff6b6b 80%, #feca57 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 30px;
  margin-top: 20px;
  font-size: 2.5em;
  padding-top: 20px;
  font-weight: 800;
  text-shadow: 0 4px 8px rgba(0,0,0,0.1);
  animation: gradientText 4s ease-in-out infinite,
             titleBounce 2s ease-in-out infinite;
  letter-spacing: 2px;
}

@keyframes gradientText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes titleBounce {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.country-modal h3 {
  color: #fff;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.3em;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 12px 20px;
  border-radius: 25px;
  box-shadow: 0 6px 20px rgba(102,126,234,0.3);
  border: 2px solid rgba(255,255,255,0.2);
  font-weight: 600;
  text-align: center;
  transform: perspective(1000px) rotateX(5deg);
  transition: all 0.3s ease;
}

.country-modal h3:hover {
  transform: perspective(1000px) rotateX(0deg) translateY(-5px);
  box-shadow: 0 10px 30px rgba(102,126,234,0.4);
  background: linear-gradient(135deg, #7289f0 0%, #8a5cb8 100%);
}

.country-basic-info {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
  background-size: 300% 300%;
  padding: 25px;
  border-radius: 25px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 15px 35px rgba(79,172,254,0.2),
              inset 0 2px 8px rgba(255,255,255,0.3);
  border: 3px solid rgba(255,255,255,0.3);
  animation: infoCardFloat 6s ease-in-out infinite,
             backgroundShift 8s ease-in-out infinite;
  transform: perspective(1000px) rotateY(2deg);
  transition: all 0.4s ease;
}

@keyframes infoCardFloat {
  0%, 100% { transform: perspective(1000px) rotateY(2deg) translateY(0px); }
  50% { transform: perspective(1000px) rotateY(2deg) translateY(-10px); }
}

@keyframes backgroundShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.country-basic-info:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-15px);
  box-shadow: 0 20px 45px rgba(79,172,254,0.3),
              inset 0 4px 12px rgba(255,255,255,0.4);
}

.country-basic-info p {
  margin: 12px 0;
  font-size: 1.1em;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  font-weight: 500;
}

.country-basic-info strong {
  color: #fff;
  min-width: 70px;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  font-weight: 700;
}

.country-description {
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,247,255,0.9) 100%);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1),
              inset 0 2px 8px rgba(255,255,255,0.5);
  border: 2px solid rgba(255,255,255,0.5);
  transform: perspective(1000px) rotateX(3deg);
  transition: all 0.3s ease;
}

.country-description:hover {
  transform: perspective(1000px) rotateX(0deg) translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15),
              inset 0 4px 12px rgba(255,255,255,0.6);
}

.country-description p {
  line-height: 1.8;
  color: #555;
  font-size: 1.1em;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.landmarks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 20px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.landmark-item {
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,247,255,0.9) 100%);
  padding: 15px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: perspective(1000px) rotateY(5deg);
}

.landmark-item:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-10px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,240,255,1) 100%);
}

.landmark-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  border: 3px solid rgba(255,255,255,0.8);
  transition: all 0.3s ease;
}

.landmark-item:hover img {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.landmark-item .landmark-name {
  font-size: 0.95em;
  color: #555;
  margin-top: 10px;
  line-height: 1.4;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* クリック可能なランドマーク用のスタイル */
.landmark-item.landmark-clickable {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.landmark-item.landmark-clickable::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  z-index: 2;
}

.landmark-item.landmark-clickable::after {
  content: '🔍';
  position: absolute;
  top: 13px;
  right: 13px;
  font-size: 0.7em;
  color: white;
  z-index: 3;
  transition: all 0.3s ease;
}

.landmark-item.landmark-clickable:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-10px) scale(1.05);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(240,248,255,1) 100%);
  border-color: rgba(102, 126, 234, 0.3);
}

.landmark-item.landmark-clickable:hover::before {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
}

.landmark-item.landmark-clickable:hover::after {
  transform: scale(1.2);
}

.landmark-item.landmark-clickable:active {
  transform: perspective(1000px) rotateY(0deg) translateY(-5px) scale(1.02);
  transition: all 0.1s ease;
}

.landmark-search-hint {
  font-size: 0.75em;
  color: #667eea;
  margin-top: 5px;
  font-weight: 500;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.landmark-item.landmark-clickable:hover .landmark-search-hint {
  opacity: 1;
  color: #5a67d8;
  font-weight: 600;
}

/* パネル形式の観光地表示スタイル */
.landmark-panel {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border: 2px solid rgba(255,255,255,0.8);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 350px;
}

.landmark-panel.landmark-clickable {
  cursor: pointer;
  position: relative;
}

.landmark-panel.landmark-clickable:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.3);
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(245,250,255,1) 100%);
}

.landmark-panel-header {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.landmark-panel-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.landmark-panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.landmark-panel.landmark-clickable:hover .landmark-panel-image img {
  transform: scale(1.05);
}

.landmark-search-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  z-index: 2;
}

.landmark-panel.landmark-clickable:hover .landmark-search-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.landmark-panel-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.landmark-panel-title {
  font-size: 1.1em;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.landmark-panel-description {
  font-size: 0.9em;
  color: #4a5568;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 15px;
}

.description-more-btn {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 8px;
  font-size: 0.8em;
  color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.description-more-btn:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  border-color: rgba(102, 126, 234, 0.5);
  color: #5a67d8;
  transform: scale(1.05);
}

.description-more-btn:active {
  transform: scale(0.95);
}

.description-more-btn.expanded {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  color: #5a67d8;
}

/* 国の説明文用のmoreボタンスタイル */
.country-description-more-btn {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 12px;
  font-size: 0.85em;
  color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.country-description-more-btn:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  border-color: rgba(102, 126, 234, 0.5);
  color: #5a67d8;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.country-description-more-btn:active {
  transform: scale(0.95);
}

.country-description-more-btn.expanded {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  color: #5a67d8;
  border-color: rgba(102, 126, 234, 0.4);
}

.landmark-panel-action {
  font-size: 0.85em;
  color: #667eea;
  font-weight: 600;
  text-align: center;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.landmark-panel.landmark-clickable:hover .landmark-panel-action {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  border-color: rgba(102, 126, 234, 0.3);
  color: #5a67d8;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .landmarks-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  
  .landmark-panel {
    min-height: 320px;
  }
  
  .landmark-panel-header {
    height: 180px;
  }
  
  .landmark-panel-content {
    padding: 16px;
  }
  
  .landmark-panel-title {
    font-size: 1em;
  }
  
  .landmark-panel-description {
    font-size: 0.85em;
  }
}
.modal-close-btn {
  margin-top: 40px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff6b6b 100%);
  background-size: 300% 300%;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 10px 25px rgba(102,126,234,0.3),
              inset 0 2px 8px rgba(255,255,255,0.3);
  border: 3px solid rgba(255,255,255,0.3);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  animation: buttonPulse 3s ease-in-out infinite,
             buttonGradient 4s ease-in-out infinite;
  letter-spacing: 1px;
  transform-origin: center;
}

@keyframes buttonPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes buttonGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes buttonPulseCentered {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}

.modal-close-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 35px rgba(102,126,234,0.4),
              inset 0 4px 12px rgba(255,255,255,0.4);
  background: linear-gradient(135deg, #7289f0 0%, #8a5cb8 50%, #ff7979 100%);
  animation: none;
}
.list{padding-left:20px}
h2{margin:16px 0 8px}
/* Mobile-friendly tap targets */
a{color:#0b5cff;text-decoration:none}
a:active{opacity:.7}

/* ==============================================
   共通レスポンシブ調整
   ============================================== */

/* 高解像度ディスプレイ対応 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .country-flag img,
  .landmark-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* 縦向き・横向き共通の基本調整 */
@media (max-width: 767px) {
  /* パフォーマンス重視でアニメーション軽減（ただし自然な速度を保持） */
  .controls-panel *,
  .modal-content * {
    will-change: auto;
  }
  
  /* タッチターゲットサイズの最適化 */
  button,
  select,
  input,
  .search-result-item {
    min-height: 44px; /* iOS推奨サイズ */
    touch-action: manipulation;
  }
  
  /* スクロール最適化 */
  .modal-content.country-modal {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
}

/* 超大画面対応 (1440px以上) */
@media (min-width: 1440px) {
  .app-main {
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .controls-panel {
    max-width: 500px;
    padding: 35px;
  }
  
  .modal-content.country-modal {
    max-width: 1200px;
    padding: 50px;
  }
  
  .landmarks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    padding: 0 30px;
  }
}

/* 印刷用スタイル */
@media print {
  .modal {
    position: static !important;
    background: white !important;
  }
  
  .modal-content {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    background: white !important;
  }
  
  .modal-close,
  .modal-close-btn {
    display: none !important;
  }
  
  .controls-panel,
  #globe-container {
    display: none !important;
  }
}

/* ==============================================
   レスポンシブデザイン - 全デバイス対応
   ============================================== */

/* 極小デバイス - iPhone SE (320px-374px) */
@media (max-width: 374px) {
  .main-app {
    font-size: 14px;
  }
  
  .app-header, .app-footer {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .controls-panel {
    padding: 12px;
    gap: 10px;
    animation: panelGradient 8s ease-in-out infinite, panelFloat 4s ease-in-out infinite;
  }
  
  .texture-controls {
    padding: 12px;
    border-radius: 15px;
    animation: textureFloat 5s ease-in-out infinite;
    transform: perspective(1000px) rotateX(5deg);
  }
  
  .texture-controls label {
    font-size: 12px;
  }
  
  .texture-controls select {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 12px;
  }
  
  .search-container {
    padding: 12px;
    border-radius: 15px;
    transform: none;
  }
  
  .search-container input {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 12px;
  }
  
  .country-select-container {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 18px;
    animation: selectGradient 6s ease-in-out infinite, selectBounce 4s ease-in-out infinite;
    transform: perspective(1000px) rotateY(3deg);
  }
  
  .country-select-container label {
    font-size: 13px;
    animation: labelGlow 3s ease-in-out infinite;
  }
  
  .country-select-container select {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 15px;
  }
  
  #selected-country {
    padding: 10px 14px;
    margin-bottom: 8px;
    font-size: 13px;
    border-radius: 15px;
    animation: selectedCountryGradient 4s ease-in-out infinite;
  }
  
  #selected-country:not(:empty) {
    animation: selectedCountryGradient 4s ease-in-out infinite,
               selectedPulse 2s ease-in-out infinite,
               selectedGlow 3s ease-in-out infinite;
  }
  
  .action-buttons {
    gap: 10px;
    padding: 12px;
    margin-top: 10px;
    animation: actionFloat 5s ease-in-out infinite;
  }
  
  #country-info-btn {
    font-size: 12px;
    padding: 10px 16px;
    border-radius: 12px;
    animation: btnGradientShift 4s ease-in-out infinite, btnPulse 3s ease-in-out infinite;
  }
  
  button {
    font-size: 12px;
    padding: 10px 16px;
    border-radius: 10px;
  }
  
  #globe-container {
    min-height: 250px;
  }
}

/* 小デバイス - iPhone SE Plus (375px-413px) */
@media (min-width: 375px) and (max-width: 413px) {
  .controls-panel {
    padding: 15px;
    gap: 12px;
    animation: panelGradient 8s ease-in-out infinite, panelFloat 4s ease-in-out infinite;
  }
  
  .country-select-container {
    padding: 15px;
    margin-bottom: 12px;
  }
  
  .country-select-container select {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  #country-info-btn {
    font-size: 13px;
    padding: 12px 18px;
  }
  
  #globe-container {
    min-height: 280px;
  }
}

/* 中デバイス - iPhone 6/7/8/X/11/12 標準 (414px-767px) */
@media (min-width: 414px) and (max-width: 767px) {
  .controls-panel {
    padding: 18px;
    gap: 14px;
    animation: panelGradient 8s ease-in-out infinite, panelFloat 4s ease-in-out infinite;
  }
  
  .texture-controls {
    padding: 14px;
  }
  
  .country-select-container {
    padding: 18px;
    margin-bottom: 14px;
  }
  
  .country-select-container select {
    padding: 14px 18px;
    font-size: 15px;
  }
  
  #country-info-btn {
    font-size: 14px;
    padding: 14px 20px;
  }
  
  #globe-container {
    min-height: 320px;
  }
  
  .search-container input {
    width: 300px;
  }
}

/* タブレット - iPad (768px-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .app-main {
    flex-direction: row;
  }
  
  #globe-container {
    flex: 2;
    min-height: 400px;
  }
  
  .controls-panel {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    padding: 25px;
    gap: 18px;
    border-radius: 0;
    height: calc(100vh - 48px);
    overflow-y: auto;
  }
  
  .texture-controls {
    padding: 18px;
  }
  
  .search-container input {
    width: 100%;
  }
  
  .country-select-container {
    padding: 20px;
    margin-bottom: 16px;
  }
  
  .landmarks-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }
}

/* デスクトップ - 大画面 (1024px以上) */
@media (min-width: 1024px) {
  .app-main {
    flex-direction: row;
  }
  
  #globe-container {
    flex: 3;
    min-height: 500px;
  }
  
  .controls-panel {
    flex: 1;
    min-width: 350px;
    max-width: 450px;
    padding: 30px;
    gap: 20px;
    border-radius: 0;
    height: calc(100vh - 48px);
    overflow-y: auto;
  }
  
  .texture-controls {
    padding: 20px;
  }
  
  .country-select-container {
    padding: 25px;
    margin-bottom: 20px;
  }
  
  .landmarks-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
  }
  
  .landmark-item img {
    height: 140px;
  }
}

/* モーダルのレスポンシブ対応 */
/* 極小デバイス用モーダル */
@media (max-width: 374px) {
  .modal-content.country-modal {
    padding: 12px;
    height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding-bottom: 70px;
  }
  
  .country-modal h2 {
    font-size: 1.4em;
    margin-bottom: 12px;
    margin-top: 8px;
    letter-spacing: 0.3px;
    padding-top: 8px;
  }
  
  .country-flag img {
    width: 80px;
    border-radius: 12px;
    padding: 2px;
  }
  
  .country-basic-info {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    transform: none;
    animation: none;
  }
  
  .country-basic-info p {
    font-size: 0.8em;
    margin: 5px 0;
    line-height: 1.3;
  }
  
  .country-basic-info strong {
    min-width: 50px;
    font-size: 0.8em;
  }
  
  .country-description {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    transform: none;
  }
  
  .country-description p {
    font-size: 0.8em;
    line-height: 1.4;
  }
  
  .country-modal h3 {
    font-size: 1em;
    padding: 8px 12px;
    margin-top: 12px;
    margin-bottom: 6px;
    border-radius: 15px;
    transform: none;
  }
  
  .landmarks-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 8px;
  }
  
  .landmark-item {
    padding: 8px;
    border-radius: 10px;
    transform: none;
  }
  
  .landmark-item img {
    width: 100%;
    max-width: 250px;
    height: 70px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.8);
  }
  
  .landmark-item .landmark-name {
    font-size: 0.8em;
    margin-top: 6px;
    line-height: 1.2;
  }
  
  .modal-close {
    top: 8px;
    right: 8px;
    font-size: 20px;
    width: 35px;
    height: 35px;
    border: 2px solid rgba(255,255,255,0.8);
    animation: buttonBounce 2s ease-in-out infinite;
  }
  
  .modal-close-btn {
    position: fixed;
    /* bottom: 12px; */
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 25px;
    z-index: 10002;
    animation: buttonPulseCentered 3s ease-in-out infinite, buttonGradient 4s ease-in-out infinite;
  }

  .modal-close-btn:hover {
    transform: translateX(-50%) translateY(-5px) scale(1.1);
  }
}

/* 小デバイス用モーダル (375px-413px) */
@media (min-width: 375px) and (max-width: 413px) {
  .modal-content.country-modal {
    padding: 15px;
    height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding-bottom: 80px;
  }
  
  .country-modal h2 {
    font-size: 1.6em;
    margin-bottom: 15px;
    margin-top: 10px;
    letter-spacing: 0.5px;
    padding-top: 10px;
  }
  
  .country-flag img {
    width: 100px;
    border-radius: 15px;
    padding: 3px;
  }
  
  .country-basic-info {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 15px;
    transform: none;
    animation: none;
  }
  
  .country-basic-info p {
    font-size: 0.9em;
    margin: 6px 0;
    line-height: 1.4;
  }
  
  .country-description {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 15px;
    transform: none;
  }
  
  .landmarks-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 10px;
  }
  
  .landmark-item img {
    width: 100%;
    max-width: 300px;
    height: 90px;
    border-radius: 10px;
  }
  
  .modal-close {
    top: 10px;
    right: 10px;
    font-size: 24px;
    width: 40px;
    height: 40px;
    animation: buttonBounce 2s ease-in-out infinite;
  }
  
  .modal-close-btn {
    position: fixed;
    /* bottom: 15px; */
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 30px;
    z-index: 10002;
    animation: buttonPulseCentered 3s ease-in-out infinite, buttonGradient 4s ease-in-out infinite;
  }

  .modal-close-btn:hover {
    transform: translateX(-50%) translateY(-5px) scale(1.1);
  }
}

/* 中デバイス用モーダル (414px-767px) */
@media (min-width: 414px) and (max-width: 767px) {
  .modal-content.country-modal {
    padding: 20px;
    height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding-bottom: 80px;
  }
  
  .country-modal h2 {
    font-size: 1.8em;
    margin-bottom: 18px;
    letter-spacing: 1px;
  }
  
  .country-flag img {
    width: 120px;
    border-radius: 18px;
  }
  
  .country-basic-info {
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 18px;
    transform: none;
    animation: none;
  }
  
  .country-basic-info p {
    font-size: 1em;
    margin: 8px 0;
    line-height: 1.5;
  }
  
  .country-description {
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 18px;
    transform: none;
  }
  
  .landmarks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 12px;
  }
  
  .landmark-item {
    padding: 12px;
    border-radius: 15px;
    transform: none;
  }
  
  .landmark-item img {
    width: 100%;
    height: 100px;
    border-radius: 12px;
  }
  
  .modal-close {
    top: 15px;
    right: 15px;
    font-size: 28px;
    width: 45px;
    height: 45px;
    animation: buttonBounce 2s ease-in-out infinite;
  }
  
  .modal-close-btn {
    position: fixed;
    /* bottom: 20px; */
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 30px;
    font-size: 1.1em;
    border-radius: 35px;
    z-index: 10002;
    animation: buttonPulseCentered 3s ease-in-out infinite, buttonGradient 4s ease-in-out infinite;
  }

  .modal-close-btn:hover {
    transform: translateX(-50%) translateY(-5px) scale(1.1);
  }
}

/* タブレット用モーダル (768px-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .modal-content.country-modal {
    padding: 30px;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed;
    border-radius: 25px;
    overflow-y: auto;
  }
  
  .country-modal h2 {
    font-size: 2.2em;
    margin-bottom: 25px;
    letter-spacing: 1.5px;
  }
  
  .country-flag img {
    width: 140px;
    border-radius: 20px;
  }
  
  .country-basic-info {
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 20px;
  }
  
  .country-basic-info p {
    font-size: 1.1em;
    margin: 10px 0;
  }
  
  .country-description {
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 20px;
  }
  
  .landmarks-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .landmark-item img {
    height: 120px;
  }
  
  .modal-close {
    top: 20px;
    right: 25px;
    font-size: 32px;
    width: 55px;
    height: 55px;
  }
  
  .modal-close-btn {
    position: static;
    transform: none;
    padding: 16px 35px;
    font-size: 1.2em;
    border-radius: 40px;
    margin-top: 30px;
  }
}

/* デスクトップ用モーダル (1024px以上) */
@media (min-width: 1024px) {
  .modal-content.country-modal {
    padding: 40px;
    max-width: 80vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed;
    border-radius: 30px;
    overflow-y: auto;
  }
  
  .country-modal h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    letter-spacing: 2px;
  }
  
  .country-flag img {
    width: 160px;
    border-radius: 25px;
  }
  
  .country-basic-info {
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 25px;
  }
  
  .country-basic-info p {
    font-size: 1.2em;
    margin: 12px 0;
  }
  
  .country-description {
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 25px;
  }
  
  .landmarks-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
  }
  
  .landmark-item img {
    height: 140px;
  }
  
  .modal-close {
    top: 25px;
    right: 30px;
    font-size: 36px;
    width: 60px;
    height: 60px;
  }
  
  .modal-close-btn {
    position: static;
    transform: none;
    padding: 18px 40px;
    font-size: 1.3em;
    border-radius: 45px;
    margin-top: 40px;
  }
}

/* 横向きデバイス対応 */
@media (orientation: landscape) and (max-height: 500px) {
  .modal-content.country-modal {
    height: 100vh;
    overflow-y: auto;
    padding: 15px;
    padding-bottom: 70px;
  }
  
  .country-modal h2 {
    font-size: 1.4em;
    margin-bottom: 12px;
    margin-top: 5px;
  }
  
  .country-flag img {
    width: 80px;
  }
  
  .country-basic-info {
    padding: 12px;
    margin-bottom: 12px;
  }
  
  .country-basic-info p {
    font-size: 0.9em;
    margin: 4px 0;
  }
  
  .country-description {
    padding: 12px;
    margin-bottom: 12px;
  }
  
  .country-description p {
    font-size: 0.9em;
    line-height: 1.4;
  }
  
  .landmarks-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }
  
  .landmark-item {
    padding: 8px;
  }
  
  .landmark-item img {
    height: 70px;
  }
  
  .modal-close {
    top: 8px;
    right: 8px;
    width: 35px;
    height: 35px;
    font-size: 20px;
    animation: buttonBounce 2s ease-in-out infinite;
  }
  
  .modal-close-btn {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    font-size: 0.9em;
    z-index: 10002;
    animation: buttonPulseCentered 3s ease-in-out infinite, buttonGradient 4s ease-in-out infinite;
  }

  .modal-close-btn:hover {
    transform: translateX(-50%) translateY(-5px) scale(1.1);
  }
}

/* 初期説明モーダル用スタイル */
.intro-modal {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  animation: none;
  padding: 16px 0;
}

.intro-modal .modal-content {
  position: relative;
  top: auto;
  left: auto;
  display: flex;
  flex-direction: column;
  width: min(520px, calc(100vw - 32px));
  height: auto;
  max-height: calc(100vh - 80px);
  margin: 40px auto;
  border-radius: 20px;
  padding: 32px 28px;
  overflow-y: auto;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  text-align: left;
  animation: modalFadeIn 0.4s ease;
  background: linear-gradient(135deg, #ffffff 0%, #f6fbff 50%, #f0f5ff 100%);
}

.intro-modal .modal-close-btn {
  align-self: center;
  margin: 24px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: min(280px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  animation: none;
  position: static;
  bottom: auto;
  left: auto;
  transform: none;
}

.intro-modal .modal-close-btn:hover,
.intro-modal .modal-close-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.intro-modal .modal-close-btn:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

#intro-modal-title {
  color: #1e3c72;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.intro-title-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.intro-content {
  color: #333;
  line-height: 1.6;
}

.intro-main {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 24px;
  color: #555;
}

.intro-features {
  margin: 24px 0;
}

.intro-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(102, 126, 234, 0.08);
  border-radius: 12px;
  border-left: 4px solid #667eea;
}

.intro-feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.intro-feature-text strong {
  display: block;
  color: #1e3c72;
  font-weight: 600;
  margin-bottom: 4px;
}

.intro-feature-text p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

.intro-help-note {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 24px;
  padding: 16px;
  background: rgba(30, 60, 114, 0.05);
  border-radius: 8px;
}

@media (max-width: 600px) {
  .intro-modal .modal-content {
    width: calc(100vw - 24px);
    margin: 24px auto;
    padding: 24px 20px;
    max-height: calc(100vh - 48px);
  }
  
  #intro-modal-title {
    font-size: 1.4rem;
  }
  
  .intro-feature {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .intro-feature-icon {
    align-self: center;
  }
}
