/* ================================
   サブページ専用 CSS
   jumbo（大釜店） / janm1（津志田店）
================================ */

/* --------------------------------
   Jumbo（大釜店）
-------------------------------- */
body.jumbo .logo-img {
  max-height: 140px;
  height: auto;
  width: auto;
}

body.jumbo .eyecatch-img {
  max-height: 140px;
  height: auto;
  width: auto;
}

/* --------------------------------
   Janm1（津志田店）
-------------------------------- */
body.janm1 .logo-img {
  max-height: 140px;
  height: auto;
  width: auto;
}

body.janm1 .eyecatch-img {
  max-height: 140px;
  height: auto;
  width: auto;
}

/* --------------------------------
   共通：サブページのロゴ行の余白調整
-------------------------------- */
.logo-row {
  gap: 10px;
}

/* ← サブヘッダー */
.sub-header {
    padding: 0 12px;
}

.sub-header-row {
    display: flex;
    align-items: center;
    gap: 20px;   /* ← タイトルとリンクの間隔 */
}

/* リンク同士の間隔 */
.sub-header-links {
    display: flex;
    gap: 12px;
}

/* ← サブフッター */
.sub-footer {
    padding: 0 12px;   /* 左右に12pxの余白 */
}
/* サブページ専用フッター */
.sub-footer p {
  line-height: 1.0;
  margin: 1px 0;
}



/* ============================================
   サブページ専用ギャラリー（完全独立版）
   ============================================ */

.sub-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 10px 10px;   /* ← 左右に10px追加 */
    position: relative;
    z-index: 1;
}

.sub-gallery-item {
    background: #fff;
    border-radius: 4px;
    box-sizing: border-box;
}

.sub-gallery-item .photo-date {
    font-size: 12px;
    margin-bottom: 4px;
    color: #444;
}

.sub-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    cursor: pointer;
}


/* スマホ時は2列表示 */
@media (max-width: 480px) {
    .sub-gallery-item {
        width: calc(50% - 12px);
    }
}


/* ============================================
   モーダル（画像拡大表示）完全版
   ============================================ */

#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    display: none;            /* showModal() で flex にする */
    justify-content: center;
    align-items: center;
    z-index: 99999;           /* 最前面に固定 */
}

#modalImg {
    max-width: 90%;
    max-height: 90%;
    border-radius: 6px;
    z-index: 99999;
}

/* 閉じるボタン */
#closeBtn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 99999;
}

/* 左右矢印 */
.navBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: white;
    cursor: pointer;
    user-select: none;
    z-index: 99999;
}

#prevBtn { left: 30px; }
#nextBtn { right: 30px; }
