/* Media Page Specific Styles */

/* メインコンテナ */
.media-main {
  background: #f7fafd;
  min-height: 100vh;
  margin-top: 100px;
}

.media-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* タブ・検索セクション */
.media-tabs-section {
  background: #f2f2f2;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.5rem 0;
}

.media-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.media-tab {
  color: #6b7280;
  padding-bottom: 0.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.media-tab:hover {
  color: #2563eb;
}

.media-tab-active {
  color: #2563eb;
  border-bottom: 2px solid #2563eb;
}

.media-search-form {
  display: flex;
  align-items: center;
  max-width: 20rem;
  margin-left: auto;
}

.media-search-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.media-search-btn {
  margin-left: 0.5rem;
  background: #2563eb;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.media-search-btn:hover {
  background: #1d4ed8;
}

@media (min-width: 768px) {
  .media-tabs-section .media-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  
  .media-tabs {
    margin-bottom: 0;
  }
}

/* ヒーローセクション */
.media-hero-section {
  background: linear-gradient(to right, #2449a4, #37508e);
  padding: 2rem 0;
}

.media-hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.media-featured-article {
  flex: 1;
}

.media-featured-image {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  height: 256px;
}

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

.media-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.media-featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1.5rem;
  z-index: 10;
  color: white;
}

.media-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: #2563eb;
  color: white;
  margin-bottom: 0.5rem;
}

.media-featured-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.media-featured-description {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.media-featured-btn {
  background: white;
  color: #2563eb;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.media-featured-btn:hover {
  background: #f3f4f6;
}

.media-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.media-sidebar-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1rem;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.media-sidebar-title {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  opacity: 0.8;
}

.media-sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.media-sidebar-link {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: text-decoration 0.3s ease;
}

.media-sidebar-link:hover {
  text-decoration: underline;
}

.media-badge-small {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
}

.media-badge-light {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

@media (min-width: 768px) {
  .media-hero-content {
    flex-direction: row;
  }
  
  .media-featured-image {
    height: 288px;
  }
  
  .media-featured-title {
    font-size: 1.5rem;
  }
}

/* 記事セクション */
.media-articles-section {
  padding: 2.5rem 0;
  background-image: url(../images/background06.svg);
  background-size: contain;
  background-repeat: no-repeat;
}

.media-articles-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.media-articles-main {
  flex: 1;
}

.media-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
}

.media-highlight-article {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.media-highlight-article img {
  width: 100%;
  height: 192px;
  object-fit: cover;
}

.media-highlight-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.media-highlight-header {
  margin-bottom: 1rem;
}

.media-highlight-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.media-highlight-description {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.media-highlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.media-highlight-date {
  font-size: 0.875rem;
  color: #6b7280;
}

.media-highlight-link {
  color: #2563eb;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: text-decoration 0.3s ease;
}

.media-highlight-link:hover {
  text-decoration: underline;
}

.media-articles-list {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.media-article-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

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

.media-article-item img {
width: 6rem;
  height: 4rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

.media-article-content {
  flex: 1;
}

.media-article-date {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.media-article-title {
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
  transition: text-decoration 0.3s ease;
}

.media-article-title:hover {
  text-decoration: underline;
}

.media-articles-sidebar {
  width: 100%;
}

.media-ranking-list {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.media-ranking-item {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

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

.media-ranking-number {
  font-weight: 700;
  color: #2563eb;
  margin-right: 0.5rem;
}

.media-newsletter-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.media-newsletter-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.media-newsletter-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.media-newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.media-newsletter-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.media-newsletter-btn {
  background: #2563eb;
  color: white;
  padding: 0 7px;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.media-newsletter-btn:hover {
  background: #1d4ed8;
}

@media (min-width: 768px) {
  .media-articles-layout {
    flex-direction: row;
  }
  
  .media-highlight-article {
    flex-direction: row;
  }
  
  .media-highlight-article img {
    width: 50%;
    height: 192px;
  }
  
  .media-articles-sidebar {
    width: 20rem;
    flex-shrink: 0;
  }
}

/* 修理の裏側セクション */
.media-behind-section {
  padding: 2.5rem 0;
}

.media-behind-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.media-behind-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.media-behind-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.media-behind-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.media-behind-content {
  padding: 1.5rem;
}

.media-behind-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.media-behind-description {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* おすすめコンテンツセクション */
.media-recommended-section {
  padding: 4rem 0;
  background: white;
}

.media-recommended-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.media-recommended-card {
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-recommended-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.media-recommended-card-blue {
  background: #eff6ff;
  border-top: 4px solid #3b82f6;
}

.media-recommended-card-green {
  background: #f0fdf4;
  border-top: 4px solid #22c55e;
}

.media-recommended-card-purple {
  background: #faf5ff;
  border-top: 4px solid #a855f7;
}

.media-recommended-card-orange {
  background: #fff7ed;
  border-top: 4px solid #f97316;
}

.media-recommended-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.media-recommended-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.media-recommended-description {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.media-recommended-link {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: text-decoration 0.3s ease;
}

.media-recommended-card-blue .media-recommended-link {
  color: #2563eb;
}

.media-recommended-card-green .media-recommended-link {
  color: #16a34a;
}

.media-recommended-card-purple .media-recommended-link {
  color: #9333ea;
}

.media-recommended-card-orange .media-recommended-link {
  color: #ea580c;
}

.media-recommended-link:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .media-behind-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .media-recommended-grid {
    grid-template-columns: repeat(4, 1fr);
  }
} 

@media (max-width: 768px) {
  .media-tabs-section {
    display: none;
  }
}