@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/*フォント*/
body {
  font-family: "Noto Sans JP", sans-serif;
}
.entry-title,
.entry-content h1,
.entry-content h2,
.entry-content h3 {
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  letter-spacing: 0.04em;
}
.entry-title {
  letter-spacing: 0.08em;
}
.entry-content h2 {
  letter-spacing: 0.05em;
}
body {
  line-height: 1.8;
}

/*各固定ページの不要なもの削除*/
.post-date,
.post-update,
.date-tags {
  display: none !important;
}
.page .post-author {
  display: none !important;
}
.page .fa-pencil {
  display: none !important;
}
.wp-block-search__input {
  border-radius: 999px;
  padding: 14px 20px;
}
.wp-block-search__button {
  border-radius: 999px;
}
.shop-card {
  border: 1px solid #eee;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  background: #fff;
}

/* Cocoonの見出しデフォルトデザインをリセット */
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5 {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}
/* ヘッダー直下の余白を消す */
.content,
.content.cf,
.entry-content.cf,
.content-in {
  margin-top: 0 !important;
	padding-top: 0 !important;
}
#content {
	margin-top: 0 !important;
  padding-top: 0 !important;
}
.main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.main article,
.main .article {
  margin-top: 0 !important;
}

/*ヘッダーデザイン*/
.mobile-header-menu-buttons {
	display: flex;
	bottom: auto;
	top: 0;
}
.header-container-in.hlt-top-menu {
	display:none;
}
.mobile-header-menu-buttons li:nth-child(1) {
  flex: 0 0 10%;
  text-align: center;
}
.mobile-header-menu-buttons li:nth-child(2) {
  flex: 0 0 80%;
  text-align: center;
}
.mobile-header-menu-buttons li:nth-child(3) {
  flex: 0 0 10%;
  text-align: center;
}

/*ジャンプ先調整*/
/* ジャンプ先の位置をヘッダーの高さ分（例: 80px）下げる */
:target::before {
  content: "";
  display: block;
  height: 80px; /* ヘッダーの高さに合わせて数値を変更 */
  margin-top: -80px;
  visibility: hidden;
}
	
/*トップページ*/
/*Hero*/
.hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}
.hero-picture {
	width: 100%;
}
.hero-picture img {
  width: 100%;
  height: auto;        
  display: block;
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 24px;
}
.hero-title {
	font-size: clamp(1.8rem, 6vw, 4.0rem);
  color: #00008b;
  text-shadow:
    -1px -1px 0 #ffffff,
     1px -1px 0 #ffffff,
    -1px  1px 0 #7fffff,
     1px  1px 0 #7fffff;
  font-weight: 700;
}
.hero-content .wp-block-search {
  max-width: 420px;
  width: 100%;
}
/*hero説明*/
.hero-description {
  font-size: clamp(0.9rem, 4vw, 1.8rem);
  line-height: 1.6;
}

/*検索ボックス*/
.search.is-hidden {
	display: none !important;
}
.search.wp-block-search {
  max-width: 440px;
  width: 100%;
  margin: 24px auto 0;
  position: relative;
}
.search .wp-block-search__input {
  width: 100%;
  height: 52px;
  padding: 0 64px 0 20px;
  font-size: 16px;
  border-radius: 999px !important;
	appearance: none;
	-webkit-appearance: none;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}
.search .wp-block-search__input::placeholder {
  color: #777;
  font-size: 14px;
}
.search .wp-block-search__input:focus {
  box-shadow:
    0 0 0 3px rgba(0, 149, 217, 0.25),
    0 12px 30px rgba(0, 0, 0, 0.18);
}
.search .wp-block-search__inside-wrapper {
  border-radius: 999px !important;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
}
.search .wp-block-search__button {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #0095d9, #1f4fa3);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}
.search .wp-block-search__button:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.3);
}
.search .wp-block-search__button:active {
  transform: translateY(-50%) scale(0.96);
}
.hero .hero-title {
	white-space: nowrap;
	position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
}
.hero .hero-description {
	color: #fdfdfd;
  font-size: clamp(0.9rem, 4vw, 1.8rem);
  line-height: 1.6;
	font-weight: 500;
	white-space: nowrap;
	position: absolute;
  left: 50%;
  top: 65%;
  transform: translate(-50%, -50%);
}
.hero .search {
  position: absolute;
  left: 50%;
  top: 80%;
  transform: translate(-50%, -50%);
}

/*地図（エリアから探す）*/
.entry-content h2.area-search {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}
.entry-content h2.area-search + * {
  margin-top: 0 !important;
}
.region-map-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto 40px;
}
.region-map-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.region-btn {
  position: absolute;
  padding: 10px 18px;
  background: rgba(0,0,139,0.70);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: all .2s ease;
}
.region-btn:hover {
  background: #1f4fa3;
}
.hokkaido { top: 15%; left: 72%; }
.tohoku   { top: 45%; left: 62%; }
.kanto    { top: 63%; left: 59%; }
.hokuriku-koshinetsu { top: 58%; left: 46%; }
.tokai              { top: 72%; left: 48%; }
.kinki    { top: 72%; left: 37%; }
.chugoku  { top: 71%; left: 24%; }
.shikoku  { top: 79%; left: 28%; }
.kyushu   { top: 85%; left: 16%; }
.okinawa  { top: 90%; left: 4%; }

/*生き物・地形から探す、ダビングメニューから探す*/
/*カードグループ*/
.creature-card-wrap,
.terrain-card-wrap,
.diving-menu-wrap {
  display: grid;
  /*grid-template-columns: repeat(4, 1fr);*/
	 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-width: 1200px;
  margin: 24px auto 40px;
  padding: 0 20px;
	align-items: start;
	/* ★追加：表示制限の設定 */
  overflow: hidden;
  max-height: 250px; /* カードの高さ(画像150px+テキスト等)に合わせて1行分に設定 */
  transition: max-height 0.6s ease;
  position: relative;
}
/* ★追加：もっと見るが押された時の展開状態 */
.creature-card-wrap.is-open,
.terrain-card-wrap.is-open,
.diving-menu-wrap.is-open {
  max-height: 2000px; /* 十分な高さ */
	transition: max-height 1s ease-in-out;
}
/* ★追加：1行目の下に「続きがある感」を出すグラデーション */
.creature-card-wrap::after,
.terrain-card-wrap::after,
.diving-menu-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
  transition: opacity 0.3s;
}
/* 展開後はグラデーションを消す */
.creature-card-wrap.is-open::after,
.terrain-card-wrap.is-open::after,
.diving-menu-wrap.is-open::after {
  opacity: 0;
}

/*生き物・地形・ダイビングメニューカード*/
.creature-card {
  background: #e5ffff;
  border: 1px solid #7fffff;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
	margin: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	display: flex;           
  flex-direction: column; 
}
.terrain-card {
  background: #fff2e5;  
  border: 1px solid #f0dcc8;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  margin: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.diving-menu-card {
  background: #eeeeee;  
  border: 1px solid #1f1f1f;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  margin: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.creature-card img,
.terrain-card img,
.diving-menu-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border-radius: 16px;  
	padding: 10px;
}
.creature-card p,
.creature-card h4,
.terrain-card p,
.terrain-card h4,
.diving-menu-card p,
.diving-menu-card h4 {
  margin: 0px 0 12px;
  font-size: 14px;
  font-weight: 600;
  min-height: 2.6em;    
  display: flex;
  align-items: center;
  justify-content: center;
}
.creature-card figure,
.terrain-card figure,
.divin-menu-card figure {
  margin: 0 !important;
}
.creature-card,
.creature-card > *:last-child {
  margin-bottom: 0 !important;
}
.terrain-card,
.terrain-card > *:last-child {
  margin-bottom: 0 !important;
}
.diving-menu-card,
.diving-menu-card > *:last-child {
  margin-bottom: 0 !important;
}

/* もっと見るボタン */
.wp-block-button.more-btn {
  display: flex !important;
  justify-content: center !important;
  width: 100%;
}
.wp-block-button.more-btn .wp-block-button__link {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 250px;
  width: 100%;
  padding: 12px 28px;
  background: #eee;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 9999px;
  position: relative;
  transition: all 0.3s ease;
	margin-bottom: 50px;
	/* ボタン押下時の青い枠（アウトライン）を消す */
  outline: none;
  /* テキストが選択されないようにする（キャレット対策） */
  user-select: none;
  /* タップ時のハイライト（スマホ等）を消す */
  -webkit-tap-highlight-color: transparent;
}
/* ホバー */
.wp-block-button.more-btn .wp-block-button__link:hover,
.wp-block-button.more-btn .wp-block-button__link.is-active:hover {
  background: #333;
  color: #fff;
}
/* 矢印 */
.wp-block-button.more-btn .wp-block-button__link::after {
  content: "";
  position: absolute;
  right: 22px;
	top: 50%;
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(135deg); 
  transition: transform 0.3s ease;
}

/* --- 開閉ボタンの切り替え演出 --- */
.wp-block-button.more-btn .wp-block-button__link::after {
  transition: transform 0.3s ease, top 0.3s ease;
}
.wp-block-button.more-btn .wp-block-button__link.is-active::after {
  transform: translateY(-50%) rotate(-45deg);
  top: 55%; 
}
.wp-block-button.more-btn .wp-block-button__link.is-active {
  background: #ddd;
  color: #666;
}
.creature-card-wrap,
.terrain-card-wrap,
.diving-menu-wrap {
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.creature-card-wrap.is-open,
.terrain-card-wrap.is-open,
.diving-menu-wrap.is-open {
  transition: max-height 0.8s ease-in-out;
}

/*検索結果ページ*/
.area-shop-page {
  padding-top: 50px; /* ヘッダーとの隙間 */
}
/*エリアタイトル*/
.area-shop-page h1 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  /* 上下のマージン調整 */
  margin-top: 0 !important;
  margin-bottom: 5px !important; 
  border: none !important;
  background: none !important;
}
.area-hero-image {
  width: 100%;
  margin: 0px auto 30px;
	max-width: 500px;
  overflow: visible;
  border-radius: 20px; 
	display: flex;
  justify-content: center;
}
.area-hero-image img {
  width: 100%;
  height: auto !important;
	border-radius: 50px;
  display: block;
  object-fit: certain; 
  max-height: none; /* スマホなどで縦に長くなりすぎるのを防ぐ（お好みで調整） */
}

/*条件絞り込み*/
/* アコーディオンボタン */
.filter-group {
	border-bottom: 1px solid #e9e9e9;
	margin-bottom: 40px;
	padding-bottom: 20px;
}
.filter-toggle {
  cursor: pointer;
  display: inline-flex; 
  align-items: center;
	justify-content: center;
	gap: 20px;
  padding: 10px 0 0px;     
  border: none;       
  background: none;   
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0px;
  position: relative;
  transition: opacity 0.2s ease;
	width: 100%;
	color: #a9a9a9;
}
.filter-toggle:hover {
  opacity: 0.7;        
}
.filter-toggle::after {
  content: "＋";
  position: static;    
  font-size: 1.6rem;
  transform: none;
  line-height: 1;
}
/* 開いている時のアイコン */
.filter-toggle.is-open::after {
  content: "－";
}
/* 中身 */
.filter-wrapper {
  display: none;
  border: 1px solid #e3e3e3;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 50px;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}
.filter-wrapper.is-open {
  display: block;
}
.diving-style-filter {
  display: flex;
	flex-wrap: wrap;
  gap: 8px;
  margin: 20px auto 30px;
	padding: 0px 0 50px;
	border-bottom: 1px solid #e5e5e5
}
.filter-title {
	flex: 0 0 150px; 
	white-space: nowrap;
  font-weight: 700;
  font-size: 16px;
  margin: 0;
  padding-top: 8px;
  color: #333;
}
/* 右側：選択肢のグループ */
.filter-item-wrap {
  flex: 1; 
  display: flex;
  flex-wrap: wrap;
  gap: 8px; 
}
.filter-item {
  /* PCでは「25%から隙間を引いた幅」で計算（＝1行に4つ） */
  flex: 0 0 calc(25% - 8px); 
  box-sizing: border-box;
}
.diving-style-btn {
	display: block;
	width: 100%
  text-align: center;
	font-size: 15px;
  padding: 8px 4px;
	background: #f5f5f5;
	border: 1px solid #ddd;
  border-radius: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipse;
  font-weight: 500;
  color: #888;
  text-decoration: none;
	/* ★ テキスト選択を無効化（キャレット無し） */
  user-select: none;
  -webkit-user-select: none; /* Safari用 */
  -moz-user-select: none;    /* Firefox用 */
  -ms-user-select: none;     /* IE/Edge用 */
}
/* チェックボックスは見せない */
.filter-item input {
  display: none;
	user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}
/* ボタン基本 */
.filter-item .diving-style-btn {
  cursor: pointer;
  transition: all 0.2s ease;
}
/* 選択中 */
.filter-item input:checked + .diving-style-btn {
  background: #a0d8ef;
  color: #000;
  border-color: #0095d9;
}
/* ホバー */
.filter-item .diving-style-btn:hover {
  transform: translateY(-2px);
}
/* ページ遷移後の選択状態復元用 */
.filter-item input:checked + .diving-style-btn,
.filter-item.is-active .diving-style-btn {
  background: #a0d8ef;
  color: #000;
  border-color: #0095d9;
}
.filter-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.filter-submit-btn {
  padding: 10px 20px;
  background: #0073aa;
  color: #fff;
  border: none;
  cursor: pointer;
	border: 2px solid #192f60;
	width: 150px;
	font-weight: 500;
}
.filter-clear-btn {
  padding: 10px 20px;
  background: #f1f1f1;
  color: #333;
  text-decoration: none;
  display: inline-block;
	width: 150px;
	cursor: pointer;
}

.full-area-row {
  /* PC時は4列の1つ分と同じ幅にする */
  flex: 0 0 calc(25% - 8px); 
}

/* 地域一覧を4列のグリッドにする */
.region-items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}: 100%;
}

/*H2の「ショップカード一覧」に魚*/
.shop-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  white-space: nowrap;
  margin-bottom: 5px;
}
.shop-list::before {
  content: none;
}
.shop-list::after {
  content: "";
  display: inline-block;
  width: 60px;   /* ← ここ重要 */
  height: 60px;
  margin-left: 10px;
  background-image: url("http://diving-time.shop/wp-content/uploads/2026/01/26073416-scaled.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  position: relative;
  top: 10px;
}

/*ショップカードの中身*/
.shop-card--row {
  display: flex;
  gap: 20px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  align-items: flex-start;
}
.shop-card {
	margin: 0 auto 24px;
	max-width: 800px;
	justify-content: center;
	position: relative;
}
/*
.shop-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.shop-card a {
  position: relative;
  z-index: 2;
}
.shop-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    transition: all 0.25s ease;
  }
*/
.shop-card--row .shop-thumb {
  width: 220px;
	aspect-ratio: 1 / 1;
  flex-shrink: 0;
}
.shop-card--row .shop-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.shop-card--row .shop-body {
  flex: 1;
	text-align: left;
}
.shop-card--row .shop-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
	text-align: left;
}
.entry-content .shop-card--row .shop-name,
.entry-content .shop-card--row .shop-tag-wrap {
  text-align: left !important;
}

.shop-card--row .shop-area {
  font-size: 13px;
  color: #777;
  margin: 0 0 6px;
}
.shop-card--row .shop-tag-wrap {
  margin-bottom: 8px;
}
.shop-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 999px;
  background-color: #eef6ff;
  color: #1e5bb8;
  font-weight: 500;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
}
.shop-tag:hover {
  background-color: #1e5bb8;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(30, 91, 184, 0.25);
}

.shop-card--row .shop-desc {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}


/*ショップ詳細ページ*/
/*中央揃え*/
.page .entry-title,
.page .entry-content h1,
.page .entry-content h2,
.page .entry-content h3,
.page .entry-content h4,
.shop-tag-wrap {
  text-align: center;
}
.page .entry-content .shop-tag,
.page .entry-content .shop-img,
.page .entry-content .wp-block-image {
  text-align: center;
}
.page .entry-content .shop-img img,
.page .entry-content .wp-block-image img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.shop-details-title {
	text-align: center;
	width: 100%;
}

.shop-basic-information .info-label,
.shop-basic-information .info-value {
  text-align: left;
}

/*H1に魚*/
.shop-details-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
	font-size: 2.2rem;
	white-space: nowrap;
	margin-bottom: 5px;
}
.shop-details-title::before {
  content: none;
}
.shop-details-title::after {
  content: "";
  display: inline-block;
  width: 80px;
  height: 80px;
  margin-left: 10px;
  background-image: url("http://diving-time.shop/wp-content/uploads/2026/01/23758853-scaled.jpg");
  background-size: contain;
  background-repeat: no-repeat;
	position: relative;
	top: 10px;
}

/*ショップタグ詳細ページ専用 */
/*一回無効にする。ページの指定をクラス指定前に入れる。
.shop-tag-wrap.detail-page .shop-tag {
  font-size: 15px; 
  padding: 6px 14px;   
	margin-bottom: 0px !important;
}
*/

/*ショップ詳細ページの画像*/
.shop-gallery {
  display: grid;
  grid-template-columns: 3fr 1fr;   /* 左3：右1 */
  gap: 5px;
  margin: 30px auto 30px;
	padding: 0 40px;
	box-sizing: border-box;
}
.shop-gallery .gallery-main {
  grid-column: 1 / 2;
  grid-row: 1 / 4;  /* 3行分を占有 */
}
.shop-gallery .gallery-sub {
  grid-column: 2 / 3;
}
.shop-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;   
}
.shop-gallery figure,
.shop-gallery .wp-block-image {
  aspect-ratio: 1 / 1;
  margin: 0 !important;
}

/*詳細ページ基本情報*/
/*H2に魚*/
.shop-basic-information-title { 
  margin: 0 0 16px;
  text-align: center;
}
.shop-basic-information-title::before {
  content: none;
}
.shop-basic-information-title::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-left: 15px;
  background-image: url("http://diving-time.shop/wp-content/uploads/2026/01/461634.jpg");
  background-size: contain;
  background-repeat: no-repeat;
	position: relative;
	top: 10px;
}
.shop-info-card {
  display: block;
  text-align: center; 
  max-width: 400px;
  margin: 0 auto 12px;
  padding: 30px 50px;  
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}
.shop-basic-information {
  width: 100%;   
  margin: 0 !important;
}
.entry-content {
	text-align: center;
}
.shop-basic-information .info-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 5px !important;
	padding-bottom: 0px !important;
}
.shop-basic-information .info-row p {
  margin: 0 !important;
}

/* 1列目（ラベル） */
.shop-basic-information .info-label {
  width: 90px;         
  flex-shrink: 0;     
  font-weight: 600;
  color: #555;
	text-align: left;
}
/* 2列目（値） */
.shop-basic-information .info-value {
  flex: 1 1 auto;
  color: #222;
	min-width: 0;
	word-break: break-word;
	overflow-wrap: anywhere;
	max-width: 100%;
}

/*ダイビングスタイル*/
.diving-type-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* PC：4列 */
  gap: 12px;
}

.diving-type-btn {
  display: block;
  text-align: center;
  padding: 15px 20px;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid;
  transition: all .2s ease;
  margin: 0 !important;
  white-space: nowrap;
}

/* ===== 対応している ===== */
.diving-type-btn.is-active {
  background: #a0d8ef;
  color: #000;
  border-color: #0095d9;
}
/* ===== 対応していない ===== */
.diving-type-btn.is-inactive {
  background: #f5f5f5;
  color: #c0c0c0;
  border-color: #f5f5f5;
}
/* ホバー（対応しているだけ反応） */
/*
.diving-type-btn.is-active:hover {
  background: #1f4fa3;
  transform: translateY(-1px);
}*/

/*ターゲットとする生き物や地形*/
/*生き物・地形の見出し*/
.section-marker {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.section-marker::after {
  content: "";
  position: absolute;
  left: -6px;
  bottom: -1px;
  width: calc(100% + 12px);
  height: 8px;
  z-index: -1;
	border-radius: 4px;
}
.creature-title::after {
  background: #7fffff;   
}
.terrain-title::after {
  background: #ffbf7f;   
}
  .creature-card-wrap,
	.terrain-card-wrap {
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .creature-card {
    max-width: 180px;
  }

/* 1. 表示高さの制限（max-height）を解除し、隠れていたカードをすべて表示 */
.diving-shop-detail .creature-card-wrap,
.diving-shop-detail .terrain-card-wrap {
    max-height: none !important;
    overflow: visible !important;
}
/* 2. 下部の「続きがある感」を出す白いグラデーションを消去 */
.diving-shop-detail .creature-card-wrap::after,
.diving-shop-detail .terrain-card-wrap::after {
    display: none !important;
}
/* 3. 個別ページでは「もっと見る」ボタン自体を非表示にする */
.diving-shop-detail .more-btn {
    display: none !important;
}
/* ショップ個別ページのカード内リンクの装飾をリセット */
.diving-shop-detail .creature-card-wrap a,
.diving-shop-detail .terrain-card-wrap a {
    text-decoration: none !important; 
    color: inherit !important;       
}
.diving-shop-detail .creature-card p,
.diving-shop-detail .terrain-card p {
    color: #333 !important;         
    text-decoration: none !important; 
}
.diving-shop-detail .creature-card:hover p,
.diving-shop-detail .terrain-card:hover p {
    text-decoration: none !important;
    color: #000 !important;
}

/*スマホ用レスポンシブ*/
/* ===== モバイル最適化 ===== */
@media (max-width: 768px) {
/*トップページ*/
/*hero*/
	.search .wp-block-search__input {
    height: 44px;            
    padding: 0 56px 0 18px;   
    font-size: 14px;          
    line-height: 1.2;         
  }
  .search .wp-block-search__input::placeholder {
    font-size: 13px;           
    line-height: 1.2;
  }
  .search .wp-block-search__button {
    width: 34px;          
    height: 34px;
    right: 6px;
  }
.hero {
    --search-y: 18%;
  }
  .hero .search {
    top: auto;
    bottom: var(--search-y);
    left: 50%;
    transform: translateX(-50%);
  }
	.search input {
		height: 24px;
    padding: 2px 6px;
    font-size: 14px; 
	}
	
/*エリアから探す*/
	 .region-btn {
    font-size: 8px;
    padding: 6px 10px;
  }
	
/*生き物・地形から探す*/
/* もっと見るボタン */
  .wp-block-button.more-btn
  .wp-block-button__link.wp-element-button {
    /* 横幅を文字＋余白にする */
    width: auto !important;
    max-width: none !important;
    /* 左右幅を少しコンパクトに */
    padding: 10px 50px 10px 40px !important;
    /* テキストサイズはそのまま */
    font-size: 12px !important;
    /* 念のため中央寄せ維持 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* 矢印（after）がある場合 */
  .wp-block-button.more-btn
  .wp-block-button__link::after {
		width: 4px;
		height: 4px;
    right: 30px !important;
  }
	/*ダイビングメニューから探す*/
  .diving-menu-wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 12px;
  }
	 .diving-menu-card img {
    height: 120px;     
  }
	
/*検索結果ページ*/
/*エリアタイトル*/
.area-shop-page h1 {
  text-align: center;
  font-size: 1.3rem !important;
  font-weight: 700;
  margin-top: 0 !important;
  margin-bottom: 5px !important; 
  border: none !important;
  background: none !important;
}
.archive-hero-image {
    margin: 0px 0 20px;
    border-radius: 8px;
    max-height: 200px; 
  }	
	
/*絞り込み機能*/
	.filter-toggle {
    font-size: 1.0rem !important; 
    gap: 10px !important; 
		margin-bottom: 10px;
  }
  .filter-toggle::after {
    font-size: 0.9rem !important; 
  }
	.filter-wrapper {
		padding-top: 0 !important;
	}
	.diving-style-filter {
  margin: 0px auto 0px;
	padding: 0px 0 20px;
}
	.filter-title {
		font-size: 0.9rem;
    flex: 0 0 100%; 
    margin-bottom: 0px;
  }
  .filter-item {
		font-size: 0.9rem;
    flex: 0 0 calc(50% - 8px);
  }
/* 全エリアボタンをスマホ時の2列幅に合わせる */
  .full-area-row .filter-item {
    flex: 0 0 calc(50% - 8px);
  }
  .region-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
	
/*「ショップカード一覧」のデザイン*/
	.shop-list::after {
  content: "";
  display: inline-block;
  width: 30px;   /* ← ここ重要 */
  height: 30px;
	top: 5px;
		
/*ショップカード*/
  .shop-card--row {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
		row-gap: 4px;
  }
  .shop-thumb {
    grid-column: 1;
  }
  .shop-body {
    display: contents;
  }
  .shop-main {
    grid-column: 2;
    align-self: center; /* ← 高さ中央寄せ */
  }
  .shop-name {
    margin: 0 0 10px !important;
    line-height: 1.3;
  }
  .shop-area {
    margin: 2px 0 0 !important;
    line-height: 1.4;
  }
  .shop-tag-wrap,
  .shop-desc {
    grid-column: 1 / -1;
  }
	.shop-tag-wrap {
		margin-bottom: 0 !important;
	}
	
/*ショップ詳細ページ*/
	  .shop-details-title {
    font-size: 1.1rem !important; 
			display: flex;
    /*flex-direction: column;*/
			align-items: center;
			margin-bottom: 0px;
  }
  .shop-details-title::after {
    width: 40px;
    height: 40px;
    top: 5px;
		margin-left: 5px;
  }
  .entry-content {
    padding-left: 14px;
    padding-right: 14px;
  }
	
/*ショップタグ詳細ページ専用 */
/*一回無効にする。ページ名をクラス指定に入れる。
	.shop-tag-wrap {
		margin-bottom: 5px !important;
	}
.shop-tag-wrap.detail-page .shop-tag {
  font-size: 9px; 
  padding: 3px 6px;   
	margin-bottom: 0px;
}
*/
/*ショップ詳細ページ画像*/	
	.shop-gallery {
	padding: 0 10px;
}
	
/* ショップ基本情報カード */
  .shop-info-card {
    max-width: 100%;
    padding: 15px 18px;  
    border-radius: 14px;
  }
  .shop-basic-information .info-row {
    flex-direction: row;   
    align-items: flex-start;
    margin-bottom: 10px;
  }
  .shop-basic-information .info-label {
    width: 70px;
    margin-bottom: 2px;
    font-size: 13px;
		white-space: nowrap;
  }
  .shop-basic-information .info-value {
    font-size: 14px;
		word-break: break-word;
  }
  /* タグを押しやすく */
  .shop-tag {
    padding: 6px 12px;
    font-size: 10px;
    margin: 4px 1px;
  }
  /* 画像サイズ調整 */
  .shop-img img {
    border-radius: 20px;
  }
  /* 見出し */
  .entry-content h1 {
    font-size: 22px;
  }
  .entry-content h2 {
    font-size: 18px;
  }
.shop-info-card {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 16px;
    padding: 22px 16px;
  }
	.shop-basic-information-title {
		margin-bottom: 10px !important;
	}
.shop-basic-information-title::before {
  content: none;
}
.shop-basic-information-title::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-left: 5px;
	margin-bottom: 0px !important;
  background-image: url("http://diving-time.shop/wp-content/uploads/2026/01/461634.jpg");
  background-size: contain;
  background-repeat: no-repeat;
	position: relative;
	top: 2px;
}

main.diving-shop-detail .diving-type-wrap {
        display: flex !important;
        flex-wrap: wrap !important;
        grid-template-columns: none !important; /* repeat(4, 1fr)を完全に消す */
        gap: 8px !important;
        width: 100% !important;
    }
main.diving-shop-detail .diving-type-btn {
        /* デザインは変えず、幅だけ「半分」に固定 */
        flex: 0 0 calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
        box-sizing: border-box !important;
        
        /* 突き抜け防止の3点セット */
        font-size: 11px !important;
        white-space: normal !important; /* これで枠内に収まるようになります */
        padding: 8px 2px !important;
        text-align: center !important;
    }
		
/*生き物カード*/
  .creature-card-wrap,
	.terrain-card-wrap {
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .creature-card {
    max-width: 180px;
  }
	
} /*480px～768px　終わり*/

	
	
@media (max-width: 480px) {
	.shop-card {
		margin-bottom: 0px;
	}
	
.shop-card--row .shop-thumb {
    width: 80px;
    aspect-ratio: 1 / 1;
  }
  .shop-card--row .shop-name {
    font-size: 14px;
    line-height: 1.3;
  }
  .shop-card--row .shop-area {
    font-size: 11px;
  }
  .shop-card--row .shop-desc {
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
  }
	.shop-card {
    max-width: none;     /* 制限解除 */
    width: 100vw;        /* 画面幅いっぱい */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
		 border-radius: 0;    /* 端まで広げるなら角丸解除 */
  }
	

	
	
} /*480px以下ここまで*/

