/* ========================================
   Front Page - Modern University-style Design
   参考: career-palette.kobe-wu.ac.jp
   ======================================== */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

.front-page {
  background: #ffffff;
  margin: 0;
  padding: 0;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
}

/* ========================================
   Hero Section - Full Width
   ======================================== */

.hero-section {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  width: 100%;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
  z-index: 2;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
  z-index: 2;
}

.hero-video-wrapper iframe,
.hero-video-wrapper video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 0 40px;
}

.hero-catchphrase {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

/* ========================================
   News Ticker
   ======================================== */

.news-ticker {
  background: #fff3e0;
  color: #333;
  padding: 16px 50px;
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid #ffe0b2;
  width: 100%;
  margin: 0;
}

.ticker-label {
  font-weight: 700;
  white-space: nowrap;
  font-size: 12px;
  color: #f57c00;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  height: 24px;
}

.ticker-items {
  display: flex;
  animation: ticker-scroll 25s linear infinite;
  height: 100%;
  align-items: center;
}

.ticker-item {
  padding: 0 60px;
  white-space: nowrap;
  font-size: 14px;
  color: #555;
  flex-shrink: 0;
  font-weight: 500;
}

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

/* ========================================
   Search Section
   ======================================== */

.section-search {
  padding: 80px 50px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e0e0e0;
}

.search-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.search-card {
  background: #ffffff;
  padding: 50px 40px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e0e0e0;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
  overflow: hidden;
}

.search-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.search-card:hover::before {
  transform: scaleX(1);
}

.search-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-8px);
}

.search-icon {
  font-size: 56px;
  margin-bottom: 24px;
  display: block;
}

.search-card h3 {
  font-size: 20px;
  margin: 16px 0;
  color: #333;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.search-card p {
  margin: 0;
  color: #888;
  font-size: 13px;
}

/* ========================================
   Section Headers
   ======================================== */

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

.section-header h2 {
  font-size: 48px;
  margin: 0 0 16px 0;
  color: #333;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 16px;
  color: #888;
  margin: 0;
  font-weight: 400;
}

/* ========================================
   Sections
   ======================================== */

section.section-ranking-stores,
section.section-new-stores,
section.section-cheap-stores,
section.section-reviews,
section.section-latest-reviews {
  padding: 100px 50px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

section.section-ranking-stores {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

section.section-new-stores {
  background: #ffffff;
}

section.section-cheap-stores {
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

section.section-banners {
  padding: 100px 50px;
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  border-bottom: 1px solid #e0e0e0;
}

section.section-reviews {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

section.section-latest-reviews {
  background: #ffffff;
}

/* ========================================
   Stores List Grid
   ======================================== */

.stores-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 50px;
}

/* ========================================
   Store Card
   ======================================== */

.store-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.store-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 10;
}

.store-card:hover::before {
  transform: scaleX(1);
}

.store-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  transform: translateY(-8px);
}

.store-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.store-card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f2f5 0%, #e8ecf1 100%);
}

.store-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.store-card:hover .store-card-image img {
  transform: scale(1.08);
}

.store-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 13px;
}

.store-card-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.store-card-category {
  margin-bottom: 12px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.store-card-title {
  font-size: 18px;
  margin: 12px 0;
  color: #333;
  font-weight: 700;
  line-height: 1.4;
}

.store-card-subtitle {
  font-size: 13px;
  color: #888;
  margin: 6px 0;
  font-weight: 500;
}

.store-card-catchcopy {
  font-size: 13px;
  color: #d32f2f;
  font-weight: 700;
  margin: 10px 0;
  line-height: 1.5;
}

.store-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0;
  font-size: 13px;
  color: #666;
}

.store-card-area,
.store-card-price {
  display: block;
  font-weight: 600;
}

.store-card-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.rating-stars {
  font-size: 14px;
}

.rating-count {
  font-size: 13px;
  color: #888;
}

.no-rating {
  font-size: 13px;
  color: #ccc;
}

/* ========================================
   Banners Section
   ======================================== */

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

.banner-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e0e0e0;
  padding: 42px 36px;
  text-align: center;
  transition: all 0.4s ease;
}

.banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: translateX(-50%);
  transition: width 0.4s ease;
}

.banner-card:hover::before {
  width: 60%;
}

.banner-card:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
}

.banner-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.banner-card h3 {
  margin: 12px 0;
  color: #333;
  font-size: 18px;
  font-weight: 700;
}

.banner-card p {
  margin: 0;
  color: #d32f2f;
  font-size: 14px;
  font-weight: 700;
}

/* ========================================
   Reviews Section
   ======================================== */

.reviews-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.review-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 32px;
  transition: all 0.4s ease;
  border-left: 4px solid #667eea;
}

.review-card:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
}

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

.review-header strong {
  color: #333;
  font-size: 14px;
  font-weight: 700;
}

.review-rating {
  font-size: 13px;
}

.review-text {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  margin: 14px 0;
}

.review-meta {
  font-size: 12px;
  color: #999;
  margin: 0;
}

/* ========================================
   Latest Reviews Section
   ======================================== */

.latest-reviews-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.latest-review-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
}

.latest-review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 10;
}

.latest-review-card:hover::before {
  transform: scaleX(1);
}

.latest-review-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  transform: translateY(-8px);
}

.latest-review-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.latest-review-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f2f5 0%, #e8ecf1 100%);
}

.latest-review-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.latest-review-card:hover .latest-review-image img {
  transform: scale(1.08);
}

.latest-review-info {
  padding: 20px;
}

.latest-review-info h4 {
  font-size: 15px;
  margin: 0 0 10px 0;
  color: #333;
  font-weight: 700;
}

.review-stats {
  font-size: 13px;
  margin: 8px 0;
  color: #667eea;
  font-weight: 700;
}

.review-date {
  font-size: 12px;
  color: #999;
  margin: 0;
}

/* ========================================
   Free Space Section
   ======================================== */

.section-free-space {
  padding: 100px 50px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.section-free-space-1 {
  border-top: 4px solid #667eea;
}

.section-free-space-2 {
  border-top: 4px solid #764ba2;
}

.section-free-space-3 {
  border-top: 4px solid #d32f2f;
}

.free-space-content {
  max-width: 1200px;
  margin: 30px auto 0;
}

.free-space-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.free-space-content p {
  line-height: 1.9;
  color: #666;
  font-size: 15px;
}

/* ========================================
   More Button
   ======================================== */

.btn-more {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
  margin-top: 12px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
  .section-container {
    padding: 0 35px;
  }

  .stores-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .banners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-list {
    grid-template-columns: 1fr;
  }

  .latest-reviews-list {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 768px) {
  .section-container,
  .news-ticker,
  .section-search {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-section {
    height: 400px;
  }

  .hero-catchphrase {
    font-size: 40px;
  }

  .section-header h2 {
    font-size: 36px;
  }

  section.section-ranking-stores,
  section.section-new-stores,
  section.section-cheap-stores,
  section.section-reviews,
  section.section-latest-reviews,
  section.section-free-space,
  section.section-banners,
  section.section-search {
    padding: 60px 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .stores-list,
  .banners-grid,
  .reviews-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .latest-reviews-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-options {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .store-card-image {
    height: 160px;
  }

  .latest-review-image {
    height: 120px;
  }

  .news-ticker {
    padding: 12px 20px;
    gap: 16px;
  }

  .ticker-item {
    padding: 0 30px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 300px;
  }

  .hero-catchphrase {
    font-size: 28px;
  }

  .section-header h2 {
    font-size: 26px;
  }

  .stores-list,
  .banners-grid,
  .reviews-list,
  .latest-reviews-list,
  .search-options {
    grid-template-columns: 1fr;
  }

  .ticker-label {
    display: none;
  }

  .ticker-item {
    padding: 0 20px;
  }
}
