/*
 * 記事の会員限定表示（ClaudeCode依頼文_記事の会員限定表示_20261123.md）
 * 11/18 リニューアル版デザインの決まり：文字は #414863、アイコンは #6E6880、マゼンタ #B157C4 は主ボタンだけ。
 * 枠線・点線・左の縦線は使わない。囲みの見出しは h4 ではなく段落（role=heading）にして、テーマの見出しの縦線が付かないようにする。
 */

.gg-gate-wrap {
  margin: 8px 0 32px;
  color: #414863;
}

/* 3段落目の書き出し（約3行）。下を白へぼかす */
.gg-gate-teaser {
  position: relative;
  max-height: 5.6em;
  overflow: hidden;
  margin-bottom: 4px;
}
.gg-gate-teaser p { margin: 0; }
.gg-gate-teaser::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4.2em;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}

.gg-gate {
  background: #F6F5F8;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #414863;
  font-size: 14px;
  line-height: 1.7;
}
.gg-gate * { box-sizing: border-box; }
.gg-gate p { margin: 0; }

.gg-gate .gg-gate-h {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #414863;
  text-align: center;
  text-wrap: balance;
}
.gg-gate .gg-gate-h::before,
.gg-gate .gg-gate-h::after { content: none; display: none; }

.gg-gate .toc-h,
.gg-gate .ben-h { font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }

.gg-gate .gg-ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: #6E6880;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* この記事の続き */
.gg-gate .toc,
.gg-gate .ben > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(65, 72, 99, .06), 0 6px 20px rgba(65, 72, 99, .07);
}
.gg-gate .toc { padding: 14px 16px; }
.gg-gate .toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gg-gate .toc li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
  border: 0;
  background: none;
}
.gg-gate .toc li::before,
.gg-gate .toc li::marker { content: none; }
.gg-gate .toc li .gg-ico { width: 15px; height: 15px; }
.gg-gate .num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #EFEEF3;
  color: #6E6880;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.gg-gate .toc .gg-rest { display: none; }

/* 登録するとできること（PCは横3列） */
.gg-gate .ben {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.gg-gate .ben.ben-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gg-gate .ben > div {
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.gg-gate .ben b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.gg-gate .ben small { display: block; font-size: 12px; line-height: 1.5; color: #414863; }

/* ボタン */
.gg-gate .acts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin-top: 4px;
}
.gg-gate .btn-primary,
.gg-gate a.btn-primary:visited {
  background: #B157C4;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  min-height: 44px;
  border-radius: 12px;
  border: none;
  width: 100%;
  max-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  text-decoration: none;
  box-shadow: 0 8px 18px -12px rgba(177, 87, 196, .8);
}
.gg-gate .btn-primary:hover { opacity: .9; color: #fff; }
.gg-gate .login { font-size: 13.5px; }
.gg-gate .text-link,
.gg-gate a.text-link:visited {
  color: #414863;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gg-gate .note { font-size: 12px; }
.gg-gate :is(a, button):focus-visible { outline: 2px solid #414863; outline-offset: 2px; }

/* スマホ：見出しは3つまで、できることは縦 */
@media (max-width: 640px) {
  .gg-gate { padding: 18px 16px; }
  .gg-gate .toc .gg-more { display: none; }
  .gg-gate .toc .gg-rest { display: block; padding-left: 30px; font-size: 12.5px; }
  .gg-gate .ben,
  .gg-gate .ben.ben-2 { grid-template-columns: minmax(0, 1fr); }
  .gg-gate .ben > div { padding: 12px 14px; }
}

/* ログインして戻ってきたときのお知らせ（画面の上に4秒ほど） */
.gg-gate-toast {
  position: fixed;
  left: 50%;
  top: calc(16px + var(--wp-admin--admin-bar--height, 0px));
  z-index: 9999;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border-radius: 12px;
  background: #414863;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(65, 72, 99, .18);
  transition: opacity .4s;
}
.gg-gate-toast.is-out { opacity: 0; }
.gg-continue { display: block; scroll-margin-top: 80px; }

/* ── LINEでログイン（2026-11-24）。LINE のデザインガイドラインの色で、サイトの色の決まりの例外 ── */
.gg-gate .gg-line-btn,
.gg-gate a.gg-line-btn:visited,
.bdiag-line-login a.gg-line-btn,
.bdiag-line-login a.gg-line-btn:visited {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 320px;
  min-height: 44px;
  margin: 0 auto;
  border-radius: 8px;
  background: #06C755;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
}
.gg-gate .gg-line-btn:hover,
.bdiag-line-login .gg-line-btn:hover { background: #05B34C; color: #fff; }
.gg-gate .gg-line-btn:active,
.bdiag-line-login .gg-line-btn:active { background: #048B3A; }
.gg-line-logo {
  width: 44px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(0, 0, 0, .08);
}
.gg-line-logo svg { width: 28px; height: 28px; display: block; }
.gg-line-txt { flex: 1; text-align: center; padding: 0 44px 0 0; }

/* 区切り「会員の方」：左右に薄い線 */
.gg-gate .gg-gate-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin: 6px auto 0;
  font-size: 12px;
  color: #414863;
}
.gg-gate .gg-gate-sep::before,
.gg-gate .gg-gate-sep::after { content: ""; flex: 1; height: 1px; background: #E1E0E7; }

.gg-gate .gg-gate-lead { font-size: 13.5px; text-align: center; }
.gg-gate .gg-gate-alert {
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(65, 72, 99, .06), 0 6px 20px rgba(65, 72, 99, .07);
}
