
/* ===========================================
   chatGENEインタビューページ用CSS
   =========================================== */


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fafafa;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ヘッダー */
.header {
    background: transparent;
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

/* カラフルな動く図形 */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.7;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.triangle {
    width: 0;
    height: 0;
    border-style: solid;
}

.triangle-1 {
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 139px solid #ff6b6b;
    top: 20%;
    left: 10%;
    animation: float-1 15s infinite;
}

.triangle-2 {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #4ecdc4;
    top: 60%;
    right: 15%;
    animation: float-2 18s infinite;
}

.triangle-3 {
    border-left: 90px solid transparent;
    border-right: 90px solid transparent;
    border-bottom: 156px solid #45b7d1;
    top: 80%;
    left: 5%;
    animation: float-3 20s infinite;
}

.circle {
    border-radius: 50%;
}

.circle-1 {
    width: 180px;
    height: 180px;
    background: #ff9ff3;
    top: 30%;
    right: 20%;
    animation: float-4 12s infinite;
}

.circle-2 {
    width: 140px;
    height: 140px;
    background: #54a0ff;
    top: 15%;
    left: 70%;
    animation: float-5 16s infinite;
}

.circle-3 {
    width: 110px;
    height: 110px;
    background: #5f27cd;
    top: 70%;
    left: 80%;
    animation: float-6 14s infinite;
}

.circle-4 {
    width: 200px;
    height: 200px;
    background: #00d2d3;
    top: 10%;
    left: 30%;
    animation: float-7 22s infinite;
}

.square {
    background: #ff6348;
}

.square-1 {
    width: 130px;
    height: 130px;
    background: #ff6348;
    top: 40%;
    left: 5%;
    animation: float-8 17s infinite;
    transform: rotate(45deg);
}

.square-2 {
    width: 100px;
    height: 100px;
    background: #2ed573;
    top: 25%;
    right: 5%;
    animation: float-9 19s infinite;
    transform: rotate(15deg);
}

.square-3 {
    width: 150px;
    height: 150px;
    background: #ffa502;
    top: 85%;
    right: 30%;
    animation: float-10 13s infinite;
    transform: rotate(30deg);
}

.line {
    background: #ffffff;
    opacity: 0.6;
}

.line-1 {
    width: 280px;
    height: 8px;
    top: 35%;
    left: 60%;
    animation: float-11 21s infinite;
    transform: rotate(20deg);
}

.line-2 {
    width: 200px;
    height: 6px;
    top: 75%;
    left: 40%;
    animation: float-12 16s infinite;
    transform: rotate(-30deg);
}

.line-3 {
    width: 320px;
    height: 10px;
    top: 50%;
    right: 10%;
    animation: float-13 18s infinite;
    transform: rotate(60deg);
}

/* アニメーション定義 */
@keyframes float-1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(90deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    75% { transform: translateY(-40px) rotate(270deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
    25% { transform: translateX(40px) translateY(-20px) rotate(120deg); }
    50% { transform: translateX(20px) translateY(-50px) rotate(240deg); }
    75% { transform: translateX(-20px) translateY(-30px) rotate(360deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0) scale(1); }
    33% { transform: translateY(-60px) scale(1.2); }
    66% { transform: translateY(-20px) scale(0.8); }
}

@keyframes float-4 {
    0%, 100% { transform: translateX(0) translateY(0) scale(1); }
    50% { transform: translateX(-80px) translateY(-40px) scale(1.3); }
}

@keyframes float-5 {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(90deg) translateY(-30px); }
    50% { transform: rotate(180deg) translateY(-60px); }
    75% { transform: rotate(270deg) translateY(-30px); }
}

@keyframes float-6 {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-100px) translateX(-50px); }
}

@keyframes float-7 {
    0%, 100% { transform: scale(1) rotate(0deg); }
    33% { transform: scale(0.7) rotate(120deg); }
    66% { transform: scale(1.4) rotate(240deg); }
}

@keyframes float-8 {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    25% { transform: rotate(135deg) translateY(-50px); }
    50% { transform: rotate(225deg) translateY(-30px); }
    75% { transform: rotate(315deg) translateY(-70px); }
}

@keyframes float-9 {
    0%, 100% { transform: rotate(15deg) translateX(0); }
    50% { transform: rotate(195deg) translateX(60px); }
}

@keyframes float-10 {
    0%, 100% { transform: rotate(30deg) scale(1); }
    50% { transform: rotate(210deg) scale(0.6); }
}

@keyframes float-11 {
    0%, 100% { transform: rotate(20deg) translateY(0); }
    33% { transform: rotate(140deg) translateY(-40px); }
    66% { transform: rotate(260deg) translateY(-20px); }
}

@keyframes float-12 {
    0%, 100% { transform: rotate(-30deg) translateX(0); }
    50% { transform: rotate(150deg) translateX(-80px); }
}

@keyframes float-13 {
    0%, 100% { transform: rotate(60deg) scale(1); }
    25% { transform: rotate(120deg) scale(1.2); }
    50% { transform: rotate(180deg) scale(0.8); }
    75% { transform: rotate(240deg) scale(1.1); }
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* chatGENE装飾テキストアニメーション */
.service-text {
    position: absolute;
    top: -130px;
    right: -80px;
    color: #6b5b95; 
    font-size: 30px;
    font-weight: 700;
    z-index: 5;
    white-space: nowrap;
    animation: floatText 3s ease-in-out infinite;
    transform-origin: center;
    text-shadow: 2px 2px 4px rgba(155, 139, 199, 0.3);
    transform: rotate(8deg);
}

.service-text .chat-gene {
    font-size: 24px;
}

.service-text .chat-gene-jp {
    font-size: 16px;
}

@keyframes floatText {
    0%, 100% { 
        transform: translateY(0) rotate(8deg);
    }
    25% { 
        transform: translateY(-8px) rotate(8deg);
    }
    50% { 
        transform: translateY(-4px) rotate(8deg);
    }
    75% { 
        transform: translateY(-30px) rotate(8deg);
    }
}

.header h1 {            
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-shadow: 
           -0.5px -0.5px 0px #4a1a5c,
           0.5px -0.5px 0px #4a1a5c,
           1px 1px 0px #4a1a5c,
           2px 2px 0px #4a1a5c,
           3px 3px 0px #4a1a5c,
           4px 4px 0px #4a1a5c,
           5px 5px 0px #4a1a5c,
           6px 6px 0px #7a4d8a,
           7px 7px 0px #7a4d8a,
           8px 8px 0px #7a4d8a,
           9px 9px 0px #7a4d8a,
           10px 10px 0px #7a4d8a,
           11px 11px 0px #7b6ba3,
           12px 12px 0px #7b6ba3,
           13px 13px 0px #7b6ba3,
           14px 14px 0px #7b6ba3,
           15px 15px 0px #7b6ba3,
           16px 16px 0px #7b6ba3,
           18px 18px 30px rgba(0, 0, 0, 0.8);
    position: relative;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-line-1 {         
    font-size: clamp(36px, 6vw, 72px);
    margin-bottom: 24px;
}

.title-line-2 {      
    font-size: clamp(28px, 4.5vw, 56px);
    position: relative;
    display: inline-block;
}

.title-line-2 .interview-ja { 
    position: relative;
    z-index: 2;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(40px, 7vw, 80px);
    color: #ffffff;
    letter-spacing: 0.1em;
    text-shadow: 
           -0.5px -0.5px 0px #4a1a5c,
           0.5px -0.5px 0px #4a1a5c,
           1px 1px 0px #4a1a5c,
           2px 2px 0px #4a1a5c,
           3px 3px 0px #4a1a5c,
           4px 4px 0px #4a1a5c,
           5px 5px 0px #4a1a5c,
           6px 6px 0px #7a4d8a,
           7px 7px 0px #7a4d8a,
           8px 8px 0px #7a4d8a,
           9px 9px 0px #7a4d8a,
           10px 10px 0px #7a4d8a,
           11px 11px 0px #7b6ba3,
           12px 12px 0px #7b6ba3,
           13px 13px 0px #7b6ba3,
           14px 14px 0px #7b6ba3,
           15px 15px 0px #7b6ba3,
           16px 16px 0px #7b6ba3,
           18px 18px 30px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    display: inline-block;
    margin-bottom: 8px;
}

.fluffy-title {
    display: inline-block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 900;
    letter-spacing: 0.02em;
    position: relative;
}

.header p {
    font-size: 18px;
    font-weight: 600;
    color: #9b8bc7;
    text-shadow: 
        2px 2px 0px #ffffff,
        4px 4px 8px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 28px;
    border-radius: 25px;
    display: inline-block;
    border: 3px solid #9b8bc7;
    box-shadow: 0 4px 16px rgba(155, 139, 199, 0.3);
}




/* メインコンテンツ */
.main-content {
    background: white;
    margin-top: -40px;
    border-radius: 24px 24px 0 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
}

.content-wrapper {
    padding: 60px 0;
}

/* 参加者セクション */
.participants {
    margin-bottom: 80px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 48px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #9b8bc7 0%, #8b7bb5 100%);
    border-radius: 2px;
}

.participants-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.participant-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    width: 360px;
    max-width: 100%;
}

.participant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #9b8bc7 0%, #8b7bb5 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.participant-card:hover::before {
    transform: scaleX(1);
}

.participant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

.participant-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.participant-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 24px;
    margin-right: 16px;
    overflow: hidden;
    position: relative;
}

.participant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.participant-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.participant-info p {
    font-size: 14px;
    color: #1f2937;
}

/* プロフィール画像横並び、画像はスクエアで枠なし */
.profile-flex {
  display: flex;
  align-items: flex-start;
}

.profile-flex::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.profile-img {
  flex: 0 0 120px;
  margin-right: 24px;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-img img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 12px;
  background: none;
  transition: all 0.3s ease;
}

.profile-img img:hover {
  transform: translateY(-2px);
}

.profile-text {
  flex: 1;
}

.profile-text h2 {
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 28px;
}

.profile-text ul {
  list-style: none;
  padding-left: 0;
}

.profile-text li {
  color: #555;
  margin-bottom: 6px;
  padding-left: 16px;
  position: relative;
}

/* 目次セクション */
.table-of-contents {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin: 60px 0 80px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.toc-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 32px;
    text-align: center;
    position: relative;
}

.toc-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #9b8bc7 0%, #8b7bb5 100%);
    border-radius: 2px;
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.toc-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f3f4f6;
    background: white;
    text-decoration: none;
    color: inherit;
}

.toc-item:hover {
    background: #f8fafc;
    border-color: #9b8bc7;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(155, 139, 199, 0.2);
}

.toc-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9b8bc7 0%, #8b7bb5 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(155, 139, 199, 0.3);
}

.toc-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.3;
}

.toc-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* トークアイコン */
.icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 16px;
  transition: all 0.3s ease;
}

.icon:hover {
  transform: translateY(-1px);
}

.icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.talk-img {
  width: 100%;
  max-width: 650px;
  height: auto;
  margin: 64px auto 0 auto; 
  padding-top: 50px;
}

.talk-img img {
  width: 100%;
  height: auto;
  border-radius: 16px;

}

/* インタビューセクション */
.interview-section {
    margin: 80px 0;
    position: relative;
}

.section-number {
    position: absolute;
    top: -20px;
    left: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #9b8bc7 0%, #8b7bb5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 32px rgba(155, 139, 199, 0.4);
}

.question-block {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #0ea5e9;
    padding: 32px 40px;
    margin-bottom: 48px;
    border-radius: 0 16px 16px 0;
    position: relative;
    margin-left: 100px;
}

.question-block h4 {
    font-size: 20px;
    font-weight: 600;
    color: #0c4a6e;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* 会話バブル */
.message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    max-width: 100%;
    position: relative;
}

.message:hover::before {
    background: #9b8bc7;
    transform: scale(1.2);
    transition: all 0.3s ease;
}

.message-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
    border: 3px solid white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.message-content {
    flex: 1;
    max-width: 100%;
    width: 100% 
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.message-name {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-right: 12px;
}

.message-role {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.message-bubble {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0 20px 20px 20px;
    padding: 24px 28px;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.message-bubble:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.message-bubble.a {
    border-left: 4px solid #ff8a94;
    
}

.message-bubble.b {
    border-left: 4px solid #6bb6ff;
}

.message-text {
    color: #374151;
    font-size: 16px;
    line-height: 1.7;
}

.highlight {
    background: linear-gradient(135deg, #f3f0ff 0%, #e8e2ff 100%);
    color: #6b5b95;
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid #9b8bc7;
    box-shadow: 0 1px 3px rgba(155, 139, 199, 0.2);
}

/* 関連記事セクション */
.related-articles {
    background: #f8fafc;
    padding: 30px 0;
    margin-top: 30px;
    width: 100%;
}

.related-articles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.related-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 80px;
    text-align: center;
    position: relative;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #9b8bc7 0%, #8b7bb5 100%);
    border-radius: 2px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    width: 100%;
}

@media (max-width: 768px) {
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 400px;
        margin: 0 auto;
    }
}

.related-articles .article-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.related-articles .new-mark {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 50px solid #ff4757;
    border-right: 50px solid transparent;
    z-index: 10;
}

.related-articles .new-mark::after {
    content: 'NEW';
    position: absolute;
    top: -40px;
    left: 8px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transform: rotate(-45deg);
    writing-mode: horizontal-tb !important; /* 横書き強制 */
    text-orientation: mixed !important; /* 横向き強制 */
    white-space: nowrap/* 改行防止 */
}

@media (max-width: 768px) {
    .related-articles .new-mark::after {
        font-size: 11px;
   　　 position: absolute;
   　　 top: -30px;
   　　 left: 5px;
    }
}

.related-articles .article-card:hover::before {
    transform: scaleX(1);
}

.related-articles .article-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 16px 48px rgba(155, 139, 199, 0.2) !important;
    border-color: #9b8bc7 !important;
}

.related-articles .article-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 48px;
    border-radius: 16px 16px 0 0;
    margin-bottom: 0;
}

.related-articles .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.related-articles .article-content {
    padding: 24px 32px 32px 32px;
}

.related-articles .article-tag {
    display: inline-block;
    background: linear-gradient(135deg, #9b8bc7 0%, #8b7bb5 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-articles .article-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.related-articles .article-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.related-articles .article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
}

.related-articles .article-date {
    font-weight: 500;
}

.related-articles .article-arrow {
    font-size: 16px;
    color: #9b8bc7;
    transition: transform 0.3s ease;
}

.related-articles .article-card:hover .article-arrow {
    transform: translateX(4px);
}

/* スクロールポップアップのスタイル */
.scroll-popup {
    position: fixed;
    right: -320px;
    bottom: 80px;
    width: 300px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #9b8bc7;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 32px rgba(155, 139, 199, 0.3);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-decoration: none;
    color: inherit;
    z-index: 1000;
    opacity: 0;
    transform: translateX(20px);
}

.scroll-popup.show {
    right: 20px;
    opacity: 1;
    transform: translateX(0);
}

.scroll-popup:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(155, 139, 199, 0.4);
    border-color: #8b7bb5;
}

.popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: #e5e7eb;
    border-radius: 50%;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: #dc2626;
    color: white;
    transform: scale(1.1);
}

.popup-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.popup-icon {
    font-size: 24px;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.popup-title {
    font-size: 18px;
    font-weight: 700;
    color: #9b8bc7;
    margin: 0;
}

.popup-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.popup-cta {
    display: inline-block;
    background: linear-gradient(135deg, #9b8bc7 0%, #8b7bb5 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 12px rgba(155, 139, 199, 0.3);
    transition: all 0.2s ease;
}

.popup-cta:hover {
    background: linear-gradient(135deg, #8b7bb5 0%, #7b6ba3 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(155, 139, 199, 0.4);
}

/* ===========================================
   Big5性格診断モーダル用CSS
   =========================================== */

/* Big5診断情報アイコンのスタイル */
.info-icon {
    color: #9b8bc7;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    margin-left: 2px;
    transition: all 0.2s ease;
    border-radius: 50%;
    padding: 2px 4px;
    background: rgba(155, 139, 199, 0.1);
}

.info-icon:hover {
    background: rgba(155, 139, 199, 0.2);
    transform: scale(1.1);
    color: #8b7bb5;
}

/* モーダルのスタイル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2147483647;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 2147483647;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

/* モーダル表示中は背景を隠す */
body.modal-open .header {
    visibility: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

body.modal-open {
    overflow: hidden !important;
}

/* チカチカ防止のためにアニメーションを一時停止 */
.modal-overlay.show .floating-shapes {
    animation-play-state: paused !important;
}

.modal-overlay.show .shape {
    animation-play-state: paused !important;
}

.modal-header {
    background: linear-gradient(135deg, #9b8bc7 0%, #8b7bb5 100%);
    color: white;
    padding: 24px 32px;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-subtitle {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 500;
}

.modal-body {
    padding: 32px;
}

.big5-intro {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-left: 4px solid #9b8bc7;
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 32px;
}

.big5-intro h3 {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.big5-intro p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

/* Big5画像ギャラリーのスタイル */
.big5-gallery {
    margin-top: 32px;
}

.gallery-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-align: center;
}

.gallery-subtitle {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 24px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-btn {
    background: rgba(155, 139, 199, 0.1);
    border: 1px solid rgba(155, 139, 199, 0.3);
    color: #6b5b95;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #9b8bc7 0%, #8b7bb5 100%);
    color: white;
    border-color: #9b8bc7;
    transform: translateY(-1px);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1;
    background: #f3f4f6;
}

.gallery-item:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(155, 139, 199, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 12px 8px 8px 8px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .image-overlay {
    transform: translateY(0);
}

.image-label {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    display: block;
    line-height: 1.2;
}

/* フィルター機能 */
.gallery-item.hidden {
    display: none;
}

.modal-footer {
    background: #f8fafc;
    padding: 24px 32px;
    border-radius: 0 0 20px 20px;
    text-align: center;
}

.cta-button {
    background: linear-gradient(135deg, #9b8bc7 0%, #8b7bb5 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(155, 139, 199, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #8b7bb5 0%, #7b6ba3 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(155, 139, 199, 0.4);
}

.footer-note {
    margin-top: 16px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

/* レスポンシブ */
@media (max-width: 1200px) {
    .service-text {
        top: -130px;
        right: -60px;
        font-size: 18px;
    }
    
    .service-text .chat-gene {
        font-size: 22px;
    }
    
    .service-text .chat-gene-jp {
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .service-text {
        top: -130px;
        right: -40px;
        font-size: 16px;
    }
    
    .service-text .chat-gene {
        font-size: 20px;
    }
    
    .service-text .chat-gene-jp {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .service-text {
        position: static;
        display: block;
        text-align: center;
        margin-top: 16px;
        font-size: 20px;
        animation: none;
        transform: none;
    }
    
    .service-text .chat-gene {
        font-size: 20px;
    }
    
    .service-text .chat-gene-jp {
        font-size: 20px;
    }

    .participants-grid {
        flex-direction: column;
        align-items: center;
    }

    .participant-card {
        width: 100%;
        max-width: 400px;
    }

    .related-articles-container {
        padding: 0 16px !important;
    }

    .container {
        padding: 0 16px;
        margin: 0 auto;
    }

    .header {
        padding: 100px 0;
        min-height: 450px;
    }
    
    .header-content {
        padding: 0 8px;
    }

    .content-wrapper {
        padding: 40px 0;
    }

    .section-number {
        width: 60px;
        height: 60px;
        font-size: 24px;
        top: -15px;
    }

    .question-block {
        margin-left: 80px;
        padding: 24px 28px;
    }

    .question-block h4 {
        font-size: 18px;
    }

    .conversation {
        margin-left: 80px;
        padding-left: 20px;
    }

    .message {
        margin-bottom: 32px;
    }

    .message::before {
        left: -32px;
    }  
    
    .message {
    margin-left: 0 !important;
    padding-left: 16px !important;
  }
    
    .message-avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
        margin-right: 16px;
    }

    .message-content {
        max-width: calc(100% - 64px);
    }

    .message-bubble {
        padding: 20px 24px;
        border-radius: 0 16px 16px 16px;
        width: 100% 
        max-width: 100% 
        box-sizing: border-box 
    }
   
    .message-text {
        font-size: 15px;
    }


@media (max-width: 768px) {
  /* 質問番号「01」丸アイコンの位置を左に、上にずらして重なり防止 */
  .section-number {
    left: 12px !important;
    top: -40px !important;
    z-index: 1;
  }

  /* セクション全体の余白を広くして、01と吹き出しの物理的重なりを防止 */
  .interview-section {
    margin-top: 80px !important;
    position: relative !important;
  }

  /* 質問ボックスと会話エリアの左揃え */
  .question-block {
    margin-left: 0 !important;
    padding-left: 16px !important;
  }

  /* 吹き出しの左寄せと最大横幅化 */
  .message {
    margin-left: 0 !important;
    padding-left: 16px !important;
  }

  .icon {
    margin-left: 0 !important;
    margin-right: 12px !important;
  }

  .message-content {
    max-width: 100% !important;
    width: 100% !important;
  }

  .message-bubble {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* 縦線・ドットを非表示にする */
  .conversation {
    margin-left: 0 !important;
    padding-left: 0 !important;
    border-left: none !important;
  }

  .conversation::before,
  .message::before {
    display: none !important;
  }
}    

    
    .scroll-popup {
        width: 280px;
        right: -300px;
    }
    
    .scroll-popup.show {
        right: 10px;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }

    .modal-title {
        font-size: 20px;
    }

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

    .filter-buttons {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .talk-img {
    width: 100%
    max-width: 100% 
    padding: 0 16px
    margin: 32px auto 
    display: block;
  }
}

@media (max-width: 576px) {
    .service-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ===========================================
   chatGENE編集部コメント欄用CSS
   =========================================== */

/* 編集部コメントセクション */
.staff-comment-section {
    background: #d4c4f0;
    border-radius: 24px;
    padding: 24px 28px;
    margin: 60px auto;
    max-width: 1000px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(155, 139, 199, 0.3);
}

/* 背景の装飾パターン */
.staff-comment-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.6;
    transform: rotate(-15deg);
    z-index: 1;
}

/* 小さな装飾アイコン */
.decoration-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.deco-icon {
    position: absolute;
    font-size: 20px;
    opacity: 0.3;
}

.deco-icon:nth-child(1) {
    top: 15%;
    left: 10%;
}

.deco-icon:nth-child(2) {
    top: 25%;
    right: 15%;
}

.staff-header {
    text-align: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 3;
}

.column-title {
    font-size: 36px;
    font-weight: 300;
    color: white;
    letter-spacing: 6px;
    margin: 0 0 4px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.column-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: #2d1b2d;
    margin: 0 0 2px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.comment-bubble {
    background: white;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    z-index: 3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: calc(100% - 80px);
    margin: 0 auto;
}

.comment-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
    position: relative;
}

.highlight-emoji {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid #f1c40f;
    box-shadow: 0 2px 4px rgba(241, 196, 15, 0.2);
    font-weight: 600;
}

.sparkle-text {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid #28a745;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
    font-weight: 600;
    color: #155724;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .staff-comment-section {
        padding: 12px 20px;
        margin: 40px 16px;
        border-radius: 20px;
    }

    .column-title {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .column-subtitle {
        font-size: 16px;
        gap: 4px;
    }

    .comment-bubble {
        padding: 16px;
        border-radius: 16px;
        max-width: calc(100% - 40px);
    }

    .comment-text {
        font-size: 14px;
        line-height: 1.5;
    }

    .deco-icon {
        font-size: 16px;
    }
}