@charset "utf-8";

/* ========== すべて共通 ========== */
html, body {
	font-size: 16px;
	font-family: sans-serif;
	color: #393939;
	background: #fff;
}
body, div, p, h1, h2, h3, h4, ul, figure {
	margin: 0;
	padding: 0;
}
p, td, th, li {
	line-height: 1.8;
}
img {
	width: 100%;
	height: auto;
}
a {
	color: #709a00;
}
a:hover {
	color: #95cd00;
}
a:active {
	color: #4b6700;
}
/* 共通の見出し */

.container {
	margin: 0 auto;
	padding-left: 10px;
	padding-right: 10px;
	max-width: 1200px;
}
@media screen and (min-width: 768px) {
	.container {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* ========== ヘッダー ========== */
header {
	background: #000080;
}
.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.header-logo {
	padding: 10px 0;
	width: 250px;
	height: 46px;
}
.menu-btn {
	padding: 10px 0;
	border: 1px solid #fff;
	border-radius: 4px;
	width: 40px;
	height: 40px;
	background: url(../images/hamburger.png) no-repeat center center;
	background-size: contain;
}

@media screen and (min-width: 768px) {
	.header-logo {
		padding: 20px 0;
		width: 350px;
		height: 64px;
	}
	.menu-btn {
		display: none;
	}
}

/* ========== ナビゲーション ========== */
nav {
	background: #000080;
}
.navbar {
	display: none;
	list-style-type: none;
}
.navbar li {
	position: relative;    
	background: #000080; 
}
.navbar ul li{
	background: #1e90ff;
	border-top: 1px solid silver; /* 項目上側の枠線(シルバーで1pxの実線) */
}
.navbar a {
	display: block;
	padding: 0.6rem 0;
	color: #fff;
	text-decoration: none;
}

@media screen and (min-width: 768px) { /* パソコン画面用 */
	nav {
	background: #000080;
}
	.navbar {
		display: flex !important;
		text-align: center;
	}
	.navbar a:hover {
	background: #1e90ff;
	}
/* -------------------- */
/* ▼サブメニューの装飾 */
/* -------------------- */
	.navbar ul {
	   display: none;       /* ★1:標準では非表示にする */
	   margin: 0px;         /* ★2:サブメニュー外側の余白(ゼロ) */
	   padding: 0px;        /* ★3:サブメニュー内側の余白(ゼロ) */
	   position: absolute;  /* ★4:絶対配置にする */
	   top: 100%;/* 親メニュー上部からの表示位置（センターにするため） */
	   left: 0;/* 親メニュー左端からの表示位置 （センターにするため）*/
 	  width: 100%;/* 親メニュー幅に合わせる （センターにするため）*/
 	  list-style-type: none; 
	}

/* ---------------------------------- */
/* ▼サブメニューがある場合に開く処理 */   /* ※サブメニューが1階層しか存在しない場合の記述 */
/* ---------------------------------- */
.navbar li:hover ul {
   display: block;      /* ★5:マウスポインタが載っている項目の内部にあるリストを表示する */
	z-index: 100;
}      
/* ------------------------ */
/* ▼サブメニュー項目の装飾 */
/* ------------------------ */
.navbar ul li {   /* ※A */
   border-top: 1px solid silver; /* 項目上側の枠線(シルバーで1pxの実線) */
}
.navbar ul li a {   /* ※B */
   text-align: left;    /* 文字列の配置(左) */
   padding-left: 5px;   /* 文字列前方の余白(5px) */
   font-weight: normal; /* 太字にはしない */
}
.navbar ul li a:hover {   /* ※C */
   background-color: gray; /* サブメニュー項目にマウスが載ったときの背景色(グレー) */
   color: white;            /* サブメニュー項目にマウスが載ったときの文字色(白) */
}
	.navbar li {
		flex: 1 1 auto;
	}
	.navbar ul li a {
		text-align: center;/* 大きな画面のときのサブメニュー項目の文字センター */
	}
}

/* ========== メインエリア基本レイアウト ========== */
main {
	padding: 5px 5px;	
	background: #efefef;
}

@media screen and (min-width: 768px) {
	main {
		padding-left: 30px;
		padding-right: 30px;
	}
}

/* ========== フッター ========== */
footer {
	background: #000080;
	font-size: 0.9rem;
	color: #fff;
	padding-botom: 15px;
}
.footer-container {
	margin: 0 auto;
	max-width: 1200px;
	display: flex;
	justify-content: space-between;
	padding-top: 5px;
	padding-bottom: 5px;
}
.footer-nav {
	padding: 15px 10px;
}
.footer-nav ul {
	list-style-type: none;
}
.footer-nav li {
	padding: 0 1rem 0 0;
}
.footer-nav a {
	color: #fff;
	text-decoration: none;
}
.footer-nav a:hover {
	opacity: 0.5;
}
.footerguide {
	color: silver;
	font-size: 20px;
	font-weight: bold;
}
/* フッターのオマケ写真 */
.footerphoto {
	display: none;
}
@media screen and (min-width: 768px) { /* 大きい画面で表示 */
.footerphoto {
	display: block;
	text-align: right;
	max-width: 470px;
	margin: 20px 30px;
}
.footerphoto img {
	max-width: 150px;
	border-radius: 20%;
}
.footerphoto ul {
	list-style-type: none;
}
.footerphoto li {
	display: inline-block;
}
}

.footer-copyright {
	color: silver;
	margin: 0 auto;
	max-width: 1200px;
	text-align: left;
	padding: 15px 10px;
}

	.titlephoto {
		margin: 0 auto;
		max-width: 1200px;
		max-height: 480px;
		overflow: hidden;
		margin-bottom: 10px;
	}
	.titlephoto img {
		text-align: center;
		width: 100%;
		height: auto;
		animation: animationZoom1 5s ease-in-out forwards;
	    }
	    @keyframes animationZoom1 {
	      100% { transform:scale(1.1)} 
	    }

	/* キャッチコピー */
	.home-maincopy {
		text-align: center;
		font-size: 20px;
		color: #000080;
		animation-name: fadein;
	        animation-duration: 2s;
	}
	@keyframes fadein {
	from {
	    opacity: 0;
	    transform: translateY(20px);
	}
	to {
	    opacity: 1;
	    transform: translateY(0);
	}
	}

	@media screen and (min-width: 768px) {
		.home-maincopy {
			font-size: 1.8rem;
			margin: 0 0;
		}
	}
	.leadbun {
		margin: 10px auto;
		max-width: 500px;
		padding: 5px 5px;
		border-radius: 5%;
		box-shadow:5px 5px 10px gray;
		background: #fff;
	}
		
	.link {
		margin: 5px auto;
		width: 200px;
	}
	.link a {
		text-align: center;
		color: #fff;
		font-size: 18px;
		font-weight: bold;
		text-decoration: none;
		display: block;
		padding: 10px 10px;
		background: #4169e1;
		border-radius: 5%;
		box-shadow:2px 2px 5px gray;
	}
@media screen and (min-width: 768px) { /* 大きい画面で表示 */
	.link a:hover {
		opacity: 0.5;
	}
}
	.home-h2 {
		text-align: center;
		padding-bottom: 5px;
		margin: 10px 0 10px 0;
		color: #000080;
		border-bottom: 1px dashed #000080;
		font-size: 1.3rem;
	}

	/* お知らせ */
	.newscorner {
		display: none;　/* 小さい画面では出さない */
	}
	@media screen and (min-width: 768px) {/* 大きい画面で表示 */
	.newscorner {
		display: block; /* ←大きい画面で出すとき必須 */
		margin-top: 20px;	
		padding: 15px 5px;
		background-color: #fff;
		border-radius: 10px;
	}
	.home-news {
		position: relative;
		max-width:450px;
		margin: 0 auto;
		padding: 30px;
		border-radius: 10px;
		border: 2px solid #000080;
		background: #fff;
	}
	.home-news li {
		list-style-type: none;
	}
	.home-news .box-title {
	    position: absolute;
	    display: inline-block;
	    top: -13px;
	    left: 10px;
	    padding: 0 9px;
	    line-height: 1;
	    font-size: 19px;
	    background: #FFF;
	    color: red;
	    font-weight: bold;
	}
	.home-news a {
		color: #f00;
		text-decoration: none;
	}
	.home-news a:hover {
		opacity:0.5;
		}
	}


	.creditcard {
		margin: 10px auto;
		text-align: center;
		text-align: center
		max-width: 300px;
		padding: 0 5px 20px 5px;
	}
	.creditcard img {
		max-width:250px;
		margin: 0 auto;
	}
	.creditcard p {
		font-size: 14px;
		line-height: 1.2;
		display: block;
	}

	.lifelink {
		margin: 5px auto;
		width: 200px;
	}
	.lifelink a {
		text-align: center;
		color: #fff;
		font-size: 18px;
		font-weight: bold;
		text-decoration: none;
		display: block;
		padding: 10px 10px;
		background: #4169e1;
		border-radius: 5%;
		box-shadow:2px 2px 5px gray;
	}
@media screen and (min-width: 768px) { /* 大きい画面で表示 */
	.lifelink a:hover {
		opacity: 0.5;
	}
}
	/* 商品紹介 */
	.item img {
		border-radius: 10%;
	}
	.mainitem {
		max-width: 1200px;
		margin: 0 auto;
	}

	.mainitem {
		  display: flex;
	 	  flex-wrap: wrap;
		  padding: 10px;
	}
	.mainitem .item {
	    width: calc(50% - 10px);
	    margin: 5px;
	}
	/* Flexbox デモ 2 : レスポンシブ対応 */
	@media screen and (min-width: 768px) {
	.mainitem .item {
	  width: calc(33.3% - 10px);
	  margin: 5px;  
	  }
	}
	.itemphoto {
		max-width: 500px;
		overflow:		hidden;
		margin:			0 0;
		position:		relative;	/* 相対位置指定 */
	}
	.itemphoto img {
			border-radius: 10%;
	}
	.itemphoto .itemname {
		font-size:		130%;
		font-weight: bold;
		text-align: 		center;
		padding-top:		40%;
		color:			#fff;
	}
	.item .caption {
			font-size: 16px;
			line-height: 1.2;
			color: #000080;
			text-align: center;
	}
	/* Flexbox デモ 2 : レスポンシブ対応 */
	@media screen and (min-width: 500px) {
	.item .caption {
			display: none;
		}
	}

	.mask {
		width: 100%;
		height: 98%;
		position:		absolute;	/* 絶対位置指定 */
		top:			0;
		left:			0;
		border-radius: 10%;
		opacity:		0;	/* マスクを表示しない */
		background-color:	rgba(0,0,0,0.4);	/* マスクは半透明 */
		-webkit-transition:	all 0.5s ease;
		transition:		all 0.5s ease;
	}
	.itemphoto:hover .mask {
		opacity:		1;	/* マスクを表示する */
	}
	.soryo {
		margin: 5px auto;
		text-align: center;
		max-width: 350px;
	}
	.soryo p {
		font-size: 16px;
		display: block;
		background: gray;
		color: #fff;
		border-radius: 5%;
	}
	/* Flexbox デモ 2 : レスポンシブ対応 */
	@media screen and (min-width: 768px) {
	.soryo p {
		font-size: 20px;
	}
}
