/* student_home.cssを参考にした白・グレー・オレンジ基調 */

:root {
    --main-orange: #ff9800;
    --main-orange-dark: #e07a1b;
    --main-bg: #f6f6f6;
    --main-white: #fff;
    --main-black: #222;
    --main-gray: #888;
    --main-lightgray: #ececec;
}

body {
    background: linear-gradient(120deg, var(--main-bg) 70%, var(--main-lightgray) 100%);
    color: var(--main-black);
    font-family: 'Segoe UI', 'Meiryo', 'Arial', sans-serif;
}

main {
    max-width: 900px;
    margin: 54px auto 80px auto;
    padding: 0 16px;
}

/* タイトル */
h1 {
    color: var(--main-orange-dark);
    font-size: 1.5rem;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
}

.search-form {
    display: flex;
    width: 100%;
    gap: 18px;
    margin-bottom: 24px;
    align-items: flex-end;
}

.search-form label {
    font-weight: bold;
    color: var(--main-gray);
}

.search-form .form-fields {
    display: flex;
    gap: 18px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-form select, .search-form input {
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--main-lightgray);
    background: var(--main-white);
    color: var(--main-black);
}

.search-form .form-search-btn {
    margin-left: auto;
    display: flex;
    align-items: flex-end;
}

.search-form button {
    padding: 7px 20px;
    border-radius: 6px;
    background:  var(--main-orange);
    color: #fff;
    border: none;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    justify-content: flex-end;
}

.horizon {
    display: inline-block;
    width: 100%;
    text-align: center;
    writing-mode: horizontal-tb;
}

.search-form button:hover {
    background: var(--main-orange-dark);
    color: #fff;
}

.coupon-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.coupon-card-link {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 18px auto;
    display: block;
    text-decoration: none;
}

.coupon-card {
    background: linear-gradient(120deg, #fff 80%, #fff3e0 100%);
    border-radius: 14px 14px 18px 18px;
    box-shadow: 0 2px 8px rgba(255,152,0,0.07), 0 1.5px 4px rgba(180,180,180,0.07);
    padding: 8px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    line-height: 1.3;
    position: relative;
    transition: box-shadow 0.18s, transform 0.18s;
    box-sizing: border-box;
    gap: 0;
}

.coupon-img-wrap {
    width: 100%;
    height: 180px;
    border-radius: 12px 12px 0 0;
    object-fit: contain;
    overflow: hidden;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.coupon-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.coupon-business-name {
    position: absolute;
    top: 0;
    left: 0;
    margin: 10px;
    padding: 10px;
    color: black;
    background-color: white;
    opacity: 0.8;
    font-size: 0.9rem;
    text-align: center;
    width: calc(100% - 38px);
}

.coupon-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 8px;
    line-height: 1.25;
    gap: 1px;
}

.coupon-genre-pill {
    display: inline-block;
    background: var(--main-orange);
    color: #fff;
    border-radius: 999px;
    padding: 2px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 2px;
    margin-right: 0;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.coupon-info h3 {
    font-size: 1.08rem;
    margin: 0 0 2px 0;
    color: var(--main-black);
    font-weight: 700;
    line-height: 1.15;
}

.coupon-discount {
    font-size: 0.9rem;
    color: #e65100;
    font-weight: 600;
    margin: 0 0 2px 0;
    line-height: 1.15;
}

.coupon-expiry {
    font-size: 0.8rem;
    color: #444;
    margin: 0;
    line-height: 1.15;
}

.coupon-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 8px;
    min-width: 0;
    height: auto;
    gap: 0;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 28px 0 0 0;
}

.pagination a {
    color: var(--main-orange-dark);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    background: #f0f4fa;
    transition: background 0.2s;
    font-weight: 500;
}

.pagination a:hover {
    background: #e3eaf6;
}

.pagination span {
    font-size: 1.05rem;
    color: #333;
}

/* 空リスト時 */
.coupon-list li {
    text-align: center;
    color: #888;
    font-size: 1.08rem;
    padding: 32px 0;
    width: 100%;
}

.back-button {
    margin: 32px 0 0 0;
    text-align: center;
}

.back-button .btn {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 6px;
    background: #e0e7ef;
    color: #222;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.back-button .btn:hover {
    background: var(--main-lightgray);
    color: var(--main-orange-dark);
}

