@charset "utf-8";
html {
  font-family: sans-serif;
  font-size: 100%;
  color: #fdfdfd;
  scroll-behavior: smooth;
  scroll-padding-top: 2.5rem;
  overflow-y: scroll;
}
/* _____________ nav style*/
.about_main {
    width: 100%;
    box-sizing: border-box;
    padding-top: clamp(2rem, 10vh, 8rem);
    display: flex;
    flex-direction: column;
    align-items: center;
  
    flex: 1;
  }
  footer {
    width: 100%;
    padding: 3rem 0.5rem 2rem; 
    box-sizing: border-box;
    text-align: center;
    font-family: "Saira", sans-serif;

  }
  footer div {
    width: 100%;
    display: flex;
    justify-content: center; 
    align-items: center;
  }
  
  footer span {
    display: block; 
    font-size: clamp(0.65rem, 4vw, 0.875rem);
    
    word-break: break-all; 
    line-height: 1.4;
    
    margin: 0 auto;
    padding: 0;
  }
  footer a {
    text-decoration: none;
  }

  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4rem;
    z-index: 99;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(5px);
  }
  
  nav {
    justify-content: flex-end;
    height: 100%; 
    display: flex;
    list-style: none;
    padding-right: clamp(1rem, 5vw, 5rem);
  }
  nav ul {
    height: 100%; 
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    width: 100%;
    justify-content: flex-end; 
    padding-right: 2rem;
    margin: 0;
    padding: 0;
  
    position: static;
    opacity: 1;
    visibility: visible;
  }
  nav ul li {
    height: 100%;
  }
    
  nav ul li a {
    display: flex;          
    align-items: center;     
    justify-content: center; 
    font-size: clamp(1rem, 2vw, 1.1rem);
    height: 4em;
    padding: 0 clamp(1rem, 3vw, 2rem); 
    
    text-decoration: none;
    color: #fdfdfd;
    font-family: "Saira";
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
    text-shadow 0.3s;
  }
    
  nav ul li a:hover {
  
    color: #fdfdfd;
    text-shadow: 
      0 0 7px #fdfdfd,
      0 0 10px #fdfdfd,
      0 0 21px #0fa, 
      0 0 42px #0fa;
  }
  /* ___________navここまで */

      /* フッターのスタイルここから*/

#page-top {
  position: fixed;
  right: 3rem;
  bottom: 1.5rem;
  width: 30px;   /* クリックエリアの幅 */
  height: 40px;  /* クリックエリアの高さ */
  
  /* アニメーション用 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all .4s ease;
  text-decoration: none;
  z-index: 1000;
}
  
/* 矢印の「棒」の部分 */
#page-top::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;         /* 棒の太さ */
    height: 100%;       /* 棒の長さ */
    background-color: #ffffff; /* 矢印の色 */
    transition: background-color .3s;
}

/* 矢印の「先端（くの字）」の部分 */
#page-top::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 12px;        /* 先端の広がり */
    height: 12px;       /* 先端の広がり */
    border-top: 3px solid #ffffff;   /* 先端の太さ */
    border-left: 3px solid #ffffff;  /* 先端の太さ */
    transform: translateX(-50%) rotate(45deg);
    transition: border-color .3s;
}

/* 表示状態 */
#page-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#page-top:hover::before {
    background-color: hsl(313, 82%, 65%);
}
#page-top:hover::after {
    border-color: hsl(313, 82%, 65%);
}
/* フッタースタイルここまで*/

/* navのチェックボックス設置ここから */
  #menu-btn { display: none; } 
  .menu-icon { display: none; cursor: pointer; padding: 1rem; z-index: 100; }
  .navicon { background: #fff; display: block; height: 2px; position: relative; width: 24px; }
  .navicon:before, .navicon:after { background: #fff; content: ''; display: block; height: 100%; position: absolute; width: 100%; transition: all .2s; }
  .navicon:before { top: 7px; }
  .navicon:after { top: -7px; }
/* navのチェックボックス設置ここまで */

/* メディアクエリここから */
  @media (max-width: 768px) {
  /* Aboutセクションの切り替え */
  .about_container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about_container img {
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  .about_container p {
    text-align: left;
  }

  /* ハンバーガーメニューの切り替え */
  .menu-icon { 
    display: block; /* スマホ時のみ三本線を表示 */
  }

  nav ul {
    /* 画面全体を覆う設定 */
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    padding-right: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* 最初は隠しておく */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
  }

  nav ul li {
    width: 100%;
    text-align: center;
    height: auto;
  }
  nav ul li a { 
    justify-content: center;
    width: 100%;
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    padding: 1rem 0;
  }
 /* チェックが入ったら表示 */
  #menu-btn:checked ~ ul {
    opacity: 1;
    visibility: visible;
  }

  /* アイコンを「×」にするアニメーション */
  #menu-btn:checked ~ .menu-icon .navicon { background: transparent; }
  #menu-btn:checked ~ .menu-icon .navicon:before { transform: rotate(-45deg); top: 0; }
  #menu-btn:checked ~ .menu-icon .navicon:after { transform: rotate(45deg); top: 0; }

  
  } 
  
  /* --- 残像対策：クリックした瞬間のアニメーションを無効化 --- */
nav ul li a:active {
  transition: none !important;
  transform: none !important;
  text-shadow: none !important;
}

nav ul li a {
  -webkit-tap-highlight-color: transparent;
}
section {
  flex-direction: column;
  text-align: center;
  gap: 1rem;
}
.description {
  margin: 0;
  text-align: left;
}

/* マウスストーカーのスタイル */
.stalker {
  background-color: rgba(28,180,211,.5); 
  border-radius: 50%; 
  height: 30px; 
  left: -15px; 
  opacity: 0; 
  pointer-events: none; 
  position: fixed; 
  top: -15px; 
  transition: all .3s ease-out; 
  width: 30px; 
  z-index: 999; 
}
/* リンクにホバーした時のスタイル */
.stalker.js-hover {
  background-color: #9d00ff32; 
  height: 50px; 
  left: -25px; 
  top: -25px; 
  width: 50px; 
}