/*
Theme Name: Kawasemiya
Theme URI: 
Description: Kawasemiya is a WordPress child theme for Lightning.
Template: lightning
Description: 
Author: Setouchi Kotori
Tags: 
Version: 1.00
*/
/* サービス一覧：横幅を広げる */
.service-wide > .wp-block-group__inner-container{
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* カラム間の余白を少し詰める */
.service-wide .wp-block-columns{
  gap: 1.2rem;
}

/* === Authentic Hues: Service cards - robust bottom align (VK + Gutenberg) === */

/* The wrapper that should contain service-cards */
.service-cards > .vk_columns,
.service-cards > .wp-block-columns,
.service-cards > .wp-block-group__inner-container,
.service-cards > .wp-block-vk-blocks-columns {
  display: flex !important;
  align-items: stretch !important;
}

/* The actual columns */
.service-cards .vk_column,
.service-cards .wp-block-column {
  flex: 1 1 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Push buttons to the bottom */
.service-cards .vk_button,
.service-cards .wp-block-button {
  margin-top: auto !important;
}

/* Service list – force 1 column */
.service-list-cards .wp-block-pages-list {
  display: block;
}

.service-list-cards .wp-block-pages-list__item {
  display: flex;
  gap: 32px;
  padding: 32px;
  margin-bottom: 40px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
}

/* Mobile */
@media (max-width: 768px) {
  .service-list-cards .wp-block-pages-list__item {
    flex-direction: column;
  }
}

/* =========================
   Service list (VK 子ページ一覧にも効かせる)
   ========================= */

/* どのブロックでも「service-list-cards」を付けたらカード化する */
.service-list-cards :is(ul, ol) {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* --- 標準 Pages List ブロック（現状のあなたのCSSの強化版）--- */
.service-list-cards .wp-block-pages-list__item {
  display: flex;
  gap: 32px;
  padding: 32px;
  margin: 0 0 40px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
}

/* --- VKの「子ページ一覧」系（クラス名揺れ対策で広めに拾う）--- */
.service-list-cards :is(.vk_postList, .vk-postList, .vk_childPageList, .vk-childPageList) > * {
  /* 2列レイアウト等を崩して1列に寄せたい場合 */
  width: 100%;
  max-width: 100%;
}

.service-list-cards :is(.vk_postList_item, .vk-postList_item, .vk_childPageList_item, .vk-childPageList_item, .vk_postListItem, .vk-postListItem) {
  display: flex;
  gap: 32px;
  padding: 32px;
  margin: 0 0 40px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
}

/* 画像が左、本文が右に来る想定（VK側の画像クラスの揺れ対策） */
.service-list-cards :is(.vk_postList_item, .vk-postList_item, .vk_childPageList_item, .vk-childPageList_item) :is(img, figure) {
  max-width: 220px;
  height: auto;
}

/* モバイルは縦並び */
@media (max-width: 768px) {
  .service-list-cards .wp-block-pages-list__item,
  .service-list-cards :is(.vk_postList_item, .vk-postList_item, .vk_childPageList_item, .vk-childPageList_item, .vk_postListItem, .vk-postListItem) {
    flex-direction: column;
    gap: 16px;
  }

  .service-list-cards :is(.vk_postList_item, .vk-postList_item, .vk_childPageList_item, .vk-childPageList_item) :is(img, figure) {
    max-width: 100%;
  }
}

.service-list-cards .wp-block-pages-list__item,
.service-list-cards :is(.vk_postList_item, .vk-postList_item, .vk_childPageList_item, .vk-childPageList_item, .vk_postListItem, .vk-postListItem) {
  transition: transform .18s ease, box-shadow .18s ease;
}

.service-list-cards .wp-block-pages-list__item:hover,
.service-list-cards :is(.vk_postList_item, .vk-postList_item, .vk_childPageList_item, .vk-childPageList_item, .vk_postListItem, .vk-postListItem):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(0,0,0,0.09);
}
