/* layout.erb */

.smiles { display: none; }

@media only screen and (max-width: 480px) {
  .delivery { display: none !important; }
  .fix-menu { display: none !important; }
  #mainnn > .col-md-8 { padding: 0 !important; }
}

.btn {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 4px;
}

.ctrl { padding: 24px 0; }

#mainnn { text-align: left; padding-right: 40px; }
@media only screen and (max-width: 768px)  { #mainnn {  } }

#main center {
  display: block;
  padding: 8px;
  background: #FF961D;
}

/* index.erb */

#TITLE {
  margin: 0px;
  text-align: center;
  font-family: 'PT Sans', sans-serif;
  font-size: 20px;
  color: #3a4f10;
  margin-bottom: 14px;
  font-weight: normal;
}

@media only screen and (max-width: 400px) { #TITLE { margin-top: 16px; } }

.post-list { max-width: 1000px; min-height: 256px; overflow: hidden; }
.post-list > .wrapper { margin: 4px; }

.post-list .post-item { width: 50%; }
@media only screen and (max-width: 1200px) { .post-list .post-item { width: 50%     } .post-list .post-item.big { width: 50%     } }
@media only screen and (max-width: 992px)  { .post-list .post-item { width: 50%     } .post-list .post-item.big { width: 50%     } }
@media only screen and (max-width: 768px)  { .post-list .post-item { width: 20%     } .post-list .post-item.big { width: 40%     } }
@media only screen and (max-width: 480px)  { .post-list .post-item { width: 33.333% } .post-list .post-item.big { width: 66.666% } }
/* @media only screen and (max-width: 320px)  { .post-list .post-item { width: 100%    } .post-list .post-item.big { width: 100%    } } */


.post-list .post-item > .wrapper {
  margin: 4px; padding: 10px;
  background: #161713;
  border-radius: 5px;
  cursor: pointer;
  color: #D27F36;
  background: #FAF2E9;
  border: 1px solid #EED1B5;
  box-shadow: 0 0 9px 0 rgba(0,0,0,0.07);
}

.post-list .post-item > .wrapper:hover {
  -webkit-transform: scale(1.03) !important;
  transform: scale(1.03) !important;
}

.post-list .post-item h2 {
  margin: 0;
  line-height: 24px;
  font-size: 24px;
}

.post-list .post-item hr { margin: 4px 0; }

.post-list .post-item p {
  margin: 8px 0 0;
}
.post-list .post-item img { width: 100%; border-radius: 5px; }

.post-list .post-item a.rm {
  font-family: Roboto, sans-serif;
  font-weight: bold;
  color: #FFF;
  background: #FF961D;
}

@media only screen and (max-width: 768px) {
  .post-list .post-item > .wrapper, .post-list .post-item p { margin: 0; }
  .post-list .post-item > .wrapper { padding: 0; }
  .post-list .post-item h2,
  .post-list .post-item .rm,
  .post-list .post-item hr { display: none; }
  .post-list .post-item img { border-radius: 0; }
}

.post-detail { overflow-y: auto; padding: 8px; }

/* posts/create.erb */

.create-post {
  padding: 0 24px;
  color: #3A4F10;
}
.create-post .mdl-textfield__label { color: #3A4F10; }
.create-post .mdl-textfield { width: 100%; }
.create-post label {
  bottom: 8px;
}
#wr input, textarea { box-sizing: border-box; }
#wr input[name="json_order"], input[name="date"], input[name="title"], textarea[name="content"], input[name="myfile"] { display: block; width: 100%; padding: 16px; background: #FFF; }
#wr textarea[name="content"] { height: 200px; }
#wr input[name="submit"] { color: #FFF; background: #FF961D; }

.shadow {
  box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
}

#json_order, #title, #date, #content { border: none; }

#json_order, #title, #date, .mce-tinymce.mce-container.mce-panel {
  box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
}

#ID87236487 { text-align: center; }
.create-post .submit {
width: 100px;
}

/* posts/show.erb */

.post-detail {
  margin: 0 auto;
  height: 100%;
  background: #F4E7D8;
}

.post-detail h1 {
  margin: 0;
  line-height: 24px;
  font-size: 24px;
}
.post-detail .img-box {
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  text-align: center;
  margin-bottom: 24px;
}

.post-detail .img-box img { width: 100%; }

.ttlll {
  position: absolute; right: 0; bottom: 0; left: 0;
  height: 50px;
  background: rgba(0,0,0,0.4);
}

.ttlll span { color: white; font-size: 16px; line-height: 50px; }

#ar_l, #ar_r { position: absolute; top: calc(50% - 18px); width: 20px; cursor: pointer; }
#ar_l { left: 8px; }
#ar_r { right: 8px; }

#ar_l, #ar_r { opacity: 0; }

#qar_l { position: absolute; left: 0;  bottom: 0; height: 100%; width: 50%; }
#qar_r { position: absolute; right: 0; bottom: 0; height: 100%; width: 50%; }

.post-detail .img-box:hover #ar_l, .post-detail .img-box:hover #ar_r {
  opacity: 1;
}
@media only screen and (max-width: 768px)  { #ar_l, #ar_r { opacity: 1; } }

.hvr-grow {
  vertical-align: middle;
  transform: translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  backface-visibility: hidden;
  -moz-osx-font-smoothing: grayscale;
  transition-duration: 0.3s;
  transition-property: transform;
}

.hvr-grow:hover,
.hvr-grow:focus,
.hvr-grow:active {
  transform: scale(1.1);
}

#BACK {
  width: 100%;
}

#BACK button {
  border: none;
  width: 100%;
  background: #ff961d;
  color: white;
  height: 48px;
  background-image: url('/images/arrow/ar_l.png');
  background-size: 8px;
  background-repeat: no-repeat;
  background-position: 10px center;
  font-size: 18px;
}

@media only screen and (max-width: 992px) {
  #mainnn { padding-right: 0; }
  .fix-menu { display: none; }
}

/*@media only screen and (min-width: 992px) {
  .post-detail {
    margin-top: 40px;
  }
}
*/
