:root {
  --red: #e8333d;
  --pink: #f2709c;
  --pink-ink: #d23c76;   /* 文字に使うピンク（背景用より濃い） */
  --blue: #2f7de1;
  --cream: #fef7ec;
  --paper: #fffdf8;
  --ink: #4b3a3a;
  --line: #ecdcc6;
  --hand: "Yomogi", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  line-height: 1.7;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

a { color: inherit; }

/* ---------- ヘッダー（バナー） ---------- */
.hero {
  max-width: 960px;
  margin: 0 auto;
  padding-top: 8px;
}
.hero-link { display: block; }
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  /* 左右の端をなじませて、ページの背景につなげる */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}
.tagline {
  position: relative;
  z-index: 2;
  margin: 6px 0 0;
  padding: 0 10px;
  text-align: center;
}
.tagline span {
  display: inline-block;
  max-width: 100%;
  padding: 0.4em 1.5em;
  font-family: var(--hand);
  font-size: clamp(14px, 3.5vw, 22px);
  letter-spacing: 0.05em;
  /* 手書き風の細い線を、白の縁取りで少し太らせて読みやすくする */
  -webkit-text-stroke: 0.4px #fff;
  line-height: 1.5;
  color: #fff;
  background:
    radial-gradient(rgba(255, 255, 255, 0.18) 1.4px, transparent 1.8px) 0 0 / 11px 11px,
    var(--pink-ink);
  box-shadow: 0 2px 6px rgba(150, 80, 100, 0.2);
  transform: rotate(-1deg);
}

.hero-note {
  margin: 10px 0 0;
  padding: 0 12px;
  text-align: center;
  font-weight: 700;
  font-size: clamp(13px, 3.2vw, 16px);
  line-height: 1.6;
  color: var(--pink-ink);
}

/* ---------- 本文 ---------- */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px 24px;
}

.empty {
  margin: 56px 0;
  text-align: center;
  font-family: var(--hand);
  font-size: 1.2rem;
  color: var(--pink-ink);
}

/* ---------- 動画カード ---------- */
.card {
  position: relative;
  max-width: 1000px;
  margin: 52px auto;
  padding: 30px 18px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 2px 0 rgba(120, 90, 60, 0.06), 0 10px 24px rgba(120, 90, 60, 0.1);
}
.wrap > .card:first-of-type { margin-top: 44px; }

/* マスキングテープ */
.card::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 124px;
  height: 27px;
  transform: translateX(-50%) rotate(-2deg);
  background:
    radial-gradient(rgba(255, 255, 255, 0.75) 2px, transparent 2.6px) 0 0 / 12px 12px,
    var(--tape);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.tape-red  { --tape: rgba(240, 120, 125, 0.78); --mark: rgba(232, 51, 61, 0.22);  --accent: var(--red); }
.tape-pink { --tape: rgba(248, 160, 195, 0.82); --mark: rgba(242, 112, 156, 0.26); --accent: var(--pink-ink); }
.tape-blue { --tape: rgba(120, 170, 240, 0.78); --mark: rgba(47, 125, 225, 0.22);  --accent: var(--blue); }

.card-title {
  margin: 0 0 4px;
  text-align: center;
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(20px, 4.6vw, 28px);
  line-height: 1.5;
  color: var(--accent);
}
.card-title span {
  background: linear-gradient(transparent 62%, var(--mark) 62%);
  padding: 0 0.3em;
}
.card-date {
  margin: 0 0 6px;
  text-align: center;
  font-family: var(--hand);
  font-size: 0.95rem;
  color: #a08c78;
}

/* ---------- 埋め込み（Instagram 1:1 と TikTok 9:16 を並べる） ---------- */
.embeds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  margin-top: 14px;
}
.embed { min-width: 0; text-align: center; }
.embed-ig { flex: 1 1 320px; max-width: 540px; }
.embed-tt { flex: 1 1 300px; max-width: 400px; }

.chip {
  display: inline-block;
  margin-bottom: 8px;
  padding: 0 0.9em;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.7;
  color: #fff;
}
.chip-ig { background: var(--pink-ink); }
.chip-tt { background: var(--blue); }

.embed blockquote { margin: 0 auto; text-align: left; }
.instagram-media {
  width: 100%;
  max-width: 540px;
  min-width: 0 !important;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 14px;
}
.tiktok-embed {
  width: 100%;
  max-width: 400px;
  min-width: 0 !important;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 14px;
}

/* TikTok：表紙画像のカード */
.tt-card {
  display: block;
  max-width: 400px;
  margin: 0 auto;
  text-decoration: none;
  color: inherit;
}
.tt-thumb {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  max-height: 560px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(160deg, #cfe0fa, #fbd0e0);
}
.tt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-thumb iframe { width: 100%; height: 100%; border: 0; display: block; }
.tt-play {
  position: absolute;
  top: 50%; left: 50%;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--blue);
  font-size: 26px;
  line-height: 64px;
  text-align: center;
  padding-left: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.tt-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 0.4em 1.6em;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--hand);
  font-size: 1.05rem;
}
.tt-btn { text-decoration: none; }
.tt-btn:hover { filter: brightness(1.08); }
/* PCで横に並んだとき：Instagramの写真と上端・高さをそろえる（値はrender.phpのスクリプトが入れる） */
.tt-sync .tt-card { padding-top: var(--ig-head); }
.tt-sync .tt-thumb {
  height: var(--ig-h);
  width: calc(var(--ig-h) * 9 / 16);
  max-height: none;
  aspect-ratio: auto;
}

/* ---------- 「過去の動画を見る」 ---------- */
.more { margin: 40px 0 12px; text-align: center; }
.more a {
  display: inline-block;
  padding: 0.7em 2.2em;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--hand);
  font-size: 1.15rem;
  text-decoration: none;
  box-shadow: 0 4px 0 #b9232c;
  transition: transform 0.1s, box-shadow 0.1s;
}
.more a:hover { transform: translateY(2px); box-shadow: 0 2px 0 #b9232c; }

/* ---------- 「どっち派？」投票（カードの下） ---------- */
.vote {
  max-width: 560px;
  margin: 18px auto 0;
  padding-top: 14px;
  border-top: 2px dashed var(--line);
  text-align: center;
}
.vote-q { margin: 0 0 8px; font-weight: 700; color: var(--ink); }
.vote-btns { display: flex; justify-content: center; gap: 12px; }
.vote-btn {
  display: grid;
  min-width: 150px;
  padding: 8px 16px;
  border: 2px solid var(--c);
  border-radius: 12px;
  background: var(--paper);
  color: var(--c);
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}
.vote-btn small { font-size: 0.75rem; font-weight: 500; }
.vote-btn:hover:not(:disabled) { background: var(--c); color: #fff; }
.vote-btn:disabled { cursor: default; opacity: 0.55; }
.vote-btn.is-mine { opacity: 1; background: var(--c); color: #fff; }
.vote-ig { --c: var(--pink-ink); }
.vote-tt { --c: var(--blue); }
.vote-result { margin-top: 10px; }
.vote-bar {
  display: flex;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}
.vote-bar span { display: block; height: 100%; transition: width 0.4s; }
.vote-bar-ig { background: var(--pink-ink); }
.vote-bar-tt { background: var(--blue); }
.vote-nums { margin: 4px 0 0; font-size: 0.85rem; color: #6d5d5d; }

/* ---------- 声を届ける ---------- */
.voice {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 20px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
}
.voice-lead { margin: 0 0 10px; font-size: 0.9rem; }
.voice-form { display: grid; gap: 8px; max-width: 560px; margin: 0 auto; text-align: left; }
.voice-kinds { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.voice-kinds input { position: absolute; opacity: 0; }
.voice-kinds span {
  display: inline-block;
  padding: 0.2em 1em;
  border: 2px solid var(--pink-ink);
  border-radius: 999px;
  color: var(--pink-ink);
  font-size: 0.9rem;
  cursor: pointer;
}
.voice-kinds input:checked + span { background: var(--pink-ink); color: #fff; }
.voice-kinds input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.voice-form textarea,
.voice-form input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font: inherit;
}
.voice-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.voice-send {
  justify-self: center;
  padding: 0.5em 2.4em;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.voice-send:disabled { opacity: 0.5; cursor: default; }
.voice-msg { margin: 0; text-align: center; font-weight: 700; }
.voice-msg.is-ok { color: #2e8b57; }
.voice-msg.is-ng { color: var(--red); }

@media (max-width: 600px) {
  .vote-btn { min-width: 0; flex: 1 1 0; padding: 8px 10px; }
}

/* 声を届ける：入力・確認・完了のページ（voice.php） */
.voice-page { padding-top: 16px; }
.voice-page-logo { margin: 0; text-align: center; font-family: var(--hand); font-size: 1.3rem; }
.voice-page-logo a { color: var(--red); text-decoration: none; }
.voice-page .voice { margin-top: 14px; }
.voice-back { margin: 14px 0 0; text-align: center; }
.voice-back a { color: var(--blue); }
.voice-confirm {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  max-width: 560px;
  margin: 12px auto;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: left;
}
.voice-confirm dt { font-weight: 700; color: var(--pink-ink); }
.voice-confirm dd { margin: 0; overflow-wrap: anywhere; }
.voice-confirm-ops { display: flex; justify-content: center; align-items: center; gap: 18px; }
.voice-edit { color: var(--blue); }
.voice-thanks {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 6px auto 10px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(120, 90, 60, 0.18);
}
.voice-top { display: inline-block; text-decoration: none; }
@media (max-width: 600px) {
  .voice-confirm { grid-template-columns: 1fr; gap: 2px; }
  .voice-confirm dd { margin-bottom: 8px; }
}

/* ---------- 紹介文（トップの下） ---------- */
.about {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 20px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  font-size: 0.95rem;
}
.about p { margin: 0 0 8px; }
.about-title {
  margin: 0 0 10px;
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(18px, 4vw, 23px);
  color: var(--pink-ink);
}
.about-title span { background: linear-gradient(transparent 62%, rgba(242, 112, 156, 0.22) 62%); padding: 0 0.3em; }
.about-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 4px 0 10px;
  padding: 0;
  list-style: none;
}
.about-members li { display: grid; justify-items: center; align-content: start; width: 170px; line-height: 1.5; }
.about-members img {
  width: 110px;
  height: 110px;
  margin-bottom: 4px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(120, 90, 60, 0.18);
  object-fit: cover;
}
.about-members strong { color: var(--red); }
.about-members .m-jun strong { color: var(--pink-ink); }
.about-members .m-amina strong { color: var(--blue); }
.about-members small { font-size: 0.8rem; color: #8a7666; white-space: nowrap; }
.about-catch { font-family: var(--hand); color: #8f1c47; }
.about-link { margin: 0; }
.about-link a { color: var(--blue); }

/* ---------- アーカイブ ---------- */
.back { margin: 28px 0 0; font-family: var(--hand); }
.back a { color: var(--blue); text-decoration: none; }
.back a:hover { text-decoration: underline; }

.months {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 8px;
}
.months a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.3em 1.1em;
  border: 2px solid var(--pink-ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--pink-ink);
  font-family: var(--hand);
  font-size: 1.05rem;
  text-decoration: none;
}
.months a small {
  padding: 0 0.55em;
  border-radius: 999px;
  background: rgba(242, 112, 156, 0.16);
  font-size: 0.8rem;
}
.months a.is-current { background: var(--pink-ink); color: #fff; }
.months a.is-current small { background: rgba(255, 255, 255, 0.3); }

.month-heading {
  margin: 36px 0 -6px;
  text-align: center;
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(22px, 5vw, 30px);
  color: var(--red);
}
.month-heading span {
  background: linear-gradient(transparent 62%, rgba(232, 51, 61, 0.2) 62%);
  padding: 0 0.4em;
}

/* ---------- フッター ---------- */
.foot {
  margin-top: 36px;
  padding: 32px 12px 40px;
  border-top: 2px dashed var(--line);
  text-align: center;
}
.sns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.sns a {
  display: inline-block;
  padding: 0.35em 1.2em;
  border-radius: 999px;
  border: 2px solid var(--c);
  background: var(--paper);
  color: var(--c);
  font-family: var(--hand);
  font-size: 1rem;
  text-decoration: none;
}
.sns-official { --c: var(--red); }
.sns-ig { --c: var(--pink-ink); }
.sns-tt { --c: var(--blue); }
.sns-x  { --c: #5a4a4a; }
.sns-yt { --c: var(--red); }
.sns a:hover { background: var(--c); color: #fff; }
.copy { margin: 0; font-size: 0.8rem; color: #a08c78; }

/* ---------- スマホ ---------- */
@media (max-width: 600px) {
  .card { margin: 44px auto; padding: 26px 10px 18px; }
  .embeds { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .more a { transition: none; }
}
