/***
    The new CSS reset - version 1.11.2 (last updated 15.11.2023)
    GitHub page: https://github.com/elad2412/the-new-css-reset
***/

/*
    Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property
    - The "symbol *" part is to solve Firefox SVG sprite bug
    - The "html" element is excluded, otherwise a bug in Chrome breaks the CSS hyphens property (https://github.com/elad2412/the-new-css-reset/issues/36)
 */
*:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
    all: unset;
    display: revert;
}

/* Preferred box-sizing value */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Fix mobile Safari increase font-size on landscape mode */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

/* Reapply the pointer cursor for anchor tags */
a,
button {
    cursor: revert;
}

/* Remove list styles (bullets/numbers) */
ol,
ul,
menu,
summary {
    list-style: none;
}

/* For images to not be able to exceed their container */
img {
    max-inline-size: 100%;
    max-block-size: 100%;
}

/* removes spacing between cells in tables */
table {
    border-collapse: collapse;
}

/* Safari - solving issue when using user-select:none on the <body> text input doesn't working */
input,
textarea {
    -webkit-user-select: auto;
}

/* revert the 'white-space' property for textarea elements on Safari */
textarea {
    white-space: revert;
}

/* minimum style to allow to style meter element */
meter {
    -webkit-appearance: revert;
    appearance: revert;
}

/* preformatted text - use only for this feature */
:where(pre) {
    all: revert;
    box-sizing: border-box;
}

/* reset default text opacity of input placeholder */
::placeholder {
    color: unset;
}

/* fix the feature of 'hidden' attribute.
   display:revert; revert to element instead of attribute */
:where([hidden]) {
    display: none;
}

/* revert for bug in Chromium browsers
   - fix for the content editable attribute will work properly.
   - webkit-user-select: auto; added for Safari in case of using user-select:none on wrapper element*/
:where([contenteditable]:not([contenteditable="false"])) {
    -moz-user-modify: read-write;
    -webkit-user-modify: read-write;
    overflow-wrap: break-word;
    -webkit-line-break: after-white-space;
    -webkit-user-select: auto;
}

/* apply back the draggable feature - exist only in Chromium and Safari */
:where([draggable="true"]) {
    -webkit-user-drag: element;
}

/* Revert Modal native behavior */
:where(dialog:modal) {
    all: revert;
    box-sizing: border-box;
}

/* Remove details summary webkit styles */
::-webkit-details-marker {
    display: none;
}

.container {
    font-family: "Noto Sans JP", sans-serif;
    max-width: none;
    padding: 0;
}

footer.container {
    max-width: 1140px;
}

.inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.pc_only {
    display: block;
}

.sp_only {
    display: none;
}

button:focus {
    outline: none;
}

header {
    width: 100%;
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
}

header .logo {
    display: flex;
    width: 15%;
    margin: 0 !important;
    margin-right: auto;
}

header .logo img {
    width: 100%;
}

/***** メインビジュアル *****/
#mv {
    background: url(https://www.web-rentacar.com/img/b2c/campaign/okinawa_pickup/mv.png) no-repeat;
    background-size: cover;
    width: 100%;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#mv .mv-txt {
    color: #fff;
    text-align: center;
    text-shadow: 0 0 5px #00000035;
}

#mv .mv-txt .top img {
    display: block;
    margin: 0 auto;
}

#mv .mv-txt .top p {
    font-size: 3rem;
    font-weight: 500;
    line-height: 1;
    margin-top: -2rem;
}

#mv .mv-txt .middle {
    margin-top: -1.5rem;
}

#mv .mv-txt .middle p {
    font-size: 12vw;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .2rem;
}

#mv .mv-txt .bottom h1 {
    font-size: 2rem;
    font-weight: 700;
}

#intro {
    width: 100vw;
    background: #FFF44F;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 0;
    overflow: hidden;
    position: relative;
    z-index: 3;
}

#intro .intro-txt h2 {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

#intro .intro-txt h2 span {
    position: relative;
}

#intro .intro-txt h2 span::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #FF6A00;
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
}

#intro .intro-txt p {
    line-height: 2;
}

#intro .abs-left {
    width: 25vw;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

#intro .abs-right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
}

/***** カレンダー・車種 *****/
#findplan {
    padding: 100px 0;
    text-align: center;
}

#findplan h2 {
    margin-bottom: 3rem;
    font-size: 1.8rem;
    font-weight: 700;
}

#findplan .tab-buttons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

#findplan .tab-buttons button {
    width: 50%;
    padding: .5rem 1rem;
    border-bottom: 2px solid #5BB6F560;
    color: #5BB6F560;
    cursor: pointer;
}

#findplan .tab-buttons button.active {
    border-bottom: 2px solid #5BB6F5;
    color: #5BB6F5;
    font-weight: 500;
}

.tab-plan-content {
    display: none;
    margin-top: 2rem;
}

.tab-plan-content.active {
    display: block;
}

#tab1 .calender-notice {
    color: #ff0000;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
}

#tab1 .calender-area {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: start;
    gap: 3rem;
    margin-top: 1rem;
}

#tab1 .calender-area .calender-item {
    width: calc((100% - 3rem) / 2);
}

#tab1 .calender-area .calender-item table {
    width: 100%;
    margin-top: 1rem;
}

#tab1 .calender-area .calender-item table thead th {
    padding-bottom: 1rem;
}

#tab1 .calender-area .calender-item table tbody td {
    border: 1px solid #cccccc;
}

#tab1 .calender-area .calender-item table tbody td:hover {
    background: #5BB6F520;
}

#tab1 .calender-area .calender-item table a {
    display: block;
    padding: 1rem 0;
}

#tab1 .calender-area .calender-item table .null:hover {
    background: none;
}

#tab1 .calender-area .calender-item table .null a {
    pointer-events: none;
}

#tab1 .btn-wrap {
    margin: 30px auto;
    display: flex;
    justify-content: center;
}

#tab1 .btn-wrap a {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #FDB300;
    color: #fff;
    padding: .5rem 1.5rem;
    border-radius: 25px;
}

#tab1 .btn-wrap a:hover {
    opacity: .7;
    transition: all .5s ease;
}

#tab2 .kindofcar-area {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
}

#tab2 .kindofcar-area .kindofcar-item {
    width: calc((100% - 6rem) / 4);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    padding: .5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#tab2 .kindofcar-area .kindofcar-item img {
    width: 100%;
    scale: .8;
    margin: 0 auto;
}

#tab2 .kindofcar-area .kindofcar-item p {
    margin-bottom: 1rem;
}

#tab2 .kindofcar-area .kindofcar-item p span {
    color: #ff0000;
    font-size: 2rem;
    font-weight: 600;
}

#tab2 .kindofcar-area .kindofcar-item a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #FDB300;
    color: #fff;
    padding: .5rem 1.5rem;
    border-radius: 25px;
}

#tab1 .btn-wrap a:hover {
    opacity: .7;
    transition: all .5s ease;
}

/***** その他プラン検索 *****/
#other {
    text-align: center;
}

.heading-6 {
    position: relative;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.heading-6::before,
.heading-6::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30%;
    height: 2px;
    background-color: #5BB6F5;
}

.heading-6::before {
    left: 0;
}

.heading-6::after {
    right: 0;
}

@media screen and (max-width: 767px) {
    .inner {
        max-width: 390px;
        padding: 0 10px;
    }

    .pc_only {
        display: none;
    }

    .sp_only {
        display: block;
    }

    header {
        padding: 1rem;
    }

    header .logo {
        width: 50%;
    }

    footer.container {
        max-width: 1140px;
    }

    /***** メインビジュアル *****/
    #mv {
        height: 60vh;
    }

    #mv .mv-txt .top img {
        width: 50%;
    }

    #mv .mv-txt .top p {
        font-size: 1.5rem;
        margin-top: -1rem;
    }

    #mv .mv-txt .middle {
        margin-top: 0;
    }

    #mv .mv-txt .middle p {
        font-size: 15vw;
    }

    #mv .mv-txt .bottom h1 {
        font-size: 1rem;
        letter-spacing: -.05em;
    }

    #intro {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 100px 0;
        overflow: hidden;
        position: relative;
        z-index: 3;
    }

    #intro .intro-txt h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    #intro .intro-txt p {
        line-height: 1.8;
    }

    #intro .abs-left {
        width: 50%;
    }

    #intro .abs-right {
        width: 70%;
        top: auto;
        bottom: -5%;
    }

    /***** カレンダー・車種 *****/
    #findplan {
        padding: 50px 0;
    }

    #findplan h2 {
        margin-bottom: 1rem;
        font-size: 1.3rem;
    }

    .tab-plan-content {
        margin-top: 1.5rem;
    }

    #tab1 .calender-notice {
        font-size: 1rem;
    }

    #tab1 .calender-area {
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: .7rem;
    }

    #tab1 .calender-area .calender-item {
        width: 90%;
    }

    #tab1 .calender-area .calender-item table {
        margin-top: .3rem;
    }

    #tab1 .calender-area .calender-item table thead th {
        padding-bottom: .7rem;
    }

    #tab1 .calender-area .calender-item table a {
        padding: .7rem 0;
    }

    #tab1 .btn-wrap {
        margin: 1.5rem auto;
    }

    #tab2 .kindofcar-area {
        flex-wrap: wrap;
        align-items: stretch;
        gap: .5rem;
    }

    #tab2 .kindofcar-area .kindofcar-item {
        width: calc((100% - .5rem) / 2);
        margin: 0 auto;
        flex-wrap: wrap;
        padding: .5rem;
        border-radius: 5px;
    }

    #tab2 .kindofcar-area .kindofcar-item p {
        margin-bottom: .5rem;
    }

    #tab2 .kindofcar-area .kindofcar-item p span {
        font-size: 1.5rem;
    }

    /***** その他プラン検索 *****/
    #other {
        padding: 0 0 50px;
    }

    .heading-6 {
        font-size: 1rem;
    }

    .heading-6::before,
    .heading-6::after {
        width: 20%;
    }

}