/* ------------------------------------------------------------
	Reset Styles
------------------------------------------------------------ */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
}

/* ------------------------------------------------------------
	General Styles
------------------------------------------------------------ */

* {
	box-sizing: border-box;
}
body {
	font-family:"Noto Sans JP", "メイリオ", "ＭＳ Ｐゴシック", "MS Gothic", "Osaka－等幅", Osaka-mono, monospace;
	background: white;
	color: black;
	font-size: 14px;
	line-height: 1;
	padding: 20px;
}
.sitemap {
	margin: 10px 0 30px 0;
}


/* ------------------------------------------------------------
	s-contigo作成
------------------------------------------------------------ */
em{
	display:block;
	font-size:10px;
	font-weight:normal;
	background:rgba(0,0,0,0.2);
	padding:2px;
	text-align:center;
}
span.title{
	background:rgba(0,0,0,0.2);
	color: rgba(255,255,255,.9);
	font-weight:normal;
	display:block;
	font-size:11px;
	line-height:120%;
	margin:2px 0;
	padding:3px 0;
	padding-left:1em;
	text-indent:-1em;
	-webkit-transition: background-color 0.4s ease;
  -moz-transition: background-color 0.4s ease;
  -o-transition: background-color 0.4s ease;
  transition: background-color 0.4s ease;
}
span.description{
	background:rgba(0,0,0,0.2);
	color: rgba(255,255,255,.9);
	font-weight:normal;
	display:block;
	font-size:10px;
	line-height:120%;
	margin:2px 0;
	padding:1px 1px 1px 1em;
	text-indent:-1em;
	-webkit-transition: background-color 0.4s ease;
  -moz-transition: background-color 0.4s ease;
  -o-transition: background-color 0.4s ease;
  transition: background-color 0.4s ease;
}

span.memo{
	background:rgba(0,0,0,0.2);
	color: rgba(255,255,255,.9);
	font-weight:normal;
	display:block;
	font-size:10px;
	line-height:120%;
	margin:2px 0;
	padding:1px 1px 1px 1em;
	text-indent:-1em;
	-webkit-transition: background-color 0.4s ease;
  -moz-transition: background-color 0.4s ease;
  -o-transition: background-color 0.4s ease;
  transition: background-color 0.4s ease;
}

span.h1{
	background:rgba(0,0,0,0.2);
	color: rgba(255,255,255,.9);
	font-weight:normal;
	display:block;
	font-size:10px;
	line-height:120%;
	margin:4px 0 2px;
	padding:1px 1px 1px 1em;
	text-indent:-1em;
	-webkit-transition: background-color 0.4s ease;
  -moz-transition: background-color 0.4s ease;
  -o-transition: background-color 0.4s ease;
  transition: background-color 0.4s ease;
}
span.title:hover,
span.description:hover,
span.memo:hover,
span.h1:hover{
	background:#000;
	color:#fff;
}

span.keyword{
	background:rgba(255,255,255,0.2);
	color: rgba(255,255,255,.9);
	font-weight:normal;
	display:block;
	font-size:10px;
	line-height:120%;
	margin:2px 0;
	padding:1px 1px 1px 1em;
	text-indent:-1em;
	-webkit-transition: background-color 0.4s ease;
  -moz-transition: background-color 0.4s ease;
  -o-transition: background-color 0.4s ease;
  transition: background-color 0.4s ease;
}
span.keyword i,
span.pageid i,
span.slick i{
	display:inherit;
}
span.pageid{
	/*content: " "attr(href)" ";*/
	background:rgba(255,255,255,0.2);
	display: block;
	font-size: 10px;
	margin-top: 4px;
	word-wrap: break-word;
	color: rgba(255,255,255,.9);
	font-weight:normal;
	padding:1px 1px 1px 1em;
	text-indent:-1em;
}
.pageid:before{
	/*content:'pageID : ';*/
}
span.slick{
	background:rgba(255,255,255,0.2);
	display: block;
	font-size: 10px;
	margin-top: 4px;
	padding:1px 1px 1px 1em;
	text-indent:-1em;
	word-wrap: break-word;
	color: rgba(255,255,255,.9);
}


/*TDKHのタイトル*/
b{
	background:#333;
	padding:0 1px;
	font-weight:normal;
}

a{
	-webkit-transition: background-color 0.4s ease;
  -moz-transition: background-color 0.4s ease;
  -o-transition: background-color 0.4s ease;
  transition: background-color 0.4s ease;
	color:rgba(255,255,255,0.9);
}
.primaryNav div{
	-webkit-transition: background-color 0.4s ease;
  -moz-transition: background-color 0.4s ease;
  -o-transition: background-color 0.4s ease;
  transition: background-color 0.4s ease;
}

/*管理者ページ編集リンク*/
div a.edit{
	float:right;
	margin-top:-3px;
	visibility:hidden;
	opacity:0;
	-webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  transition: all 0.4s ease;
}
div:hover > a.edit{
	visibility:visible;
	opacity:1;
	background:none;
}


/* ------------------------------------------------------------
	Page Styles
------------------------------------------------------------ */

/* -------- Top Level --------- */

.primaryNav {
	clear: both;
	width: 100%;
	margin-top: 100px;
}
.primaryNav > ul > li#home {
	position: absolute;
	margin-top: -100px;
	margin-bottom: 0;
	width: 510px;
	max-width:inherit;
}
.primaryNav #home:before {
	display: none;
}
.primaryNav #home div{
	background:#0074c5;
}
.primaryNav div:hover{
	background:#888;
}

.primaryNav ul {
	display: flex;
	flex-wrap:wrap;
	list-style: none;
	position: relative;
}
.primaryNav li {
	flex: 1;
	flex-basis: 300px;
	padding-right: 20px;
	position: relative;
}
.primaryNav > ul > li {
	margin-top: 48px;
}
.primaryNav li div{
	margin: 0;
	padding: 5px;
	font-size: 14px;
	color: white;
	display: block;
	background: #0099ff;
	border: 1px solid  rgba(0,0,0,.025);
	box-shadow: 0px 2px 1px rgba(0,0,0,0.15);
	position:relative;
}
.primaryNav li > div:before{
	content:'1';
	color:rgba(255,255,255,0.5);
}
.primaryNav li#home > div:before{
	content:none;
}
.primaryNav li a {
	text-decoration: none;
}
.primaryNav li a:hover {
	background:rgba(0,0,0,0.6);
	color:#fff;
}

/* -------- Second Level --------- */

.primaryNav ul ul {
	display: block;
}
.primaryNav ul ul li {
	padding-top: 11px;
	padding-right: 0;
}
.primaryNav ul ul li div {
	background-color: #28bf5e;
}
.primaryNav ul ul li:first-child {
	padding-top: 30px;
}
.primaryNav li > ul > li > div:before{
	content:'2';
}

/* -------- Third Level --------- */

.primaryNav ul ul ul {
	margin-top: 9px;
	padding-top: 9px;
	padding-bottom: 10px;
}
.primaryNav ul ul ul li {
	padding-top: 5px;
	padding-bottom: 5px;
}
.primaryNav ul ul ul li div {
	background-color: #ff9d00;
	font-size: 14px;
	padding: 5px;
	width: 90%;
	margin-right: 0;
	margin-left: auto;
}
.primaryNav ul ul ul li:first-child {
	padding-top: 16px;
}
.primaryNav ul ul ul li a:link:after,
.primaryNav ul ul ul li a:visited:after {
	font-size: 12px;
}
.primaryNav li > ul > li > ul > li > div:before{
	content:'3';
}


/* --------	Fourth Level --------- */

.primaryNav ul ul ul ul {
	margin-top: 0;
	padding-top: 5px;
	padding-bottom: 5px;
}
.primaryNav ul ul ul ul li div {
	background-color: #de003a;
	padding: 5px ;
	width: 80%;
}
.primaryNav ul ul ul ul li a:link:after,
.primaryNav ul ul ul ul li a:visited:after {
	display: none;
}
.primaryNav li > ul > li > ul > li > ul > li > div:before{
	content:'4';
}

/* ------------------------------------------------------------
	Connecting Lines:
	Uncomment 'border-color: red' for debugging
------------------------------------------------------------ */

.primaryNav ul:before,
.primaryNav ul:after,
.primaryNav ul li:before,
.primaryNav ul li:after {
	display: block;
	content: '';
	position: absolute;
	border-width: 0;
	border-color: #ccc;
	border-style: solid;
	z-index: -1;
	/* border-color: red; */
}
.primaryNav > ul > li:before {
	height: 22px;
	top: -22px;
	right: calc(50% + 10px);
	width: calc(100% - 2px);
	border-top-width: 2px;
	border-right-width: 2px;
	/* border-color: red; */
}
.primaryNav > ul > li:first-child + li:before {
	border-top-width: 0;
	height: 80px;
	top: -80px;
	/* border-color: red; */
}
.primaryNav ul ul li:after {
	width: 50%;
	height: .6875em;
	top: 0;
	right: 1px;
	border-left-width: 2px;
	/* border-color: red; */
}
.primaryNav ul ul li:first-child:before {
	width: 50%;
	height: 1.3125em;
	top: .6875em;
	right: 1px;
	border-left-width: 2px;
	/* border-color: red; */
}
.primaryNav > ul > li:last-child:after {
	border-bottom-width: 0;
}
.primaryNav ul ul ul li:before {
	width: calc(50% - 5px) !important;
	height: calc(100% - 2px);
	top: -50%;
	left: 0;
	border-left-width: 2px;
	border-bottom-width: 2px;
	/* border-color: red; */
}
.primaryNav ul ul ul li:first-child:before {
	height: 50%;
	top: -1px;
	border-top-width: 2px;
	/* border-color: red; */
}
.primaryNav ul ul ul:before {
	width: 50%;
	height: 20px;
	top: -10px;
	right: 1px;
	border-left-width: 2px;
	/* border-color: red; */
}
.primaryNav ul ul ul li:after {
	border-width: 0;
}
.primaryNav ul ul ul ul li:before,
.primaryNav ul ul ul ul li:first-child:before {
	display: none;
}

.primaryNav ul ul ul ul:before {
	width: 1px;
	height: calc(100% + 40px);
	top: -40px;
	left: 0;
	border-left-width: 2px;
	/* border-color: red; */
}

/* ------------------------------------------------------------
	Utility Navigation
------------------------------------------------------------ */

.utilityNav {
	float: right;
	margin-top: 0;
	margin-bottom: -4px;
	margin-right: 20px;
	max-width: 48%;
	list-style-type: none;
}
.utilityNav li {
	padding: 0 0 10px 10px;
	display: inline-block;
}
.utilityNav li:first-child {
}
.utilityNav li a {
	display: block;
	font-size: 12px;
	font-weight: 700;
	padding: 12px 1em;
	font-weight: bold;
	text-align: left;
	color: white;
	background-color: #ccc;
	border: 1px solid  rgba(0,0,0,.025);
	box-shadow: 0px 2px 0 rgba(0,0,0,0.15);
	text-shadow: 0 0 10px rgba(0,0,0,.15);
	text-decoration: none;
}
.utilityNav li a:hover {
	background-color: #aaa;
}
.utilityNav li a:link:after,
.utilityNav li a:visited:after {
	color: rgba(255,255,255,.75);
	font-size: 12px;
	font-weight: 600;
	margin-top: 4px;
}

/* ------------------------------------------------------------
	Responsive Styles
------------------------------------------------------------ */

@media screen and (max-width: 480px) {
	.primaryNav {
		margin-top: 64px;
	}
	.primaryNav #home {
		min-width: inherit;
		margin-top: -80px;
	}
	.primaryNav ul {
		display: block;
	}
	.primaryNav li {
		width: 100%;
		padding-right: 0;
	}
	.primaryNav #home {
		width: 100%;
		position: relative;
		margin-bottom: -16px;
		margin-top: 0;
	}
	.utilityNav {
		float: none;
		display: block;
		width: 100%;
		text-align: right;
		margin-bottom: 40px;
		max-width: 100%;
	}
}


/* The media queries below keep the grid column widths intact when
a column wraps. This prevents the wrapped column from displaying at
100% width. These queries also make the homepage line item flex
appropriately. When your sitemap is complete, remove the queries
that you don't need, and your sitemap layout will work perfectly. */
@media screen and (min-width: 480px) {
	.primaryNav > ul > li {	max-width: 50%;	}
}
@media screen and (min-width: 616px) {
	.primaryNav > ul > li {	max-width: 33%;	}
}
@media screen and (min-width: 800px) {
	.primaryNav > ul > li {	max-width: 25%;	}
}
@media screen and (min-width: 976px) {
	.primaryNav > ul > li {	max-width: 20%;	}
}
@media screen and (min-width: 1168px) {
	.primaryNav > ul > li {	max-width: 16.66%;}
}
@media screen and (min-width: 1352px) {
	.primaryNav > ul > li {	max-width: 14.285%;	}
}
@media screen and (min-width: 1536px) {
	.primaryNav > ul > li {	max-width: 12.5%; }
}
@media screen and (min-width: 1720px) {
	.primaryNav > ul > li {	max-width: 11.11%; }
}
@media screen and (min-width: 1904px) {
	.primaryNav > ul > li {	max-width: 10%; }
}
/*
@media screen and (min-width: 2088px) {
	.primaryNav > ul > li {	max-width: 9.09%; }
}
@media screen and (min-width: 2272px) {
	.primaryNav > ul > li {	max-width: 8.33%; }
}
@media screen and (min-width: 2456px) {
	.primaryNav > ul > li {	max-width: 7.69%; }
}
@media screen and (min-width: 2640px) {
	.primaryNav > ul > li {	max-width: 7.14%; }
}
*/


