@charset "UTF-8";

/**
 * ==========================================================================
 * Find oneself - インデックスページスタイル
 * ==========================================================================
 * ファイル目的：トップページ（index.html）のデザイン制御
 * 
 * 含む要素：
 *  - オープニングメッセージ
 *  - メインナビゲーション
 *  - マウスストーカー
 *  - ポートフォリオトリガー
 * 
 * 依存ファイル：reset.css
 * 修正時：このファイルの変更はindex.htmlのみに影響します
 * ==========================================================================
 */

/* ==========================================================================
   1. 基本設定 & アニメーション背景（.bg）
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PT Sans", 'Noto Serif JP', "Hina Mincho", Arial, sans-serif;
    background-color: #F8F8F8;
    overflow-x: hidden;
    line-height: 1.2;
}

.bg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
}

/* 画面下からせり上がる背景幕 */
.bg:before {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F8F8F8;
    transform: translate(0, 100%);
    transition: transform cubic-bezier(0.215, 0.61, 0.355, 1) .6s;
    content: '';
    z-index: 1;
}

.bg.-visible:before {
    transform: translate(0, 0);
}

.background_01 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #F8F8F8;
    z-index: 1;
}

/* ==========================================================================
   2. ヘッダー（ロゴ）とフッター、ポートフォリオリンク
   ========================================================================== */
.site-header {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 10;
}

.site-logo {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #484141;
    text-shadow: 3px -3px 5px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.5s ease 0.8s;
}

.site-footer {
    position: fixed;
    bottom: 20px;
    left: 40px;
    font-size: 0.75rem;
    color: #484141;
    font-weight: 300;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s ease 0.8s;
}

.portfolio-trigger {
    position: fixed;
    bottom: 30px;
    right: 40px;
    z-index: 10;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 1s, transform 0.5s ease 1s;
}

.bg.-visible .portfolio-trigger {
    opacity: 1;
    transform: translateY(0);
}

.pf-logo-img {
    display: block;
    width: 120px;
    height: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(4px -4px 0px rgba(0, 0, 0, 0.15));
}

.portfolio-trigger a:hover .pf-logo-img {
    transform: translate(3px, -3px);
    filter: drop-shadow(6px -6px 0px rgba(0, 0, 0, 0.25));
}

.bg.-visible .site-logo,
.bg.-visible .site-footer {
    opacity: 1;
}

/* ==========================================================================
   3. メインナビゲーション
   ========================================================================== */
.main-visual {
    width: 100vw;
    height: 100vh;
    position: relative;
    z-index: 2;
}

.typography-nav,
.typography-nav ul {
    width: 100%;
    height: 100%;
    list-style: none;
}

.nav-item {
    position: absolute;
    white-space: nowrap;
}

.nav-item a {
    color: #484141;
    text-decoration: none;
    font-weight: 300;
    display: inline-block;
    position: relative;
    text-shadow: 3px -3px 5px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translate(0, 40px);
    transition: transform cubic-bezier(0.215, 0.61, 0.355, 1) 1s, opacity linear 0.7s, color 0.3s ease;
}

.bg.-visible .nav-item a {
    opacity: 1;
    transform: translate(0, 0);
}

/* ==========================================================================
   4. 各メニューの配置設定（PC環境：横幅769px以上）
   ========================================================================== */
@media screen and (min-width: 769px) {
    .sp-br {
        display: none;
    }

    .item-questions {
        top: 15%;
        right: 25%;
    }

    .item-questions a {
        font-size: 3.6rem;
        transition-delay: 0.2s;
    }

    .item-challenges {
        top: 50%;
        right: 15%;
    }

    .item-challenges a {
        font-size: 2.4rem;
        transition-delay: 0.3s;
    }

    .item-interests {
        top: 40%;
        left: 10%;
    }

    .item-interests a {
        font-size: 6rem;
        transition-delay: 0.6s;
    }

    .item-contact {
        bottom: 15%;
        left: 15%;
    }

    .item-contact a {
        font-size: 3.2rem;
        transition-delay: 0.5s;
    }

    .item-strengths {
        bottom: 15%;
        right: 20%;
    }

    .item-strengths a {
        font-size: 4.2rem;
        transition-delay: 0.8s;
    }

    /* ホバーギミック */
    .nav-item a:hover {
        color: transparent;
        text-shadow: none;
        transform: translateY(-5px);
    }

    .nav-item a::after {
        content: attr(data-ja);
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        color: #A8CD65;
        font-size: 0.35em;
        font-weight: 500;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        letter-spacing: 0.1em;
        white-space: nowrap;
        text-shadow: 2px -2px 4px rgba(0, 0, 0, 0.3);
    }

    .nav-item a:hover::after {
        opacity: 1;
        visibility: visible;
    }
}

/* ==========================================================================
   5. レスポンシブ表示（スマートフォン環境：横幅768px以下）
   ========================================================================== */
@media screen and (max-width: 768px) {
    .pc-br {
        display: none;
    }

    .site-header {
        top: 30px;
        right: 20px;
        left: auto;
    }

    .site-logo {
        font-size: 0.9rem;
    }

    .main-visual {
        height: 100vh;
        width: 100vw;
        position: relative;
    }

    .typography-nav ul {
        display: block;
    }

    .nav-item a {
        color: #484141 !important;
        border-bottom: none !important;
        padding-bottom: 0;
        font-weight: 300;
        text-shadow: 3px -3px 0px rgba(0, 0, 0, 0.2) !important;
        display: inline-block;
        position: relative;
        padding-bottom: 1.4em;
    }

    .nav-item a::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: 1.1em;
        width: 100%;
        height: 1px;
        background-color: #A8CD65;
        animation: tapHintLine 2s infinite ease-in-out;
        transform-origin: left center;
    }

    .nav-item a::after {
        content: attr(data-ja) !important;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        color: #A8CD65 !important;
        font-size: 0.35em !important;
        font-weight: 500;
        letter-spacing: 0.05em;
        white-space: nowrap;
        opacity: 1 !important;
        visibility: visible !important;
        text-shadow: 1.5px -1.5px 0px rgba(0, 0, 0, 0.3) !important;
    }

    @keyframes tapHintLine {

        0%,
        100% {
            transform: scaleX(0.3);
            opacity: 0.3;
        }

        50% {
            transform: scaleX(1);
            opacity: 1;
        }
    }

    .item-interests {
        top: 20%;
        left: 10%;
    }

    .item-interests a {
        font-size: 3.2rem !important;
    }

    .item-strengths {
        top: 33%;
        right: 8%;
        left: auto;
        bottom: auto;
    }

    .item-strengths a {
        font-size: 2.2rem !important;
    }

    .item-questions {
        top: 55%;
        left: 10%;
        right: auto;
    }

    .item-questions a {
        font-size: 2.3rem !important;
    }

    .item-challenges {
        top: 80%;
        left: 8%;
        right: auto;
    }

    .item-challenges a {
        font-size: 1.3rem !important;
    }

    .item-contact {
        bottom: 8%;
        right: 12%;
        left: auto;
    }

    .item-contact a {
        font-size: 2.2rem !important;
    }

    .portfolio-trigger {
        bottom: auto;
        top: 25px;
        left: 20px;
        right: auto;
        padding: 0;
    }

    .pf-logo-img {
        width: 80px;
        filter: drop-shadow(2px -2px 0px rgba(0, 0, 0, 0.15));
    }

    .site-footer {
        position: static;
        text-align: center;
        width: 100%;
        padding: 20px 0;
    }
}

/* ==========================================================================
   6. オープニングメッセージ
   ========================================================================== */
.opening-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.message-wrap {
    text-align: center;
    color: #F8F8F8;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
    letter-spacing: 0.15em;
    line-height: 2;
    position: relative;
    z-index: 2;
}

.msg-line {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(30px);
}

.opening-message.-animate .msg-line:nth-child(1) {
    animation: fadeUpInOut 3.5s forwards 0.2s;
}

.opening-message.-animate .msg-line:nth-child(2) {
    animation: fadeUpInOut 3.5s forwards 0.6s;
}

@keyframes fadeUpInOut {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    15% {
        opacity: 1;
        transform: translateY(0);
    }

    85% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

.opening-message.-loaded {
    opacity: 0;
    pointer-events: none;
}

@media screen and (max-width: 768px) {
    .msg-line {
        font-size: 1rem;
        padding: 0 20px;
    }
}

/* ==========================================================================
   7. マウスストーカー & マグネティック効果スタイル
   ========================================================================== */
.stalker {
    width: 30px;
    height: 30px;
    background-color: #A8CD65;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    /* 文字やリンクの邪魔をしない設定 */
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, opacity 0.3s ease;
}

/* 🌟 吸い付き（マグネティック）発動時のスタイル */
.stalker.-magnetic {
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: 1px solid #A8CD65;
    transition:
        width 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        height 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        background-color 0.3s ease,
        border 0.3s ease,
        transform 0.1s ease-out;
}

@media screen and (max-width: 768px) {
    .stalker {
        display: none !important;
    }
}