/*
Theme Name: WONDER DELIGHT Switch Child
Theme URI: https://wonder-delight.jp/
Description:WordPressテーマ「Switch」のカスタム子テーマです。
Template: switch_tcd063
Author: WONDER & DELIGHT
Author URI:https://wonder-delight.jp/
Version: 2025.5.25.11.10
Text Domain:  switch-child
*/

@media only screen and (max-width: 1199px) {
  .l-header {
    position: absolute !important;
  }
}


footer .p-info__address {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  padding: 0 20px;
  box-sizing: border-box;
  line-height: 1.6;
}

@media screen and (max-width: 767px) {
  footer .p-info__address {
    max-width: 100%;
    padding: 0 15px;
  }
}



/* モバイルの上部メニューを右に表示させる */
@media only screen and (max-width: 1199px) {
    .p-global-nav {
    	right: 0;
    	left: auto;
    	text-align: right;
    }
    .p-global-nav > ul > li > a {
        padding-right:21px;
        padding-left:21px;
    }
}

/* 2025-04-02 フッターを黒背景にする*/
.l-footer .p-info {
    background: #333333;
    color: white;
}
.l-footer .p-footer-nav {
    background: black;
    color: white;
}
.l-footer .p-footer-nav a {
    color: white;
    font-weight: bold;
 }

/* 2025-04-02 ブログのカテゴリー表示をなしに */
.p-entry__meta, .p-entry__meta-box, .p-breadcrumb, .p-headline, .p-entry__related {
   display:none;
}


.single .p-entry {
	background: white;
}

.single .l-primary,
.page .l-primary,
.blog .l-primary {
    max-width: 720px;
    margin-right: auto;
    margin-left:auto;
}

/* 2025-04-02 ヘッダーメニューを太字に */
.p-global-nav > ul > li {
   font-weight: bold;
   font-size: 110%;
}

/* 2025-04-02 ブログのデサインをスッキリ*/
.p-page-header {
    height: 100px;
}
.p-page-header__title {
	display:none;
}
@media screen and (max-width: 991px) {
    .p-page-header {
	    height: 100px;
    }
}
@media screen and (max-width: 767px) {
    .p-page-header {
	    height: 100px;
    }
}

/* ブログのサイドバーをなしにした */
.single .l-secondary, .page .l-secondary {
    display: none;
}
.single .p-date, .single .p-entry__img,
.page .p-date, .page .p-entry__img
{
   display:none;
}

@media only screen and (min-width: 991px) {
    .single .l-contents.l-inner,
    .page .l-contents.l-inner
	{
        width: 75%;
    }
	.single .l-contents .l-primary,
	.page .l-contents .l-primary
	{
		width: 100%;
	}
}

/* ヘッダーメニューの背景色 */
.page .p-global-nav,
.single .p-global-nav {
	background: transparent;
}
.page .l-footer .p-social-nav li a,
.single .l-footer .p-social-nav li a {
   color: white;
}
@media screen and (max-width: 1199px) {
    .page .p-global-nav,
    .single .p-global-nav {
        background: rgba(0, 0, 0, 0.7);
    }
}

/* ブログのタイトル */
.page .p-entry__body h1,
.single .p-entry__title {
    font-size: 24px;
    text-align: center;
	font-weight: bold;
	padding-bottom: 24px;
	margin-top:0;
	margin-bottom: 24px;
    clear: both;
    line-height: 1.4;
	border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 767px) {
    .page .p-entry__body h1,
    .single .p-entry__title {
        font-size: 21px;
	    line-height: 1.4;	
		margin-top:0;
	    margin-bottom: 24px;
		padding-bottom: 18px;
    }
    .page .p-page-header,
    .single .p-page-header {
       margin-bottom: 33px; 
    }
}
/** 記事の横線をスッキリ */ 
.single .wp-block-separator {
    border-top: 1px solid rgba(0, 0, 0, 0.3);
    margin-bottom: 18.8px;
}



.page .p-entry__body {
	margin-top: 0;
}
.single .p-entry__body {
	margin-top: 24px;
}
.page .p-entry__inner,
.single .p-entry__inner {
	padding-top: 0;
}
.page .p-entry__body,
.single .p-entry__body {
	width: 90%;
	margin-left: auto;
	margin-right: auto;
}
@media screen and (max-width: 767px) {
	.page .p-entry__body,
	.single .p-entry__body {
	width: 100%;
		
	}
}


/* トップページのタイトルメッセージ*/
.p-header-content__inner > .p-header-content__title {
	line-height: 2;
	font-size: 32px;
}

@media (max-width: 768px) {
	.p-header-content__inner > .p-header-content__title {
		font-size: 24px;
	}

}

/* トップページ用のCSS*/
#members {
    display: flex;
    flex-wrap: wrap;
        gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
#team, #partners {
    flex: 1;
    min-width: 300px;
}
@media (max-width: 768px) {
    #members {
        flex-direction: column;
   }
    #team, #partners {
        width: 100%;
   }
}
#members ul {
    padding-left: 1.5rem;
}
#members li {
    margin-bottom: 1rem;
}

#members h2 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* 3個パターンの文字を横に長く*/
.p-triangle::before {
   display: none;
}
#cb_content2 > div {
   position: relative;
   width: 48%;
   display:flex;
   margin-bottom: 24px;
}

#cb_content2 > div > a {
order:1;
}
#cb_content2 .p-article08__img img {
   aspect-ratio: inherit;
   object-fit: cover;
}

#cb_content2 .p-triangle--no-padding.p-triangle {
   order:2;
   
   width: 100%;
   padding: 0px;
   height: unset;	
   text-align: center;
   position: unset;
   font-size: 13px;
   color: #333333;
   margin-top: 10px;
   margin-bottom: 10px;
}
#cb_content2 .p-article08__content {
   display:none;
}


@media screen and (max-width: 767px) {
   
   #cb_content2 .p-triangle--no-padding.p-triangle {
       width: 100%;
   }
}

@media screen and (max-width: 550px) {
   #cb_content2 .p-triangle--no-padding, #cb_content2 .p-triangle {
       width: 100%;

   }
   
}
/* タイプライター効果をオーバーライドするスタイル */
.p-header-content__title span,
#js-page-header__desc span {
    visibility: visible !important; /* 最初から表示 */
    opacity: 0; /* 最初は透明 */
    transition: opacity 1s ease;
}

/* スライダーのフェード効果 */
.slick-slider .slick-slide {
    opacity: 0;
    transition: opacity 1s ease;
}

.slick-slider .slick-slide.slick-active {
    opacity: 1;
}
/* CREWの見出しをそろえる */
#cb_content4.p-entry__body h2.p-headline02__title {
    line-height: 1;
    margin-bottom: 0;
}
#cb_content4.p-entry__body .p-headline02__sub {
    line-height: 1;
    margin-bottom: 0;
}

#cb_content4.p-entry__body .p-headline02 p {
    line-height: 1;
    margin-bottom: 0;
}

/* クラスによるスタイル（table.borderless-table */
.borderless-table table {
    border-collapse: collapse;
    width: inherit;
}
  
.borderless-table td, .borderless-table th {
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 8px;
}

/* 2025-04-04 引用のスタイル */
/* WordPress ブロッククォートのスタイル */
.p-entry__body .wp-block-quote {
    position: relative;

    margin: 30px auto;
    margin-bottom: 45px;
    background: none;
    border: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    width: 96%;

    font-family: 'Abril Fatface', cursive;
    font-weight: normal;

    color: #444;
    border: 2px solid #ddd;
    border-radius: 20px;
    padding: 14px 22px;
  }
  
  /* 引用テキスト */
  .p-entry__body .wp-block-quote p {
    font-size: 13.5px;
    position: relative;
    border: none;
    padding: 0;
    margin-bottom: 0;
    line-height: 2;
  }
  
  /* 右側の引用デザイン要素 */

  .p-entry__body .wp-block-quote:before {
    content: "";
  }
  .p-entry__body .wp-block-quote:after {
    content: "";
  }
  .p-entry__body .wp-block-quote.p:before {
    content: "";
  }
  .p-entry__body .wp-block-quote.p:after {
    content: "";
  }

  
  /* 引用元 */
  .p-entry__body .wp-block-quote cite {
    position: absolute;
    right: 12px;
    bottom: -27px;
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    color: #555;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    margin-left: auto;
    margin-right: 30px;
    padding-top: 8px;
    padding-left: 4px;
    border: none;
    text-align: left;
    width: max-content;
    z-index: 1;
  }
  .p-entry__body .wp-block-quote cite:before {
    content: "";
    position: absolute;
    width: 30px;
    border: 6px solid #ffffff; /* 背景色に合わせて調整 */
    top: -3px;
    left: -32px;
    z-index: 2;
  }    
  .p-entry__body .wp-block-quote cite:after {
    content: "";
    position: absolute;
    border: 2px solid #ddd;
    border-radius: 0 100% 0 0;
    width: 30px;
    height: 30px;
    top: -2px;
    left: -38px;
    border-bottom: none;
    border-left: none;
    z-index: 3; 
  }  

/* ギャラリーの画像の縦の最大値*/
.wp-block-gallery.has-nested-images figure.wp-block-image img {
    max-height: 360px;
    object-fit: contain;
}

/* 2025-05-25 ブログリストのリンクが押せなかったので
 * 手前の日付の要素を反応しないようにした 
 **/
.p-blog-list .p-triangle {
   pointer-events: none;
}

/* ギャラリーブロックの下余白を段落に合わせた */
.p-entry__body .wp-block-gallery {
    margin-bottom: 37.6px;
}
