/* =================================================
   存在の詳細 - About Page Styles
   テーマ: 個人の存在と接触の可能性
   ================================================= */

/* 帰還ナビゲーション */
.return-nav {
    position: fixed;
    top: var(--presence-space);
    left: var(--presence-space);
    z-index: 999;
}

.return-link {
    display: block;
    text-decoration: none;
    color: var(--existence);
}

.return-essence {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--breath-space);
    padding: var(--breath-space) var(--presence-space);
    background: var(--whisper);
    border: 1px solid var(--breath);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    transition: all var(--moment) ease;
}

.return-essence:hover {
    background: var(--breath);
    border-color: var(--essence);
    transform: translateX(-5px);
}

.return-essence .essence-ring {
    width: 20px;
    height: 20px;
    border: 1px solid var(--breath);
    border-radius: 50%;
    animation: returnEssenceRing var(--breath-cycle) ease-in-out infinite;
}

@keyframes returnEssenceRing {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.return-text {
    font-size: 0.9rem;
    font-weight: var(--breath-weight);
}

/* main.cssの設定を上書きして通常のフローレイアウトにする */
body.about-page section,
.about-container section,
.profile-section,
.contact-section {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    min-height: auto !important;
    display: block !important;
    width: auto !important;
    top: auto !important;
    left: auto !important;
    z-index: auto !important;
}

/* 基本設定の継承 */
.eternal-void {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(
        ellipse at center,
        var(--liminal) 0%,
        var(--void) 70%
    );
    z-index: -20;
    animation: breathe var(--breath-cycle) ease-in-out infinite;
}

/* About専用コンテナ */
.about-container {
    position: relative;
    z-index: 100;
    min-height: 100vh;
    padding: var(--infinite-space) var(--presence-space);
    pointer-events: auto;
}

/* ヘッダー */
.about-header {
    text-align: center;
    margin-bottom: var(--presence-space);
    padding-top: 40px;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--weightless);
    margin-bottom: 24px;
    opacity: 1 !important;
    transform: translateY(0) !important;
    line-height: 1.2;
}

.title-void {
    opacity: 0.6;
}

.title-manifestation {
    opacity: 1;
    text-shadow: 0 0 20px var(--pulse);
}

.page-philosophy {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.8;
    opacity: 0.8;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* メインコンテンツ */
.about-main {
    max-width: 1200px;
    margin: 0 auto;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* セクション共通 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: var(--breath-weight);
    margin-bottom: 16px;
}

.title-line {
    width: 60px;
    height: 1px;
    background: var(--essence);
    margin: 0 auto;
    animation: lineGrow var(--moment) ease;
}

/* プロフィールセクション */
.profile-section {
    margin-bottom: var(--presence-space);
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

.profile-essence {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* プロフィール画像 */
.profile-avatar {
    position: relative;
    margin-bottom: 32px;
    opacity: 1 !important;
    transform: translateY(0) !important;
    z-index: 2;
}

.avatar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--breath);
    border-radius: 50%;
    animation: avatarRing var(--existence-cycle) ease-out infinite;
    pointer-events: none;
    z-index: 1;
}

.avatar-ring:nth-child(1) {
    width: clamp(140px, 20vw, 180px);
    height: clamp(140px, 20vw, 180px);
    animation-delay: 0s;
}

.avatar-ring:nth-child(2) {
    width: clamp(160px, 22vw, 200px);
    height: clamp(160px, 22vw, 200px);
    animation-delay: 2s;
}

.avatar-ring:nth-child(3) {
    width: clamp(180px, 24vw, 220px);
    height: clamp(180px, 24vw, 220px);
    animation-delay: 4s;
}

@keyframes avatarRing {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.avatar-core {
    position: relative;
    width: clamp(120px, 18vw, 160px);
    height: clamp(120px, 18vw, 160px);
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--essence);
    background: var(--whisper);
    z-index: 3;
}

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

.avatar-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--liminal);
}

.placeholder-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    font-weight: var(--breath-weight);
    opacity: 0.6;
}

/* プロフィール情報 */
.profile-info {
    margin-top: 32px;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.profile-name {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: var(--manifestation-weight);
    margin-bottom: 8px;
    line-height: 1.3;
}

.profile-title {
    font-size: clamp(0.9rem, 2vw, 1rem);
    opacity: 0.7;
    margin-bottom: 32px;
    line-height: 1.4;
}

.profile-philosophy {
    margin-top: 32px;
}

.profile-philosophy blockquote {
    font-family: 'Noto Serif JP', serif;
    font-style: italic;
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    line-height: 1.7;
    opacity: 0.8;
    padding-left: 0;
    margin: 0;
}

.profile-philosophy blockquote .normal-text {
    font-style: normal;
}

/* プロフィール詳細 */
.profile-details {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 40px;
    opacity: 1 !important;
    transform: translateY(0) !important;
    width: 100%;
    max-width: 600px;
}

.detail-group {
    background: var(--whisper);
    border: 1px solid var(--breath);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 8px;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.detail-title {
    font-size: 1.2rem;
    font-weight: var(--manifestation-weight);
    color: var(--essence);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.detail-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--breath);
}

/* 既存のjourney-timelineスタイルを調整 */
.journey-timeline {
    position: relative;
    padding: 20px 0;
    margin: 0 auto;
    max-width: 500px;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--breath);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 100%;
}

.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: 60px;
}

.timeline-item:nth-child(even) {
    text-align: left;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--essence);
    border-radius: 50%;
    border: 3px solid var(--whisper);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -6px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -6px;
}

.timeline-content h5 {
    font-size: 1rem;
    font-weight: var(--manifestation-weight);
    color: var(--essence);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
    margin: 0;
}

/* コンタクトセクション */
.contact-section {
    margin-top: 120px;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* コンタクト方法を中央配置 */
.contact-methods-centered {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .contact-methods-centered {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 800px;
    }
}

@media (min-width: 1024px) {
    .contact-methods-centered {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        max-width: 1000px;
    }
}

.contact-philosophy {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.contact-philosophy p {
    font-family: 'Noto Serif JP', serif;
    font-style: italic;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.8;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    background: var(--whisper);
    border: 1px solid var(--breath);
    border-radius: 8px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--whisper);
    border: 1px solid var(--breath);
    border-radius: 8px;
    text-decoration: none;
    color: var(--existence);
    transition: all var(--moment) ease;
    opacity: 1 !important;
    transform: translateY(0) !important;
    position: relative;
    z-index: 1;
}

.contact-method:hover {
    background: var(--breath);
    border-color: var(--pulse);
    transform: translateX(5px);
}

.method-essence {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.essence-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 1px solid var(--breath);
    border-radius: 50%;
    animation: essenceRing var(--breath-cycle) ease-in-out infinite;
    pointer-events: none;
}

@keyframes essenceRing {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.method-icon {
    font-size: 1rem;
    font-weight: var(--manifestation-weight);
    z-index: 1;
}

.method-info {
    text-align: left;
}

.method-info h4 {
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: var(--manifestation-weight);
    margin-bottom: 4px;
    text-align: left;
}

.method-info p {
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    opacity: 0.7;
    font-family: monospace;
    word-break: break-all;
    text-align: left;
}

/* お問い合わせセクション */
.contact-form-section {
    margin-top: var(--presence-space);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    justify-content: center;
    padding: 0 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--existence);
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--breath);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: all var(--moment) ease;
    position: relative;
    min-width: 200px;
    text-align: center;
    min-height: 80px;
    justify-content: center;
}

.contact-form-link:hover {
    border-color: var(--essence);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.form-link-essence {
    position: relative;
    margin-bottom: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-essence-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--breath);
    border-radius: 50%;
    animation: formEssenceRing var(--existence-cycle) ease-out infinite;
}

.form-essence-ring:nth-child(1) {
    width: 40px;
    height: 40px;
    animation-delay: 0s;
}

.form-essence-ring:nth-child(2) {
    width: 50px;
    height: 50px;
    animation-delay: 2s;
}

.form-essence-ring:nth-child(3) {
    width: 60px;
    height: 60px;
    animation-delay: 4s;
}

@keyframes formEssenceRing {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.form-link-icon {
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    font-weight: var(--breath-weight);
    background: transparent;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    white-space: nowrap;
    opacity: 0.8;
}

.form-link-info {
    margin-top: 8px;
}

.form-link-info p {
    font-size: 0.7rem;
    opacity: 0.6;
    margin: 0;
    line-height: 1.4;
    font-weight: var(--breath-weight);
}

.contact-form-link:hover .form-link-icon {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--essence);
    opacity: 1;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.contact-form-link:hover .form-link-info p {
    opacity: 0.8;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-form-section {
        margin-top: 60px;
        padding: 0 10px;
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form-link {
        padding: 16px;
        min-width: 180px;
    }
    
    .form-link-essence {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }
    
    .form-essence-ring:nth-child(1) {
        width: 50px;
        height: 50px;
    }
    
    .form-essence-ring:nth-child(2) {
        width: 60px;
        height: 60px;
    }
    
    .form-essence-ring:nth-child(3) {
        width: 70px;
        height: 70px;
    }
    
    .form-link-icon {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .contact-form-section {
        margin-top: 40px;
        padding: 0 5px;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-form-link {
        padding: 14px;
        min-width: 160px;
    }
    
    .form-link-essence {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }
    
    .form-essence-ring:nth-child(1) {
        width: 40px;
        height: 40px;
    }
    
    .form-essence-ring:nth-child(2) {
        width: 50px;
        height: 50px;
    }
    
    .form-essence-ring:nth-child(3) {
        width: 60px;
        height: 60px;
    }
    
    .form-link-icon {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .form-link-info p {
        font-size: 0.6rem;
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .about-container {
        padding: calc(var(--presence-space) * 4) 16px 30px;
    }
    
    .about-header {
        margin-bottom: 60px;
        padding-top: 20px;
    }
    
    .profile-section {
        margin-bottom: var(--presence-space);
    }
    
    .contact-section {
        margin-top: var(--presence-space);
    }
    
    .contact-philosophy {
        margin-bottom: 50px;
        padding: 0 10px;
    }
    
    .contact-philosophy p {
        padding: 20px;
        font-size: 0.9rem;
    }
    
    .profile-details {
        gap: 40px;
    }
    
    .detail-group {
        padding: 24px;
    }
    
    .profile-details {
        margin-top: 30px;
        padding: 0 20px;
    }
    
    .journey-timeline {
        max-width: 100%;
    }
    
    .journey-timeline::before {
        left: 30px;
        transform: none;
    }
    
    .timeline-item {
        text-align: left;
        padding-left: 60px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(odd) {
        text-align: left;
        padding-left: 60px;
        padding-right: 0;
    }
    
    .timeline-dot {
        left: 24px !important;
        right: auto !important;
    }
}

@media (max-width: 480px) {
    .about-container {
        padding: calc(var(--presence-space) * 4) 12px 20px;
    }
    
    .contact-philosophy {
        margin-bottom: 40px;
        padding: 0 5px;
    }
    
    .contact-philosophy p {
        padding: 16px;
        font-size: 0.8rem;
        line-height: 1.6;
    }
    
    .skill-constellation {
        grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
        gap: 10px;
        max-width: 200px;
    }

    .skill-star {
        width: 40px;
        height: 40px;
        font-size: 0.5rem;
    }

    .contact-method {
        padding: 10px;
        gap: 10px;
        flex-direction: column;
        text-align: left;
    }
    
    .contact-method .method-essence {
        align-self: center;
    }
    
    .method-essence {
        width: 30px;
        height: 30px;
    }
    
    .detail-group {
        padding: 20px;
    }
    
    .journey-timeline {
        padding-left: 20px;
    }
    
    .skill-star::before {
        font-size: 0.4rem;
        bottom: -18px;
    }
    
    .profile-philosophy blockquote {
        padding-left: 0;
        font-size: 0.75rem;
    }
    
    .method-info p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

/* フォーム要素とインタラクティブ要素の追加スタイル */

/* 確実な操作性の保証 */
.contact-method,
.skill-star {
    pointer-events: auto !important;
    user-select: auto;
}

/* 選択可能な要素のカーソル */
.contact-method, .skill-star {
    cursor: pointer;
}

/* z-index階層の整理 */
.about-container {
    position: relative;
    z-index: 1;
}

.profile-avatar {
    z-index: 2;
}

.avatar-ring {
    z-index: 1;
}

.avatar-core {
    z-index: 3;
}

/* アニメーション要素の重なり防止 */
.skill-star::before {
    z-index: 10;
    pointer-events: none;
}

/* レスポンシブでの文字重なり防止 */
@media (max-width: 768px) {
    .skill-star::before {
        font-size: 0.45rem;
        bottom: -20px;
    }
}

@media (max-width: 480px) {
    .skill-star::before {
        font-size: 0.4rem;
        bottom: -18px;
    }
    
    .profile-philosophy blockquote {
        padding-left: 0;
        font-size: 0.75rem;
    }
    
    .method-info p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

/* 背景要素の干渉防止 */
.eternal-void, .avatar-ring, .essence-ring {
    pointer-events: none !important;
}

/* フォーカス可能な要素の明確化 */
.contact-method:focus,
.skill-star:focus {
    outline: 2px solid var(--essence);
    outline-offset: 2px;
}

/* ホバー状態の改善 */
.contact-method:hover {
    z-index: 2;
}

.skill-star:hover {
    z-index: 3;
}

/* 浮遊アクション */
.floating-actions {
    position: fixed;
    bottom: var(--presence-space);
    right: var(--presence-space);
    display: flex;
    flex-direction: column;
    gap: var(--breath-space);
    z-index: 2100;
}

.action-btn {
    width: 50px;
    height: 50px;
    background: var(--whisper);
    border: 1px solid var(--breath);
    border-radius: 50%;
    color: var(--existence);
    cursor: pointer;
    transition: all var(--moment) ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
}

.action-btn:hover {
    background: var(--breath);
    border-color: var(--essence);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--pulse);
}

.btn-essence {
    font-size: 1.2rem;
    font-weight: var(--manifestation-weight);
}

/* 時空の座標 */
.time-existence {
    position: fixed;
    bottom: var(--presence-space);
    left: var(--presence-space);
    z-index: 999;
    text-align: left;
}

.current-time {
    font-family: 'Noto Sans JP', monospace;
    font-size: 1.2rem;
    font-weight: var(--breath-weight);
    margin-bottom: var(--whisper-space);
    opacity: 0.6;
}

.time-philosophy {
    font-size: 0.8rem;
    opacity: 0.4;
    font-style: italic;
    font-weight: var(--breath-weight);
}

/* レスポンシブ対応 - 浮遊アクション */
@media (max-width: 768px) {
    .floating-actions {
        bottom: var(--breath-space);
        right: var(--breath-space);
    }
    
    .time-existence {
        bottom: var(--breath-space);
        left: var(--breath-space);
    }
} 