﻿html, body {
	height: 100dvh;
	width: 100%;
	margin: 0;
	padding: 0;
	text-align: center;
	font-size: 20px;
	font-family: "MS PGothic", "ＭＳ Ｐゴシック", "Meiryo", "メイリオ", sans-serif;
	background: url("../img/back.webp") no-repeat center bottom fixed;
	background-size: cover;
}

#container {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100dvh;
	text-align: center;
	margin: 0;
}

img {
	image-rendering: auto;
	transform: translateZ(0);
}

nav {
	font-size: 0;
	display: grid;
	grid-template-columns: repeat(4, auto);
	justify-content: center;
	margin: 0 auto;
}

nav a {
	font-size: 18px;
	font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Yu Gothic", 游ゴシック, "MS PGothic", "ＭＳ Ｐゴシック", "Meiryo", "メイリオ", sans-serif;
	letter-spacing: 0.1em;
	text-align: center;
	border: 5px ridge #c0c0c0;
	padding: 5px 10px;
	text-decoration: none;
	color: blue;
	background-color: lime;
}

nav a:hover {
	color: red;
}

header {
	margin-top: 10px;
}

h1.margin-zero {
	margin: 0;
}

h1.margin-sitazero {
	margin-bottom: 0;
}

header img {
	display: block;
	margin: 10px auto;
	width: 500px;
	height: auto;
}

main {
	flex: 1;
	display: flex;
	flex-direction: column;
}

p.sub-title {
	margin: 0;
}

p.caution {
	margin: 10px;
	font-size: 0.8em;
	font-weight: bold;
	color: red;
}

footer {
	flex-shrink: 0;
	font-size: 0.8em;
	color: #777;
	font-family: sans-serif;
	padding: 3px 0;
	margin-top: auto;
}

footer p {
	margin: 0;
	line-height: 1.3;
}

img.logo {
	position: fixed;
	right: 10px;
	bottom: 10px;
	z-index: 100;
	width: 300px;
	height: auto;
}

h3 {
	margin: 15px;
}

h2.margin-ue {
	margin-top: 0;
}

.margin-sita {
	margin-bottom: 50px;
}

.left {
	text-align: left;
	margin-left: 0;
	margin-right: auto;
}

.right {
	text-align: right;
	margin-left: auto;
	margin-right: 0;
}

.br {
	display: none;
}

.Tab1 {
	display: inline-block;
	width: 50px;
}

.Tab2 {
	display: inline-block;
	width: 130px;
}

.Tab3 {
	display: inline-block;
	width: 150px;
}

table {
	width: auto;
	margin: 0 auto;
	border-collapse: collapse;
	background-color: rgba(255, 255, 255, 0.7);
}

table th, table td{
	padding: 10px 15px;
}

table.contact {
	border: 3px solid #999;
	margin: 0 auto;
}

table.contact th, table.contact td {
	border: 2px solid #999;
}

table.contact td {
	text-align: left;
}

table.info {
	border: 1px solid black;
}

table.info th, table.info td {
	border: 1px solid black;
	vertical-align: top;
}
table.info th {
	letter-spacing: 0.5em;
}

table.info td {
	text-align: left;
}

table.machine {
	border: 1px solid black;
}

table.machine th, table.machine td {
	border: 1px solid black;
	vertical-align: top;
}

table.product {
	border: 1px solid black;
	background-color: white;
	table-layout: fixed;
	width: 80%;
}

table.product td {
	border: 1px solid black;
	padding: 0;
	position: relative;
	overflow: hidden;
}

table.product td::before {
	content: "";
	display: block;
	padding-top: 100%;
}

table.product img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	will-change: transform;
	background: #fff;
}

.content {
	flex-shrink: 0;
}

.iframe-wrp {
	flex: 1;
	overflow: hidden;
	position: relative;
	width: 90%;
	max-width: 800px;
	height: auto;
	margin: 0 auto;
}

.iframe-wrp iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

@media (orientation: portrait) {
	html, body {
		background: url("../img/back-sp.webp") no-repeat center top fixed;
		background-size: cover;
	}

	.br {
		display: inline;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 16px;
	}

	nav {
		grid-template-columns: repeat(2, 1fr);
		width: 90%;
	}

	nav a {
		font-size: 28px;
		line-height: 40px;
	}

	header img {
		width: 320px;
		margin-bottom: 0;
	}
	p.sub-title {
		display: none;
	}
	p.caution {
		margin: 5px;
		line-height: 1.2;
	}
	footer {
		font-size: 0.7em;
	}

	footer.sp {
		transform: translateX(-70px);
	}

	.Tab2 {
		width: 115px;
	}

	.Tab3 {
		width: 120px;
	}

	h1 {
		margin: 15px;
	}

	h3 {
		font-size: 16px;
		margin: 10px;
	}

	img.logo {
		width: 140px;
		right: 5px;
		bottom: 5px;
	}

	.margin-sita {
		margin-bottom: 10px;
	}

	table.contact {
		border: 2px;
		margin-bottom: 5px;
	}

	table.contact th, table.contact td {
		padding: 3px 15px;
		font-size: 22px;
	}

	table.info {
		margin-bottom: 1px;
	}

	table.info th, table.info td, table.machine th, table.machine td {
		padding: 5px 10px;
	}

	table.product {
		width: 95%;
	}

	.iframe-wrp {
		aspect-ratio: auto;
		flex: 1;
		width: 90%;
		height: auto;
	}
}

@media (max-width: 379px) {
	body, p.caution {
		font-size: 12px;
	}

	nav a {
		font-size: 20px;
		line-height: 30px;
	}

	header img {
		width: 200px;
	}

	footer {
		padding: 2px;
	}

	footer.sp {
		transform: translateX(-60px);
	}

	h3 {
		margin-bottom: 5px;
		font-size: 14px;
	}

	img.logo {
		width: 120px;
		bottom: 2px;
	}

	.margin-sita {
		margin-bottom: 15px;
	}

	table.contact {
		margin-bottom: 5px;
	}

	table.contact th, table.contact td {
		font-size: 14px;
	}

	table.info {
		margin-bottom: 10px;
	}

	table.info th, table.info td, table.machine th, table.machine td {
		padding: 5px 8px;
	}

	.Tab2, .Tab3 {
		width: 100px;
	}
}
