:root {
  --main: #ff1f1f;
  --sub: #d10000;
  --bg: #ffffff;
  --lightgray: #f5f6f8;
  --black: #160c1c;
  --bg_black: #1f1f1f;
  --grad1: linear-gradient(47deg, rgba(255, 40, 40, 1) 20%, rgba(215, 0, 0, 1) 100%);
  --bordergray: #e9ebf2;
  --borderGrad: linear-gradient(to right, #7f7fff, #7fff7f);
}

* {
  font-family: "Noto Sans JP", sans-serif;
  font-style: normal;
  line-height: 1.5em;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.inline {
  display: inline-block;
}
body {
  min-height: 100dvh;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg);
  height: 60px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}
header .logo {
  height: 80%;
}
header .logo img {
  width: auto;
  height: 100%;
}
@media screen and (min-width: 901px) {
  header .logo .sp_appear {
    display: none;
  }
}
@media screen and (max-width: 900px) {
  header {
    position: relative;
    height: 54px;
  }
  header .logo .pc_appear {
    display: none;
  }
  header .logo {
    height: auto;
    line-height: 0;
  }
  header .logo img {
    width: 120px;
    height: auto;
  }
}

header .text_logo {
  height: 40%;
}
header .text_logo img {
  height: 100%;
}

main {
  position: relative;
  background-image: url(assets/background.png);
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: cover;
  background-color: #eaf9ea;
  min-height: calc(100dvh - 60px);
  padding-top: 60px;
}
.sp_scroll_section {
  position: fixed;
  top: 60px;
  width: 45%;
  max-width: 750px;
  height: calc(100dvh - 60px);
  right: 0;
  left: 0;
  margin-inline: auto;
  overflow-y: scroll;
  filter: drop-shadow(0px 0px 20px rgba(0, 0, 0, 0.08));
}
.sp_scroll_section img {
  width: 100%;
}
.main_left_block {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc((100% - min(750px, 45%)) / 2);
  display: flex;
  justify-content: center;
  align-items: center;
}
.main_left_inner {
  max-width: 345px;
  width: 24vw;
}
.main_left_inner img {
  display: block;
  width: 100%;
}
.main_left_inner .cta {
  width: 100%;
}
@media screen and (max-width: 1050px) {
}
.main_right_block {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: calc((100% - min(750px, 45%)) / 2);
  display: flex;
  justify-content: center;
  align-items: end;
  padding-bottom: 60px;
}
@media screen and (max-width: 900px) {
  main {
    padding-top: 0;
  }
  .sp_scroll_section {
    position: relative;
    top: 0;
    width: 100%;
    max-width: none;
    height: auto;
    right: 0%;
    overflow-y: visible;
    filter: none;
  }
  header .text_logo {
    height: 26%;
    line-height: 0;
  }
  .footer {
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
  }
}
.ancker_buttons {
  max-width: 270px;
  max-width: 18.7vw;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ancker_buttons .ancker_button {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  height: 80px;
  justify-content: space-between;
  padding: 0px 42px 0px 24px;
  border: 2px solid #3f3f3f;
  border-radius: 12px;
  font-size: 1.1vw;
  background: var(--bg);
  transition: 0.3s;
}
.ancker_buttons .ancker_button:hover {
  transition: 0.3s;
  transform: translateY(-6px);
}
.ancker_buttons .ancker_button p {
  line-height: 120%;
}
.ancker_buttons .ancker_button::after {
  position: absolute;
  content: "";
  width: 16px;
  height: 16px;
  background-image: url(assets/under_arrow.svg);
  background-size: contain;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
}
.footer {
  background: var(--bg_black);
  padding: 20px 6%;
  padding-bottom: 40px;
  text-align: left;
  color: #c1c1c1;
}

.btn-reservation {
  padding: 40px 43px;
  background-color: #3f3f3f;
}
.btn-reservation a {
  transition: 0.3s;
}
@media (hover: hover) {
  .btn-reservation a:hover {
    opacity: 0.8;
  }
}

.block_wrapper {
  position: relative;
  width: 100%;
}

.accordion_wrapper {
  padding: 36px 20px;
  background-image: url(assets/bg-accordion.png);
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: top center;
}
.accordion_wrapper.roox {
  background-color: #ffbfcf;
}
.accordion_wrapper.leaf {
  background-color: #b3c5fc;
}
.accordion_wrapper.serena {
  background-color: #89c6ed;
}
.accordion_wrapper.xtrail {
  background-color: #b1f5b3;
}
.accordion_trig {
  cursor: pointer;
  position: relative;
  transition: 0.3s;
  background: url(assets/btn-accordion_close.png) no-repeat left top/100% auto;
}
.accordion_trig.is-active img {
  opacity: 0;
}
@media (hover: hover) {
  .accordion_trig:hover {
    opacity: 0.9;
  }
}
.accordion_icon {
  display: block;
  position: absolute;
  top: 50%;
  right: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #fff;
  transform: translateY(-50%);
}
.accordion_icon::before,
.accordion_icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background-color: #3f3f3f;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}
.accordion_icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.accordion_trig.is-active .accordion_icon::after {
  display: none;
}
.accordion_content {
  display: none;
  /* padding-top: 36px; */
}

.campaign_block_bottom {
  padding-bottom: 55px;
  background: linear-gradient(180deg, #aa8980 0%, #b6b6a4 100%);
}

.cta {
  position: relative;
  width: calc(690 / 750 * 100%);
  margin-inline: auto;
  animation: cta-shake 3s infinite;
  overflow: hidden;
  transition: 0.2s;

  mask-image: url("assets/cta.png");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}
.cta_01 {
  position: absolute;
  top: 24%;
  left: 0px;
  width: 100%;
  filter: drop-shadow(0px 8px 6px rgba(0, 0, 0, 0.2));
  animation: cta-shake 3s infinite;
  overflow: hidden;
  transition: 0.2s;
}
.cta_01:hover {
  opacity: 0.7;
  transition: 0.5s;
}
/* 光る帯のエフェクト */
.cta::before,
.cta_01::before {
  position: absolute;
  content: "";
  display: inline-block;
  top: -180px;
  left: 0;
  width: 30px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  animation: shine 3s infinite;
  z-index: 1;
  pointer-events: none;
}

/* CTAボタンの横揺れアニメーション */
@keyframes cta-shake {
  0%,
  90%,
  100% {
    transform: translateX(0);
  }

  /* 横揺れアニメーション */
  5% {
    transform: translateX(3px);
  }
  10% {
    transform: translateX(-3px);
  }
  15% {
    transform: translateX(2px);
  }
  20% {
    transform: translateX(-1px);
  }
  25% {
    transform: translateX(0);
  }
}

/* 光が通り過ぎるアニメーション */
@keyframes shine {
  0% {
    transform: scale(0) rotate(45deg);
    opacity: 0;
  }
  80% {
    transform: scale(0) rotate(45deg);
    opacity: 0.3;
  }
  81% {
    transform: scale(4) rotate(45deg);
    opacity: 0.6;
  }
  100% {
    transform: scale(50) rotate(45deg);
    opacity: 0;
  }
}
.cta_02 {
  position: absolute;
  top: 73%;
  left: 0px;
  width: 100%;
  filter: drop-shadow(0px 8px 6px rgba(0, 0, 0, 0.2));
}
.cta_03 {
  position: absolute;
  bottom: 0%;
  left: 0px;
  width: 100%;
}
.tab {
  display: flex;
  gap: 0px;
}
.tab .back-img {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.tab div {
  flex: 1;
}
.tab_off,
.tab_on {
  display: none;
}
.tab_off {
  cursor: pointer;
}
.tab_off.active,
.tab_on.active {
  display: block;
}
.recommend_block {
  display: none;
}
.recommend_block.active {
  display: block;
}

/* スライダーのスタイル */
.slider-container {
  margin-top: 30px;
  position: relative;
  width: 100%;
  height: auto;
  /* top: 30%;
  left: 50%; */
  /* transform: translateX(-50%); */
  box-sizing: border-box;
}
.slider-container.roox-slider2 {
  /* top: 16%; */
}
.slider-container.roox-slider3 {
  /* top: 29%; */
}
.slider-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: auto;
  cursor: grab;
  overflow: hidden;
}
.slider-wrapper:active {
  cursor: grabbing;
}
.slider-track {
  display: flex;
  transition: transform 0.3s ease-in-out;
  width: 100%;
  height: auto;
}

.slide {
  width: 100%;
  height: auto;
  position: relative;
  flex-shrink: 0;
  flex-basis: 100%;
}
.slide img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  vertical-align: top;
  max-width: 100%;
  object-fit: contain;
  /* border-radius: 8px 8px 0 0; */
}
.comment_img {
  position: absolute;
  top: 18%;
  left: -1%;
  width: 26%;
  object-fit: contain;
}
.comment_img img {
  opacity: 0;
  transform: translateY(10%);
  position: absolute;
  top: 0px;
  left: 0px;
}
.comment_img img.active {
  opacity: 1;
  transform: translateY(0%);
  transition: 0.3s;
}

/* ページネーション */
.slider-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 15px 0;
  position: relative;
  position: absolute;
  bottom: -50px;
  width: 100%;
}

.dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #dcd3c4;
  cursor: pointer;
  transition: all 0.3s ease;
}
.dot:hover {
  background: #ffbfcf;
}
.dot.active {
  background: #ffbfcf;
}
.serena-slider .dot:hover {
  background: #b3c5fc;
}
.serena-slider .dot.active {
  background: #b3c5fc;
}
.xtrail-slider .dot:hover {
  background: #b1f5b3;
}
.xtrail-slider .dot.active {
  background: #b1f5b3;
}
.area_buttons {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 95%;
}
.area_buttons .button {
  width: Calc(100% / 2 - 8px);
  cursor: pointer;
}
.area_list .area {
  display: none;
}
.area_list .area.active {
  display: block;
}

@media screen and (max-width: 1200px) {
  .main_left_block,
  .main_right_block {
    display: none;
  }
  .sp_scroll_section {
    width: 100%;
  }
}
.floating_cta {
  display: none;
  width: 100%;
  position: fixed;
  bottom: 0px;
  left: 0px;
  z-index: 20;
  padding: 5px 0px;
  background: rgba(0, 0, 0, 0.3);
}
.floating_cta img {
  width: 100%;
}
.floating_cta_btn {
  width: calc(355 / 375 * 100%);
  margin: 0 auto;
}
@media screen and (max-width: 900px) {
  .floating_cta {
    display: block;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }
  .floating_cta.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.accordion_content .inner {
  padding-block: 40px;
}
.accordion_detail {
  margin-top: 40px;
}
.accordion_detail:first-child {
  margin-top: 0;
}
.accordion_detail .img-box {
  margin-top: 40px;
}
.accordion_detail .img-box .btm-txt {
  display: block;
  margin-top: 40px;
  margin-inline: auto;
}

.roox .accordion_detail .img-box .btm-txt {
  max-width: 65.67%;
}
.leaf .accordion_detail .img-box .btm-txt {
  max-width: 82.68%;
}
.serena .accordion_detail .img-box .btm-txt {
  max-width: 49.1%;
}
.xtrail .accordion_detail .img-box .btm-txt {
  max-width: 70.9%;
}

/* 京都日産WEB来店予約実施店舗 */
.shop-block {
  padding: 53px 20px 43px;
  background-color: #fff9dd;
}
.shop-block__title {
  text-align: center;
  margin-bottom: 30px;
}
.shop-block__perfix {
  font-size: 16px;
  margin-bottom: 24px;
  text-align: center;
}
.shop-block__map {
  margin-bottom: 40px;
}
.shop-block__subtitle {
  text-align: center;
  margin-bottom: 40px;
}
.shop-block-tab {
  max-width: 880px;
  margin: 0 auto;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}
.shop-block-tab__item {
  width: 46.95652%;
  font-size: 16px;
  height: 47px;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  color: #fff;
  cursor: pointer;
  position: relative;
  -webkit-transform: 0.3s cubic-bezier(0.13, 0.78, 0.38, 0.98);
  transform: 0.3s cubic-bezier(0.13, 0.78, 0.38, 0.98);
}
.shop-block-tab__item:hover {
  opacity: 0.5;
}
.shop-block-tab__item:first-child {
  background-color: #e37733;
}
.shop-block-tab__item:nth-child(2) {
  background-color: #8c5e88;
}
.shop-block-tab__item:nth-child(3) {
  background-color: #e196a2;
  margin-top: 20px;
}
.shop-block-tab__item:nth-child(4) {
  background-color: #e9bc6f;
}
.shop-block-tab__item:nth-child(5) {
  background-color: #9ecc84;
}
.shop-block-tab__item:nth-child(6) {
  background-color: #657ab5;
}
.shop-block-tab__item:nth-child(n + 4) {
  margin-top: 20px;
}
.shop-block-tab__item:after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  border-top: none;
  border-left: none;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  vertical-align: middle;
  border-width: 2px;
  position: absolute;
  top: calc(50% - 5px);
  right: 10px;
}
.shop-block__wrapper {
  padding-top: 40px;
}
.shop-list {
  background-color: #fff;
  padding: 0 20px;
  border: 2px solid #d11338;
  margin-bottom: 24px;
}
.shop-list__item {
  padding: 20px 0;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}
.shop-list__item:not(:last-child) {
  border-bottom: 1px solid #ccc;
}
.shop-list__content {
  align-items: center;
  -webkit-flex-basis: auto;
  flex-basis: auto;
  display: block;
  width: 57.62712%;
}
.shop-list__name {
  font-size: 16px;
  font-weight: 500;
  color: #d11338;
  line-height: 1.5;
  -webkit-flex-basis: auto;
  flex-basis: auto;
  margin-right: 0;
}
.shop-list__address {
  font-size: 14px;
  line-height: 1.71429;
}
.shop-list__button {
  -webkit-flex-basis: 100px;
  flex-basis: 100px;
}
.shop-list__anchor {
  display: block;
  width: 100%;
  background-color: #d11338;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  text-decoration: none;
  position: relative;
  transition: 0.3s cubic-bezier(0.13, 0.78, 0.38, 0.98);
}
.shop-list__anchor:hover {
  opacity: 0.5;
}
.shop-block__panel {
  display: none;
}
