@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/
    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/**
 * UdemyCouponページ作成(251017追記)
 */
.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.coupon-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    text-align: center;
}
.coupon-card:hover {
    transform: translateY(-5px);
}
.coupon-card img {
    width: 100%;
    height: 180px !important;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
.coupon-card h2 {
    font-size: 1.2em;
    margin: 10px 0;
    color: #333;
}
.coupon-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    text-align: center;
    max-width: 300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}
.coupon-details {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.coupon-details p {
    margin: 5px 0;
    color: #555;
    font-size: 0.9em;
}
.btn {
    background: #0073aa;
    color: white;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s;
}
.btn:hover {
    background: #005f8b;
    transform: scale(1.05); /* ホバー時に軽く拡大 */
}

.search-filter {
    margin: 30px 0;
    text-align: center;
}
.search-filter form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
}
.search-filter input[type="search"] {
    width: 75%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1.1em;
}
.search-filter button {
    padding: 12px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s;
}
.search-filter button:hover {
    background: #005f8b;
    transform: scale(1.05);
}


/**
 * 一覧ページの見出しスタイル (251018追記)
 */
.udemy-coupons-container h1 {
    font-size: 2.5em;
    font-weight: bold;
    color: #222;
    margin: 20px 0;
    text-align: center;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}


/**
 * 個別クーポンページのスタイル (251018追記)
 */
.udemy-coupon-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.coupon-single-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.course-description {
    max-width: 800px;
    margin: 20px auto;
    line-height: 1.6;
    color: #555;
    font-size: 1em;
}
.share-section {
    text-align: center;
    padding: 10px;
    border-top: 1px solid #ddd;
    margin-top: 20px;
}
.share-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.share-links li a {
    padding: 5px 10px;
    background: #eee;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}
.share-links li a:hover {
    background: #ddd;
}
/* カード幅を一覧ページと統一 */
.coupon-card {
    max-width: 450px;
    margin: 0 auto;
}