html {
    scroll-padding-top: 20px;
}

.page-private,
.page-private-detail {
    padding: var(--p-lg) 20px var(--p-xxxl);
    max-width: var(--main-width);
    margin-inline: auto;
}

.page-private {
    gap: 0;
}

.private-hero {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 60px);  
    height: 260px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    overflow: hidden;
    background-image: var(--hero-pc);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    @media (max-width: 768px) {
        left: auto;
        transform: none;
        width: 100%;
        height: 100px;
        background-image: var(--hero-sp);
    }
}

.private-hero-title {
    margin: 0;
    padding: 0 20px;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: var(--weight-bold, 700);
    font-size: 3rem;
    line-height: 1.45;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    white-space: nowrap;
    @media (max-width: 768px) {
        font-size: 2rem;
    }
    @media (max-width: 480px) {
        padding: 0 12px;
        font-size: 1.5rem;
    }
}

.private-breadcrumb {
    padding: 20px 0;
}

.private-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.6;
}

.private-breadcrumb-link {
    color: #1B7E8B;
    text-decoration: none;
}

.private-breadcrumb-link:hover {
    text-decoration: underline;
}

.private-breadcrumb-current {
    color: #000000;
}

.private-intro {
    padding: 60px 0 0;
    margin-bottom: var(--p-xxl);
    display: flex;
    justify-content: center;
  
}

.private-intro-text {
    max-width: 885px;
    margin: 0 auto;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: var(--weight-regular, 400);
    font-size: clamp(1rem, 3.5vw, 20px);
    line-height: 2.4;
    text-align: center;
    color: #383838;
}

.private-intro-line {
    display: block;
}

@media (max-width: 767px) {
    .private-intro-text {
        text-align: left;
    }
}

.private-intro-br {
    display: inline;
}

/* .private-intro-br {
    display: none;
}

@media (min-width: 768px) {
    .private-intro-br {
        display: inline;
    }
} */

.private-typenav {
    margin-bottom: 100px;
    background: #F1F5F7;
    border: 1px solid #CCCCCC;
    border-radius: 0;
    overflow: hidden;
}

.private-typenav-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
    white-space: nowrap;
}

.private-typenav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 25px 20px;
    cursor: pointer;
    color: #383838;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: clamp(16px, 4.5vw, 22px);
    line-height: 1.45;
}

.private-typenav-toggle-icon {
    width: 48px;
    height: 24px;
    flex: 0 0 auto;
    color: #767676;
    transition: transform 0.2s ease;
}
.private-typenav-checkbox:checked ~ .private-typenav-toggle .private-typenav-toggle-icon {
    transform: rotate(180deg);
}
.private-typenav-checkbox:focus-visible ~ .private-typenav-toggle {
    outline: 2px solid #0CA89A;
    outline-offset: -2px;
}

.private-typenav-list {
    display: none;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #DDEAE9;
}
.private-typenav-checkbox:checked ~ .private-typenav-list {
    display: flex;
}

.private-typenav-item {
    display: flex;
}
.private-typenav-item:not(:last-child) {
    border-bottom: 1px solid #DDEAE9;
}

.private-typenav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    color: #0CA89A;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.45;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.private-typenav-link:hover {
    opacity: 0.65;
}

.private-typenav-chevron {
    width: 12px;
    height: 8px;
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .private-typenav-list {
        background: #FFFFFF;
    }
    .private-typenav-item:not(:last-child) {
        border-bottom-color: #EEEEEE;
    }
    .private-typenav-link {
        transition: background 0.15s ease;
    }
    .private-typenav-link:active {
        background: #F0FBFA;
    }
    .private-typenav-chevron {
        transform: rotate(-90deg);
    }
}

@media (min-width: 769px) {
    .private-typenav {
        margin-bottom: var(--p-xxl);
        margin-top: var(--p-xxl);
        border: none;
        border-radius: 0;
        background: none;
        overflow: visible;
    }
    .private-typenav-checkbox,
    .private-typenav-toggle {
        display: none;
    }
    .private-typenav-list {
        display: flex;
        flex-direction: row;
        padding: 10px 0;
        border: 1px solid #DDEAE9;
        border-radius: 6px;
    }
    .private-typenav-item {
        flex: 1 1 0;
        justify-content: center;
    }
    .private-typenav-item:not(:last-child) {
        border-bottom: none;
        border-right: 1px solid #0CA89A;
    }
    .private-typenav-link {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 20px;
    }
}

.private-sections {
    display: flex;
    flex-direction: column;
    gap: 58px;
}
@media (max-width: 1024px) {
    .private-sections {
        gap: 48px;
    }
}
@media (max-width: 768px) {
    .private-sections {
        gap: 24px;
    }
}

.private-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    scroll-margin-top: 0;
}

.private-section-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #13A8B0;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: clamp(1.25rem, 4vw, 24px);
    line-height: 1.3;
    color: #383838;
}

.private-section-title::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: clamp(32px, 5vw, 40px);
    border-radius: 100px;
    background: linear-gradient(180deg, #13A8B0 0%, #6BBC9B 100%);
}

@media (max-width: 768px) {
    .private-section-title {
        padding-bottom: 13px;
        border-bottom-color: #0CA89A;
        /* match 会社概要 .section-title sizing */
        font-size: clamp(17px, 4.85vw, 34px);
    }
    .private-section-title::before {
        height: clamp(26px, 4.85vw, 44px);
    }
}

.pt-col {
    box-sizing: border-box;
}

.private-table-scroll {
    min-width: 0;
}

.private-table {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.private-table-header {
    display: none;
}

.private-table-row {
    position: relative;
    display: block;
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    border-radius: 8px;
    padding: 16px;
}

.private-table-row .pt-col {
    display: grid;
    grid-template-columns: 6em 1fr;
    align-items: baseline;
    gap: 8px;
    padding: 6px 0;
}

.private-table-row .pt-col-no {
    padding-top: 0;
}

.pt-value {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    color: #222222;
    word-break: break-word;
}

.pt-label {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    color: #383838;
    white-space: nowrap;
}

.pt-marks {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.pt-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 56px;
    height: 20px;
    padding: 0;
    border-radius: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 11.43px;
    line-height: 20px;
    color: #FFFFFF;
    white-space: nowrap;
}

.pt-mark-new {
    background: #E83235;
}

.pt-mark-updated {
    background: #4085BD;
}

.private-status-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 26px;
    padding-top: 53px;
}

.private-status-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.private-status-legend-text {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 28px;
    color: #222222;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .private-status-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-top: 32px;
    }

    .private-status-legend-text {
        white-space: normal;
    }
}

.private-table-row .pt-col-mark {
    position: absolute;
    top: 12px;
    right: 16px;
    display: block;
    padding: 0;
    text-align: right;
}
.private-table-row .pt-col-mark:empty {
    display: none;
}

.private-table-row .pt-col-action {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid #EEEEEE;
}

.private-table-row .pt-col-action .private-inquiry-btn {
    width: 100%;
    max-width: 280px;
    height: 44px;
    padding: 8px 14px;
    font-size: 15px;
}

.private-table-row .pt-col-action .private-inquiry-btn-icon {
    width: 20px;
    height: 20px;
}

@media (min-width: 768px) and (max-width: 1019px) {
    .private-table {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        align-items: stretch;
    }

    .private-table-row {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    /* On the taller of two side-by-side cards, margin-top:auto collapses to 0,
       so the button border sits tight against 備考. Add bottom padding to the
       last data row to keep the mobile-equivalent gap. */
    .private-table-row .pt-col-note {
        padding-bottom: 12px;
    }

    .private-table-row .pt-col-action {
        margin-top: auto;
    }
}

@media (min-width: 1020px) {
    .private-table {
        display: block;
    }

    .private-table-header,
    .private-table-row {
        display: grid;
        grid-template-columns: 76px 91px 128px 210px 104px 1fr 176px;
        width: 100%;
        align-items: center;
    }

    .private-table-header {
        background: #F1F5F7;
        border: 1px solid #CCCCCC;
        padding: 25px 17px;
    }

    .private-table-header .pt-col {
        display: block;
        font-family: "Noto Sans JP", sans-serif;
        font-weight: 700;
        font-size: 15px;
        line-height: 1.3;
        color: #383838;
        padding-right: 16px;
    }

    .private-table-row {
        background: #FFFFFF;
        border: 1px solid #CCCCCC;
        border-top: none;
        border-radius: 0;
        padding: 16px 17px 17px;
    }

    .private-table-row .pt-col {
        display: block;
        padding: 0 16px 0 0;
    }

    .private-table-row .pt-col-mark {
        position: static;
        text-align: left;
    }

    .private-table-row .pt-col-mark:empty {
        display: block;
    }

    .pt-value {
        font-size: 16px;
        line-height: 1.75;
    }

    .pt-label {
        display: none;
    }

    .private-table-row .pt-col-action {
        display: block;
        margin-top: 0;
        padding: 0;
        border-top: none;
    }

    .private-table-row .pt-col-action .private-inquiry-btn {
        width: 100%;
        max-width: none;
        height: 36px;
        padding: 0 14px;
        gap: 6px;
    }
}

.private-inquiry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    background: #0CA89A;
    color: #fff;
    border: 1px solid #0CA89A;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 900;
    line-height: 1.3;
    text-decoration: none;
    border-radius: 30px;
    white-space: nowrap;
    transition: all 0.3s ease;

    &:hover {
        background: #fff;
        color: #0CA89A;
    }
}

.private-inquiry-btn-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    display: block;
}

.private-list-empty {
    padding: var(--p-xl);
    text-align: center;
    color: var(--text-sub-color, #888);
    font-size: 0.9375rem;
}

.private-detail-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--p-xl);
    max-width: 680px;
}

.private-detail-info {
    background: #f7fbfb;
    border: 1px solid var(--border-color, #e6e6e6);
    border-top: 4px solid var(--main-color, #0CA89A);
    border-radius: 0 0 8px 8px;
    padding: var(--p-xl);
    display: flex;
    flex-direction: column;
    gap: var(--p-lg);
}

.private-detail-property {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--text-color, #333);
    background: #fff;
    border: 1px solid var(--border-color, #e6e6e6);
    border-radius: 6px;
    padding: var(--p-lg);
    word-break: break-word;
}

.private-detail-message {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-color, #333);
}

.private-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--main-color, #0CA89A);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    align-self: flex-start;
    transition: background 0.2s ease;

    &:hover {
        background: var(--color-uchiike-hover, #09877C);
    }
}

.private-detail-back {
    padding-top: var(--p-sm);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-size: 0.9375rem;
    color: var(--link-color, #427c95);
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }
}

@media (min-width: 768px) {
    .page-private,
    .page-private-detail {
        padding-top: 0;
        padding-bottom: var(--p-xxxl);
    }
}

.page-form .form .title.no-mark::after {
    display: none !important;
}

@media (min-width: 768px) {
    .page-form .form .contact-property-title,
    .page-form .form .contact-property-value {
        padding-block: var(--p-lg);
    }
}

.topInfo {
    font-size: 18px;
    background: #f8f8f8;
    padding: 20px;
    text-align: center;
    justify-content: center;
    display: flex;
    word-break: keep-all;
    overflow-wrap: break-word;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
