/* ロケーションページ（location.html）用のCSS */

/* ---------- グーグルmapのcss ---------- */
#map-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.btn-group {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-group button {
  width: calc((100% - 20px) / 3 );
}

.btn-group button {
  cursor: pointer;
  padding: 0;
  border: none;
  background: none;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.map .btn-group button img {
  opacity: 0.7;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.map .btn-group button {
  transition: box-shadow 0.2s ease;
}

.map .btn-group button.active {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}

.map .btn-group button.active img {
  opacity: 1;
  filter: saturate(1.4) brightness(0.9);
}

#map-loading {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  display: none;
  width: 100%;
}

.btn-group button:hover,
.btn-group button.active {
  opacity: 1;
}

/* あらかじめ用意した6枚のGoogle My Mapsを同じ場所に重ね、
   表示中の1枚だけボタンの切り替えでフェード表示する */
.map .tab-inner {
  position: relative;
}

.map .tab-inner > div {
  display: none;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.map .tab-inner > div.active {
  display: block;
}

/* Google My Mapsの埋め込みは上部59pxが「地図のタイトル／
   Googleマイマップで作成されました」という固定の帯になっており、
   別ドメインのページのためCSSで直接編集できない。
   そのぶんiframeを高く・上にずらして、はみ出した帯を
   親要素のoverflow:hiddenで隠す */
.map .tab-inner iframe {
  position: absolute;
  top: -59px;
  left: 0;
  width: 100%;
  height: calc(100% + 59px);
  border: 0;
}


/* ---------- 各セクション共通 ---------- */
.item_title {
  margin-bottom: 40px;
  font-size: 20px;
  line-height: 2;
  letter-spacing: 0.8em;
}
.item_text {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.3em;
}
.title_img {
  height: 80px;
  margin-bottom: 40px;
}

.top_text {
  text-align: center;
  padding: 100px;
}
.top_text .title {
  font-size: 30px;
  margin-bottom: 40px;
  letter-spacing: 0.8em;
}
.img_wrap {
  position: relative;
}
.park_img_icon {
  position: absolute;
  width: 100px;
  height: 100px;
  z-index: 3;
}
.point_list {
  display: flex;
  gap: 6px;
  margin-bottom: 40px;
}
.point_list li {
  color: var(--btn-color);
  font-size: 10px;
  line-height: 1.1;
  padding: 5px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px var(--btn-color) dotted;
}
.item_title.spot_name {
  display: flex;
  align-items: center;
  gap: 20px;
}
.item_title.spot_name span {
  font-size: 12px;
  letter-spacing: 0.6em;
  color: var(--btn-color);
  font-family: "Inter", sans-serif;
}


.park, .gourmet, .bg {
  background-color: #f8f8f9;
  position: relative;
  padding-bottom: 160px;
}
.park::before, .gourmet::before, .bg::before {
  content: " ";
  position: absolute;
  left: 0;
  top: -43px;
  background-image: url(../img/location/location_bg_top.png);
  background-repeat: no-repeat;
  background-position-y: top;
  width: 100%;
  height: 200px;
  z-index: 2;
}
.park::after, .gourmet::after, .bg::after {
  content: " ";
  position: absolute;
  left: 0;
  bottom: -43px;
  background-image: url(../img/location/location_bg_bottom.png);
  background-repeat: no-repeat;
  background-position-y: top;
  width: 100%;
  height: 200px;
  z-index: 2;
}
.park__top.inner,
.use__top.inner,
.gourmet__top.inner,
.off__top.inner {
  width: min(900px, 90%);
}
  .point_list.sp {
    display: none;
  }
/* ---------- park ---------- */

.park__top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 40px;
  padding-bottom: 160px;

  > .text_block {
    flex: 0 0 auto;
  }

  > img {
    flex: 1 1 0;
    min-width: 0;
    height: auto;
  }
}


.park__section1 {
  padding-bottom: 160px;
  .top, .bottom {
    display: flex;
    align-items: flex-end;
    gap: 40px;
  }
  .top {
    margin-bottom: 40px;
  }
  .top .img_wrap {
    width: 60%;
  }
  .top .text_block {
    width: 40%;
    padding-right: 10%;
  }
  .top .park_img_icon {
    top: -60px;
    right: 30px;
  }
  .item_text {
    margin-bottom: 60px;
  }
  .bottom .park_img_icon {
    left: -170px;
    top: 20px;
    width: 170px;
    height: auto;
  }
  .bottom .text_block {
    width: 53%;
  }
  .bottom .img_wrap {
    width: 60%;
  }
  .bottom .text_block .item_text {
    margin-bottom: 0;
  }
  .park_img1_2_sp {
    display: none;
  }
}

.park__section2 {
  padding-bottom: 160px;
  .top {
    padding-bottom: 100px;
  }
  .top .flex {
    display: flex;
    align-items: flex-end;
    justify-content: right;
    gap: 40px;
    margin-bottom: 20px;
  }
  .text_block {
    width: 46%;
    padding-left: 10%;
  }
  .flex > .scroll-scale {
    width: 52%;
  }
  .item_text {
    margin-bottom: 40px;
  }

  .top .img_wrap .park_img_icon {
    top: -50px;
    right: 32%;
  }
  .spot_list ul {
    display: flex;
    gap: 40px;
    align-items: flex-end;
  }
  .spot_list ul li {
    flex: 1;
    min-width: 0;
  }
  .spot_list .item_title.spot_name {
    flex-direction: column;
    align-items: self-start;
    gap: 10px;
    margin-bottom: 20px;
  }
  .spot_list .item_title.spot_name.l_spa_0 {
    letter-spacing: 0em;
  }
  .spot_list .item_text {
    margin-bottom: 20px;
  }
  .spot_list .park_img_icon {
    right: 10px;
    bottom: -45px;
  }
  .park_img2_1_sp {
    display: none;
  }
  .item_title.spot_name span {
    height: 48px;
    display: flex;
    align-items: center;
  }
}

.park__section3 {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  z-index: 3;
  position: relative;

  .text_block {
    width: 40%;
  }
  .item_title.spot_name {
    flex-direction: column;
    align-items: self-start;
    gap: 20px;
    margin-bottom: 20px;
  }
  .park_img_icon {
    right: 10px;
    bottom: -40px;
  }
}


/* ---------- use ---------- */
.use {
  padding-bottom: 180px;
  position: relative;
  z-index: 4;
  .use__top {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-bottom: 100px;
  }
  .use__top > .text_block {
    flex: 0 0 auto;
  }
  .use__top > img {
    flex: 1 1 0;
    min-width: 0;
    height: auto;
  }
  .use__list {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 160px;
  }
  .use__list .item {
    flex: 1;
    min-width: 0;
  }
  .item .img_wrap {
    margin-bottom: 40px;
  }
  .item .park_img_icon {
    right: 10px;
    bottom: -40px;
  }
  .item .item_title.spot_name {
    flex-direction: column;
    align-items: self-start;
    gap: 10px;
    margin-bottom: 20px;
  }
  .item .item_text {
    margin-bottom: 20px;
  }
}

/* ---------- gourmet ---------- */
.gourmet {
  .gourmet__top {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 40px;
    padding-bottom: 100px;
  }
  .gourmet__top .text_block {
    flex: 0 0 auto;
  }
  .gourmet__top > img {
    margin-top: -16px;
    flex: 1 1 0;
    min-width: 0;
    height: auto;
  }
}


/* ---------- off ---------- */
.off {
  position: relative;
  z-index: 4;
  .off__top {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-bottom: 100px;
  }
  .off__top .text_block {
    flex: 0 0 auto;
  }
  .off__top > img {
    margin-top: -16px;
    flex: 1 1 0;
    min-width: 0;
    height: auto;
  }
}

/* ---------- season ---------- */
.bg {
  padding-top: 100px;
}
.season, .future {
  background-color: #fff;
  padding: 40px;
  position: relative;
  isolation: isolate;
  z-index: 3;
  overflow: visible;
  margin-bottom: 100px;
}
.season__img {
  display: flex;
  gap: 20px;
}
.season__img img {
  padding-top: 40px;
  background-color: #f1f1f2;
  flex: 1;
  min-width: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.season > p {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
  letter-spacing: 0.4em;
}

/* 白背景 */
.season::before, .future::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: -1;
}

/* 斜線の影 */
.season::after, .future::after {
  content: "";
  position: absolute;
  top: 14px;
  right: -14px;
  bottom: -14px;
  left: 14px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(120, 125, 135, 0.55) 0,
    rgba(120, 125, 135, 0.55) 1px,
    transparent 1px,
    transparent 4px
  );
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    24px 100%
  );

  z-index: -2;
  pointer-events: none;
}

/* ---------- future ---------- */
.future {
  > p {
    text-align: center;
    font-family: "Inter", sans-serif;
    font-weight: 300;
    letter-spacing: 0.35em;
    line-height: 1.6;
    font-size: 24px;
    margin-bottom: 40px;
  }
  > p span {
    display: block;
    font-family: "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 16px;
    letter-spacing: 0.1em;
  }
  .flex {
    display: flex;
    align-items: flex-start;
    gap: 20px;
  }
  .text_block {
    width: 66%;
  }
  .text_block .item_title {
    margin-bottom: 20px;
  }
  .img_wrap {
    p {
      margin-top: 20px;
      font-size: 14px;
    }
  }
}

/* ---------- map ---------- */
.map {
  width: min(100%, 960px);
  margin: 0 auto;
}


/* =========================
  768px以下
========================= */
@media (max-width: 768px) {
  .top_text {
    padding: 40px 20px;
  }
  .top_text .title {
    font-size: 22px;
    letter-spacing: 0.4em;
  }
  .park__top,
  .park__section1 .top,
  .park__section1 .bottom,
  .park__section2 .top .flex,
  .park__section2 .spot_list ul,
  .park__section3,
  .use .use__top,
  .use .use__list,
  .gourmet .gourmet__top,
  .off .off__top,
  .future .flex {
    flex-direction: column;
  }
  .park__top > .text_block,
  .park__section1 .top .text_block,
  .park__section1 .top .img_wrap,
  .park__section1 .bottom .text_block,
  .park__section1 .img_wrap,
  .park__section2 .text_block,
  .park__section2 .flex > .scroll-scale,
  .park__section2 .top .img_wrap,
  .park__section3 .text_block,
  .use .use__top > .text_block,
  .gourmet .gourmet__top .text_block,
  .off .off__top .text_block,
  .future .text_block,
  .future .img_wrap {
    width: 100%;
  }
  .park_img_icon {
    width: 80px;
    height: 80px;
  }
  .park__section1 .top .text_block,
  .park__section1 .top .img_wrap,
  .park__section2 .text_block,
  .park__section2 .top .img_wrap {
    padding-right: 20px;
    padding-left: 20px;
  }
  .park__section1,
  .park__section2,
  .use,
  .use .use__list,
  .park, .gourmet, .bg,
  .park__section2 .top,
  .park__top {
    padding-bottom: 80px;
  }
  .park__section1 .top .img_wrap,
  .use .use__top > img,
  .off .off__top > img  {
    order: 2;
  }
  .park__section1 .top .text_block,
  .use .use__top > .text_block,
  .off .off__top .text_block {
    order: 1;
  }
  .park__section1 .bottom {
    gap: 0;
  }
  .park__section1 .bottom .park_img_icon {
    left: -10px;
    width: 110px;
  }
  .title_img {
    height: 40px;
  }
  .park__section1 .bottom .img_wrap {
    width: 100%;
  }
  .item_title {
    letter-spacing: 0.3em;
    font-size: 20px;
  }
  .item_title.spot_name span {
    font-size: 10px;
  }
  .item_text {
    letter-spacing: 0.1em;
    font-size: 14px;
  }
  .park__section1 .item_text {
    margin-bottom: 40px;
  }
  .slick-slide p {
    padding: 20px;
    font-size: 12px;
  }
  .season, .future {
    padding: 40px 20px;
  }
  .season {
    margin-bottom: 60px;
  }
  .season__img {
    flex-wrap: wrap;
    justify-content: center;
  }
  .season__img img {
    width: 28%;
    flex: none;
  }
  .future > p {
    font-size: 20px;
    letter-spacing: 0.1em;
  }
  .future > p span {
    font-size: 12px;
    margin-top: 10px;
  }
  .btn-group {
    gap : 0;
    justify-content: center;
  }
  .park__section1 .point_list,
  .park__section1 .text_block .scroll-scale,
  .park__section2 .point_list,
  .park__section2 .top .flex .scroll-scale,
  .park__section3 .point_list {
    display: none;
  }
  .point_list.sp {
    display: flex;
  }
  .park__section1 .top .park_img_icon {
    bottom: 0;
    left: 20px;
    top: initial;
    right: initial;
  }
  .point_list li {
    width: 53px;
    height: 53px;
  }
  .park__section1 .park_img1_2_sp {
    display: block;
    margin-bottom: 20px;
  }
  .park__section1 .bottom .scroll-scale {
    width: 70%;
    margin: 0 0 0 auto;
  }
  .park__section2 .park_img2_1_sp {
    display: block;
    margin-top: 4px;
    margin-bottom: 20px;
  }
  .park__section2 .item_title.spot_name span {
    height: auto;
  }
  .park__section3 .point_list.sp {
    margin-bottom: 0;
    margin-top: 20px;
  }
  .future .text_block .item_title {
    text-align: center;
  }
}
