﻿@charset "utf-8";
/* CSS Document */

html{
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 14px;
  line-height: 1.2;
  -webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}
*{
  margin: 0 auto;
  padding: 0;
	border: 0;
  box-sizing: border-box;
}
main{
  display: block;
}
section{
	margin-bottom: 50px;
}
.clearfix{
	content: "";
	display: block;
	clear: both;
}
.taC{ text-align: center; }
.taL{ text-align: left; }

img{
	max-width: 100%;
	height: auto;
}
a{
	color: #000;
	text-decoration: none;
	transition: all 0.3s ease-out;
}
a:hover,
a:active,
a:focus{
	color: #666;
}
a:hover img{
	opacity: 0.8;
}
a .underline{
	text-decoration: underline;
}
a:hover .underline,
a:active .underline,
a:focus .underline{
	text-decoration: none;
}

body{
	background-color: #777;
}
#wrap{
	background-color: #FFF;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
}
header{
	background-color: #FFF;	
}
main{
	position:	relative;
}
#bgWrap{
	background: url("../images/iPhone15_bg01.png") repeat-y;
	background-size: contain;
	padding: 30px 50px 50px;
}
footer{
	background: url("../images/iPhone15_bg02.png") no-repeat center;
	height: 20px
}

.headding{
	line-height: 0;
}
h1{
	font-size: 22px;
	font-weight: 500;
	margin-bottom: 1em;
}
.sub{
	font-size: 16px;
	margin-bottom: 40px;
	margin-left: 0.5em;
}

.item{
	position: relative;
}
.itemBox{
	margin-bottom: 50px;
	display: grid;
}
.nested{
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.item a{
	display: block;
	line-height: 1.4;
	margin-top: 10px;
}
.item a span{
	display: inline-block;
	background-color: #666;
	color: #FFF;
	font-size: 12px;
	padding: 1px 4px;
	margin-right: 4px;
	margin-bottom: 2px;
	transition: all 0.3s ease-out;
}
.item a:hover span,
.item a:active span,
.item a:focus span{
	background-color: #999;
}

@media screen and (max-width: 499px){
	.nested{
		display: block;
	}
	.nest2,
	.nest4{
		margin-bottom: 30px;
	}
}
@media screen and (max-width: 767px){
	.itemBox{
		justify-content: center;
		row-gap: 30px;
	}
	.box3, .box4{
		grid-column: 1 / 3;
	}
	.box3 img{
		max-height: 460px;
	}
}
@media screen and (min-width: 768px){
	.itemBox{
		row-gap: 20px;
	}
	.box3{
		margin-top: 10px;
	}
}
@media screen and (min-width: 768px) and (max-width: 899px){
	.itemBox{
		grid-template-columns: 3fr 4fr;
		justify-content: space-around;
	}
}
@media screen and (min-width: 900px) and (max-width: 999px){
	.itemBox{
		grid-template-columns: 2fr 3fr;
		justify-content: space-around;
	}
}
@media screen and (max-width: 999px){
	.itemBox{
		column-gap: 20px;
	}
	.box1{
		grid-column: 1 / 3;
	}
	.box2{
		display: none;
	}
	.nested img{
		max-height: 420px;
	}
}
@media screen and (min-width: 1000px){
	.itemBox{
		grid-template-columns: 2fr 3fr;
	}
	.box2{
		align-self: end;
		margin-left: 10px;
	}
	.nested img{
		max-height: 356px;
	}
	.item a{
		padding-bottom: 15px;
	}
}
@media screen and (max-width: 1047px){
	.nested{
		grid-template-columns: repeat(2, 1fr);
	}
	.nest1{ order: 1; }
	.nest2{ order: 3; }
	.nest3{ order: 2; }
	.nest4{ order: 4; }
}
@media screen and (min-width: 1048px){
	.nested{
		align-items: end;
	}
}

hr{
	border: 1px solid #CCC;
}

.info{
	background-color: transparent;
	padding: 0 10px;
	line-height: 1.6;
}
.info ul{
	list-style: none;
}
.info ul li{
	padding-left: 1em;
	text-indent: -1em;
	font-size: 0.9em;
}
.info ul li::before{
	content: "※";
}

.link{
	display: grid;
	margin-top: 30px;
}
.link2{
	max-width: 30em;
}
@media screen and (max-width: 1047px){
	.link{
		grid-template-rows: repeat(2, 1fr);
		gap: 10px;
	}
}
@media screen and (min-width: 1048px){
	.link{
		grid-template-columns: repeat(2, 1fr);
		margin-right: min(6%,40px);
		margin-left: min(6%,40px);
	}
	.link2{
		margin-left: 20px;
		align-self: center;
	}
}

.topLink{
	text-align: right;
	margin: 0;
}
.topLink a{
	display: inline-block;
}



/*--------------------
		for print
  --------------------*/

@media print{

	#wrap{
		max-width: 1200px;
	}
	.info{
		padding: 0 20px 10px;
	}
	
	.itemBox{
		grid-template-columns: 1fr 2fr;
		justify-content: space-around;
	}
	.itemBox{
		column-gap: 20px;
		row-gap: 20px;
		font-size: 0.9rem;
	}
	.box1{
		grid-column: 1 / 4;
	}
	.box2{
		grid-column: 1 / 4;
	}
	.box3{
		margin-top: 10px;
	}
	.nested{
		align-items: end;
	}
	.nested img{
		max-height: 420px;
	}
	.link{
		grid-template-rows: repeat(2, 1fr);
		gap: 10px;
	}	
}



.outofstock {
  background-color: #FFF;
  color: #F00;
  font-weight: bold;
  text-align: center;
  border: 1px solid #F00;
  padding: 10px;
  margin: 30px 10px;
}


