/* 横幅 640px 未満 */
.factory .content_area {
	max-width: 1180px;
	margin: 0 auto;
    padding: 0;
	overflow: auto;
	display: block;
}

.factory .content_area .company_nav {
	display: none;
}

/* 横幅 640px 以上 */
@media screen and (min-width: 750px) {
	body {
		background: var(--background);
	}
	
	.factory .content_area {
		margin: 12px;
        overflow: clip;
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
	}
	
	.factory .content_area main {
		
		width: 66%;
		background: var(--back);
	}

	.factory .content_area .company_nav {
		float: right;
		-webkit-position: sticky;
		position: sticky;
		top: 100px;
		width: 32%;
		background-color: var(--back);
		display: block;
		overflow-y: auto;
        height: 85vh;
		max-height: auto;
	}
}

@media(min-width:1200px){
	.factory .content_area {
		margin: 12px auto;
	}
}

/** ボタン **/
.btn-1 {
	color: var(--main);
	width: 100%;
	display: block;
	padding: 7px;
	margin: 5px auto;
	background-color: var(--back);
	display: flex;
    align-items: center;
    justify-content: center;
	text-align: center;
	border-radius: 5px;
	font-size: 20px;
	font-weight: bold;
}

.btn-1::before {
	content: "";
	display: block;
	width: 35px;
	height: 27px;
	background-repeat: no-repeat;
	background-size: contain;
}

.btn-1.tel {
	background-color: #2B4A78;
	color: white;
}

.btn-1.tel::before {
	background-image: url(tel.png);
	
}

.btn-1.contact {
	background-color: #F8B62D;
}

.btn-1.contact::before {
	background-image: url(contact.png);
}

.btn-1.hp {
	background-color: #F8B62D;
}

.btn-1.hp::before {
	background-image: url(hp.png);
	margin-right: 10px;
}

  
  /*　ハンバーガーボタン　*/
  .hamburger {
    display : block;
    position: relative;
    z-index : 5;
    width : 50px;
    height: 50px;
    background-color: var(--back);
    border-radius: 50%;
    cursor: pointer;
    text-align: center;
  }
  
  .hamburger span {
    display : block;
    position: absolute;
    width   : 30px;
    height  : 2px ;
    left    : 10px;
    background : var(--main);
    -webkit-transition: 0.3s ease-in-out;
    -moz-transition   : 0.3s ease-in-out;
    transition        : 0.3s ease-in-out;
  }
  
  .hamburger span:nth-child(1) {
    top: 14px;
  }
  .hamburger span:nth-child(2) {
    top: 24px;
  }
  .hamburger span:nth-child(3) {
    top: 34px;
  }
  
  .active .hamburger span:nth-child(1) {
    background : var(--main);
    top : 23px;
    left: 10px;
    -webkit-transform: rotate(-45deg);
    -moz-transform   : rotate(-45deg);
    transform        : rotate(-45deg);
  }
  
.active .hamburger span:nth-child(2),
.active .hamburger span:nth-child(3) {
    background : var(--main);
    top: 23px;
    -webkit-transform: rotate(45deg);
    -moz-transform   : rotate(45deg);
    transform        : rotate(45deg);
}

@media (min-width: 640px) {
	header .hamburger {
		display: none;
	}

	header nav {
		position: relative;
        opacity: 1;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
	}
}
/*==============
 * ナビ
 */
.factory .company_nav .nav-inner {
	padding: 0 16px;
}

.factory .company_nav .nav-inner p {
	font-size: clamp(1em, 2.5vw, 1.25em);
	font-weight: bold;
}

.factory .company_nav ul {
	padding: 0 16px;
}

@supports (display: flex) {
	.factory .company_nav {
		display: flex;
		flex-flow: row wrap;
		justify-content: space-between;
	}
	
	.factory .company_nav ul {
		flex-basis: 100%;
		display: flex;
		flex-flow: row nowrap;
		justify-content: space-around;
	}
}
	
@media all and (min-width: 640px) {
	.factory .company_nav .nav-inner {
		margin: 0 auto;
	}
	
	.factory .company_nav .company_logo {
		display: block;
		height: auto;
		padding: 8px;
		background-color: var(--back);
		max-height: 72px;
        object-fit: contain;
	}
	
	.factory .company_nav ul {
		text-align: center;
		display: flex;
		flex-direction: column;
	}
	
	.factory .company_nav ul li {
		display: block;
		font-size: medium;
	}	
}

/* 見出し */
h1 {
	position: absolute;
	bottom: 5%;
	left: 16px;
	right: 0;
	font-size: clamp(1.75em,5vw,2.5em);
	color: var(--back);
	text-shadow: var(--main) 0px 0px 3px;
	margin: auto;
}

.content h2 {
	border-left: 7px solid #4DC1B7;
	border-bottom: 2px dashed #B4B4B4;
	padding: 0.25em 0 0.3em 0.5em;
	margin: 2em auto .8em;
	line-height: 1.3;
	max-width: 700px;
}

h3 {
	margin: 1em auto 0;
	max-width: 700px;
	counter-increment: toc-counter;
}

h3::before {
	content: counter(toc-counter) ". ";
    font-weight: bold;
}

h3 mark {
	background: linear-gradient(transparent 60%, #f5deed 60%);
}

/*****fv*****/
.fv {
	margin: 0;
	max-width: 1200px;
}

.inner {
	position: relative;
}

.fv .inner p {
	font-weight: bold;
	margin: 0;
	background-color: var(--back);
	padding: 5px 16px;
	line-height: 1.5;
	font-size: 1.25em;
}

.fv > p {
	margin: 2em auto;
	padding: 0 16px;
}

@media (min-width: 750px) {
	.fv .catch-copy {
		display: none;
	}
}

@media (min-width: 1042px) {
	.fv > p,details {
		padding: 0;
	}
}

/***目次***/
.factory .content_area .toc {
    max-width: 640px;
    margin: 1em;
	padding: 20px 20px 4px;
    background-color: #f7f7f7;
    counter-reset: toc-counter;
    background-color: #e8e4e4;
}

.factory .content_area .toc summary {
    border-bottom: 1px solid #e2e2e2;
}

.factory .content_area .toc ul {
    counter-reset: toc-counter;
}

.factory .content_area .toc ul li {
    color: var(--main);
	padding: 8px 0;
    border-bottom: dashed 1.5px #afa6a6;
    counter-increment: toc-counter;
}

.factory .content_area .toc ul li::before {
    content: counter(toc-counter) ". ";
    font-weight: bold;
}

.factory .content_area .toc ul li a {
    color: var(--main);
}

@media (min-width: 1042px) {
	.factory .content_area .toc {
		margin: 1em auto;
	}
}

/* サイドナビ用*/
.factory .company_nav .toc {
    padding: 16px 8px 4px;
    margin: 2em 8px;
}

.factory .content_area .toc.cloned-summary {
	background-color: #e8e4e4;
	padding: 10px;
}

.factory .content_area .toc summary {
    border-bottom: 1px solid #e2e2e2;
}

.factory .content_area .toc ul {
    counter-reset: toc-counter;
}

.factory .content_area .toc ul li {
	margin: 0;
  text-align: left;
}

.factory .content_area .toc ul li a {
    color: var(--main);
}

/*
対応範囲と注意事項
*/
#list-box {
	border-radius: 5px;
	box-shadow: 0 0 10px 1px #d7d7d7;
	max-width: 640px;
	margin: 2em 1em;
	padding: 5px 10px 20px;
	border-radius: 15px;
}

.attention-tit {
	background: linear-gradient(transparent 65%,#ffb6b6 50%);
 	padding: 0 6px;
	font-weight: bold;
	margin: 0.5em auto;
	text-align: center;
	width: fit-content;
	font-size: 1.5em;
}

.attention-list {
	display: block;
  margin: 0;
  padding: 0 .5em;
  width: initial;
}

.attention-list li {
	border-bottom: 1px dashed #b9b9b9;
    padding: 0.5em 0;
    max-width: 640px;
	list-style: disc;
    margin-left: 1.25em;
}

@media (min-width: 1042px) {
	#list-box {
		margin: 4em auto;
	}
}

/* 一般セクション */
.content {
	margin: 2em auto;
	max-width: 1200px;
	padding: 0 16px;
}

.content:last-child {
	margin-bottom: 30px;
}

/** about　**/
.about-wr img {
	max-width: 480px;
	margin: 0 auto;
}

@media (min-width: 700px) {
	.about-wr {
		display: flex;
		align-items: flex-start;
	}
	
	.about-wr img {
		width: 45%;
	}
}

/* ギャラリー */
#gallery {
	margin: 20px 10px;
	width: 100%;
    height: auto;
    min-height: 320px;
    margin: 2em auto 4em;
    overflow: hidden;
}

.gallery_window {
	aspect-ratio: 3 / 2;
    background: var(--back);
    position: relative;
    max-width: 640px;
    max-height: 480px;
    margin: 0 auto;
}

.gallery_window .slides {
	width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.gallery_window .slides li {
	position: absolute;
    margin: 0;
    padding: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    list-style-type: none;
    z-index: 0;
}

.gallery_window .slides li.show {
	z-index: 1;
}

#gallery ul.thumbnails {
    margin: 1em auto 0;
    max-width: 640px;
    display: block;
    padding: 0;
}

#gallery ul.thumbnails li {
    display: inline-block;
    box-sizing: border-box;
    border: transparent 2px solid;
    width: 84px;
    height: 84px;
}

#gallery ul.thumbnails li img {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    cursor: pointer;
}

/** #case**/
#case {
	counter-reset: toc-counter;
}

.images figure {
	margin: 0;
}

.images figure figcaption {
	font-size: 14px;
	text-align: center;
}

.images img {
	display: block;
	max-width: 480px;
	margin: 1em auto 0;
}



#case h3 {
	display: inline;
	margin: 1em 0 0 0;
	counter-increment: toc-counter;
	width: fit-content;
	background: linear-gradient(transparent 60%, #f5deed 60%);
}

@media screen and (min-width: 500px) {
	.images {
		display: grid;
		grid-template-areas: "first second";
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr;
		gap: 0 8px;
		margin: 12px auto;
        max-width: 640px;
	}

	@media (min-width: 1100px) {
		#case h3 {
			margin: 1em 0 0 1em;
		}
	}
}

/** アルカディアの加工事例　**/
.lightbox {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	max-width: 700px;
	margin: 0 auto;
}

.lightbox li {
	width: min(100%,342px);
	background-color: var(--background);
	padding: 10px;
}

.lightbox li .item-tab li {
	background-color: var(--main);
	color: var(--back);
	width: fit-content;
    margin: 4px 4px 0 auto;
	padding: 4px;
}

.lightbox li h3 {
	font-weight: normal;
}

.lightbox li .item-info {
	text-align: right;
}

.lightbox li img {
	width: calc(100% + 20px);
	margin-left: -10px;
}

/*** 設備紹介 ****/
#equipment h3 {
	background: linear-gradient(transparent 60%, #ebf175 60%);
	width: fit-content;
	margin: 0;
}
#equipment h3::before {
	display: none;
}

#equipment h3 mark {
	background: linear-gradient(transparent 60%, #ebf175 60%);
}

.setsubi-list {
	width: 100%;
	max-width: 640px;
	margin: 0.5em auto 2em;
	border-collapse: collapse;
}

.setsubi-list th,.setsubi-list td {
    border-bottom: solid 1px var(--background);
}

.setsubi-list th {
    text-align: left;
    font-weight: bold;
	padding: 0.5em 0;
	width: 90%;
}

.setsubi-list td {
    text-align: right;
    font-weight: bold;
	width: 10%;
	padding: 0.5em 0;
}

@media(min-width: 1100px) {
	#equipment h3 {
		margin: 1em 0 0 1em;
	}
}

/*** 会社情報　***/
.info-list {
	margin: 0 auto;
    max-width: 640px;
}

.info-list > div {
    padding: 16px 0;
    border-bottom: solid 1px var(--background);
}

.info-list li {
	list-style: disc;
	margin-left: 1.25em;
}

.info-list > div dt {
	font-weight: bold;
}

.info-list dd li {
	margin-left: 3em;
}

.info-list dd a {
	color: var(--main);
	text-decoration: underline;
}

.map {
	margin: 0 auto;
	max-width: 640px;
}

.map iframe {
	aspect-ratio: 4 / 3;
    width: 100%;
}

@media screen and (min-width: 600px) {
	.info-list > div {
		display: flex;
        flex-wrap: wrap;
    }
	
	.info-list > div dt {
		width: 30%;
    }
	
	.info-list > div dd {
		margin: 0;
        width: 70%;
    }
}