*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  color: #333;
  line-height: 1.6;
  background-image: url('../img/contour-bg.webp');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

header {
  background-color: white;
  padding: 8px 0;
  text-align: center;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header a{
  display: inline-block;
  vertical-align: bottom;
}

.logo {
  height: 48px;
  margin: 0 auto;
}

main {
  max-width: 100%;
  overflow-x: hidden;
  padding-bottom: 50px;
}

.slider-section {
  width: 100%;
  overflow: hidden;
}

.slider-container {
  width: 100%;
  overflow: hidden;
  padding: 32px 0;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-content {
  display: flex;
  gap: 16px;
  animation: slideAnimation 100s linear infinite;
}

@keyframes slideAnimation {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * (326px + 16px) * 11));
  }
}

.slide {
  flex: 0 0 326px;
  height: 216px;
}

.slide-inner {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slide-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-content {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.round-tag {
  display: inline-block;
  background-color: #096FB6;
  color: white;
  font-size: 18px;
  padding: 4px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.sub_text{
  font-size: 20px;
  color: #096FB6;
  margin-bottom: 24px;
  border-bottom: 3px dotted;
  border-top: 3px dotted;
  max-width: 640px;
  margin: 0 auto 16px;
  padding: 8px;
}

.main-title {
  color: #096FB6;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 24px;
  line-height: 1.3;
}

.description-box {
  background-color: white;
  border-radius: 24px;
  padding: 32px 32px 17px 32px;
  margin-bottom: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.description-text {
  font-size: 18px;
}

.highlight-text {
  display: inline;
  position: relative;
  z-index: 1;
  background-image: linear-gradient(to right, #B4EAF6, #096FB6);
  background: -webkit-gradient(linear, left top, right top, from(#096FB6), to(#B4EAF6));
  background: -webkit-linear-gradient(left, #096FB6 0%, #B4EAF6 100%);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 0.2em;
  padding-bottom: 4px; 
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-size 1s ease-out, color 1s ease-out;
}

.highlight-text.highlight-animate {
  background-size: 100% 0.2em;
  font-weight: bold;
  color: #096FB6;
}

.description-box p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.dotted-line {
  border: none;
  border-top: 2px dotted #096FB6;
  margin: 28px 0 24px;
}

.section-title {
  color: #096FB6;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

.elevation-info-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.elevation-info {
  border: 1px solid #096FB6;
  border-radius: 5px;
  overflow: hidden;
  width: 48%;
  max-width: 360px;
}

.elevation-header {
  background-color: #096FB6;
  color: white;
  padding: 8px;
  font-weight: bold;
}

.elevation-info.medium .elevation-header {
  background-color: #096FB6;
}

.elevation-info.high .elevation-header {
  background-color: #096FB6;
}

.temp-diff {
  padding: 10px;
  font-weight: bold;
  border-bottom: 1px solid #E0E0E0;
}

.highlight {
  color: #096FB6;
  font-size: 20px;
}

.temperature-table {
  width: 100%;
}

.temp-row {
  display: flex;
  border-bottom: 1px solid #E0E0E0;
}

.temp-row:last-child {
  border-bottom: none;
}

.temp-label-hi, .temp-label-low, .temp-value {
  padding: 8px;
  text-align: center;
}

.temp-label-hi {
  width: 50%;
  background-color: #FFF1F1;
  font-size: 14px;
}

.temp-label-low {
  width: 50%;
  background-color: #F2FCFF;
  font-size: 14px;
}

.temp-value {
  width: 50%;
  color: #333;
}

.note {
  font-size: 12px;
  color: #666;
  margin-top: 15px;
}

.cool-camping-logo {
  text-align: center;
  padding: 0 0 24px;
}

.cool-camping-logo img {
  max-width: 200px;
  margin: 0 auto 16px;
}

.cool-camping-logo p {
  color: #096FB6;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.filter-section {
  max-width: 640px;
  margin: 0 auto 48px;
  width: 100%;
}

.filter-container {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-group {
  width: 100%;
}

.filter-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

.elevation-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.filter-btn {
  padding: 12px 20px;
  border-radius: 100px;
  border: 1px solid #096FB6;
  background-color: white;
  color: #096FB6;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  flex: 1;
  text-align: center;
  max-width: 192px; 
}

.filter-btn:hover {
  background-color: #E6F3FF;
}

.filter-btn.active {
  background-color: #096FB6;
  color: white;
}

.area-select-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.area-select {
  width: 100%;
  padding: 12px 20px;
  border-radius: 100px;
  border: 1px solid #999999;
  background-color: white;
  color: #333;
  font-size: 16px;
  appearance: none;
  cursor: pointer;
}

.area-select-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 24px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.filter-clear {
  display: flex;
  justify-content: center;
}

.clear-btn {
  background: none;
  border: none;
  color: #096FB6;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 5px 10px;
  transition: opacity 0.3s;
}

.clear-btn:hover {
  opacity: 0.7;
}

.clear-icon {
  margin-right: 5px;
  font-size: 18px;
}

.result-container {
  max-width: 960px;
  margin: 0 auto 20px;
  padding: 0 20px;
}

.result-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #999999;
}

.result-count {
  text-align: center;
}

.result-count p {
  font-size: 16px;
  color: #666;
}

.result-count span {
  font-weight: bold;
  font-size: 20px;
}

.view-toggle {
  display: none;
}

.no-results {
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  margin: 30px auto;
  max-width: 600px;
}

.no-results p {
  margin-bottom: 10px;
  color: #666;
}

.no-results p:first-child {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.campsite-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.area-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  z-index: 2;
}

.area-badge.hokkaido-tohoku {
  background-color: white;
  color: #096FB6;
}

.area-badge.kanto {
  background-color: white;
  color: #096FB6;
}

.area-badge.hokuriku-koshinetsu {
  background-color: white;
  color: #096FB6;
}

.area-badge.tokai {
  background-color: white;
  color: #096FB6;
}

.area-badge.kansai {
  background-color: white;
  color: #096FB6;
}

.area-badge.chugoku-shikoku {
  background-color: white;
  color: #096FB6;
}

.area-badge.kyushu-okinawa {
  background-color: white;
  color: #096FB6;
}

.campsite-card {
  background-color: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  height: 100%;
}

.campsite-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.campsite-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.campsite-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.campsite-image:hover img {
  transform: scale(1.05);
}

.campsite-info {
  padding: 8px 16px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.campsite-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
}

.meta-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.meta-icon {
  font-size: 13px;
  margin-right: 6px;
  color: #333;
  text-align: center;
  display: flex;
  padding: 4px 8px 4px 8px;
  border: 1px solid #ddd;
  background: #efefef;
  border-radius: 8px;
  width: 64px;
}

.meta-icon p{
  padding-left: 4px;
}

.meta-text {
  font-size: 14px;
  color: #333;
}

.detail-btn {
  display: block;
  background-color: #FFD700;
  color: #333;
  padding: 8px 0;
  border-radius: 50px;
  text-align: center;
  font-weight: bold;
  transition: background-color 0.3s;
  margin-top: auto;
  position: relative;
}

.detail-btn:hover {
  background-color: #FFC800;
}

.arrow {
  font-size: 18px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.sticky-filter {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transform: translateY(-100%);
  transition: transform 0.3s;
}

.sticky-filter.visible {
  transform: translateY(0);
}

.sticky-filter-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sticky-filter-buttons {
  display: flex;
  gap: 10px;
}

.sticky-btn {
  padding: 8px 15px;
  border-radius: 100px;
  border: 1px solid #096FB6;
  background-color: white;
  color: #096FB6;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.sticky-btn:hover {
  background-color: #E6F3FF;
}

.sticky-btn.active {
  background-color: #096FB6;
  color: white;
}

.sticky-area-select {
  padding: 8px 35px 8px 15px;
  border-radius: 100px;
  border: 1px solid #999999;
  background-color: white;
  color: #333;
  appearance: none;
  font-size: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%23096FB6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.sns-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.sns-link:hover {
  transform: translateY(-3px);
}

footer {
  color: white;
  text-align: center;
  padding: 15px 0;
  font-size: 12px;
}

.sp-only {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-filter {
  animation: fadeIn 0.5s ease-out;
}

@media (min-width: 769px) {
  .campsite-list.list-view .campsite-name {
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
  }
}

@media (max-width: 768px) {

  body{
    background-image: url(../img/sp-contour-bg.webp);
  }

  header{
    padding: 0;
  }

  .slider-container {
    padding: 24px 0;
  }

  .main-title {
    font-size: 32px;
    margin-bottom: 24px;
  }

  .filter-section{
    padding: 24px;
    margin-bottom: 0;
  }

  .filter-title{
    font-size: 16px;
    margin-bottom: 8px;
  }

  .filter-container{
    padding: 16px;
  }
  
  .slide {
    flex: 0 0 calc(33.333% - 16px);
    height: 140px;
  }

  .description-box {
    margin-bottom: 32px;
  }

  .description-text {
    font-size: 16px;
  }

  .cool-camping-logo{
    padding-bottom: 0;
  }

  .elevation-info-container {
    flex-direction: column;
    align-items: center;
  }
  
  .elevation-info {
    width: 100%;
  }
  
  .elevation-buttons {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }
  
  .filter-btn {
    width: calc(33.33% - 6px);
    max-width: none; 
    padding: 8px; 
    font-size: 14px; 
    border-radius:8px;
    line-height: 1.2;
  }

  .area-select{
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .campsite-list {
    grid-template-columns: 1fr;
  }

  .campsite-list.grid-view {
    grid-template-columns: repeat(2, 1fr); 
    gap: 16px;
  }
  
  .campsite-list.list-view {
    grid-template-columns: 1fr;
  }
  
  .campsite-list.grid-view .campsite-card {
    display: flex;
    flex-direction: column;
    height: auto;
    margin-bottom: 0;
  }
  
  .campsite-list.grid-view .campsite-image {
    width: 100%;
    height: 120px;
  }
  
  .campsite-list.grid-view .campsite-info {
    padding: 10px;
  }
  
  .campsite-list.grid-view .campsite-name {
    font-size: 14px;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  
  .campsite-list.grid-view .campsite-meta {
    margin-bottom: 10px;
  }
  
  .campsite-list.grid-view .meta-item {
    margin-bottom: 5px;
  }
  
  .campsite-list.grid-view .meta-icon {
    font-size: 11px;
    padding: 3px 6px;
  }
  
  .campsite-list.grid-view .meta-text {
    font-size: 11px;
  }
  
  .campsite-list.grid-view .detail-btn {
    padding: 6px 0;
    font-size: 11px;
  }
  
  .campsite-list.grid-view .arrow {
    display: none;
  }

  .campsite-list.grid-view .detail-btn span:not(.arrow) {
    display: none;
  }

  .campsite-list.grid-view .area-badge {
    font-size: 10px;
    padding: 3px 6px;
  }

  .view-toggle {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 8px;
  }
  
  .view-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #999999;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999999;
    transition: all 0.3s;
  }
  
  .view-btn.active {
    background-color: #096FB6;
    border: 1px solid #096FB6;
    color: white;
  }
}

@media (max-width: 576px) {
  .sp-only {
    display: block;
  }

  body{
    background-image: url(../img/sp-contour-bg-s.webp);
  }

  .main-title{
    font-size: 28px;
  }
  
  .slide {
    flex: 0 0 calc(50% - 16px);
    height: 120px;
  }

  .round-tag{
    font-size: 16px;
  }
  
  .filter-section {
    padding: 24px;
  }
  
  .description-box {
    padding: 20px 15px;
  }

  .highlight-text {
    padding-bottom: 2px; 
  }

  .campsite-list.grid-view .detail-btn{
    font-size: 10px;
  }
  
  .sticky-filter-buttons {
    gap: 5px;
  }
  
  .sticky-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .sticky-area-select {
    max-width: 120px;
    padding: 6px 25px 6px 10px;
    font-size: 11px;
  }
}