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

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #f9f9f9;
}

/* ========== Header ========== */
.header {
  background-color: #3a3a3a;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
}

.logo {
  font-size: 26px;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: #000;
}

.header_a {
  display: inline-block;

  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.header_a:hover {
  transform: scale(1.1);
}

/* ハンバーガーメニュー（非表示が初期状態） */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: auto;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px 0;
  transition: 0.3s;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .header {
    padding: 20px;
  }

  .hamburger {
    display: flex;
  }

  .header_a {
    color: #000;
  }

  .nav_list {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    z-index: 1000;
  }

  .nav_list.active {
    display: flex;
  }

  .nav_list li {
    margin: 10px 0;
    color: #000;
  }
}

/* ========== Home ========== */
.home {
  position: relative;
  width: 100%;
  min-height: 100svh;
}

.home_text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.home_text h1 {
  font-size: 50px;
  font-weight: bold;
}

.home_text p {
  font-size: 25px;
  margin-bottom: 2px;
  font-weight: bold;
}


.cta_button {
  width: 270px;
  position: absolute;
  top: 85%;
  left: 85%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  margin-top: 20px;
  display: inline-block;
  padding: 18px 24px;
  background-color: #3a3a3a;
  border-radius: 25px;
  text-decoration: none;
  font-size: 20px;
  overflow: hidden;
}

.cta_button:hover {
  background-color: #fff;
  color: #000;
  border: solid 1px #000;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .home_text {
    width: 90%;
    padding: 0 10px;
  }

  .home_text h1 {
    font-size: 40px;
    line-height: 1.2;
  }

  .home_text p {
    font-size: 20px;
  }

  .cta_button {
    width: 70%;
    left: 50%;
    border: solid 1px;
  }
}

@media (max-width: 480px) {
  .home_text h1 {
    font-size: 30px;
  }

  .home_text p {
    font-size: 18px;
  }

  .cta_button {
    font-size: 18px;
    padding: 8px 16px;
  }
}


/* ========== Search ========== */
.search {
  padding: 30px;
}

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

.search_section {
  padding: 40px 0;
}

.search_content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.search_left {
  flex: 1;
  min-width: 280px;
}

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

.search_title {
  font-size: 32px;
  font-weight: bold;
  border-bottom: 3px solid #000;
  display: inline-block;
  margin-bottom: 20px;
  color: #333;
}

.search_map {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
}

.search_right {
  flex: 1;
  min-width: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 85vh;
}

.button-group {
  margin-bottom: 20px;
  text-align: center;
}

.button-group button {
  margin-right: 10px;
  padding: 8px 16px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background-color: #373737;
  color: white;
  border-radius: 5px;
  transition: all 0.3s ease;
  transform: scale(1);
  overflow: hidden;
}

.button-group button:hover {
  transform: translateY(-5px);
  font-size: 1.1rem;
}

.button-group button.active {
  font-weight: bold;
  padding: 10px 20px;
  font-size: 1.1rem;
  transform: scale(1.05);
}

.page {
  display: none;
  padding: 30px 0;
}

.area_grid {
  display: grid;
  grid-template-columns: repeat(2, 150px);
  gap: 30px;
}

.area_grid button {
  padding: 12px;
  border: 2px solid #000;
  background: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.area_grid button:hover {
  background: #f0f0f0;
  transform: translateY(-5px);
}

.area-menu {
  display: none;
  /* 初期は非表示 */
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.area-menu ul {
  font-size: 12px;
  list-style: none;
}

.area-menu li {
  margin: 8px 0;
}

.area-menu li:hover {
  background: #f0f0f0;
  transform: translateY(-5px);
}

.area-menu.active {
  display: block;
  /* クリックされたら表示 */
}

.grid_text-p {
  font-size: 13px;
}

.wide-button {
  grid-column: span 2;
  padding: 20px;
  font-size: 22px;
  font-weight: bold;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
}

.area_grid .wide-button:hover {
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .search_content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .search_left,
  .search_right {
    width: 100%;
    text-align: center;
  }

  .search_title {
    font-size: 24px;
  }

  .search_subtitle {
    margin-top: 80px;
    font-size: 14px;
  }

  /* 
    .search_map {
      display: none;
    } */

  .area_grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .area_grid button {
    font-size: 14px;
    padding: 10px;
  }
}



/* ========== JumpBTN ========== */
.jump-btn {
  display: flex;
  justify-content: space-between;
  margin-bottom: 100px;
}

.jump-btn a {
  display: inline-block;
  background: #3a3a3a;
  width: 49.8%;
  color: #fff;
  padding: 20px 5px;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  line-height: 1.5;
}

.zoomIn {
  opacity: 1;
  transform: scale(1) translateX(0);
  -webkit-transform: scale(1) translateX(0);
  transition: all 0.2s 0.5s ease-in-out;
}

.jump-form-btn {
  background: #fff;
  color: #2B2B2B;
  padding: 4px;
  box-sizing: border-box;
  border-radius: 50px;
  width: 70%;
  margin: 5px auto;
  font-size: 12px;
  display: block;
  opacity: 0;
  transform: scale(0.6) translateX(0);
  -webkit-transform: scale(0.6) translateX(0);
}

/* ========== RANKING ========== */


/* ==============================
   おすすめジム・ピラティス共通カードデザイン
============================== */

.ranking {
  margin-top: 100px;
}

.ranking h2 {
  color: #000;
  text-align: center;
}

#ranking-pilates {
  margin-top: 100px;
  margin-bottom: 100px;
}

.card_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* デスクトップで3列固定 */
  gap: 24px;
  justify-content: center;
  /* グリッド全体を中央寄せ */
  margin: 30px auto 0;
  max-width: 1080px;
  /* コンテナ幅に合わせる */
}

/* カード個別 */
.card_container {
  display: flex;
  justify-content: center;
  /* カードをセル内中央寄せ */
}

.card {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 2px solid #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* 画像部分 */
.card img.ranking_banner {
  width: 100%;
  height: 65%;
  object-fit: cover;
  display: block;
}

/* テキスト部分 */
.card_content {
  flex: 1;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  overflow: hidden;
}

.card_content h2 {
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  margin-bottom: 4px;
  color: #000;
  line-height: 1.3;
}

.card_content p {
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==============================
   レスポンシブ
============================== */
@media screen and (max-width: 960px) {
  .card_grid {
    grid-template-columns: repeat(2, 1fr);
    /* タブレット2列 */
    gap: 16px;
  }
}


/* ========== NEws/From ========== */
.news-form {
  display: flex;
  position: relative;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  border-left: 2px solid #000;
  margin-top: 100px;
  margin-bottom: 200px;
}

.news-form-category {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: #000;
  transform: translateX(-50%);
}

.news,
.form {
  flex: 1 1 45%;
  padding: 0 20px;
}

.news h2,
.form h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: #000;
}

.news ul {
  list-style: none;
  padding: 0;
}

.news li {
  font-size: 16px;
  margin-bottom: 12px;
}

.form img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 16px;
}

.form p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: center;
  color: #000;
}

.btn {
  display: block;
  width: 80%;
  margin: 0 auto;
  background: #3a3a3a;
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
}

.btn:hover {
  background-color: #555;
  transform: scale(1.2);
  transition: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
  .news-form {
    flex-direction: column;
    border-left: none;
    border-right: none;
    margin-top: 100px;
    margin-bottom: 100px;
  }

  .news-form-category {
    display: none;
  }

  .news {
    padding-bottom: 60px;
    border-bottom: #000 solid 1px;
  }

  .form {
    padding-top: 60px;
  }

  .btn {
    width: 100%;
  }
}

.card_container {
  padding: 10px;
}

/* ========== Footer ========== */
footer {
  background-color: #373737;
  color: white;
  align-items: center;
  padding: 100px 30px;
}

.footer_nav ul {
  list-style: none;
  display: flex;
  text-align: center;
  justify-content: center;
}

.footer_nav a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  transition: 0.3s;
  display: inline-block;
  margin-left: 20px;
}

.footer_nav a:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  footer {
    padding: 50px;
  }

  .footer_nav ul {
    display: block;
  }

  .footer_nav a {
    margin-bottom: 10px;
    font-weight: 500;
  }
}

html {
  color-scheme: only light;
}