@charset "utf-8";

:root {
  --mainColor: #404040;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #fff;
  color: var(--mainColor);
  font-family: Noto Serif JP, serif;
  line-height: 1.5;
  letter-spacing: .05em;
}

img {
  max-width: 100%;
  height: auto;
}

header {
  background-color: var(--mainColor);
  color: #fff;
  font-family: Italiana, serif;
  height: 150px;
  max-width: 1440px;
  margin: 0 auto 55px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 24px;
}

header h1 {
  font-size: 44px;
  text-align: center;
}

/* ハンバーガーアイコン */
.menu-btn {
  position: absolute;
  right: 24px;
  /* 右からの距離 */
  top: 50%;
  transform: translateY(-50%);
  /* ← 縦中央に */
  width: 25px;
  height: 20px;
  cursor: pointer;
  z-index: 11;
}

.menu-btn span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: 0.3s;
}

.menu-btn span:nth-child(1) {
  top: 0;
}

.menu-btn span:nth-child(2) {
  top: 7px;
}

.menu-btn span:nth-child(3) {
  top: 14px;
}

/* メニュー閉じてる状態 */
.menu {
  display: none;
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  width: 60%;
  max-width: 250px;
  height: 100%;
  background-color: #fff;
  color: var(--mainColor);
  padding-top: 100px;
  font-size: 22px;
  text-align: center;
  transform: translateX(100%);
  opacity: 0;
  transition: 0.5s;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
}

.menu li {
    font-size: 16px;         
    margin-bottom: 30px;      
    letter-spacing: 0.05em; 
}

/* 開いた状態 */
.menu.open {
  display: block;
  transform: translateX(0);
  /* ← 横からスッと現れる */
  opacity: 1;
}

.menu-btn.active span {
  background-color: #404040;
  /* ← 文字色と同じでOK！ */
}

/* ハンバーガーを×印に */
.menu-btn.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  /* ← 半透明の黒で画面を暗くする */
  opacity: 0;
  /* ← 初期状態は透明 */
  visibility: hidden;
  /* ← 初期状態は非表示 */
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 5;
  /* ← メニューの下・headerの上 */
}

/* メニューが開いたときに表示 */
.overlay.active {
  opacity: 1;
  visibility: visible;
}

/*main===============================================*/
main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  text-align: center;
}

main section {
  margin-bottom: 55px;
}

h2 {
  font-family: Italiana, serif;
  font-size: 32px;
  margin-bottom: 30px;
}

/*work sec======================================--*/
.worksList {
  display: grid;
  grid-template-columns: 1fr; /* スマホは1列 */
  gap: 40px; /* アイテム間の余白 */
  justify-items: center;
}

.worksList a {
  display: block;
  overflow: hidden;
}

.worksList img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* hover時に画像だけふわっと */
.worksList a:hover img {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.worksList a:hover::after {
  background: rgba(255, 255, 255, 0.2);
}

#works section {
  margin-bottom: 30px;
}

#works section h3 {
  font-size: 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/*profile sec========================================*/

.profile-inner {
  display: flex;
  flex-direction: column; /* スマホでは縦並び */
  align-items: center;
  gap: 40px;
}

.profile-img img {
  width: 80%;
  height: auto;
}

#profile h3 {
  font-size: 20px;
  margin-bottom: 37px;
}

.profile-text p {
  max-width: 800px;
  font-size: 14px;
  margin:0 auto 37px;
  text-align: left;
}


#profile .aboutBtn {
  font-size: 14px;
  display: inline-block;
  border: 1px solid var(--mainColor);
  border-radius: 30px;
  padding: 10px 28px;
  background-color: #fff;
  box-shadow: 3px 3px 0 #404040;
  transition: all 0.2s ease
}

#profile .aboutBtn:hover {
  transform: translate(3px, 3px);
  box-shadow: none;
}

/*contact sec====================================*/
form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

form p {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 22px;
  width: 100%;
  max-width: 400px;
}

/* 入力欄 */
form p input,
form p textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

/* テキストエリアの高さ調整 */
form p textarea {
  height: 120px;
  resize: vertical;
  margin-bottom: 50px;
}

/* 送信ボタン */
form p input[type="submit"] {
  width: 100%;
  max-width: 140px;
  display: block;
  margin: 0 auto;
  background-color: #fff;
  border: 1px solid #404040;
  border-radius: 30px;
  font-family: 'Italiana', serif;
  font-size: 14px;
  color: #404040;
  box-shadow: 3px 3px 0 #404040;
  padding: 10px 0;
  cursor: pointer;
  transition: 0.2s;
}

form p input[type="submit"]:hover {
  box-shadow: none;
  transform: translate(3px, 3px);
}

.bttBtn {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-bottom: 20px;
}

/*workPage==========================================*/
.workDetail {
  max-width: clamp(500px, 80vw, 600px);
  margin: 0 auto 100px;
  padding: 0 24px;
}
.workDetail h3 {
  margin-bottom: 64px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.workDetail .detailItem {
  text-align: left;
  margin-bottom: 55px;
  display: flex;
  flex-direction: column;
}

.workDetail .detailItem dt {
  margin-bottom: 20px;
}

.img-size {
  font-size: 12px;
  margin-bottom: 20px;
}

.linkBtn {
  font-size: 15px;
  display: inline-block;
  border: 1px solid var(--mainColor);
  border-radius: 30px;
  padding: 10px 28px;
  background-color: #fff;
  box-shadow: 3px 3px 0 #404040;
  transition: all 0.2s ease;
  margin-bottom: 100px;
}

.linkBtn:hover {
  transform: translate(3px, 3px);
  box-shadow: none;
}

/*profile page=============================================*/

.profileDetail {
  max-width: clamp(500px, 80vw, 600px); 
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.profile-item {
  margin-bottom: 100px;
}

.profileDetail img {
  margin-bottom: 0 auto 24px;
}

.profileDetail h3 {
  font-size: 24px;
  margin-bottom: 24px;
}

.profileDetail p {
  font-size: 16px;
  text-align: left;
  margin-bottom: 60px;
}

.profileDetail .detailItem {
  text-align: left;
  margin-bottom: 60px;
}

.profileDetail .detailItem dt {
  margin-bottom: 20px;
}
/*interests============================================*/

.interestSec {
  text-align: center;

}

.interestsItem {
  display: block;
}

.interestsItem h3 {
  font-size: 18px;
  margin: 21px auto;
}

.interestsItem p {
  font-size: 15px;
  text-align: center;
}

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

footer {
  background-color: var(--mainColor);
  height: 60px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

small {
  color: #fff;
}

/*メディアクエリ
===================================================*/

@media (min-width:1024px) {
  header {
    height: 240px;
    display: flex;
    align-items: center;
    margin-bottom: 100px;
  }
  .header-inner {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
  }
  
  header h1 {
    font-size: 90px;
    text-align: left;
    padding-left: clamp(0px, 10vw, 100px);
  }
  .menu li {
    font-size: 20px;          /* ← 文字を大きくする（SP時は16pxとか） */
    margin-bottom: 30px;      /* ← 各メニュー間にスペース */
    letter-spacing: 0.05em; 
}

  main {
    padding: 0 220px;
  }

  main section {
  margin-bottom: 130px;
}
  main h2 {
    font-size: 50px;
    max-width: 1000px;
    margin: 0 auto 50px;
    text-align: left;
  }
  .worksList {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px; 
  }
  .profile-inner {
    flex-direction: row; 
    justify-content: center;
    align-items: center;
    align-items: stretch;
  }
  .profile-img img {
    width: 200px; 
    max-width: none;
    height: auto;
  }
  .profile-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
}
  .profile-text h3,
  .profile-text p {
    text-align: left;
  }

  .profile-text p{
    font-size: 16px;
  }
  #profile .profile-text .aboutBtn {
    display: block;
    width: fit-content;
    margin-left: auto;
  }

  form p {
    max-width: 600px;
  }

  .workDetail {
    max-width: none; 
    padding: 0;   
    margin-bottom: 150px;   
  }
  .workDetail h3 {
    font-size: 24px;
    margin: 30px auto 85px;
  }
  .workDetail .detailItem {
    display: flex;
    text-align: left;
    flex-direction: row;
  }
  .workDetail .detailItem dt {
    width: 160px;
    margin-bottom: 0;
    flex-shrink: 0; 
  }
  .workDetail .detailItem dd {
  flex: 1;
  margin: 0;
  line-height: 1.8;
  }
  .profileDetail {
  max-width: none; 
  margin: 0 auto;
  padding: 0 24px;
  text-align: left;
}
  .profileDetail .detailItem {
    display: flex;
    text-align: left;
    flex-direction: row;
    gap: 20px;
  }

  .profileDetail .detailItem dt {
    width: 160px;
    flex-shrink: 0;
  }

  .profileDetail .detailItem dd {
    flex: 1;
    margin: 0;
    line-height: 1.8;
  }
  .interestsSec {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 30px;
    text-align: center;
    justify-items: center;
  }

  .interestsItem img {
    width: 100%;
    max-width: 180px;
    height: auto;
  }

  

}