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

/* Cocoonレイアウト上書き: フロントページ全幅化 */
body.home #content,
body.front-page #content {
  max-width: 100%; padding: 0;
}
body.home #main,
body.front-page #main {
  max-width: 100%; width: 100%;
  padding: 0; margin: 0; float: none;
}
body.home #sidebar,
body.front-page #sidebar {
  display: none;
}
body.home .content-in,
body.front-page .content-in {
  display: block; max-width: 100%;
}

/* Cocoonの余白リセット */
body.home #main,
body.front-page #main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.home .content-in,
body.front-page .content-in {
  padding-top: 0 !important;
}

/* ── ヒーロー ── */
.home-hero {
  background: linear-gradient(135deg, #1a56db 0%, #2563eb 50%, #3b82f6 100%);
  padding: 40px 0 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.home-hero::after {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.home-hero-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.home-hero h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.home-hero p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 20px;
  max-width: 520px;
}
/* ── ヒーロー検索バー ── */
.home-search-wrap {
  position: relative;
  max-width: 520px;
  margin-bottom: 20px;
}
.home-search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 0 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.home-search-icon {
  width: 18px; height: 18px;
  stroke: #94a3b8; flex-shrink: 0;
}
.home-search-input {
  width: 100%; border: none; outline: none;
  padding: 14px 12px;
  font-size: 15px; font-family: inherit;
  background: transparent; color: #1e293b;
}
.home-search-input::placeholder { color: #94a3b8; }
.home-search-dropdown {
  display: none;
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 100; overflow: hidden;
}
.home-search-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px;
  text-decoration: none; color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.1s;
}
.home-search-item:last-child { border-bottom: none; }
.home-search-item:hover { background: #e8eefb; }
.home-search-item-name { font-size: 14px; font-weight: 500; }
.home-search-item-count { font-size: 12px; color: #1a56db; font-weight: 700; flex-shrink: 0; margin-left: 12px; }

.home-hero-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.home-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.home-hero-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.home-hero-btn-primary { background: #fff; color: #1a56db; }
.home-hero-btn-accent { background: #f59e0b; color: #fff; }

.home-hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.home-hero-stat-num {
  font-size: 24px;
  font-weight: 800;
}
.home-hero-stat-label {
  font-size: 11px;
  opacity: 0.7;
}

/* ── コンテナ ── */
.home-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── セクション共通 ── */
.home-section {
  padding: 28px 0;
}
.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.home-section-title {
  font-size: 18px;
  font-weight: 700;
}
.home-section-more {
  font-size: 13px;
  color: #1a56db;
  text-decoration: none;
  font-weight: 500;
}
.home-section-more:hover { text-decoration: underline; }

/* ── 新作速報カード ── */
.home-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) { .home-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 800px) { .home-news-grid { grid-template-columns: repeat(3, 1fr); } }

.home-news-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.home-news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.home-news-card-img {
  height: 160px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #94a3b8;
  overflow: hidden;
}
.home-news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.home-news-card-body { padding: 12px 14px; }
.home-news-card-date {
  font-size: 11px;
  color: #f59e0b;
  font-weight: 700;
  margin-bottom: 4px;
}
.home-news-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── セール情報 ── */
.home-sale-banner {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fbbf24;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.home-sale-icon {
  font-size: 20px;
  font-weight: 700;
  color: #92400e;
  background: #fbbf24;
  padding: 8px 12px;
  border-radius: 8px;
  flex-shrink: 0;
}
.home-sale-banner h3 {
  font-size: 15px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 2px;
}
.home-sale-banner p {
  font-size: 12px;
  color: #a16207;
}

/* ── 作品グリッドカード ── */
.home-works-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 600px) { .home-works-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
@media (min-width: 601px) and (max-width: 900px) { .home-works-grid { grid-template-columns: repeat(3, 1fr); } }

.home-work-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.home-work-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  color: inherit;
}
.home-work-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-work-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.home-work-card:hover .home-work-card-img img { transform: scale(1.05); }
.home-work-card-noimg {
  font-size: 12px; font-weight: 700;
  color: #94a3b8; text-align: center; padding: 8px;
}
.home-work-card-body { padding: 8px 10px 10px; }
.home-work-card-name {
  font-size: 12px; font-weight: 700; line-height: 1.3;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-work-card-count {
  font-size: 14px; font-weight: 700; color: #1a56db;
}
.home-work-card-count span {
  font-size: 10px; font-weight: 500; color: #64748b;
}

/* ── 発売カレンダー ── */
.home-calendar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
}
.home-calendar-month {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}
.home-calendar-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-calendar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #f7f8fa;
  border-radius: 6px;
}
.home-calendar-date {
  font-size: 13px;
  font-weight: 700;
  color: #1a56db;
  min-width: 50px;
}
.home-calendar-label {
  font-size: 13px;
  line-height: 1.3;
}
.home-calendar-type {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 700;
  margin-left: auto;
  white-space: nowrap;
}
.home-calendar-empty {
  font-size: 13px;
  color: #64748b;
  padding: 8px 0;
}

/* ── 発売カレンダーカード ── */
.home-calendar-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.home-cal-card {
  position: relative;
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #f7f8fa;
  transition: transform 0.15s, box-shadow 0.15s;
}
.home-cal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.home-cal-bg {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}
.home-cal-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
}
.home-cal-month {
  font-size: 28px;
  font-weight: 800;
  color: #1a56db;
  line-height: 1;
}
.home-cal-month span {
  font-size: 14px;
  font-weight: 700;
}
.home-cal-count {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
}
.home-cal-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}
@media (max-width: 599px) {
  .home-calendar-cards { grid-template-columns: 1fr; }
}

/* ── 特集カード ── */
.home-feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.home-feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.15s;
}
.home-feature-card:hover { border-color: #1a56db; }
.home-feature-card-icon {
  font-size: 16px;
  font-weight: 700;
  color: #1a56db;
  margin-bottom: 8px;
}
.home-feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.home-feature-card p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

/* ── 準備中 ── */
.home-coming-soon {
  background: #f7f8fa;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

/* ── レスポンシブ ── */
@media (max-width: 600px) {
  .home-hero h1 { font-size: 22px; }
  .home-hero-stats { gap: 16px; }
  .home-hero-stat-num { font-size: 20px; }
  .home-section-title { font-size: 16px; }
  .home-feature-cards { grid-template-columns: 1fr; }
}
