@charset "UTF-8";

/* ==================================================
   1. オリジナルCSS
   ================================================== */

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

.marquee-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #000;
    color: #f4f4f0;
    padding: 8px 0;
    z-index: 100;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: bold;
    text-transform: uppercase;
}
.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.header-logo-wrapper {
    position: absolute;
    top: 120px;
    left: 30px;
    width: 500px; 
    max-width: 80%;
    z-index: 10;
}
.header-logo-wrapper a {
    display: block;
    width: 100%;
}
.header-logo-wrapper img {
    width: 100%;
    height: auto;
    transform: rotate(-13deg);
    transition: transform 0.3s;
}
.header-logo-wrapper img:hover {
    transform: rotate(-15deg) scale(1.02);
}
.header-logo-wrapper img:active {
    transform: rotate(-15deg) scale(0.95);
}

.main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80vh;
    position: relative;
}

/* ★修正: ナビゲーションのz-indexを上げて、トーンアームより上にする */
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 30; /* トーンアーム(20)より確実に上に */
    margin-top: 200px; 
    margin-left: 5%;
}
.nav-links a {
    text-decoration: none;
    color: #000;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.0rem; 
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-style: normal;
    position: relative;
    transition: transform 0.3s, color 0.3s;
    width: fit-content;
    background-color: transparent; 
    padding: 5px 0;
    -webkit-tap-highlight-color: transparent;
}
@media (min-width: 769px) {
    .nav-links a:hover {
        color: #333;
        transform: translateX(10px);
    }
}
.nav-links a.special-link {
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
    text-decoration-color: #000;
    -webkit-text-stroke: 2px #fff; 
    paint-order: stroke fill;
}

.record-wrapper {
    position: absolute;
    right: -100px; 
    top: 60%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    z-index: 5;
    cursor: grab;
    touch-action: none;
    border-radius: 50%;
    box-shadow: 25px 25px 50px rgba(0,0,0,0.6);
}
.record-wrapper:active {
    cursor: grabbing;
}
.record-img {
    display: block; 
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}
.record-wrapper::after {
    content: "";
    display: block; 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 10; 
    pointer-events: none; 
    background: 
        conic-gradient(
            from 40deg at 50% 50%,
            transparent 0%,
            rgba(255, 255, 255, 0.02) 15%,
            rgba(255, 255, 255, 0.5) 20%,  
            rgba(255, 255, 255, 0.02) 25%,
            transparent 30%,
            transparent 60%,
            rgba(255, 255, 255, 0.2) 70%, 
            transparent 80%,
            transparent 100%
        ),
        radial-gradient(
            circle at 35% 35%,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 60%
        );
    mix-blend-mode: screen;
    opacity: 0.9; 
}
.record-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: #111;
    border-radius: 50%;
    z-index: 11;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.8);
    pointer-events: none;
}

/* --- トーンアーム (PCデフォルト) --- */
.tonearm-wrapper {
    position: absolute;
    top: 100px;  
    right: -80px; 
    width: 150px;
    height: 400px;
    /* ★修正: ナビ(30)より下のレイヤーにする */
    z-index: 20; 
    cursor: pointer;
    transform-origin: 50% 50px; 
    transform: rotate(30deg);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
}

/* PCでのアクティブ状態 */
.tonearm-wrapper.tonearm-active {
    transform: rotate(-15deg); 
}

.tonearm-wrapper:hover {
    filter: brightness(1.05);
}

.tonearm-img {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(15px 20px 20px rgba(0,0,0,0.4));
}

/* TAPヒント (PCデフォルト) */
.tonearm-tap-hint {
    position: absolute;
    top: 280px; 
    left: -50px;
    color: #333;
    font-family: 'Permanent Marker', cursive;
    font-size: 2rem; 
    font-weight: normal; 
    letter-spacing: 0.05em;
    pointer-events: none;
    opacity: 1;
    transition: all 0.5s;
    text-shadow: 3px 3px 0px #fff;
    animation: floatHint 2s ease-in-out infinite;
    transform: rotate(-15deg); 
}

@keyframes floatHint {
    0%, 100% { transform: rotate(-15deg) translateY(0); }
    50% { transform: rotate(-15deg) translateY(-8px); }
}

.tonearm-wrapper.tonearm-active .tonearm-tap-hint {
    opacity: 0;
    transform: rotate(-15deg) translateY(20px); 
}


/* フッター */
.footer {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.6rem;
    letter-spacing: 1px;
    font-weight: normal;
    text-transform: uppercase;
    color: #666;
}

/* ==================================================
   Aboutパネル用スタイル
   ================================================== */
.about-bottom-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 200px);
    max-height: 85vh;
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-radius: 24px 24px 0 0; 
    box-shadow: 0 -20px 60px rgba(0,0,0,0.15);
    padding: 0; 
    box-sizing: border-box;
    z-index: 999; 
    transform: translateY(100%);
    touch-action: none; 
}
.panel-animate {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.panel-header {
    width: 100%;
    padding: 20px 0 10px 0;
    cursor: grab;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: none; 
}
.swipe-indicator {
    width: 50px;
    height: 4px;
    background-color: #ddd;
    border-radius: 10px;
}
.about-scroll-container {
    height: calc(100% - 40px);
    overflow-y: auto;
    padding: 0 20px 80px 20px;
    -webkit-overflow-scrolling: touch;
}
.about-content-inner {
    max-width: 800px;
    margin: 0 auto;
}
.about-panel-logo {
    text-align: center;
    margin-bottom: 20px;
}
.about-panel-logo img {
    width: 180px; 
    height: auto;
}
.about-main-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    color: #111;
    text-transform: uppercase;
    margin: 10px 0 20px 0;
}
.about-main-title::before,
.about-main-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background-color: #333;
}
.about-intro {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 2;
    margin-bottom: 40px; 
    letter-spacing: 0.05em;
    color: #333;
    text-align: center;
}
.logo-note {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin-bottom: 30px; 
    padding-bottom: 0;
    border-bottom: none;
    font-weight: normal;
}
.about-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.about-columns dl { margin: 0; }
.about-columns dt {
    margin-bottom: 10px;
    border-left: none; 
    padding-left: 0;
}
.about-columns dt a {
    text-decoration: none;
    color: #000;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
    transition: color 0.3s;
}
.about-columns dt a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}
.about-columns dt a:hover::after {
    width: 100%;
}
.about-columns dt.highlight-text a {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(to bottom, transparent 60%, rgba(255, 247, 0, 0.8) 60%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    transition: background 0.3s ease, transform 0.3s ease;
    padding: 0 4px;
    margin: 0 -4px;
}
.about-columns dt.highlight-text a::after {
    display: none !important;
}
.about-columns dt.highlight-text a:hover {
    background: linear-gradient(to bottom, transparent 40%, rgba(255, 247, 0, 1) 40%);
    transform: translateY(-2px);
    opacity: 1;
    text-decoration: none;
}
.about-columns dd {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #555;
    font-family: sans-serif;
}
.small-note {
    font-size: 0.7rem;
    color: #999;
    display: block;
    margin-top: 5px;
}

/* ==================================================
   ページ遷移アニメーション
   ================================================== */
.slide-out-left {
    transform: translateX(-150vw) rotate(-360deg) !important;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
.slide-out-right {
    transform: translateX(150vw) !important;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
/* ★新規追加: トーンアーム用（下に消える） */
.slide-out-bottom {
    /* 画面のはるか下(150vh)へ移動しつつ、少し回転させて自然に落とす */
    transform: translateY(150vh) rotate(45deg) !important; 
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

/* ★修正: スマホ対応 */
@media (max-width: 768px) {
    .header-logo-wrapper {
        width: 300px;
        top: 80px;
    }
    .nav-links a {
        font-size: 1.3rem;
    }
    .record-wrapper {
        width: 350px;
        height: 350px;
        right: -100px;
        /* レコード位置: 画面中央よりやや下 */
        top: 60%; 
    }
    
    .tonearm-wrapper {
        width: 120px;
        height: 300px;
        
        /* ★修正: fixedからabsoluteに変更し、スクロールに追従させる */
        position: absolute;
        
        /* レコード(top: 60%)の下側に配置されるよう調整 */
        top: 85%;      
        right: -40px;    
        
        /* 初期状態: 45deg + 20deg = 65deg (時計回りに傾ける) */
        transform: rotate(100deg);
        transform-origin: 50% 50px;
        
        /* ナビ(30)より下のレイヤー */
        z-index: 10;
    }
    
    /* 針を落とした時 */
    .tonearm-wrapper.tonearm-active {
        transform: rotate(118deg);
    }
    
    /* ★修正: 赤い点滅丸の位置をアーム中間に */
    .tonearm-tap-hint {
        font-size: 0; /* 文字なし */
        
        /* SVG高さ300pxの真ん中あたり */
        top: 215px; 
        left: 40px; 
        
        width: 40px;
        height: 40px;
        background-color: rgba(255, 80, 80, 0.5); 
        border-radius: 50%;
        border: none;
        
        display: block;
        
        /* 回転リセット (アームの角度がついているので丸を正立させるが、丸なので見た目は変わらない) */
        transform: rotate(-90deg);
        
        animation: pulseRedCircle 2s infinite ease-in-out;
    }
    
    .tonearm-tap-hint::after {
        display: none;
    }
    
    /* タップ後は消える */
    .tonearm-wrapper.tonearm-active .tonearm-tap-hint {
        opacity: 0;
        animation: none;
    }
    
    @keyframes pulseRedCircle {
        0% { transform: scale(1); opacity: 0.6; }
        50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 15px rgba(255, 0, 0, 0.4); }
        100% { transform: scale(1); opacity: 0.6; }
    }
}
