@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/* PC時メインビジュアルの表示位置を調整したい場合は以下を変更する */
.skin-grayish.front-top-page .container .header-container .header {
	background-position: top center;
}	
/* okada memo
モバイル (スマートフォン):600px未満
タブレット:600pxから992px
PC:992px以上
*/
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/

/* モバイル時に表示したい画像のURLを設定する 横向きと縦向き */
<div class="image-wrapper">
  <img class="portrait-image" src="https://sennokanmuri.com/wp-content/uploads/2025/06/nekomata_mob.jpg" alt="縦向き画像">
  <img class_name="landscape-image" src="https://sennokanmuri.com/wp-content/uploads/2025/06/nekomata_pc.jpg" alt="横向き画像">
</div>

.image-wrapper {
  width: 100%; /* 親要素の幅いっぱいに表示 */
}

.portrait-image {
  display: none; /* 初期状態では非表示 */
}

.landscape-image {
  display: none; /* 初期状態では非表示 */
}

@media (orientation: portrait) {

 .skin-grayish.front-top-page .container .header-container .header {
 	background-image: url(https://sennokanmuri.com/wp-content/uploads/2025/06/nekomata_mob.jpg);
	background-position: center center;
  }

  .portrait-image {
    display: block; /* 縦向きの場合に表示 */
  }
}

@media (orientation: landscape) {
 .skin-grayish.front-top-page .container .header-container .header {
 	background-image: url(https://sennokanmuri.com/wp-content/uploads/2025/06/nekomata_pc.jpg);
	background-position: center center;
  }

	.landscape-image {
    display: block; /* 横向きの場合に表示 */
  }	
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
