/*-----------------------

サンプル請求フォーム専用CSS
functions.php　読み込み
kodama_inc/css 内

-----------------------*/

.entry p /*,ul*/ {
    margin-block:0;
    margin-bottom: .5rem !important;
}
h6 {
    font-size: 16px !important;
}
.campaignTtl {
    color: #6a0016;
    text-align: center;
    font-size: 120%;
    font-weight: bold;
    padding:.3rem;
    width:fit-content;
    border-bottom: 2px solid #6a0016;
    letter-spacing: 1px;
    margin: 0 auto 2rem;
}
.slashTtl {
    width: fit-content;
    padding: .5rem;
    margin: 1rem auto !important;
    position: relative;
    font-size: 110%;
}
.centerPic img {
    display: block;
    max-width:540px;
}

.slashTtl:before,
.slashTtl:after {
    content: "";
    height: 30px;
    position: absolute;
    transform: rotate(-45deg) translate(-20px,-15px);
    width: 1px;
    background: #000;
}
.slashTtl:after {
    transform: rotate(45deg) translate(20px,-15px);
}
#sampleForm input {
    border-radius:0;
}
#sampleForm p strong {
    background: #6a0016;
    font-weight: normal;
    padding: 0 1rem;
    color: #FFF;
    display: inline-block;
    border-radius:5px;
    margin-right:8px;
}
#sampleForm p strong + strong {
    background: none;
    color: #000;
}
#sampleForm h5 {
    padding-bottom: .5rem;
    border-bottom: 2px solid #6a0016;
    margin-top: 1rem;
    font-size: 18px;
    font-weight: normal;
    padding-left: .5rem;
}
#sampleForm dl {
    margin-block:0 !important;
    margin-bottom: 1rem !important;
}
#sampleForm dl dt {
    font-weight: normal;
}
#sampleForm dl dt p {
    width: fit-content;
    letter-spacing: 2px;
    margin-bottom: 0 !important;
}
#sampleForm dl dt.require p:after {
    content: "必須";
    width: fit-content;
    display: inline-block;
    background: #6a0016;
    color: #FFF;
    padding:.2rem .5rem;
    line-height: 120%;
    vertical-align: text-bottom;
    font-size: 80%;
}

#sampleForm input[type="text"] {
    padding: 12px;
    background: #FFF;
}
#sampleForm input:placeholder-shown {
    background: #f7f7f7;
}
#sampleForm dd p {
    display: flex;
    vertical-align: middle;
    align-items: baseline;
}
span:has(input[name="sample-name"]),
span:has(input[name="sample-company"]) {
    width: 90% !important;
    max-width:400px;
}
span:has(input[name="sample-name"]){
margin-right:10px;
}
span:has(input[name="zip"]) {
    width: 60% !important;
    max-width:200px;
}
span:has(input[name="zip"]) + span {
    font-size: 14px;
    color: #6a0016;
    position: relative;
    display: inline-block;
    margin-left: 10px;
}
span:has(input[name="zip"]) + span a {
    text-decoration: none;
}
span:has(input[name="zip"]) + span:after {
    content: "";
    width: 100%;
    height: 1px;
    background: #6a0016;
    display: block;
    position: absolute;
    bottom: 0;
}
span:has(input[name="address"]),
span:has(input[name="strt"]),
span:has(input[name="your-email"]) {
    width: 100% !important;
    max-width:640px;
}
#sampleForm dl.flex {
    display: grid;
    grid-template-rows: repeat(4,auto);
    grid-template-columns: 47% 47%;
}
span:has(input[name="tel"]),
span:has(input[name="mobile"]),
span:has(input[name="fax"]) {
    width: 100% !important;
    max-width:250px;
}
#sampleForm dl dd:has(input[name="tel"]) {
    grid-row: 2;
    grid-column:1;
}
#sampleForm dl dd:has(input[name="fax"]) {
    grid-row: 4;
    grid-column:1;
}
#sampleForm span:has(textarea[name="message"]) {
    width: 100%;
    max-width:640px;
}
.inputItem {
    margin-top: 5rem;
}
.inputItem h5 {
    margin-bottom: 2rem;
}
.inputItem h6 {
    border-bottom:  dashed #c7c7c7 1px;
    margin: 2rem auto;
    padding-bottom: 1rem;
    letter-spacing: 2px;
}
.inputItem h6 span {
    color: #6a0016;
    font-weight: bold;
    font-size: 20px;
}
.inputItem .flex {
    display: flex;
    flex-wrap:wrap;
    justify-content: flex-start;
    width: 90%;
    margin: 2rem auto;
}
.inputItem .flex dl {
    width: 45%;
}
.inputItem .flex dl:nth-of-type(odd) {
    margin-right: 10%;
}
.inputItem .flex dl dt {
    color: #b5a899;
}
.inputItem .flex + p {
    text-align: center;
}
.inputItem .paid h6 {
    margin-top:4rem;
}


.btnColumn2 {
    display: flex;
    list-style: none;
    justify-content: center;
    margin-top: 1rem;
}
.btnColumn2 li {
    width: 48%;
    margin: 0 1%;
    max-width:300px;
    position: relative;
    letter-spacing: 2px;
}
.btnColumn2 li:after {
 font-family: "Material Symbols Outlined";
  content: "\e5cc";
  color: #ffffff;
  font-size: 1.8rem;
  position: absolute;
  right: 1.5rem;
  font-weight: normal;
  top: .9rem;
  z-index: 10;
  pointer-events: none;
}
.btnColumn2 li a {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    background: #6a0016;
    color: #FFF;
    border-radius: 5px;
}
.inputItem thead {
    background:#e2dad1;
    font-weight: normal;
}
.inputItem thead th {
    font-weight: normal;
}
.inputItem table p {
    margin-bottom: 0 !important;
 }
 .inputItem table + p {
    font-size: 14px;
    color: #999;
 }
 .inputItem tr {
    border: 1px solid #e2dad1;
 }
  .inputItem thead tr:nth-of-type(1) {
    border-right: 1px solid #FFF;
  }
  .inputItem tbody td:last-of-type {
    text-align: center;
  }
  input[type=submit].redBtn {
    padding: .5rem 0 !important;
        border-radius: 50px !important;
        background: url(../img/form/arrow_right.png) 90% center no-repeat, #6a0016;
        background-size: 15px;
        color: #FFF;
        width: 95% !important;
        max-width:300px !important;
        margin: 4rem auto 0;
        font-size: 18px;
}
p:has(.redBtn) {
    text-align: center;
}
a.detail-link,
.autofill a {
    color: #6a0016;
}
a.detail-link {
    display: inline-block;
    margin-left: 1rem;
    text-decoration: none;
    padding-bottom:0px;
    border-bottom: 1px solid #6a0016;
}
#sampleForm table input {
    margin-right: 1rem;
}


/* ------------------

確認フォーム

------------------ */
.confirmTable {
    border: 1px solid #e2dad1;
}
.confirmTable p {
    margin-bottom: 0 !important;
}
.confirmTable th {
    width: 30%;
    font-weight: normal;
    background: #f1ede9;
    position: relative;
    text-align: left;
}
.confirmTable th.require:after {
    content: "必須";
    width: fit-content;
    display: inline-block;
    background: #6a0016;
    color: #FFF;
    padding:.2rem .5rem;
    line-height: 120%;
    vertical-align: text-bottom;
    position: absolute;
    font-size: 80%;
    right: 8px;
    top: 10px;
}
td.price {
    text-align: left !important;
}
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;
}
p.center {
    text-align: center;
}
input[type=submit].redBtn.tocomplete {
    margin-top: 2rem;
    padding-block: 0;
    margin-inline:0 ;
    max-width:400px !important;
}
.wpcf7-spinner  {
    display: block;
}



@media screen and (max-width:480px) {
    .centerPic {
        text-align: center !important;
        margin: 0 auto;
        display: block !important;
    }
    .centerPic img {
        width: 90%;
        display: block;
        margin: 0 auto;
    }
    #sampleForm p strong {
        margin-right: 0;
    }
    .ttlBar {
        margin-bottom: 2rem !important;
    }
    p.smallText {
        margin: 1.5rem auto !important;
    }
   span:has(input[name="sample-name"]) {
        width: 80% !important;
    }
    span:has(input[name="sample-company"]){
        width: 100% !important;
    }
    .btnColumn2,
    .inputItem .flex,
    #sampleForm dl.flex {
        display: block;
        width: 100%;
    }
    .step {
        display: flex;
        align-items: center;
    }
    .inputItem h6 {
        margin: 2rem auto 1rem;
    }
    #sampleForm dl {
        width: 100%;
    }
 
    .btnColumn2 {
        padding-left: 0;
    }
    .btnColumn2 li {
        width: 100%;
        margin: 1rem auto 0;
    }
    .paid .wpcf7-list-item {
        margin: 0;
    }
    #sampleForm table input {
        margin-right: .5rem;
    }
span:has(#sya) {
    width: 100%;
}

.wpcf7-list-item {
  display: inline;
}

.wpcf7-radio {
  display: inline;
}
.inputCustomer .confirmTable tr {
    display: flex;
    flex-wrap: wrap;
}
.inputCustomer .confirmTable tr > *  {
    width:100%;
}
.paid .confirmTable th {
    width: 65%;
}
input[type=submit].redBtn {
    font-size: 16px;
    background: url(../img/form/arrow_right.png) 93% center no-repeat, #6a0016;
    background-size: 15px;
}
}
