@charset "UTF-8";

/* ==========================================================================
   現地調査・現地案内サービスページ (survey.php)
   デザインシステムは guide.php と共通：Zen Maru Gothic / 同一パレット
   ========================================================================== */



.header {
    position: static;
}



.survey-page {
    --c-text: #3C3C43;
    --c-cream: #F4EEE0;
    --c-yellow: #FBEE9B;
    --c-yellow-soft: #FAF3CB;
    --c-orange: #EB8A44;
    --c-orange-deep: #D9802F;
    --c-brown: #7A5C3E;
    --c-blue: #00AAD4;
    --c-blue-light: #CFE9F5;
    --c-blue-deep: #4E9FD1;
    --c-teal: #50B9A7;
    --c-coral: #EC8B79;
    --c-green: #8EBA43;
    --c-green-deep: #7EA240;
    font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
    color: var(--c-text);
    /* clip は横あふれを切り取りつつスクロールコンテナを作らないため、
       子孫の position: sticky（左メニュー）を壊さない。hidden はNG。 */
    overflow-x: clip;
    line-height: 1.9;
}

/* ==========================================================================
   ヒーロー（guide.php のヒーローを踏襲）
   ========================================================================== */
/* 高さは aspect-ratio ではなく padding-bottom(%) で決める（Safari と Chrome で
   算出高さが食い違い、中を top:% で絶対配置している子要素がずれるため）。
   値は従来の aspect-ratio と同値：1690 / 2880 = 58.6806% */
.survey-hero {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 58.6806%;
    background: var(--c-blue-light) url(../asset/survey/hero_bg.png) center top / 100% 100% no-repeat;
}

.survey-hero__clouds {
    position: absolute;
    width: 100%;
    top: 0;
    left: 50%;
    height: 25%;
    transform: translateX(-50%);
    display: flex;
}

.survey-hero__clouds::before,
.survey-hero__clouds::after {
    content: "";
    height: 100%;
    aspect-ratio: 890 / 375;
    display: block;
}

.survey-hero__clouds::before {
    background: url(../asset/survey/cloud_left.png) center top / 100% 100% no-repeat;
    margin-right: auto;
}

.survey-hero__clouds::after {
    background: url(../asset/survey/cloud_right.png) center top / 100% 100% no-repeat;
    margin-left: auto;
}

.survey-hero__badge {
    position: absolute;
    top: 3.5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--c-green);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 18px;
    padding: 10px 28px;
    border-radius: 999px;
    white-space: nowrap;
}

.survey-hero__badge::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FCEF7E;
}

.survey-hero__badge::after {
    content: "";
    position: absolute;
    top: -5.5%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background-color: var(--c-green-deep);
    z-index: -1;
}

.survey-hero__title {
    position: absolute;
    top: 13%;
    left: 0;
    right: 0;
    text-align: center;
    font-weight: 700;
    font-size: 38px;
    color: var(--c-text);
    margin: 0;
}

.survey-hero__bubble {
    position: absolute;
    font-size: 18px;
    /* 従来の aspect-ratio: 322/133 と同値。padding の % は含有ブロック(.survey-hero)の
       幅基準なので、自幅 30% × 133/322 = 12.3913% */
    height: 0;
    padding-bottom: 12.3913%;
    width: 30%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.survey-hero__bubble-text {
    position: absolute;
    width: max-content;
    left: 40%;
    transform: translate(-50%, -50%);
    text-align: start;
    line-height: 1.6;
}

.survey-hero__bubble-label {
    position: absolute;
    display: block;
    font-weight: 700;
    font-size: 20px;
    width: max-content;
    -webkit-text-stroke: 1px #FFFFFF;
    paint-order: stroke fill;
}

/* スタッフ（左下・吹き出しの尾は右上→人物へ） */
.survey-hero__bubble--staff {
    top: 60%;
    left: 6%;
    background-image: url(../asset/survey/bubble-left.svg);
}

.survey-hero__bubble--staff .survey-hero__bubble-text {
    top: 58%;
    left: 40%;
}

.survey-hero__bubble-label--staff {
    color: var(--c-blue);
    top: -6%;
    left: 2%;
}

/* マンション購入をお考えの方（右上・吹き出しの尾は左下→人物へ） */
.survey-hero__bubble--user {
    top: 35%;
    right: 10%;
    background-image: url(../asset/survey/bubble-right.svg);
}

.survey-hero__bubble--user .survey-hero__bubble-text {
    top: 40%;
}

.survey-hero__bubble-label--user {
    color: var(--c-green);
    top: -12%;
    left: 2%;
}

/* ==========================================================================
   サービス切り替えセクション
   ========================================================================== */
.survey-switch {
    background: var(--c-cream);
}

.survey-switch__inner {
    display: flex;
    align-items: stretch;
    gap: 24px;
    padding: 0 0 0 5%;
}

/* 左カラム＝背景。右コンテンツと同じ高さまで伸び、スクロールしても動いて見えない */
.survey-switch__menu {
    flex: 0 0 200px;
}

/* メニュー本体だけを画面に追従させる（sticky） */
.survey-switch__menu-sticky {
    position: sticky;
    top: 40px;
    padding-top: 30px;
}

.survey-switch__menu-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.survey-switch__tab {
    position: relative;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #B7AE9C;
    background: none;
    border: none;
    padding: 8px 4px 12px 22px;
    text-align: left;
    cursor: pointer;
    border-bottom: 2px solid #D8CEBB;
    transition: color .2s;
}

.survey-switch__tab::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-60%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #B7AE9C;
    transition: background .2s;
}

.survey-switch__tab.is-active {
    color: var(--c-blue);
    border-bottom-color: var(--c-blue);
}

.survey-switch__tab.is-active::before {
    background: var(--c-blue);
}

/* パネル領域（白背景の本文）：通常フローでページと一緒にスクロールする */
.survey-switch__panels {
    flex: 1 1 0;
    min-width: 0;
    background: #FFFFFF url(../asset/survey/common-bg.png) bottom center / 100% auto no-repeat;
    padding: 40px clamp(20px, 4vw, 56px) 60px;
}

.survey-panel {
    display: none;
}

.survey-panel.is-active {
    display: block;
    animation: survey-fade .35s ease;
}

@keyframes survey-fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

/* ==========================================================================
   イントロ（メイン画像＋縦書きキャッチ）
   ========================================================================== */
.survey-intro {
    margin-bottom: 30px;
}

.survey-intro__visual {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
}

.survey-intro__visual img {
    display: block;
    width: 100%;
    height: auto;
}

.survey-intro__vtext {
    position: absolute;
    top: 3%;
    right: 7%;
    height: 58%;
    writing-mode: vertical-rl;
    font-weight: 700;
    font-size: clamp(10px, 1.9vw, 19px);
    letter-spacing: .08em;
    line-height: 1.5;
    color: var(--c-text);
    margin: 0;
}

/* ==========================================================================
   見出し
   ========================================================================== */
.survey-headline {
    text-align: center;
    margin: 40px 0 28px;
}

.survey-headline__pre {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
}

.survey-headline__title {
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 700;
    letter-spacing: .06em;
    margin: 0;
}

.survey-headline__hl {
    display: inline-block;
    color: #FFFFFF;
    border-radius: 8px;
    z-index: 4;
    position: relative;
}

.survey-headline__hl--survey::after {
    content: "";
    background: var(--c-teal);
    width: 120%;
    aspect-ratio: 1 / 1;
    position: absolute;
    z-index: -1;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    border-radius: 10px;
}

.survey-headline__hl--guidance::after {
    content: "";
    background: var(--c-blue-deep);
    width: 120%;
    aspect-ratio: 1 / 1;
    position: absolute;
    z-index: -1;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    border-radius: 10px;
}

.rotate-left::after {
    rotate: -5deg;
}

.rotate-right::after {
    rotate: 5deg;
    top: 56%;
    left: 45%;
}

.survey-headline__catch {
    position: relative;
    margin: 26px auto 0;
    background: url(../asset/survey/survey-bubble.svg) center center / 100% 100% no-repeat;
    color: #FFFFFF;
    font-size: clamp(16px, 2.4vw, 22px);
    font-weight: 700;
    width: 75%;
    aspect-ratio: 673 / 152;
    padding-top: 4%;
}

.survey-headline__catch--guidance {
    background: url(../asset/survey/guidance-bubble.svg) center center / 100% 100% no-repeat;
    line-height: normal;
    padding-top: 5%;
    aspect-ratio: 631 / 193;
    letter-spacing: -2px;
}


/* ==========================================================================
   リード文
   ========================================================================== */
.survey-lead {
    text-align: center;
    margin: 46px 0 40px;
}

.survey-lead__strong {
    font-size: clamp(16px, 2.2vw, 20px);
    font-weight: 700;
    margin: 0 0 20px;
}

.survey-lead__mid {
    font-size: clamp(14px, 2vw, 17px);
    margin: 0 0 20px;
}

.survey-lead__mid b {
    font-weight: 700;
    font-size: large;
}

.survey-lead__body {
    font-size: clamp(13px, 1.9vw, 16px);
    text-align: left;
    max-width: 640px;
    margin: 0 auto;
    color: #555;
}

.survey-lead__note {
    font-size: 11px;
    color: #9A9A9A;
    text-align: right;
    max-width: 640px;
    margin: 8px auto 0;
}

/* ==========================================================================
   フロー図（共通ノード／タグ）
   ========================================================================== */
.survey-flow__node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 120px;
    margin-bottom: 5%;
}

.survey-flow__node img {
    width: 100%;
    height: auto;
}

.survey-tag {
    display: inline-block;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.3);
}

.survey-tag--buyer {
    background: var(--c-teal);
}

.survey-tag--staff {
    background: var(--c-blue);
}

.survey-tag--guide {
    background: var(--c-coral);
}

/* ---- 現地調査フロー ---- */
.survey-flow {
    max-width: 560px;
    margin: 30px auto 50px;
}

.survey-flow__bubble {
    position: relative;
    margin: 0 20% 0 0;
    max-width: 540px;
}

.survey-flow__bubble img {
    display: block;
    width: 100%;
    height: auto;
}

.survey-flow__bubble-text {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    text-align: center;
    font-size: clamp(8px, 1.5vw, 13px);
    line-height: 1.5;
    margin: 0;
}

.survey-flow__row {
    display: flex;
    justify-content: space-between;
    padding: 0 6%;
}

.survey-flow__mid {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0;
}

.survey-flow__label {
    font-size: clamp(11px, 1.6vw, 14px);
    font-weight: 700;
    text-align: center;
    color: var(--c-text);
    white-space: nowrap;
}

.survey-flow__label--right b {
    color: var(--c-blue);
}

.survey-flow__arrows {
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
}

.survey-flow__arrows img {
    display: block;
    width: 100%;
    height: auto;
}

.survey-flow__node--center {
    margin: 0 auto;
    width: 150px;
}

/* ---- 現地案内フロー ---- */
.guidance-flow {
    max-width: 620px;
    margin: 30px auto 50px;
    position: relative;
}

.guidance-flow__bubble {
    position: relative;
    margin: 0 auto 26px;
    max-width: 600px;
}

.guidance-flow__bubble img {
    display: block;
    width: 100%;
    height: auto;
}

.guidance-flow__bubble-text {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    text-align: center;
    font-size: clamp(11px, 1.5vw, 13px);
    line-height: 1.5;
    margin: 0;
}

.guidance-flow__row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9%;
}

.guidance-flow__connect {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-bottom: 15%;
}

.guidance-flow__label {
    font-size: clamp(11px, 1.6vw, 14px);
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.guidance-flow__arrow-h {
    position: relative;
    width: 60px;
    height: 2px;
    background: var(--c-text);
}

.guidance-flow__arrow-h::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    border: 7px solid transparent;
    border-left-color: var(--c-text);
    border-right: 0;
}

.guidance-flow__down {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 6px 0;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 45%;
    left: 53%;
    width: 20%;
}

.guidance-flow__down-label {
    color: var(--c-blue);
    font-weight: 700;
    font-size: clamp(14px, 2vw, 18px);
    position: absolute;
    transform: translate(-50%, -50%);
    top: 45%;
    left: 50%;
}

.guidance-flow__down-arrow {
    display: inline-block;
    width: 46px;
    height: 46px;
}

.guidance-flow__down-arrow::before {
    content: "";
    display: block;
    width: 46px;
    height: 3px;
    background: var(--c-text);
    transform-origin: left center;
    transform: translate(4px, 6px) rotate(45deg);
}

.guidance-flow__down-arrow::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-bottom-color: var(--c-text);
    border-left-color: var(--c-text);
    transform: translate(28px, 4px);
}

.guidance-flow__scene {
    position: relative;
    max-width: 520px;
}

.guidance-flow__scene img {
    display: block;
    width: 100%;
    height: auto;
}

.guidance-flow__scene-tags {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 89%;
    left: 56%;
    display: flex;
    gap: 8%;
}

/* ==========================================================================
   メリット（横スライダー）
   ========================================================================== */
.survey-merits {
    margin: 50px 0 10px;
}

.survey-merits__track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 4px 16px;
    scrollbar-width: none;
    cursor: grab;
    justify-content: center;
}

.survey-merits__track::-webkit-scrollbar {
    display: none;
}

.survey-merits__track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.merit-card {
    flex: 0 0 auto;
    width: min(78%, 420px);
    aspect-ratio: 1/1;
    scroll-snap-align: center;
    box-sizing: border-box;
    border: 10px solid var(--c-teal);
    border-radius: 18px;
    padding: 0px 26px 28px;
    background: #FFFFFF;
    user-select: none;
}

.merit-card__title {
    text-align: center;
    color: var(--c-teal);
    font-size: clamp(22px, 3.4vw, 30px);
    font-weight: 700;
    letter-spacing: .14em;
}

.merit-card__main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10%;
}
.merit-card__main span:nth-child(1) {
    text-align: start;
}

.merit-card__main span:nth-child(2) {
    text-align: center;
}

.merit-card__main span:nth-child(3) {
    text-align: end;
}

.merit-card__side {
    display: flex;
    flex-direction: column;
    writing-mode: vertical-rl;
    height: max-content;
    font-size: clamp(13px, 1.8vw, 15px);
    font-weight: 700;
    margin: 0;
}

.merit-card__side span:nth-child(1) {
    text-align: start;
    line-height: normal;
}

.merit-card__side span:nth-child(2) {
    text-align: center;
    line-height: normal;
}

.merit-card__side span:nth-child(3) {
    text-align: end;
    line-height: normal;
}

.merit-card__img {
    width: 80%;
    margin: auto;
    aspect-ratio: 1 / 1;
    display: flex;
}

.merit-card__img img {
    display: block;
    width: 100%;
    height: auto;
}

.merit-card__desc {
    margin: 18px 0 0;
    font-size: clamp(12px, 1.7vw, 14px);
    line-height: 1.8;
    color: #555;
}

.survey-merits__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.survey-merits__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #D8CEBB;
    padding: 0;
    cursor: pointer;
    transition: background .2s;
}

.survey-merits__dot.is-active {
    background: var(--c-teal);
}

/* ==========================================================================
   CTA
   ========================================================================== */
.survey-cta {
    text-align: center;
    padding: 20px 24px 70px;
    white-space: nowrap;
}

.survey-cta__lead {
    font-size: clamp(15px, 2.2vw, 19px);
    font-weight: 700;
    margin: 0 0 18px;
}

.survey-cta__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: min(90%, 420px);
    padding: 20px 40px;
    background: var(--c-yellow);
    color: var(--c-text);
    font-size: clamp(18px, 2.6vw, 24px);
    font-weight: 700;
    letter-spacing: .06em;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 0 #E7D77A;
    transition: transform .1s, box-shadow .1s;
}

.survey-cta__btn:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #E7D77A;
}

.survey-cta__btn-arrow {
    font-size: .7em;
    color: var(--c-orange);
}

/* ==========================================================================
   レスポンシブ（〜900px）
   ========================================================================== */
@media (max-width: 900px) {

    .header {
        margin-top: 0;
    }

    .survey-page {
        line-height: 1.8;
    }

    /* ヒーロー */
    .survey-hero {
        /* 従来の aspect-ratio: 585/734 と同値：734 / 585 = 125.4701% */
        padding-bottom: 125.4701%;
        background: url(../asset/survey/hero_bg-sp.png) center center / 100% 100% no-repeat;
    }

    .survey-hero__clouds {
        height: 18%;
    }

    .survey-hero__clouds::before {
        margin-left: -10%;
    }

    .survey-hero__clouds::after {
        margin-right: -10%;
    }

    .survey-hero__badge {
        font-size: 3vw;
        padding: 1.4vw 4vw;
        gap: 1.4vw;
        top: 10%;
    }

    .survey-hero__badge::before {
        width: 3vw;
        height: 3vw;
    }

    .survey-hero__title {
        font-size: 4vw;
        top: 16%;
    }

    .survey-hero__bubble {
        font-size: 2.4vw;
        /* 従来の aspect-ratio: 322/133 と同値：自幅 52vw × 133/322 = 21.4783vw */
        padding-bottom: 21.4783vw;
        width: 52vw;
    }

    .survey-hero__bubble-label {
        font-size: 3vw;
        -webkit-text-stroke: 0.5px #FFFFFF;
        line-height: normal;
    }

    .survey-hero__bubble--staff {
        top: 80%;
        left: 3%;
        background-image: url(../asset/survey/bubble-right-sp.svg);
    }

    .survey-hero__bubble-label--staff {
        top: -15%;
        left: 5%;
    }

    .survey-hero__bubble--user {
        top: 26%;
        right: 3%;
        background-image: url(../asset/survey/bubble-left-sp.svg);
    }

    .survey-hero__bubble-label--user {
        top: -25%;
        left: 5%;
    }

    .survey-hero__bubble-text {
        top: 40%;
        left: 50%;
    }

    /* 切り替えセクション：メニューを上部の横並びに */
    .survey-switch {
        padding: 34px 0 24px;
    }

    .survey-switch__inner {
        flex-direction: column;
        gap: 16px;
        padding: 0 14px;
    }

    /* スマホ：メニューは上部の横並びで、画面上端に追従 */
    .survey-switch__menu {
        flex: none;
        width: 100%;
    }

    .survey-switch__menu-sticky {
        top: 0;
        z-index: 5;
        padding-top: 0;
        background: var(--c-cream);
    }

    .survey-switch__menu-nav {
        flex-direction: row;
        gap: 0;
    }

    .survey-switch__tab {
        flex: 1 1 0;
        text-align: center;
        padding: 12px 4px 12px 22px;
        font-size: 3.6vw;
    }

    .survey-switch__tab::before {
        left: 8%;
    }

    .survey-switch__panels {
        border-radius: 14px;
        padding: 28px 16px 44px;
    }

    /* フロー：現地調査は縦積み */
    .survey-flow__mid {
        flex-direction: column;
        gap: 6px;
    }

    .survey-flow__arrows {
        width: 40%;
    }

    /* フロー：現地案内は縦積み */
    .guidance-flow__row {
        flex-direction: row;
        gap: 14px;
        align-items: flex-start;
    }

    .guidance-flow__connect {
        flex-direction: row;
        padding-bottom: 0;
        gap: 10px;
    }

    .guidance-flow__arrow-h {
        width: 40px;
    }

    .survey-flow__node,
    .survey-flow__node--center {
        width: 110px;
    }

    /* メリットカード */
    .merit-card {
        width: min(88%, 360px);
        padding: 18px 18px 22px;
    }

    .merit-card__side {
        max-height: 100%;
    }

    .survey-flow__bubble {
        width: 100%;
    }
    .survey-flow__bubble-text {
        width: 100%;
    }
    .survey-headline__catch {
        width: 100%;
        margin: auto;
    }

    .survey-tag--guide, .survey-tag--buyer, .survey-tag--staff {
        font-size: 8px;
        padding: 6px 10px 0px 10px;
    }

    .guidance-flow__scene img {
        width: 90%;
    }

    .guidance-flow__scene-tags {
        left: 50%;
        gap: 1%;
    }

    .survey-merits__track {
        justify-content: flex-start;
    }
}