/* ============================================================
   Business Hub Portal - Stylesheet
   ============================================================ */

/* ============================================================
   リセット & ベーススタイル
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f8f6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #d97706;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #b45309;
}

/* ============================================================
   ヘッダー
   ============================================================ */
header {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.logo-image {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.logo:hover .logo-image {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.3rem;
  font-weight: bold;
  color: #92400e;
  letter-spacing: 0.05em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: #92400e;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #d97706;
}

/* ============================================================
   ヒーローセクション
   ============================================================ */
.hero {
  color: white;
  padding: 8rem 2rem;
  text-align: center;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ヒーロー背景の暗いオーバーレイ */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* アニメーション背景オーバーレイ（光の流れ効果） */
.hero-animation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(
      -45deg,
      transparent 0%,
      rgba(255, 255, 255, 0.03) 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.02) 75%,
      transparent 100%
    );
  animation: slideBackground 15s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes slideBackground {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
  font-style: normal;
  background: linear-gradient(90deg, #fef08a 0%, #fcd34d 25%, #fbbf24 50%, #f59e0b 75%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.6)) drop-shadow(0 0 20px rgba(249, 115, 22, 0.4));
  text-shadow: none;
  animation: fadeInScale 0.8s ease-out, glow 3s ease-in-out infinite;
}

.hero p {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow:
    0 0 5px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(255, 215, 0, 0.3);
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: 0.01em;
  animation: fadeInUp 1s ease-out;
}

.hero p:nth-child(3) {
  animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.6)) drop-shadow(0 0 20px rgba(249, 115, 22, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 193, 7, 0.8)) drop-shadow(0 0 30px rgba(249, 115, 22, 0.6)) drop-shadow(0 0 40px rgba(249, 115, 22, 0.3));
  }
}

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

/* ============================================================
   サイト概要セクション
   ============================================================ */
.overview {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 3rem 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.overview h2 {
  font-size: 2rem;
  color: #92400e;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #d97706;
  padding-bottom: 0.5rem;
}

.overview-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.overview-item {
  padding: 1rem;
}

.overview-item h3 {
  color: #d97706;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.overview-item p {
  color: #666;
  line-height: 1.8;
}

/* ============================================================
   3カラムサイト一覧セクション
   ============================================================ */
.sites-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 2rem;
}

.sites-section h2 {
  font-size: 2rem;
  color: #92400e;
  margin-bottom: 3rem;
  text-align: center;
  border-bottom: 3px solid #d97706;
  padding-bottom: 0.5rem;
}

.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.site-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.site-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.site-card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #999;
  font-size: 0.9rem;
}

.site-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-card-content {
  padding: 1.5rem;
}

.site-card-content h3 {
  font-size: 1.1rem;
  color: #92400e;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  min-height: 2.8em;
}

.site-card-content p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  min-height: 3em;
}

.site-card-url {
  color: #d97706;
  font-size: 0.85rem;
  word-break: break-all;
}

/* ============================================================
   ブログ一覧ページ
   ============================================================ */
.blog-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}

.blog-list {
  display: grid;
  gap: 2rem;
}

.blog-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 200px 1fr;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.blog-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.blog-item-image {
  width: 200px;
  height: 150px;
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #999;
}

.blog-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-item-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-item-content h3 {
  font-size: 1.1rem;
  color: #92400e;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.blog-item-content p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

.blog-source {
  font-size: 0.85rem;
  color: #d97706;
  margin-top: 0.5rem;
}

.sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
}

.ad-space {
  background: #f0f0f0;
  border: 2px dashed #d97706;
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
  color: #999;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   2カラムページ（利用規約、プライバシーポリシー）
   ============================================================ */
.page-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}

.page-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-content h1 {
  color: #92400e;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #d97706;
  padding-bottom: 0.5rem;
}

.page-content h2 {
  color: #d97706;
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.page-content ul,
.page-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.page-content li {
  color: #666;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

/* ============================================================
   フッター
   ============================================================ */
footer {
  background: #1f2937;
  color: #f0f0f0;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

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

.footer-section h3 {
  color: #d97706;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

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

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

.footer-section a {
  color: #f0f0f0;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 2rem;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .hero {
    padding: 4rem 1rem;
  }

  .sites-grid,
  .blog-list {
    grid-template-columns: 1fr;
  }

  .blog-container,
  .page-container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .blog-item {
    grid-template-columns: 1fr;
  }

  .blog-item-image {
    width: 100%;
    height: auto;
    min-height: 150px;
  }

  .overview-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .overview {
    padding: 1.5rem;
  }

  .page-content {
    padding: 1.5rem;
  }

  nav ul {
    gap: 0.5rem;
  }

  nav ul li {
    font-size: 0.9rem;
  }
}
