@charset "UTF-8";
/* ==========================================================================
   キングブラク 統合スタイルシート
   旧 styles.css / css/commonstyles.css / css/tables.css を統合
   画像パスは css/ からの相対 (../img/)
   ========================================================================== */

/* ---------- 1. 変数 ---------- */
:root {
  --c-text: #333;
  --c-muted: #666;
  --c-bg: #f5f5f5;
  --c-surface: #fff;
  --c-border: #ccc;
  --c-border-light: #e9e9e9;
  --c-link: #006699;
  --c-link-hover: #e00;
  --c-accent: #de7e14;
  --c-accent-soft: #f5ddbe;
  --c-dark: #333;
  --radius: 8px;
  --gap: 1.5rem;
  --max-width: 1080px;
  --side-width: 220px;
  --font-base: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  --font-head: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
}

/* ---------- 2. リセット・ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--c-text);
  background: var(--c-bg);
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.8;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, figure { margin: 0; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: var(--c-link); }
a:hover, a:focus-visible { color: var(--c-link-hover); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
strong { font-weight: bold; }
em { font-style: normal; text-decoration: underline; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 2rem 0; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.4; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--c-dark); color: #fff; padding: .5rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- 3. レイアウト ---------- */
.inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }

.layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--gap) 1rem;
  display: grid;
  grid-template-columns: var(--side-width) minmax(0, 1fr);
  grid-template-areas: "side main";
  gap: var(--gap);
}
.main { grid-area: main; min-width: 0; }
.side { grid-area: side; min-width: 0; }

@media (max-width: 768px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "side";
  }
}

/* ---------- 4. ヘッダー ---------- */
.site-header { background: var(--c-surface); border-bottom: 1px solid var(--c-border-light); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.site-brand { display: flex; flex-direction: column; }
.site-brand__en { font-size: .75rem; color: var(--c-muted); letter-spacing: .1em; }
.site-brand__name { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; line-height: 1.3; }
.site-brand__name a { color: var(--c-accent); text-decoration: none; }
.site-brand__lead { font-size: .8rem; color: var(--c-muted); }

.nav-toggle {
  display: none;
  background: var(--c-dark); color: #fff; border: 0; border-radius: var(--radius);
  padding: .5rem .9rem; font-size: .9rem; cursor: pointer;
}
@media (max-width: 768px) {
  .nav-toggle { display: inline-block; }
  .site-brand__name { font-size: 1.25rem; }
}

/* ---------- 5. サイドメニュー ---------- */
.side-nav__group {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}
.side-nav__title {
  margin: 0; padding: .5rem 1rem;
  background: var(--c-dark); color: #fff; font-size: .9rem;
}
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li { border-bottom: 1px solid var(--c-border-light); }
.side-nav li:last-child { border-bottom: 0; }
.side-nav li > a, .side-nav li > span {
  display: block; padding: .55rem 1rem .55rem 1.6rem; position: relative;
  font-size: .85rem; line-height: 1.5; color: #454545; text-decoration: none;
}
.side-nav li > a::before {
  content: ""; position: absolute; left: .8rem; top: 50%;
  width: 5px; height: 5px; margin-top: -3px;
  border-top: 2px solid var(--c-accent); border-right: 2px solid var(--c-accent);
  transform: rotate(45deg);
}
.side-nav li > span { color: var(--c-muted); }
.side-nav li > a:hover, .side-nav li > a[aria-current="page"] {
  background: var(--c-accent-soft); color: var(--c-link-hover);
}
/* クイックリンク */
.side-nav__quick {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem !important;
}
/* 折りたたみカテゴリ */
.side-nav__group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; }
.side-nav__group > summary::-webkit-details-marker { display: none; }
.side-nav__group > summary::after {
  content: ""; margin-left: auto; width: 6px; height: 6px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(45deg); transition: transform .2s;
}
.side-nav__group[open] > summary::after { transform: rotate(-135deg); }
.side-nav__group:not([open]) > summary { border-radius: var(--radius); }
.side-nav__count {
  font-size: .7rem; font-weight: normal; background: rgba(255,255,255,.2);
  border-radius: 999px; padding: 0 .5em; line-height: 1.6;
}
.side-nav__group[open] { padding-bottom: 0; }
@media (max-width: 768px) {
  .js .side-nav[data-collapsed="true"] { display: none; }
}

/* ---------- 6. フッター ---------- */
.site-footer { background: #222; color: #ccc; font-size: .85rem; text-align: center; }
.footer-links { background: #e5e5e5; padding: .6rem 1rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer-links a { color: var(--c-muted); }
.copyright { padding: 1.25rem 1rem; }
.copyright a { color: #fff; text-decoration: none; }

/* ---------- 7. パンくず ---------- */
.breadcrumb { font-size: .8rem; margin-bottom: .75rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.breadcrumb li + li::before { content: "›"; margin-right: .25rem; color: var(--c-muted); }
.breadcrumb [aria-current] { color: var(--c-muted); }

/* ---------- 7b. 本文 ---------- */
.article {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.article > * + *, .article section > * + * { margin-top: 1em; }
.article h1 {
  font-size: 1.6rem; color: var(--c-dark);
  padding-bottom: .5rem; border-bottom: 3px solid var(--c-accent);
}
.article h2 {
  margin-top: 2.5rem; font-size: 1.3rem; color: #fff;
  background: var(--c-dark); padding: .5rem 1rem; border-radius: 4px;
  border-left: 6px solid var(--c-accent);
}
.article h3 {
  margin-top: 2rem; font-size: 1.15rem;
  padding: .3rem 0 .3rem .75rem; border-left: 4px solid var(--c-accent);
}
.article h4 { margin-top: 1.5rem; font-size: 1.05rem; color: #e27905; }
.article h5 { margin-top: 1.25rem; font-size: 1rem; }
.article h6 { margin-top: 1rem; font-size: .95rem; }
.article ul, .article ol { padding-left: 1.5em; }
.article .link-list { list-style: none; padding: 0; }
.article .link-list li { padding: .25rem 0 .25rem 1.1rem; position: relative; }
.article .link-list li::before { content: "›"; position: absolute; left: .2rem; color: var(--c-accent); font-weight: bold; }
.lead-emphasis { font-size: 1.4rem; font-weight: bold; }
.text-red { color: #e00; }
.text-large { font-size: 1.15em; }
.figure-center { text-align: center; }

/* ==========================================================================
   8. 旧 commonstyles.css 互換パーツ（下層ページで使用している可能性あり）
   IEハック(_zoom, _height)・PIE.htc(外部behavior)は削除
   ========================================================================== */
.lbg { line-height: 1.4; }
.layout_l { float: left; }
.layout_r { float: right; }
.hd, .hd:hover, .hd:visited { color: var(--c-text); text-decoration: none; }
.ylw { background: #ffe566; font-weight: bold; padding: 2px; }
.FloatEnd { clear: both; display: block; height: 0; }

/* ランキング見出し */
.rank1, .rank2, .rank3, .rank4, .rank5 {
  clear: both; min-height: 65px; margin: .6rem 0 1rem;
  padding: 35px 0 5px 65px; font-size: 1.1rem; font-weight: bold;
  background-repeat: no-repeat; border-bottom: 1px dotted var(--c-muted);
}
.rank1 { background-image: url(../img/rank1_a.gif); }
.rank2 { background-image: url(../img/rank2_a.gif); }
.rank3 { background-image: url(../img/rank3_a.gif); }
.rank4 { background-image: url(../img/rank4_a.gif); }
.rank5 { background-image: url(../img/rank5_a.gif); }

/* ポイント見出し */
.point1, .point2, .point3, .point4, .point5, .point6, .point7, .point8, .point9, .point10 {
  clear: both; min-height: 40px; margin: .6rem 0; padding: 14px 0 0 46px;
  font-size: 1rem; font-weight: bold; color: #3f3f3f;
  background-repeat: no-repeat; background-position: 4px top;
  border-bottom: 2px dotted var(--c-border);
}
.point {
  font-size: .95rem; font-weight: bold; line-height: 1.3;
  padding: 5px 0 5px 60px; margin-bottom: 5px;
  background: url(../img/point.png) no-repeat;
}
.point1 { background-image: url(../img/point1.gif); }
.point2 { background-image: url(../img/point2.gif); }
.point3 { background-image: url(../img/point3.gif); }
.point4 { background-image: url(../img/point4.gif); }
.point5 { background-image: url(../img/point5.gif); }
.point6 { background-image: url(../img/point6.gif); }
.point7 { background-image: url(../img/point7.gif); }
.point8 { background-image: url(../img/point8.gif); }
.point9 { background-image: url(../img/point9.gif); }
.point10 { background-image: url(../img/point10.gif); }

/* 矢印（画像をやめCSS描画に置換） */
.arrow_blue, .arrow_orange, .arrow_black, .arrow_red {
  position: relative; padding-left: 1.4em; margin: 3px 0; font-weight: bold; line-height: 1.6;
}
.arrow_blue::before, .arrow_orange::before, .arrow_black::before, .arrow_red::before {
  content: "▶"; position: absolute; left: 0; font-size: .8em;
}
.arrow_blue::before { color: #1a73c8; }
.arrow_orange::before { color: #f08300; }
.arrow_black::before { color: #333; }
.arrow_red::before { color: #d00; }

/* 引用 */
blockquote {
  margin: 1rem; padding: .75rem 1rem; font-size: .85rem; color: var(--c-muted);
  border-left: 4px solid var(--c-border); background: #fafafa;
}

/* 注意ボックス */
.alert, .accept, .attention, .thint {
  display: flow-root; margin: .75rem 0; padding: .75rem 1rem .75rem 55px; min-height: 52px;
  font-size: .85rem; line-height: 1.5; border-radius: var(--radius);
  background-repeat: no-repeat; background-position: 10px 10px;
}
.alert     { background-color: #ffefef; background-image: url(../img/alert.png);     color: #a2462f; border: 1px solid #fabda7; }
.accept    { background-color: #effada; background-image: url(../img/accept.png);    color: #346f15; border: 1px solid #c2e39b; }
.attention { background-color: #fefecb; background-image: url(../img/attention.png); color: #804900; border: 1px solid #ffdc80; }
.thint     { background-color: #eff4fa; background-image: url(../img/thint.png);     color: #2c4f7a; border: 1px solid #c5d7ed; }

.user1, .user2 {
  display: flow-root; margin: .75rem 0; padding: 12px 12px 12px 100px; min-height: 96px;
  font-size: .85rem; line-height: 1.5;
  background-color: #eff4fa; background-repeat: no-repeat; background-position: 12px 12px;
  border: 1px solid #c5d7ed; border-radius: var(--radius);
}
.user1 { background-image: url(../img/user1.png); }
.user2 { background-image: url(../img/user2.png); }
.noimage { padding-left: 12px; background-image: none; min-height: 0; }

/* ボックス */
.nmlbox, .dottbox, .ylwbox, .graybg { clear: both; margin: .75rem 0; padding: 1rem; }
.graybg { background: #ebebeb; }
.dottbox { border: 1px dotted var(--c-muted); }
.nmlbox { border: 2px solid var(--c-border); }
.ylwbox { background: #ffffd2; border: 2px solid #c00; }
.grayline { border: 1px solid var(--c-border); padding: .75rem; margin-bottom: 1rem; }

.txt-line, .txt-frame { border: 2px solid var(--c-border); padding: 1.5rem; margin: .75rem 0; }
.txt-yellowback { background: #fff9df; border: 2px solid #c00; padding: 1.5rem; margin: .75rem 0; }
.txt-grayback { background: #f5f5f5; border: 1px solid #d9d9d9; padding: 1.5rem; margin: .75rem 0; }
.txt-colorback { background: #fff2df; border: 1px solid #ffb380; padding: 1.5rem; margin: .75rem 0; }
.txt-colorframe { border: 2px solid #c00; padding: 1.5rem; margin: .75rem 0; }
.txt-img img { margin: 0 10px 10px; }

/* 水平線 */
.border1, .border2, .border3, .borderdot, .borderdot2 { height: 0; margin: 10px; overflow: hidden; }
.border1 { border-bottom: 1px solid #999; }
.border2 { border-bottom: 1px solid #900; }
.border3 { border-bottom: 1px solid #036; }
.borderdot { border-top: 1px dotted #999; }
.borderdot2 { border-top: 2px dotted #999; }

/* 角丸・シャドウ */
.rnd1 { position: relative; padding: 1rem; margin: 1rem auto; border-radius: 10px; }
.rbox1 { background: #f0f0f0; border: 1px solid #d7d7d7; }
.rbox2 { background: #fff; border: 2px solid #ff843f; }
.rbox3 { background: #fff; }
.rbox4 { background: #f5f5f5; }
.shadow1, .shadow2, .shadow3 { padding: 1rem; margin: 1rem auto; }
.shadow1 { box-shadow: 2px 2px 3px rgba(0,0,0,.4); }
.shadow2 { box-shadow: 0 0 3px rgba(0,0,0,.3); }

/* FAQ */
.question1, .question2 {
  margin: 1.25rem 0 .25rem; padding: 5px 0 6px 50px;
  font-size: 1.05rem; font-weight: bold; line-height: 1.4;
  background-repeat: no-repeat; background-position: 10px top;
}
.question1 { background-image: url(../img/q1.png); }
.question2 { background-image: url(../img/q2.png); }
.answer1 {
  margin: .3rem 0 2rem; padding: 20px 20px 20px 60px; font-size: .85rem; line-height: 1.6;
  background: #f5f5f5 url(../img/a1.png) no-repeat 12px 18px;
  border: 1px solid var(--c-border); border-radius: 10px;
}
.answer2 {
  margin: .3rem 0 1rem; padding: 10px 10px 20px 50px; font-size: .85rem; line-height: 1.6;
  background: url(../img/a2.png) no-repeat 10px 12px; border-bottom: 1px dotted var(--c-border);
}

/* 吹き出し（画像スプライトの三角は非表示にし、角丸ボックスのみ） */
.bln { display: flow-root; margin: 1rem 0; font-size: .85rem; line-height: 1.5; }
.bln .b_body { padding: 12px 19px; border-radius: var(--radius); }
.bln .img-l, .bln .img-r, .bln .img-t, .bln .img-b { display: none; }
.balloon1 .b_body { background: #f5f5f5; border: 1px solid var(--c-border); }
.balloon2 .b_body { background: #fff;    border: 1px solid var(--c-border); }
.balloon3 .b_body { background: #ebebeb; }
.balloon4 .b_body { background: #eaf1ff; border: 1px solid #6aa3f9; }
.balloon5 .b_body { background: #ffeaea; border: 1px solid #f96565; }
.balloon6 .b_body { background: #fff;    border: 2px solid #c00; }
.balloon7 .b_body { background: #fff;    border: 2px solid #0080b8; }
.balloon8 .b_body { background: #fff;    border: 2px solid #ff8201; }
.balloon9 .b_body { background: #fff;    border: 2px solid #739221; }

/* ==========================================================================
   9. 旧 tables.css 互換
   ========================================================================== */
.table-wrap { overflow-x: auto; }
table { width: 100%; margin: .75rem 0; font-size: .85rem; border-collapse: collapse; }
th { background: #ebebeb; }
td { background: #fff; }
th, td { padding: .5rem; }
.rtitle { text-align: center; padding: 4px; }
.rimg { text-align: center; }
.price { color: #c00; font-weight: bold; padding: 8px 0; font-size: 1.2em; text-align: center; }
.tdesc { text-align: left; vertical-align: top; }

.ritm th, .ritm td { padding: 6px; border: 1px solid var(--c-border); vertical-align: top; text-align: center; }
.col1 td, .col1 th { width: 100%; }
.col2 td, .col2 th { width: 50%; }
.col3 td, .col3 th { width: 33%; }
.col4 td, .col4 th { width: 25%; }

.tokusho th, .tokusho td { padding: 8px; border: 1px solid var(--c-border); }
.tokusho th { background: #e3e3e3; width: 30%; }

.ritm_desc, .rnk1item, .rnk3item, .prc1item { border: 1px solid var(--c-border); }
.ritm_desc td { vertical-align: top; padding: 10px; }
.ritm_desc .title { background: #ebebeb; padding: 5px; margin-bottom: 8px; line-height: 1.2; font-family: var(--font-head); }
.ritm_desc .title a { color: var(--c-text); }
.ritm_desc .price { text-align: left; padding: 0; }
.ritm_desc .img { width: 20%; }

.rnk1item th, .rnk1item td { background: #fff; padding: 12px 10px; vertical-align: top; border-bottom: 1px dotted var(--c-border); }
.rnk1item th { width: 70px; }
.rnk1item .ttitle { font-size: 1.1rem; font-weight: bold; margin-bottom: 12px; }
.rnk1item .timg { width: 130px; vertical-align: middle; }

.rnk2item .ttitle { border: 1px solid var(--c-border); padding: 10px; text-align: left; font-size: 1rem; }
.rnk2item .timg { width: 130px; border-left: 1px solid var(--c-border); padding: 15px; }
.rnk2item .tdesc { border-right: 1px solid var(--c-border); padding: 15px; line-height: 1.6; }
.ttable th, .ttable td { padding: 8px; width: 33%; text-align: center; border: 1px solid var(--c-border); }

.rnk3item th { text-align: left; padding: 8px; font-size: 1.05rem; border-bottom: 1px solid var(--c-border); }
.rnk3item th img { vertical-align: bottom; margin-right: 6px; }
.rnk3item td { padding: 10px; border-bottom: 1px solid var(--c-border); }
.rnk3item .timg { text-align: center; width: 150px; }

.prc1item th { padding: 6px; text-align: center; border-bottom: 1px solid var(--c-border); }
.prc1item td { padding: 6px; text-align: center; }
.prc1item .alt td { background: #f5f5f5; }
.prc1item .price { text-align: right; width: 120px; }

.dsc1item th, .dsc1item td, .dsc2item th, .dsc2item td { padding: 6px; border: 1px solid var(--c-border); }
.dsc1item th, .dsc2item th { text-align: center; }
.dsc1item td, .dsc2item td { font-size: 95%; vertical-align: top; }
.dsc1item th { width: 30%; }

.tblmenu1item td { font-size: .8rem; line-height: 1.3; border: 1px solid var(--c-border); vertical-align: top; }
.tblmenu1item td .ttitle { background: #eee; font-weight: bold; padding: 7px; margin-bottom: 8px; font-size: .85rem; }

/* 関連ページ */
.article .related { margin-top: 2.5rem; padding: 1rem 1.25rem; background: var(--c-bg); border-radius: var(--radius); }
.article .related h2 { margin: 0 0 .5rem; padding: 0; background: none; color: var(--c-text); border: 0; font-size: 1rem; }

/* ---------- 10. 印刷 ---------- */
@media print {
  .side, .nav-toggle, .skip-link { display: none !important; }
  .layout { display: block; }
  body { background: #fff; }
}
