@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

.swell-text-list {
    border-top: 1px solid #e1e1e1;
    margin-top: 2rem;
}

.swell-text-list-item {
    border-bottom: 1px solid #e1e1e1;
    padding: 1.2rem 0;
}

.swell-text-list-date {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.swell-text-list-title {
    font-size: 1.3rem;      /* 少し大きめ */
    font-weight: 700;       /* ボールド */
    margin: 0 0 0.4rem 0;
}

.swell-text-list-title a {
    color: #222;
    text-decoration: none;
}

.swell-text-list-title a:hover {
    text-decoration: underline;
}

.swell-text-list-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

.swell-text-pagination {
    margin-top: 2rem;
    text-align: center;
}

/* ページャー */
.swell-text-pagination .page-numbers {
    display: inline-block;
    padding: 0.5em 0.9em;
    margin: 0 0.3em;
    border: 1px solid #b3d7f0;
    background-color: #e6f3fb;
    color: #0073aa;
    text-decoration: none;
    border-radius: 50%; /* 丸くする */
    transition: background-color 0.3s ease;
}

.swell-text-pagination .page-numbers:hover {
    background-color: #cde7f7;
}

.swell-text-pagination .current {
    background-color: #1E90FF;
    color: #fff;
    border-color: #1E90FF;
}


/* ▼ イベントカード全体のグリッド（3カラム）設定 */
.swl-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列 */
  gap: 1.5rem; /* カード間の余白 */
  margin-bottom: 2rem;
}

/* ▼ 個々のカードボックス設定 */
.swl-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.swl-card:hover {
  transform: translateY(-4px);
}

/* ▼ カード内のアイキャッチ画像設定（縦180px、トリミング） */
.swl-card-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top; /* 上寄せ表示 */
  display: block;
}

/* ▼ カード内テキスト部分 */
.swl-card-content {
  padding: 1rem;
}

/* ▼ イベントタイトル */
.swl-card-title {
  font-size: 1.0rem;
  font-weight: bold;
  margin: 0.5rem 0;
  line-height: 1.0;
}

/* ▼ イベント日付 */
.swl-card-date {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.2rem;
}

/* ▼ 抜粋文 */
.swl-card-excerpt {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
}

/* ▼ レスポンシブ対応（タブレットでは2カラム、スマホも2カラム） */
@media (max-width: 1024px) {
  .swl-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ▼ スマホ用も2カラムを維持（1カラムにしない） */
@media (max-width: 640px) {
  .swl-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ページャー */
.swl-pagination {
	margin-top: 2rem;
	text-align: center;
}
.swl-pagination .page-numbers {
	display: inline-block;
	margin: 0 4px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #e0f0ff;
	color: #0073aa;
	text-decoration: none;
	transition: background 0.3s;
}
.swl-pagination .current {
	background: #0073aa;
	color: #fff;
}
.swl-pagination .page-numbers:hover {
	background: #b0dfff;
}

/* 
 * 投稿リストの各アイテム（li）に下線を入れるスタイル
 * SWELLの.p-postList__itemクラスに合わせて調整
 */
.p-postList__item {
  border-bottom: 1px solid #ddd; /* 薄いグレーの下線 */
  padding-bottom: 1em;           /* 下線と次のアイテムの間に余白を確保 */
  margin-bottom: 1em;            /* アイテム間のスペースを確保 */
}

/* 
 * 最後のアイテムには下線と余白をつけない
 * リストの見た目をすっきりさせるため
 */
.p-postList__item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
