@charset "UTF-8";
/*
Theme Name: Code.
*/

/*-------------------------------------------
共通
-------------------------------------------*/

html {
  font-size: 100%;
}

:root {
  --font-color: #333;
  --bg-color: #fff;
  --second-bg-color: #555;
  --accent-color: #42b9b0;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--font-color);
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--font-color);
}

.wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 4% 60px;
}

.site-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--font-color);
  padding: 15px 0;
  line-height: 1;
}

.sec-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 60px;
  color: var(--font-color);
  position: relative;
}

.sec-title::before {
  content: "";
  width: 100px;
  height: 2px;
  background: var(--accent-color);
  display: inline-block;
  position: absolute;
  bottom: -5px;
  right: 50%;
  transform: translate(50%, 50%);
}

iframe {
  width: 100%;
}

/*-------------------------------------------
header
-------------------------------------------*/

#header {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
}

#header .site-title {
  margin-left: 30px;
}

#nav-menu ul {
  display: flex;
  align-items: center;
  width: 100%;
  z-index: 100;
}

#nav-menu ul li {
  margin-right: 20px;
}

#nav-menu ul li a {
  display: inline-block;
  transition: 0.3s;
}

#nav-menu ul li a:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

#ham-bar {
  display: none;
}

/*-------------------------------------------
main visual
-------------------------------------------*/

#main-visual {
  margin-bottom: 60px;
}

#main-visual img {
  width: 100%;
  height: 550px;
  object-fit: cover;
}

/*-------------------------------------------
news section
-------------------------------------------*/

#news ul li:last-of-type {
  border-bottom: 1px solid var(--second-bg-color);
}

#news ul li a {
  padding: 9px 6px;
  font-size: 1rem;
  font-weight: 600;
  display: block;
  border-top: 1px solid var(--second-bg-color);
  display: flex;
}

#news ul li .date {
  width: 20%;
}

#news ul li .title {
  width: 80%;
}

#news ul li a:hover {
  opacity: 0.7;
}

#news span {
  display: inline-block;
}

/*-------------------------------------------
service section
-------------------------------------------*/

.service-content ul {
  display: flex;
  justify-content: center;
}

.service-content ul li {
  padding: 0 20px;
  width: 36%;
}

.service-content ul li h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 500;
}

.service-content ul li .icon {
  width: 100%;
}

.service-content ul li .icon i {
  font-size: 100px;
}

.service-content ul li p {
  text-align: center;
  margin-bottom: 45px;
  font-size: 0.875rem;
  line-height: 1.5rem;
}

/*-------------------------------------------
contact section
-------------------------------------------*/

#contact {
  text-align: center;
  background-color: var(--second-bg-color);
}

#contact .sec-title {
  color: #fff;
}

.info {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  background-color: var(--bg-color);
}

.info-map {
  width: 50%;
}

.info-text {
  width: 46%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.info-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 15px;
}

.info-text dl {
  display: flex;
  flex-wrap: wrap;
  border-top: solid 1px var(--second-bg-color);
  margin-bottom: 20px;
}

.info-text dt {
  width: 30%;
  border-bottom: solid 1px var(--second-bg-color);
  padding: 15px;
  text-align: start;
}

.info-text dd {
  width: 70%;
  border-bottom: solid 1px var(--second-bg-color);
  padding: 15px;
  text-align: start;
}

#contact .button {
  font-size: 1.375rem;
  background: var(--accent-color);
  color: #fff;
  padding: 12px 24px;
  border-radius: 5px;
  display: inline-block;
  margin-top: 30px;
  transition: 0.3s;
}

#contact .button:hover {
  transform: scale(1.05);
}

#contact p {
  font-size: 1.2rem;
  margin-top: 20px;
  color: var(--bg-color);
}

/*-------------------------------------------
footer
-------------------------------------------*/

#footer {
  background: var(--accent-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  height: 120px;
}

#footer .site-title {
  color: var(--bg-color);
  font-size: 2rem;
}

.footer-nav ul {
  display: flex;
}

.footer-nav ul li a {
  color: var(--bg-color);
  margin-right: 30px;
}

#footer p {
  font-size: 0.75rem;
  text-align: center;
  padding: 10px 0;
  color: var(--bg-color);
}

/*-------------------------------------------
固定ページ
-------------------------------------------*/

#page-visual {
  position: relative;
  margin-bottom: 30px;
  width: 100%;
}

#page-visual img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

#page-visual h2 {
  position: absolute;
  top: 50px;
  right: 50%;
  transform: translate(50%, 50%);
  font-size: 50px;
  color: var(--bg-color);
  text-shadow: 4px 4px var(--font-color);
}

/*-------------------------------------------
contact form
-------------------------------------------*/
input,
textarea {
  width: 100%;
  border: solid 1px var(--second-bg-color);
  padding: 8px;
  margin-bottom: 10px;
}
input[type="submit"] {
  background-color: var(--font-color);
  color: var(--bg-color);
  padding: 15px 0;
}
input[type="submit"]:hover {
  opacity: 0.7;
}

/*-------------------------------------------
news page
-------------------------------------------*/

.readmore {
  text-align: center;
  margin-top: 20px;
  text-decoration: underline;
}

.readmore:hover {
  opacity: 0.7;
}

#news-article {
  padding: 30px 0;
  border-top: 1px solid var(--second-bg-color);
  text-align: center;
}

#news-article:last-of-type {
  border-bottom: 1px solid var(--second-bg-color);
}

.post-link {
  width: 300px;
  display: flex;
  justify-content: space-between;
  margin: 50px auto 0 auto;
}

.pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination li {
  padding: 0 10px;
}
.pagination ul a:hover {
  opacity: 0.7;
}

/*-------------------------------------------
sp
-------------------------------------------*/

@media (max-width: 767px) {
  .wrapper {
    padding: 30px 4% 30px;
  }

  /*-------------------------------------------
sp header
-------------------------------------------*/

  #header {
    height: auto;
    flex-direction: column;
    width: 100%;
    position: relative;
  }

  #nav-menu {
    position: absolute;
    width: 100%;
  }

  #nav-menu ul {
    flex-direction: column;
    background: var(--bg-color);
    height: auto;
    position: absolute;
    top: -500px;
    align-items: center;
    justify-content: space-around;
    padding: 50px 0;
    transition: 0.5s ease;
    opacity: 0;
  }

  #nav-menu.on ul {
    top: 30px;
    opacity: 1;
  }

  #nav-menu ul li {
    padding: 15px 0;
    margin-right: 0;
  }

  #ham-bar {
    position: absolute;
    top: 7px;
    right: 20px;
    width: 44px;
    height: 44px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    cursor: pointer;
  }
  #ham-bar span {
    display: block;
    background-color: var(--second-bg-color);
    width: 36px;
    height: 2px;
    transition: all 0.5s ease;
  }

  #ham-bar.on span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  #ham-bar.on span:nth-child(2) {
    opacity: 0;
  }

  #ham-bar.on span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
  }
  /*-------------------------------------------
sp main visual
-------------------------------------------*/

  #main-visual {
    margin-bottom: 50px;
  }

  #main-visual img {
    height: 420px;
  }

  /*-------------------------------------------
sp sec service
-------------------------------------------*/

  .service-content ul {
    flex-direction: column;
  }

  .service-content ul li {
    width: 100%;
  }

  /*-------------------------------------------
sp sec news
-------------------------------------------*/

  #news ul li .date {
    width: 30%;
  }

  #news ul li .title {
    width: 70%;
  }

  /*-------------------------------------------
sp sec contact
-------------------------------------------*/

  .info {
    flex-direction: column;
  }

  .info-text {
    width: 100%;
  }

  .info-map {
    width: 100%;
    margin-bottom: 20px;
  }

  /*-------------------------------------------
sp sec footer
-------------------------------------------*/

  .footer-content {
    flex-direction: column-reverse;
    height: auto;
  }

  .footer-nav {
    background: var(--bg-color);
    width: 100%;
  }

  .footer-nav ul {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .footer-nav ul li {
    border-bottom: 1px solid var(--accent-color);
  }

  .footer-nav ul li:first-child {
    border-top: 1px solid var(--accent-color);
  }

  .footer-nav ul li a {
    margin-right: 0;
    padding: 15px 0;
    color: var(--accent-color);
    display: block;
  }

  #footer .site-title {
    font-size: 1.2rem;
  }

  .post-link {
    width: 200px;
  }
}
