@charset "utf-8";

body {
  font-family: "Noto Sans JP",sans-serif;
  margin: 0 auto;
  background-color: #F2EEE7;
  color: #483F3F;
}

.header {
    align-items: center;
    padding: 40px 0; /* ← 左右の余白を消す */
    width: 100%;
    margin: 0 auto;
    position: fixed;
} 

.header2 {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    padding: 0 4%;
    align-items: center;
}

.logo {
    width: 155px;
    margin: 20px;
}


.nav1 {
    display: flex;
    align-content: center;
}

.nav2 {
    display: flex;
    align-items: center;
    margin: 20px;
    margin-top: 35px;
    padding-right: 30px;
}

.contact {
    display: flex;
    margin-top: 20px;
    background-color: #888787;
    padding: 13px 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    border-radius: 22px;
    align-items: center;
    justify-content: center;
}

/* チェックボックスを非表示にする */
.drawer_hidden {
  display: none;
}

.drawer_open {
  position: absolute;
  width: 50px;   /* ← クリック範囲 */
  height: 50px;  /* ← クリック範囲 */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 100;
}

/* ハンバーガーメニューのアイコン */
.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
  content: '';
  display: block;
  height: 3px;
  width: 25px;
  border-radius: 3px;
  background: #333;
  transition: 0.5s;
  position: absolute;
}

/* 三本線の一番上の棒の位置調整 */
.drawer_open span:before {
  bottom: 8px;
}

/* 三本線の一番下の棒の位置調整 */
.drawer_open span:after {
  top: 8px;
}

/* アイコンがクリックされたら真ん中の線を透明にする */
#drawer_input:checked ~ .drawer_open span {
  background: rgba(255, 255, 255, 0);
}

/* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
#drawer_input:checked ~ .drawer_open span::before {
  bottom: 0;
  transform: rotate(45deg);
}

#drawer_input:checked ~ .drawer_open span::after {
  top: 0;
  transform: rotate(-45deg);
}
  
/* メニューのデザイン*/
.nav_content {
  width: 100%;
  height: 100vh;
  position: fixed;
  bottom: 100%;
  left: 0%; /* メニューを画面の外に飛ばす */
  z-index: 99;
  background: rgba(0, 0, 0, 0.5);
  transition: .5s;
  text-align: center;
  padding-top: 120px;
  font-family: "Montserrat", sans-serif;
  display: flex;
  justify-content: center;
  line-height: 1.9;
}

/* メニュー黒ポチを消す */
.nav_list {
  text-decoration: none;
  border-radius: 10px;
  width: 190px;
  height: 250px;
  background-color: #f5f2ee;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
}


.nav_item a {
  color: #483F3F;
  text-decoration: none;
  font-size: 20px;
}

.nav_item a:hover{
  color: #483f3f67;
  font-size: 20px;
}

/* アイコンがクリックされたらメニューを表示 */
#drawer_input:checked ~ .nav_content {
  bottom: 0;/* メニューを画面に入れる */
}

section {
    padding: 0 4%;
    padding-top: 180px;
}

.works {
    display: flex;
    max-width: 900px;
    align-items: center;
    font-size: 40px;
    border-bottom: 1px solid #483F3F;
    padding: 4px 4px;
    margin: 0 auto;
    padding-left: 37px;
    padding-bottom: 15px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

.works-select {
    display: flex;
    gap: 80px;
    padding-top: 80px;
    font-size: 21px;
    max-width: 50%;
    margin: 0 auto;    
    text-align: center;
    justify-content: center;
    font-family: "Montserrat", sans-serif;
}

.works-select a {
    text-decoration: none;
    color: #483F3F;
}

.works-select a:hover {
    text-decoration: underline;
}

.works-photo {
    display: grid;
    max-width: 900px;
    margin: 0 auto;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
}

.works-title {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 30px;
}

.works-title a{
    color: #483F3F;
    font-weight: 500;
    text-decoration: none;
}

.works-photo2:hover {
    opacity: 0.8; 
    transition: 0.3s;
}

.contact-box {
    border-radius: 100px;
    padding: 40px 60px;
    max-width: 600px;
    margin: 80px auto;
    text-align: center;
    border: 1px solid #483F3F;
    font-family: "Montserrat", sans-serif;
}

.contact-box h2 {
    font-size: 24px;
    text-align: center;
    font-weight: 600;
    padding: 7px 0 20px 0;
}

.contact-btn {
    width: 361px;
    flex: block;
    margin: 0 auto;
}

.contact-box p {
    font-size: 16px;
    text-align: center;
    font-weight: 400;
    padding: 30px 0 10px 0;
}

.footer {
  background: #215BE5; 
  height: 70px;  
  font-size: 9px;
  margin-top: 70px;
  display: flex;
  justify-content: center; 
  align-items: center; 
  color:#fff;
}


@media (max-width: 990px) {

/* ヘッダー部分 */

.contact {  
    padding: 13px 23px;
}

.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
  height: 3px;
  width: 25px;
}

.drawer_open span:before {
  bottom: 8px;
}

.drawer_open span:after {
  top: 8px;
}

/* ページタイトル部分 */

.works {
    max-width: 800px;
}

/* コンテンツ部分 */

.works-photo {
    display: block;
    padding: 0 8%;
}

.works-select {
    gap: 50px;
}

}

@media screen and (max-width: 559px) {

/* ヘッダー部分 */

.header {
    padding: 10px 0;
} 


.nav1 {
    display: flex;
    align-content: center;
    margin-left: auto;
}

.contact {  
    padding: 10px 15px;
    font-size: 10px;

}

.logo {
  width: 120px;
  margin: 20px;
}

.drawer_open {
  position: absolute;
  width: 50px;   /* ← クリック範囲 */
  height: 50px;  /* ← クリック範囲 */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 100;
}

.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
  content: '';
  display: block;
  height: 3px;
  width: 25px;
  border-radius: 3px;
  background: #333;
  transition: 0.5s;
  position: absolute;
}

.nav_list {
  width: 160px;
  height: 200px;
}

.nav_item a {
  font-size: 16px;
}

.nav2 {
    display: flex;
    align-items: center;
    margin: 20px;
    margin-top: 35px;
    padding-right: 30px;
    margin-left: 5px;
}

/* ページタイトル部分 */

section {
    padding: 0 4%;
    padding-top: 130px;
}

.works {
    max-width: 350px;
    font-size: 29px;
}

/* コンテンツ部分 */

.works-select {
    font-size: 16px;
    max-width: 100%; 
    gap: 30px; 
    padding-top: 40px;
  }

.contact-box {
    border-radius: 110px;
    padding: 30px 50px;
    max-width: 350px;
}

.contact-box p {
    font-size: 12px;
}


}

