/*
Theme Name: Lightning Child 
Theme URI:
Template: lightning
Description:
Author:
Tags:
Version: 0.6.1
*/

body {
  font-size: 16px;
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ",
    Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

.wp-block-latest-posts__post-excerpt {
  font-size: 15px;
}

nav#global-nav strong {
  font-weight: normal;
}

/* --- ベースの設定（スマホ：縦並び） --- */
.custom-layout-group {
  display: flex;
  flex-direction: column; /* 縦に並べる */
  gap: 15px;
  margin-bottom: 30px;
}

.custom-layout-img img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  float: none !important; /* スマホでは回り込みを解除 */
}

/* --- PCの設定（768px以上：理想の横並び） --- */
@media screen and (min-width: 768px) {
  .custom-layout-group {
    flex-direction: row; /* 横に並べる */
    align-items: flex-start;
  }

  .custom-layout-img {
    flex: 0 0 320px; /* 画像の場所を確保（余白込み） */
  }

  .custom-layout-img img {
    margin: 0;
  }

  .custom-layout-text {
    flex: 1;
  }
}

/* --- その他の調整 --- */
.h3.Top {
  margin-bottom: 10px;
}

.rs {
  margin-top: 15px !important;
}

h2.sw {
  clear: both;
  padding-top: 10px;
}

p.rs.btn_more {
  text-align: center;
  width: 100%;
}

/* --- お知らせ --- */
.wp-block-latest-posts__featured-image {
  float: right;
}

a.wp-block-latest-posts__post-title {
  color: #b11718 !important;
  font-weight: bold;
  border-bottom: solid 1px #ccc;
  padding-bottom: 5px;
}

a.wp-block-latest-posts__read-more {
  display: block;
  overflow: hidden;
  float: right;
  padding: 3px 10px;
  text-align: left;
  font-size: 14px;
  line-height: 140%;
  background-color: #efefef;
  white-space: nowrap;
  clear: both;
  margin-top: 1rem;
}

p.btn_contact {
  text-align: center;
  padding: 0;
  margin: 0;
}

p.btn_contact a {
  margin: 0;
}

p.btn_contact a img {
  display: block;
  margin-inline: auto;
  background-color: var(--vk-color-primary);
}
/* サイド　リスト自体の黒丸を消す */
/* リスト自体の黒丸を消す */
.widget_text .textwidget ul.ul_side {
  list-style-type: none !important;
  padding-left: 0 !important;
}

/* リスト項目に矢印（三角形）を追加 */
.widget_text .textwidget ul.ul_side li {
  position: relative;
  padding-left: 18px; /* 矢印の幅に合わせた余白 */
  margin-bottom: 8px; /* 項目間の隙間 */
}

.widget_text .textwidget ul.ul_side li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%); /* 垂直中央揃え */

  /* CSSで三角形を作成 */
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 7px; /* 三角形のサイズ */
  border-color: transparent transparent transparent #666; /* #666の部分を好きな色に変更してください */
}


/* 通常コンテンツ */

.custom-sitemap h3{
    font-size: 1.4rem;
    border-bottom: solid 1px #ccc;
}

h3:where(:not(.wp-block-post-title)):after {
  border: unset;
}
.page-header {
  min-height: 4rem;
}

.page-header-inner {
  margin: 1em auto !important;
}

.entry-title--post-type--page,
h2:where(:not(.wp-block-post-title)) {
  border: unset;
  border-bottom: solid 1px var(--vk-color-primary);

  font-size: 21px;
  font-weight: normal;
  background: #f9f9f9;
  padding-left: 1rem;
}

img.size-medium.wp-image-116.alignright {
  float: right;
}

figure.wp-block-image.aligncenter.size-full.btn_contact {
    background: var(--vk-color-primary);
}

span.mainFootTel a {
    font-size: 2rem;
    color: var(--vk-color-primary);
  
    text-decoration: none;
}

table {
    margin-bottom: 2rem;
}

.wrp_map iframe {
    width: 100%;
}

.wp-block-latest-posts__featured-image {
    float: right;
    margin-left: 10px;
}

.vk-mobile-nav-menu-btn {
    border-color: var(--vk-color-primary);
    background-color: var(--vk-color-primary);
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"%3E%3Cpath stroke="white" stroke-width="2" stroke-linecap="round" stroke-miterlimit="10" d="M4 7h22M4 15h22M4 23h22"/%3E%3C/svg%3E');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px;
    margin-top: 10px;
}

/* ヘッダーの固定を解除 */
.site-header {
    position: static !important;
}

header#site-header.site-header {
    position: static !important;
}

.site-header-container,
.site-header-inner,
header,
header.site-header,
.vk-header,
.lightning-header {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
}

/* モバイルメニューの固定を解除 */
.vk-mobile-nav-menu-btn {
    position: absolute !important;
}

/* 親要素も固定解除し、トップに配置 */
.vk-mobile-nav {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
}

/* メニューの中身（オーバーレイ）は画面に固定して表示させる */
.vk-mobile-nav-menu {
    position: fixed !important;
}

/* サイトマップのスタイル */
.custom-sitemap h2 {
    margin-top: 2rem;
    border-bottom: 2px solid var(--vk-color-primary);
}
.custom-sitemap h3 {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    border-left: 4px solid var(--vk-color-primary);
    padding-left: 10px;
}
.custom-sitemap ul {
    margin-bottom: 1rem;
}
