:root {
    --main-color: #E83217;
    --sub-color: #C72109;
    --font-color: #222222;
    --white-color: #ffffff;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Noto Sans JP", serif;
    line-height: 1;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0 auto;
    max-width: 450px;
    background-color: #ffffff;
    color: var(--font-color);
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    display: block;
}

img {
    display: block;
    width: 100%;
    object-fit: cover;
}

p {
    padding: 0 10px;
    font-size: clamp(0.875rem, 0.375rem + 2.2222vw, 1rem);
}

.bp {
    display: inline-block;
}

.btn {
    display: flex;
    justify-content: space-evenly;
    margin: 30px 8px;
    border-radius: 100vh;
    background-color: var(--main-color);
    border: 2px var(--font-color) solid;
    color: var(--white-color);
    font-weight: 600;
    letter-spacing: 0.06rem;
    font-size: clamp(0.875rem, 0.375rem + 2.2222vw, 1rem);
    align-items: center;
    height: 65px;
}

.btn::after {
    content: "";
    display: block;
    width: 24px;
    aspect-ratio: 4 / 3;
    background-image: url(./arrow.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

@media (min-width:400px) {
    .btn {
        margin: 30px 20px;
    }
}

.contents_hgroup h2{   
    color: var(--main-color);
    text-align: center;
    font-size: 28px;
    letter-spacing: 0.03rem;
    padding: 10px;
}

.contents_hgroup p {
    font-size: clamp(1rem, 0rem + 4.4444vw, 1.25rem);
    font-family: "Roboto", sans-serif;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-align: center;
    padding: 10px 0;
    font-size: 16px;
}

/********
header
*********/
header {
    background-color: #F5F5F5;
    padding: 10px 8px;
}

header .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4%;
    margin-top: 4px;
}

header h1 {
    font-size: 12px;
    color: #007FBE;
}

header .logo {
    width: 50%;
}

header .head-wr {
    width: fit-content;
}

header .head-wr a {
    color: var(--font-color);
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    width: fit-content;
}

header .head-wr a::before {
    content: "";
    display: block;
    background: url(tel.svg);
    background-repeat: no-repeat;
    background-size: contain;
    width: 20px;
    aspect-ratio: 1;
}

header .head-wr p {
    padding: 4px 0 0;
    font-size: 10px;
    width: fit-content;
}

/*****************************

　FV

*****************************/

#fv::before {
    content: "";
    display: block;
    width: 100%;
    height: 14px;
    background-image: url(top-border.svg);
}

#fv hgroup {
    width: 90%;
    margin: 30px auto 0;
}

#fv hgroup img {
    position: relative;
    z-index: 2;
}

#fv hgroup .norudake {
    width: 80%;
    animation-delay: 0.5s;
    margin: -30px 0 0 auto;
}

#fv hgroup .norudake img {
    transform: rotate(-8deg);
}

#fv .fv-img {
    aspect-ratio: 1 / 1;
    background-color: #ededed;
    margin-top: -30px;
}

#fv .contents {
    padding: 30px 10px;
    text-align: center;
    background-color: #FFF5E2;
    position: relative;
}

#fv .contents .btn {
    margin-top: -60px;
}

#fv .contents p {
    line-height: 26px;
    letter-spacing: 0.03rem;
    padding: 0;
}

#fv .contents p b {
    font-weight: 600;
    color: var(--main-color);
}

#fv .contents .btn::before {
    content: "";
    display: block;
    height: 80px;
    aspect-ratio: 5 / 8;
    background-image: url(calculator.svg);
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 2;
    rotate: -10deg;
    animation: fuwafuwa 3s ease-in-out infinite alternate;
    transition: 1.5s ease-in-out;
}

@media (min-width:400px) {
    #fv .btn::before {
        height: 80px;
    }
}

@keyframes fuwafuwa {
    0% {
        transform:translate(0, 0) rotate(-7deg);
    }
    50% {
        transform:translate(0, -7px) rotate(0deg);
    }
    100% {
        transform:translate(0, 0) rotate(7deg);
    }
}



/*****************************

　スーパー乗るだけセットの仕組み

*****************************/

#about {
    padding:25px 10px;
    border-radius: 40px;
    margin-top: -30px;
    background-color: var(--white-color);
}

#about hgroup p {
    padding: 10px;
    text-align: left;
}

#about hgroup img {
    width: 90%;
}

#about hgroup h2 {
    padding:0 0 15px 20px;
}

#about p {
    line-height: 26px;
    letter-spacing: 0.03rem;
}

#about p b {
    font-weight: 600;
    color: var(--main-color);
}

#about .system {
    margin:5px auto;
    border-collapse: collapse;
    border: solid 2px #B5B4B4;
}

#about .system thead tr th {
    font-size: clamp(0.75rem, 0.2885rem + 2.3077vw, 0.9375rem);
    font-weight: 500;
    padding: 10px;
    color: var(--white-color);
    background-color: var(--font-color);
    border: solid 2px #B5B4B4;
    border-bottom: none;
}

#about .system thead tr th.about2 {
    background-color: var(--main-color);
}

.system tbody tr td {
    border: solid 2px #B5B4B4;
    border-top: none;
}

.system tbody tr td img{
    aspect-ratio: 7 / 11;
}

/*****************************

　フォーム

*****************************/

body.popup-open {
    overflow: hidden;
    padding-right: 1.2rem;
}

#form {
    max-width: 430px;
    border-top: 2px dotted #b7b7b7;
    padding: 0 10px;
    margin: 50px auto 0;
}

#form .catch-wr {
    width: 80%;
    margin: 28px auto;
}

#form .catch {
    margin: 0 auto;
    padding: 20px;
    background-color: var(--main-color);
    border: 2px solid var(--font-color);
    border-radius: 100vh;
    color: var(--white-color);
}

#form .catch p {
    position: relative;
    font-size: clamp(1.25rem, -0.25rem + 6.6667vw, 1.625rem);
    font-weight: 600;
    line-height: 1.4;
    width: 80%;
    margin: 0 auto;
    padding: 0;
}

#form .catch p::after {
    position: absolute;
    content: "";
    display: block;
    left: -20px;
    top: 72px;
    width: 30px;
    aspect-ratio: 1 / 2;
    background-image: url(think.svg);
    background-size: contain;
    background-repeat: no-repeat;
}

#form .catch-wr > p {
    padding: 0;
    margin-left: auto;
    margin-right: 0;
    width: fit-content;
    margin-top: 10px;
    font-weight: 600;
    color: var(--sub-color);
    font-size: 1.2rem;
}

#form #contact-content {
    padding: 20px;
}

#form #contact-content li {
    margin-bottom: 24px;
}

#form .section-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: var(--white-color);
    transition: all 0.3s ease;
}

#form .section-header-top {
    display: flex;
    align-items: center;
    width: 100%;
}

#form .selected-items {
    width: 100%;
    margin-top: 10px;
    display: none;
    flex-wrap: wrap;
    gap: 5px;
}

#form .selected-tag {
    background: var(--main-color);
    color: var(--white-color);
    padding: 4px 10px;
    border-radius: 100vh;
    font-size: 12px;
    display: flex;
    align-items: center;
    padding: 8px;
    gap: 8px;
}

#form .section-header:hover {
    background: #e2e8f0;
    border-color: var(--sub-color);
}

#form .selected-tag::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    background-image: url(check.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

#form .section-dot {
    width: 8px;
    height: 8px;
    background: var(--main-color);
    border-radius: 50%;
    margin-right: 10px;
    display: none;
}

#form .section-title {
    font-weight: bold;
    color: var(--font-color);
    font-size: 1rem;
}

#form .selected-count {
    margin-left: auto;
    background: var(--main-color);
    color: var(--white-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: none;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup {
    background: var(--white-color);
    width: 90%;
    max-width: 350px;
    max-height: 80vh;
    border-radius: 12px;
    overflow: hidden;
}

.popup-header {
    background: var(--main-color);
    color: var(--white-color);
    padding: 16px;
    font-weight: bold;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 20px;
    cursor: pointer;
}

.popup-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkbox-item:hover {
    background: #f8fafc;
}

.checkbox-item input {
    margin-right: 8px;
    accent-color: var(--main-color);
}

.checkbox-item label {
    font-size: 14px;
    cursor: pointer;
    flex: 1;
}

.usage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.usage-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.usage-item:hover {
    background: #f8fafc;
}

.usage-item input {
    margin-right: 10px;
    accent-color: var(--main-color);
}

.usage-item label {
    font-size: 12px;
    cursor: pointer;
    flex: 1;
    line-height: 1.3;
}

.popup-footer {
    padding: 15px 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.apply-btn {
    background: var(--main-color);
    color: var(--white-color);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.apply-btn:hover {
    background: var(--sub-color);
}

#form .search-btn {
    width: 100%;
    background: var(--main-color);
    color: var(--white-color);
    border: none;
    padding: 16px;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

#form .search-btn:hover {
    background: var(--sub-color);
}

#form .form-content p {
    margin: 1em auto;
    line-height: 1.2;
}

#form .results {
    margin-top: 20px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 10px;
    display: none;
}

#form .results-header {
    font-weight: bold;
    margin-bottom: 14px;
    color: var(--font-color);
}

#form .result-item {
    background: var(--white-color);
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid var(--main-color);
}

#form .result-item .car-plan {
    color: var(--white-color);
    background-color: #1F8D61;
    border-radius: 10px;
    padding: 2px 6px;
    width: fit-content;
    font-weight: bold;
    font-size: 12px;
}

#form .result-item .result-item-wr {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

#form .result-item .item-inner {
    width: 65%;
}

#form .result-item .result-item-wr img {
    width: 35%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
}

#form .result-item:last-child {
    margin-bottom: 0;
}

#form .car-name {
    font-weight: bold;
    color: var(--font-color);
    margin: 6px 0;
}

#form .car-type {
    font-size: 14px;
    color: #718096;
    margin-bottom: 6px;
}

#form .car-price {
    font-weight: bold;
    color: var(--main-color);
    margin: 8px 0;
    font-size: 18px;
}

#form .car-rv,#form .car-total-price {
    color: #9C9C9C;
    font-size: 12px;
    margin: 4px 0;
}

#form .car-usage {
    font-size: 12px;
    color: #4a5568;
    line-height: 1.3;
}

#form .no-results {
    text-align: center;
    color: #718096;
    padding: 20px;
}
/*****************************

　特徴

*****************************/

#features {
    padding: 10px;
    background-color: #FFFBFB;
}

#features ol li b {
    color: var(--main-color);
}

#features ol li {
    font-weight: 800;
    letter-spacing: 0.03em;
    width: fit-content;
    margin: 1.5em 0;
}

#features ol li .features-wr {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

#features ol li p.number {
    width: 38px;
    aspect-ratio: 1 / 1;
    color: var(--white-color);
    background-image: url(fukidashi.svg);
    background-repeat: no-repeat;
    background-size: contain;
    padding: 6px 8px;
}

#features ol li p{
    font-size: 18px;
    line-height: 24px;
    padding: 0;
}

#features ol li p.detail {
    font-weight: 400;
    font-size: 15px;
    line-height: 24px;
    letter-spacing: 0.03em;
    padding-left: 50px;
    margin: 0.5em 0;
}

/*****************************

　プラン

*****************************/

#plan {
    padding: 30px 10px;
    background-color: #FFEFEF;
    border-radius: 100vh 100vh 0 0;
}

#plan h2 {
    padding: 10px;
}

#plan p {
    line-height: 24px;
    padding: 20px 15px;
}

#plan span {
    font-weight: 800;
}

#plan ul {
    display: flex;
    gap: 10px;
}

#plan ul li {
    flex: 100px 1 1;
}

#plan ul li p {
    padding: 10px 4px;
}

#plan .p-head {
    font-size: clamp(1.125rem, -0.375rem + 6.6667vw, 1.5rem);
    line-height: 25px;
    font-weight: 800;
    text-align: center;
    color: var(--white-color);
    border: 2px solid var(--font-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto;
    padding: 4px;
    height: 180px;
}

#plan .plan1,#form .result-item .car-plan.norudake {
    color: var(--font-color);
    background-color: #F5D03E;
}
#plan .plan1 .plan-name {
    font-weight: 400;
    font-size: 16px;
    margin-top: 6px;
}

#plan .plan2 {
    background-color: #1F8D61;
}

#plan .plan3 {
    background-color: var(--main-color);
}

/* guide */
#guide {
    padding: 50px 10px;
    background-color: #F5FFEA;
    border-radius:100vh 100vh 0 0;
    margin-top: 50px;
}

#guide .contents_hgroup p {
    padding-top: 30px;
}

#guide h2 {
    color: #1F8D61;
    padding: 15px;
}

#guide div {
    font-size: 20px;
    padding: 0 15px;
    border-bottom:2px solid #888888;
}

#guide div:last-child {
    border-bottom: none;
}

#guide dt {
    color: #1F8D61;
    padding-top: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 38px;
}

#guide dd {
    font-weight: 500;
    font-size: 20px;
    line-height: 38px;
    letter-spacing: 0.1em;
}

#guide iframe {
    width: 100%;
    aspect-ratio: 3 / 2;
}

/***********

来店相談

************/
.contact {
    margin: 60px auto;
    padding: 0 10px;
}

.contact h2 {
    color: #1F8D61;
    text-align: center;
    font-size: 28px;
    letter-spacing: 0.03rem;
    padding: 15px;
}

.contact p {
    line-height: 1.8;
    padding: 0;
    text-align: left;
}

.contact #contact-form {
    margin: 32px auto;
}

.contact #contact-form dl div {
    margin: 30px auto;
    max-width: 400px;
}

.contact #contact-form dt {
    font-weight: 600;
    margin-bottom: 10px;
}

.contact #contact-form dl .l_required {
    background-color: #1F8D61;
    margin: 0 8px 0 0;
    padding:0 8px;
    border-radius: 10px;
    color: #fff;
}

.contact #contact-form dd {
    text-align: center;
}

.contact #contact-form input,.contact #contact-form textarea {
    width: 100%;
    height: 40px;
    font-size: 1rem;
}
.contact #contact-form textarea {
    height: 80px;
}
.contact .btn-1 {
    border: none;
    background-color: #1F8D61;
    color: #fff;
    border-radius: 50px;
    padding: 20px;
    margin: 1em auto;
    display: block;
    font-weight: 600;
    font-size: 24px;
    text-align: center;
    width: min(100%, 280px);
}

.contact .btn_wrapper {
    margin-top: 50px;
}

.contact .correct_btn {
    border: 2px #1F8D61 solid;
    background-color: #fff;
    color:#1F8D61;
}

pre {
    text-align: left;
    border: 1px solid var(--font-color);
    white-space: pre-wrap;
}

/*** 来店相談 ***/
.to-contact {
    max-width: 450px;
    margin: 0 auto;
    position: fixed;
    bottom: 16px;
    right: 0;
    left: 0;
    z-index: 10;
    width: 100%;
}

.to-contact a {
    width: fit-content;
    border-radius: 50%;
    border: 2px solid var(--white-color);
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.7);
    background-color: var(--main-color);
    margin-left: auto;
}

.to-contact a p {
    width: 110px;
    aspect-ratio: 1;
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border: dashed 2px var(--white-color);
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    margin: 8px;
    padding: 0;
}

.to-contact .highlight {
    font-size: 22px;
}

/*****************************

　フッター

*****************************/

footer a {
    color: #FFEFEF;
    background-color: #0049C6;
    border-radius: 100vh;
    position: relative;
    display: flex;
    justify-content: space-evenly;
    margin: 40px;
    padding: 22px 0;
    font-weight: 700;
    line-height: 19px;
    font-size: clamp(0.875rem, 0.375rem + 2.2222vw, 1rem);
}

footer a::after {
    content: "";
    display: block;
    width: 13px;
    aspect-ratio: 4 / 3;
    background-image: url(./arrow.svg);
    background-repeat: no-repeat;
    background-size: contain;
    margin: 8px;
}

footer p {
    font-weight: 500;
    letter-spacing: 0.1em;
    text-align: center;
    padding: 40px 10px 20px 10px;
    line-height: 17px;
}



/*****************************

　アニメーション

*****************************/

[data-animation] {
    opacity: 0;
    transition: none;
}

[data-animation="pop"] {
    transform: scale(0);
}

[data-animation="pop"].visible {
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}