@charset "UTF-8";

/* ------------------------------------------------
  reset
------------------------------------------------ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

@media screen and (max-width: 767px) {
  html {
    font-size: 88%;
  }
}


/* ------------------------------------------------
  body
------------------------------------------------ */
body {
  background-color: #fff;
  color: #333;
  font-size: 1.0rem;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.0;
}


/* ------------------------------------------------
  header
------------------------------------------------ */
.header {
  width: 40%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
}

.hero_video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  border: none;
  object-fit: cover;
  object-position: left bottom;
  z-index: -100;


}

.header_content {
  display: grid;
  place-content: center;
  height: 100vh;
  background: linear-gradient(25deg, rgba(0, 255, 76, 0.6), rgba(30, 0, 255, 0.7));

}

h1 {
  width: 200px;
  height: fit-content;
  position: relative;
  margin-bottom: 20px;
}

h1::after {
  content: "";
  position: absolute;
  transform: rotate(-20deg);
  top: 40px;
  right: -50px;
  width: 160px;
  height: 100px;
  background: url(../img/Nagasawa.gif);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.face {
  width: 120px;
  margin: 0 auto;
}

.pr {
  color: #000;
  line-height: 1.8;
  margin-top: 30px;
}

/* ------------------------------------------------
  nav
------------------------------------------------ */

.pc-nav {
  width: 100%;
  margin: 45px 0 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.pc-nav>ul {
  /* opacity: 0; */
  display: flex;
  justify-content: flex-end;
  background-color: rgba(173, 216, 230, 0.8);
  padding: 10px 20px;
  border-radius: 30px;
  width: fit-content;
  margin-left: auto;
  margin-right: 20px;
  /* animation: sideUp .5s linear .5s forwards */
}

.pc-nav>ul>li {
  padding: 10px 0
}

.pc-nav>ul>li:nth-of-type(-n+4)>a {
  border-right: 2px solid #000
}

.pc-nav>ul>li>a {
  font-size: clamp(1rem, 0.8rem + 1.5vw, 1.75rem);
  display: block;
  font-weight: bold;
  color: #000;
  transition: .2s;
  padding: 0 15px;
  white-space: nowrap;
}

.pc-nav>ul>li>a:hover {
  text-underline-offset: 10px;
  text-decoration: underline solid #000 2px
}



/* ------------------------------------------------
  main
------------------------------------------------ */

main {
  margin: 50px auto;
}

.container {
  width: 60%;
  margin-left: 40%;
  padding: 10px 40px;
}

section {
  padding: 60px 20px 0;
}


/* ---------- original ---------------------------------- */
.original_website {
  margin-top: 150px;
  background: #e6e5f56a;
  /* 軽く背景色をつけカード感出す */
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}

.sec_block {
  display: grid;
  grid-template-columns: 30% 70%;
}

h2 {
  padding: 30px 0 16px;
  font-size: 30px;
}

h2.original_title,
.web-title,
.banner-title,
.js-title {
  padding: 40px 0;
  font-family: "Cherry Swash", sans-serif;
  font-weight: normal;
  text-align: center;
}

.concept {
  margin-bottom: 30px;
  text-align: center;
}

/* .original_website .iframe-img{
  transition: transform 0.3s;
} */

.sec_block h3 {
  margin-bottom: 20px;
  padding-left: 20px;
  border-bottom: 2px dotted #666;
  color: #1594b7;
  font-weight: normal;
}

.sec_block ul {
  margin-bottom: 20px;
  padding-right: 20px;
  border-bottom: 2px dotted #666;
}

.sec_block li {
  margin-bottom: 20px;
  line-height: 1.6;
}

.t-icon img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}


h3 {
  position: relative;
}

h3::after {
  position: absolute;
  top: 22px;
  left: 20px;
  font-size: 12px;
  color: #999;
}

h3#persona::after {
  content: "ペルソナ";
}

h3#theme::after {
  content: "テーマ";
}

h3#issue::after {
  content: "課題";
}

h3#information::after {
  content: "情報設計";
}

h3#process::after {
  content: "デザインプロセス";
}

h3#favicon::after {
  content: "ファビコン";
}

h3#touch-icon::after {
  content: "タッチアイコン";
}

h3#time::after {
  content: "制作時間";
}

h3#tool::after {
  content: "使用ツール";
}

@media screen and (max-width: 767px) {
  .sec_block h3 {
    padding-left: 10px;
  }

  .sec_block ul {
    padding-right: 4px;
  }

  .t-icon img {
    width: 100px;
    height: 100px;
    object-fit: cover;
  }

  h3 {
    font-size: 16px;
  }

  h3::after {
    position: absolute;
    top: 22px;
    left: 20px;
    font-size: 9px;
  }

  h3#time::after {
    top: 37px;
  }
}


/* ---------- web --------------------------------------- */

.site {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 40px 0;
}

.site-detail {
  padding: 15px 5px;
  color: #333;
}

.site-name {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 0.95rem;
  border-left: 3px solid #1594b7;
  padding-left: 8px;
}

.site-detail ul {
  margin: 0;
  padding: 0;
  list-style: none;
  /* 元のul設定を上書き */
}

.site-detail li {
  font-size: 0.85rem;
  line-height: 1.6;
  position: relative;
  padding-left: 1.2em;
  transform: none !important;
  /* 個別の箇条書きが動くのを強制停止 */
  pointer-events: none;
  /* 文字にマウスが乗っても反応させない */
}

/* 箇条書きのポッチ（・）を擬似要素で作成 */
.site-detail li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #1594b7;
}

.web .site li {
  background: #ebf8f4;
  /* 軽く背景色をつけカード感出す */
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}

/* 画像ホバー時の親要素の挙動 */
.web .site li:hover {
  transform: translateY(-5px);
  /* カード全体を少し浮かせる演出 */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.site li a,
.iframe-img a {
  display: block;
  overflow: hidden;
  position: relative;
  background-color: transparent;
  /*  ホバーで画像が透けた時透明に */
}

.site li a img,
.iframe-img a img {
  transition: transform 0.3s, opacity 0.3s, filter 0.3s;
  display: block;
  width: 100%;
  padding: 20px 10px 0;

}

.site li a:hover img,
.iframe-img a:hover img {
  transform: scale(1.03);
  filter: brightness(0.7);
  /* opacity: 0.5;           画像を暗くする */
}

/* 中央に「VIEW SITE」の文字を浮かび上がらせる */
.site li a::after,
.iframe-img a::after {
  content: "VIEW SITE";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  border: 1px solid #fff;
  padding: 10px 20px;
  font-size: 0.8rem;
  /* font-family: 'Cherry Swash', sans-serif; */
  letter-spacing: 0.2em;
  opacity: 0;
  /* 通常時は隠す */
  transition: all 0.4s ease;
  /* pointer-events: none; 文字自体が邪魔しないように */
  background-color: rgba(0, 0, 0, 0.3);
  /* 文字の周りだけ少し暗くする */
  z-index: 2;
  white-space: nowrap;
}

/* ホバー時に文字を表示 */
.site li a:hover::after,
.iframe-img a:hover::after {
  opacity: 1;
  transform: translate(-50%, -60%);
}


/* PC表示：2列固定 */
@media screen and (min-width: 768px) {
  .web .site {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}


/* ---------- banner --------------------------------------- */

.controls {
  text-align: center;
  margin: 20px auto;
}

/* ボタンのスタイル */
.filter {
  font-size: 20px;
  font-weight: bold;
  border: 1px solid #ddd;
  cursor: pointer;
  display: inline-block;
  margin-right: 15px;
  padding: 20px 25px;
  background: #f2f2f2;
  color: #333;
  transition: all 0.25s ease;
}

/* 選択中のボタンのスタイル */
.filter.is-active {
  background-color: #222;
  color: #fff;
  box-shadow: 0 6px 15px rgba(0, 0, 0, .25);
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 4px;
}

.banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 40px 0;
  list-style: none;
  padding: 0;
}

#bannerid li {
  /* 最初は透明（JSが動くとfadeInで1になる） */
  opacity: 0;
  margin: 0;
}

#bannerid li a,
#js li a,
#web li a {
  display: block;
  /* overflow: hidden; */
  border-radius: 8px;
}

/* 横長のバナーを2倍の幅（2マス分）に広げる */
.banner li.w-double {
  grid-column: span 2;
}

/* 画像が2マス分の幅いっぱいに広がるように調整 */
.banner li.w-double img {
  width: 100%;
  height: auto;
  object-fit: cover; /* 画像の比率を保ちつつ枠を埋める場合 */
}

/* 画像の動き（ズーム）の設定 */
#bannerid li img,
#js li img,
#web li img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* マウスを乗せた時の動き */
#bannerid li a:hover img,
#js li a:hover img {
  filter: brightness(1.1);
  transform: scale(1.1);
}



/* アニメーションの定義 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ---------- javascript ---------------------------------- */

.js {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 40px 0;
}

/* ---------- About --------------------------------------- */

.about_content {
  display: flex;
  gap: 40px;
  /* 画像とテキストの間隔 */
  align-items: flex-start;
  margin-top: 20px;
}

.about_img {
  flex: 0 0 40%;
  /* 画像の横幅（全体の40%） */
}

.about_img img {
  width: 100%;
  height: auto;
}

.about_text {
  flex: 1;
  /* 残りのスペースをすべて使う */
}

.about_text h3 {
  font-size: 2.2rem;
  font-family: "Klee One", cursive;
  font-weight: 500;
  margin-bottom: 15px;
  /* border-bottom: 2px solid #1594b7; */
  display: inline-block;
  background: linear-gradient(transparent 20%, #e0f7fa 60%);
  padding: 0 0.5em;
  /* 文字サイズに合わせて伸び縮み */
}

.profile_desc {
  line-height: 1.8;
  margin: 20px;
  font-size: 0.95rem;
}

.skill_list {
  list-style: none;
  padding: 0;
}

.skill_list li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.draw-svg path,
.draw-svg .cls-1 {
  fill: none !important;
  /* 塗りを強制的に消す */
  stroke: #1594b7;
  stroke-width: 1.5;
  stroke-dasharray: 2100;
  stroke-dashoffset: 2100;
}

/* アニメーション実行時 */
.draw-svg.is-active path,
.draw-svg.is-active .cls-1 {
  animation: draw-line 6s ease forwards;
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

/* ------------------------------------------------
  footer
------------------------------------------------ */
.footer {
  padding: 30px 0;
  border-top: 1px dotted #999;
  text-align: center;
}

/* ------------------------------------------------
  pointer
------------------------------------------------ */
a, .btn, #toggle_btn, .filter,dt{
  cursor: url('../img/my-pointer1.png') 16 0,pointer;
}


/* ------------------------------------------------
  Mobile Layout (767px以下)
------------------------------------------------ */
@media screen and (max-width: 767px) {

  /* 共通・基本 */
  html {
    font-size: 92%;
  }

  .header {
    position: static;
    width: 100%;
    height: 100vh;
    display: block;
  }

  .container {
    width: 100%;
    margin-left: 0;
    padding: 0 10px;
  }

  /* ナビ */
  .pc-nav>ul {
    width: 95%;
    margin: 0 auto;
    padding: 8px 10px;
    justify-content: center;
  }

  .pc-nav>ul>li>a {
    padding: 0 10px;
    font-size: 16px;
  }

  /* 作品リスト（Web/Banner/JS） */
  
  #bannerid li img, #js li img {
    padding: 0; /* 画像周りに余計な隙間がある場合はこれで解消 */
  }

  .banner,
  .js {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
    margin: 20px 0;
  }

  .site-detail li {
    font-size: 0.8rem;
  }

/* スマホでは画像に被る VIEW SITE の文字を消す */
/* .site li a::after,
.iframe-img a::after {
  display: none !important;
} */

/* スマホではホバー時の画像の変化（暗くなる・拡大など）も抑える */
/* .site li a:hover img,
.iframe-img a:hover img {
  transform: none;
  filter: none;
} */

  /* フィルターボタン */
  .controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin: 20px auto;
  }

  .controls .filter {
    font-size: 14px;
    padding: 10px 12px;
    margin-right: 0;
    white-space: nowrap;
  }

  /* Aboutセクション */
  .about_content {
    flex-direction: column;
    gap: 20px;
  }

  .about_img {
    width: 60%;
    margin: 0 auto;
  }

  .about_text h3 {
    font-size: 1.8rem;
    padding: 0 0.3em;
  }

  /* セクション固有の調整 */
  .sec_block h3 {
    padding-left: 10px;
  }
}