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

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


/* ========================================
   Christmas Logo Decoration 2026
======================================== */

/* SVG素材・サイズ設定 */
:root {
  --xmas-santa: url("https://www.ongakutengoku.com/wp-content/uploads/2026/11/christmas-santa.svg");
  --xmas-tree: url("https://www.ongakutengoku.com/wp-content/uploads/2026/11/christmas-tree-glow.svg");

  --xmas-santa-size-pc: 105px;
  --xmas-tree-size-pc: 44px;

  --xmas-santa-size-sp: 54px;
  --xmas-tree-size-sp: 30px;
}

/* ========================================
   共通設定
======================================== */

.logo-header,
.logo-header > a {
  position: relative;
  overflow: visible;
}

/* 装飾共通 */
.logo-header::before,
.logo-header::after,
.logo-header > a::after,
.logo-menu-button .menu-button-in::before,
.logo-menu-button .menu-button-in::after,
.logo-menu-button::after {
  position: absolute;
  display: block;
  pointer-events: none;
}

/* サンタ＆トナカイ */
.logo-header::before,
.logo-menu-button .menu-button-in::before {
  aspect-ratio: 190 / 84;
  background: var(--xmas-santa) center / contain no-repeat;
  z-index: 5;
  animation: xmas-santa-float 4s ease-in-out infinite;
}

/* クリスマスツリー */
.logo-header > a::after,
.logo-menu-button::after {
  aspect-ratio: 1;
  background: var(--xmas-tree) center / contain no-repeat;
  z-index: 5;
}

/* 雪 */
.logo-header::after,
.logo-menu-button .menu-button-in::after {
  z-index: 4;

  background-image:
    radial-gradient(circle, rgba(180, 207, 228, .85) 1.5px, transparent 2px),
    radial-gradient(circle, rgba(210, 228, 242, .9) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(155, 190, 218, .65) 1px, transparent 1.5px);

  background-size:
    83px 97px,
    59px 71px,
    107px 123px;

  background-repeat: repeat;

  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 15%,
    #000 80%,
    transparent
  );

  animation: xmas-snowfall 10s linear infinite;
}

/* ========================================
   PC：配置設定
======================================== */

/* サンタ＆トナカイ */
.logo-header::before {
  content: "";
  width: var(--xmas-santa-size-pc);
  top: 8px;
  left: calc(50% + 170px);
}

/* クリスマスツリー */
.logo-header > a::after {
  content: "";
  width: var(--xmas-tree-size-pc);
  right: -48px;
  bottom: 2px;
}

/* 雪 */
.logo-header::after {
  content: "";
  width: 420px;
  max-width: 100%;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* スマホ用装飾を非表示 */
.logo-menu-button .menu-button-in::before,
.logo-menu-button .menu-button-in::after,
.logo-menu-button::after {
  content: none;
}

/* ========================================
   スマホ：1023px以下
======================================== */

@media screen and (max-width: 1023px) {

  /* PC用装飾を非表示 */
  .logo-header::before,
  .logo-header::after,
  .logo-header > a::after {
    content: none;
  }

  .logo-menu-button,
  .logo-menu-button .menu-button-in {
    position: relative;
    overflow: visible;
  }

  /* サンタ＆トナカイ */
  .logo-menu-button .menu-button-in::before {
    content: "";
    width: var(--xmas-santa-size-sp);
    top: 5px;
    right: calc(50% + 88px);
    left: auto;
    margin-left: 0;
  }

  /* クリスマスツリー */
  .logo-menu-button::after {
    content: "";
    width: var(--xmas-tree-size-sp);
    top: 13px;
    left: calc(50% + 90px);
    margin-left: 0;
  }

  /* 雪 */
  .logo-menu-button .menu-button-in::after {
    content: "";
    width: 270px;
    height: 56px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* ========================================
   小型スマホ：375px以下
======================================== */

@media screen and (max-width: 375px) {

  :root {
    --xmas-santa-size-sp: 40px;
    --xmas-tree-size-sp: 25px;
  }

  /* サンタ＆トナカイ */
  .logo-menu-button .menu-button-in::before {
    right: calc(50% + 82px);
  }

  /* クリスマスツリー */
  .logo-menu-button::after {
    left: calc(50% + 84px);
  }
}

/* ========================================
   アニメーション
======================================== */

/* サンタの浮遊 */
@keyframes xmas-santa-float {
  0%, 100% {
    transform: translateY(0) rotate(-3deg);
  }

  50% {
    transform: translateY(-6px) rotate(2deg);
  }
}

/* 雪の落下 */
@keyframes xmas-snowfall {
  from {
    background-position:
      0 0,
      20px 0,
      40px 0;
  }

  to {
    background-position:
      83px 194px,
      -39px 213px,
      147px 123px;
  }
}

/* ========================================
   アニメーション軽減設定
======================================== */

@media (prefers-reduced-motion: reduce) {

  .logo-header::before,
  .logo-header::after,
  .logo-menu-button .menu-button-in::before,
  .logo-menu-button .menu-button-in::after {
    animation: none;
  }
}

/* ========================================
   サンタ：クリックギミック
======================================== */

/* JS有効時は元のサンタを非表示 */
.xmas-santa-ready::before {
  visibility: hidden;
}

/* クリック可能なサンタ */
.xmas-santa-button {
  position: fixed;
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  appearance: none;
  background: var(--xmas-santa) center / contain no-repeat;
  cursor: pointer;
  touch-action: manipulation;
  z-index: 10001;
  animation: xmas-santa-float 4s ease-in-out infinite;
}

/* キーボード操作時 */
.xmas-santa-button:focus-visible {
  outline: 2px dashed #c83242;
  outline-offset: 4px;
}

/* 飛行中 */
.xmas-santa-button.is-flying {
  animation: none;
  pointer-events: none;
  z-index: 100000;
}

.xmas-santa-button[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .xmas-santa-button {
    animation: none;
  }
}


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

/*834px以下*/
@media screen and (max-width: 834px){
  .wp-block-gallery.has-nested-images.columns-8 figure.wp-block-image:not(#individual-image) {
    width: calc(12.5% - var(--wp--style--unstable-gallery-gap, 16px)*.875);
}
}

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