@charset "utf-8";

body {
  overflow-x: clip;
  min-height: 100vh;
  /* ← これで十分 */
}


.vegas-container,
.vegas-slide {
  pointer-events: none !important;
  z-index: -1 !important;
}

#slideshow {
  position: relative;
  height: calc(100vh - 85px) !important;
  overflow: hidden;
  z-index: 0;
}

#works {
  overflow: hidden;
  padding: 100px 0;
  min-height: 100vh;
}

.works-wrapper {
  overflow: hidden;
}


/* 文字を中央に固定 */
.first-view-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  /* 背景より前に出す */
  text-align: center;
  color: white;
}

.photo-credit {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 12px;
  color: white;
  opacity: 0.7;
  /* ←少し透けさせると邪魔にならない */
  font-family: sans-serif;
}


.first-view-text h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  font-family: "theodosia-condensed", sans-serif;
  font-weight: 400;
  font-style: normal;
}

h2 {
  font-family: "baskerville-display-pt", serif;
  font-weight: 500;
  font-style: normal;
  font-size: 3.5rem;
  text-align: center;
  margin-top: 6%;
  letter-spacing: .04em;
}

h3 {
  font-family: "futura-pt", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 2rem;
  margin-left: 12%;
  margin-top: 7%;
}

.webdesign {
  margin-top: 2%;
}


h4 {
  font-size: 2rem;
  font-family: "futura-pt", sans-serif;
  font-weight: 500;
  font-style: normal;
}

dt {
  font-size: 1.1rem;
  margin-top: 5%;
  margin-bottom: 2%;
  font-weight: bold;
}

main {
  font-size: 0.9rem;
}

.coment {
  font-size: 1rem;
  margin-top: 8%;
  line-height: 1.6;
  max-width: 375px;
}

.do {
  font-size: 0.9rem;
  margin-top: 20px;
  color: #777;
}

.komejirusi {
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: 5px;
  max-width: 358px;
}


.midasi-line {
  width: 350px;
  height: 1px;
  background-color: #333;
  margin-top: 5px;
}

.website {
  display: flex;
  justify-content: space-around;
  width: 1200px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 6%;
  margin-top: 10%;
}

.first {
  margin-top: 6%;
}

.reverse {
  flex-direction: row-reverse;
}

.mockup img {
  width: 100%;
  max-width: 550px;
  height: auto;
}

.detail-text {
  font-size: clamp(0.8rem, 1vw, 1rem);
  letter-spacing: normal;
  line-height: 3;
}

.website-comment {
  width: 42%;
  margin-top: 4%;
  padding-left: 5%;
}

.design {
  margin-top: 9%;
}


.logo-list {
  display: flex;
  padding-top: 40px;
  padding-bottom: 10px;
  padding-left: 10%;
  padding-right: 10%;
  justify-content: space-around;
  overflow: scroll;
}

.logo-list li {
  flex-shrink: 0;
  width: 280px;
  margin-left: 90px;
}

.logo-list li:first-child {
  margin-left: 0;
}

.logo-list dl {
  margin-top: 20px;
}

.logo-list dt {
  font-weight: bold;
  font-size: 1rem;
}

.logo-list dd {
  font-size: 0.8rem;
  margin-top: 5px;
}

.banner-list {
  display: flex;
  padding-top: 40px;
  padding-bottom: 10px;
  padding-left: 10%;
  padding-right: 10%;
  justify-content: space-around;
  overflow: scroll;
}

.banner-list li {
  flex-shrink: 0;
  width: 300px;
  margin-left: 50px;
}


.banner-list li:first-child {
  margin-left: 0;
}

.banner-list dl {
  margin-top: 20px;
  margin-left: 15px;
}

.drink_moji {
  margin-left: 28px !important;
}

.banner-list dt {
  font-weight: bold;
  font-size: 1rem;
}

.banner-list dd {
  font-size: 0.8rem;
  margin-top: 10px;
  line-height: 1.5;
}

.banner-line {
  width: 380px;
}

.graphic-list {
  display: flex;
  padding-top: 25px;
  padding-bottom: 10px;
  padding-left: 10%;
  padding-right: 10%;
  overflow: scroll;
}

.graphic-list li {
  flex-shrink: 0;
  width: 380px;
  margin-left: 80px;
}

.graphic-list dl {
  width: 304px;
  margin-left: 38px;
}

.graphic-list dt {
  font-weight: bold;
  font-size: 1rem;
}

.graphic-list dd {
  font-size: 0.8rem;
  margin-top: 10px;
  line-height: 1.5;
}

.graphic-list li:first-child {
  margin-left: 0;
}

.graphic-line {
  width: 390px;
  height: 1px;
  background-color: #333;
  margin-top: 5px;
}

.photograph-list {
  display: flex;
  padding-top: 40px;
  padding-bottom: 10px;
  padding-left: 10%;
  padding-right: 10%;
  justify-content: space-around;
  overflow: scroll;
}

.photograph-list li {
  flex-shrink: 0;
  width: 280px;
  margin-left: 80px;
}

.photograph-list li:first-child {
  margin-left: 0;
}

.photograph-list p {
  font-size: 0.8rem;
  margin-top: 10px;
}

.link-button {
  display: block;
  text-align: center;
  text-decoration: none;
  position: relative;
  width: 240px;
  margin-top: 25px;
  padding: 1.5rem 4rem;
  font-weight: bold;
  color: #555;
  background: rgba(51, 51, 51, 0.08);
  transition: 0.3s ease-in-out;
}

.link-button::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border: 1.5px solid #555;
  transition: 0.2s;
}

.link-button:hover {
  background: #555;
  color: #fff;
}

.link-button:hover::before {
  top: 0;
  left: 0;
}


.about-flex {
  display: flex;
  justify-content: space-around;
  margin-top: 6%;
  width: 1200px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10%;
}

.about-flex img {
  width: 100%;
  max-width: 420px;
  height: 100%;
}

.name {
  font-size: 1.7rem;
}

.about-text {
  width: 43%;
}

.name-text {
  margin-top: 10%;
}

.name-text p {
  margin-top: 2%;
  line-height: 1.8;
}

.about-detail-text {
  letter-spacing: normal;
  margin-top: 6%;
  line-height: 2;
}

.skills-flex {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  margin-bottom: 13%;
}

.skills-button-area {
  display: flex;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.skills-left img {
  width: 100%;
  max-width: 200px;
}

.skills-left {
  text-align: center;
  width: 50%;
}

#skills {
  width: 1200px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.design-text {
  text-align: left;
  letter-spacing: normal;
  margin-top: 8%;
  line-height: 3;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.skills-right img {
  width: 100%;
  max-width: 200px;
}

.skills-right {
  text-align: center;
  width: 50%;
}

.cording-text {
  text-align: left;
  letter-spacing: normal;
  margin-top: 8%;
  line-height: 3;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.skills-coment {
  margin-top: 13px;
}

.illustrator-button {
  display: inline-block;
  min-width: 85px;
  line-height: 20px;
  text-align: center;
  margin-top: 10px;
  border-style: solid;
  border-width: 1px;
  margin-right: 10px;
}

.photoshop-button {
  display: inline-block;
  min-width: 92px;
  line-height: 20px;
  text-align: center;
  margin-top: 10px;
  border-style: solid;
  border-width: 1px;
  margin-right: 10px;
}

.xd-button {
  display: inline-block;
  min-width: 82px;
  line-height: 20px;
  text-align: center;
  margin-top: 10px;
  border-style: solid;
  border-width: 1px;
  margin-right: 10px;
}

.figma-button {
  display: inline-block;
  min-width: 78px;
  line-height: 20px;
  text-align: center;
  margin-top: 10px;
  border-style: solid;
  border-width: 1px;
  margin-right: 10px;
}

.code-button {
  display: inline-block;
  min-width: 150px;
  line-height: 20px;
  text-align: center;
  margin-top: 10px;
  border-style: solid;
  border-width: 1px;
}

.contact-button {
  background-color: #fff;
  display: inline-block;
  min-width: 400px;
  line-height: 70px;
  border-radius: 10px;
  color: #333;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin-top: 20px;
  border-style: solid;
  border-width: 1px;
  letter-spacing: .1em;
  BORDER-color: #e6e6e6;
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.03);
}

.contact-button:hover {
  background-color: #999;
  color: #fff;
  border-style: solid;
}

.square-area {
  text-align: center;
  max-width: 830px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  background-color: rgba(51, 51, 51, 0.08);
  padding-top: 30px;
  padding-bottom: 95px;
  margin-bottom: 10px;
}

.square-area p {
  margin-top: 55px;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* 基本の共通 */
.fadein {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}


.fadein.active {
  opacity: 1;
  transform: translateY(0);
}

/* 下から */
.fadein-bottom {
  transform: translateY(60px);
}

.fadein-bottom.active {
  opacity: 1;
  transform: translateY(0);
}

/* 左から */
.fadein-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  display: block;
  /* or inline-block */
}

.fadein-left.active {
  opacity: 1;
  transform: translateX(0);
}


/* 右から */
.fadein-right {
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  display: block;
  /* or inline-block */
}

.fadein-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* 横並びにしたい dt と dd を flex で囲む */
.project-info .seisaku,
.project-info .seisaku-detail {
  display: inline-block;
  vertical-align: top;
}

/* dt の幅調整（お好みで） */
.project-info .seisaku {
  width: 120px;
  font-weight: bold;
}

/* dd は dt の隣に並ぶ */
.project-info .seisaku-detail {
  width: calc(100% - 130px);
  /* dt の幅+余白を引く */
  margin-top: 5%;
}

.seisaku-detail {
  font-size: 1rem;
}

.hosoku {
  font-size: 0.8rem;
  line-height: 1.5;
}

.photograph-line {
  width: 345px;
}

.works-wrapper h2 {
  margin-top: 0;
}

#about h2 {
  margin-top: 50px;
}

.hover-zoom img {
  transition: transform 0.3s ease;
}

.hover-zoom img:hover {
  transform: scale(1.05);
}


.top-link {
  position: fixed;
  bottom: 7px;
  right: 20px;
  display: flex;
  flex-direction: column;
  /* 縦並び */
  align-items: center;
  /* gap: 10px; */
  /* ← ここで余白を10pxに */
  text-decoration: none;
  color: #333;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.top-link.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.top-icon {
  width: 58px;
  height: 58px;
  transition: transform 0.3s ease;
}

.top-link:hover .top-icon {
  transform: scale(1.2);
}





@media(max-width: 600px) {
  .slideshow {
    height: calc(100vh - 50px);
  }

  .first-view-text h1 {
    font-size: 2rem;
  }

  .first-view-text {
    padding-left: 5%;
    padding-right: 5%;
  }

  h2 {
    font-size: 2.8rem;
    margin-top: 13%;
  }

  .works-wrapper h2 {
    margin-top: 0;
  }

  h3 {
    font-size: 1.5rem;
    margin-left: 8%;
    margin-top: 50px;
  }

  h4 {
    font-size: 1.6rem;
  }

  dt {
    font-size: 1.1rem;
    padding-bottom: 5px;
    margin-top: 0;
  }

  main {
    font-size: 0.9rem
  }

  #works {
    padding: 60px 0;
  }

  .coment {
    font-size: 0.9rem;
  }

  .do {
    font-size: 0.8rem;
  }

  .midasi-line {
    width: 43%;
  }

  .webdesign {
    margin-top: 8%;
  }

  .website {
    display: block;
    margin-top: 30px;
    max-width: 85%;
    margin-bottom: 10%;
  }

  .website-comment {
    margin-left: auto;
    margin-top: 20px;
  }

  .mockup img {
    max-width: 390px;
  }


  .logo-list li {
    width: 260px;
    margin-left: 30px;
  }

  .banner-list {
    padding-top: 5px;
  }

  .banner-list li {
    width: 280px;
    margin-left: 30px;
  }


  .banner-list dl {
    margin-top: 0;
  }

  .photograph-list li {
    width: 260px;
    margin-left: 30px;
  }

  .website-comment {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
  }

  .graphic-list {
    padding-left: 2%;
    padding-right: 2%;
  }

  .graphic-list li {
    flex-shrink: 0;
    width: 100%;
    margin-left: 0;
  }

  .graphic-list dl {
    margin-left: auto;
    margin-right: auto;
    width: 319px;
    padding-left: 15px;
  }

  .graphic-line {
    width: 51%;
  }

  .detail-text {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    line-height: 1.6;
  }

  .project-info .seisaku-detail {
    margin-top: 10%;
  }

  .link-button {
    min-width: 292px;
    line-height: 30px;
    font-size: 17px;
  }

  .link-button-area {
    text-align: center;
  }

  .about-flex {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .about-flex img {
    margin-top: 10px;
    width: 100%;
    max-width: 300px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .about-text {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 40px;
    margin-left: 10px;
  }

  .name-text p {
    font-size: 0.8rem;
    margin-top: 10px;
    line-height: 1.8;
  }

  .about-detail-text {
    font-size: 0.8rem;
    line-height: 1.8;
  }

  .skills-flex {
    display: block;
    margin-top: 0;
  }

  .skills-right {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .skills-left {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .skills-right img {
    max-width: 200px;
  }

  .skills-left img {
    max-width: 200px;
  }

  .design-text {
    width: 90%;
    line-height: 2;
  }

  .cording-text {
    width: 90%;
    line-height: 2;
  }

  .skills-button-area {
    flex-wrap: wrap;
    width: 90%;
  }

  .figma-button {
    margin-left: 0;
  }

  .contact-button {
    min-width: 300px;
    line-height: 75px;
    font-size: 1.2rem;
  }

  .square-area p {
    font-size: 1rem;
    width: 224px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
  }

  .square-area {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 80px;
  }

  .xd-button {
    margin-right: 10px;
  }

  .banner-line {
    width: 48%;
  }


  .graphic-list li {
    margin-left: 30px;
  }

  .banner-list dd {
    font-size: 0.8rem;
    margin-top: 5px;
    line-height: 1.2;
  }

  .photograph-line {
    width: 41%;
  }

  /* .top-link {
    gap: 4px;
  } */

  .top-icon {
    transition: transform 0.3s ease;
  }

  #works {
    padding-bottom: 0;
  }
}

@media (min-width: 601px) and (max-width: 960px) {
  .mockup img {
    max-width: 350px;
  }

  .website {
    margin-top: 7%;
    margin-bottom: 11%;
  }

  .website-comment {
    width: 50%;
    margin-top: 0;
  }

  .komejirusi {
    font-size: 0.7rem;
  }

  .banner-list li {
    width: 260px;
    margin-left: 40px;
  }


  .logo-list li {
    width: 260px;
    margin-left: 40px;
  }

  .photograph-list li {
    width: 260px;
    margin-left: 40px;
  }

  .graphic-list li {
    width: 360px;
  }

  .graphic-list dl {
    width: 304px;
    margin-left: 33px;
  }

  .midasi-line {
    width: 30%;
  }

  .detail-text {
    line-height: 1.5;
  }

  h2 {
    font-size: 3.3rem;
  }

  h3 {
    font-size: 1.6rem;
  }

  h4 {
    font-size: 1.7rem;
  }

  dt {
    font-size: 1rem;
  }

  .seisaku-detail {
    font-size: 0.9rem;
  }

  .name {
    font-weight: bold;
    font-size: 1.1rem;
  }

  .about-flex img {
    width: 100%;
    max-width: 300px;
    height: 100%;
  }

  .about-text {
    font-size: 0.8rem;
    width: 50%;
  }

  .design-text {
    line-height: 2;
    font-size: 0.8rem;
  }

  .cording-text {
    line-height: 2;
    font-size: 0.8rem;
  }

  .skills-button-area {
    flex-wrap: wrap;
  }

  .figma-button {
    margin-left: 0;
  }

  .skills-left img {
    width: 100%;
    max-width: 260px;
  }

  .skills-right img {
    width: 100%;
    max-width: 260px;
  }

  .square-area {
    width: 85%;
    padding-top: 20px;
    padding-bottom: 90px;
  }

  .xd-button {
    margin-right: 10px;
  }

  .banner-line {
    width: 32%;
  }

  .photograph-line {
    width: 29%;
  }

  .graphic-line {
    width: 34%;
  }

  #works {
    padding: 70px 0;
  }


  .link-button {
    width: 260px;
  }
}