@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/* ===================================================
   1カラム ＆ 画面幅90%可変レイアウト（モニタサイズ適応型）
   =================================================== */
/* サイドバー完全非表示 */
#sidebar,
.sidebar,
.sidebar-menu-button {
  display: none !important;
}

/* 本文上部のSNSシェアボタン群（メニュー）を完全非表示 */
.sns-share.ss-top,
.ss-top {
  display: none !important;
}

/* 画面全体の横幅90%・可変式レイアウト */
.wrap,
#content-in,
.content-in {
  width: 90% !important;
  max-width: 90vw !important;
  margin: 0 auto !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

#main,
.main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  float: none !important;
  box-sizing: border-box !important;
}

.article {
  width: 100% !important;
  max-width: 100% !important;
}

/* ===================================================
   VR妖精郷 共通スタイル（引き継ぎ書・世界観準拠）
   =================================================== */

/* ストーリー・キャンペーン全体ラッパー（画面幅90%に追従） */
.campaign.story {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto 40px auto !important;
  padding: 10px 0;
  line-height: 1.95;
  color: #3d352e;
  box-sizing: border-box !important;
}

/* ページ主題（h2） */
.campaign.story .campaign-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #c46210;
  text-align: center;
  margin: 20px 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #f2a950;
  letter-spacing: 0.05em;
  background: none;
}

/* 導入リード文 */
.campaign.story .campaign-lead {
  font-size: 1.08rem;
  line-height: 2.0;
  text-align: center;
  color: #55483b;
  margin: 24px auto 30px auto;
  padding: 0 16px;
}

/* 区切り線 */
.campaign.story .campaign-divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #e8a864, transparent);
  margin: 35px auto 45px auto;
  width: 80%;
}

/* 各節見出し（h3） */
.campaign.story h3 {
  font-size: 1.45rem;
  color: #8c420b;
  margin: 45px 0 20px 0;
  padding: 10px 16px;
  border-left: 5px solid #e27d2c;
  background: #fdf8f2;
  border-radius: 0 8px 8px 0;
  font-weight: 600;
}

/* 本文段落（p） */
.campaign.story p {
  font-size: 1.02rem;
  margin-bottom: 24px;
  line-height: 1.95;
}

.campaign.story p strong {
  color: #c45700;
}

/* 動画（YouTube 16:9 レスポンシブ対応） */
.campaign.story .media-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 35px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(92, 59, 23, 0.12);
  background: #000;
}

.campaign.story .media-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* 画像ラッパー */
.campaign.story .story-image {
  margin: 35px auto;
  text-align: center;
}

.campaign.story .story-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(92, 59, 23, 0.12);
  transition: transform 0.3s ease;
}

.campaign.story .story-image img:hover {
  transform: translateY(-3px);
}

/* 2列カードグリッド（余白調整・2列強制） */
.world-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
  margin: 20px 0 35px 0 !important;
}

.world-cards-grid > p,
.image-flex-3 > p {
  display: none !important;
}

.world-card {
  background: #ffffff;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  text-align: center;
  border: 1px solid #f0e6dc;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.world-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(196, 98, 16, 0.15);
}

.world-card a {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}

.world-card img {
  width: 100% !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin: 0 auto 8px auto !important;
}

.world-card h4 {
  margin: 8px 0 4px 0 !important;
  color: #c46210 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
}

.world-card p {
  font-size: 0.85rem !important;
  color: #666 !important;
  line-height: 1.5 !important;
  margin: 0 0 8px 0 !important;
}

.world-card .card-link-text {
  display: inline-block;
  color: #e27d2c;
  font-weight: bold;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ギャラリー用（2列表示） */
.image-flex-3 {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 14px !important;
  margin: 20px 0 !important;
}

.image-flex-3 img {
  width: 100% !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

@media screen and (max-width: 640px) {
  .world-cards-grid,
  .image-flex-3 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* スマホ表示最適化 */
@media screen and (max-width: 600px) {
  .campaign.story .campaign-title {
    font-size: 1.45rem;
  }
  .campaign.story .campaign-lead {
    font-size: 0.98rem;
    text-align: left;
  }
  .campaign.story h3 {
    font-size: 1.22rem;
  }
  .campaign.story p {
    font-size: 0.96rem;
  }
  .campaign.story .media-video,
  .campaign.story .story-image {
    margin: 25px 0;
  }
}

/* ===================================================
   風景フォトギャラリー（2列・高精細カード）
   =================================================== */
.photo-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 18px !important;
  margin: 25px 0 40px 0 !important;
}

.photo-gallery-grid > p {
  display: none !important;
}

.photo-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
  border: 1px solid #f0e6dc;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(196, 98, 16, 0.18);
}

.photo-card a {
  display: block;
  overflow: hidden;
  text-decoration: none !important;
  position: relative;
}

.photo-card img {
  width: 100% !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  margin: 0 !important;
}

.photo-card:hover img {
  transform: scale(1.03);
}

.photo-caption {
  padding: 10px 14px 12px 14px;
  text-align: left;
  background: #fff;
  border-top: 1px solid #f9f5f0;
}

.photo-caption h4 {
  margin: 0 0 4px 0 !important;
  font-size: 1.0rem !important;
  font-weight: 700 !important;
  color: #c46210 !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
}

.photo-caption p {
  margin: 0 !important;
  font-size: 0.83rem !important;
  color: #666 !important;
  line-height: 1.5 !important;
}

@media screen and (max-width: 640px) {
  .photo-gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}


/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
