/*
Theme Name: SWELL Child (Custom)
Template: swell
Version: 1.0.0
*/

/*
　共通
*/

/* ヘッダー */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}
#post_slider {
  margin-top: 138px;
}
#content {
  padding-top: 138px;
}
.custom-header-fixed-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 48px;
  z-index: 9999;
  display: flex;
  align-items: center;
}
/* ヘッダーボタン */
.wp-block-button.gold-btn .wp-block-button__link {
  display: inline-block !important;
  padding: 14px 40px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-align: center !important;
  text-decoration: none !important;
  background: linear-gradient(90deg, #a76a2c, #e8c27a, #a76a2c) !important;
  border: 2px solid #d8b26a !important;
  border-radius: 50px !important;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.3s ease !important;
}
.wp-block-button.gold-btn .wp-block-button__link:hover {
  background: linear-gradient(90deg, #b57d3c, #f5dba0, #b57d3c) !important;
  transform: translateY(-2px);
  box-shadow: inset 0 3px 5px rgba(255, 255, 255, 0.5),
    inset 0 -3px 6px rgba(0, 0, 0, 0.3), 0 7px 14px rgba(0, 0, 0, 0.35) !important;
}
.wp-block-button.gold-btn .wp-block-button__link {
  position: relative;
  overflow: hidden !important;
}
.wp-block-button.gold-btn .wp-block-button__link::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shine-move 2.5s infinite;
}
@keyframes shine-move {
  0% {
    left: -150%;
  }
  60% {
    left: 120%;
  }
  100% {
    left: 120%;
  }
}

@media (max-width: 959px) {
  .custom-header-fixed-btn {
    display: none;
  }
  #post_slider {
  margin-top: 48px;
}
#content {
  padding-top: 48px;
}
}

@media (max-width: 768px) {
  .top-fixed-cards {
    flex-direction: column;
    gap: 30px; /* 必要なら調整 */
  }
  .left-col,
  .right-col {
    width: 100%;
  }
  .right-col .top-fixed-widget {
    margin-left: 0;
    margin-right: 0;
  }
}

/* サイドバー */
.widget_search .c-widget__title,
.widget_search .wp-block-search__label {
  display: block !important;
}

/*
　トップページ
*/

/* 「ノウハウ」見出し非表示 */
.home .p-postListTab li[role="presentation"]:nth-of-type(2) {
  display: none !important;
}

/* トップページ：投稿一覧上ウィジェットエリア */
.top-fixed-cards {
  display: flex;
  gap: 30px;
  align-items: stretch;
}
.left-col,
.right-col {
  flex: 1;
}
.widget-1,
.p-profileBox {
  height: 100%;
}
.widget-2 {
  margin-bottom: 40px;
}
.block-card-wrapper {
  padding: 0px 0.75em;
}
.block-card-wrapper .p-postList__body {
  padding-top: 1em;
}
.block-card-wrapper .p-postList__title {
  font-size: 16px;
}
.block-card-wrapper .p-postList__excerpt {
  font-size: 13px;
  margin-top: 0.5em;
}
.top-fixed-title {
  padding: 0.5em 1em;
  border-radius: var(--swl-radius--4, 0) var(--swl-radius--4, 0) 0 0;
  margin: -16px -16px 1.5em;
  background: var(--color_main);
  color: #fff;
}
.top-fixed-cards p {
  font-size: 14px;
}
@media (max-width: 768px) {
  .top-fixed-widget {
    flex: 0 0 100%;
  }
}
