@charset "UTF-8";

/* top.css（index.html） 共通(header・footer)以外 */

/*-------------------------------------------
Section main_visual *
-------------------------------------------*/
.main_visual {
  max-width: 1920px; /* 必要に応じて変更 */
  text-align: center;
}

.main_container {
  margin: 60px 0 0;
  background-image: url(../img/index/sp_main1.jpg);
  height: 56vh;
  background-position: top;
  background-size: cover;
}

.responsive_background { /* 仮・可変対応*/
  aspect-ratio: auto;
}

.main_wrap {
  height: 56vh; /* 仮 */
  padding: 40px 0 20px;
  margin: 0 15px; 
  text-align: center;
}

.row_1 {
  padding: 20px 0;
}

.catch1 {
  font-size: 18px;
}

.catch1, .catch2 {
  color: var(--text-white);
  line-height: 1.5;
}

.row_2 {
  padding-bottom: 30px;
}

.catch2 .search-container {
  margin-bottom: 10px;
}

.catch2 {
 font-size: 24px;
}

.sp_search_box_btn {
  display: block;
  text-align: center;
  position: relative;
  width: 100%; /* 親要素の幅を最大化 */
  height: 100%; /* 高さを広げる */
}

.sp_search_box_btn a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* aタグのクリック範囲最大化 */
  height: 100%; /* ボタン全体をリンクとして機能させる */
  display: block; /* Fブロック要素に変換して範囲を広げる */
  opacity: 1; 
}

.sp_search_box_btn span {
  margin-right: 60px;
}

.btn_global_search.btn_search { 
  background-color: var(--bg-white);
  color: var(--text-color1);
  display: inline-flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  max-width: 256px;
  height: 50px;
  position: relative;
  font-size: 14px;
  border-radius: 25px;
  padding: 0 25px;
}

.sp_search_small::after {
  content: "";
  background-image: url(../img/index/search_white.png)!important;
  background-position: center!important;
  background-repeat: no-repeat!important;
  background: var( --bg-color-main); 
  background-size: 18px;
  position: absolute;
  top: 0;
  right: 5px;
  width: 40px;
  height: 40px;
  margin: 5px 0;
  border-radius: 50%;
} 

.search_container, .pc_search_container { /* 非表示*/
  display: none;
}

/*-------------------------------------------
Section genre
-------------------------------------------*/
.g_block {
  padding: 0 2rem;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  padding: 1rem;
}

.category-card { 
  position: relative;
  max-height: 340px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s;
}
  
.category-card { 
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
  
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 12px;
}

.label {
  border-radius: 4px;
  font-size: 2rem;
  display: inline-block;
  line-height: 1;
  padding-top: 5px;
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.activities {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--bg-color-main);
  border: none;
  border-radius: 8px 0;
  text-align: center;
  padding: 0 5px 3px;
  width: 30%;
  max-width: 120px;
  font-size: 1.1rem; 
}

.activities span {
  display: block;
}

.activities .count {
  font-family: 'Roboto', sans-serif;
  font-size: 2.68rem;
  height: 43px;
  padding: 0;
  border-radius: 4px;
  font-weight: 400;
  color: var(--text-color1);
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, 0.5),
     1px -1px 0 rgba(255, 255, 255, 0.5),
    -1px  1px 0 rgba(255, 255, 255, 0.5),
     1px  1px 0 rgba(255, 255, 255, 0.5);
}

.activities .unit {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8rem;
  color: #fff;
  padding-top: 3px;
}

/* 背景画像設定（カテゴリごと） */
.fishing {
  background-image: url(../img/index/genre_ph1.png);
  /* width: 100%; */
}

.golf {
  background-image: url(../img/index/genre_ph2.png);
}

.diving {
  background-image: url(../img/index/genre_ph3.png);
}

.luxury {
  background-image: url(../img/index/genre_ph4.png);
}

.accessible {
  background-image: url(../img/index/genre_ph5.png);
}

.others {
  background-image: url(../img/index/genre_ph6.png);
}

.fishing, .golf, .diving, .luxury, .accessible, .others {
  width: 100%;
}

.genre-info-link {
  display: block;
  margin: 2rem auto 0;
  padding: 0.6rem 1.2rem;
  border: var(--border-width) var(--border-style) var(--border-color2);
  border-radius: 9999px;
  text-align: center;
  width: fit-content;
  color: var(--text-color1);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.genre-info-link:hover {
  background-color: #e0e0e0;
}

.genre-info-link::after {
  content: " ⇀";
  font-size: 1.1em;
  margin-left: 1em;
  position: relative;
  top: -2px; /* 上に2px移動 */
}

/* -------------------------------------------- */
/* ▼タブレット用デザインとして付け足すデザイン *768~1023/
/* -------------------------------------------- */
@media (min-width: 768px) {
  .sp_search_container, .sp_search_box, 
  .sp_search_box_btn {
    display: none; /* スマホアイテム　非表示*/
  }
  
/*-------------------------------------------
Section main_visual *768px~1023
-------------------------------------------*/ 
  .main_container {
    margin: 70px 0 20px; 
    background-image: url(../img/index/top_main1.jpeg);
    background-position: right;
    background-size: cover;
    min-height: 600px;
  }
  
  .main_wrap {
    height: 50vh;
    margin: 0 3vh;
    padding-top: 100px;
    text-align: center;
  }

  .main_catch {
    padding-bottom: 40px;
  }

  .row_1 {
    padding: 0 0 15px 0;
  }

  .row_2 {
    padding-bottom: 70px;
  }

  .catch1 {
    font-size: 18px;
  }

  .catch2 {
    font-size: 42px;
  }

  .search_container { /* エリア・ジャンル等検索窓(大)　*/
    display: block;
  }

  .search_group { /* エリア・ジャンル等検索窓(大)　*/
    display: flex; 
    background: var(--bg-white);
    font-size: 15px;
    padding: 5px;
    border-radius: 40px;
    padding-left: 30px;
    flex-wrap: wrap;
  }

  .items {
    width: calc((100% - 190px) / 4);
    padding: 0 10px;
    position: relative;
  }

  /* エリア・ジャンル等検索窓(大)  */
  .items select { 
    height: 34px;
    color: var(-text-color2);
    font-size: 13px;
  }

  .items button::before{
    content: "";
    width: 21px;
    height: 21px;
    color: var(--text-white);
    background: var( --bg-color-main);
    background-size: 21px;
    background-position: center center;
    background-image: url(../img/index/search_white.png)!important; /* 色付き部分のsearch画像 */
    display: block;
    margin-right: 9px;
  }

  /* エリア・ジャンル等検索窓(大)　仕切り（縦線）  */
  .items::after {
    content: "";
    position: absolute;
    width: 1px;
    top: 10px;
    right: 0;
    bottom: 10px;
    background-color: #dcdcdc;
  }

  /* エリア・ジャンル等検索窓(大)　仕切り（縦線）隠す  */
  .items:nth-last-of-type(2)::after {
    content: none;
  }

  .items:last-child::after {
    content: none;
  }

  .items.box_search { /* 検索窓(大)色付き部分*/
    width: 190px;
    padding: 0;
    display: block;
  }

  .caption {
    width: 100%;
    align-items: center;
    display: flex;
    justify-content: flex-start;
    margin-top: 5px; 
  }

  .search_area span, .search_genre span, 
  .date span, .head_count span {
    font-weight: 400;
    font-size: 15px;
    line-height: 1;
    margin-left: 7px;
  }

    /* エリア・ジャンル等の検索窓(大) 疑似要素画像 */
  .search_area::before {  
    background-image: url(../img/index/area_icon.png);
  }

  /* エリア・ジャンル等の検索窓(大) 疑似要素画像 */
  .search_genre::before { 
    background-image: url(../img/index/genre_icon.png);
  }

  .date::before {  
    background-image: url(../img/index/schedule_icon.png);  
  }

  /* エリア・ジャンル等の検索窓(大) 疑似要素画像 */
  .head_count::before {
    background-image: url(../img/index/Number_of_people_icon.png);
  }

  /* エリア・ジャンル等の検索窓(大) 疑似要素画像 */
  .search_area::before,
  .search_genre::before,
  .date::before,
  .head_count::before {
    content: "";
    width: 21px;
    height: 16px;
    background-size: 12px;
    background-position: center center;
    display: block;
  }

  #btn_submit_home {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 70px;
    color: var(--text-white);
    background: var(--bg-color-main);
    border-radius: 35px;
    cursor: pointer;
  }

  input[type="text"], input[type="number"] {
    height: 34px;
    line-height: 32px;
    display: inline-block;
    color: var(-text-color2);
    font-size: 13px;
  } 

/*-------------------------------------------
Section genre *768~1023
-------------------------------------------*/  
.container {
  padding: 30px 0 70px;
  }

.g_block {
  padding: 0;
  }
    
.g_block.wrap {
  margin: 0 2rem;
  }
  
.category-grid {
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  gap: 2rem;
  max-width: 700px; /* 中央寄せするための最大幅 */
  }

  .category-card {
  background-position: right center;
  height: auto;
  }
  
}

@media (min-width: 768px) and (max-width: 1023px) {
  .genre-info-link {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5rem;
  }
}

/* ------------------------------------ */
/* ▼PC用デザインとして付け足すデザイン *1024~ */
/* ------------------------------------ */
@media (min-width: 1024px) {

/*-------------------------------------------
Section main_visual *1024~
-------------------------------------------*/
  .sp_br {
    display: none;
  }
  
   .main_container {
    margin: 70px 0;
    background-position: left center;
    height: 600px; 
    max-width: 1920px; /* 仮置き */
  }

  .main_wrap {
    margin: 0 10%;
    padding-top: 40px;
    text-align: left;
    height: 600px;
  }

  .main_catch {
    padding-bottom: 100px;
    margin-left: -5%;
  }

  .catch1 { 
    font-size: 21px;
  }

  .catch2 {
    font-size: 60px;
  }

  .pc_search_container {
    display: block;
  }
    
  input[type="text"], input[type="number"] {
    width: 200px;
    height: 30px;
  }
 
/*-------------------------------------------
Section genre *1024~
-------------------------------------------*/
  .container {
    padding: 30px 0 90px;
  }

  .g_block.wrap {
    margin: 0 auto;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .category-card {
    aspect-ratio: 3 / 2.1; /* カードを少しだけ縦長にして大きめに見せる */
    max-width: 100%;
  }

}