/* ============================================================
   Gifted WordPress Heading – V3 Final
   SERVICE 上段 + 黒線 + 日本語タイトル + 黒線
   SWELL干渉完全解除・安定版
============================================================ */

.gw-heading.gw-gifted-v3 {
  text-align: center;
  background: transparent !important;
  margin: 60px auto;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
  box-sizing: border-box;
  border: none !important;
}

/* ===== SERVICE（英語） ===== */
.gw-gifted-v3 .gw-title-en {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #000;
  position: relative;
  display: inline-block;
  padding: 0 1px;
  margin-bottom: 2px;
}

/* SERVICE 左右のゴールドライン */
.gw-gifted-v3 .gw-title-en::before,
.gw-gifted-v3 .gw-title-en::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 3px;
  background: #CFAB6E;
  transform: translateY(-50%);
}
.gw-gifted-v3 .gw-title-en::before { left: -110px; }
.gw-gifted-v3 .gw-title-en::after  { right: -110px; }

/* ===== 黒線 ===== */
.gw-gifted-v3 .gw-line-black {
  width: 500px;
  height: 2px;
  background: #000;
  margin: 10px auto 16px auto;
}

/* ===== 日本語タイトル ===== */
.gw-gifted-v3 .gw-title-jp {
  font-size: 40px;
  font-weight: 700;
  margin: 0;
  padding: 0;
  color: #000;
  line-height: 1.2;
}

/* ===== SWELL 装飾強制解除 ===== */
.post-content h2.gw-title-jp,
.post_content h2.gw-title-jp {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* ===== SP調整 ===== */
@media (max-width: 768px) {
  .gw-gifted-v3 .gw-title-jp { font-size: 32px; }
  .gw-gifted-v3 .gw-line-black { width: 140px; }
  .gw-gifted-v3 .gw-title-en::before,
  .gw-gifted-v3 .gw-title-en::after { width: 70px; left: -80px; right: -80px; }
}

/* ============================================================
   Disable SWELL H2 decoration completely for Gifted headings
============================================================ */
.post-content h2.gw-title-jp::before,
.post-content h2.gw-title-jp::after,
.post_content h2.gw-title-jp::before,
.post_content h2.gw-title-jp::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  border: none !important;
  height: 0 !important;
  width: 0 !important;
}


/* ============================================================
   Gifted Heading – Pattern2 / Gold
============================================================ */

.gw-heading.gw-gifted-v4 {
  text-align: center;
  margin: 80px auto;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
}

.gw-gifted-v4 .gw-title-jp {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px 0;
  color: #000;
}

.gw-gifted-v4 .gw-line-gold {
  width: 200px;
  height: 3px;
  background: #CFAB6E;
  margin: 0 auto 14px auto;
}

.gw-gifted-v4 .gw-title-en {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #000;
}

/* SPレス */
@media (max-width: 768px) {
  .gw-gifted-v4 .gw-title-jp { font-size: 34px; }
  .gw-gifted-v4 .gw-line-gold { width: 140px; }
}


/* ============================================================
   Gifted Heading – Pattern3 Complete Fix v3
============================================================ */

.gw-heading.gw-gifted-v5 {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  text-align: center;
  background: var(--bg-color, #0D1C2B);
  color: #fff;
  padding: 40px 0 46px 0; /* 下を三角用に余裕 */
  position: relative;
  box-sizing: border-box;
}

/* 日本語タイトル */
.gw-gifted-v5 .gw-title-jp {
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 10px 0;
  padding: 0;
}

/* サブタイトル */
.gw-gifted-v5 .gw-title-sub {
  font-size: 20px;
  margin: 0 0 12px 0;
}

/* ゴールドアンダーライン */
.gw-gifted-v5 .gw-line-gold {
  width: 240px;   /* 太さや長さ調整可能 */
  height: 6px;
  background: #CFAB6E;
  margin: 0 auto;
  border-radius: 3px;
  display: block;
}

/* ▼ triangle */
.gw-gifted-v5 .gw-triangle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -18px;   /* 位置 */
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid var(--bg-color, #0D1C2B);
  z-index: 10;
}
