body {
    font-family: 'Segoe UI', 'Meiryo', sans-serif;
    background: linear-gradient(120deg, #f6f6f6 70%, #ececec 100%);
    color: #222;
    min-height: 100vh;
    width: 100vw;
    box-sizing: border-box;
}

.coupon-detail-main {
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    width: 100vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.coupon-detail-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(136,136,136,0.10), 0 2px 12px rgba(0,0,0,0.07);
    padding: 24px 0 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border: 2px solid #ececec;
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    box-sizing: border-box;
}

.business-name {
    font-size: 1.08rem;
    font-weight: bold;
    color: #ff9800;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.03em;
    width: 90vw;
    max-width: 420px;
    word-break: break-all;
}

.coupon-image {
    width: 92vw;
    max-width: 420px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 18px;
    box-shadow: 0 2px 12px rgba(255,152,0,0.08);
}

.coupon-title {
    font-size: 1.4rem;
    color: #222;
    font-weight: 700;
    margin-bottom: 14px;
    text-align: center;
    letter-spacing: 0.04em;
    width: 90vw;
    max-width: 420px;
    word-break: break-all;
}

.coupon-content,
.coupon-genre,
.coupon-date,
.coupon-terms,
.coupon-used {
    width: 90vw;
    max-width: 420px;
    font-size: 1.04rem;
    color: #444;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f6f6f6;
    border-radius: 8px;
    padding: 10px 12px;
    box-sizing: border-box;
    word-break: break-all;
}

.coupon-content {
    color: #222;
    font-weight: 500;
}

.genre-label, .date-label, .terms-label, .used-label, .content-label {
    color: #ff9800;
    font-weight: bold;
    min-width: 90px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.coupon-used {
    margin-bottom: 18px;
}

.use-coupon-btn {
    width: 90vw;
    max-width: 420px;
    padding: 14px;
    background: #ff9800;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.08em;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(255,152,0,0.10);
    transition: background 0.2s, transform 0.13s, opacity 0.2s;
    letter-spacing: 0.03em;
}
.use-coupon-btn:disabled {
    background: #ccc;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.7;
}

.use-coupon-message {
    font-size: 1em;
    margin-bottom: 8px;
    min-height: 1.5em;
    text-align: center;
    width: 90vw;
    max-width: 420px;
}

.back-link {
    display: inline-block;
    margin: 28px auto 0 auto;
    color: #ff9800;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    border: 1.5px solid #ff9800;
    border-radius: 6px;
    padding: 10px 24px;
    transition: background 0.2s, color 0.2s;
    text-align: center;
    width: 90vw;
    max-width: 420px;
    box-sizing: border-box;
}
.back-link:hover {
    background: #ff9800;
    color: #fff;
}

/* 施設名リンクのデザイン強調 */
.business-link {
    color: #ff9800;
    font-weight: bold;
    text-decoration: underline dotted #ff9800 2px;
    transition: color 0.18s, text-decoration-color 0.18s;
    padding: 2px 4px;
    border-radius: 4px;
    background: #fffbe8;
    box-shadow: 0 1px 6px rgba(255,152,0,0.07);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.business-link:hover {
    color: #fff;
    background: #ff9800;
    text-decoration-color: #fff;
}

/* ポップアップ */
.popup-success {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.popup-inner {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(255,152,0,0.13);
    padding: 36px 8vw 28px 8vw;
    text-align: center;
    width: 90vw;
    max-width: 420px;
    box-sizing: border-box;
}
.popup-inner p {
    font-size: 1.15em;
    color: #222;
    margin-bottom: 18px;
}
.popup-home-btn {
    display: inline-block;
    background: #ff9800;
    color: #fff;
    font-weight: bold;
    padding: 10px 28px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 1.05em;
    box-shadow: 0 2px 8px rgba(255,152,0,0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    max-width: 320px;
    margin: 8px 0 0 0;
}
.popup-home-btn:hover {
    background: #e07a1b;
    color: #fff;
}

.save-coupon-btn {
    background: #fff3e0;
    color: #ff9800;
    border: 1.5px solid #ff9800;
    border-radius: 16px;
    padding: 8px 24px;
    font-size: 1.05em;
    font-weight: bold;
    margin: 10px 0 0 0;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border 0.18s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 4px rgba(255,152,0,0.07);
    width: 90vw;
    max-width: 420px;
    box-sizing: border-box;
}
.save-coupon-btn:hover:not([disabled]) {
    background: #ff9800;
    color: #fff;
    border-color: #ff9800;
}
.save-coupon-btn[disabled] {
    background: #ffe0b2;
    color: #aaa;
    border-color: #ffe0b2;
    cursor: not-allowed;
}

