@charset "UTF-8";
/* ==========================================================================
   研修技術センター株式会社 — 1ページ構成用スタイル
   hpbparts.css / container_9Gb_2c_top.css / main_9Gb_2c.css / user.css を
   統合・整理したもの。配色と寸法は元CSSの値をそのまま引き継いでいます。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 設定値（ここだけ変えれば全体に反映されます）
   -------------------------------------------------------------------------- */
:root{
  /* 配色 */
  --c-text:          #000000;
  --c-text-sub:      #707070;  /* コピーライト */
  --c-link-hover:    #59afb8;  /* リンクのホバー色 */
  --c-nav-hover:     #49658d;  /* ナビのホバー文字色 */
  --c-accent:        #feda37;  /* h4 の左ライン */
  --c-border:        #dedede;
  --c-rule:          #cccccc;  /* 表の罫線 */
  --c-bg:            #ffffff;
  --c-bg-topbar:     #000000;  /* ヘッダー上部の黒帯 */
  --c-bg-h2:         #e4e4e4;  /* ページ見出し */
  --c-bg-h3:         #e4ecf7;  /* 本文見出し */
  --c-bg-side-h3:    #d2deed;  /* サイドバー見出し */
  --c-bg-th:         #f3f3f3;  /* 表の見出しセル */

  /* 寸法 */
  --w-site:          900px;    /* 全体幅 */
  --w-aside:         295px;    /* サイドバー幅 */
  --gap:             9px;      /* 本文とサイドバーの間隔 */
  --pad-x:           20px;     /* 本文の左右インデント */

  /* 固定ボタン（1行あたりの高さ × 行数 でアンカー位置を計算） */
  --h-navrow:        57px;
  --navrows:         1;

  /* 文字 */
  --font: 'メイリオ', Meiryo, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro',
          'ＭＳ Ｐゴシック', Osaka, sans-serif;
}

/* --------------------------------------------------------------------------
   2. ベース
   -------------------------------------------------------------------------- */
*,
*::before,
*::after{ box-sizing: border-box; }

body{
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 85%;            /* 元CSSと同じ基準サイズ（約13.6px） */
  line-height: 1.4;
  color: var(--c-text);
  background-color: var(--c-bg);
  text-align: left;
}

img{ border: 0; max-width: 100%; height: auto; vertical-align: bottom; }

a{ color: var(--c-text); text-decoration: underline; }
a:hover,
a:focus{ color: var(--c-link-hover); text-decoration: none; }

/* 見出しの英字サブ表記 */
h2 span.en{ font-size: .8em; text-transform: uppercase; color: var(--c-text-sub); }

/* スクリーンリーダー向けの見出し・スキップリンク */
#hpb-skip a,
.hpb-c-index{
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
}
#hpb-skip a:focus{
  position: static; width: auto; height: auto;
  margin: 0; padding: 8px; clip-path: none;
  background: var(--c-bg-h3);
}

/* --------------------------------------------------------------------------
   3. 上部固定ボタン（6セクションへのリンク）
   -------------------------------------------------------------------------- */
#tt-fixed-nav{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
#tt-fixed-nav ul{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: var(--w-site);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
#tt-fixed-nav li{ display: flex; }
#tt-fixed-nav a{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  border-left: 1px solid var(--c-border);
}
#tt-fixed-nav li:first-child a{ border-left: 0; }
#tt-fixed-nav a:hover,
#tt-fixed-nav a:focus{ background: var(--c-bg-h3); color: var(--c-nav-hover); }

/* 各セクションの着地点を固定バーの高さ分だけ手前にずらす */
.tt-anchor{
  display: block;
  height: 0;
  scroll-margin-top: calc(var(--h-navrow) * var(--navrows) + 8px);
}
html{ scroll-behavior: smooth; }

/* --------------------------------------------------------------------------
   4. メイン画像
   -------------------------------------------------------------------------- */
#tt-top-visual{ max-width: var(--w-site); margin: 0 auto; }
#tt-top-visual img{ display: block; width: 100%; }

/* --------------------------------------------------------------------------
   5. ヘッダー
   -------------------------------------------------------------------------- */
#hpb-headerMain{ background: var(--c-bg-topbar); }
#hpb-headerMain h1{
  max-width: var(--w-site);
  margin: 0 auto;
  padding: 5px var(--pad-x);
  font-size: 12px;
  font-weight: normal;
  line-height: 1.5;
  text-align: right;
  color: #fff;
}

/* --------------------------------------------------------------------------
   6. 全体レイアウト（本文＋サイドバーの2カラム）
   -------------------------------------------------------------------------- */
#hpb-inner{
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--w-aside);
  grid-template-areas: "main side";
  column-gap: var(--gap);
  max-width: var(--w-site);
  margin: 0 auto;
  padding: 0 var(--pad-x) 40px;
}
#hpb-wrapper{ grid-area: main; min-width: 0; }
#hpb-aside  { grid-area: side; padding-top: 50px; }

/* --------------------------------------------------------------------------
   7. ページ見出し（各セクションの帯）
   -------------------------------------------------------------------------- */
.hpb-title{ margin-top: 50px; }
.hpb-title h2{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 10px var(--pad-x);
  font-size: 1.2em;
  background: var(--c-bg-h2);
  border: 1px solid var(--c-border);
}

/* --------------------------------------------------------------------------
   8. 本文
   -------------------------------------------------------------------------- */
.hpb-main{ padding: 8px 0 10px; }

.hpb-main h3{
  margin: 1.5em 0 1em;
  padding: 5px 5px 5px 10px;
  font-size: 1em;
  background: var(--c-bg-h3);
  border: 1px solid var(--c-border);
}
.hpb-main h4{
  margin: 0 0 0 var(--pad-x);
  padding: 2px 10px 1px 5px;
  font-size: 1.1em;
  line-height: 1.2;
  border-left: 3px solid var(--c-accent);
}
.hpb-main p{
  margin: 0 0 1em;
  padding: 1em var(--pad-x) 0;
}
.hpb-main p.large{ font-weight: bold; }

.hpb-main blockquote{
  margin: .5em var(--pad-x) 1em;
  padding: 0;
}
.hpb-main blockquote h4{ margin-left: 0; }
.hpb-main blockquote p{ padding: .5em 0 0; }

.hpb-main hr{
  height: 0;
  margin: 10px 0 20px;
  border: 0;
  border-top: 1px solid var(--c-border);
  clear: both;
}

/* 表 */
.hpb-main table{
  width: calc(100% - var(--pad-x) * 2);
  margin: 5px var(--pad-x);
  border-collapse: collapse;
  border-top: 1px solid var(--c-rule);
  border-left: 1px solid var(--c-rule);
}
.hpb-main th,
.hpb-main td{
  padding: 8px 15px 8px 8px;
  text-align: left;
  border-right: 1px solid var(--c-rule);
  border-bottom: 1px solid var(--c-rule);
}
.hpb-main th{ background: var(--c-bg-th); }

/* 定義リスト（略歴・会社概要） */
.hpb-main dl{
  display: grid;
  grid-template-columns: 120px 1fr;
  margin: 0 var(--pad-x) 20px;
}
.hpb-main dt{
  padding: 5px 0;
  font-weight: normal;
}
.hpb-main dd{
  margin: 0;
  padding: 5px 0 7px;
  border-bottom: 1px solid #d8d8d8;
}

/* 箇条書き */
.hpb-main ul{ margin: 0; padding: 0 var(--pad-x); list-style: none; }
.hpb-main ul li{
  padding: 10px 15px 10px 5px;
  border-bottom: 1px dotted #ddd;
}

/* ページの先頭へ */
.pagetop{ margin-top: 30px; text-align: right; }
.pagetop a{
  display: inline-block;
  padding: 6px 14px;
  font-size: .9em;
  text-decoration: none;
  border: 1px solid var(--c-border);
}
.pagetop a:hover,
.pagetop a:focus{ background: var(--c-bg-h3); }

/* --------------------------------------------------------------------------
   9. サイドバー
   -------------------------------------------------------------------------- */
#banner ul{ margin: 0 0 10px; padding: 0; list-style: none; }
#banner li{ padding-bottom: 10px; }
#banner li a{
  display: block;
  width: 294px;
  max-width: 100%;
  height: 81px;
  overflow: hidden;
  text-indent: -9999px;
  background-position: top left;
  background-repeat: no-repeat;
  background-size: contain;
}

.associationinfo{
  margin-bottom: 15px;
  padding-bottom: 15px;
  border: 3px solid var(--c-border);
}
.associationinfo h3{
  margin: 0 0 10px;
  padding: 10px 5px 8px 15px;
  font-size: 1em;
  background: var(--c-bg-side-h3);
}
.associationinfo p{ margin: 0; padding: 2px 5px 0 15px; font-size: 1.1em; }
.associationinfo img{ margin: 5px 0 0 15px; }
#hpb-aside hr{ display: none; }

/* --------------------------------------------------------------------------
   10. フッター
   -------------------------------------------------------------------------- */
#hpb-footer{ border-top: 1px solid var(--c-border); }
#hpb-footerMain p{
  max-width: var(--w-site);
  margin: 0 auto;
  padding: 25px var(--pad-x);
  font-size: .8em;
  color: var(--c-text-sub);
  text-align: center;
  word-break: break-all;
}

/* --------------------------------------------------------------------------
   11. レスポンシブ
   -------------------------------------------------------------------------- */
@media screen and (max-width: 900px){
  :root{ --navrows: 2; }
  #tt-fixed-nav ul{ grid-template-columns: repeat(3, 1fr); }
  #tt-fixed-nav li:first-child a{ border-left: 1px solid var(--c-border); }
  #tt-fixed-nav li:nth-child(3n+1) a{ border-left: 0; }
  #tt-fixed-nav li:nth-child(n+4) a{ border-top: 1px solid var(--c-border); }
}

@media screen and (max-width: 768px){
  #hpb-inner{
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "main" "side";
  }
  #hpb-aside{ padding-top: 30px; }
  .hpb-title{ margin-top: 30px; }
  .hpb-main dl{ grid-template-columns: minmax(0, 1fr); }
  .hpb-main dt{ padding-bottom: 0; font-weight: bold; }
  .hpb-main dd{ padding-top: 2px; }
  }

@media screen and (max-width: 480px){
  :root{ --navrows: 3; --pad-x: 12px; --h-navrow: 52px; }
  #tt-fixed-nav ul{ grid-template-columns: repeat(2, 1fr); }
  #tt-fixed-nav a{ font-size: 12px; padding: 9px 3px; }
  #tt-fixed-nav li:nth-child(3n+1) a{ border-left: 1px solid var(--c-border); }
  #tt-fixed-nav li:nth-child(2n+1) a{ border-left: 0; }
  #tt-fixed-nav li:nth-child(n+3) a{ border-top: 1px solid var(--c-border); }
  .hpb-main table{ width: 100%; margin: 5px 0; }
  .hpb-main th,
  .hpb-main td{ padding: 6px; }
}

/* --------------------------------------------------------------------------
   12. 印刷
   -------------------------------------------------------------------------- */
@media print{
  #tt-fixed-nav,
  .pagetop{ display: none; }
  #hpb-inner{ display: block; }
}

/* --------------------------------------------------------------------------
   付記：元テンプレートの装飾画像を使う場合は以下を有効にしてください
   （headerBg / titleBg / mainmenuBg / footerBg / returnTop の各PNGが必要です）

   #hpb-container { background: url(img/headerBg_9Gb.png) repeat-x center top; }
   .hpb-title h2  { background: url(img/titleBg_9Gb.png) no-repeat left top;
                    height: 42px; line-height: 42px; padding: 0 0 0 18px; border: 0; }
   #hpb-footer    { background: url(img/footerBg_9Gb.png) repeat-x left top; border-top: 0; }
   .pagetop a     { width: 126px; height: 26px; padding: 0; border: 0;
                    text-indent: -9999px;
                    background: url(img/returnTop_9Gb.png) no-repeat left top; }
   -------------------------------------------------------------------------- */
