/* 共通部分
------------------------------*/

html {
  scroll-behavior: smooth;
}

body {
  background-color: #f0ebeb;
  color: #006a6c;
  font-family: "Mamelon", sans-serif;
  font-size: 1rem;
  line-height: 1;
  margin: 0;
  background-image: url(../images/petapeta_s.png);
  background-size: contain;
  background-position: center;
  max-width: 1920px;
}

img {
  max-width: 100%;
  width: 100%;
  height: auto;
}

h1,
h2 {
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.5rem;
}

ul,
dl,
dd {
  margin: 0;
  padding-left: 0;
}

figure {
  margin: 0;
}

a {
  text-decoration: none;
}

a,
input,
textarea {
  transition: all 0.15s ease-in-out;
}

.font-english {
  font-family: "Ubuntu Mono", sans-serif;
}

input[type="submit"]:hover {
  cursor: pointer;
}

iframe {
  width: 100%;
}

/* ヘッダー */
.header {
  background-color: rgba(0, 106, 108, .3);
  /* 背景だけを半透明に透過 */
  position: sticky;
  /* 追従ヘッダー */
  top: 0;
  z-index: 10;
  height: 60px;
}

.header-logo {
  max-width: 1920px;
  height: 100%;
  position: relative;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.header-logo img {
  margin: .5rem 1rem 0;
  width: auto;
  height: 50px;
}

.header-logo p {
  font-size: 1.7rem;
  font-weight: 550;
  letter-spacing: -.1rem;
  flex-direction: column;
  align-content: center;
  padding: 0 1rem;
}

#header-menu-list ul li {
  margin-top: 12rem;
  text-align: center;
  font-size: 1.5rem;
}

#header-menu-list li:not(:first-child) {
  margin-top: 3rem;
}

/* ハンバーガーメニューボタンここから */
/* ボタン外側 */
.toggle-button {
  position: relative;
  background-color: rgba(255, 255, 255, 0);
  /* 背景だけを半透明に透過 */
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 5px;
  margin-right: 1em;
}

/* ボタン内側 */
.toggle-button span {
  display: inline-block;
  transition: all .4s;
  /* アニメーションの設定 */
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 5px;
  background-color: #006a6c;
  width: 65%;
}

.toggle-button span:nth-last-of-type(1) {
  top: 13px;
}

.toggle-button span:nth-last-of-type(2) {
  top: 21px;
}

.toggle-button span:nth-last-of-type(3) {
  top: 29px;
}

.toggle-button span:nth-last-of-type(3)::after {
  /* 3つ目の要素のafterにMenu表示を指定 */
  content: "Menu";
  position: absolute;
  top: 5px;
  color: #006a6c;
  font-size: 1rem;
  text-transform: uppercase;
}

/* activeクラスが付与されると線が回転して×になり、Menu⇒Closeに変更する */
.toggle-button.active span:nth-last-of-type(1) {
  top: 14px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 40%;
}

.toggle-button.active span:nth-last-of-type(2) {
  opacity: 0;
  /* 真ん中の線は透過 */
}

.toggle-button.active span:nth-last-of-type(3) {
  top: 26px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 40%;
}

.toggle-button.active span:nth-last-of-type(3)::after {
  /* 3つ目の要素のafterにClose表示を指定 */
  content: "Close";
  transform: translateY(0) rotate(-45deg);
  top: 5px;
  left: 4px;
}

/* ナビゲーションの縦スクロール*/
#header-menu.panelactive #header-menu-list {
  position: sticky;
  z-index: 999;
  width: 100%;
  height: 100vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* ナビゲーション */
#header-menu ul {
  position: absolute;
  z-index: 999;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#header-menu ul li:hover,
#header-menu ul li:focus {
  background-color: rgba(224, 122, 4, .4);
}

#header-menu {
  position: fixed;
  z-index: 999;
  top: -120%;
  left: 0;
  width: 100%;
  height: 50vh;
  background-color: rgba(0, 106, 108, .5);
  color: #ffffff;
  transition: all .6s;
  margin-top: 60px;
  /* ヘッダー部分60pxを出す */
}

/* アクティブクラスがついたら位置を０に */
#header-menu.panelactive {
  top: 0;
}

/* ハンバーガーメニューボタンここまで */

/* index */
.main-home {
  background-repeat: no-repeat;
  background-position: center center;
  max-width: 1920px;
  width: 100%;
  padding: 0 4rem 4rem;
  margin: 0 auto;
  color: #006a6c;
  font-weight: 700;
  display: block;
  text-align: center;
}

.main-top-text p:nth-child(1) {
  font-size: 1.5rem;
}

.main-top-text h1 {
  padding-bottom: 3rem;
}

.main-top-text p {
  font-size: 1.7rem;
  line-height: 1.5;
}

.main-top-text p:nth-child(3) {
  font-size: 1.3rem;
}

/* about */
.main-about {
  font-size: 2rem;
  padding: 1.5rem 0 3rem;
  text-align: center;
}

.main-about-slider {
  text-align: center;
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
  display: block;
}

.main-about-title {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  padding: 1rem 3rem;
  text-align: left;
}

.main-about-title h2 {
  padding-top: 1rem;
  font-size: 1.8rem;

}

.main-about-title p {
  font-size: 1rem;
  line-height: 1.6;
  padding-left: 3rem;
}

/* works */
.main-works h1,
.main-contact h1 {
  text-align: center;
}

.main-works-title {
  font-size: 2rem;
  padding: 1.5rem 0;
  max-width: 1920px;
  width: 100%;
}

.main-works-item {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  padding: 1rem 1.5rem 3rem;
}

.main-works-item h2,
.main-works-item p {
  padding-top: 1rem;
  text-align: left;
}

.main-works-item h2 {
  font-size: 1.8rem;
}

.main-works-item p {
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -.05rem;
  padding-left: 3.2rem;
}

.design p br:nth-of-type(1),
.design p br:nth-of-type(3) {
  display: none;
}

/* contact */
.contact {
  padding-top: 1.5rem;
  color: #006a6c;
}

.contact h1 {
  text-align: center;
}

.contact-img img {
  width: 35%;
}

.main-contact {
  text-align: center;
}

.main-contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-decoration: solid underline 1.5px;
  text-underline-offset: 8px;
}

.form {
  padding: 1rem 2rem 1.5rem;
}

.contact-text p {
  font-size: 1rem;
  line-height: 1.6;
  padding-bottom: 1rem;
  text-align: center;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 4px;
}

.main-contact dl {
  text-align: left;
  margin-top: 0
}

.main-contact p:nth-child(3) {
  text-align: center;
  padding-top: 1.2rem;
}

.input-text,
.message {
  width: 100%;
  padding: 0 .625rem;
  border: 1px solid #006a6c;
  border-radius: 4px;
  box-sizing: border-box;
}

.input-text {
  line-height: 2;
}

.message {
  padding-top: .5rem;
  line-height: 1.5;
}

.contact-form p {
  font-size: .9375rem;
}

.contact-form p span {
  font-weight: 700;
}

.contact-form dt .required::after {
  font-size: .8rem;
  margin-left: .625rem;
}

.contact-form dd {
  padding: .5rem 0 1rem;
}

.form-area-button {
  text-align: center;
  padding-top: 2rem;
}

.btn {
  background-color: #006a6c;
  color: aliceblue;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 6px 6px 0 rgba(0, 106, 108, .3);
  line-height: 1.5;
  padding: 1rem 1.5rem;
}

.btn:hover,
.btn:focus {
  color: #db8e35;
}

.sns {
  padding: 3rem 1rem;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 1rem;
}

.sns-item {
  font-size: 5rem;
  text-align: center;
}

.sns-item:nth-of-type(2) {
  padding: 0;
}

.sns-item:nth-of-type(3) {
  padding-top: 0;
}

.sns-item h2 {
  font-size: 2rem;
}

.sns-item p {
  font-size: 1.1rem;
}

/* footer */
.footer {
  text-align: center;
  background-color: rgba(0, 106, 108, .3);
  clip-path: shape(from 0 25px,
      curve to 50% 25px with 25% -25px,
      curve to 100% 25px with 75% -25px,
      /* 真ん中で凹む(頂点は0px,谷は50px) */
      line to 100% 100%,
      line to 0 100%,
      close);
}

.footer-nav {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.8;
  padding-top: 2.5rem;
}

.footer-nav-menu li a:hover,
.footer-nav-menu li a:focus {
  background-color: rgba(224, 122, 4, .4);
}

.footer-logo img {
  margin: 2rem auto -1rem;
  width: 150px;
}

.footer .copyright {
  padding-bottom: .5rem;
  line-height: 2.0;
  letter-spacing: -.03rem;
}