@charset "UTF-8";

html {
  font-size: 100%;
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow: visible !important;
  background-color: #252525;
  color: #fff;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
}
li {
  list-style: none;
}


/*--------------------
header
--------------------*/
#header {
  width: 100%;
  z-index: 10;
  color: #fff;
  position: fixed;
  left: 0;
  top: 0;
  padding: 20px 30px;
}
#header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#header-inner h2 {
  color: #444;
}
#header-navi {
  position: fixed;
  top: 0;
  right: -100vw;
  width: 60%;
  color: #fff;
  padding: 36px 50px;
  margin-right: 5%;
  transition: all 0.5s;
  text-align: end;
  z-index: 20;
  opacity: 0;
}
#header-navi a {
  color: #fff;
}
#header-navi li {
  margin-bottom: 14px;
}

/*---ハンバーガーメニュー---*/
.open #header-navi {
  right: 0;
  opacity: 1;
}
.toggle_btn {
  width: 30px;
  height: 30px;
  position: relative;
  transition: all 0.5s;
  cursor: pointer;
  z-index: 20;
}
.toggle_btn span {
  display: block;
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: #444;
  border-radius: 4px;
  transition: all 0.5s;
}

.toggle_btn span:nth-child(1) {
  top: 1px;
}
.toggle_btn span:nth-child(2) {
  bottom: 18px;
}
.toggle_btn span:nth-child(3) {
  bottom: 6px;
}
/* .open .toggle_btn span {
  background-color: #808080;
} */
/*
1本目の線を-45度回転
*/
.open .toggle_btn span:nth-child(1) {
  -webkit-transform: translateY(4px) rotate(-45deg);
  transform: translateY(4px) rotate(-45deg);
}
/*
2本目の線を45度回転
*/
.open .toggle_btn span:nth-child(2) {
  -webkit-transform: translateY(-4px) rotate(45deg);
  transform: translateY(-4px) rotate(45deg);
}
.open .toggle_btn span:nth-child(3) {
  display: none;
}
#mask {
  display: none;
  transition: all 0.5s;
}
.open #mask {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #808080;
  opacity: .9;
  z-index: 10;
  cursor: pointer;
}

/*--------------
mainvisual
--------------*/
#mainvisual {
  height: 100vh;
  background: url('../img/PC_bg.jpg') no-repeat center center / cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
}

.main-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

#content1 {
  margin-top: 100px;
  margin-bottom: 100px;
}

#content1 .en,
#content1 .ja {
  text-align: center;
}
/* .content1 {
  margin-top: 100px;
  margin-bottom: 100px;
  display: flex;
} */
/* #content1 img {
  margin-left: 5%;
  width: 50%;
} */

/*----------------
カルーセル
----------------*/
.carousel {
  position: relative;
  width: 50%;
  margin: 100px auto;
  overflow: hidden;
  max-width: 800px;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  max-height: 600px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  transform-style: preserve-3d;
}

.carousel-track a {
  display: block; /* インライン要素をブロックに */
  width: 100%;     /* トラック内でフル幅を取る */
  flex-shrink: 0;  /* サイズを縮めない */
}

.carousel-track img {
  width: 100%;
  /* flex-shrink: 0; */
  max-width: 100%;
  height: auto;
  display: block;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

.carousel .prev {
  left: 10px;
}

.carousel .next {
  right: 10px;
}


.text {
  width: 50%;
  margin-left: 5%;
  margin-top: 5%;
  line-height: 2;
}
.text p {
  margin-top: 20px;
  margin-bottom: 50px;
}

.link, .link2 {
  width: 200px;
  height: 50px;
  line-height: 3.5;
  display: inline-block;
  margin-top: 10px;
  text-align: center;
  box-sizing: border-box;
}
.link {
  width: 50%;
  height: 80px;
  margin: 0 auto;
  display: flex;
  justify-content: center; /* 水平方向中央揃え */
  align-items: center;     /* 垂直方向中央揃え */
}

.link a {
  display: inline-block;
  text-decoration: none;
  width: 100%;
}

.link span {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 80px;
  text-align: center;
  color: #252525;
  font-size: 2rem;
  font-weight: bold;
  background-color: #808080;
  border-radius: 30px;
  box-sizing: border-box;
  padding: 0 24px;
}

.link2 span {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: #252525;
  font-weight: bold;
  background-color: #808080;
  border-radius: 30px;
  box-sizing: border-box;
}


/*-------------
policy
-------------*/
#content2 {
  margin: 0 auto;
  text-align: center;
}
.en {
  color: #444;
  font-size: 5rem;
}
.content-policy {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8%;
}
.policy1,
.policy2,
.policy3 {
  max-width: calc(100% / 3);
}
.content-policy img {
  margin-top: 30px;
  margin-bottom: 30px;
  max-height: 200px;
  max-width: 200px;
}
.policy3 img {
  padding: 10% 0;
}

/* アニメーション初期状態 */
.policy1, .policy2, .policy3 {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.8s ease;
}

/* アニメーション発動時の状態 */
.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 順番にディレイ（ナチュラルな流れ用） */
.policy1.in-view {
  transition-delay: 0s;
}
.policy2.in-view {
  transition-delay: 0.2s;
}
.policy3.in-view {
  transition-delay: 0.4s;
}


.business {
  margin-bottom: 300px;
}

#content3 {
  max-width: 80%;
  margin: 200px auto;
}

.html, .css, .java, .jq, .wp, .sp {
  display: flex;
  margin: 10px 40px;
  width: 170px;
}

.skill {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 20px;
}

.skill img {
  height: 50px;
}
.skill p {
  text-align: center;
  padding-left: 15px;
}

.business, #about {
  display: flex;
  justify-content: center;
}
.left, .right {
  width: 50%;
}
#content3 h3 {
  margin-bottom: 15px;
}
#content3 p {
  margin-bottom: 20px;
}
.business .right {
  position: relative;
  width: 45%;
  height: 45%;
  aspect-ratio: 3 / 2;
  margin-left: 5%;
  margin-top: 5rem;
  background-color: #666;
  /* max-height: 300px; */
}
.business .right img,
#about .left img {
  position: absolute;
  width: 100%;
  aspect-ratio: 3 / 2;
}

.business .right img {
  position: absolute;
  top: 30px;
  left: -40px;
}
#about .right {
  margin-left: 5%;
}
#about .left {
  position: relative;
  width: 45%;
  height: 45%;
  /* max-height: 300px; */
  aspect-ratio: 3 / 2;
  margin-right: 5%;
  background-color: #666;
  margin-top: 5rem;
}
.about1 {
  position: absolute;
  top: 30px;
  right: -40px;
}

#about .right .prof {
  width: 100px;
  height: 100px;
  border-radius: 50%;  /* 円形にする */
  position: relative;  /* 基準値とする */
  overflow: hidden;
  margin: 20px 0 40px 20px;
}
/*#about .right .prof img {
  position: absolute;
  top: 300;
  left: 10;
  width: auto;
  height: 100%;
  object-fit: cover;
}*/

#about .name {
  font-size: 1.5rem;
}


/* 初期状態（画面外 + 非表示） */
.animate-left, .animate-right {
  opacity: 0;
  transform: translateX(100px);
  transition: all 1s ease;
}
.animate-left {
  transform: translateX(-100px);
}

/* 表示されたときにアニメーション開始 */
.in-view {
  opacity: 1;
  transform: translateX(0);
}


/*-----------------
footer
-----------------*/

.footer {
  background-color: #444; /* 青背景（画像に近い色） */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 150px;
  margin-top: 120px;
  font-size: 0.9rem;
  font-family: 'Noto Sans JP', sans-serif;
}

.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
  font-weight: bold;
}

.company-name {
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 1px;
}

.since {
  font-size: 0.75rem;
  margin-top: 4px;
  opacity: 0.8;
}

/*-------------------------------------------
トップへ戻るボタン
-------------------------------------------*/
/*
右下に固定で配置
表示・非表示の切り替えはjQueryで行うため、詳細は「main.js」のコメントを参照
*/
#to-top {
  width: 50px;
  height: 50px;
  background-color: #121212;
  border: solid 1px #fff;
  border-radius: 50%;
  position: fixed;
  right: 25px;
  bottom: 25px;
  opacity: 0.4;
}
/*
中の三角は疑似要素で作成
*/
#to-top::after {
  content: "";
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid #fff;
  position: relative;
  left: 26%;
  bottom: 4px;
}

/*------------------
レスポンシブ対応
------------------*/

/* スマホ画面サイズ (〜768px) */
@media screen and (max-width: 768px) {

  #header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  #header h2 {
    font-size: 40px;
  }

  .toggle_btn {
    position: absolute;
    top: 20px;
    right: 20px;
  }

  #header-navi {
    width: 80%;
    padding: 40px 20px;
  }

  .carousel {
    width: 90%;
  }

  .link, .link2 {
    width: 90%;
    height: 60px;
    font-size: 1.2rem;
  }

  .link span,
  .link2 span {
    font-size: 1.2rem;
    line-height: 60px;
  }

  .animate-left,
  .animate-right {
    transform: none !important;
  }
  
  .policy1, .policy2, .policy3 {
    transform: translateY(20px) scale(0.98);
  }

  .animate-left {
    transform: translateX(-50px);
  }

  .animate-right {
    transform: translateX(50px);
  }

  .content-policy {
    flex-direction: column;
    /* gap: 40px; */
  }

  .policy1,
  .policy2,
  .policy3 {
    max-width: 90%;
    margin: 0 auto;
  }

  #mainvisual {
    margin-bottom: 50px;
  }
  #content1, #content2 {
    margin-bottom: 50px;
    margin-top: 0;
  }


  #content3 {
    flex-direction: column;
    max-width: 90%;
  }

  .content-policy {
    margin-top: 0;
    margin-bottom: 0;
  }

  .en {
    text-align: center;
    margin-bottom: 20px;
    font-size: 70px;
  }

  .html, .css, .java, .jq, .wp, .sp {
    width: 100px;
    margin: 10px 30px;
  }

  .business {
    margin-bottom: 30px;
  }
  .skill {
    margin: auto 30px;
  }
  


  .business,
  #about {
    display: flex !important;
    flex-direction: column !important;
  }

  #about {
    margin-top: 10px;
  }

  .business .left,
  #about .right {
    display: flex !important;
    flex-direction: column !important;
  }

  #prof {
    display: flex;
    flex-direction: column;
  }

  .business .left h2.en {
    order: 1;
  }
  
  .business .right {
    order: 2;
    margin: 50px auto;
    text-align: center;
    width: 100%;
    position: static;
    aspect-ratio: auto;
    background: none;
  }
  .business .left .skill {
    order: 3;
  }

  #about .right h2.en {
    order: -4;
  }
  
  #about .left {
    order: 1;
    margin: 50px auto;
    text-align: center;
    width: 100%;
    position: static;
    aspect-ratio: auto;
    background: none;
  }
  #about .right .prof {
    order: -2;
    margin: 0 auto;
    justify-content: center;
  }
  #about .right p {
    order: 7;
    margin-top: 20px;
  }

  /* 追加：中央寄せ設定 */
  .business .left,
  .business .right,
  #about .left,
  #about .right {
    display: flex;
    flex-direction: column;
    align-items: center; /* 中央寄せのカギ */
    text-align: center;  /* テキスト中央 */
  }

/* skill アイコン群中央寄せ */
  .skill {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

/* prof（プロフィール部分）中央寄せ */
#prof {
  align-items: center;
  text-align: center;
}

/* .prof-text 内の文章も中央揃え */
.prof-text {
  text-align: center;
}

.business .right img,
#about .left img,
.prof img {
  display: block;
  margin: 0 auto;
}


  .left, .right {
    width: 100%;
    /* margin: 0; */
  }

  .business .right img,
  #about .left img {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    aspect-ratio: auto;
  }

  .about1 {
    position: relative;
    top: 0;
    right: 0;
  }

  .footer {
    flex-direction: column;
    padding: 20px;
    font-size: 0.8rem;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    margin: 10px 0;
  }

  #to-top::after {
    content: "";
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff;
    position: relative;
    left: 0px;
    bottom: 1px;
  }
}


/*-------------------------------------
works
-------------------------------------*/
.mockup-wrapper {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 200px;
  margin-bottom: 30px;
}

.device {
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.works-text {
  text-align: center;
}

#link-content {
  margin-bottom: 200px;
}

/* PCモックアップ */
.device.pc {
  max-width: 600px;
  height: 400px;
  border: 8px solid #ccc;
  border-radius: 10px;
  position: relative;
  padding-top: 30px;
  background: #f5f5f5;
}

.device.pc::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: red;
  box-shadow: 20px 0 yellow, 40px 0 green;
}

/* スマホモックアップ */
.device.smartphone {
  width: 220px;
  height: 400px;
  border: 10px solid #333;
  border-radius: 40px;
  padding: 20px 10px;
  background: #000;
}

.frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .mockup-wrapper {
    flex-direction: column;
    align-items: center;
    margin: 100px auto;
  }

  .device.pc,
  .device.smartphone {
    max-width: 90vw;
    max-height: 400px;
  }
}