/* =========================================================
   Charichare photo page
   jQueryなし / PhotoSwipe / lazyload前提
   写真一覧はトリミングせず、高さを揃えて黒背景で表示
   ========================================================= */

.cc-photo-body {
  min-height: 100vh;
  color: var(--cc-text);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 216, 77, 0.22), transparent 32%),
    linear-gradient(180deg, #eaf7ff 0%, #ffffff 52%, #f6fbff 100%);
}

.cc-photo-page {
  min-height: 100vh;
}

.cc-photo-hero {
  position: relative;
  padding: 5rem 1.25rem 3.2rem;
  color: var(--cc-white);
  background:
    linear-gradient(135deg, rgba(11, 39, 66, 0.92), rgba(20, 121, 184, 0.78)),
    url("../img/use_in_toppage/0001.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.cc-photo-hero::before,
.cc-photo-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.cc-photo-hero::before {
  width: 280px;
  height: 280px;
  right: -80px;
  top: 24px;
  background: rgba(255, 216, 77, 0.28);
}

.cc-photo-hero::after {
  width: 420px;
  height: 420px;
  left: -180px;
  bottom: -260px;
  background: rgba(36, 163, 107, 0.18);
}

.cc-photo-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.cc-photo-hero .cc-section-heading__sub {
  color: var(--cc-yellow);
}

.cc-photo-hero h1 {
  margin-top: 0.4rem;
  font-size: clamp(2.4rem, 8vw, 5.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.cc-photo-hero p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  font-weight: 800;
}

.cc-photo-days {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2rem;
}

.cc-photo-days a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: var(--cc-white);
  background: rgba(255, 255, 255, 0.13);
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.cc-photo-days a:hover,
.cc-photo-days a.is-active {
  color: var(--cc-navy);
  background: var(--cc-yellow);
  opacity: 1;
  transform: translateY(-2px);
}

.cc-photo-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.2rem 1.1rem 4rem;
}

.cc-photo-count {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  color: var(--cc-navy);
  background: #fff7c8;
  font-size: 0.95rem;
  font-weight: 900;
}

/* ========================
   Photo grid
   ======================== */

.cc-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.cc-photo-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  height: clamp(260px, 26vw, 330px);
  border-radius: 18px;
  overflow: hidden;

  background: #0b1824;
  box-shadow: 0 14px 36px rgba(11, 39, 66, 0.16);
  transform: translateZ(0);
}

.cc-photo-item::after {
  content: "見る";
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  color: var(--cc-white);
  background: rgba(11, 39, 66, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.cc-photo-item img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center center;

  transition: transform 0.28s ease, filter 0.28s ease;
}

.cc-photo-item:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(11, 39, 66, 0.22);
}

.cc-photo-item:hover img {
  transform: scale(1.015);
  filter: brightness(1.04) saturate(1.04);
}

.cc-photo-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* ========================
   Empty
   ======================== */

.cc-photo-empty {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: var(--cc-radius-lg);
  background: var(--cc-white);
  box-shadow: var(--cc-shadow);
  text-align: center;
}

.cc-photo-empty h2 {
  color: var(--cc-navy);
  font-size: 1.6rem;
  font-weight: 900;
}

.cc-photo-empty p {
  margin-top: 0.8rem;
  color: var(--cc-muted);
  font-weight: 800;
}

.cc-photo-empty code {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.18rem 0.45rem;
  border-radius: 8px;
  background: #eef8ff;
  color: var(--cc-blue);
}

/* ========================
   Mobile
   ======================== */

@media screen and (max-width: 768px) {
  .cc-photo-hero {
    padding: 4rem 1rem 2.4rem;
  }

  .cc-photo-days a {
    min-width: 5.8rem;
    padding: 0.58rem 0.85rem;
  }

  .cc-photo-section {
    padding: 1.4rem 0.75rem 3rem;
  }

  .cc-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cc-photo-item {
    height: 200px;
    border-radius: 14px;
  }

  .cc-photo-item::after {
    display: none;
  }
}

@media screen and (max-width: 420px) {
  .cc-photo-item {
    height: 180px;
  }
}

.cc-photo-years {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.8rem;
}

.cc-photo-years a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.4rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: var(--cc-white);
  background: rgba(255, 255, 255, 0.13);
  font-size: 0.92rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.cc-photo-years a:hover,
.cc-photo-years a.is-active {
  color: var(--cc-navy);
  background: var(--cc-yellow);
  opacity: 1;
  transform: translateY(-2px);
}