html,
body.pfy-swipe-body {
    margin: 0;
    min-height: 100%;
    background: #111111;
}

body.pfy-swipe-body {
    overflow: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pfy-swipe-page {
    box-sizing: border-box;
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #111111;
    color: #ffffff;
}

.pfy-swipe-shell {
    position: relative;
    width: 100%;
    max-width: 390px;
    height: 100svh;
    max-height: 844px;
    margin: 0 auto;
    overflow: hidden;
    background: #222222;
}

.pfy-swipe-track {
    display: flex;
    width: calc(var(--pfy-swipe-slide-count, 3) * 100%);
    height: 100%;
    transform: translateX(0);
    transition: transform 0.35s ease;
}

.pfy-swipe-slide {
    position: relative;
    flex: 0 0 calc(100% / var(--pfy-swipe-slide-count, 3));
    width: calc(100% / var(--pfy-swipe-slide-count, 3));
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #1f1f1f;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}


.pfy-swipe-slide-1--video {
    background-image: none;
}

.pfy-swipe-slide-1--video::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(rgba(0,0,0,.38), rgba(0,0,0,.38));
    pointer-events: none;
}

.pfy-swipe-bg-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #111111;
}

.pfy-swipe-bg-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.7778vh;
    height: 100vh;
    min-width: 100%;
    min-height: 56.25vw;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.pfy-swipe-slide-1--video .pfy-swipe-slide-inner-1 {
    position: relative;
    z-index: 2;
}

.pfy-swipe-slide-2,
.pfy-swipe-slide-3,
.pfy-swipe-slide-extra {
    background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
    color: #222222;
}

.pfy-swipe-slide-inner {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding-right: clamp(18px, 5vw, 24px);
    padding-left: clamp(18px, 5vw, 24px);
}

.pfy-swipe-slide-2 .pfy-swipe-slide-inner,
.pfy-swipe-slide-3 .pfy-swipe-slide-inner {
    padding-top: clamp(18px, 4vh, 28px);
    padding-bottom: clamp(24px, 5vh, 38px);
    overflow: hidden;
}

.pfy-swipe-grid {
    display: grid;
    grid-template-rows: repeat(10, minmax(0, 1fr));
    row-gap: 0;
}

.pfy-swipe-zone {
    box-sizing: border-box;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pfy-swipe-grid--top {
    text-align: center;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.pfy-swipe-top-spacer {
    grid-row: 1 / span 2;
}

.pfy-swipe-top-main {
    grid-row: 3 / span 5;
    align-items: center;
    overflow: hidden;
}

.pfy-swipe-bottom-spacer {
    grid-row: 8 / span 2;
}

.pfy-swipe-footer-zone {
    grid-row: 10 / span 1;
    align-items: center;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.pfy-swipe-logo-wrap {
    flex: 0 0 auto;
    width: clamp(68px, 18vw, 92px);
    height: clamp(68px, 18vw, 92px);
    margin: 0 auto clamp(8px, 1.8vh, 12px);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.pfy-swipe-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pfy-swipe-genre {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    max-width: 100%;
    margin: 0 auto clamp(7px, 1.4vh, 10px);
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.23);
    font-size: clamp(11px, 3.2vw, 13px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.04em;
}

.pfy-swipe-title {
    max-width: 100%;
    margin: 0;
    font-size: clamp(26px, 8.5vw, 38px);
    line-height: 1.16;
    font-weight: 800;
    color: inherit;
}

.pfy-swipe-address {
    max-width: 100%;
    margin: clamp(8px, 1.6vh, 12px) 0 0;
    font-size: clamp(11px, 3vw, 12px);
    line-height: 1.45;
    opacity: 0.92;
}

.pfy-swipe-catchcopy {
    max-width: 100%;
    margin: clamp(9px, 1.8vh, 13px) 0 0;
    font-size: clamp(14px, 4.2vw, 16px);
    line-height: 1.62;
    font-weight: 700;
}

.pfy-swipe-powered {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.32);
    color: rgba(255, 255, 255, 0.96);
    text-align: center;
    text-decoration: none;
    font-size: 11px;
    line-height: 1.35;
    backdrop-filter: blur(8px);
}

/* slide2: 画像5 / 見出し1 / 説明4 */
.pfy-swipe-grid--intro .pfy-swipe-intro-image-zone {
    grid-row: 1 / 6;
    align-items: center;
    padding-top: 0;
    padding-bottom: clamp(8px, 1.3vh, 12px);
}

.pfy-swipe-grid--intro .pfy-swipe-intro-heading-zone {
    grid-row: 6 / 7;
    align-items: center;
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
}

.pfy-swipe-grid--intro .pfy-swipe-intro-text-zone {
    grid-row: 7 / 11;
    align-items: stretch;
    padding-top: clamp(8px, 1.4vh, 12px);
    padding-bottom: clamp(8px, 1.4vh, 12px);
    overflow: hidden;
}

.pfy-swipe-main-image-wrap {
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: #e8e8e8;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.13);
}

.pfy-swipe-main-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pfy-swipe-heading {
    margin: 0;
    font-size: clamp(23px, 6.7vw, 31px);
    line-height: 1.24;
    font-weight: 800;
    color: inherit;
    text-align: center;
}

.pfy-swipe-subheading {
    margin: 0;
    font-size: clamp(19px, 5.3vw, 24px);
    line-height: 1.34;
    font-weight: 800;
    color: inherit;
    text-align: center;
}

.pfy-swipe-text {
    margin: 0;
    font-size: clamp(14px, 3.8vw, 16px);
    line-height: 1.75;
    color: inherit;
    text-align: left;
}

/* slide3: 見出し1 / 説明2 / フォーム6(+SNSなし時7) / SNS1 */
.pfy-swipe-contact-heading-zone {
    grid-row: 1 / 2;
    align-items: center;
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
}

.pfy-swipe-contact-text-zone {
    grid-row: 2 / 4;
    align-items: stretch;
    padding-top: clamp(2px, 0.4vh, 4px);
    padding-bottom: clamp(2px, 0.4vh, 4px);
    overflow: hidden;
}

.pfy-swipe-slide-3--form .pfy-swipe-form-zone {
    grid-row: 4 / 10;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-radius: 18px;
    background: #ffffff;
    color: #222222;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.pfy-swipe-slide-3.pfy-swipe-slide-3--form.pfy-swipe-slide-3--no-sns .pfy-swipe-form-zone {
    grid-row: 4 / 11;
}

.pfy-swipe-slide-3--no-sns .pfy-swipe-sns-zone {
    display: none;
}

.pfy-swipe-slide-3--no-form .pfy-swipe-no-form-heading-zone {
    grid-row: 4 / span 2;
    align-items: center;
    text-align: center;
    padding-top: clamp(5px, 1vh, 8px);
    padding-bottom: clamp(5px, 1vh, 8px);
}

.pfy-swipe-slide-3--no-form .pfy-swipe-no-form-text-zone {
    grid-row: 6 / span 4;
    align-items: stretch;
    padding-top: clamp(5px, 1vh, 8px);
    padding-bottom: clamp(5px, 1vh, 8px);
    overflow: hidden;
}

.pfy-swipe-sns-zone {
    grid-row: 10 / span 1;
    align-items: center;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    overflow: hidden;
    justify-content: end;
}

.pfy-swipe-contact-preview {
    margin: 0;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.pfy-swipe-contact-field {
    box-sizing: border-box;
    width: 100%;
    min-height: 36px;
    margin-bottom: 8px;
    padding: 9px 11px;
    border-radius: 10px;
    background: #f1f1f1;
    color: #888888;
    font-size: 13px;
}

.pfy-swipe-contact-field-message {
    min-height: 68px;
}

.pfy-swipe-contact-button {
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    background: #222222;
    color: #ffffff;
    font-weight: 700;
    opacity: 0.85;
}

.pfy-swipe-contact-note {
    margin: 8px 0 0;
    color: #777777;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.pfy-contact-form-swipe {
    box-sizing: border-box;
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: clamp(7px, 1.8vw, 10px);
    overflow: visible;
    border-radius: 0;
    background: transparent;
    color: #222222;
    box-shadow: none;
}

.pfy-contact-form-swipe .fluentform,
.pfy-contact-form-swipe form {
    margin: 0;
}

.pfy-contact-form-swipe .fluentform {
    min-height: 0;
}

.pfy-contact-form-swipe .ff-el-form-control,
.pfy-contact-form-swipe .ff-btn-submit {
    box-shadow: none;
}

.pfy-contact-form-swipe .ff-el-group {
    margin-bottom: 6px !important;
}

.pfy-contact-form-swipe .ff-el-input--label {
    margin-bottom: 2px !important;
}

.pfy-contact-form-swipe label,
.pfy-contact-form-swipe .ff-el-input--label label {
    color: #222222;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 700;
}

.pfy-contact-form-swipe input[type="text"],
.pfy-contact-form-swipe input[type="email"],
.pfy-contact-form-swipe input[type="tel"],
.pfy-contact-form-swipe input[type="url"],
.pfy-contact-form-swipe textarea,
.pfy-contact-form-swipe select {
    box-sizing: border-box;
    width: 100%;
    min-height: 31px;
    padding: 6px 9px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    background: #ffffff;
    color: #222222;
    font-size: 12px;
    line-height: 1.3;
}

.pfy-contact-form-swipe textarea {
    min-height: 54px;
    resize: vertical;
}

.pfy-contact-form-swipe .ff-btn-submit,
.pfy-contact-form-swipe button[type="submit"],
.pfy-contact-form-swipe input[type="submit"] {
    width: 100%;
    min-height: 34px;
    padding: 7px 12px;
    border: 0;
    border-radius: 999px;
    background: #222222;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.pfy-contact-form-swipe .ff-el-form-check,
.pfy-contact-form-swipe .ff-el-form-check-label,
.pfy-contact-form-swipe .ff-el-help-message,
.pfy-contact-form-swipe .ff-el-is-error .text-danger,
.pfy-contact-form-swipe .error,
.pfy-contact-form-swipe .text-danger {
    font-size: 11px;
    line-height: 1.35;
}

.pfy-contact-form-swipe .ff_submit_btn_wrapper,
.pfy-contact-form-swipe .ff-el-group:last-child {
    margin-bottom: 0;
}

.pfy-swipe-sns {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
}

.pfy-swipe-sns-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    max-width: 96px;
    padding: 0 10px;
    border-radius: 999px;
    background: #222222;
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.pfy-swipe-nav {
    position: absolute;
    top: 50%;
    z-index: 7;
    width: 28px;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111111;
    font-size: 32px;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 0;
    opacity: 0.72;
    text-shadow: none;
}

.pfy-swipe-nav-prev {
    left: 1px;
}

.pfy-swipe-nav-next {
    right: 1px;
}

.pfy-swipe-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 6;
    display: flex;
    justify-content: center;
    gap: 7px;
    pointer-events: none;
}

.pfy-swipe-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    pointer-events: auto;
    cursor: pointer;
}

.pfy-swipe-dot.is-active {
    width: 18px;
    background: #ffffff;
}

.pfy-swipe-slide-extra .pfy-swipe-slide-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(18px, 4vh, 28px);
    padding-bottom: clamp(24px, 5vh, 38px);
    overflow: hidden;
}

.pfy-swipe-extra-image-wrap {
    margin-bottom: 18px;
}

.pfy-swipe-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}

.pfy-swipe-gallery-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    background: #e8e8e8;
}

.pfy-swipe-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-height: 720px) {
    .pfy-swipe-title {
        font-size: clamp(24px, 8vw, 33px);
    }

    .pfy-swipe-heading {
        font-size: clamp(21px, 6.2vw, 28px);
    }

    .pfy-swipe-text {
        font-size: 14px;
        line-height: 1.62;
    }

    .pfy-swipe-logo-wrap {
        width: 70px;
        height: 70px;
        margin-bottom: 8px;
    }

    .pfy-contact-form-swipe .ff-el-group {
        margin-bottom: 5px !important;
    }

    .pfy-contact-form-swipe input[type="text"],
    .pfy-contact-form-swipe input[type="email"],
    .pfy-contact-form-swipe input[type="tel"],
    .pfy-contact-form-swipe textarea,
    .pfy-contact-form-swipe select {
        min-height: 30px;
        padding: 6px 8px;
    }

    .pfy-contact-form-swipe textarea {
        min-height: 50px;
    }
}

@media (min-width: 768px) {
    body.pfy-swipe-body {
        background: #e8e8e8;
        overflow: auto;
    }

    .pfy-swipe-page {
        min-height: 100svh;
        align-items: center;
        padding: 0;
        box-sizing: border-box;
    }

    .pfy-swipe-shell {
        width: 390px;
        height: min(844px, 100svh);
        max-height: 844px;
        margin: 0 auto;
        border-radius: 34px;
        box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
    }
}


/* Phase29: public swipe final design adjustments */
.pfy-swipe-title {
    font-size: clamp(26px, 2.7vw, 28px);
    line-height:
}

.pfy-swipe-heading {
    font-size: clamp(24px, 2.5vw, 26px);
    line-height:
}

.pfy-swipe-subheading {
    font-size: clamp(16px, 1.6vw, 18px);
    line-height:
}

.pfy-swipe-page .pfy-extra-template__heading {
    font-size: clamp(24px, 2.5vh, 26px);
    line-height:
}

.pfy-swipe-page .pfy-extra-template__sub-heading {
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.5;
}

.pfy-swipe-page .pfy-extra-template__text {
    font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.5;
}

.pfy-swipe-page .pfy-extra-template__short-text {
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.5;
}

.pfy-swipe-grid--intro .pfy-swipe-intro-text-zone {
    justify-content: flex-start;
}

.pfy-swipe-slide-3--form .pfy-swipe-form-zone {
    padding-top: 20px;
}

.pfy-contact-form-swipe input[type="text"],
.pfy-contact-form-swipe input[type="email"],
.pfy-contact-form-swipe input[type="tel"],
.pfy-contact-form-swipe input[type="url"],
.pfy-contact-form-swipe textarea,
.pfy-contact-form-swipe select {
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.5;
}

.pfy-contact-form-swipe .ff-btn-submit,
.pfy-contact-form-swipe button[type="submit"],
.pfy-contact-form-swipe input[type="submit"] {
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.5;
}

.pfy-swipe-sns {
    gap: 8px;
}

.pfy-swipe-sns-link {
    position: relative;
    width: 32px;
    min-width: 32px;
    max-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 999px;
    font-size: 0;
    overflow: hidden;
}

.pfy-swipe-sns-link::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.pfy-swipe-sns-link--x::before {
    content: "X";
}

.pfy-swipe-sns-link--instagram::before {
    content: "IG";
    font-size: 10px;
}

.pfy-swipe-sns-link--facebook::before {
    content: "f";
    font-size: 17px;
}

.pfy-swipe-sns-link--line::before {
    content: "LINE";
    font-size: 8px;
}

.pfy-swipe-sns-link--youtube::before {
    content: "▶";
    font-size: 13px;
}

.pfy-swipe-sns-link--tiktok::before {
    content: "♪";
    font-size: 16px;
}

.pfy-swipe-sns-link--blog::before {
    content: "B";
}

/* Phase29 hotfix: replace SNS text badges with brand color icon badges */
.pfy-swipe-sns-link {
    background: #111111;
}

.pfy-swipe-sns-link::before {
    content: "";
    width: 18px;
    height: 18px;
    display: block;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    font-size: 0;
    line-height: 0;
}

.pfy-swipe-sns-link--x {
    background: #000000;
}

.pfy-swipe-sns-link--x::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M18.9 2.5h3.3l-7.2 8.2 8.5 10.8h-6.7l-5.2-6.7-6 6.7H2.3l7.7-8.7L1.8 2.5h6.8l4.7 6 5.6-6Zm-1.2 17.1h1.8L7.6 4.3H5.7l12 15.3Z'/%3E%3C/svg%3E");
}

.pfy-swipe-sns-link--instagram {
    background: #e4405f;
}

.pfy-swipe-sns-link--instagram::before {
    width: 19px;
    height: 19px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='4' width='16' height='16' rx='5' fill='none' stroke='%23ffffff' stroke-width='2.2'/%3E%3Ccircle cx='12' cy='12' r='3.6' fill='none' stroke='%23ffffff' stroke-width='2.2'/%3E%3Ccircle cx='17.3' cy='6.9' r='1.3' fill='%23ffffff'/%3E%3C/svg%3E");
}

.pfy-swipe-sns-link--facebook {
    background: #1877f2;
}

.pfy-swipe-sns-link--facebook::before {
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M15.7 8.1h-2.2V6.6c0-.6.4-.8.8-.8h1.3V3.2L13.7 3c-2.1 0-3.5 1.3-3.5 3.5v1.6H8v2.8h2.2V21h3.3V10.9h2l.2-2.8Z'/%3E%3C/svg%3E");
}

.pfy-swipe-sns-link--line {
    background: #06c755;
}

.pfy-swipe-sns-link--line::before {
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M12 4C7.2 4 3.4 7.1 3.4 11c0 3.5 3.1 6.4 7.2 6.9l.5 2.1c.1.4.6.5.9.2l2.4-2.1c3.6-.8 6.2-3.6 6.2-7.1C20.6 7.1 16.8 4 12 4Zm0 11.7c-3.6 0-6.5-2.1-6.5-4.7S8.4 6.3 12 6.3s6.5 2.1 6.5 4.7-2.9 4.7-6.5 4.7Z'/%3E%3C/svg%3E");
}

.pfy-swipe-sns-link--youtube {
    background: #ff0000;
}

.pfy-swipe-sns-link--youtube::before {
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M21.2 7.2c-.2-.8-.8-1.4-1.6-1.6C18.2 5.2 12 5.2 12 5.2s-6.2 0-7.6.4c-.8.2-1.4.8-1.6 1.6-.4 1.4-.4 4.8-.4 4.8s0 3.4.4 4.8c.2.8.8 1.4 1.6 1.6 1.4.4 7.6.4 7.6.4s6.2 0 7.6-.4c.8-.2 1.4-.8 1.6-1.6.4-1.4.4-4.8.4-4.8s0-3.4-.4-4.8ZM10.1 14.9V9.1l5.1 2.9-5.1 2.9Z'/%3E%3C/svg%3E");
}

.pfy-swipe-sns-link--tiktok {
    background: #000000;
}

.pfy-swipe-sns-link--tiktok::before {
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M14.4 3c.4 2.5 1.8 4 4.2 4.2v3.1c-1.5 0-2.9-.5-4.1-1.3v5.7c0 3.2-2.2 5.4-5.3 5.4-2.8 0-5-2-5-4.8 0-3 2.3-5 5.5-4.8v3.2c-1.4-.2-2.4.4-2.4 1.6 0 1 .8 1.7 1.8 1.7 1.2 0 2-.8 2-2.3V3h3.3Z'/%3E%3C/svg%3E");
}

.pfy-swipe-sns-link--blog {
    background: #0ea5e9;
}

.pfy-swipe-sns-link--blog::before {
    width: 19px;
    height: 19px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23ffffff' stroke-width='2.1'/%3E%3Cpath d='M3.5 12h17M12 3c2.3 2.5 3.4 5.5 3.4 9S14.3 18.5 12 21c-2.3-2.5-3.4-5.5-3.4-9S9.7 5.5 12 3Z' fill='none' stroke='%23ffffff' stroke-width='2.1' stroke-linecap='round'/%3E%3C/svg%3E");
}


/* Phase38 additional public-page layout and table modal adjustments. */
.pfy-swipe-page .pfy-swipe-slide,
.pfy-swipe-page .pfy-swipe-slide-inner,
.pfy-swipe-page .pfy-extra-template,
.pfy-swipe-page .pfy-extra-template__inner,
.pfy-swipe-page .pfy-extra-template__body,
.pfy-swipe-page .pfy-extra-template__media,
.pfy-swipe-page .pfy-extra-template__images,
.pfy-swipe-page .pfy-extra-template__videos,
.pfy-swipe-page .pfy-extra-template__rows,
.pfy-swipe-page .pfy-extra-template__faq-list,
.pfy-swipe-page .pfy-extra-template__table-wrap,
.pfy-swipe-page .pfy-extra-template__icon-buttons,
.pfy-swipe-page .pfy-extra-template__image,
.pfy-swipe-page .pfy-extra-template__video,
.pfy-swipe-page .pfy-extra-template__video-embed,
.pfy-swipe-page .pfy-extra-template img,
.pfy-swipe-page .pfy-extra-template iframe {
    min-width: 0;
    max-width: 100%;
}

.pfy-swipe-page .pfy-swipe-slide-inner,
.pfy-swipe-page .pfy-extra-template,
.pfy-swipe-page .pfy-extra-template__inner {
    overflow-x: hidden;
}

.pfy-swipe-page .pfy-extra-template__image,
.pfy-swipe-page .pfy-extra-template__video,
.pfy-swipe-page .pfy-extra-template__video-embed,
.pfy-swipe-page .pfy-extra-template img,
.pfy-swipe-page .pfy-extra-template iframe {
    width: 100%;
}

/* Keep the existing maximum proportions, but let short content stack from the top. */
.pfy-swipe-page .pfy-extra-template__inner {
    align-content: start;
    grid-auto-flow: row;
}

.pfy-swipe-page .pfy-extra-template--default .pfy-extra-template__inner {
    grid-template-rows: auto 30% auto !important;
}

.pfy-swipe-page .pfy-extra-template--default .pfy-extra-template__body,
.pfy-swipe-page .pfy-extra-template--template-04 .pfy-extra-template__body {
    grid-template-rows: auto auto !important;
    align-content: start;
}

.pfy-swipe-page .pfy-extra-template--template-01 .pfy-extra-template__inner {
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
}

.pfy-swipe-page .pfy-extra-template--template-04 .pfy-extra-template__inner {
    grid-template-rows: auto 30% auto !important;
}

.pfy-swipe-page .pfy-extra-template--template-08 .pfy-extra-template__inner,
.pfy-swipe-page .pfy-extra-template--template-09 .pfy-extra-template__inner {
    grid-template-rows: auto auto minmax(0, 1fr) !important;
}

.pfy-swipe-page .pfy-extra-template--template-02 .pfy-extra-template__inner,
.pfy-swipe-page .pfy-extra-template--template-03 .pfy-extra-template__inner,
.pfy-swipe-page .pfy-extra-template--template-05 .pfy-extra-template__inner {
    grid-template-rows: auto minmax(0, 1fr) !important;
}

.pfy-swipe-page .pfy-extra-template--template-07 .pfy-extra-template__inner {
    grid-template-rows: auto auto !important;
}

.pfy-swipe-page .pfy-extra-template--template-06 .pfy-extra-template__inner {
    grid-template-rows: auto auto auto auto !important;
}

.pfy-swipe-page .pfy-extra-template__heading {
    max-height: 10%;
    align-items: flex-start;
}

.pfy-swipe-page .pfy-extra-template__body--lead {
    max-height: 30%;
}

.pfy-swipe-page .pfy-swipe-intro-text-zone,
.pfy-swipe-page .pfy-swipe-contact-text-zone,
.pfy-swipe-page .pfy-swipe-no-form-text-zone,
.pfy-swipe-page .pfy-extra-template__body,
.pfy-swipe-page .pfy-extra-template__short-text {
    justify-content: flex-start;
}

/* Public FAQ: compact version of the SEO Q/A box design. */
.pfy-swipe-page .pfy-extra-template--template-07 .pfy-extra-template__faq-list {
    display: grid;
    grid-template-rows: none !important;
    grid-auto-rows: auto;
    align-content: start;
    gap: clamp(7px, 1.8vw, 10px);
    overflow: hidden;
}

.pfy-swipe-page .pfy-extra-template--template-07 .pfy-extra-template__faq-item {
    padding: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.pfy-swipe-page .pfy-extra-template--template-07 .pfy-extra-template__faq-question,
.pfy-swipe-page .pfy-extra-template--template-07 .pfy-extra-template__faq-answer {
    display: grid;
    grid-template-columns: 1.7rem minmax(0, 1fr);
    gap: 0.55rem;
    margin: 0;
    padding: clamp(8px, 2vw, 11px) clamp(9px, 2.2vw, 12px);
    font-size: clamp(11px, 3vw, 14px);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.pfy-swipe-page .pfy-extra-template--template-07 .pfy-extra-template__faq-question {
    background: #f3f4f6;
    font-weight: 800;
}

.pfy-swipe-page .pfy-extra-template--template-07 .pfy-extra-template__faq-answer {
    background: #ffffff;
}

.pfy-swipe-page .pfy-extra-template--template-07 .pfy-extra-template__faq-question span,
.pfy-swipe-page .pfy-extra-template--template-07 .pfy-extra-template__faq-answer span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    color: #ffffff;
    background: #111827;
    font-weight: 800;
}

.pfy-swipe-page .pfy-extra-template--template-07 .pfy-extra-template__faq-answer span {
    color: #111827;
    background: #e5e7eb;
}

/* Public table preview: clipped in-slide, with a centered expand action. */
.pfy-swipe-page .pfy-extra-template--template-08 .pfy-extra-template__table-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
}

.pfy-swipe-page .pfy-extra-template--template-08 .pfy-extra-template__table {
    pointer-events: none;
}

.pfy-extra-template__table-expand {
    display: none;
}

.pfy-swipe-page .pfy-extra-template__table-expand {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    max-width: calc(100% - 28px);
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.7);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font: inherit;
    font-size: clamp(11px, 3.1vw, 13px);
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.pfy-extra-template__table-expand-icon {
    position: relative;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.pfy-extra-template__table-expand-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: center;
}

body.pfy-table-modal-open {
    overflow: hidden !important;
    touch-action: none;
}

.pfy-table-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    background: rgba(0, 0, 0, 0.78);
    overscroll-behavior: contain;
    touch-action: none;
}

.pfy-table-modal.is-open {
    display: flex;
}

.pfy-table-modal__dialog {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 1180px;
    max-height: calc(100svh - 36px);
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    touch-action: pan-x;
}

.pfy-table-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.88);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.pfy-table-modal__scroller {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 58px 18px 18px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    touch-action: pan-x;
}

.pfy-table-modal__scroller .pfy-extra-template__table {
    width: max-content;
    min-width: 720px;
    max-width: none;
    margin: auto;
    border-collapse: collapse;
    table-layout: fixed;
    color: #222222;
    background: #ffffff;
    font-size: clamp(12px, 1.6vw, 15px);
    line-height: 1.35;
}

.pfy-table-modal__scroller .pfy-extra-template__table th,
.pfy-table-modal__scroller .pfy-extra-template__table td {
    width: clamp(220px, 28vw, 320px);
    max-width: 320px;
    padding: clamp(8px, 1.4vw, 12px);
    border: 1px solid #e5e7eb;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.pfy-table-modal__scroller .pfy-extra-template__table th {
    background: #f3f4f6;
    font-weight: 800;
}

.pfy-table-modal__scroller .pfy-extra-template__table td {
    background: #ffffff;
}

@media (max-height: 620px) {
    .pfy-table-modal__scroller {
        padding-top: 50px;
        padding-bottom: 12px;
    }

    .pfy-table-modal__scroller .pfy-extra-template__table {
        font-size: 11px;
        line-height: 1.25;
    }

    .pfy-table-modal__scroller .pfy-extra-template__table th,
    .pfy-table-modal__scroller .pfy-extra-template__table td {
        padding: 6px 9px;
    }
}


/* Phase38 follow-up: preserve natural text height and refine public tables. */
.pfy-swipe-page .pfy-extra-template--template-06 .pfy-extra-template__body,
.pfy-swipe-page .pfy-extra-template--template-08 .pfy-extra-template__body--lead,
.pfy-swipe-page .pfy-extra-template--template-09 .pfy-extra-template__body--lead {
    max-height: none;
    overflow: visible;
}

.pfy-swipe-page .pfy-extra-template--template-06 .pfy-extra-template__text,
.pfy-swipe-page .pfy-extra-template--template-08 .pfy-extra-template__text,
.pfy-swipe-page .pfy-extra-template--template-09 .pfy-extra-template__text {
    height: auto;
    max-height: none;
    overflow: visible;
}

.pfy-swipe-page .pfy-extra-template--template-03 > .pfy-extra-template__inner {
    gap: clamp(10px, 2.8vw, 16px);
}

.pfy-swipe-page .pfy-extra-template--template-08 .pfy-extra-template__table-wrap {
    align-self: start;
    height: auto;
    max-height: 100%;
}

.pfy-swipe-page .pfy-extra-template--template-08 .pfy-extra-template__table {
    width: max-content;
    min-width: 420px;
    max-width: none;
    height: clamp(400px, 55vh, 500px);
}

.pfy-swipe-page .pfy-extra-template--template-08 .pfy-extra-template__table th,
.pfy-swipe-page .pfy-extra-template--template-08 .pfy-extra-template__table td {
    white-space: normal;
    overflow-wrap: anywhere;
}


.pfy-table-modal__scroller .pfy-extra-template__table {
    min-width: 420px;
}

.pfy-table-modal__scroller .pfy-extra-template__table th,
.pfy-table-modal__scroller .pfy-extra-template__table td {
    width: clamp(140px, 24vw, 220px);
    max-width: 220px;
}

.pfy-table-modal__scroller .pfy-extra-template__table--columns-2 th,
.pfy-table-modal__scroller .pfy-extra-template__table--columns-2 td {
    width: clamp(210px, 38vw, 320px);
    max-width: 320px;
}
