@import url("/assets/css/style.css");

/* 
  Magazine Style Overrides for Kaori Select
*/

:root {
  --select-bg: #faf7f2;
  --select-accent-gold: #c5a059;
  --select-accent-muted: #dcd0bc;
}

body.page-select {
  background-color: var(--select-bg);
}

.page-select .site-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

/* Hero Section */
.select-hero {
  padding: clamp(60px, 10vw, 120px) 0;
  text-align: center;
  background: white;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.select-hero .container {
  max-width: 900px;
}

.select-hero .hero-content {
  text-align: center;
}

.select-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: 0.1em;
}

.select-hero .lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 2;
  max-width: none;
  width: fit-content;
  margin: 0 auto 32px;
  text-align: center;
}

/* Article List */
.article-section {
  padding-bottom: 100px;
}

.article-section h2 {
  font-family: "Playfair Display", serif;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  letter-spacing: 0.05em;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-card .card-media {
  aspect-ratio: 16/10;
  height: auto;
  margin-bottom: 16px;
  overflow: hidden;
}

.article-card .card-media img {
  transition: transform 0.5s ease;
}

.article-card:hover .card-media img {
  transform: scale(1.05);
}

.article-card .category-tag {
  font-size: 0.75rem;
  color: var(--select-accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-weight: 600;
}

.article-card h3 {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 12px;
  color: var(--text);
}

.article-card .description {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .meta-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

.article-card .editor {
  color: var(--muted);
  font-weight: 500;
}

.article-card .date {
  color: #ccc;
}

/* B2B Banner */
.b2b-banner {
  background: var(--select-accent-muted);
  padding: 60px 0;
  text-align: center;
  margin-top: 80px;
}

.b2b-banner h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.b2b-banner p {
  margin-bottom: 30px;
}

/* --- Article Detail Styles --- */

.article-content-wrap {
  padding: 60px 0 100px;
}

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

.article-header h1 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--text);
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Table of Contents */
.toc-container {
  background: #f9f9f9;
  border: 1px solid var(--line);
  padding: 30px;
  margin-bottom: 60px;
}

.toc-container h2 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-align: left;
  font-family: sans-serif;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 12px;
}

.toc-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.toc-list a:hover {
  color: var(--select-accent-gold);
}

/* Article Body Typography */
.article-body {
  max-width: 800px;
  margin: 0 auto;
  line-height: 2;
  font-size: 1.1rem;
  color: #333;
}

.article-body h2 {
  font-size: 1.8rem;
  border-left: 4px solid var(--select-accent-gold);
  padding-left: 20px;
  margin: 60px 0 30px;
  text-align: left;
}

.article-body h3 {
  font-size: 1.4rem;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.article-body p {
  margin-bottom: 30px;
}

.article-body ul, .article-body ol {
  margin-bottom: 30px;
  padding-left: 20px;
}

.article-body li {
  margin-bottom: 10px;
}

/* Boxes and Tables */
.info-box {
  background: #fffdf7;
  border: 1px solid var(--select-accent-muted);
  padding: 30px;
  margin: 40px 0;
  border-radius: 8px;
}

.info-box .box-title {
  display: block;
  font-weight: 700;
  color: var(--select-accent-gold);
  margin-bottom: 15px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.comparison-table-wrap {
  overflow-x: auto;
  margin: 40px 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.comparison-table th, .comparison-table td {
  border: 1px solid var(--line);
  padding: 15px;
  text-align: center;
}

.comparison-table th {
  background: #f5f5f5;
  font-weight: 600;
}

/* Author Box */
.author-box {
  margin-top: 80px;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  gap: 30px;
  align-items: center;
}

.author-thumb {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--select-accent-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  flex-shrink: 0;
}

.author-info h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.author-info p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Related Articles */
.related-section {
  margin-top: 100px;
  padding-top: 60px;
  border-top: 1px solid var(--line);
}

.related-section h3 {
  text-align: center;
  margin-bottom: 40px;
  font-family: "Playfair Display", serif;
}

/* Custom UI Elements */
.cta-button-wrap {
  text-align: center;
  margin: 50px 0;
}

.btn-article-cta {
  display: inline-block;
  padding: 15px 40px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-article-cta:hover {
  background: var(--text);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .article-body {
    font-size: 1rem;
  }
  .author-box {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
}
