/* JapanDeHalal - Main Stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  background: #f2f2f2;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-logo { display: flex; align-items: center; gap: 10px; }
.header-logo img { height: 32px; width: auto; }
.header-logo .logo-title { font-size: 1.1rem; font-weight: bold; color: #1a1a1a; }
.header-logo .logo-sub   { font-size: 0.65rem; color: #888; }

.header-nav { display: flex; gap: 4px; flex-grow: 1; justify-content: center; }
.header-nav a {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #555;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.header-nav a:hover, .header-nav a.active { background: #fef2f2; color: #dc2626; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-login { padding: 7px 14px; border-radius: 6px; background: #f1f5f9; color: #334155; font-size: .85rem; font-weight: 600; }
.btn-register { padding: 7px 14px; border-radius: 6px; background: #dc2626; color: #fff; font-size: .85rem; font-weight: 600; }
.btn-login:hover    { background: #e2e8f0; }
.btn-register:hover { background: #b91c1c; }

.hamburger { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: #333; }

@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger  { display: block; }
  .btn-login, .btn-register { font-size: .8rem; padding: 6px 10px; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
}
.mobile-nav.open { display: flex; }
.mobile-nav-panel {
  background: #fff;
  width: 260px;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-panel a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .95rem;
  color: #333;
}
.mobile-nav-panel a:hover { background: #fef2f2; color: #dc2626; }
.mobile-nav-panel hr { border: none; border-top: 1px solid #eee; margin: 8px 0; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 52px 20px 44px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(239,68,68,.18);
  border: 1px solid rgba(239,68,68,.4);
  color: #fca5a5;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .8rem;
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.4; margin-bottom: 12px; }
.hero p   { font-size: 1rem; color: #94a3b8; margin-bottom: 24px; }
.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.hero-stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: .88rem;
}

/* ===== SEARCH FORM ===== */
.search-section {
  background: #fff;
  padding: 24px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.search-inner { max-width: 1100px; margin: auto; }
.search-inner h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f97316;
  display: inline-block;
}
.search-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.search-form input, .search-form select {
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: .92rem;
  background: #f9fafb;
  color: #333;
  outline: none;
  transition: border-color .2s;
}
.search-form input:focus, .search-form select:focus { border-color: #dc2626; background: #fff; }
.search-btn {
  padding: 10px 24px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  grid-column: 1 / -1;
  max-width: 200px;
  margin: 0 auto;
}
.search-btn:hover { background: #b91c1c; }

/* ===== AD UNIT ===== */
.ad-wrap {
  max-width: 1100px;
  margin: 16px auto;
  padding: 0 20px;
  text-align: center;
}
.ad-label { font-size: .65rem; color: #bbb; display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }

/* ===== TOOLS SECTION ===== */
.tools-section { padding: 44px 20px; background: #f8f9fa; }
.section-inner { max-width: 1100px; margin: auto; }
.section-title { text-align: center; font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.section-sub   { text-align: center; color: #6b7280; margin-bottom: 28px; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.tool-card {
  background: #fff;
  padding: 28px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  display: block;
  color: inherit;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.tool-card i  { font-size: 2.2rem; color: #dc2626; margin-bottom: 14px; display: block; }
.tool-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.tool-card p  { font-size: .875rem; color: #6b7280; line-height: 1.6; }

/* ===== RESULTS AREA ===== */
.results-section { max-width: 1100px; margin: 0 auto; padding: 24px 20px; flex-grow: 1; }
.results-summary { background: #374151; color: #fff; padding: 8px 14px; border-radius: 6px; font-size: .88rem; margin-bottom: 16px; text-align: center; }
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.spot-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s;
  display: block;
  color: inherit;
}
.spot-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.spot-card-img  { width: 100%; height: 180px; object-fit: cover; }
.spot-card-body { padding: 16px; }
.spot-category-badge {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.spot-name     { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.spot-location { font-size: .85rem; color: #6b7280; margin-bottom: 8px; }
.spot-desc     { font-size: .85rem; color: #555; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spot-footer   { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-top: 1px solid #f3f4f6; font-size: .8rem; color: #555; }
.prayer-badge  { background: #dbeafe; color: #1d4ed8; padding: 2px 8px; border-radius: 10px; font-size: .75rem; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.page-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #d1d5db; border-radius: 50%;
  background: #fff; color: #333; font-weight: 700; cursor: pointer;
  transition: all .2s;
}
.page-btn:hover, .page-btn.active { background: #dc2626; color: #fff; border-color: #dc2626; }
.page-btn:disabled { background: #f9fafb; color: #d1d5db; cursor: not-allowed; }

/* ===== BUSINESS CTA ===== */
.cta-section {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  padding: 52px 20px;
  text-align: center;
  color: #fff;
}
.cta-inner { max-width: 680px; margin: auto; }
.cta-inner h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.cta-inner p  { color: rgba(255,255,255,.85); margin-bottom: 20px; }
.cta-badges { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.cta-badge  { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); padding: 4px 14px; border-radius: 20px; font-size: .82rem; }
.cta-btn { background: #fff; color: #dc2626; font-weight: 800; padding: 14px 32px; border-radius: 8px; display: inline-block; transition: transform .2s, box-shadow .2s; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.cta-link { color: rgba(255,255,255,.75); text-decoration: underline; margin-left: 16px; font-size: .875rem; }

/* ===== PARTNER SECTION ===== */
.partner-section { padding: 52px 20px; background: #fff; }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.partner-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px;
  transition: box-shadow .2s, transform .2s;
}
.partner-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.partner-icon { font-size: 1.8rem; color: #dc2626; flex-shrink: 0; width: 40px; text-align: center; }
.partner-body h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.partner-body p  { font-size: .82rem; color: #6b7280; line-height: 1.55; margin: 0; }
.partner-tag { display: inline-block; background: #fef3c7; color: #92400e; font-size: .7rem; padding: 2px 8px; border-radius: 10px; margin-top: 6px; font-weight: 700; }

/* ===== NEWSLETTER BANNER ===== */
.newsletter { background: linear-gradient(135deg, #1e3a5f, #0f2749); padding: 40px 20px; color: #fff; }
.newsletter-inner {
  max-width: 860px; margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.nl-text { display: flex; align-items: center; gap: 16px; }
.nl-text i  { font-size: 2.4rem; color: #fbbf24; flex-shrink: 0; }
.nl-text h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.nl-text p  { font-size: .88rem; color: rgba(255,255,255,.7); margin: 0; }
.nl-form { display: flex; gap: 8px; }
.nl-form input { padding: 10px 16px; border-radius: 6px; border: none; font-size: .92rem; color: #333; min-width: 210px; outline: none; }
.nl-form button { background: #fbbf24; color: #333; font-weight: 700; padding: 10px 18px; border: none; border-radius: 6px; cursor: pointer; transition: background .2s; white-space: nowrap; }
.nl-form button:hover { background: #f59e0b; }
@media (max-width: 640px) {
  .newsletter-inner { flex-direction: column; }
  .nl-text { flex-direction: column; text-align: center; }
  .nl-form  { flex-direction: column; width: 100%; }
  .nl-form input, .nl-form button { width: 100%; }
}

/* ===== SITE FOOTER ===== */
.site-footer { background: #0f1923; color: #64748b; padding: 48px 20px 28px; }
.footer-wrap { max-width: 1100px; margin: auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo-img { height: 36px; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-desc { font-size: .84rem; line-height: 1.7; color: #475569; margin-bottom: 14px; }
.footer-sns { display: flex; gap: 14px; }
.footer-sns a { color: #475569; font-size: 1.3rem; transition: color .2s; }
.footer-sns a:hover { color: #fff; }
.footer-col-title { color: #e2e8f0; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a  { color: #475569; font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: #e2e8f0; }
.footer-links i  { margin-right: 6px; }
.footer-bottom {
  border-top: 1px solid #1e293b; margin-top: 36px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: .82rem; color: #334155;
}

/* ===== ARTICLE CARDS ===== */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 24px; }
.article-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.07); transition: transform .2s; display: block; color: inherit; }
.article-card:hover { transform: translateY(-4px); }
.article-card-img  { width: 100%; height: 170px; object-fit: cover; }
.article-card-body { padding: 16px; }
.article-card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.article-card-body p  { font-size: .84rem; color: #6b7280; }
.article-card-foot { padding: 10px 16px; border-top: 1px solid #f3f4f6; font-size: .78rem; color: #9ca3af; }

/* ===== CONTENT SECTION (静的ページ共通) ===== */
.content-page { max-width: 860px; margin: 40px auto; padding: 0 20px 60px; }
.content-page h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 24px; border-bottom: 3px solid #dc2626; padding-bottom: 10px; }
.content-page h2 { font-size: 1.3rem; font-weight: 700; margin: 28px 0 12px; color: #1d4ed8; }
.content-page p, .content-page li { font-size: .95rem; line-height: 1.8; color: #444; margin-bottom: 12px; }
.content-page ul { list-style: disc; padding-left: 24px; }

/* ===== AUTH FORMS ===== */
.auth-page { max-width: 420px; margin: 60px auto; padding: 0 20px 80px; }
.auth-card  { background: #fff; border-radius: 12px; padding: 36px 32px; box-shadow: 0 4px 24px rgba(0,0,0,.1); }
.auth-card h1 { text-align: center; font-size: 1.4rem; font-weight: 800; margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: #374151; }
.form-group input {
  width: 100%; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px;
  font-size: .92rem; outline: none; transition: border-color .2s;
}
.form-group input:focus { border-color: #dc2626; }
.form-submit {
  width: 100%; padding: 12px; background: #dc2626; color: #fff; border: none;
  border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; margin-top: 8px;
  transition: background .2s;
}
.form-submit:hover { background: #b91c1c; }
.form-alt { text-align: center; margin-top: 16px; font-size: .88rem; color: #6b7280; }
.form-alt a { color: #dc2626; font-weight: 700; }
.form-error { background: #fee2e2; color: #dc2626; padding: 10px 14px; border-radius: 6px; font-size: .88rem; margin-bottom: 14px; display: none; }
.form-error.show { display: block; }

/* ===== LOADING ===== */
.loading { text-align: center; padding: 40px; color: #9ca3af; }
.loading::after { content: ''; display: inline-block; width: 24px; height: 24px; border: 3px solid #e5e7eb; border-top-color: #dc2626; border-radius: 50%; animation: spin .7s linear infinite; margin-left: 8px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== SPOT DETAIL ===== */
.spot-detail { max-width: 860px; margin: 0 auto; padding: 32px 20px 60px; }
.spot-detail-img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; margin-bottom: 24px; }
.spot-detail h1  { font-size: 1.7rem; font-weight: 800; margin-bottom: 8px; }
.spot-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.spot-meta-item { background: #f3f4f6; padding: 4px 12px; border-radius: 20px; font-size: .85rem; }
.spot-detail-desc { font-size: .95rem; line-height: 1.8; color: #444; margin-bottom: 24px; white-space: pre-wrap; }
.map-btn { display: inline-flex; align-items: center; gap: 8px; background: #fbbf24; color: #333; padding: 12px 24px; border-radius: 8px; font-weight: 700; margin-bottom: 28px; transition: background .2s; }
.map-btn:hover { background: #f59e0b; }
.reviews-section h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }
.review-card { background: #f9fafb; border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.review-stars { color: #fbbf24; font-size: 1rem; margin-bottom: 4px; }
.review-meta  { font-size: .8rem; color: #9ca3af; margin-bottom: 6px; }
.review-text  { font-size: .9rem; color: #444; }

/* ===== CONTACT ===== */
.contact-form-wrap { max-width: 600px; margin: 0 auto; background: #fff; padding: 32px; border-radius: 12px; box-shadow: 0 2px 16px rgba(0,0,0,.08); }
textarea.form-textarea { width: 100%; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: .92rem; min-height: 120px; resize: vertical; outline: none; font-family: inherit; }
textarea.form-textarea:focus { border-color: #dc2626; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .hero h1   { font-size: 1.5rem; }
  .cta-inner h2 { font-size: 1.3rem; }
  .auth-card { padding: 24px 20px; }
}
