/* kitchen/style.css - パステルカラーと温かみのあるデザイン */

:root {
    --primary-color: #d8456b;
    /* 濃いめの可愛いピンク（コントラスト改善） */
    --secondary-color: #fce4ec;
    /* 薄いピンク */
    --accent-color: #e6514d;
    /* 濃いめのコーラルレッド（アクセント） */
    --bg-color: #fff9fb;
    /* ほぼ白に近いピンクがかった背景 */
    --text-color: #4a3028;
    /* より濃く視認性の高いブラウン */
    --card-bg: #ffffff;
    --shadow: 0 4px 15px rgba(216, 69, 107, 0.2);
    --border-radius: 12px;
}

body {
    background-color: var(--bg-color);
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 46px, rgba(216, 69, 107, 0.15) 46px, rgba(216, 69, 107, 0.15) 50px),
        repeating-linear-gradient(90deg, transparent, transparent 46px, rgba(216, 69, 107, 0.15) 46px, rgba(216, 69, 107, 0.15) 50px),
        repeating-linear-gradient(0deg, rgba(216, 69, 107, 0.08), rgba(216, 69, 107, 0.08) 15px, transparent 15px, transparent 50px),
        repeating-linear-gradient(90deg, rgba(216, 69, 107, 0.08), rgba(216, 69, 107, 0.08) 15px, transparent 15px, transparent 50px);
    background-size: 50px 50px;
    color: var(--text-color);
    font-family: 'Zen Maru Gothic', 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
}

/* コンテナ */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* ヘッダー・タイトル */
.kitchen-header {
    text-align: center;
    padding: 2rem 0;
}

.kitchen-header h1 {
    margin-bottom: 0.5rem;
}

/* 可愛いタイトルの装飾 */
.cute-title {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.cute-title .sub-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    background: #fff;
    padding: 0.3rem 1.2rem;
    border: 2px dashed var(--primary-color);
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 3px 6px rgba(216, 69, 107, 0.2);
}

/* 文字と画像を重ねるコンテナ */
.main-title-container {
    position: relative;
    display: inline-block;
    margin-top: -10px;
    /* サブタイトル（グルメマップ）との距離感を調整 */
}

.title-image {
    max-width: 100%;
    height: auto;
    width: 280px;
    /* 少しだけ大きく変更 */
    filter: drop-shadow(0 4px 6px rgba(216, 69, 107, 0.2));
    display: block;
    margin: 0 auto;
}

.cute-title .main-title {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* コンテナの中央（X軸）に配置し、Y軸も微調整 */
    white-space: nowrap;
    /* 改行を防止して1行で表示 */
    text-align: center;
    color: var(--primary-color);
    font-size: 2.2rem;
    /* サイズ調整 */
    font-weight: 700;
    text-shadow: 2px 2px 0px #fff, 3px 3px 0px rgba(216, 69, 107, 0.25), -2px -2px 0px #fff, 2px -2px 0px #fff, -2px 2px 0px #fff;
    /* 白フチを強化して視認性アップ */
    margin: 0;
    z-index: 2;
    /* 画像より上に表示 */
}

.kitchen-header p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* スマホ用レスポンシブ調整 */
@media (max-width: 480px) {
    .title-image {
        width: 200px;
        /* スマホでは少し小さく */
    }

    .cute-title .main-title {
        font-size: 1.5rem;
        /* 画像に合わせてフォントも縮小 */
    }

    .cute-title .sub-title {
        font-size: 0.9rem;
        /* サブタイトルも微調整 */
        padding: 0.2rem 1rem;
    }

    .kitchen-header p {
        font-size: 0.8rem;
    }
}

/* 検索フォーム */
.search-form {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-search {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .search-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-search {
        width: 100%;
    }
}


.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 138, 128, 0.3);
}

/* コンパクトなカード型デザイン */
.dish-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-left: 5px solid var(--primary-color);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dish-card::after {
    display: none;
    /* 装飾のハートを非表示にしてスッキリ */
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px dashed var(--secondary-color);
    padding-bottom: 0.5rem;
}

.owner-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.owner-info .name {
    font-weight: bold;
    font-size: 1rem;
    white-space: nowrap;
}

.owner-info .code {
    font-size: 0.75rem;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
}

.card-thanks-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-thanks-mini {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-thanks-mini:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-thanks-mini:disabled {
    background-color: #eee;
    color: #999;
    border-color: #ddd;
    cursor: default;
}

/* 2枠のコンパクトレイアウト */
.dish-slots {
    display: flex;
    gap: 10px;
}

@media (max-width: 600px) {
    .dish-slots {
        flex-direction: column;
        gap: 5px;
    }
}

/* 一覧画面（.results）のみコンパクトなスロットレイアウトを適用 */
.results .slot {
    flex: 1;
    background: #fffafa;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 5px;
}

.results .slot .slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.results .slot h3 {
    margin: 0;
}

/* 編集画面（およびデフォルト）のスロット */
.slot {
    background: #fffafa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px dashed var(--primary-color);
    margin-bottom: 0.5rem;
}

.slot h3 {
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ボタンの改行を防止 */
.btn {
    white-space: nowrap;
}

.slot .dish-name {
    font-weight: bold;
    font-size: 0.9rem;
    flex: 1;
    word-break: break-word;
    line-height: 1.3;
}

.slot .dish-lv {
    font-size: 0.7rem;
    padding: 0px 4px;
}

.slot .time-left {
    font-size: 0.7rem;
    margin-top: 0;
    color: #999;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 2px;
}

.btn-thanks {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* 共通フッター・ナビ */
.footer-nav {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--secondary-color);
}

/* 管理画面用：グラフ */
.chart-container {
    margin: 1.5rem 0;
}

.progress-bar-outer {
    height: 20px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.5s ease;
}


/* 告知バナー */
.bonus-announcement {
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bonus-banner-link {
    text-decoration: none;
    display: block;
}

.bonus-banner-content {
    background: linear-gradient(135deg, #d4af37, #f7e08a, #d4af37);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    border-radius: 20px;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #4a3028;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.bonus-banner-content:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.5);
}

.bonus-banner-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    pointer-events: none;
    animation: shine 10s linear infinite;
}

@keyframes shine {
    0% {
        transform: translate(-30%, -30%) rotate(0deg);
    }

    100% {
        transform: translate(-30%, -30%) rotate(360deg);
    }
}

.bonus-badge {
    background: #4a3028;
    color: #f7e08a;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.bonus-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bonus-main {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}

.bonus-sub {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 2px;
}

.bonus-sub strong.code {
    background: rgba(255, 255, 255, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
    color: #d8456b;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.bonus-action {
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 50px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.bonus-banner-content:hover .bonus-action {
    background: rgba(255, 255, 255, 0.4);
    gap: 12px;
}

@media (max-width: 768px) {
    .bonus-banner-content {
        padding: 1rem 1.2rem;
        gap: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .bonus-text {
        align-items: center;
    }

    .bonus-main {
        font-size: 1rem;
    }

    .bonus-sub {
        font-size: 0.75rem;
    }
}