@charset "utf-8";

.post_content #free-template h2 {
	margin-bottom: 3em;
}
.tab-container {
	border: solid 1px #ddd;
    background: #fff;
    overflow: hidden;
}
.tab-buttons {
    display: flex;
    overflow-x: auto;
	overflow-y: hidden;
	border-bottom: solid 1px #ddd;
}
.tab-button {
    flex: 1;
    min-width: 100px;
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}
.tab-button:hover {
    background: #096;
    color: #fff;
}
.tab-button.active {
    background: #096;
    color: #fff;
    margin-bottom: -2px;
}
.tab-content {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s;
}
.tab-content.active {
    display: block;
}
.tab-content .flex {
	display: flex;
	flex-wrap: wrap;
	border-top: solid 1px #ddd;
	border-left: solid 1px #ddd;
	border-right: solid 1px #ddd;
}
.tab-content .flex .haLF {
	width: 50%;
	box-sizing: border-box;
	border-bottom: solid 1px #ddd;
}
.tab-content .flex .haLF:nth-child(odd) {
	border-right: solid 1px #ddd;
}

.tab-content .flex .haLF .dlBox {
	display: flex;
	padding: 30px 20px 20px 20px;
}
.tab-content .flex .haLF .dlBox .thmb {
	width: 30%;
}
.tab-content .flex .haLF .dlBox dl {
	width: 70%;
	padding-left: 1em; 
}
@keyframes fadeIn {
	from {
	opacity: 0;
	transform: translateY(10px);
	}
	to {
	opacity: 1;
	transform: translateY(0);
	}
}
.tab-content .flex .haLF .dlBox dl dt {
	margin-bottom: 0.6em;
	text-decoration: underline;
}
.thmb {
  display: inline-block;
  margin: 10px;
}

.thmb a {
  display: block;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	border: solid 3px #fff;
	padding: 3px;
	position: relative;
}
.thmb a:hover {
	border-color: #096;

}
.thmb a .zoom {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 22px;
	height: 22px;
	background: #096;
	font-size: 18px;
	color: #fff;
	text-align: center;
	line-height: 22px;
	display: inline-block;
}
.thmb img {
  display: block;
  max-width: 200px;
  height: auto;
  cursor: pointer;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  animation: zoomIn 0.3s ease;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: #096;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 10000;
}

.lightbox-close:hover {
  background: #fff;
}
.post_content .dlBox dl dd p {
	font-size: 13px;
	line-height: 1.8;
	margin-bottom: 20px;
} 
.tab-content .flex .haLF .dlBox dl dd a {
	display: block;
	width: 86%;
	background: #e1efe0;
	border: solid 1px #096;
	font-size: 14px;
	text-align: center;
	padding: 0.5em 5px;
	position: relative;
}

.tab-content .flex .haLF .dlBox dl dd a + a {
	margin: 10px 0;
}
.tab-content .flex .haLF .dlBox dl dd a:last-child {
	margin-bottom: 0;
}
.tab-content .flex .haLF .dlBox dl dd a:hover {
	text-decoration: none;
	background: #096;
	color: #fff;
}
.tab-content .flex .haLF .dlBox dl dd a span {
	display: inline-block;
	vertical-align: middle;
	margin-right: 0.5em;
	font-size: 21px;
}
.tab-content .flex .haLF .dlBox dl dd a .icon {
	width: 30px;
	margin-left: 4px;
	vertical-align: middle;
	font-size: inherit;
	line-height: 1;
}

@media (max-width: 1221px) {

}
@media (max-width: 1000px) {

}
@media (max-width: 800px) {
	.container {
		padding: 10px;
	}
	.tab-button {
		padding: 12px 15px;
		font-size: 14px;
		min-width: 80px;
	}
	.tab-content {
		padding: 20px 15px;
	}
	.tab-content .flex {
		display: block;
	}
	.tab-content .flex .haLF {
		width: auto;
	}
	.tab-content .flex .haLF:nth-child(odd) {
		border-right: 0;
	}
	.tab-content .flex .haLF .dlBox {
		display: block;
		padding: 10px;
	}
	.tab-content .flex .haLF .dlBox .thmb {
		display: block;
		width: auto;
		margin: 0;
		height: 180px;
		overflow: hidden;
	}
	.tab-content .flex .haLF .dlBox dl {
		width: auto;
		padding: 0;
	}
	.tab-content .flex .haLF .dlBox dl dt {
		font-size: 15px;
		margin: 0.5em 0 0.3em;
		text-align: center;
	}
	.tab-content .flex .haLF .dlBox dl dd a {
		width: auto;
	}
	.post_content .dlBox dl dd p {
		margin-bottom: 10px;
	}


}
@media (max-width: 520px) {
	.post_content #free-template h2 {
		margin-bottom: inherit;
	}
	.tab-button {
		padding: 10px 12px;
		font-size: 13px;
		min-width: 70px;
	}
	.tab-content {
		padding: 15px 10px;
	}	
}