@charset "utf-8";
/* CSS Document */
/*全体------------------------*/
html {
	font-size: 100%;
}

body{
	background-image: url("../image/top-back.jpg");
	scroll-behavior: smooth;
}

a{
	text-decoration: none;
}

img{
	max-width:100%;
}
ul{
	text-decoration: none;
	list-style:none;
}

.flex{
	display:flex;
}

/* サイドバーレイアウト */

main {
	position: fixed;
    width: 7%;
    height: 100vh;
    top: 0;
    left: 0;
	background-color: #FFFFFF;
	background-image: url("../image/top-back.jpg");
	background-size: cover;
    box-shadow: 0px 0px 4px 0px #666;
	z-index: 100;
}
main img {
	width: 50px;
	margin-left: 5px;
	margin-top: 20px;
}

/*サイドバースマホ版*/
@media(max-width:640px){
	main, .sidebar {
		display: none;
	}
}

/*お問い合わせボタン*/
.contact-bt {
	position: relative;
	top: 0;
	margin-top: 3vh;
	margin-bottom: 5vh;
}
a.contact-btn {
	display: block;
	text-align: center;
	vertical-align: middle;
	text-decoration: none;
	width: 50vw;
	margin: auto;
	padding: 1vw 1vw;
	font-size: 2vw;
	font-weight: bold;
	color: #000000;
	background-color: #FFE700; 
	border-bottom: 2px solid #27acd9;
	border-radius: 100vh;
	box-shadow: 0 2px 7px rgba(0, 0, 0, .3);
	transition: 0.5s;
	z-index: 101;
}
a.contact-btn:hover {
	color: #fff;
	background: #27acd9;
	border-bottom: 2px solid #fff;
	transform: translateY(3px);
}

/*全体ｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰ*/

.unique_printing {
	display: block;
	position: relative;
	width: 93%;
	left: 7%;
}

@media(max-width:640px){
	.unique_printing {
		position: relative;
		width: 100%;
		left: 0px;
		overflow: auto;
	}
}

/*タイトルｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰ*/
.yunipuri_p h1 {
	font-size: 3vw;
	color: darkorange;
	margin-bottom: 2vh;
}

.yunipuri_p {
	text-align: center;
	font-size: 2.2vw;
	font-weight: 600;
	margin-top: 1.5rem;
}

@media(max-width:640px){
	h1.title{
		display: flex;
		justify-content: center;
		align-items: center;
		position: relative;
		width: 100%;
		height: 4vh;
		background-color: lightblue;
		font-size: 2.5vw;
		color: white;
		text-shadow: 1px 1px 1px #808080;
		text-align: center;
	}
}

/*商品一覧ｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰ*/

.machine_category {
	display: flex;
  	flex-wrap: wrap;
	gap: 2%;
}

.machinelist {
	display: grid;
	gap: 1.5vw; /* アイテム同士の間隔 */
	margin: 4vw;
	grid-template-columns: repeat(2, 1fr);
}

/*レーザー加工機*/
.machine {
	flex: 1 1 calc(50% - 2rem); /* 2列分の幅に調整 */
	box-sizing: border-box;
	background-color: white; /* 任意：背景色 */
	padding: 1.5vw;
	border:  solid 5px;
	border-radius: 8px;
	border-color: brown;
	box-shadow: 0px 0px 4px 0px #666;
}

.machine h2 {
	font-size: 2vw;
	color: #fff;
	margin-bottom: 1rem;
	text-align: center;
	border-radius: 999px;
	background-color: brown;
}

.machine-content {
	display: flex;
/*	flex-direction: column;*/
	gap: 1rem;
}

.machine-content img {
	position: relative;
	width: 40%;
	height: 40%;
}

.machine-content p {
	position: relative;
	font-size: 1.5vw;
	line-height: 3.5vh;
	text-align: justify;
}

.precautions {
	display: block;
	margin-top: 1vh;
	font-size: 1vw;
	line-height: 15px;
}

/*UVプリンタ*/
.uv_machine {
	flex: 1 1 calc(50% - 2rem); /* 2列分の幅に調整 */
	box-sizing: border-box;
	background-color: white; /* 任意：背景色 */
	padding: 1.5vw;
	border:  solid 5px #08B813;
	border-radius: 8px;
	box-shadow: 0px 0px 4px 0px #666;
}

.uv_machine h2 {
	font-size: 2vw;
	color: #fff;
	margin-bottom: 1rem;
	text-align: center;
	border-radius: 999px;
	background-color: #08B813;
}

.uv_machine-content {
	display: flex;
	width: 100%;
/*	flex-direction: column;*/
	gap: 1rem;
}

.uv_machine-content img {
	position: relative;
	width: 90%;
	height: auto;
}

figure {
/*  text-align: center;  キャプションを中央揃えにする場合 */
	margin-bottom: 1em; /* キャプションの下に余白を追加 */
}

figcaption {
	font-size: 1vw;; /* キャプションのフォントサイズを調整 */
	line-height: 15px;
	margin-top: 0.5em; /* キャプションの上に余白を追加 */
	justify-content: space-between; 
}

.uv_machine-content p {
	position: relative;
	font-size: 1.5vw;
	line-height: 3.5vh;
	text-align: justify;
}

.precautions {
	display: block;
	margin-top: 1vh;
	font-size: 1vw;
	line-height: 15px;
}

.explanation {
	width: 90%;
	margin: auto;
	margin-bottom: 1rem;
}

/* レスポンシブ対応：スマホでは1列表示 */
@media(max-width:640px){
 	.machinelist {
		display: block;
  	}

	.machine h2 {
		font-size: 1rem;
		color: #fff;
		margin-bottom: 1rem;
		text-align: center;
		border-radius: 999px;
		background-color: brown;
	}

	.machine-content {
		display: flex;
	/*	flex-direction: column;*/
		gap: 1rem;
	}

	.machine-content img {
		position: relative;
		width: 30%;
		height: 30%;
	}

	.machine-content p {
		position: relative;
		font-size: .8rem;;
		line-height: 1rem;
		text-align: justify;
	}

	.precautions {
		display: block;
		margin-top: 1vh;
		font-size: .6rem;
		line-height: .8rem;
	}

	.uv_machine {
		flex: 1 1 calc(50% - 2rem); 
		box-sizing: border-box;
		background-color: white; /* 任意：背景色 */
		padding: 1.5vw;
		border:  solid 5px #08B813;
		border-radius: 8px;
		box-shadow: 0px 0px 4px 0px #666;
		margin-top: 1.5rem;
	}

	.uv_machine h2 {
		font-size: 1rem;
		color: #fff;
		margin-bottom: 1rem;
		text-align: center;
		border-radius: 999px;
		background-color: #08B813;
	}

	.uv_machine-content {
		display: flex;
		align-items: flex-start; /* 上端を揃える */
		gap: 0.5rem;            /* ← 画像と説明文の間の隙間を最小限に */
	}

	.uv_machine-content figure {
		flex-shrink: 0;   /* figureが大きく広がらないように固定 */
		width: 40%;       /* ← 画像＋キャプションの幅を調整 */
		margin: 0;
	}

	.uv_machine-content img {
		width: 100%;
		height: auto;
	}

	.uv_machine-content figcaption {
		font-size: 0.6rem;
		line-height: .8rem;
		margin-top: 0.3rem;
		text-align: left;
	}

	.uv_machine-content p {
		flex: 1;          /* 残りの幅を使って自然に左寄せ */
		margin: 0;        /* ← デフォルトの余白を消す */
		font-size: .8rem;
		line-height: 1.2rem;
		text-align: justify;
	}
}

.explanation {
	width: 90%;
	margin: auto;
	margin-bottom: 1rem;
}
	

.yunipuri-text {
	width: 90%;
	margin: auto;
	font-size: 1.2rem;
}

.yunipuri-contact {
    display: flex;               /* 横並びにする */
    justify-content: center;     /* 横方向中央揃え */
    align-items: center;         /* 縦方向中央揃え */
    gap: 5rem;                   /* 画像間の隙間 */
    margin: 2rem auto 3rem auto; /* 上下余白と中央寄せ */
}

.led-light {
	width: 300px;
	height: auto;
	border-radius: 8px;
}

.naruko {
	width: 80px;
	height: auto;
}

.mokuzai {
	width: 300px;
	height: auto;
}

.yunipuri-contact figure {
    display: flex;
    flex-direction: column; /* キャプションは画像の下に */
    align-items: center;
    margin: 0;
    padding: 0;
}

.yunipuri-contact figure img {
    display: block;
}


.midashi {
	font-size: 1.6rem;
	font-weight: 600;
	color: #D95105;
}

@media(max-width:640px){
    .yunipuri-contact {
        flex-direction: column !important;  /* 縦並びに強制 */
        gap: 1.5rem;
        margin: 2rem auto;
        align-items: center;                 /* 画像を中央揃え */
    }

    .yunipuri-contact figure {
        width: 80%;                          /* 横幅を制限 */
        max-width: 300px;
        margin: 0 auto;
    }

    .yunipuri-contact figure img {
        width: 100%;                         /* figureの幅に合わせる */
        height: auto;
    }

    .yunipuri-contact figure figcaption {
        font-size: 0.9rem;
        text-align: center;
    }
}

/*お問い合わせフォームボタンスマホ版*/
@media(max-width:640px){
	.contact-bt {
		position: relative;
		top: 0;
		margin-top: 4rem;
		margin-bottom: 5vh;
	}
	a.contact-btn {
		display: block;
		text-align: center;
		vertical-align: middle;
		text-decoration: none;
		width: 75vw;
		margin: auto;
		padding: 2vw 2vw;
		font-size: 1rem;
		font-weight: bold;
		color: #000000;
		background-color: #FFE700; 
		border-bottom: 2px solid #27acd9;
		border-radius: 100vh;
		box-shadow: 0 2px 7px rgba(0, 0, 0, .3);
		transition: 0.5s;
		z-index: 101;
	}
	a.contact-btn:hover {
		color: #fff;
		background: #27acd9;
		border-bottom: 2px solid #fff;
		transform: translateY(3px);
	}
}