/*
Theme Name: Twenty Twenty-Four Child
Template: twentytwentyfour
*/


/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width:none;
	outline-style: none;
}

:root :where(.wp-block-navigation a:where(:not(.wp-element-button)):hover) {
    text-decoration: none !important;
}

p:empty {
    display: none;
}

p{
margin-top:0 !important;
}

/* メニューのリンク部分を対象にする */
.wp-block-navigation__responsive-container a {
    position: relative;
    text-decoration: none;
    display: inline-block; /* 幅をテキストに合わせる */
    padding-bottom: 5px;   /* 線と文字の間の余白 */
}

/* 線の初期状態（透明・幅0） */
.wp-block-navigation__responsive-container a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;          /* 線の太さ */
    background: #333;     /* 線の色（サイトに合わせて変更してください） */
    transform: scaleX(0);
    transform-origin: bottom left; /* 左から開始 */
    transition: transform 0.3s ease; /* アニメーションの速度 */
}

/* ホバー時の状態（幅を100%にする） */
.wp-block-navigation__responsive-container a:hover::after {
    transform: scaleX(1);
    /* transform-origin: bottom left; /* 左から出て、左に戻る場合はこれ */
}


.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin:0;
}

.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}


.post-thumbnail {
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding:8px 0;
    flex-grow: 1;
font-family: var(--wp--preset--font-family--system-serif);
}

.post-title-wrapper {
    margin-bottom: 15px;
}

.post-main-title {
    font-size: 1em;
    line-height: 1.5;
}

.post-main-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.post-main-title a:hover {
    color: #999;
}

.post-subtitle {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
    margin-top: 8px; /* サブタイトル上の余白 */
}

.post-subtitle a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.post-subtitle a:hover {
    color: #999;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    font-size: 0.95em;
    margin-top: 10px;
}

.post-footer {
    padding: 0 20px 20px;
    margin-top: auto;
}

.read-more {
    display: inline-block;
    padding: 6px 20px;
    background: #333;
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    transition: background 0.3s;
}

.read-more:hover {
    background: #0073aa;
}

.wp-block-query-pagination-numbers a{
margin:0 2px;
padding:6px;
border: 1px solid #000;
}

.title_infobox{
font-size:28px;
font-family: var(--wp--preset--font-family--system-serif);
}

.sub_infobox{
font-size:18px;
font-family: var(--wp--preset--font-family--system-serif);
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
.post-thumbnail img {
    height: 200px;
}
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    border-top: solid 1px #999;
}

table th, table td {
    border-bottom: solid 1px #999;
    padding: 0.8em 1.2em 0.8em 0;
    text-align:left;
}

table th {
width:30%;
}

table.thshort th{
width: 15%;
}


.mini{
font-size:0.8em;
}

h3.widget-title{
margin-bottom:0;
font-size:24px;
}

.entry-subtitle{
font-size:18px;
margin-bottom:8px;
}

.home .home_news .entry-subtitle{
display:none;
}

.archive p.entry-subtitle{
font-size:14px;
margin-bottom:6px;
}

:where(.wp-block-columns) {
    margin-bottom: 0;
}

.taxonomy-category a{
padding:2px 8px;
border:1px solid #000;
margin-right:5px;
}

.wp-block-post-terms__separator{
display:none;
}


.single .wp-block-image img {
margin-bottom:15px;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 16px;
}
table th {
  width: 25%;
  background-color:#fff;
  border: 1px solid #ddd;
  box-sizing: border-box;
  padding: 15px;
  vertical-align: middle;
  text-align: left;
font-size:0.8em;
}
table td {
  border: 1px solid #dddddd;
  background-color:#f9f9f9;
  box-sizing: border-box;
  padding: 15px;
  vertical-align: top;
  text-align: left;
}


@media all and (max-width: 1000px) {
table {
border-top:none;
}

  table th {
    text-align:left;
    display: block;
    width: 100%;
  padding: 10px 13px;
  }
  table th, table td {
    display: block;
    width: 100%;
    border-bottom: none;
  padding: 10px 13px;
  }
  table tr:last-child td:last-child {
    border-bottom: 1px solid #ccc;
  }

table.thshort th{
    width: 100%;
}

.entry-subtitle{
font-size:13px;
line-height:1.7em;
}
.archive .wp-block-post-title{
font-size:20px !important;
}

h3.widget-title{
margin-bottom:0;
font-size:20px;
}

}


#autozip{
    background-color: #0A55BD !important;
}

.flex{
display:flex;
align-items: center;
}

.flex_top{
display:flex;
align-items: flex-start;
gap:60px;
}

div.CF7_req{
display:inline-block;
background-color:#0A55BD;
color:#fff;
font-size:0.7em;
white-space: nowrap;
line-height:1em !important;
padding:3px 6px 4px;
margin-right:8px;
border-radius:4px;
vertical-align:middle;
}

input.wpcf7-text{
box-sizing: border-box;
width:100%;
}

.wpcf7 textarea {
box-sizing: border-box;
width: 100%;
}

input,
input[type="radio"] + label,
input[type="checkbox"] + label:before,
select option,
textarea,
select {
  padding: 1em;
  line-height: 1.4;
  background-color: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 3px;
  -webkit-transition: 0.35s ease-in-out;
  -moz-transition: 0.35s ease-in-out;
  -o-transition: 0.35s ease-in-out;
  transition: 0.35s ease-in-out;
  transition: all 0.35s ease-in-out;
}
input:focus {
  outline: 0;
  border-color: #333;
}

textarea:focus {
  outline: 0;
  border-color: #333;
}
/* 「送信する」ボタン */
.wpcf7 input.wpcf7-submit {
	background-color:#000;
	border-radius:4px;
	color:#fff;
	font-size:1.3rem;
	font-weight:bold;
	margin:30px auto;
	padding:10px 70px;
}

.CF7_btn{
	text-align:center;
	margin-top:20px;
}

.wpcf7-spinner{
	width:0;
	margin:0;
}

.wpcf7-not-valid-tip{
font-size:0.8rem;
color:#ff6000;
}

.miniform input.wpcf7-text {
    box-sizing: border-box;
    width: 90px;
}

.txt_c{
text-align:center;
}

.required-contactform7{
background-color:#000;
color:#fff;
font-size:0.7em;
padding:3px 6px;
margin-right:8px;
border-radius:3px;
}

.spectra-image-gallery__layout--carousel .slick-track {
  display: flex;
  align-items: flex-start;
}

li.cat-item-29{
display:none;
}

ul.wp-block-categories-list ul.children{
margin-top:10px;
}

.uagb-block-5540d993 .spectra-image-gallery__media-thumbnail-caption{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.blogtext .wp-block-uagb-image{
padding-bottom: 15px !important;
}

.onlypc{
display:block;
}




/* 860px以下で通常のメニューを隠し、モバイル用ボタンを表示する */
@media (max-width: 860px) {
    /* 通常のメニューリストを非表示にする */
    .wp-block-navigation__responsive-container:not(.is-menu-open):not(.always-shown) {
        display: none !important;
    }

    /* ハンバーガーボタンを表示する */
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex !important;
    }

li.wp-block-navigation-item.wp-block-navigation-link{
font-size:1.6em !important;

.mob, uag-hide-desktop{
display:block;
}

.onlypc{
display:none;
}

  /* スライドショー全体のコンテナの高さを指定 */
  .spectra-image-gallery, 
  .slick-slide {
    height: 70vh !important; /* 画面高さの70%にする場合（お好みで調整してください） */
    min-height: 400px;      /* 最低でも400pxは維持する場合 */
  }

  /* 中の画像が潰れないように調整 */
  .spectra-image-gallery__media-wrapper img {
    height: 100% !important;
    object-fit: cover;      /* 画像の比率を保ったまま、枠いっぱいに広げる（端は切れます） */
    width: 100%;
  }
}

/* 860pxより大きいときは、強制的に通常のメニューを表示する */
@media (min-width: 861px) {
    .wp-block-navigation__responsive-container {
        display: flex !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* デスクトップ表示ではハンバーガーボタンを隠す */
    .wp-block-navigation__responsive-container-open {
        display: none !important;
    }
.mob, uag-hide-desktop{
display:none !important;
}
}
