/*===== PC、スマホ共通スタイル =====*/
* {
  box-sizing: border-box;
}

p {
  font-size: 16px;
  color: #2E2E2E;
  letter-spacing: 0.03em;
  margin: 0;
}

/* フォント設定 */
body {
  font-family: "Noto Sans JP", sans-serif;
}

.header,
.site-logo {
  font-family: "Poppins", sans-serif;
}

.section-header {
  font-family: "Zen Maru Gothic", sans-serif;
}

/* 全体設定 */
.container{
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* 見出し */
h1, h2, h3, h4, h5, h6{
  margin: 0;
}

h1{
  font-size: 32px;
  letter-spacing: 0.05em;
}

h2{
  font-size: 28px;
  letter-spacing: 0.05em;
}

h3{
  font-size: 20px;
  letter-spacing: 0.03em;
}

.bg-col{
  background-color: #F5F3EE;
}

/*======= ヘッダー =======*/
/* SP用レイアウト非表示 */
#nav-sp,
#menu-sp {
  display: none;
}

/* ヘッダーの設定 */
.header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #F5F3EE;
  padding: 20px 20px;
}

/* ロゴ */
#home{
  text-decoration: none;
}

.site-logo{
  color: #2E2E2E;
  line-height: 0.9;
  letter-spacing: 0.05em;
}

.site-logo span{
  font-size: 20px;
}

/* ナビゲーション */
.nav-links{
  display: flex;
  gap: 30px;
  list-style: none;
  text-align: center;
  padding: 0;
}

.nav-links a{
  text-decoration: none;
  font-weight: 500;
  color: #2E2E2E;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.nav-links a:hover{
  color: #E7CDA3;
}

/****** スマートフォン用のスタイル ******/
@media screen and (max-width: 767px) {
  /* PC用ナビを非表示 */
  #nav-pc {
    display: none;
  }

  /* SP用メニューボタン */
  #menu-sp{
    display: block;
    background-color: transparent;
    border: none;
  }
  
  /* SP用画面の表示切替*/
  #nav-sp {
    justify-content: center;
    position: fixed;
    left: 0;
    top: 0;
    background-color: #F5F3EE;
    width: 100%;
    display: none;
    z-index: 100;
  }
  
  /* SP用ナビゲーションヘッダー */
  .nav-sp-header{
    display: flex;
    margin: 16px;
    align-items: center;
  }
  
  #home-sp{
    height: 100%;
    text-decoration: none;
  }
  
  /* ×ボタン */
  #menu-sp-close {
    position: absolute;
    top: 20px;
    right: 10px;
    background-color: transparent;
    border: none;
  }

  /* ナビゲーションのレイアウト */
  .nav-sp nav{
    margin: 0 32px 32px 32px;
  }

  /* ナビゲーション */
  .nav-links{
    flex-direction: column;
    padding: 20px;
  }
}

/*======= セクション共通設定=======*/
.section-header{
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

/* WORKS・SKILL表示アニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/****** スマートフォン用のスタイル ******/
@media screen and (max-width: 767px) {
  .section-header{
    margin-bottom: 30px;
  }
}

/*======= メインビジュアル =======*/
#main-visual .container{
  padding: 0;
}

.pc-mv,
.sp-mv{
  width: 100%;
  margin: 10px 0;
}

/* SP用メインビジュアル非表示 */
.sp-mv{
  display: none;
}

/****** スマートフォン用のスタイル ******/
@media screen and (max-width: 767px) {
  /* PC用メインビジュアル非表示 */
  .pc-mv{
    display: none;
  }

  /* SP用メインビジュアル表示 */
  .sp-mv{
    display: block;
  }
}

/*======= WORKS =======*/
.works-group{
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin: 0 30px;
}

.works-inner{
  display: flex;
  gap: 40px;
  margin: 0 auto;
}

/* WORKS下段非表示（仮対応。今後表示予定） */
.non-display{
  display: none;
}

/* WORKSカード部分レイアウト */
.works-card-inner{
  display: flex;
  background-color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  max-width: 336px;
  transition: box-shadow 0.3s ease;
}

.works-card-inner a{
  display: flex;
  flex-direction: column;
  width: 100%;
  text-decoration: none;
  padding: 15px;
  transition: opacity 0.3s ease;
}

.works-card-inner:hover{
  box-shadow: none;
}

.works-card-inner a:hover{
  opacity: 0.6;
}

.works-card-inner img{
  width: 100%;
  border: 1px solid #A5C1B0;
  margin-bottom: 15px;
}

.works-card-inner h3{
  margin-bottom: 15px;
  color: #A5C1B0;
}

.works-card-inner p{
  margin-bottom: 5px;
}

/* READMEボタン */
.readme-btn{
  width: 100%;
  height: 40px;
  background-color: #A5C1B0;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  margin-top: 10px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.readme-btn a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #FFFFFF;
  transition: color 0.3s ease;
}

.readme-btn:hover{
  border: #A5C1B0 solid 1px;
  background-color: #FFFFFF;
  box-shadow: none;
}

.readme-btn a:hover{
  color: #A5C1B0;
}

/****** スマートフォン用のスタイル ******/
@media screen and (max-width: 767px) {
  .works-group{
    gap: 10px;
    margin: 0 5px;
  }

  .works-inner{
    flex-direction: column;
    gap: 0px;
  }

  .works-card{
    margin: 20px 8px;
  }
}

/*======= SKILL =======*/
.skill-group{
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin: 0 20px 20px 20px;
}

.skill-content,
.sub-skill-content{
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: #A5C1B0 solid 1px;
}

.skill-content p,
.sub-skill-content p{
  line-height: 1.8;
  margin: 10px;
}

.skill-title{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 175px;
  height: 50px;
  background-color: #A5C1B0;
}

.skill-title h3{
  color: #FFFFFF;
}

.sub-skill-content{
  border:  #A5C1B0 solid 0.5px;
}

.sub-skill-title{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 40px;
  background-color: #FFFFFF;
  border: #A5C1B0 solid 0.5px;
}

.sub-skill-title h3{
  font-size: 18px;
  color: #A5C1B0;
}

.sub-skill-text{
  font-size: 15px;
}

/****** スマートフォン用のスタイル ******/
@media screen and (max-width: 767px) {
  .skill-group{
    flex-direction: column;
    margin: 0 5px;
  }
}

/*======= ABOUT =======*/
.about-content{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 20px;
}

.about-img{
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  border: #A5C1B0 solid;
  border-radius: 50%;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}


.about-text{
  max-width: 800px;
}

.about-text p{
  margin: 15px 0;
}

/****** スマートフォン用のスタイル ******/
@media screen and (max-width: 767px) {
  .about-content{
    flex-direction: column;
    gap: 25px;
  }
}

/*======= CONTACT =======*/
#contact .section-header{
  margin-bottom: 20px;
}

.contact-inner p{
  text-align: center;
  margin-bottom: 25px;
}

.contact-icon{
  display: flex;
  justify-content: center;
  gap: 30px;
}

.contact-icon a{
  display: block;
  width: 50px;
  transition: opacity 0.2s ease-in;
}

.contact-icon a:hover{
  opacity: 0.6;
}

.contact-icon img{
  width: 100%;
}

/*======= フッター =======*/
.footer{
  display: flex;
  justify-content: center;
  height: 70px;
  background-color: #E7CDA3;
  align-items: center;
}

.footer a{
  display: block;
  width: 50px;
}

.footer img{
  width: 100%;
}

/*======= README =======*/
.site-thumb{
  max-width: 980px;
  border: #A5C1B0 solid 1px;
  margin: 0 auto 50px auto;
}

.site-thumb img{
  width: 100%;
}

.readme-text{
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 980px;
  margin: 0 auto;
}

.readme-text-inner h3{
  color: #2E2E2E;
  background-color: #A5C1B0;
  padding: 10px;
  margin-bottom: 20px;
  width: 100%;
}