/* fulusato.jp 専用スタイル — [data-template="custom-fulusato"] スコープ */

:root {
  --fulusato-bg: #ffffff;
  --fulusato-text: #1f1b16;
  --fulusato-text-soft: #6b5f4f;
  --fulusato-text-muted: #968673;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fulusato-bg: #0d0d10;
    --fulusato-text: #f4ecdf;
    --fulusato-text-soft: #c8b9a2;
    --fulusato-text-muted: #8c7e6a;
  }
}

/* ── Layout ───────────────────────────────────────────── */

[data-template="custom-fulusato"] {
  position: fixed;
  inset: 0;
  overflow: hidden;
  color: var(--fulusato-text);
  background: var(--fulusato-bg);
  font-family: var(--font-base, "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif);
}

.fulusato-main {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── スタブ（第二階層 Coming Soon）ページ ───────────── */

.fulusato-stub {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(80px, 12vh, 120px) clamp(20px, 4vw, 60px) clamp(40px, 6vh, 60px);
  overflow-y: auto;
}

.fulusato-stub-inner {
  max-width: 720px;
  width: 100%;
  text-align: center;
}

.fulusato-stub-eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--fulusato-text-muted);
  margin: 0 0 1.2rem;
  text-transform: uppercase;
}

.fulusato-stub-title {
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(56px, 12vmin, 120px);
  letter-spacing: 0.16em;
  line-height: 1;
  margin: 0 0 1.6rem;
  background: linear-gradient(135deg, #7F77DD 0%, #5DCAA5 50%, #F0997B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fulusato-stub-blurb {
  font-size: clamp(13px, 1.8vmin, 16px);
  line-height: 1.9;
  color: var(--fulusato-text-soft);
  margin: 0 auto 1.4rem;
  max-width: 560px;
  text-align: center;
}

.fulusato-stub-coming {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--fulusato-text-muted);
  margin: 0 0 2.4rem;
}

.fulusato-stub-articles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  text-align: left;
}
.fulusato-stub-articles a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(127, 119, 221, 0.06);
  text-decoration: none;
  color: var(--fulusato-text);
  transition: transform 0.2s ease, background 0.2s ease;
}
.fulusato-stub-articles a:hover {
  transform: translateY(-2px);
  background: rgba(127, 119, 221, 0.12);
}
.fulusato-stub-article-title {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.5;
}
.fulusato-stub-article-author {
  font-size: 11px;
  color: var(--fulusato-text-muted);
}

/* ── /clone：AVATAR ギャラリー（縦中央寄せ・横スクロール） ── */

.fulusato-clone-gallery {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.fulusato-clone-avatar {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  /* avatar size：全画面で非オーバーラップが成立するレンジ。原寸比約 5 倍 × 0.7 */
  width: clamp(56px, 14vw, 266px);
  height: clamp(56px, 14vw, 266px);
  padding: 0;
  border: none;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  animation: fulusato-clone-flow linear infinite;
  will-change: transform;
  pointer-events: auto;
}

@keyframes fulusato-clone-flow {
  0%   { transform: translate(110vw, -50%); }
  100% { transform: translate(-110vw, -50%); }
}

.fulusato-clone-avatar-inner {
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(20px, 4.9vw, 91px);
  letter-spacing: 0.04em;
  box-shadow:
    0 12px 30px -10px rgba(60, 40, 10, 0.4),
    inset 0 0 0 3px rgba(255, 255, 255, 0.55);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.fulusato-clone-avatar:hover .fulusato-clone-avatar-inner,
.fulusato-clone-avatar:focus-visible .fulusato-clone-avatar-inner {
  transform: scale(1.18);
  box-shadow:
    0 12px 28px -6px rgba(60, 40, 10, 0.45),
    inset 0 0 0 3px rgba(255, 255, 255, 0.7);
}

/* 実クローンの avatar 画像 */
.fulusato-clone-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.fulusato-clone-avatar-emoji {
  font-size: clamp(36px, 9vw, 160px);
  line-height: 1;
}

/* avatar 直下に常時表示するクローン名ラベル */
.fulusato-clone-avatar-name {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% + 60px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(11px, 1.4vmin, 16px);
  letter-spacing: 0.06em;
  color: var(--fulusato-text);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .fulusato-clone-avatar { animation: none !important; }
}

/* ── クローン対話モーダル ──────────────────────────── */

/* クローンチャットモーダルを開いている間：ロゴとハンバーガーを背面に隠す。
   .fulusato-main が z-index:1 で stacking context を作るため、内部のモーダルが
   外側にあるロゴ（z=20）/ハンバーガー（z=60）の上に出られない問題への対処。 */
body.fulusato-clone-modal-open .fulusato-logo,
body.fulusato-clone-modal-open .fulusato-hamburger {
  visibility: hidden;
  pointer-events: none;
}

.fulusato-clone-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(20, 14, 8, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fulusato-clone-overlay-in 0.25s ease-out forwards;
}

@keyframes fulusato-clone-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fulusato-clone-modal {
  width: 80vw;
  height: 80vh;
  max-width: 1280px;
  background: #fff;
  border-radius: 22px;
  box-shadow:
    0 40px 80px -20px rgba(20, 14, 8, 0.45),
    0 12px 24px -8px rgba(127, 119, 221, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fulusato-clone-modal-in 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* スマホ：モーダルを画面全面に */
@media (max-width: 640px) {
  .fulusato-clone-modal-overlay {
    padding: 0;
  }
  .fulusato-clone-modal {
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* iOS でアドレスバー分を含むビューポート */
    max-width: 100vw;
    border-radius: 0;
  }
}

@keyframes fulusato-clone-modal-in {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.fulusato-clone-modal-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px 16px;
  color: #fff;
  flex-shrink: 0;
  isolation: isolate;
  /* ベース：色を均等配分（緑 2 つを離す） */
  background:
    radial-gradient(circle at 20% 20%, #7F77DD 0%, transparent 55%),
    radial-gradient(circle at 80% 25%, #F0997B 0%, transparent 55%),
    radial-gradient(circle at 70% 80%, #ED93B1 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, #5DCAA5 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, #85B7EB 0%, transparent 70%),
    linear-gradient(135deg, #7F77DD, #ED93B1);
  background-size:
    180% 180%,
    180% 180%,
    180% 180%,
    180% 180%,
    180% 180%,
    100% 100%;
  animation: fulusato-clone-aurora 9s ease-in-out infinite;
}
@keyframes fulusato-clone-aurora {
  0%   { background-position: 0% 0%,  100% 0%,  100% 100%, 0% 100%, 50% 50%, 0 0; }
  25%  { background-position: 50% 25%,50% 0%,  100% 50%,  0% 50%,  0% 100%, 0 0; }
  50%  { background-position: 100% 50%,0% 50%, 50% 100%,  50% 0%,  100% 0%, 0 0; }
  75%  { background-position: 50% 75%,50% 100%,0% 50%,    100% 50%,100% 100%,0 0; }
  100% { background-position: 0% 0%,  100% 0%,  100% 100%, 0% 100%, 50% 50%, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fulusato-clone-modal-head { animation: none; }
}

.fulusato-clone-modal-head-info {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.fulusato-clone-modal-head-avatar {
  display: flex;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 36px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.55);
}

.fulusato-clone-modal-head-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.fulusato-clone-modal-head-name {
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fulusato-clone-modal-head-role {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  letter-spacing: 0.02em;
}
.fulusato-clone-modal-head-bio {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.96);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  cursor: pointer;
}
/* スマホは 1 行省略 → タップで全文展開 */
@media (max-width: 720px) {
  .fulusato-clone-modal-head-bio {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
  }
  .fulusato-clone-modal-head-bio.is-expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
  }
}

.fulusato-clone-modal-head-links {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fulusato-clone-modal-head-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  max-width: 220px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.fulusato-clone-modal-head-links a:hover {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.55);
}
.fulusato-clone-modal-head-links a > span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* /dialog/[id] ParticipantCards でまだ使われている旧スタイル（後方互換） */
.fulusato-clone-modal-head-link {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.55);
  align-self: flex-start;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.fulusato-clone-modal-head-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.fulusato-clone-modal-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.fulusato-clone-modal-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  padding: 8px 12px;
  height: 34px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.1s ease;
}
.fulusato-clone-modal-share:hover {
  background: rgba(255, 255, 255, 0.32);
}
.fulusato-clone-modal-share:active {
  transform: scale(0.96);
}
.fulusato-clone-modal-share svg {
  width: 14px;
  height: 14px;
}
.fulusato-clone-modal-share.is-active {
  background: #fff;
  color: #333;
}

.fulusato-clone-share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  animation: fulusato-share-bar-in 0.18s ease-out;
}
@keyframes fulusato-share-bar-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fulusato-clone-share-url {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #222;
  outline: none;
}
.fulusato-clone-share-url:focus {
  border-color: #7F77DD;
  box-shadow: 0 0 0 3px rgba(127, 119, 221, 0.18);
}
.fulusato-clone-share-copy,
.fulusato-clone-share-native {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.fulusato-clone-share-copy {
  background: linear-gradient(135deg, #7F77DD, #5DCAA5, #F0997B, #ED93B1);
  background-size: 200% 200%;
  color: #fff;
  animation: fulusato-share-copy-shimmer 6s ease-in-out infinite;
}
@keyframes fulusato-share-copy-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.fulusato-clone-share-copy:hover { filter: brightness(1.05); }
.fulusato-clone-share-copy:active { transform: scale(0.96); }

.fulusato-clone-share-native {
  background: rgba(0, 0, 0, 0.06);
  color: #333;
}
.fulusato-clone-share-native:hover { background: rgba(0, 0, 0, 0.1); }

@media (max-width: 640px) {
  .fulusato-clone-share-bar {
    flex-wrap: wrap;
    padding: 8px 12px;
  }
  .fulusato-clone-share-url {
    flex: 1 0 100%;
    order: -1;
  }
  .fulusato-clone-share-copy span,
  .fulusato-clone-share-native span {
    display: inline;
  }
}

.fulusato-clone-modal-close {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.fulusato-clone-modal-close:hover {
  background: rgba(255, 255, 255, 0.32);
}

.fulusato-clone-share-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  background: rgba(20, 20, 30, 0.92);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
  z-index: 1000;
  animation: fulusato-share-toast-in 0.18s ease-out;
}
@keyframes fulusato-share-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.fulusato-clone-modal-body {
  flex: 1;
  overflow: hidden;
  background: #fff;
  position: relative;
}

/* TURN_LIMIT 超過時：本人ホームページへの誘導バナー（チャット下部にオーバーレイ） */
.fulusato-clone-redirect-banner {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 88px;       /* 入力欄の上にオーバーレイ表示 */
  z-index: 5;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 248, 240, 0.97);
  border: 1px solid rgba(127, 119, 221, 0.25);
  box-shadow: 0 12px 28px -10px rgba(60, 40, 10, 0.3);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fulusato-redirect-in 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fulusato-redirect-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-color-scheme: dark) {
  .fulusato-clone-redirect-banner {
    background: rgba(40, 30, 20, 0.97);
    border-color: rgba(175, 169, 236, 0.3);
  }
}

.fulusato-clone-redirect-msg {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fulusato-text);
}
.fulusato-clone-redirect-msg strong {
  font-weight: 700;
}

.fulusato-clone-redirect-btn {
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--fulusato-text);
  color: var(--fulusato-bg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fulusato-clone-redirect-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.2);
}

/* ── About ページ（/fulusato） ──────────────────────── */

.fulusato-about {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: clamp(80px, 12vh, 120px) clamp(20px, 4vw, 60px) clamp(60px, 8vh, 100px);
}

.fulusato-about-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.fulusato-about-eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--fulusato-text-muted);
  margin: 0 0 0.8rem;
  text-transform: lowercase;
}

.fulusato-about-title {
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(40px, 8vmin, 72px);
  letter-spacing: 0.12em;
  line-height: 1.1;
  margin: 0 0 1.6rem;
  background: linear-gradient(135deg, #7F77DD 0%, #5DCAA5 50%, #F0997B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fulusato-about-lead {
  font-size: clamp(15px, 2vmin, 18px);
  line-height: 2;
  color: var(--fulusato-text-soft);
  margin: 0 0 3rem;
}

.fulusato-about-section {
  margin: 0 0 2.8rem;
}

.fulusato-about-section h2 {
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(20px, 3vmin, 26px);
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
  display: inline-block;
  padding-bottom: 0.12em;
  background: linear-gradient(135deg, #7F77DD 0%, #5DCAA5 50%, #F0997B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fulusato-about-section p {
  font-size: clamp(13px, 1.8vmin, 16px);
  line-height: 1.95;
  color: var(--fulusato-text-soft);
  margin: 0 0 0.8rem;
}

.fulusato-about-section a {
  color: var(--fulusato-text);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
}

.fulusato-about-meaning {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.6rem 1.6rem;
  margin: 0;
}
.fulusato-about-meaning dt {
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(20px, 2.7vmin, 24px);
  color: var(--fulusato-text);
}
.fulusato-about-meaning dd {
  margin: 0;
  font-size: clamp(13px, 1.7vmin, 15px);
  line-height: 1.8;
  color: var(--fulusato-text-soft);
}
.fulusato-about-meaning dd strong {
  color: var(--fulusato-text);
  font-weight: 700;
}

.fulusato-about-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.fulusato-about-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.4rem 1.4rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(127, 119, 221, 0.15);
}
.fulusato-about-list li strong {
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(16px, 2.2vmin, 20px);
  letter-spacing: 0.16em;
  color: var(--fulusato-text);
}
.fulusato-about-list li span {
  font-size: clamp(12px, 1.6vmin, 14px);
  line-height: 1.7;
  color: var(--fulusato-text-soft);
}

.fulusato-about-cta {
  margin: 3.6rem 0 0;
  text-align: center;
}
.fulusato-about-cta-btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  background: var(--fulusato-text);
  color: var(--fulusato-bg);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.2);
}
.fulusato-about-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.3);
}

/* ── /dialog 一覧ページ ──────────────────────────── */

.fulusato-archive {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: clamp(80px, 12vh, 120px) clamp(20px, 4vw, 60px) clamp(60px, 8vh, 100px);
}

.fulusato-archive-inner {
  width: 80vw;
  max-width: 1280px;
  margin: 0 auto;
}

.fulusato-archive-eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--fulusato-text-muted);
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

.fulusato-archive-title {
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(36px, 7vmin, 56px);
  letter-spacing: 0.1em;
  line-height: 1.3;
  margin: 0 0 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.fulusato-archive-title > span {
  display: inline-block;
  padding-bottom: 0.12em;
  background: linear-gradient(135deg, #7F77DD 0%, #5DCAA5 50%, #F0997B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fulusato-archive-title-mark {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  display: block;
}

.fulusato-archive-lead {
  font-size: clamp(14px, 1.9vmin, 17px);
  line-height: 1.9;
  color: var(--fulusato-text-soft);
  margin: 0 0 1.6rem;
  max-width: 640px;
}

.fulusato-dialog-host {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 2.4rem;
}
.fulusato-dialog-host-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7F77DD 0%, #5DCAA5 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(127, 119, 221, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.fulusato-dialog-host-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(127, 119, 221, 0.4);
  filter: brightness(1.05);
}
.fulusato-dialog-host-hint {
  font-size: 13px;
  color: var(--fulusato-text-soft);
}

.fulusato-archive-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--fulusato-text-muted);
}
.fulusato-archive-empty-icon {
  font-size: 48px;
  margin-bottom: 1rem;
}
.fulusato-archive-empty-hint a {
  color: var(--fulusato-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.fulusato-archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.fulusato-archive-card {
  display: block;
  padding: 1.4rem 1.6rem;
  background: #fff;
  border: 1px solid rgba(127, 119, 221, 0.18);
  border-radius: 16px;
  text-decoration: none;
  color: var(--fulusato-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.fulusato-archive-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(127, 119, 221, 0.25);
  border-color: rgba(127, 119, 221, 0.4);
}

.fulusato-archive-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 12px;
}
.fulusato-archive-card-style {
  font-weight: 700;
  color: var(--fulusato-text-soft);
  letter-spacing: 0.04em;
}
.fulusato-archive-card-date {
  color: var(--fulusato-text-muted);
}

.fulusato-archive-card-theme {
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(18px, 2.4vmin, 22px);
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin: 0 0 0.5rem;
  color: var(--fulusato-text);
}

.fulusato-archive-card-goal {
  font-size: 12px;
  color: var(--fulusato-text-soft);
  margin: 0 0 0.8rem;
  padding: 4px 10px;
  background: rgba(127, 119, 221, 0.08);
  border-radius: 999px;
  display: inline-block;
}

.fulusato-archive-card-participants {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0.6rem 0;
}
.fulusato-archive-card-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fulusato-bg-2);
  font-size: 14px;
  overflow: hidden;
  flex-shrink: 0;
}
.fulusato-archive-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fulusato-archive-card-names {
  font-size: 11px;
  color: var(--fulusato-text-soft);
  letter-spacing: 0.04em;
  margin-left: 4px;
}

.fulusato-archive-card-summary {
  font-size: 13px;
  line-height: 1.7;
  color: var(--fulusato-text-soft);
  margin: 0.8rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fulusato-archive-card-meta {
  display: flex;
  gap: 12px;
  margin-top: 0.8rem;
  font-size: 11px;
  color: var(--fulusato-text-muted);
}

/* ── /dialog/[id] 詳細ページ ──────────────────────── */

.fulusato-archive-detail {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: clamp(80px, 12vh, 120px) clamp(16px, 4vw, 40px) clamp(60px, 8vh, 100px);
}

.fulusato-archive-detail-inner {
  width: 80vw;
  max-width: 1280px;
  margin: 0 auto;
}

.fulusato-archive-back {
  display: inline-block;
  font-size: 14px;
  color: var(--fulusato-text-soft);
  text-decoration: none;
  margin-bottom: 1.6rem;
  letter-spacing: 0.04em;
}
.fulusato-archive-back:hover {
  color: var(--fulusato-text);
  text-decoration: underline;
}

.fulusato-archive-detail-head {
  margin-bottom: 2.4rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(127, 119, 221, 0.18);
}

.fulusato-archive-detail-style {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--fulusato-text-soft);
  letter-spacing: 0.04em;
  padding: 4px 12px;
  background: rgba(127, 119, 221, 0.08);
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.fulusato-archive-detail-theme {
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(26px, 4.6vmin, 40px);
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin: 0 0 0.8rem;
  color: var(--fulusato-text);
}

.fulusato-archive-detail-goal {
  font-size: 15px;
  color: var(--fulusato-text-soft);
  margin: 0 0 1rem;
}
.fulusato-archive-detail-goal::before {
  content: '🎯 ';
}

.fulusato-archive-detail-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0.8rem 0;
}
.fulusato-archive-detail-participant {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 4px;
  background: var(--fulusato-bg-2);
  border-radius: 999px;
  font-size: 14px;
  color: var(--fulusato-text-soft);
}
.fulusato-archive-detail-participant img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.fulusato-archive-detail-participant .emoji {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #fff;
  border-radius: 50%;
}

.fulusato-archive-detail-meta {
  display: flex;
  gap: 12px;
  margin-top: 0.8rem;
  font-size: 13px;
  color: var(--fulusato-text-muted);
}

/* 共有ボタン群（ダイアログ詳細ヘッダー下） */
.fulusato-archive-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.9rem;
}
.fulusato-archive-share-label {
  font-size: 12px;
  color: var(--fulusato-text-muted);
  letter-spacing: 0.04em;
}
.fulusato-archive-share-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--fulusato-text, #2a2a36);
  background: #fff;
  border: 1px solid rgba(127, 119, 221, 0.25);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.fulusato-archive-share-btn:hover {
  background: rgba(127, 119, 221, 0.08);
  border-color: rgba(127, 119, 221, 0.5);
  transform: translateY(-1px);
}
.fulusato-archive-detail-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.fulusato-archive-turn {
  display: block;
}
.fulusato-archive-turn.is-moderator .fulusato-archive-turn-bubble {
  background: rgba(127, 119, 221, 0.06);
  border-color: rgba(127, 119, 221, 0.2);
}

.fulusato-archive-turn-bubble {
  padding: 12px 16px 14px;
  background: #fff;
  border: 2px solid rgba(127, 119, 221, 0.2);
  border-radius: 14px;
  transition: border-color 0.2s ease;
}

.fulusato-archive-turn-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.fulusato-archive-turn-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fulusato-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fulusato-archive-turn-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fulusato-archive-turn-avatar .emoji,
.fulusato-archive-turn-avatar .moderator-icon {
  font-size: 18px;
}

.fulusato-archive-turn-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--fulusato-text-soft);
  letter-spacing: 0.04em;
}

.fulusato-archive-turn-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--fulusato-text);
  white-space: pre-wrap;
}

[data-template="custom-fulusato"] .fulusato-archive-detail-cards {
  margin: 2.4rem 0 2rem;
}
[data-template="custom-fulusato"] .fulusato-archive-detail-cards-title {
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--fulusato-text);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
[data-template="custom-fulusato"] .fulusato-archive-detail-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
[data-template="custom-fulusato"] .fulusato-archive-card-profile {
  background: var(--fulusato-card-bg, #fff);
  border: 1px solid var(--fulusato-card-border, rgba(127, 119, 221, 0.18));
  border-radius: 16px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 18px;
  row-gap: 10px;
  box-shadow: 0 2px 10px rgba(15, 20, 40, 0.04);
}
[data-template="custom-fulusato"] .fulusato-archive-card-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  grid-row: 1;
  grid-column: 1;
  min-width: 0;
}
[data-template="custom-fulusato"] .fulusato-archive-card-profile-head img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
[data-template="custom-fulusato"] .fulusato-archive-card-profile-head .emoji {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(127, 119, 221, 0.1);
  font-size: 32px;
  flex-shrink: 0;
}
[data-template="custom-fulusato"] .fulusato-archive-card-profile-name-wrap {
  min-width: 0;
}
[data-template="custom-fulusato"] .fulusato-archive-card-profile-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--fulusato-text);
  line-height: 1.3;
  word-break: break-word;
}
[data-template="custom-fulusato"] .fulusato-archive-card-profile-role {
  font-size: 13px;
  color: var(--fulusato-text-muted, #6b7280);
  margin-top: 3px;
  letter-spacing: 0.02em;
}
[data-template="custom-fulusato"] .fulusato-archive-card-profile-bio {
  font-size: 15px;
  line-height: 1.75;
  color: var(--fulusato-text);
  margin: 0;
  white-space: pre-wrap;
  grid-row: 3;
  grid-column: 1 / -1;
}
[data-template="custom-fulusato"] .fulusato-archive-card-profile-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  grid-row: 1;
  grid-column: 2;
  align-self: center;
}
[data-template="custom-fulusato"] .fulusato-archive-card-profile-chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 6px rgba(15, 20, 40, 0.1);
  white-space: nowrap;
}
[data-template="custom-fulusato"] .fulusato-archive-card-profile-chat:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 4px 12px rgba(15, 20, 40, 0.16);
}
[data-template="custom-fulusato"] .fulusato-archive-card-profile-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(127, 119, 221, 0.3);
  background: rgba(127, 119, 221, 0.04);
  color: var(--fulusato-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
[data-template="custom-fulusato"] .fulusato-archive-card-profile-home:hover {
  background: rgba(127, 119, 221, 0.12);
  border-color: rgba(127, 119, 221, 0.5);
}
[data-template="custom-fulusato"] .fulusato-archive-card-profile-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-row: 2;
  grid-column: 1 / -1;
  padding-top: 4px;
  border-top: 1px dashed rgba(127, 119, 221, 0.16);
}
[data-template="custom-fulusato"] .fulusato-archive-card-profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(127, 119, 221, 0.08);
  border: 1px solid rgba(127, 119, 221, 0.18);
  font-size: 13px;
  color: var(--fulusato-text);
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease;
  max-width: 100%;
}
[data-template="custom-fulusato"] .fulusato-archive-card-profile-links a:hover {
  background: rgba(127, 119, 221, 0.15);
  border-color: rgba(127, 119, 221, 0.3);
}
[data-template="custom-fulusato"] .fulusato-archive-card-profile-links a > span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
@media (max-width: 720px) {
  [data-template="custom-fulusato"] .fulusato-archive-card-profile {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }
  [data-template="custom-fulusato"] .fulusato-archive-card-profile-head {
    grid-row: auto;
    grid-column: 1;
  }
  [data-template="custom-fulusato"] .fulusato-archive-card-profile-bio {
    grid-row: auto;
    grid-column: 1;
  }
  [data-template="custom-fulusato"] .fulusato-archive-card-profile-actions {
    grid-row: auto;
    grid-column: 1;
    min-width: 0;
  }
  [data-template="custom-fulusato"] .fulusato-archive-card-profile-links {
    grid-row: auto;
    grid-column: 1;
  }
}

.fulusato-archive-detail-summary {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #7F77DD 0%, #5DCAA5 50%, #F0997B 100%) border-box;
  border: 3px solid transparent;
  border-radius: 16px;
}
.fulusato-archive-detail-summary h2 {
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--fulusato-text-soft);
  margin: 0 0 0.8rem;
}
.fulusato-archive-detail-summary h2::before {
  content: '🎙️ ';
}
.fulusato-archive-detail-summary p {
  font-size: 16px;
  line-height: 1.95;
  color: var(--fulusato-text);
  margin: 0;
  white-space: pre-wrap;
}

.fulusato-archive-detail-cta {
  margin: 2.4rem 0 1.6rem;
  padding: 2rem 1.6rem;
  border-top: 1px solid rgba(127, 119, 221, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}
.fulusato-archive-detail-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7f77dd 0%, #5dcaa5 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(127, 119, 221, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.fulusato-archive-detail-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(127, 119, 221, 0.42);
  filter: brightness(1.05);
}
.fulusato-archive-detail-cta-hint {
  font-size: 13px;
  color: var(--fulusato-text-soft);
  margin: 0;
  line-height: 1.6;
}

/* ── SEO / LLMO / 支援技術向けセマンティックレイヤー ──── */
/* 視覚的には非表示だが DOM には正規の文書として存在。
   Google / Bing / ChatGPT / Claude / Gemini のクローラーや
   スクリーンリーダーがこの構造を読む */
.fulusato-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── 左上：ロゴ（テキストのみ） ─────────────────────── */

.fulusato-logo {
  position: absolute;
  top: clamp(16px, 2.4vh, 28px);
  left: clamp(16px, 2.4vw, 28px);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fulusato-text);
  z-index: 20;
  transition: transform 0.2s ease;
}
.fulusato-logo:hover { transform: translateY(-1px); }

.fulusato-logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: block;
}

.fulusato-logo-text {
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.08em;
  line-height: 1;
  background: linear-gradient(135deg, #7F77DD 0%, #5DCAA5 50%, #F0997B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── 左下：コピーライト ───────────────────────────────── */

.fulusato-copyright {
  position: absolute;
  bottom: clamp(12px, 2vh, 20px);
  left: clamp(16px, 2.4vw, 28px);
  margin: 0;
  font-size: 11px;
  color: var(--fulusato-text-muted);
  letter-spacing: 0.05em;
  z-index: 20;
}
.fulusato-copyright a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--fulusato-text-muted);
}

/* ── 右上：ハンバーガーボタン ──────────────────────────── */

.fulusato-hamburger {
  position: fixed;
  top: clamp(14px, 2.4vh, 24px);
  right: clamp(14px, 2.4vw, 24px);
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7F77DD 0%, #5DCAA5 50%, #F0997B 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  box-shadow: 0 6px 18px -6px rgba(127, 119, 221, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.fulusato-hamburger:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 24px -8px rgba(127, 119, 221, 0.5);
  filter: brightness(1.05);
}

.fulusato-hamburger-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
  align-items: stretch;
}
.fulusato-hamburger-bars > span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: 50% 50%;
}

.fulusato-hamburger.is-open .fulusato-hamburger-bars > span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.fulusato-hamburger.is-open .fulusato-hamburger-bars > span:nth-child(2) {
  opacity: 0;
}
.fulusato-hamburger.is-open .fulusato-hamburger-bars > span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.fulusato-hamburger-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-top: 2px;
  line-height: 1;
}
.fulusato-hamburger.is-open .fulusato-hamburger-label {
  opacity: 0;
}

/* ── メニューオーバーレイ ────────────────────────────── */

.fulusato-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.fulusato-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-color-scheme: dark) {
  .fulusato-menu-overlay {
    background: rgba(13, 13, 16, 0.97);
  }
}

.fulusato-menu-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fulusato-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(2.4rem, 6vh, 4rem);
}

.fulusato-menu-item {
  text-align: center;
  opacity: 0;
}
.fulusato-menu-overlay.is-open .fulusato-menu-item {
  animation: fulusato-menu-item-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fulusato-menu-item-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fulusato-menu-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--fulusato-text);
  transition: transform 0.25s ease;
}
.fulusato-menu-link:hover {
  transform: translateY(-2px);
}

.fulusato-menu-label {
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(20px, 3.6vmin, 36px);
  letter-spacing: 0.18em;
  line-height: 1.3;
  display: inline-block;
  padding-bottom: 0.12em;
  color: var(--fulusato-text);
  background: linear-gradient(135deg, #7F77DD 0%, #5DCAA5 50%, #F0997B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.25s ease;
}
.fulusato-menu-link:hover .fulusato-menu-label {
  opacity: 0.78;
}

.fulusato-menu-sub {
  font-size: clamp(11px, 1.4vmin, 13px);
  letter-spacing: 0.18em;
  color: var(--fulusato-text-muted);
  font-weight: 500;
}

/* ── 右下：CHAT フローティング ────────────────────────── */

.fulusato-chat-toggle {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 30;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(135deg, #7F77DD 0%, #5DCAA5 100%);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(127, 119, 221, 0.35), 0 4px 8px rgba(93, 202, 165, 0.25);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  padding: 0;
  animation: fulusato-chat-pulse 6s ease-in-out infinite;
}
.fulusato-chat-toggle:hover {
  animation-play-state: paused;
  transform: scale(1.1);
  box-shadow: 0 16px 40px rgba(127, 119, 221, 0.45), 0 6px 12px rgba(93, 202, 165, 0.35);
}

@keyframes fulusato-chat-pulse {
  0%, 75%, 100% { transform: scale(1);    }
  85%           { transform: scale(1.08); }
  95%           { transform: scale(0.98); }
}

.fulusato-chat-icon {
  width: 48px; height: 48px;
  object-fit: contain;
  display: block;
}
.fulusato-chat-label {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
.fulusato-chat-online {
  position: absolute;
  top: 6%; right: 6%;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.fulusato-chat-online > span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #16a34a;
}

@media (min-width: 640px) {
  .fulusato-chat-toggle { width: 116px; height: 116px; }
  .fulusato-chat-icon   { width: 60px; height: 60px; }
  .fulusato-chat-label  { font-size: 0.85rem; }
}

.fulusato-chat-panel {
  position: fixed;
  bottom: 7.5rem;
  right: 1.5rem;
  z-index: 30;
  width: min(380px, calc(100vw - 2rem));
  height: min(580px, calc(100vh - 9rem));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 28px 60px -16px rgba(72, 50, 20, 0.28), 0 8px 18px -8px rgba(127, 119, 221, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fulusato-chat-panel-in 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fulusato-chat-panel-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.fulusato-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #7F77DD 0%, #5DCAA5 100%);
  color: #fff;
  flex-shrink: 0;
}

.fulusato-chat-head-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fulusato-chat-head-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.fulusato-chat-head-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fulusato-chat-head-name {
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fulusato-chat-head-desc {
  font-size: 11px;
  opacity: 0.85;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fulusato-chat-head-close {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.fulusato-chat-head-close:hover {
  background: rgba(255, 255, 255, 0.32);
}

.fulusato-chat-body {
  flex: 1;
  overflow: hidden;
  background: #fff;
}

/* ── アニメーションサイクラー ───────────────────────────────── */

.fulusato-cycler {
  position: absolute;
  inset: 0;
}

.fulusato-cycler-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: fulusato-scene-in var(--fade-duration, 1400ms) ease-out forwards;
}
.fulusato-cycler-scene.is-fading {
  animation: fulusato-scene-out var(--fade-duration, 1400ms) ease-in forwards;
}

@keyframes fulusato-scene-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fulusato-scene-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.fulusato-cycler-hud {
  position: absolute;
  bottom: clamp(12px, 2vh, 20px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
  pointer-events: none;
}
.fulusato-cycler-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fulusato-text-muted);
  opacity: 0.4;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.fulusato-cycler-dot.is-active {
  opacity: 1;
  transform: scale(1.4);
}

/* ── シーン 1：3D テキスト螺旋（円柱） ────────────────── */

.fulusato-helix {
  position: absolute;
  inset: 0;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  overflow: hidden;
  filter: saturate(1.18) contrast(1.08);
}

.fulusato-helix-cylinder {
  position: absolute;
  left: 50%; top: 50%;
  /* レスポンシブ：ウインドウ幅の 1/3 = 直径 2/3 */
  --cyl-radius: min(33vw, 33vh);
  transform-style: preserve-3d;
  animation: fulusato-helix-spin var(--helix-spin-duration, 80s) linear infinite;
  will-change: transform;
}
/* スマホは円柱・文字どちらも小さく、左右に余白を見せる */
@media (max-width: 720px) {
  .fulusato-helix-cylinder {
    --cyl-radius: 22vw;  /* 直径 44vw（左右 28vw ずつ余白） */
  }
  /* インライン font-size を上書きして文字も縮小 */
  .fulusato-helix-text {
    font-size: 11px !important;
  }
  /* 上端 20% を自然にフェードアウト */
  .fulusato-helix {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 100%);
  }
}

@keyframes fulusato-helix-spin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

.fulusato-helix-slot {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  transform-origin: 0 0;
}

.fulusato-helix-text {
  position: absolute;
  top: 0; left: 0;
  white-space: nowrap;
  text-decoration: none;
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  backface-visibility: hidden;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(62, 55, 92, 0.16);
  animation: fulusato-helix-rise var(--helix-rise-duration, 50s) linear infinite;
  will-change: translate, opacity;
  pointer-events: auto;
}
.fulusato-helix-text:hover {
  text-decoration: underline;
}

@keyframes fulusato-helix-rise {
  0%   { translate: -50% 60vh 0;  opacity: 0; }
  8%   { opacity: 0.94; }
  92%  { opacity: 0.94; }
  100% { translate: -50% -60vh 0; opacity: 0; }
}

/* ── シーン 2：川の流れ（横スクロール多レーン） ────────── */

.fulusato-river {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.fulusato-river-lane {
  position: absolute;
  left: 0; right: 0;
  height: 0;
}

.fulusato-river-text {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  text-decoration: none;
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  animation: fulusato-river-flow linear infinite;
  will-change: transform;
  pointer-events: auto;
  --river-amp: 8px;
}
.fulusato-river-text:hover {
  text-decoration: underline;
}

/* X 方向は等速、Y 方向は 4 周期のサイン波。レーンごとに振幅 (--river-amp) が異なる */
@keyframes fulusato-river-flow {
  0%   { transform: translate(-110vw, calc(-50% + 0px));                   opacity: 0; }
  6%   { transform: translate(-90vw,  calc(-50% - var(--river-amp) * 0.7)); opacity: 0.6; }
  12.5% { transform: translate(-72vw, calc(-50% - var(--river-amp)));       opacity: 1; }
  18.7% { transform: translate(-56vw, calc(-50% - var(--river-amp) * 0.7)); }
  25%  { transform: translate(-40vw,  calc(-50% + 0px));                   }
  31.3% { transform: translate(-25vw, calc(-50% + var(--river-amp) * 0.7)); }
  37.5% { transform: translate(-10vw, calc(-50% + var(--river-amp)));       }
  43.7% { transform: translate(5vw,   calc(-50% + var(--river-amp) * 0.7)); }
  50%  { transform: translate(20vw,   calc(-50% + 0px));                   }
  56.3% { transform: translate(35vw,  calc(-50% - var(--river-amp) * 0.7)); }
  62.5% { transform: translate(50vw,  calc(-50% - var(--river-amp)));       }
  68.7% { transform: translate(64vw,  calc(-50% - var(--river-amp) * 0.7)); }
  75%  { transform: translate(78vw,   calc(-50% + 0px));                   }
  81.3% { transform: translate(90vw,  calc(-50% + var(--river-amp) * 0.7)); }
  87.5% { transform: translate(100vw, calc(-50% + var(--river-amp)));       }
  94%  { transform: translate(108vw,  calc(-50% + var(--river-amp) * 0.7)); opacity: 0.6; }
  100% { transform: translate(110vw,  calc(-50% + 0px));                   opacity: 0; }
}

/* ── シーン 3：ベタ打ちタイプライター ─────────────────── */

.fulusato-typewriter {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: clamp(80px, 10vh, 110px) clamp(28px, 5vw, 70px) clamp(40px, 6vh, 60px);
  font-family: "JetBrains Mono", "Source Code Pro", "SFMono-Regular", "Menlo", "Consolas", monospace;
}

.fulusato-typewriter-stage {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fulusato-typewriter-line {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-size: clamp(16px, 2.4vmin, 22px);
  line-height: 1.55;
  opacity: 0;
  animation: fulusato-typewriter-line-show 0.1s linear forwards;
}

@keyframes fulusato-typewriter-line-show {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fulusato-typewriter-prompt {
  color: var(--fulusato-text-muted);
  user-select: none;
  flex-shrink: 0;
}

.fulusato-typewriter-text {
  text-decoration: none;
  font-weight: 600;
}
.fulusato-typewriter-text:hover {
  text-decoration: underline;
}

/* 各文字：透明 → 一瞬で表示。タイプライター打ちっぽくスナップで現れる */
.fulusato-typewriter-char {
  display: inline-block;
  opacity: 0;
  animation: fulusato-typewriter-char-show 0.02s steps(1) forwards;
}

@keyframes fulusato-typewriter-char-show {
  to { opacity: 1; }
}

/* キャレット：1 行打ち終わった瞬間から数秒だけ点滅して次行へ */
.fulusato-typewriter-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  vertical-align: text-bottom;
  background: currentColor;
  margin-left: 2px;
  opacity: 0;
  animation: fulusato-typewriter-cursor-blink 0.5s steps(1) infinite;
  animation-fill-mode: backwards;
}

@keyframes fulusato-typewriter-cursor-blink {
  0%   { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 1; }
}

.fulusato-typewriter-author {
  color: var(--fulusato-text-muted);
  font-size: 0.85em;
  margin-left: 0.4em;
}

/* ── シーン 4 旧：縦書きキーワードズーム（未使用・残存） ── */

.fulusato-vertical {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* 各キーワード：縦書き、縦中央付近で X はランダム配置。奥行きから手前へズーム */
.fulusato-vertical-keyword {
  position: absolute;
  transform: translate(-50%, -50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
  opacity: 0;
  scale: 0.3;
  animation: fulusato-vertical-zoom ease-in-out infinite;
  will-change: scale, opacity;
}
.fulusato-vertical-keyword:hover {
  text-decoration: underline;
}

/* 0% で奥（小・無色）→ 中盤で目の前を通過（大・最大）→ 視界から外れて消失 */
@keyframes fulusato-vertical-zoom {
  0%   { opacity: 0;   scale: 0.25; }
  15%  { opacity: 0.9; scale: 0.7;  }
  50%  { opacity: 1;   scale: 1.4;  }
  78%  { opacity: 0.6; scale: 2.2;  }
  100% { opacity: 0;   scale: 3.2;  }
}

@media (prefers-color-scheme: dark) {
  .fulusato-helix-text {
    text-shadow:
      0 1px 0 rgba(0, 0, 0, 0.45),
      0 8px 18px rgba(0, 0, 0, 0.28);
  }
}

/* ── やわらかく連なる文字波動（SoftText） ─────────────── */

.fulusato-soft {
  display: inline-block;
}

.fulusato-soft-char {
  display: inline-block;
  animation: fulusato-soft-wave 2.6s ease-in-out infinite;
}

/* 上下の微小うねり + わずかな回転 = 一字一字が呼吸して連なる */
@keyframes fulusato-soft-wave {
  0%   { transform: translateY(0)      rotate(0deg);   }
  25%  { transform: translateY(-2.5px) rotate(-0.6deg); }
  50%  { transform: translateY(0)      rotate(0deg);   }
  75%  { transform: translateY(2.5px)  rotate(0.6deg);  }
  100% { transform: translateY(0)      rotate(0deg);   }
}

/* ── reduced-motion ───────────────────────────────────── */

/* ── シーン 3：迷路（文字で構成される、フルウインドウ） ── */

.fulusato-maze {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* 迷路の枠：ウインドウ全体をフィル（アスペクト比は維持しない＝レスポンシブ） */
.fulusato-maze-frame {
  position: absolute;
  inset: 0;
}

/* 各文字：壁の位置に絶対配置。順次フェードイン+スケールアップ */
.fulusato-maze-char {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(8px, 1.4vmin, 14px);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  animation: fulusato-maze-char-emerge 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  will-change: opacity, transform;
}

@keyframes fulusato-maze-char-emerge {
  0%   { opacity: 0;    transform: translate(-50%, -50%) scale(0); }
  60%  { opacity: 1;    transform: translate(-50%, -50%) scale(1.3); }
  100% { opacity: 0.92; transform: translate(-50%, -50%) scale(1);   }
}

/* ── reduced-motion ───────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .fulusato-helix-cylinder,
  .fulusato-helix-text,
  .fulusato-river-text,
  .fulusato-typewriter-line,
  .fulusato-typewriter-char,
  .fulusato-typewriter-cursor,
  .fulusato-cycler-scene,
  .fulusato-chat-toggle,
  .fulusato-soft-char,
  .fulusato-menu-item {
    animation: none !important;
  }
  .fulusato-menu-item { opacity: 1; transform: translateY(0); }
  .fulusato-helix-text {
    translate: -50% 0 0;
    opacity: 1;
  }
  .fulusato-cycler-scene { opacity: 1; }
  .fulusato-typewriter-line { opacity: 1; }
  .fulusato-typewriter-char { opacity: 1; }
}

/* ============================================================
   Clone Discovery — フィルター付きクローン一覧（2026-05-20 追加）
   ============================================================ */
.fulusato-clone-discovery {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  /* 上部のロゴ（左上）とハンバーガー（右上）にかぶらないよう、
     ヘッダー高さぶんの padding-top を確保する */
  padding: clamp(96px, 14vh, 140px) clamp(16px, 4vw, 32px) 32px;
}
.fulusato-clone-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.fulusato-clone-filter-input {
  flex: 1 1 240px;
  min-width: 200px;
  border: 1px solid rgba(127, 119, 221, 0.28);
  background: #fff;
  color: var(--fulusato-text);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  outline: none;
  box-shadow: 0 2px 8px rgba(15, 20, 40, 0.04);
}
.fulusato-clone-filter-input::placeholder {
  color: var(--fulusato-text-muted);
}
.fulusato-clone-filter-input:focus {
  border-color: rgba(127, 119, 221, 0.6);
  box-shadow: 0 0 0 3px rgba(127, 119, 221, 0.12);
}
.fulusato-clone-filter-select {
  border: 1px solid rgba(127, 119, 221, 0.28);
  background: #fff;
  color: var(--fulusato-text);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  outline: none;
  appearance: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 20, 40, 0.04);
}
.fulusato-clone-filter-select option,
.fulusato-clone-filter-select optgroup {
  background: #fff;
  color: var(--fulusato-text);
}
.fulusato-clone-filter-clear {
  border: 1px solid rgba(217, 122, 154, 0.45);
  background: transparent;
  color: #b8556f;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.fulusato-clone-filter-clear:hover {
  background: rgba(217, 122, 154, 0.08);
}

.fulusato-clone-filter-fav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(240, 153, 123, 0.5);
  background: transparent;
  color: #c46a45;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.fulusato-clone-filter-fav:hover:not(:disabled) {
  background: rgba(240, 153, 123, 0.1);
}
.fulusato-clone-filter-fav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.fulusato-clone-filter-fav.is-active {
  background: linear-gradient(135deg, #F0997B, #ED93B1);
  color: #fff;
  border-color: transparent;
}

.fulusato-clone-card-wrap {
  position: relative;
  display: flex;
}
.fulusato-clone-card-wrap > .fulusato-clone-card {
  flex: 1;
  min-width: 0;
}
.fulusato-clone-card-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(120, 120, 130, 0.6);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(15, 20, 40, 0.08);
  transition: transform 0.12s ease, color 0.2s ease, background 0.2s ease;
}
.fulusato-clone-card-fav:hover {
  transform: scale(1.08);
  color: #c46a45;
}
.fulusato-clone-card-fav.is-active {
  color: #fff;
  background: linear-gradient(135deg, #F0997B, #ED93B1);
}

.fulusato-clone-modal-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.fulusato-clone-modal-fav:hover {
  background: rgba(255, 255, 255, 0.32);
}
.fulusato-clone-modal-fav.is-active {
  background: #fff;
  color: #c46a45;
}

/* ──── ログイン / 同期 chip ──── */
.fulusato-clone-filter-login,
.fulusato-clone-filter-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(127, 119, 221, 0.45);
  background: rgba(255, 255, 255, 0.6);
  color: #5a55a6;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.fulusato-clone-filter-login:hover,
.fulusato-clone-filter-account:hover {
  background: rgba(127, 119, 221, 0.1);
}
.fulusato-clone-filter-account {
  background: linear-gradient(135deg, rgba(127, 119, 221, 0.1), rgba(93, 202, 165, 0.1));
}
.fulusato-clone-filter-account-label {
  max-width: 12em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ──── ログインモーダル ──── */
.fulusato-login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 40, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fulusato-share-toast-in 0.18s ease-out;
}
.fulusato-login-modal {
  position: relative;
  max-width: 460px;
  width: 100%;
  background: #fff;
  border-radius: 22px;
  padding: 36px 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}
.fulusato-login-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  border-radius: 50%;
}
.fulusato-login-close:hover { background: rgba(0, 0, 0, 0.06); color: #333; }
.fulusato-login-title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin: 0 0 12px;
  text-align: center;
}
.fulusato-login-lead {
  font-size: 14px;
  line-height: 1.75;
  color: #555;
  margin: 0 0 18px;
  text-align: center;
}
.fulusato-login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.fulusato-login-input {
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  outline: none;
}
.fulusato-login-input:focus {
  border-color: #7F77DD;
  box-shadow: 0 0 0 3px rgba(127, 119, 221, 0.18);
}
.fulusato-login-submit {
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7F77DD, #5DCAA5, #F0997B, #ED93B1);
  background-size: 200% 200%;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  animation: fulusato-share-copy-shimmer 6s ease-in-out infinite;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.fulusato-login-submit:hover { filter: brightness(1.05); }
.fulusato-login-submit:active { transform: scale(0.97); }
.fulusato-login-submit:disabled { filter: grayscale(0.3) opacity(0.6); cursor: not-allowed; animation: none; }
.fulusato-login-error {
  margin-top: 12px;
  color: #c4456a;
  font-size: 13px;
  text-align: center;
}
.fulusato-login-foot {
  margin: 18px 0 0;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.65;
}
.fulusato-clone-count {
  font-size: 13px;
  color: var(--fulusato-text-soft);
  margin-bottom: 14px;
}
.fulusato-clone-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--fulusato-text-soft);
  background: rgba(127, 119, 221, 0.05);
  border-radius: 18px;
  border: 1px solid rgba(127, 119, 221, 0.16);
}
.fulusato-clone-empty p {
  margin: 6px 0;
}
.fulusato-clone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
/* ──── クローン一覧：アコーディオンリスト（全デバイス共通） ──── */
.fulusato-clone-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
/* タブレット / PC：ウインドウ幅の 70% に */
@media (min-width: 641px) {
  .fulusato-clone-list {
    width: 80vw;
    max-width: 1400px;
    gap: 10px;
  }
  .fulusato-clone-list-summary {
    padding: 14px 16px !important;
    gap: 14px !important;
  }
  .fulusato-clone-list-avatar {
    width: 56px !important;
    height: 56px !important;
    font-size: 26px !important;
  }
  .fulusato-clone-list-name {
    font-size: 15px !important;
  }
  .fulusato-clone-list-role {
    font-size: 12px !important;
  }
  .fulusato-clone-list-fav {
    width: 56px !important;
  }
  .fulusato-clone-list-detail {
    padding: 0 18px 18px 18px !important;
  }
  .fulusato-clone-list-bio {
    font-size: 13px !important;
  }
}
.fulusato-clone-list-item {
  background: #fff;
  border: 1px solid rgba(127, 119, 221, 0.18);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.fulusato-clone-list-item.is-open {
  border-color: rgba(127, 119, 221, 0.45);
  box-shadow: 0 6px 18px rgba(127, 119, 221, 0.14);
}
.fulusato-clone-list-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.fulusato-clone-list-summary {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--fulusato-text);
}
.fulusato-clone-list-summary:hover {
  background: rgba(127, 119, 221, 0.04);
}
.fulusato-clone-list-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5fa;
  font-size: 22px;
  box-shadow: inset 0 0 0 1px rgba(127, 119, 221, 0.18);
}
.fulusato-clone-list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fulusato-clone-list-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fulusato-clone-list-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--fulusato-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fulusato-clone-list-role {
  font-size: 11px;
  color: var(--fulusato-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fulusato-clone-list-caret {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--fulusato-text-soft);
  margin-left: 4px;
}
.fulusato-clone-list-fav {
  flex-shrink: 0;
  width: 44px;
  border: none;
  border-left: 1px solid rgba(127, 119, 221, 0.12);
  background: transparent;
  color: rgba(120, 120, 130, 0.6);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}
.fulusato-clone-list-fav:hover { background: rgba(240, 153, 123, 0.08); color: #c46a45; }
.fulusato-clone-list-fav.is-active {
  background: linear-gradient(135deg, rgba(240, 153, 123, 0.18), rgba(237, 147, 177, 0.18));
  color: #c46a45;
}
.fulusato-clone-list-detail {
  padding: 0 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fulusato-clone-list-open 0.18s ease-out;
}
@keyframes fulusato-clone-list-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fulusato-clone-list-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fulusato-clone-list-bio {
  font-size: 12px;
  color: var(--fulusato-text);
  line-height: 1.6;
  margin: 0;
}
.fulusato-clone-list-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #7F77DD, #5DCAA5, #F0997B, #ED93B1);
  background-size: 200% 200%;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  animation: fulusato-share-copy-shimmer 6s ease-in-out infinite;
  margin-top: 4px;
}
.fulusato-clone-list-cta:active { transform: scale(0.98); }

/* ──── /dialog 公開アーカイブ：アコーディオンリスト（全デバイス共通） ──── */
.fulusato-dialog-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.fulusato-dialog-list-item {
  background: #fff;
  border: 1px solid rgba(127, 119, 221, 0.18);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.fulusato-dialog-list-item.is-open {
  border-color: rgba(127, 119, 221, 0.45);
  box-shadow: 0 6px 18px rgba(127, 119, 221, 0.14);
}
.fulusato-dialog-list-summary {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--fulusato-text);
}
.fulusato-dialog-list-summary:hover { background: rgba(127, 119, 221, 0.04); }
.fulusato-dialog-list-style {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(127, 119, 221, 0.12), rgba(93, 202, 165, 0.12));
  font-size: 22px;
}
.fulusato-dialog-list-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fulusato-dialog-list-theme {
  font-size: 14px;
  font-weight: 700;
  color: var(--fulusato-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.fulusato-dialog-list-sub {
  display: flex;
  gap: 6px;
  font-size: 11px;
  color: var(--fulusato-text-soft);
}
.fulusato-dialog-list-caret {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--fulusato-text-soft);
}
.fulusato-dialog-list-detail {
  padding: 0 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fulusato-clone-list-open 0.18s ease-out;
}
.fulusato-dialog-list-participants {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--fulusato-text-soft);
}
.fulusato-dialog-list-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(127, 119, 221, 0.18);
}
.fulusato-dialog-list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fulusato-dialog-list-names {
  font-size: 12px;
  color: var(--fulusato-text);
  font-weight: 500;
}
.fulusato-dialog-list-goal {
  font-size: 12px;
  color: var(--fulusato-text);
  margin: 0;
  padding: 6px 10px;
  background: rgba(240, 153, 123, 0.08);
  border-radius: 8px;
}
.fulusato-dialog-list-summary-text {
  font-size: 12px;
  color: var(--fulusato-text);
  line-height: 1.7;
  margin: 0;
}
.fulusato-dialog-list-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.fulusato-dialog-list-stats {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--fulusato-text-soft);
}
.fulusato-dialog-list-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7F77DD, #5DCAA5, #F0997B, #ED93B1);
  background-size: 200% 200%;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  animation: fulusato-share-copy-shimmer 6s ease-in-out infinite;
}
.fulusato-dialog-list-cta:active { transform: scale(0.98); }

/* タブレット / PC：ウインドウ幅の 70% に */
@media (min-width: 641px) {
  .fulusato-dialog-list {
    width: 80vw;
    max-width: 1400px;
    gap: 10px;
  }
  .fulusato-dialog-list-summary { padding: 14px 16px; gap: 14px; }
  .fulusato-dialog-list-style { width: 52px; height: 52px; font-size: 26px; }
  .fulusato-dialog-list-theme { font-size: 15px; }
  .fulusato-dialog-list-sub { font-size: 12px; }
  .fulusato-dialog-list-detail { padding: 0 18px 18px 18px; }
  .fulusato-dialog-list-goal,
  .fulusato-dialog-list-summary-text { font-size: 13px; }
}

/* ──── /blog アーカイブ：アコーディオンリスト ──── */
.fulusato-blog-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.fulusato-blog-list-item {
  background: #fff;
  border: 1px solid rgba(127, 119, 221, 0.18);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.fulusato-blog-list-item.is-open {
  border-color: rgba(127, 119, 221, 0.45);
  box-shadow: 0 6px 18px rgba(127, 119, 221, 0.14);
}
.fulusato-blog-list-summary {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--fulusato-text);
}
.fulusato-blog-list-summary:hover { background: rgba(127, 119, 221, 0.04); }
.fulusato-blog-list-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: inset 0 0 0 1px rgba(127, 119, 221, 0.18);
}
.fulusato-blog-list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fulusato-blog-list-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fulusato-blog-list-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fulusato-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.fulusato-blog-list-sub {
  display: flex;
  gap: 6px;
  font-size: 11px;
  color: var(--fulusato-text-soft);
}
.fulusato-blog-list-caret {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--fulusato-text-soft);
}
.fulusato-blog-list-detail {
  padding: 0 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fulusato-clone-list-open 0.18s ease-out;
}
.fulusato-blog-list-thumb {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5fa;
}
.fulusato-blog-list-thumb img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 280px;
  object-fit: cover;
}
.fulusato-blog-list-excerpt {
  font-size: 12px;
  color: var(--fulusato-text);
  line-height: 1.7;
  margin: 0;
}
.fulusato-blog-list-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.fulusato-blog-list-author {
  font-size: 12px;
  color: #5a55a6;
  text-decoration: none;
  font-weight: 600;
}
.fulusato-blog-list-author:hover { text-decoration: underline; }
.fulusato-blog-list-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7F77DD, #5DCAA5, #F0997B, #ED93B1);
  background-size: 200% 200%;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  animation: fulusato-share-copy-shimmer 6s ease-in-out infinite;
}
.fulusato-blog-list-cta:active { transform: scale(0.98); }

@media (min-width: 641px) {
  .fulusato-blog-list {
    width: 80vw;
    max-width: 1400px;
    gap: 10px;
  }
  .fulusato-blog-list-summary { padding: 14px 16px; gap: 14px; }
  .fulusato-blog-list-avatar { width: 56px; height: 56px; font-size: 26px; }
  .fulusato-blog-list-title { font-size: 15px; }
  .fulusato-blog-list-sub { font-size: 12px; }
  .fulusato-blog-list-detail { padding: 0 18px 18px 18px; }
  .fulusato-blog-list-excerpt { font-size: 13px; }
}
.fulusato-clone-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(127, 119, 221, 0.18);
  border-radius: 18px;
  padding: 18px 18px 16px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  color: var(--fulusato-text);
  box-shadow: 0 2px 10px rgba(15, 20, 40, 0.04);
}
.fulusato-clone-card:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 119, 221, 0.4);
  box-shadow: 0 8px 24px rgba(127, 119, 221, 0.18);
}
.fulusato-clone-card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.fulusato-clone-card-avatar {
  width: 192px;
  height: 192px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 84px;
  font-weight: 700;
  color: var(--fulusato-text);
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(127, 119, 221, 0.18);
  animation: fulusato-clone-float 6s ease-in-out infinite;
  will-change: transform;
}

/* nth-child でバラつき：duration / delay / direction を散らして
   並んでもシンクロして見えないようにする */
.fulusato-clone-grid > .fulusato-clone-card:nth-child(2n) .fulusato-clone-card-avatar {
  animation-duration: 7.2s;
  animation-delay: -1.4s;
}
.fulusato-clone-grid > .fulusato-clone-card:nth-child(3n) .fulusato-clone-card-avatar {
  animation-duration: 5.4s;
  animation-delay: -2.6s;
}
.fulusato-clone-grid > .fulusato-clone-card:nth-child(4n+1) .fulusato-clone-card-avatar {
  animation-duration: 8s;
  animation-delay: -0.7s;
  animation-direction: alternate-reverse;
}
.fulusato-clone-grid > .fulusato-clone-card:nth-child(5n+2) .fulusato-clone-card-avatar {
  animation-duration: 6.6s;
  animation-delay: -3.3s;
}
.fulusato-clone-grid > .fulusato-clone-card:nth-child(7n+4) .fulusato-clone-card-avatar {
  animation-duration: 7.8s;
  animation-delay: -4.1s;
  animation-direction: alternate;
}

@keyframes fulusato-clone-float {
  0%   { transform: translateY(0)     rotate(0deg); }
  25%  { transform: translateY(-5px)  rotate(1.4deg); }
  50%  { transform: translateY(-8px)  rotate(0deg); }
  75%  { transform: translateY(-3px)  rotate(-1.4deg); }
  100% { transform: translateY(0)     rotate(0deg); }
}

.fulusato-clone-card:hover .fulusato-clone-card-avatar {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .fulusato-clone-card-avatar { animation: none; }
}
.fulusato-clone-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.fulusato-clone-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.fulusato-clone-card-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  text-align: center;
  color: var(--fulusato-text);
  letter-spacing: 0.04em;
}
.fulusato-clone-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.fulusato-clone-card-chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(127, 119, 221, 0.08);
  border: 1px solid rgba(127, 119, 221, 0.18);
  color: var(--fulusato-text-soft);
}
.fulusato-clone-card-bio {
  font-size: 13px;
  line-height: 1.65;
  color: var(--fulusato-text-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fulusato-clone-card-role {
  font-size: 12px;
  color: var(--fulusato-text-muted);
  text-align: center;
  line-height: 1.5;
  margin: -4px 0 0;
}
.fulusato-clone-card-cta {
  align-self: center;
  display: inline-block;
  margin-top: 6px;
  padding: 9px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, #7F77DD, #5DCAA5, #F0997B, #ED93B1, #85B7EB, #97C459, #7F77DD);
  background-size: 300% 300%;
  animation: fulusato-clone-aurora 14s ease-in-out infinite;
  box-shadow: 0 4px 12px rgba(127, 119, 221, 0.28);
}
@media (prefers-reduced-motion: reduce) {
  .fulusato-clone-card-cta { animation: none; }
}
