/* ==============================
   共通レイアウト（Twenty Twenty-Four 用）
   旧: #contents / .text_box ベース を .entry-content に合わせて変換
   ============================== */

/* 固定ページ本文のベース幅 */
.entry-content {
  max-width: 720px;
  margin: 0 auto;
}

/* メイン画像（旧 .mainImg） */
.entry-content .mainImg {
  margin-bottom: 20px;
  width: 720px;
}

/* --------------------------------
   見出し
   -------------------------------- */

/* h1 */
body.page h1.wp-block-post-title {
  position: relative;
  margin: 0 0 26px;
  padding: 10px 20px 10px 44px;
  color: #69280d;
  font-size: 21px;
  font-weight: bold;

  background: linear-gradient(to bottom, #fdfdfd, #f3f3f3);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow:
    0 1px 0 #ffffff inset,
    0 -1px 0 #eaeaea inset;

  display: block;
}

body.page h1.wp-block-post-title::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 6px;
  background: #ea5504;
  border-radius: 3px;
}


/* h2 */
.entry-content h2 {
  background: url(/wp/resource/images/page_images/h2_bg.gif) repeat-x bottom right;
  color: #ea5504;
  font-size: 16px;
  font-weight: bold;
  padding-bottom: 5px;
  margin-bottom: 20px;
  clear: both;
}

/* h3 / h4（旧 .text_box h3, h4） */
.entry-content h3 {
  color: #ea5504;
  font-size: 15px;
  font-weight: bold;
  margin: 0 0 6px;
}

.entry-content h4 {
  color: #222222;
  font-size: 15px;
  font-weight: bold;
  margin: 0 0 5px;
}

/* --------------------------------
   テキストまわり
   -------------------------------- */

.entry-content .pl_20 {
  padding-left: 20px;
  display: block;
}

.entry-content .txt_weak {
  color: #999999;
}

.entry-content .txt_indent {
  margin-left: 10px;
}

.entry-content .txt_syomei,
body.lang-id .entry-content .txt_syomei {
  text-align: right;
  font-weight: bold;
  margin-top: 20px;
  line-height: 1.4;
}

.entry-content .attention {
  color: #69280d;
  font-size: 11px;
}

/* 本文 p */
.entry-content p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* --------------------------------
   テーブル（旧 .text_box table.normal）
   -------------------------------- */

.entry-content table.normal {
  width: 719px;
  border-top: 1px solid #e5e5e5;
  border-left: 1px solid #e5e5e5;
  margin-bottom: 20px;
  border-collapse: collapse;
}

.entry-content table.normal th {
  background-color: #f7f7f7;
  border-right: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  line-height: 1.2;
  text-align: center;
  padding: 5px;
}

.entry-content table.normal th.left {
  text-align: left;
}

.entry-content table.normal th.right {
  text-align: right;
}

.entry-content table.normal th.point {
  background-color: #fdeecd;
  color: #ea5504;
}

.entry-content table.normal td {
  padding: 5px;
  border-right: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.entry-content table.normal td.right {
  text-align: right;
}

.entry-content table.normal td.center {
  text-align: center;
}

.entry-content table.normal td.point {
  color: #ea5504;
}

/* --------------------------------
   ボタン系（旧 .text_box .btn など）
   -------------------------------- */

.entry-content .btn {
  padding: 10px;
  font-weight: bold;
  text-decoration: none;
}

/* --------------------------------
   サブボタン・PDFボタン（旧 #outside .text_box ...）
   Twenty Twenty-Four では .entry-content 直下用に変換
   -------------------------------- */

.entry-content .subBtn {
  background-color: #e5e5e5;
  display: inline-block;
  padding: 5px 10px 5px 30px;
  margin-top: 10px;
  font-weight: bold;
  background-image: url("/wp/resource/images/page_images/menubox_li_arrow.gif");
  background-repeat: no-repeat;
  background-position: 10px center;
  text-align: left;
}

.entry-content .subBtn_pdf,
.entry-content .subBtn_anchor {
  display: block;
  margin: 0 0 4px;
}

body.lang-id .entry-content .subBtn_pdf,
body.lang-id .entry-content .subBtn_anchor {
  margin: 0 0 6px;
}

.entry-content .subBtn_pdf a {
  background-image: url("/wp/resource/images/page_images/sub_btn_pdf.png");
  background-repeat: no-repeat;
  background-position: center left;
  padding: 15px 35px;
  display: block;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  width: 260px;
}

.entry-content .subBtn_anchor a {
  background-image: url("/wp/resource/images/page_images/sub_btn_anchor.png");
  background-repeat: no-repeat;
  background-position: center left;
  padding: 15px 35px;
  display: block;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  width: 260px;
}

.entry-content .subBtn_pdf a:hover,
.entry-content .subBtn_pdf a:active {
  background-image: url("/wp/resource/images/page_images/sub_btn_pdf_on.png");
  color: #fff;
  text-decoration: none;
}

.entry-content .subBtn_anchor a:hover,
.entry-content .subBtn_anchor a:active {
  background-image: url("/wp/resource/images/page_images/sub_btn_anchor_on.png");
  color: #fff;
  text-decoration: none;
}

.entry-content .anchorLink {
  background-image: url("/wp/resource/images/page_images/sub_guidance_arrow.gif");
  background-position: 10px center;
  background-repeat: no-repeat;
  color: #015d72;
  padding-left: 30px;
}

/* --------------------------------
   メニュー風ボックス（旧 .menuBox, .menuBox02）
   -------------------------------- */

.entry-content .menuBox {
  background-color: #F7F7F7;
  border: 1px solid #E5E5E5;
  margin-bottom: 30px;
  padding: 10px;
}

.entry-content .menuBox02 {
  background-color: #F7F7F7;
  border: 1px solid #E5E5E5;
  margin-bottom: 10px;
  padding: 10px;
}

.entry-content .menuBox h4,
.entry-content .menuBox02 h4 {
  border-bottom: 1px dotted #999999;
  padding-bottom: 5px;
  margin: 0 0 8px;
}

.entry-content .menuBox ul,
.entry-content .menuBox02 ul {
  padding-left: 20px;
  padding-right: 20px;
  margin: 0;
  list-style: none;
  overflow: hidden;/
}

.entry-content .menuBox li,
.entry-content .menuBox02 li {
  float: left;
  width: 48%;
  box-sizing: border-box;
  background: url("/wp/resource/images/page_images/menubox_li_arrow.gif") no-repeat left 10px;
  padding-left: 20px;
  padding-top: 5px;
  font-size: 14px;
  color: #005F70;
  margin-bottom: 4px;
}

.entry-content .menuBox li.clear,
.entry-content .menuBox02 li.clear {
  clear: both;
  width: 100%;
}

#contents .entry-content .menuBox li a,
#contents .entry-content .menuBox02 li a {
  color: #005F70;
}

/* --------------------------------
   その他ユーティリティ
   -------------------------------- */

.entry-content a.pdf {
  background-image: url("/wp/resource/images/page_images/pdf_icon.gif");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 20px;
}

.entry-content ul.number li {
  list-style: decimal;
  margin-left: 2em;
}

span.italic {
  font-style: italic;
}

span.bold {
  font-weight: bold;
  color: #222222;
}

.terms .jpn p,
.terms .indonesia p {
  padding-top: 10px;
  font-size: 12px;
}

/* 左右画像（旧 #contents img.left/right） */
.entry-content img.left {
  float: left;
  padding-right: 10px;
  padding-bottom: 10px;
}

.entry-content img.right {
  float: right;
  padding-left: 10px;
  padding-bottom: 10px;
}

/* 更新日（旧 #contents .update） */
.entry-content .update {
  text-align: right;
  font-size: 11px;
  color: #717171;
  padding-top: 10px;
  padding-bottom: 20px;
  display: block;
}

/* --------------------------------
   エクスプレス送金 注意書き用（attentionBox）
   -------------------------------- */

.entry-content .attentionBox {
  border: 1px solid #1a1a1a;
  padding: 10px;
  max-width: 398px;
  margin-bottom: 20px;
  background-color: #f7f7f7;
}

.entry-content .attentionBox h4 {
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 10px;
  color: #1a1a1a;
}

.entry-content .attentionBox p {
  margin-top: 10px;
  margin-bottom: 5px;
}

/* --------------------------------
   Q&A
   -------------------------------- */

.entry-content .faq {
  background-color: #f7f7f7;
  border: 1px solid #e5e5e5;
  margin-bottom: 10px;
  padding: 10px;
  width: 100%;
  max-width: 698px;
  box-sizing: border-box;
}

dl.faq dt {
  background-image: url("/wp/resource/images/page_images/faq_title_bg.gif");
  background-position: left top;
  background-repeat: no-repeat;
  border-bottom: 1px dotted #999999;
  color: #222222;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
  padding: 2px 0 10px 30px;
}

dl.faq dd {
  background-image: url("/wp/resource/images/page_images/faq_txt_bg.gif");
  background-position: left 10px;
  background-repeat: no-repeat;
  padding: 10px 0 0 30px;
  min-height: 23px;
  font-size: 14px;
}

dl.faq .attension {
  padding-top: 5px;
  margin-bottom: 0;
}

table.faqList {
  width: 100%;
  max-width: 678px;
  padding: 10px;
  text-align: left;
  vertical-align: text-bottom;
  box-sizing: border-box;
}

table.faqList th {
  width: 25%;
  vertical-align: top;
}

table.faqList td {
  /* 必要に応じて調整用 */
}

/* --------------------------------
   サイトマップ
   -------------------------------- */

#sitemap_list li	{
    color: #005F70;
    padding-left: 10px;
    margin-bottom: 20px;
	list-style-image:url("/wp/resource/images/page_images/menubox_li_arrow.gif");
	list-style-position:inside;
	font-weight:bold;
}

#sitemap_list li ul.children	{
	margin-top:10px;
}

#sitemap_list li ul.children li	{
	list-style-image:url("/wp/resource/images/page_images/li_child_arrow.gif");
	list-style-position:inside;
	margin-bottom:10px;
	font-weight:normal;
}


/* --------------------------------
   左サイドバー：関連ページリスト
   -------------------------------- */

/* 関連ページ（左サイドバー） */
.ps-sidebar .ps-sidebox-pages {
  margin-bottom: 16px;
}

.ps-side-nav {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.ps-side-nav li {
  margin: 0;
}

/* リンク本体は flex で中央寄せ */
.ps-side-nav li a {
  display: flex;
  align-items: center;
  padding: 4px 6px;
  font-size: 13px;
  line-height: 1.1;
  color: #015D72;
  text-decoration: none;
}

/* テキストだけ 1px 上にズラす（見た目調整用） */
.ps-side-nav-label {
  display: inline-block;
  transform: translateY(-8px);
}

.ps-side-nav li a:hover {
  background-color: #f2f6f7;
}

.ps-side-nav li.current-page a {
  font-weight: bold;
  color: #FFFFFF;
  background-color: #015D72;
}

/* =========================
   本文＋サイドバー（左サイドバー統一）
   使い方：
   - Columns（親）… 追加CSSクラス： ps-content2col ps-leftbar
   - 左列 … 追加CSSクラス： ps-sidecol（[ps_sidebar] を入れる）
   - 右列 … 追加CSSクラス： ps-maincol（本文）
   ========================= */

:root{
  --ps-sidebar-w: 250px;   /* サイドバー幅 */
  --ps-gap: 28px;          /* カラム間の余白 */
}

/* 2 カラム本体：ps-content2col + ps-leftbar が付いているところは全部これ */
.ps-content2col.ps-leftbar{
  display: grid !important;
  grid-template-columns: var(--ps-sidebar-w) minmax(0,1fr);
  gap: var(--ps-gap) !important;
  align-items: flex-start !important;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px;
}

/* Columns 内部のリセット */
.ps-content2col.ps-leftbar .wp-block-column{
  margin: 0 !important;
  flex-basis: auto !important;
  flex-grow: 0 !important;
  min-width: 0;
}

/* 本文側 */
.ps-content2col.ps-leftbar .ps-maincol > *{
  max-width: 100%;
  font-size:16px;
  line-height:1.9;
}

/* サイドバー側 */
.ps-content2col.ps-leftbar .ps-sidecol > *{
  width: 100%;
  box-sizing: border-box;
}

/* モバイル：1 カラムにフォールバック（本文→サイドバーの順） */
@media (max-width: 960px){
  .ps-content2col.ps-leftbar{
    grid-template-columns: 1fr !important;
    row-gap: var(--ps-gap);
  }
  .ps-content2col.ps-leftbar .ps-maincol{
    order: 1;
  }
  .ps-content2col.ps-leftbar .ps-sidecol{
    order: 2;
  }
}

/* サイドバー全体 */
.ps-sidebar{
  margin-top: 8px;
}
/* サイドバーの箱 */
.ps-sidebox{
  background:#fff;
  border:1px solid #e3e3e3;
  border-radius:8px;
  padding:12px 14px;
  margin:0 0 16px;
}
/* 見出し */
.ps-sideheading{
  font-size:15px;
  margin:0 0 10px;
  color:#0a5a5d;
  font-weight:600;
}

/* 今日のレート */
.ps-sidebar .ps-sidebox-rate{
  border: none;
  padding:0;
  font-size:12px;
}
.ps-sidebar .ps-sidebox-rate > *{
  padding-left: 14px;
  padding-right: 14px;
}
.ps-sidebar .ps-sidebox-rate > div:first-of-type{
  margin-top: 6px;
  margin-bottom: 8px;
}
.ps-sidebar .ps-sidebox-rate table{
  font-size: 12px;
}
.ps-sidebox-rate h3,
.ps-sidebox-rate h4{
  font-size:13px;
  color:#0a5a5d;
  margin-top:0;
}
.ps-sidebox-rate h5{
  font-size:12px;
  margin-top:0;
}

/* 送金シミュレーション */
.ps-sidebar .ps-sidebox-sim {
  border: none;
  padding: 0;
  margin: 4px 0 8px;
}

.ps-sidebar .ps-sidebox-sim .ps-sidebtn{
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  box-sizing: border-box;

  height: 44px;        /* 好みで 40〜48px くらいに調整OK */
  padding: 0 14px;     /* 上下 0 にして純粋に高さで揃える */

  margin: 0;
  font-size: 16px;
  line-height: 1.1;

  border: 0;
  background:#f46321;
  color:#fff;
  border-radius:6px;
  text-decoration:none;
}

/* テキストだけ 8px 上にズラす */
.ps-sidebtn-label {
  display: inline-block;
  transform: translateY(-8px);
}

.ps-sidebox-sim .ps-sidebtn:hover{
  opacity:.9;
}

/* ホームは 1 カラム：保険的に全リセット */
body.home .ps-content2col{
  display:block !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  grid-template-columns: none !important;
}
body.home .ps-content2col .wp-block-column{
  width:auto !important;
  margin:0 !important;
  flex:0 0 auto !important;
}

/* 念のため：ホームではサイドバー系クラスも無効化 */
body.home .ps-maincol,
body.home .ps-sidecol{ min-width:0; width:auto; }
