@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/*Xバナー*/
#jimoto-xbanner {
  position: relative;
  text-align: center;
  width: 600px;
  max-width: 100%;
}
#jimoto-xbanner img {
  width: 100%;
  display: block;
}
#xbanner-town {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.6em 1em;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
  box-sizing: border-box;
}
/************************************
** 地元レストラン
************************************/
.sort-btn {
  padding: 6px 12px;
  margin-right: 8px;
  cursor: pointer;
}
.sort-btn.active {
  font-weight: bold;
  background: #eee;
  border: 1px solid #ccc;
}

.restaurant-list { list-style: none; padding: 0; }
.restaurant-item {
  margin-bottom: 1em;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
	font-size: medium;
}
.rank-gold { background-color: #fffbea; border-color: gold; }
.rank-silver { background-color: #f4f4f4; border-color: silver; }
.rank-bronze { background-color: #fdf3e7; border-color: peru; }

.restaurant-content {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.restaurant-info {
  flex: 1;
}
.restaurant-photo-box {
  flex-shrink: 0;
}
.restaurant-photo {
  width: 200px;
  height: auto;
  border-radius: 4px;
}
@media (max-width: 600px) {
  .restaurant-content {
    flex-direction: column;
  }
  .restaurant-photo {
    width: 100%;
  }
}


/************************************
** タブ分け
************************************/
.jimoto-tabs {
  display: flex;
  gap: 1em;
  list-style: none;
  padding: 0;
  border-bottom: 2px solid #ccc;
  margin-bottom: 1em;
  overflow-x: auto;
}

.jimoto-tabs li {
  padding: 0.5em 1em;
  cursor: pointer;
  background: #eee;
  border-radius: 6px 6px 0 0;
  white-space: nowrap;
}

.jimoto-tabs li.active {
  background-color: #00377F;
  color: white;
}

.jimoto-tab-content {
  display: none;
}

.jimoto-tab-content.active {
  display: block;
}

/************************************
** フッター
************************************/
.jimoto-footer-links {
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
}

.jimoto-footer-links a {
    color: #00377F;
    text-decoration: none;
    font-weight: 600;
}

.jimoto-footer-links a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .jimoto-footer-links {
        display: flex;
        flex-direction: column;
        gap: 4px;
        font-size: 13px;
    }

    .jimoto-footer-links span {
        display: none;
    }
}

