@charset "utf-8";
/* =========================================================
   カブスル リニューアル用追加スタイル
   既存の css/layout.css は変更しない
   このファイルの読み込みを外せば、従来デザインに戻ります
   配色：既存のグリーン／ミントグリーン／ホワイトを継承
   ========================================================= */

:root {
  --kb-green: #278747;
  --kb-green-dark: #246b3c;
  --kb-lime: #88ba3f;
  --kb-mint: #eaf4f1;
  --kb-mint-dark: #d5e8df;
  --kb-border: #dce8df;
  --kb-ink: #282828;
  --kb-shadow: 0 4px 16px rgba(36, 86, 54, .08);
}

/* 1. サイト全体：幅・段組みは元のまま */
body {
  color: var(--kb-ink);
  background: #f2f6f0;
  -webkit-font-smoothing: antialiased;
}
#wrap {
  border-color: #e1e9e2;
  box-shadow: 0 5px 32px rgba(30, 69, 47, .09);
}
#top > p, #page > p,
#top section > p, #page section > p {
  line-height: 1.85;
}
/* 本文上のリンクを濃い青・訪問済みを紫で識別 */
a:link { color: #075985; }
a:visited { color: #654078; }
a:hover { color: #176c3d; }
/* 記事中のリンクには下線を残し、本文との違いを色だけに頼らない */
#page p a:not(.notar), #top p a:not(.notar),
#page li a, #top li a, .link_b a, .link_s a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #267d52;
  outline-offset: 3px;
}

/* 2. ヘッダー：従来のロゴ・背景画像を活かしてリンクを整列 */
#header {
  border-bottom: 1px solid #cde0d2;
}
@media screen and (min-width: 841px) {
  .h_r { width: calc(100% - 255px); max-width: 650px; }
  .h_r ul {
    top: 28px;
    right: 7px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-size: 12px;
  }
  .h_r li {
    height: 25px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 0;
    padding: 0 6px;
    background: rgba(255,255,255,.96);
    border: 1px solid #d7e7d9;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(16,77,43,.08);
    transition: background-color .15s ease, border-color .15s ease;
  }
  .h_r li:hover {
    background: #edf7ed;
    border-color: #7ab17c;
  }
  .h_r li a, .h_r li a:link,
  .h_r li a:visited {
    font-size: 12px;
    font-weight: 700;
    color: #246544;
  }
  .h_r li a:hover { color: #14532d; }
  .h_r li::before {
    flex-shrink: 0;
    padding-left: 2px;
    background-position: center;
    vertical-align: middle;
  }
  /* SNSはリンク先・文字情報を保持したまま、ヘッダーのみアイコン表示 */
  .h_r li.hr_blog,
  .h_r li.hr_instagram,
  .h_r li.hr_youtube {
    width: 32px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .h_r li.hr_blog::before,
  .h_r li.hr_instagram::before,
  .h_r li.hr_youtube::before {
    display: none;
  }
  .h_r li.hr_blog a,
  .h_r li.hr_instagram a,
  .h_r li.hr_youtube a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-size: 0;
  }
  .h_r li.hr_nisa {margin-right:15px;}
  .h_r li.hr_blog {margin-right:6px;}
  .h_r li.hr_blog a {
    background: url("../img/bg_twi.png") center / 23px 23px no-repeat;
  }
  .h_r li.hr_youtube a {
    background: url("../img/bg_youtube2.png") center / 20px 20px no-repeat;
  }
  .h_r li.hr_instagram a::before {
    content: "\ea92";
    font-family: "icomoon" !important;
    font-size: 19px;
    font-weight: normal;
    line-height: 1;
    color: #a44985;
    transform: translateX(2px);
  }
}

.sp_menu_search form {margin-bottom:0;}

/* 既存のアイコンフォント「icomoon」を利用。追加画像は不要 */
.hr_instagram::before {
  content: "\ea92";
  display: inline-block;
  width: 20px;
  margin-right: 3px;
  font-family: "icomoon" !important;
  font-size: 19px;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  text-align: center;
  color: #a44985;
  vertical-align: -2px;
}
.h_r .hr_instagram::before { margin-right: 0; }

/* 3. h1は前回のグラデーションに戻す。h2～h4は既存のlayout.cssを使用 */
#page h1, #top h1 {
  min-height: 54px;
  box-sizing: border-box;
  padding: 13px 18px 13px 62px;
  color: #fff;
  border: 0;
  border-radius: 6px;
  background: url("../img/syosinnsya.png") 19px center no-repeat,
              linear-gradient(100deg,#247b3e 0%,#369344 56%,#8cbd3e 100%);
  box-shadow: 0 2px 7px rgba(34,98,49,.11);
}

/* 4. トップページ：更新欄・特集カード */
#top .board3 {
  box-sizing: border-box;
  background-color: #f4f9f5;
  border: 1px solid #dce9de;
  border-left: 4px solid #79ae78;
  border-radius: 8px;
  box-shadow: var(--kb-shadow);
}
#top .info_box {
  border-bottom: 0;
  margin-bottom: 19px;
}
#top .info_l {
  box-sizing: border-box;
  padding: 10px 10px 9px 12px;
  border: 1px solid var(--kb-border);
  border-radius: 7px;
  background: #fff;
}
#top .info_l li {
  border-bottom: 1px solid #ebf1ed;
}
#top .info_l li:last-child { border-bottom: 0; }
#top .info_l::-webkit-scrollbar-thumb,
#top .info_happyo::-webkit-scrollbar-thumb {
  background: #93ba9b;
  border-radius: 8px;
}
#top .info_happyo {
  box-sizing: border-box;
  height: 200px;
  margin-top: 15px;
  padding: 11px 12px;
  border: 1px solid var(--kb-border);
  border-radius: 8px;
  background: #fff;
}
#top .info_happyo .hp_ti {
  margin-bottom: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #2f8550;
  font-weight: 700;
}
#top .top_banner img {
  border-radius: 7px;
  box-shadow: 0 3px 10px rgba(44,75,47,.08);
  transition: transform .16s ease;
}
#top .top_banner a:hover img { transform: translateY(-2px); }
#top .t_p_box {
  box-sizing: border-box;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--kb-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(40,78,49,.035);
}
#top .t_p_box .t_p_h { width: calc(100% - 215px); }
#top .t_p_img img { border-radius: 5px; }

/* 5. お知らせ・参考記事・記事内ボックス */
.top_tiup, .page_tiup {
  background-color: #fffbe8;
  border: 1px solid #ecdfad;
  border-radius: 8px;
}
.top_tiup::after, .page_tiup::after,
.social-area-syncer::after, .sign::after, .board::after {
  content: none;
}
.top_tiup::before, .page_tiup::before,
.social-area-syncer::before, .sign::before, .board::before {
  box-shadow: none;
}
.board3, .board5, .po_bikou, .po_sanko, .po_none,
.po_kabu, .po_none2 {
  border-radius: 8px;
}
.link_b, .link_s {
  color: #282828;
  border: 1px solid #c3dce7;
  border-left: 4px solid #6ba6bb;
  border-radius: 7px;
  padding: 14px 9px 6px;
  background-color: #e4f1f0;
}
.link_b span, .link_s span {
  color: #fff;
  font-weight: 700;
  border-color: #deedf3;
  /*background-color: #216b84;*/
}
#page .nextbox a,
#page .nextbox a:link,
#page .nextbox a:visited,
#page .nextbox a:active {
  color: #fff;
  background-color: #137c94;
  border-color: #137c94;
}
#page .nextbox a:hover,
#page .nextbox a:focus-visible {
  color: #176e86;
  background-color: #e3fffe;
}
.mokuji ol {
  border: 1px solid #bad4c3;
  border-left: 4px solid #71a982;
  border-radius: 7px;
  background: #edf6f0;
  padding: 13px 12px;
}
/* 目次はリンクと項目の区切りを明示。入れ子の小見出しは現行の構造を維持 */
.mokuji > ol > li {
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid #d3e5d9;
}
.mokuji > ol > li:last-child { border-bottom: 0; }
.p_mokuji, .mokuji ol li::before { background-color: #327e55; }
#page .mokuji ol li a, #top .mokuji ol li a, .mokuji ol li a {
  line-height: 1.6;
  text-decoration: none;
}
.mokuji ol li a:hover {
  color: #175a3e;
  background-color: #dbece1;
  border-radius: 3px;
}

/* 6. サイドナビ：アイコン・構成はそのままで質感を更新 */
#menu > ul > li > a, #menu > ul > li > span {
  box-sizing: border-box;
  border: 1px solid #cfe2dc;
  border-left: 4px solid #93c2b6;
  border-radius: 6px;
  background-color: #eff7f5;
  transition: background-color .15s ease, border-color .15s ease;
}
#menu > ul > li > a:hover {
  border-color: #8ebf69;
  background-color: #e8f4df;
}
#menu .subc a:link { color: #075985; }
#menu .subc a:visited { color: #654078; }
#menu .subc a:hover { color: #277d44; }

/* 7. 表：落ち着いた青みのグレー。thは濃色＋白文字で強調 */
.tb_brown table, .tb_brown_l table, .tb_brown_sp table {
  background-color: #e0e6ed;
  border-color: #bfcbd6;
}
.tb_brown th, .tb_brown td,
.tb_brown_l th, .tb_brown_l td,
.tb_brown_sp th, .tb_brown_sp td { border-color: #c7d2dc; }
.tb_brown th, .tb_brown_l th, .tb_brown_sp th {
  color: #fff;
  background-color: #405e78;
  font-weight: 700;
}
/* ヘッダー内にリンクがある表でも白文字で読みやすくする */
.tb_brown th a:any-link,
.tb_brown_l th a:any-link,
.tb_brown_sp th a:any-link {
  color: #fff;
  text-decoration: underline;
}

/* 8. SNS・下部エリア */
.social-area-syncer {
  box-sizing: border-box;
  margin: 17px auto;
  padding: 15px 18px;
  border: 1px solid #d4e7da;
  border-left: 4px solid #6ca681;
  border-radius: 8px;
  background: #f2f8f3;
}
.social-area-syncer p { margin: 3px 0 12px; }
.social-area-syncer a.hr_blog,
.social-area-syncer a.hr_youtube,
.social-area-syncer a.hr_instagram {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  box-sizing: border-box;
  margin: 3px 3px 3px 0;
  padding: 4px 9px;
  border: 1px solid #d4e4dc;
  border-radius: 5px;
  background: #fff;
  color: #25613e;
  text-decoration: none;
  font-size: 70%;
  font-weight: 700;
}
.social-area-syncer a.hr_blog:hover,
.social-area-syncer a.hr_youtube:hover,
.social-area-syncer a.hr_instagram:hover {
  border-color: #91c59f;
  background: #e8f5eb;
}
.social-area-syncer .hr_instagram::before { margin-right: 6px; }
.sitemap {
  border-top: 3px solid #77b582;
  border-radius: 7px 7px 0 0;
  background-color: #f7faf5;
}
.sitemap .p_site {
  padding: 3px 0;
  border-radius: 4px;
  background-color: #418c5a;
}
#koukoku {
  border-radius: 8px;
  background-color: #7dad42;
}
#koukoku .koukoku_box,
#koukoku .koukoku_box2 { border-radius: 5px; }
#tiup_box { border-radius: 7px; }

/* 9. レスポンシブ：既存の840px / 435px境界を維持 */
@media screen and (max-width: 840px) {
  /* スマホのロゴ下：おすすめ証券 / IPO / X・Instagram・YouTubeを1行に */
  #header { height: 154px; }
  #header .h_r {
    display: block;
    position: absolute;
    top: 102px;
    left: 0;
    width: 100%;
    height: 38px;
    float: none;
    clear: none;
  }
  #header .h_r ul {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    white-space: nowrap;
  }
  #header .h_r li { display: none; }
  #header .h_r li.hr_syo,
  #header .h_r li.hr_ipo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 32px;
    margin: 0;
    padding: 0 3px;
    background: #fff;
    border: 1px solid #d7e7d9;
    border-radius: 5px;
    white-space: nowrap;
  }
  #header .h_r li.hr_syo::before,
  #header .h_r li.hr_ipo::before {
    flex-shrink: 0;
    padding-left: 0;
    margin-right: 1px;
    background-position: center;
    background-size: contain;
  }
  #header .h_r li.hr_syo a,
  #header .h_r li.hr_ipo a {
    color: #246544;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
	padding-left:3px;
  }
  #header .h_r li.hr_ipo {margin-right:10px;}
  #header .h_r li.hr_blog,
  #header .h_r li.hr_instagram,
  #header .h_r li.hr_youtube {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 30px;
    height: 34px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
  }
  #header .h_r li.hr_blog::before,
  #header .h_r li.hr_instagram::before,
  #header .h_r li.hr_youtube::before { display: none; }
  #header .h_r li.hr_blog a,
  #header .h_r li.hr_instagram a,
  #header .h_r li.hr_youtube a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 34px;
    font-size: 0;
    line-height: 1;
    text-decoration: none;
  }
  #header .h_r li.hr_blog a {
    background: url("../img/bg_twi.png") center / 23px 23px no-repeat;
  }
  #header .h_r li.hr_youtube a {
    background: url("../img/bg_youtube2.png") center / 22px 22px no-repeat;
  }
  #header .h_r li.hr_instagram a::before {
    content: "\ea92";
    font-family: "icomoon" !important;
    font-size: 19px;
    font-weight: normal;
    color: #a44985;
    transform: translateX(2px);
	margin-left: 4px;
  }
  #wrap { box-shadow: none; }
  #top .t_p_box .t_p_h { width: 100%; }
  #top .t_p_img {
    width: 100%;
    text-align: center;
    margin-top: 11px;
  }
  #top .t_p_img img { width: auto; max-width: min(100%, 240px); }
  #top .info_l, #top .info_r { width: 100%; }
  #menu > ul > li > a, #menu > ul > li > span {
    border-width: 1px 1px 1px 4px;
  }
}
@media screen and (max-width: 435px) {
  #page h1, #top h1 {
    min-height: 0;
    margin-top: 14px;
    margin-bottom: 24px;
    padding: 14px 13px;
    border: 0;
    border-radius: 5px;
    background: linear-gradient(100deg,#267e42,#6ba93e);
    line-height: 1.5;
  }
  #top .board3 { padding: 12px; }
  #top .info_happyo { height: 200px; }
  .social-area-syncer { padding: 13px 11px; }
  .social-area-syncer a.hr_blog,
  .social-area-syncer a.hr_youtube,
  .social-area-syncer a.hr_instagram {
    margin: 4px 2px;
    padding: 7px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #top .top_banner img, .h_r li,
  #menu > ul > li > a { transition: none; }
  #top .top_banner a:hover img { transform: none; }
}


/* ヘッダーのX・Instagram・YouTube：マウスオン効果 */
#header .h_r li.hr_blog a,
#header .h_r li.hr_instagram a,
#header .h_r li.hr_youtube a {
  transition: opacity .16s ease, transform .16s ease;
}

@media (hover: hover) and (pointer: fine) {
  #header .h_r li.hr_blog a:hover,
  #header .h_r li.hr_instagram a:hover,
  #header .h_r li.hr_youtube a:hover {
    opacity: .55;
    transform: translateY(-1px) scale(1.06);
  }
}

/* 動きを抑える設定の環境では拡大・移動させない */
@media (prefers-reduced-motion: reduce) {
  #header .h_r li.hr_blog a,
  #header .h_r li.hr_instagram a,
  #header .h_r li.hr_youtube a {
    transition: none;
  }
  #header .h_r li.hr_blog a:hover,
  #header .h_r li.hr_instagram a:hover,
  #header .h_r li.hr_youtube a:hover {
    transform: none;
  }
}
