@charset "UTF-8";

/*!
Theme Name: aider Child
Description: aider専用の子テーマ
Theme URI: 
Template: aider_tcd115
Version:
*/


/* ギャラリー内の画像にカーソル（ポインタ）を設定 */
.wp-block-gallery .wp-block-image img {
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.wp-block-gallery .wp-block-image img:hover {
    opacity: 0.85;
}

/* ライトボックス背景モーダル */
#custom-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#custom-lightbox.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* 画像表示領域 */
.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    user-select: none;
}

/* 画面上の操作ボタン */
.lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 1000000;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}

/* 各ボタンの位置調整 */
#lightbox-close {
    top: 20px;
    right: 25px;
    font-size: 32px;
}

#lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#lightbox-prev:hover {
    transform: translateY(-50%) scale(1.08);
}
#lightbox-next:hover {
    transform: translateY(-50%) scale(1.08);
}

@media (max-width: 768px) {
    .lightbox-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    #lightbox-prev { left: 10px; }
    #lightbox-next { right: 10px; }
}



.l-footer {
background: #ecebe9;
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  box-sizing: border-box;

  grid-template-areas:
    "top-left   top-center top-center top-right"
    "bot-left   top-center top-center extra"
    "bot-left   bot-center bot-right  bot-right";
}


.img-top-left   { grid-area: top-left; }
.img-top-center { grid-area: top-center; }
.img-top-right  { grid-area: top-right; }
.img-bot-left   { grid-area: bot-left; }
.img-bot-center { grid-area: bot-center; }
.img-bot-right  { grid-area: bot-right; }
.img-extra      { grid-area: extra; }


.gallery-grid > div {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  line-height: 0 !important;
}


.gallery-grid a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}


.gallery-grid img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block !important;
  vertical-align: bottom !important;
  margin: 0 !important;
  padding: 0 !important;
  

  transition: transform 0.4s ease;
}


.gallery-grid div:hover img {
  transform: scale(1.1);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  box-sizing: border-box;

  grid-template-areas:
    "top-left   top-center top-center top-right"
    "bot-left   top-center top-center extra"
    "bot-left   bot-center bot-right  bot-right";
}

.img-top-left   { grid-area: top-left; }
.img-top-center { grid-area: top-center; }
.img-top-right  { grid-area: top-right; }
.img-bot-left   { grid-area: bot-left; }
.img-bot-center { grid-area: bot-center; }
.img-bot-right  { grid-area: bot-right; }
.img-extra      { grid-area: extra; }

.gallery-grid > div {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  line-height: 0 !important;
}

.gallery-grid a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-grid img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block !important;
  vertical-align: bottom !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: transform 0.4s ease;
}

.gallery-grid div:hover img {
  transform: scale(1.1);
}


@media screen and (max-width: 768px) {
  .gallery-grid {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    gap: 10px;
  }
  .gallery-grid > div {
    aspect-ratio: 4 / 3;
    height: auto !important;
  }
}




.p-mv-height-type-1 {position: relative;}


.c-hidden-sp {
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.p-mv1-content-title_2 span {
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
font-size: 200%;
}

.p-drawer-bottom .c-sns-icons {display: none;}


.l-footer .c-sns-icons {display: none;}
