/* ======================================= */
/* 基本設定とカラーパレット */
/* ======================================= */
:root {
  --deep-purple: #1E1B3A;
  --orange: #ff8c00;
  --blue: #4e94fc;
  --light-gray: #eee;
  --tile-bg: rgba(162, 159, 159, 0.8);
  --link-hover-bg: rgba(255, 255, 255, 0.1);
}

/* ======================================= */
/* HAYAMIフレーム */
/* ======================================= */
.flame-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 30vw;
  display: block;
  pointer-events: none;
  z-index: 9999;
}

.flame-stack {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  bottom: 0;
  left: 0px; /* 画像の横位置調整 */
}

.flame-stack img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 30vw;
  opacity: 1;
  animation: fadeIn 1s ease forwards;
}

.flame-stack img:nth-child(1) { animation-delay: 0s; }
.flame-stack img:nth-child(2) { animation-delay: 0.2s; }
.flame-stack img:nth-child(3) { animation-delay: 0.4s; }
.flame-stack img:nth-child(4) { animation-delay: 0.6s; }
.flame-stack img:nth-child(5) { animation-delay: 0.8s; }
.flame-stack img:nth-child(6) { animation-delay: 1s; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================= */
/* 背景タイルエフェクト */
/* ======================================= */
.tile-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  grid-auto-rows: 50px;
  z-index: 9999;
  pointer-events: none;
}

.tile {
  width: 50px;
  height: 50px;
  background: var(--tile-bg);
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity 0.7s ease-out;
}

/* ======================================= */
/* body スタイル */
/* ======================================= */
body {
  background-color: var(--deep-purple);
  font-family: 'Kosugi Maru', sans-serif;
  width: 99%;
  height: 99%;
  background-repeat: no-repeat;
  overflow-x: hidden;
  display: grid;
  align-items: center;
  justify-content: center;
}

/* ======================================= */
/* タイトルコンテナとなぎさ画像 */
/* ======================================= */
.title-container {
  display: flex;
  align-items: center;
  gap: 0.5vw;
  width: 100%;
  margin-top: 1%;
  z-index: 10;
}

.title {
  font-family: 'Kosugi Maru', sans-serif;
  font-size: 4vw;
  font-weight: bold;
  color: rgb(153, 144, 144);
}

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

.img_nagisa {
  width: 4vw;
  height: 4vw;
  border-radius: 50%;
  object-fit: cover;
  background-color: rgba(255, 255, 255, 0);
  z-index: 10;
}

/* ======================================= */
/* 文字のびるアニメーション */
/* ======================================= */
.stretch-in {
  animation: stretchOnly 1.5s ease-out forwards;
}

@keyframes stretchOnly {
  0% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(var(--dynamic-scale));
    opacity: 1.2;
  }
}

/* ======================================= */
/* プロフィールセクション */
/* ======================================= */
.profile {
  position: relative;
  padding: 0.5px;
  width: 99%;
  margin: 0.5em;
  display: grid;
  align-items: center;
  justify-content: center;
}

/* ======================================= */
/* タイトル要素 と　aタグ　*/
/* ======================================= */
h1{
  font-size: 2rem;
  color: var(--orange);
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}

a{
  font-size: 1.5rem;
  color: var(--orange);
  margin-top: 1rem;
  text-decoration: none;
  display: inline-block;
}

/* ======================================= */
/* テキスト要素 */
/* ======================================= */
p {
  font-size: 1.7rem;
  color: var(--blue);
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
  line-height: 1.3;
}

/* ======================================= */
/* スキルリスト */
/* ======================================= */
.skills {
  display: grid;
  list-style: none;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: var(--light-gray);
  border-left: 4px solid #7D5FFF;
  line-height: 1.5;
  width: 100%;
}

.li {
  margin-bottom: 2rem;
}

/* ======================================= */
/* 埋め込みエリア（iframe・tweet・scraping） */
/* ======================================= */
.iflame_wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  width: fit-content;
  margin: 0 auto;
}

iframe {
  width: 99%;
  margin: 2rem auto;
  padding: 1px;
  border-radius: 20px;
  z-index: 1;
  scrollbar-color: var(--deep-purple);
}

iframe::-webkit-scrollbar {
  background-color: transparent;
}

iframe::-webkit-scrollbar-track {
  background-color: transparent;
}

.tweet,
.blog,
.scraping,
.game,
.tax {
  border: none;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0);
  overflow: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scrollbar-color: var(--deep-purple);
  scrollbar-track-color: var(--deep-purple);
  box-shadow: 0px 0px 10px rgba(255,255,255,0.8);
  width: 100%;
  height: 450px;
}

/* ======================================= */
/* レスポンシブ調整 */
/* ======================================= */
@media screen and (max-width: 768px) {
  .title {
    font-size: 6vw;
  }

  .title-container {
    display: flex;
    flex-direction: column;
    top: 8%;
  }

  .img_nagisa {
    width: 10vw;
    height: 10vw;
  }

  .skills li {
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
  }
}

/* ======================================= */
/* ビルド用コマンドメモ（CSSでは不要、参考） */
/* ======================================= */
/* sass --watch style01.scss:css/style01.css */
/* docker compose build --no-cache my_home_page && docker compose up my_home_page */