* {
    box-sizing: border-box;
}

/* 基本的に item_box は表示する設定（商品1やデータあり用） */
.item_box {
    display: block;
}

/* 商品2以降で、まだ商品が選ばれていない（openクラスがない）場合は非表示 */
/*.wrapper:not(#item1_wrapper) .item_box {
    display: none;
}*/
.openBtn.open ~ .item_box {
    display: block;
}

/* クリックして明示的に閉じた場合は、最優先で非表示にする */
.wrapper.is-close .item_box {
    display: none !important;
}

/* 商品1は常に表示の候補 */
#item1_wrapper .item_box {
    display: block;
}
.sp {
    display: none;
}
/*ステップリスト*/
.stepList {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 600px; 
  width: 100%;
  background-color: #700010;
  border: 2px solid #700010;
  box-sizing: border-box;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}
.stepList li {
  position: relative;
  flex: 1;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.4;
  clip-path: polygon(0% 0%, calc(100% - 20px) 0%, 100% 50%, calc(100% - 20px) 100%, 0% 100%, 20px 50%);
    margin: 0;
  margin-left: -18px; 

}
.stepList li p {
    margin-bottom: 0;
    position: relative;
    line-height: 130%;
    font-size: 16px;
    font-weight: normal;
}
.stepList li:first-child {
  clip-path: polygon(0% 0%, calc(100% - 20px) 0%, 100% 50%, calc(100% - 20px) 100%, 0% 100%);
  margin-left: 0;
}
.stepList li:last-child {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 20px 50%);
}
.stepList li.active {
  background-color: #700010;
  color: #fff;
}
.stepList li:not(.active) {
  background-color: #efefef;
  color: #666;
}
.stepNum {
  display:block;
  position: absolute;
  left: -30px;
  top: 10px;
  text-align: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 24px;
}
.active .stepNum {
  background-color: #fff;
  color: #700010;
}
.stepList li:not(.active) .stepNum {
  background-color: #bbb;
  color: #2d2929;
}
.stepText {
  text-align: left;
}

@media (max-width: 480px) {
    .sp {
        display: block;
    }
  .stepList li {
    height: 60px;
    gap: 5px;
    padding-left: 10px;
  }
  .stepList li p {
    font-size: 12px;
  }
  .stepNum {
    width: 16px;
    height: 16px;
    font-size: 10px;
    line-height: 16px;
    top: 5px;
    left:-20px;
  }
}

#form h5 {
    text-align: center;
    margin: 3rem auto 1rem;
    border-bottom: none;
    font-weight: normal;
}
#form h5 span {
    display: block;
    font-size: 80%;
}
.item_box p {
    margin-bottom: 0 !important;
}
.item_box .section {
    display: flex;
    flex-wrap:wrap;
    justify-content: space-between;
}
.item_box .section > p {
    width: 100%;
    text-align: left;
}
.item_box p.selectText {
    margin-bottom: 1rem !important;
}
.selectText + p{
    margin: 0 auto 1.5rem !important;
}
.item_box > table {
    background: #FFF;
}
.stepTtl {
    border-bottom:2px solid #6a0016;
    font-size: 18px;
    letter-spacing: 1px;
}
.stepTtl span {
    color: #6a0016;
}
.stepTtl span:before {
    content: "\e5cc";
    font-family: "Material Symbols Outlined";
}

/*商品情報の自動入力部分*/
th {
    background: #f7f7f7;
    color: #666;
}
.controlBox {
    display: flex;
    justify-content:flex-start;
    align-items: center;
    border-radius: 8px 8px 0 0;
}
.wrapper > .controlBox  {
    width: 100%;
    background: #700010;
    padding: .8rem 1.5rem;
    justify-content: space-between;
}
.wrapper.is-close > .controlBox {
    border-radius: 8px;
    margin-bottom: 1rem;

}
.controlBox p {
    margin-bottom: 0 !important;
    color: #FFF !important;
    position: relative;
}
.wrapper > .controlBox > p:first-of-type:before {
    content: "▲ ";
    font-size: 80%;
    color: #f3f3f3;
}
.is-close .controlBox > p:first-of-type:before {
    content: "▼ ";

}
.controlBox .addBtn + p {
    color: #666 !important;
}
.small {
    color: #666;
}
[class*="selectItem"] {
 display:grid;
 grid-template-columns: 150px 1fr;
margin:1rem auto;
 width: 100%;
 gap: 1rem;
}
[class*="selectItem"] p {
    margin-block: 0;
}
[class*="selectItem"]  > div p + p {
    margin-top: .5rem;
}
span:has([data-name*="limit"]) {
    margin:0 0.4rem;
    display: inline-block;
}
p:has([class*="itemname"]) {
    display: block;
    padding:4px;
    border-radius:5px;
        background: #FFF;
    border: 1px solid #d2d2d2;
}
input.noedit { 
    width: 230px !important;
}

[class*="product_pic"] {
  max-width: 150px;
  width:100%;
  height: 150px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid #cdcdcd;
}

ul.size {
    display: flex;
    margin-block: 0;
    padding-inline: 0;
    list-style: none;
}
ul.size li {
    margin-bottom: 0 !important;
    max-width:130px
}
ul.size li:not(:nth-of-type(3)) {
    margin-right: 1rem;
}
input[name*="text-sizew"],
input[name*="text-sizeh"] {
    width: 100px !important;
}
input[name*="maisu"] {
    width: 80px !important;
}

.selectText {
    background: #e2dad1;
    text-align: center;
    padding:.5rem;
    font-size:15px;
    color: #2e0a19;
    border-radius:5px;
}
.selectText > p {
    text-align: left;
    font-weight: normal;
    margin-bottom: 0;
}
.selectText:has(p) {
    margin-bottom:1rem;
}
.selectText:first-of-type {
    border-radius:0;
}
.selectText + p {
    text-align: center;
}
.item_box .columnL {
    width: 50%;
}
.comment {
    font-size: .8rem;
    color: #999;
}
input[type=date], input[type=email], input[type=number], input[type=password], input[type=tel], input[type=text], input[type=url], select, textarea {
    padding: 6px 4px!important;
    border-radius: 0 !important;
}
.false .wpcf7-list-item:not(:first-of-type) {
    display: none;
    
}
.item_box {
    transition: .3s all;
    height: auto;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    background: #FFF;
    padding: 0;
    content-visibility: auto;
    contain-intrinsic-size: 500px;
    border-radius: 0 0 8px 8px;
}
.item_box input {
    border-radius: 5px !important;
       accent-color: #700010;
}

.item_box input[type="checkbox"] {
   transform: scale(1.2);

}
.item_box tr > * {
    padding: .6rem .8rem !important;
}
.item_box tr:first-of-type td:first-of-type {
    width: 80%;
    vertical-align: middle;
}
.item_box tr:first-of-type td:first-of-type p {
    margin-bottom: 0;
}
.item_box th {
    vertical-align: top;
    text-align: left;
    font-weight: normal;
}
.cut strong,
.option strong {
    font-size: 15px;
    font-weight: normal;
    color: #700010;
    margin-bottom: .5rem;
    display: block;
}
.cut strong + br,
.option strong + br {
    display: none;
}
[class*="muki"],
[class*="meawase"] {
    width: 48%;
}
[class*="meawase"].hide textarea,
[class*="muki"].hide textarea{
    display: none;

}
[class*="muki"] .wpcf7-list-item,
[class*="meawase"] .wpcf7-list-item {
    padding:0;

}
[data-name*="garaother"],
[data-name*="meawaseother"],
[data-name*="textarea-"],
.vertical,
.horizontal{
    display: none;
}
[data-name*="textarea-note"] {
    display: block;
}
tr:has(input[value="その他"]:checked) [data-name*="garaother"],
tr:has(input[value="その他"]:checked) [data-name*="meawaseother"],
tr:has(input[value="その他"]:checked) [data-name*="textarea"] {
  display: block;
}
tr:has(input[value="ヨコ向き"]:checked) .vertical,
tr:has(input[value="タテ向き"]:checked) .horizontal,
tr:has(input[value="ヨコ並び"]:checked) .vertical,
tr:has(input[value="タテ並び"]:checked) .horizontal  {
  display: flex;
}
.refImgWrap figure > p {
    width: 80px;
    height: 80px;
    padding: .5rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius:5px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.refImgWrap {
        color: #888;
        flex-wrap:wrap;
        margin-top: 1rem;
}
figure svg {
    width: auto;
    height: auto;
    color: #888;
}
[class*="muki"] .wpcf7-list-item:last-of-type {
    margin-bottom: 0;
}
[class*="meawase"] p:has(a) {
    margin: 0 0 0 auto;
    font-size: 13px;
    text-align: right;
    display: block;
    width: fit-content;
}
[class*="meawase"] p a {
    color: #6a0016;
    text-decoration: underline;
}
[class*="option"] dd p:first-of-type {
    margin-bottom: 1rem;
} 
.option {
    width: 100%;
    margin-block-start: 0;
}
.option strong span {
    font-size: 90%;
    color: #999;
}
.option dd {
    display: flex;
}
.step1btn {
    text-align: center;
    width: 100%;
    padding: 1rem;
}
[class*="muki"].hide .wpcf7-list-item:not(.first) ,
[class*="meawase"].hide .wpcf7-list-item:not(.first) {
    display: none;
}
textarea {
    height: 50px;
    margin-top: .8rem !important;
    border-radius:5px !important
}
textarea[name="shiyou"],
textarea[name="your-message4"]{
    height:120px;
}
span.required {
    pointer-events: none;

}
span[data-name*="cut"] {
    padding-top: .3rem;
    margin-top: .3rem;
    border-top: 1px solid #eee;
    display: inline-block;
    width: 100%;
}
span.required input {
    accent-color: #6d6d6d;
    opacity: .3;
}

span:has(span.required) + span {
    color: #999;
    font-size: .8rem;
    display: inline-block;
    margin-left: .5rem;
}
#addItem + table {
    border: 1px solid #DDD;
    border-bottom: none;
    border-collapse: separate;
    border-radius: 10px 10px 0 0;
}
#addItem + table p {
    margin-bottom: 0;
    padding: 8px 0 !important;
    text-align: left;
}
#addItem + table tr,
#addItem + table tr * {
    border: none;
}

#addItem + table tbody tr >* {
    background: #FFF;
}
#addItem + table thead {
    background: #f7f7f7;
}
#addItem + table thead th {
    border-radius: 10px 10px 0 0;
}
#addItem + table tbody th {
    text-align: left;
    font-size: 16px;
    padding: .8rem 1rem !important;
}
#addItem + table tbody th a {
    font-weight: normal;
    text-decoration: underline;
    color: #6a0016;
}
#addItem + table tbody td {
    text-align: right;
    font-size: 16px;
}
#addItem + table tbody tr:not(:last-of-type) {
    border-bottom:1px solid #efefef
}
#note {
    border: 1px solid #DDD;
    border-radius: 10px;
    overflow: hidden;
    background: #FFF;
}
#note h5 {
    background: #f7f7f7;
    color: #666;
    font-weight: 600;
    font-size: 14px;
    padding: 1rem;
    text-align: left;
    margin: 0 auto !important;
}
#note h5 + p {
    width:calc(100% - 2rem);
    margin: 1rem auto !important;

}
#note textarea {
    margin: 0rem auto !important;

}
.wpcf7 .wpcf7-submit:disabled {
    opacity: .5;
}


/*
[class*="meawase"].hide textarea {
    display: none;
}
[class*="meawase"] dd:has(.wpcf7-list-item) + dd,
[class*="muki"] dd:has(.wpcf7-list-item) + dd,
span[data-name^="textarea-"] textarea  {
    display: none;
}/*
[class*="meawase"] dd:has(.wpcf7-list-item.last input:checked) + dd,
[class*="muki"] dd:has(.wpcf7-list-item.last input:checked) + dd,
span[data-name^="option"]:has(.wpcf7-list-item.last input:checked) + br + span[data-name^="textarea-"] textarea {
    display: block;
}*/
span[data-name*=option] > span > span {
    display: block;
    border-bottom: 1px solid #eee;
    padding:.3rem 0;
}
span[data-name*=option] > span > span:last-of-type {
    border-bottom:none;
}
.keijyou p {
    width: 100%;
    max-width: 360px;
}
div[id*="awaseoption"] select,
.keijyou select {
    border-radius:5px !important;
    appearance:auto;
    margin-bottom: 0;
}
div[id*="awaseoption"] select {
    max-width:280px;
    cursor: pointer;
}

.addBtn,.addBtn + p  {
    display: block;
    color: #999;

}
.addBtn + p {
    font-size:14px;
    margin-left: 1rem;
    margin-bottom: 0rem !important;
}
[class*="selectItem"] .small {
    color: #000;
} 

.addBtn button {
    padding:.4rem .5rem .4rem .8rem;
    border: none;
    outline: none;
    font: inherit;
    color: inherit;
    background: #6a0016;
    color: #FFF;
    min-height: 43px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
}
.addBtn button:after {
 font-family: "Material Symbols Outlined";
  content: "\e5cc";
  color: #ffffff;
  font-size: 1.3rem;  font-weight: normal;
  z-index: 10;
  pointer-events: none;
  margin-left: 6px;
}
#addItemBtn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px dashed #700010;
    background: #fff;
    color: #700010;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;

}

[id*="remove_product"] {
    background: #ffffff;
    color: #000000;
    margin: 0 auto;
    padding:0 .8rem 0 1.8rem;
    border: 1.5px solid #ccc;
    outline: none;
    font: inherit;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 1px;
    position: relative;
}
[id*="remove_product"]:before {
  font-family: "Material Symbols Outlined";
  content: "\e5cd";
  color: #6a0016;
  font-size: 1.3rem;
  position: absolute;
  left: .5rem;
  font-weight: normal;
  top: 2%;
  z-index: 10;
  pointer-events: none;

}
p:has([id*="remove_product"]){
    text-align: center;
    margin: 0 0 0 auto !important;
}
.total {
    padding: .1rem;
    background: #f9f0f0;
    color: #000;
    font-size: 16px;
    text-align: right !important;
    margin: 0 !important;
    padding:0 1rem;
    width: 100%;
    border-radius: 0 0 8px 8px;
}
.total dl {
    width: 100%;
    display: flex;
    flex-wrap:wrap;
    justify-content: space-between;
    margin-bottom: 0 !important;
}
.total dl > * {
    margin-bottom: 0;
    color: #6a0016;
}
.total dl dt {
    font-weight: normal;
}
.total dl dd {
    font-size: 18px;
}
input[name*="itemprice"]{
    width: 240px !important;
    background: transparent !important;
    border: none !important;
    text-align: right;
    color: #6a0016 !important;
    font-size:18px !important;
}
span[data-name*="priceunit"] {
    display: none;
}
span[data-name*="awase_price"] {
    margin:0 0 0 auto;
}

#step2form p {
    width: 640px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

#step2form div span{
    display: inline-block !important;
    width: 80%;
    margin: 0 0 0 auto;
}
.btnBox > p {
    margin-top: 2rem !important;
}
.btnBox p {
    display: flex;
    justify-content: center;
}
span.wpcf7-spinner {
    display: none !important;
}
.btnBox p > * {
    margin: 0 1rem;
    width: 130px;
}
.btnBox input[type=button] {
    padding:1rem;
    width: 130px;
border: none;
outline: none;
font: inherit;
color: inherit;
background: #000000;
color: #FFF;
min-height: 60px;
cursor: pointer;
border-radius: 5px;

}
.hidden,
.ppic input {
   opacity: 0;
    height: 0;
    display: none;
}
.noedit {
    display: inline-block !important;
    margin: 0 5px;
    width: 350px !important;

}
input[type=number].noedit {
    width:70px !important;

    pointer-events: none;
}
.total.last {
    background:#f9f0f0;
    border-radius: 0 0 10px 10px !important;
    width:100%;
    margin: 0 auto !important;
    display: flex;
    justify-content: space-between;
    padding: .5rem 1rem .2rem;
    border: 1px solid #DDD;
    border-top: none;
}
.total.last + p {
    text-align: right;
    margin-top: .5rem;
}
.total.last span {
    font-size: 105%;
    color: #6a0016;
}
form strong {
    font-size: 150%;
}
#kokyaku th {
    background: #1466a4;
    color: #FFF;
    font-size: 24px;
    width: 30%;
}
#kokyaku td {
    vertical-align: middle;
}
#kokyaku p {
    margin-bottom: 0;
    padding: .5rem;
    font-size: 16px;
}
#validate_button {
    min-width: 240px;
    margin: 0 auto;
    padding: 1rem !important;
    display: block;
}
#btnBox {
    display: flex;
    justify-content: center;
    margin-top: 2rem;

}
#btnBox #confirmReturn input[type=button],
#btnBox input[type=submit]{
    padding:1rem;
    width: 180px;
border: none;
outline: none;
font: inherit;
color: inherit;
background: #000000;
color: #FFF;
min-height: 60px;
cursor: pointer;
border-radius: 5px;
}
#btnBox input[type=submit]{ 
    background: #1466a4;
}
#btnBox #confirmReturn {
    margin-right: 1rem;
}
/*customer information*/
table.tdn  {
    border: 2px solid #f0f0f0;
}

table.tdn p {
    margin-bottom: 0;
}
table.tdn tr {
    border-color: transparent;
}
table.tdn tr:nth-of-type(odd) {
    background: rgba(255,255,255,1);
}
table.tdn th {
    width: 30%;
    text-align: left;
}
#name {
    max-width:250px;
}
#tel,#fel,#fax,#zip,#zip2,#tel2 {
    max-width:240px;
}

table.tdn th .ed {
    display: inline-block;
    padding: 2px 4px;
    border-radius:3px;
    background: #6a0016;
    color: #FFF;
    margin-left: 4px;
    font-size: 80%;
}
.wpcf7-list-item {
    margin: 0;
    font-size: 14px;
}
span.asus {
    display: block;
    font-size: 90%;
}
table.tdn input {
    margin-bottom: 0;
}
table.tdn input[name="name2"] {
    width: 90%;
    max-width:400px;
}
.vk_borderBox_title_container{
    display: flex !important;
}
.vk_borderBox_title_container > * {
    margin: 0;
}

.vk_borderBox_body strong {
    font-size: 95% !important;
}
.vk_borderBox_body h4 {
    font-size: 1rem !important;
}
#policy {
    padding: 1rem;
    text-align: center;
}
#ex5 + p {
    text-align: center;
}
#ex5 + p input:first-of-type {
    margin-right: 5px;
}
#iteminfo {
    margin-top: 3rem;
}
[id*="error_h"],
[id*="error_w"]{
    padding: 0;
}
td .smallText {
    color: #757575;
}
textarea[name="text-toitoi"] {
    font-size:13px;    
}

/*
textarea[name="garaother1"] {
    display: none;
}*/
/* 真偽値が false の場合、向き(gara)と目合わせ(meawase)のエリアを非表示にする */
[class*="muki"].false {
    display: none !important;
}[class*="meawase"].false {
    display: none !important;
}
#customerInfo,
#iteminfo {
    width: 100%;
}
div:has(#customerInfo) .item_box {
    width: 100%;
    border: none;
    background: none;
    display: block !important;
}
div:has(#customerInfo) .item_box table{
    margin: 0 auto;
}
div:has(#customerInfo) .item_box th {
    width:20%;
    max-width:200px;
    background: #f7f7f7;
    font-weight: normal;
    vertical-align: middle;
}
div:has(#customerInfo) .item_box td {
    width: 30%;
}
div:has(#customerInfo) .item_box td {
    background: #FFF;
}
div:has(#customerInfo) table p {
    margin-bottom: 0;
}
div:has(#customerInfo) .item_box tr:first-of-type td:first-of-type {
    background: none;
}

.item_box p.total {
    display: grid;
    grid-template-columns: 120px 1fr 50px;
}
.total.last span {
    font-size: 115%;
}
#note {
    margin-top: 2rem;
}
[id*=cf7msm_itemprice] {
    font-size: 115%;
}
#customerInfo h5,
#customerInfo + h5#iteminfo {
    text-align: left;
    color: #6a0016;
    border-bottom: 2px solid #6a0016;
    font-weight: 600;
}
#customerInfo h5:before,
#customerInfo + h5#iteminfo:before {
    content: "\e5cc";
    font-family: "Material Symbols Outlined";
}
[id*="item"] + .total.last {
    display: grid;
     border-radius: 10px !important;
     border-top:1px solid #DDD;
     grid-template-columns: 150px 1fr 50px;
}
@media screen and (max-width:768px) {
    #form {
        display: block;
    }
    .wrapper {
        width: 100%;
        margin: 0 auto;
    }
    
}
@media screen and (max-width:480px) {
    #form h5 {
        text-align: left;
    }
    #form h5 span {
        display: block;
        font-size: 80%;
    }
    .total dl dd {
        width: 100%;
    }
    div:has(#customerInfo) .item_box {
        width: 100%;
        border: none;
        background: none;
    }
    div:has(#customerInfo) .item_box th {
        width:200px;
    }
    .tdn tr,
    .tdn tr p:has(.ed) {
        display: flex;
        flex-wrap:wrap
    }
    .tdn tr p:has(.ed) {
        flex-wrap: nowrap;
    }
    table.tdn th,
    .tdn tr > * {
        width: 100%;
        padding-bottom: 0;
    }
    table.tdn td {
        padding-bottom: 1rem;
        background: #FFF;
    }
    table.tdn th {
        padding-top: 1rem;
    }
    .spLeft {
        text-align: left !important;
    }
    [class*="selectItem"] {
        margin-top: 1rem;
    }
    [class*="selectItem"],
    .controlBox,
    .item_box .columnL,
    .item_box dl.maisu {
        width: 100%;
    }
    .controlBox {
        flex-wrap: wrap;
    }
    .controlBox > p {
        margin-left: 0;
    }
    span:has([id*="limit"]) {
        width: 75px;
        display: inline-block;
    }
    dl.option {
        margin-block: 0;
    }
    [class*="product_pic"] {
        width: 100px;
        height: 100px;
    }
    [class*="selectItem"] {
        grid-template-columns: 100px 1fr;
    }
    .item_box tr:first-of-type td:first-of-type {
        width: 75%;
    }
    ul.size {
        flex-wrap: wrap;
    }
    [data-name*="muki"] >span,
    [data-name*="meawase"] > span {
        display: flex;
        flex-wrap:wrap
    }
    [data-name*="muki"] >span span:not(:last-child),
    [data-name*="meawase"]>span span:not(:last-child){
        margin: .3rem 0 ;
    }
    .refImgWrap {
        margin-top: 0;
    }
    input[name*="text-sizew"], input[name*="text-sizeh"] {
        width: 70px !important;
        margin-bottom: 0 !important;
    }
    .addBtn button {
        font-size: 14px;
    }
    #addItem + table tbody td {
        font-size: 14px;
    }
    input[name*="itemprice"] {
        width: 180px !important;
    }
        input[name*="itemprice"].input-error-sp {
        width: 240px !important;
    }
    span:has([id*="limit"]),
    input[type=number].noedit {
        width: 50px !important;
    }
    #summaryTbl,
    #summaryTbl tr,
    #summaryTbl tr > *{
        display: block;
        width: 100%;
    }
    div:has(#customerInfo) .item_box tr{
        display: flex;
        width: 100%;
        flex-wrap: wrap;
    }
    div:has(#customerInfo) .item_box tbody,
       div:has(#customerInfo) .item_box tbody tr > * {
        display: block;
    }
    div:has(#customerInfo) .item_box tr td {
        width: calc(100% - 120px);
    }
    div:has(#customerInfo) .item_box tr th {
        width: 120px;
    }
    .item_box p.total {
    display: grid;
    grid-template-columns: 30% 60% 10%;
}
}
#policy {
    margin-bottom: 0;
}
input[type=button] {
    font-size: 1rem;
    border: 1px solid #cecece;
    background-color:transparent;
    background:url(../img/form/arrow_left.png) no-repeat 20% center;
    background-size: 13px;
    color: #6a0016;
    cursor: pointer;
    padding: .5em 2rem .5rem 3rem;
    width: 40%;
    max-width:200px;
    margin-top: 2rem;
    border-radius:0;
}
input.simpleSubmit {
        font-size: 1rem;
    border: 1px solid #cecece;
    background-color:transparent;
    background:url(../img/form/arrow_right.png) no-repeat 80% center;
    background-size: 13px;
    color: #6a0016;
    cursor: pointer;
    padding: .5em 2rem .5rem 3rem;
    width: 40%;
    max-width:200px;
    margin-top: 2rem;
    border-radius:0 !important;
}
.step1btn + p {
    width: 100%;
    text-align: center;
}
.step1btn + p input{
    font-size: 1rem;
    border: 1px solid #cecece;
    background-color:#6a0016;
    background: no-repeat 95% center;
    background-size:13px;
    color: #6a0016;
    cursor: pointer;
    padding: .5em 2.5rem .5rem 1.5rem !important;
    border-radius: 50px !important;
    max-width: 400px;
}
p:has(input[type=button]) + p,
p:has(input[type=button]) + p + p {
    text-align: center;
}
input[type=submit].redBtn {
    padding: 1rem 0 !important;
        border-radius: 50px !important;
        background: url(../img/form/arrow_right.png) 90% center no-repeat, #6a0016;
        background-size: 15px;
        color: #FFF;
        width: 90% !important;
        max-width:380px !important;
}
[class*="openBtn"] {
    margin-top: 2rem;
}
[class*="openBtn"] p{
    background: #6a0016;
    color: #FFF;
    padding: 1rem;
    font-size: 130%;
    border-radius:5px;
    margin-bottom: 0;
    position: relative;
}
[class*="openBtn"] p:after {
    content: "▼";
    color: #FFF;
    position: absolute;
    right: 20px;
    display: block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    top:25px;
    transition:  .3s all;
}
[class*="openBtn"].open p:after {
    transform: rotate(-180deg);

}
[class*="openBtn"] + .wrapper {
    display: none;
}
[class*="openBtn"].open + .wrapper{
    display: block;
}
.emptyMsg {
    text-align: center;
    margin-top: -1rem;
    color: #F44336;
}
input[name="price_total"] {
    text-align: right;
    background: transparent !important;
    border: none !important;
    margin-bottom: 0 !important;
    font-size: 20px !important;
    color: #6a0016 !important;
}
.wpcf7 form .wpcf7-response-output {
    display: none;
}
[data-name="checkbox-info1"],
[data-name="checkbox-info2"],
[data-name="pay"] > span > span {
    display: block;
}
input[type=submit].redBtn.rectangle {
    border-radius: 0 !important;
}
.item_box:has([id*="cf7msm_product_name"]:empty){
    background:#000;
    display:none;   
}
table:has([id*="cf7msm_product_name"]:empty) + .total {
    display: none;
}

#delete-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none; /* 最初は隠す */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top-color: #6a0016; /* コーポレートカラー等に変更してください */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    margin-top: 15px;
    font-weight: bold;
    color: #333;
}
.headItemName a {
    color: #FFF;
    text-decoration: underline;
}
.headItemName a:hover {
    color: #FFF;
    text-decoration: none;
}
.allDelete {
    font-size: 14px;
    color: #fff;
    background: #888;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    cursor: pointer;
    font-family: inherit;
    max-width: fit-content;
    display: inline-block;
    margin: 0 0 1rem auto;
}
#form > .allDelete {
    display: block;
}
#addItem > p:first-of-type {
    display: inline-block;
}
#addItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.summaryDlt {
    cursor: pointer;
    margin-left: 10px;
    font-size: 0.85em;
    font-weight: normal;
    transition: opacity 0.2s;
}
.summaryDlt:hover {
    opacity: 0.6;
    text-decoration: none;
}

.summaryDlt {
    background: #f5f5f5;
    color: #888;
    margin: 0 auto;
    padding:.2rem .5rem .2rem 1.4rem;
    border: 1px solid #ccc !important;
    outline: none;
    font: inherit;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 1px;
    position: relative;
}
.summaryDlt:before {
  font-family: "Material Symbols Outlined";
  content: "\e5cd";
  color: #888;
  font-size: 1rem;
  position: absolute;
  left:8%;      /* 中央寄せ */
  font-weight: normal;
  z-index: 10;
  pointer-events: none;
  top: 17%;

}
/* ポップアップ全体の背景（最初は非表示） */
.popupOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* ポップアップの中身（白枠） */
.popupContent {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* 画像のレスポンシブ対応 */
.popupImage {
  display: block;
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  max-height:80vh;
}

/* 閉じるボタン */
.popupClose {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  line-height: 1;
}

/* アクティブ時の表示切り替え */
.popupOverlay.is-active {
  display: flex;
}

@media screen and (max-width:480px) {
    .popupContent {
        padding: 0px;
    }
}