﻿
.mypage { width: 900px; margin: 32px auto 60px; padding: 0 24px; }
.mypage--narrow { width: 720px; margin: 32px auto 60px; padding: 0 24px; }
.mypage--mid { width: 760px; margin: 32px auto 60px; padding: 0 24px; }

@media (max-width: 640px) {
    .mypage,
    .mypage--narrow,
    .mypage--mid {
        width: 100%;
        padding: 0 16px;
        margin: 24px auto 60px;
    }
}

.section-block {
    margin-bottom: 24px;
}

h1, h2 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
}

/* プロフィールカード */
.profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.profile-name {
    font-size: 18px;
    font-weight: 800;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.profile-row span {
    color: #6b7280;
    font-size: 13px;
    letter-spacing: 0.01em;
}
.profile-row strong {
    font-weight: 500;
    color: #2f2f2f;
}
.profile-summary-card {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.profile-summary-title {
    font-weight: 800;
    color: #444;
}
.profile-summary-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #555;
}

.profile-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}
.form-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    /* gap: 14px; */
    position: relative;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}
.form-field {
    display: flex;
    flex-direction: column;
    /* gap: 6px; */
}

.profile-meta {
    font-size: 13px;
    color: var(--c-text-sub);
}

/* 設定カード */
.settings-card {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--c-border);
    font-weight: 700;
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-label { font-size: 15px; }
.setting-arrow { color: #aaa; font-size: 18px; }

.logout-btn {
    margin-top: 8px;
    color: #E32020;
    font-weight: var(--btn-font-weight);
    font-size: var(--btn-font-size);
    text-align: left;
    background: none;
    border: none;
    padding: 8px 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 注文履歴 */
.order-list { display: flex; flex-direction: column; gap: 18px; margin-top: 12px; }

.order-card {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--c-border);
    background: var(--c-bg-white);
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}
.order-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.order-body {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    align-items: center;
}
.order-details {
    width: auto;
    margin-right: auto;
}


.order-thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: var(--thumb-bg, #f2f2f2);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    overflow: hidden;
    position: relative;
}
.order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.thumb-count {
    position: absolute;
    bottom: 6px;
    right: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.order-meta { color: var(--c-text-sub); font-size: 12px; }
.order-title { font-size: 14px; font-weight: 800; margin: 4px 0; }
.order-price { font-size: 18px; font-weight: 900; color: #E32020; }
.order-card.status-cancelled .order-price { color: #9ca3af; }
.order-meta { line-height: 1.5; word-break: break-word; }

.order-badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid;
}
.order-badge.status-placed { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.order-badge.status-making { color: #166534; border-color: #bbf7d0; background: #ecfdf3; }
.order-badge.status-shipped { color: #92400e; border-color: #fed7aa; background: #fff7ed; }
.order-badge.status-cancelled { color: #b91c1c; border-color: #fecdd3; background: #fff1f2; }

.no-orders {
    color: #999;
    padding: 20px 0;
    text-align: center;
    display: none;
}

/* cards */
.c-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--c-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.order-list { padding-bottom: 12px; }

@media (max-width: 640px) {
    .order-body {
        grid-template-columns: 80px 1fr;
        grid-template-areas:
            "thumb title"
            "thumb meta"
            "thumb price";
        gap: 4px;
    }
    .order-thumb { grid-area: thumb; }
    .order-price { grid-area: price; justify-self: start; margin-top: -2px; font-size: 16px; line-height: 1.2; margin-bottom: 8px;}
    .order-title { grid-area: title; }
    .order-meta { grid-area: meta; }
    .order-head {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }
    .order-price { margin-left: 0; }
    /* .order-meta { width: 100%; } */

    .auth-actions--row {
        flex-direction: column-reverse !important;
        gap: 20px !important;
    }
    .account-delete-card {
        justify-content: center;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }
    .account-delete-card .account-delete-copy {
        text-align: center;
    }
}

/* auth / forms */
.auth-container {
    width: 900px;
    margin: 60px auto 80px;
    padding: 0 24px;
    text-align: center;
}
.auth-container.auth-narrow {
    width: 640px;
}
.auth-title { font-size: 18px; font-weight: 800; margin: 0 0 24px; }
.auth-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}
.auth-card .c-input { margin-bottom: 14px; }
.auth-card .c-label { text-align: left; }
.auth-message { margin-top: 12px; color: #666; font-size: 12px; }
.auth-note-title { font-size: 12px; font-weight: 700; color: #555; margin-bottom: 8px; }
.contact-select {
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m8 10 4 4 4-4' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: calc(100% - 14px) 50%;
    background-size: 14px 14px;
    background-repeat: no-repeat;
    padding-right: 38px;
}
.auth-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.auth-actions--row { flex-direction: row; justify-content: center; }
.auth-actions--spaced { margin-top: 40px; }
.auth-divider { margin-top: 40px; border-top: 1px solid #eee; padding-top: 40px; }
.link-blue { color: var(--c-blue); }
.btn-centered { display: block; margin: 12px auto 0; }
.input-zip { max-width: 200px; }
.badge-muted {
    display: inline-block;
    background: #e9f7ff;
    border: 1px solid #b6e3ff;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 700;
    color: #0f172a;
}
.save-banner {
    display: none;
    margin: 0 0 12px;
    text-align: left;
}
.address-card {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.address-heading {
    font-weight: 800;
    /* color: #444; */
}
.address-row {
    display: grid;
    grid-template-columns: minmax(72px, auto) 1fr;
    gap: 10px 16px;
    align-items: start;
}
.address-labels,
.address-values {
    display: grid;
    gap: 10px;
}
.address-labels { color: #6b7280;
    font-size: 13px;
    letter-spacing: 0.01em;
}
.address-values { text-align: right; white-space: normal; word-break: keep-all; }
/* .address-name { font-weight: 800; } */
.form-error {
    display: none;
    margin: 10px 0 12px;
    padding: 10px 12px;
    background: #fff4f4;
    border: 1px solid #f3c5c5;
    border-radius: 12px;
    color: #E32020;
    font-size: 12px;
    line-height: 1.6;
}
.input-error {
    border-color: #E32020 !important;
    background: #fff7f7;
}

/* Contact confirm layout */
.confirm-container {
    width: 640px;
    margin: 40px auto 80px;
    padding: 0 24px;
    text-align: center;
}
.confirm-card {
    background:#fff;
    border:1px solid #eee;
    border-radius:16px;
    padding:20px;
    box-shadow:0 4px 16px rgba(0,0,0,0.03);
    text-align:left;
}
.confirm-row { display:flex; justify-content:space-between; margin-bottom:10px; font-size:14px; gap:12px; }
.confirm-row strong { font-weight:800; }
.confirm-body { margin-top:12px; background:#f5f5f5; padding:12px; border-radius:12px; line-height:1.7; }
.confirm-actions { margin-top:20px; display:flex; justify-content:center; gap:12px; align-items:center; }

@media (max-width: 960px)  {
    .confirm-actions {
    flex-direction: column-reverse;
    gap: 20px;
    }
}

/* Contact thanks layout */
.thanks-container {
    width: 640px;
    margin: 60px auto 80px;
    padding: 0 24px;
    text-align: center;
}
.thanks-title { font-size: 20px; font-weight: 800; margin: 14px 0; }
.thanks-body { color:#555; line-height:1.7; margin-bottom:40px; }
.thanks-body br { line-height:1.7; }
.checkmark { font-size: 48px; color: #16a34a; }

@media (max-width: 960px) {
    .confirm-container { width: 100%; padding: 0 18px; }
    .thanks-container { width: 100%; padding: 0 18px; }
    .mypage,
    .mypage--narrow,
    .mypage--mid { width: 100%; padding: 0 18px; }
    .auth-container {
        width: 100% !important;
        padding: 0 18px;
    }
}
.link-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--c-blue);
    margin-top: 4px;
}

