/*! 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
   ========================================================================== */
div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,section{
	margin: 0;
	padding: 0;
}
h1{
	font-weight: normal; font-size:0.7em; padding-top:110px;  padding-bottom:15px;
}
@import url(http://fonts.googleapis.com/css?family=Open+Sans);


body{ background-color:#330000;	font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic ProN" ,"hiragino kaku gothic pro", "Open+Sans" ,"Helvetica", "Meiryo","メイリオ", Osaka , Verdana, sans-serif ; line-height:1.5em;
font-size:0.9em; text-align:center;}
#wrap{text-align:center; 
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
}
header{ background-color:#330000; text-align:center; height:30px; position:fixed; width:100%; z-index:1; top:0px;
}
nav{display: none;}
footer{ color:#fff; text-align:center; width:100%; font-size:0.8em; margin-bottom:5px; }
p{margin-bottom:1.7em;}
ul{background-color:#fff; margin-top:30px; position: fixed; top:0px; z-index:2; width:100%;}
li{list-style:none;}
.topnav {display:block; text-decoration: none;}
A.topnav:link { color: #AAA;}
A.topnav:visited { color: #AAA;}
A.topnav:active { color: #AAA;}
A.topnav:hover { color:#330000;}

#navleft{ width:100%; border-bottom: 2px solid #CCC; height:23px;} 
#navcenter{width:100%; border-bottom: 2px solid #CCC; height:23px;}
#navright{width:100%; border-bottom: 2px solid #CCC; height:23px;}

section{ background-color:#fff; width:90%; height:auto; text-align:left; position:relative; 
padding:0px 5px 60px 5px; margin-bottom:100px; margin-right: auto; margin-left: auto;}

A.normallink:link { color: #000;}
A.normallink:visited { color: #000;}
A.normallink:active { color: #000;}
A.normallink:hover { color:#DD0000;}
i{ text-indent:-5px;}

/*ホーム用*/
#homepage{ margin-top:30px; margin-bottom:10px; width:90%; position:relative; background-color:#ffffff; padding:5px 5px;font-size:2em; margin-bottom:100px; margin-right: auto; margin-left: auto;}
#homeleft{width:100%; height:75px; padding-top:55px; border-bottom: 2px solid #CCC; text-align:center;} 
#homecenter{width:100%; height:75px; padding-top:55px; border-bottom: 2px solid #CCC; text-align:center;} 
#homeright{width:100%; height:75px; padding-top:55px; text-align:center;}
/*phirosophy用*/
/*corporate用*/
table{width:95%; padding-top:5px;}
th{ text-align:left; vertical-align:top; width:30%; padding-bottom:8px;}
td{ vertical-align:top; width:70%; padding-bottom:8px;}
/*contact用*/
#map_canvas { width: 95%; height: 230px;
   margin:5px 5px;}
#coname{font-weight:bold; font-size:1.1em}
.ad{display:none;}



/*/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_
メディアクエリによる切り替え
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_*/

/* PC向けおよび大型タブレット向けのレイアウトの指定：769px～960px */
@media only screen and (min-width:769px){
 li{font-size:1.4em; padding-top:14px;}
#navleft{ width:100%; border-bottom: 2px solid #CCC; height:35px;} 
#navcenter{width:100%; border-bottom: 2px solid #CCC; height:35px;}
#navright{width:100%; border-bottom: 2px solid #CCC; height:35px;}
section{ margin-top:0px; margin-bottom:80px; width:90%; min-height:500px; padding:0px 20px 60px 20px;}
h1{ padding-top:200px; padding-bottom:15px;}
/*ホーム用*/
#homepage{ margin-top:30px; margin-bottom:10px; width:94%; position:relative; background-color:#ffffff; font-size:2em; margin-bottom:100px; margin-right: auto; margin-left: auto;}
#homeleft{width:100%; height:90px; padding-top:60px; border-bottom: 2px solid #CCC; text-align:center;} 
#homecenter{width:100%; height:90px; padding-top:60px; border-bottom: 2px solid #CCC; text-align:center;} 
#homeright{width:100%; height:90px; padding-top:60px; text-align:center;}
/*phirosophy用*/
/*corporate用*/
/*contact用*/
#map_canvas { width: 95%; height: 400px;
   margin:5px 5px;}
	}

/* PC向けレイアウトの指定：961pxでは固定レイアウト */
@media only screen and (min-width:961px){
h1{ padding-top:90px; padding-bottom:15px;}
section{ margin-top:0px; margin-bottom:100px; width:760px; min-height:550px; padding:0px 95px 50px 95px;}

#wrap{width:950px;} 
ul{width:950px;}
 li{float:left; font-size:1.3em; padding-top:8px; padding-bottom:8px;}
#navleft{ width:315px; border-right: 2px solid #CCC; border-bottom: 0;}
#navcenter{ width:316px;border-bottom: 0;}  
#navright{ width:315px; border-left: 2px solid #CCC;border-bottom: 0;}
footer{margin-bottom:20px;}
/*ホーム用*/
#homepage{font-size:2em; margin-bottom:100px; width:950px; height:530px; padding:35px 0px;}
#homeleft{width:315px; height:280px; padding-top:250px; border-right: 2px solid #CCC; float:left; text-align:center;border-bottom: 0;} 
#homecenter{width:316px; height:280px; padding-top:250px; float:left; text-align:center;border-bottom: 0;} 
#homeright{width:315px; height:280px; padding-top:250px; border-left: 2px solid #CCC; float:left; text-align:center;}
/*phirosophy用*/
/*corporate用*/
table{width:760px; padding-top:0px;}
th{width:100px; padding-bottom:13px;}
td{width:660px; padding-bottom:13px;}
/*contact用*/
#map_canvas { width: 730px; height: 450px;
   margin:0px 0px 10px 0px;}

	}










/* ==========================================================================
   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;
    }
}
