/* ============================================================
   KOTO COLLECTION 扉ページ専用CSS
   ============================================================ */

/* ── HERO ── */
.kc-hero {
  position: relative;
  height: 540px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.kc-hero-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/uploads/202604/20260402225706_9dc5d1d7.jpg')
              center/cover no-repeat;
}
.kc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,20,60,.15) 0%, rgba(0,15,50,.78) 100%);
}
.kc-hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 8% 72px;
  width: 100%;
}
.kc-hero-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.kc-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 16px;
}
.kc-hero-title em { font-style: italic; color: var(--gold); }
.kc-hero-sub {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,.65);
  letter-spacing: .12em;
  line-height: 1.9;
}

/* ── ARCHIVE ── */
.kc-archive {
  padding: 88px 0 96px;
  background: var(--white);
}
.kc-archive-header {
  margin-bottom: 52px;
}

/* ── CARD GRID ── */
.kc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.kc-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,30,80,.07);
  transition: transform .3s, box-shadow .3s;
}
.kc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,30,80,.13);
}
.kc-card-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e8eef5;
}
.kc-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.kc-card:hover .kc-card-img-wrap img {
  transform: scale(1.04);
}
.kc-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-dark) 0%, #1a3a7a 100%);
}
.kc-card-placeholder span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  color: rgba(255,255,255,.25);
  letter-spacing: .1em;
}
.kc-card-year-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--blue-dark);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 3px 10px;
  border-radius: 2px;
}
.kc-card-body {
  padding: 18px 20px 22px;
}
.kc-card-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--blue-dark);
  margin-bottom: 8px;
  letter-spacing: .05em;
}
.kc-card-desc {
  font-size: 12px;
  font-weight: 300;
  color: #666;
  line-height: 1.8;
  letter-spacing: .04em;
}

/* ── CTA ── */
.kc-cta {
  background: var(--blue-dark);
  padding: 80px 0;
}
.kc-cta-inner {
  text-align: center;
}
.kc-cta-label {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.kc-cta-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  color: #fff;
  margin-bottom: 14px;
}
.kc-cta-sub {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  letter-spacing: .1em;
  margin-bottom: 36px;
}
.kc-cta-btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 13px;
  letter-spacing: .1em;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .kc-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .kc-hero { height: 420px; }
  .kc-hero-inner { padding: 0 6% 52px; }
  .kc-archive { padding: 56px 0 64px; }
  .kc-grid { grid-template-columns: 1fr; gap: 20px; }
  .kc-cta { padding: 56px 0; }
}

/* ── 年別ページ拡張 ── */
.kc-hero-year .kc-hero-title { font-size: clamp(56px, 10vw, 120px); }

/* 年ナビ */
.kc-year-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 52px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8eef5;
}
.kc-year-nav-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dark);
  text-decoration: none;
  letter-spacing: .08em;
  padding: 8px 16px;
  border: 1px solid var(--blue-dark);
  border-radius: 2px;
  transition: all .25s;
  min-width: 90px;
  text-align: center;
}
.kc-year-nav-btn:hover { background: var(--blue-dark); color: #fff; }
.kc-year-nav-btn.disabled { opacity: 0; pointer-events: none; }
.kc-year-nav-index {
  font-size: 12px;
  color: #888;
  text-decoration: none;
  letter-spacing: .1em;
}
.kc-year-nav-index:hover { color: var(--blue-dark); }

/* 写真グリッド */
.kc-photo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.kc-photo-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: #e8eef5;
}
.kc-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.kc-photo-item:hover img { transform: scale(1.05); }
.kc-photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,15,50,.8) 0%, transparent 100%);
  color: #fff;
  font-size: 11px;
  padding: 24px 10px 8px;
  opacity: 0;
  transition: opacity .3s;
}
.kc-photo-item:hover .kc-photo-caption { opacity: 1; }

/* ライトボックス */
.kc-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.kc-lb-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.kc-lb-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}
.kc-lb-caption {
  color: rgba(255,255,255,.6);
  font-size: 13px;
  margin-top: 12px;
  letter-spacing: .08em;
}
.kc-lb-close {
  position: fixed;
  top: 20px; right: 24px;
  background: none; border: none;
  color: rgba(255,255,255,.7);
  font-size: 28px;
  cursor: pointer;
  z-index: 9001;
  line-height: 1;
}
.kc-lb-prev, .kc-lb-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: rgba(255,255,255,.7);
  font-size: 52px;
  cursor: pointer;
  padding: 0 16px;
  line-height: 1;
  transition: color .2s;
}
.kc-lb-prev:hover, .kc-lb-next:hover { color: #fff; }
.kc-lb-prev { left: 0; }
.kc-lb-next { right: 0; }

/* 扉ページのカードをリンクに */
.kc-card-link { text-decoration: none; color: inherit; display: block; }

/* Responsive 追加 */
@media (max-width: 1024px) {
  .kc-photo-grid { grid-template-columns: repeat(3, 1fr); }
  .kc-year-nav-btn { font-size: 12px; padding: 6px 12px; min-width: 70px; }
}
@media (max-width: 640px) {
  .kc-photo-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .kc-year-nav-btn { font-size: 12px; padding: 6px 12px; min-width: 70px; }
}
