/* お守りページ用スタイル */

/* ページヘッダー */
.page-header {
    background: url('../img/bg-pattern.jpg') #8B0000;
    padding: 100px 0 40px;
    margin-bottom: 50px;
    text-align: center;
    color: #fff;
    position: relative;
}

.page-title {
    font-family: 'Kaisei Decol', serif;
    font-size: 2.5rem;
    margin: 0 0 10px;
    letter-spacing: 0.1em;
    color: #fff;
   
}

.breadcrumb {
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* コンテンツエリア */
.content-area {
    max-width: 900px;
    margin: 0 auto 80px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 40px;
}

/* お守り紹介テキスト */
.omamori-introduction {
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.8;
    padding-bottom: 30px;
    border-bottom: 1px dashed #e0e0e0;
}

.omamori-introduction p {
    margin-bottom: 0;
}

/* お守りコンテナ */
.omamori-container {
    margin-top: 40px;
}

/* お守りセクション */
.omamori-section {
    margin-bottom: 60px;
}

.section-header {
    margin-bottom: 30px;
    position: relative;
}

.section-title {
    font-family: 'Kaisei Decol', serif;
    font-size: 1.8rem;
    margin: 0;
    color: #8B0000;
    text-align: center;
}

.red-header {
    background: url('../img/aka_line.jpg') no-repeat center bottom;
    padding-bottom: 20px;
}

.divider {
    background: url('../img/dot_line.jpg') no-repeat center;
    height: 20px;
    width: 100%;
}

/* お守りグリッド */
.omamori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* お守りアイテム */
.omamori-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.omamori-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.omamori-image {
    margin-bottom: 15px;
    text-align: center;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
}

.omamori-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.omamori-details {
    width: 100%;
    text-align: center;
}

.omamori-details h3 {
    font-family: 'Kaisei Decol', serif;
    font-size: 1.5rem;
    margin: 0 0 10px;
    color: #8B0000;
}

.price {
    font-weight: bold;
    margin-bottom: 5px;
}

.note {
    color: #8B0000;
    margin-bottom: 5px;
}

.size {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

/* カラースウォッチ */
.color-options {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.color-options a {
    display: block;
    line-height: 0;
}

.color-thumbnail {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50%;
    border: 1px solid #ddd;
    padding: 1px;
    background: #fff;
}

.color-options a:hover .color-thumbnail {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 30px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .content-area {
        padding: 30px 20px;
        margin-bottom: 50px;
    }
    
    .omamori-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .omamori-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 70px 0 25px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .content-area {
        padding: 20px 15px;
    }
    
    .omamori-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* lightboxで表示される画像の最大サイズを制限 */
#lightbox img,
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
}

/* lightboxの画像枠サイズを300px×300pxに固定 */
#lightbox, .lightbox {
  min-width: 300px;
  min-height: 300px;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: rgba(255,255,255,0.98);
  overflow: auto;
} 