* {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Noto Sans JP", sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    padding-bottom: 200px;
}

/* ステップのスタイル */
.step {
    margin-bottom: 40px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    transition: all 0.5s ease-in-out;
}

.step h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

/* 色選択のスタイル */
.color-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.color-item {
    position: relative;
}

.color-item input[type="radio"] {
    display: none;
}

.color-item label {
    display: block;
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.color-item input[type="radio"]:checked + label {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.color-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.color-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.color-info {
    padding: 10px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
}

.color-name {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.price {
    display: block;
    color: #dc3545;
    font-weight: bold;
    text-align: right;
}

/* 印刷位置のスタイル */
.print-position {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
}

.preview-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.preview-item {
    flex: 1;
}

.preview-item h3 {
    text-align: center;
    margin-bottom: 20px;
}

.print-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.print-option {
    position: relative;
}

.print-option input[type="radio"] {
    display: none;
}

.print-option label {
    display: block;
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.print-option input[type="radio"]:checked + label {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.print-option:first-child label {
    padding: 15px;
    text-align: center;
    background: #f8f9fa;
}

.preview-image {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #ddd;
    position: relative;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* スリーブの画像回転を削除 */
.sleeve-preview {
    position: relative;
}

.print-area {
    position: absolute;
    border: 2px solid rgba(255, 0, 0, 0.8);
    background-color: rgba(255, 0, 0, 0.2);
    left: 50%;
    transform: translateX(-50%);
}

.option-info {
    padding: 10px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
}

.option-name {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.option-price {
    display: block;
    color: #dc3545;
    font-weight: bold;
    text-align: right;
}

/* サイズ選択のスタイル */
.size-selection {
    margin: 20px 0;
}

.size-quantity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

.size-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    gap: 15px;
}

.size-item:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.size-label {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
    min-width: 40px;
}

.quantity-select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 16px;
    min-width: 80px;
    cursor: pointer;
}

.quantity-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.price-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 120px;
}

.price-label {
    font-size: 12px;
    font-weight: normal;
    color: #666;
    text-align: right;
}

.size-price {
    font-size: 16px;
    font-weight: bold;
    color: #dc3545;
    text-align: right;
}

.unit-price {
    font-size: 12px;
    font-weight: normal;
    color: #666;
    text-align: right;
}

/* 料金表示とカートボタンの固定エリア */
.price-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(248, 249, 250, 0.95);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.price-summary-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
}

/*
/* 選択内容表示エリア（使用しない）
.selection-summary {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
    flex-wrap: wrap;
    min-width: 0;
}

.selection-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.selection-item:hover {
    background-color: rgba(224, 224, 224, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 各STEPのレスポンシブ幅
.selection-item {
    min-width: 120px;
    flex: 1 1 auto;
}

#color-selection {
    min-width: 180px;
}

#print-selection {
    min-width: 200px;
}

#size-selection {
    min-width: 140px;
}

#white-base-selection {
    min-width: 150px;
}

#packaging-selection {
    min-width: 110px;
}

/* 選択中のスタイル
.selection-item.active {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.05);
}

.selection-item.active:hover {
    background-color: rgba(76, 175, 80, 0.1);
}
*/

/*
.step-label {
    font-size: 0.8em;
    font-weight: bold;
    color: #666;
    padding: 2px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 5px;
}

.selection-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.print-positions {
    display: flex;
    gap: 5px;
}

.print-label {
    font-size: 0.9em;
    color: #333;
    white-space: nowrap;
}

.print-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.print-details .selection-text {
    display: block;
    padding-left: 10px;
    line-height: 1.4;
}

.selection-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.selection-text {
    font-size: 0.9em;
    color: #333;
}
*/

.price-details {
    flex: 1;
    text-align: right;
    padding-right: 15px;
}

.price-details > div {
    margin: 8px 0;
    white-space: nowrap;
}

.total {
    margin-top: 12px !important;
    font-size: 1.3em;
    font-weight: bold;
    color: #d32f2f;
}

/* ボタンのスタイル */
.form-buttons {
    flex-shrink: 0;
}

button {
    padding: 15px 15px;
    font-size: 1.1em;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: #45a049;
}

button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

button:disabled:hover {
    background: #cccccc;
}

.position-preview {
    margin: 20px 0;
}

/* STEP2とSTEP3のみに適用される非表示スタイル */
#step2, #step3, #step4, #step5 {
    display: none;
}

.step.active {
    display: block;
}

/* 印刷エリアのサイズ定義 */
.print-area.小 {
    width: 20%;
    height: 20%;
}

.print-area.中 {
    width: 30%;
    height: 30%;
}

.print-area.大 {
    width: 40%;
    height: 40%;
}

/* スリーブ用の特別なサイズ定義 */
.sleeve-preview .print-area.小 {
    width: 10%;
    height: 10%;
}

.sleeve-preview .print-area.中 {
    width: 15%;
    height: 15%;
}

.sleeve-preview .print-area.大 {
    width: 20%;
    height: 20%;
}

/* 印刷エリアの位置 */
.front-preview .print-area {
    top: 20%;
}

.back-preview .print-area {
    top: 20%;
}

/* スリーブの印刷エリアを45度回転 */
.sleeve-preview .print-area {
    left: 85%;
    top: 28%;
    transform: translate(-50%, -50%) rotate(42deg);
}

/* スマホサイズでは選択内容を非表示 */
@media (max-width: 768px) {
    .selection-summary {
        display: none;
    }
}

/* STEP5の下部マージン */
#step5 {
    margin-bottom: 120px;
}

/* 印刷位置選択のスタイル（色選択と統一） */
.print-position-selection {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.print-position-item {
    position: relative;
}

.print-position-item input[type="checkbox"] {
    display: none;
}

.print-position-item label {
    display: block;
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.print-position-item input[type="checkbox"]:checked + label {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.print-position-item input[type="checkbox"]:checked + label .print-position-image {
    background: rgba(0, 123, 255, 0.1);
}

.print-position-image {
    /* width: 100%; */
    aspect-ratio: 1;
    overflow: hidden;
    padding: 10px;
    background: #fff;
}

.print-position-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.print-position-info {
    padding: 10px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
}

.print-position-name {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.print-position-price {
    display: block;
    color: #dc3545;
    font-weight: bold;
    text-align: right;
}

/* スマホサイズでの印刷位置選択を1列に */
@media (max-width: 768px) {
    .print-position-selection {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .color-selection {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* STEP4: 白ベースデータ作成代行のスタイル */
.white-base-selection {
    display: flex;
    margin: 20px 0;
}

.white-base-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    gap: 15px;
    max-width: 400px;
    /* width: 100%; */
}

.white-base-item:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.label-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.option-label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.option-note {
    font-size: 12px;
    color: #666;
}

.option-price {
    font-size: 16px;
    font-weight: bold;
    color: #dc3545;
    min-width: 80px;
    text-align: right;
}

/* STEP5: 個別梱包のスタイル */
.packaging-selection {
    display: flex;
    margin: 20px 0;
}

.packaging-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    gap: 15px;
    max-width: 400px;
    /* width: 100%; */
}

.packaging-item:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.step-container {
    display: flex;
    gap: 20px;
}

.step-container > .size-selection,
.step-container > .white-base-selection {
    flex: 1;
    min-width: 300px;
}

.custom-area {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.custom-area h3 {
    margin-top: 0;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.custom-area img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* スマホサイズでの縦並び対応 */
@media (max-width: 768px) {
    .white-base-selection {
        flex-direction: column;
    }
    
    .packaging-selection {
        max-width: 100%;
    }

    .step-container {
        flex-direction: column;
    }
}


/* サムネイル画像のスタイル */
.thumbnail-image {
    max-width: 200px;
    height: auto;
    cursor: pointer;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}


/**スライドショー部分**/
	.swiper-button-next:after, .swiper-rtl .swiper-button-prev:after {content: 'next';font-size: 25px !important;font-weight: bold;color: #fff;	text-shadow: 1px 1px 3px #666;}
	.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after {content: 'prev';font-size: 25px !important;font-weight: bold;	color: #fff;text-shadow: 1px 1px 3px #666;}
	.swiper-pagination-bullet-active {background: #fff !important;}
	.swiper-container {  position: relative; overflow: hidden;}
	.swiper-container .swiper-slide { text-align: center; line-height: 1; display: flex; align-items: flex-start; justify-content: center;}
	.swiper-container .swiper-slide img { display: inline; width: auto; max-width: 100%; max-height: 100%; align-self: center;}
	.swiper-container .swiper-button-white:focus {outline: none;}

/**item_header部分**/
	.plan_gekiyasu{ background: #E4007F; color: #fff;}
	.plan_tsujyo{ background: #1d8fff; color: #fff;}
	.plan_tokyu{background: #292929; color: #fff;}

	.ff_Montserrat{ font-family: 'Montserrat', sans-serif;}
	.item_base{ margin-bottom: 3rem;}
	.item_header{display: flex; flex-wrap: wrap;}
	.item_img{ width: 58%; position: relative; overflow: hidden; margin: 0 auto;}
	.item_info{ width: 42%; padding:0 0 0 20px; box-sizing: border-box; line-height: 1.3;}
	.item_info_txt{ font-size: 19px; font-weight: bold; margin :0 0 15px 0;}
	.item_price_item{display: flex; flex-wrap: wrap; margin-bottom: 8px; box-shadow: 2px 2px 4px 0px rgb(0 0 0 / 15%);}
	.item_price_L { width: 45%; padding: 10px; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: flex-end;}
	.item_price_003 .item_price_R { background: none;}
	.item_price_L_inner { width: 100%; text-align: right;}
		.item_price_L_txt01{ font-size: 20px; font-weight: bold;}
		.item_price_L_txt02{ font-size: 12px; line-height: 1.2; margin-top: 5px;}
	.item_price_R{ padding: 10px; box-sizing: border-box; flex: 1; display: flex; flex-wrap: wrap; align-items: center;}
	.item_price_R_inner{ width: 100%;}
		.item_price_001 .item_price_L{background: #E4007F; color: #fff;}
		.item_price_002 .item_price_L{background: #1d8fff; color: #fff;}
		.item_price_003 .item_price_L{background: #292929; color: #fff;}
		.item_price_001 .item_price_R{color: #E4007F; }
		.item_price_002 .item_price_R{color: #1d8fff; }
		.item_price_003 .item_price_R{color: #292929; }
		.item_price_R_txt01{font-size: 14px; font-weight: bold; color: #333;}
		.item_price_R_txt02{font-size: 31px;font-family: 'Montserrat', sans-serif; font-weight: bold; text-align: right;}
		.item_price_R_txt02 span{ font-size: 60%;}
		.item_price_R_txt03{ font-size: 12px; font-family: 'Montserrat', sans-serif; text-align: right;}

	.item_price_item_other{ font-size: 14px; text-align: right;}
	.item_price_item_other a{ text-decoration: underline; color:darkblue ;}

	.item_point_base{display: flex; flex-wrap: wrap; margin: 20px 0 10px 0;}
	.item_point{display: flex; flex-wrap: wrap; align-items: center; justify-content: center; width: 90px; min-height: 80px;  border-radius: 10px; text-align: center; font-size: 13px; font-weight: bold; line-height: 1.3; margin :0 10px 10px 0; box-shadow: 2px 2px 4px 0px rgb(0 0 0 / 35%)}
	.item_point_01{background: #D4E7FF;}
	.item_point_02{background: #FBFFD4;}
	.item_point_03{background: #FFD4E9;}
	.item_point_04{background: #D4FFD4;}
	.item_point_05{background: #FFE8D4;}

	@media screen and (max-width: 1200px){
		.iipLt_br{ display: none;}
	}
	@media screen and (max-width: 1000px){
		.item_img{ width: 100%;}
		.item_info{ width: 100%; padding: 0;}
	}
	@media screen and (max-width: 768px){
		.item_info_txt { font-size: 17px; margin :15px 0 15px 0;}
		.item_price_L_txt01 { font-size: 18px;}
		.item_price_L_txt02 { font-size: 12px;}
		.item_price_R_txt01 { font-size: 12px;}
		.item_price_R_txt02 { font-size: 26px;}
	}

/* デスクトップおよびタブレット（768px以上） */
@media (min-width: 768px) {
  .custom-area {
    max-width: 48%;
  }
}




/* サイズテーブルCSS */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1em;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  min-width: 500px; /* 小さい画面でも横スクロールさせる */
}

.size-table th,
.size-table td {
  border: 1px solid #ddd;
  padding: 10px 15px;
  text-align: center;
}

.size-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.size-table td:first-child {
  font-weight: 600;
  background-color: #fafafa;
}

.size-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* オプション：テーブルを小さくしたい場合 */
@media (max-width: 600px) {
  .size-table {
    font-size: 14px;
    min-width: 100%;
  }
}

/* モーダル内画像の表示サイズ制御（競合も想定して強化） */
.modaal-content-container img,
.modaal-content img,
.modaal-gallery-image img {
  max-width: 90vw !important;
  max-height: 80vh !important;
  width: auto !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

/* モーダル全体のレイアウト調整 */
.modaal-content-container {
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}
@media screen and (max-width: 600px) {
  .modaal-content-container img {
    max-width: 95vw;
    max-height: 70vh;
  }
}

/* レスポンシブ対応: 画面幅が狭い時の調整 */
@media screen and (max-width: 1024px) {
  .price-summary-inner {
    flex-direction: column;
    gap: 10px;
  }
  
  .selection-summary {
    width: 100%;
    justify-content: center;
  }
  
  .price-details {
    width: 100%;
    text-align: center;
    padding-right: 0;
    order: 1;
  }
  
  .form-buttons {
    width: 100%;
    text-align: center;
    order: 3;
  }
}

@media screen and (max-width: 768px) {
  .selection-item {
    min-width: 100px;
    flex: 1 1 calc(50% - 7.5px);
  }
  
  #color-selection,
  #print-selection,
  #size-selection,
  #white-base-selection,
  #packaging-selection {
    min-width: 100px;
  }
}

@media screen and (max-width: 480px) {
  .selection-item {
    flex: 1 1 100%;
    min-width: 0;
  }
  
  .price-summary {
    padding: 10px;
  }
}


