/*
Theme Name: tomato-imai
*/

:root{
  --bg: #F6EDEE;
  --red: #B02126;
  --text: #222;
  --card: #fff;
  --shadow: 6px 8px 0 rgba(176,33,38,.22);
  --radius: 28px;
  --radius2: 36px;
  --font-title: "Abril Fatface", serif;
}

html, body{ margin:0; padding:0; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
}

/* header */
.ti-header{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(246,237,238,.88);
  backdrop-filter: blur(6px);
}
.ti-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 18px;
}
.ti-logo{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: var(--red);
}
.ti-logo__text{
  font-family: var(--font-title);
  font-size: 34px;
  letter-spacing: .2px;
}

.ti-burger{
  width:64px;
  height:64px;
  border:0;
  border-radius: 18px;
  background: var(--red);
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.ti-burger__line{
  width:22px;
  height:2px;
  background:#fff;
  display:block;
  margin:4px 0;
}

/* nav */
.ti-nav{
  display:none;
  padding: 10px 18px 18px;
  gap: 10px;
}
.ti-nav.is-open{
  display:flex;
  flex-wrap:wrap;
}
.ti-nav a{
  background:#fff;
  border:2px solid rgba(176,33,38,.25);
  border-radius: 999px;
  padding: 10px 14px;
  text-decoration:none;
  color: var(--red);
  font-weight:600;
}

/* FV */

.ti-fv__visual,
.ti-newsCard{
  box-shadow: 0 14px 30px rgba(176,33,38,0.12);
}

.ti-fv{ padding: 20px 18px 56px; }
.ti-fv__inner{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items:stretch;
}

/* NEWS CARD */
.ti-newsCard{
  padding: 32px 28px;
}
.ti-newsCard h2{
  font-size: 28px;
  letter-spacing: .04em;
}
.ti-newsCard img{
  box-shadow:
    0 10px 12px rgba(0,0,0,.15);
}

/* ===== FV（左）枠を2:3に固定 ===== */
.ti-fv__visual{
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius2);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: transparent;
}

/* ===== PC FV 調整版 ===== */
@media (min-width: 1024px){
  .ti-fv{
    padding: 40px 18px 56px;
  }

  .ti-fv__inner{
    max-width: 1040px;                  /* READ NOW基準に合わせる */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 520px 420px; /* 左を主役、右は少し細く */
    gap: 40px;
    align-items: stretch;
    justify-content: start;             /* ← 左を右に押し出さない */
  }

  .ti-fv__visual{
    width: 100%;
    max-width: 520px;
    aspect-ratio: 2 / 3;
  }

  .ti-newsCard{
    text-align: center;
    align-items: center;
    width: 100%;
    max-width: 420px;
    height: 100%;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 80px; /* ズレ演出 */
  }
}

@media (min-width: 1024px) and (max-width: 1180px){
  .ti-fv{
    padding: 40px 18px 20px;
  }

  .ti-fv__inner{
    max-width: 1040px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 32px;
    justify-content: start;
  }

  .ti-fv__visual{
    width: 100%;
    max-width: none;
  }

  .ti-newsCard{
    width: 100%;
    max-width: 420px;
  }
}

.ti-newsCard img{
  width: 80%;
}

/* FV表示設定ここまで */

/* ===== READ NOWカードを押したくなるUIに ===== */
.ti-workCard{
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

.ti-workCard:hover{
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(176,33,38,0.10);
  border-color: rgba(176,33,38,0.9);
}

.ti-workCard .ti-workCard__cta,
.ti-workCard .ti-cardBtn{
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    opacity .18s ease;
}

.ti-workCard:hover .ti-workCard__cta,
.ti-workCard:hover .ti-cardBtn{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(176,33,38,0.18);
}

.ti-workCard .ti-workCard__thumb img{
  transition: transform .28s ease;
}

.ti-workCard:hover .ti-workCard__thumb img{
  transform: scale(1.03);
}

.ti-workCard{
  cursor: pointer;
}



/* ニュースカード */

.ti-newsCard{
  background: var(--red);
  color:#fff;
  border-radius: var(--radius2);
  padding: 26px;
  box-shadow: var(--shadow);
}
.ti-newsCard__title{
  font-family: var(--font-title);
  font-size: 44px;
  margin: 0 0 10px;
}
.ti-newsCard__text{ line-height:1.8; font-weight:600; }

/* sections */
.ti-section{ padding: 42px 18px; }
.ti-section--pink{ background: var(--bg); }
.ti-section__head{ max-width: 1040px; margin: 0 auto 18px; }
.ti-section__title{
  font-family: var(--font-title);
  color: var(--red);
  font-size: 54px;
  margin: 0;
}
.ti-section__lead{ margin: 8px 0 0; opacity:.85; font-weight:600; }

.ti-empty{ max-width:1040px; margin: 18px auto; opacity:.8; }

/* cards layout */
.ti-cards{
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 860px){
  .ti-fv__inner{
    grid-template-columns: 1fr;
  }

  .ti-cards{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

/* work card */
.work-card{
  background: var(--card);
  border: 5px solid var(--red);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.work-card.is-featured{
  grid-column: 1 / -1;
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  align-items:stretch;
}
@media (max-width: 860px){
  .work-card.is-featured{ grid-template-columns: 1fr; }
}

.work-card__thumb img{
  width:100%;
  height: 260px;
  object-fit: cover;
  display:block;
}
.work-card.is-featured .work-card__thumb img{
  height: 340px;
}

.work-card__body{
  padding: 18px 18px 20px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.work-card__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.work-card__pill{
  display:inline-flex;
  border:2px solid rgba(176,33,38,.45);
  color: var(--red);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight:800;
  background:#fff;
}

.work-card__title{
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}
.work-card__desc{
  margin: 0;
  opacity:.85;
  font-weight:600;
  line-height:1.7;
}

.work-card:active{
  transform: translateY(2px) scale(.99);
  transition: transform .08s ease;
}

/* like row */
.work-card__love{
  display:flex;
  align-items:center;
  gap: 10px;
  padding-top: 6px;
}
.work-card__heart{
  border:0;
  background:transparent;
  color: var(--red);
  font-size: 30px;
  cursor:pointer;
  line-height:1;
  padding: 0;
}
.work-card__heart.liked{ transform: scale(1.05); }
.work-card__loveText{ font-weight:700; opacity:.7; }
.work-card__loveCount{ font-weight:900; }

/* CTA */
.work-card__cta{
  margin-top: 6px;
  display:block;
  text-align:center;
  padding: 18px 16px;
  border-radius: 999px;
  text-decoration:none;
  font-weight:900;
  letter-spacing:.5px;
}

.work-card__cta--read{
  background: var(--red);
  color:#fff;
}

.work-card__cta--works{
  background:#fff;
  color: var(--red);
  border: 3px solid rgba(176,33,38,.45);
}

/* about / contact */
.ti-box{
  max-width: 1040px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 22px 22px;
  border: 2px solid rgba(176,33,38,.18);
  font-weight: 600;
  line-height: 1.9;
}
.ti-box p{ margin: 0 0 10px; }
.ti-box p:last-child{ margin-bottom: 0; }
.ti-box a{ color: var(--red); font-weight: 800; }
.ti-box small{ opacity: .85; }

.ti-section__title--lower{ text-transform: none; }

/* footer */
.ti-footer{
  background: var(--red);
  color:#fff;
  padding: 28px 18px;
}
.ti-footer__inner{
  max-width: 1040px;
  margin: 0 auto;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 18px;
}
.ti-footer__brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 32px;
}
.ti-footer__copy{ opacity:.95; font-weight:700; line-height:1.6; }

/* modal menu（上寄せ＆見切れ防止） */
.ti-modal{
  position: fixed;
  inset: 0;
  z-index: 1000;

  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);

  display: none;

  /* ✅ 中央寄せをやめて「上寄せ」にする */
  place-items: start center;

  /* ✅ ここが超重要：ヘッダー分の余白 */
  padding: 90px 16px 16px; /* 90pxはヘッダー高さ想定。必要なら増減 */
}

.ti-modal.is-open{ display: grid; }

/* panel */
.ti-modal__panel{
  width: min(92vw, 420px);

  /* ✅ 画面内に必ず収める：上のpadding(90)と下16を引いた分 */
  max-height: calc(100svh - 90px - 16px - 16px);
  overflow: auto;

  background: #fff;
  border-radius: 28px;
  border: 2px solid rgba(176,33,38,.18);
  box-shadow: 0 22px 60px rgba(0,0,0,.22);

  padding: 18px;
  position: relative;

  display: flex;
  flex-direction: column;
  gap: 12px;

  transform: translateY(6px);
  animation: tiModalIn .18s ease-out forwards;
}

/* iOS Safari 対策で svh を使う（対応してない環境のために vh も） */
@supports not (height: 100svh){
  .ti-modal__panel{
    max-height: calc(100vh - 90px - 16px - 16px);
  }
}


.ti-modal.is-open{ display: grid; }

/* パネル */
.ti-modal__panel{
  width: min(92vw, 420px);
  max-height: min(78vh, 560px);
  overflow: auto;

  background: #fff;
  border-radius: 28px;
  border: 2px solid rgba(176,33,38,.18);
  box-shadow: 0 22px 60px rgba(0,0,0,.22);

  padding: 18px;
  position: relative;

  display: flex;
  flex-direction: column;
  gap: 12px;

  /* “アプリのカード”感 */
  transform: translateY(8px);
  animation: tiModalIn .18s ease-out forwards;
}

@keyframes tiModalIn{
  to { transform: translateY(0); }
}

/* close */
.ti-modal__close{
  position: sticky; /* スクロールしても上に残る */
  top: 0;

  align-self: flex-end;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 0;

  background: rgba(176,33,38,.10);
  color: var(--red);
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;

  display: grid;
  place-items: center;
}

/* item */
.ti-modal__item{
  display: flex;
  align-items: center;
  justify-content: space-between;

  text-decoration: none;
  padding: 16px 16px;
  border-radius: 18px;
  border: 2px solid rgba(176,33,38,.20);
  background: #fff;

  color: var(--red);
  font-weight: 900;
  letter-spacing: .3px;
}

/* ちょいアプリ感（矢印） */
.ti-modal__item::after{
  content: "›";
  font-size: 22px;
  opacity: .55;
}

.ti-modal__item:active{ transform: scale(.99); }

/* body scroll lock */
body.is-locked{ overflow: hidden; }

/* アンカー飛びで見出しがヘッダーに隠れないように */
html{
  scroll-padding-top: 110px; /* ヘッダー高さに合わせて調整 */
}

/* 念のため：セクション自体にも効かせる（ブラウザ差対策） */
.ti-section{
  scroll-margin-top: 110px;
}

html{
  scroll-behavior: smooth;
}

/* ===== SP header を小さく（カードの見えを優先） ===== */
@media (max-width: 520px){
  .ti-header__inner{
    padding: 10px 14px; /* 18px→小さく */
  }

  .ti-logo__text{
    font-size: 26px; /* 34px→小さく */
    line-height: 1.05;
  }

  .ti-burger{
    width: 54px;   /* 64→小さく */
    height: 54px;  /* 64→小さく */
    border-radius: 16px;
  }

  .ti-burger__line{
    width: 20px;
    margin: 3px 0;
  }
}

@media (max-width: 520px){
  html{ scroll-padding-top: 86px; }
  .ti-section{ scroll-margin-top: 86px; }
}

.work-detail { padding: 16px; }
.work-title { font-size: 24px; margin: 8px 0; }
.work-issue { opacity: .75; margin: 0 0 12px; }
.work-thumb img { width: 100%; height: auto; border-radius: 16px; display: block; }

.work-like { margin: 14px 0 0; position: relative; }
.like-count { font-weight: 700; }
.like-btn { margin-top: 10px; padding: 12px 14px; border-radius: 999px; border: 0; cursor: pointer; }
.like-btn.is-pop { transform: scale(1.05); }
.like-btn.is-disabled { opacity: .55; cursor: not-allowed; }
.like-msg { margin: 10px 0 0; font-size: 14px; opacity: .85; }

.heart-layer { position: absolute; left: 0; right: 0; bottom: 10px; height: 120px; pointer-events: none; overflow: visible; }
.float-heart {
  position: absolute;
  bottom: 0;
  font-size: 20px;
  opacity: 0;
  animation: floatUp 1.2s ease-out forwards;
}
@keyframes floatUp {
  0%   { transform: translate(-50%, 0) scale(0.9); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translate(-50%, -110px) scale(1.2); opacity: 0; }
}

.sec-title { margin: 24px 0 10px; font-size: 16px; }
.prose { line-height: 1.9; }
.coming-soon { opacity: .7; }

.carousel { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.work-card { display: block; min-width: 160px; border-radius: 16px; text-decoration: none; color: inherit; }
.card-thumb img { width: 100%; height: auto; border-radius: 16px; display: block; }
.card-body { padding: 8px 2px; }
.card-title { font-size: 14px; font-weight: 600; }
.card-like { font-size: 12px; opacity: .8; margin-top: 2px; }

.work-detail {
  max-width: 760px;   /* ← ここで中央カラム幅を固定 */
  margin: 0 auto;
  padding: 24px 16px 64px;
}
.work-thumb img {
  width: 100%;
  max-height: 720px;   /* PCで縦伸びしすぎ防止 */
  object-fit: cover;
  border-radius: 20px;
}

/* いいね♡とセクションタイトル色設定 */

.like-btn {
  background: #B02126;
  color: #fff;
  font-weight: 600;
}

.float-heart {
  color: #B02126;
}

.sec-title {
  color: #B02126;
  font-weight: 700;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .carousel {
    gap: 20px;
  }

  .work-card {
    min-width: 220px;
  }
}

.carousel-wrap{
  position: relative;
}

.carousel{
  display:flex;
  gap:12px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  padding: 6px 2px 12px;
}

/* カードがピタッと止まる */
.work-card{ scroll-snap-align:start; }

/* スクロールバー消す */
.carousel::-webkit-scrollbar{ display:none; }
.carousel{ -ms-overflow-style:none; scrollbar-width:none; }

/* 矢印ボタン */
.carousel-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:5;
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid rgba(176,33,38,.25);
  background:#fff;
  color:#B02126;
  font-size:22px;
  line-height:1;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}

.carousel-btn.prev{ left:-10px; }
.carousel-btn.next{ right:-10px; }

/* SPは矢印ちょい控えめ（任意） */
@media (max-width: 420px){
  .carousel-btn{ width:34px;height:34px; }
  .carousel-btn.prev{ left:-6px; }
  .carousel-btn.next{ right:-6px; }
}

.carousel-btn{ opacity:.9; }
.carousel-btn:hover{ opacity:1; }

.work-read{
  margin-top: 24px;
  width: 100%;
}

.read-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 999px;
  background: #B02126;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.work-detail a{
  box-sizing: border-box;
}

.read-sub{ margin:10px 0 0; font-size:14px; }
.letter-link{ color:#B02126; font-weight:700; text-decoration:none; }
.read-hint{ opacity:.75; margin-left:6px; }

/* 新作・完結バッジ */
.work-card__badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.work-card__badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  line-height:1;
  letter-spacing:.04em;
}

.work-card__badge--new{
  background:#B02126;
  color:#fff;
}

.work-card__badge--finished{
  background:#fff;
  color:#B02126;
  border:1.5px solid #B02126;
}

/* シェアボタン（例：X/Twitter） */
.share-btn-x{

display:inline-flex;
align-items:center;
justify-content:center;

margin-top:14px;
padding:12px 18px;

border-radius:999px;

background:#000;
color:#fff;

font-weight:700;
text-decoration:none;

}

.share-btn-x:hover{
opacity:.85;
}

/* カード用シェアボタン */
.work-card__share{
  margin-top: 2px;
}

.share-btn-x--small{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.share-btn-x--small:hover{
  opacity: .85;
}

@media (max-width: 860px){
  .work-card__share{
    display: flex;
    justify-content: flex-start;
    margin-top: 6px;
  }

  .share-btn-x--small{
    width: auto;
    min-height: 36px;
    padding: 8px 14px;
    font-size: 12px;
  }
}

/* 個別ページ：シェア横並び */
.work-share{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.share-btn-x,
.copy-link-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.share-btn-x{
  margin-top: 0;
  background: #000;
  color: #fff;
}

.copy-link-btn{
  border: 2px solid rgba(176,33,38,.24);
  background: #fff;
  color: #B02126;
  cursor: pointer;
}

.copy-link-btn:hover,
.share-btn-x:hover{
  opacity: .86;
}

/* ふんわり出るメッセージ */
.copy-toast{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  background: rgba(34,34,34,.92);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.copy-toast.is-show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* SPでちょいだけ詰める */
@media (max-width: 520px){
  .work-share{
    gap: 8px;
  }

  .share-btn-x,
  .copy-link-btn{
    min-height: 46px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .copy-toast{
    bottom: 18px;
    font-size: 12px;
    padding: 9px 14px;
  }
}

/* HOMEカード：シェア横並び */
.work-card__share{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.share-btn-x--small,
.share-copy-btn--small{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.share-btn-x--small{
  background: #000;
  color: #fff;
}

.share-copy-btn--small{
  border: 2px solid rgba(176,33,38,.24);
  background: #fff;
  color: #B02126;
  cursor: pointer;
}

.share-btn-x--small:hover,
.share-copy-btn--small:hover{
  opacity: .86;
}

.share-copy-btn--small:disabled{
  opacity: .7;
  cursor: default;
}

@media (max-width: 520px){
  .share-btn-x--small,
  .share-copy-btn--small{
    min-height: 36px;
    padding: 8px 10px;
    font-size: 11px;
  }
}

/* =========================================
   FV Main Visual Swiper
========================================= */
.ti-fv{
  position: relative;
}

.ti-fv__visual{
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.fv-swiper{
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.fv-swiper .swiper-wrapper{
  align-items: stretch;
}

.fv-swiper .swiper-slide{
  position: relative;
}

.fv-swiper .swiper-slide img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
}

.fv-swiper-pagination{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px !important;
  z-index: 5;
  text-align: center;
}

.fv-swiper-pagination .swiper-pagination-bullet{
  width: 8px;
  height: 8px;
  margin: 0 4px !important;
  opacity: 0.45;
  background: #fff;
}

.fv-swiper-pagination .swiper-pagination-bullet-active{
  opacity: 1;
}


/* 更新バッジ */
.fv-update-badge{
  position: absolute;
  right: -10px;
  bottom: -14px;
  width: 138px;
  height: 138px;
  z-index: 12;
  pointer-events: none;
  transition: top .25s ease, right .25s ease, transform .25s ease, opacity .25s ease;
}

.fv-update-badge__center{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.fv-update-badge__berry-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  text-decoration: none;
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
}

.fv-update-badge__berry-link:focus-visible{
  outline: 2px solid rgba(176,33,38,.35);
  outline-offset: 4px;
  border-radius: 999px;
}

.fv-update-badge__strawberry{
  width: 26px;
  max-width: none;
  height: auto;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
  animation: badgeBerryFloat 5s ease-in-out infinite;
  transform-origin: center;
  filter:
    drop-shadow(0 0 6px rgba(255,255,255,.50))
    drop-shadow(0 0 12px rgba(255,220,230,.30))
    drop-shadow(0 3px 8px rgba(255,210,225,.22));
}

@media (min-width: 768px){
  .fv-update-badge__strawberry{
    width: 32px;
  }
}

.fv-update-badge.is-fixed{
  position: fixed;
  top: 86px;
  right: 18px;
  bottom: auto;
  z-index: 40;
}

.fv-update-badge__ring{
  position: relative;
  width: 100%;
  height: 100%;
}

.fv-update-badge__svg{
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.fv-update-badge__rotating-text{
  transform-origin: 80px 80px;
  animation: badgeRotateLeft 14s linear infinite;
}

.fv-update-badge__circle-text{
  fill: #B02126;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.fv-update-badge__center{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fv-update-badge__strawberry{
  /* いちごサイズSP */
  width: 55px;
  max-width: 100px;
  height: auto;
  max-height: none;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;

  animation: badgeBerryFloat 5s ease-in-out infinite;
  transform-origin: center;

  filter:
    drop-shadow(0 4px 10px rgba(255,255,255,.15))
    drop-shadow(0 0 6px rgba(255,200,220,.25));
}

.fv-update-badge__sub{
  display: none;
}

@keyframes badgeRotateLeft{
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes badgeBerryBob{
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-2px); }
}

@media (min-width: 768px){
  .fv-update-badge{
    width: 150px;
    height: 150px;
    right: -14px;
    bottom: -16px;
  }

  .fv-update-badge.is-fixed{
    top: 92px;
    right: 22px;
  }

  .fv-update-badge__circle-text{
    font-size: 12px;
  }

}

@media (prefers-reduced-motion: reduce){
  .fv-update-badge__rotating-text,
  .fv-update-badge__strawberry,
  .fv-badge-water,
  .fv-badge-wave{
    animation: none;
  }
}

/* 苺がふんわり浮かぶアニメーション */
@keyframes badgeBerryFloat{

0%{
transform:translateY(0px) rotate(0deg);
}

50%{
transform:translateY(-3px) rotate(1deg);
}

100%{
transform:translateY(0px) rotate(0deg);
}
}

.fv-update-badge__center{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(2px);
}

.fv-update-badge__center::before{
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(255,255,255,.55) 0%,
    rgba(255,220,230,.24) 38%,
    rgba(255,220,230,0) 72%
  );
  filter: blur(6px);
  animation: badgeAura 4.2s ease-in-out infinite;
  pointer-events: none;
}

.fv-update-badge__strawberry{
  position: relative;
  z-index: 1;
  width: 55px;
  max-width: none;
  height: auto;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
  animation: badgeBerryFloat 5s ease-in-out infinite;
  transform-origin: center;
  filter:
    drop-shadow(0 0 6px rgba(255,255,255,.50))
    drop-shadow(0 0 12px rgba(255,220,230,.30))
    drop-shadow(0 3px 8px rgba(255,210,225,.22));
}

/* いちごサイズPC */
@media (min-width: 768px){
  .fv-update-badge__strawberry{
    width: 80px;
  }

  .fv-update-badge__center::before{
    width: 40px;
    height: 40px;
  }
}

@keyframes badgeAura{
  0%, 100%{
    opacity: .72;
    transform: scale(.92);
  }
  50%{
    opacity: 1;
    transform: scale(1.08);
  }
}

/* いちごタップぽよアニメ */
.fv-update-badge__berry-link:active .fv-update-badge__strawberry{
  transform: scale(.82);
  transition: transform .12s ease;
}

/* 戻る時のぽよ */
.fv-update-badge__strawberry{
  transition: transform .28s cubic-bezier(.34,1.56,.64,1);
}

/* =========================
   Scroll reveal
========================= */
.reveal-pop{
  opacity: 0;
  transform: translateY(46px) scale(.92);
  filter: blur(10px);
  transition:
    opacity .5s ease,
    transform .55s cubic-bezier(.22,1,.36,1),
    filter .5s ease;
  will-change: opacity, transform, filter;
}

.reveal-pop.is-visible{
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce){
  .reveal-pop,
  .reveal-pop.is-visible{
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

#read{
  padding-top: 56px;
}

.work-card:active{
 transform: translateY(-1px) scale(.98);
}

/* ========================
site loading
======================== */

.site-loader{
  position: fixed;
  inset: 0;
  background: #B02126;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .7s ease, visibility .7s ease;
  transform-origin: center center;
}

.site-loader.is-closing .loader-inner{
  animation: loaderCollapse .72s cubic-bezier(.55,.06,.68,.19) forwards;
}

.site-loader.is-closing .loader-ring-text-wrap{
  animation:
    loaderSpin 7.5s linear infinite,
    loaderFadeOut .42s ease .1s forwards;
}

.site-loader.is-closing .loader-logo{
  animation: loaderLogoSink .72s cubic-bezier(.55,.06,.68,.19) forwards;
}

.site-loader.is-closing .loader-heart{
  animation: loaderHeartSink .45s ease forwards !important;
}

.site-loader.is-hide{
  opacity: 0;
  visibility: hidden;
}

@keyframes loaderCollapse{
  0%{
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  70%{
    opacity: 1;
    transform: scale(.18);
    filter: blur(1px);
  }
  100%{
    opacity: 0;
    transform: scale(.04);
    filter: blur(2px);
  }
}

@keyframes loaderFadeOut{
  from{
    opacity: 1;
  }
  to{
    opacity: 0;
  }
}

@keyframes loaderLogoSink{
  0%{
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  60%{
    opacity: 1;
    transform: scale(.35);
    filter: blur(.5px);
  }
  100%{
    opacity: 0;
    transform: scale(.02);
    filter: blur(2px);
  }
}

@keyframes loaderHeartSink{
  0%{
    opacity: 1;
    transform: scale(1);
  }
  100%{
    opacity: 0;
    transform: scale(.1);
  }
}

.site-loader.is-hide{
  opacity: 0;
  visibility: hidden;
}

.loader-inner{
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.loader-ring-text-wrap{
  transform-origin: 110px 110px;
  animation: loaderSpin 7.5s linear infinite;
}

.loader-ring-text{
  fill: #fff;
  font-size: 14px;
  font-family: 'Abril Fatface', serif;
  letter-spacing: .09em;
}

.loader-logo{
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: loaderLogoPop 1s cubic-bezier(.22,1.4,.36,1) .2s forwards;
}

.loader-logo img{
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(0 0 10px rgba(255,255,255,.30))
    drop-shadow(0 0 20px rgba(255,255,255,.20));
}

@keyframes loaderLogoPop{
  0%{
    opacity: 0;
    transform: scale(.35);
  }
  55%{
    opacity: 1;
    transform: scale(1.18);
  }
  72%{
    transform: scale(.92);
  }
  100%{
    opacity: 1;
    transform: scale(1);
  }
}

/* ハート */
.loader-heart{
  position: absolute;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  z-index: 3;
}

.loader-heart--1{
  animation: loaderHeart1 1.2s ease-out .55s forwards;
}

.loader-heart--2{
  animation: loaderHeart2 1.2s ease-out .72s forwards;
}

.loader-heart--3{
  animation: loaderHeart3 1.2s ease-out .88s forwards;
}

@keyframes loaderSpin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

@keyframes loaderLogoPop{
  0%{
    opacity: 0;
    transform: scale(.45);
  }
  68%{
    opacity: 1;
    transform: scale(1.1);
  }
  100%{
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes loaderHeart1{
  0%{
    opacity: 0;
    transform: translate(-8px, 8px) scale(.4);
  }
  30%{
    opacity: 1;
  }
  100%{
    opacity: 0;
    transform: translate(-58px, -46px) scale(1);
  }
}

@keyframes loaderHeart2{
  0%{
    opacity: 0;
    transform: translate(0, 10px) scale(.4);
  }
  30%{
    opacity: 1;
  }
  100%{
    opacity: 0;
    transform: translate(0, -66px) scale(.95);
  }
}

@keyframes loaderHeart3{
  0%{
    opacity: 0;
    transform: translate(8px, 8px) scale(.4);
  }
  30%{
    opacity: 1;
  }
  100%{
    opacity: 0;
    transform: translate(56px, -42px) scale(1);
  }
}

@media (prefers-reduced-motion: reduce){
  .loader-ring-text-wrap,
  .loader-logo,
  .loader-heart{
    animation: none !important;
  }
}

.work-card__cta{
transition:.2s ease;
}

.work-card__cta:hover{
transform:translateY(-2px);
box-shadow:0 10px 20px rgba(176,33,38,.2);
}

.work-card__cta:active{
transform:translateY(1px) scale(.97);
}

/* =========================
   SP: READ NOW / WORKS を軽く見せる
========================= */
@media (max-width: 860px){

  .ti-cards--archive .work-card{
    min-width: 0;
    border-width: 2px;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(176,33,38,.12);
  }

  .ti-cards--archive .work-card.is-featured{
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
  }

  .ti-cards--archive .work-card__thumb img{
    height: 180px;
    border-radius: 0;
  }

  .ti-cards--archive .work-card.is-featured .work-card__thumb img{
    height: 260px;
  }

  .ti-cards--archive .work-card__body{
    padding: 12px 12px 14px;
    gap: 8px;
  }

  .ti-cards--archive .work-card__title{
    font-size: 18px;
    line-height: 1.35;
  }

  .ti-cards--archive .work-card.is-featured .work-card__title{
    font-size: 24px;
    line-height: 1.25;
  }

  .ti-cards--archive .work-card__desc{
    font-size: 12px;
    line-height: 1.6;
  }

  .ti-cards--archive .work-card.is-featured .work-card__desc{
    font-size: 13px;
  }

  .ti-cards--archive .work-card__pill,
  .ti-cards--archive .work-card__badge{
    min-height: 24px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .ti-cards--archive .work-card__love{
    gap: 6px;
    padding-top: 2px;
  }

  .ti-cards--archive .work-card__heart{
    font-size: 22px;
  }

  .ti-cards--archive .work-card__loveText,
  .ti-cards--archive .work-card__loveCount{
    font-size: 11px;
  }

  .ti-cards--archive .share-btn-x--small,
  .ti-cards--archive .share-copy-btn--small{
    min-height: 32px;
    padding: 7px 10px;
    font-size: 10px;
  }

  .ti-cards--archive .work-card__cta{
    padding: 11px 10px;
    font-size: 11px;
    margin-top: 2px;
  }

  .ti-cards--archive .work-card.is-featured .work-card__cta{
    padding: 14px 14px;
    font-size: 12px;
  }
}

/* =========================
   読切ピルを軽くする
========================= */
.work-card__pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid #E2A8AD;
  background: #fff;
  color: #B02126;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
}

/* 2列カード時はさらに少しだけ小さく */
@media (max-width: 860px){
  .ti-cards--archive .work-card__pill{
    min-height: 20px;
    padding: 4px 9px;
    font-size: 10px;
  }
}

/* =========================
   シェアボタンを横並び2列に
========================= */
.work-card__share{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.share-btn-x--small,
.share-copy-btn--small{
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  margin-top: 0;
  padding: 10px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
  white-space: nowrap;
}

.share-btn-x--small{
  background: #000;
  color: #fff;
  text-decoration: none;
}

.share-copy-btn--small{
  background: #fff;
  color: #B02126;
  border: 2px solid #E7C3C6;
  cursor: pointer;
}

.share-btn__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.share-btn__icon svg{
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.share-btn__label{
  display: inline-block;
  min-width: 0;
}

/* 2列カードの時に詰まりすぎないよう少しだけ圧縮 */
@media (max-width: 860px){
  .ti-cards--archive .work-card__share{
    gap: 6px;
  }

  .ti-cards--archive .share-btn-x--small,
  .ti-cards--archive .share-copy-btn--small{
    min-height: 36px;
    padding: 9px 10px;
    font-size: 11px;
    gap: 5px;
  }

  .ti-cards--archive .share-btn__icon svg{
    width: 14px;
    height: 14px;
  }
}

.work-card__cta{
  display:block;
  width:100%;
  max-width:100%;
  text-align:center;
  box-sizing:border-box;
}

.ti-cards--archive .work-card__cta{
  grid-column:1 / -1;
}


.ti-footer__inner{
  max-width: 1040px;
  margin: 0 auto;
}

.ti-footer__brandWrap{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ti-footer__brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 32px;
}

.ti-footer__copy{
  padding-left: 46px;
  opacity: .95;
  font-weight: 700;
  line-height: 1.7;
}

@media (max-width: 520px){
  .ti-footer__brand{
    font-size: 24px;
  }

  .ti-footer__copy{
    padding-left: 34px;
    font-size: 13px;
    line-height: 1.7;
  }
}
