* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    font-size: 16px;
    background: #fffde8;
}

body {
    margin: 0;
    min-height: 100%;
    color: #3f3a2d;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        "Yu Gothic",
        sans-serif;
    background: #fffde8;
}

button,
input {
    font: inherit;
}

.customer-login-body {
    min-height: 100vh;
    min-height: 100dvh;
}

.customer-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding:
        max(20px, env(safe-area-inset-top))
        max(18px, env(safe-area-inset-right))
        max(20px, env(safe-area-inset-bottom))
        max(18px, env(safe-area-inset-left));
}

.customer-login-card {
    width: 100%;
    max-width: 420px;
    padding: 38px 28px;
    background: #ffffff;
    border: 1px solid #eee8ca;
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(82, 72, 40, 0.12);
}

.customer-login-header {
    margin-bottom: 28px;
    text-align: center;
}

.customer-login-service-name {
    margin: 0 0 10px;
    color: #8e7439;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.customer-login-header h1 {
    margin: 0;
    color: #3f3a2d;
    font-size: 28px;
    line-height: 1.4;
}

.customer-login-description {
    margin: 12px 0 0;
    color: #777064;
    font-size: 14px;
    line-height: 1.8;
}

.customer-login-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    color: #a33a32;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    background: #fff1ef;
    border: 1px solid #efc5c0;
    border-radius: 12px;
}

.customer-login-form {
    display: grid;
    gap: 16px;
}

.customer-login-field input {
    display: block;
    width: 100%;
    height: 54px;
    padding: 0 17px;
    color: #333333;
    font-size: 16px;
    background: #fffef6;
    border: 1px solid #dcd4b7;
    border-radius: 16px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.customer-login-field input::placeholder {
    color: #aaa69b;
    opacity: 1;
}

.customer-login-field input:focus {
    border-color: #8e7439;
    box-shadow: 0 0 0 4px rgba(142, 116, 57, 0.12);
}

.customer-login-button {
    width: 100%;
    height: 54px;
    margin-top: 4px;
    padding: 0 18px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    background: #8e7439;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    touch-action: manipulation;
}

.customer-login-button:active {
    transform: translateY(1px);
}

@media (max-width: 480px) {
    .customer-login-page {
        align-items: center;
        padding:
            max(16px, env(safe-area-inset-top))
            max(14px, env(safe-area-inset-right))
            max(16px, env(safe-area-inset-bottom))
            max(14px, env(safe-area-inset-left));
    }

    .customer-login-card {
        padding: 32px 20px;
        border-radius: 24px;
    }

    .customer-login-header {
        margin-bottom: 24px;
    }

    .customer-login-header h1 {
        font-size: 25px;
    }

    .customer-login-description {
        font-size: 13px;
    }

    .customer-login-field input,
    .customer-login-button {
        height: 52px;
    }
}

@media (max-height: 600px) {
    .customer-login-page {
        align-items: flex-start;
    }
}

/* 顧客側共通画面 */
.customers-body {
    min-height: 100vh;
    min-height: 100dvh;
    background: #fffde8;
}

.customers-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding-top: env(safe-area-inset-top);
    background: #8e7439;
}

.customers-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 520px);
    min-height: 62px;
    margin: 0 auto;
    padding:
        0
        max(16px, env(safe-area-inset-right))
        0
        max(16px, env(safe-area-inset-left));
}

.customers-header-logo {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.customers-menu-button {
    position: relative;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 9px;
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.customers-menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 3px 0;
    background: #ffffff;
    border-radius: 999px;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.customers-menu-button.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.customers-menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.customers-menu-button.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.customers-navigation {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    width: min(290px, 82vw);
    height: 100vh;
    height: 100dvh;
    padding:
        calc(84px + env(safe-area-inset-top))
        18px
        max(24px, env(safe-area-inset-bottom));
    background: #8e7439;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.customers-navigation.is-open {
    transform: translateX(0);
}

.customers-navigation a {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 15px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.customers-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    visibility: hidden;
    background: rgba(0, 0, 0, 0.34);
    opacity: 0;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.customers-menu-overlay.is-open {
    visibility: visible;
    opacity: 1;
}

.customers-menu-open {
    overflow: hidden;
}

.customers-main {
    width: 100%;
}

.customers-page {
    width: min(100%, 520px);
    min-height: calc(100vh - 62px);
    min-height: calc(100dvh - 62px);
    margin: 0 auto;
    padding:
        28px
        max(18px, env(safe-area-inset-right))
        max(28px, env(safe-area-inset-bottom))
        max(18px, env(safe-area-inset-left));
}

.customers-welcome {
    margin: 0;
    color: #3f3a2d;
    font-size: 20px;
    font-weight: 700;
}

/* 顧客側：スマホ画面幅に固定 */
.customers-body {
    width: 100%;
    background: #f3f0df;
}

.customers-header {
    width: min(100%, 430px);
    margin: 0 auto;
}

.customers-header-inner {
    width: 100%;
    max-width: 430px;
}

.customers-main {
    width: min(100%, 430px);
    min-height: calc(100vh - 62px);
    min-height: calc(100dvh - 62px);
    margin: 0 auto;
    background: #fffde8;
}

.customers-page {
    width: 100%;
    max-width: 430px;
}

@media (max-width: 430px) {
    .customers-header,
    .customers-main {
        width: 100%;
    }
}

/* 顧客側ヘッダー：メニューバー削除、ロゴ中央 */
.customers-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.customers-header-logo {
    text-align: center;
}

.customers-menu-button,
.customers-navigation,
.customers-menu-overlay {
    display: none !important;
}

/* 顧客トップ：丸角の白枠 */
.customers-top-card {
    width: min(100%, 380px);
    min-height: 220px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #eee8ca;
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(82, 72, 40, 0.08);
}

/* 顧客トップ：名前と白枠の間隔 */
.customers-welcome {
    margin-bottom: 18px;
}

.customers-top-card {
    margin-top: 0;
}

/* 顧客トップ：契約中回数券のトップ画像 */
.customers-top-card {
    padding-top: 20px;
    overflow: hidden;
}

.customers-plan-image-wrap {
    width: 100%;
    padding: 0 20px;
}

.customers-plan-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

/* 顧客トップ：トップ画像の左右余白を削除 */
.customers-plan-image-wrap {
    width: 100%;
    padding: 0;
}

.customers-plan-image {
    width: 100%;
    border-radius: 0;
}

/* 顧客トップ：画像下のサービス名 */
.customers-plan-service-name {
    margin: 30px 20px 0;
    color: #3f3a2d;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

/* 顧客トップ：サービス名を細字に変更 */
.customers-plan-service-name {
    font-size: 20px;
    font-weight: 400;
}

/* 顧客トップ：サービス名 */
.customers-plan-service-name {
    font-size: 15px;
    font-weight: 400;
}

/* 顧客トップ：契約回数券名 */
.customers-plan-title {
    margin: 15px 20px 0;
    color: #3f3a2d;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

/* 顧客トップ：契約回数券名 */
.customers-plan-title {
    margin: 15px 20px 0;
    color: #3f3a2d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

/* 顧客トップ：白枠の角丸を14pxに変更 */
.customers-top-card {
    border-radius: 14px;
}

/* 顧客トップ：画像上の余白を15pxに変更 */
.customers-top-card {
    padding-top: 15px;
}

/* 顧客トップ：回数券名称の上余白を10pxに変更 */
.customers-plan-title {
    margin-top: 10px;
}

/* 顧客トップ：回数券名の下に区切り線 */
.customers-plan-title {
    padding-bottom: 7px;
    margin-bottom: 0;
    border-bottom: 1px solid #dddddd;
    margin-left: 20px;
    margin-right: 20px;
}

/* 顧客トップ：使用回数ラベル */
.customers-plan-usage-label {
    margin: 10px 20px 0;
    color: #3f3a2d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

/* 顧客トップ：使用回数を左右に配置 */
.customers-plan-usage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 20px 0;
}

.customers-plan-usage-label,
.customers-plan-usage-count {
    margin: 0;
    color: #3f3a2d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.customers-plan-usage-count {
    text-align: right;
    white-space: nowrap;
}

/* 顧客トップ：使用回数プログレスバー */
.customers-plan-progress {
    width: calc(100% - 40px);
    height: 9px;
    margin: 7px 20px 0;
    overflow: hidden;
    background: #e5e5e5;
    border-radius: 999px;
}

.customers-plan-progress-fill {
    height: 100%;
    background: linear-gradient(
        90deg,
        #397df0 0%,
        #43bad3 100%
    );
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* 顧客トップ：回数券の有効期限 */
.customers-plan-expiration {
    margin: 10px 20px 0;
    color: #3f3a2d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    text-align: right;
}

/* 顧客トップ：有効期限の下余白 */
.customers-plan-expiration {
    margin-bottom: 10px;
}

/* 顧客トップ：画像・回数券名リンク */
.customers-plan-image-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.customers-plan-title {
    display: block;
    text-decoration: none;
}

/* 顧客側：回数券詳細 */
.customers-plan-detail-page {
    width: 100%;
    max-width: 430px;
    min-height: calc(100vh - 62px);
    min-height: calc(100dvh - 62px);
    margin: 0 auto;
    padding:
        28px
        20px
        max(32px, env(safe-area-inset-bottom));
    background: #fffde8;
}

.customers-plan-detail-section {
    margin-bottom: 28px;
}

.customers-plan-detail-label {
    margin: 0 0 12px;
    color: #777064;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.customers-plan-detail-store {
    margin: 0;
    color: #3f3a2d;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}

.customers-plan-detail-name {
    margin: 0;
    color: #3f3a2d;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
}

.customers-plan-detail-content {
    margin: 0;
    color: #3f3a2d;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.9;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.customers-plan-detail-information {
    display: grid;
    gap: 14px;
    margin-top: 40px;
}

.customers-plan-detail-information-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.customers-plan-detail-information-row span,
.customers-plan-detail-information-row strong {
    color: #3f3a2d;
    font-size: 16px;
    line-height: 1.5;
}

.customers-plan-detail-information-row span {
    font-weight: 400;
}

.customers-plan-detail-information-row strong {
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.customers-plan-history-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.customers-plan-history-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1.08;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 3px 9px rgba(60, 55, 45, 0.12);
}

.customers-plan-history-number {
    position: absolute;
    top: 7px;
    left: 8px;
    color: #222222;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.customers-plan-history-check {
    position: relative;
    width: 58px;
    height: 58px;
    border: 8px solid #75cbd7;
    border-radius: 50%;
}

.customers-plan-history-check span {
    position: absolute;
    top: 11px;
    left: 12px;
    width: 27px;
    height: 14px;
    border-left: 8px solid #75cbd7;
    border-bottom: 8px solid #75cbd7;
    transform: rotate(-45deg);
}

.customers-plan-history-date {
    position: absolute;
    right: 5px;
    bottom: 7px;
    left: 5px;
    color: #333333;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 370px) {
    .customers-plan-history-grid {
        gap: 10px;
    }

    .customers-plan-history-card {
        border-radius: 8px;
    }

    .customers-plan-history-check {
        width: 48px;
        height: 48px;
        border-width: 7px;
    }

    .customers-plan-history-check span {
        top: 9px;
        left: 9px;
        width: 23px;
        height: 12px;
        border-left-width: 7px;
        border-bottom-width: 7px;
    }

    .customers-plan-history-date {
        font-size: 10px;
    }
}

/* 顧客側：回数券詳細ページの余白を縮小 */
.customers-plan-detail-page {
    padding-top: 20px;
}

.customers-plan-detail-section {
    margin-bottom: 18px;
}

.customers-plan-detail-label {
    margin-bottom: 6px;
}

.customers-plan-detail-content {
    line-height: 1.65;
}

.customers-plan-detail-information {
    gap: 10px;
    margin-top: 24px;
}

.customers-plan-history-grid {
    margin-top: 18px;
}

/* 回数券詳細：見出しと中身の間隔を3pxに統一 */
.customers-plan-detail-label {
    margin-bottom: 3px;
}

/* 回数券詳細：「内容」と本文の間隔を3pxに固定 */
.customers-plan-detail-section:nth-of-type(3) {
    display: grid;
    gap: 3px;
}

.customers-plan-detail-section:nth-of-type(3)
.customers-plan-detail-label,
.customers-plan-detail-section:nth-of-type(3)
.customers-plan-detail-content {
    margin: 0;
}

/* 回数券詳細：内容見出しと本文の間隔を3pxに固定 */
.customers-plan-detail-section:nth-child(3) {
    display: block;
}

.customers-plan-detail-section:nth-child(3)
.customers-plan-detail-label {
    margin: 0 0 3px;
}

.customers-plan-detail-section:nth-child(3)
.customers-plan-detail-content {
    margin: 0;
}

/* 顧客側：回数履歴カードの高さを縮小 */
.customers-plan-history-card {
    aspect-ratio: auto;
    height: 92px;
}

.customers-plan-history-check {
    width: 46px;
    height: 46px;
    border-width: 6px;
}

.customers-plan-history-check span {
    top: 8px;
    left: 9px;
    width: 21px;
    height: 11px;
    border-left-width: 6px;
    border-bottom-width: 6px;
}

.customers-plan-history-number {
    top: 6px;
    left: 7px;
    font-size: 15px;
}

.customers-plan-history-date {
    bottom: 5px;
    font-size: 10px;
}

/* 顧客側：回数履歴カードを正方形に変更 */
.customers-plan-history-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}

/* 回数履歴カード：チェックと使用日を枠内全体に配置 */
.customers-plan-history-card {
    display: grid;
    grid-template-rows: minmax(0, 1fr) 24px;
    align-items: stretch;
    justify-items: stretch;
    padding: 8px 7px 6px;
}

.customers-plan-history-check {
    position: relative;
    align-self: center;
    justify-self: center;
    width: min(58%, 58px);
    height: auto;
    aspect-ratio: 1 / 1;
    border-width: 7px;
}

.customers-plan-history-check span {
    top: 23%;
    left: 22%;
    width: 52%;
    height: 27%;
    border-left-width: 7px;
    border-bottom-width: 7px;
}

.customers-plan-history-date {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    color: #333333;
    font-size: 11px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.customers-plan-history-number {
    z-index: 2;
    top: 7px;
    left: 8px;
}

/* 回数履歴カード：チェックと日付を枠内いっぱいに再調整 */
.customers-plan-history-card {
    display: grid;
    grid-template-rows: minmax(0, 1fr) 24px;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 5px 5px 4px;
}

.customers-plan-history-check {
    position: relative;
    align-self: center;
    justify-self: center;
    width: 66px;
    height: 66px;
    aspect-ratio: auto;
    border: 7px solid #75cbd7;
    border-radius: 50%;
}

.customers-plan-history-check span {
    position: absolute;
    top: 14px;
    left: 15px;
    width: 31px;
    height: 16px;
    border-left: 7px solid #75cbd7;
    border-bottom: 7px solid #75cbd7;
    transform: rotate(-45deg);
}

.customers-plan-history-date {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    margin: 0;
    color: #333333;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.customers-plan-history-number {
    position: absolute;
    z-index: 2;
    top: 6px;
    left: 7px;
    font-size: 15px;
}

@media (max-width: 370px) {
    .customers-plan-history-check {
        width: 58px;
        height: 58px;
    }

    .customers-plan-history-check span {
        top: 12px;
        left: 13px;
        width: 27px;
        height: 14px;
        border-left-width: 6px;
        border-bottom-width: 6px;
    }

    .customers-plan-history-date {
        font-size: 10px;
    }
}

/* 顧客側：回数券詳細の戻るボタン */
.customers-plan-back-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    margin-bottom: 16px;
    padding: 0 12px;
    color: #8e7439;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #dcd4b7;
    border-radius: 10px;
}

.customers-plan-back-button span {
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

.customers-plan-back-button:active {
    transform: translateY(1px);
}

/* 顧客トップ：回数券名称をリンクらしく表示 */
.customers-plan-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2b67d1;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.customers-plan-title::after {
    content: "›";
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.customers-plan-title:hover {
    opacity: 0.75;
}

/* 顧客トップ：回数券名称の矢印を非表示 */
.customers-plan-title::after {
    content: none;
}

/* 顧客トップ：2つ目の白枠 */
.customers-top-second-card {
    min-height: 220px;
    margin-top: 25px;
    padding-top: 0;
}

/* 顧客トップ：固定スタンプカード画像 */
.customers-top-second-card {
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.customers-stamp-card-image {
    display: block;
    width: 100%;
    height: auto;
}

/* 顧客トップ：固定スタンプカード画像の上余白 */
.customers-top-second-card {
    padding-top: 20px;
}

.customers-stamp-card-image {
    width: 100%;
}

/* 顧客トップ：スタンプカード画像の上余白を15pxに変更 */
.customers-top-second-card {
    padding-top: 15px;
}

/* 顧客トップ：スタンプカード画像下の店舗名 */
.customers-stamp-card-service-name {
    margin: 15px 20px 0;
    color: #3f3a2d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

/* 顧客トップ：ポイントカード名称 */
.customers-stamp-card-title {
    margin: 10px 20px 15px;
    color: #3f3a2d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

/* 顧客トップ：ポイントカード名の下に区切り線 */
.customers-stamp-card-title {
    padding-bottom: 7px;
    border-bottom: 1px solid #dddddd;
    margin-left: 20px;
    margin-right: 20px;
}

/* 顧客トップ：ポイントカード名の下に区切り線 */
.customers-stamp-card-title {
    padding-bottom: 7px;
    border-bottom: 1px solid #dddddd;
    margin-left: 20px;
    margin-right: 20px;
}

/* 顧客トップ：回数券名称下のグレー線を左右20pxまで表示 */
.customers-plan-title {
    display: block;
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
    padding-bottom: 7px;
    border-bottom: 1px solid #dddddd;
}

/* 顧客トップ：ポイントカードの使用回数ラベル */
.customers-stamp-card-usage-label {
    margin: 10px 20px 0;
    color: #3f3a2d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

/* 顧客トップ：ポイントカード使用回数を左右配置 */
.customers-stamp-card-usage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 20px 0;
}

.customers-stamp-card-usage-label,
.customers-stamp-card-usage-count {
    margin: 0;
    color: #3f3a2d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.customers-stamp-card-usage-count {
    text-align: right;
    white-space: nowrap;
}

/* 顧客トップ：ポイントカードのプログレスバー */
.customers-stamp-card-progress {
    width: calc(100% - 40px);
    height: 9px;
    margin: 7px 20px 15px;
    overflow: hidden;
    background: #e5e5e5;
    border-radius: 999px;
}

.customers-stamp-card-progress-fill {
    height: 100%;
    background: linear-gradient(
        90deg,
        #397df0 0%,
        #43bad3 100%
    );
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* 顧客トップ：ポイントカードの有効期限 */
.customers-stamp-card-expiration {
    margin: 10px 20px 10px;
    color: #3f3a2d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    text-align: right;
}

/* ポイントカードを回数券と同じ余白・文字設定に統一 */
.customers-stamp-card-service-name {
    margin: 30px 20px 0;
    color: #3f3a2d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.customers-stamp-card-title {
    width: calc(100% - 40px);
    margin: 10px 20px 0;
    padding-bottom: 7px;
    color: #3f3a2d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    border-bottom: 1px solid #dddddd;
}

.customers-stamp-card-usage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 20px 0;
}

.customers-stamp-card-usage-label,
.customers-stamp-card-usage-count {
    margin: 0;
    color: #3f3a2d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.customers-stamp-card-progress {
    width: calc(100% - 40px);
    height: 9px;
    margin: 7px 20px 0;
    overflow: hidden;
    background: #e5e5e5;
    border-radius: 999px;
}

.customers-stamp-card-expiration {
    margin: 10px 20px 10px;
    color: #3f3a2d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    text-align: right;
}

/* 顧客トップ：ポイントカードリンク */
.customers-stamp-card-image-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.customers-stamp-card-title {
    display: block;
    color: #2b67d1;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* 顧客側：ポイントカード確認画面 */
.customers-stamp-page {
    width: 100%;
    max-width: 430px;
    min-height: calc(100vh - 62px);
    min-height: calc(100dvh - 62px);
    margin: 0 auto;
    padding:
        20px
        20px
        max(32px, env(safe-area-inset-bottom));
    background: #fffde8;
}

.customers-stamp-detail-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #eee8ca;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(82, 72, 40, 0.08);
}

.customers-stamp-detail-image {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 15px;
}

.customers-stamp-detail-service-name {
    margin: 30px 20px 0;
    color: #3f3a2d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.customers-stamp-detail-title {
    width: calc(100% - 40px);
    margin: 10px 20px 0;
    padding-bottom: 7px;
    color: #3f3a2d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    border-bottom: 1px solid #dddddd;
}

.customers-stamp-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 20px 0;
}

.customers-stamp-detail-row span,
.customers-stamp-detail-row strong {
    color: #3f3a2d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.customers-stamp-detail-progress {
    width: calc(100% - 40px);
    height: 9px;
    margin: 7px 20px 0;
    overflow: hidden;
    background: #e5e5e5;
    border-radius: 999px;
}

.customers-stamp-detail-progress-fill {
    height: 100%;
    background: linear-gradient(
        90deg,
        #397df0 0%,
        #43bad3 100%
    );
    border-radius: 999px;
}

.customers-stamp-detail-expiration {
    margin: 10px 20px 10px;
    color: #3f3a2d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    text-align: right;
}

.customers-stamp-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 22px;
}

.customers-stamp-grid-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(60, 55, 45, 0.1);
}

.customers-stamp-grid-item.is-stamped {
    background: #eef9fb;
    border-color: #75cbd7;
}

.customers-stamp-grid-number {
    position: absolute;
    top: 5px;
    left: 6px;
    color: #555555;
    font-size: 10px;
    font-weight: 700;
}

.customers-stamp-grid-mark {
    color: #43bad3;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

/* 顧客側：スタンプ数を肉球で表示 */
.customers-paw-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 0 4px;
}

.customers-paw-stamp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    line-height: 1;
}

.customers-paw-empty {
    width: 100%;
    margin: 0;
    color: #8a8375;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}

/* 顧客側：肉球スタンプを6個ずつ表示 */
.customers-paw-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 24px;
    padding: 0;
}

.customers-paw-stamp-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.customers-paw-empty {
    grid-column: 1 / -1;
    margin: 0;
    color: #8a8375;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}

/* 顧客側：ポイントカード履歴を回数券と同じ白枠で表示 */
.customers-stamp-page .customers-plan-history-grid {
    margin-top: 24px;
}

.customers-stamp-page .customers-plan-history-card {
    background: #ffffff;
}

.customers-stamp-page
.customers-plan-history-card:not(.is-used) {
    min-height: 0;
}

/* ポイントカード履歴：チェックの代わりに肉球を表示 */
.customers-stamp-page .customers-stamp-history-paw {
    display: block;
    align-self: center;
    justify-self: center;
    width: 68px;
    height: 68px;
    object-fit: contain;
}

@media (max-width: 370px) {
    .customers-stamp-page .customers-stamp-history-paw {
        width: 58px;
        height: 58px;
    }
}

/* 顧客ログイン・新規登録：補助表示 */
.customer-login-field label {
    display: block;
    margin: 0 0 7px 3px;
    color: #5d5648;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.customer-login-success {
    margin-bottom: 18px;
    padding: 12px 14px;
    color: #426b42;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    background: #f0f8ed;
    border: 1px solid #c8dfc2;
    border-radius: 12px;
}

.customer-login-navigation {
    margin-top: 24px;
    padding-top: 22px;
    text-align: center;
    border-top: 1px solid #eee8ca;
}

.customer-login-navigation p {
    margin: 0 0 10px;
    color: #777064;
    font-size: 13px;
    line-height: 1.6;
}

.customer-register-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 10px 16px;
    color: #8e7439;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    background: #fffef6;
    border: 1px solid #8e7439;
    border-radius: 16px;
    cursor: pointer;
    touch-action: manipulation;
}

.customer-register-link:active {
    transform: translateY(1px);
}



/* ポイントカード：有効期限がない場合も下側に10px余白 */
.customers-stamp-card-progress {
    margin-bottom: 10px;
}

/* ポイントカード詳細：カラーバー下に10px余白 */
.customers-stamp-detail-progress {
    margin-bottom: 10px;
}

/* 複数回数券：2枚目以降 */
.customers-top-multiple-plan-card { margin-top:25px; }

/* 顧客側回数券：有効期限未設定時の下余白 */
.customers-plan-progress {
    margin-bottom: 7px;
}
/* ===== customer top coupons ===== */

.customers-coupon-section {
    width: 100%;
    margin-top: 25px;
}

.customers-coupon-section-title {
    margin: 0 0 12px;
    padding: 0 4px;
    color: #3f3a2d;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}

.customers-coupon-list {
    display: grid;
    gap: 14px;
}

.customers-coupon-card {
    position: relative;
    display: grid;
    grid-template-columns:
        92px
        minmax(0, 1fr);
    min-height: 120px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3d7a8;
    border-radius: 14px;
    box-shadow:
        0 8px 22px
        rgba(82, 72, 40, 0.08);
}

.customers-coupon-ticket-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    writing-mode: vertical-rl;
    background: #8e7439;
}

.customers-coupon-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 20px;
}

.customers-coupon-content::before,
.customers-coupon-content::after {
    position: absolute;
    left: -9px;
    width: 18px;
    height: 18px;
    content: "";
    background: #fffde8;
    border-radius: 50%;
}

.customers-coupon-content::before {
    top: -9px;
}

.customers-coupon-content::after {
    bottom: -9px;
}

.customers-coupon-name {
    margin: 0;
    color: #3f3a2d;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.customers-coupon-description {
    margin: 8px 0 0;
    color: #6f6859;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 370px) {
    .customers-coupon-card {
        grid-template-columns:
            78px
            minmax(0, 1fr);
    }

    .customers-coupon-content {
        padding: 18px 16px;
    }

    .customers-coupon-name {
        font-size: 17px;
    }
}

/* ===== /customer top coupons ===== */

/* クーポン説明：改行後も1行目と同じ左位置に揃える */
.customers-coupon-description {
    display: block;
    width: 100%;
    margin: 8px 0 0;
    padding: 0;
    text-align: left;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

