@charset "UTF-8";

/*
Theme Name: 福塩線でお出かけ
Theme URI: https://fukuenline.net/
Description: 「福塩線でお出かけ」専用のCocoon子テーマ
Template: cocoon-master
Author: sakotomo
Author URI: https://fukuenline.net/
Version: 1.0.0
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/* 基本デザイン */
body {
  color: #333;
  background: #fff;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Noto Sans JP",
    "Yu Gothic",
    sans-serif;
}

/* サイト全体 */
#container {
  background: #fff;
}

/* ヘッダー */
#header-container {
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: none;
}

/* グローバルメニュー */
#navi {
  background: #fff;
  border-bottom: 1px solid #eee;
}

#navi .navi-in > ul > li > a {
  color: #333;
  font-weight: 600;
}

/* 見出し */
.article h2,
.main h2 {
  color: #333;
  background: transparent;
  border: 0;
  border-bottom: 2px solid #333;
  padding: 0 0 12px;
}

/* 記事カード */
.entry-card-wrap {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry-card-wrap:hover {
  transform: translateY(-3px);
}

.entry-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: none;
}

.entry-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* アイキャッチ画像 */
.entry-card-thumb img {
  width: 100%;
  object-fit: cover;
}

/* 記事タイトル */
.entry-card-title {
  color: #333;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 700;
}

/* 投稿日など */
.e-card-info {
  color: #888;
  font-size: 12px;
}

/* サイドバー */
.sidebar .widget {
  border: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 24px;
  margin-bottom: 28px;
}

/* スマートフォン */
@media screen and (max-width: 480px) {
  .entry-card-title {
    font-size: 15px;
    line-height: 1.5;
  }
}


--

/************************************
** サイドバー：駅から探す
************************************/
.station-widget {
  margin: 0 0 32px;
  padding: 0;
  background: #fff;
}

.station-widget-title {
  margin: 0 0 14px;
  padding: 0 0 12px;
  color: #333;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #444;
  font-size: 18px;
  font-weight: 700;
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.station-item {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 72px;
  padding: 10px 5px;
  color: #333;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.station-item:nth-child(odd) {
  padding-right: 10px;
}

.station-item:nth-child(even) {
  padding-left: 10px;
}

.station-item:hover {
  color: #287c72;
  background: #f7faf9;
  text-decoration: none;
}

/* 駅番号の丸印 */
.station-icon {
  display: inline-flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-right: 9px;
  color: #fff;
  background: #2f8f83;
  border: 4px solid #dff2ee;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
  transition: transform 0.2s ease;
}

.station-item:hover .station-icon {
  transform: scale(1.06);
}

.station-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.station-list-link {
  display: block;
  padding: 15px 4px 0;
  color: #888;
  font-size: 13px;
  text-align: right;
  text-decoration: none;
}

.station-list-link:hover {
  color: #287c72;
  text-decoration: none;
}

/* サイドバーが狭い場合 */
@media screen and (min-width: 835px) {
  .sidebar .station-grid {
    grid-template-columns: 1fr;
  }
}

/* サイドバー幅に余裕がある場合は2列 */
@media screen and (min-width: 1100px) {
  .sidebar .station-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* スマートフォン */
@media screen and (max-width: 480px) {
  .station-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    margin-right: 8px;
  }

  .station-name {
    font-size: 12px;
  }
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}


/************************************
** トップPR：画面幅いっぱい
************************************/
.recommended {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none;
  margin: 0 0 40px -50vw !important;
  padding: 0 !important;
  overflow: hidden;
}

/* Cocoonのwrap幅を解除 */
.recommended-in,
.recommended-in.wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* PC：3枚を画面幅いっぱいに配置 */
.recommended .navi-entry-cards {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
}

.recommended .navi-entry-cards .a-wrap,
.recommended.rcs-card-margin .navi-entry-cards .a-wrap {
  position: relative;
  flex: 0 0 33.333333%;
  width: 33.333333% !important;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* 画像を16:9で統一 */
.recommended .card-thumb {
  width: 100%;
  margin: 0;
}

.recommended .card-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.recommended .a-wrap:hover .card-thumb img {
  transform: scale(1.03);
}

/* 画像上のタイトル */
.recommended .card-title {
  padding: 0 22px;
  color: #fff;
  font-size: clamp(15px, 1.3vw, 21px);
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.85);
}

/* PRラベル */
.recommended .a-wrap::before {
  content: "PR";
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  color: #fff;
  background: #00a7c4;
  border-radius: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
}

/************************************
** スマホ：全幅の横スクロール
************************************/
@media screen and (max-width: 834px) {
  .recommended {
    margin-bottom: 28px !important;
  }

  .recommended .navi-entry-cards {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .recommended .navi-entry-cards::-webkit-scrollbar {
    display: none;
  }

  .recommended .navi-entry-cards .a-wrap,
  .recommended.rcs-card-margin .navi-entry-cards .a-wrap {
    flex: 0 0 85%;
    width: 85% !important;
    scroll-snap-align: start;
  }

  .recommended .card-title {
    padding: 0 16px;
    font-size: 15px;
  }
}