/* ===========================
   テナントページ（/tenant/{id}）
=========================== */
.tenant-page {
    padding: 24px 20px 60px;
}

@media (max-width: 600px) {
    .tenant-page {
        padding: 20px 14px 50px;
    }
}

.tenant-page__banner {
    width: 100%;
    aspect-ratio: 800 / 200;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    margin-bottom: 20px;
}
.tenant-page__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tenant-page__banner-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    text-align: center;
    padding: 0 20px;
}

.tenant-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.tenant-page__logo {
    max-height: 60px;
    max-width: 240px;
    width: auto;
    height: auto;
    display: block;
}
.tenant-page__name {
    font-size: 22px;
    font-weight: 900;
    color: var(--color-text);
}

.tenant-page__sns {
    display: flex;
    gap: 10px;
    margin: -8px 0 20px;
}
.tenant-page__sns-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--color-border);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tenant-page__sns-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

.tenant-page__follow {
    background: #ffffff;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.tenant-page__follow:hover {
    background: var(--color-primary);
    color: #ffffff;
}
.tenant-page__follow.is-following {
    background: var(--color-primary);
    color: #ffffff;
}

.tenant-page__intro {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    padding: 20px;
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text);
}
.tenant-page__intro h3 {
    font-size: 16px;
    font-weight: 900;
    margin: 16px 0 8px;
}
.tenant-page__intro h4 {
    font-size: 14px;
    font-weight: 900;
    margin: 14px 0 6px;
}
.tenant-page__intro ul, .tenant-page__intro ol {
    padding-left: 20px;
    margin-bottom: 10px;
}
.tenant-page__intro p {
    margin-bottom: 10px;
}
.tenant-page__intro a {
    color: var(--color-primary);
    font-weight: 700;
}

.tenant-page__section {
    margin-bottom: 32px;
}
.tenant-page__section-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--color-text);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-gold);
}
.tenant-page__empty {
    font-size: 13px;
    color: var(--color-text-light);
}

.tenant-page__gacha-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.tenant-gacha-card {
    display: block;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}
.tenant-gacha-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.tenant-gacha-card__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.tenant-gacha-card__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
    padding: 10px 10px 2px;
}
.tenant-gacha-card__cost {
    font-size: 12px;
    color: var(--color-text-light);
    padding: 0 10px 10px;
}

.tenant-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
.tenant-video-card {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #111111;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.tenant-video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tenant-video-card__fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}
.tenant-video-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.tenant-video-card__play svg {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

.tenant-page__tokusho .tokusho-preview {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 16px 18px;
}
.tokusho-preview__row {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--color-border);
}
.tokusho-preview__row:last-child {
    border-bottom: none;
}
.tokusho-preview__label {
    flex: 0 0 140px;
    font-weight: 700;
    color: var(--color-text-light);
}

/* ===========================
   お問い合わせフォーム（2026-08-25追加）
=========================== */
.tenant-inquiry-notice {
    background: #f0fff4;
    border: 1px solid #a3e0b8;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #1a7a3c;
}
.tenant-inquiry-errors {
    background: #fff0f0;
    border: 1px solid #ffb3b3;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.tenant-inquiry-errors ul {
    margin: 0;
    padding-left: 18px;
}
.tenant-inquiry-errors li {
    font-size: 13px;
    color: #cc0000;
}
.tenant-inquiry-form__group {
    margin-bottom: 16px;
}
.tenant-inquiry-form__group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}
.tenant-inquiry-form__required {
    color: #cc0000;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}
.tenant-inquiry-form__group input[type="text"],
.tenant-inquiry-form__group input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
}
.tenant-inquiry-form__group textarea {
    width: 100%;
    min-height: 140px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}
.tenant-inquiry-form__submit {
    margin-top: 4px;
}
/* ハニーポット欄：人間には見えないがボットには見える位置に飛ばす（スパム対策） */
.tenant-inquiry-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 600px) {
    .tenant-page__name {
        font-size: 18px;
    }
    .tokusho-preview__row {
        flex-direction: column;
        gap: 2px;
    }
    .tokusho-preview__label {
        flex: none;
    }
}

/* ===========================
   テナントのプライバシーポリシー（/tenant/{id}/privacy）2026-11-06
   =========================== */
.tenant-privacy {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 16px 60px;
    min-width: 0;
}
.tenant-privacy__back {
    display: inline-block;
    font-size: 13px;
    color: var(--color-text-light);
    text-decoration: none;
    margin-bottom: 16px;
}
.tenant-privacy__back:hover {
    color: var(--color-primary);
}
.tenant-privacy__card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px 36px;
}
.tenant-privacy__title {
    font-size: 22px;
    font-weight: 900;
    color: var(--color-text);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-gold);
    margin-bottom: 8px;
}
.tenant-privacy__meta {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 28px;
}
.tenant-privacy__body {
    font-size: 14px;
    line-height: 1.9;
    color: var(--color-text);
    overflow-wrap: anywhere;
    word-break: normal;
}
.tenant-privacy__heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    margin: 28px 0 10px;
    padding-left: 10px;
    border-left: 4px solid var(--color-gold);
    line-height: 1.5;
}
.tenant-privacy__heading:first-child {
    margin-top: 0;
}
.tenant-privacy__text {
    margin: 0 0 8px;
}
.tenant-privacy__item {
    margin: 0 0 6px;
    padding-left: 1.5em;
    text-indent: -1.5em;
}
.tenant-privacy__footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    font-size: 12px;
    color: var(--color-text-light);
    line-height: 1.8;
}
.tenant-privacy__footer a {
    color: var(--color-primary);
}

@media (max-width: 600px) {
    .tenant-privacy {
        padding: 16px 12px 50px;
    }
    .tenant-privacy__card {
        padding: 22px 18px;
    }
    .tenant-privacy__title {
        font-size: 18px;
    }
}
