/* ---------------------------
   全体共通
--------------------------- */
#registration * {
  line-height: 1.5;
}

#registration {
  overflow: hidden;
  margin-bottom: 2em;
}

#registration h2 {
  text-align: center;
  font-size: 1.8em;
  color: #000 !important; /* h2は黒 */
}

#registration h3 {
  text-align: center;
  color: #004098;
  margin-bottom: 0.5em;
  font-size: 1.6em;
}

#registration p.desc {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 1rem;
  text-align: center;
}

/* 注意書き */
#registration p.note {
  font-size: 13px;
  line-height: 1.8;
  text-align: left !important;
  max-width: 900px;
  margin: 0 auto 1.5em;
  padding: 0 1.5em;
}

#registration .price {
  color: #d60000;
  font-weight: bold;
}

/* ---------------------------
   プラン共通
--------------------------- */
#registration .plan {
  border-top: 1px solid #000000;
  padding: 1em 0;
  margin-bottom: 2em;
}

#registration .plan .img {
  text-align: center;
  margin-bottom: 1em;
}

#registration .plan .img img {
  display: inline-block;
  margin: 0 auto;
}

#registration .plan-list {
  display: flex;
  justify-content: space-between;
/*  margin-top: 2em;*/
}

#registration .plan-list .waku {
  flex: 1;
  text-align: center;
  padding: 1.5em;
  background: #fff;
  position: relative;
}

/* 縦線（カード内だけ／最後は除外） */
#registration .plan-list .waku::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 1px;
  background: #ddd;
}
#registration .plan-list .waku:last-of-type::after {
  display: none;
}

/* 2カラム用（まとめ割） */
#registration .plan-list.two-cols .waku {
  flex: 0 0 50%;
}

/* 見出しとテキスト */
#registration .plan-list h4 {
  font-size: 1.2em;
  margin-bottom: 0.8em;
  font-weight: bold;
}
#registration .plan-list p {
  margin: 0.5em 0;
}
#registration .plan-list .price {
  font-size: 1.2em;
}
/* ---------------------------
   キャンペーン部分
--------------------------- */
/* maru_bg.svg 背景付き */
#registration .campaign-box {
  margin-top: 1em;
  font-weight: bold;
  font-size: 0.95em;
  line-height: 1.6;
  display: inline-block;
  padding: 1.8em 2.2em;
  text-align: center;
  background: url('/wp-content/themes/theme_dpn2022/assets-02/img/registration/maru_bg.svg') no-repeat center center;
  background-size: contain;
}
#registration .campaign-box .price-line {
  display: inline-block;
  white-space: nowrap;  /* ← 改行禁止 */
  font-size: 14px;
  color: #000;
}

#registration .campaign-box .price {
  font-size: 20px;
  color: #d60000;
  font-weight: bold;
  margin: 0 0.2em;
}

/* 週刊紙単体（テキストのみ） */
#registration .campaign-text {
  margin-top: 1em;
  font-weight: bold;
  font-size: 0.95em;
  line-height: 1.6;
  display: inline-block;
  text-align: center;
  color: #000;
}

/* ---------------------------
   まとめ割追加IDプラン
--------------------------- */
#registration .matomewari-plan h3 {
  color: #004098;
  font-size: 1.6em;
  margin-bottom: 0.3em;
}

#registration .matomewari-plan > .desc {
  text-align: center;
  font-size: 0.95em;
  margin-bottom: 1.5em;
}

#registration .matomewari-plan .price {
  text-align: center;
  font-size: 1.2em;
  font-weight: normal;
  margin-bottom: 2em;
  color: #000;
}
#registration .matomewari-plan .price strong {
  font-weight: bold;
  margin-right: 0.3em;
  font-size: 1.3em;
}
#registration .matomewari-plan .price .num {
  font-size: 1.6em;
  color: #d60000;
  font-weight: bold;
  margin: 0 0.2em;
}

/* まとめ割追加IDプラン：カラムの高さを揃える */
#registration .matomewari-plan .plan-list {
  display: flex;
  align-items: stretch;
  gap: 2em;
}

/* 各カラム（waku）を縦並びにし、ボタンを下に固定 */
#registration .matomewari-plan .plan-list .waku {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5em;
}

/* ボタンの大きさを統一して中央揃え */
#registration .matomewari-plan .plan-list .waku a {
  margin-top: auto;
  align-self: center;
  background: #01408f;
  color: #fff;
  padding: 2em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  box-sizing: border-box;
}
#registration .matomewari-plan .plan-list .waku a:hover {
  background: #003366;
}
/* ---------------------------
   スタンダードプランだけ border-top消す
--------------------------- */
#registration .plan.standard-plan {
  border-top: none !important;
}

/* ---------------------------
   ボタン類
--------------------------- */
/* free_btn：ボタン形式に変更 */
#registration .free_btn {
  text-align: center;
  margin: 2em auto 4em;
  background: none;
  padding: 0;
  width: 100%;         
  max-width: 700px;
}

#registration .free_btn a {
  display: block;
  background: #01408f;
  color: #fff !important;
  font-size: 1.2em;
  text-decoration: none;
  font-weight: bold;
  padding: 1.2em 0;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

#registration .free_btn a:hover {
  background: #003366;
}
#registration .faq_btn {
  border: 2px solid #ddd;
  text-align: center;
  padding: 1.5em;
  margin: 3em auto;
  border-radius: 10px;
  width: 70%;
}
#registration .faq_btn a {
  color: black !important;
  font-size: 1.3em;
  text-decoration: none;
}

/* ---------------------------
   PC/SP切替
--------------------------- */
.pc { display: block !important; }
.sp { display: none !important; }

/* ---------------------------
   スマホ表示
--------------------------- */
@media screen and (max-width: 768px){
  #registration .plan-list {
    flex-direction: column;
  }
  #registration .plan-list .waku::after {
    display: none; /* 縦線を消す */
  }
  #registration .plan-list .waku {
    border-bottom: 1px solid #ddd;
  }
  #registration .plan-list .waku:last-child {
    border-bottom: none;
  }

  .pc { display: none !important; }
  .sp { display: block !important; }

  #registration .free_btn {
    width: 100%;
    margin: 1em 0 3em;
    padding: 1em;
  }
  #registration .faq_btn {
    width: 100%;
    margin: 1em 0;
    padding: 1em;
  }
}
/* ---------------------------
   ページタイトル中央寄せ
--------------------------- */
h2.dd-detail-head-title {
  text-align: center;
}
.free_kouroku {
  margin-top: 2em;
}
#registration img.pc {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* 大見出し */
#registration h2 {
  text-align: center;
  font-size: 26px;
  color: #000;
  font-weight: bold;
}

/* プラン名 */
#registration h3 {
  text-align: center;
  font-size: 22px;
  color: #004098; /* ブルー */
  font-weight: bold;
  margin-bottom: 0.5em;
}

/* 契約区分 */
#registration h4 {
  font-size: 18px;
  color: #000;
  font-weight: bold;
  margin-bottom: 0.8em;
}

/* 価格 */
#registration .price {
  font-size: 22px;
  color: #d60000;
  font-weight: bold;
}

/* キャンペーン */
#registration .campaign-box,
#registration .campaign-text {
  font-size: 14px;
  color: #000;
  line-height: 1.6;
  font-weight: bold;
}

/* ボタン */
#registration .plan-list a {
  display: inline-block;
/*  margin-top: 1em;*/
  background: #01408f;
  color: #fff;
  padding: 2em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  width: auto;
  min-width: 240px;
  text-align: center;
  box-sizing: border-box;
}
#registration .plan-list a:hover {
  background: #003366;
}
/* 価格のベース（小さめ黒文字） */
#registration .plan-list .waku p {
  font-size: 14px;
  color: #000;
  margin: 0.5em 0;
}

/* 数字部分は赤＋大きめ */
#registration .plan-list .waku .price {
  font-size: 2em;
  color: #d60000;
  font-weight: bold;
}
/* ---------------------------
   キャンペーン部分
--------------------------- */
/* maru_bg.svg 背景付き */
#registration .campaign-box {
  margin-top: 1em;
  font-weight: bold;
  font-size: 0.95em;
  line-height: 1.6;
  display: inline-block;
  padding: 1.8em 2.2em;
  text-align: center;
  background: url('/wp-content/themes/theme_dpn2022/assets-02/img/registration/maru_bg.svg') no-repeat center center;
  background-size: contain;
}
#registration .campaign-box .price-line {
  display: inline-block;
  white-space: nowrap;  /* ← 改行禁止 */
  font-size: 14px;
  color: #000;
}

#registration .campaign-box .price {
  font-size: 20px;
  color: #d60000;
  font-weight: bold;
  margin: 0 0.2em;
}

/* 週刊紙単体（テキストのみ） */
#registration .campaign-text {
  margin-top: 1em;
  font-weight: bold;
  font-size: 0.95em;
  line-height: 1.6;
  display: inline-block;
  text-align: center;
  color: #000;
}
#registration .campaign-box strong {
  font-weight: bold;
  font-size: 16px;   /* ← 通常より少し大きく */
  color: #000;       /* 黒のまま */
  display: block;
  margin-bottom: 0.3em;
}
/* 冒頭説明文 */
#registration > p.desc {
  text-align: left;
  margin: 0 auto 1.5em;   /* 中央配置 */
  max-width: 900px;       /* 横幅制限 */
  padding: 0 1em;         /* 少しだけ余白（任意） */
}

/* 有料会員登録セクションの説明文 */
#registration .paid_kouroku p.desc {
  text-align: left;
  margin: 0 auto 1.5em;
  max-width: 900px;
  padding: 0 1em;
}

/* 注意文（※口座振替〜 の部分） */
#registration .paid_kouroku p.note {
  text-align: left;
  margin: 0 auto 1.5em;
  max-width: 900px;
  padding: 0 1em;
}
/* まとめ割追加IDプラン：上下分割レイアウト */
#registration .matomewari-plan .plan-list {
  display: flex;
  align-items: stretch; /* カラムの高さをそろえる */
  gap: 2em;
}

#registration .matomewari-plan .plan-list .waku {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  padding: 1.5em;
}

/* 上側：見出し+説明文 */
#registration .matomewari-plan .plan-list .waku-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#registration .matomewari-plan .plan-list .waku-body h4 {
  text-align: center;
  margin-bottom: 0.8em;
}

#registration .matomewari-plan .plan-list .waku-body p.desc {
  font-size: 14px;
  line-height: 1.8;
  margin: 0 auto 1.5em;
  text-align: left;
  max-width: 90%;
  padding: 0 0.5em;
}
/* ボタンは常に一番下 */
#registration .matomewari-plan .plan-list .waku a {
  margin-top: auto;
}
/* まとめ割追加IDプランの説明文をリセット */
#registration .matomewari-plan .plan-list .waku-body p.desc {
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 1.5em 0;
  text-align: left;
  width: 100%;
  padding: 0 0.5em;

  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word;
}
/* #registration 内の空<p>を消す */
#registration p:empty {
  display: none !important;
}
@media screen and (max-width: 768px) {
  #registration .plan-list .waku {
    border-bottom: 1px solid #ddd;
  }
  /* ID登録フロー下の注意文だけ余白を追加 */
  #registration .free_kouroku p.note {
    margin-top: 1em !important;
  }
  #registration .plan .plan-list .waku:last-of-type {
    border-bottom: none !important;
  }
}
/* まとめ割追加IDプラン：1カラム中央寄せ */
#registration .matomewari-plan .plan-list.two-cols {
  justify-content: center; /* 横方向中央寄せ */
}

#registration .matomewari-plan .plan-list.two-cols .waku {
  flex: 0 0 100%; /* 幅を100%にして1カラム */
  max-width: 900px; /* 横幅が広がりすぎないように制限（任意） */
}
/* まとめ割追加IDプラン：1カラム時は中央寄せ */
#registration .matomewari-plan .plan-list.two-cols.one-col .waku-body p.desc {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
/* 手順リスト */
#registration .application-flow {
  max-width: 900px;
  margin: 0 auto 2em;
  padding: 0 1em;
  list-style: decimal inside;
  font-size: 18px;
  line-height: 1.8;
}
#registration .application-flow li {
  margin-bottom: 1em;
}

/* ご注意 */
#registration .flow-note {
  max-width: 900px;
  margin: 1.5em auto 2em;
  padding: 1.5em;
  border: 1px solid #ddd;
  font-size: 14px;
  line-height: 1.8;
  box-sizing: border-box;
}
#registration .flow-note h3 {
  font-size: 1.1em;
  margin-bottom: 0.8em;
  color: #000;
}
#registration .flow-note ul {
  margin: 0 0 1em 1.2em;
  padding: 0;
  list-style: disc;
}
/* #registration 内のリンクカラー */
#registration a {
  color: #01408f; /* お好みのブルー */
  text-decoration: underline;
  font-weight: normal;
}

#registration a:hover {
  color: #d60000; /* ホバー時は赤に */
  text-decoration: none;
}
/* アコーディオン全体 */
#registration details {
  margin: 1.5em 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

/* タイトル（summary部分） */
#registration summary {
  font-size: 1.2em;
  font-weight: bold;
  padding: 1em;
  cursor: pointer;
  background: #f0f0f0;
  color: #000;
  list-style: none;
}

/* デフォルトの▶マークを消す */
#registration summary::-webkit-details-marker {
  display: none;
}

/* 開いたとき */
#registration details[open] summary {
  background: #004098;
  color: #fff;
}

/* 中身 */
#registration details > div {
  padding: 1.5em;
  background: #fff;
  border-top: 1px solid #ddd;
}
/* summary の右端に「＋」「－」を表示 */
#registration summary {
  position: relative;
  font-size: 1.2em;
  font-weight: bold;
  padding: 1em;
  cursor: pointer;
  background: #f0f0f0;
  border-radius: 6px;
  color: #000;
}

/* デフォルトの▶マークを消す */
#registration summary::-webkit-details-marker {
  display: none;
}

/* 閉じているとき：＋ */
#registration summary::after {
  content: "＋";
  position: absolute;
  right: 1em;
  font-size: 1.2em;
  color: #004098;
  transition: transform 0.3s;
}

/* 開いているとき：－ */
#registration details[open] summary::after {
  content: "－";
  color: #fff;
}

/* 開いているときの summary 背景色を変える */
#registration details[open] summary {
  background: #004098;
  color: #fff;
}
#registration .application-flow li strong {
  color: #004098;
  font-weight: bold;
}
.application-flow strong a {
  font-weight: bold !important; /* 強制的に太字 */
}
/* ボタン内のリンク色を白に戻す */
#registration .plan-list a,
#registration .free_btn a {
  color: #fff !important;
}

#registration .plan-list a:hover,
#registration .free_btn a:hover {
  color: #fff !important; /* hoverでも白のまま */
}