/* SALES LP 専用CSS */
/* =========================
   会員ページ（このページだけ）800px制限
========================= */
.page-template-page-member .member-lp-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0 30px 0;
}

.member-wrap{
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  padding: 40px 20px;
  box-sizing: border-box;
}

.member-side{
  width: 260px;
  flex-shrink: 0;
}

.member-main{
  flex: 1;
  min-width: 0;
}
.member-main h2 {
  background : #0861a4;
  color : #fff;
  padding : 10px 10px!important;
  font-size : 18px;  
}
.member-widget h3 {
  background: #0861a4;
  color: #fff;
  padding: 10px 10px !important;
  font-size: 17px;
  margin-bottom: 10px !important;
}

/* 2つ目以降だけ上に余白 */

.member-widget + .member-widget {
  margin-top: 30px;
}


@media (max-width: 880px){
  .member-wrap{
    flex-direction: column;
    gap: 20px;
  }

  .member-main{
    order: 1;   /* 先に表示 */
  }
.member-main h2 {
  background : #0861a4;
  color : #fff;
  padding : 10px 10px!important;
  font-size : 17px;  
}
	.member-widget h3{
  background : #0861a4;
  color : #fff;
  padding : 10px 10px!important;
  font-size : 17px;
		margin-bottom : 10px!important;
	}

  .member-side{
    order: 2;   /* 後に表示 */
    width: 100%;
  }
}

/* =========================
   会員サイドメニュー
========================= */

/* メニュー全体 */
.member-side .menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 各メニュー項目 */
.member-side .menu-item {
  margin: 0;
  padding: 0;
}

/* メニューリンク */
.member-side .menu-item a {
  display: block;
  padding: 10px 4px 5px 5px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  text-decoration: none;
  border-bottom: 1px dotted #ccc; /* 点線 */
  transition: color 0.2s, background 0.2s;
}

/* ホバー時 */
.member-side .menu-item a:hover {
  color: #1f5fbf;
  background: #f5f8ff;
}

/* 現在表示中のページ */
.member-side .current-menu-item > a {
  font-weight: 700;
  color: #1f5fbf;
  background: #eef3ff;
}

/* 最後の項目だけ下線なしにしたい場合（任意） */
.member-side .menu-item:last-child a {
  border-bottom: none;
}

/* =========================
   会員サイド：記事タイトル下線
========================= */

.member-side-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-side-list li {
  margin: 0;
  padding: 0;
}

.member-side-list li a {
  display: block;
  padding: 10px 0 5px 0;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px dotted #ccc;
}

.member-side-list li a:hover {
  opacity: 0.75;
}





/* =======================================
   ファーストビュー（背景＋中央画像）
======================================= */

/* -------------------------
   PC / SP 表示切り替え
------------------------- */
.member-fv.pc { display: flex; }
.member-fv.sp { display: none; }

@media (max-width: 880px){
  .member-fv.pc { display: none; }
  .member-fv.sp { display: flex; }
}

/* -------------------------
   共通：FV本体
------------------------- */
.member-fv{
  width: 100%;
  height: 460px;
	display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;

  background: url('https://trader-first.com/wp-content/themes/ystandard-child/image/member-fv-bg-pc.png')
              center / cover no-repeat;
}

/* -------------------------
   SP用：1080×680背景に最適化
------------------------- */
@media (max-width: 880px){
  .member-fv{
    height: 240px;
    
    background: url('https://trader-first.com/wp-content/themes/ystandard-child/image/member-fv-bg-sp.png')
                center / cover no-repeat;
  }
}


/* -------------------------
   中央コンテンツ
------------------------- */
.member-fv-inner{
  max-width: 1200px;
  width: 100%;
  text-align: center !important;
}

.member-fv-inner img{
  display: block !important;
  margin: 0 auto !important;
  max-width: 80%;
  height: auto;
}
@media (max-width: 880px){
.member-fv-inner img{
  max-width: 100%;
}	
}


/* =======================================
   コンテンツ
======================================= */

.member-lp-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 0px 30px 0;
}
@media (max-width: 880px){
.member-lp-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 0px 30px 0;
}
}


.lp-heading {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.member-page-title{
  font-size: 22px;
  font-weight: 700;
  margin: 50px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #2547b2;
}

.member-article-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.member-article-item{
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
}
.member-article-item a{
  text-decoration : none;
}

.member-article-title{
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.member-article-subtitle{
  font-size: 14px;
  color: #666;
}


/* =======================================
   フッター
======================================= */
.lp-footer {
  background: #f2f2f2;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

/* スマホ（縦長） */
@media (max-width: 768px) {
  .lp-fv {
    height: 90vh;
    min-height: 550px;
    background-color: #ffe4ec;
  }
}

/* 画像を中央に置く場合（後で差し替えOK） */
.lp-fv-inner {
  max-width: 1000px;
  width: 100%;
  text-align: center;
}

.lp-fv-img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* =========================
   会員向け記事一覧 調整
========================= */

/* 各記事ブロック */
.member-article-item {
  margin-bottom: 16px;
}

/* タイトル＋カテゴリ 横並び制御 */
.member-article-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

/* 記事タイトルリンク */
.member-article-link {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  display: block;
}

/* 記事タイトル（大） */
.member-article-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: #1f5fbf;
}

/* 記事小見出し（h2） */
.member-article-subtitle {
  margin: 2px 0 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

/* ホバー時 */
.member-article-link:hover .member-article-title {
  opacity: 0.85;
}

/* =========================
   記事一覧：カテゴリーバッジ
========================= */

.member-article-category {
  flex-shrink: 0;
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 12px;
  white-space: nowrap;
  text-decoration: none;
}

/* 無料 */
.member-article-item.category-member-free .member-article-category {
  background: #e6f4ea;
  color: #1e7f4f;
}

/* 有料A */
.member-article-item.category-member-paid1 .member-article-category {
  background: #690029;
  color: #fff;
}

/* 有料B */
.member-article-item.category-member-paid2 .member-article-category {
  background: #059868;
  color: #ffffff;
}

.gentei-premium{
  background: #690029;
  color: #fff;
	padding : 7px;
	margin-top : 30px;
}
.gentei-lab{
  background: #059868;
  color: #ffffff;
	padding : 7px;
	margin-top : 30px;
}

.member-article-h2list {
  margin: 6px 0 0;
  padding-left: 1.2em;
  font-size: 14px;
  color: #555;
}

.member-article-h2list li {
  list-style: disc;
  margin-bottom: 2px;
  line-height: 1.5;
}


/* =========================
   パスワードフォーム（会員用）
========================= */

.member-main .post-password-form {
  max-width: 640px;
  margin: 40px auto 60px;
  padding: 28px 24px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  text-align: center;
}

.password-guide-text {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 600;
  color: #333;
}

.member-main .post-password-form input[type="password"] {
  width: 80%;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.member-main .post-password-form input[type="submit"] {
  margin-top: 18px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 30px;
  border: none;
  background: #1f5fbf;
  color: #fff;
  cursor: pointer;
}

.member-main .post-password-form input[type="submit"]:hover {
  opacity: 0.85;
}

/* =========================
   カテゴリーリンクの下線を完全に消す
========================= */

.member-article-category,
.member-article-category:link,
.member-article-category:visited,
.member-article-category:hover,
.member-article-category:active {
  text-decoration: none !important;
}

.member-article-link,
.member-article-link:link,
.member-article-link:visited,
.member-article-link:hover,
.member-article-link:active {
  text-decoration: none !important;
}

.member-back-wrap {
  margin: 40px 0 20px;
  text-align: center;
}

.member-back-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 30px;
  background: #1f5fbf;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.member-back-btn:hover {
  opacity: 0.85;
}


/* =========================
   会員記事：見出しデザイン
========================= */

/* 記事タイトル h1 */
.single .member-main h1 {
  margin: 0 0 28px!important;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
}

/* 記事内見出し h2 */
.single .member-main h2 {
  margin: 32px 0 16px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: #1f5fbf;
  padding-left: 10px!important;
  border-left: 4px solid #1f5fbf;
}
/* =========================
   見出し間の余白を自動調整
========================= */

/* h2の前に余白を追加（2つ目以降） */
.single .member-main h2:not(:first-of-type) {
  margin-top: 48px!important;
}


/* スマホ */
@media (max-width: 768px) {
  .single .member-main h1 {
    font-size: 22px;
  }
  .single .member-main h2 {
    font-size: 17px;
  }
}

/* =========================
   会員メニュー（スマホ）
========================= */

/* トグル */
.member-menu-toggle{
  display:none;
  position:fixed;
  top:14px; right:14px;
  width:44px; height:44px;
  padding:0; margin:0;
  background:#0861a4;
  border:0;
  border-radius:6px;
  z-index:10002;
  font-size:0; line-height:1;
}
.member-menu-toggle span{
  display:block;
  width:22px; height:2px;
  margin:5px auto;
  background:#fff;
}

/* オーバーレイ（背景タッチ全部遮断） */
.member-menu-overlay{
  position:fixed;
  inset:0;
  background:rgba(8,97,164,.35);
  z-index:10000;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
}
.member-menu-overlay.is-open{
  opacity:1;
  pointer-events:auto;
}

/* スマホ時 */
@media (max-width:768px){
  .member-menu-toggle{ display:block; }

  /* サイド（開いたらここだけスクロール） */
  .member-side{
    position:fixed;
    top:0; right:0;
    width:80%;
    max-width:320px;
    height:100dvh;
    background:#fff;
    padding:20px;
    z-index:10001;

    transform:translateX(100%);
    transition:transform .25s ease;

    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
  }
  .member-side.is-open{
    transform:translateX(0);
  }
}

/* 背景（ページ本体）はスクロール禁止 */
html.member-menu-open,
body.member-menu-open{
  overflow:hidden;
}
/* =========================
   メニューボタン：×（クローズ）表示
========================= */

/* 線の共通設定（念のため） */
.member-menu-toggle span {
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* 1本目：右下に回転 */
.member-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

/* 2本目：消す */
.member-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

/* 3本目：右上に回転 */
.member-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   会員ページ導線ボタン
========================= */

.member-enter-wrap {
  text-align: center;
  margin: 40px 0;
}

.member-enter-btn {
  display: inline-block;
  padding: 18px 32px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  background: #f2f2f2;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.member-enter-btn:hover {
  background: #e6e6e6;
  color: #000;
}
/* =========================
   会員サイド：小見出し
========================= */

.member-subheading {
  margin: 15px 0 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border-radius: 4px;
}

/* プレミアム（明るめの赤） */
.member-subheading.premium {
  background-color: #8f0f14; /* 明るめ赤 */
}

/* Lab（緑） */
.member-subheading.lab {
  background-color: #1f8f3a; /* グリーン */
}
