/* Supplied design details adapted to real forms and data. Loaded after legacy flow styles. */
.bottom-nav a > span { font-size: 22px; line-height: 1; }
.support-panel.legal-panel {
    border: 2px solid var(--pink);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, .96);
}
.legal-copy { line-height: 1.9; overflow-wrap: anywhere; }
.legal-copy h2 { font-size: 1.1rem; margin: 2em 0 .7em; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy p { margin: 0 0 1.2em; }
.legal-copy li { margin-bottom: 1.2em; }
.help-list .help-answer { padding: 0 18px 18px; line-height: 1.85; overflow-wrap: anywhere; }
.support-form.contact-form { max-width: 760px; }
.support-form .contact-check, .auth-form .auth-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-weight: 600;
}
.support-form .contact-check input, .auth-check input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 3px;
    accent-color: var(--pink);
}
.auth-profile-section summary { font-weight: 800; cursor: pointer; margin-bottom: 14px; }
.auth-profile-grid { grid-template-columns: minmax(0, 1fr); }
.social-login { margin: 18px 0; }
@font-face {
    font-family: "Google Sans Login";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/google-sans/GoogleSans-Medium.ttf") format("truetype");
}
.social-btn {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 56px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
}
.social-btn:focus-visible { outline: 3px solid #174ea6; outline-offset: 3px; }
.social-provider-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.social-provider-icon img { display: block; object-fit: contain; }
.social-provider-label { flex: 1; white-space: nowrap; }
.social-btn.google {
    padding: 0 12px;
    border: 1px solid #747775;
    color: #1f1f1f;
    font-family: "Google Sans Login", "Noto Sans JP", Arial, sans-serif;
    gap: 10px;
}
.social-btn.google .social-provider-label { margin-right: 30px; }
.social-btn.google::after {
    content: ""; position: absolute; inset: 0; background: #1f1f1f; opacity: 0; pointer-events: none;
}
.social-btn.google:enabled:hover::after { opacity: .08; }
.social-btn.google:enabled:active::after { opacity: .12; }
.social-btn.line { background: #06c755; color: #fff; }
.social-btn.line .social-provider-icon {
    width: 56px; align-self: stretch; border-right: 1px solid rgb(0 0 0 / 8%);
}
.social-btn.line .social-provider-label { padding: 18px 32px; }
.social-btn.line:enabled:hover { background: linear-gradient(rgb(0 0 0 / 10%), rgb(0 0 0 / 10%)), #06c755; }
.social-btn.line:enabled:active { background: linear-gradient(rgb(0 0 0 / 30%), rgb(0 0 0 / 30%)), #06c755; }
.social-btn:disabled { cursor: not-allowed; }
.recent-orders { margin-bottom: 24px; }
#profile-form { margin-top: 24px; border: 2px solid var(--pink); border-radius: 18px; }
.shipping-form-grid .shipping-field { align-content: start; }
.shipping-form-grid .shipping-field input:not([type="checkbox"]):not([type="hidden"]),
.shipping-form-grid .shipping-field textarea {
    width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit;
}
.shipping-form-grid .shipping-field input:focus,
.shipping-form-grid .shipping-field textarea:focus { border-color: var(--pink); }
.recent-order-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
}
.recent-order-row:last-child { border-bottom: 0; }
.recent-order-row img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; }
.recent-order-row small { display: block; margin-top: 5px; color: var(--muted); overflow-wrap: anywhere; }
.renewal-qty { display: inline-flex; width: max-content; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.renewal-qty button { width: 42px; height: 42px; border: 0; background: #fff; color: var(--pink); font-size: 22px; cursor: pointer; }
.renewal-qty button:disabled { color: #b8b8b8; cursor: default; }
.renewal-qty select, .lot-ticket-control .renewal-qty select {
    width: 78px; min-width: 0; min-height: 42px; border: 0; border-radius: 0;
    margin: 0; padding: 0 8px; background: #fff; color: var(--ink); font-weight: 800; text-align: center;
}
.product-gallery-panel .detail-accordion { margin-top: 24px; }
.buy-box .visual-card-meta { display: block; }
.cart-added-dialog { width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 0; border-radius: 18px; padding: 26px; color: var(--ink); }
.cart-added-dialog::backdrop { background: rgb(0 0 0 / 50%); }
.cart-added-dialog .modal-head button { border: 0; background: transparent; font-size: 28px; }
.cart-added-dialog .cart-added { display: flex; align-items: center; gap: 20px; margin: 24px 0; }
.cart-added-dialog .cart-added img { width: 100px; height: 100px; object-fit: contain; }
.cart-added-dialog h3 { font-size: 18px; }
.collection-deliveries { font-size: 12px; overflow-wrap: anywhere; }
.collection-deliveries summary { cursor: pointer; }
.collection-deliveries small { display: block; margin-top: 6px; }
@media (max-width: 880px) {
    .product-gallery-panel .thumb { width: 72px; flex: 0 0 72px; }
}
@media (max-width: 760px) {
    .support-panel.legal-panel { padding: 12px; }
    .auth-card { padding: 36px 20px; margin: 18px auto 55px; }
    .oshi-purchase-page { padding-inline: 14px; }
    .header-actions .icon-link span { display: inline; }
    .header-actions .icon-link { gap: 4px; font-size: 11px; padding: 8px; }
    .header-actions .icon-link img { display: none; }
    .recent-order-row { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
    .recent-order-row img { width: 48px; height: 48px; }
    .recent-order-row .status { grid-column: 2; width: fit-content; }
    .recent-order-row > strong { grid-column: 2; }
    .cart-added-dialog { padding: 20px; }
    .cart-added-dialog .modal-actions { flex-direction: column; align-items: stretch; }
}

/* Legacy TOP / Oshikuji: dim only the artwork to 75%, retaining its colors and readable labels. */
.storefront-redesign .oshilot-banner-card.is-closed,
.storefront-redesign .oshilot-banner-card.is-closed:hover { filter:none; opacity:1; }
.storefront-redesign .oshilot-banner-card.is-closed img { filter:brightness(.75); opacity:1; }

/* Keep the complete banner artwork and use a compact caption on TOP and the lists. */
.storefront-redesign :is(.card-grid[aria-label="クリエイター一覧"], .oshilot-banner-grid) {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}
.storefront-redesign :is(.card-grid[aria-label="クリエイター一覧"], .oshilot-banner-grid) > a {
    min-width: 0;
    border-radius: 0 0 12px 12px;
}
.storefront-redesign .card-grid[aria-label="クリエイター一覧"] .visual-card-media,
.storefront-redesign .oshilot-banner-card .oshilot-banner-media {
    display: block;
    aspect-ratio: auto;
    background: #fff;
}
.storefront-redesign .card-grid[aria-label="クリエイター一覧"] .visual-card-media img,
.storefront-redesign .oshilot-banner-media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.storefront-redesign :is(.card-grid[aria-label="クリエイター一覧"], .oshilot-banner-grid) .visual-card-body {
    padding: 7px 10px 8px;
}
.storefront-redesign :is(.card-grid[aria-label="クリエイター一覧"], .oshilot-banner-grid) .visual-card-title {
    height: auto;
    min-height: 0;
}
.storefront-redesign :is(.card-grid[aria-label="クリエイター一覧"], .oshilot-banner-grid) .visual-card-meta {
    margin-top: 4px;
    min-height: 0;
}
@media (max-width: 880px) {
    .storefront-redesign :is(.card-grid[aria-label="クリエイター一覧"], .oshilot-banner-grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}
/* Checkout address confirmation and postal lookup. */
.checkout-address [hidden] { display: none !important; }
.checkout-address h2 { margin: 0; }
.checkout-address p { margin: 0 0 .55rem; overflow-wrap: anywhere; }
.checkout-address-recipient { font-weight: 700; }
.checkout-address-help { color: #60616b; font-size: .85rem; line-height: 1.65; }
.checkout-postal-search { display: flex; gap: .5rem; align-items: stretch; }
.checkout-postal-search input { min-width: 0; flex: 1; }
.checkout-address button { cursor: pointer; font: inherit; font-size: .875rem; border-radius: 5px; padding: .6rem .8rem; min-height: 42px; }
.checkout-address button:disabled { opacity: .6; cursor: wait; }
.address-secondary-button { border: 1px solid #bbbcc6; background: #fff; color: #282735; }
.address-primary-button { border: 1px solid var(--pink, #e600a9); background: var(--pink, #e600a9); color: #fff; font-weight: 700 !important; }
.address-manual-button { border: 0; background: transparent; color: #60616b; text-decoration: underline; text-align: left; padding-left: 0 !important; }
.checkout-address-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.checkout-address .shipping-field select { width: 100%; min-height: 42px; border: 1px solid #d5d5dd; border-radius: 5px; padding: .45rem .6rem; background: #fff; font: inherit; }
.address-field-error { color: #ba1829; font-size: .82rem; font-weight: 600; }
.address-field-error:empty { display: none; }
.checkout-address [aria-invalid="true"] { border: 2px solid #ba1829 !important; }
.checkout-address [data-address-region] { padding: .6rem .75rem; background: #f6f5f8; border-radius: 5px; }
