@charset "UTF-8";

/**
 * ==========================================================================
 * Find oneself - Weak pointページスタイル
 * ==========================================================================
 * ファイル目的：弱点と克服方法ページ（weakpoint.html）のデザイン制御
 * 
 * 含む要素：
 *  - 円形メニュー
 *  - コンテンツブロック（弱点紹介）
 *  - ニューモフィズムアコーディオン
 *  - 背景画像＋パーティクルアニメーション
 *  - RainyDay.jsによる雨演出
 * 
 * 依存ファイル：reset.css
 * 外部ライブラリ：rainyday.min.js
 * 修正時：このファイルの変更はweakpoint.htmlのみに影響します
 * ==========================================================================
 */

/* ==========================================================================
   1. 基本設定
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PT Sans", 'Noto Serif JP', Arial, sans-serif;
    background-color: #ffffff;
    overflow-x: hidden;
    line-height: 1.2;
    word-break: keep-all;
}

h3 {
    font-family: "PT Sans", "Hina Mincho", "Noto Serif JP", Arial, sans-serif !important;
}

p {
    word-break: normal;
    overflow-wrap: anywhere;

}

accordion-text {
    word-break: normal;
    overflow-wrap: anywhere;
    text-wrap: pretty
}

/* ==========================================================================
   2. メインビジュアル ＆ 背景演出
   ========================================================================== */
.bg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
}


/* ==========================================================================
   3. ヘッダー・ロゴ・フッター（共通）
   ========================================================================== */
.site-header {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 10;
}

.site-header-page {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 10;
}

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

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

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

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

/* 4. 背景写真（img）自体を、歪みなしで「親の箱いっぱい」に広げる */
img#background {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    /* ど真ん中固定 */

    /* 比率を崩さず、親の箱（画面）を100%隙間なく埋め尽くす最強の組み合わせ */
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;

    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
}

/* 5. これが命！消えてしまった文字やコンテンツを一番手前に強制浮上させます */
.bg>*:not(.background_01):not(:before) {
    position: relative !important;
    z-index: 2 !important;
    /* 背景写真（1）よりも手前に引っ張り上げます */
}

/* ==========================================================================
   4. ナビゲーション（レイアウト）
   ========================================================================== */
.main-visual {
    width: 100vw;
    height: 100vh;
    position: relative;
    z-index: 3;
}

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

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

.nav-item a {
    color: #111111 !important;
    text-decoration: none;
    font-weight: 300;
    display: inline-block;
    position: relative;
    text-shadow: 3px -3px 0px rgba(0, 0, 0, 0.12) !important;
    opacity: 0;
    transform: translateY(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: translateY(0);
}

@media screen and (min-width: 769px) {
    .sp-br {
        display: none;
    }

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

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

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

    .item-challenges a {
        font-size: 4rem;
        transition-delay: 0.4s;
    }

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

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

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

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

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

    .item-strengths a {
        font-size: 4.5rem;
        transition-delay: 0.3s;
    }

    .nav-item a:hover {
        color: transparent !important;
        text-shadow: none !important;
        transform: translateY(-5px);
    }

    .nav-item a::after {
        content: attr(data-ja);
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        color: #0066cc !important;
        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 0px rgba(0, 0, 0, 0.1) !important;
    }

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

.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));
}

/* ==========================================================================
   5. メインコンテンツ（誌面風レイアウト設定）
   ========================================================================== */
.site-header-page,
.page-container,
.site-footer {
    z-index: 3 !important;
}

.page-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 140px 22% 80px 22%;
    color: #111111;
}

.page-heading-area {
    margin-bottom: 40px;
}

.page-main-title {
    font-family: "PT Sans", sans-serif;
    font-size: 5.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    text-shadow: 4px -4px 0px rgba(0, 0, 0, 0.12) !important;
    line-height: 1;
    margin-bottom: 20px;
}

.heading-divider {
    border: none;
    border-top: 1px solid #999999;
    width: 100%;
}

.page-intro-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 80px;
    letter-spacing: 0.05em;

}

.page-intro-text p {
    word-break: keep-all;

}

.content-block {
    margin-bottom: 80px;
}

.block-title {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 25px;
}

.block-body {
    display: block !important;
}

.block-img-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 25px !important;
}

.block-img-wrap img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.block-text-wrap {
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem;
    line-height: 1.9;
}

.block-text-wrap p {
    margin-bottom: 1.5em;
}

.genres-list {
    font-family: "PT Sans", sans-serif;
    font-size: 0.9rem;
    color: #555555;
    letter-spacing: 0.05em;
    margin-top: 20px;
}

.back-home-wrap {
    margin-top: 60px;
    text-align: center;
}

.back-home-btn {
    display: inline-block;
    color: #111111;
    text-decoration: none;
    font-family: "PT Sans", sans-serif;
    font-size: 0.95rem;
    border-bottom: 1px solid #111111;
    padding-bottom: 4px;
    transition: opacity 0.3s;
}

.back-home-btn:hover {
    opacity: 0.5;
}

/* ==========================================================================
   6. オープニング演出
   ========================================================================== */
.opening-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #111111;
    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: #ffffff;
    letter-spacing: 0.15em;
    line-height: 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;
}

/* ==========================================================================
   7. レスポンシブ（タブレット・スマホ対応）
   ========================================================================== */
@media screen and (max-width: 768px) {
    .pc-br {
        display: none;
    }

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

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

    .typography-nav ul {
        display: block;
    }

    .nav-item a {
        color: #111111 !important;
        font-weight: 300;
        text-shadow: 3px -3px 0px rgba(0, 0, 0, 0.12) !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: rgba(0, 102, 204, 0.4) !important;
        animation: tapHintLine 2s infinite ease-in-out;
        transform-origin: left center;
    }

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

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

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

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

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

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

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

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

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

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

    .nav-item a::after {
        content: attr(data-ja) !important;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        color: #0066cc !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.08) !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));
    }

    @keyframes tapHintLine {

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

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

    .page-container {
        padding: 100px 6% 60px 6% !important;
    }

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

    .page-main-title {
        font-size: 3.5rem;
    }

    .page-intro-text {
        font-size: 0.95rem;
        margin-bottom: 50px;
    }

    .block-body {
        flex-direction: column;
        gap: 20px;
    }

    .block-img-wrap {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .block-img-wrap img {
        height: auto;
        object-fit: contain;
    }

    .block-text-wrap {
        font-size: 0.95rem;
    }

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

    .msg-line {
        font-size: 1rem;
        padding: 0 20px;
    }
}

/* ==========================================================================8. 特定ブロックのPC用レイアウト設定（拡張クラス対応）========================================================================== */
@media screen and (min-width: 769px) {
    .content-block.-fixed-height .block-img-wrap {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 450px !important;
        overflow: hidden !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
        margin-bottom: 25px !important;
    }

    .content-block .block-img-wrap img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
}

/* ==========================================================================9. 演出パーツ（マウスストーカー）========================================================================== /.stalker {position: fixed;top: 0;left: 0;width: 30px;height: 30px;background-color: #A8CD65;border-radius: 50%;opacity: 0;pointer-events: none; / サイトのクリック・テキスト選択を絶対に邪魔しない設定 /z-index: 9999 !important;mix-blend-mode: multiply; / 背景とブレンドさせてプロっぽい演出に */
.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;
}

/* 📱 スマホ環境（タッチデバイス）ではカーソルがないため非表示にする */
@media screen and (max-width: 768px) {
    .stalker {
        display: none !important;
    }
}

/* ==========================================================================
   マグネティック（吸い付き）発動時のストーカースタイル
   ========================================================================== */

/* ボタンに吸い付いた瞬間に、JSによってこのクラス「-magnetic」が自動付与されます */
.stalker.-magnetic {
    width: 60px;
    /* 丸のサイズを2倍に大きく */
    height: 60px;
    /* 丸のサイズを2倍に大きく */
    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;
    /* 吸い付き中のズレを減らすため移動速度を少しアップ */
}


/* ==========================================================================
   完全解決：重ね順を最前面に引き上げ、ニューモフィズムUIを確実に表示する
   ========================================================================== */

/* 1. アコーディオンを包むセクション自体を、背景（z-index:1）の手前に引っ張り出します */
.content-block {
    position: relative;
    z-index: 3 !important;
    /* 背景より手前、ストーカー（9999）より後ろの安全圏 */
}

.neumorphic-container {
    margin: 30px 0;
    max-width: 100%;
    background: #F8F8F8 !important;
    /* 確実に背景色と一致させる */

    border-radius: 20px;
    position: relative;
    z-index: 4;
}

.neumorphic-container .neumorphic-btn-box button {
    width: 100%;
    padding: 18px 24px;
    background: #F8F8F8 !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px;
    font-weight: 600;
    color: #484141 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    /* 白っぽい背景の上でも、きれいな3Dの凹凸が肉眼で確実に浮き出て見える強さに補正 */
    box-shadow: 6px 6px 14px rgba(163, 177, 198, 0.6), -6px -6px 14px rgba(255, 255, 255, 1) !important;
    position: relative;
    display: block;
    font-family: "PT Sans", sans-serif;
}

/* 右側の矢印アイコン（>） */
.neumorphic-container .neumorphic-btn-box button::after {
    content: '';
    position: absolute;
    right: 24px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #A8CD65 !important;
    border-bottom: 2px solid #A8CD65 !important;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.3s ease;
}

/* 開いた時に矢印を上に向ける */
.neumorphic-container.-open .neumorphic-btn-box button::after {
    transform: translateY(-20%) rotate(-135deg);
}

/* ボタンを押した瞬間に「凹む」リアルな触感アニメーション */
.neumorphic-container .neumorphic-btn-box button:active {
    box-shadow: inset 4px 4px 8px rgba(163, 177, 198, 0.6), inset -4px -4px 8px rgba(255, 255, 255, 1) !important;
}

/* 中身を包む箱 */
.neumorphic-container .neumorphic-more {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #F8F8F8 !important;
    border-radius: 12px;
    margin-top: 0;
    opacity: 0;
}

/* 開いた状態のスタイル */
.neumorphic-container .neumorphic-more.appear {
    max-height: 1600px !important;
    margin-top: 16px;
    opacity: 1 !important;
    box-shadow: inset 4px 4px 8px rgba(163, 177, 198, 0.4), inset -4px -4px 8px rgba(255, 255, 255, 0.8) !important;
}

.neumorphic-container .neumorphic-more ul {
    list-style: none !important;
    padding: 20px 24px !important;
    margin: 0 !important;
}

.neumorphic-container .neumorphic-more li {
    padding: 12px 0 !important;
    color: #484141 !important;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    border-bottom: 1px solid rgba(163, 177, 198, 0.2) !important;
}

.neumorphic-container .neumorphic-more li:last-child {
    border-bottom: none !important;
}

.neumorphic-container .neumorphic-more li p.accordion-text {
    padding-top: 16px !important;
    margin: 0 !important;
    word-break: keep-all;
}

/* RainyDay.jsが自動生成する雨の膜を一番手前に表示する */
canvas[style*="position: absolute"] {
    z-index: 1 !important;
    pointer-events: none;
    /* 雨の膜の後ろにあるボタンやリンクをクリックできるようにする設定 */
}

/* 万が一上記でダメな場合の予備設定 */
img#background+canvas {
    z-index: 1 !important;
    pointer-events: none;
}

#background {
    filter: blur(10px) !important;

    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform: scale(1.1) !important;
    transform-origin: center center !important;

}

.menu {
    /* 親要素がスクロールしても、画面の左上にずっと固定させます */
    position: fixed !important;
    top: 50px !important;
    left: 50px !important;
    width: 100px !important;
    height: 100px !important;
    user-select: none !important;

    /* コンテンツ（文字や画像）よりも確実に手前に引っ張り上げる */
    z-index: 9999999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* メインボタン（Menu）の見た目 */
.main.button {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #484141 !important;
    text-align: center !important;

    /* メインボタン（1行）用の高さ設定 */
    line-height: 100px !important;
    font-size: 25px !important;
    font-family: sans-serif !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 10 !important;

    display: block !important;
    animation: pulseHeart 10.0s infinite ease-in-out !important;
    /* ここを追加 */
}

/* 子ボタンの共通デザイン */
.button:not(.main) {
    position: absolute;
    width: 100px !important;
    height: 100px !important;
    border-radius: 50%;
    mix-blend-mode: multiply;
    text-align: center;
    color: #fff;

    /* 100px固定だった高さを解除し、2行の上下左右中央揃えを強制する設定 */
    line-height: 1.2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 10px !important;
    /* 文字が丸のフチにぶつからないための内側余白 */

    font-family: Alegreya Sans, sans-serif !important;
    font-size: 16px !important;
    /* 2行が丸の中に美しく収まるサイズに変更（25pxから変更） */
    font-weight: bold !important;
    text-decoration: none !important;

    transition: transform 0.75s cubic-bezier(0.39, 1.52, 0.46, 0.92), opacity 0.3s;
    will-change: transform, opacity;
}

/* 閉じている時は判定を消して完全に隠す */
.menu.closed .button:not(.main) {
    pointer-events: none !important;
    opacity: 0 !important;
}

/* 開いている時だけ子ボタンをクリック可能にする */
.menu:not(.closed) .button {
    pointer-events: auto !important;
    opacity: 1 !important;
}

/* ――― 各ボタンの配置座標 ――― */
.home {
    background-color: #1ba5cd !important;
    top: 0px;
    left: 225px;
    transition-duration: 0.525s;
}

.goodat {
    background-color: #1ab254 !important;
    top: 86.10368px;
    left: 207.873px;
    transition-duration: 0.675s;
}

.like {
    background-color: #fec72e !important;
    top: 159.09908px;
    left: 159.09908px;
    transition-duration: 0.825s;
}

.weakpoint {
    background-color: #fa7d39 !important;
    top: 207.873px;
    left: 86.10368px;
    transition-duration: 0.975s;
}

.questions {
    background-color: #ee5656 !important;
    top: 225px;
    left: 0px;
    transition-duration: 1.125s;
}

/* 閉じている時に中央へ引き戻す命令 */
.menu.closed .home {
    transform: translate3d(-225px, 0px, 0) rotate(-180deg);
}

.menu.closed .goodat {
    transform: translate3d(-207.873px, -86.10368px, 0) rotate(-180deg);
}

.menu.closed .like {
    transform: translate3d(-159.09908px, -159.09908px, 0) rotate(-180deg);
}

.menu.closed .weakpoint {
    transform: translate3d(-86.10368px, -207.873px, 0) rotate(-180deg);
}

.menu.closed .questions {
    transform: translate3d(0px, -225px, 0) rotate(-180deg);
}

/* ==========================================================================
   スマホ専用：サイズ80%縮小 ＆ 左上寄せ設定
   ========================================================================== */
@media screen and (max-width: 767px) {
    .menu {
        top: 15px !important;
        left: 15px !important;
        width: 80px !important;
        height: 80px !important;
    }

    /* スマホの「80pxの丸」の中に2行の日本語・英語が完璧に収まるように調整 */
    .menu .button:not(.main) {
        width: 80px !important;
        height: 80px !important;
        font-size: 16px !important;
        /* 💡 小さな丸専用に文字を細かく調整 */
        line-height: 1.1 !important;
        padding: 5px !important;
    }

    /* スマホ用のメインボタン（Menu）の調整 */
    .menu .main.button {
        width: 80px !important;
        height: 80px !important;
        font-size: 16px !important;
        line-height: 80px !important;
        animation: pulseHeartMobile 10.0s infinite ease-in-out !important;

    }

    /* スマホ用：閉じている時の引き戻し */
    .menu.closed .home {
        transform: translate3d(-225px, 0px, 0) scale(0.8) rotate(-180deg);
    }

    .menu.closed .goodat {
        transform: translate3d(-207.873px, -86.10368px, 0) scale(0.8) rotate(-180deg);
    }

    .menu.closed .like {
        transform: translate3d(-159.09908px, -159.09908px, 0) scale(0.8) rotate(-180deg);
    }

    .menu.closed .weakpoint {
        transform: translate3d(-86.10368px, -207.873px, 0) scale(0.8) rotate(-180deg);
    }

    .menu.closed .questions {
        transform: translate3d(0px, -225px, 0) scale(0.8) rotate(-180deg);
    }

    /* スマホ用：開いたときも80%のままで固定する設定 */
    .menu:not(.closed) .button:not(.main) {
        transform: scale(0.8);
    }
}

/*  MENUボタンがどくどく動くための設定（CSSの一番下に追加してください） */
@keyframes pulseHeart {
    0% {
        transform: scale(1);
    }

    1.5% {
        transform: scale(1.08);
    }

    /* どくんっ（一瞬膨らむ） */
    3.0% {
        transform: scale(0.96);
    }

    /* キュッと縮む */
    4.5% {
        transform: scale(1.04);
    }

    /* どく（小さく追従） */
    6.0% {
        transform: scale(1);
    }

    /* 元に戻る */
    100% {
        transform: scale(1);
    }

    /* 静止時間 */
}

@keyframes pulseHeartMobile {
    0% {
        transform: scale(1);
    }

    1.5% {
        transform: scale(1.08);
    }

    3.0% {
        transform: scale(0.96);
    }

    4.5% {
        transform: scale(1.04);
    }

    6.0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

/* ==========================================================================
   滞在ページ（現在地）のボタンを日本語にする設定【修正版】
   ========================================================================== */

/* 1. 通常時はすべての日本語（spanタグ）を画面から完全に隠しておく */
.menu .button span {
    display: none !important;
}

/* 2. 【修正】current（現在地）がついているボタン「だけ」、元の英語テキストを消す */
.menu .button.current {
    font-size: 0 !important;
}

/* 3. 【修正】current（現在地）がついているボタンの中の日本語（spanタグ）「だけ」を復活させる */
.menu .button.current span {
    display: flex !important;
    /* 中央揃えを維持するためにflexに変更 */
    font-size: 16px !important;
    /* PC用の日本語サイズ */
    font-family: sans-serif !important;
    /* 日本語用ゴシック体 */
    font-weight: bold !important;
}

/* 4. スマホ画面（横幅767px以下）のときの日本語サイズ微調整 */
@media screen and (max-width: 767px) {
    .menu .button.current span {
        font-size: 14px !important;
        /* スマホの丸に収まるよう少し小さく */
    }
}