/* reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 1020px;
    display: block;
    margin: 0 auto;
    overflow: auto;
    text-align: center;
}

@media screen and (max-width:640px) {
    body {
        max-width: 640px;
    }
}

#wrap {
    text-align: center;
    display: block;
}

section {
    max-width: 640px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: #007BFF;
}

ul {
    list-style: none;
}

h1,
h2,
h3 {
    margin-bottom: 1em;
}

section {
    width: 100%;
    display: block;
}

img {
    max-inline-size: 100%;
    max-block-size: 100%;
}

span.caution {
    color: #333;
    display: block;
    text-align: left;
    font-weight: bold;
}




red,
.red {
    color: red;
    display: inline;
}

b,
.b {
    font-weight: bold;
    display: inline;
}

.flow_txtLine {
    font-weight: bold;
    background: #fff15c;
    line-height: 1.5;
    padding: 4px 1px;
}

.sp {
    display: none;
}

.pc {
    display: block;
}

@media screen and (max-width:640px) {
    .sp {
        display: block;
    }

    .pc {
        display: none;
    }
}

/* ヘッダー */
header {
    background-color: #ffffff;
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

@media screen and (max-width:640px) {
    header img {
        width: 50%;
    }
}


/* ファーストビュー */
.first-view {
    text-align: center;
    color: white;
}

.first-view img {
    width: 100%;
    display: block;
}

/* CTA */
.cta h2 {
    margin-bottom: .5em;
}

.cta {
    text-align: center;
    padding: 20px;
    color: #333;
    width: 100%;
    display: block;
    margin-bottom: 20px;
}


.cta-button {
    display: block;
    margin: 0 auto 10px;
}


.cta p{
    font-weight: bold;
}



/* フォーム */
section#simulation01,
section#simulation02,
.form-repeat {
    background: #eaf3f9;
    width: 100%;
    display: block;
}

.input_block {
    margin: 0 10px;
}

form {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 40px;
}

dl.form_radio {
    background: white;
    width: 100%;
    border-radius: 16px;
    margin: 0 auto 20px;
    padding: 20px 20px;
    box-shadow: 0 5px 0 rgba(0, 0, 0, .05);
    box-sizing: border-box;
    display: block;
    overflow: auto;
}

dl.form_radio dt {
    font-size: 20px;
    color: #333;
    text-align: left;
}

dl.form_radio dd {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: start;
    -webkit-align-items: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-bottom: 0;
}

dl.form_radio dd label {
    cursor: pointer;
    width: 49%;
    margin-top: 10px;
    margin-bottom: 0;
    ;
    padding: 20px 0;
    border-radius: 16px;
    background-color: #fff;
    border: #ddd solid 3px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

@media screen and (max-width:640px) {
    dl.form_radio dd label {
        font-size: 5vw;
    }
}

dl.form_inputBox dt label {
    font-size: 24px;
}

@media screen and (max-width:640px) {
    dl.form_inputBox dt label {
        font-size: 4vw;
    }
}

dl.form_radio dd input[type=radio] {
    position: absolute;
    opacity: 0;
}

dl.form_radio dd input[type=radio]:checked+label {
    color: #fff;
    background-color: #00a54e;
    border: #00a54e solid 3px;
}

.form_txt {
    font-size: 24px;
    line-height: 1.4;
    margin: 20px 0 40px;
    font-feature-settings: "palt";
    padding: 10px;
}

@media screen and (max-width:640px) {
    .form_txt {
        font-size: 4vw;
        margin: 20 0 20px;
    }
}


dl.form_inputBox {
    margin: 0 0 30px;
}

dl.form_inputBox dt {
    margin-bottom: 10px;
    text-align: left;
}

@media screen and (max-width:640px) {

    dl.form_inputBox dt {
        margin: 0 0 10px;
    }
}

dl.form_inputBox.req dt::after {
    content: "必須";
    color: #fff;
    font-size: 1em;
    background: #00a54e;
    margin-left: 8px;
    padding: 5px 11px 5px 9px;
    border-radius: 16px;
}

dl.form_inputBox dd select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

dl.form_inputBox dd input,
dl.form_inputBox dd select {
    width: 100%;
    font-size: 24px;
    border: #979797 solid 2px;
    background: #fff;
    padding: 20px 0 20px 18px;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width:640px) {

    dl.form_inputBox dd input,
    dl.form_inputBox dd select {
        font-size: 5vw;
    }
}

label {
    font-weight: bold;
    position: relative;
}

.form_pptxt {
    font-size: 24px;
    line-height: 1.5;
    margin: 0 auto;
    text-align: left;
    padding: 0 20px;
}

@media screen and (max-width:640px) {
    .form_pptxt {
        font-size: 4vw;
    }
}

.form_confirmBtn {
    cursor: pointer;
    display: block;
    background: url(../img/form_confirm_button.png) no-repeat;
    background-size: contain;
    background-position: center;
    max-width: 100%;
    width: 90%;
    height: 125px;
    margin: 0 auto;
    appearance: none;
    border: none;
    resize: none;
    font-size: 0;
    transition: 0.3s;
    box-sizing: border-box;
}

@media screen and (max-width:640px) {
    .form_confirmBtn {
        margin: -20px auto -20px;
    }
}

.form_confirmBtn:hover {
    filter: brightness(1.5);
}

input,
textarea {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}



/* cases */
.cases {
    background-color: #e7e7e7;
    padding-bottom: 20px;
    text-align: left;
}

.cases h2 {
    background: transparent;
    text-align: center;
}

.cases_box {
    width: 600px;
    max-width: calc(100% - 20px);
    margin: 0 auto 20px;
    padding: 40px 20px;
    display: block;
    cursor: pointer;
    background: #fff;
    font-size: 24px;
    box-sizing: border-box;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, .05);
}

@media screen and (max-width:640px) {
    .cases_box {
        font-size: 4vw;
        margin-bottom: 10px;
    }
}






/* メリット */
.merit {
    margin: 0 auto 40px;
    text-align: left;
}

.merit h2 {
    text-align: center;
    width: 100%;
    display: block;
    margin: 0 auto 40px;
}

.merit_box {
    padding: 0 20px;
    margin-bottom: 40px;
    font-size: 24px;
}

@media screen and (max-width:640px) {
    .merit_box {
        font-size: 4vw;
    }
}

.merit_box img {
    width: auto;
    height: auto;
}

.merit_txt {
    margin: 20px 0;
}

.merit a {
    text-align: center;
    cursor: pointer;
    width: calc(100% - 20px);
    display: block;
    margin: 0 auto 20px;
}

/* voice */

.voice h2{
    margin-bottom: 30px
}

.voice-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}


/* FAQセクション */
.faq {
    background-color: #fff;
    margin: 0 auto 40px;
    text-align: left;
}

.faq h2 {
    background: #ffffff;
    text-align: center;
    margin-bottom: 40px;
}

.faq h3 {
    color: #178bd1;
    position: relative;
    margin: 0 auto 10px;
    font-weight: bold;
}

.faq-item {
    padding: 0 20px;
    margin-bottom: 50px;
    font-size: 24px;
}

@media screen and (max-width:640px) {
    .faq-item {
        font-size: 4vw;
    }
}

.faq-item img {
    width: auto;
    height: auto;
}

.faq-item_txt {
    margin: 20px 0;
}

.etc {
    margin: 20px auto 20px;
    display: block;
    width: calc(100% - 20px);
}

/* about */

#about {
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    display: block;
    width: 100%;
    margin: 40px auto;
}

#about .about-textbox{
    text-align: left;
    font-size: 24px;
    margin: 20px auto 40px;
}

@media screen and (max-width:640px){
    #about .about-textbox{
        font-size: 4vw;
    }
}

#about a{
    margin-bottom: 20px;
}

#about table {
    margin: 20px 0;
}

#about table th,
#about table td {
    padding: 5px;
    vertical-align: top;
}


/* fixed */

.fixed {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    z-index: 99;
    width: 100%;
    margin: 0 auto;
    padding: 13px 20px 10px;
    background: rgba(255, 255, 255, 0.902);
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.fixed a {
    display: block;
    margin: 0 auto;
    text-align: center;
}

.fixed img {
    height: auto;

}

/* thanks */

body#thanks {
    text-align: center;
    background-color: #fff;
}

.thanks_container {
    margin: 0 auto;
    padding: 20px;
}

.thanks_container h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.privacy {
    text-align: left;
}


.thanks_container p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: left;
}

.thanks_container .important {
    font-weight: bold;
    color: #000;
}

.thanks_container .phone-number {
    font-size: 18px;
    font-weight: bold;
    color: #000;
}

.thanks_container a {
    color: #0066cc;
    text-decoration: none;
}

/* about */

section#about {
    margin-bottom: 0;
}

.about {
    text-align: center;
    display: block;
    margin: 0 auto;
}

.about tableholder {
    position: relative;
    margin: auto;
}

.about table {
    position: relative;
    border-collapse: collapse;
    border: 1px solid #323232;
    margin: 0 auto;
    width: 100%;
}

.about table tr {
    border-bottom: 1px solid #323232;
}

.about table td,
.about table a {
    line-height: 1.5;
    color: #000;
}

.about table td {
    padding: 3%;
}

.about table td:first-child {
    background: #F5F5F5;
    font-weight: bold;
    color: #000;
}

.about table a {
    text-decoration: underline;
}

/* フッター */
footer {
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 1rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer nav ul {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

footer nav ul li a {
    color: white;
}

@media screen and (max-width:640px) {
    footer nav ul li a {
        font-size: 3.5vw;
    }
}




/* モーダルのスタイル */
body.modal-open {
    padding-right: 0 !important;
    /* モーダル表示時にbootstrapのpadding-right付与を無効化 */
}



html {
    overflow-y: scroll;
}

#wrap {
    overflow: hidden;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 5px;
    padding: 15px;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
}

.modal-body {
    padding-top: 15px;
}

.list-group-item {
    cursor: pointer;
}

.list-group-item-success {
    background-color: #d4edda;
    color: #155724;
}

.list-group-item-action:hover {
    background-color: #c3e6cb;
}

.list-group-item-action:active {
    background-color: #155724;
    color: #fff;
}

.list-group-flush .list-group-item {
    border-width: 0 0 1px 0;
}

/* 地域リストのスタイル */
.chiiki .list-group-item {
    font-weight: bold;
    font-size: 16px;
}

.chiiki .list-group-item.active {
    background-color: #28a745;
    color: white;
}

/* 都道府県リストのスタイル */
.todohuken .list-group-item {
    padding: 10px 15px;
    background-color: #f8f9fa;
    color: #333;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.todohuken .list-group-item-action:hover {
    background-color: #e2e6ea;
    color: #333;
}

/* input フィールドのスタイル */
.form_inputBox input[readonly] {
    background-color: #fff;
    cursor: pointer;
}

/* モバイルでのレイアウト調整 */
@media (max-width: 576px) {
    .modal-dialog {
        max-width: 100%;
        margin: 10px;
    }

    .modal-body {
        padding-left: 5px;
        padding-right: 5px;
    }

    .chiiki .list-group-item,
    .todohuken .list-group-item {
        font-size: 14px;
    }
}


/* ぐるぐる */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: sans-serif;
}

.spinner_container {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    border: 6px solid #ccc;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading_text {
    font-size: 14px;
    color: #333;
}


.cta-button {
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.0) 100%
    );
    transform: skewX(-25deg);
    animation: shine 3s ease-in-out infinite;
    animation-delay: 2s; /* ←ここで初回だけ待つ */
}


@keyframes shine {
    0% {
        left: -75%;
    }
    20% {
        left: 125%;
    }
    100% {
        left: 125%;
    }
}