/*
Theme Name: Asukaya Theme
Author: Y's corporation
Description: 株式会社あすかや様オリジナルテーマ
Version: 1.0  2026-02
*/

* {
  font-family:"Yu Mincho","YuMincho", serif;
}
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

/* すべての要素に適用　　 width の中に border や padding を含めて計算するようになります。 news-card用に　*/
*, *::before, *::after {
    box-sizing: border-box;
}

/* main　*/
.page main, .error404 main{
	max-width:1300px;
	margin:0 auto 50px;
}

.main-visual {
    /* 背景画像の設定 */
    background-image: url('assets/images/wordpress/main-back.png'); /* パスは実際のフォルダ構成に合わせて調整 */
    background-repeat: no-repeat;
    background-position: center topr;
    background-size: cover; /* 枠いっぱいに広げる場合。隙間を作りたいなら contain */

    /* 余白の調整 */
    padding: 20px 0; /* スライダーの上下に背景を見せたい場合に数値を調整 */
}
@media (min-width: 1501px) {
  .main-visual img{
	  border-radius:10px;
   }
}
/* スライダー自体の位置微調整（必要に応じて） */
.metaslider {
    margin: 0 auto;
}

/*concept*/
@media(max-width:769px){
	.page-id-9 .only-pc {	display:none;}
	.page-id-9 .only-sp img{
		width:100%;
		max-width:640px;
		display:block;
		margin:-40px auto 0;
	}
}
@media(min-width:821px){
	.page-id-9 .only-sp {	display:none;}
}
/*concept*/


/*　News */
/* 背景を幅いっぱいに表示する設定 */
.wp-block-group.news {
    /* 背景画像の設定 */
    background-image: url('assets/images/wordpress/newsBK.png');
    background-repeat: repeat;     /* 小さい画像を縦横に繰り返す */
    background-size: auto;        /* 画像本来のサイズで表示（拡大しない） */
    background-position: top left; /* 左上を起点に並べる */

    /* ブラウザ幅いっぱいに広げる設定 */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    /* 上下の余白（お好みで調整） */
    padding-top: 5px;
    padding-bottom: 30px;
}

/* 中身のコンテンツは中央に寄せる */
.wp-block-group.news .wp-block-group__inner-container {
    max-width: 1300px; /* サイトのメイン幅に合わせてください */
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}


.news p {
		    color: #713455;
    font-weight: bold;
	font-size: clamp(1.8rem, 2.2vw, 2.5rem);
	display: flex;
    align-items:center;
gap: 2rem;
	line-height: 1.2;
}

.news p a {
	background:#713455;
	border-radius:50px;
	color:#fff;
	padding:0.5em 2em;
	font-size:0.5em;
	line-height:1;
	transition: 0.3s ease;
}
.news p a:hover {
	background:#8a4a6b;
}


@media(max-width:820px){
	.news p {
		font-size: clamp(1.5rem, 1.8vw, 1.8rem);
	}
	.news p a {
	margin-left:-2rem;
}
}
@media(max-width:540px){
	.news p a {
	margin-left:-3rem;
}
}
@media(max-width:400px){
	.news p a {
	margin-left:-5rem;
}
}
/*　/News */

/*　TOPページバナー　着付け教室等 */
.top-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
}

.banner3 {
  grid-column: 1 / 3;
}

.banner-sp {
  display: none;
}

@media (max-width: 1300px) {
	.top-banners {
		width: 96%;
    margin: 0 auto;
}
}
@media (max-width: 768px) {
.banner-pc {
    display: none;
  }

  .banner-sp {
    display: block;
  }
  .top-banners {
    grid-template-columns: 1fr;
		gap: 1rem;

  }

  .banner3 {
    grid-column: auto;
  }
}

/*nishida 追加分  html→カラムブロック画像ツール入力*/
@media screen and (max-width: 1300px) {
  .banner-all{
	   max-width:96%;
		 margin:0 auto;
  }
}

/* スマホ表示（767px以下）：画像間の隙間を10pxに */
@media screen and (max-width: 767px) {
    /* カラム全体の隙間設定を10pxに固定 */
    .rental-cleaning-banner.wp-block-columns {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important; /* ← これで上下の間隔を10pxにします */
    }

    /* 各カラム（画像）の独自マージンを解除して gap に任せる */
    .rental-cleaning-banner > .wp-block-column {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        flex-basis: 100% !important;
    }

    /* figure（画像の親要素）の余白もゼロにする */
    .rental-cleaning-banner figure {
        margin: 0 !important;
    }

    /* 画像の下にできる数ピクセルの隙間を消す */
    .rental-cleaning-banner img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
    }
}

/*　/ TOPページバナー　着付け教室等 */




/* Page header　サブページヘッダー */
.page-id-62 .pageHeader {
  background: url("https://www.asukaya.com/wp-content/themes/asukaya/assets/images/pages/pageBK00.jpg") center;
		background-color:rgba(0,0,0,0.20);
background-blend-mode:darken;
  background-size: cover;
  color: #fff;
  padding: 5% 0;
}
.page-id-64 .pageHeader {
  background: url("https://www.asukaya.com/wp-content/themes/asukaya/assets/images/pages/pageBK01.jpg") center;
		background-color:rgba(0,0,0,0.20);
background-blend-mode:darken;
  background-size: cover;
  color: #fff;
  padding: 5% 0;
}


/* 404 */
.error-404 .page-content{
	max-width:1300px;
	width:80%;
	font-size:1.2em;
	margin:5% auto;
}
.error-404 .return-home{
	border:1px solid;
  border-radius: 5px;
  text-align: center;
	margin:5% auto;
	padding:10px;
	width:300px;

}
/**/

/* page-id-68 --- privacypolicy */
.page-id-68 main{
	max-width:1200px;
	width:95%;
}
.page-id-68 .page-content h3{
	color: #713455;
	border-bottom:1px dashed;
}

/* --- スマホ表示（ブレイクポイント 767px 以下） --- */
@media screen and (max-width: 767px) {
 .page-id-68 .page-content {
        font-size: 14px;   /* スマホでは14pxに落としてスッキリさせる */
        line-height: 1.7;  /* 画面が狭いので行間もわずかに調整 */
        padding: 0 10px;   /* 左右に適切な余白を作る */
    }

.page-id-68 .page-content h3 {
        font-size: 16px;   /* 見出しもスマホ用にサイズダウン */
    }

 .page-id-68 .page-content ul li {
        font-size: 13.5px; /* リストも同様に調整 */
    }
}


/* page-id-64 --- cleaning   page-id-62 --- rental    page-id-66 --- sitemap */
/* h2  各ペ＾ジ共通見出し*/
.page-id-64 .page-content h2,.page-id-62 .page-content h2, .archive .main-content h1, .single .main-content h1, .page-id-66 .page-content h2 {
  position: relative;
	margin-top:40px;
  padding: 1.5em 1em;
  background-image: url('https://www.asukaya.com/wp-content/uploads/2026/02/h2-back.png');
  background-repeat: no-repeat;
  background-position: left center; /* 左端の中央に配置 */
font-size: clamp(1.3rem, 1.4vw, 1.6rem);
  line-height: 1.4;
　text-indent:1em;
  display: block;
	background-size: cover;
  color: #333333 !important;
	border-left:#333 double 4px;
}
@media (min-width: 782px) {
.page-id-64 .page-content h2,.page-id-62 .page-content h2, .archive .main-content h1, .single .main-content h1, .page-id-66 .page-content h2 {
	padding: 1em 1em;
	}
}
/**/


/* クリーニングコンセプト--> */
/* PC・タブレットサイズでの重ね合わせ設定 */
.cleaning-concept {
	margin-top:2rem;
}
/* PC・タブレットサイズでの対角線配置設定 */
@media (min-width: 782px) {
    .cleaning-concept {
        overflow: visible !important;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    /* 左側のテキストボックス：幅を少し狭め、重なりを控えめに */
    .cleaning-concept .wp-block-media-text__content {
        background-color: rgba(255, 255, 255, 0.98);
        padding: 40px !important;

        /* 右（画像側）への突き出しを少し減らす */
        margin-right: -8% !important;
        /* 上下のズレを揃える（上へ70px） */
        transform: translateY(-70px);

        z-index: 10;
        position: relative;
        box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.07);
        border-top: 2px solid #713455;
			 border-bottom: 2px solid #713455;
        font-size: 1.2em; /* 少しフォントを小さくしてスッキリさせました */
        text-align: center;
    }

    /* 右側の画像：左側へ大きく広げ、写真を目立たせる */
    .cleaning-concept .wp-block-media-text__media {
        /* 左側へ突き出させてテキストの下に潜り込ませる */
        margin-left: -15% !important;
        width: 115% !important;
        max-width: none !important;

        /* 上下のズレをテキストと揃える（下へ70px） */
        transform: translateY(70px);

        z-index: 1;
        position: relative;
    }

    .cleaning-concept figure img {
        border: 1px solid #f0f0f0;
        width: 100%;
        height: auto;
        /* 写真をより鮮明に見せるための軽い影（任意） */
        box-shadow: 10px 10px 30px rgba(0,0,0,0.05);
    }
}
/* スマホでは重なりを解除し、読みやすさを優先 */
@media (max-width: 781px) {
    .cleaning-concept .wp-block-media-text__content {
        margin-right: 0 !important;
        transform: none !important;
        padding: 5px 8px 0px  !important;
			font-size:1em;
		  margin-bottom:-10px!important;
    }
	.cleaning-concept .wp-block-media-text__media {
        transform: none !important;
    }
    .cleaning-concept .wp-block-media-text__content br {
        display: none!important;
	}
}
/* <--クリーニングコンセプト */


/* クリーニングflow --> */
.flow_design10 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flow10 {
  padding-left: 0;
}

.flow10 > li {
  list-style-type: none;
  border: 2px solid #713455;
  padding: 20px;
  border-radius: 20px;
}

.flow10 > li:not(:last-child) {
  margin-bottom: 40px;
  position: relative;
}

.flow10 > li:not(:last-child)::after {
  content: '';
  position: absolute;
  border: 20px solid transparent;
  width: 0;
  height: 0;
  bottom: -53px;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  border-top-color: #713455;
}
.flow10 > li dt {
	color:#713455;
	font-weight: bold;
}
.flow10 > li dl dt {
  font-size: 1.4em;
  border-bottom: 1pt dashed #ccc;
  padding-bottom: 0.5em;
  margin-bottom: 0.5em;
}

.flow10 > li .icon10 {
  color: #713455;
  margin-right: 0.5em;
}

.flow10 > li dl dd {
  margin: 0;
}
.star-mark {
    color: #713455;
    margin-right: 2px;
}

/* --- スマホ表示（767px以下）：極小サイズ ＋ 番号強調 --- */
@media screen and (max-width: 767px) {
    /* 外枠：さらにタイトに */
    .flow10 > li {
        padding: 8px 12px;     /* 上下8pxまで圧縮 */
        margin-bottom: 28px;   /* ステップ間の距離をさらに短縮 */
    }

    /* タイトル（ご来店・お伺い など） */
    .flow10 > li dl dt {
        font-size: 0.9rem;     /* 14px強。本文よりは少し大きく */
        padding-bottom: 0.2em;
        margin-bottom: 0.2em;
        display: flex;         /* 数字と文字のラインを揃えるため */
        align-items: baseline;
    }

    /* 【ここがポイント】ステップ番号（01, 02）を大きく */
    .flow10 > li .icon10 {
        font-size: 1.2rem;     /* 数字だけを大きくして目立たせる */
        font-weight: bold;
        margin-right: 0.3em;
        font-family: serif;    /* 明朝体にすると和風の高級感が出ます */
    }

    /* 説明文（dd）：さらに一段階小さく（約12px） */
    .flow10 > li dl dd {
        font-size: 0.78rem;    /* 約12.5px。非常にコンパクトなサイズ */
        line-height: 1.4;
        margin-bottom: 0.1em;
    }

    /* ★印（半衿付け） */
    .star-mark {
        font-size: 0.75rem;
    }

    /* 矢印（三角形）：枠のサイズに合わせてさらに調整 */
    .flow10 > li:not(:last-child)::after {
        border-width: 8px;     /* 三角形をさらに小さく */
        bottom: -28px;         /* 位置をさらに引き上げ */
    }
}

/* <-- クリーニングflow */


/* クリーニングmenu --> */
.cleaning-menu {
    /* 背景画像の設定 */
    background-image: url('https://www.asukaya.com/wp-content/uploads/2026/03/cleaning-back.png');
    background-size: cover;
    background-position: center;

    padding: 60px 20px !important;
    border-radius: 8px; /* 角を少し丸くする場合 */
    position: relative;
    overflow: hidden;
}
/* テーブル全体の枠線をリセット */
.cleaning-menu table,
.cleaning-menu table thead,
.cleaning-menu table th,
.cleaning-menu table td {
   border: none !important; /* すべての線を一度強制消去 */
   border-collapse: collapse;
  border-bottom:1px solid #ccc!important;
	font-size: 1.1em;
}

/* 内側のコンテンツエリア（読みやすくするために白背景を重ねる） */
.cleaning-menu .wp-block-group__inner-container {
    background-color: rgba(255, 255, 255, 0.9); /* 0.9は透明度。画像を見せたいなら0.8に */
    padding: 40px !important;
    max-width: 800px !important;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.cleaning-menu div{
	max-width:700px;
	width:95%;
	margin:10px auto;
}
/* 下線だけ表示 */
.cleaning-menu th, .cleaning-menu td {
    text-align: left;
    padding: 15px 40px;
    border: 1px solid #333!important; /* 見出し下の線 */
}
/* 料金列を右寄せ */
.cleaning-menu td:nth-child(2),
.cleaning-menu th:nth-child(2) {
    text-align: right;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {

	/* 1. 外側の背景画像があるエリアの左右余白をリセット */
    .cleaning-menu {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 2. 白い箱を画面の90%幅にして、中央に寄せる */
    .cleaning-menu .wp-block-group__inner-container {
        width: 95% !important;     /* 画面幅の90% */
        max-width: 95% !important;
        margin: 0 auto !important; /* 左右中央寄せ */
        padding: 25px 15px !important; /* 箱の内側の余白を少し詰める */
        border-radius: 5px;        /* 角を少し丸くすると馴染みます */
    }

    /* 3. 中の要素も100%（＝親の90%いっぱい）に広げる */
    .cleaning-menu div,
    .cleaning-menu .wp-block-table {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 4. テーブル内の文字が詰まりすぎないよう調整 */
    .cleaning-menu th,
    .cleaning-menu td {
        padding: 12px 8px !important; /* 左右の余白を少し削って文字幅を確保 */
        font-size: 0.9em !important;
    }

}



/* 着物レンタル */
#furisode,#houmongi,#shopinfo {
  scroll-margin-top: 100px;
}
@media only screen and (max-width: 820px) {
#furisode,#houmongi,#shopinfo {
    scroll-margin-top: 10px;
  }
}
.kimono-btn {
	margin:8% 0 0;
}
@media only screen and (max-width: 820px) {

.kimono-btn02 {
	margin-top: -20em;
}
}
.kimono-txt {
	font-size: clamp(1.1rem, 1.2vw, 1.3rem);
	font-weight:700;
	color:#713455;
	margin: 3% 0 10%;
}
.furisode-prtxt {
	font-size: clamp(2rem, 2.2vw, 2.2rem);
	font-weight:700;
	color:#713455;
	text-align:center;
	margin:3% 0 5%;
}
@media (max-width: 1024px) {
.furisode-prtxt {
	font-size: 1.8rem;
}
}
@media (max-width: 768px) {
.furisode-prtxt {
	font-size: 1.6rem;
}
}
@media (max-width: 540px) {
.furisode-prtxt {
	font-size: clamp(1.2rem, 1.3vw, 1.5rem);
}
}
.furisode-plan {
    gap: 30px;
}

.furisode-plan .wp-block-column {
    border: 2px solid #6d3655;
    border-radius: 14px;
    padding: 35px 30px;
  font-size: clamp(0.9rem, 1.1vw, 1.2rem);
    display: flex;
    flex-direction: column;

}
.furisode-plan .wp-block-column {
position: relative;
    overflow: hidden;

    background: url("https://www.asukaya.com/wp-content/uploads/2026/03/rental-mbk.jpg") right bottom no-repeat;
	background-size:cover;
}
.furisode-plan .wp-block-column::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to right,
        rgba(255,255,255,0.95) 0%,
        rgba(255,255,255,0.85) 35%,
        rgba(255,255,255,0) 65%
    );

    pointer-events: none;
}
.furisode-plan .wp-block-column > * {
    position: relative;
    z-index: 1;
}

.furisode-plan h3 {
    text-align: center;
    color: #6d3655;
    margin-bottom: 15px;
	font-size: clamp(1.2rem, 1.5vw, 1.8rem);
}
.furisode-plan h3::after{
    content: "";
    display: block;
    width: 30%;
    height: 1px;
    margin: 12px auto 0;
    background: linear-gradient(
        to right,
        transparent,
        #6d3655,
        transparent
    );
}

.furisode-plan p {
    text-align: left;
    margin-bottom: 20px;
}

.furisode-plan ul {
    padding-left: 2em;
	margin:0 0 5%;
}

.furisode-plan li {
    list-style: disc;
    margin-bottom: 8px;
	font-size: clamp(0.9rem, 1.1vw, 1.2rem);
}

.kimono-price,.kimono-price2 {
	font-size: clamp(1.5rem, 2vw, 2.2rem);
	font-weight:800;
	color:#713455;
	margin:2% 0 2%;
}
.kimono-price2 {
	margin:2% 0 0;
}
.tokuten {
		font-size: clamp(0.9rem, 1.1vw, 1.2rem);
	font-weight:600;
	color:#fff;
	margin: 0 0;
	background:#713455;
  padding: 0.3em 0.3em 0.3em 0.8em;
	border-radius: 0.3em;
}
.furisode-txt {
		font-size: clamp(0.9rem, 1.1vw, 1.2rem);
	color:#713455;
	margin:2% 0 2%;
}

.kimono-gallery {
	margin:2% 0 10%;

}
.kimono-gallery-tit {
  padding: 1rem 2rem 1rem 3rem;
  background: #d5c2cc;
	border-radius: 0.3em;
	text-align:left;
	color:#6f3757;
	font-size: clamp(1.1rem, 1.2vw, 1.3rem);
	font-weight:700;
	position:relative;
	margin:5% 0 0;
}
.kimono-gallery-tit::before{
  content:"";
  position:absolute;
  left:1.5rem;
  top:50%;
  transform:translateY(-50%);

  width:4px;
  height:50%;
  background:#6f3757;
  border-radius:3px;
}
@media (max-width:980px){
.furisode-plan ul {
    padding-left: 1em;
}
}
@media (max-width:768px){

.furisode-plan {
    flex-direction: column;
}
.furisode-plan ul {
    padding-left: 2em;
}
}
@media (max-width:520px){
	.furisode-plan .wp-block-column {

    padding: 15px 10px;
	}
.furisode-plan ul {
    padding-left: 1em;
}
}
.rental-flow{
counter-reset: step;
display:grid;
grid-template-columns:repeat(2,1fr);
gap:25px 40px;
list-style:none;
padding:0;
margin:40px 0;
}

.rental-flow li{
position:relative;
padding:18px 20px 18px 55px;
background:#f7f3f5;
border-radius:8px;
font-weight:600;
color:#6f3757;
	font-size: clamp(0.9rem, 1vw, 1.2rem);
}


.rental-flow li::before{
counter-increment: step;
content: counter(step);
position:absolute;
left:15px;
top:50%;
transform:translateY(-50%);

width:28px;
height:28px;
border-radius:50%;
background:#6f3757;
color:#fff;

display:flex;
align-items:center;
justify-content:center;

font-size:0.85rem;
font-weight:700;
}

.rental-flow small{
font-size:1em;
font-weight:600;
color:#6f3757;
}



@media (max-width:768px){

.rental-flow{
grid-template-columns:1fr;
}

.rental-flow li{
padding:18px 20px 18px 55px;
text-align:left;
	width:90%;
	margin:0 auto;
}

.rental-flow li::before{
left:15px;
top:50%;
transform:translateY(-50%);
}
.rental-flow small{
font-size:1em;
font-weight:600;
color:#6f3757;
}
}
/* / 着物レンタル*/


/*sitemap - page-id-66*/
.sitemap {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin:0 auto;
}

.sitemap li {
    margin-bottom: 10px;
}

.sitemap > li {
    border-bottom: 1px double #d4b185; /* 金茶色の二重線（帯締め風） */
    padding-bottom: 8px;
}

.sitemap a {
    text-decoration: none;
    color: #4a4a4a;
    display: inline-block;
    position: relative;
}

/* 擬似要素で小さな桜や丸をアクセントに */
.sitemap > li > a::before {
    content: "●";
    color: #d4b185;
    margin-right: 10px;
    font-size: 0.8em;
}

.sitemap .wp-block-list {
    list-style: none;
    border-top: 1px dotted #d4b185;
    margin-top: 5px;
    padding-top: 5px;
}

/* 投稿ページ */
/* レイアウト全体 */
.flex-container {
    display: flex;
    justify-content: space-between;
    gap: 40px; /* メインとサイドバーの間の隙間 */
    margin-top: 40px;
    margin-bottom: 40px;
}

/* メインコンテンツ（左側） */
.main-content {
    flex: 1; /* 残りの幅をすべて使う */
    min-width: 0; /* はみ出し防止 */
}

/* サイドバー（右側） */
#sidebar {
    width: 300px; /* サイドバーの横幅 */
}


/* お知らせ　*/
#sidebar h2.wp-block-heading {
		font-weight:normal;
	  text-indent:1em;
    border-bottom: 1px solid #713455;
	  padding-bottom: 8px;
	  margin-bottom: 15px;
    font-size: 1.2rem;
}
#sidebar a{
	color:#333;
}
#sidebar a:hover{
	color:#713455;
  font-weight:bold;
}
@media (min-width:769px){
	#sidebar{
		margin-top:30px;
	}
}
@media (max-width:768px){

	#sidebar{
   margin-left:-20px !important;
   width: 100% !important;
	}
}

/* 投稿*/
.post-header .date {
    display: table; /* または block */
    margin-left: auto !important; /* 左側の余白を自動で最大化し、右へ押し出す */
    text-align: right;
	margin-bottom:1em;
		color:#713455;
}
/* 投稿詳細のスタイル微調整 */
.post-header h1 {
    font-size: 1.8rem;
    margin: 10px 0 20px;
}
.post-thumbnail img {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
}
.post-body {
    line-height: 1.8;
}
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* レスポンシブ対応：スマホでは縦並び */
@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
    }
    #sidebar {
        width: 100%;
    }
}


/* カード全体のコンテナ */
.news-card-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* カード間の隙間 */
    margin-top: 30px;
}

/* 個別のカード設定（4列計算：(100% - 隙間20px * 3) / 4） */
.news-card {
    width: calc((100% - 60px) / 4);
    background: #fff;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px); /* ホバー時に少し浮かす */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-card a {
    text-decoration: none;
    color: #333;
    display: block;
}

/* カード画像部分 */
.card-img {
    width: 100%;
    aspect-ratio: 16 / 9; /* 画像の比率を統一 */
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠に合わせて切り抜き */
}

/* カードテキスト部分 */
.card-body {
    padding: 15px;
}

.card-body .date {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.card-body .title {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: bold;
    /* 3行以上は「...」で省略する場合 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .news-card {
        width: calc((100% - 20px) / 2); /* タブレット：2列 */
    }
	.card-body .title {
    font-size: 0.9rem;
	}
}

@media (max-width: 576px) {
		.card-body .title {
    font-size: 0.8rem;
	}
   /* .news-card {
        width: 100%; /* スマホ：1列
    }*/
}

/*投稿ページ　ぺーじナビ*/
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.post-navigation .prev,
.post-navigation .next {
    width: 48%;
}

.post-navigation a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.post-navigation .next a {
    flex-direction: row-reverse; /* 次の記事は画像を右側に */
    text-align: right;
}

.nav-thumb {
    width: 60px; /* 画像のサイズ */
    height: 60px;
    margin: 0 10px;
    flex-shrink: 0;
}

.nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠に合わせてトリミング */
    border-radius: 4px;
}

/* ギャラリーブロックの強制左寄せ・サイズ固定 */
.wp-block-gallery.is-layout-flex {
    justify-content: flex-start !important; /* 左寄せにする */
}

.wp-block-gallery.is-layout-flex .wp-block-image {
    /* flex-growを0にすることで、余白を埋めるための拡大を停止します。
       列数設定（columns-3など）に合わせて自動計算される幅を維持します。
    */
    flex-grow: 0 !important;

    /* 画像間の余白調整（必要に応じて） */
    margin-right: var(--wp--style--block-gap, 16px);
}

/* 最後の列の右余白をリセット */
.wp-block-gallery.is-layout-flex .wp-block-image:last-child {
    margin-right: 0;
}

/*ギャラリーツール　スマホで4列*/
/* スマホ（画面幅767px以下）の場合の調整 */
@media screen and (max-width: 767px) {
    /* ギャラリー内の各画像アイテムの幅を調整 */
    .wp-block-gallery.columns-default .wp-block-image,
    .wp-block-gallery .wp-block-image {
        /* 3枚表示にしたい場合
        width: calc(33.33% - 8px) !important; */

        /* 4枚表示にしたい場合は下の行のコメントを外して、上の行を消してください */
         width: calc(25% - 8px) !important;

        flex-grow: 0 !important;
        margin-right: 8px !important;
        margin-bottom: 8px !important;
    }

    /* 行の右端の余白を調整（カクつき防止） */
    .wp-block-gallery {
        display: flex;
        flex-wrap: wrap;
        gap: 0 !important; /* 標準の隙間をリセットして制御しやすくする */
    }
}
/* /ギャラリーツール　スマホで4列*/



/*投稿ページ　ぺーじナビ*/
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.post-navigation .prev,
.post-navigation .next {
    width: 48%;
}

.post-navigation a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.post-navigation .next a {
    flex-direction: row-reverse; /* 次の記事は画像を右側に */
    text-align: right;
}

.nav-thumb {
    width: 60px; /* 画像のサイズ */
    height: 60px;
    margin: 0 10px;
    flex-shrink: 0;
}

.nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠に合わせてトリミング */
    border-radius: 4px;
}


/* archive.php 投稿一覧ページのページ送り*/
/* ページ送り全体のコンテナを中央寄せ */
.pagination {
    text-align: center;
    margin: 40px 0;
}

/* リンクボタンのスタイル */
.pagination .nav-links {
    display: inline-flex;
    gap: 10px; /* ボタン同士の隙間 */
    justify-content: center;
    align-items: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd; /* 枠線 */
    border-radius: 4px; /* 少し角を丸く */
    text-decoration: none;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 40px;
}

/* マウスを乗せたとき & 現在のページ */
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #7b3f5d; /* お好みのアクセントカラーに */
    color: #fff;
    border-color: #7b3f5d;
}

/* 「次へ」ボタンを少し強調 */
.pagination .next.page-numbers {
    font-weight: bold;
    border-width: 2px;
}

/* スクリーンリーダー用の見出し（h2）を非表示にする */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
