/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */



.wp-block-columns {
    /* パディング（内側の余白） */
    padding-top: 35px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;

    /* マージン（外側の余白） */
    margin-top: 20px;
    margin-right: 10px;
    margin-bottom: 20px;
    margin-left: 10px;
}

@media (max-width: 767px) {
  .wp-block-columns {
    padding-left: 10px;
    padding-right: 10px;
    margin-left: 0px;
    margin-right: 0px;
  }
}


.wp-block-button {
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.wp-block-button:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}




/* 研究会テーマ用 h2：要素自体を中央配置 + グラデ文字アニメ */
h2.wp-block-heading.theme-heading {
  /* 位置づけ */
  display: block;                 /* ← ブロック化 */
  width: fit-content;             /* 内容幅だけに縮める */
  width: -moz-fit-content;        /* Firefox 旧対策 */
  margin-left: auto;              /* ← 要素そのものを中央へ */
  margin-right: auto;
  text-align: center;
  text-transform: none;
	
  /* 見た目 */
  font-size: 20px !important;
  font-weight: bold;
  background: linear-gradient(270deg, #009ADE, #FF0000, #009ADE);
  background-size: 600% 600%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  animation: theme-heading-gradient 8s ease infinite;
}

/* 子要素（strong など）にも継承 */
h2.wp-block-heading.theme-heading * {
  background: inherit;
  background-size: inherit;
  background-clip: inherit;
  -webkit-background-clip: inherit;
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  animation: inherit;
}

/* アニメーション */
@keyframes theme-heading-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}



.wp-image-24 {
    animation: glowingImage 4s infinite;
}
    0% {
        filter: brightness(100%);
    }
@keyframes glowingImage {
    50% {
        filter: brightness(150%);
    }
    100% {
        filter: brightness(100%);
    }
}



/* ヘッダーの container 制約を解除してフル幅化 */
#site-header .container,
#site-header-inner.container {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 8px !important;   /* 必要に応じて 0～16px で調整 */
  padding-right: 8px !important;
}

/* ロゴをさらに左に寄せる微調整（必要に応じて数値調整） */
#site-header .custom-logo-link {
  margin-left: -8px !important;  /* 0 ～ -16px 程度で調整 */
}


/* ロゴリンクを無効化 */
#site-logo a {
    pointer-events: none; /* クリックを無効にする */
}





/* —— OceanWPヘッダーを強制固定 —— */
body #site-header.minimal-header.clr {
  position: fixed !important;
  top: 0 !important;
  left: 0; right: 0;
  z-index: 99999 !important;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* WP管理バー（ログイン時）のオフセット */
body.admin-bar #site-header.minimal-header.clr {
  top: 32px !important;
}
@media (max-width: 782px){
  body.admin-bar #site-header.minimal-header.clr {
    top: 46px !important;
  }
}

/* モバイルドロップダウンをヘッダー直下から展開（必要なら） */
body #mobile-dropdown {
  position: fixed !important;
  top: var(--header-h, 74px) !important;
  left: 0; right: 0;
  z-index: 99998 !important;
  max-height: calc(100vh - var(--header-h, 74px));
  overflow: auto;
  background: #fff;
}

/* 初期押し下げ（JSで上書き前の保険）。data-height="74" に合わせる */
body { padding-top: 74px; }
