/* スマホでの余白問題を防ぐための基本設定 */
* {
    box-sizing: border-box;
}

/* スマホでの横スクロール防止 */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .container, .wrapper, main {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
}

.fv-map {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: auto;
    max-width: 1920px;
    margin: 0 auto;
}

.fv-map img {
    width: 100%;
    height: auto;
    display: block;
    /* animation: fadeInSlideDown 1.2s ease-out forwards;
    transform: translateY(-100%);
    opacity: 0; */
}

/* 画像が上から降りてきながら徐々に表示されるアニメーション */
@keyframes fadeInSlideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    20% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.5;
    }

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

/* PCとSPでクラスを切り替える（JSなしで済む） */
.fv-map-sp {
    display: none;
}

@media (max-width: 768px) {
    .fv-map-pc {
        display: none;
    }

    .fv-map-sp {
        display: block;
        /* スマホ用：縦幅100vh、横スクロール可能 */
        height: 100vh;
        width: 100vw;
        position: relative;
        overflow-x: auto;
        overflow-y: hidden;
        /* 余白を完全に除去 */
        margin: 0;
        padding: 0;
        /* スクロールバーを隠す（iOS Safari対応） */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    /* スクロールバーを完全に隠す（Webkit系ブラウザ） */
    .fv-map-sp::-webkit-scrollbar {
        display: none;
    }

    /* スマホ用画像のスタイル調整 */
    .fv-map-sp img {
        height: 100vh !important;
        width: auto !important;
        min-width: 100vw;
        /* 最小幅を画面幅に設定 */
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .fv-map-sp .svg-wrapper {
        /* スマホでは横スクロールに対応するため、viewport基準ではなく親要素基準に */
        position: absolute;
        /* タッチイベントを適切に処理 */
        touch-action: manipulation;
    }

    /* スマホでのポップアップ表示調整 */
    .fv-map-sp .svg-wrapper:hover::after,
    .fv-map-sp .svg-wrapper:hover::before {
        /* スマホではホバーではなくタップで表示 */
        opacity: 0;
        visibility: hidden;
    }

    /* タップ時のフィードバック */
    .fv-map-sp .svg-wrapper:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

.svg-wrapper {
    position: relative;
    pointer-events: auto;
    /* width は PHPからインライン指定に任せるため削除 */
}

.svg-wrapper svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 赤いピンのスタイルは削除（ツールチップの疑似要素と競合するため） */

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(255, 51, 51, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 51, 51, 0);
    }
}

.anim-none {
    animation: none !important;
}

.anim-float {
    animation: float 3s ease-in-out infinite;
}

.anim-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.anim-rotate {
    animation: rotate 5s linear infinite;
}

.anim-scale {
    animation: scale 2s ease-in-out infinite;
}

.anim-blink {
    animation: blink 1s step-start infinite;
}

.anim-sway {
    animation: sway 2s ease-in-out infinite;
}

.anim-shake {
    animation: shake 0.5s ease-in-out infinite;
}

/* 各 @keyframes 定義 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

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

    50% {
        transform: scale(1.1);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes sway {
    0%, 100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-3px);
    }

    75% {
        transform: translateY(3px);
    }
}


.svg-wrapper {
    display: inline-block;
    transition: transform 0.3s ease;
    position: relative;
    /* ツールチップの位置調整のため追加 */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.svg-wrapper:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

/* クリック可能なピン番号バッジ */
.pin-number-badge {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
    animation: pulse 2s infinite;
    /* 影を追加してより立体的に */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    /* 番号を中央に配置するためのスタイル */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    /* クリック可能にするための設定 */
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.pin-number-badge:hover {
    transform: translateX(-50%) scale(1.1);
    background-color: #ff1111;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.svg-wrapper::after {
    content: attr(data-title);
    position: absolute;
    top: -25px;
    left: calc(100% + -1px);
    /* バッジの右側に配置 */
    transform: translateY(-50%) translateX(-10px);
    /* 初期位置を少し左にずらす */
    padding: 8px 12px;
    background: var(--accent-color);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* バウンシーなイージング */
    pointer-events: none;
    z-index: 100000;
}

.svg-wrapper::before {
    content: '';
    position: absolute;
    top: -25px;
    left: calc(100% + -20px);
    /* ツールチップの少し左 */
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-right-color: var(--accent-color);
    /* 右向きの矢印 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    z-index: 1001;
}

.svg-wrapper:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.svg-wrapper:hover::before {
    opacity: 1;
    visibility: visible;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(43, 43, 43, 0.2) 0%, rgba(43, 43, 43, 0.4) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(5px);
    /* Safari対応 */
    z-index: 1000;
    /* 開く時のアニメーション */
    animation: fadeIn 0.6s ease-out;
}

.popup-inner {
    overflow: auto;
    background-color: var(--background-color);
    background-image: linear-gradient(-45deg, #ffffff 25%, transparent 25%, transparent 50%, #ffffff 50%, #ffffff 75%, transparent 75%, transparent);
    box-sizing: border-box;
    background-size: 7px 7px;
    padding: 1rem;
    max-width: 900px;
    width: 100%;
    height: 100vh;
    margin: 0;
    position: fixed;
    top: 0;
    right: 0;
    border: none;
    box-shadow: var(--shadow);
    /* スクロールバーのカスタマイズ */
    scrollbar-width: thin;
    scrollbar-color: #ccc #f0f0f0;
    /* 開く時のアニメーション */
    animation: slideInFromRight 0.6s ease-out;
}

.popup-header {
    position: relative;
    padding: 1rem 0 0.8rem 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.popup-header-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

/* デスクトップでは横並びに */
@media (min-width: 769px) {

    .popup-pagination {
        align-items: flex-end;
        width: auto;
    }

    .popup-nav-buttons {
        max-width: none;
        width: auto;
    }
}

.popup-title-section {
    flex: 1;
    min-width: 0;
    /* flexアイテムのオーバーフローを防ぐ */
}

/* ページネーション部分 */
.popup-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    flex-shrink: 0;
}

.popup-counter {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.popup-nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.popup-nav-btn {
    min-width: 100px;
    height: 36px;
    background: var(--main-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-white-color);
    border: 0px;
    box-shadow: 0 2px 8px rgba(3, 169, 244, 0.3);
    padding: 0.5rem 0.75rem;
    transform: translateY(-1px);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.popup-nav-btn .nav-btn-text {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.popup-nav-btn:hover:not(:disabled) {
    background: var(--text-white-color);
    color: var(--main-color);
    border-color: var(--text-white-color);
    border: 1px solid #ddd;
}

.popup-nav-btn:disabled {
    background: #f5f5f5;
    color: #ccc;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

.popup-nav-btn svg {
    width: 16px;
    height: 16px;
}

/* モバイル対応のページネーション */
@media (max-width: 768px) {
    .popup-header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .popup-title-section h2 {
        font-size: 1.8rem;
    }

    .popup-pagination {
        align-items: center;
        justify-content: space-between;
    }

    .popup-counter {
        font-size: 0.85rem;
    }

    .popup-nav-btn {
        min-width: 80px;
        height: 32px;
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
        max-width: 120px;
    }

    .popup-nav-btn .nav-btn-text {
        max-width: 80px;
    }

    .wp-block-image img {
        height: auto !important;
    }
}

.popup h2 {
    display: block;
    margin: 0 auto;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    padding-right: 30px;
    font-size: 2rem;
    font-weight: 700;
    background-image: var(--title-back-border-bottom);
    padding: var(--title-padding);
    width: fit-content;
    /* 改行されても一行ずつボーダーが適用されるように設定 */
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    /* インラインボックスとして扱い、各行にボーダーを適用 */
    display: inline;
}

.popup-content {
    margin: 0;
    padding: 0;
    background: transparent;
}

.content-grid {
    display: grid;
    gap: 1rem;
    align-items: start;
}

/* メインコンテンツエリア */
.content-main {
    background: white;
    padding: 0.8rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
}

.content-main p {
    line-height: 1.8;
    color: var(--text-color);
}

.content-main h3 {
    color: var(--main-color);
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

/* サイドバーエリア */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 情報カード */
.info-card,
.action-card {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
}

.info-card h3,
.action-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--main-color);
}

/* サービス特徴リスト */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0 0 0;
    position: relative;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-features li::before {
    content: "✓";
    background: linear-gradient(135deg, var(--main-color) 0%, var(--key-color) 100%);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 5px;
    left: 0;
    top: 0.6rem;
}

/* CTAボタン */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--main-color) 0%, var(--key-color) 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(3, 169, 244, 0.2);
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--key-color) 0%, var(--main-color) 100%);
    box-shadow: 0 6px 20px rgba(3, 169, 244, 0.4);
    color: white;
    text-decoration: none;
}

.action-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.close-popup {
    position: absolute;
    z-index: 10000;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--main-gradient);
    box-shadow: var(--shadow);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.close-popup:hover {
    transform: scale(1.2);
}

.close-popup svg {
    width: 100%;
    height: 100%;
}

/* 使用されていない複雑なアニメーションを削除してシンプルに統一 */

/* 緩やかなフェードインアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 緩やかなフェードアウトアニメーション */
@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* 右から滑り込むアニメーション（緩やか） */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 右へ滑り出すアニメーション（緩やか） */
@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 閉じるアニメーション用のクラス - 開く時と同じ0.6秒で緩やか */
.popup.closing {
    animation: fadeOut 0.6s ease-out forwards;
}

.popup-inner.closing {
    animation: slideOutToRight 0.7s ease-out forwards;
}

/* Webkit系ブラウザ用スクロールバーカスタマイズ */
.popup-inner::-webkit-scrollbar {
    width: 8px;
}

.popup-inner::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.popup-inner::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.popup-inner::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.center-svg {
    width: 200px;
    height: 300px;
}

.Management_Philosophy {
    width: 100%;
}

.philosophy-content {
    position: relative;
    display: grid;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.our-thoughts .philosophy-content {
    grid-template-columns: 1fr;
    position: relative;
}

.philosophy-content p {
    line-height: 2;
}

.our-thoughts .philosophy-image {
    position: absolute;
    z-index: -10;
    top: -220px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: var(--main-5-color); */
    max-width: 400px;
    max-height: 400px;
    margin: 0 auto;
    overflow: hidden;
}

.philosophy-image {
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: var(--main-5-color); */
    max-width: 500px;
    max-height: 500px;
    margin: 0 auto;
    overflow: hidden;
}

.philosophy-title {
    font-size: 2.2rem;
    font-weight: 700;
}

/* 各コンポーネント共通のスタイル */
.section-header {
    background: var(--text-white-color);
    border-radius: 10px;
    padding: 40px 40px 0 40px;
}

.section-title,
.philosophy-content .section-title {
    line-height: 2;
    padding-bottom: 3%;
    font-size: clamp(20px, 5vw, 30px);
    /* clampを使用して、最小20px、最大28px、その間は画面幅に応じて5vwで可変するフォントサイズを設定 */
    font-weight: 700;
    color: var(--text-color);
}


.sub-title {
    font-size: 1.4rem;
    padding-bottom: 3%;
    line-height: 1.8;
}

.philosophy-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--main-color);
    padding-bottom: 3%;
}

/* スマホの調整 */
@media (max-width: 768px) {
    .section-header {
        /* 左右のパディングを均等に設定して余白を統一 */
        padding-left: 5%;
        padding-right: 5%;
    }

    .sub-title,
    .business-subtitle {
        font-size: 15px;
        padding: 8px 15px;
        line-height: 1.6;
        text-align: justify;
        margin-bottom: 0;
    }

    .philosophy-number {
        margin-top: 2rem;
    }

    .philosophy-content {
        flex-direction: column;
    }

    .philosophy-image {
        padding: 0;
    }

    .svg-wrapper::after {
        font-size: 12px;
        padding: 6px 10px;
        max-width: 150px;
        white-space: normal;
        text-align: center;
        /* スマホでは上に表示 */
        top: -60px;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
    }

    .svg-wrapper::before {
        /* スマホでは下向きの矢印 */
        top: -42px;
        left: 50%;
        transform: translateX(-50%);
        border-right-color: transparent;
        border-top-color: var(--main-color);
    }

    .svg-wrapper:hover::after {
        transform: translateX(-50%) translateY(0);
    }

    /* ピン番号バッジのツールチップもスマホ対応 */
    .pin-number-badge::after {
        font-size: 12px;
        padding: 6px 10px;
        max-width: 150px;
        white-space: normal;
        text-align: center;
        /* スマホでは上に表示 */
        top: -50px;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
    }

    .pin-number-badge::before {
        /* スマホでは下向きの矢印 */
        top: -32px;
        left: 50%;
        transform: translateX(-50%);
        border-right-color: transparent;
        border-top-color: var(--main-color);
    }

    .pin-number-badge:hover::after {
        transform: translateX(-50%) translateY(0);
    }

    /* スマホ用調整 */
    @media (max-width: 768px) {
        .popup-inner {
            width: 100vw;
            max-width: 100vw;
            padding: 1.5rem;
            border-left: none;
            border-top: 2px solid #000;
        }

        .popup-inner .close-popup {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 40px;
            height: 40px;
        }

        /* ポップアップの新しいレイアウト - モバイル対応 */
        .popup-header {
            padding: 1rem 0 1rem 0;
            margin-bottom: 1.5rem;
        }

        .popup-header h2 {
            font-size: 1.8rem;
            line-height: 1.4;
        }

        .content-grid {
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .content-main,
        .info-card,
        .action-card {
            padding: 1.5rem;
        }

        .content-sidebar {
            gap: 1rem;
        }

        .cta-button {
            display: block;
            text-align: center;
            padding: 1rem;
        }
    }
}

/* 事業案内メニューセクション */
.guide-to-each-project {
    padding: var(--back-padding);
    background: #b3e5fc60;
}

/* 事業メニューリスト */
.business-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

/* 各事業メニューアイテム */
.business-menu-item {
    color: var(--text-color);
    background: var(--text-white-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 1rem;
    width: calc(100% - 10px);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    /* padding: 1rem;
    border-radius: 50%; */
}

.business-menu-item:hover {
    transform: scale(1.1);
}


/* 
.business-menu-item:nth-child(1) {
    background-color: var(--seiso-color);
    color: white;
}

.business-menu-item:nth-child(2) {
    background-color: var(--setubi-color);
    color: white;
}

.business-menu-item:nth-child(3) {
    background-color: var(--service-color);
    color: white;
}

.business-menu-item:nth-child(4) {
    background-color: var(--kenchiku-color);
    color: white;
} */

/* 事業アイコン（ACF画像対応） */
.business-icon {
    width: 50px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* 画像がはみ出ないように */
}

/* ACFから取得したアイコン画像のスタイル */
.business-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* アスペクト比を保持しつつ収める */
    margin: 0 auto;
}

/* アイコンが設定されていない場合のプレースホルダー */
.business-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-color, #ccc);
}

.business-icon-placeholder svg {
    width: 20px;
    height: 20px;
}

.business-menu-item .business-title {
    font-size: 0.8rem;
    margin-bottom: 0px;
    color: var(--text-color);
    text-align: center;
    background-image: none;
    margin: 0 auto;
}

.business-menu-link {
    text-decoration: none;
    display: grid;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
}

/* 矢印アイコン */
.business-arrow {
    border: 1px solid var(--text-color);
    border-radius: 50%;
    color: var(--text-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin: 0 auto;
}

/* スマホ用FVマップのスクロールインジケーター */
.fv-scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scroll-hint svg {
    transform: rotate(90deg);
    animation: swipeHint 2s infinite ease-in-out;
}

@keyframes swipeHint {
    0%, 100% {
        transform: rotate(90deg) translateX(0);
    }

    50% {
        transform: rotate(90deg) translateX(5px);
    }
}

.scroll-progress {
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1.5px;
    overflow: hidden;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--main-color, #4285f4);
    border-radius: 1.5px;
    transition: width 0.3s ease;
    width: 0%;
}

/* PC画面では非表示 */
@media (min-width: 769px) {
    .fv-scroll-indicator {
        display: none;
    }
}

/* レスポンシブSVG配置システム */
.responsive-svg {
    transition: all 0.3s ease;
    position: absolute;
}

/* 画面サイズ別表示制御 */
.hide-on-pc {
    display: none;
}

.hide-on-tablet {
    display: block;
}

.hide-on-mobile {
    display: block;
}

/* PC用スタイル（1920px以上） */
@media (min-width: 1920px) {
    .hide-on-pc {
        display: none !important;
    }
}

/* タブレット用スタイル（768px-1919px） */
@media (min-width: 768px) and (max-width: 1919px) {
    .hide-on-tablet {
        display: none !important;
    }
}

@media (min-width:1250px) and (max-width: 1919px) {
    .fv-catchcopy {
        left: 130px !important;
        bottom: 100px !important;
    }

    .fv-catchcopy-ja {
        font-size: 4rem !important;
    }

    .fv-catchcopy-en {
        font-size: 2rem !important;
    }
}

/* スマホ用スタイル（767px以下） */
@media (max-width: 767px) {
    .guide-to-each-project {
        padding: 1rem 5%;
    }

    .business-menu-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        /* 左右のパディングを統一 */
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .business-menu-item {
        width: auto;
        /* 内側のパディングも確認 */
        box-sizing: border-box;
        padding: 0.6rem 0;
    }

    .hide-on-mobile {
        display: none !important;
    }

    /* スマホでのSVG要素最適化 */
    .responsive-svg {
        /* タッチ最適化 */
        touch-action: manipulation;
        /* パフォーマンス向上 */
        will-change: transform;
    }

    /* スマホ専用のホバー効果無効化 */
    .responsive-svg:hover {
        transform: none;
    }

    /* タップ時のフィードバック */
    .responsive-svg:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }

    /* スマホでのピン番号バッジ調整 */
    .pin-number-badge {
        width: 25px;
        height: 25px;
        font-size: 12px;
        top: -30px;
        /* スマホではホバー効果を無効化 */
    }

    .pin-number-badge:hover {
        transform: translateX(-50%);
        background-color: #ff3333;
    }

    /* タップ時のフィードバック */
    .pin-number-badge:active {
        transform: translateX(-50%) scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* 画面回転時の最適化 */
@media (orientation: landscape) and (max-width: 1024px) {
    .responsive-svg {
        /* ランドスケープモードでの調整 */
        transition-duration: 0.5s;
    }
}

/* 高解像度ディスプレイ対応 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .responsive-svg svg {
        /* Retina対応でシャープな表示 */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ファーストビューキャッチコピー */
.fv-catchcopy {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 100;
    color: var(--text-white-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    max-width: 400px;
    pointer-events: none;
    /* マップの操作を妨げないように */
}

.fv-catchcopy-ja {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.fv-catchcopy-en {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
    opacity: 0.9;
    letter-spacing: 0.05em;
}

/* タブレット用調整 */
@media (max-width: 1024px) {
    .fv-catchcopy {
        bottom: 30px;
        left: 30px;
        max-width: 350px;
    }

    .fv-catchcopy-ja {
        font-size: 1.8rem;
    }

    .fv-catchcopy-en {
        font-size: 1rem;
    }
}

/* スマホ用調整 */
@media (max-width: 768px) {
    .fv-catchcopy {
        bottom: 30%;
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .fv-catchcopy-ja {
        font-size: 3rem;
        line-height: 1.3;
    }

    .fv-catchcopy-en {
        font-size: 1.3rem;
    }
}