a, button {
    text-decoration: initial;
}

body {
    font-family: "Noto Sans JP", sans-serif !important;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    background-color: #284f5f10;
    letter-spacing: 0.05em;
    color: #252525;
    -webkit-tap-highlight-color: transparent;
}

main {
    max-width: 550px;
    padding: 10px;
    margin: auto;
    border-radius: 10px;
    text-align: center;
    line-height: 1.3em;
}

.form-container {
    max-width: 100%;
    margin: 15px 0;
    background: #fff;
    padding: 10px clamp(20px, 2.2vw, 30px) 30px;
    box-shadow: 4px 4px 0px 0 rgb(255 242 27);
}

.form-container.confirmationform {
    padding-bottom: clamp(25px, 2.2vw, 35px);
}

.form-container.course {
    padding: 5px clamp(10px, 2.2vw, 30px) 30px;
}

.form-container.plan {
    padding: 5px clamp(10px, 2.2vw, 30px) 30px;
}

a:link {
    color: #12A0DA;
    text-decoration: none;
}

.dl1 a {
    color: #12A0DA;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* ステップバー */
.step-bar {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

.step {
    flex: 1;
    min-width: 0;
    padding: clamp(10px, 1vw, 14px);
    padding-top: clamp(12px, 1.2vw, 16px);
    ;
    margin: -2px;
    background-color: #e4e4e4b4;
    font-weight: 600;
    clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%, 10% 50%);
    z-index: 1;
    transition: background-color 0.3s ease;
    font-size: clamp(10px, 0.9vw, 12px);
    color: #bbbbbb;
    line-height: clamp(19px, 1.8vw, 25px);
}

.step-bar span {
    font-size: clamp(12px, 1.2vw, 16px);
    border-bottom: dotted 2px;
}

.step:first-child {
    margin-left: 0;
    clip-path: polygon(0% 0, 90% 0, 100% 50%, 90% 100%, 0% 100%);
}

.step:last-child {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 10% 50%);
}

.step.current {
    background-color: #FFE200;
    color: #252525;
    z-index: 2;
}

p,
.form-head {
    text-align: initial;
    font-size: clamp(16px, 1.3vw, 18px);
    margin-top: 35px;
    margin-bottom: clamp(8px, 1vw, 13px);
    padding-bottom: 2px;
    border-left: solid 5px #FFE200;
    display: flex;
    align-items: center;
    line-height: initial;
}

.form-head.Gas {
    margin-top: clamp(20px, 1.6vw, 35px);
}

.date p,
.completion p {
    border-left: none;
}

.date p {
    font-size: clamp(16px, 1.3vw, 18px);
    margin-top: clamp(20px, 1.6vw, 35px);
}

h1 {
    text-align: center;
    color: #252525;
    font-size: clamp(24px, 2.4vw, 32px);
    margin: clamp(10px, 1.8vw, 25px) 0 clamp(20px, 2.7vw, 35px);
    line-height: 1.5em;
}

h2 {
    display: inline-block;
    font-size: clamp(20px, 1.9vw, 26px);
    margin: clamp(28px, 2.9vw, 40px) 0 clamp(20px, 2.2vw, 30px);
    color: #000365;
    padding-bottom: 6px;
    background: linear-gradient(transparent 50%, #ffff66 60%);
}

.completion h2,
.confirmation h2:last-of-type {
    background: none;
}

.completion h2 {
    margin: 33px 0 clamp(20px, 2.2vw, 30px);
    padding-bottom: clamp(4px, 0.4vw, 6px);
    text-align: center;
    color: #12a0da;
    line-height: 1.2em;
}

.confirmation p {
    text-align: left;
    padding-left: 10px;
}

.custom-check p {
    margin-left: initial;
    padding: initial;
}

.confirmation h2:last-of-type {
    margin-top: 40px;
    margin-bottom: 10px;
}

.required {
    position: relative;
    margin: 2px 7px 0;
    padding: 1px 5px 2px;
    color: #ffffff;
    font-size: clamp(9px, 0.7vw, 10px);
    font-weight: bold;
    background-color: #ff0000;
    border-radius: 5px;
}

.parens {
    letter-spacing: -0.6em;
}



label {
    font-size: clamp(14px, 1.2vw, 16px);
}

input,
select {
    font-family: "Noto Sans JP", sans-serif;
    width: 100%;
    height: 3.5em;
    padding: 6px clamp(8px, 0.7vw, 10px);
    margin-top: 5px;
    border: solid 1px #cacacaf1;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #fff;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
}

input[type=radio] {
    display: none;
}

input[type="radio"]:checked+.label-house,
input[type="radio"]:checked+.label-apartment {
    background-color: #FFE200;
    transition: background-color 0.5s;
    border: solid 1px #3d3d3d;
}

input[type="radio"]:hover+.label-house,
input[type="radio"]:hover+.label-apartment {
    background-color: #FFE200;
    transition: background-color 0.5s;
    border: solid 1px #3d3d3d;
}

.label-house,
.label-apartment {
    display: flex;
    width: 100%;
    padding: clamp(16px, 1.5vw, 20px);
    margin: 7px 0 0;
    font-size: clamp(14px, 2.4vw, 18px);
    border: solid 1px #cacacaf1;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
}


.btn-wrap {
    display: flex;
    justify-content: left;
    align-items: center;
    margin-top: clamp(20px, 2.2vw, 30px);
}

button {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    margin-bottom: 15px;
}

.btn-next {
    width: 60%;
    padding: clamp(20px, 2.2vw, 30px) clamp(18px, 2.2vw, 30px);
    border: solid 2px #3d3d3d;
    background-color: #FFE200;
    font-weight: 700;
    font-size: clamp(16px, 1.5vw, 20px);
    cursor: pointer;
    color: #252525;
    bottom: env(safe-area-inset-bottom);
    margin-bottom: env(safe-area-inset-bottom);
}

.btn-back {
    width: 15%;
    padding: clamp(20px, 2.2vw, 30px) 0;
    font-size: clamp(14px, 1.2vw, 16px);
    margin: 0 clamp(10px, 1.2vw, 15px);
    border: solid 1px #bbbbbb;
    background-color: initial;
    font-weight: 600;
    color: #bbbbbb;
    font-weight: normal;
    bottom: env(safe-area-inset-bottom);
    margin-bottom: env(safe-area-inset-bottom);
}


img {
    width: 100%;
    margin: 10px 0;
}

.selected img {
    margin: clamp(1px, 0.4vw, 5px) 0;
}

fieldset {
    border: none;
    margin: 5px;
    padding: initial;
}

.setoff {
    margin-bottom: -15px;
}

legend {
    text-align: left;
    font-weight: bold;
    font-size: clamp(16px, 1.5vw, 20px);
    margin: 10px 0 5;
}

.form-text {
    display: block;
    text-align: left;
    margin-top: 10px;
}

.date h2,
.information.form3 h2 {
    margin-bottom: clamp(-10px, 0.5vw, 13px);
}

#contract h2 {
    margin-bottom: clamp(-5px, 0.4vw, 5px);
}

.zip {
    margin-top: 15px;
}

.inline,
.telbox {
    display: flex;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 15px;
    text-align: left;
}

.inline>* {
    flex: 1;
    min-width: 0;
}

.birth {
    align-items: center;
    -webkit-appearance: none;
}

a {
    display: block;
    text-align: left;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: bold;
}

.Annotation {
    display: block;
    text-align: left;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: bold;
    color: #0000007e;
    margin-top: 5px;
}

textarea {
    font-family: "Noto Sans JP", sans-serif;
    resize: none;
    box-sizing: border-box;
    width: 100%;
    height: 150px;
    padding: 10px;
    border-radius: 10px;
    border: solid 1px #cacacaf1;
    font-size: 16px;
    line-height: 1.5em;
}

.course fieldset {
    display: flex;
    flex-direction: column;
    gap: clamp(5px, 1.1vw, 15px);
}

.course-select {
    display: flex;
    align-items: center;
    padding: clamp(10px, 1.9vw, 25px) clamp(10px, 2.2vw, 30px);
    border: solid 2px #cacacaf1;
    border-radius: clamp(10px, 1.1vw, 15px);
    transition: background-color 0.5s;
    cursor: pointer;
}

.course-select img {
    margin: 10px;
    margin-left: initial;
}

.course-select:hover {
    background-color: #FFE200;
    transition: background-color 0.5s;
    border: solid 2px #3d3d3d;
}

input[type="radio"]:checked+.course-select {
    background-color: #FFE200;
    border: solid 2px #3d3d3d;
}

.plan-select input[type="checkbox"] {
    display: none;
}

.plan fieldset {
    display: flex;
    flex-direction: column;
    gap: clamp(5px, 1.1vw, 15px);
}

.electric_plan,
.gas_plan1,
.gas_plan2 {
    display: flex;
    align-items: center;
    padding: clamp(10px, 1.5vw, 20px) clamp(20px, 2.2vw, 30px);
    border: solid 2px #cacacaf1;
    border-radius: clamp(10px, 1.1vw, 15px);
    transition: background-color 0.5s;
}

.plan-select .gas_plan2 img {
    position: relative;
    right: clamp(0.5em, 1.7vw, 1em);
}

.electric_plan {
    margin: 10px 0 clamp(20px, 2.2vw, 30px);
}

.gas_plan1,
.gas_plan2 {
    cursor: pointer;
}

.electric_plan:hover {
    background-color: #ffa20031;
    transition: background-color 0.5s;
    border: solid 2px #FFA200;
}

.gas_plan1:hover,
.gas_plan2:hover {
    background-color: #006aff31;
    transition: background-color 0.5s;
    border: solid 2px #006CFF;
}

input[type="checkbox"]:checked+.electric_plan {
    background-color: #ffa20031;
    border: solid 2px #FFA200;
}

input[type="radio"]:checked+label.gas_plan1,
input[type="radio"]:checked+label.gas_plan2 {
    background-color: #006aff31;
    border: solid 2px #006CFF;
}

#contract img {
    margin: 25px 0 0;
}

#electric {
    margin: 15px 0 0;
}

#gas {
    margin-bottom: 10px;
}

#gas img {
    margin: 50px 0 0;
}

.telbox span {
    display: inline;
    margin-top: 18px;
    font-size: clamp(14px, 1.5vw, 20px);
}

table {
    display: table;
    width: 100%;
    margin: 13px 0 18px;
    word-break: break-all;
}

th {
    width: clamp(100px, 11vw, 150px);
    font-size: clamp(12px, 1vw, 14px);
    background-color: #3d3d3d;
    color: white;
    padding: clamp(20px, 1.8vw, 25px) clamp(5px, 0.5vw, 7px);
}

td {
    text-align: left;
    background-color: #e6e6e6;
    font-size: clamp(12px, 1vw, 14px);
    padding: clamp(5px, 1vw, 15px);
    padding-left: clamp(10px, 1vw, 15px);
    font-weight: normal;
}

/*　同意チェックボックス　*/
.custom-checkbox {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    padding: 20px 0 5px;
    cursor: pointer;
    user-select: none;
    font-size: clamp(14px, 1.2vw, 16px);
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.custom-checkbox .checkmark {
    position: relative;
    width: 20px;
    height: 20px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    margin-right: 12px;
    background-color: #fff;
}

.custom-checkbox input[type="checkbox"]:checked+.checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid #333;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.completion {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.completion section {
    margin-bottom: 5px;
    margin-top: -28px;
}

.kenshin section {
    margin-top: -22px;
}

.custom-check p,
.completion p,
.kenshin p {
    font-weight: initial;
    font-size: clamp(13px, 1.1vw, 15px);
    text-align: left;
    line-height: 1.7em;
    border: none;
}

.custom-check p {
    margin-top: clamp(5px, 1.1vw, 15px);
}

.completion p {
    text-align: center;
    margin-top: initial;
    font-weight: 500;
    padding: 0 20px;
}

.completion section p {
    text-align: left;
    font-size: clamp(11px, 1vw, 13px);
    padding: clamp(14px, 1.3vw, 18px) 28px clamp(13px, 1.3vw, 18px) clamp(34px, 1.8vw, 24px);
    margin-bottom: initial;
    font-weight: 500;
    background-color: #eeeeee;
}

.completion strong {
    display: flex;
    align-items: center;
    font-size: clamp(13px, 1.2vw, 16px);
    color: #252525;
    font-weight: 800;
    margin-left: clamp(30px, 2.7vw, 37px);
    transform: translateX(-2.5em) translateY(clamp(24px, 1.9vw, 26px));
    position: relative;
}

.kenshin p {
    text-align: left;
    margin-top: 8px;
    font-size: clamp(12px, 1vw, 14px);
    padding: clamp(15px, 1.4vw, 19px) 27px 17px clamp(35px, 2.7vw, 37px);
    font-weight: 500;
    background-color: #eeeeee;
}


.kenshin strong {
    display: block;
    text-align: left;
    font-size: clamp(13px, 1.1vw, 15px);
    color: #ff0000;
    font-weight: 600;
    margin-bottom: clamp(15px, 1.1vw, 20px);
}

.kenshin span {
    display: flex;
    align-items: center;
    font-size: clamp(14px, 1.2vw, 16px);
    color: #252525;
    font-weight: 800;
    margin-left: clamp(30px, 2.7vw, 37px);
    transform: translateX(-2.5em) translateY(clamp(23px, 1.6vw, 24px));
    position: relative;
}

#contract .kenshin img {
    margin-top: initial;
}

.question,
#contract .kenshin .question {
    width: clamp(30px, 2.6vw, 36px);
    margin-right: 8px;
    flex-shrink: 0;
}

.question {
    margin-right: 6px;
}

dialog#modal,
.iframe-wrap {
    border: none;
    border-radius: 10px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
    overflow: hidden;
    z-index: 1000;
}

.iframe-wrap {
    max-width: none;
    height: 70%;
    bottom: 30px;
}

.iframe-wrap iframe {
    border: solid 10px #333333;
    border-top: solid 20px #333333;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.kenshin {
    background: white;
    padding: clamp(15px, 1.8vw, 25px);
}

.kenshin:focus {
    outline: none;
}

/*#modal-close {
    margin-top: 20px;
    padding: 10px 30px;
    background-color: #FFE200;
    border: solid 2px #3d3d3d;
    font-weight: bold;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}*/

#modal-open {
    background: transparent;
    margin-top: 5px;
    border: none;
    color: #12A0DA;
    font-weight: bold;
    font-size: clamp(13px, 1.1vw, 15px);
    cursor: pointer;
}

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

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


.privacy {
    height: 150px;
    text-align: left;
    border: solid 1px #cacacaf1;
    margin: 10px 0px 20px;
    overflow-y: scroll;
}

dt {
    padding-left: 15px;
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 600;
}

dd {
    margin: initial;
    padding: 5px 15px 0;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: normal;
}

.dl2 dt {
    font-size: clamp(12px, 1vw, 14px);
    margin-bottom: 5px;
    padding: 0 20px 0 0;
}

.dl2 dd {
    padding: 0 20px 0 0;
}

.dl2 {
    text-align: right;
}

.iframeButton {
    display: flex;
    border: initial;
    color: #12A0DA;
    background: none;
    font-size: 16px;
    margin: 0 0 clamp(5px, 1.2vw, 10px);
    padding: initial;
}

.checklist p {
    font-weight: 600;
    font-size: 16px;
    margin: 25px 0 10px;
}

.toppage {
    display: inline-block;
    text-align: center;
    margin-top: 15px;
}

/* js */
.global-error {
    margin: 2% 0 -2%;
}

#formsubmit:disabled {
    background-color: #FFE200;
    color: #252525;
    opacity: 1;
    cursor: not-allowed;
}

/* モーダル内スピナー */
#pdf-loader {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    /* iframe幅に合わせる */
    height: 100%;
    /* iframe高さに合わせる */
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* 回転スピナー */
.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #FFE200;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}