@charset "UTF-8";

/* =====================================================
   天満橋ゆみ皮膚科 - ランディングページ
   ===================================================== */

:root {
    --lp-bg: #fdf8f5;
    --hero-base: #f8efe3;
    --hero-title: #96816f;
    --hero-sub: #ccb9a6;
    --hero-serif: "Noto Serif JP", "Hiragino Mincho ProN", "ヒラギノ明朝 ProN W3", "Yu Mincho", "游明朝", YuMincho, "MS PMincho", serif;
    --cf-pink: #d99a9a;
    --cf-pink-deep: #cf8a8a;
    --cf-pink-bg-from: #fdf1f1;
    --cf-pink-bg-to: #fae3e3;
    --cf-label: #6f6763;
    --cf-input-bg: #ededed;
    --cf-input-text: #3a3330;
    --cf-radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0 0 132px;
    background: var(--lp-bg);
    color: #3a3330;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Yu Gothic", "游ゴシック", Meiryo, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* =====================================================
   トップビジュアル
   背景は画像、ロゴ・コピーは HTML/CSS で配置する。
   すべて % と vw で組み、画面幅が変わっても崩れないようにする。
   ===================================================== */
.hero {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    background: var(--hero-base);
}

.hero__box {
    position: relative;
    width: 100%;
    /* 背景画像と同じ比率にして、切れ・余白が出ないようにする */
    aspect-ratio: 1920 / 996;
    background-image: url("../../img/bg_pc_top.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

.hero__logo {
    position: absolute;
    top: 3%;
    left: 1.7%;
    width: 5.1%;
    height: auto;
}

.hero__copy {
    position: absolute;
    left: 13%;
    top: 47.5%;
    transform: translateY(-50%);
    width: 62%;
}

.hero__title {
    margin: 0;
    font-family: var(--hero-serif);
    /* 「は、」「から。」は細く、強調部分だけ太く */
    font-weight: 300;
    font-size: clamp(28px, 3.55vw, 68px);
    line-height: 1.5;
    letter-spacing: -.04em;
    color: var(--hero-title);
}

.hero__line {
    display: block;
}

/* 強調する部分（美しさ / 信頼できる医療） */
.hero__strong {
    font-weight: 700;
}

/* 英字だけゴシック体 */
.hero__sub {
    margin: clamp(14px, 1.7vw, 33px) 0 0;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Yu Gothic", "游ゴシック", Meiryo, sans-serif;
    font-weight: 600;
    font-size: clamp(10px, 1.15vw, 22px);
    letter-spacing: .4em;
    color: var(--hero-sub);
}

/* スマートフォンだけで改行する位置 */
.hero__br--sp {
    display: none;
}

/* ----- 表示アニメーション（ロゴ → 1行目 → 2行目 → 英字の順にふわっと） ----- */
@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

.hero__logo,
.hero__line,
.hero__sub {
    animation: hero-fade-up 1.1s cubic-bezier(.22, .68, .28, 1) both;
}

.hero__logo {
    animation-delay: .1s;
}

.hero__line:nth-child(1) {
    animation-delay: .35s;
}

.hero__line:nth-child(2) {
    animation-delay: .55s;
}

.hero__sub {
    animation-delay: .8s;
}

/* 動きを抑える設定の端末では、そのまま表示する */
@media (prefers-reduced-motion: reduce) {

    .hero__logo,
    .hero__line,
    .hero__sub {
        animation: none;
    }
}

/* aspect-ratio 未対応ブラウザ向けの保険 */
@supports not (aspect-ratio: 1 / 1) {
    .hero__box {
        height: 0;
        padding-top: 51.875%;
    }
}

/* ===== コンテンツ（セクション分割） ===== */
.lp-main {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.lp-section {
    display: block;
    /* ボタンを画像の上に重ねるための基準 */
    position: relative;
    /* ふわっと表示する際に画像が動いても隙間が出ないように切り抜く */
    overflow: hidden;
}

/* ----- 画像の上に重ねる WEB予約ボタン ----- */
/* 位置・大きさは背景画像に対する % なので、画面幅が変わっても同じ位置に収まる */
.sec-cta {
    position: absolute;
    left: 13.5%;
    top: 35.3%;
    display: block;
    width: 27%;
    line-height: 0;
    transition: filter .25s ease, transform .25s ease;
}

.sec-cta__image {
    display: block;
    width: 100%;
    height: auto;
}

.sec-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.sec-cta:active {
    transform: translateY(0);
}

/* 画像はふわっと拡大縮小するが、ボタンはその場で静かに出す */
.sec-cta.is-reveal {
    transform: none;
}

/* display:block にして画像どうしの隙間（inline の余白）をなくす */
.lp-section__image {
    display: block;
    width: 100%;
    height: auto;
}

/* ----- スクロールに合わせて、ゆっくり浮かび上がる ----- */
/* is-reveal は JS が付ける。JS が動かない環境ではそのまま表示される。 */
.is-reveal {
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 1.2s ease, transform 1.4s cubic-bezier(.22, .68, .28, 1);
}

.is-reveal.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* ===== WEB予約ボタン（トップ画像と1つ目のセクションの境目に重ねる） =====
   高さを 0 にして上下に余白を作らず、画像どうしは隙間なく接したまま、
   ボタンだけをその境目の上に重ねて表示する。 */
.web-cta {
    position: relative;
    z-index: 5;
    height: 0;
    display: flex;
    justify-content: center;
}

.web-cta__link {
    position: absolute;
    top: 0;
    /* ボタンの中心を境目の線に合わせる */
    transform: translateY(-50%);
    display: block;
    width: min(88%, 1051px);
    line-height: 0;
    transition: transform .25s ease, filter .25s ease;
}

.web-cta__link:hover {
    transform: translateY(calc(-50% - 3px));
    filter: brightness(1.03);
}

.web-cta__link:active {
    transform: translateY(-50%);
}

.web-cta__image {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== ページ先頭へ戻るボタン ===== */
.to-top {
    position: fixed;
    right: 24px;
    bottom: 148px;
    /* 下部固定フォームより上に置く */
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 1px solid rgba(217, 154, 154, .35);
    border-radius: 50%;
    background: rgba(255, 255, 255, .93);
    color: var(--cf-pink);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(191, 138, 138, .22);
    /* 初期状態は非表示 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    /* 消えるときは、フェードが終わってから visibility を切り替える */
    transition: opacity .45s ease, transform .45s cubic-bezier(.22, .68, .28, 1), visibility 0s linear .45s, box-shadow .2s, background-color .2s;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* 現れるときは、すぐ表示してからフェードさせる */
    transition: opacity .45s ease, transform .45s cubic-bezier(.22, .68, .28, 1), visibility 0s linear 0s, box-shadow .2s, background-color .2s;
}

.to-top:hover {
    background: #fff;
    color: var(--cf-pink-deep);
    box-shadow: 0 9px 24px rgba(191, 138, 138, .3);
}

.to-top:active {
    transform: translateY(2px);
}

.to-top__arrow {
    width: 9px;
    height: 9px;
    margin-top: 4px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(-45deg);
}

.to-top__label {
    margin-top: 3px;
}

/* ===== 右サイド クイックメニュー ===== */
.quick {
    position: fixed;
    right: 19px;
    /* TOP ボタンの真上。実際の位置は JS が TOP ボタンに合わせて上書きする */
    bottom: 218px;
    z-index: 95;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick__btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 68px;
    padding: 13px 4px 11px;
    border-radius: 18px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(191, 138, 138, .22);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s, color .2s;
}

.quick__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(191, 138, 138, .32);
}

.quick__btn:active {
    transform: translateY(0);
}

/* LINE：電話と同じ白ベースに LINE カラーを差し色で */
.quick__btn--line {
    border: 1px solid rgba(6, 199, 85, .4);
    background: rgba(255, 255, 255, .95);
    color: #06c755;
}

.quick__btn--line:hover {
    background: #fff;
}

/* 電話：白ベース */
.quick__btn--tel {
    border: 1px solid rgba(217, 154, 154, .4);
    background: rgba(255, 255, 255, .95);
    color: var(--cf-pink-deep);
}

.quick__btn--tel:hover {
    background: #fff;
}

/* WEB予約：主動線なので塗りつぶし */
.quick__btn--web {
    border: 1px solid transparent;
    background: linear-gradient(180deg, var(--cf-pink) 0%, var(--cf-pink-deep) 100%);
    color: #fff;
}

.quick__icon {
    display: block;
    width: 26px;
    height: 26px;
}

.quick__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* ホバー時に左へ出る吹き出し（タッチ端末では非表示） */
.quick__tip {
    position: absolute;
    top: 50%;
    right: calc(100% + 10px);
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(58, 51, 48, .88);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .04em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%);
    transition: opacity .2s ease, visibility 0s linear .2s;
}

.quick__btn:hover .quick__tip,
.quick__btn:focus-visible .quick__tip {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

/* ===== 下部固定フォーム ===== */
.cf {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 22px;
    z-index: 100;
    display: flex;
    flex-direction: column-reverse;
    /* .cf__note を上段に表示 */
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    pointer-events: none;
}

.cf__inner {
    pointer-events: auto;
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 1080px;
    background: #fff;
    border-radius: var(--cf-radius);
    box-shadow: 0 14px 40px rgba(191, 138, 138, .28);
}

.cf__fields {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px 34px;
    min-width: 0;
    background: #fff;
    border-radius: var(--cf-radius) 0 0 var(--cf-radius);
}

.cf__field {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.cf__label {
    flex: 0 0 auto;
    font-size: 19px;
    font-weight: 500;
    color: var(--cf-label);
    letter-spacing: .02em;
}

.cf__input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--cf-input-bg);
    color: var(--cf-input-text);
    font-size: 16px;
    font-family: inherit;
    transition: border-color .2s, background-color .2s;
}

.cf__input--tel {
    min-width: 240px;
}

.cf__input::placeholder {
    color: #a9a3a0;
}

.cf__input:focus {
    outline: none;
    background: #f6f6f6;
    border-color: var(--cf-pink);
}

.cf__input.is-error {
    background: #fdeeee;
    border-color: #e08585;
}

/* ===== 送信ボタン ===== */
.cf__submit {
    position: relative;
    flex: 0 0 auto;
    width: 340px;
    padding: 20px 16px;
    border: none;
    border-radius: 0 var(--cf-radius) var(--cf-radius) 0;
    background: linear-gradient(180deg, var(--cf-pink-bg-from) 0%, var(--cf-pink-bg-to) 100%);
    color: var(--cf-pink);
    font-family: inherit;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
    transition: filter .2s, color .2s;
}

.cf__submit:hover {
    filter: brightness(.97);
    color: var(--cf-pink-deep);
}

.cf__submit:active {
    filter: brightness(.94);
}

.cf__submit:disabled {
    cursor: default;
    opacity: .7;
}

.cf__click {
    position: absolute;
    top: -30px;
    right: 18px;
    width: 92px;
    height: auto;
    pointer-events: none;
    animation: cf-bounce 1.6s ease-in-out infinite;
}

@keyframes cf-bounce {

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

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

.cf__note {
    pointer-events: auto;
    margin: 0;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    color: #8b8280;
    font-size: 11px;
    letter-spacing: .02em;
}

/* ===== タブレット ===== */
@media (max-width: 1080px) {
    .cf__fields {
        gap: 18px;
        padding: 18px 22px;
    }

    .cf__label {
        font-size: 16px;
    }

    .cf__input--tel {
        min-width: 160px;
    }

    .cf__submit {
        width: 250px;
        font-size: 24px;
    }
}

/* ===== スマートフォン ===== */
@media (max-width: 767px) {
    body {
        padding-bottom: 190px;
    }

    /* ----- トップビジュアル（スマホ用の背景に差し替え） ----- */
    .hero__box {
        aspect-ratio: 720 / 545;
        background-image: url("../../img/mobile/bg_m_top.jpg");
    }

    /* 縦が短い画像なので、ロゴとコピーが重ならないよう小さめに組む */
    .hero__logo {
        top: 4%;
        left: 6%;
        width: 10%;
    }

    .hero__copy {
        left: 7%;
        top: 50%;
        width: 60%;
    }

    .hero__title {
        font-size: 6.6vw;
        line-height: 1.5;
    }

    .hero__sub {
        margin-top: 3vw;
        font-size: 2.5vw;
        letter-spacing: .3em;
        line-height: 1.9;
    }

    .hero__br--sp {
        display: inline;
    }

    @supports not (aspect-ratio: 1 / 1) {
        .hero__box {
            padding-top: 75.694%;
        }
    }

    .cf {
        bottom: 0;
        gap: 0;
        padding: 0;
    }

    .cf__inner {
        flex-direction: column;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -6px 24px rgba(191, 138, 138, .3);
    }

    .cf__fields {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 14px 16px 12px;
        border-radius: 18px 18px 0 0;
    }

    .cf__field {
        gap: 10px;
    }

    .cf__label {
        flex: 0 0 66px;
        font-size: 14px;
    }

    .cf__input {
        padding: 11px 13px;
        font-size: 16px;
        /* iOS 자동 확대 방지 */
    }

    .cf__input--tel {
        min-width: 0;
    }

    .cf__submit {
        width: 100%;
        padding: 15px 12px;
        font-size: 22px;
        border-radius: 0;
    }

    .cf__click {
        top: -24px;
        right: 12px;
        width: 74px;
    }

    .cf__note {
        order: 2;
        width: 100%;
        border-radius: 0;
        text-align: center;
        font-size: 10px;
        line-height: 1.5;
        padding: 5px 10px;
        background: rgba(255, 255, 255, .92);
    }

    /* スマホ用ボタン画像（634px）より大きく引き伸ばさない */
    .web-cta__link {
        max-width: 634px;
    }

    /* スマホ用のセクション画像にはボタンが描かれているので、
       画像は重ねず、その位置を押せるようにするだけ */
    .sec-cta {
        left: 9.4%;
        top: 31.6%;
        width: 34.7%;
        height: 5.8%;
    }

    .sec-cta__image {
        display: none;
    }

    /* クイックメニューは小さくして端に寄せる */
    .quick {
        right: 10px;
        bottom: 264px;
        gap: 8px;
    }

    .quick__btn {
        width: 58px;
        padding: 10px 3px 9px;
        border-radius: 15px;
        font-size: 10px;
    }

    .quick__icon {
        width: 22px;
        height: 22px;
    }

    .quick__tip {
        display: none;
    }

    /* 下部固定フォームが高くなるぶん、TOPボタンも上げる */
    .to-top {
        right: 14px;
        bottom: 202px;
        width: 50px;
        height: 50px;
        font-size: 9px;
    }

    .to-top__arrow {
        width: 8px;
        height: 8px;
    }
}
