/* ---------------------------------
   FV スライドショー (17番デザイン移植)
--------------------------------- */
:root {
    --buddy-hdr-h: 80px;
}

/* ヘッダー: 17番スタイル grid（左ナビ / センターロゴ / 右ナビ） */
.buddy-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--buddy-hdr-h);
    z-index: 200;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}
.buddy-header.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
}

/* ナビグループ共通 */
.bh-nav {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0; padding: 0;
}
.bh-nav.left  { justify-content: flex-end; }
.bh-nav.right { justify-content: flex-start; }

.bh-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 16px 0 12px;
    width: 100px;
    text-decoration: none;
    border-left: 1px solid rgba(74,67,62,0.07);
    position: relative;
    transition: background .22s;
    color: #4A433E;
}
.bh-nav.right li:last-child a {
    border-right: 1px solid rgba(74,67,62,0.07);
}
.bh-nav li a:hover { background: rgba(212,127,70,0.06); }

/* ホバー時の下線 */
.bh-nav li a::after {
    content: '';
    position: absolute;
    bottom: 6px; left: 20%; right: 20%;
    height: 2px;
    background: #D87E4C;
    transform: scaleX(0);
    transition: transform .25s;
    border-radius: 2px;
}
.bh-nav li a:hover::after { transform: scaleX(1); }

/* ナビアイコン */
.bh-nav-icon {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    color: #D87E4C;
    flex-shrink: 0;
}
.bh-nav-icon svg { width: 22px; height: 22px; }

/* ナビテキスト */
.bh-nav-text {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    line-height: 1;
    color: #4A433E;
}

/* CTAリンク（お問い合わせ） */
.bh-nav li a.bh-cta {
    background: #D87E4C;
    color: #fff;
    border-left: none;
    transition: background .22s;
}
.bh-nav li a.bh-cta .bh-nav-icon { color: #fff; }
.bh-nav li a.bh-cta .bh-nav-text { color: #fff; }
.bh-nav li a.bh-cta:hover { background: #BD6B33; }
.bh-nav li a.bh-cta::after { display: none; }

/* SNSリンク（アイコンのみ） */
.bh-nav li a.bh-sns {
    width: 54px;
    border-left: 1px solid rgba(74,67,62,0.07);
}
.bh-nav li a.bh-sns .bh-nav-icon { color: #D87E4C; }
.bh-nav li a.bh-sns:hover .bh-nav-icon { color: #BD6B33; }

/* センターロゴ */
.bh-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 24px;
    text-decoration: none;
    border-left: 1px solid rgba(74,67,62,0.07);
    border-right: 1px solid rgba(74,67,62,0.07);
    white-space: nowrap;
}
.bh-logo-name {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 16px; font-weight: 700;
    letter-spacing: 0.08em;
    color: #D87E4C;
    line-height: 1.2;
}
.bh-logo-sub {
    font-size: 10px; font-weight: 500;
    letter-spacing: 0.18em;
    color: rgba(216,126,76,0.8);
    line-height: 1;
}

/* ハンバーガー（SP） */
.bh-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.bh-hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: #4A433E;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
    transform-origin: center;
}

/* SPレスポンシブ */
@media (max-width: 900px) {
    .buddy-header {
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        padding: 0 8px;
    }
    .bh-nav.left  { display: none; }
    .bh-nav.right { display: none; }
    .bh-logo {
        border: none;
        padding: 0;
        grid-column: 2;
        justify-content: center;
    }
    .bh-hamburger { display: flex; grid-column: 3; justify-self: end; }
}

/* ══════════════════════════════
   右追従ボタン (17番デザイン)
══════════════════════════════ */
.float-right {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.float-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 46px;
    padding: 16px 0;
    border-radius: 8px 0 0 8px;
    text-decoration: none;
    color: #fff;
    box-shadow: -3px 3px 14px rgba(0,0,0,0.18);
    transition: background .22s, width .22s;
    overflow: hidden;
}
.float-btn:hover { width: 52px; }
.float-btn--tel { background: #8CA082; }
.float-btn--tel:hover { background: #6a8070; }
.float-btn--rsv { background: #4A433E; }
.float-btn--rsv:hover { background: #332d29; }
.float-btn--web { background: #D87E4C; }
.float-btn--web:hover { background: #BD6B33; }

.float-btn-icon {
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
}
.float-btn-icon svg { width: 19px; height: 19px; }
.float-btn-text {
    writing-mode: vertical-rl;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #fff;
    white-space: nowrap;
}

.float-sns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-right: 4px;
}
.float-sns-link {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    color: #9a8a7a;
    transition: color .22s, transform .22s;
}
.float-sns-link:hover { color: #D87E4C; transform: scale(1.15); }
.float-sns-link svg { width: 20px; height: 20px; fill: currentColor; }

@media (max-width: 900px) {
    .float-right { display: none; }
}

/* FV: フルビューポート */
.fv-section {
    position: relative;
    width: 100%;
    height: 768px;
    background: #fff1c9;
    overflow: hidden;
}

/* スライドステージ: ヘッダー下から画面下いっぱい */
.fv-stage {
    position: absolute;
    left: 140px;
    right: 64px;
    top: calc(var(--buddy-hdr-h) + 18px);
    bottom: 24px;
}
.fv-stage-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 52px rgba(0,0,0,0.22), 0 4px 14px rgba(0,0,0,0.1);
}

/* スライド */
.fv-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 1.4s ease;
}
.fv-slide.active { opacity: 1; }
.fv-slide-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
}
.fv-slide.active .fv-slide-bg {
    animation: fv-kenburns 8s ease-in-out forwards;
}
.fv-slide:nth-child(2n).active .fv-slide-bg {
    animation: fv-kenburns-r 8s ease-in-out forwards;
}
@keyframes fv-kenburns {
    0%   { transform: scale(1.0) translate(0,0); }
    100% { transform: scale(1.1) translate(-1%,-1%); }
}
@keyframes fv-kenburns-r {
    0%   { transform: scale(1.1) translate(1%,1%); }
    100% { transform: scale(1.0) translate(0,0); }
}

/* ビネット */
.fv-stage-inner::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(0,0,0,0.18) 0%,
            rgba(0,0,0,0.0)  30%,
            rgba(0,0,0,0.0)  45%,
            rgba(0,0,0,0.70) 100%
        );
    pointer-events: none;
    z-index: 5;
    border-radius: 18px;
}

/* キャッチコピー（画像下部オーバーレイ） */
.fv-copy {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 10;
    padding: 60px 32px 32px;
    pointer-events: none;
    border-radius: 0 0 18px 18px;
    text-align: left;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.0) 100%);
}
.fv-copy-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.fv-copy-tag::before {
    content: '';
    display: block;
    width: 24px; height: 1.5px;
    background: #D87E4C;
    border-radius: 2px;
}
.fv-copy-main {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: clamp(28px, 3.6vw, 52px);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-shadow:
        0 0 40px rgba(212,127,70,0.4),
        0 2px 16px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}
.fv-copy-main span {
    color: #F5A56E;
}
.fv-copy-divider {
    width: 40px; height: 1.5px;
    background: rgba(255,255,255,0.45);
    margin: 10px 0 10px;
    border-radius: 2px;
}
.fv-copy-sub {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: clamp(11px, 1.2vw, 14px);
    font-weight: 500;
    color: rgba(255,255,255,0.88);
    letter-spacing: 0.18em;
    text-shadow: 0 1px 10px rgba(0,0,0,0.6);
    line-height: 1.8;
}

/* スライドカウンター（ステージ左） */
.fv-counter {
    position: absolute;
    left: 72px;
    top: calc(var(--buddy-hdr-h) + 18px);
    bottom: 24px;
    width: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 20;
}
.fv-counter-cur {
    font-family: 'Kanit', sans-serif;
    font-size: 26px; font-weight: 700;
    color: #D87E4C; line-height: 1;
}
.fv-counter-sep {
    width: 1px; height: 26px;
    background: linear-gradient(to bottom, #D87E4C, rgba(140,160,130,0.4));
}
.fv-counter-tot {
    font-family: 'Kanit', sans-serif;
    font-size: 13px; font-weight: 400;
    color: #9F9790; line-height: 1;
}
.fv-counter-dots {
    display: flex; flex-direction: column;
    gap: 6px; margin-top: 6px;
}
.fv-cdot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(140,160,130,0.3);
    cursor: pointer;
    transition: all .3s;
    border: none; outline: none;
}
.fv-cdot.active {
    background: #D87E4C;
    height: 18px; border-radius: 3px;
}

/* CTA 丸ボタン（左下） */
.fv-cta-btn {
    position: absolute;
    left: 72px;
    bottom: -4px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: #D87E4C;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    z-index: 50;
    box-shadow:
        0 0 0 6px rgba(216,126,76,0.2),
        0 0 0 12px rgba(216,126,76,0.08),
        0 14px 40px rgba(216,126,76,0.5);
    transition: background .25s, transform .25s;
    animation: fv-cta-pulse 2.8s ease-in-out infinite;
}
@keyframes fv-cta-pulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(216,126,76,0.2), 0 0 0 12px rgba(216,126,76,0.08), 0 14px 40px rgba(216,126,76,0.5); }
    50%       { box-shadow: 0 0 0 10px rgba(216,126,76,0.25), 0 0 0 22px rgba(216,126,76,0.1), 0 18px 50px rgba(216,126,76,0.6); }
}
.fv-cta-btn:hover {
    background: #BD6B33;
    transform: scale(1.08);
    animation: none;
    box-shadow: 0 0 0 10px rgba(216,126,76,0.25), 0 18px 50px rgba(216,126,76,0.6);
}
.fv-cta-inner {
    display: flex; flex-direction: column;
    align-items: center; gap: 5px;
}
.fv-cta-icon { display: flex; align-items: center; justify-content: center; }
.fv-cta-text {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 15px; font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff; line-height: 1.2;
    text-align: center;
}

/* 3つの特徴アイコン（FV左下エリア外） */
.fv-features {
    position: absolute;
    left: 160px;
    bottom: 32px;
    z-index: 60;
    display: flex;
    gap: 0;
    pointer-events: none;
}
/* SPレスポンシブ */
@media (max-width: 900px) {
    .fv-stage {
        left: 10px; right: 10px;
        top: calc(var(--buddy-hdr-h) + 10px);
        bottom: 10px;
    }
    .fv-counter { display: none; }
    .fv-cta-btn {
        left: 12px;
        width: 110px; height: 110px;
        bottom: -4px;
    }
    .fv-cta-text { font-size: 12px; }
    .fv-copy { padding: 40px 20px 24px; text-align: center; }
    .fv-copy-tag { margin-left: auto; margin-right: auto; }
    .fv-copy-divider { margin: 10px auto; }
}
@media (max-width: 600px) {
    :root { --buddy-hdr-h: 64px; }
    .fv-section { height: 667px; }
    .fv-copy-main { font-size: clamp(22px, 7vw, 34px); }
}

/* プレースホルダーのスタイル（画像がわりに表示） */
.img-placeholder {
    background-color: #E2DCD6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9F9790;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

/* 画像プレースホルダーに少し質感を足す */
.img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.05));
}

/* ---------------------------------
   人が作った感（こなれ感）を出すCSS
--------------------------------- */
/* 1. 有機的な形 (Blob) */
.shape-blob {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.shape-blob-2 {
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
}

/* 四角ベースの波打つ（流体）シェイプ */
.shape-wave-square {
    border-radius: 30% 70% 40% 60% / 60% 45% 55% 40%;
    animation: wave-square-anim 6s ease-in-out infinite;
}

@keyframes wave-square-anim {
    0% {
        border-radius: 30% 70% 40% 60% / 60% 45% 55% 40%;
    }
    50% {
        border-radius: 50% 50% 60% 40% / 40% 60% 40% 60%;
    }
    100% {
        border-radius: 30% 70% 40% 60% / 60% 45% 55% 40%;
    }
}

/* サービス背景用の動くグラデーション Blob */
@keyframes blob-bounce-1 {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(250px, -180px) scale(1.4); }
    66% { transform: translate(-120px, 150px) scale(0.8); }
}
@keyframes blob-bounce-2 {
    0%, 100% { transform: translate(0px, 0px) scale(1.1); }
    50% { transform: translate(-280px, 200px) scale(0.8); }
}
@keyframes blob-bounce-3 {
    0%, 100% { transform: translate(0px, 0px) scale(0.85); }
    40% { transform: translate(180px, 250px) scale(1.3); }
}
.animate-blob-1 {
    animation: blob-bounce-1 10s infinite ease-in-out;
    left: 5%;
    top: 10%;
}
.animate-blob-2 {
    animation: blob-bounce-2 14s infinite ease-in-out;
    right: 5%;
    bottom: 10%;
}
.animate-blob-3 {
    animation: blob-bounce-3 11s infinite ease-in-out;
    left: 35%;
    top: 40%;
}

/* 2. アーチ型 (上部が半円) */
.shape-arch {
    border-radius: 999px 999px 0 0;
}

/* 3. 画像のズレ（オフセット）枠 */
.offset-border {
    position: relative;
}

.offset-border::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid #D87E4C;
    border-radius: inherit;
    z-index: -1;
}

/* 背景の装飾用グラデーション球 */
.bg-glow {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    z-index: 0;
}

/* 互換性のためのクラス */
.accent-color {
    color: #D87E4C;
}

/* ---------------------------------
   VOICE セクション 吹き出しデザイン
--------------------------------- */
.voice-bubble::before,
.voice-bubble::after {
    content: '';
    position: absolute;
    border: solid transparent;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* モバイル表示時（顔写真の下に吹き出しがくるため、上に三角形をつける） */
@media (max-width: 639px) {
    .voice-bubble {
        margin-top: 10px;
    }
    .voice-bubble::before {
        bottom: 100%;
        left: 50%;
        border-bottom-color: #EEDFCE;
        border-width: 9px;
        margin-left: -9px;
    }
    .voice-bubble::after {
        bottom: 100%;
        left: 50%;
        border-bottom-color: #ffffff;
        border-width: 8px;
        margin-left: -8px;
    }
}

/* PC・タブレット表示時（顔写真の右に吹き出しがくるため、左に三角形をつける） */
@media (min-width: 640px) {
    .voice-bubble::before {
        right: 100%;
        top: 35px;
        border-right-color: #EEDFCE;
        border-width: 9px;
        margin-top: -9px;
    }
    .voice-bubble::after {
        right: 100%;
        top: 35px;
        border-right-color: #ffffff;
        border-width: 8px;
        margin-top: -8px;
    }
}

/* ─────────────────────────────────
   新規追加: SERVICE背景グラデーションアニメーション
───────────────────────────────── */
@keyframes service-gradient-anim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animate-service-bg {
    background: linear-gradient(135deg, #FFFBF7 0%, #FFF3EC 50%, #FFEBE0 100%);
    background-size: 200% 200%;
    animation: service-gradient-anim 8s ease infinite;
}

/* ─────────────────────────────────
   新規追加: SP用追従CTAバー
───────────────────────────────── */
.sp-cta-bar {
    display: none;
}
@media (max-width: 900px) {
    .sp-cta-bar {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: #ffffff;
        border-top: 1px solid #F0EAE4;
        padding: 12px 16px;
        gap: 12px;
        z-index: 250;
        box-shadow: 0 -4px 20px rgba(74, 67, 62, 0.08);
        opacity: 0;
        pointer-events: none;
        transform: translateY(100%);
        transition: opacity 0.3s, transform 0.3s;
    }
    .sp-cta-bar.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    body {
        padding-bottom: 76px; /* SP追従CTA用のフッター余白 */
    }
}

/* ─────────────────────────────────
   新規追加: SPハンバーガーメニュー・オーバーレイ
───────────────────────────────── */
.sp-menu-overlay {
    position: fixed;
    inset: 0;
    background: #bd6b33;
    z-index: 300;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 24px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(100%);
    color: #ffffff;
}
.sp-menu-overlay.open {
    transform: translateX(0);
}
.sp-menu-overlay a:not(.bg-white) {
    color: #ffffff !important;
}
.sp-menu-overlay a:not(.bg-white):hover {
    color: rgba(255, 255, 255, 0.8) !important;
}
@media (min-width: 901px) {
    .sp-menu-overlay {
        display: none !important;
    }
}
