@charset "UTF-8";

/*共通デザイン*/
body a{
  text-decoration: none;
}
body{
  background-image: url(../image/background-img.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  font-family: 'Zen Kaku Gothic New';
  color: #4a4a4a;
}
.site-header{
  position: relative;
  display: flex;
  justify-content: center; /* 中央寄せ */
  align-items: center;
  padding: 2rem 2rem;
}
.site-header a{
  font-size: 1.5rem;
  font-weight: 700;
  color: #4a4a4a;
}
.site-header h1{
  line-height: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}
.nav-pc {
  display: none;
}
.nav-list a{
  font-size: 1.15rem;
}
.nav-list a.active {
  color: #5B84E6;
  font-weight: bold;
}
#slide-menu {
  position: fixed;
  top: 0;
  left: -220px; /* ← 初期位置は左の外 */
  width: 170px;
  height: 100vh;
  background: #5B84E6;
  transition: left 0.7s ease; /* ← left をアニメーション */
  z-index: 1000;
}
#slide-menu.open {
  left: 0; /* ← 左から出て左で止まる */
}
#menu-button {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  padding: 1rem 0 1rem 1rem;
  font-weight: 700;
  font-size: 1.15rem;
}
#menu-button:hover{
  color: #5B84E6;
  transition: all 0.3s ease;
}
#menu-close{
  padding-top: 2rem;
  padding-left: 7.5rem;
  font-size: 0.85rem;
  color: #fff;
}
#slide-menu ul{
  list-style: none;
}
.menu-list{
  padding: 1rem;
}
.menu-list li{
  margin-bottom: 0.5rem;
  border-bottom: solid 1px #fff;
}
.menu-list a{
  display: block;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 500;
  padding-left: 0.3rem;
}
.menu-list a:hover{
  color: #4a4a4a;
  transition: all 0.3s ease;
}

/*contact点滅*/
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 0px rgba(91, 132, 230, 0);
  }
  50% {
    box-shadow: 0 0 20px rgba(91, 132, 230, 0.5);
  }
}

.flash-highlight {
  animation: glow 1s ease-in-out 3;
}




/*home*/
.mainvisual-sp{
  display: inline-block;
  height: 460px;
}
.mainvisual-pc{
  display: none;
}
.mainvisual-wrap{
  text-align: center;
}
.triangle {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
}
.triangle-orange{
  border-top: 17px solid #f9592b;
}
.triangle-blue{
  border-top: 17px solid #5B84E6;
}
.triangle-group {
  display: flex;
  justify-content: center;
  gap: 0px;
}
.img-wrap{
  display: grid;
  gap: 7rem;
  margin-bottom: 7rem;
}

.page-nav{
  width: 100%;
  padding: 0 2rem;
}
.works-wrap,
.about-wrap,
.contact-wrap{
  margin: auto;
  text-align: center;
  margin-bottom: 2rem;
  padding: 2.5rem;
  border-radius: 2px; /* 角を少し丸める場合 */
}
.works-wrap,
.about-wrap{
  border: 1.5px solid #f9592b; /* ふちの色 */
}
.contact-wrap{
  border: 1.5px solid #5B84E6; /* ふちの色 */
}
.contact-nav{
  padding: 0 2rem;
}
.heading{
  color: #f9592b;
  font-weight: 900;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.heading-blue{
  color: #5B84E6;
}
.lead{
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.page-link a {
  display: inline-block;
  padding: 0.6rem 1rem;
  border: 1px solid #f9592b; /* 枠線の色（オレンジ系） */
  background-color: #fff;    /* 背景色（白） */
  color: #f9592b;            /* 文字色（オレンジ系） */
  text-align: center;
  text-decoration: none;
  border-radius: 2px;        /* 角丸（控えめ） */
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.page-link a:hover {
  background-color: #f9592b;
  color: #fff;
}
.links{
  display: flex;
  justify-content: center;
  gap: 1rem;
  border-bottom: 5rem;
}
.mail-link a{
  display: inline-block;
  padding: 0.6rem 1rem;
  border: 1px solid #5B84E6; /* 枠線の色（オレンジ系） */
  background-color: #fff;    /* 背景色（白） */
  color: #5B84E6;            /* 文字色（オレンジ系） */
  text-align: center;
  text-decoration: none;
  border-radius: 2px;        /* 角丸（控えめ） */
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.mail-link a:hover {
  background-color: #5B84E6;
  color: #fff;
}

/*works*/
.work-index{
  padding: 3rem 2rem;
}
.work-index h2{
  margin-bottom: 3rem;
}
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem; /* ボタン同士の隙間（横も縦も） */
}
.filter-button{
  padding: 0.6rem 1rem;
  border: 1px solid #f9592b; /* 枠線の色（オレンジ系） */
  background-color: #fff;    /* 背景色（白） */
  color: #f9592b;            /* 文字色（オレンジ系） */
  text-align: center;
  text-decoration: none;
  border-radius: 2px;        /* 角丸（控えめ） */
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.filter-button:hover {
  background-color: #f9ab96;
  color: #fff;
  border-color: #f9ab96;
}
.filter-button.active {
  background-color: #f9592b;
  color: #fff;
  border-color: #f9592b;
}
.works-gallery{
  padding: 0 2rem;
  margin-top: 3rem;
}
.work-item{
  text-align: center;
  margin-bottom: 5rem;
}
.work-item img{
  width: 300px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 1rem;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.15);
}
.work-item img:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: scale(1.02);
  transition: all 0.3s ease;
  cursor: pointer;
}
.work-item p{
  font-size: 0.95rem;
  font-weight: 500;
}
.work-item p:hover{
  color: #f9592b;
  transition: all 0.3s ease;
}
.click-area {
  display: inline-block; /* 必要なら block → inline-block に */
  cursor: pointer;
}
.click-area img{
  background-color: #fff;
}


/*popup*/
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  overflow-y: auto;
}
.popup-inner {
  position: relative;
  background: #fff;
  padding: 2rem;
  max-width: 800px;
  width: 90%;
  margin: 5% auto;
  border-radius: 2px;
  font-size: 0.95rem;
  line-height: 1.6;
}
.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.85rem;
  cursor: pointer;
}
.popup-inner h3,
.popup-inner h4,
.popup-inner h5 {
  margin-top: 1.5rem;
  font-weight: 700;
}
.popup-inner h3{
  font-size: 0.95rem;
  border-radius: 2px;
  color: #f9592b;
}
.popup-inner h4{
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #4a4a4a;
}
.popup-inner h5{
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
  color: #4a4a4a;
}
.popup-inner{
  text-align: justify;
}
.popup-inner video {
  width: 100%;
  margin: 1rem 0;
  border-radius: 2px;
}
.popup-inner img{
  width: 100%;
  margin: 3rem  0;
  border-radius: 2px;
}
.popup-inner a {
  display: inline-block;
  margin: 2rem 0;
  padding: 0.6rem 1rem;
  border: 1px solid #f9592b; /* 枠線の色（オレンジ系） */
  background-color: #fff;    /* 背景色（白） */
  color: #f9592b;            /* 文字色（オレンジ系） */
  text-align: center;
  text-decoration: none;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.7s ease, color 0.3s ease;
}
.popup-inner a:hover{
  background-color: #f9592b;
  color: #fff;
  transition: all 0.3s ease;
}
/*slider*/
.popup-slider .slick-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}
.popup-slider video {
  width: 100%;
  height: auto;
  max-width: 600px; /* PC動画の幅に合わせて調整 */
  max-height: 40vh; /* 画面の80%までに制限 */
}


/*about*/
.Introduction{
  padding: 3rem 2rem;
}
.Introduction h2{
  margin-bottom: 3rem;
}
.profile-img img{
  display: block;
  max-width: 250px;
  margin: 3rem auto;
}
.heading-middium{
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #f9ab96;
}
.profile{
  font-size: 0.93rem;
  line-height: 1.6;
  text-align: justify;
}
.profile-table{
  width: 100%;
  border-spacing: 0;
  margin-top: 2rem;
}
.profile-table th,
.profile-table td {
  padding: 1rem;
  vertical-align: top;
  text-align: justify;
  font-size: 0.95rem;
  line-height: 1.6;
}
.profile-table th {
  width: 6rem;
  font-weight: 500;
  padding-left: 0;
  color: #333;
  white-space: nowrap;
  position: relative;
}
.profile-table td {
  padding-right: 0;
  border-left: 1px dotted #f9592b;
}
/*skills*/
.skills{
  margin-top: 2rem;
  padding: 0 2rem;
}
.skill-block {
  margin-bottom: 2rem;
  background-color: rgba(249, 89, 43, 0.05);
  padding: 1.5rem;
  border-radius: 2px;
}
.skill-block h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 900;
}
.skill-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.skill-block li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  text-align: justify;
}
.skill-block p{
  font-size: 0.95rem;
  text-align: justify;
}
.skill-block strong {
  display: inline-block;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color:  rgba(249, 89, 43, 0.5);
}
.skills-wrapper {
  display: block;
}

/*先頭へ*/
#back-to-top {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 60px;
  height: 60px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#back-to-top.show {
  opacity: 0.7;
  pointer-events: auto;
}
#back-to-top:hover {
  opacity: 1;
  transition: all 0.3s ease;
}

/*フッター*/
.site-footer{
  text-align: center;
  margin-top: 8rem;
  margin-bottom: 3rem;
}


@media (min-width: 800px) {
  /*共通デザイン*/
  .site-header{
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem 2rem;
    justify-content: space-between;
  }
  .site-header h1 {
    position: static;
    transform: none;
    margin: 0;
  }
  .nav-pc{
    display: block;
  }
  .nav-list{
    display: flex;
    gap: 2rem;
    list-style: none;
  }
  .nav-list li a{
    font-size: 1rem;
    font-weight: 700;
    color: #4a4a4a;
    text-decoration: none;
    transition: border-color 0.3s ease;
  }
  .nav-list li a:hover{
    color: #5B84E6;
    transition: all 0.3s ease;
  }
  #menu-button {
    display: none; /* PCでは非表示 */
  }
  #slide-menu {
    display: none; /* PCでは非表示 */
  }

  /*home*/
  .mainvisual-sp{
    display: none;
  }
  .mainvisual-pc{
    display: inline-block;
    max-width: 880px;
    padding: 2rem;
    margin: 7rem 0;
  }
  .triangle {
  border-left: 16px solid transparent;
  border-right:16px solid transparent;
  }
  .triangle-orange{
    border-top: 24px solid #f9592b;
  }
  .triangle-blue{
    border-top: 24px solid #5B84E6;
  }
  .img-wrap{
    margin-bottom: 13rem;
  }
  .top-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 880px;
    margin: 0 auto 2rem;
  }
  .works-wrap,
  .about-wrap {
    width: calc(50% - 1rem); /* gapが2remなら1remずつ引く */
    margin: 0; /* autoを解除して中央揃えを効かせる */
  }
  .contact-wrap {
    max-width: 880px;
    margin: 0 auto 3rem;
  }
  .heading{
    font-size: 2.5rem;
  }

  /*works*/
  .work-index{
    max-width: 1140px;
    margin: 0 auto;
  }
  .works-gallery{
    max-width: 1140px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, max-content));
    column-gap: 5rem;
    justify-content: start;
    justify-items: start;
  }

  /*about*/
  .Introduction{
    max-width: 1140px;
    margin: 0 auto;
  }
  .Intro-sec {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-top: 2.5rem;
  }
  .profile-img {
    flex: 0 0 250px; /* 固定幅で小さめに */
  }
  .profile-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    margin-top: 0;
  }
  .Intro-sec > div:not(.profile-img) {
    flex: 1;
  }

  .skills{
    padding: 0;
  }
  .skills h3 {
    max-width: 1140px;
    margin: 0 auto 2rem;
    font-size: 1.5rem;
    padding: 0 2rem;
    text-align: left; /* または left */
    }
  .skills-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    align-items: stretch;
    padding: 0 2rem;
  }
  .skills-left {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .skills-right {
    flex: 2;
    display: flex;
    flex-direction: column;
  }
  .skills-right .skill-block {
    flex: 1; /* ← 左の合計高さに合わせて伸びる */
  }

}

