
/* keyframes
------------------------------------------------------------------------------*/

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@-webkit-keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* global
------------------------------------------------------------------------------*/

html {
  background: #f2f2f2;
  color: #4d4d4d;
  font: 90%/1.2 Helvetica, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

a {
  color: #04c;
  outline: 0;
  text-decoration: none;
}

img {
  border: 0;
}

p {
  line-height: 1.4;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

button,
input,
optgroup,
select,
textarea {
  color: inherit;
  font: inherit;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.img {
  text-align: center;
}

.img>img {
  max-width: 100%;
  vertical-align: top;
}

.template {
  display: none;
}

.url {
  word-break: break-all;
}

/* fit-img
--------------------------------------*/

.fit-img {
  height: 300px;
  overflow: hidden;
}

.fit-img>.f {
  height: 100%;
  text-align: center;
  width: 100%;
}

.fit-img>.f:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  width: 0;
}

.fit-img>.f>img {
  max-height: 100%;
  max-width: 100%;
  vertical-align: middle;
}

/* form
------------------------------------------------------------------------------*/

/* text
--------------------------------------*/

.input-text {
  background: #fefefe;
  border: #ccc solid 1px;
  border-radius: 2px;
  box-sizing: border-box;
  overflow: hidden;
  padding: 6px 8px 4px;
  position: relative;
  vertical-align: -8px;
}

.input-text+.input-text {
  margin: 4px 0 0;
}

.input-text.focus {
  border-color: #34aadc;
}

.input-text>.ph {
  color: #ccc;
  display: inline-block;
  left: 8px;
  line-height: 1.2;
  position: absolute;
  top: 6px;
}

.input-text.focus>.ph,
.input-text.entered>.ph {
  display: none;
}

.input-text>input {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  line-height: 1.2;
  margin: 0;
  outline: 0;
  padding: 0;
  position: relative;
  width: 100%;
}

/* textarea
--------------------------------------*/

.textarea {
  background: #fefefe;
  border: #ccc solid 1px;
  border-radius: 2px;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 0 0 8px;
  position: relative;
}

.textarea.focus {
  border-color: #34aadc;
}

.textarea>.ph {
  color: #ccc;
  left: 8px;
  line-height: 1.4;
  padding: 8px 0;
  position: absolute;
  top: 0;
  width: 98%;
}

.textarea.focus>.ph,
.textarea.entered>.ph {
  display: none;
}

.textarea>textarea {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  height: 4.8em;
  line-height: 1.4;
  margin: 0;
  outline: 0;
  padding: 8px 1% 8px 0;
  position: relative;
  resize: none;
  width: 99%;
}

/* select
--------------------------------------*/

.select {
  background: #fefefe;
  border: #ccc solid 1px;
  border-radius: 2px;
  height: 30px;
  max-width: 100%;
  min-width: 80px;
  padding: 0 8px;
  vertical-align:-8px;
}

.select option {
  padding: 2px 8px;
}

/* button
--------------------------------------*/

.button {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: #999;
  cursor: pointer;
  outline: 0;
  padding: 0;
}

.button:hover {
  color: #333;
  transition: color .2s;
}

/* menu
------------------------------------------------------------------------------*/

#menu {
  background: #4d4d4d;
  box-shadow: 0 2px 4px #999;
  color: #e6e6e6;
  left: 0;
  min-width: 800px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 11;
}

#menu .inner {
  margin: 0 auto;
  max-width: 1024px;
  overflow: hidden;
  padding: 12px 20px;
}

#menu h1 {
  float: left;
  font-size: 100%;
  margin: 0;
}

#menu .button {
  float: right;
  margin: 0 0 0 20px;
}

#menu .button:hover {
  color: #fff;
}

#menu .sub {
  background: #e6e6e6;
  font-size: 90%;
  text-align: center;
}

#menu .sub .inner {
  padding: 8px 12px;
}

#menu .sub a {
  display: inline-block;
  line-height: 24px;
  padding: 0 12px;
}

#menu .sub a:hover {
  color: #999;
}

#menu .sub .external {
  background: #f5f5f5;
  border-radius: 2px;
  box-shadow: 0 1px 1px #999;
  padding-right: 24px;
  position: relative;
}

#menu .sub .external:hover {
  background: #fff;
}

#menu .sub .external:before,
#menu .sub .external:after {
  background: #04c;
  content: '';
  height: 8px;
  position: absolute;
  width: 8px;
}

#menu .sub .external:before {
  right: 9px;
  top: 9px;
}

#menu .sub .external:after {
  border-bottom: #ccc solid 1px;
  border-left: #ccc solid 1px;
  right: 6px;
  top: 6px;
}

#menu .sub .external:hover:before,
#menu .sub .external:hover:after {
  background: #999;
}

#menu .sub .more:before {
  border-color: #04c transparent transparent transparent;
  border-style: solid;
  border-width: 8px 6px;
  content: '';
  display: inline-block;
  vertical-align: -6px;
}

#menu .sub .more-item {
  display: none;
}

#menu .sub .more-item.active {
  display: block;
}

/* main
------------------------------------------------------------------------------*/

#main {
  margin: 0 auto;
  padding: 80px 20px;
  width: 800px;
}

#main .toggle-block {
  margin: 20px 0;
  text-align: right;
}

#main .toggle-block .button {
  background: #e6e6e6;
  box-shadow: 0 1px 2px #999;
  border-radius: 4px;
  padding: 8px 40px;
}

#main .toggle-block .button:hover {
  background: #f2f2f2;
}

#main .toggle-block .button:before {
  content: '並べ替え';
}

#main .toggle-block .button.close:before {
  content: '戻る';
}

#main .toggle-block p {
  color: #c20;
  display: none;
  margin: 8px 0;
  text-align: center;
}

#main .toggle-block .button.close+p {
  display: block;
}

#main .addition {
  margin: 20px 0 0;
  text-align: center;
}

#main .toggle-block+.addition {
  margin: -40px 0 0;
}

#main .foot {
  margin: 40px 0;
  position: relative;
  text-align: center;
}

#main .foot .button {
  background: #b3b3b3;
  color: #fff;
  border-radius: 2px;
  padding: 20px 0;
  width: 50%;
}

#main .foot .button:hover {
  background: #808080;
  transition: background .2s;
}

#main .foot .publish {
  background: #04c;
  color: #fff;
  width: 60%;
}

#main .foot .publish:hover {
  background: #05f;
}

#main .foot .preview {
  background: #ccc;
  bottom: 12px;
  color: #fff;
  padding: 8px 0;
  position: absolute;
  right: 12px;
  width: 15%;
}

#main .foot .preview:hover {
  background: #e6e6e6;
}

/* block
--------------------------------------*/

.block {
  animation: fade-in .5s;
  -webkit-animation: fade-in .5s;
  background: #fff;
  border: transparent solid 1px;
  box-shadow: 0 2px 4px #ccc;
  margin: 20px 0;
  padding: 24px;
  position: relative;
}

.sortable-block .block:hover {
  border: #ccc solid 1px;
  box-shadow: 0 2px 12px #808080;
  cursor: move;
  transition: box-shadow .1s;
}

.block.single {
  margin-top: 80px;
}

.block .cap {
  font-size: 125%;
  font-weight: bold;
  margin: 0 0 20px;
  text-align: center;
}

.block .edit {
  left: 24px;
  position: absolute;
  top: 24px;
  z-index: 1;
}

.block .text {
  margin: 20px auto;
  max-width: 600px;
}

.block .none  {
  display: none;
}

.block .toggle-box {
  margin: 12px 0;
  text-align: right;
}

.block .toggle-box .button {
  background: #e6e6e6;
  border-radius: 4px;
  padding: 4px 20px;
}

.block .toggle-box .button:hover {
  background: #f2f2f2;
  box-shadow: 0 1px 2px #ccc;
}

.block .toggle-box .button:before {
  content: '並べ替え';
}

.block .toggle-box .button.close:before {
  content: '戻る';
}

.block .toggle-box p {
  color: #c20;
  display: none;
  margin: 8px 0;
  text-align: center;
}

.block .toggle-box .button.close+p {
  display: block;
}

.sortable-block.close .block {
  margin: 8px 0;
  padding: 12px 24px;
}

.sortable-block.close .cap,
.sortable-block.close .edit,
.sortable-block.close .n-layout,
.sortable-block.close .toggle-box,
.sortable-block.close .sortable-box,
.sortable-block.close .addition {
  display: none;
}

/* box
--------------------------------------*/

.box {
  animation: fade-in .5s;
  -webkit-animation: fade-in .5s;
  background: #f7f7f7;
  margin: 16px 0 0;
  padding: 20px;
  position: relative;
}

.box:hover {
  background: #f2f2f2;
  transition: background .15s;
}

.box textarea {
  height: 7.6em;
}

.sortable-box.close .box {
  margin: 8px 0;
  padding: 12px 20px;
}

.sortable-box {
	padding: 3px 0px;
}

.sortable-box.close .cap,
.sortable-box.close .edit,
.sortable-box.close .n-img,
.sortable-box.close .n-text {
  display: none;
}

/* item
--------------------------------------*/

.item {
  min-height: 1em;
  position: relative;
}

.item+.item {
  margin: 16px 0 0;
}

.item .h {
  font-weight: bold;
  left: 0;
  position: absolute;
  text-align: right;
  top: 4px;
  width: 17%;
}

.item .h .button {
  background: #f7f7f7;
  border-bottom: #ccc solid 1px;
  border-radius: 4px;
  font-size: 75%;
  margin: 2px 0 0;
  padding: 2px 4px;
}

.item .h .button:hover {
  background: #e6e6e6;
  color: #666;
}

.item .b {
  /* overflow: hidden; */
  position: relative;
  margin: 0 0 0 20%;
}

.item .b .value {
  padding: 4px 0;
}

.item .half {
  display: inline-block;
  width: 49.5%;
}
.item .half.left { float: left; }
.item .half.right { float: right; }

.item .narrow {
  display: inline-block;
  width: 60px;
}

.item .narrow input {
  text-align: right;
}

.item .row {
  display: inline-block;
}

.item .row+.row {
  margin: 0 0 0 20px;
}

.item .tel {
  display: inline-block;
  width: 80px;
}

.item .tel+label {
  margin: 0 0 0 12px;
}

.item .notes {
  clear: both;
  color: #808080;
  font-size: 85%;
  padding: 4px 4px 0;
}

.item .thumb {
  margin: 8px 0;
  width: 120px;
}

.item .thumb img {
  width: 100%;
}

.item .img-new.hide,
.item .img-current.hide {
  display: none;
}

.item .img-current {
  margin: 0 0 8px;
}

.item .img-current img {
  max-height: 100%;
  vertical-align: middle;
  width: 120px;
}

.item .img-current .button {
  margin: 0 0 0 12px;
}

.item input[type='radio'],
.item input[type='checkbox'] {
  margin: 0;
  padding: 0;
  vertical-align: -1px;
}

/* tooltip
--------------------------------------*/

.item .tooltip {
  color: #666;
  float: right;
  font-size: 85%;
  font-weight: normal;
  margin: 0 0 0 4px;
  text-align: left;
}

.item .tooltip {
  position: relative;
}

.item .tooltip .mark {
  cursor: help;
  letter-spacing: 2px;
}

.item .tooltip .balloon {
  background: #b3b3b3;
  border-radius: 8px;
  color: #fff;
  display: none;
  left: 100%;
  margin: 0 0 0 8px;
  padding: 4px 16px;
  position: absolute;
  top: -20px;
  width: 360px;
  z-index: 1;
}

.item .tooltip .balloon:before {
  border-color: transparent #b3b3b3 transparent transparent;
  border-style: solid;
  border-width: 4px;
  content: '';
  left: -8px;
  position: absolute;
  top: 24px;
}

.item .tooltip:hover .balloon {
  animation: fade-in .25s;
  -webkit-animation: fade-in .25s;
  display: block;
}

.item .tooltip p {
  margin: 8px 0;
}

.item .tooltip .center-box {
  display: inline-block;
  text-align: center;
  vertical-align: top;
  width: 80%;
}

/* layout
--------------------------------------*/

.item .layout .button {
  background: #f2f2f2;
  border: #f2f2f2 solid 2px;
  border-radius: 2px;
  cursor: pointer;
  display: inline-block;
  font-size: 90%;
  margin: 0 4px 0 0;
  padding: 4px 0 0;
  text-align: center;
  width: 90px;
}

.item .layout .checked {
  background: #fff;
  border: #999 solid 2px;
}

.item .layout img {
  vertical-align: top;
  width: 100%;
}

/* b-table
--------------------------------------*/

.b-table {
  margin: 4px 8px 0;
}

.b-table th {
  font-weight: normal;
  padding: 4px 40px 0 0;
  text-align: left;
}

.b-table td {
  padding: 4px 20px 0 0;
}

/* pagination
--------------------------------------*/

.pagination {
  margin: 20px 0 0;
  text-align: center;
}

.pagination .frame {
  border: #ccc solid 1px;
  border-radius: 4px;
  display: inline-block;
  overflow: hidden;
}

.pagination .i {
  color: inherit;
  display: block;
  float: left;
  line-height: 32px;
  text-align: center;
  width: 40px;
}

.pagination .i+.i {
  border-left: #ccc solid 1px;
}

.pagination .i:hover,
.pagination .current {
  background: #ccc;
  color: #fff;
}
