/* 通常カーソル消す */
body{
  cursor:none;
}

/* カスタムカーソル */
.cursor{

 mix-blend-mode:difference;
 border-color:white;

  position:fixed;
  top:0;
  left:0;
  width:18px;
  height:18px;
  border:2px solid #222;
  border-radius:50%;
  pointer-events:none;
  transform:translate(-50%,-50%);
  z-index:9999;
  transition:
    width .2s ease,
    height .2s ease,
    background .2s ease,
    border .2s ease;
}

/* リンク上 */
.cursor.active{
  width:40px;
  height:40px;
  background:rgba(0,0,0,0.1);
}

.photo-top {
  margin-top: -90px;
  padding: 165px 20px 90px;
  background:
    linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.92)),
    url(../images/back/hougan.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.photo-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 72%, #faf8f4 100%);
  pointer-events: none;
}

.photo-top-inner {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.photo-top h2 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.06em;
  color: #1f1f1f;
  margin-bottom: 30px;
}

.photo-lead {
  font-size: 1.06rem;
  line-height: 2;
  font-weight: 600;
  color: #333;
  margin-bottom: 34px;
  padding: 24px 28px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.photo-text,
.photo-message {
  background: rgba(255, 255, 255, 0.84);
  padding: 32px;
  margin-bottom: 22px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.photo-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #222;
  margin-bottom: 18px;
}

.photo-text p,
.photo-message p {
  font-size: 1rem;
  line-height: 2;
  color: #444;
  margin-bottom: 16px;
}

.photo-text p:last-child,
.photo-message p:last-child {
  margin-bottom: 0;
}

.photo-second {
  padding: 100px 20px 120px;
  background:
    linear-gradient(to bottom, #faf8f4 0%, #f7f5f1 100%);
}

.photo-category {
  max-width: 1100px;
  margin: 0 auto 90px;
}

.photo-category:last-child {
  margin-bottom: 0;
}

.photo-category h3 {
  display: inline-block;
  position: relative;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #1f1f1f;
  margin-bottom: 26px;
  padding-bottom: 12px;
}

.photo-category h3::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 84px;
  height: 3px;
  background: linear-gradient(90deg, #8f7466 0%, rgba(143,116,102,0.16) 100%);
  border-radius: 999px;
}

.photo-category h3 span {
  display: inline-block;
  margin-left: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #666;
  letter-spacing: 0.04em;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

.photo-grid a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform .35s ease, box-shadow .35s ease;
}

.photo-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.14), rgba(0,0,0,0) 45%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.photo-grid a:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
}

.photo-grid a:hover::after {
  opacity: 1;
}

.photo-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  transition: transform .45s ease, filter .45s ease;
}

.photo-grid a:hover img {
  transform: scale(1.025);
  filter: brightness(1.03);
}

.photo-grid:empty {
  min-height: 120px;
  border: 1px dashed #cfc8c1;
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
}

/* ライトボックス */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 12, 12, 0.94);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
  padding: 20px;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.photo-grid a:first-child{
  grid-column: span 2;
}

.photo-grid a:first-child img{
  transform: scale(1.02);
}

/* =========================
   Responsive
========================= */

@media screen and (max-width: 900px) {
  .photo-top {
    padding: 135px 16px 64px;
  }

  .photo-lead,
  .photo-text,
  .photo-message {
    padding: 24px;
    border-radius: 12px;
  }

  .photo-second {
    padding: 80px 16px 96px;
  }

  .photo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .photo-grid a,
  .photo-grid img {
    border-radius: 12px;
  }
}

@media screen and (max-width: 600px) {
  .photo-top h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
  }

  .photo-lead {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 24px;
  }

  .photo-text h3 {
    font-size: 1.08rem;
  }

  .photo-text p,
  .photo-message p {
    font-size: 0.95rem;
    line-height: 1.9;
  }

  .photo-category {
    margin-bottom: 58px;
  }

  .photo-category h3 {
    font-size: 1.3rem;
    margin-bottom: 18px;
    padding-bottom: 8px;
  }

  .photo-category h3 span {
    display: block;
    margin-left: 0;
    margin-top: 6px;
    font-size: 0.84rem;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid a,
  .photo-grid img {
    border-radius: 10px;
  }

  .lightbox-overlay img {
    max-width: 94vw;
    max-height: 82vh;
    border-radius: 10px;
  }
}