/* ふるさと納税業界インサイト - Styles */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  line-height: 1.7;
  color: #2d3748;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000000;
  color: #ffffff;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* Header Styles */
.site-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand:hover {
  opacity: 0.9;
}

/* Navigation */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #ffffff;
}

.menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  position: relative;
  transition: background 0.3s;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: all 0.3s;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  bottom: -8px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.3s;
  font-weight: 500;
  white-space: nowrap;
  font-size: 0.9rem;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Breadcrumb */
.breadcrumb {
  background: #f7fafc;
  padding: 1rem 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.breadcrumb ol {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: '>';
  margin-left: 0.5rem;
  color: #a0aec0;
}

.breadcrumb a {
  color: #4a5568;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #667eea;
}

/* Main Content Structure */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  background: url('images/hero-main-sharp.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
}

.page-hero {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8)), url('images/hero-main.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-kicker {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title,
.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 500;
}

.hero-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.95;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.button.primary {
  background: #ffffff;
  color: #667eea;
}

.button.primary:hover {
  background: #f7fafc;
  transform: translateY(-2px);
}

.button.ghost {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.button.ghost:hover {
  background: #ffffff;
  color: #667eea;
}

/* Content Wrapper - 2 Column Layout */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Main Article */
.main-article {
  background: #ffffff;
}

/* Content Sections */
.content-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.content-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #2d3748;
  border-bottom: 3px solid #667eea;
  padding-bottom: 0.5rem;
}

.content-section h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  color: #4a5568;
}

.content-section p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Sidebar */
.sidebar {
  background: #f7fafc;
  padding: 2rem;
  border-radius: 12px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.sidebar-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2d3748;
}

/* Ad Space */
.ad-space .ad-placeholder {
  background: #e2e8f0;
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
  color: #718096;
  border: 2px dashed #cbd5e0;
}

/* Table of Contents */
.toc-list,
.related-list,
.site-list {
  list-style: none;
}

.toc-list li,
.related-list li,
.site-list li {
  margin-bottom: 0.5rem;
}

.toc-list a,
.related-list a,
.site-list a {
  color: #4a5568;
  text-decoration: none;
  padding: 0.5rem;
  display: block;
  border-radius: 6px;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.toc-list a:hover,
.related-list a:hover,
.site-list a:hover {
  background: #667eea;
  color: #ffffff;
  transform: translateX(4px);
}

/* Homepage Specific Sections */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-kicker {
  font-size: 0.9rem;
  font-weight: 600;
  color: #667eea;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.3;
}

.section-body p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.news-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.news-item:hover {
  transform: translateY(-4px);
}

.news-meta {
  background: #667eea;
  color: #ffffff;
  padding: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.news-content {
  padding: 1.5rem;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.news-summary {
  font-size: 0.9rem;
  color: #718096;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: #2d3748;
  color: #ffffff;
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-section p {
  color: #a0aec0;
  line-height: 1.6;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #4a5568;
  text-align: center;
  color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-inner {
    padding: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #667eea;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
  }

  .hero,
  .page-hero {
    padding: 3rem 1rem;
  }

  .hero-title,
  .page-title {
    font-size: 2rem;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .sidebar {
    order: -1;
    position: static;
    margin-bottom: 2rem;
  }

  .main-article {
    order: 0;
  }

  .section {
    padding: 3rem 1rem;
  }

  .section h2 {
    font-size: 1.8rem;
  }

  .breadcrumb {
    padding: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .button {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero-title,
  .page-title {
    font-size: 1.8rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .content-section {
    padding: 1.5rem;
  }

  .sidebar {
    padding: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .breadcrumb,
  .sidebar,
  .site-footer {
    display: none;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .hero,
  .page-hero {
    background: none;
    color: #000000;
    padding: 2rem 0;
  }
}