@charset "UTF-8";

html {
  font-size: 100%;
  overflow-x: hidden;
}
body {
  display: block;
  min-height: 100vh;
  font-family: "Commissioner", "Zen Kaku Gothic New", sans-serif;
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  color: #374375;
}
a {
  color: #374375;
  text-decoration: none;
}
a:hover {
  opacity: 0.7;
}
img {
  max-width: 100%;
  vertical-align: bottom;
}
li {
  list-style: none;
}
.mobile {
  display: none;
}
.pc {
  display: block;
}

main {
  flex: none;
}

/* HEADER */
#header {
  display: flex;
  width: 100%;
  height: 80px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: #fff;
  background-color: #374375;
}
#header .logo {
  max-width: 150px;
  min-width: 120px;
}
#header .navi {
  overflow: hidden;
}
#header .navi .menu {
  display: flex;
  align-items: center;
}
#header .navi .menu li {
  font-size: 14px;
  font-weight: 600;
  margin-left: 30px;
  color: #fff;
}
#header .navi .menu li a {
  color: #fff;
}

/* CONTACT */
.contact {
  clip-path: polygon(0 25%, 100% 0, 100% 100%, 0 100%);
  padding-top: 100px;
  background-color: #ffef6c;
}
.contact .inner {
  text-align: center;
}
.contact .text {
  margin-bottom: 50px; /* btnとの間のスペース */
  font-size: 16px;
  line-height: 1.6;
}
.contact .btn {
  display: inline-block;
  padding: 20px 60px;
  font-size: 14px;
  border: solid 1px #374375;
}

/* FOOTER */
#footer {
  padding: 40px 0;
  color: #fff;
  background-color: #374375;
}
#footer .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px; /* copyrightとの間隔 */
}
#footer .logo {
  max-width: 130px;
}
#footer .menu {
  display: flex;
  align-items: center;
}
#footer .menu li {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  gap: 0.5em;
  color: #fff;
}
#footer .menu li + li::before {
  content: "/";
  margin-left: 8px;
  }
#footer .menu li a {
  color: #fff;
}
#footer .copyright {
  font-size: 12px;
  text-align: center;
}

/* WRAPPER */
.wrapper {
  max-width: 940px;
  padding: 0 20px;
  margin: 0 auto;
  display: flow-root;
}

/* SECTION */
section {
  padding-bottom: 50px;
}
.section-title {
  margin-bottom: 60px;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.05em; 
}

/* PAGE-HEADER */
.page-header {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
  min-height: 500px;
  text-align: center;
  background-size: cover;
  background-position: center center;
  background-color: #374375;
}
.page-header .page-title {
  display: block;
  padding-top: 40px;
  font-size: 80px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);
}

/* BOX */
.box {
  display: flex;
  flex-direction: row;
  align-items: flex-start; /* 中央に配置したいときはcenter */
  justify-content: space-between;
}
.box .img {
  width: 50%;
}
.box .img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.box .text {
  width: 50%;
  padding: 0 10px;
  margin-left: 10px; /* imgとの間のスペース */
}
.box .text .title {
  display: block;
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.15em;
}
.box .text .description {
  margin-bottom: 20px;
  text-align: justify;
  font-size: 18px;
  line-height: 1.8;
}

/* BUTTON */
.btn {
  display: block;
  max-width: 280px;
  padding: 10px 20px;
  text-align: center;
  border: solid 1px #374375;
  background-color: #fff;
  color: #374375;
  border-radius: 30px;
  font-size: 14px;
}
.btn:hover {
  background-color: #374375;
  color: #fff;
}
.btn:hover::before {
  background-color: #fff;
}
.btn:hover::after {
  background-color: #fff;
}

/* HIGHLIGHT */
.highlight {
  background: linear-gradient(transparent 50%, #ffef6c 50%);
  font-weight: 600;
}

/********************************/
/************ MOBILE ************/
/********************************/

@media screen and (max-width: 767px) {

  body {
    max-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }
  main {
    padding-top: 60px; /* header分のスペースをとる */
/*
    min-height: calc(100vh - 60px); /* 追加 */
*/
  }
  .mobile {
    display: block;
  }
  .pc {
    display: none;
  }

/* MOBILE HEADER */
  #header {
    height: 60px; /* mainのpadding-topを合わせる */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
  }
  #header .logo {
    max-width: 120px;
  }
  #header .navi {
    position: absolute; /* chatgpt changed from fixed; */
    width: 50%;
    height: auto;
    top: 0;
    right: -50%; /* widthの%と合わせる */
    z-index: 20;
    transition: all 0.6s;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
  }
  #header .navi.active {
    right: 0; /* メニューを表示(80%->0%) */
  }
  #header .navi .menu {
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 80px 0;
    overflow: auto;
  }
  #header .navi .menu li {
    padding: 10px 0; /* 項目の行間 */
    margin-left: 0;
}
  #header .hamburger {
    position: fixed;
    top: 5px;
    right: 10px;
    width: 50px;
    height: 50px;
    z-index: 30;
    cursor: pointer;
  }
  #header .hamburger span {
    position: absolute;
    width: 30px;
    height: 3px;
    left: 10px;
    display: inline-block;
    background-color: #fff;
    transition: all 0.4s;
  }
  #header .hamburger span:nth-of-type(1) {
    top: 16px; 
  }
  #header .hamburger span:nth-of-type(2) {
    top: 25px;
  }
  #header .hamburger span:nth-of-type(3) {
    top: 34px;
  }
  #header .hamburger.active span:nth-of-type(1) {
    top: 24px;
    transform: rotate(-45deg);
  }
  #header .hamburger.active span:nth-of-type(2) {
    display: none;
  }
  #header .hamburger.active span:nth-of-type(3) {
    top: 24px;
    transform: rotate(45deg);
  }

/* MOBILE CONTACT */
  .contact {
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%); 
  }

/* MOBILE FOOTER */
  #footer {
    padding-top: 40px;
    padding-bottom: 20px;
  }
  #footer .inner {
    flex-direction: column;
    margin-bottom: 40px;
  }
  #footer .logo {
    margin-bottom: 20px;
  }
#footer .menu li {
  font-size: 12px;
}

/* MOBILE SECTION */
  section {
    padding-bottom: 30px; /* section間デフォルト */
  }
  .section-title {
    margin-bottom: 40px;
  }

/* MOBILE BOX */
  .box {
    flex-direction: column;
    text-align: center;
  }
  .box .img {
    width: 100%;
    margin-bottom: 20px;
  }
  .box .img img {
    width: 100%;
  }
  .box .text {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .box .text .title {
    font-size: 28px;
    font-weight: 700;
  }
  .box .text .description {
    font-size: 16px;
  }
  .box .text .btn {
    margin: 0 auto;
  }

/* MOBILE PAGE-HEADER */
  .page-header {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
    min-height: 300px;
  }
  .page-header .page-title {
    font-size: 40px;
  }

} /* END OF MOBILE */

