/*
Theme Name: RGB Common (Parent)
Author: Toshihisa OGINO
Bootstrap 5 + FontAwesome 6 + Google Fonts を前提にした最小限カスタム
*/

/* =====================  ユーティリティ  ===================== */
.green a:hover{color:#000;text-decoration:underline}

/* =====================  レスポンシブ表示切替  ===================== */
.pc_area{display:block}
.phone_area{display:none}
@media (max-width:767px){
  .pc_area{display:none}
  .phone_area{display:block}
}

/* =====================  メインビジュアル  ===================== */
.wrap2{position:relative}
.wrap2 img{width:100%;height:auto}
.page-title-en,.page-title,.page-title-ch{
  position:absolute;left:50%;transform:translateX(-50%);
  z-index:10;color:#fff
}
.page-title-en,.page-title-ch{font:italic 1.2rem 'Vollkorn',serif}
.page-title-en{top:26%}
.page-title   {top:40%}
.page-title-ch{top:50%}
@media (max-width:767px){
  .page-title-en,.page-title-ch{font-size:.9rem}
  .page-title{font-size:1.5rem;top:30%}
  .page-title-en{top:18%}
  .page-title-ch{top:40%}
}

/* =====================  記事（kiji）  ===================== */
.kiji h1{
  margin:0;padding:5px 20px;font-size:20px;font-weight:700;
  color:#fff;background:#404040
}
.kiji-date,.kiji-author,.kiji-tag,.kiji-category{
  margin:0 0 10px;padding-left:30px;font-size:13px;color:#666
}
@media (max-width:599px){
  .kiji-date,.kiji-author,.kiji-tag{font-size:10px!important}
}
.kiji-body{margin:0 0 30px;padding:5px 20px}
.kiji p{margin:0;padding:0 10px}
.kiji:after{content:"";display:block;clear:both}

/* --- 見出し --- */
.kiji .kiji-body h2,
.kiji .kiji-body h3,
.kiji .kiji-body h4{clear:both}
.kiji .kiji-body h2{
  position:relative;margin-top:30px;padding-left:32px;
  border-bottom:2px solid #00a0e9;font-size:24px
}
.kiji .kiji-body h2:before{
  content:"\f14a";position:absolute;left:0;top:-4px;
  font-family:"Font Awesome 6 Free";font-weight:900;font-size:28px;line-height:1;color:#00a0e9
}
.kiji .kiji-body h3{
  margin-top:25px;padding-left:10px;border-left:10px solid #a5e2fe;font-size:18px
}
.kiji .kiji-body h4{
  margin-top:30px;padding:5px 20px;font-size:20px;font-weight:700;
  color:#fff;background:#404040
}
@media (max-width:599px){
  .kiji h1{font-size:24px}
  .kiji p{font-size:14px}
  .kiji .kiji-body h2{font-size:18px;padding-left:21px}
  .kiji .kiji-body h2:before{font-size:20px}
  .kiji .kiji-body h3{font-size:15px;padding-left:6px}
}

/* --- 箇条書き --- */
.kiji-body ul{list-style:none}
.kiji-body li{position:relative;padding-left:20px}
.kiji-body li:before{
  content:"\f069";position:absolute;left:0;top:3px;
  font-family:"Font Awesome 6 Free";font-weight:900;color:#aaa
}

/* --- 補足ボックス --- */
.point,.attention{
  position:relative;margin:40px 0 30px;border-radius:10px;font-size:14px
}
.point{
  padding:25px 20px 20px;background:#cfedb7
}
.point:before{
  content:"\f0eb";position:absolute;left:15px;top:-15px;z-index:2;
  width:32px;height:32px;padding-top:3px;border-radius:16px;
  background:#5ab80e;color:#fff;font-family:"Font Awesome 6 Free";font-weight:900;font-size:26px;line-height:1;text-align:center
}
.point:after{
  content:"POINT";position:absolute;left:32px;top:-8px;z-index:1;
  padding:3px 10px 3px 20px;border-radius:5px;
  background:#5ab80e;color:#fff;font-weight:700
}
.attention{
  padding:20px;border:2px dotted #f00;background:#ffefef
}
.attention:before{
  content:"\f071";position:absolute;left:20px;top:-15px;
  color:#f00;background:#fff;font-family:"Font Awesome 6 Free";font-weight:900;font-size:26px;line-height:1
}

/* ハイライト */
.highlight{background:#ff0;padding:0 3px}

/* =====================  セクションブロック  ===================== */
.sectionBlock1,.sectionBlock2,.sectionBlock3{
  border:1px solid #ccc;background:#f5f5f5;margin:20px 10px;padding:10px;line-height:1.8
}
.sectionBlock2{background:#000;border-width:2px;color:#fff}
.sectionBlock1 h1,
.sectionBlock2 h1,
.sectionBlock3 h1{margin:0;padding:10px;font-weight:700}
.sectionBlock1 h1{background:#00f;color:#fff;font-size:18px}
.sectionBlock2 h1{background:#fff;color:#000;padding:10px 30px;font-size:20px}
.sectionBlock3 h1{background:#00f;color:#fff;font-size:18px}
.sectionBlock3 h4{
  margin:10px 10px 0;padding:10px;background:#00f;color:#fff;font-size:16px;font-weight:700
}
.sectionBlock3 h5{
  margin:10px;padding:10px;background:#aaa;color:#000;font-size:16px;font-weight:700
}
.sectionBlock1 ul,
.sectionBlock2 ul{margin:10px 0;padding:0;list-style:none}
.sectionBlock1 li,
.sectionBlock2 li{position:relative;padding-left:30px;border-bottom:1px dotted #ccc}
.sectionBlock2 li{border-color:#fff;color:#fff}
.sectionBlock1 li:before,
.sectionBlock2 li:before{
  content:"\f069";position:absolute;left:5px;top:4px;
  font-family:"Font Awesome 6 Free";font-weight:900
}
.sectionBlock2 li:before{color:#fff}

/* Goto Top リンクを右寄せ */
.goto-top{
  display: block;
  text-align: right;  /* ← 右寄せ */
  margin-top: 1rem;
}
.goto-top a{
  color: var(--pl-accent);
  text-decoration: none;
  font-size: .95rem;
}
.goto-top a:hover{
  text-decoration: underline;
}

/* =====================  サイドバー  ===================== */
sidebar{margin:0}
.menu-sidebar,
.menu-sidebar-calendar,
.menu-sidebar-lists{
  margin-bottom:20px;border:1px solid #aaa;border-radius:2px;
  box-shadow:5px 5px 10px rgba(0,0,0,.3);background:#fff
}
.menu-sidebar-lists{background:#ffc}
.menu-sidebar h3,
.menu-sidebar-calendar h3,
.menu-sidebar-lists h3,
.menu-sidebar-lists h4{
  margin:0;padding:10px 20px;font-weight:700;color:#fff;background:#404040
}
/* 色バリエーション */
.menu-sidebar h3.blue{background:#248BD9}
.menu-sidebar h3.aqua{background:#1A43AB}
.menu-sidebar h3.orange,
.menu-sidebar-calendar h3.orange{background:#F88D1B}
.menu-sidebar h3.green,
.menu-sidebar-calendar h3.green{background:#5BA742}
.menu-sidebar h3.red{background:#E34085}
.menu-sidebar h3.yellow{background:#AB7135}
/* 共通リンク */
.menu-sidebar ul,
.menu-sidebar-calendar ul,
.menu-sidebar-lists ul{margin:0;padding:0;list-style:none;font-size:14px;line-height:1.4}
.menu-sidebar li a,
.menu-sidebar li.icon a{
  position:relative;display:block;margin:10px;
  padding:10px 5px 10px 30px;border:1px solid #aaa;
  color:#000;text-decoration:none
}
.menu-sidebar li a:before,
.menu-sidebar li.icon a:before{
  content:"\f0ea";position:absolute;left:5px;top:50%;transform:translateY(-50%);
  font-family:"Font Awesome 6 Free";font-weight:900;font-size:16px;color:#00f
}
.menu-sidebar li.status a:before,
.menu-sidebar li.aside a:before{content:"\f0f6";color:#f00}
.menu-sidebar li.icon a:before{content:""}
.menu-sidebar li a:hover{background:#048;color:#fff}
.menu-sidebar li a:hover:before{color:#fff}
.menu-sidebar .current{margin:10px;font-weight:700;background:#8abc60}
.menu-sidebar .current a{color:#fff}

/* 内部リスト */
.menu-sidebar li li a{margin:0 0 1px;padding-left:50px;font-size:12px}
.menu-sidebar li li a:before{content:"\f0c5";left:30px;color:#f00;font-family:"Font Awesome 6 Free";font-weight:900}
.menu-sidebar li li.page a{background:#cf0;color:#00f}
.menu-sidebar li li a:hover{background:#048;color:#fff}
.menu-sidebar li li a:hover:before{color:#fff}

/* pickup */
.menu-sidebar-pickup{margin-bottom:20px}
.menu-sidebar-pickup ul{margin:0;padding:0;list-style:none}
.menu-sidebar-pickup li a{
  display:block;padding:10px;color:#fff;background:#048;text-decoration:none
}
.menu-sidebar-pickup li a:hover{background:#E34085}
.menu-sidebar-pickup img{float:left;border:none}
.menu-sidebar-pickup p{margin-left:110px}
.menu-sidebar-pickup .title{font-size:16px}
.menu-sidebar-pickup .desc{font-size:12px;color:#ccc}
.menu-sidebar-pickup li a:after{content:"";display:block;clear:both}

/* lists (記事リスト) */
.menu-sidebar-lists li a{
  display:block;padding:10px;color:#000;border-bottom:1px dotted #ccc;text-decoration:none
}
.menu-sidebar-lists li a:hover{background:#048;color:#fff}
.menu-sidebar-lists time{float:left}
.menu-sidebar-lists .title{font-weight:700}
.menu-sidebar-lists .current{background:#cf0}
.menu-sidebar-lists .desc{font-size:12px;color:#666}

/* =====================  投稿ナビゲーション  ===================== */
#frame_post{margin:10px 0;padding:10px;font-size:14px;color:#ff0;background:#000}
#frame_post a{color:#fff}
#frame_post a:hover{color:#eee;font-weight:700}
#frame_post.right{text-align:right;font-size:90%}

/* =====================  汎用 BOX  ===================== */
.box,.box2{overflow:auto;padding:10px 5px;width:100%}
.box{height:500px}
.box2{height:200px}

/* =====================  モバイル専用調整  ===================== */
@media (max-width:767px){
  .sectionBlock1,.sectionBlock2,.sectionBlock3{margin:10px;font-size:95%}
  .box{height:300px}
  .box2{height:150px}
  .menu-sidebar,
  .menu-sidebar-calendar,
  .menu-sidebar-lists{margin:10px 0}
  .menu-sidebar li a,
  .menu-sidebar li.icon a{padding:8px 5px 8px 20px;font-size:13px}
  .menu-sidebar li li a{padding-left:40px;font-size:12px}
}

/* =====================  リンクボタン & ページネーション  ===================== */
.another-link{
  display:inline-block;padding:10px 15px;font-size:16px;font-weight:600;
  color:#fff;background:#007bff;border-radius:5px;text-decoration:none;
  transition:background .3s
}
.another-link:hover{background:#0056b3;text-decoration:none}
.next{text-align:right;margin-top:20px}
.prev{text-align:left;margin-top:20px}
.container-navigation{
  display:flex;justify-content:space-between;align-items:center;margin-top:30px
}
@media (max-width:767px){
  .another-link{font-size:14px;padding:8px 10px}
  .container-navigation{flex-direction:column;gap:10px}
}

/* =====================  デスクトップ専用  ===================== */
@media (min-width:600px){
  .page-title{font-size:2.15rem}
  .page-desc{font-size:1rem}
  contents{display:flex;width:90%}
  main{margin:0 1rem}
  .index{position:sticky;top:1rem}
}

/* =====================  ヘッダー（ロゴ＋検索）  ===================== */
.header-container{
  display:flex;justify-content:space-between;align-items:center;
  padding:10px 20px;position:relative
}
.search-icon img{width:30px;height:30px;cursor:pointer}
.search-box{
  position:absolute;top:50%;right:10px;transform:translateY(-50%);
  background:#fff;border:1px solid #ccc;border-radius:5px;padding:10px;display:none
}
.search-input{width:180px;padding:5px}

/* ========== モバイル専用（最も後ろに置く） ========== */
@media only screen and (max-width: 767.98px){

  /* 1. 検索UIを隠す */
  .header-container .search-icon,
  .header-container #search-box{display:none!important;}

  /* 2. カルーセルを拡大 */
  #main_visual .carousel-item img{
    height:20vh!important;width:100%!important;object-fit:cover!important;
  }
  .carousel-caption{
    display:block!important;background:rgba(0,0,0,.5);padding:10px;border-radius:8px;
  }
  .carousel-caption h2,
  .carousel-caption p{color:#fff!important;font-size:1rem}
}

/* =====================  サイドバー：アイコン差し替え ===================== */
/* 固定ページ用アイコン → fa-file-lines */
.menu-sidebar li.page a:before,
.menu-sidebar li.page_item a:before{
  content:"\f15c";                                        /* file-lines */
  font-family:"Font Awesome 6 Free";
  font-weight:900;
}

/* 投稿（記事）用アイコン → fa-newspaper */
.menu-sidebar li.post a:before,
.menu-sidebar li.post_item a:before{
  content:"\f1ea";                                        /* newspaper */
  font-family:"Font Awesome 6 Free";
  font-weight:900;
}

/* =====================  スマホ専用：.wrap2 画像を 25vh に固定  ===================== */
@media (max-width: 767.98px){          /* 768px 未満をスマホと定義 */

  .wrap2 .page-title-en,
  .wrap2 .page-title,
  .wrap2 .page-title-ch{
    left: 10px;              /* 左端から 10px */
    right: 10px;             /* 右端から 10px */
    transform: none;         /* 50% 中央寄せを打ち消す */
    text-align: center;      /* 文字自体は中央揃え */
  }

  /* 画像高さを 25vh に固定（前ステップ） */
  .wrap2 img{
    width:100%;
    height:20vh;
    object-fit:cover;
  }

}

.archive-header .archive-title {
  letter-spacing: .02em;
}

.card .entry-title a:hover {
  opacity: .8;
}

.card .meta i {
  margin-right: .25rem;
}

.ratio .object-fit-cover {
  object-fit: cover;
}

.pagination .page-link {
  border: none;
  border-radius: .75rem;
  margin: 0 .15rem;
}

.pagination .page-item.active .page-link {
  background: var(--bs-gray-900, #111827);
  color: #fff;
}

.tag-cloud a,
.cat-list a {
  color: inherit;
  opacity: .9;
}
.tag-cloud a:hover,
.cat-list a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* この表だけの調整（table に .sx-frame を付与する前提） */
table.sx-frame caption{
  display: table-caption !important;  /* 非表示を打ち消す */
  caption-side: top !important;       /* 上に出す */
  font-weight: 700;
  padding: 6px 0;
  text-align: center;
}

/* ---- テーブル内リンク：通常は白＋下線、ホバーで色変更＆下線オフ ---- */
:root{
  /* 好みのホバー色に変更可 */
  --table-link-hover-color: #5eead4; /* 明るいシアン系 */
}

table a,
table a:visited {
  color: #fff !important;
  text-decoration: underline !important;
  text-underline-offset: 0.12em;
  transition: color .2s ease, text-decoration-color .2s ease;
}

table a:hover,
table a:focus,
table a:active {
  color: var(--table-link-hover-color) !important;
  text-decoration: none !important;
}

/* =====================  テーブル（sx-frame）  ===================== */
table.sx-frame caption{
  display:table-caption !important;
  caption-side:top !important;
  font-weight:700; padding:6px 0; text-align:center;
}

/* テーブル内リンク：白＋下線 → ホバーで色 */
:root{ --table-link-hover-color:#5eead4; }
table a, table a:visited{
  color:#fff !important; text-decoration:underline !important; text-underline-offset:.12em;
  transition: color .2s ease, text-decoration-color .2s ease;
}
table a:hover, table a:focus, table a:active{
  color:var(--table-link-hover-color) !important; text-decoration:none !important;
}

/* =====================  サイドバー：アイコン種別  ===================== */
.menu-sidebar li.page a:before,
.menu-sidebar li.page_item a:before{
  content:"\f15c"; /* file-lines */
  font-family:"Font Awesome 6 Free"; font-weight:900;
}
.menu-sidebar li.post a:before,
.menu-sidebar li.post_item a:before{
  content:"\f1ea"; /* newspaper */
  font-family:"Font Awesome 6 Free"; font-weight:900;
}

.navbar-nav {
  gap: 1.5rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  letter-spacing: 0.03em;
}



