/* 便利機能ページのスタイル */

.page-header {
  text-align: center;
  margin: 2rem 0;
  padding: 2rem 0;
  border-bottom: 1px solid #ddd;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.page-header p {
  color: #666;
  font-size: 1.1rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.tool-card {
  background: #2b2b2b;
  border: 1px solid #191919;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  color: #e6eef2;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.tool-card h2 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  text-align: center;
  border-bottom: 2px solid #dc3545;
  padding-bottom: 0.5rem;
}

/* 各tool-card的h2标题前添加图标 */
.tool-card:nth-child(1) h2:before {
  content: "🔍 ";
  margin-right: 0.5rem;
}

.tool-card:nth-child(2) h2:before {
  content: "❤️ ";
  margin-right: 0.5rem;
}

.tool-card:nth-child(3) h2:before {
  content: "🕐 ";
  margin-right: 0.5rem;
}

.placeholder {
  text-align: center;
}

.placeholder p {
  color: #d8e6eb;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 500;
}

.placeholder ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.placeholder li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
  position: relative;
  padding-left: 2rem;
  font-size: 0.9rem;
  color: #6c757d;
}

.placeholder li:before {
  content: "✓";
  color: #28a745;
  position: absolute;
  left: 0;
  font-weight: bold;
  top: 0.75rem;
}

.placeholder li:last-child {
  border-bottom: none;
}

.btn-placeholder {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.btn-placeholder:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn-placeholder:active {
  transform: translateY(0);
}

/* 高级搜索表单样式 */
.advanced-search-form {
  max-width: 100%;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  padding-right: 3rem;
}

.search-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.search-button {
  position: absolute;
  right: 0.5rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background: #0056b3;
}

.advanced-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.option-group label {
  font-weight: 500;
  color: #e6eef2;
  font-size: 0.9rem;
}

.option-group select,
.option-group input[type="text"] {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
  background-color: #f5f5f5;
  color: #333;
}

.option-group select:focus,
.option-group input[type="text"]:focus {
  outline: none;
  border-color: #007bff;
}

.station-input {
  width: 100%;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  color: #e6eef2;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-group input[type="checkbox"] {
  margin: 0;
}

.search-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.btn-search,
.btn-reset {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-search {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.btn-search:hover {
  background: linear-gradient(135deg, #20c997, #17a2b8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

.btn-reset {
  background: #6c757d;
  color: white;
}

.btn-reset:hover {
  background: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108,117,125,0.3);
}

/* アイコン風装飾 - 更新第一个图标为搜索 */
.tool-card:nth-child(1) h2:before { content: "🔍 "; }
.tool-card:nth-child(2) h2:before { content: "❤️ "; }
.tool-card:nth-child(3) h2:before { content: "⚖️ "; }
.tool-card:nth-child(4) h2:before { content: "�️ "; }

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .tool-card {
    padding: 1.5rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .tool-card {
    margin: 0 -0.5rem;
    padding: 1rem;
  }
  
  .btn-placeholder {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* 新增 .new-shop-card 样式 - 与 area.css 和 search.css 保持一致 */
.new-shop-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    padding: 12px;
}

.new-shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
    border-color: #007bff;
}

/* 链接版本的 new-shop-card */
.new-shop-card[href] {
    text-decoration: none;
    color: inherit; 
}

.new-shop-card[href]:hover {
    text-decoration: none;
    color: inherit;
}

/* 日本人店铺边框样式 - 链接版本 */
.new-shop-card[href].japan-shop {
    border-color: #4a90e2;
    box-shadow: 0 0 0 1px rgba(74, 144, 226, 0.3);
}

/* 亚洲店铺边框样式 - 链接版本 */
.new-shop-card[href].asia-shop {
    border-color: #f39c12;
    box-shadow: 0 0 0 1px rgba(243, 156, 18, 0.3);
}

/* new-shop-card 内的图片样式 */
.new-shop-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

/* new-shop-info 样式 */
.new-shop-card .new-shop-info {
    flex: 1;
    min-width: 0;
}

.new-shop-card .new-shop-info .shop-name {
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
    font-weight: 600;
}

.new-shop-card .new-shop-info .station {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 4px;
}

.new-shop-card .new-shop-info .business-time {
    font-size: 11px;
    color: #999;
}

.new-shop-card .new-shop-info .business-time i {
    color: #f39c12;
    margin-right: 4px;
}

/* 日本人店铺边框样式 */
.area-list .card.japan-shop {
    border-color: #4a90e2;
    box-shadow: 0 0 0 1px rgba(74, 144, 226, 0.3);
}

/* 亚洲店铺边框样式 */
.area-list .card.asia-shop {
    border-color: #f39c12;
    box-shadow: 0 0 0 1px rgba(243, 156, 18, 0.3);
}