:root {
	--white: #ffffff;
	--black: #222222;
	--blue: #0585cc;
	--green: #7bac66;
  --darkgreen: #1E2F23;
	--base-fs: 1rem;
	--font-jp: "Noto Serif JP", serif;
	--font-ttl: "EB Garamond", serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

html {
	font-size: var(--base-fs);
	color-scheme: dark light;
	scroll-behavior: smooth;
  font-family: var(--font-jp);

}

img,
picture,
svg,
video {
	display: block;
	max-width: 100%;
}

input,
textarea,
button,
select {
	font: inherit;
}

a {
	text-decoration: none;
  color: #222222;
}
button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;
}

body {
	font-weight: 400;
	color: #fff;

  &.is-checked {
    overflow: hidden;
  }
}

header {
	position: fixed;
	z-index: 2;
	width: 100%;
	top: 0;
	padding: 1.5rem 3.75rem;
	/* background: rgba(0, 0, 0, 0.3); */
	/* backdrop-filter: blur(0.5rem); */

	nav {
		display: flex;
		justify-content: space-between;

		.lists {
			display: flex;
			gap: 1.875rem;

			ul {
				display: flex;
				align-items: center;
				list-style: none;
				gap: 1.875rem;

				&:last-of-type {
					gap: 1rem;

					li {
						font-weight: 600;
						color: var(--black);
						padding: 0.9375em 1.5625em;
						border-radius: 2.25rem;
					}
				}
			}
		}
	}
}

.header__list-btn {
	a {
		color: black;
	}
}

.contacts {
	.image-container {
		aspect-ratio: 1 / 0.25;

		img {
			width: 100%;
			height: 100%;
			object-fit: cover;
		}
	}
  .contact-btn {
    color: #222222;
  }

	.contact-details-container {
		display: flex;
		justify-content: space-between;
		align-items: center;
		background: var(--white);
		margin-inline: 7.5rem;
		padding-block: 5rem;
        padding-inline: clamp(5rem, 7%, 14.375rem);
		translate: 0 -5rem;
		color: var(--black);

		.left {
			h1 {
				font-size: 5rem;
        font-family: var(--font-ttl);
				font-weight: 600;
				color: #525f56;
				margin-block-end: 1.6rem;
			}
		}

		.right {
			& > * {
				text-align: center;
			}
			h4 {
				font-size: 2rem;
				letter-spacing: 0.25rem;
				margin-block-end: 0.25rem;
			}
			.btn {
				border: 1px solid var(--black);
				margin-block-start: 1rem;
			}
		}
	}
}

footer {
	background: #1e2f23;
	padding: 6.25em 7.5em 2.25em;

	.main-container {
		display: flex;
		justify-content: space-between;
		align-items: start;
		margin-bottom: 4em;

		.left-container {
			display: flex;
			flex-direction: column;
			gap: 1.5rem;

			.desc-list {
				display: flex;
				flex-direction: column;
				gap: 1.125rem;

				.desc {
					display: flex;
					flex-direction: column;
					gap: 0.375rem;
				}
			}
		}

		.center-container {
			display: flex;
			justify-content: center;
			gap: 2rem;
		}
    .center-container span a {
      color: #ffff;
    }

		.right-container {
			display: flex;
			flex-direction: column;
			align-items: start;
			justify-content: flex-end;
			gap: 1em;

      a {
        color: #222222;
      }
      .contact-btn {
        color: #ffff;
      }
		}
	}

	.copy-right {
		display: flex;
		justify-content: space-between;
		gap: 2.5em;
	}
}

.has-icon {
	display: flex;
	align-items: center;
	gap: 0.75rem;

	&.mail::before {
		content: url(../images/icon-mail.png);
    height: 20px;
	}

	&.link::before {
		content: url(../images/icon-link.png);
    height: 20px;
	}

	&.map {
		gap: 0.3125rem;
    color: var(--blue);

		&::before {
			content: url(../images/icon-map.png);
		}
	}

	&.logo {
		&::before {
			content: "";
			display: inline-block;
			height: 2rem;
			width: 2rem;
			background-image: url(../images/logo.png);
			border-radius: 50%;
		}
	}

	&.hyphen {
		&::before {
			content: "";
			display: inline-block;
			height: 0.5px;
			width: 1.5rem;
			background-color: var(--white);
		}

		&.black::before {
			background-color: var(--black);
		}
	}

	&.tel {
		&::before {
			content: url(../images/icon-phone.png);
		}
	}
}

.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16.25rem;
	height: 3.475rem;
	border-radius: 2.25rem;
	font-weight: 500;
	border: 1px solid var(--white);
}

.arrow {
	position: relative;

	&::after {
		content: "";
		width: 0.8rem;
		height: 0.8rem;
		border-top: 2px solid var(--white);
		border-right: 2px solid var(--white);
		position: absolute;
		top: 0;
		bottom: 0;
		right: 7%;
		margin: auto;
		rotate: 45deg;
	}

	&.bg-white::after {
		border-color: var(--black);
	}
}

.bg-green {
	background: var(--green);
}

.bg-white {
	background: var(--white);
  border: 1px solid var(--green);
}

.border-green {
	border: 1px solid var(--green);
}

.has-arrow {
	position: relative;

	&::after {
		content: url(../images/icon-arrow.png);
		position: absolute;
		right: 8%;
	}

	&.dark {
		color: var(--black);
		border: none;

		&::after {
			content: url(../images/icon-arrow-dark.png);
		}
	}
}

/* SPヘッダー */
.sp-header__nav-list {
  list-style: none;
}
.sp-header__nav-item {
  position: relative;
  margin-bottom: 48px;

  span {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translate(-50%);
    font-size: 16px;
    line-height: 1.5;
    color: #525F56;
  }
}
.sp-heading {
  display: none!important;
  position: fixed;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 20px;
  padding-block: 25px;
}
.sp-logo {
  &.is-checked {
    visibility: hidden;
  }

  a {
    color: #ffff;
  }
}
.hamburger-menu {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 14px;
  cursor: pointer;

  &.is-checked {
    .hamburger-line {
      &:first-child {
        transform: rotate(20deg);
        top: 5px;
      }
      &:last-child {
        transform: rotate(-20deg);
        top: 5px;
      }
    }
  }
}
.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: #ffff;
  transition: all 0.3s;

  &:first-child {
    position: absolute;
    top: 0;
    left: 0;
    
  }
  &:last-child {
    position: absolute;
    top: 12px;
    left: 0;
  }
}



/* sp-header-content */
.sp-header-content {
  position: fixed;
  z-index: 5;
  padding-top: calc(82px + 116px);
  background-color: var(--darkgreen);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100vw;
  height: 100vh;
  transform: translateX(100%);
  transition: all 0.3s;

  &.is-checked {
    display: flex;
    transform: translateX(0);
  }

  li {
    margin-bottom: 16px;
    border-radius: 36px;
    padding: 16px 80px;
  }
  .sp-header__nav-list {
    a {
      color: #ffff;
      font-size: 20px;
    }
  }
  .sp-header__menu1 {
    a {
      font-size: 20px;
      color: #222222;
    }
  }
  .right h4 {
    font-size: 28px;
    margin-bottom: 5px;
  }
}


/* sp-header */
@media screen and (max-width: 1020px) {
  header {
    display: none;
  }
  .sp-heading {
    display: flex!important;
  }
}

/* sp-contact  */
@media screen and (max-width: 1020px) {
  .contact {
     padding-inline: 20px;
    }
    .contact-details-container{
      flex-direction: column;
      margin-inline: 20px!important;
      padding: 5rem 0.400rem!important;
    }

.contact-details-container .left {
  h5 {
    justify-content: center;
  }
    h1 {
      text-align: center;
      font-size: 48px!important;
    }
  }

.contact-details-container .right {
    h1 {
      font-size: 24px!important;
    }
    .tel {
      margin-block: 24px;
      font-size: 24px!important;
    }
  }
}

/* sp-footer */
@media screen and (max-width: 1020px) {
  footer {
    padding: 0 ;
    padding-inline: 20%;
  }
  .main-container {
    flex-direction: column;
    align-items: center!important;
    margin-bottom: 0!important;
  }
  .left-container,
  .center-container,
  .right-container {
    width: 100%;
  }
  .left-container {
    .logo {
     align-self: flex-start; 
    }
    order: 3;
    align-items: center;
  }
  .center-container {
    order: 1;
    /* flex-direction: column; */
    padding-block: 64px;
    border-bottom: 1px solid #ffff;
    gap: 16px;
  }
  .right-container {
    order: 2;
    align-items: center!important;
    padding-block: 64px;
    gap: 16px;

    .btn {
      width: 27rem;
      max-width: 100%;
    }
  }
  .copy-right {
    margin-top: 64px;
    padding-bottom: 40px;
    flex-direction: column-reverse;

    p:first-child{
      font-size: 16px;
    }
    p:last-child{
      font-size: 20px;
    }
  }
}
@media screen and (max-width:   767px) {
  .left-container {
    .logo {
      align-self: flex-start; 
     }
  }
  .copy-right {
    margin-top: 64px;
    padding-bottom: 40px;
    flex-direction: column-reverse;

    p:first-child{
      font-size: 10px;
    }
    p:last-child{
      font-size: 14px;
    }
  }
}

@media screen and (max-width: 769px) {
  h5.has-icon.hyphen.black::before {
    display: none;
  }
}

@media screen and (max-width:   520px) {
  footer {
    padding-inline: 20px;
  } 
}
