/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.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 {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * 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 #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body{
	min-width:960px;
}

h1, h2, h3, h4{
	margin:0;
}

.hover:hover{
    filter:alpha(opacity=70);  /* IE7以下用 */
    -ms-filter:"alpha(opacity=70)"; /* IE8用 */
    -moz-opacity:0.7; /* Firefox 1.5未満, Netscape用 */
    -khtml-opacity:0.7; /* Safari 1.x, 他khtmlに対応したブラウザ用  */
    opacity:0.7; /* Firefox 1.5以上, Opera, Safari用 */
}

h1{
	color:#fff;
	background:#6d9f1e;
	font-size:0.9em;
	font-weight:normal;
	padding:0.5em;
	margin-bottom:1em;
}

.header img.logo{
	margin-bottom:1em;
}

.header .wrapper{
	width:960px;
	margin:0 auto;
}

.header ul{
	list-style:none;
	margin:0;
	padding:0;
}

.header li{
	float:left;
	font-size:0.9em;
	text-align:center;
	border-right:1px solid #eee;
}

.header li:last-child{
	border-right:none;
}


.header li span{
	display:block;
	background:#EDEDE0;
	font-size:0.75em;
	text-align:center;
	border-radius:4px;
	padding:0.3em 1em;
	margin-top:0.5em;
	color:#C0B8A9;
}

.header li a{
	display:block;
	padding:0.5em 1.57em;
	color:#5E8821;
	text-decoration:none;
}

.header li a:hover{
	color:#C0B8A9;
}

.home .billboard{
	background:#6DA01F;
	text-align:center;
	padding:2em 0;
}

#slider{
	list-style:none;
	padding:0;
	width:890px;
	margin:0 auto;
	height:206px;
	overflow:hidden;
}

/* ========================================= */

/* STRUCTURE */

/* ========================================= */
.wrapper_content{
	width:960px;
	margin:2em auto 4em auto;
}

.wrapper_content .main{
	float:right;
	width:680px;
}

.wrapper_content .side{
	float:left;
	width:260px;
}

/* ========================================= */

/* SIDEBAR */

/* ========================================= */
.wrapper_content .side h2{
	background:#6D9F1E;
	color:#394E05;
	font-size:0.9em;
	padding:0.4em 0 0.4em 1em;
	border-left:3px solid #538012;
}

.wrapper_content .side ul{
	list-style:none;
	padding:0;
	margin:0;
}

.wrapper_content .side .item{
	border:1px solid #ccc;
	margin-bottom:1em;
}

.wrapper_content .side .item li{
	margin:0.5em;
	border-bottom:1px dotted #ccc;
	font-size:0.8em;
}

.wrapper_content .side .item li:last-child{
	border-bottom:none;
}



.wrapper_content .side .item a{
	color:#538012;
	text-decoration:none;
}

.wrapper_content .side .item a:hover{
	background:#EDEDE0;
	color:#cc3300;
}

.wrapper_content .side .item .mk{
	color:#7A5C13;
	margin-right:0.2em;
}

.wrapper_content .side .item .date{
	font-size:0.9em;
	margin-right:0.5em;
	font-weight:bold;
	color:#7A5C13;
}

.wrapper_content .side .item .all{
	text-align:right;
}

.side .books strong {
	color: #FF6600;
	font-size: 1.2em;
}
.side .books span {
	color: #999;
	font-size: 0.9em;
}
.side .books a.amazon {
	color: #0099FF;
	font-weight: bold;
	text-decoration: underline
}
.side .books a.amazon:hover {
	color: #0099FF;
	font-weight: bold;
	text-decoration: none
}


/* ========================================= */

/* CONTENT */

/* ========================================= */
.wrapper_content .main h2{
	background:#6D9F1E;
	color:#fff;
	font-size:1em;
	padding:0.3em 1em 0.2em 0.5em;
	border-bottom:3px solid #538012;
	margin-bottom:1em;
}

.wrapper_content .main h2 span{
	border-left:3px solid #538012;
	padding-left:0.5em;
}

.main .premium .image_premium{
	float:left;
	display:block;
}

.main .premium p{
	float:right;
	width:360px;
	font-size:0.9em;
	margin:0 0 1em 0;
	line-height:1.6;
	color:#520E0B;
}

/* ========================================= */

/* HOME */

/* ========================================= */

.home .bnr{
	margin:1em auto 2em auto;
}

.home .bnr a{
	display:block;
	width:220px;
	float:left;
}

.home .bnr .achievement{
	margin:0 10px;
}

.home .withdom p{
	font-size:0.9em;
	line-height:1.6;
	color:#520E0B;

}

.sns ul {
	list-style: none;
	padding: 0;
}

.sns ul {
	display: flex;
	align-items: center;
}

.sns ul li:first-child {
	margin-right: 10px;
}


/* ========================================= */

/* UNDER PAGES */

/* ========================================= */
.main a.menu{
	color:#ff3300;
	font-weight:bold;
}
.main a.menu:hover{
	text-decoration:none;
}

.main span.mk{
	margin-right:0.5em;
}

.under h3{
	color:#520E0B;
	margin:0 0 1em 0;
	border-bottom:1px solid #520E0B;
}

.under p{
	font-size:0.9em;
	line-height:1.6;
	color:#520E0B;
}

.under .unit{
	margin-bottom:2em;
}

body.under .under .unit ul{
	font-size:0.9em;
	line-height:1.6;
	color:#520E0B;
	border:1px solid #520E0B;
	padding:1em 2em;
}


ul.list{
	margin:1em 0 0 0;
	padding:0;
	list-style:none;
	font-size:0.9em;
	line-height:2;
}

ul.list li:before{
  content:">>";
  margin-right:0.5em;
  font-size:0.8em;
  color:#999;
}

ul.list a{
	color:#538012;
}
ul.list a:hover{
	text-decoration:none;
}

.main .achievement dl{
	border-bottom:1px solid #ccc;
}

.main .achievement dd{
	text-align:center;
	padding-bottom:1em;
}

.main .achievement dt{
	font-weight:bold;
	color:#394E05;
}

body.info .main ul.list .date{
	margin-right:1em;
	color:#7A5C13;
	font-weight:bold;
	font-size:0.9em;
}

body.info .main ul.list li{
	color:#999;
}

.inquiry .btn{
	text-align:center;
}

.inquiry .btn .check,
.inquiry .btn .submit{
	padding:1em 2em;
    background:#538012;
    color:#fff;
    border-style:none;
}

.inquiry .btn .back{
	padding:1em 2em;
    background:#999;
    color:#fff;
    border-style:none;
}


.inquiry .btn .check:hover,
.inquiry .btn .submit:hover{
    background:#6D9F1E;
}

.inquiry .btn .back:hover{
    background:#666;
}

.ERR{
	 color:#ff3300;
	 font-size:0.8em;
}

.complete{
	font-size:0.9em;
	line-height:2;
	text-align:center;
}

.inquiry .required{
	color:#ff3300;
}

table.inquiry{
	width:100%;
}

table.inquiry{
	margin-bottom:1em;	
}

table.inquiry th,
table.inquiry td{
	border:1px solid #ccc;
	font-size:0.9em;
	padding:0.5em;
}

table.inquiry th{
	font-weight:normal;
	text-align:left;
	width:40%;
	background:#EDEDE0;
}

/* ========================================= */

/* FOOTER */

/* ========================================= */
.wrapper_footer{
	border-top:1px solid #ccc;
	width:960px;
	margin:0 auto;
	padding:2em 0;
}

.wrapper_footer a.logo{
	width:125px;
	display:block;
	float:left;
}

.wrapper_footer .menu{
	float:left;
	color:#460E0B;
	font-size:0.9em;
	margin-left:2em;
}

.wrapper_footer .menu a{
	color:#668012;
	text-decoration:none;
}
.wrapper_footer .menu a:hover{
	color:#460E0B;
	text-decoration:underline;
}


.copyright{
	color:#460E0B;
	text-align:center;
	font-size:0.75em;
}


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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

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

/*
 * Hide visually and from screen readers, 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;
}

/* ==========================================================================
   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,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

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

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

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

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

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

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

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