@charset "UTF-8";
body {
  background-color: #F4F2E9;
  color: #5b5b5b;
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
}

.cursor-img {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s linear;
  opacity: 0;
  z-index: 9999;
}

.cursor-img img {
  width: 40px;
  height: 40px;
}

.header {
  position: relative;
}
.header__name {
  font-size: 4rem;
  font-weight: 300;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35);
  line-height: 1.1;
  padding-left: 120px;
}
.header__prof-gr {
  background-color: #BCC0B2;
  width: 700px;
  height: 480px;
  padding-left: 120px;
  padding-right: 200px;
  text-align: center;
  align-items: center;
  z-index: 2;
}
.header__prof-gr img {
  display: block;
  margin: 0 auto;
  justify-content: center;
  width: 30px;
  margin-bottom: 15px;
}
.header__prof {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.5rem;
  padding-top: 60px;
  margin-bottom: 15px;
  font-weight: 200;
}
.header__job {
  font-size: 1.8rem;
  font-weight: 200;
  margin-bottom: 15px;
}
.header__hero {
  font-size: 1.2rem;
  line-height: 2;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
}
.header__hero-img {
  position: relative;
  z-index: 10;
}
.header__hero-img img {
  width: 55vw;
  position: absolute;
  top: -40px;
  left: -188px;
  z-index: 10;
  object-fit: cover;
}
.header__hero-img img.fade-R {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.header__hero-img img.fade-R.show {
  opacity: 1;
  transform: translateX(0);
}
.header__profile {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 80px 0;
  position: relative;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

button {
  -webkit-appearance: none;
  appearance: none;
  vertical-align: middle;
  border: 0;
  background: transparent;
  outline: 0;
  border-radius: 0;
  text-align: inherit;
}

button:hover {
  cursor: pointer;
}

.btn {
  position: fixed;
  top: 16px;
  right: 50px;
  width: 58px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 16;
}

.btn-line {
  width: 100%;
  height: 4px;
  background-color: #5b5b5b;
  position: relative;
  transition: 0.2s;
}

.btn-line::before,
.btn-line::after {
  position: absolute;
  transition: 0.5s;
  left: 0;
}

.btn-line::before {
  content: "";
  width: 100%;
  height: 100%;
  background-color: #5b5b5b;
  /* 上の線の位置 */
  transform: translateY(-16px);
}

.btn-line::after {
  content: "menu";
  display: block;
  width: 100%;
  text-align: center;
  transform: translateY(8px);
  color: #5b5b5b;
}

.btn-line.open {
  transition: 3s;
}

.btn-line.open::before {
  content: "";
  transform: translateY(0);
}

.btn-line.open::after {
  content: "close";
  color: #5b5b5b;
}

.header__hamburger-nav {
  position: fixed;
  top: 0;
  transform: translateX(150%);
  width: 100%;
  height: 100vh;
  /* メニューを縦に */
  display: flex;
  flex-direction: column;
  color: #5b5b5b;
  background-color: #F4F2E9;
  transition: transform 1s;
  font-size: 2rem;
  justify-content: center;
  align-items: center;
  z-index: 15;
}

.header__nav-item {
  width: 100%;
  /* メニューテキスト位置をリスト内中心に */
  display: flex;
  font-weight: 200;
}
.header__nav-item:active {
  color: aliceblue;
}
.header__nav-item:hover {
  transform: translateY(-10px);
  transition: 0.5s;
}

.header__nav-link {
  display: block;
  padding: 30px 0;
}

.header__nav-item:hover {
  color: #5b5b5b;
  cursor: pointer;
}

.header__hamburger-nav.open {
  transform: translateX(0);
}

/*各ページヘッダー*/
.works__title-box,
.idealme__title-box,
.skill__title-box {
  position: relative;
}
.works__title-box__inner,
.idealme__title-box__inner,
.skill__title-box__inner {
  position: absolute;
  top: 50%;
  left: 50%;
  /* 横も中央にしたい場合 */
  transform: translate(-50%, -50%);
}

.works__title,
.idealme__title,
.skill__title {
  font-size: 2rem;
  font-weight: 200;
}

.works__caption,
.idealme__caption,
.skill__caption {
  font-size: 1.2rem;
  font-weight: 200;
}

.top-button {
  position: fixed;
  top: 40vh;
  right: 30px;
  width: 60px;
  height: 60px;
  border: 2px solid #BCC0B2;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  text-decoration: none;
  color: #5b5b5b;
  background-color: #BCC0B2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.top-button.show {
  opacity: 1;
  pointer-events: auto;
  z-index: 100;
}

.footer {
  text-align: center;
  font-weight: 200;
  font-family: "Montserrat", sans-serif;
}
.footer__inner {
  height: 500px;
  background-color: #BCC0B2;
  display: flex;
  padding: 80px;
  margin: 0;
}
.footer__profile {
  display: grid;
  place-items: center;
  padding: 80px 0 80px 150px;
}
.footer__name {
  font-size: 3rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35);
}
.footer__prof {
  font-size: 1.2rem;
  font-weight: 200;
  font-family: "Montserrat", sans-serif;
}
.footer img {
  width: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}
.footer__site-map {
  margin: 0 50px 0 150px;
}
.footer__site-map__title {
  font-size: 2rem;
}
.footer__site-map__nav-item {
  margin-bottom: 30px;
  font-weight: 200;
  font-family: "Montserrat", sans-serif;
}
.footer__contact__title {
  font-size: 2rem;
}
.footer__contact__nav-item {
  margin-bottom: 30px;
  font-weight: 200;
  font-family: "Montserrat", sans-serif;
}

.copy {
  margin: 30px 0;
  font-weight: 200;
  font-family: "Montserrat", sans-serif;
}

.index__main {
  margin: auto 80px;
}

.work-histry {
  display: flex;
  margin-top: 150px;
  justify-content: center;
}
.work-histry img {
  width: 30%;
  margin-right: 80px;
}
.work-histry__name {
  font-size: 2.5rem;
  margin-bottom: 30px;
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
}
.work-histry__text {
  font-size: 1rem;
  margin-top: 20px;
}

.index-works,
.contact {
  text-align: center;
  max-width: 1000px;
  height: 500px;
  margin: 150px auto 0 auto;
  display: grid;
  place-items: center;
}
.index-works img,
.contact img {
  width: 30px;
  margin: 50px 0;
}
.index-works__title,
.contact__title {
  margin-top: 50px;
  font-size: 2.5rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
}
.index-works__caption,
.contact__caption {
  font-size: 1rem;
  margin-bottom: 50px;
}
.index-works:hover,
.contact:hover {
  border: 1px solid #5b5b5b;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: 0.5s;
}

.more {
  padding: 30px;
  border: 1px solid #5b5b5b;
  margin-bottom: 50px;
}
.more:hover {
  border: 1px solid #5b5b5b;
  background-color: #5b5b5b;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: 0.5s;
  transform: translateY(-8px);
  color: #ffffff;
}

.skill-idelme {
  display: flex;
  text-align: center;
  margin: 0 auto 0 auto;
}

.index-skill,
.index-idealme {
  width: 50%;
  height: 500px;
  margin: 150px auto 0 auto;
  display: grid;
  place-items: center;
}
.index-skill img,
.index-idealme img {
  width: 30px;
  margin: 50px 0;
}
.index-skill__title,
.index-idealme__title {
  margin-top: 50px;
  font-size: 2.5rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
}
.index-skill__caption,
.index-idealme__caption {
  font-size: 1rem;
  margin-bottom: 50px;
}
.index-skill:hover,
.index-idealme:hover {
  border: 1px solid #5b5b5b;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: 0.5s;
}

.mail {
  padding: 30px 70px;
  border: 1px solid #5b5b5b;
  margin-bottom: 50px;
}
.mail:hover {
  border: 1px solid #5b5b5b;
  background-color: #5b5b5b;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: 0.5s;
  transform: translateY(-8px);
  color: #ffffff;
}

.contact {
  margin-bottom: 300px;
}

/* 下からフェードイン前の状態 */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 表示状態 */
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.index-loading {
  margin: 0;
  overflow: hidden;
  /* ローディング中はスクロール不可 */
}

#loading-screen {
  position: fixed;
  inset: 0;
  background: #F4F2E9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99;
  transition: opacity 0.8s ease;
}

.photo-slider {
  display: flex;
  gap: 20px;
  animation: slide 8s linear infinite;
}

.photo-slider img {
  width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-500px);
  }
}
.loading-text {
  color: #5b5b5b;
  font-size: 2rem;
  margin-top: 20px;
}

.index-loading .header {
  opacity: 0;
  /* 初期は透明 */
  transition: opacity 0.8s ease;
  /* ヘッダーがふわっと表示される */
}

/*ヘッダーアニメーション*/
.char {
  opacity: 0;
  display: inline-block;
  animation: fadeInUp 0.5s forwards ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-L {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.6s ease;
}

.fade-L.show {
  opacity: 1;
  transform: translateX(0);
}

.fade-R {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.6s ease;
}

.fade-R.show {
  opacity: 1;
  transform: translateX(0);
}

.idealme__main {
  margin: auto 300px;
  font-size: 1.5rem;
}
.idealme__question {
  display: inline-block;
  margin-top: 100px;
  margin-bottom: 100px;
  background-color: #BCC0B2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: left;
  padding: 20px 5px;
}
.idealme__answer {
  display: flex;
  margin-bottom: 100px;
  background-color: #F8F6F1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  padding: 20px 80px;
  max-width: 500px;
  height: auto;
  align-items: center;
  line-height: 2;
  margin-left: auto;
}

.skill__main {
  margin: auto 400px;
}
.skill__main img {
  width: 30px;
  display: block;
  margin: 20px auto;
}
.skill__subtitle {
  font-size: 2.8rem;
  margin-top: 200px;
  font-weight: 200;
}
.skill__text {
  font-size: 1.2rem;
  margin-bottom: 100px;
  max-width: 670px;
  display: flex;
  justify-content: end;
  font-weight: 200;
}
.skill__text ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* ← 2列 */
  gap: 30px;
  text-align: center;
}
.skill__text ul li {
  font-weight: 200;
  font-family: "Noto Sans JP", sans-serif;
}
.skill__text-Certifications ul {
  font-size: 1.2rem;
  margin-bottom: 100px;
  max-width: 670px;
  display: flex;
  justify-content: end;
}
.skill__text-Certifications ul li {
  font-weight: 200;
  font-family: "Noto Sans JP", sans-serif;
}

.works__main {
  margin: auto 200px;
  font-weight: 200;
}
.works__web-site__item a img, .works__banner__item img, .works__photo__item img {
  width: 50%;
  justify-self: center;
  align-self: center;
}
.works__web-site__item a {
  display: flex;
  justify-content: center;
  align-items: center;
}
.works__web-site__item, .works__banner__item, .works__photo__item {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}
.works__photo__item {
  margin-bottom: 200px;
}
.works__subtitle img {
  width: 30px;
  height: auto;
  margin-left: 20px;
  margin-right: 20px;
  object-fit: contain;
}
.works__subtitle {
  display: flex;
  font-size: 2.5rem;
  font-weight: 200;
  margin-top: 100px;
  margin-bottom: 80px;
}

.pentax {
  display: flex;
  font-size: 1rem;
  align-items: center;
}

.work-card {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.work-card img {
  width: 100%;
  display: block;
}

/* 説明文 */
.work-desc {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  /* ▼ 初期位置：下 + 右にオフセットしておく */
  transform: translateY(100%) translateX(50%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.4s ease;
}

/* ホバー時にスライドイン */
.work-card:hover .work-desc {
  transform: translateY(0) translateX(0);
  opacity: 1;
}

/* ----- ホバー拡大プレビュー ----- */
.hover-preview-container {
  position: relative;
}

.hover-preview-container img {
  width: 100%;
  cursor: pointer;
}

/* プレビューエリア（最初は非表示） */
.hover-preview {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) scale(0.9);
  width: 50vw;
  height: auto;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 9999;
}

/* ホバー時に表示 */
.hover-preview.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* スマホ */
@media screen and (max-width: 768px) {
  .cursor-img {
    display: none;
  }
  /*header*/
  .header__profile {
    display: block;
  }
  .header__hero-img {
    display: none;
  }
  .header__name {
    font-size: 2rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
  }
  .header__prof-gr {
    width: 100vw;
    padding: 80px;
    height: 100%;
  }
  .header__prof {
    margin-top: 0;
    padding: 0;
  }
  /*index*/
  .index__main {
    margin: auto 40px;
  }
  .work-histry {
    display: inline-block;
    margin: 20px auto;
  }
  .work-histry img {
    width: 100%;
    height: auto;
    margin: 0;
  }
  /*footer*/
  .copy {
    font-size: 0.5rem;
  }
  .footer img {
    margin: 10px 0;
  }
  .footer__inner {
    display: block;
    padding: 20px;
    height: 550px;
  }
  .footer__profile {
    padding: 0;
  }
  .footer__name {
    font-size: 2rem;
  }
  .footer__site-map, .footer__contact {
    margin: 0;
  }
  .footer__site-map img, .footer__contact img {
    margin: 5px 0;
  }
  .footer__site-map__title, .footer__contact__title {
    font-size: 1.5rem;
    margin-top: 10px;
  }
  .footer__site-map__nav-item, .footer__contact__nav-item {
    margin-bottom: 5px;
  }
  .footer__prof {
    font-size: 1rem;
  }
  .skill-idelme {
    display: block;
  }
  .top-button {
    right: 10px;
    top: 80vh;
  }
  /*works*/
  .works__main {
    margin: auto 20px;
  }
  .works__subtitle {
    margin-top: 80px;
    font-size: 1.2rem;
  }
  .works__web-site a img {
    width: 100%;
  }
  .works__banner__item img, .works__photo__item img {
    width: 100%;
  }
  .works__title-box,
  .idealme__title-box,
  .skill__title-box {
    padding: 50%;
  }
  .skill__caption,
  .idealme__caption,
  .works__caption {
    font-size: 0.8rem;
  }
  /* ======= モーダル（スマホ用） ======= */
  .modal-preview {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
  }
  .modal-preview.show {
    opacity: 1;
    pointer-events: auto;
  }
  .modal-preview img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
  }
  /* PC のホバープレビューはスマホで非表示 */
  .hover-preview {
    display: none !important;
  }
  /*skill*/
  .skill__main {
    margin: auto 20px;
  }
  .skill__subtitle {
    margin-top: 30px;
    font-size: 1.5rem;
  }
  .skill__text ul {
    display: grid;
    place-items: center;
    padding: 20px 0;
    font-size: 0.7rem;
    gap: 5px;
    width: 100vw;
  }
  .skill__text-Certifications ul {
    font-size: 0.7rem;
  }
  /*idealme*/
  .idealme__main {
    margin: auto 20px;
    display: block;
  }
  .idealme__question {
    font-size: 1rem;
    margin-top: 50px;
    margin-bottom: 50px;
  }
  .idealme__answer {
    padding: 20px;
    font-size: 1rem;
    margin-bottom: 50px;
  }
}
/*タブレット*/
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .cursor-img {
    display: none;
  }
  .header__prof-gr {
    height: 100%;
  }
}/*# sourceMappingURL=style.css.map */