/* =========================================================
   血液透析 わたしの体調記録：共通CSS
   下部白余白・サイドバー最終整列版
   ========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: #111;
}

a {
  color: inherit;
  text-decoration: none;
}

#wrapper {
  position: relative;
  width: 1394px;
  height: 760px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
}

.main {
  position: absolute;
  left: 0;
  top: 0;
  width: 1114px;
  height: 760px;
  overflow: hidden;
  background: #fff;
}

/* ------------------------------
   右側メニュー
------------------------------ */

.sub {
  position: absolute;
  right: 4px;
  top: 8px;
  width: 263px;
  height: 720px;
  margin: 0;
  padding: 5px 9px 0 9px;
  background: #ffffbf;
  z-index: 2;
}

/*
  通常ボタン13個＋Q&A／目次をCSS Gridで配置。
  各行の間隔を4pxに統一し、Q&Aと目次は横並びにする。
*/
.sub .bottom {
  display: grid;
  grid-template-columns: 107px 107px;
  column-gap: 6px;
  row-gap: 4px;
  width: 220px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.sub .bottom li {
  grid-column: 1 / 3;
  float: none;
  clear: none;
  width: 220px;
  height: 44px;
  margin: 0;
  padding: 0;
  line-height: 0;
  overflow: hidden;
}

.sub .bottom li a,
.sub .bottom li img {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.sub .bottom li:not(.sb) a,
.sub .bottom li:not(.sb) img {
  width: 220px;
  height: 44px;
  max-width: 220px;
  max-height: 44px;
}

/* Q&A・目次を同じ行に横並び */
.sub .bottom li.sb {
  grid-column: auto;
  width: 106px;
  height: 40px;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.sub .bottom li.sb a,
.sub .bottom li.sb img {
  width: 106px;
  height: 40px;
  max-width: 106px;
  max-height: 40px;
}

/*
  「血液透析わたしの体調記録」はQ&A／目次の5px下。
  下部の「次へ」ボタンと上端を同じ位置にする。
*/
.sub .record_shortcut {
  position: absolute;
  left: 9px;
  bottom: 6px;
  display: block;
  width: 245px;
  height: 40px;
  margin: 0;
  padding: 0;
  line-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  overflow: hidden;
  z-index: 20;
}

.sub .record_shortcut img {
  display: block;
  width: 245px;
  height: 40px;
  max-width: 245px;
  max-height: 40px;
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
}

/* ------------------------------
   下部ナビゲーションバー
------------------------------ */

/*
  緑バーは黄色本文と同じ幅1114px。
  下に32pxの白い余白を設ける。
*/
.bottom_bar {
  position: absolute;
  left: 0;
  bottom: 32px;
  width: 1114px;
  height: 59px;
  overflow: hidden;
  background: #83c341;
  z-index: 5;
}

.bottom_text {
  position: absolute;
  left: 226px;
  top: 17px;
  font-size: 19px;
  line-height: 1.2;
  white-space: nowrap;
}

.bottom_next,
.bottom_prev {
  position: absolute;
  top: 13px;
  width: 82px;
  height: 34px;
  border: 1px solid #c8c8c8;
  border-radius: 10px;
  background: #fff;
  color: #858585;
  text-align: center;
  font-size: 21px;
  font-weight: 900;
  line-height: 31px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.bottom_next {
  right: 12px;
}

.bottom_prev {
  left: 12px;
}
