@charset "UTF-8";
/*
    Template: swell
    Theme Name: koshigaya-juku
*/

/*
カスタムボタン
*/
.is-style-more_btn {
  font-weight: bold;
}
.is-style-more_btn a {
  background: transparent;
  width: -moz-fit-content;
  width: fit-content;
  min-width: unset;
  padding: 0.6em 4.3em 0.5em 0.5em;
  box-shadow: none;
  color: var(--color_text);
}
.is-style-more_btn a:hover {
  background: transparent;
  color: inherit;
}
.is-style-more_btn a::after {
  background: #dedad4;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===============================
   heritage-cards 完全固定
================================ */

/* ColumnsをGrid化（SWELL無視） */
.heritage-cards.wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* 各カラムを縦構造固定 */
.heritage-cards > .wp-block-column {
  display: flex !important;
  flex-direction: column;
}

/* 画像余白除去 */
.heritage-cards .wp-block-image {
  margin: 0 !important;
  line-height: 0;
}

.heritage-cards .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* カード本体を高さ100%で伸ばす */
.heritage-cards .card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 24px;
}

/* inner-containerも伸ばす（ここが重要） */
.heritage-cards .card-body > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* ボタンを一番下へ */
.heritage-cards .wp-block-buttons {
  margin-top: auto !important;
  justify-content: flex-end !important;
}


/* タブレット */
@media (max-width: 1024px) {
  .heritage-cards.wp-block-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホ */
@media (max-width: 768px) {
  .heritage-cards.wp-block-columns {
    grid-template-columns: 1fr;
  }
}

/* ボタンの親（buttonsブロック）を右寄せにする決定版 */
.heritage-cards .wp-block-buttons {
  margin-top: auto !important;
  display: flex !important;
  justify-content: flex-end !important; /* 横方向の右寄せ */
  width: 100% !important;              /* 幅を確保 */
  margin-bottom: 0 !important;         /* 念のための余白リセット */
}

/* ボタン（buttonブロック）自体の右寄せ補強 */
.heritage-cards .wp-block-button {
  margin-left: auto !important; /* これで右に押し出します */
  margin-right: 0 !important;
}

/* ===============================
   フッターエリア全体のレイアウト
================================ */

/* --- フッター調整-左 --- */

/* 1. 全体の枠線を強制的に消す */
#swell_prof_widget-4,
#swell_prof_widget-4 .c-widget,
#swell_prof_widget-4 .p-profileBox {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 2. 左揃えの強制維持 */
#swell_prof_widget-4 {
    text-align: left !important;
}

/* 3. 文字サイズとスタイルの徹底 */
#swell_prof_widget-4 .p-profileBox__name {
    font-size: 24px !important;
    font-weight: bold !important;
    text-align: left !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    color: inherit !important;
}

#swell_prof_widget-4 .p-profileBox__job {
    font-size: 18px !important;
    text-align: left !important;
    margin-bottom: 15px !important;
    padding: 0 !important;
}

#swell_prof_widget-4 .p-profileBox__text {
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    padding: 0 !important;
}

/* 4. SNSアイコンの左寄せ */
#swell_prof_widget-4 .p-profileBox__iconList {
    justify-content: flex-start !important;
    margin: 15px 0 0 0 !important;
    padding: 0 !important;
}

/* --- フッター調整-中-右 --- */


/* フッターリンクの線を消す  */
.c-listMenu a {
    border-bottom: none !important;
}

/* タイトル下の線も消す場合 */
.c-widget__title:after, 
.c-widget__title:before {
    display: none !important;
}

/* テキストエリアのマージンの変更 */
.c-listMenu a {
    padding: .2em 1em .2em 1.5em;
}

/* ウイジェット上部のスペースを削除  */
.l-content {
    margin: 0 auto;
}

/* ===============================
   建物ページのレイアウト
================================ */
/* コンテンツとフッター上部との間にスペースをあける  */

.l-mainContent {
    padding-bottom: 4rem;
}

/* カード外枠：角丸を画像に効かせる */

.my-card-item {
    border-radius: 12px;
    overflow: hidden;
}

.my-card-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ===============================
   フッター
================================ */
/* メイン最後のブロック余白を削除 */
#content,
.l-mainContent {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}