/* ========================================================
   nagoya-girl.com - Neo-Nagoya Design System
   Powered by AI Character IP (Nanami & Miyako)
   ======================================================== */

:root {
  --primary-pink: #FF6B8B;
  --primary-pink-dark: #E84393;
  --primary-pink-light: #FFF0F5;
  --accent-orange: #FF9F43;
  --accent-orange-light: #FFF8E7;
  --accent-gold: #FDCB6E;
  --text-main: #2D3436;
  --text-muted: #636E72;
  --text-light: #B2BEC3;
  --bg-page: #FAF9F6;
  --bg-card: #FFFFFF;
  --border-light: #F1E5E9;
  --shadow-sm: 0 2px 8px rgba(232, 67, 147, 0.08);
  --shadow-md: 0 8px 24px rgba(232, 67, 147, 0.12);
  --shadow-lg: 0 16px 40px rgba(232, 67, 147, 0.16);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --container-max: 1140px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================================
   PR Disclaimer Banner (景表法ステマ規制遵守)
   ======================================================== */
.pr-top-bar {
  background: #FFF5F7;
  border-bottom: 1px solid #FFE4E9;
  font-size: 12px;
  color: #D15068;
  text-align: center;
  padding: 6px 16px;
  font-weight: 500;
}
.pr-top-bar a {
  text-decoration: underline;
}

/* ========================================================
   Header & Responsive Nav (中間幅崩れ防止設計)
   ======================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 16px;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.nav-links a:hover {
  color: var(--primary-pink);
  background: var(--primary-pink-light);
}

.lang-switch {
  display: flex;
  align-items: center;
  background: #F1F2F6;
  padding: 4px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.lang-switch a {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.lang-switch a.active {
  background: var(--bg-card);
  color: var(--primary-pink);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Hamburger Button */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ========================================================
   Hero Section
   ======================================================== */
.hero-section {
  padding: 30px 0 20px;
}

.hero-banner-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 1200 / 630;
  background: #FFF0F5;
}

.hero-banner-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================================
   AI Character Profiles Section
   ======================================================== */
.characters-section {
  padding: 40px 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-pink);
  background: var(--primary-pink-light);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
}

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

.char-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.char-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.char-card.nanami-card {
  border-left: 5px solid var(--primary-pink);
}

.char-card.miyako-card {
  border-left: 5px solid var(--accent-orange);
}

.char-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
}

.char-info h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.char-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.nanami-card .char-tag {
  background: #FFE4E8;
  color: var(--primary-pink-dark);
}

.miyako-card .char-tag {
  background: #FFEAA7;
  color: #D35400;
}

.char-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========================================================
   3-Second AI Outing Diagnosis (3秒おでかけ診断)
   ======================================================== */
.diagnosis-island {
  background: linear-gradient(135deg, #FFF0F5 0%, #FFF9E6 50%, #FFEBF0 100%);
  border: 2px solid #FFD1DC;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.diagnosis-island h2 {
  font-size: 24px;
  font-weight: 800;
  color: #D15068;
  margin-bottom: 8px;
}

.diagnosis-island p.desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.diag-step-box {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.diag-step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.diag-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.diag-btn {
  background: #FFF5F7;
  border: 1.5px solid #FFCCD5;
  color: #D15068;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.diag-btn:hover, .diag-btn.active {
  background: var(--primary-pink);
  color: #FFFFFF;
  border-color: var(--primary-pink);
  transform: scale(1.02);
}

.diag-result {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 2px solid var(--primary-pink);
  text-align: left;
}

.diag-result.show {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* ========================================================
   Article Grid & Cards (16:9比率統一)
   ======================================================== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #F1F2F6;
  overflow: hidden;
}

.card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(45, 52, 54, 0.85);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 10px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-pink);
}

/* ========================================================
   Article Detail Page Layout
   ======================================================== */
.article-header {
  padding: 30px 0 20px;
  text-align: center;
}

.article-breadcrumbs {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.article-breadcrumbs a:hover {
  color: var(--primary-pink);
}

.article-main-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 16px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.article-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
}

.article-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 50px;
}

.article-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: #2D3436;
  border-left: 5px solid var(--primary-pink);
  padding-left: 12px;
  margin: 36px 0 16px;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #D15068;
  margin: 24px 0 12px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

/* Answer Capsule (GEO / AI Snippet) */
.answer-capsule {
  background: #FFF5F7;
  border: 2px solid #FFD1DC;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 30px;
}

.capsule-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--primary-pink);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.answer-capsule p {
  margin-bottom: 0;
  font-size: 15px;
  color: #2D3436;
}

/* Character Dialog Box (七海＆みやこの掛け合い) */
.dialog-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 24px 0;
}

.dialog-box.dialog-reverse {
  flex-direction: row-reverse;
}

.dialog-avatar {
  text-align: center;
  flex-shrink: 0;
}

.dialog-avatar img {
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.avatar-name {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 4px;
}

.dialog-bubble {
  position: relative;
  background: #FFF0F5;
  border: 1px solid #FFCCD5;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 15px;
  color: #2D3436;
  max-width: 80%;
  line-height: 1.6;
}

.dialog-bubble.bubble-orange {
  background: #FFF8E7;
  border-color: #FED330;
}

/* Table Design */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.article-content th, .article-content td {
  padding: 12px 14px;
  border: 1px solid #E2E8F0;
  text-align: left;
}

.article-content th {
  background: #F8FAFC;
  font-weight: 700;
  color: #334155;
}

/* Reservation CTA Box (高単価アフィリエイト導線) */
.reservation-cta-box {
  background: linear-gradient(135deg, #FAF5FF 0%, #FFF0F5 100%);
  border: 2px solid #E9D5FF;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 36px 0;
  text-align: center;
}

.cta-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cta-header h4 {
  font-size: 18px;
  font-weight: 800;
  color: #7C3AED;
}

.reservation-cta-box p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.cta-btn-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-pink-dark) 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(232, 67, 147, 0.3);
}

.btn-secondary {
  display: inline-block;
  background: #FFFFFF;
  border: 1.5px solid var(--primary-pink);
  color: var(--primary-pink) !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
}

/* ========================================================
   Mobile Floating Bottom Bar (スマホ親指UX)
   ======================================================== */
.mobile-floating-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  padding: 8px 12px;
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

.floating-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.floating-nav-item {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.floating-nav-item span.icon {
  font-size: 20px;
}

/* ========================================================
   Footer & Legal Shield (二段構えサルベージ条項)
   ======================================================== */
.site-footer {
  background: #2D3436;
  color: #DFE6E9;
  padding: 50px 0 30px;
  margin-top: 60px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h5 {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--primary-pink);
}

.footer-legal-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 30px;
}

.footer-legal-box h6 {
  font-size: 13px;
  font-weight: 700;
  color: #FDCB6E;
  margin-bottom: 12px;
}

.legal-text-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  font-size: 11px;
  color: #B2BEC3;
  line-height: 1.6;
}

.copyright {
  text-align: center;
  font-size: 12px;
  color: #636E72;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

/* ========================================================
   Responsive Media Queries (中間幅防御規律)
   ======================================================== */
@media (max-width: 1080px) {
  .site-nav {
    display: none; /* スマホ・タブレットではハンバーガーへ退避 */
  }
  .hamburger-btn {
    display: flex;
  }
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .legal-text-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .char-grid {
    grid-template-columns: 1fr;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .diag-options-grid {
    grid-template-columns: 1fr;
  }
  .article-content {
    padding: 24px 18px;
  }
  .article-main-title {
    font-size: 22px;
  }
  .mobile-floating-bar {
    display: block;
  }
  body {
    padding-bottom: 60px; /* フローティングバーの余白 */
  }
}

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

/* ========================================================
   Affiliate & Mall Buttons Styling (Compliant & High CRO)
   ======================================================== */
.affiliate-travel-box {
  background: #FFFFFF !important;
  border: 2px solid #FBCFE8 !important;
  box-shadow: 0 10px 25px -5px rgba(236, 72, 153, 0.08);
  padding: 28px 24px;
  margin: 40px 0 24px;
}

.affiliate-pr-badge {
  display: inline-block;
  background: #FDF2F8;
  color: var(--primary-pink);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid #FBCFE8;
  margin-left: 8px;
}

.affiliate-box-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.affiliate-mall-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.affiliate-card-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1.5px solid transparent;
}

.affiliate-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.affiliate-card-btn .btn-icon {
  font-size: 24px;
  line-height: 1;
}

.affiliate-card-btn .btn-text-wrap {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.affiliate-card-btn .btn-mall-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.affiliate-card-btn .btn-main-action {
  font-size: 14px;
  font-weight: 700;
}

.affiliate-card-btn .btn-arrow {
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.15s ease;
}

.affiliate-card-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* 楽天トラベル */
.affiliate-card-btn.rakuten-travel {
  background: #F0FDF4;
  border-color: #86EFAC;
  color: #166534 !important;
}
.affiliate-card-btn.rakuten-travel .btn-mall-label {
  color: #15803D;
}
.affiliate-card-btn.rakuten-travel:hover {
  background: #DCFCE7;
}

/* 楽天市場 */
.affiliate-card-btn.rakuten-ichiba {
  background: #FFF1F2;
  border-color: #FECDD3;
  color: #9F1239 !important;
}
.affiliate-card-btn.rakuten-ichiba .btn-mall-label {
  color: #BE123C;
}
.affiliate-card-btn.rakuten-ichiba:hover {
  background: #FFE4E6;
}

/* Amazon */
.affiliate-card-btn.amazon {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #92400E !important;
}
.affiliate-card-btn.amazon .btn-mall-label {
  color: #B45309;
}
.affiliate-card-btn.amazon:hover {
  background: #FEF3C7;
}

/* Booking.com */
.affiliate-card-btn.booking {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1E40AF !important;
}

/* Klook */
.affiliate-card-btn.klook {
  background: #FFF7ED;
  border-color: #FED7AA;
  color: #C2410C !important;
}

/* インラインアフィリエイトリンク */
.inline-affiliate-link {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 12px;
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: 6px;
  color: #166534 !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.inline-affiliate-link:hover {
  background: #DCFCE7;
  transform: translateX(2px);
}

.affiliate-disclaimer-note {
  font-size: 11px;
  color: #9CA3AF;
  line-height: 1.5;
  text-align: left;
  border-top: 1px dashed #E5E7EB;
  padding-top: 12px;
  margin-top: 16px;
}
