/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', '游明朝', YuMincho, 'ＭＳ 明朝', serif;
    overflow-x: hidden;
    color: #f5f5f5;
}

/* トップページ */
.top-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../photo/top.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 0;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(138, 43, 226, 0.6);
    border-radius: 50%;
    animation: float-up linear infinite;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.8);
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

.content-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.logo-container {
    margin-bottom: 40px;
}

.logo-fade-in {
    max-width: 300px;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.6));
}

@media (max-width: 768px) {
    .logo-fade-in {
        max-width: 200px;
    }
}

.text-container {
    margin-bottom: 60px;
}

.text-fade-in {
    font-size: 24px;
    line-height: 2;
    color: #e8d5ff;
    opacity: 0;
    transform: translateY(30px);
    animation: textFloatIn 1.5s ease-out forwards;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5), 0 0 20px rgba(138, 43, 226, 0.3);
    margin-bottom: 15px;
}

@keyframes textFloatIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .text-fade-in {
        font-size: 16px;
        line-height: 1.8;
    }
}

.button-container {
    margin-top: 40px;
}

.fate-button {
    display: inline-block;
    padding: 20px 60px;
    font-size: 24px;
    color: #fff;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.8), rgba(75, 0, 130, 0.8));
    border: 2px solid rgba(138, 43, 226, 0.6);
    border-radius: 50px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6), 0 0 40px rgba(138, 43, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.fate-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.fate-button:hover::before {
    width: 300px;
    height: 300px;
}

.fate-button:hover {
    transform: translateY(-5px) scale(1.05);
}

@media (max-width: 768px) {
    .fate-button {
        padding: 15px 40px;
        font-size: 18px;
    }
}

/* メインページ */
.main-page {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a0a2e 50%, #0a0a0a 100%);
    min-height: 100vh;
    padding: 20px;
}

.main-header {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.main-header .logo {
    max-width: 120px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.6));
}

.main-header h1 {
    font-size: 32px;
    color: #e8d5ff;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    margin-top: 20px;
}

@media (max-width: 768px) {
    .main-header h1 {
        font-size: 22px;
    }
}

.fortune-tellers-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 20px;
}

.fortune-teller-card {
    background: rgba(30, 10, 50, 0.7);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(50px);
    animation: cardFadeIn 1s ease-out forwards;
}

.fortune-teller-card:nth-child(1) { animation-delay: 0.2s; }
.fortune-teller-card:nth-child(2) { animation-delay: 0.4s; }
.fortune-teller-card:nth-child(3) { animation-delay: 0.6s; }
.fortune-teller-card:nth-child(4) { animation-delay: 0.8s; }

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fortune-teller-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.fortune-teller-card:hover::before {
    opacity: 1;
}

.fortune-teller-card:hover {
    transform: translateY(-10px);
    border-color: rgba(138, 43, 226, 0.8);
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.4);
}

.fortune-teller-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(138, 43, 226, 0.5);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.4));
    transition: all 0.5s ease;
}

.fortune-teller-card:hover .fortune-teller-photo {
    transform: scale(1.1);
    border-color: rgba(138, 43, 226, 0.9);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.6);
}

@media (max-width: 768px) {
    .fortune-teller-photo {
        width: 150px;
        height: 150px;
    }
}

.fortune-teller-card h2 {
    font-size: 28px;
    color: #e8d5ff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.4);
}

@media (max-width: 768px) {
    .fortune-teller-card h2 {
        font-size: 22px;
    }
}

.fortune-teller-card p {
    font-size: 16px;
    color: #d4c4e8;
    line-height: 1.8;
    margin-bottom: 25px;
    min-height: 80px;
}

@media (max-width: 768px) {
    .fortune-teller-card p {
        font-size: 14px;
        min-height: 60px;
    }
}

.consult-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.8), rgba(75, 0, 130, 0.8));
    border: 2px solid rgba(138, 43, 226, 0.6);
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
    position: relative;
    overflow: hidden;
}

.consult-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.consult-button:hover::before {
    width: 300px;
    height: 300px;
}

.consult-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(138, 43, 226, 0.6);
    border-color: rgba(138, 43, 226, 0.9);
}

@media (max-width: 768px) {
    .consult-button {
        padding: 10px 25px;
        font-size: 16px;
    }
}

/* 個別ページ */
.detail-page {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a0a2e 50%, #0a0a0a 100%);
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
    opacity: 0;
    animation: detailFadeIn 1.5s ease-out forwards;
}

@keyframes detailFadeIn {
    to {
        opacity: 1;
    }
}

.detail-photo {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(138, 43, 226, 0.6);
    margin-bottom: 40px;
    filter: drop-shadow(0 0 25px rgba(138, 43, 226, 0.6));
    animation: photoGlow 3s ease-in-out infinite;
}

@keyframes photoGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(138, 43, 226, 0.8);
    }
}

@media (max-width: 768px) {
    .detail-photo {
        width: 200px;
        height: 200px;
    }
}

.detail-content h1 {
    font-size: 36px;
    color: #e8d5ff;
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

@media (max-width: 768px) {
    .detail-content h1 {
        font-size: 26px;
    }
}

.message-box {
    background: rgba(30, 10, 50, 0.8);
    border: 2px solid rgba(138, 43, 226, 0.4);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.message-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    animation: messageGlow 4s ease-in-out infinite;
}

@keyframes messageGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.message-box p {
    font-size: 22px;
    line-height: 2;
    color: #e8d5ff;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

@media (max-width: 768px) {
    .message-box {
        padding: 30px 20px;
    }
    .message-box p {
        font-size: 18px;
        line-height: 1.8;
    }
}

.entrust-button {
    display: inline-block;
    padding: 20px 60px;
    font-size: 24px;
    color: #fff;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.9), rgba(75, 0, 130, 0.9));
    border: 3px solid rgba(138, 43, 226, 0.8);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.5s ease;
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.6), 0 0 50px rgba(138, 43, 226, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.entrust-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.entrust-button:hover::before {
    width: 400px;
    height: 400px;
}

.entrust-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 35px rgba(138, 43, 226, 0.8), 0 0 70px rgba(138, 43, 226, 0.4);
}

@media (max-width: 768px) {
    .entrust-button {
        padding: 15px 40px;
        font-size: 20px;
    }
}

/* PC用の追加スタイル */
@media (min-width: 1024px) {
    .fortune-tellers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-wrapper {
        padding: 60px 20px;
    }
}

/* 新しい個別ページデザイン */
.detail-page-new {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a0a2e 50%, #0a0a0a 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding: 40px 20px;
}

/* 背景パーティクル */
.background-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle-item {
    position: absolute;
    background: rgba(138, 43, 226, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.8);
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

.content-wrapper-new {
    position: relative;
    z-index: 3;
    padding: 80vh 20px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.name-section {
    text-align: center;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fortune-teller-name {
    font-size: 48px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.8), 0 0 40px rgba(138, 43, 226, 0.4);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.name-subtitle {
    font-size: 28px;
    color: #e8d5ff;
    font-weight: normal;
    display: block;
    margin-top: 10px;
}

.divider-glow {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.8), transparent);
    margin: 20px auto;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.profile-section {
    margin-bottom: 40px;
}

.profile-card {
    background: rgba(30, 10, 50, 0.85);
    border: 2px solid rgba(138, 43, 226, 0.4);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.2);
}

.section-title {
    font-size: 24px;
    color: #e8d5ff;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    border-left: 4px solid rgba(138, 43, 226, 0.8);
    padding-left: 15px;
}

.profile-text {
    font-size: 18px;
    line-height: 2;
    color: #d4c4e8;
    text-align: left;
}

.message-section {
    margin-bottom: 50px;
}

.message-card {
    background: rgba(138, 43, 226, 0.1);
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 20px;
    padding: 50px 40px;
    backdrop-filter: blur(10px);
    position: relative;
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.3);
}

.quote-mark {
    font-size: 80px;
    color: rgba(138, 43, 226, 0.3);
    position: absolute;
    top: 20px;
    left: 30px;
    font-family: serif;
    line-height: 1;
}

.quote-mark-end {
    top: auto;
    left: auto;
    bottom: 20px;
    right: 30px;
    transform: rotate(180deg);
}

.message-text {
    font-size: 22px;
    line-height: 2;
    color: #fff;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
    position: relative;
    z-index: 1;
}

.button-section {
    text-align: center;
}

.entrust-button-new {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    font-size: 24px;
    color: #fff;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.9), rgba(75, 0, 130, 0.9));
    border: 3px solid rgba(138, 43, 226, 0.8);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.5s ease;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.6), 0 0 60px rgba(138, 43, 226, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.entrust-button-new:hover .button-glow {
    width: 400px;
    height: 400px;
}

.button-text {
    position: relative;
    z-index: 1;
}

.button-arrow {
    position: relative;
    z-index: 1;
    font-size: 28px;
    transition: transform 0.3s ease;
}

.entrust-button-new:hover .button-arrow {
    transform: translateX(5px);
}

.entrust-button-new:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.8), 0 0 80px rgba(138, 43, 226, 0.4);
}

@media (max-width: 768px) {
    .content-wrapper-new {
        padding: 70vh 15px 40px;
    }
    
    .fortune-teller-name {
        font-size: 36px;
    }
    
    .name-subtitle {
        font-size: 20px;
    }
    
    .profile-card {
        padding: 25px 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .profile-text {
        font-size: 16px;
        line-height: 1.8;
    }
    
    .message-card {
        padding: 35px 25px;
    }
    
    .quote-mark {
        font-size: 60px;
        top: 15px;
        left: 20px;
    }
    
    .quote-mark-end {
        bottom: 15px;
        right: 20px;
    }
    
    .message-text {
        font-size: 18px;
        line-height: 1.8;
    }
    
    .entrust-button-new {
        padding: 15px 35px;
        font-size: 20px;
    }
    
    .hero-image {
        object-position: center top;
    }
}

/* 新しいレイアウト - 画像は小さく、クリックで全画面表示 */
.detail-page-new-v2 {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a0a2e 50%, #0a0a0a 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

.detail-page-new-v2 .background-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.detail-content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.content-sections {
    position: relative;
}

/* 画像コンテナ - 小さく表示 */
.image-container {
    text-align: center;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(30px);
    }
}

.clickable-image {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid rgba(138, 43, 226, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.4), 0 10px 40px rgba(138, 43, 226, 0.2);
    display: inline-block;
}

.clickable-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.8), 0 15px 60px rgba(138, 43, 226, 0.4);
    border-color: rgba(138, 43, 226, 0.9);
}

.image-hint {
    margin-top: 15px;
    font-size: 14px;
    color: #d4c4e8;
    opacity: 0.8;
    text-align: center;
}

/* 全画面画像モーダル */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
}

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

.modal-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.6);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    background: rgba(138, 43, 226, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(138, 43, 226, 0.6);
}

.close-modal:hover {
    background: rgba(138, 43, 226, 0.6);
    transform: rotate(90deg);
}

/* 名前セクション */
.name-section-v2 {
    text-align: center;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.name-section-v2 h1 {
    font-size: 42px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.8), 0 0 40px rgba(138, 43, 226, 0.4);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.name-section-v2 .name-subtitle {
    font-size: 24px;
    color: #e8d5ff;
    font-weight: normal;
    display: block;
    margin-top: 8px;
}

.name-divider {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.8), transparent);
    margin: 20px auto;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

/* プロフィールセクション */
.profile-section-v2 {
    background: rgba(30, 10, 50, 0.85);
    border: 2px solid rgba(138, 43, 226, 0.4);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.2);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.7s forwards;
}

.profile-section-v2 h2 {
    font-size: 22px;
    color: #e8d5ff;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    border-left: 4px solid rgba(138, 43, 226, 0.8);
    padding-left: 15px;
}

.profile-section-v2 p {
    font-size: 17px;
    line-height: 2;
    color: #d4c4e8;
    text-align: left;
}

/* メッセージセクション */
.message-section-v2 {
    background: rgba(138, 43, 226, 0.1);
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    position: relative;
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.3);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

.message-section-v2 .quote-mark {
    font-size: 70px;
    color: rgba(138, 43, 226, 0.3);
    position: absolute;
    top: 15px;
    left: 25px;
    font-family: serif;
    line-height: 1;
}

.message-section-v2 .quote-mark-end {
    position: absolute;
    bottom: 15px;
    right: 25px;
    transform: rotate(180deg);
}

.message-section-v2 p {
    font-size: 20px;
    line-height: 2;
    color: #fff;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
    position: relative;
    z-index: 1;
    text-align: center;
}

/* ボタンセクション */
.button-section-v2 {
    text-align: center;
    margin: 30px 0;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.1s forwards;
}

.consult-button {
    display: inline-block;
    padding: 18px 50px;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.9), rgba(75, 0, 130, 0.9));
    border: 3px solid rgba(138, 43, 226, 0.8);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.5s ease;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.6), 0 0 60px rgba(138, 43, 226, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.consult-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.consult-button:hover::before {
    width: 400px;
    height: 400px;
}

.consult-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.8), 0 0 80px rgba(138, 43, 226, 0.4);
}

/* 戻るボタン */
.back-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 18px;
    color: #e8d5ff;
    background: transparent;
    border: 2px solid rgba(138, 43, 226, 0.6);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.5s ease;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.back-button:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.9);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.5);
    transform: translateY(-3px);
}

.back-button-section {
    margin-top: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.3s forwards;
}

/* チャット開始ボタン */
.chat-button-section {
    margin-top: 30px;
    text-align: center;
}

.chat-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.9), rgba(75, 0, 130, 0.9));
    border: 2px solid rgba(138, 43, 226, 0.7);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.5), 0 0 40px rgba(138, 43, 226, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.chat-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.chat-button:hover::before {
    width: 400px;
    height: 400px;
}

.chat-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 30px rgba(138, 43, 226, 0.7), 0 0 60px rgba(138, 43, 226, 0.4);
    border-color: rgba(138, 43, 226, 1);
}

.chat-button:active {
    transform: translateY(-1px) scale(1);
}

.chat-button-icon {
    font-size: 20px;
}

/* クイックチャットボタン（メインページ用） */
.quick-chat-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.85), rgba(75, 0, 130, 0.85));
    border: 2px solid rgba(138, 43, 226, 0.6);
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(138, 43, 226, 0.4);
    margin-top: 10px;
    cursor: pointer;
}

.quick-chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.6);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.95), rgba(75, 0, 130, 0.95));
}

.quick-chat-button-icon {
    font-size: 18px;
}

@media (max-width: 768px) {
    .chat-button {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .quick-chat-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* スマートフォン用フッターボタン（基本スタイル） */
.mobile-footer-button {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 1) 100%);
    border-top: 2px solid rgba(138, 43, 226, 0.6);
    box-shadow: 0 -5px 30px rgba(138, 43, 226, 0.3);
    z-index: 999;
    backdrop-filter: blur(10px);
}

.mobile-footer-button .consult-button {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 18px 30px;
    font-size: 20px;
    border-radius: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PC用レイアウト */
@media (min-width: 1024px) {
    .detail-page-new-v2 {
        padding: 60px 40px;
    }

    .detail-content-wrapper {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 60px;
        align-items: start;
    }

    .name-section-v2 {
        grid-column: 1 / -1;
        margin-bottom: 40px;
    }

    .image-container {
        position: sticky;
        top: 100px;
        margin-bottom: 0;
    }

    .clickable-image {
        width: 350px;
        height: 350px;
    }

    .name-section-v2 h1 {
        font-size: 52px;
    }

    .name-section-v2 .name-subtitle {
        font-size: 28px;
    }

    .content-sections {
        grid-column: 2;
    }

    .profile-section-v2,
    .message-section-v2 {
        margin-bottom: 40px;
    }

    .profile-section-v2 {
        padding: 40px;
    }

    .message-section-v2 {
        padding: 50px 40px;
    }

    /* PCでは画像の下とプロフィールの下のボタンを非表示 */
    .image-container .button-section-v2 {
        display: none !important;
    }

    .profile-section-v2 + .button-section-v2 {
        display: none !important;
    }

    /* 最後のボタン（メッセージの下）のみ表示 */
    .message-section-v2 + .button-section-v2 {
        display: block !important;
    }

    /* 戻るボタンセクションも表示 */
    .back-button-section {
        display: block !important;
    }
}

/* タブレット用レイアウト */
@media (min-width: 769px) and (max-width: 1023px) {
    .clickable-image {
        width: 320px;
        height: 320px;
    }
}

/* スマートフォン用レイアウト（Android/iPhone共通） */
@media (max-width: 768px) {
    .detail-page-new-v2 {
        padding: 20px 15px;
    }

    .clickable-image {
        width: 250px;
        height: 250px;
    }

    .name-section-v2 h1 {
        font-size: 32px;
    }

    .name-section-v2 .name-subtitle {
        font-size: 20px;
    }

    .profile-section-v2 {
        padding: 25px 20px;
    }

    .profile-section-v2 h2 {
        font-size: 20px;
    }

    .profile-section-v2 p {
        font-size: 15px;
        line-height: 1.8;
    }

    .message-section-v2 {
        padding: 30px 20px;
    }

    .message-section-v2 .quote-mark {
        font-size: 50px;
        top: 10px;
        left: 15px;
    }

    .message-section-v2 .quote-mark-end {
        bottom: 10px;
        right: 15px;
    }

    .message-section-v2 p {
        font-size: 17px;
        line-height: 1.8;
    }

    .consult-button {
        padding: 15px 40px;
        font-size: 18px;
        width: 100%;
        max-width: 300px;
    }

    .image-hint {
        font-size: 12px;
    }

    .modal-image {
        max-width: 95%;
        max-height: 85vh;
    }

    .close-modal {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

}

/* スマートフォンでのみフッターボタンを表示 */
@media (max-width: 768px) {
    .mobile-footer-button {
        display: block;
    }

    /* フッターのためにコンテンツの下部に余白を追加 */
    .detail-page-new-v2 {
        padding-bottom: 100px;
    }

    /* スマホでは通常のボタンセクションはすべて非表示 */
    .button-section-v2 {
        display: none !important;
    }

    .image-container .button-section-v2 {
        display: none !important;
    }
}

/* 鑑定に進むページのアニメーション */
.back-transition-page {
    background: #0a0a0a;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-transition-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fortune-teller-image-back {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    z-index: 1;
    animation: fadeOutOverlap 5s ease-in-out 0.5s forwards;
}

@keyframes fadeOutOverlap {
    0% {
        opacity: 1;
        z-index: 1;
    }
    30% {
        opacity: 0.8;
        z-index: 1;
    }
    50% {
        opacity: 0.6;
        z-index: 1;
    }
    70% {
        opacity: 0.4;
        z-index: 1;
    }
    85% {
        opacity: 0.2;
        z-index: 1;
    }
    100% {
        opacity: 0;
        z-index: 0;
    }
}

.back-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1);
    z-index: 2;
    animation: fadeInZoomOutOverlap 5.5s ease-in-out 1s forwards;
}

@keyframes fadeInZoomOutOverlap {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    20% {
        opacity: 0.3;
        transform: scale(1);
    }
    40% {
        opacity: 0.6;
        transform: scale(1);
    }
    60% {
        opacity: 0.8;
        transform: scale(1.1);
    }
    80% {
        opacity: 0.95;
        transform: scale(1.3);
    }
    100% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.back-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1);
    z-index: 2;
    animation: fadeInZoomOut 4s ease-out 2.5s forwards;
}

@keyframes fadeInZoomOut {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.message-flow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    min-width: 300px;
    max-width: 500px;
}

.message-flow.show {
    opacity: 1;
    visibility: visible;
}

.message-flow p {
    margin: 0;
    padding: 0;
    line-height: 1.8;
    font-size: 28px;
    color: #fff;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.8), 0 0 40px rgba(138, 43, 226, 0.5);
    letter-spacing: 2px;
    font-weight: 300;
}

.message-flow p .typewriter-text {
    border-right: 2px solid rgba(138, 43, 226, 0.8);
    animation: blinkCursor 0.8s step-end infinite;
    padding-right: 5px;
}

@keyframes blinkCursor {
    0%, 50% {
        border-right-color: rgba(138, 43, 226, 0.8);
    }
    51%, 100% {
        border-right-color: transparent;
    }
}

.final-button-container {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0;
    animation: buttonFadeIn 1.5s ease-out 9s forwards;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@keyframes buttonFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.talk-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 25px 60px;
    font-size: 26px;
    color: #fff;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.95), rgba(75, 0, 130, 0.95));
    border: 3px solid rgba(138, 43, 226, 0.9);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.5s ease;
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.7), 0 0 80px rgba(138, 43, 226, 0.4);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.talk-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.talk-button:hover::before {
    width: 500px;
    height: 500px;
}

.talk-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.9), 0 0 100px rgba(138, 43, 226, 0.5);
}

/* スマートフォン用 */
@media (max-width: 768px) {
    .message-flow {
        padding: 25px 30px;
        max-width: 85%;
        min-width: 250px;
    }

    .message-flow p {
        font-size: 18px;
        padding: 0;
        line-height: 1.8;
        margin: 0;
    }

    .final-button-container {
        bottom: 100px;
        width: 90%;
        max-width: 350px;
        padding: 15px;
    }

    .talk-button {
        padding: 18px 40px;
        font-size: 20px;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
}

