/* =========================================
           カスタマイズ設定エリア (CSS)
           色を変更したい場合はここを編集してください
           ========================================= */
:root {
    /* アクセントカラー (文字色や強調に使われます) */
    --accent-color: #f2ff00;

    /* 基本の文字色 */
    --text-color: #111;
    --bg-color: #ffffff;

    /* グリッド線の色 */
    --grid-color: #eee;
    --tag-height: 150px;
    /* 画像の高さに合わせて調整してください */
    --visible-bottom: 0px;
    /* 残しておきたい高さ */
}
/* --- 基本設定 --- */
body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-image: url('/image/HP_back.png');
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    min-height: 100vh;
}
main {
    flex: 1;
    margin: auto;
}

.work-link {
    text-decoration: none;
    /* 下線を消す */
    color: inherit;
    /* 文字色を親要素から引き継ぐ */
    display: block;
    /* 項目全体をクリック可能にする */
}

/* ホバー（マウスを乗せた時）の演出 */
.work-item:hover .work-img {
    transform: scale(1.05);
    /* 少し拡大 */
    filter: grayscale(0%);
    /* 白黒からカラーへ（お好みで） */
}

.sticky-clock {
    position: fixed;
    top: 10px;
    right: 5px;
    z-index: 99;
    border: solid 1px;
    background: rgba(247, 255, 16);
    color: #000000;
    padding: 3px 12px;
    border-radius: 6px;
    font-family: "DotGothic16", sans-serif;
    font-size: 0.95rem;
    white-space: nowrap;
    /* 折り返しを禁止 */
    box-shadow: 0 2px 10px rgba(72, 72, 72, 0.3);
    padding: 1px 12%;
}
.tag {
    position: sticky;
    margin-left: 20px;
}

a.work-link {
    width: 130px;
}

a.work-link img {
    width: 130px;
}
/* --- news --- */
.news_contents {
    background: rgba(247, 255, 16);
    width: 95%;
    margin: auto;
}

.newst {
          font-family: "Alfa Slab One", serif;
  font-weight: 400;
  font-style: normal;
}
.newsT {
    display: flex;
    justify-content: end;
    flex-wrap: nowrap;
    padding-right: 1rem;
}

.newsT span {
    width: 150px;
    align-self: center;
    border: #000 solid 9px;
}

h1.newst {
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
    font-size: 4rem;
    text-align: end;
    color: blue;
    -webkit-text-stroke: 1px black;
    margin: 0px;
    line-height: 45px;
    padding-top: 5px;
}

.newspaper {
    font-family: "Kiwi Maru", serif;
    font-weight: 400;
    font-style: normal;
    padding: 1rem;
	    border: 1px solid #000;
    width: 90%;
    margin: 1rem auto;
    padding-bottom: 13rem;
}
h2.newstitle {
    font-weight: bold;
    font-size: 1.5rem;
}

.honbun {
    font-size: 0.8rem;
    line-height: 2rem;
}
.honbun a {
    font-weight: 900;
    color: #1e9bba;
    text-decoration: none;
    font-family: "DotGothic16", sans-serif;
}

/* --- レイアウトコンテナ --- */
.hand-container {
    position: absolute;
    bottom: -4rem;
    left: -3rem;
}
.anim-hand {
  width: 270px;
  height: auto;
  
  /* 回転の軸を「左下の角」に設定 */
  transform-origin: left bottom; 
  
  /* 5秒周期で無限ループ */
  animation: hand-move 6s ease-in-out infinite;
  
  /* お守り */
  will-change: transform;
}

@keyframes hand-move {
  0%   { transform: rotate(0deg); }
  /* 1. 左右に振れる（0.5秒〜1.5秒付近） */
  10%  { transform: rotate(5deg); }
  20%  { transform: rotate(-5deg); }
  30%  { transform: rotate(0deg); }
  
  /* 2. 左下を始点に右に45度傾く（2秒〜3秒付近） */
  45%  { transform: rotate(20deg); }
  
  /* 3. 傾いた先でまた左右に振れる */
  55%  { transform: rotate(25deg); }
  65%  { transform: rotate(20deg); }
  75%  { transform: rotate(25deg); }
  
  /* 4. 元の場所に戻る */
  90%  { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

/*ポッキーの手 */
.pocky {
    position: relative;
    width: 100%;
    overflow: visible;
    right: auto;
    height: 0px;
}

.p-stage {
    position: relative;
    width: 100px;
    height: 100%;
    bottom: -10rem;
    margin: 0 0 0 auto;
}
.p-stage img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.dog-hand {
    position: absolute;
    width: 300px;
    bottom: -12rem;
}
/* 1. 【犬の手】：右下外から「到着」する */
.dog-hand {
  /* 初期位置：右下のさらに外側 */
  transform: translate(150px, 150px);
  
  /* ページ読み込み3秒後に開始、1秒で到着、1秒待機、1秒で帰る */
  animation: hand-arrival 4s ease-in-out 3s forwards;
}

@keyframes hand-arrival {
  0%   { transform: translate(150px, 150px); }
  25%  { transform: translate(0px, 0px); }       /* 1秒で到着 */
  50%  { transform: translate(0px, 0px);}       /* 1秒待機 */
  100% { transform: translate(150px, 150px);  }
}

/* 2. 【肉球】：手が到着して1秒待機した瞬間に「つく」 */
.dog-hand2 {
  opacity: 0;
  /* 手と同期：25%（到着）+ 25%（待機中）のタイミングで表示 */
  animation: paw-stay 4s ease-in-out 3s forwards;
}
.dog-hand2 {
    width: 100px;
    position: absolute;
    right: 10%;
    bottom: 0px;
}

@keyframes paw-stay {
  0%   { opacity: 0; }
  45%  { opacity: 0; }
  50%  { opacity: 1; } /* 待機時間の後半（手が離れ始める直前）に刻印 */
  100% { opacity: 1; } /* そのまま残る */
}
/* フッター */
footer {
    position: relative;
  bottom: -10rem;
  width: 100%;
  background-color: #f7ff13;
  font-family: "DotGothic16", sans-serif;
      text-align: center;
    padding-bottom: 1rem;
  z-index: -2;
}
.F_c {
    display: flex;
    justify-content: space-around;
}