@charset "utf-8";

/* ==============================================
 Reset
=============================================== */

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: bottom;
    line-height: 1.2;
    list-style-type: none;
}

article,
aside,
details,
figcaption,
figure,
main,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

nav ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

a {
    margin: 0;
    padding: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

/* change colours to suit your needs */
ins {
    background-color: #ff9;
    color: #000;
    text-decoration: none;
}

/* change colours to suit your needs */
mark {
    color: #000;
    font-weight: bold;
    background: linear-gradient(transparent 50%, #fdf991 50%);
}

del {
    text-decoration: line-through;
}

abbr[title],
dfn[title] {
    border-bottom: 1px dotted;
    cursor: help;
}

table {
    border-collapse: separate;
    border-spacing: 0;
}

/* change border colour to suit your needs */
hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #c1c1c1;
    margin: 1em 0;
    padding: 0;
}

input,
select {
    vertical-align: middle;
}

span {
    vertical-align: baseline;
}


body {
    font-family: sans-serif;
    background-color: #f0f2f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 20px;
    box-sizing: border-box;
}
footer {
    margin-top: 40px;
    text-align: center;
    background: #666;
    color: #fff;
    font-size: 12px;
    width: 100%;
    padding: .3em 0;
}


/*==================================
 ====================================
 フォームデモcommon
 ====================================
 ==================================*/

.formdemo__ttl {
    font-size: 28px;
}



.container {
    width: 100%;
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
}


.inner {
    margin-right: 10px;
    margin-left: 10px;
}

.privacypolicy {
    margin-top: 40px;
}

.privacypolicy__item {
    margin-top: 1em;
}

.privacypolicy__item__txt {
    font-size: .8em;
    margin-top: .5em;
}

.privacypolicy__item__ad-item {
    list-style-type: disc;
    font-size: .8em;
    margin-left: 1em;
}

.privacypolicy__item__ad-item {
    margin-top: .4em;
}

.privacypolicy__txt {
    font-size: .8em;
    margin-top: .5em;
}

.privacypolicy__ttl {
    font-size: 20px;
}

.formdemo__nav__item {
    list-style-type: disc;
    margin-bottom: 10px;
    margin-left: 1em;
}

.formdemo__ttl {
    margin: 10px 0;
}

.formdemo__description {
    font-size: 14px;
    margin-bottom: 20px;
}

/*==================================
 ====================================
 チャットフォーム
 ====================================
 ==================================*/


.chatform__container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-height: 80vh;
    overflow-y: scroll;
    margin: auto;
}

.chatbubble__bot,
.chatbubble__user {
    margin-bottom: 15px;
    padding: 12px 18px;
    border-radius: 20px;
    max-width: 80%;
    word-wrap: break-word;
    animation: fadeIn 0.5s ease-out;
}

.chatbubble__bot {
    background-color: #e2e8f0;
    align-self: flex-start;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

.chatbubble__user {
    background-color: #a0d8ff;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.chatform__form-group {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: .4em .2em;
}

.chatform__radio-label,
.mwform-radio-field label {
    display: block;
    padding: .4em .8em;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
}

.chatform__radio-label:has(:checked),
.mwform-radio-field label:has(:checked) {
    background: #007bff;
    color: #fff;
}

.chatform__radio-label:hover,
.mwform-radio-field label:hover {
    filter: brightness(.9);
}

.chatform__radio-label input[type="radio"],
.mwform-radio-field label input[type="radio"] {
    display: none;
}

.chatform__text-input,
.chatform__textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.chatform__button-group {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.chatform__button,
.multiform__step__button button
 {
    padding: .5em 1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.chatform__button--primary,
.next-step {
    background-color: #007bff;
    color: white;
}

.chatform__button--primary:hover,
.next-step:hover {
    background-color: #0056b3;
}

.chatform__button--secondary,
.prev-step {
    background-color: #6c757d;
    color: white;
}

.chatform__button--secondary:hover,
.prev-step:hover {
    background-color: #5a6268;
}

.chatform__button--edit {
    background-color: #ffc107;
    color: #333;
}

.chatform__button--edit:hover {
    background-color: #e0a800;
}

.chatbubble__send {
    background: #007bff;
    color: #fff;
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatform__form-address__announce {
    font-size: .8em;
    font-weight: 700;
}

.chatform__confirmButton-group {
    display: flex;
    flex-direction: column;
}


.chatform__label {
    font-weight: 700;
    font-size: .8em;
    padding: .4em .5em;
    display: inline-block;
    color: #fff;
    border-radius: 5px;
    line-height: 1;
}

.chatform__label-required {
    background: #ff0000;
}

.chatform__label-optional {

    background: #bbb;
}

.chatform__form-type__txt {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.chatform__confirm__data-item+.chatform__confirm__data-item {
    margin-top: .5em;
}



/*==================================
 ====================================
 マルチフォーム
 ====================================
 ==================================*/

.multiform__step {
    display: none;
    counter-increment: multiform__step 1;
    background: #a0d8ff;
    border-radius: 10px;
    padding: 10px;
    position: relative;
}

.multiform__step__header {
    display: flex;
}

.multiform__step__index::after {
    content: "0"counter(multiform__step);
}


.multiform__form-item {
    margin-top: 15px;
    counter-increment: multiform__form-item 1;
    margin-left: 5px;
}

.multiform__form-label::before {
    content: counter(multiform__step)"-"counter(multiform__form-item);

}
.multiform__step+.multiform__step {
    margin-top: 40px;
}
.multiform__step+.multiform__step::before {
    content: "";
    display: block;
    background: #a3a3a3;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    width: 100px;
    height: 35px;
    left: 50%;
    transform: translateX(-50%);
    margin: auto;
    position: absolute;
    top: -45px;
}
.multiform__form-label {
    display: flex;
    align-items: center;
    gap: .5em;
}

.multiform__step__header {
    display: flex;
    gap: 10px;
}

.multiform__step.send {
    background: #ccc;
    filter: brightness(.8);
    pointer-events: none;
}

.multiform__radio-list {
    margin-bottom: 10px;
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: .4em .2em;
}


.multiform__step__button {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}
.multiform__step.send .multiform__step__button {
    display: none;
}

.mw_wp_form input[type=text],
.mw_wp_form textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

#getaddress {
    background-color: #007bff;
    color: white;
    padding: .2em .5em;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
    font-weight: 700;
    margin-top: 5px;
}
.get_address_check {
    font-size: .8em;
    color: #ff0000;
}

.mw_wp_form .horizontal-item + .horizontal-item {
    margin: 0 !important;
}