/* =============================================
   LINE画像リサイザー v4
   ============================================= */

/* hidden属性 */
.lr [hidden] {
    display: none !important;
}

/* --- 全体 --- */
.lr {
    width: 100%;
    max-width: 100% !important;
    padding: 20px 0;
    font-family: -apple-system, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.post_content .lr {
    max-width: 100% !important;
}

/* --- ヘッダー --- */
.lr-header {
    margin-bottom: 16px;
}

.lr-header__title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    line-height: 1.3 !important;
}

.lr-header__sub {
    font-size: 12px;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

/* --- タブ --- */
.lr-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.lr-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    color: #999;
    cursor: pointer;
    transition: all .2s;
}

.lr-tab:hover {
    color: #555;
}

.lr-tab.is-active {
    color: #06C755;
    border-bottom-color: #06C755;
}

/* --- パネル / カラム --- */

.lr-cols {
    display: flex;
    gap: 36px;
}

.lr-left {
    flex: 1;
    min-width: 0;
}

.lr-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* --- アップロード --- */
.lr-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 20px;
    border: 2px dashed #d0d0d0;
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    transition: all .2s;
    color: #aaa;
}

.lr-drop.is-over {
    border-color: #06C755;
    background: #f0faf4;
}

.lr-drop p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.lr-drop__circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    background-size: cover;
    background-position: center;
}

.lr-btn-upload {
    display: inline-block;
    padding: 7px 18px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #06C755;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.lr-btn-upload:hover {
    background: #05a847;
}

/* --- 画像情報 --- */
.lr-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 12px 0;
    background: #f0faf4;
    border-radius: 8px;
    cursor: pointer;
    border: 1.5px dashed #c4e6d0;
    transition: all .2s;
    position: relative;
}

.lr-info:hover {
    background: #e5f5ec;
    border-color: #06C755;
    box-shadow: 0 0 0 2px rgba(6, 199, 85, .1);
}

.lr-info.is-drag-over {
    border-color: #06C755;
    background: #dff5e7;
    box-shadow: 0 0 0 3px rgba(6, 199, 85, .15);
}

.lr-info__thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, .06);
}

.lr-info__thumb--round {
    border-radius: 50%;
}

.lr-info__meta {
    flex: 1;
    min-width: 0;
}

.lr-info__name {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lr-info__dims {
    margin: 2px 0 0;
    font-size: 10px;
    color: #888;
}

.lr-info__change {
    background: #06C755;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}

.lr-info__change:hover {
    background: #05a847;
}

/* --- 出力設定 --- */
.lr-output {
    padding: 12px 14px;
    margin-bottom: 16px;
    background: #f7f7f7;
    border-radius: 8px;
}

.lr-output__row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.lr-output__row:last-of-type {
    margin-bottom: 10px;
}

.lr-output__label {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    width: 32px;
    flex-shrink: 0;
}

.lr-output__slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    background: #ddd;
    border-radius: 2px;
    outline: none;
}

.lr-output__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #06C755;
    cursor: pointer;
}

.lr-output__val {
    font-size: 11px;
    font-weight: 600;
    color: #06C755;
    width: 34px;
    text-align: right;
}

.lr-format-btns {
    display: flex;
    gap: 4px;
}

.lr-format-btn {
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #888;
    cursor: pointer;
    transition: all .15s;
}

.lr-format-btn.is-active {
    border-color: #06C755;
    color: #06C755;
    background: #f0faf4;
}

.lr-format-rec {
    font-size: 9px;
    font-weight: 700;
    color: #000;
    margin-left: 4px;
}

.lr-output__size {
    font-size: 10px;
    color: #999;
    margin-left: auto;
}

.lr-output__size.is-warn {
    color: #e53e3e;
    font-weight: 600;
}

.lr-dl-btn {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: #06C755;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.lr-dl-btn:hover {
    background: #05a847;
}

/* --- ドラッグ式クロッパー --- */
.lr-cropper {
    margin-bottom: 16px;
}

.lr-cropper__title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.lr-cropper__hint {
    font-size: 10px;
    font-weight: 400;
    color: #999;
    margin-left: 6px;
}

.lr-cropper__viewport {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4/3;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.lr-cropper__viewport:active {
    cursor: grabbing;
}

.lr-cropper__viewport canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ドロップ可能エリアのハイライト */
.lr-left.is-drop-target::after {
    content: '画像をドロップして変更';
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 199, 85, .15);
    border: 3px dashed #06C755;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #06C755;
    z-index: 100;
    pointer-events: none;
}

.lr-cropper__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.lr-cropper__btn {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #666;
    cursor: pointer;
}

.lr-cropper__btn:hover {
    border-color: #06C755;
    color: #06C755;
}

.lr-cropper__zoom-label {
    font-size: 11px;
    font-weight: 600;
    color: #06C755;
}

/* --- プリセット --- */
.lr-presets {
    margin-top: 8px;
}

.lr-cat {
    margin-bottom: 10px;
}

h4.lr-cat__title {
    font-size: 10px !important;
    font-weight: 500 !important;
    color: #aaa !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    display: inline-block;
    letter-spacing: .05em;
    text-transform: none;
    line-height: 1 !important;
}

.lr-cat__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lr-cat__grid--4 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lr-preset {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px 6px;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
    width: 120px;
    flex-shrink: 0;
}

.lr-preset:hover {
    border-color: #bbb;
}

.lr-preset.is-active {
    border-color: #06C755;
    box-shadow: 0 0 0 2px rgba(6, 199, 85, .15);
}

.lr-preset__shape {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 38px;
}

.lr-preset__shape span {
    display: block;
    background: #d6ead9;
    border-radius: 2px;
    transition: background .15s;
}

.lr-preset.is-active .lr-preset__shape span {
    background: #06C755;
}

.lr-preset__name {
    font-size: 9px;
    font-weight: 600;
    color: #555;
    line-height: 1.3;
}

.lr-preset__dims {
    font-size: 8px;
    color: #aaa;
}

/* --- 注意書き --- */
.lr-note {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #555;
}

.lr-note p {
    margin: 0;
}

/* =============================================
   LINE スマホフレーム
   ============================================= */
.lr-phone {
    width: 360px;
    aspect-ratio: 9 / 19.5;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .06);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #B5D4E8 0%, #d0e4f0 40%, #dce9f2 100%);
    position: sticky;
    top: 60px;
}

.lr-phone *,
.lr-phone *::before,
.lr-phone *::after {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lr-phone *::-webkit-scrollbar {
    display: none;
}

.lr-phone--sm {
    width: 360px;
    position: static;
}

.lr-phone--white {
    background: #fff;
}

.lr-phone__status--dark {
    color: #111;
}

/* ステータスバー */
.lr-phone__status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px 2px;
    background: transparent;
    color: #111;
    font-size: 13px;
    font-weight: 600;
}

.lr-phone__status-icons {
    display: flex;
    gap: 4px;
    align-items: center;
    color: #111;
}

/* ヘッダー */
.lr-phone__header {
    display: flex;
    align-items: center;
    padding: 8px 12px 10px;
    background: transparent;
    color: #111;
    border-bottom: none;
}

.lr-phone__back {
    flex-shrink: 0;
    cursor: default;
    color: #111;
}

.lr-phone__name {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #111;
}

.lr-phone__header-icons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

/* チャットエリア */
.lr-phone__chat {
    flex: 1;
    min-height: 320px;
    background: linear-gradient(180deg, #B5D4E8 0%, #d0e4f0 40%, #dce9f2 100%);
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: hidden;
}

.lr-phone__date-badge {
    align-self: center;
    padding: 3px 12px;
    padding-right: 6px;
    background: rgba(0, 0, 0, .15);
    border-radius: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, .85);
}

/* メッセージ */
.lr-msg {
    display: flex;
    gap: 8px;
    align-self: flex-start;
    /* max-width: 85%; */
}

.lr-msg__avatar {
    flex-shrink: 0;
    padding-top: 2px;
}

.lr-msg__avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ccc;
    background-size: cover;
    background-position: center;
}

.lr-msg__body {
    min-width: 0;
}

.lr-msg__sender {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 4px;
}

/* リッチメッセージ */
.lr-msg__img-bubble {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.lr-msg__img-bubble canvas {
    display: block;
    width: 100%;
    height: auto;
}

/* カードタイプ */
.lr-msg__card {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lr-msg__card::-webkit-scrollbar {
    display: none;
}

.lr-card-item {
    flex: 0 0 200px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

.lr-card-item__img {
    width: 100%;
    overflow: hidden;
}

.lr-card-item__img canvas {
    display: block;
    width: 100%;
    height: auto;
}

.lr-card-item__body {
    padding: 10px 12px;
}

.lr-card-item__label {
    display: inline-block;
    padding: 1px 6px;
    margin-bottom: 4px;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: #ff6b6b;
    border-radius: 2px;
}

.lr-card-item__label--overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    margin: 0;
    font-size: 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.lr-card-item__title {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.lr-card-item__desc {
    margin: 0 0 6px;
    font-size: 10px;
    color: #888;
    line-height: 1.4;
}

.lr-card-item__price {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.lr-card-item__addr {
    margin: 0 0 6px;
    font-size: 10px;
    color: #888;
    line-height: 1.4;
}

.lr-card-item__action {
    display: block;
    text-align: center;
    padding: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #06C755;
    border-top: 1px solid #f0f0f0;
    text-decoration: none;
}

/* カードパーソン */
.lr-card-item.is-person {
    text-align: center;
    padding-top: 16px;
}

.lr-card-item.is-person .lr-card-item__img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 8px;
    overflow: hidden;
}

.lr-card-item.is-person .lr-card-item__img canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* リッチメニュー */
.lr-phone__richmenu {
    background: #e0e0e0;
    overflow: hidden;
}

.lr-phone__richmenu canvas {
    display: block;
    width: 100%;
    height: auto;
}

/* 入力バー */
.lr-phone__inputbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 8px;
    background: #fff;
    border-top: 1px solid #eee;
}

.lr-phone__input-field {
    flex: 1;
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 16px;
    font-size: 13px;
    color: #ccc;
}

/* --- プロフィールプレビュー --- */
/* トーク一覧ヘッダー */
.lr-tlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 4px;
    background: #fff;
}

.lr-tlist-header__title {
    font-size: 20px;
    font-weight: 800;
    color: #111;
}

.lr-tlist-header__icons {
    display: flex;
    gap: 14px;
    align-items: center;
}

/* 検索バー */
.lr-tlist-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 12px 8px;
    padding: 7px 10px;
    background: #f2f2f2;
    border-radius: 8px;
    font-size: 13px;
    color: #aaa;
}

.lr-tlist {
    background: #fff;
    padding: 0 8px;
    flex: 1;
    overflow-y: auto;
}

.lr-profile-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 6px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.lr-profile-list-item__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.lr-profile-list-item__meta {
    flex: 1;
    min-width: 0;
}

.lr-profile-list-item__name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.lr-profile-list-item__msg {
    margin: 2px 0 0;
    font-size: 11px;
    color: #999;
}

.lr-profile-list-item__time {
    font-size: 10px;
    color: #bbb;
    flex-shrink: 0;
}

/* サブタブ */
.lr-subtabs {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    white-space: nowrap;
}

.lr-subtab {
    flex: 1;
    background: none;
    border: none;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all .15s;
    text-align: center;
}

.lr-subtab:hover {
    color: #555;
}

.lr-subtab.is-active {
    color: #06C755;
    border-bottom-color: #06C755;
    font-weight: 700;
}

/* プロフィール画面 (LINE公式アカウント) */
.lr-prof {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.lr-prof__cover {
    height: 180px;
    background: linear-gradient(180deg, #7FB3D8 0%, #A8CCE4 100%);
    flex-shrink: 0;
    position: relative;
    background-size: cover;
    background-position: center;
}

.lr-prof__status-overlay {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px 0;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.lr-prof__status-overlay .lr-phone__status-icons {
    color: #fff;
}

.lr-prof__cover-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 14px;
}

.lr-prof__cover-right {
    display: flex;
    gap: 14px;
    align-items: center;
}

.lr-prof__center {
    text-align: center;
    padding: 0 16px 8px;
    position: relative;
    z-index: 1;
}

.lr-prof__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: none;
    margin: 0 auto -48px;
    background: #ddd;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    position: relative;
    z-index: 10;
    transform: translateY(-48px);
}

.lr-prof__name {
    margin: 10px 0 2px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.lr-prof__shield {
    flex-shrink: 0;
}

.lr-prof__friends {
    margin: 2px 0 6px;
    font-size: 13px;
    color: #aaa;
}

.lr-prof__desc-text {
    margin: 0;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

.lr-prof__actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 20px 16px 16px;
}

.lr-prof__action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.lr-prof__action-item span {
    font-size: 11px;
    color: #555;
}

.lr-prof__action-circle {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- レスポンシブ --- */
@media (max-width: 900px) {
    .lr-cols {
        flex-direction: column;
    }

    .lr-left {
        width: 100%;
    }

    .lr-phone {
        width: 100%;
        max-width: 375px;
        margin: 0 auto;
        position: static;
    }

    .lr-cat__grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* ⓘ アイコン */
.lr-cat__info {
    color: #bbb;
    text-decoration: none;
    font-size: 11px;
    margin-left: 2px;
    vertical-align: middle;
    transition: color .2s;
}

.lr-cat__info:hover {
    color: #06C755;
}

/* ガイドセクション */
.lr-guide {
    margin: 48px 0 0;
    padding: 0 0 48px;
}

.lr-guide h2 {
    scroll-margin-top: 80px;
}

.lr-guide__divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 32px 0;
}



.lr-guide__spec {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}

.lr-guide__spec th,
.lr-guide__spec td {
    padding: 8px 12px;
    border-bottom: 1px solid #e8e8e8;
    text-align: left;
    font-size: 13px;
}

.lr-guide__spec thead th {
    background: #f5f5f5;
    font-weight: 600;
    color: #555;
}

.lr-guide__spec tbody td {
    color: #444;
}

html {
    scroll-behavior: smooth;
}