@layer components {

    /* ----- Missions Grid Layout ----- */
    .ag-missions-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        /* gap-3 */
    }

    /* ----- Mission Card Base ----- */
    .ag-mission-card {
        border-radius: 1rem;
        /* rounded-2xl */
        transition: all 0.2s ease-in-out;
        position: relative;
        overflow: hidden;
        text-align: left;
        display: flex;
        text-decoration: none;
    }

    /* ----- Mission Card: HOT (1st item) ----- */
    .ag-mission-card-hot {
        grid-column: span 2 / span 2;
        background: linear-gradient(135deg, #4f46e5, #9333ea);
        /* action-start to action-end */
        padding: 1.25rem;
        /* p-5 */
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 0 15px rgba(79, 70, 229, 0.3);
        /* shadow-glow */
    }

    .ag-mission-card-hot:active {
        transform: scale(0.98);
    }

    .ag-mission-hot-left {
        display: flex;
        align-items: center;
        gap: 1rem;
        /* gap-4 */
        z-index: 10;
    }

    .ag-mission-hot-icon-wrap {
        height: 3rem;
        /* h-12 */
        width: 3rem;
        /* w-12 */
        border-radius: 9999px;
        background-color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        /* shadow-lg */
        color: #9333ea;
        /* action-end */
        transition: transform 0.3s;
    }

    @media (hover: hover) {

        .ag-mission-card-hot:hover .ag-mission-hot-icon-wrap {
        transform: scale(1.1);
    }
    }

    .ag-mission-hot-icon-wrap .material-symbols-outlined {
        font-size: 1.5rem;
        /* text-2xl */
    }

    .ag-mission-hot-title-row {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        /* gap-2 */
        margin-bottom: 0.25rem;
        /* mb-1 */
    }

    .ag-mission-hot-title {
        color: white;
        font-weight: 700;
        font-size: 1.125rem;
        /* text-lg */
        line-height: 1.2;
    }

    .ag-mission-hot-badge {
        background-color: #f43f5e;
        /* accent-rose */
        color: white;
        font-size: 0.625rem;
        /* text-[10px] */
        font-weight: 700;
        padding: 0.125rem 0.375rem;
        /* px-1.5 py-0.5 */
        border-radius: 0.25rem;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        animation: ag-pulse-slow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }

    .ag-mission-hot-xp-row {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        /* gap-1 */
    }

    .ag-mission-hot-xp {
        color: #fbbf24;
        /* accent-amber */
        font-weight: 700;
        font-size: 0.875rem;
        /* text-sm */
    }

    .ag-mission-hot-arrow {
        color: rgba(255, 255, 255, 0.7);
        font-size: 1.5rem;
        /* text-2xl */
        z-index: 10;
        transition: color 0.2s;
    }

    @media (hover: hover) {

        .ag-mission-card-hot:hover .ag-mission-hot-arrow {
        color: white;
    }
    }

    .ag-mission-hot-bg-dec-1 {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 8rem;
        /* w-32 */
        background-color: rgba(255, 255, 255, 0.1);
        transform: skewX(12deg) translateX(2.5rem);
        pointer-events: none;
    }

    .ag-mission-hot-bg-dec-2 {
        position: absolute;
        left: 0;
        bottom: 0;
        height: 5rem;
        /* h-20 */
        width: 5rem;
        /* w-20 */
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 9999px;
        filter: blur(24px);
        /* blur-2xl */
        pointer-events: none;
    }

    /* ----- Mission Card: SUB (2nd+ items) ----- */
    .ag-mission-card-sub {
        grid-column: span 1 / span 1;
        background-color: white;
        border: 1px solid #f1f5f9;
        /* border-slate-100 */
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        /* shadow-sm */
        padding: 1rem;
        /* p-4 */
        flex-direction: column;
        gap: 0.75rem;
        /* gap-3 */
    }

    @media (hover: hover) {

        .ag-mission-card-sub:hover {
        border-color: #cbd5e1;
        /* hover:border-slate-300 */
    }
    }

    .ag-mission-card-sub-wide {
        grid-column: span 2 / span 2;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem;
        /* p-3 */
    }

    .ag-mission-sub-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
    }

    .ag-mission-sub-icon-wrap {
        height: 2.25rem;
        /* h-9 */
        width: 2.25rem;
        /* w-9 */
        border-radius: 9999px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        flex-shrink: 0;
    }

    .ag-mission-sub-xp-badge {
        font-size: 0.625rem;
        /* text-[10px] */
        font-weight: 700;
        color: #64748b;
        /* text-slate-500 */
        background-color: #f1f5f9;
        /* bg-slate-100 */
        padding: 0.25rem 0.5rem;
        /* px-2 py-1 */
        border-radius: 0.375rem;
        /* rounded-md */
        border: 1px solid #e2e8f0;
        /* border-slate-200 */
        white-space: nowrap;
    }

    .ag-mission-sub-xp-badge.ag-xp-highlight {
        color: white;
        background-color: #4f46e5;
        border-color: transparent;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        /* shadow-sm */
    }

    .ag-mission-sub-title {
        font-size: 0.875rem;
        /* text-sm */
        font-weight: 700;
        color: #0f172a;
        /* text-primary */
        line-height: 1.25;
        margin-top: 0.25rem;
    }

    .ag-mission-sub-go-btn {
        margin-top: auto;
        width: 100%;
        padding: 0.5rem 0;
        /* py-2 */
        background-color: #f1f5f9;
        /* bg-slate-100 */
        border-radius: 0.5rem;
        /* rounded-lg */
        font-size: 0.75rem;
        /* text-xs */
        color: #0f172a;
        /* text-primary */
        font-weight: 700;
        text-align: center;
        transition: background-color 0.2s;
        border: none;
        cursor: pointer;
        display: block;
    }

    @media (hover: hover) {

        .ag-mission-sub-go-btn:hover {
        background-color: #e2e8f0;
        /* hover:bg-slate-200 */
    }
    }

    .ag-mission-sub-go-btn.ag-btn-disabled {
        background-color: #e2e8f0;
        color: #94a3b8;
    }

    /* ----- Catalog Grid Layout ----- */
    .ag-catalog-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        /* gap-3 */
        padding-left: 1rem;
        /* px-4 */
        padding-right: 1rem;
    }

    /* ----- Catalog Item Card ----- */
    .ag-catalog-card {
        grid-column: span 1 / span 1;
        background-color: white;
        border-radius: 1rem;
        display: flex;
        flex-direction: column;
        height: 11rem;
        /* h-44 */
        position: relative;
        overflow: hidden;
        border: 1px solid #f1f5f9;
        /* border-slate-100 */
        box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
        /* shadow-sm */
        transition: all 0.3s ease;
        text-decoration: none;
    }

    @media (hover: hover) {

        .ag-catalog-card:hover {
        border-color: #fde68a;
        /* hover:border-amber-200 */
    }
    }

    .ag-card-line {
        height: 0.25rem;
        width: 100%;
        flex-shrink: 0;
        background-image: linear-gradient(to right, #fbbf24, #f59e0b, #d97706);
    }

    .ag-catalog-card-inner {
        padding: 0.625rem;
        /* p-2.5 */
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .ag-catalog-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0.5rem;
        flex-shrink: 0;
    }

    .ag-catalog-card-stats {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .ag-catalog-card-stat {
        display: flex;
        align-items: center;
        gap: 0.125rem;
        font-size: 0.625rem;
        /* text-[10px] */
        font-weight: 700;
        color: #94a3b8;
        /* text-slate-400 */
    }

    .ag-catalog-card-stat .material-symbols-outlined {
        font-size: 0.75rem;
        /* text-[12px] */
    }

    .ag-catalog-card-image-wrap {
        flex: 1;
        border-radius: 0.75rem;
        /* rounded-xl */
        background-color: #f1f5f9;
        /* bg-slate-100 */
        background-size: cover;
        background-position: center;
        position: relative;
        overflow: hidden;
        box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
        /* shadow-inner */
        transition: transform 0.5s ease;
    }

    @media (hover: hover) {

        .ag-catalog-card:hover .ag-catalog-card-image-wrap {
        transform: scale(1.02);
    }
    }

    .ag-catalog-card-overlay {
        position: absolute;
        inset: 0;
        background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2), transparent);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 0.625rem;
        /* p-2.5 */
    }

    .ag-catalog-card-title {
        color: white;
        font-weight: 700;
        font-size: 0.75rem;
        /* text-xs */
        line-height: 1.25;
        letter-spacing: 0.025em;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        /* drop-shadow-md */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .ag-catalog-card-sub {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.5625rem;
        /* text-[9px] */
        margin-top: 0.125rem;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* ----- Add Button Card ----- */
    .ag-catalog-add-btn {
        grid-column: span 1 / span 1;
        background-color: rgba(254, 242, 242, 0.4);
        /* bg-brandcolor-50/40 */
        border-radius: 1rem;
        border: 2px dashed var(--color-brandcolor-300);
        /* border-brandcolor-300 */
        padding: 0.75rem;
        /* p-3 */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 11rem;
        /* h-44 */
        position: relative;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    @media (hover: hover) {

        .ag-catalog-add-btn:hover {
        border-color: var(--color-brandcolor-500);
        /* hover:border-brandcolor-500 */
        background-color: var(--color-brandcolor-50);
        /* hover:bg-brandcolor-50 */
    }
    }

    .ag-catalog-add-badge {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        background-color: #f43f5e;
        /* bg-rose-500 */
        color: white;
        font-size: 0.5625rem;
        /* text-[9px] */
        font-weight: 700;
        padding: 0.125rem 0.375rem;
        /* px-1.5 py-0.5 */
        border-radius: 0.25rem;
        box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
        /* shadow-sm */
        animation: ag-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }

    @keyframes ag-pulse {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: .5;
        }
    }

    .ag-catalog-add-icon-wrap {
        height: 2.75rem;
        /* h-11 */
        width: 2.75rem;
        /* w-11 */
        border-radius: 9999px;
        background-color: white;
        box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
        /* shadow-sm */
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.5rem;
        color: var(--color-brandcolor-500);
        /* text-brandcolor-500 */
        border: 1px solid var(--color-brandcolor-50);
        /* border-brandcolor-50 */
        transition: all 0.3s ease;
    }

    @media (hover: hover) {

        .ag-catalog-add-btn:hover .ag-catalog-add-icon-wrap {
        transform: scale(1.1);
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
        /* shadow-md */
    }
    }

    .ag-add-title {
        font-size: 0.75rem;
        /* text-xs */
        font-weight: 900;
        color: #1e293b;
        /* text-slate-800 */
        margin-bottom: 0.5rem;
        line-height: 1.25;
        transition: color 0.3s ease;
    }

    @media (hover: hover) {

        .ag-catalog-add-btn:hover .ag-add-title {
        color: var(--color-brandcolor-500);
        /* text-brandcolor-500 */
    }
    }

    .ag-catalog-add-xp {
        background-color: var(--color-brandcolor-500);
        /* bg-brandcolor-500 */
        color: white;
        font-size: 0.625rem;
        /* text-[10px] */
        font-weight: 900;
        padding: 0.25rem 0.625rem;
        /* px-2.5 py-1 */
        border-radius: 9999px;
        box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
        /* shadow-sm */
        display: flex;
        align-items: center;
        gap: 0.25rem;
        /* gap-1 */
        transition: background-color 0.3s ease;
    }

    @media (hover: hover) {

        .ag-catalog-add-btn:hover .ag-catalog-add-xp {
        background-color: var(--color-brandcolor-700);
        /* bg-brandcolor-700 */
    }
    }

    /* ----- Photo Upload Area (Sake Registration) ----- */
    .ag-photoUpload {
        position: relative;
        width: calc(100% - 2rem);
        margin: 1rem auto;
        aspect-ratio: 16 / 10;
        background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
        border: 2px dashed var(--color-brandcolor-300);
        border-radius: var(--radius-xl);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        overflow: hidden;
        transition: background-color 0.2s;
    }

    .ag-photoUpload:active {
        background-color: #ffecec;
    }

    .ag-photoUpload_icon {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--color-brandcolor-500);
        border-radius: var(--radius-lg);
        color: #fff;
        margin-bottom: 0.5rem;
    }

    .ag-photoUpload_icon .material-symbols-outlined {
        font-size: 28px;
    }

    .ag-photoUpload_txt {
        font-size: var(--text-sm);
        font-weight: 700;
        color: var(--color-brandcolor-500);
    }

    .ag-photoUpload_preview {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: none;
        background-color: var(--color-slate-100);
    }

    .ag-photoUpload_preview img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .ag-photoUpload_preview.is_visible {
        display: block;
    }

    .ag-photoUpload_clearBtn {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background-color: var(--color-slate-600);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 3;
        border: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .ag-photoUpload_clearBtn .material-symbols-outlined {
        font-size: 16px;
    }


    /* ----- Sake Type Select (Full Width) ----- */
    #sake_category {
        width: 100%;
    }

    /* ===================================================================
       酒図鑑 Masonry Feed — 2026-04-09 リニューアル
       =================================================================== */

    /* ----- Masonry Grid Layout (#755: column-count → flex 2カラム固定) ----- */
    /* column-count はアイテム追加のたびに全列をリバランスするため廃止。         */
    /* flex で左右独立カラムにすることで、追加時に既存の並び順が変わらない。     */
    .masonry-grid {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .masonry-col {
        flex: 1;
        min-width: 0;
    }

    @media (min-width: 768px) {
        .masonry-grid {
            max-width: 960px;
            margin-left: auto;
            margin-right: auto;
            gap: 1rem;
        }
    }

    .masonry-item {
        margin-bottom: 0.75rem;
        break-inside: avoid; /* fallback */
    }

    /* ----- Catalog Card (Sake) ----- */
    .catalog-card {
        display: block;
        background: #ffffff;
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0px 10px 30px rgba(91, 64, 61, 0.06);
        transition: transform 0.3s ease;
        text-decoration: none;
        color: inherit;
    }

    @media (hover: hover) {

        .catalog-card:hover {
        transform: translateY(-4px);
    }
    }

    .catalog-card:active {
        transform: scale(0.95);
        transition-duration: 0.15s;
    }

    .catalog-card-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    @media (hover: hover) {

        .catalog-card:hover .catalog-card-img {
        transform: scale(1.1);
    }
    }

    .catalog-card-body {
        padding: 0.875rem;
    }

    .catalog-card-meta {
        margin-bottom: 0.375rem;
    }

    .catalog-card-title-row {
        display: flex;
        align-items: baseline;
        gap: 0.375rem;
        margin-bottom: 0.125rem;
    }

    .catalog-card-type {
        font-size: 0.625rem;
        color: var(--sq-brand);
        font-weight: 700;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .catalog-card-name {
        font-weight: 700;
        font-size: 0.875rem;
        color: var(--sq-text);
        line-height: 1.25;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .catalog-card-brewery-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 0.625rem;
        color: var(--sq-text-sub);
        font-weight: 500;
    }

    .catalog-card-brewery {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .catalog-card-region {
        flex-shrink: 0;
        margin-left: 0.5rem;
    }

    .catalog-card-note {
        font-size: 0.75rem;
        color: var(--sq-text-sub);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.5;
        margin-bottom: 0.625rem;
    }

    .catalog-card-stats {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: var(--sq-text-sub);
    }

    .catalog-card-stat {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        font-size: 0.75rem;
        font-weight: 700;
    }

    /* ----- Like Button (Glassmorphism) ----- */
    .sake-like-btn {
        width: 2rem;
        height: 2rem;
        border-radius: 9999px;
        background: rgba(255, 255, 255, 0.8);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--sq-brand);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        border: none;
        cursor: pointer;
        transition: transform 0.15s;
    }

    .sake-like-btn:active {
        transform: scale(0.9);
    }

    .sake-like-btn.is-liked {
        color: var(--sq-brand);
    }

    .sake-like-btn:not(.is-liked) {
        color: var(--sq-text-sub);
    }

    /* ----- Catalog CTA Panel (図鑑に銘柄登録しよう) ----- */
    .catalog-cta-panel {
        display: block;
        position: relative;
        border-radius: 1rem;
        overflow: hidden;
        background: linear-gradient(135deg, var(--sq-brand) 0%, var(--sq-text) 60%);
        box-shadow: 0px 10px 30px rgba(91, 64, 61, 0.12);
        transition: transform 0.3s ease;
        cursor: pointer;
        text-decoration: none;
        color: white;
    }

    @media (hover: hover) {

        .catalog-cta-panel:hover {
        transform: translateY(-4px);
    }
    }

    .catalog-cta-overlay {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 1.25rem;
    }

    .catalog-cta-title {
        font-size: 1.25rem;
        font-weight: 900;
        line-height: 1.3;
        margin-bottom: 0.375rem;
        color: white;
    }

    .catalog-cta-desc {
        font-size: 0.6875rem;
        color: rgba(255, 255, 255, 0.75);
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }

    .catalog-cta-btn {
        display: inline-block;
        background: var(--sq-brand);
        color: white;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 0.5rem 1.25rem;
        border-radius: 9999px;
        transition: background 0.15s;
    }

    .catalog-cta-panel:active .catalog-cta-btn {
        background: #8a0310;
    }

    /* ----- Shop Product Card ----- */
    .shop-card {
        display: block;
        background: #ffffff;
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0px 10px 30px rgba(91, 64, 61, 0.06);
        transition: transform 0.3s ease;
        cursor: pointer;
        text-decoration: none;
        color: inherit;
    }

    @media (hover: hover) {

        .shop-card:hover {
        transform: translateY(-4px);
    }
    }

    .shop-card-badge {
        position: absolute;
        top: 0.75rem;
        left: 0.75rem;
        background-color: var(--sq-brand);
        color: white;
        font-size: 0.625rem;
        font-weight: 700;
        padding: 0.25rem 0.5rem;
        border-radius: 9999px;
        text-transform: uppercase;
        letter-spacing: -0.05em;
    }

    .shop-card-badge--premium {
        background-color: #b69e3f;
    }

    .shop-card-badge--new {
        background-color: #059669;
    }

    .shop-card-gradient {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
        padding: 1rem;
    }

    .shop-card-price-float {
        position: absolute;
        bottom: 0.75rem;
        right: 0.75rem;
        background: white;
        padding: 0.25rem 0.75rem;
        border-radius: 9999px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .shop-card-footer {
        padding: 1rem;
        background: var(--sq-bg);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* ----- Subscription CTA Panel ----- */
    .sub-panel {
        background-color: var(--sq-brand-lt);
        border-radius: 1rem;
        padding: 1rem 1.25rem;
        color: #fff2f0;
        position: relative;
        overflow: hidden;
        box-shadow: 0px 10px 30px rgba(178, 4, 17, 0.15);
        transition: transform 0.3s ease;
    }

    @media (hover: hover) {

        .sub-panel:hover {
        transform: scale(1.02);
    }
    }

    .sub-panel-decoration {
        position: absolute;
        right: -1rem;
        top: -1rem;
        opacity: 0.1;
        transform: rotate(12deg);
    }

    .sub-panel-decoration .material-symbols-outlined {
        font-size: 120px;
    }

    .sub-panel-badge {
        display: inline-block;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        font-size: 0.6rem;
        font-weight: 700;
        padding: 0.2rem 0.5rem;
        border-radius: 9999px;
        margin-bottom: 0.5rem;
    }

    .sub-panel-title {
        font-size: 1.125rem;
        font-weight: 900;
        line-height: 1.3;
        margin-bottom: 0.375rem;
        white-space: nowrap;
    }

    .sub-panel-desc {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.75rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .sub-panel-cta {
        display: block;
        width: 100%;
        background: white;
        color: var(--sq-brand);
        font-weight: 700;
        padding: 0.75rem;
        border-radius: 9999px;
        border: none;
        cursor: pointer;
        font-size: 0.875rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        transition: all 0.15s;
        text-align: center;
        text-decoration: none;
    }

    .sub-panel-cta:active {
        transform: scale(0.95);
    }

    /* ----- Quest Panel ----- */
    .quest-panel {
        position: relative;
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0px 10px 30px rgba(91, 64, 61, 0.06);
        cursor: pointer;
    }

    .quest-panel-img {
        width: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    @media (hover: hover) {

        .quest-panel:hover .quest-panel-img {
        transform: scale(1.1);
    }
    }

    .quest-panel-gradient {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(178, 4, 17, 0.9), rgba(178, 4, 17, 0.3), transparent);
    }

    .quest-panel-content {
        position: absolute;
        bottom: 0;
        left: 0;
        padding: 1.25rem;
        width: 100%;
    }

    .quest-panel-badge {
        display: inline-block;
        background-color: #b69e3f;
        color: white;
        font-size: 0.625rem;
        font-weight: 700;
        padding: 0.25rem 0.5rem;
        border-radius: 0.125rem;
        margin-bottom: 0.5rem;
    }

    .quest-panel-title {
        color: white;
        font-weight: 900;
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .quest-panel-meta {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .quest-panel-limited {
        background: rgba(255, 255, 255, 0.2);
        padding: 0.125rem 0.5rem;
        border-radius: 0.25rem;
        margin-left: 0.5rem;
    }

    .quest-panel-cta {
        display: block;
        width: 100%;
        background: rgba(255, 255, 255, 0.2);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 0.5rem;
        border-radius: 9999px;
        font-size: 0.75rem;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.2s;
        text-align: center;
        text-decoration: none;
    }

    @media (hover: hover) {

        .quest-panel-cta:hover {
        background: rgba(255, 255, 255, 0.3);
    }
    }

    /* ----- Article Card ----- */
    .article-card {
        border-radius: 1rem;
        padding: 1.25rem;
    }

    .article-card--tip {
        background-color: var(--sq-border);
        border: 1px solid rgba(228, 190, 186, 0.1);
    }

    .article-card--trivia {
        background-color: #fcf7ee;
        border: 1px solid rgba(228, 190, 186, 0.3);
    }

    .article-card--news {
        background-color: #eff6ff;
        border: 1px solid rgba(43, 70, 202, 0.1);
    }

    .article-card--events {
        background-color: #fefce8;
        border: 1px solid rgba(182, 158, 63, 0.2);
    }

    .article-card-category {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .article-card-category-label {
        font-weight: 700;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    .article-card-title {
        font-size: 1.125rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .article-card-excerpt {
        font-size: 0.75rem;
        color: var(--sq-text-sub);
        line-height: 1.625;
    }

    .article-card-quote {
        font-size: 0.875rem;
        font-weight: 500;
        font-style: italic;
        line-height: 1.625;
    }

    /* Article Card with Image */
    .article-card-img {
        display: block;
        background: #ffffff;
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0px 10px 30px rgba(91, 64, 61, 0.06);
        text-decoration: none;
        color: inherit;
    }

    .article-card-img-image {
        width: 100%;
        aspect-ratio: 16/9;
        object-fit: cover;
    }

    .article-card-img-body {
        padding: 1rem;
    }

    /* ----- Page Title ----- */
    .catalog-page-title {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0 0.25rem;
        margin-bottom: 0.75rem;
    }

    .catalog-page-title-icon {
        background: var(--sq-brand);
        color: white;
        padding: 0.5rem;
        border-radius: 0.75rem;
        box-shadow: 0 4px 12px rgba(178, 4, 17, 0.25);
        transform: rotate(3deg);
        flex-shrink: 0;
    }

    .catalog-page-title-text {
        font-size: 1.75rem;
        font-weight: 900;
        color: var(--sq-text);
        letter-spacing: -0.02em;
        line-height: 1.1;
    }

    .catalog-page-title-sub {
        color: var(--sq-text-sub);
        font-size: 0.6875rem;
        font-weight: 500;
        margin-top: 0.125rem;
    }

    /* ----- Statistics Header ----- */
    .catalog-stats {
        background: var(--sq-bg);
        border-radius: 1rem;
        padding: 0.75rem;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        text-align: center;
        border: 1px solid rgba(228, 190, 186, 0.2);
        box-shadow: 0 2px 8px rgba(91, 64, 61, 0.04);
    }

    .catalog-stats-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.375rem 0.25rem;
    }

    .catalog-stats-icon {
        color: var(--sq-brand);
        margin-bottom: 0.25rem;
    }

    .catalog-stats-label {
        color: var(--sq-text-sub);
        font-size: 0.5625rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 0.125rem;
    }

    .catalog-stats-value {
        color: var(--sq-text);
        font-weight: 900;
        font-size: 1.125rem;
        line-height: 1;
    }

    .catalog-stats-divider {
        border-left: 1px solid rgba(228, 190, 186, 0.2);
        border-right: 1px solid rgba(228, 190, 186, 0.2);
    }

    /* ----- Search Bar (Masonry Style) ----- */
    .catalog-search-bar {
        display: flex;
        align-items: center;
        position: relative;
    }

    .catalog-search-input {
        display: block;
        width: 100%;
        background: var(--sq-bg);
        border: none;
        border-radius: 9999px;
        padding: 1rem 3.5rem 1rem 3rem;
        color: var(--sq-text);
        font-size: 0.875rem;
        font-weight: 500;
        outline: none;
        transition: box-shadow 0.2s;
    }

    .catalog-search-input::placeholder {
        color: var(--sq-text-sub);
    }

    .catalog-search-input:focus {
        box-shadow: 0 0 0 2px rgba(178, 4, 17, 0.2);
    }

    .catalog-search-icon {
        position: absolute;
        left: 1rem;
        color: var(--sq-text-sub);
        pointer-events: none;
    }

    .catalog-filter-btn {
        position: absolute;
        right: 0.5rem;
        background: var(--sq-brand);
        color: white;
        border: none;
        border-radius: 9999px;
        width: 2.25rem;
        height: 2.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s;
    }

    @media (hover: hover) {

        .catalog-filter-btn:hover {
        background: rgba(178, 4, 17, 0.9);
    }
    }

    /* ============================================================

銘柄登録フォーム — 2026-04-13 リニューアル (#38)
       =================================================================== */

    /* ----- Photo Upload: Viewfinder Style ----- */
    .sake-register-photo {
        position: relative;
        width: calc(100% - 2rem);
        margin: 0 auto;
        aspect-ratio: 3 / 4;
        background: #ffffff;
        border-radius: 2rem;
        border: 1px solid rgba(228, 190, 186, 0.3);
        box-shadow: 0 1px 3px rgba(91, 64, 61, 0.06);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        overflow: hidden;
        padding: 1.5rem;
        transition: box-shadow 0.3s;
    }

    @media (hover: hover) {

        .sake-register-photo:hover {
        box-shadow: 0 4px 12px rgba(91, 64, 61, 0.12);
    }
    }

    /* Viewfinder dashed border */
    .sake-register-photo__frame {
        position: absolute;
        inset: 1.25rem;
        border: 2px dashed rgba(228, 190, 186, 0.4);
        border-radius: 1rem;
        pointer-events: none;
    }

    /* Corner marks */
    .sake-register-photo__corner {
        position: absolute;
        width: 2.5rem;
        height: 2.5rem;
        pointer-events: none;
    }

    .sake-register-photo__corner--tl {
        top: 2rem;
        left: 2rem;
        border-top: 4px solid rgba(178, 4, 17, 0.4);
        border-left: 4px solid rgba(178, 4, 17, 0.4);
        border-top-left-radius: 0.75rem;
    }

    .sake-register-photo__corner--tr {
        top: 2rem;
        right: 2rem;
        border-top: 4px solid rgba(178, 4, 17, 0.4);
        border-right: 4px solid rgba(178, 4, 17, 0.4);
        border-top-right-radius: 0.75rem;
    }

    .sake-register-photo__corner--bl {
        bottom: 2rem;
        left: 2rem;
        border-bottom: 4px solid rgba(178, 4, 17, 0.4);
        border-left: 4px solid rgba(178, 4, 17, 0.4);
        border-bottom-left-radius: 0.75rem;
    }

    .sake-register-photo__corner--br {
        bottom: 2rem;
        right: 2rem;
        border-bottom: 4px solid rgba(178, 4, 17, 0.4);
        border-right: 4px solid rgba(178, 4, 17, 0.4);
        border-bottom-right-radius: 0.75rem;
    }

    /* Camera button */
    .sake-register-photo__btn {
        position: relative;
        background: var(--sq-brand);
        color: #fff;
        width: 4rem;
        height: 4rem;
        border-radius: 9999px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(178, 4, 17, 0.3);
        transition: transform 0.15s;
        z-index: 2;
    }

    .sake-register-photo__btn:active {
        transform: scale(0.95);
    }

    .sake-register-photo__btn .material-symbols-outlined {
        font-size: 2rem;
    }

    /* Ping animation ring */
    .sake-register-photo__ping {
        position: absolute;
        inset: 0;
        background: rgba(178, 4, 17, 0.2);
        border-radius: 9999px;
        animation: sake-register-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    }

    @keyframes sake-register-ping {
        0% {
            transform: scale(1);
            opacity: 0.75;
        }
        75%, 100% {
            transform: scale(1.8);
            opacity: 0;
        }
    }

    /* Tips badge */
    .sake-register-photo__tips {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        background: var(--sq-bg);
        padding: 0.375rem 1rem;
        border-radius: 9999px;
        border: 1px solid rgba(228, 190, 186, 0.2);
        font-size: 0.6875rem;
        font-weight: 700;
        color: var(--sq-brand);
        letter-spacing: 0.05em;
        z-index: 2;
    }

    .sake-register-photo__tips .material-symbols-outlined {
        font-size: 1rem;
    }

    .sake-register-photo__guide {
        font-size: 0.6875rem;
        color: rgba(91, 64, 61, 0.8);
        text-align: center;
        line-height: 1.6;
        font-weight: 500;
        z-index: 2;
    }

    .sake-register-photo__guide strong {
        font-weight: 700;
        color: var(--sq-brand);
    }

    /* Preview overlay */
    .sake-register-photo__preview {
        position: absolute;
        inset: 0;
        z-index: 5;
        display: none;
        background: #f1f5f9;
        border-radius: 2rem;
        overflow: hidden;
    }

    .sake-register-photo__preview.is_visible {
        display: block;
    }

    .sake-register-photo__preview img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .sake-register-photo__clear {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 2rem;
        height: 2rem;
        border-radius: 9999px;
        background: rgba(0, 0, 0, 0.5);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 6;
        border: none;
        backdrop-filter: blur(8px);
    }

    .sake-register-photo__clear .material-symbols-outlined {
        font-size: 1.125rem;
    }

    /* ----- Unified Form Fields ----- */
    .sake-register-section {
        padding: 0 1.5rem;
    }

    .sake-register-label {
        display: block;
        font-size: 0.6875rem;
        font-weight: 700;
        color: rgba(91, 64, 61, 0.7);
        margin-left: 0.5rem;
        margin-bottom: 0.5rem;
        letter-spacing: 0.1em;
    }

    .sake-register-label em {
        font-style: normal;
        color: var(--sq-brand);
        margin-left: 0.25rem;
    }

    .sake-register-field {
        width: 100%;
        background: #ffffff;
        border: none;
        box-shadow: inset 0 0 0 1px rgba(228, 190, 186, 0.2);
        border-radius: 1rem;
        height: 3.5rem;
        padding: 0 1.25rem;
        font-size: 0.9375rem;
        color: var(--sq-text);
        outline: none;
        transition: box-shadow 0.2s;
        appearance: none;
        -webkit-appearance: none;
    }

    .sake-register-field:focus {
        box-shadow: inset 0 0 0 2px rgba(178, 4, 17, 0.4);
    }

    .sake-register-field::placeholder {
        color: rgba(91, 64, 61, 0.35);
    }

    .sake-register-field--select {
        cursor: pointer;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235b403d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        padding-right: 2.5rem;
    }

    .sake-register-textarea {
        width: 100%;
        background: #ffffff;
        border: none;
        box-shadow: inset 0 0 0 1px rgba(228, 190, 186, 0.2);
        border-radius: 1.5rem;
        padding: 1.25rem;
        font-size: 0.9375rem;
        color: var(--sq-text);
        outline: none;
        resize: none;
        transition: box-shadow 0.2s;
        font-family: inherit;
    }

    .sake-register-textarea:focus {
        box-shadow: inset 0 0 0 2px rgba(178, 4, 17, 0.4);
    }

    .sake-register-textarea::placeholder {
        color: rgba(91, 64, 61, 0.35);
    }

    .sake-register-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    @media (max-width: 480px) {
        .sake-register-grid--responsive {
            grid-template-columns: 1fr;
        }
    }

    .sake-register-field-group {
        margin-bottom: 1.5rem;
    }

    .sake-register-error {
        display: block;
        font-size: 0.6875rem;
        color: var(--sq-brand);
        margin-top: 0.375rem;
        margin-left: 0.5rem;
        font-weight: 500;
    }

    /* Icon inside field */
    .sake-register-field-icon {
        position: relative;
    }

    .sake-register-field-icon .material-symbols-outlined {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(91, 64, 61, 0.5);
        font-size: 1.25rem;
        pointer-events: none;
    }

    /* Brewery free-input toggle */
    .sake-register-brewery-free {
        display: none;
    }

    .sake-register-brewery-free.is-active {
        display: block;
    }

    .sake-register-brewery-back {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        font-size: 0.6875rem;
        color: var(--sq-brand);
        font-weight: 700;
        cursor: pointer;
        margin-top: 0.375rem;
        background: none;
        border: none;
        padding: 0;
    }

    .sake-register-brewery-back .material-symbols-outlined {
        font-size: 0.875rem;
    }

    /* Char counter */
    .sake-register-charcount {
        font-size: 0.625rem;
        color: rgba(91, 64, 61, 0.4);
        font-family: monospace;
        text-align: right;
        margin-top: 0.25rem;
        margin-right: 0.5rem;
    }

    /* ----- Tag Chips ----- */
    .sake-register-tags {
        margin-bottom: 1.5rem;
    }

    .sake-register-tags__category {
        margin-bottom: 1rem;
    }

    .sake-register-tags__category-name {
        font-size: 0.6875rem;
        font-weight: 700;
        color: rgba(91, 64, 61, 0.6);
        margin-bottom: 0.5rem;
        margin-left: 0.25rem;
    }

    .sake-register-tags__list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .sake-register-tag-chip {
        display: inline-flex;
        align-items: center;
        padding: 0.375rem 0.875rem;
        border-radius: 9999px;
        font-size: 0.75rem;
        font-weight: 600;
        cursor: pointer;
        border: 1px solid rgba(228, 190, 186, 0.3);
        background: #ffffff;
        color: var(--sq-text-sub);
        transition: all 0.15s;
        user-select: none;
    }

    @media (hover: hover) {

        .sake-register-tag-chip:hover {
        border-color: rgba(178, 4, 17, 0.3);
    }
    }

    .sake-register-tag-chip.is-selected {
        background: var(--sq-brand);
        color: #ffffff;
        border-color: var(--sq-brand);
        box-shadow: 0 2px 6px rgba(178, 4, 17, 0.2);
    }

    .sake-register-tag-chip input[type="checkbox"] {
        display: none;
    }

    /* ----- Hint Card ----- */
    .sake-register-hint {
        background: var(--sq-bg);
        border-radius: 1.5rem;
        padding: 1.25rem 1.5rem;
        margin: 0 1.5rem;
        position: relative;
        overflow: hidden;
    }

    .sake-register-hint__inner {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        position: relative;
        z-index: 1;
    }

    .sake-register-hint__icon {
        flex-shrink: 0;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 9999px;
        background: #ffdfa0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #5c4300;
    }

    .sake-register-hint__icon .material-symbols-outlined {
        font-size: 1.25rem;
    }

    .sake-register-hint__title {
        font-size: 0.875rem;
        font-weight: 700;
        color: var(--sq-text);
        margin-bottom: 0.25rem;
    }

    .sake-register-hint__text {
        font-size: 0.75rem;
        color: var(--sq-text-sub);
        line-height: 1.6;
    }

    .sake-register-hint__deco {
        position: absolute;
        right: -1rem;
        bottom: -1rem;
        color: var(--sq-text);
        opacity: 0.05;
    }

    .sake-register-hint__deco .material-symbols-outlined {
        font-size: 8rem;
    }

    /* ----- First Discoverer Panel ----- */
    .sake-register-discoverer {
        background: linear-gradient(135deg, #ffdfa0 0%, #f8bd2a 100%);
        border: 1px solid rgba(113, 83, 0, 0.2);
        border-radius: 1.5rem;
        padding: 1rem 1.25rem;
        margin: 0 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 1px 3px rgba(91, 64, 61, 0.06);
    }

    .sake-register-discoverer__user {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .sake-register-discoverer__avatar-wrap {
        position: relative;
        flex-shrink: 0;
    }

    .sake-register-discoverer__avatar {
        width: 3rem;
        height: 3rem;
        border-radius: 9999px;
        border: 2px solid #fff;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        object-fit: cover;
    }

    .sake-register-discoverer__avatar-badge {
        position: absolute;
        bottom: -0.125rem;
        right: -0.125rem;
        background: var(--sq-brand);
        color: #fff;
        border-radius: 9999px;
        padding: 0.125rem;
        border: 2px solid #fff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sake-register-discoverer__avatar-badge .material-symbols-outlined {
        font-size: 0.75rem;
    }

    .sake-register-discoverer__label {
        display: inline-block;
        font-size: 0.625rem;
        font-weight: 700;
        background: rgba(255, 255, 255, 0.6);
        color: #715300;
        padding: 0.125rem 0.5rem;
        border-radius: 0.375rem;
        margin-bottom: 0.125rem;
    }

    .sake-register-discoverer__name {
        font-size: 0.875rem;
        font-weight: 700;
        color: #261a00;
    }

    .sake-register-discoverer__note {
        font-size: 0.6875rem;
        color: #715300;
        font-weight: 700;
        margin-top: 0.125rem;
    }

    .sake-register-discoverer__crown {
        flex-shrink: 0;
        width: 3rem;
        height: 3rem;
        border-radius: 9999px;
        background: #fff;
        color: var(--sq-brand);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(178, 4, 17, 0.1);
    }

    .sake-register-discoverer__crown .material-symbols-outlined {
        font-size: 1rem;
        margin-bottom: 0.0625rem;
    }

    .sake-register-discoverer__crown span:last-child {
        font-size: 0.5rem;
        font-weight: 700;
        line-height: 1;
    }

    /* ----- Submit Button ----- */
    .sake-register-submit {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        width: 100%;
        height: 4rem;
        border-radius: 9999px;
        border: none;
        background: linear-gradient(135deg, var(--sq-brand) 0%, var(--sq-brand-lt) 100%);
        color: #fff;
        font-size: 1.125rem;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 8px 24px rgba(178, 4, 17, 0.3);
        transition: all 0.15s;
    }

    @media (hover: hover) {

        .sake-register-submit:hover {
        box-shadow: 0 12px 32px rgba(178, 4, 17, 0.4);
    }
    }

    .sake-register-submit:active {
        transform: scale(0.95);
    }

    .sake-register-submit:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        box-shadow: none;
    }

    .sake-register-submit .material-symbols-outlined {
        font-size: 1.5rem;
    }
}

    /* ----- Notification Bell & Badge ----- */
    .ag-notification-bell {
        position: relative;
        background: none;
        border: none;
        color: var(--color-slate-600);
        padding: 0.25rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.2s;
    }

    .ag-notification-bell:active {
        color: var(--color-brandcolor-500);
    }

    .ag-notification-badge {
        position: absolute;
        top: -2px;
        right: -2px;
        background-color: #f43f5e; /* rose-500 */
        color: white;
        font-size: 0.625rem;
        font-weight: 700;
        min-width: 1rem;
        height: 1rem;
        padding: 0 0.25rem;
        border-radius: 9999px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid white;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    /* ----- Notification Drawer ----- */
    .ag-notification-overlay {
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(2px);
    }

    .ag-notification-overlay.is_visible {
        opacity: 1;
        visibility: visible;
    }

    .ag-notification-drawer {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100%;
        background-color: white;
        z-index: 1001;
        transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    }

    .ag-notification-drawer.is_open {
        right: 0;
    }

    .ag-notification-header {
        padding: 1.25rem;
        border-bottom: 1px solid var(--color-slate-100);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .ag-notification-header h3 {
        font-weight: 900;
        font-size: 1.125rem;
        color: var(--color-slate-900);
    }

    .ag-notification-close {
        background: none;
        border: none;
        color: var(--color-slate-400);
        cursor: pointer;
    }

    .ag-notification-list {
        flex: 1;
        overflow-y: auto;
        padding: 0.5rem 0;
    }

    .ag-notification-item {
        padding: 1rem 1.25rem;
        display: flex;
        gap: 0.75rem;
        text-decoration: none;
        color: inherit;
        border-bottom: 1px solid var(--color-slate-50);
        transition: background-color 0.2s;
    }

    .ag-notification-item:active {
        background-color: var(--color-slate-50);
    }

    .ag-notification-item.is_unread {
        background-color: rgba(79, 70, 229, 0.03); /* brandcolor-50/something */
    }

    .ag-notification-item-icon {
        width: 2.25rem;
        height: 2.25rem;
        background-color: var(--color-brandcolor-50);
        color: var(--color-brandcolor-600);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .ag-notification-item-content {
        flex: 1;
    }

    .ag-notification-item-msg {
        font-size: 0.875rem;
        line-height: 1.4;
        color: var(--color-slate-800);
        margin-bottom: 0.25rem;
    }

    .ag-notification-item-time {
        font-size: 0.75rem;
        color: var(--color-slate-400);
    }

    .ag-notification-empty {
        padding: 3rem 1.25rem;
        text-align: center;
        color: var(--color-slate-400);
    }

    .ag-notification-empty .material-symbols-outlined {
        font-size: 3rem;
        margin-bottom: 1rem;
        display: block;
    }

    /* ================================================================
       V2 銘柄登録フォーム (#162)
       ================================================================ */

    /* --- タグチップ共通 --- */
    .sake-v2-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .sake-v2-chip {
        padding: 0.5rem 1rem;
        border-radius: 9999px;
        font-size: 0.875rem;
        font-weight: 700;
        border: 1px solid #e4beba40;
        background: #fafaf5;
        color: var(--sq-text-sub);
        cursor: pointer;
        transition: all 0.2s ease;
        user-select: none;
    }
    @media (hover: hover) {
        .sake-v2-chip:hover {
        background: var(--sq-border);
    }
    }
    .sake-v2-chip.is-selected {
        background: var(--sq-brand);
        color: #fff;
        border-color: var(--sq-brand);
        box-shadow: 0 2px 8px rgba(178,4,17,.25);
        transform: scale(1.05);
    }
    .sake-v2-chip--tag {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    .sake-v2-chip--tag.is-selected {
        background: #75584d;
        border-color: #75584d;
    }
    .sake-v2-chip--tag input[type="checkbox"] {
        display: none;
    }

    /* --- カスタム入力展開 --- */
    .sake-v2-custom-input {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
        margin-top: 0;
    }
    .sake-v2-custom-input.is-active {
        max-height: 4rem;
        opacity: 1;
        margin-top: 0.75rem;
    }

    /* --- 地方タブ --- */
    .sake-v2-region-tabs {
        display: flex;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .sake-v2-region-tabs::-webkit-scrollbar { display: none; }
    .sake-v2-region-tab {
        flex-shrink: 0;
        padding: 0.5rem 1rem;
        border-radius: 9999px;
        font-size: 0.75rem;
        font-weight: 700;
        border: 1px solid #e4beba40;
        background: #fafaf5;
        color: var(--sq-text-sub);
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .sake-v2-region-tab.is-active {
        background: #e3e3de;
        color: var(--sq-text);
        box-shadow: inset 0 1px 3px rgba(0,0,0,.06);
    }
    @media (hover: hover) {
        .sake-v2-region-tab:hover:not(.is-active) {
        background: var(--sq-border);
    }
    }

    /* --- 都道府県エリア --- */
    .sake-v2-prefecture-area {
        background: #fff;
        padding: 1rem;
        border-radius: 1rem;
        border: 1px solid #e4beba30;
        min-height: 7.5rem;
        margin-top: 0.5rem;
    }
    .sake-v2-prefecture-group {
        display: none;
        flex-wrap: wrap;
        gap: 0.5rem;
        animation: sakeFadeIn 0.2s ease;
    }
    .sake-v2-prefecture-group.is-active { display: flex; }

    @keyframes sakeFadeIn {
        from { opacity: 0; transform: translateY(4px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* --- アコーディオン --- */
    .sake-v2-accordion-trigger {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.25rem;
        border: 1px solid #e4beba40;
        border-radius: 1.5rem;
        background: var(--sq-bg);
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .sake-v2-accordion-trigger.is-open {
        border-radius: 1.5rem 1.5rem 0 0;
        border-bottom: none;
    }
    @media (hover: hover) {
        .sake-v2-accordion-trigger:hover { background: var(--sq-border); }
    }
    .sake-v2-accordion-trigger__left {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    .sake-v2-accordion-trigger__icon {
        background: #fff;
        padding: 0.5rem;
        border-radius: 9999px;
        box-shadow: 0 1px 3px rgba(0,0,0,.06);
        color: var(--sq-brand);
        display: flex;
        transition: transform 0.2s;
    }
    @media (hover: hover) {
        .sake-v2-accordion-trigger:hover .sake-v2-accordion-trigger__icon {
        transform: scale(1.1);
    }
    }
    .sake-v2-accordion-trigger__text {
        font-weight: 700;
        color: var(--sq-text);
        white-space: nowrap;
        font-size: 0.8125rem;
    }
    .sake-v2-accordion-trigger__arrow {
        color: var(--sq-text-sub);
        transition: transform 0.3s ease;
    }

    .sake-v2-accordion-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    .sake-v2-accordion-body.is-open {
        max-height: 200rem;
    }
    .sake-v2-accordion-body__inner {
        background: #fff;
        padding: 1.5rem;
        border: 1px solid #e4beba40;
        border-top: none;
        border-radius: 0 0 1.5rem 1.5rem;
        box-shadow: 0 2px 8px rgba(0,0,0,.04);
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
    }

    /* --- スライダー --- */
    .sake-v2-slider-group {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    .sake-v2-slider-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }
    .sake-v2-slider-label {
        font-size: 0.75rem;
        font-weight: 700;
        color: #5b403d99;
        letter-spacing: 0.1em;
        display: flex;
        align-items: center;
        gap: 0.375rem;
    }
    .sake-v2-slider-label .material-symbols-outlined {
        font-size: 1rem;
    }
    .sake-v2-slider-value {
        font-size: 1.875rem;
        font-weight: 900;
        font-family: 'Plus Jakarta Sans', monospace;
        color: var(--sq-brand);
        transition: color 0.2s;
    }
    .sake-v2-slider-value.is-unknown {
        color: #5b403d30;
    }
    .sake-v2-slider-unit {
        font-size: 1.125rem;
        margin-left: 0.25rem;
        color: #5b403d80;
    }
    .sake-v2-slider-value.is-unknown .sake-v2-slider-unit {
        color: #5b403d20;
    }
    .sake-v2-slider-track {
        transition: opacity 0.2s;
    }
    .sake-v2-slider-track.is-disabled {
        opacity: 0.4;
        pointer-events: none;
    }
    .sake-v2-slider {
        width: 100%;
        height: 0.5rem;
        border-radius: 0.5rem;
        background: #e3e3de;
        appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
    }
    .sake-v2-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 50%;
        background: var(--sq-brand);
        border: 3px solid #fff;
        box-shadow: 0 2px 6px rgba(178,4,17,.3);
        cursor: pointer;
    }
    .sake-v2-slider::-moz-range-thumb {
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 50%;
        background: var(--sq-brand);
        border: 3px solid #fff;
        box-shadow: 0 2px 6px rgba(178,4,17,.3);
        cursor: pointer;
    }
    .sake-v2-slider-reaction {
        display: inline-block;
        margin-top: 0.75rem;
        padding: 0.5rem 1rem;
        border-radius: 0.75rem;
        font-size: 0.75rem;
        font-weight: 700;
        background: rgba(113,83,0,.08);
        color: #715300;
    }
    .sake-v2-slider-reaction:empty { display: none; }

    /* --- 不明ボタン --- */
    .sake-v2-unknown-btn {
        align-self: flex-start;
        padding: 0.375rem 1rem;
        border-radius: 9999px;
        font-size: 0.75rem;
        font-weight: 700;
        border: 1px solid #e4beba40;
        background: #fafaf5;
        color: #5b403d99;
        cursor: pointer;
        transition: all 0.2s;
    }
    @media (hover: hover) {
        .sake-v2-unknown-btn:hover {
        background: var(--sq-border);
    }
    }
    .sake-v2-unknown-btn.is-active {
        background: var(--sq-brand);
        color: #fff;
        border-color: var(--sq-brand);
        box-shadow: 0 2px 8px rgba(178,4,17,.25);
    }

    /* --- 無効化ゾーン --- */
    .sake-v2-disabled-zone {
        opacity: 0.4;
        pointer-events: none;
        transition: opacity 0.2s;
    }

    /* --- 公式スペックタグ --- */
    .sake-v2-spec-tags {
        padding-top: 1rem;
        border-top: 1px solid #e4beba20;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    .sake-v2-spec-tags__header {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        font-size: 0.875rem;
        font-weight: 700;
        color: var(--sq-text-sub);
    }
    .sake-v2-spec-tags__header .material-symbols-outlined {
        font-size: 1rem;
    }
    .sake-v2-spec-tags__category {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    .sake-v2-spec-tags__category-name {
        font-size: 0.625rem;
        font-weight: 700;
        color: #5b403d99;
        letter-spacing: 0.1em;
    }

    /* --- 丸角フィールド --- */
    .sake-register-field--rounded {
        border-radius: 1rem !important;
        height: 3.5rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .sake-register-textarea--rounded {
        border-radius: 1.5rem !important;
        padding: 1.25rem;
    }

    /* --- くす玉オーバーレイ --- */
    .sake-v2-kusudama-overlay {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 8rem;
        background: rgba(0,0,0,.8);
        backdrop-filter: blur(4px);
        overflow: hidden;
    }
    .sake-v2-kusudama-overlay.is-active {
        display: flex;
    }

    .sake-v2-kusudama {
        position: relative;
        width: 16rem;
        height: 16rem;
    }

    /* Rope */
    .sake-v2-kusudama__rope {
        position: absolute;
        top: -8rem;
        left: 50%;
        transform: translateX(-50%);
        width: 0.25rem;
        height: 8rem;
        background: #b8860b;
        animation: kusudamaRopeDrop 0.4s ease-out forwards;
    }

    /* Kusudama halves */
    .sake-v2-kusudama__half {
        position: absolute;
        top: 0;
        width: 8rem;
        height: 16rem;
        overflow: hidden;
    }
    .sake-v2-kusudama__half--left {
        left: 0;
        transform-origin: top right;
        animation: kusudamaSplitLeft 0.5s ease-out 0.5s forwards;
    }
    .sake-v2-kusudama__half--right {
        right: 0;
        transform-origin: top left;
        animation: kusudamaSplitRight 0.5s ease-out 0.5s forwards;
    }
    .sake-v2-kusudama__ball {
        width: 16rem;
        height: 16rem;
        border-radius: 50%;
        background: linear-gradient(135deg, #ffd700 0%, #daa520 50%, #b8860b 100%);
        border: 4px solid #ffe680;
        box-shadow: 0 8px 32px rgba(0,0,0,.3);
    }
    .sake-v2-kusudama__half--right .sake-v2-kusudama__ball {
        margin-left: -8rem;
    }

    /* Banner (垂れ幕) */
    .sake-v2-kusudama__banner {
        position: absolute;
        top: 4rem;
        left: 50%;
        transform: translateX(-50%);
        width: 5rem;
        height: 0;
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 1rem;
        box-shadow: 0 8px 32px rgba(0,0,0,.3);
        overflow: hidden;
        z-index: 10;
        border-left: 2px solid rgba(218,165,32,.3);
        border-right: 2px solid rgba(218,165,32,.3);
        border-bottom: 2px solid rgba(218,165,32,.3);
        animation: bannerUnroll 0.8s ease-out 0.6s forwards;
    }
    .sake-v2-kusudama__banner-text {
        writing-mode: vertical-rl;
        font-size: 1.5rem;
        font-weight: 900;
        color: var(--sq-brand);
        letter-spacing: 0.3em;
        white-space: nowrap;
    }
    .sake-v2-kusudama__banner-sparkle {
        color: #daa520;
        margin-top: auto;
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
    }

    .sake-v2-kusudama__message {
        margin-top: 8rem;
        color: #fff;
        font-weight: 700;
        font-size: 1.25rem;
        letter-spacing: 0.1em;
        text-align: center;
        opacity: 0;
        animation: sakeFadeIn 0.4s ease 1.5s forwards;
    }
    .sake-v2-kusudama__tap-hint {
        margin-top: 2rem;
        color: rgba(255,255,255,.5);
        font-size: 0.875rem;
        opacity: 0;
        animation: sakeFadeIn 0.4s ease 3s forwards, sakePulse 2s infinite 3.4s;
    }

    @keyframes kusudamaRopeDrop {
        from { transform: translateX(-50%) translateY(-100%); }
        to { transform: translateX(-50%) translateY(0); }
    }
    @keyframes kusudamaSplitLeft {
        to { transform: rotate(45deg) translateX(-10px); }
    }
    @keyframes kusudamaSplitRight {
        to { transform: rotate(-45deg) translateX(10px); }
    }
    @keyframes bannerUnroll {
        to { height: 14rem; }
    }
    @keyframes sakePulse {
        0%, 100% { opacity: 0.5; }
        50% { opacity: 1; }
    }

    /* アクセシビリティ: prefers-reduced-motion */
    @media (prefers-reduced-motion: reduce) {
        .sake-v2-kusudama__rope,
        .sake-v2-kusudama__half--left,
        .sake-v2-kusudama__half--right,
        .sake-v2-kusudama__banner,
        .sake-v2-kusudama__message,
        .sake-v2-kusudama__tap-hint {
            animation: none !important;
        }
        .sake-v2-kusudama__banner { height: 14rem; }
        .sake-v2-kusudama__message { opacity: 1; }
        .sake-v2-kusudama__tap-hint { opacity: 0.5; }
    }


    /* === 酒蔵チップ選択 UI (#182) === */
    .sake-v2-brewery-search {
        position: relative;
        margin-bottom: 0.75rem;
    }
    .sake-v2-brewery-search input {
        width: 100%;
        padding: 0.625rem 0.875rem 0.625rem 2.5rem;
        border: 1.5px solid #e0ddd5;
        border-radius: 1.5rem;
        background: #fafaf5;
        font-size: 0.875rem;
        color: #3a2a22;
        outline: none;
        transition: border-color 0.2s;
    }
    .sake-v2-brewery-search input:focus {
        border-color: var(--sq-brand);
    }
    .sake-v2-brewery-search__icon {
        position: absolute;
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        color: #9a9590;
        font-size: 1.125rem;
        pointer-events: none;
    }
    .sake-v2-brewery-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        max-height: 15rem;
        overflow-y: auto;
        padding: 0.25rem 0;
        scrollbar-width: thin;
        scrollbar-color: #d4d0c8 transparent;
    }
    .sake-v2-brewery-chips::-webkit-scrollbar {
        width: 4px;
    }
    .sake-v2-brewery-chips::-webkit-scrollbar-thumb {
        background: #d4d0c8;
        border-radius: 2px;
    }
    .sake-v2-brewery-chip {
        display: inline-flex;
        align-items: center;
        padding: 0.375rem 0.875rem;
        border-radius: 1.25rem;
        border: 1.5px solid #e0ddd5;
        background: #fafaf5;
        color: var(--sq-text-sub);
        font-size: 0.8125rem;
        cursor: pointer;
        transition: all 0.2s ease;
        user-select: none;
    }
    @media (hover: hover) {
        .sake-v2-brewery-chip:hover {
            border-color: var(--sq-brand);
            color: var(--sq-brand);
        }
    }
    .sake-v2-brewery-chip.is-selected {
        background: var(--sq-brand);
        color: #fff;
        border-color: var(--sq-brand);
        box-shadow: 0 2px 8px rgba(178,4,17,.25);
    }
    .sake-v2-brewery-chip.is-hidden {
        display: none;
    }
    .sake-v2-brewery-free-link {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        margin-top: 0.75rem;
        padding: 0.375rem 0;
        color: #9a9590;
        font-size: 0.8125rem;
        cursor: pointer;
        border: none;
        background: none;
        transition: color 0.2s;
    }
    @media (hover: hover) {
        .sake-v2-brewery-free-link:hover {
        color: var(--sq-brand);
    }
    }
    .sake-v2-brewery-no-results {
        color: #9a9590;
        font-size: 0.8125rem;
        padding: 0.5rem 0;
    }
    .sake-v2-brewery-loading {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #9a9590;
        font-size: 0.8125rem;
        padding: 1rem 0;
    }
    .sake-v2-brewery-loading__spinner {
        display: block;
        width: 1rem;
        height: 1rem;
        border: 2px solid #e2e8f0;
        border-top-color: var(--sq-brand);
        border-radius: 50%;
        animation: spin 0.6s linear infinite;
    }


/* ================================================================
   のみログ投稿画面 (#189)
   V2デザインシステムを完全踏襲
   ================================================================ */

.nomilog-page {
    background: var(--sq-bg);
    min-height: 100vh;
    padding-bottom: 2rem;
}

/* のみログ用: 写真エリアをコンパクトに */
.nomilog-page .sake-register-photo {
    aspect-ratio: auto;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1.5rem;
    min-height: auto;
}

.nomilog-chips-card {
    background: #ffffff;
    border-radius: 2rem;
    box-shadow: 0 1px 3px rgba(91, 64, 61, 0.06);
    border: 1px solid rgba(228, 190, 186, 0.2);
    padding: 1.5rem;
    margin: 2rem 1.5rem 0;
}

.nomilog-phase {
    transition: all 0.3s ease-out;
}

.nomilog-phase--hidden {
    display: none;
}

.nomilog-phase__divider {
    border-top: 1px solid rgba(228, 190, 186, 0.2);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.nomilog-phase__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.nomilog-phase__badge {
    background: var(--sq-brand);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nomilog-phase__badge--gold {
    background: linear-gradient(135deg, #ffdfa0 0%, #f8bd2a 100%);
    color: var(--sq-text-sub);
}

.nomilog-phase__title {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--sq-text);
}

.nomilog-phase__hint {
    font-size: 0.625rem;
    font-weight: 400;
    color: rgba(91, 64, 61, 0.6);
}

.nomilog-phase__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nomilog-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(228, 190, 186, 0.4);
    background: #ffffff;
    color: var(--sq-text-sub);
    transition: all 0.15s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {

    .nomilog-chip:hover {
    background: var(--sq-bg);
}
}

.nomilog-chip:active {
    transform: scale(0.96);
}

.nomilog-chip.is-selected {
    background: var(--sq-brand);
    color: #ffffff;
    border-color: var(--sq-brand);
    box-shadow: 0 2px 6px rgba(178, 4, 17, 0.2);
}

.nomilog-chip__badge {
    position: absolute;
    top: -0.25rem;
    left: -0.25rem;
    background: var(--sq-brand);
    color: #fff;
    font-size: 0.5625rem;
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    z-index: 10;
    font-weight: 700;
}

#phase-5 .nomilog-chip.is-selected {
    background: linear-gradient(135deg, #ffdfa0 0%, #f8bd2a 100%);
    color: var(--sq-text-sub);
    border-color: #f8bd2a;
}

#phase-5 .nomilog-chip__badge {
    background: linear-gradient(135deg, #ffdfa0 0%, #f8bd2a 100%);
    color: var(--sq-text-sub);
}

.nomilog-ochoko-card {
    background: #ffffff;
    border-radius: 2rem;
    box-shadow: 0 1px 3px rgba(91, 64, 61, 0.06);
    border: 1px solid rgba(228, 190, 186, 0.2);
    padding: 1.5rem;
    margin: 2rem 1.5rem 0;
    text-align: center;
}

.nomilog-ochoko-card__title {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--sq-text);
    margin-bottom: 1.25rem;
}

.nomilog-ochoko__row {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.nomilog-ochoko__cup {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sq-bg);
    border: 1px solid rgba(228, 190, 186, 0.4);
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(91, 64, 61, 0.3);
    -webkit-tap-highlight-color: transparent;
}

.nomilog-ochoko__cup:active {
    transform: scale(0.9);
}

.nomilog-ochoko__cup.is-filled {
    background: var(--sq-brand);
    border-color: var(--sq-brand);
    color: #fff;
    box-shadow: 0 2px 8px rgba(178, 4, 17, 0.25);
}

.nomilog-ochoko__cup.is-gold {
    background: linear-gradient(135deg, #ffdfa0 0%, #f8bd2a 100%);
    border-color: #f8bd2a;
    color: #fff;
    box-shadow: 0 4px 12px rgba(248, 189, 42, 0.4);
    transform: scale(1.1);
}

.nomilog-ochoko__svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
}

.nomilog-ochoko__cup.is-filled .nomilog-ochoko__svg,
.nomilog-ochoko__cup.is-gold .nomilog-ochoko__svg {
    fill: currentColor;
}

.nomilog-ochoko__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--sq-brand);
}

.nomilog-scene-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* --- Tone Chips (AI文体制御) --- */
.nomilog-tone-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.nomilog-tone-group-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    min-width: 4.5rem;
    flex-shrink: 0;
}

.nomilog-tone-group-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.nomilog-ai-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 1rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {

    .nomilog-ai-btn:hover {
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.4);
}
}

.nomilog-ai-btn:active {
    transform: scale(0.95);
}

.nomilog-ai-btn .material-symbols-outlined {
    font-size: 1.25rem;
}

.nomilog-ai-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--sq-text-sub);
    font-weight: 600;
    font-size: 0.875rem;
}

.nomilog-ai-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(91, 64, 61, 0.2);
    border-top-color: #9333ea;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.nomilog-suggest {
    background: #fff;
    border: 1px solid rgba(228, 190, 186, 0.3);
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(91, 64, 61, 0.1);
    margin-top: 0.5rem;
    max-height: 15rem;
    overflow-y: auto;
    z-index: 50;
    position: relative;
}

.nomilog-suggest__heading {
    padding: 0.5rem 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgba(91, 64, 61, 0.5);
    background: var(--sq-bg);
}

.nomilog-suggest__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(228, 190, 186, 0.1);
}

@media (hover: hover) {

    .nomilog-suggest__item:hover {
    background: var(--sq-bg);
}
}

.nomilog-suggest__item:last-child {
    border-bottom: none;
}

.nomilog-celebration {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.nomilog-celebration.hidden {
    display: none;
}

.nomilog-celebration__content {
    text-align: center;
}

.nomilog-celebration__tokkuri-wrap {
    position: relative;
    width: 16rem;
    height: 16rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.nomilog-celebration__tokkuri {
    width: 6rem;
    height: 6rem;
    color: #fff;
    position: absolute;
}

.nomilog-celebration__tokkuri--left {
    animation: tokkuriLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.nomilog-celebration__tokkuri--right {
    animation: tokkuriRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.nomilog-celebration__sparkle {
    position: absolute;
    top: -1rem;
    color: #f8bd2a;
    font-size: 4rem;
    animation: sparkleIn 0.6s ease-out 0.4s both;
}

.nomilog-celebration__title {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.nomilog-celebration__xp {
    display: inline-block;
    background: #f8bd2a;
    color: #5c4300;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    animation: xpBounce 2s ease-in-out 0.8s infinite, fadeInUp 0.4s ease-out 0.8s both;
}

@keyframes nomilogSlideIn {
    from { opacity: 0; transform: translateY(1rem); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes tokkuriLeft {
    from { transform: translateX(-6rem) rotate(-20deg); opacity: 0; }
    to   { transform: translateX(-0.5rem) rotate(10deg); opacity: 1; }
}

@keyframes tokkuriRight {
    from { transform: translateX(6rem) rotate(20deg); opacity: 0; }
    to   { transform: translateX(0.5rem) rotate(-10deg); opacity: 1; }
}

@keyframes sparkleIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(1rem); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes xpBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-0.5rem); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ================================================================
   #419 Subscription CTA — A×E Hybrid Design
   明朝体 + 縦書き背景 + 金グラデ + 朱CTAボタン
   ================================================================ */

/* --- δ Reminder (small feed insert) --- */
.sq-sub-reminder {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin: 12px 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #1a1c19, #2a2420);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s;
}
.sq-sub-reminder:active { transform: scale(0.98); }

.sq-sub-reminder__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(212,160,23,.15), rgba(212,160,23,.05));
    border: 1px solid rgba(212,160,23,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif JP', serif;
    font-size: 9px;
    font-weight: 900;
    color: #d4a017;
    letter-spacing: .1em;
    line-height: 1.2;
    text-align: center;
}
.sq-sub-reminder__body { flex: 1; min-width: 0; }
.sq-sub-reminder__title {
    font-family: 'Noto Serif JP', serif;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.4;
}
.sq-sub-reminder__sub {
    font-size: 9px;
    color: rgba(255,255,255,.4);
    margin-top: 2px;
}
.sq-sub-reminder__arrow {
    font-size: 20px;
    color: #d4a017;
    flex-shrink: 0;
}

/* --- Main CTA Card --- */
.sq-sub-cta {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(160deg, #0f0f0e, #1c1a17 40%, #1a1410);
    color: #fff;
    position: relative;
    text-decoration: none;
    transition: transform 0.2s;
}
.sq-sub-cta:active { transform: scale(0.98); }

/* Washi noise texture (from A) */
.sq-sub-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Vertical text (from E) */
.sq-sub-cta__tate {
    position: absolute;
    top: 20px;
    right: 16px;
    bottom: 60px;
    writing-mode: vertical-rl;
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.8;
    color: rgba(255,255,255,.05);
    letter-spacing: .12em;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Gold glow (from A) */
.sq-sub-cta__glow {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,160,23,.1), transparent 70%);
    top: -40px;
    right: -30px;
    pointer-events: none;
}


.sq-sub-cta__body {
    padding: 28px 24px 0;
    position: relative;
    z-index: 1;
}

.sq-sub-cta__eyebrow {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #d4a017;
    opacity: .8;
    margin-bottom: 14px;
}

/* Title: Serif (from E) + Gold gradient (from A) */
.sq-sub-cta__title {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.7;
}
.sq-sub-cta__title strong {
    background: linear-gradient(90deg, #d4a017, #f0d060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sq-sub-cta__sub {
    font-size: 11px;
    color: rgba(255,255,255,.38);
    margin-top: 10px;
    line-height: 1.7;
}
.sq-sub-cta__sub em {
    font-style: normal;
    color: #d4a017;
    opacity: .7;
}

/* Sake teaser */
.sq-sub-cta__teaser {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.sq-sub-cta__teaser-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,.22);
    margin-bottom: 10px;
}
.sq-sub-cta__sake {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
}
.sq-sub-cta__sake-img {
    width: 33%;
    flex-shrink: 0;
    background: linear-gradient(160deg, #2a2520, #1e1a16);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    border-right: 1px solid rgba(255,255,255,.06);
}
.sq-sub-cta__sake-ph {
    width: 44px;
    height: 72px;
    border-radius: 4px;
    background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: rgba(255,255,255,.2);
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}
.sq-sub-cta__sake-body {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sq-sub-cta__sake-label {
    font-size: 8px;
    font-weight: 700;
    color: #d4a017;
    opacity: .7;
}
.sq-sub-cta__sake-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    font-weight: 900;
    margin-top: 3px;
    color: #fff;
    line-height: 1.35;
}
.sq-sub-cta__sake-area {
    font-size: 9px;
    color: rgba(255,255,255,.35);
    margin-top: 3px;
}
.sq-sub-cta__sake-type {
    font-size: 9px;
    color: rgba(255,255,255,.25);
    margin-top: 1px;
}

/* Stamp badges (#418 → #739 円形装飾化) */
.sq-sub-cta__stamps {
    display: flex;
    justify-content: center;
    gap: 24px;
}
.sq-sub-cta__stamp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    text-align: center;
}
.sq-sub-cta__stamp-ring {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212,160,23,.25), rgba(240,208,96,.15));
    box-shadow:
        0 0 0 2px rgba(212,160,23,.35),
        0 0 20px rgba(212,160,23,.1),
        inset 0 0 12px rgba(212,160,23,.08);
    animation: sq-stamp-breathe 3s ease-in-out infinite;
}
.sq-sub-cta__stamp-ring::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 1.5px solid rgba(212,160,23,.2);
    pointer-events: none;
}
.sq-sub-cta__stamp img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    border: none;
    background: rgba(255,255,255,.95);
}
.sq-sub-cta__stamp-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 11px;
    font-weight: 900;
    color: rgba(255,255,255,.75);
    letter-spacing: .03em;
}
@keyframes sq-stamp-breathe {
    0%, 100% { box-shadow: 0 0 0 2px rgba(212,160,23,.35), 0 0 20px rgba(212,160,23,.1), inset 0 0 12px rgba(212,160,23,.08); }
    50%      { box-shadow: 0 0 0 3px rgba(212,160,23,.5), 0 0 28px rgba(212,160,23,.18), inset 0 0 16px rgba(212,160,23,.12); }
}

/* Stats bar (from A) */
.sq-sub-cta__stats {
    display: flex;
    margin-top: 16px;
    border-top: 1px solid rgba(255,255,255,.06);
    padding-top: 14px;
}
.sq-sub-cta__stat {
    flex: 1;
    text-align: center;
    padding: 0 8px;
    border-right: 1px solid rgba(255,255,255,.06);
}
.sq-sub-cta__stat:last-child { border-right: none; }
.sq-sub-cta__stat-val {
    font-size: 16px;
    font-weight: 900;
    color: #d4a017;
    font-family: 'Spline Sans', sans-serif;
}
.sq-sub-cta__stat-label {
    font-size: 8px;
    color: rgba(255,255,255,.3);
    margin-top: 3px;
    line-height: 1.3;
}

/* Footer with 朱 CTA button (from B/E) */
.sq-sub-cta__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px 20px;
    position: relative;
    z-index: 1;
}
.sq-sub-cta__price {
    font-size: 11px;
    color: rgba(255,255,255,.4);
}
.sq-sub-cta__price b {
    font-size: 18px;
    color: #fff;
    font-family: 'Spline Sans', sans-serif;
}
.sq-sub-cta__btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #b20411, #d62927);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
}

/* ============================================================
   #663 酒図鑑フィード サブスクCTA — Museum Dark (V3×D)
   Compact glassmorphism card for Masonry 2-column feed
   ============================================================ */
.cta-sub-museum {
    display: block;
    text-decoration: none;
    color: #fff;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(15,15,14,.95), rgba(28,26,23,.95));
    border: 1px solid rgba(212,160,23,.12);
    padding: 16px 14px;
    position: relative;
    transition: transform .2s ease;
}
.cta-sub-museum::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}
.cta-sub-museum:active {
    transform: scale(.98);
}
.cta-sub-museum__glow {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,160,23,.15), transparent 70%);
    top: -15px;
    left: -10px;
    pointer-events: none;
}
.cta-sub-museum__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.cta-sub-museum__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(212,160,23,.2), rgba(212,160,23,.05));
    border: 1px solid rgba(212,160,23,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cta-sub-museum__head-txt {
    flex: 1;
}
.cta-sub-museum__eyebrow {
    font-size: 6px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #d4a017;
    opacity: .7;
}
.cta-sub-museum__label {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,.5);
    margin-top: 1px;
}
.cta-sub-museum__quote {
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}
.cta-sub-museum__quote strong {
    background: linear-gradient(90deg, #d4a017, #f0d060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cta-sub-museum__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}
.cta-sub-museum__price {
    font-size: 8px;
    color: rgba(255,255,255,.35);
}
.cta-sub-museum__price b {
    font-size: 14px;
    color: #fff;
    font-family: 'Spline Sans', sans-serif;
}
.cta-sub-museum__btn {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 7px 12px;
    background: linear-gradient(135deg, #b20411, #d62927);
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
}
.cta-sub-museum__btn .material-symbols-outlined {
    font-size: 12px;
}

/* =================================================================
   #764 レベルアップモーダル — ly_modal 定義
   (Tailwind クラス依存を廃止し独自CSS定義に統一)
   Tailwindクラス使用禁止: このブロック内では style.css/antigravity.css のクラスのみ使用
   ================================================================= */

/* オーバーレイ（全画面半透明背景） */
.ly_modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.ly_modal.is-active {
    display: flex;
}

/* モーダルカード */
.ly_modal_inner {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem 1.75rem 1.75rem;
    width: 100%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: ly_modal_in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

/* カード内装飾（金の輝きグロー） */
.ly_modal_inner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* 登場アニメーション */
@keyframes ly_modal_in {
    from { opacity: 0; transform: scale(0.85) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* 絵文字アイコン背景 */
.ly_modal_icon_bg {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 0.75rem;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
    animation: ly_icon_pulse 2s ease-in-out infinite;
}

@keyframes ly_icon_pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3); }
    50%       { box-shadow: 0 4px 22px rgba(217, 119, 6, 0.55); }
}

/* タイトル「レベルアップ！」 */
.ly_modal_title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #d97706;
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
    font-family: 'Noto Serif JP', 'Noto Sans JP', sans-serif;
    line-height: 1.2;
}

/* Lv.X → Lv.Y 行 */
.ly_modal_level_row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.875rem 0;
}

/* レベルバッジ（共通） */
.ly_modal_lv_badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-weight: 900;
    line-height: 1;
}

/* 旧レベル（グレー） */
.ly_modal_lv_badge--old {
    background: #f1f5f9;
    color: #94a3b8;
}

/* 新レベル（ゴールド） */
.ly_modal_lv_badge--new {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.45);
    animation: ly_lv_shine 1.5s ease-in-out infinite alternate;
}

@keyframes ly_lv_shine {
    from { box-shadow: 0 4px 12px rgba(217, 119, 6, 0.45); }
    to   { box-shadow: 0 4px 20px rgba(217, 119, 6, 0.75), 0 0 0 4px rgba(217, 119, 6, 0.1); }
}

.ly_modal_lv_label {
    font-size: 0.5rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 2px;
}

.ly_modal_lv_num {
    font-size: 1.25rem;
}

/* → 矢印 */
.ly_modal_arrow {
    color: #d97706;
    font-size: 1.375rem;
    font-weight: 900;
    animation: ly_arrow_bounce 0.8s ease-in-out infinite alternate;
}

@keyframes ly_arrow_bounce {
    from { transform: translateX(-3px); opacity: 0.7; }
    to   { transform: translateX(3px);  opacity: 1; }
}

/* サブメッセージ */
.ly_modal_body {
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

/* 称号解放バッジ */
.ly_modal_title_badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    margin: 0.625rem 0 0.375rem;
    border: 1px solid #fde68a;
}

/* 称号解放リンク */
.ly_modal_title_link {
    display: block;
    font-size: 0.6875rem;
    color: var(--sq-brand, #9b1a1a);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ly_modal_title_link:hover {
    text-decoration: underline;
}

/* OKボタン */
.ly_modal_btn {
    display: block;
    width: 100%;
    padding: 0.875rem;
    background: var(--sq-brand, #9b1a1a);
    color: #ffffff;
    border: none;
    border-radius: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1.25rem;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(155, 26, 26, 0.35);
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.02em;
}

.ly_modal_btn:hover {
    background-color: #7f1a1a;
    transform: translateY(-1px);
}

.ly_modal_btn:active {
    transform: translateY(0);
    background-color: #6b1515;
}

/* ===================================================================
   #814: Icon System v2 — SVG Blade コンポーネント基盤
   CSS currentColor 制御によるアイコン色管理
   =================================================================== */
@layer components {
    /* ボトムナビ SVG アイコン — 既存の img と同じサイズ・配置にする */
    .ag-icon-nav {
        width: 20px;
        height: 20px;
        display: block;
        color: inherit;
    }

    /* bl_mainMenu 内の SVG はインラインで出力されるため、
       既存の img ルールと同様のサイズ制御を適用 */
    .bl_mainMenu_cell a svg,
    .bl_mainMenu_cell a .bl_mainMenu_icon {
        width: 20px;
        height: 20px;
        display: block;
    }

    /* currentColor 経由の色制御 — Tailwind text-* クラスとの連携 */
    .bl_mainMenu_cell svg {
        fill: currentColor;
    }

    /* stroke 型アイコン（shop）は fill を上書きしない */
    .bl_mainMenu_cell svg[fill="none"] {
        fill: none;
    }
}

/* ===================================================================
   #807: Profile Edit V2 — プロフィール編集画面コンポーネント群
   =================================================================== */
@layer components {

    /* ----- 1. Hero Card (ヒーローカード) ----- */
    .ag-profile-hero {
        position: relative;
        background: var(--sq-card);
        margin: 0.75rem;
        border-radius: 1rem;
        box-shadow: 0 10px 30px rgba(91, 64, 61, 0.06);
        overflow: hidden;
    }

    .ag-profile-hero__cover {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        background: linear-gradient(135deg, #3a1c1e 0%, #7a2033 50%, var(--sq-brand) 100%);
        overflow: hidden;
    }

    .ag-profile-hero__avatar {
        width: 96px;
        height: 96px;
        border-radius: 50%;
        border: 3px solid var(--sq-card);
        background: linear-gradient(135deg, #fce4ec, #f8bbd0);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        font-weight: 900;
        color: var(--sq-text-sub);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
        position: relative;
        margin-top: -48px;
        z-index: 2;
    }

    .ag-profile-hero__name {
        font-size: 1.1rem;
        font-weight: 900;
        line-height: 1.2;
        color: var(--sq-text);
        text-shadow:
            -1px -1px 0 var(--sq-card),
             1px -1px 0 var(--sq-card),
            -1px  1px 0 var(--sq-card),
             1px  1px 0 var(--sq-card),
             0 0 8px rgba(255, 255, 255, 0.5);
    }

    .ag-profile-hero__badge {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        padding: 2px 10px;
        border-radius: 999px;
        background: linear-gradient(135deg, #fef3c7, #fde68a);
        color: #78350f;
        font-size: 0.7rem;
        font-weight: 700;
        margin-top: 2px;
    }

    .ag-profile-hero__cam {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--sq-card);
        color: var(--sq-text);
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        transition: background 0.2s;
    }

    .ag-profile-hero__cam:hover {
        background: var(--sq-bg);
    }

    /* ----- 2. Completion Ring (完成度リング) ----- */
    .ag-profile-ring {
        display: flex;
        align-items: center;
        gap: 14px;
        margin: 0.75rem;
        padding: 14px 16px;
        background: var(--sq-card);
        border-radius: 1rem;
        box-shadow: 0 10px 30px rgba(91, 64, 61, 0.06);
    }

    .ag-profile-ring__svg {
        position: relative;
        width: 52px;
        height: 52px;
        flex-shrink: 0;
    }

    .ag-profile-ring__svg svg {
        transform: rotate(-90deg);
        width: 52px;
        height: 52px;
    }

    .ag-profile-ring__svg circle.ag-ring-bg {
        fill: none;
        stroke: var(--sq-border);
        stroke-width: 5;
    }

    .ag-profile-ring__svg circle.ag-ring-fill {
        fill: none;
        stroke: var(--sq-brand);
        stroke-width: 5;
        stroke-linecap: round;
        transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .ag-profile-ring__text {
        flex: 1;
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--sq-text);
    }

    .ag-profile-ring__text small {
        display: block;
        font-size: 0.72rem;
        font-weight: 400;
        color: var(--sq-text-sub);
        margin-top: 2px;
        line-height: 1.4;
    }

    /* ----- 3. Accordion Section (アコーディオンセクション) ----- */
    .ag-profile-section {
        margin: 0.75rem;
        background: var(--sq-card);
        border-radius: 1rem;
        box-shadow: 0 10px 30px rgba(91, 64, 61, 0.06);
        overflow: hidden;
    }

    .ag-profile-section__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px 10px;
        cursor: pointer;
        user-select: none;
        transition: background 0.2s;
    }

    .ag-profile-section__header:hover {
        background: var(--sq-washi);
    }

    .ag-profile-section__header .ag-section-icon {
        font-size: 18px;
        color: var(--sq-brand);
        margin-right: 6px;
    }

    .ag-profile-section__header .ag-section-title {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.9rem;
        font-weight: 900;
    }

    .ag-profile-section__header .ag-section-title::before {
        content: '';
        width: 4px;
        height: 18px;
        border-radius: 2px;
        background: linear-gradient(180deg, var(--sq-brand), var(--sq-brand-lt));
    }

    .ag-profile-section__header .ag-section-chevron {
        font-size: 20px;
        color: var(--sq-text-sub);
        transition: transform 0.3s ease;
        margin-left: 8px;
    }

    .ag-profile-section__header .ag-section-status {
        font-size: 0.7rem;
        font-weight: 700;
        padding: 2px 10px;
        border-radius: 999px;
        margin-right: 4px;
    }

    .ag-profile-section__body {
        padding: 4px 16px 16px;
        max-height: 800px;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
        opacity: 1;
    }

    /* 閉じた状態（--open なし） */
    .ag-profile-section:not(.ag-profile-section--open) .ag-profile-section__body {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        opacity: 0;
    }

    .ag-profile-section:not(.ag-profile-section--open) .ag-section-chevron {
        transform: rotate(-90deg);
    }

    /* 開いた状態 */
    .ag-profile-section--open .ag-profile-section__body {
        max-height: 800px;
        opacity: 1;
    }

    .ag-profile-section--open .ag-section-chevron {
        transform: rotate(0deg);
    }

    /* ----- 4. Form Elements (フォーム要素) ----- */

    /* スライダー */
    .ag-profile-slider {
        -webkit-appearance: none;
        appearance: none;
        width: 100%;
        height: 6px;
        border-radius: 3px;
        outline: none;
        background: linear-gradient(90deg, var(--sq-border) 0%, var(--sq-brand) 100%);
    }

    .ag-profile-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: var(--sq-card);
        border: 3px solid var(--sq-brand);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        cursor: pointer;
        transition: transform 0.2s;
    }

    .ag-profile-slider::-webkit-slider-thumb:active {
        transform: scale(1.15);
    }

    .ag-profile-slider::-moz-range-thumb {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: var(--sq-card);
        border: 3px solid var(--sq-brand);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        cursor: pointer;
    }

    .ag-profile-slider__label {
        display: flex;
        justify-content: space-between;
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--sq-text-sub);
        margin-bottom: 8px;
    }

    /* タグチップ */
    .ag-profile-tag {
        display: inline-flex;
        align-items: center;
        padding: 7px 16px;
        border-radius: 999px;
        background: var(--sq-washi);
        border: 1px solid var(--sq-border);
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--sq-text-sub);
        cursor: pointer;
        transition: all 0.25s;
        user-select: none;
    }

    .ag-profile-tag:active {
        transform: scale(0.95);
    }

    .ag-profile-tag--active {
        background: linear-gradient(135deg, #fff1f2, #ffe4e6);
        border-color: var(--sq-brand);
        color: var(--sq-brand);
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(178, 4, 17, 0.12);
        transform: scale(1.02);
    }

    /* 地域チップ（小さめ） */
    .ag-profile-region-tag {
        display: inline-flex;
        align-items: center;
        padding: 5px 12px;
        border-radius: 999px;
        background: var(--sq-washi);
        border: 1px solid var(--sq-border);
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--sq-text-sub);
        cursor: pointer;
        transition: all 0.25s;
        user-select: none;
    }

    .ag-profile-region-tag:active {
        transform: scale(0.95);
    }

    .ag-profile-region-tag--active {
        background: linear-gradient(135deg, #fef3c7, #fde68a);
        border-color: #d97706;
        color: #92400e;
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
    }

    /* 都道府県チップコンテナ（展開アニメ） */
    .ag-profile-pref-container {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
        margin-top: 0;
    }

    .ag-profile-pref-container--open {
        max-height: 300px;
        opacity: 1;
        margin-top: 8px;
    }

    /* 入力フィールド */
    .ag-profile-field {
        margin-bottom: 14px;
    }

    .ag-profile-field label {
        display: block;
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--sq-text-sub);
        margin-bottom: 6px;
    }

    .ag-profile-field input,
    .ag-profile-field select,
    .ag-profile-field textarea {
        display: block;
        width: 100%;
        padding: 10px 14px;
        border: 1px solid var(--sq-border);
        border-radius: 0.75rem;
        background: var(--sq-washi);
        font-family: inherit;
        font-size: 0.9rem;
        color: var(--sq-text);
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .ag-profile-field input:focus,
    .ag-profile-field select:focus,
    .ag-profile-field textarea:focus {
        outline: none;
        border-color: var(--sq-brand);
        box-shadow: 0 0 0 3px rgba(178, 4, 17, 0.2);
    }

    .ag-profile-field__hint {
        font-size: 0.7rem;
        color: var(--sq-text-sub);
        margin-top: 4px;
        line-height: 1.5;
        display: flex;
        align-items: center;
        gap: 3px;
    }

    /* ----- 5. CTA Button ----- */
    .ag-profile-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 16px;
        border: none;
        border-radius: 1rem;
        background: linear-gradient(135deg, var(--sq-brand), var(--sq-brand-lt));
        color: var(--sq-card);
        font-family: inherit;
        font-size: 1rem;
        font-weight: 900;
        letter-spacing: 0.03em;
        cursor: pointer;
        box-shadow: 0 8px 24px rgba(178, 4, 17, 0.2);
        transition: all 0.2s;
        animation: ag-profile-cta-pulse 2.5s ease-in-out infinite;
    }

    .ag-profile-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(178, 4, 17, 0.3);
    }

    .ag-profile-cta:active {
        transform: scale(0.97);
    }

    @keyframes ag-profile-cta-pulse {
        0%, 100% { box-shadow: 0 8px 24px rgba(178, 4, 17, 0.2); }
        50%      { box-shadow: 0 8px 32px rgba(178, 4, 17, 0.35); }
    }

    /* ----- 6. Bottom Sheet (ボトムシート) ----- */
    .ag-profile-sheet {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 300;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .ag-profile-sheet--open {
        opacity: 1;
        pointer-events: auto;
    }

    .ag-profile-sheet__panel {
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        width: 100%;
        max-width: 430px;
        max-height: 85vh;
        background: var(--sq-card);
        border-radius: 1.25rem 1.25rem 0 0;
        z-index: 301;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
    }

    .ag-profile-sheet--open .ag-profile-sheet__panel {
        transform: translateX(-50%) translateY(0);
    }

    .ag-profile-sheet__handle {
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: var(--sq-border);
        margin: 10px auto 6px;
    }

    .ag-profile-sheet__grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        max-height: 50vh;
        overflow-y: auto;
        padding-bottom: 20px;
    }

    .ag-profile-sheet__grid img {
        width: 100%;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        border-radius: 8px;
        cursor: pointer;
        transition: transform 0.15s;
    }

    .ag-profile-sheet__grid img:active {
        transform: scale(0.95);
    }

    /* ----- 7. Toast (トースト通知) ----- */
    .ag-profile-toast {
        position: fixed;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        padding: 14px 24px;
        background: var(--sq-text);
        color: var(--sq-card);
        border-radius: 1rem;
        font-size: 0.85rem;
        font-weight: 700;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 200;
        white-space: nowrap;
    }

    .ag-profile-toast.is-visible {
        transform: translateX(-50%) translateY(0);
    }

    /* ===================================================================
       #745: 酒蔵写真アップロード — アップロードUI + ライトボックスナビ
       =================================================================== */

    /* --- アップロード中オーバーレイ --- */
    .ag-upload-overlay {
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: rgba(0, 0, 0, 0.65);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .ag-upload-spinner {
        width: 40px;
        height: 40px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top-color: #fff;
        border-radius: 50%;
        animation: ag-spin 0.7s linear infinite;
    }

    @keyframes ag-spin {
        to { transform: rotate(360deg); }
    }

    .ag-upload-text {
        color: #fff;
        font-size: 0.875rem;
        font-weight: 700;
    }

    /* --- トースト --- */
    .ag-toast {
        position: fixed;
        bottom: 5rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10000;
        padding: 0.75rem 1.5rem;
        border-radius: 2rem;
        font-size: 0.8125rem;
        font-weight: 700;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        animation: ag-toast-in 0.3s ease-out;
        white-space: nowrap;
    }

    .ag-toast-success {
        background: linear-gradient(135deg, #10b981, #059669);
        color: #fff;
    }

    .ag-toast-error {
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: #fff;
    }

    @keyframes ag-toast-in {
        from { opacity: 0; transform: translateX(-50%) translateY(20px); }
        to   { opacity: 1; transform: translateX(-50%) translateY(0); }
    }

    /* --- ライトボックス ナビボタン --- */
    .ag-lb-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
        background: rgba(0, 0, 0, 0.45);
        color: #fff;
        border: none;
        border-radius: 50%;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s;
        -webkit-tap-highlight-color: transparent;
    }

    .ag-lb-nav:active {
        background: rgba(255, 255, 255, 0.25);
    }

    .ag-lb-prev { left: 0.75rem; }
    .ag-lb-next { right: 0.75rem; }

    /* --- ライトボックス カウンター --- */
    .ag-lb-counter {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.6875rem;
        font-weight: 600;
        margin-left: 0.5rem;
    }

    /* ===================================================================
       WebView 検出時ログイン画面 — ポジティブ誘導 UI
       =================================================================== */

    /* --- LINE ログインボタン強調 (WebView 時) --- */
    .ag-webview-line-cta {
        position: relative;
        padding: 1.125rem 1.5rem !important;
        font-size: 1.125rem !important;
        box-shadow: 0 0 0 0 rgba(6, 199, 85, 0.4);
        animation: ag-webview-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }

    @keyframes ag-webview-pulse {
        0%, 100% {
            box-shadow: 0 0 0 0 rgba(6, 199, 85, 0.4);
        }
        50% {
            box-shadow: 0 0 0 8px rgba(6, 199, 85, 0);
        }
    }

    .ag-webview-line-badge {
        position: absolute;
        top: -0.5rem;
        right: -0.25rem;
        background-color: #ef4444;
        color: white;
        font-size: 0.625rem;
        font-weight: 800;
        padding: 0.125rem 0.5rem;
        border-radius: 9999px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
        letter-spacing: 0.025em;
    }

    /* --- ポジティブ誘導ボックス --- */
    .ag-webview-info {
        background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
        border: 1px solid #a7f3d0;
        border-radius: 1rem;
        padding: 1.25rem;
        text-align: center;
    }

    .ag-webview-info-icon {
        font-size: 2rem;
        margin-bottom: 0.25rem;
    }

    .ag-webview-info-title {
        font-size: 0.9375rem;
        font-weight: 800;
        color: #065f46;
        margin-bottom: 0.25rem;
        line-height: 1.4;
    }

    .ag-webview-info-sub {
        font-size: 0.75rem;
        color: #047857;
        line-height: 1.5;
    }

    /* --- Google 手順ガイド (折りたたみ) --- */
    .ag-webview-guide {
        margin-top: 0.75rem;
    }

    .ag-webview-guide summary {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        font-size: 0.8125rem;
        font-weight: 700;
        color: #64748b;
        cursor: pointer;
        padding: 0.625rem 0;
        list-style: none;
        transition: color 0.2s;
    }

    .ag-webview-guide summary::-webkit-details-marker {
        display: none;
    }

    .ag-webview-guide summary::before {
        content: "▶";
        font-size: 0.625rem;
        transition: transform 0.2s;
    }

    .ag-webview-guide[open] summary::before {
        transform: rotate(90deg);
    }

    .ag-webview-guide summary:hover {
        color: #334155;
    }

    .ag-webview-guide-body {
        background-color: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 0.75rem;
        padding: 1rem;
        margin-top: 0.25rem;
    }

    .ag-webview-guide-steps {
        list-style: none;
        padding: 0;
        margin: 0 0 0.75rem 0;
        counter-reset: guide-step;
    }

    .ag-webview-guide-steps li {
        counter-increment: guide-step;
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        font-size: 0.8125rem;
        color: #334155;
        line-height: 1.5;
        padding: 0.375rem 0;
    }

    .ag-webview-guide-steps li::before {
        content: counter(guide-step);
        flex-shrink: 0;
        width: 1.375rem;
        height: 1.375rem;
        border-radius: 9999px;
        background-color: #3b82f6;
        color: white;
        font-size: 0.6875rem;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 0.125rem;
    }

    .ag-webview-guide-divider {
        height: 1px;
        background-color: #e2e8f0;
        margin: 0.5rem 0;
    }

    .ag-webview-guide-alt {
        font-size: 0.6875rem;
        color: #94a3b8;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    /* --- URLコピーボタン (WebView ガイド内) --- */
    .ag-webview-copy-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.375rem;
        width: 100%;
        padding: 0.625rem;
        background-color: white;
        border: 1px solid #cbd5e1;
        border-radius: 0.625rem;
        font-size: 0.8125rem;
        font-weight: 600;
        color: #475569;
        cursor: pointer;
        transition: all 0.15s;
    }

    .ag-webview-copy-btn:active {
        transform: scale(0.98);
        background-color: #f1f5f9;
    }

    .ag-webview-copy-btn .material-symbols-outlined {
        font-size: 1.125rem;
        color: #64748b;
    }

    .ag-webview-copy-success {
        font-size: 0.75rem;
        font-weight: 700;
        color: #16a34a;
        text-align: center;
        margin-top: 0.375rem;
    }

    /* --- Android: ブラウザで開くボタン --- */
    .ag-webview-open-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.375rem;
        width: 100%;
        padding: 0.75rem;
        background-color: #3b82f6;
        border-radius: 0.625rem;
        font-size: 0.875rem;
        font-weight: 700;
        color: white;
        text-decoration: none;
        transition: all 0.15s;
    }

    .ag-webview-open-btn:active {
        transform: scale(0.98);
        background-color: #2563eb;
    }

    .ag-webview-open-btn .material-symbols-outlined {
        font-size: 1.25rem;
    }

    /* --- iOS: URL プレビュー --- */
    .ag-webview-url-preview {
        background-color: #f1f5f9;
        border: 1px solid #e2e8f0;
        border-radius: 0.5rem;
        padding: 0.5rem 0.75rem;
        font-family: ui-monospace, "SF Mono", "Menlo", monospace;
        font-size: 0.6875rem;
        color: #475569;
        word-break: break-all;
        line-height: 1.5;
        margin-bottom: 0.5rem;
        text-align: left;
    }
}
