﻿/* JPANNAI store detail styles - separated to comply with host security scanner */
/* ============================================================
   Store detail (蠎苓・隧ｳ邏ｰ)
   ============================================================ */
.store-title {
  margin: 14px 0 12px;
  font-size: clamp(1.25rem, 1rem + 1.6vw, 1.6rem);
  line-height: 1.3;
  word-break: break-word;
}

.store-info {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin: 0 0 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.store-info__heading {
  margin: 0;
  padding: 12px 16px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  background: #f1f3f5;
  border-bottom: 1px solid var(--border);
}
/* 繝｢繝舌う繝ｫ: 繝ｩ繝吶Ν縺ｨ蛟､繧堤ｸｦ縺ｫ遨阪・ */
.store-info__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 12px 16px;
  border-bottom: 1px dashed var(--border);
  align-items: start;
}
.store-info__row:last-child { border-bottom: none; }
.store-info__label {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: none;
}
.store-info__value { color: var(--fg); word-break: break-word; }
.store-info__stations { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.store-info__stations li { line-height: 1.5; }

/* 住所コピー: テキスト + ワンクリックコピーボタン */
.store-address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.store-address__text { flex: 1 1 auto; min-width: 0; }
.store-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  min-height: 32px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.store-copy:hover { background: var(--accent); color: #fff; }
.store-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.store-copy.is-copied {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.store-copy.is-failed {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.store-copy__icon { font-size: 0.95rem; line-height: 1; }
.store-copy__label { white-space: nowrap; }
.store-info__hours {
  margin: 0;
  font-family: inherit;
  white-space: pre-wrap;
  word-break: break-word;
}
.store-info__notes { line-height: 1.7; font-weight: 600; }

/* 繝・せ繧ｯ繝医ャ繝・ 繝ｩ繝吶Ν蟾ｦ / 蛟､蜿ｳ縺ｮ 2 繧ｫ繝ｩ繝 */
@media (min-width: 600px) {
  .store-info__row {
    grid-template-columns: 140px 1fr;
    gap: 16px;
    padding: 14px 20px;
  }
  .store-info__label { font-size: 0.95rem; }
}

.store-badge {
  display: inline-flex; align-items: center;
  padding: 6px 12px; margin: 2px 6px 2px 0;
  background: var(--accent-soft); color: #1d4ed8;
  border-radius: 999px;
  font-size: 0.88rem; font-weight: 600;
  text-decoration: none;
  min-height: 32px;
}
.store-badge:hover { background: #c7dcff; }
.store-tag {
  display: inline-flex; align-items: center;
  padding: 6px 12px; margin: 2px 4px 2px 0;
  background: #fff; border: 1px solid var(--accent); color: var(--accent);
  border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  text-decoration: none;
  min-height: 32px;
}
.store-tag:hover { background: var(--accent); color: #fff; }

.store-map { margin: 0 0 16px; }
.store-map__embed {
  width: 100%;
  /* 繝｢繝舌う繝ｫ縺ｯ逕ｻ髱｢豈斐↓蠢懊§縺ｦ邵ｮ繧縲Ｂspect-ratio 縺ｧ蟷・ｸ譚ｯ縺ｮ縺ｾ縺ｾ 4:3 繧堤ｶｭ謖・*/
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 240px;
  max-height: 420px;
  border: 0;
  border-radius: var(--radius-sm);
  display: block;
}
.store-map__view {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.store-actions {
  display: grid;
  gap: 10px;
  margin: 12px 0 32px;
}
.store-actions__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  min-height: 52px;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s ease;
}
.store-actions__btn:hover { background: var(--accent-hover); }
.store-actions__icon { font-size: 1.05rem; line-height: 1; }

@media (min-width: 600px) {
  .store-actions { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .store-map__embed { aspect-ratio: 16 / 9; max-height: 480px; }
}

/* ============================================================
   繝｢繝ｼ繧ｷ繝ｧ繝ｳ霆ｽ貂・
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  .site-header, .site-footer, .store-actions, .store-map { display: none; }
  body { background: #fff; }
  .container { max-width: none; padding: 0; }
}
.store-actions__icon { font-size: 1.05rem; }

@media (max-width: 600px) {
  .store-info__row { grid-template-columns: 1fr; gap: 4px; padding: 12px 16px; }
  .store-info__label { font-size: 0.85rem; }
  .store-map__embed { height: 280px; }
}