/*
Theme Name: edge&arc
*/

/* ============================================================ color ============================================================ */
:root {
    --bk: #222222;
    --wh: #FFFFFF;
	--dark-gray: #4F514F;
	--light-gray: #C2C2C2;
}

/* ============================================================ loading ============================================================ */
/* ローディング全体を中央配置 */
#site-loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: all;
}

/* ロゴ画像に animation 付与 */
#site-loader .loader-logo {
  width: 120px;
  opacity: 0;
  animation: smooth-loading 5s cubic-bezier(.25, .8, .25, 1) forwards;
}

@keyframes smooth-loading {
  0% {
    opacity: 0;
    transform: scale(1);
  }
	30% {
    opacity: 0;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

/* フェードアウトして消える */
#site-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

@media (max-width: 768px) {
	#site-loader .loader-logo {
		width: 60px;
	}
}

/* ============================================================ common ============================================================ */

html {
    font-size: 100%;
	scroll-behavior: smooth;
}
body {
    color: var(--bk);
    font-family: "Carlito", "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
	color: var(--bk);
	background: #DFDFDC;
	line-height: 1.6;
}

.wrap {
  	  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}
img {
    max-width: 100%;
    vertical-align: bottom;
}
li {
    list-style: none;
}
a {
    color: var(--bk);
    text-decoration: none;
	transition: 1s;
}
a:hover {
    opacity: 0.8;
	transition: 1s;
}
section {
	padding: 5rem 1rem;
}
.content-wrap {
    max-width: 1220px;
    margin: 0 auto;
}
h2 {
	font-size: 2.5em;
	text-align: center;
	margin-bottom: 2.5rem;
	letter-spacing: 0.05em;
	/*font-weight: 700;*/
}
h3 {
	font-size: 1.25em;
	/*font-weight: 700;*/
}
.btn {
	text-align: center;
}
.btn a {
	border: 1px solid var(--wh);
	padding: 0.75em 2.5em;
	color: var(--wh);
	display: inline-block;
}
.page-title-wrap {
	padding-top: 4rem;
}
.page-title {
	background: var(--dark-gray);
	color: var(--wh);
	padding: 80px 0;
}
.page-title h2 {
	margin-bottom: 0;
}
.pc {
	display: block;
}
.sp {
	display: none;
}
@media screen and (max-width:480px) {
	.pc {
		display: none;
	}
	.sp {
		display: block;
	}
	html {
		font-size: 14px;
	}
	h2 {
		margin-bottom: 1.725rem;
	}
	.page-title {
		padding: 40px 0;
	}
	section {
		padding: 3rem 1rem;
	}
}

/* ============================================================ header ============================================================ */
header {
	position: fixed;
	width: 100%;
	z-index: 99;
}
nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	max-width: 95%;
    margin: auto;
}
.menu {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2.5em;
}

/* hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 3px;
  background: #000;
  border-radius: 2px;
}
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .menu-menu-container {
    display: none;
    flex-direction: column;
  }
  .menu-menu-container.active {
    display: flex;
  }
	.hamburger {
	  display: flex;
	  flex-direction: column;
	  justify-content: space-between;
	  width: 20px;
	  height: 16px;
	  cursor: pointer;
	  background: none;
	  border: none;
	  padding: 0;
	  transition: transform 0.3s;
		margin-top: 4px;
	}
	.hamburger {
	  position: relative;
	  z-index: 1000;
	}
	.hamburger span {
	  display: block;
	  height: 2px;
	width: 100%;
	  background: #000;
	  border-radius: 2px;
	  transition: all 0.3s;
	}
	.hamburger.active span:nth-child(1) {
	  transform: rotate(45deg) translate(4px, 4px);
	}
	.hamburger.active span:nth-child(2) {
	  opacity: 0;
	}
	.hamburger.active span:nth-child(3) {
	  transform: rotate(-45deg) translate(6px, -6px);
	}
	.menu {
		flex-direction: column;
		background: var(--wh);
		padding-top: 70px;
		height: 100vh;
        justify-content: flex-start;
		gap: 2rem;
	}
	nav {
		align-items: flex-start;
		max-width: 100%;
		padding: 1rem 0;
	}
	.menu-menu-container.active {
		margin-top: -20px;
		width: 50%;
	}
	.hamburger.active {
		position: absolute;
    	right: 0;
	}
	.hamburger {
		margin-right: 1rem;
	}
	h1 {
		padding-left: 1em;
	}
	.menu {
		gap: 0;
	}
	.menu-item {
		width: 100%;
    	text-align: center;
	}
	.menu-item a {
		display: inline-block;
		width: 100%;
		padding: 1em 0;
	}
	.menu-item a:hover {
		background: var(--light-gray);
	}
	.page-title-wrap {
		padding-top: 60px;
	}
	h1 img {
		width: 80%;
	}
}
@media (max-width: 480px) {
	.page-title-wrap {
		padding-top: 50px;
	}	
}

/* ============================================================ mv ============================================================ */
.main-visual {
  /*position: relative;
  width: 100%;
  height: 798px;
  overflow: hidden;*/
	  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* ← ここが肝 */
  overflow: hidden;
}
.main-visual > img {
  position: absolute;
  inset: 0; /* top/right/bottom/left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
  z-index: 0;
}
.main-visual > img.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
/*@media (max-width: 768px) {
	.main-visual {
		height: 400px;
	}
}*/

/* ============================================================ page:top ============================================================ */
/* about */
.about {
	text-align: center;
}
.about-text {
	margin-bottom: 2.5rem;
	max-width: 880px;
	margin: auto;
}
.about .btn {
	margin-top: 2.5rem;
}
.about .btn a {
	color: var(--bk);
	border-color: var(--bk);
}
/* news */
.news {
	background: var(--dark-gray);
	color: var(--wh);
}
.news-list {
	max-width: 100vw;
}
.news-list li {
	padding: 1.5em 1em;
}
.news-list li a {
	color: var(--wh);
}
.post-date {
	margin-right: 2rem;
	font-weight: 700;
}
.more-link {
	font-size: 1.5rem;
	text-align: right;
	margin-top: 1em;
}
.more-link a {
  	display: inline-flex;
  	align-items: center;
  	gap: 1em;
	color: var(--wh);
}
.more-link a::after {
  	content: '';
  	display: block;
  	width: 80px;
  	height: 1px;
  	background: var(--wh);
  	transition: transform 0.3s ease;
	transition: 0.5s;
}
.more-link a:hover::after  {
	transform: translateX(8px);
	transition: 0.5s;
}
/* brand */
.brand-list {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.5em;
}
.brand-list img {
	max-width: 277px;
	margin: auto;
}
/* contact */
.contact {
	background: var(--dark-gray);
	color: var(--wh);
	text-align: center;
}
@media screen and (max-width:480px) {
	.news-list li {
		padding: 1em;
	}
	.more-link {
		font-size: 1.2rem;
	}
	.more-link a::after {
		width: 50px;
	}
}

/* ============================================================ page:news ============================================================ */
.news-title {
	margin-bottom: 2.5rem;
}
.news-title h3 {
	margin-top: .25rem;
}
.page-news-list .news-list li a {
    color: var(--bk);
}

/* ============================================================ page:about ============================================================ */
.page-about, .company-name {
	text-align: center;
}
.company-name {
	margin-top: 40px;
	font-family: serif;
	font-weight: bold;
}

/* ============================================================ page:brand list ============================================================ */
.page-brand-list li {
	display: flex;
	align-items: start;
	flex-wrap: wrap;
	gap: 3rem;
	margin: 0 auto 5rem;
	max-width: 880px;
}
.page-brand-list li:last-child {
	margin-bottom: 0;
}
.page-brand-list .brand-list-img img {
	max-width: 337px;
	width: 100%;
}
.page-brand-list li h3 {
	margin-bottom: 1rem;
}
.brand-more {
	margin-top: 1rem;
}
.brand-more a {
	color: #8E8E8E;
	font-size: 0.825rem;
}
.brand-list-desctiption {
	width: 495px;
}
@media screen and (max-width:480px) {
	.page-brand-list li {
		gap: 1rem;
	}
	.brand-list-desctiption {
		width: 100%;
	}
}

/* ============================================================ page:brand ============================================================ */
.page-nodal, .page-karmanline, .page-balloon {
	padding: 5rem 0;
}
.brand-page .page-title h2 {
	font-size: 1rem;
}
.page-nodal .content-wrap, .page-karmanline .content-wrap, .page-balloon .content-wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 2.5rem;
	max-width: none;
	text-align: center;
}
.page-karmanline .content-wrap {
	flex-direction: row-reverse;
}
.content-left {
	max-width: 720px;
}
.content-right {
	width: 100%;
	max-width: 572px;
	padding-right: 2.5rem;
	margin: auto;
}
.page-karmanline .content-right {
	padding-right: 0;
	padding-left: 2.5rem;
}
.content-right p {
	margin-top: 5rem;
}
.brand-link {
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin-top: 5rem;
}
.brand-link a {
	color: #8E8E8E;
}
.brand-img {
	display: flex;
	justify-content: center;
	gap: 2rem;
	overflow: hidden;
	width: 100%;
	margin: 5rem 0 0;
}
.brand-img img {
  flex-shrink: 0;
  height: 137px;
  object-fit: cover;
}
/* 卸先 */
.page-nodal-wholesaler {
	text-align: center;
}
.page-nodal-wholesaler .content div {
	margin-bottom: 2.5rem;
}
.wholesaler-title {
	font-weight: 700;
	margin-bottom: 4px;
}
@media screen and (max-width:480px) {
	.page-nodal .content-wrap, .page-karmanline .content-wrap, .page-balloon .content-wrap {
		flex-direction: column;
	}
	.content-right, .page-karmanline .content-right {
		max-width: 100%;
		padding: 0 1em;
	}
}

/* ============================================================ page:oem ============================================================ */
.page-oem {
	text-align: center;
}
.page-oem h3 {
	font-size: 1.75em;
	margin-bottom: 40px;
}
.page-oem-strength h3, .page-oem-item h3, .page-oem-flow h3 {
	font-size: 1.75em;
	margin-bottom: 40px;
	text-align: center;
}
.oem-strength img, .oem-item img {
	width: 100%;
	max-width: 432px;
}
.oem-strength, .oem-item, .oem-flow {
	display: flex;
	align-items: center;
	gap: 40px;
	justify-content: center;
}
.oem-strength ul, .oem-item ul {
	display: grid;
	gap: 1rem;
}
.oem-strength ul li {
  position: relative;
  padding-left: 36px;
  list-style: none;
}
.oem-strength ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 24px;
  background-color: #989898;
  border-radius: 50%;
  transform: translateY(-50%);
}
.note {
	font-size: 0.75em;
	margin-top: .5rem;
}
.oem-item ul li {
	position: relative;
	padding-left: 60px;
	list-style: none;
}
.oem-item ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 48px;
  height: 2px;
  background-color: #989898;
  transform: translateY(-50%);
}
.oem-flow h4 {
	display: flex;
	align-items: center;
	margin-bottom: -8px;
	font-size: 18px;
	font-weight: bold;
}
.oem-flow h4 span{
	font-size: 2em;
	padding-right: 1rem;
	color: #989898;
}
.oem-flow img {
	width: 100%;
	max-width: 333px;
}
.oem-flow ul {
	display: grid;
	gap: 4rem;
}
.oem-flow div {
	display: grid;
    gap: 8px;
}
.oem-contact {
	margin-bottom: 1.75rem;
}
@media (max-width: 780px) {
	.page-oem h3, .page-oem-strength h3, .page-oem-item h3, .page-oem-flow h3 {
		margin-bottom: 24px;
	}
	.oem-strength, .oem-item, .oem-flow {
		flex-direction: column;
		gap: 1rem;
		align-items: start;
	}
	.oem-item {
		flex-direction: column-reverse;
	}
	.oem-flow {
		margin-bottom: 64px;
	}
	.oem-flow ul {
		gap: 1rem;
	}
}

/* ============================================================ page:company ============================================================ */
.company-table {
  	border-collapse: collapse;
  	width: 100%;
	max-width: 440px;
	margin: auto;
}
.company-table td {
	border: none;
	padding: 0.75em 0;
	vertical-align: middle;
}
.company-table td:first-child {
	font-weight: 700;
	padding-right: 4em;
	white-space: nowrap;
}
@media (max-width: 780px) {
  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table td {
    display: block;
    width: 100%;
  }
  .company-table tr {
    margin-bottom: 1.5rem;
  }
	.company-table td {
		padding: 0;
	}
}

/* ============================================================ page:contact ============================================================ */
.page-contact .cf7-table {
	width: 100%;
}
.page-contact .content {
	max-width: 880px;
    margin: auto;
}
.page-contact .cf7-table tr {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
}
.page-contact .cf7-table td {
	width: 100%;
	max-width: 664px;
}
.page-contact th p {
	white-space: nowrap;
	width: 160px;
}
.page-contact th p, .page-contact textarea {
	font-weight: 400;
}
.page-contact .wpcf7-form-control-wrap {
	width: 100%;
}
.page-contact input, .page-contact textarea {
	background: var(--wh);
	border: 1px solid #929292;
	width: 100%;
	border-radius: 4px;
	padding: 4px 8px;
}
.required, .any {
	font-size: 12px;
	background: var(--dark-gray);
	padding: 4px 8px;
	color: var(--wh);
	border-radius: 4px;
	margin-right: 8px;
}
.any {
	background: var(--light-gray);
	color: var(--bk);
}
.page-contact .wpcf7-submit {
	background: #DFDFDC;
	border: 1px solid var(--dark-gray);
	max-width: 144px;
    margin: 1rem auto 0;
	text-align: center;
	padding: 0.5em 2.5em;
	color: var(--dark-gray);
	transition: .5s;
}
.page-contact .wpcf7-submit:hover {
	background: var(--dark-gray);
	color: var(--wh);
	transition: .5s;
}
.submit-area {
	text-align: center;
}
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
	border: none;
	font-size: 12px;
	margin: 0.5rem auto 0;
	padding: 0;
	text-align: center;
}
.wpcf7-not-valid-tip {
	font-size: 12px;
}
.wpcf7-spinner {
	display: none;
}
.wpcf7 form.sent .wpcf7-response-output {
	border: none;
}

.wpcf7-form-control.wpcf7-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 24px
  height: 24px;
  margin: 0 8px 0 0;
  vertical-align: middle;
  background: url('images/check-1.svg') no-repeat center center / contain;
  cursor: pointer;
  border: none;
}
.wpcf7-form-control.wpcf7-checkbox input[type="checkbox"]:checked {
  background: url('images/check-2.svg') no-repeat center center / contain;
}
.wpcf7-form-control.wpcf7-checkbox .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wpcf7-response-output {
	text-align: center !important;
}

@media screen and (max-width:480px) {
	.page-contact .cf7-table tr {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
}

/* ============================================================ page:privacy-policy ============================================================ */
.page-privacy-policy .content {
	max-width: 880px;
	margin: auto;
}
.page-privacy-policy .content div {
	margin-bottom: 2.5rem;
}

/* ============================================================ footer ============================================================ */
footer {
	padding-bottom: 2rem;
}
.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 95%;
	margin: auto;
	padding: 1rem;
}
.footer-content-right {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	font-size: 0.875rem;
}
footer p {
    padding: 1em 0;
	text-align: center;
	font-size: 13px;
}
@media (max-width: 768px) {
	.footer-logo img {
		width: 80px;
	}
}


/* animation */
/* フェードイン */
.fade-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 2s ease, transform 2s ease;
}
.fade-content.visible {
  opacity: 1;
  transform: translateY(0);
}
/* 順番ありフェードイン */
.image-wrapper {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.5s ease, transform 1.5s ease;
}
.image-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}
.image-wrapper:nth-child(1).visible { transition-delay: 0s; }
.image-wrapper:nth-child(2).visible { transition-delay: 0.2s; }
.image-wrapper:nth-child(3).visible { transition-delay: 0.4s; }
