/* =========================
   SeePhony Article Scoped CSS (Optimized)
   - HTML変更なし
   - 競合回避: .seephony-article スコープ
   ========================= */

.seephony-article {
  font-family: "Noto Sans JP", sans-serif;
  background: #f5faff;
  color: #333;
  margin: 0;
  padding: 0;
}

.seephony-article .seephony-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0; /* 旧CSSの末尾で上書きされていたので最初から0に統一 */
}

.seephony-article h1 {
  text-align: center;
  color: #137aab;
  margin-bottom: 24px;
}

.seephony-article a {
  color: #3b80b0;
  text-decoration: none;
}
.seephony-article a:hover {
  text-decoration: underline;
}

/* ========== Intro ========== */
.seephony-article .seephony-intro {
  background: linear-gradient(135deg, #ffe082 0%, #ffcc80 100%);
  border: 3px dashed #fb8c00;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 48px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.seephony-article .seephony-intro .seephony-character {
  flex: 1;
  text-align: center;
  padding: 0 12px;
  transition: transform .3s ease;
}
.seephony-article .seephony-intro .seephony-character:hover {
  transform: translateY(-4px) scale(1.02);
}
.seephony-article .seephony-intro .seephony-character img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,.15);
  transition: transform .3s ease;
}
.seephony-article .seephony-intro .seephony-character img:hover {
  transform: scale(1.1);
}
.seephony-article .seephony-intro .seephony-character h3 {
  margin-top: 12px;
  font-size: 1.2rem;
  color: #e65100;
}
.seephony-article .seephony-intro .seephony-character p {
  margin: 6px 0 0;
  font-size: .95rem;
  color: #bf360c;
}

/* ========== Message (chat bubbles) ========== */
.seephony-article .seephony-message {
  display: flex;
  margin-bottom: 20px;
  align-items: center;
}

.seephony-article .seephony-message.seephony-phony { flex-direction: row; }
.seephony-article .seephony-message.seephony-hatsune { flex-direction: row-reverse; }

.seephony-article .seephony-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
}

.seephony-article .seephony-message.seephony-phony .seephony-avatar { margin-right: 12px; }
.seephony-article .seephony-message.seephony-hatsune .seephony-avatar { margin-left: 12px; }

.seephony-article .seephony-text {
  position: relative;
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  line-height: 1.8;
  font-size: 16px;
  max-width: 80%;
  word-break: break-word;
}

/* Bubble colors + tails */
.seephony-article .seephony-message.seephony-phony .seephony-text {
  background: #e0f7fa;
}
.seephony-article .seephony-message.seephony-phony .seephony-text::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-right-color: #e0f7fa;
}

.seephony-article .seephony-message.seephony-hatsune .seephony-text {
  background: #fffde7;
}
.seephony-article .seephony-message.seephony-hatsune .seephony-text::before {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-left-color: #fffde7;
}

/* ========== Citation ========== */
.seephony-article .seephony-citation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 8px 0 24px 62px;
  padding: 6px 12px;
  border-left: 4px solid #ffe082;
  border-radius: 4px;
  font-size: .85em;
  background: rgba(255,224,130,.2);
  color: #555;
}
.seephony-article .seephony-citation-label {
  white-space: nowrap;
  margin-right: 6px;
}
.seephony-article .seephony-citation::before {
  content: "🔗";
  margin-right: 6px;
}
.seephony-article .seephony-citation a {
  font-style: italic;
  color: #e65100;
  text-decoration: none;
  transition: color .2s;
}
.seephony-article .seephony-citation a:hover {
  color: #bf360c;
  text-decoration: underline;
}

/* citation phony override */
.seephony-article .seephony-message.seephony-phony .seephony-citation {
  background: rgba(168,221,228,.3);
  border-left-color: #4dd0e1;
  color: #006064;
}
.seephony-article .seephony-message.seephony-phony .seephony-citation::before {
  color: #00838f;
}
.seephony-article .seephony-message.seephony-phony .seephony-citation a {
  color: #0277bd;
}
.seephony-article .seephony-message.seephony-phony .seephony-citation a:hover {
  color: #01579b;
}

/* ========== Image figure ========== */
.seephony-article figure.seephony-image {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.seephony-article figure.seephony-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: zoom-in;
}
.seephony-article figure.seephony-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.seephony-article figure.seephony-image figcaption {
  margin-top: 8px;
  font-size: .9rem;
  color: #555;
  text-align: center;
}

/* ========== Summary / CTA / Linkbox ========== */
.seephony-article .seephony-summary {
  background: #e1f5fe;
  padding: 20px;
  border-left: 6px solid #137aab;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 8px;
}
.seephony-article .seephony-summary p { margin: 0; }

.seephony-article .seephony-cta {
  text-align: center;
  margin: 40px 0;
}
.seephony-article .seephony-cta a {
  display: inline-block;
  margin: 10px;
  padding: 14px 28px;
  background: #137aab;
  color: #fff;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background .3s;
}
.seephony-article .seephony-cta a:hover { background: #0f658c; }

.seephony-article .seephony-linkbox {
  border: 1px solid #ddd;
  background: #fcfcfc;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 24px;
}
.seephony-article .seephony-linkbox a {
  display: block;
  margin: 8px 0;
  color: #137aab;
  text-decoration: none;
}
.seephony-article .seephony-linkbox a:hover { text-decoration: underline; }

/* ========== Emphasis ========== */
.seephony-article .seephony-emphasis { font-weight: 800; }
.seephony-article .seephony-emphasis-strong {
  color: #e74c3c;
  font-weight: 800;
  font-size: 1.2em;
}

/* ========== Promo ========== */
.seephony-article .seephony-promo {
  position: relative;
  margin: 48px 0 56px;
  padding: 34px 16px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0fbff 0%, #e7f5ff 100%);
  border: 2px solid #9bd2ea;
  box-shadow: 0 6px 18px rgba(19,122,171,.12);
}
.seephony-article .seephony-promo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 6px;
  border-radius: 8px;
  background: linear-gradient(180deg, #137aab, #4ec3e0);
}
.seephony-article .seephony-promo-label {
  position: absolute;
  top: -18px;
  left: 20px;
  background: #137aab;
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(19,122,171,.25);
  letter-spacing: .04em;
}
.seephony-article .seephony-promo .seephony-message { margin-bottom: 14px; }

/* promo bubble color tweak (only inside promo) */
.seephony-article .seephony-promo .seephony-message.seephony-phony .seephony-text { background: #dff6fb; }
.seephony-article .seephony-promo .seephony-message.seephony-hatsune .seephony-text { background: #fff7cf; }

/* promo citation tweak */
.seephony-article .seephony-promo .seephony-citation {
  margin-left: 62px;
  background: rgba(19,122,171,.08);
  border-left-color: #137aab;
}
.seephony-article .seephony-promo .seephony-citation a { color: #137aab; }
.seephony-article .seephony-promo .seephony-citation a:hover { color: #0f658c; }

/* ========== Paper ref ========== */
.seephony-article .seephony-paper-ref {
  position: relative;
  margin: 26px 0 34px;
  padding: 16px 18px 14px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid #ffd180;
  box-shadow: 0 4px 12px rgba(255,152,0,.12);
}
.seephony-article .seephony-paper-ref::before {
  content: "📘 参考論文";
  position: absolute;
  top: -12px;
  left: 14px;
  background: #ffb74d;
  color: #4e342e;
  font-weight: 800;
  font-size: .85rem;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(255,183,77,.35);
  letter-spacing: .02em;
}
.seephony-article .seephony-paper-ref h4 {
  margin: 6px 0 8px;
  font-size: 1.02rem;
  color: #bf360c;
}
.seephony-article .seephony-paper-ref p {
  margin: 6px 0;
  line-height: 1.7;
  font-size: .95rem;
  color: #444;
}
.seephony-article .seephony-paper-ref .seephony-meta {
  font-size: .88rem;
  color: #6d4c41;
}
.seephony-article .seephony-paper-ref a {
  color: #e65100;
  font-style: italic;
}
.seephony-article .seephony-paper-ref a:hover { color: #bf360c; }

/* ========== Compact links ========== */
.seephony-article .seephony-compact-links-section {
  background: linear-gradient(135deg, #f8fcff 0%, #eef7fb 100%);
  border: 1px solid #d8eaf3;
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
}
.seephony-article .seephony-compact-links-title {
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  color: #137aab;
  margin: 0 0 12px 0;
}
.seephony-article .seephony-compact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0 8px;
}
.seephony-article .seephony-compact-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 16px;
  margin-bottom: 5px;
  min-width: 280px;
  background: #137aab !important;
  border: 1px solid #0f658c !important;
  border-radius: 20px;
  text-decoration: none !important;
  color: #fff !important;
  font-size: .85rem;
  font-weight: 600;
  transition: all .25s ease;
  white-space: nowrap;
}
.seephony-article .seephony-compact-link:hover {
  background: #0f658c !important;
  border-color: #0a4d6b !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(19,122,171,.35);
  text-decoration: none !important;
}
.seephony-article .seephony-compact-link::after {
  content: "→";
  font-size: .75rem;
  opacity: .7;
  transition: transform .2s ease;
}
.seephony-article .seephony-compact-link:hover::after {
  transform: translateX(2px);
  opacity: 1;
}

/* ========== Scene links ========== */
.seephony-article .seephony-scene-links-section { margin: 8px 0; padding: 0; }
.seephony-article .seephony-scene-links-heading {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #137aab;
  margin-bottom: 8px;
}
.seephony-article .seephony-scene-links-subheading {
  text-align: center;
  font-size: .9rem;
  color: #666;
  margin-bottom: 24px;
}
.seephony-article .seephony-scene-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}
.seephony-article .seephony-scene-link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 12px 20px;
  min-height: 100px;
  background: linear-gradient(135deg, #fff 0%, #f8fcff 100%);
  border: 2px solid #e0f0f8;
  border-radius: 16px;
  text-decoration: none;
  color: #137aab;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(19,122,171,.08);
  transition: all .4s cubic-bezier(.25,.46,.45,.94);
  overflow: hidden;
  cursor: pointer;
}
.seephony-article .seephony-scene-link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(19,122,171,.03) 0%, rgba(78,195,224,.05) 100%);
  opacity: 0;
  transition: opacity .4s ease;
  border-radius: 14px;
}
.seephony-article .seephony-scene-link-card:hover::before { opacity: 1; }
.seephony-article .seephony-scene-link-card:hover {
  transform: scale(1.08) translateY(-4px);
  border-color: #4ec3e0;
  box-shadow: 0 12px 32px rgba(19,122,171,.2), 0 4px 12px rgba(78,195,224,.15);
  min-height: 140px;
  z-index: 10;
  text-decoration: none;
}
.seephony-article .seephony-scene-link-icon {
  width: 80%;
  max-width: 120px;
  height: auto;
  aspect-ratio: 1 / 1;
  margin-bottom: 10px;
  object-fit: contain;
  transition: transform .4s ease;
}
.seephony-article .seephony-scene-link-card:hover .seephony-scene-link-icon {
  transform: scale(1.1);
}
.seephony-article .seephony-scene-link-title {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  font-weight: 700;
  color: #137aab;
  text-align: center;
  transition: all .3s ease;
}
.seephony-article .seephony-scene-link-card:hover .seephony-scene-link-title {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.seephony-article .seephony-scene-link-detail {
  position: relative;
  z-index: 1;
  font-size: .8rem;
  font-weight: 400;
  color: #555;
  line-height: 1.5;
  text-align: center;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all .4s cubic-bezier(.25,.46,.45,.94);
}
.seephony-article .seephony-scene-link-card:hover .seephony-scene-link-detail {
  max-height: 80px;
  opacity: 1;
}
.seephony-article .seephony-scene-link-arrow {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: .85rem;
  color: #4ec3e0;
  opacity: 0;
  transform: translateX(-8px);
  transition: all .3s ease;
}
.seephony-article .seephony-scene-link-card:hover .seephony-scene-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ========== Responsive (merged) ========== */
@media (max-width: 640px) {
  .seephony-article .seephony-compact-links { gap: 6px; }
  .seephony-article .seephony-compact-link { padding: 10px 10px; font-size: .78rem; }

  .seephony-article .seephony-scene-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 8px;
  }
  .seephony-article .seephony-scene-link-card {
    padding: 12px 10px 16px;
    min-height: auto;
  }
  .seephony-article .seephony-scene-link-card:hover {
    transform: scale(1.02);
    min-height: auto;
  }
  .seephony-article .seephony-scene-link-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
  }
  .seephony-article .seephony-scene-link-title {
    font-size: .85rem;
    margin-bottom: 4px;
  }
  .seephony-article .seephony-scene-link-detail {
    font-size: .75rem;
    max-height: none;
    opacity: 1;
  }
  .seephony-article .seephony-scene-link-arrow { display: none; }
}

@media (max-width: 480px) {
  .seephony-article .seephony-intro { flex-direction: column; }
  .seephony-article .seephony-intro .seephony-character { margin-bottom: 16px; }
  .seephony-article .seephony-intro .seephony-character img { width: 80px; height: 80px; }

  .seephony-article .seephony-promo { padding: 28px 12px 12px; }
  .seephony-article .seephony-promo-label { top: -14px; left: 12px; }
}

.seephony-article {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #f5faff;
}

/* スマホ：SeePhony記事の「中身」にだけ左右余白 */
@media (max-width: 768px){
  .post_content .seephony-article .seephony-container{
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}