/**
 * フロントページ専用スタイル
 */

/* ==========================================================================
   変数とベース
   ========================================================================== */

:root {
  --primary-color: #003c71;
  --primary-dark: #002a52;
  --primary-light: #0056a3;
  --accent-color: #e63312;
  --accent-hover: #c42a0e;
  --text-color: #333333;
  --text-light: #666666;
  --bg-light: #f5f7fa;
  --bg-dark: #1a1a2e;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --section-padding: 80px;
  --container-width: 1100px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#content,
.site-content {
  padding-top: 0px !important;
}

.front-page {
  overflow-x: hidden;
}

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

/* ==========================================================================
   セクション共通
   ========================================================================== */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
  padding-left: 20px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 70%;
  background: var(--accent-color);
  border-radius: 3px;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.more-link::after {
  content: '→';
  transition: var(--transition);
}

.more-link:hover {
  color: var(--accent-color);
}

.more-link:hover::after {
  transform: translateX(5px);
}

/* ==========================================================================
   スライダーセクション
   ========================================================================== */

.hero-section {
  position: relative;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* デモ用グラデーション背景 */
.slide-bg-1 {
  background: linear-gradient(135deg, #003c71 0%, #0056a3 50%, #00a0e9 100%);
}

.slide-bg-2 {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.slide-bg-3 {
  background: linear-gradient(135deg, #2d3436 0%, #636e72 50%, #b2bec3 100%);
}

.slide-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide-content {
  position: absolute;
  bottom: 15%;
  left: 10%;
  z-index: 2;
  color: var(--white);
}

.hero-slide.active .slide-content {
  animation: slideUp 0.8s ease 0.3s both;
}

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

.slide-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  margin-bottom: 20px;
  opacity: 0.9;
}

.slide-btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--accent-color);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  transition: var(--transition);
}

.slide-btn:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
}

/* スライダーナビゲーション */
.hero-slider-nav {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 15px;
}

.slider-prev,
.slider-next {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slider-prev:hover,
.slider-next:hover {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-dot {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  max-width: 12px !important;
  max-height: 12px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.4) !important;
  border: 2px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 50% !important;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.slider-dot.active,
.slider-dot:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  transform: scale(1.2);
}

/* ==========================================================================
   検索セクション
   ========================================================================== */

.search-section {
  padding: 40px 0;
  background: #f0f0f0;
}

.search-section .container {
  max-width: 700px;
}

.search-form {
  width: 100%;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 50px;
  padding: 5px 5px 5px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-label {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333333;
  padding-right: 15px;
  border-right: 1px solid #e0e0e0;
  margin-right: 15px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  padding: 12px 10px;
  background: transparent;
  color: #333333;
  min-width: 0;
}

.search-input::placeholder {
  color: #999999;
}

.search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: #3d4654;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.search-submit:hover {
  background: #2a3240;
}

.search-submit svg {
  width: 20px;
  height: 20px;
}

@media screen and (max-width: 640px) {
  .search-section {
    padding: 30px 0;
  }
  
  .search-label {
    display: none;
  }
  
  .search-input-wrapper {
    padding: 5px 5px 5px 15px;
  }
}

/* ==========================================================================
   商品カテゴリセクション
   ========================================================================== */

.product-category-section {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.category-banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

@media (max-width: 900px) {
  .category-banners {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.category-banner {
  position: relative;
  display: block;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.category-banner:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
}

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

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

/* デモ用背景 */
.banner-image-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-image-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.banner-image-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.banner-title {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.banner-arrow {
  color: var(--white);
  opacity: 0.8;
  transition: var(--transition);
}

.category-banner:hover .banner-arrow {
  opacity: 1;
  transform: translateX(5px);
}

/* ==========================================================================
   お知らせセクション
   ========================================================================== */

.news-section {
  padding: var(--section-padding) 0;
  background: var(--bg-light);
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 25px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: var(--bg-light);
}

.news-date {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  min-width: 90px;
}

.news-category {
  flex-shrink: 0;
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-color);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 3px;
  min-width: 80px;
  text-align: center;
}

.news-item .news-title {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  line-height: 1.5;
}

.news-item .news-title:hover {
  color: var(--accent-color);
}

@media (max-width: 640px) {
  .news-item {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .news-item .news-title {
    width: 100%;
    flex: none;
  }
}

/* ==========================================================================
   CTAセクション（お問い合わせ・会社概要）
   ========================================================================== */

.cta-section {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.cta-banners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .cta-banners {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.cta-banner {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 30px 35px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: var(--transition);
}

.cta-banner:hover::before {
  opacity: 0.1;
}

.cta-contact {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--white);
}

.cta-contact::before {
  background: var(--white);
}

.cta-company {
  background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
  color: var(--white);
}

.cta-company::before {
  background: var(--white);
}

.cta-banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.cta-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  color: currentColor;
  opacity: 0.9;
}

.cta-icon svg {
  width: 100%;
  height: 100%;
}

.cta-content {
  flex: 1;
}

.cta-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.cta-description {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.85;
}

.cta-arrow {
  flex-shrink: 0;
  opacity: 0.7;
  transition: var(--transition);
}

.cta-banner:hover .cta-arrow {
  opacity: 1;
  transform: translateX(5px);
}

/* ==========================================================================
   アニメーション
   ========================================================================== */

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

.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.animated {
  animation: fadeInUp 0.6s ease forwards;
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --section-padding: 50px;
  }
  
  .hero-section {
    height: 50vh;
    min-height: 350px;
  }
  
  .slide-content {
    left: 5%;
    right: 5%;
    bottom: 20%;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .category-banner {
    height: 200px;
  }
  
  .cta-banner {
    padding: 25px;
    gap: 20px;
  }
  
  .cta-icon {
    width: 50px;
    height: 50px;
  }
  
  .cta-title {
    font-size: 1.15rem;
  }
}

/* ==========================================================================
   Lightningテーマ用の上書き
   ========================================================================== */

.front-page .site-body {
  padding: 0;
}

.front-page .site-body-container {
  max-width: 100%;
  padding: 0;
}

.front-page .entry-content {
  margin: 0;
  padding: 0;
}
