
:root {
  --chart-border-color: #a39b91;
  --chart-background: #ffffff;
  --s-i-width: 20%;
  --s-i-height: 100%;
  --font-japanese: "Noto Sans JP", sans-serif;
}
body{
	/*margin: 0;*/
}
.s-w{
	position: relative;
	margin: 10% auto;
	width: 80%;
	background: var(--chart-background);
	border: 4px solid var(--chart-border-color);
	box-sizing: border-box;
}
.s-w.spark{
	background: url("https://www.rakuten.ne.jp/gold/co2s/img/aji/wine_graph-sparkling.png");
	background-size: cover;
}
.s-w:before{
	content: "";
	display: block;
	padding-top: 100%;
}
.s-w img{
	pointer-events: none;
	position: absolute;
	width: 100%;
	top: 0;
	opacity: 0.5;
	z-index: 2;
}
.l-5-r {
	position: absolute;
	width: 100%;
	height: 20%;
	z-index: 3;
}
.s-i{
	border: 2px solid var(--chart-border-color);
}
.s-i:nth-child(1) {
    position: absolute;
    left: 0;
    top:0;
    height: var(--s-i-height);
    width: var(--s-i-width);
	border-right: none;
	border-left: none;
    box-sizing: border-box;
}
.s-i:nth-child(2) {
	position: absolute;
	left: 20%;
	top:0;
	height: var(--s-i-height);
	width: var(--s-i-width);
	border-right: none;
	box-sizing: border-box;
}
.s-i:nth-child(3) {
	position: absolute;
	left: 40%;
	top:0;
	height: var(--s-i-height);
	width: var(--s-i-width);
	border-right: none;
	box-sizing: border-box;
}
.s-i:nth-child(4) {
	position: absolute;
	left: 60%;
	top:0;
	height: var(--s-i-height);
	width: var(--s-i-width);
	border-right: none;
	box-sizing: border-box;
}
.s-i:nth-child(5) {
	position: absolute;
	left: 80%;
	top:0;
	height: var(--s-i-height);
	width: var(--s-i-width);
	border-right: none;
	box-sizing: border-box;
}
.l-5-r:nth-of-type(1){
	top: 0;
}
.l-5-r:nth-of-type(1) > .s-i{
	border-top: none;
}
.l-5-r:nth-of-type(2){
	top: 20%;
}
.l-5-r:nth-of-type(3){
	top: 40%;
}
.l-5-r:nth-of-type(4){
	top: 60%;
}
.l-5-r:nth-of-type(5){
	top: 80%;
}
.l-5-r:nth-of-type(1) > .s-i,
.l-5-r:nth-of-type(2) > .s-i,
.l-5-r:nth-of-type(3) > .s-i,
.l-5-r:nth-of-type(4) > .s-i,
.l-5-r:nth-of-type(5) > .s-i,
.l-3-r:nth-of-type(1) > .s-i,
.l-3-r:nth-of-type(2) > .s-i,
.l-3-r:nth-of-type(3) > .s-i{
	border-bottom: none;
}
.l-3-r {
    position: absolute;
    width: 100%;
    height: 33%;
    z-index: 3;
}
.l-3-r:nth-of-type(1) {
    top: 0;
}
.l-3-r:nth-of-type(1) > .s-i{
	border-top: none;
}
.l-3-r:nth-of-type(2) {
    top: 33%;
}
.l-3-r:nth-of-type(3) {
    top: 66%;
    height: 34%;
}
.l-3-r .s-i{
	width: 33%;
}
.l-3-r .s-i:nth-child(2){
	left: 33%;
}
.l-3-r .s-i:nth-child(3){
	left: 66%;
	width: 34%;
}
.chart-wrapper{
	position: relative;
}
.t-t,.r-t,.b-t,.l-t{
	position: absolute;
	pointer-events: none;
	font-size: 24px;
	z-index: 3;
    color: var(--chart-border-color);
}
.r-t, .l-t{
	-webkit-writing-mode: vertical-rl;
	-ms-writing-mode: tb-rl;
	writing-mode: vertical-rl;
}
.t-t {
	transform: translate(-50%,0);
	top: -12%;
	left: 50%;
}
.r-t {
	transform: translate(0,-50%);
	top: 50%;
	right: 0;
}
.b-t {
	transform: translate(-50%,0%);
	bottom: -12%;
	left: 50%;
}
.l-t {
	transform: translate(0,-50%);
	top: 50%;
	left: 0;
}
.s-i > a{
	display: block;
	width: 100%;
	height: 100%;
}
@media screen and (max-width: 320px){
	.t-t,.r-t,.b-t,.l-t{
		font-size:20px;
	}
	.r-t.r-t-b{
		height: 205px;
	}
	.l-t.r-t-b{
		height: 225px;
	}
	.r-t.r-t-s {
		height: 240px;
	}
	.l-t.l-t-s{
		height: 180px;
	}
}
@media screen and (min-width: 321px){
	.t-t,.r-t,.b-t,.l-t{
		font-size:24px;
	}
	.r-t.r-t-b{
		height: 245px;
	}
	.l-t.l-t-b{
		height: 270px;
	}
	.r-t.r-t-s {
		height: 280px;
	}
	.l-t.l-t-s{
		height: 210px;
	}
}
img.chart1 {
	pointer-events: none;
	position: absolute;
	width: 100%;
	top: 0;
	opacity: 0.5;
	z-index: 2;
}
.s-i img{
	width: 100%;
	height:100%;
	opacity: 1 !important;
}
.a-w > div.aji-explain{
	margin-left: 5%;
	font-size: 16px;
	line-height: 1.3em;
	padding-bottom: 10px;
}
.a-w > div.aji-explain > span{
	line-height: 34px;
}
.a-w{
	background: #f1eee9;
	border-radius: 8px;
	padding-bottom: 20px;
	padding-top: 10px;
	font-family: var(--font-japanese);
}
@media screen and (min-width: 601px){
	margin: 0 4px;
}
@media screen and (max-width: 600px){
	margin: 0 20px;
}
#iframe_common_smp_item{
	height: 100px;
	margin-top: 20px;
}

/*類似商品表示システム用CSS*/
.similarwines-box {
	display: none;
    background: #f0f0f0;
    padding: 0 10px;
    margin: 20px 0 0 0;
}
.similarwines-heading {
    font-size: 18px;
    line-height: 1.5em;
    padding: 10px 0 0 0;
    text-align: center;
    font-weight: bold;
    color: #000;
}
a.similarwine-card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    /*
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: flex-start;
    */
    border: 2px solid #9aa339;
    padding: 2px;
    border-radius: 8px;
    margin: 10px 0;
    background: #fff;
}
.similarwine-name {
	text-decoration: underline;
	line-height: 1.6em;
}
.similarwine-card-left {
    width: 40%;
}
.similarwine-card-right {
    width: 60%;
    padding: 10px 5px 0 0;
    position: relative;
}
.similarwine-catchcopy, .similarwine-name, .similarwine-card-more, .similarwine-card-price{
    display: block;
    font-size: 14px;
}
.similarwine-text {
    height: 84px;
    overflow: hidden;
    position: relative;
}
/*
.similarwine-text::after {
    content: "...";
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0 5px;
    background: #fff;
    height: calc(14px * 1.5);
}
*/
.similarwine-card-more, .similarwine-card-price{
    padding: 5px;
}
.similarwine-card-bottom {
    position: absolute;
    bottom: 3px;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: space-between;
    background: #fff;
}
a.similarwines-more-link {
    text-decoration: underline;
    font-size: 18px;
    line-height: 1.5em;
    text-align: center;
    display: block;
    font-weight: bold;
    padding: 0 0 10px 0;
}

