@charset "utf-8";

/* =========================================
    *  Style.css
   ========================================= */
/* ------------------------------------------
    共通デザイン
   ------------------------------------------ */
.contact {
  margin: 0 auto;
  padding: 50px 0;
  background-color: var(--color-bg2);
  border-radius: 50px;
  z-index: 1;
}

/* ------------------------------------------
        サイト名
   ------------------------------------------ */

.home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 30vh;
}

.top-container {
  margin: 0;
  height: 55vh;
  /* 画面の高さ */
  background-image: url("../img/key-visual.jpg");
  background-size: cover;
  /* 画面いっぱいに表示（縦横比維持） */
  background-position: center;
  /* 中央に配置 */
  background-repeat: no-repeat;
  /* 繰り返しなし */
  position: relative;
}
.site-name {
  width: 100%;
  height: auto;
  position: absolute;
  top: 45%;
  background-color: var(--color-text);
}
.svg-wrapper {
  max-width: 600px;
  margin: 30px auto;
}
#layer > path {
  fill: var(--color-text);
  /* 塗りの色 */
  stroke: var(--color-text3);
  /* 線の色 */
  stroke-width: 1px;
  /* 線の幅 */
  stroke-dasharray: 360px;
  stroke-dashoffset: 360px;
  animation: svg-anime 3s 0.5s forwards linear;
}
@keyframes svg-anime {
  0% {
    stroke-dashoffset: 360px;
  }
  80% {
    stroke-dashoffset: 0;
    fill: var(--color-text);
  }
  100% {
    stroke-dashoffset: 0;
    fill: var(--color-text3);
  }
}

/* PC表示用のスタイル（768px以上） */
@media screen and (min-width: 768px) {
  .top-container {
    margin: 0;
    height: 100vh; /* 画面の高さ */
  }

  .site-name {
    width: 100%;
    height: auto;
    position: absolute;
    top: 40%;
    background-color: var(--color-text);
  }
}
/* ------------------------------------------
        制作品
   ------------------------------------------ */

/* .section-title {
  font-size: 1.5rem;
  font-weight: 900;
  font-style: italic;
  text-align: center;
  letter-spacing: 0.2em;
} */

/* .section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.section-title .sub-title {
  display: block;
  font-size: clamp(0.8rem, 4vw, 0.9rem);
  color: #666;
  margin-top: 0.5em;
  font-weight: normal;
  letter-spacing: 0.05em;
} */

/* PC表示用のスタイル（768px以上） */
@media screen and (min-width: 768px) {
  .works {
    padding: 60px 20px;
  }
  /* .section-title {
    font-size: 2.5rem;
    font-weight: 900;
    font-style: italic;
    text-align: center;
    letter-spacing: 0.2em;
  } */
  .view-more {
    right: 150px;
  }
}

/* ------------------------------------------
 ピンク帯の角丸パネル群（PROFILE / LIKE / SKILLS）
   ------------------------------------------ */

.about {
  background: var(--color-bg1);
  padding: clamp(40px, 6vw, 80px) 0;
  border-radius: 50px 50px 0 0;
}
.panel {
  max-width: 300px;
  margin: clamp(100px, 10vw, 200px) auto;
  background: #f3e6e7; /* 薄いピンクのパネル */
  border-radius: 24px;
  padding: clamp(18px, 3vw, 24px);
  box-shadow: 5px 5px 0 rgba(43, 108, 183, 0.15);
  position: relative;
}
.panel-head {
  margin-bottom: 20px;
}
.panel-title {
  font-size: 1.5rem;
  font-weight: 800;
  font-style: italic;
  text-align: center;
  letter-spacing: 0.15em;
  position: absolute;
  top: -70px;
  left: 35%;
  transform: translateX(-50%);
}

.outline {
  color: transparent;
  -webkit-text-stroke: 2px #2b6cb7;
  /* 枠だけ */
}

.fill {
  color: #f3e6e7; /* 中だけ */
}

.panel-body {
  min-height: 220px;
  padding: clamp(16px, 3vw, 50px) 0;
}

/* パネル右上の小さめチップボタン */
.btn-chip {
  position: absolute; /* パネル基準で固定 */
  top: 16px; /* 上からの余白 */
  right: 16px; /* 右からの余白 */

  --h: 34px;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  height: var(--h);
  line-height: var(--h);
  padding: 0 12px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text);
  transition: color 0.3s ease;
}
.btn-chip .arrow {
  display: inline-block; /* transformを効かせるため */
  transition: transform 0.3s ease;
}
.btn-chip:hover {
  color: var(--color-text2);
}

.btn-chip:hover .arrow {
  transform: translateX(4px); /* 矢印を右にずらす */
}

/* PC表示用のスタイル（768px以上） */
@media screen and (min-width: 768px) {
  .panel {
    max-width: 850px;
    margin: clamp(100px, 10vw, 200px) auto;
    background: #f3e6e7; /* 薄いピンクのパネル */
    border-radius: 24px;
    padding: clamp(18px, 3vw, 24px);
    box-shadow: 5px 5px 0 rgba(43, 108, 183, 0.15);
    position: relative;
    align-items: center;
  }
  .panel-title {
    font-size: 3rem;
    font-weight: 900;
    position: absolute;
    top: -100px;
    left: 25%;
    transform: translateX(-50%);
  }

  .outline {
    color: transparent;
    -webkit-text-stroke: 5px #2b6cb7;
    /* 枠だけ */
  }

  /* パネル位置の調整 */
  .contact {
    position: relative;
  }
  #profile {
    left: -10%;
  }
  #likes {
    left: 12%;
  }
  #skills {
    left: -10%;
  }
}

/* ------------------------------------------
    CONTACTフォーム
   ------------------------------------------ */

.contact-body {
  text-align: center;
  margin-top: 20px;
  position: relative;
  min-height: 80px;
}
.btn {
  display: inline-block;
  padding: 10px 30px;
  color: var(--color-button-text);
  border: 2px solid var(--color-button-border);
  border-radius: 25px;
  background-color: var(--color-bg2);
  box-shadow: 0px 5px 12px #cad4e2, -6px -6px 12px #fff;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: absolute;
  left: 20%;
  bottom: -50px;
}
.btn:hover {
  color: var(--color-text3);
  background-color: var(--color-button-text);
  text-decoration: none;
  bottom: -52px;
}

/* PC表示用のスタイル（768px以上） */
@media screen and (min-width: 768px) {
  .btn {
    left: 43%;
    bottom: 50px;
  }
  .btn:hover {
    bottom: 45px;
  }
}
/* ------------------------------------------
プロフィールパネルの画像とテキスト配置
   ------------------------------------------ */
.profile-image {
  text-align: center;
  margin-bottom: 20px;
}
.profile-image .image-parts {
  max-width: 60%;
  height: auto;
}
.profile-text {
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.6;
}
.profile-text p {
  margin-bottom: 10px;
}
/* PC表示用のスタイル（768px以上） */
@media screen and (min-width: 768px) {
  .profile-image .image-parts {
    max-width: 50%;
    height: auto;
  }
  .profile-text {
    font-size: 1.2rem;
    line-height: 1.8;
  }
}

/* ------------------------------------------
すきなものパネルの画像とテキスト配置
   ------------------------------------------ */

.mylike-image {
  text-align: center;
  margin: 20px 0;
  display: flex;
  justify-content: center;
}
.mylike-image .mylike-image-parts {
  max-width: 30%;
  height: auto;
  margin: 0 10px;
}
/* アニメーション */
.fluffy {
  /* アニメーションの指定 */
  animation-name: fluffy-animation;
  /* キーフレーム名 */
  animation-duration: 3s;
  animation-timing-function: ease-in-out;
  /* 速度の変化を滑らかに */
  animation-iteration-count: infinite;
  /* 無限に繰り返す */
  animation-direction: alternate;
  /* 往復させる */
}
.fluffy:nth-child(1) {
  animation-delay: 0s;
}
.fluffy:nth-child(2) {
  animation-delay: 1.5s;
}
.fluffy:nth-child(3) {
  animation-delay: 3s;
}

/* アニメーションのキーフレームを定義 */
@keyframes fluffy-animation {
  0% {
    transform: translateY(0);
    /* アニメーション開始時（元の位置） */
  }
  50% {
    transform: translateY(-20px);
    /* 50%の時点で-20px上に移動 */
  }
  100% {
    transform: translateY(0);
    /* 100%の時点で元の位置に戻る */
  }
}

.mylike-text {
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.6;
}
.mylike-text p {
  margin-bottom: 10px;
}
/* PC表示用のスタイル（768px以上） */
@media screen and (min-width: 768px) {
  .mylike-image .mylike-image-parts {
    max-width: 30%;
    height: auto;
    margin: 0 15px;
  }
  .mylike-text {
    font-size: 1.2rem;
    line-height: 1.8;
  }
}

/* ------------------------------------------
    CONTACTフォーム
   ------------------------------------------ */
.contact-wrap {
  display: flex;
  flex-direction: column; /* 上下配置（横並びにしたい場合は row） */
  align-items: center; /* 中央揃え */
  gap: 12px; /* 画像とテキストの間隔 */
  margin: 40px 0;
  text-align: center;
}

.contact-image {
  max-width: 25%;
  height: auto;
  image-rendering: pixelated; /* ピクセル感を残す */
  position: relative; /* アニメーション用に基準を持たせる */
  animation: fly 3s ease-in-out infinite;
}

/* アニメーション定義 */
@keyframes fly {
  0% {
    transform: translate(-120px, -10px) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.9;
  }
  100% {
    transform: translate(150px, -120px) rotate(20deg);
    opacity: 0;
  }
}

/* PC表示用のスタイル（768px以上） */
@media screen and (min-width: 768px) {
  .contact-image {
    max-width: 10%;
    height: auto;
    z-index: -10;
    animation: fly-pc 3s ease-in-out infinite;
  }
  /* アニメーション定義 */
  @keyframes fly-pc {
    0% {
      transform: translate(-250px, -50px) rotate(0deg);
      opacity: 0;
    }
    20% {
      opacity: 0.9;
    }
    70% {
      transform: translate(230px, -200px) rotate(15deg);
      opacity: 0.8;
    }
    100% {
      transform: translate(300px, -220px) rotate(20deg);
      opacity: 0;
    }
  }
}
