/* --- カラーパレット --- */
: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: var(--main-white);
    min-height: 100vh;
    color: var(--main-black);
    font-family: 'Segoe UI', 'Meiryo', 'Arial', sans-serif;
}
body::before, body::after {
    content: "";
    position: fixed;
    z-index: 0;
    pointer-events: none;
    opacity: 0.10;
    border-radius: 50%;
    filter: blur(2px);
}
body::before {
    width: 220px; height: 220px; left: -80px; top: 40px;
    background: radial-gradient(circle, #ececec 60%, #fff 100%);
}
body::after {
    width: 180px; height: 180px; right: -60px; bottom: 60px;
    background: radial-gradient(circle, #e0e0e0 60%, #fff 100%);
}
.bg-star, .bg-dot { display: none; }

main {
    max-width: 900px;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}
.login-prompt {
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(255,152,0,0.08);
    padding: 28px 18px;
    margin: 32px auto 24px auto;
    text-align: center;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-prompt h2 {
    color: #e07a1b;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.03em;
}

.login-btn {
    display: inline-block;
    background: #ff9800;
    color: #fff;
    font-weight: 700;
    font-size: 1.08rem;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    box-shadow: 0 2px 8px rgba(255,152,0,0.10);
    text-decoration: none;
    transition: background 0.18s, box-shadow 0.18s;
}

.login-btn:hover {
    background: #e07a1b;
    box-shadow: 0 4px 16px rgba(255,152,0,0.13);
}

/* --- ジャンルメニュー --- */
.genre-search-menu {
    max-height: 160px;
    overflow: hidden;
    transition: max-height 0.3s;
    position: relative;
    margin: 32px auto;
}
.genre-search-menu.open {
    max-height: 1000px;
}
.genre-row {
    display: flex;
    flex-wrap: wrap; /* 追加：折り返しで全ジャンル表示 */
    gap: 14px;
    justify-content: center;
    margin-bottom: 8px;
}
.genre-toggle-row {
    display: flex;
    justify-content: center;
    margin-top: -12px;
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 80%);
    height: 38px;
    z-index: 2;
    pointer-events: none;
}
.genre-toggle-btn {
    pointer-events: auto;
    background: var(--main-orange);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s;
}
.genre-search-menu.open .genre-toggle-row {
    background: none;
    margin-top: 0;
    position: static;
    height: auto;
}
.genre-restaurant { background: linear-gradient(135deg, #ffb347, #ffcc33); color: #fff; }
.genre-cafe { background: linear-gradient(135deg, #a8edea, #fed6e3); color: #8d4b32; }
.genre-fashion { background: linear-gradient(135deg, #fcb69f, #ffecd2); color: #e91e63; }
.genre-gift { background: linear-gradient(135deg, #a1c4fd, #c2e9fb); color: #1976d2; }
.genre-zakka { background: linear-gradient(135deg, #fbc2eb, #a6c1ee); color: #7b1fa2; }
.genre-sportsoutdoor { background: linear-gradient(135deg, #43e97b, #38f9d7); color: #388e3c; }
.genre-amusement { background: linear-gradient(135deg, #f7971e, #ffd200); color: #ff5722; }
.genre-leisure { background: linear-gradient(135deg, #f5f7fa, #c3cfe2); color: #607d8b; }
.genre-sports { background: linear-gradient(135deg, #30cfd0, #330867); color: #1565c0; }
.genre-experience { background: linear-gradient(135deg, #f9d423, #ff4e50); color: #ff7043; }
.genre-onsen { background: linear-gradient(135deg, #e0c3fc, #8ec5fc); color: #ab47bc; }
.genre-hotel { background: linear-gradient(135deg, #fceabb, #f8b500); color: #795548; }
.genre-tourism { background: linear-gradient(135deg, #cfd9df, #e2ebf0); color: #0288d1; }
.genre-other { background: linear-gradient(135deg, #fff1eb, #ace0f9); color: #607d8b; }
.genre-label { font-size: 0.93em; margin-top: 2px; }

/* --- ジャンルアイコン強調・テキスト小さく中央揃え・背景同化 --- */
.genre-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 6px 0 2px 0;
    margin: 0 2px;
    text-decoration: none;
    color: var(--main-black);
    cursor: pointer;
    transition: transform 0.12s;
}
.genre-btn:hover, .genre-btn:focus {
    transform: scale(1.08);
    color: var(--main-orange);
}
.genre-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    width: 36px;
    height: 36px;
    margin-bottom: 2px;
    border-radius: 50%;
    background: var(--main-bg);
    box-shadow: 0 2px 8px rgba(255,152,0,0.08);
    transition: box-shadow 0.18s, transform 0.13s;
}
.genre-btn:hover .genre-icon,
.genre-btn:focus .genre-icon {
    box-shadow: 0 4px 12px 0 rgba(255,152,0,0.18);
    transform: scale(1.12);
}
.genre-label {
    font-size: 0.75em;
    color: #555;
    margin-top: 2px;
    text-align: center;
    font-weight: 500;
    width: 100%;
    display: block;
    word-break: break-all;
}
/* --- セクション共通 --- */
.welcome-section,
.posts-section,
.contact-section,
.student-notice-section {
    padding: 32px 20px;
    margin-bottom: 36px;
    text-align: center;
}
.student-notice-section {
    padding: 28px 20px 18px 20px;
    text-align: left;
}
.student-notice-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #232323;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
}
.student-notice-list {
    display: flex;
    flex-direction: column;
}
.student-notice-card {
    background: #f7f7fa;
    display: flex;
    flex-direction: column;
    position: relative;
}
.student-notice-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;
    font-size: 0.97rem;
    color: #888;
    margin-bottom: 2px;
}
.student-notice-date {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #888;
    font-size: 0.97rem;
}
.student-notice-business {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #1976d2;
    font-size: 0.97rem;
    font-weight: 500;
}
.student-notice-type {
    background: #ff9800;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 7px;
    padding: 1px 10px;
    letter-spacing: 0.01em;
}
.student-notice-main-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #232323;
    margin-bottom: 2px;
}
.student-notice-main-content {
    font-size: 0.97rem;
    color: #444;
    margin-bottom: 2px;
}
.student-notice-card.empty {
    text-align: center;
    color: #888;
    background: #f7f7fa;
    border: 1.2px dashed #e0e0e0;
    box-shadow: none;
}

/* --- 見出し --- */
.welcome-section h1,
.posts-section h2,
.contact-section h2 {
    color: var(--main-black);
    font-size: 1.5rem;
    margin: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-bottom: 4px solid var(--main-orange-dark);
}
.welcome-section h1 { color: var(--main-orange-dark); }
.welcome-section p,
.contact-section p {
    color: var(--main-gray);
    font-size: 1.08rem;
}
.posts-section h3 {
    color: var(--main-orange-dark);
    font-size: 1.2rem;
    margin: 16px 0 12px 0;
    font-weight: 600;
    letter-spacing: 0.02em;
}


/* --- SNS紹介セクション --- */
.sns-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(255,152,0,0.10);
    padding: 24px;
    margin-bottom: 32px;
    text-align: center;
}
.sns-section h2 {
    font-size: 1.2rem;
    color: var(--main-orange-dark, #ff9800);
    margin-bottom: 18px;
}
.sns-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 12px auto;
    justify-items: center;
    align-items: center;
}
.sns-pop {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #222;
    font-size: 1.05rem;
    transition: color 0.2s;
    min-width: 0;
}
/* クーポンカードが空の場合のデザイン */
.coupon-card-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    background: #f7f7fa;
    border-radius: 12px;
    border: 1.5px dashed #e0e0e0;
    box-shadow: 0 2px 8px rgba(255,152,0,0.07);
    margin: 12px 0;
    padding: 24px 12px;
    text-align: center;
}

.coupon-card-empty-message {
    color: #888;
    font-size: 1.08rem;
    line-height: 1.7;
    margin-top: 8px;
    margin-bottom: 0;
    text-align: center;
}

.coupon-card-empty-message a {
    color: var(--main-orange-dark, #e07a1b);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.18s;
}

.coupon-card-empty-message a:hover {
    color: var(--main-orange, #ff9800);
    text-decoration: underline;
}
.sns-pop i {
    width: 75px; height: 75px; line-height: 75px; font-size: 3em;
    margin-bottom: 8px;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s, color 0.2s, background 0.2s;
    color: #bbb;
    box-sizing: border-box;
    border-radius: 25%;
    background: #f7f7fa;
}
.sns-pop[href*="instagram.com"] i {
    background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #fff;
}
.sns-pop[href*="tiktok.com"] i {
    color: #eaf6fd; background: #010101;
    text-shadow: 2px 2px 0 #25F4EE, 4px 4px 0 #FE2C55;
}
.student-notice-more-link {
    display: inline-block;
    color: var(--main-orange);
    font-weight: bold;
    text-decoration: none;
    font-size: 1.05em;
}
.view-all-link,
.contact-link {
    display: inline-block;
    background: var(--main-orange);
    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;
}
.view-all-link,
.contact-link:hover,
.contact-link:focus {
    background: var(--main-orange-dark);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255,152,0,0.18);
}

.notice-expandable {
    cursor: pointer;
    transition: box-shadow 0.2s, background 0.2s;
    position: relative;
}
.notice-expandable:focus {
    outline: 2px solid #ff9800;
}
.notice-expandable.expanded {
    background: #fffbe7;
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.13);
}
.notice-summary {
    color: #444;
}
.notice-full {
    margin-top: 8px;
    color: #222;
    font-size: 1.01em;
    line-height: 1.7;
    white-space: pre-line;
}
.notice-expand-icon {
    position: absolute;
    right: 18px;
    top: 18px;
    color: #ff9800;
    font-size: 1.2em;
    pointer-events: none;
    transition: transform 0.2s;
}
.notice-expandable.expanded .notice-expand-icon {
    transform: rotate(180deg);
}
.notice-tag {
    display: inline-block;
    font-size: 0.85em;
    font-weight: 700;
    border-radius: 8px;
    padding: 2px 10px;
    margin-right: 8px;
    vertical-align: middle;
    letter-spacing: 0.03em;
}
.notice-tag-coupon    { background: #ffe0b2; color: #e07a1b; border: 1.5px solid #ff9800; }
.notice-tag-business  { background: #e3f2fd; color: #1976d2; border: 1.5px solid #64b5f6; }
.notice-tag-campaign  { background: #fff8e1; color: #ff9800; border: 1.5px solid #ffd54f; }
.notice-tag-important { background: #ffebee; color: #d32f2f; border: 1.5px solid #e57373; }
.notice-tag-admin     { background: #ede7f6; color: #6a1b9a; border: 1.5px solid #b39ddb; }

/* キーワード検索フォーム */
.coupon-search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 24px auto 32px auto;
    max-width: 480px;
    background: #fffbe7;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(255,152,0,0.08);
    padding: 16px 18px;
}

.coupon-search-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 1.08em;
    border: 1.5px solid #ffd54f;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #222;
    transition: border 0.18s;
}

.coupon-search-input:focus {
    border-color: #ff9800;
}

.coupon-search-btn {
    background: var(--main-orange, #ff9800);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 1.08em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.18s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.coupon-search-btn:hover {
    background: var(--main-orange-dark, #e07a1b);
}

/* --- カルーセルキャプション --- */
.carousel-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.85);
    border-radius: 14px;
    padding: 12px 24px;
    box-shadow: 0 2px 12px rgba(255,152,0,0.10);
    text-align: center;
    z-index: 2;
    max-width: 90vw;
}

.carousel-caption p {
    font-size: 1.35rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    letter-spacing: 0.02em;
    line-height: 1.5;
    z-index: 2;
}

.carousel-highlight {
    font-weight: 900;
    font-size: 1.45rem;
    padding: 2px 12px;
    border-radius: 8px;
    margin: 0 2px;
    background: linear-gradient(90deg,#ffe0b2 60%,#fff 100%);
    color: #ff9800;
    border: 2px solid #ff9800;
    box-shadow: 0 2px 8px rgba(255,152,0,0.10);
    letter-spacing: 0.04em;
    z-index: 2;
}

/* --- business-section --- */
.business-section {
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(255,152,0,0.08);
    padding: 32px 18px;
    margin: 36px auto 32px auto;
    max-width: 600px;
    text-align: center;
}

.business-section h2 {
    color: #e07a1b;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.03em;
}

.business-section p {
    color: #444;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.business-section a.business-link {
    display: inline-block;
    background: #ff9800;
    color: #fff;
    font-weight: 700;
    font-size: 1.08rem;
    border-radius: 8px;
    padding: 12px 32px;
    text-decoration: none;
    margin-top: 14px;
    box-shadow: 0 2px 8px rgba(255,152,0,0.10);
    transition: background 0.18s, box-shadow 0.18s;
}

.business-section a.business-link:hover {
    background: #e07a1b;
    box-shadow: 0 4px 16px rgba(255,152,0,0.13);
}


