/*
Theme Name:縦書きHP
*/
/****************************************
* リセットCSS
*****************************************/
*, *::before, *::after {
	box-sizing: border-box;
}
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, 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 {
	border: 0;
	font-size: 100%;
	font-weight: inherit;
	margin: 0;
	outline: 0;
	padding: 0;
	vertical-align: baseline;
	scroll-behavior: smooth;
	
}
body {
	font-family: 'Noto serif jp',serif;
	width: 100%;
	height: 100%;
	margin: 0 auto;
	letter-spacing: 1.5px;
	line-height: 1.5;
	font-size: 0.75rem;
	background-color: #E5E2D7;
}
img {
	max-width: 100%;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	object-fit: cover;
}
a {
	text-decoration: none;
	color: #333;
}
ol, ul {
	list-style: none;
}
table {
	border-collapse: separate;
	border-spacing: 0;
}

input,textarea {
-webkit-appearance: none;
}


.site-title {
	line-height: 1px;
	/* 行の高さ */
	margin-left: 60px;
}
.site-title a {
	display: block;
}
.site-title img {
	height: 20%;
}
/* 自分のやり方だと縦書きにしてheigth％で画像を小さくしてた。 */
/* 模範ではwidth40pxだがうまく動作しないのでheigth20%で適用する・ */

/*-------------------------------------------
ヘッダー
-------------------------------------------*/
#header {
	width: 100%;
	/* 背景を画面下まで設定 */
	height: 100vh;
	background-image: url(./img/mainvisual-pc.jpg);
	/* WPの場合は上記書き方で適用される。 */
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;

	padding: 60px 80px;
	margin-bottom: 180px;
	/* 「オンラインストアを見る」ボタンを配置するためのposition */
	position: relative;
	/* 縦書きの指定（各ブラウザに対応するためのベンダープレフィックスを設定） */
	writing-mode: vertical-rl;
	-webkit-writing-mode: vertical-rl;  /* Chrome、Safari用 */
	-moz-writing-mode: vertical-rl;     /* Firefox用 */
	-ms-writing-mode: tb-rl;            /* IE用 */
}
/* 調べた通り縦書きの方法を書く。 */
/* また背景画像の指定方法にも注目 */


/*
「オンラインストアを見る」ボタン
positionで左下に配置
backgroundのrgbaで透過設定
*/
#header .onlinestore {
	background: rgba(255,255,255,0.2);
	padding: 8px;
	position: absolute;
	left: 40px;
	bottom: 30px;
}

#header .onlinestore a {
	display: block;
	border: solid 1px #ccc;
	padding: 30px 18px;
}
/* aにボーダーを指定することで内側に線を引いている。 */

#header .onlinestore a:hover {
	opacity: 0.7;
}
/* カーソルが乗ったら透過度を上げている。 */

#header nav li {
	margin-left: 25px;
}

.wrapper{    
		width: 100%;
		max-width: 1024px;
		margin: 0 auto;
		padding: 0 20px;
}

/*-------------------------------------------
News
-------------------------------------------*/
/*
「display: flex」で横並びに配置
そのままではタイトルが左にくるため、「row-reverse」で順序を入れ替える。
*/
#news {
	margin-bottom: 180px;
	display: flex;
	flex-direction: row-reverse;
	/* 左から並べていく */
}

#news .section-title {
	font-weight: normal;
	line-height: 1;
	writing-mode: vertical-rl;
	-webkit-writing-mode: vertical-rl;
	-moz-writing-mode: vertical-rl;
	-ms-writing-mode: tb-rl;
	margin-left: 50px;
}
/* ブロック要素にして横並びにしている。 */
#news .section-title .en {
	display: block;
	font-size: 0.875rem;
	margin-left: 15px;
}

#news .section-title .ja {
	display: block;
	font-size: 2.25rem;
	letter-spacing: 0.1em;
}
/* 苦手なdl dd dtを使っている。
dl　説明リスト要素
dt  用語というかタイトルと見た方がいいかも
dd 　詳細説明　つまりデータと見れば覚えやすい*/



#news .list {
	padding: 80px 0px 0 0;
	writing-mode: vertical-rl;
	-webkit-writing-mode: vertical-rl;
	-moz-writing-mode: vertical-rl;
	-ms-writing-mode: tb-rl;
	height: 50%;
}


#news .list dt {
	border-right: 0.5px solid #000;
	font-size: 0.75rem;
	padding: 15px 30px 15px 5px;
}

#news .list dd {
	padding: 15px 0 15px 30px;
	
}
/*
最後だけ左側に罫線を引く
*/
#news .list dd:last-child{
	
}
/* 模範解答は記載数が少なくて多少スマート？ */
/* 使えるものは前のものを使っている。 */
/*-------------------------------------------
Products（共通）
-------------------------------------------*/
.products {
	display: flex;
	margin-bottom: 180px;
}
.products .section-title {
	font-weight: normal;
	line-height: 1;
}
.products .section-title .ja {
	font-size: 2rem;
	letter-spacing: 0.1em;
	margin-bottom: 18px;
}
.products .section-title .en {
	font-size: 0.875rem;
}
/*
画像の上にテキストを重ねるためのpositionを設定
*/
.products .img {
	width: 65%;
	margin-top: 100px;
	position: relative;
}
/*
「position: absolute;」でテキストを画像の上に配置
左右の配置位置は「#products1」と「#products2」で個別に指定
*/
.products .text {
	width: 56%;
	color: #fff;
	padding: 50px 0;
	text-align: center;
	position: absolute;
	bottom: -20px;
}

/*
productsの共通定義以外は、idを指定（#products1、#products2）して個別に設定
*/
/*-------------------------------------------
Products1
-------------------------------------------*/
/*
そのままではタイトルが左にくるため、「row-reverse」で順序を入れ替える。
*/
#products1 {
	flex-direction: row-reverse;
}
#products1 .section-title {
	margin-left: 20px;
	writing-mode: vertical-lr;
	-webkit-writing-mode: vertical-lr;
	-moz-writing-mode: vertical-lr;
	-ms-writing-mode: tb-lr;
}
#products1 .text {
	background: rgba(249, 233, 6, 0.6);
	left: -20px;
}

/*-------------------------------------------
Products2
-------------------------------------------*/
#products2 .section-title {
	margin-right: 20px;
	writing-mode: vertical-rl;
	-webkit-writing-mode: vertical-rl;
	-moz-writing-mode: vertical-rl;
	-ms-writing-mode: tb-rl;
}
#products2 .text {
	background: rgba(149, 42, 38, 0.6);
	right: -20px;
}
/*-------------------------------------------
Shop
-------------------------------------------*/
/*
iframeのwidthに100%を指定して全幅で表示する
「vertical-align: bottom;」を指定することで、Google Mapの下にできる隙間を消す
*/
#shop iframe {
	width: 100%;
	height: 450px;
	vertical-align: bottom;
}
/*-------------------------------------------
フッター
-------------------------------------------*/
#footer {
	background-color: #000;
	color: #fff;
	padding: 80px 80px 30px 30px;
}
#footer a{
	color: #fff;
}

#footer .inner {
	width: 100%;
	display: flex;
	justify-content: space-between;
	font-size: 0.875rem;
	margin-bottom: 10px;
}
#footer .inner .left,
#footer .inner .right {
writing-mode: vertical-rl;
-webkit-writing-mode: vertical-rl;
-moz-writing-mode: vertical-rl;
-ms-writing-mode: tb-rl;
}
#footer .inner .logo {
height: 40%;
margin-left: 60px;
}

#footer .inner .info {
	line-height: 2;
}
#footer .menu {
	font-size: 1rem;
	margin-right: 60px;
}
#footer .menu li {
	margin-left: 25px;
}
#footer .copyright {
	font-size: 0.625rem;
	text-align: center;
}

/*-------------------------------------------
レスポンシブ
-------------------------------------------*/

@media screen and (max-width:768px){

	/*-------------------------------------------
	ヘッダー
	-------------------------------------------*/
	#header {
	/* スマホの場合は背景画像を切り替える */
	background-image: url(./img/mainvisual-sp.jpg);
	padding: 20px;
	margin-bottom: 80px;
	}
	#header .onlinestore {
	left: 20px;
	bottom: 20px;
	}

	/*-------------------------------------------
	News
	-------------------------------------------*/
	#news {
	margin-bottom: 80px;
	}
	#news .section-title .ja {
	font-size: 1.75rem;
	}
	#news .list {
	padding: 20px 30px 0 0;
	}
	#news .list dt {
	padding: 15px 12px 15px 5px;
	}
	/*
	スマホの場合は4つ目以降を非表示にする
	*/
	#news .list dt:nth-of-type(n + 4) {
	display: none;
	}
	#news .list dd {
	padding: 15px 0 15px 12px;
	}


	/*-------------------------------------------
	Products
	-------------------------------------------*/
	.products {
	margin-bottom: 100px;
	}
	.products .section-title .ja {
	font-size: 1.5rem;
	}
	/*
	スマホの場合は英語タイトルを非表示
	*/
	.products .section-title .en {
	display: none;
	}
	.products .img {
	width: 90%;
	margin-top: 70px;
	}
	.products .text {
	width: 64%;
	font-size: 0.875rem;
	padding: 30px 0;
	}

	/*-------------------------------------------
	Products1
	-------------------------------------------*/
	#products1 .section-title {
	margin-left: 10px;
	}

	/*-------------------------------------------
	Products2
	-------------------------------------------*/
	#products2 .section-title {
	margin-right: 10px;
	}

	/*-------------------------------------------
	フッター
	-------------------------------------------*/
	#footer {
	padding: 40px 20px 30px 20px;
	}
	#footer .inner .logo {
	margin-left: 25px;
	}
	#footer .menu li {
	margin-left: 10px;
	}
	#footer .menu {
	font-size: 0.875rem;
	margin-right: 25px;
	}

}