
.option_header{
	max-width:800px;
	width:100%;
	margin:30px auto;
}
.option_title{
  flex-shrink: 0;
  text-align:center;
  width:16em;
  font-size: 2.8em;
  color: #000000;
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 1));
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.05);
  margin:20px auto 50px;
  line-height:1.3;
}
span.option_title_jp{
  display:block;
  font-size:1.2rem;
  color:inherit;
}
p.opening{
	width:100%;
	margin:30px auto;
}

/* 一覧用のコンチEEEEEEE全佁E*/
#custom-options-wrapper .options-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
}

/* 🗂EEEEEEEEタブ�Eり替え�EタンのエリアチEEEEEEEインEEEEEEEスマ�Eでも完�E中央揁EEEEEEEEEEEEEEE*/
.gallery-tab-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}
.tab-btn {
    background: #f4f5f7;
    border: 2px solid #cbd5e1;
    color: #333;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.tab-btn:hover {
    background: #e2e8f0;
}
.tab-btn.active {
    background: #1a2a3a !important; /* シチEEEEEEEな紺色 */
    color: #c59b27 !important;      /* 高級感あるゴールチE*/
    border-color: #1a2a3a !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 吁EEEEEEEチEEEEEEEリのセクション */
#custom-options-wrapper .section { 
    background: #fff; 
    padding: 20px; 
    border-radius: 8px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
    box-sizing: border-box;
    margin-bottom: 24px;
    width: 100%;
}

/* 見�Eし�EチEEEEEEEイン */
#custom-options-wrapper .section-title { 
    font-size: 20px !important; 
    color: #1a2a3a !important; 
    font-weight: bold !important; 
    margin-bottom: 20px !important; 
    padding-bottom: 10px !important; 
    border-bottom: 2px solid #1a2a3a !important; 
    border-left: 5px solid #1a2a3a !important; 
    padding-left: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: left !important; 
}

#custom-options-wrapper .section-title .count-badge {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

#custom-options-wrapper .section-title::before,
#custom-options-wrapper .section-title::after {
    content: none !important;
    display: none !important;
}

/* 冁EEEEEの画像グリチEEEEEEEEEEEEEEEセクションにつぁE列！E*/
#custom-options-wrapper .opt-gallery-grid { 
    display: grid !important; 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 12px !important; 
    width: 100% !important;
    box-sizing: border-box !important;
}

/* カード�E体�Eスタイル */
#custom-options-wrapper .grid-item { 
    background: #fff; 
    border: 1px solid #dcdcdc; 
    border-radius: 6px; 
    overflow: hidden; 
    cursor: pointer; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 10px;
    box-sizing: border-box;
    width: 100% !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#custom-options-wrapper .grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#custom-options-wrapper .grid-item-img-wrapper {
    width: 100%;
    height: 120px; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    background: #fafafa;
}
#custom-options-wrapper .grid-item-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
#custom-options-wrapper .grid-item-name {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    text-align: center;
/* margin-top: auto; 폜Ďw */
    margin-top: 8px;
    word-break: break-all;
}

/* ==========================================================
   📱 スマ�E専用レスポンシブ補正EEEEEEE左寁EEEEEEE・ズレ撁EEEEEEEEEEEEEEEEEEEEEE
   ========================================================== */
@media (max-width: 768px) {
    #custom-options-wrapper .options-container {
        padding: 10px !important; /* スマ�E時�E余白を最適匁E*/
    }

    #custom-options-wrapper .section {
        padding: 15px 12px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* 左側の線で視覚的にズレて見えなぁEEEEEEEぁEEEEEEE整 */
    #custom-options-wrapper .section-title {
        font-size: 17px !important;
        border-left-width: 4px !important;
        padding-left: 8px !important;
    }

    .gallery-tab-nav {
        padding: 0 10px;
    }

    .tab-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* 趁EEEEEEE型スマ�EEEEEEEEEPhone SEなどEEEEEEEで1列表示に刁EEEEEEE替えたぁEEEEEEE吁E*/
@media (max-width: 360px) {
    #custom-options-wrapper .opt-gallery-grid { 
        grid-template-columns: 1fr !important; 
    }
}

/* ==========================================================
   💻 PC専用EEEEEEEE列グリチEEEEEEE配置EEEEEEEE
   ========================================================== */
@media (min-width: 992px) {
    #custom-options-wrapper .sections-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 24px !important; 
        align-items: start !important;
        width: 100% !important; 
    }

    #custom-options-wrapper .section[style*="display: none"] {
        display: none !important;
    }

    #custom-options-wrapper .section {
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 0 !important;
    }

    .option_header{
        width:100%;
    }
    p.opening{
        margin:30px auto;
        padding:0 5px;
    }
}

/* ==========================================================
   🌟 モーダル完�E復活エリア
   ========================================================== */
#custom-options-wrapper .modal { 
    display: none; 
    position: fixed !important; 
    z-index: 999999 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.6) !important; 
    align-items: center !important; 
    justify-content: center !important; 
    opacity: 0; 
    transition: opacity 0.3s ease !important; 
}

#custom-options-wrapper .modal.show {
    opacity: 1 !important;
}

#custom-options-wrapper .modal-content {
    background-color: #fff !important;
    padding: 25px 20px !important;
    border-radius: 10px !important;
    width: 96% !important;
    max-width: 500px !important;
    position: relative !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
    box-sizing: border-box !important;
}

#custom-options-wrapper .modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 18px !important;
    font-size: 28px !important;
    font-weight: bold !important;
    color: #999 !important;
    cursor: pointer !important;
}
#custom-options-wrapper .modal-close:hover {
    color: #333 !important;
}
/* ==========================================================
   💥 まりっぺ先輩専用EEEEEEE右側の謎�E空白を消滁EEEEEEEせる緊急修正CSS
   ========================================================== */

/* 1. コンチEEEEEEEチEEEEE体を中央に寁EEEEEEEつつ幁E00%に庁EEEEEEEめE*/
#custom-options-wrapper,
.option_header,
.options-container,
.sections-wrapper {
    width: 100% !important;
    max-width: 1200px !important; /* PC時�E最大幁E*/
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* 2. タイトルEEEEEEEEPTION GUIDE2026EEEEEEEも幁EEEEEEEっぱぁEEEEEEE中央揁EEEEEEE */
.option_title {
    width: 100% !important;
    max-width: 800px !important;
    margin: 20px auto 30px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

/* 3. メインビジュアル画像！ENATOMY OF SUITEEEEEEEを横幁EEEEEEEっぱぁEEEEEEE庁EEEEEEEめE*/
/* もし画像に特定�EクラスめEmgタグがある場合�E持EEEEEEEE*/
.option_header img,
p.opening img,
#custom-options-wrapper img:not(.grid-item-img):not(.modal-img) {
    width: 100% !important;
    height: auto !important;
    max-width: 800px !important;
    display: block !important;
    margin: 0 auto 20px !important;
    object-fit: cover !important;
}

/* 4. オーダースーチEEEEEEEは〜�E斁EEEEEEEエリアも幁EEEEEEEっぱぁEEEEEEE整える */
p.opening {
    width: 100% !important;
    max-width: 800px !important;
    margin: 20px auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

/* 5. スマ�EEEEEEEE表示幁EEEEEEE狭ぁEEEEEEEき）�E余白なしで画面ぁEEEEEEEぱぁEEEEEEE表示 */
@media (max-width: 768px) {
    #custom-options-wrapper,
    .options-container,
    .option_header {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}/* ベ�Eスの親要素 */
.thumbnail-wrapper {
  position: relative;
  display: block; /* また�E inline-block */
  width: 100%;    /* フルレスポンシブに対忁E*/
}

.thumbnail-wrapper img.thumbnail-img {
  width: 100%;
  height: auto;
  display: block;
}

/* 一覧表用の右上アイコンEEEEEEEECなどの基本サイズEEEEEEEE*/
.thumbnail-wrapper .badge-custom-authentic {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  
  /* PCでのアイコンサイズ */
  width: 28px;
  height: 28px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  
  /* タチEEEEE領域めEEEEEEE形を滑らかに */
  transition: all 0.2s ease;
}

.thumbnail-wrapper .badge-custom-authentic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* -----------------------------------
   📱 スマ�E・タブレチEEEEEEE用EEEEEEEレスポンシブ調整EEEEEEEE
----------------------------------- */
@media (max-width: 768px) {
  .thumbnail-wrapper .badge-custom-authentic {
    /* 画像が小さくなる�Eに合わせて、アイコンも少しキュチEEEEEEE小さぁE*/
    width: 20px;
    height: 20px;
    top: 4px;
    right: 4px;
  }
}
/**@media print {
  /* モーダルを強制皁EEE縦並びで全部印刷に出ぁE*/
/*  .modal, [role="dialog"] {
    display: block !important;
    position: static !important;
    opacity: 1 !important;
    page-break-inside: avoid; /* 途中でペ�Eジが�Eれるのを防ぁE*/
/*  }*/

  /* 背景の黒いオーバ�Eレイを印刷から外す */
/**  .modal-backdrop, .overlay {
    display: none !important;
  }
}**/