@charset "UTF-8";
/*
メインビジュアル
------------------------------ */
.mv-container {
  position: relative;
  width: 100%;
  overflow: visible !important;
  z-index: 10;
}

.mv-container img {
  width:100%;
}

.mv-container h1 {
  position: absolute;
  top: 50%;
  left: 48%;;
  transform: translate(-48%,-50%);
  color: var(--white);
  padding:0;
  margin:0;
}

/* テキスト切り替え用のアニメーション */
#changing-text {
  display: inline-block;
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 1;
}

/* 消える時の状態 */
.fade-out {
  opacity: 0;
  transform: translateY(10px); /* 少し下に沈みながら消える */
}

/* 魚の共通設定 */
.fish-swim-wrapper {
    position: absolute;
    right: -150px;
    z-index: 999;
    /* 修正①：親枠自体のクリック判定を一旦オフにする */
    pointer-events: none !important; 
    animation: swim-and-turn 20s linear infinite;
    will-change: right, transform;
    
    /* 修正②：サイズを画像にピッタリ合わせ、余計な広がりを阻止 */
    display: inline-flex;
    width: fit-content;
    height: fit-content;
}

.fish-swim-wrapper img {
    pointer-events: auto;
    cursor: pointer;
    display: block;
}

.kurodai { 
    top: 20%; 
    animation-duration: 22s; /* クロダイは少し速め */
    animation-delay: 0s; 
}
.kurodai img {
    animation: yura-yura 4s ease-in-out infinite; /* 4秒周期で揺れる */
    width: 200px;
}

.kaperin { 
    top: 60%; 
    animation-duration: 28s; /* カペリンはのんびり */
    animation-delay: 1s; 
    width: 80px;
}
.kaperin img {
    animation: yura-yura 3s ease-in-out infinite; /* 3秒周期で揺れる */
    width: 150px;
}

.fish-swim-wrapper.hugu {
    top: auto !important;
    bottom: -30px;      /* 境界線をまたぐ設定 */
    right: -150px;      /* スタート位置（画面右外） */
    z-index: 100;
    animation: hugu-special-swim 30s linear infinite;
}

.hugu { 
    top: 75%; 
    animation-duration: 32s;
    animation-delay: 6s; 
    width: 70px;
}
.hugu img {
    animation: yura-yura 5s ease-in-out infinite; /* 5秒周期で揺れる */
    width: 150px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.hugu2 img {filter: none;}

.fish-swim-wrapper.escaping {
    transition: transform 0.8s ease-out, opacity 0.8s ease-out !important;
    pointer-events: none; /* 逃げている最中はクリック不可にする */
    opacity: 0; /* 消えていく */
    transform: scale(1.5) translateY(-100px) rotate(20deg) !important; /* 斜め上に大きく逃げる */
    animation: escape-dash 0.8s ease-in forwards !important;
    pointer-events: none; /* 逃げている最中は連続クリック不可 */
}

@keyframes escape-dash {
    to {
        /* 今の向きを維持したまま、画面の外（左側）へ猛スピードで突き抜ける */
        right: 150%; 
        opacity: 0;
    }
}

/* --- 魚アニメーション --- */
/* 往復と反転（真ん中で少し長めに滞在するよう調整） */
@keyframes swim-and-turn {
    0% {
        right: -250px;
        transform: scaleX(1); /* 左向き */
    }
    48% {
        transform: scaleX(1);
    }
    50% {
        right: 50%; /* 左端まで泳ぎ切る */
        transform: scaleX(-1); /* 右に振り向く */
    }
    98% {
        transform: scaleX(-1);
    }
    100% {
        right: -250px; /* 右端に戻る */
        transform: scaleX(1); /* 左に振り向く */
    }
}
/* 上下のランダムな揺れ（ふわふわ感） */
@keyframes yura-yura {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(-5deg); } /* 少し上に浮いて傾く */
    66% { transform: translateY(10px) rotate(5deg); }   /* 少し下に沈んで傾く */
}
@keyframes hugu-special-swim {
    0% {
        right: -150px;
        transform: scaleX(1); /* 右から左へ向く */
    }
    45% {
        right: calc(100% + 150px); /* 左端の画面外まで泳ぎ切る */
        transform: scaleX(1);
    }
    50% {
        right: calc(100% + 150px);
        transform: scaleX(-1); /* 向きを反転 */
    }
    95% {
        right: -150px; /* 右端まで戻る */
        transform: scaleX(-1);
    }
    100% {
        right: -150px;
        transform: scaleX(1); /* 向きを戻してループ */
    }
}
@media screen and (max-width: 767px) {
    .fish-swim-wrapper.hugu {
        bottom: -25px;
        animation-duration: 20s;
    }
    .hugu img {
        width: 70px;
    }
}



/* 今日の一言 */
.useful-info-board {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 400px;
  background-color: rgba(0, 26, 255, 0.3);
  border-left: 5px solid var(--gold);
  padding: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.info-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--white); /* */
  font-weight: 500;
}

.info-tag {
  font-size: 16px;
  font-weight: bold;
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* 日付時刻の表示スタイル */
.current-time-display {
  font-family: 'Courier New', Courier, monospace; /* タイプライター風 */
  font-size: 16px;
  font-weight: medium;
  color: var(--gold); /* */
  letter-spacing: 0.05em;
  border-bottom: 1px dotted rgba(212, 175, 55, 0.3); /* 薄い点線 */
}

/* 既存のボードの余白を微調整 */
.useful-info-board {
  /* 中略 */
  padding: 12px 15px; /* 上下の余白を少し詰めました */
}

/* 魚をクリック可能にする */
.fish-swim-wrapper {
    cursor: pointer;
    pointer-events: auto !important; /* noneから変更してクリックを有効化 */
    transition: animation-duration 0.3s ease; /* 速度変化を滑らかに */
}

/* index.css の .splash 部分を以下に書き換え */
.splash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; /* 波紋自体はクリックを邪魔しない */
    /* 波紋のデザイン（既にある場合は適宜調整してください） */
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    z-index: -1; /* 魚の裏側に表示 */
}

@keyframes splash-anime {
    0% { 
        width: 0; 
        height: 0; 
        opacity: 1; 
        border-width: 4px; /* 最初は太く */
    }
    100% { 
        width: 150px; /* PCでも見えるよう少し大きく */
        height: 150px; 
        opacity: 0; 
        border-width: 1px; /* 広がりながら細く */
    }
}




/*
新しい記録
------------------------------ */
.new-posts-section {
  position: relative;
  z-index: 1; /* 重なり順を低めに設定 */
}

.new-posts-section {
  background-color: var(--blue);
  position: relative;
  overflow: hidden;
}

.new-recipe-section {
  background-color: var(--gold);
  position: relative;
  z-index: 2;
  overflow: visible !important; /* エビのはみ出しを許可 */
}

.new-posts-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/bg/uroko-bg.png');
  background-size: 100% auto;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.1; 
  z-index: 0;
  pointer-events: none;
}

.new-recipe-section::before {
  opacity: 0.04;
}

.new-posts-section a {
  z-index: 10;
}

.new-posts-section .container {
  position: relative;
  z-index: 1;
}

.new-inner,
.category-tags {
  padding: 0 16px;
}

.h2-white  {
  color: var(--white);
  margin: 40px 0;
}

.h2-new-posts {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-padding {
  padding: 24px 0 64px 0;
}

/* カードを包む親：画面幅いっぱいにする */
.new-posts-cards {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 24px;
  box-sizing: border-box;
}

/* リンクタグ */
.new-posts-cards a {
  text-decoration: none;
  width: calc((100% - (24px * 2)) / 3);
  display: flex;
}

.card-blog-a {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  z-index: 1;
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  @media (hover: hover) {
    &:hover {
      transform: translateY(-6px);
      box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }
  }
}

.opacity-card {
  background: none;
}

.opacity-card h4 {
  font-size: 14px;
  font-weight: bold;
}

.card-blog-content {
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.card-blog-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.card-blog-content-new {
  position: relative;
  z-index: 1;
}

.card-blog-a {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: var(--white);
  text-decoration: none;
  height: 100%;
}

.osusume-section .opacity-card {
  background-color: transparent;
}

.card-blog-content-new::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/bg/uroko-small-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}

.card-blog-content, 
.card-blog-content-new {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
  min-width: 0;
}

.osusume-section .card-blog-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-tags, .card-date {
  position: relative;
  z-index: 1;
}

.card-img-wrapper {
  z-index: 2;
  background-color: var(--white);
}

/* バッジのスタイル */
.card-img-wrapper {
  position: relative;
  overflow: hidden;
}
.badge {
  display: inline-block;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background-color: var(--dark-blue);
  color: var(--gray);
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.card-blog-a {
  display: block;
  text-decoration: none;
  
  @media (hover: hover) {
    &:hover .card-img-wrapper::before {
      opacity: 1;
    }
  }
}

/* 画像を囲む枠（ここに青い膜を仕込む） */
.card-img-wrapper {
  position: relative;
  overflow: hidden;

  /* 青い膜（オーバーレイ） */
  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.1); 
    z-index: 5;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
  }
}

.card-blog-a img {
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.card-date {
  font-size: 12px;
}



/*
新しい記録  以外の見出し
------------------------------ */
.h2-not-new {
  display: inline-block;
  width: 100%;
  margin: 40px 0;
}

.card-excerpt {
  /* 3点リーダーの必須設定 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;          /* ここで表示したい行数を指定 */
  overflow: hidden;

  /* レイアウト調整 */
  line-height: 1.5;
  height: 4.5em;
  margin-bottom: 8px;
  word-break: break-all;
  color: var(--dark-blue);
  font-size: 16px;
}



/*
新しいレシピ
------------------------------ */
/* エビのアニメーション */
/* .ebi-squad {
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  height: 60px;
  pointer-events: none;
  z-index: 9999;
}

.ebi {
  position: absolute;
  left: -100px;
  width: 60px;
  height: 60px;
  background-image: url('../images/icons/ebi.svg');
  background-size: contain;
  background-repeat: no-repeat;
  animation: ebi-roll 15s linear infinite;
}

/* 2匹目と3匹目の登場を遅らせる */
/* .ebi:nth-child(2) { animation-delay: 2s; }
.ebi:nth-child(3) { animation-delay: 4s; }

@keyframes ebi-roll {
  0% { left: -100px; transform: rotate(0deg); }
  100% { left: calc(100% + 100px); transform: rotate(720deg); }
}  */



/*
オススメの記録
------------------------------ */
.osusume-section {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  position: relative;
  z-index: 3;
  overflow: visible !important;
}

/* 魚の画像専用のレイヤー */
.osusume-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* 画像だけを指定 */
  background-image: url('../images/bg/fish-bg.webp');
  background-size: 130%;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  opacity: 0.05; 
  z-index: 0;
  pointer-events: none;
}

/* 中身（タイトルやカード） */
.osusume-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* カードの並び（レスポンシブ） */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  height: 100%;
}

.card-blog-a {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-blog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.osusume-section .card-blog-a {
  cursor: pointer;
}

.osusume-section::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -100px;
  width: 90px;
  height: 90px;
  background-image: url('../images/icons/kani.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 20;
  /* アニメーション：linear（等速）で、止まる・動く・揺れるを制御 */
  animation: kani-shaking-walk 25s linear infinite;
  pointer-events: none;
}

/* --- 3. カニの歩行アニメーション --- */
@keyframes kani-shaking-walk {
  /* スタート：左外 */
  0%   { left: -100px; transform: rotate(0deg); }
  
  /* 1回目の移動：揺れながら進む（rotateを交互に入れる） */
  2%   { transform: rotate(5deg); }
  4%   { transform: rotate(-5deg); }
  6%   { transform: rotate(5deg); }
  8%   { transform: rotate(-5deg); }
  10%  { left: 10%; transform: rotate(0deg); } /* 停止位置に到達 */
  
  /* 1回目の停止：揺れを止める */
  15%  { left: 10%; transform: rotate(0deg); }
  
  /* 2回目の移動：揺れながら進む */
  17%  { transform: rotate(5deg); }
  19%  { transform: rotate(-5deg); }
  21%  { transform: rotate(5deg); }
  23%  { transform: rotate(-5deg); }
  25%  { left: 30%; transform: rotate(0deg); }
  
  /* 2回目の停止 */
  30%  { left: 30%; transform: rotate(0deg); }
  
  /* 3回目の移動 */
  33%  { transform: rotate(5deg); }
  36%  { transform: rotate(-5deg); }
  39%  { transform: rotate(5deg); }
  42%  { transform: rotate(-5deg); }
  45%  { left: 60%; transform: rotate(0deg); }
  
  /* 3回目の停止 */
  50%  { left: 60%; transform: rotate(0deg); }
  
  /* 4回目の移動 */
  53%  { transform: rotate(5deg); }
  56%  { transform: rotate(-5deg); }
  59%  { transform: rotate(5deg); }
  62%  { transform: rotate(-5deg); }
  65%  { left: 90%; transform: rotate(0deg); }
  
  /* 4回目の停止 */
  70%  { left: 90%; transform: rotate(0deg); }
  
  /* ゴールへ：最後は一気に画面外へ */
  85%  { left: calc(100% + 100px); transform: rotate(5deg); }
  100% { left: calc(100% + 100px); transform: rotate(0deg); }
}

/* スマホ用の微調整 */
@media screen and (max-width: 767px) {
  .osusume-section::after {
    width: 70px;
    height: 70px;
    top: -20px;
    animation-duration: 15s;
  }
}




/*
記録の分類・記録の欠片
------------------------------ */
.category-group {
  padding-bottom: 24px;
}
.category-tags-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background-color: var(--dark-blue);
  color: var(--white);
  border-bottom: 1px dotted var(--gold);
}
/* セクション全体の背景（深い青にする場合） */
.category-tags-section {
  background-color: var(--dark-blue);
  color: var(--white);
}

.h2-not-new {
  margin-bottom: 30px;
}

/* 分類カードの並び */
.category-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.cat-card {
  background-color: var(--white);
  color: var(--dark-blue);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px;
  flex: 1;
  min-width: 180px;
  font-weight: bold;
  transition: opacity 0.3s ease;
  opacity: 1;
  border: 1px solid var(--gray);
}

.cat-card:hover {
  opacity: 0.7;
}

.arrow-icon {
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--dark-blue);
  border-right: 2px solid var(--dark-blue);
  transform: rotate(45deg);
}

/* 欠片（タグ）の並び */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list a {
  border: 1px solid var(--gray);
}

.tag-item {
  background-color: var(--white);
  color: var(--dark-blue);
  text-decoration: none;
  padding: 4px 16px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.tag-item:hover {
  opacity: 0.8;
}

.cat-card span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cat-card span img {
  height: 24px;
  width: auto;
  display: block;
  object-fit: contain;
}



/*
堤防に、原点の物語を。
------------------------------ */
.teibou-top::before {
    display: none !important; /* 背景のカメを確実に消す */
}

.teibou {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), 
    url('../images/bg/gray-bg.webp');
  background-size: cover;
  background-position: center;
  position: relative;
}

/* 内側のコンテンツ幅を制限する */
.teibou-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.h2-monogatariwo {
  font-size: 80px;
  display: inline-block;
  width: 100%;
  margin: 40px 0;
}

/* --- 堤防セクション（カメ）の設定 --- */

/* 新しいカメの配置（元の背景と同じ位置に固定） */
.kame-click-area {
    position: absolute;
    bottom: 50px;
    right: 20px;
    width: 270px;
    height: 270px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
}

.kame-click-area {
    position: absolute;
    bottom: 30px;
    right: 20px;
    width: 270px;
    height: 270px;
    cursor: pointer;
    z-index: 10;
    
    /* ↓ ここが重要！元の揺れアニメーションを適用します */
    animation: kame-move 6s infinite ease-in-out;
    will-change: transform;
}

@keyframes kame-move {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(3px, -6px) rotate(1deg); /* 右上 */
  }
  50% {
    transform: translate(0, -10px) rotate(0deg); /* 真上 */
  }
  75% {
    transform: translate(-3px, -6px) rotate(-1deg); /* 左上 */
  }
  100% {
    transform: translate(0, 0) rotate(0deg); /* 元に戻る */
  }
}

.kame-click-area img {
    width: 100%;
    height: auto;
}

/* 泡の見た目：白い輪っか */
.bubble {
    position: absolute;
    pointer-events: none;
    border: 2px solid rgba(94, 161, 255, 0.5); /* 泡 */
    border-radius: 50%;
    z-index: 9999;
    animation: bubble-up 1.5s ease-out forwards;
}

/* 泡が上に昇るアニメーション */
@keyframes bubble-up {
    0% { transform: translateY(0) scale(0.3); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}




/* 1024px以下 */
@media (max-width: 1024px) {

  .osusume-section::before {
    background-size: auto 100%;
    background-position: center center; 
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

}




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

  /* --- mv魚 --- */
  .kurodai { 
    top: 10%; 
  }
  .kurodai img {
    width: 100px;
  }

  .kaperin { 
    top: 65%; 
  }
  .kaperin img {
    width: 80px;
}

  .hugu { 
    top: 80%; 
  }
  .hugu img {
    width: 60px;
  }

  .info-tag {
    margin-bottom: 0;
    font-size: 10px;
  }

  .useful-info-board {
    padding: 4px 8px;
    width: 300px;
    border-left: 3px solid var(--gold);
  }

  .info-text {
  font-size: 10px;
  }

  .current-time-display {
  font-size: 12px;
  }




  /* --- 新しい記録（横並び） --- */
  .new-posts-section .new-posts-cards {
    display: block; 
  }

  .new-posts-section .new-posts-cards a {
    display: block;
    width: 100%;
    margin-bottom: 12px;
  }

  /* --- 新しい記録（スマホ横並び） --- */
  .new-posts-section .card-blog-a {
    display: flex;
    flex-direction: row;
    height: auto;
    min-height: 120px;
  }

  /* 画像ラッパー */
  .new-posts-section .card-img-wrapper {
    position: relative;
    width: 35%;
    flex-shrink: 0;
    height: auto;
  }

  .new-posts-section .card-blog-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .new-posts-section .card-blog-content {
    flex: 1;
    padding: 8px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    background-color: var(--white);
  }

  .card-blog-content {
    padding: 4px;
  }

  .new-posts-section .card-excerpt {
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--dark-blue);
    word-break: break-all; 
  }

  .card-excerpt {
    font-size: 14px;
    width: 100%;
    overflow: hidden;
  }

  .new-posts-section .card-date {
    font-size: 10px;
    text-align: right;
    margin-top: auto;
  }

  .new-posts-section .badge {
    top: 5px;
    left: 5px;
    right: auto;
    font-size: 9px;
    padding: 2px 4px;
  }

  .new-posts-section::before {
    background-size: auto 110%;
  }

  /* --- オススメの記録（2列グリッド維持） --- */
  .card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .osusume-section .card-blog-a {
    display: block; 
    height: auto;
  }
  
  .osusume-section .card-img-wrapper {
    width: 100%;
  }

  /* --- 共通 --- */
  .h2-white,
  .h2-not-new {
    margin: 24px 0;
  }

  .tag {
    font-size: 10px;
  }


  /*
  オススメの記録。
  ------------------------------ */
  .new-posts-cards a{
    z-index: 10;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .osusume-section::before {
    background-size: 700%;
    background-position: 45% 70%;
  }

  .card-date {
  font-size: 10px;
  }

  .new-posts-section .card-excerpt,
  .osusume-section .card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  height: 4.2em;
  font-size: 13px;
 }
 


  /*
  記録の分類・記録の欠片
  ------------------------------ */
  .cat-card {
    min-width: calc(50% - 8px);
    padding: 12px 16px;
  }


  /*
  堤防に、原点の物語を。
  ------------------------------ */
  .h2-monogatariwo {
  font-size: 28px;
  }

  /* 新しいカメの配置（元の背景と同じ位置に固定） */
  .kame-click-area {
    position: absolute;
    top: -50px;
    right: 20px;
    width: 110px;
    height: 110px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
  }

  /* mv 魚の向き */
  @keyframes swim-and-turn {
    0% {
        right: -120px;
        transform: scaleX(1); /* 左向き */
    }
    48% {
        transform: scaleX(1);
    }
    50% {
        right: 50%; /* 左端まで泳ぎ切る */
        transform: scaleX(-1); /* 右に振り向く */
    }
    98% {
        transform: scaleX(-1);
    }
    100% {
        right: -120px; /* 右端に戻る */
        transform: scaleX(1); /* 左に振り向く */
    }
}


}




