@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
*/

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

/* TOPページ表示時のみヘッダーを非表示にする */
body.is-front-page-no-header #header,
body.is-front-page-no-header .header,
body.is-front-page-no-header #header-container,
body.is-front-page-no-header .header-container {
    display: none !important;
}

/* グローバルメニューを国旗表示にするCSS */

/* メニュー項目のサイズと余白を調整 */
#navi-in .menu-top > li {
  width: auto;
  margin: 0 5px;
}

/* テキストを非表示にし、国旗のスペースを確保 */
#navi-in .menu-top > li .item-label {
  font-size: 0;
  display: inline-block;
  width: 30px;
  height: 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.content {
    margin-top: 0;
}

/* 各言語メニューに国旗背景を設定 */
/* 日本語 */
#menu-item-4210 .item-label {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 900 600' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='900' height='600' fill='%23FFFFFF'/%3E%3Ccircle cx='450' cy='300' r='180' fill='%23BC002D'/%3E%3C/svg%3E");
}

/* 英語 */
#menu-item-4213 .item-label {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 900 600' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='900' height='600' fill='%23FFFFFF'/%3E%3Crect y='0' width='900' height='46.15' fill='%23B22234'/%3E%3Crect y='92.3' width='900' height='46.15' fill='%23B22234'/%3E%3Crect y='184.6' width='900' height='46.15' fill='%23B22234'/%3E%3Crect y='276.9' width='900' height='46.15' fill='%23B22234'/%3E%3Crect y='369.2' width='900' height='46.15' fill='%23B22234'/%3E%3Crect y='461.5' width='900' height='46.15' fill='%23B22234'/%3E%3Crect y='553.8' width='900' height='46.2' fill='%23B22234'/%3E%3Crect width='360' height='323.1' fill='%233C3B6E'/%3E%3C/svg%3E");
}

/* 簡体字中国語 */
#menu-item-4216 .item-label {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 900 600' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='900' height='600' fill='%23DE2910'/%3E%3Cg fill='%23FFDE00'%3E%3Cpolygon points='225,75 266,200 150,125 300,125 184,200'/%3E%3C/g%3E%3C/svg%3E");
}

/* 繁体字中国語 */
#menu-item-4217 .item-label {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 900 600' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='900' height='600' fill='%23FE0000'/%3E%3Crect width='450' height='300' fill='%23000095'/%3E%3Ccircle cx='225' cy='150' r='90' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

/* 韓国語 */
#menu-item-4218 .item-label {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 900 600' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='900' height='600' fill='%23FFFFFF'/%3E%3Ccircle cx='450' cy='300' r='150' fill='%23CD2E3A'/%3E%3Cpath d='M637.5,300 A187.5,187.5 0 0,1 450,487.5 A187.5,187.5 0 0,1 262.5,300' fill='%230047A0'/%3E%3Cpath d='M262.5,300 A187.5,187.5 0 0,1 450,112.5 A187.5,187.5 0 0,1 637.5,300' fill='%230047A0'/%3E%3C/svg%3E");
}

/* タイ語 */
#menu-item-4214 .item-label {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 900 600' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='900' height='600' fill='%23FFFFFF'/%3E%3Crect width='900' height='100' y='0' fill='%23ED1C24'/%3E%3Crect width='900' height='100' y='100' fill='%23241D4F'/%3E%3Crect width='900' height='200' y='200' fill='%23ED1C24'/%3E%3Crect width='900' height='100' y='400' fill='%23241D4F'/%3E%3Crect width='900' height='100' y='500' fill='%23ED1C24'/%3E%3C/svg%3E");
}

/* ポルトガル語 */
#menu-item-4215 .item-label {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 900 600' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='900' height='600' fill='%23009B3A'/%3E%3Cpath d='M450,550 L850,300 L450,50 L50,300 Z' fill='%23FEDF00'/%3E%3Ccircle cx='450' cy='300' r='170' fill='%23002776'/%3E%3C/svg%3E");
}

/* スペイン語 */
#menu-item-4219 .item-label {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 900 600' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='900' height='600' fill='%23AA151B'/%3E%3Crect width='900' height='300' y='150' fill='%23F1BF00'/%3E%3C/svg%3E");
}

/* フランス語 */
#menu-item-4220 .item-label {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 900 600' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='300' height='600' fill='%23002395'/%3E%3Crect width='300' height='600' x='300' fill='%23FFFFFF'/%3E%3Crect width='300' height='600' x='600' fill='%23ED2939'/%3E%3C/svg%3E");
}

/* ホバー効果 */
#navi-in .menu-top > li:hover {
  background-color: transparent;
}

#navi-in .menu-top > li .item-label:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 5px rgba(0,0,0,0.3);
  background-color: transparent;
  transition: all 0.2s ease;
}

/* アクティブな言語をハイライト */
#navi-in .menu-top > li.current-menu-item .item-label {
  border: 2px solid #CC2055;
  background-color: transparent;
}

/* caption-wrapの背景色も黒に */
#navi-in .menu-top > li .caption-wrap {
  background-color: transparent;
}

/* リンク要素の背景色も黒ベースに（全ての状態） */
#navi-in .menu-top > li a,
#navi-in .menu-top > li a:link,
#navi-in .menu-top > li a:visited,
#navi-in .menu-top > li a:hover,
#navi-in .menu-top > li a:focus {
  background-color: transparent !important;
}

/* クリック時の背景色を透明に */
#navi-in .menu-top > li:active,
#navi-in .menu-top > li:active a,
#navi-in .menu-top > li a:active {
  background-color: transparent !important;
}

/* gy-ページでのクリック時の背景色を#000000に */
.gy-dark-header #navi-in .menu-top > li:active,
.gy-dark-header #navi-in .menu-top > li:active a,
.gy-dark-header #navi-in .menu-top > li a:active {
  background-color: #000000 !important;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  #navi-in .menu-top > li .item-label {
    width: 24px;
    height: 16px;
  }
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

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

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


/* --- 追尾スクロールフッターのスタイル --- */
#scrolling-footer {
    position: fixed; /* 画面下部に固定 */
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0D2142; /* ご指定の背景色 */
    color: #FFFFFF; /* テキストカラー（白） */
    padding: 12px 0; /* 上下の余白を少し増やす */
    overflow: hidden; /* はみ出したテキストを隠す */
    z-index: 9999; /* 他の要素より手前に表示 */
    box-sizing: border-box;
    font-size: 16px; /* 文字サイズを指定 */
    line-height: 1.5; /* 行の高さを指定 */
}

.scrolling-footer-text {
    display: inline-block; /* アニメーションのためにインラインブロック化 */
    white-space: nowrap; /* テキストを折り返させない */
    animation: scroll-left-all-langs 40s linear infinite; /* ★ 速度を3倍にするため 120s から 40s に変更 */
    padding-left: 100%; /* 右端からスタートさせるためのパディング */
}

.scrolling-footer-text span {
    display: inline-block; /* spanもインラインブロックに */
    /* padding-right: 30px; */ /* PHP側でセパレータにスペースを入れているため、通常は不要 */
}

/* 全言語連結テキストスクロールアニメーション */
@keyframes scroll-left-all-langs {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* PHP側でテキストを2回連結しているため、-50%でループ */
    }
}
/* --- 追尾スクロールフッターのスタイルここまで --- */

/* --- gy-topページ専用スクロールフッターのスタイル --- */
/* body要素を相対配置の基準にする */
body:has(#scrolling-footer.gy-top-scrolling-footer) {
    position: relative;
}

#scrolling-footer.gy-top-scrolling-footer {
    position: absolute; /* スクロールに追従しない絶対配置 */
    bottom: 80px; /* フッターの上部に表示するため、フッターの高さ分だけ上げる */
    left: 0;
    width: 100%;
    background-color: #1a1a1a; /* gy-topページのテーマに合わせた背景色 */
    color: #C9A961; /* テキストカラー（茶色寄りの金色） */
    text-shadow: 0 0 8px rgba(201, 169, 97, 0.5), 0 0 15px rgba(201, 169, 97, 0.3), 0 1px 2px rgba(201, 169, 97, 0.3); /* 控えめな光沢効果 */
    padding: 12px 0; /* 上下の余白 */
    overflow: hidden; /* はみ出したテキストを隠す */
    z-index: 999; /* フッターの上に表示（フッターより高いz-index） */
    box-sizing: border-box;
    font-size: 16px; /* 文字サイズを指定 */
    line-height: 1.5; /* 行の高さを指定 */
}

#scrolling-footer.gy-top-scrolling-footer .scrolling-footer-text {
    display: inline-block; /* アニメーションのためにインラインブロック化 */
    white-space: nowrap; /* テキストを折り返させない */
    animation: scroll-left-gy-top 40s linear infinite; /* 横スクロール（右から左へ） */
    padding-left: 100%; /* 右端からスタートさせるためのパディング */
}

#scrolling-footer.gy-top-scrolling-footer .scrolling-footer-text span {
    display: inline-block; /* spanもインラインブロックに */
}

/* gy-topページ専用の横スクロールアニメーション（右から左へ） */
@keyframes scroll-left-gy-top {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* PHP側でテキストを2回連結しているため、-50%でループ */
    }
}

/* gy-topページ専用スクロールフッターのレスポンシブ対応 */
@media screen and (max-width: 768px) {
    #scrolling-footer.gy-top-scrolling-footer {
        bottom: 70px; /* モバイルではフッターの高さに合わせて調整 */
        font-size: 14px; /* モバイルでは少し小さく */
        padding: 10px 0; /* モバイルでは余白を少し減らす */
    }
}

@media screen and (max-width: 480px) {
    #scrolling-footer.gy-top-scrolling-footer {
        bottom: 60px; /* 小さな画面ではフッターの高さに合わせて調整 */
        font-size: 12px; /* 小さな画面ではさらに小さく */
        padding: 8px 0; /* 余白をさらに減らす */
    }
}
/* --- gy-topページ専用スクロールフッターのスタイルここまで --- */

/* gy-プリフィックスページのヘッダー背景色を真っ黒に変更 */
.gy-dark-header #header-container,
.gy-dark-header #header,
.gy-dark-header #navi {
  background-color: #000000 !important;
}

.gy-dark-header .site-name-text {
  color: #ffffff !important;
}

.gy-dark-header .item-label {
  box-shadow: 0 1px 3px rgba(255,255,255,0.2);
  background-color: #000000 !important;
}

/* gy-dark-headerでのホバー時も#000000 */
.gy-dark-header #navi-in .menu-top > li .item-label:hover {
  background-color: #000000 !important;
}

/* gy-dark-headerでのcurrent-menu-itemも#000000 */
.gy-dark-header #navi-in .menu-top > li.current-menu-item .item-label {
  background-color: #000000 !important;
}

/* gy-dark-headerでもリンク要素の背景を透明に */
.gy-dark-header #navi-in .menu-top > li a,
.gy-dark-header #navi-in .menu-top > li a:link,
.gy-dark-header #navi-in .menu-top > li a:visited,
.gy-dark-header #navi-in .menu-top > li a:hover,
.gy-dark-header #navi-in .menu-top > li a:focus,
.gy-dark-header #navi-in .menu-top > li a:active {
  background-color: transparent !important;
}

.gy-dark-header #navi-in .menu-top > li .caption-wrap {
  background-color: transparent !important;
}

/* --- gy-topページ専用のテキストカラー（緑色）スタイル --- */
/* gy-topページのテキスト要素を緑色（#7DFF00）に変更 */
body:has(#scrolling-footer.gy-top-scrolling-footer) .language-text {
    color: #7DFF00 !important;
}

body:has(#scrolling-footer.gy-top-scrolling-footer) .lang-heading {
    color: #7DFF00 !important;
}

body:has(#scrolling-footer.gy-top-scrolling-footer) .lang-name {
    color: #7DFF00 !important;
}

body:has(#scrolling-footer.gy-top-scrolling-footer) .lang-native {
    color: #7DFF00 !important;
}

body:has(#scrolling-footer.gy-top-scrolling-footer) .lang-card {
    color: #7DFF00 !important;
    border-color: #404040;
}

body:has(#scrolling-footer.gy-top-scrolling-footer) .lang-card:hover,
body:has(#scrolling-footer.gy-top-scrolling-footer) .lang-card:focus {
    color: #7DFF00 !important;
    border-color: #7DFF00 !important;
    box-shadow: 0 8px 20px rgba(125, 255, 0, 0.3);
}

body:has(#scrolling-footer.gy-top-scrolling-footer) .lang-card:active {
    color: #7DFF00 !important;
}
/* --- gy-topページ専用のテキストカラー（緑色）スタイルここまで --- */

/* --- gy-商品ページ専用のテキストカラー（緑色）スタイル --- */
/* gy-商品ページの背景色を真っ黒に変更 */
body.gy-dark-theme {
    background-color: #000000 !important;
}

body.gy-dark-theme #header-container,
body.gy-dark-theme #header,
body.gy-dark-theme #navi {
    background-color: #000000 !important;
}

body.gy-dark-theme main#main {
    background-color: #000000 !important;
}

body.gy-dark-theme .store-tablet-container {
    background-color: #000000 !important;
}

body.gy-dark-theme .product-card {
    background: #1a1a1a !important;
}

body.gy-dark-theme .modal-content {
    background-color: #1a1a1a !important;
}

body.gy-dark-theme .store-rules-container {
    background-color: #000000 !important;
}

body.gy-dark-theme .rule-item {
    background: #1a1a1a !important;
}

body.gy-dark-theme .rule-modal-content {
    background-color: #1a1a1a !important;
}

/* gy-topページの背景色も真っ黒に変更 */
body:has(#scrolling-footer.gy-top-scrolling-footer) {
    background-color: #000000 !important;
}

body:has(#scrolling-footer.gy-top-scrolling-footer) main {
    background-color: #000000 !important;
}

body:has(#scrolling-footer.gy-top-scrolling-footer) .site,
body:has(#scrolling-footer.gy-top-scrolling-footer) .site-content,
body:has(#scrolling-footer.gy-top-scrolling-footer) .content-area,
body:has(#scrolling-footer.gy-top-scrolling-footer) .entry-content,
body:has(#scrolling-footer.gy-top-scrolling-footer) .wp-block-group,
body:has(#scrolling-footer.gy-top-scrolling-footer) .wp-block-group__inner-container {
    background-color: #000000 !important;
}

body:has(#scrolling-footer.gy-top-scrolling-footer) .lang-wrapper {
    background-color: #000000 !important;
}

body:has(#scrolling-footer.gy-top-scrolling-footer) .language-banner {
    background-color: #1a1a1a !important;
}

/* gy-商品ページのテキスト要素を緑色（#7DFF00）に変更 */
body.gy-dark-theme .product-section-title {
    color: #7DFF00 !important;
}

body.gy-dark-theme .filter-button {
    color: #7DFF00 !important;
    border-color: #555555;
}

/* 「すべて」ボタンは元の白色に戻す */
body.gy-dark-theme .filter-button[data-category="all"] {
    color: #ffffff !important;
}

body.gy-dark-theme .filter-button:hover {
    color: #7DFF00 !important;
    border-color: #7DFF00 !important;
}

body.gy-dark-theme .filter-button[data-category="all"]:hover {
    color: #ffffff !important;
    border-color: #555555 !important;
}

body.gy-dark-theme .filter-button.active {
    color: #7DFF00 !important;
    border-color: #7DFF00 !important;
}

body.gy-dark-theme .filter-button[data-category="all"].active {
    color: #ffffff !important;
    border-color: #555555 !important;
}

body.gy-dark-theme .product-name {
    color: #ffffff !important;
}

body.gy-dark-theme .product-desc {
    color: #ffffff !important;
}

body.gy-dark-theme .product-price {
    color: #7DFF00 !important;
}

body.gy-dark-theme .product-category {
    color: #ffffff !important;
}

body.gy-dark-theme .toggle-label {
    color: #7DFF00 !important;
}

body.gy-dark-theme #product-search {
    color: #7DFF00 !important;
}

body.gy-dark-theme #product-search::placeholder {
    color: rgba(125, 255, 0, 0.5) !important;
}

body.gy-dark-theme .modal-content {
    background-color: #000000 !important;
}

body.gy-dark-theme .modal-title {
    color: #ffffff !important;
}

body.gy-dark-theme .modal-description {
    color: #ffffff !important;
}

body.gy-dark-theme .modal-category {
    color: #ffffff !important;
}

body.gy-dark-theme .modal-price {
    color: #7DFF00 !important;
}

body.gy-dark-theme .modal-close {
    color: #ffffff !important;
}

body.gy-dark-theme .modal-label {
    background-color: var(--chillaxy-accent) !important;
    color: #ffffff !important;
}

body.gy-dark-theme .modal-type {
    color: #ffffff !important;
}

body.gy-dark-theme .rules-section-title {
    color: #7DFF00 !important;
}

body.gy-dark-theme .rule-title {
    color: #ffffff !important;
}

body.gy-dark-theme .rule-content {
    color: #ffffff !important;
}

/* 「詳細を見る」ボタンを緑色に変更 */
body.gy-dark-theme .rule-view-more {
    color: #7DFF00 !important;
}
/* --- gy-商品ページ専用のテキストカラー（緑色）スタイルここまで --- */

/* h1要素を真っ黒に変更 */
body.gy-dark-theme h1,
body:has(#scrolling-footer.gy-top-scrolling-footer) h1 {
    color: #000000 !important;
}

/* --- カルーセル専用のカラースタイル --- */
/* カルーセルの背景色を真っ黒に変更 */
body.gy-dark-theme .store-tablet-carousel-container {
    background-color: #000000 !important;
}

body.gy-dark-theme .store-tablet-carousel-mode {
    background-color: #000000 !important;
}

body.gy-dark-theme .carousel-header {
    background-color: #000000 !important;
    border-bottom-color: #404040 !important;
}

body.gy-dark-theme .slide-content {
    background-color: #000000 !important;
}

body.gy-dark-theme .carousel-design-minimal .slide-content {
    background-color: #000000 !important;
}

/* カルーセルのテキストを白色に変更 */
body.gy-dark-theme .carousel-title {
    color: #ffffff !important;
}

body.gy-dark-theme .slide-product-name,
body.gy-dark-theme .slide-info .slide-product-name {
    color: #ffffff !important;
}

body.gy-dark-theme .slide-description {
    color: #ffffff !important;
}

body.gy-dark-theme .slide-category {
    color: #ffffff !important;
}

body.gy-dark-theme .carousel-design-minimal .slide-product-name {
    color: #ffffff !important;
}

body.gy-dark-theme .carousel-design-minimal .slide-description {
    color: #ffffff !important;
}

/* カルーセルの価格を緑色に変更 */
body.gy-dark-theme .slide-price {
    color: #7DFF00 !important;
}

/* カルーセルのタイプは白色を維持 */
body.gy-dark-theme .slide-type {
    color: #ffffff !important;
}
/* --- カルーセル専用のカラースタイルここまで --- */