/* =========================================================
   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-media-block + .cc-media-block {
  margin-top: 3.2rem;
  padding-top: 2.4rem;
  border-top: 2px solid rgba(20, 121, 184, 0.12);
}

.cc-media-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.cc-media-heading h2 {
  margin: 0;
  color: var(--cc-navy);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 900;
}

.cc-photo-count {
  display: inline-flex;
  align-items: center;
  margin: 0;
  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);
}

/* ========================
   Video grid / player
   ======================== */

.cc-video-count {
  color: #ffffff;
  background: var(--cc-blue);
}

.cc-video-item {
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  appearance: none;
}

.cc-video-item::after {
  content: "再生";
}

.cc-video-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 4.5rem;
  height: 4.5rem;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(11, 39, 66, 0.74);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  transition: transform 0.22s ease, background 0.22s ease;
  pointer-events: none;
}

.cc-video-play::after {
  content: "";
  position: absolute;
  left: 52%;
  top: 50%;
  border-top: 0.72rem solid transparent;
  border-bottom: 0.72rem solid transparent;
  border-left: 1.08rem solid #ffffff;
  transform: translate(-40%, -50%);
}

.cc-video-item:hover .cc-video-play,
.cc-video-item:focus-visible .cc-video-play {
  background: rgba(20, 121, 184, 0.92);
  transform: translate(-50%, -50%) scale(1.08);
}

.cc-video-item:focus-visible {
  outline: 4px solid var(--cc-yellow);
  outline-offset: 4px;
}

.cc-video-dialog {
  width: min(94vw, 1080px);
  max-width: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: #ffffff;
  background: #07111b;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  overflow: hidden;
}

.cc-video-dialog::backdrop {
  background: rgba(2, 9, 15, 0.84);
  backdrop-filter: blur(5px);
}

.cc-video-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: #0b273f;
}

.cc-video-dialog__header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-video-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.cc-video-dialog__close:hover,
.cc-video-dialog__close:focus-visible {
  background: rgba(255, 255, 255, 0.28);
}

.cc-video-dialog__body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(68vh, 680px);
  background: #000000;
}

.cc-video-dialog video {
  display: block;
  width: 100%;
  max-height: 78vh;
  background: #000000;
}

/* ========================
   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;
  }

  .cc-media-block + .cc-media-block {
    margin-top: 2.3rem;
    padding-top: 1.8rem;
  }

  .cc-video-play {
    width: 3.6rem;
    height: 3.6rem;
  }

  .cc-video-dialog {
    width: 96vw;
    border-radius: 12px;
  }

  .cc-video-dialog__body {
    min-height: 42vh;
  }
}

@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);
}
