/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *

 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: #EDF1F2;
  color: #333435;
  font: normal 17px/1.8 "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", メイリオ, Meiryo, "ＭＳ Ｐゴシック", sans-serif;
  text-align: justify;
  text-justify: inter-ideograph;
}

a {
  /*color: #1a0dab;*/
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

img {
  border: none;
  display: block;
}

ul {
  list-style: none;
}

h1 {
  font-size: 1.9em;
}
h1, h2, h3, h4 {
  color: #252627;
}

button {
  font: normal 1em -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', meiryo, sans-serif;
  outline: none;
}

input[type=text],
textarea {
  border: 1px solid #888;
  box-shadow: 0px 0px 4px 1px rgba(0,0,0,0.1) inset;
  font: normal 1em -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', meiryo, sans-serif;
  outline: none;
  padding: 4px;
  width: 100%;
}
input[type=submit] {
  -webkit-appearance: none;
  background: linear-gradient(#f9f9f9, #f1f1f1);
  border: 1px solid #ccc;
  font: normal 1em -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', meiryo, sans-serif;
  padding: 8px 32px;
}
iframe {
  border: none;
}

.clear {
  clear: both;
}

.ch-ruby {
  color: #bfbfbf;
  font-size: .7em;
  font-style: italic;
  padding: 0 0 0 8px;
}


.create-loading {
  background: rgba(255,255,255,.6);
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
}
.create-loading-wrapper {
  display: table-cell;
  font-size: 1.2em;
  text-align: center;
  vertical-align: middle;
}


#header {
  background: #fff;
  width: 100%;
}
.h-wrap {
  margin: 0 auto;
  padding: 10px 2%;
  width: 100%;
  max-width: 1300px;
}
.h-left {
  display: flex;
  align-items: center;
  float: left;
}
.h-humburger {
  color: #999;
  font-size: 1.4em;
  margin: 0 20px 0 0;
}
.h-logo {
  width: 140px;
}
.h-logo img {
  width: 100%;
}


.h-center {
  float: left;
  margin: 4px 0 0 16px;
}
.h-center-list {
  font-size: .9em;
}
.h-center-list li {
  display: inline-block;
  padding: 4px 8px;
}


.h-userinfo {
  color: #888;
  cursor: pointer;
  display: table;
  float: right;
  position: relative;
  transition: all .2s ease-out;
}
.h-userinfo:hover {
  color: #000;
}
.hui-login {
  background: #000;
  color: #fff;
  border: 1px solid #ddd;
  border-radius: 2px;
  display: table;
  font-size: .9em;
  font-weight: bold;
}
.hui-login a {
  display: table-cell;
  padding: 4px 8px;
  text-align: center;
  vertical-align: middle;
}
.hui-thumb {
  background: #ccc;
  border-radius: 50%;
  display: table-cell;
  overflow: hidden;
  width: 40px;
  height: 40px;
}
.hui-thumb img {
  border-radius: 50%;
  width: 100%;
}
.hui-username {
  display: table-cell;
  font-size: 1em;
  padding: 0 0 0 8px;
  vertical-align: middle;
}
.hui-menu {
  background: #fff;
  border: 1px solid #ebebeb;
  display: none;
  position: absolute;
  top: 52px;
  right: 0;
  z-index: 2;
}
.hui-list li {
  border-bottom: 1px solid #ebebeb;
  padding: 12px 24px;
}
.hui-list li:last-child {
  border-bottom: none;
}


.left-usermenu {
  background: #fff;
  border-right: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  display: none;
  padding: 16px;
  position: absolute;
  top: 61px;
  left: 0;
  z-index: 2;
  width: 200px;
}


/* ログインしてない用ページ */
.login-wrapper {
  background: #fff;
  margin: 0 auto;
  padding: 80px 2%;
  text-align: center;
  max-width: 1100px;
}
.lw-icon {
  color: #ccc;
  font-size: 6em;
}
.lw-login-btn {
  background: #167ac6 !important;
  border: 1px solid #167ac6 !important;
  border-radius: 2px;
  display: inline-block;
  margin: 16px auto;
  padding: 4px 16px;
}


#wrapper {
  background: #fff;
}
.main-wrapper {
  display: flex;
  justify-content: space-between;
  margin: 20px auto;
  padding: 24px 2%;
  max-width: 1300px;
}
#content {
  width: 69%;
}

.an-content {
  border-bottom: 1px solid #ddd;
  padding: 12px 0;
}
.an-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.an-content-thumb {
  margin: 0 4px 0 0;
  flex-basis: 45%;
  height: 106px;
}
.an-content-thumb img {
  width: 100%;
}
.an-content-header {
  flex-basis: 52%;
  font-size: .85em;
}

.eyecatch-ad {
  margin: 20px auto;
}


/* シェアボタン */
.article-share {
  margin: 48px auto 40px;
}
.article-share-wrapper {
  display: flex;
  justify-content: center;
}


/* サイドバー */
#aside {
  line-height: 1.4;
  padding: 0 0 12px;
  width: 28%;
}


/* サイドバー広告top */
.aside-ad {
  margin: 0 auto 28px;
}


/* サイドバー新規記事 */
.aside-newtopic,
.aside-category {
  margin: 0 auto 40px;
}
.an-items {
  margin: 12px 0;
}
.an-img {
  float: left;
  margin: 0 4px 0 0;
  overflow: hidden;
  width: 72px;
  height: 72px;
}
.an-items .content-text {
  overflow: hidden;
}


/* サイドバープロモーション */
.ads-sidebar-middle {
  margin: 0 auto 40px;
}
.asm-item {
  margin: 0 auto 16px;
}
.asm-img {
  background: #000;
  overflow: hidden;
  height: 140px;
}
.asm-img img {
  display: block;
  margin: 0 auto;
  height: 100%;
}

/* サイドバーカテゴリ */
.ac-list {
  width: 100%;
}
.ac-list li {
  border-bottom: 1px solid #e1e1e1;
  padding: 8px;
}
.ac-list li a {
  color: inherit;
}


#footer {
  background: #fafafa;
  border-top: 1px solid #ebebeb;
  width: 100%;
}
.f-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  padding: 32px 4%;
  width: 100%;
  max-width: 1100px;
}
#footer .fw-item {
  padding: 0 4%;
}
#footer .fw-item li {
  padding: 4px 0;
}
#footer .fw-item a {
  color: #777;
}
.f-copyright {
  display: block;
  margin: 0 auto 4px;
  text-align: center;
}

@media screen and (max-width:850px) {
#content {
  width: 100%;
}
#aside {
  display: none;
}
}


@media screen and (max-width:550px) {
html,
body {
  font-size: 14px;
}

.h-logo {
  width: 120px;
}
.hui-username {
  display: none;
}
.hui-thumb {
  width: 28px;
  height: 28px;
}
.hui-menu {
  top: 42px;
  width: 120px;
}

.h-center {
  display: none;
}

.left-usermenu {
  top: 50px;
}

}
