@charset "utf-8";

fieldset {
    border: none;
}

p {
    /* 改行させる */
    white-space: pre-line;
}

legend {
    margin-bottom: 6px;
}

.fo_txt01 {
    width: 100%;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
}

.fo_txt03 {
    text-align: center;
}

.fo_txt03 span {
    color: #ff0000;
    font-weight: bold;
}

.form {
    padding: 80px 0;
    color: #333333;
}

.form_wrapper {
    width: min(100%, 1232px);
    padding: 0 16px;
    margin-inline: auto;
}

/* 768px以下の時 */
@media (max-width: 768px) {
    .form {
        padding: 60px 0;
    }

    .form_wrapper {
        padding: 0;
    }

    .fo_txt01 {
        font-size: 1.5rem;
    }
}

.form_list {
    display: flex;
    align-items: baseline;
    font-size: 16px;
    white-space: nowrap;
    border-top: solid 1px #000;
    padding: 20px 16px;
    gap: 10px;
}

.form_title {
    width: 30%;
    display: flex;
    align-items: baseline;
    gap: 14px;
    white-space: pre-line;
    font-weight: 700;
}

.form_title-required {
    color: #ff0000;
    white-space: nowrap;
    font-size: 14px;
}

.form_data {
    width: 70%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.form_data--funds {
    align-items: baseline;
}

.form_data-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form_data-item span {
    min-width: 35px;
}

.form input,
.form select,
.form textarea {
    padding: 8px;
    font-size: 16px;
    border: 1px solid #000;
}

.form select {
    text-align: center;
}

.form textarea {
    width: 100%;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="number"] {
    width: 100%;
    max-width: 500px;
}

.form input[type="tel"] {
    width: 100%;
    max-width: 300px;
}

.form select {
    width: 100%;
    max-width: 300px;
    padding: 12px 8px;
}

.form input[type="checkbox"],
.form input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 3px;
    position: relative;
    vertical-align: middle;
    transition: 0.3s;
    margin-top: -1px;
    cursor: pointer;
}

.form input[type="checkbox"]:checked,
.form input[type="radio"]:checked {
    background: #000;
}

.form input[type="checkbox"]:checked::before,
.form input[type="radio"]:checked::before {
    position: absolute;
    top: 3px;
    left: 6px;
    transform: rotate(50deg);
    width: 4px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    content: "";
}

.form_data-note {
    font-size: 12px;
}

.form_data-address {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.form_data-prefectures {
    max-width: 150px !important;
}

.form_data-address input[type="text"] {
    max-width: 100%;
}

.form_data-birth {
    width: 100%;
    max-width: 150px;
}

.form_data-people {
    max-width: 150px !important;
    text-align: right;
}

.form_data-property {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.form_data-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
}

.form_data-checkbox label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form_data-checkbox--property {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.form_data-advertisement {
    width: 100%;
    margin-top: 20px;
}

.w100 {
    width: 100%;
}

.form_data-advertisement-title {
    border-bottom: solid 1px #fff;
    padding-bottom: 4px;
}

.form_data-advertisement-list {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.form_data-advertisement-textarea {
    width: 100%;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sbm_btn_wrap {
    margin-top: 40px;
}

.sbm_btn {
    width: min(100%, 600px);
    padding: 20px 16px;
    font-size: 14px;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-inline: auto;
    transition: all 0.3s;
    cursor: pointer;
    background-color: #1f1e63;
    color: #fff;
    border: none;
}

.snavi:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -1;
    left: 0;
    transition: 0.5s;
    background: linear-gradient(90deg, #520000, #84060d);
}

.text_myself {
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}

.text_myself--active {
    opacity: 1;
    pointer-events: auto;
}

/* button disabled */
.sbm_btn[disabled] {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

.form_data-adress {
    width: 30%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pc-only {
    display: block;
}

textarea[disabled] {
    background-color: #ccc;
}

.thanks {
    padding: 120px 0;
}

.thanks_inner {
    width: min(100%, 1032px);
    padding: 0 16px;
    margin-inline: auto;
}

.thanks_title {
    font-size: 24px;
    text-align: center;
}

.entry_text {
    font-size: 16px;
    margin-top: 20px;
    text-align: center;
}

.form_area {
    margin-top: 14px;
}

.form_area--child {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 14px;
    border-bottom: solid 1px #fff;
    padding: 10px 16px;
}

.form_area--floor {
    display: grid;
    gap: 0 10px;
    grid-template-columns: repeat(3, 1fr);
}

.form_area label {
    cursor: pointer;
}

.form_area-item {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
    margin-bottom: 16px;
}

.form_area-note {
    font-size: 12px;
    margin-top: 10px;
    line-height: 1.3;
    margin-bottom: 10px;
}

/* 992px以下の時 */
@media (max-width: 992px) {
    .form_data-advertisement-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 768px以下の時 */
@media (max-width: 768px) {
    .form_list {
        display: block;
    }

    .form_title {
        width: 100%;
        margin-bottom: 10px;
    }

    .form_data {
        width: 100%;
    }

    .form_data-item {
        display: block;
    }

    .form_data-item span {
        display: block;
    }

    .form_data-address {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .form_data-address input[type="text"] {
        width: 100%;
    }

    .form_data-birth {
        width: 100%;
    }

    .form_data-people {
        width: 100%;
    }

    .form_data-property {
        width: 100%;
    }

    .form_data-checkbox {
    }

    .form_data-checkbox--property {
        grid-template-columns: 1fr;
    }

    .form_data-advertisement-list {
        grid-template-columns: 1fr;
    }

    .sbm_btn {
        width: 100%;
        font-size: 16px;
        padding: 12px 6px;
    }

    .sbm_btn::before {
        font-size: 22px;
    }

    .pc-only {
        display: none;
    }

    .entry_text {
        font-size: 14px;
    }
}

/* 580px以下の時 */
@media (max-width: 580px) {
    .form_list {
        font-size: 14px;
    }

    .form_data {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .form_data-item {
        width: 100%;
    }

    .form_data-adress {
        width: 100%;
    }

    .form_area {
        grid-template-columns: repeat(2, 1fr);
    }
}

.snavi2 {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    padding: 15px 17px;
    margin-inline: auto;
    position: relative;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.base_w {
    padding: 0 16px;
}

.request_title {
    font-size: 42px;
    text-align: center;
    font-weight: 900;
    padding-top: 100px;
}

/* カスタム日付ピッカーのスタイル */
.custom-datepicker {
    position: relative;
    width: 100%;
    max-width: 200px;
}

.custom-datepicker input {
    cursor: pointer;
}

.calendar-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 280px;
    padding: 16px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar-prev, .calendar-next {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.calendar-prev:hover, .calendar-next:hover {
    background-color: #f0f0f0;
}

.calendar-month-year {
    font-weight: bold;
    font-size: 16px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 8px;
}

.weekday {
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    color: #666;
    padding: 8px 4px;
}

.calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-date {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 4px;
    cursor: default;
    transition: all 0.2s;
}

/* 月外の日付 */
.calendar-date.other-month {
    color: #ccc;
}

/* 過去の日付 */
.calendar-date.past-date {
    color: #ccc;
    cursor: not-allowed;
}

/* 水曜・木曜（無効な日付） */
.calendar-date.disabled-day {
    background-color: #f5f5f5 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    position: relative;
}

.calendar-date.disabled-day::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background-color: #999;
    transform: translateY(-50%);
}

/* 選択可能な日付 */
.calendar-date.selectable {
    cursor: pointer;
    color: #333;
}

.calendar-date.selectable:hover {
    background-color: #e3f2fd;
    color: #1976d2;
}

/* 今日の日付 */
.calendar-date.today {
    background-color: #1976d2;
    color: white;
    font-weight: bold;
}

.calendar-date.today.disabled-day {
    background-color: #f5f5f5 !important;
    color: #999 !important;
}

/* 選択された日付 */
.calendar-date.selected {
    background-color: #4caf50 !important;
    color: white !important;
    font-weight: bold;
}

/* 768px以下の時 */
@media (max-width: 768px) {
    .snavi2 {
        font-size: 16px;
        padding: 10px 12px;
    }

    .request_title {
        font-size: 32px;
        padding-top: 60px;
    }
}
