/*** Lab  ***/

/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #ff476b;
}

html {
    font-size: 1em;
    line-height: 1.4;
}
body {
	font-size: 16px;
	color: #ff476b;
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	letter-spacing: 0.025em;
	line-height: 1.75;
}

a {
	color: #ff476b;
	text-decoration: underline;
}
a:hover {
	text-decoration: none;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ff476b;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

















/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

.tal {
	text-align: left;
}
.tac {
	text-align: center;
}
.tar {
	text-align: right;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

body {
	background-color: #fcf6ed;
}
#container {
}
#header_contents {
	width: 884px;
	margin: 0 auto;
}
h1 {
	float: left;
}
nav {
	float: right;
}
nav li {
	float: left;
	margin-right: 25px;
}
#sub_nav {
	float: right;
}
#sub_nav li {
	float: left;
	margin-right: 15px;
}
#sub_nav li:last-child {
	margin-right: 0;
}

#contents {
	width: 884px;
	margin: -300px auto 0;
}

header {
	height: 432px;
	background: url(http://scrapaws.s3.amazonaws.com/ajito/lab/images/header/header_bg.jpg) no-repeat center top #5b1226;
}
#sub_nav {
	text-align: center;
}
header #scrap_logo {
	margin-bottom: 8px;
}
#main_wrapper {
	float: left;
	width: 648px;
}
#main {
    position: relative;
	background-color: #fff;
	border-top:1px solid #f2e5e9;
	border-right:1px solid #f2e5e9;
	border-left:1px solid #f2e5e9;
	margin-top: -1px;
	padding: 0 35px 30px;
}
.txt_wrapper h4 a {
	text-decoration: none;
}
.txt_wrapper h4 a:hover {
	text-decoration: underline;
}
footer {
	background: #fff;
	border-top: 1px solid #f2e5e9;
	border-right:1px solid #f2e5e9;
	border-left:1px solid #f2e5e9;
	border-bottom: 5px solid #ff476b;
	padding: 23px 15px;
}
.realdLogo {
	text-align: center;
}
.pt_from {
	cursor: pointer;
}
#sidebar {
	float: right;
	width: 220px;
	margin-bottom: 20px;
}
#main h3 {
	text-align: center;
	margin-bottom: 28px;
}

/*  アバウト  */
.about #main .img_area {
	margin-bottom: 38px;
	text-align:center;
}
.about .pic {
	text-align: center;
	margin: 55px 0;
}

/*  フッター  */
footer .clearfix div {
	float: left;
	width: 33%;
}
#copyright {
	font-size: 63%;
	color: #ebd3da;
	text-align: center;
	margin: 10px 0 15px;
}

/*  サイドバー  */
#sidebar .cont {
	background-color: #fff;
	border-bottom:1px solid #f2e5e9;
	border-right:1px solid #f2e5e9;
	border-left:1px solid #f2e5e9;
	padding: 0 6px 10px;
}
#sidebar #side_calendar .header {
	display: none;
}
#sidebar #side_twidget  {
	margin-top: 15px;
}
#side_followme .cont div {
	text-align: center;
	margin-bottom: 8px;
}
#side_access {
	margin-top: 15px;
}
#sidebar h3 {
	text-align: center;
	margin-bottom: 13px;
}
.gm-style .place-card-medium {
	display: none;
}
#side_access p {
	color: #9c9c9c;
	font-size: 79%;
}
#nav_group {
	padding-top: 17px;
}


/*  STAFF  */
.staff #main .unit {
	float: left;
	width: 33%;
	text-align: center;
	font-size: 14px;
	font-weight: bold;
	line-height: 1.65;
	margin-bottom: 25px;
}
.staff #main .unit .img {
	margin-bottom: 18px;
}

.parent.staff #main h4 {
	color: #5b1226;
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 23px;
	
}

/*  トップ  */
.top #pickup {
	margin-bottom: 20px;
}
#pickup #contWrap {
	position: relative;
	height: 401px;
}
#pickup #img {
	position: absolute;
	top: 12px;
	left: 14px;
}
#pickup #img img {
	width: 640px;
}
#pickup #frame {
	position: absolute;
	pointer-events: none;
}
.top #main .low {
	padding-left: 1px;
	border-bottom: 1px solid #f2e5e9;
	overflow:hidden;
}
.top #main .low:last-child {
	border-bottom: none;
}
.top #main .unit {
	width: 140px;
	padding: 15px 10px 25px;
	border-right: 1px solid #f2e5e9;
	float:left;
	padding-bottom: 32768px;
	margin-bottom: -32743px;
}
.top #main .unit:nth-of-type(4) {
	border-right: none;
}
.top #main .unit .vis {
	text-align: center;
	margin-bottom: 10px;
}
.top #main .unit .txt_wrapper {
	width: 140px;
	margin: 0 auto;
}
.top #main {
	font-size: 13px;
	padding: 0;
}
.top #main h4 {
	font-size: 13px;
	font-weight: bold;
	text-align: left;
	color: #ff476b;
	line-height: 1.6;
	margin-bottom: 6px;
}
.top .unit .vis:hover {
	outline: 4px solid #ff476b;
} 

/*  イベントアーカイブ（これから）  */
.event #main h3,
.check #main h3 {
	text-align: center;
	margin-bottom: 0;
	padding-bottom: 20px;
	border-bottom: 1px solid #f2e5e9;
}
.event #main .low {
	padding-left: 1px;
	border-bottom: 1px solid #f2e5e9;
	overflow:hidden;
}
.event #main .low:first-child {
	border-top: 1px solid #f2e5e9;
}
.event #main .low:last-child {
	border-bottom: none;
}
.event #main .unit {
	width: 140px;
	padding: 15px 10px 25px;
	border-right: 1px solid #f2e5e9;
	float:left;
	padding-bottom: 32768px;
	margin-bottom: -32743px;
}
.event #main .unit:nth-of-type(4) {
	border-right: none;
}
.event #main .unit .vis {
	text-align: center;
	margin-bottom: 10px;
}
.event #main .unit .txt_wrapper {
	width: 140px;
	margin: 0 auto;
}
.event #main {
	font-size: 13px;
	padding: 0;
}

.event .unit .vis:hover {
	outline: 4px solid #ff476b;
} 
.event #pickup {
	background-image: url(http://scrapaws.s3.amazonaws.com/ajito/lab/images/picup_img.jpg);
	background-repeat: no-repeat;
	background-position: center 10px;
}

img.thumbnail {
	width: 140px;
	height: 198px;
}

.parent #main h4 {
	font-size: 13px;
	font-weight: bold;
	text-align: left;
	color: #ff476b;
	line-height: 1.6;
	margin-bottom: 6px;
}


/*  イベントアーカイブ（これまで）  */
.archiveBtn {
	background: #fff;
	text-align: center;
	padding: 35px;
	border: 1px solid #f2e5e9;
}
.event-archive #main h3 {
	text-align: center;
	margin-bottom: 0;
	padding-bottom: 28px;
	border-bottom: 1px solid #f2e5e9;
}
.event-archive #main .low {
	padding-left: 1px;
	border-bottom: 1px solid #f2e5e9;
	overflow:hidden;
}
.event-archive #main .low:first-child {
	border-top: 1px solid #f2e5e9;
}
.event-archive #main .low:last-child {
	border-bottom: none;
}
.event-archive #main .unit {
	width: 140px;
	padding: 15px 10px 25px;
	border-right: 1px solid #f2e5e9;
	float:left;
	padding-bottom: 32768px;
	margin-bottom: -32743px;
}
.event-archive #main .unit:nth-of-type(4) {
	border-right: none;
}
.event-archive #main .unit .vis {
	text-align: center;
	margin-bottom: 10px;
}
.event-archive #main .unit .txt_wrapper {
	width: 140px;
	margin: 0 auto;
}
.event-archive #main {
	font-size: 13px;
	padding: 0;
}

.event-archive .unit .vis:hover {
	outline: 4px solid #ff476b;
} 

/*  イベント記事ページ（これから）  */
.child #main {
	padding: 0 35px 30px;
}
.event.child #main h3,
.check.child #main h3 {
	margin-bottom: 24px;
}
.event_entry .left {
	float:left;
}
.event_entry .right {
	float:right;
	width:256px;
}
.event_entry  h4 {
	font-weight:bold;
	font-size:23px;
	color: #5b1226;
	margin: 22px 0 10px;
}
.event_entry .date  {
	font-size: 21px;
}
.event.child #main {
	font-size: 16px;
}
.main_event h5 {
	color: #5b1226;
	font-weight: bold;
	font-size: 19px;
	margin: 22px 0 10px;
}
.main_event h6 {
	font-weight: bold;
	font-size: 17px;
	margin: 15px 0 8px;
}
.main_event p {
}

/*  イベント記事ページ（これまで）  */
.event-archive.child #main {
	padding: 0 35px 30px;
}
.event_entry .left {
	float:left;
}
.event_entry .right {
	float:right;
	width:256px;
}
.event_entry  h4 {
	font-weight:bold;
	font-size:23px;
	color: #5b1226;
	margin: 22px 0 10px;
}
.event_entry .date  {
	font-size: 21px;
}
.event-archive.child #main {
	font-size: 16px;
}
.main_event-archive h5 {
	color: #5b1226;
	font-weight: bold;
	font-size: 19px;
	margin: 22px 0 10px;
}
.main_event-archive h6 {
	font-weight: bold;
	font-size: 17px;
	margin: 15px 0 8px;
}
.main_event-archive p {
}

/* ===================================================================
 pagenavi
=================================================================== */

div.pagenavi {
	width: 580px;
	padding: 25px 30px;
	margin: 0 auto;
	color: #ff476b;
	/*text-align: center;*/
}

.pagenavi a, .pagenavi a:link {
	padding: 5px 8px; 
	margin: 2px;
	text-decoration: none;
	border: 1px solid #ff476b;
	color: #ff476b;
	font-family:Verdana;
	font-size: 10px;
}
.pagenavi a:visited {
	padding: 5px 8px; 
	margin: 2px;
	text-decoration: none;
	border: 1px solid #ff476b;
	color: #ff476b;
	font-family:Verdana;
	font-size: 10px;
}
.pagenavi a:hover {	
	border: 1px solid #ff476b;
	color: #fff;
	background: #ff476b;
	font-family:Verdana;
	font-size: 10px;
}
.pagenavi a:active {
	padding: 5px 8px;  
	margin: 2px;
	text-decoration: none;
	border: 1px solid #ff476b;
	color: #3273C7;
	font-family:Verdana;
	font-size: 10px;
}
.pagenavi span.pages {
	padding: 5px 8px; 
	margin: 2px;
	color: #FFF;
	font-family:Verdana;
	font-size: 10px;
}
.pagenavi span.current {
	padding: 5px 8px;  
	margin: 2px;
	font-weight: bold;
	border: 1px solid #ff476b;
	color: #52006D;
	font-family:Verdana;
	background: #FFF;
	font-size: 10px;
}
.pagenavi span.extend {
	padding: 5px 8px; 
	margin: 2px;	
	border: 1px solid #ff476b;
	color: #3273C7;
	font-family:Verdana;
	font-size: 10px;
}



.webpage h4 {
	color: #990000;
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 8px;
}
.webpage h5 {
    color: #5b1226;
    font-weight: bold;
    font-size: 19px;
    margin: 22px 0 10px;
}
.reserved p {
    margin-bottom: 23px;
}
.main__reservedBtn {
    position: absolute;
    top: -50px;
    right: -14px;
    width: 30%;
}