@charset "UTF-8";

/*お知らせ見出し*/
.midashi {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 0;
    /*h2の外側にとるスペース。上、左右、下への順番。*/
    font-size: 1em;
    /*文字サイズ*/
    color: #003F84;
    position: relative;
    /*ulineを配置する為に必要な指定*/
    font-weight: 600;
    /*やや太字*/
    border-bottom: 2px solid #ddd;
    /*薄い色の線の幅、線種、色*/
    letter-spacing: 0.1em;
    /*文字間隔を少しだけ広くする*/
    margin-bottom: 8px;
}

/*お知らせのアクセントラインの設定*/
.midashi .uline {
    display: inline-block;
    position: relative;
    padding: 0.2rem 0;
    /*h2内の余白。上下、左右への順番。*/
    bottom: -2px;
    /*濃い線を薄い線に重ねる為の指定。枠線の幅と合わせます。*/
    border-bottom: 2px solid #3475ba;
    /*濃い色の線の幅、線種、varは色の事でcss冒頭で指定しているprimary-colorを読み込みます*/

}

.oshirase {
    margin: 45px 1em 8px 1em;
}

.s_cap{margin: 1em;}

.fw-bold_1{font-weight: 600;
    border-radius: 5px;
background: linear-gradient(145deg, #ffc44e 0%, #fbdc61 45%, #FEE9A0 70%, #e9c124 85%, #e5a72b 90% 100%);;}

.fw-bold_2{font-weight: 600;
        border-radius: 5px;
    margin-top: 8px;
background-color: #e7e7e7;}

/* ==============================================
   1. 基本 UI（ポイント・ステータス・入力系）
   ============================================== */
.point-display {
    font-size: 2.8rem;
    font-weight: bold;
    color: #d61820;
    border-bottom: 4px solid #ffd700;
    line-height: 1.1;
}

.migrated-status-btn {
    background-color: #198754;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 5px;
    cursor: default;
}

.ticket-display {
    font-size: 2.8rem;
    font-weight: bold;
    color: #0d47a1;
    line-height: 1;
}

.shirt-btn {
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 12px;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18%;
    transition: all 0.2s;
}

.shirt-btn.active {
    border-color: #4fc3f7;
    color: #0277bd;
}

.shirt-btn.disabled {
    opacity: 0.2;
    pointer-events: none;
}

.input-box {
    font-size: 2.2rem;
    font-weight: bold;
    color: #333;
    border: 3px solid #e9ecef;
    border-radius: 15px;
    padding: 10px;
    background-color: #fff;
    text-align: center;
    display: flex;
    align-items: baseline;
    justify-content: right;
}

.input-box_2 {
    justify-content: center;
    font-size: 2.8em;
}

.modal-pts-big {
    font-size: 4rem;
    font-weight: 900;
    color: #d61820;
    text-shadow: 2px 2px 0px #ffd700;
    line-height: 1;
}

.tenkey-btn {
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: bold;
}

/* ==============================================
   2. キャンペーン・スタンプ・バナー
   ============================================== */
.campaign-banner-user {
    color: white !important;
    font-weight: bold;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 15px;
    display: none;
    text-align: center;
}

.banner-type-1 {
    background: linear-gradient(90deg, #FF512F 0%, #DD2476 100%) !important;
}

.banner-type-2 {
    background: linear-gradient(90deg, #003F84 0%, #2193b0 100%) !important;
}

.banner-type-3 {
    background: linear-gradient(90deg, #fceeb5 0%, #f3d03e 100%) !important;
    color: #5c4d00 !important;
}

.stamp-box {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 15px 0;
}

#campaign-stamp {
    position: absolute;
    top: -30px;
    right: 5%;
    transform: rotate(-20deg);
    border: 4px double #d61820;
    color: #d61820;
    font-weight: 900;
    padding: 5px 10px;
    font-size: 1.6rem;
    border-radius: 10px;
    display: none;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.stamp-plonk {
    animation: plonk 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes plonk {
    0% {
        opacity: 0;
        transform: scale(3) rotate(0deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(-20deg);
    }
}

/* ==============================================
   3. 履歴リスト・共通装飾
   ============================================== */
.history-item {
    border-bottom: 1px solid #eee;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
}

.history-item:nth-child(even) {
    background-color: #fafafa;
}

.history-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.history-date {
    font-size: 0.7rem;
    color: #888;
}

.history-note {
    font-weight: bold;
    font-size: 0.85rem;
}

.history-points {
    font-size: 1.1rem;
    font-weight: 800;
    min-width: 60px;
    text-align: right;
}

.footer-logo {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 70px;
}

.footer-logo img {
    width: 65%;
    max-width: 380px;
    height: auto;
}

/* ==============================================
   4. お知らせリスト (移植成功版：Grid Layout)
   ============================================== */
#new {
    display: grid !important;
    width: 100%;
    grid-template-columns: max-content 1fr;
    border-top: 1px dashed #ccc;
    margin: 0 0 4rem 0 !important;
}

#new dt {
    grid-column: 1;
    padding: 15px 0 15px 10px;
    border-bottom: 1px dashed #ccc;
    color: #AA7F00;
    font-weight: bold;
    font-size: 0.9em;
    display: flex;
    align-items: center;
}

#new dd {
    grid-column: 2;
    margin: 0;
    border-bottom: 1px dashed #ccc;
}

#new dd a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

#new dd a:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.news-text {
    flex: 1;
    padding-right: 10px;
    word-break: break-all;
    text-align: left;
}

.arrow-icon {
    color: #ccc;
    font-size: 0.9em;
    flex-shrink: 0;
}

.kind-badge {
    background: #ffdb3a;
    color: #362c00;
    font-size: 0.75em;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

/* --------------------------------------------------
   究極のNEWマーク：鼓動(Pulse) × 光沢(Shine)
   -------------------------------------------------- */
.auto-new {
    display: inline-block;
    /* 背景：Plan Bのグラデーション */
    background: linear-gradient(135deg, #ff0000 0%, #ff4d4d 100%) !important;
    color: #fff !important;
    font-size: 0.7em;
    font-weight: bold;
    padding: 1px 7px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: 2px;

    /* Plan Bのための設定：光がはみ出ないように */
    position: relative;
    overflow: hidden;

    /* Plan A：1.5秒周期で鼓動する */
    animation: pulse 1.5s infinite ease-in-out;
}

/* Plan B：光の筋を作る */
.auto-new::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 25%;
    height: 200%;
    background: rgba(255, 255, 255, 0.5);
    /* 走る光の白 */
    transform: rotate(30deg);
    /* 3秒周期で光が走る */
    animation: shine-move 3s infinite;
}

/* --- アニメーション定義 --- */

/* Plan A：鼓動（ふくらむ動き） */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    /* 1.1倍に少しだけ拡大 */
    100% {
        transform: scale(1);
    }
}

/* Plan B：光の移動 */
@keyframes shine-move {
    0% {
        left: -60%;
    }

    /* 待機位置（左外） */
    15% {
        left: 150%;
    }

    /* 一瞬で右へ通過 */
    100% {
        left: 150%;
    }

    /* 次に光るまでの休憩時間 */
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* レスポンシブ（スマホ表示）の調整 */
@media screen and (max-width: 768px) {
    #new {
        display: block !important;
    }

    #new dt {
        border-bottom: none !important;
        /* 上の余白を少し詰め、下の余白を最小限(2px)にします */
        padding: 10px 0 2px 10px !important;
    }

    #new dd {
        border-bottom: 1px dashed #ccc !important;
    }

    #new dd a {
        /* 日付に近い「上の余白」を詰め(2px)、下の余白を10pxにします */
        padding: 2px 10px 10px 10px !important;
    }
}

/* ==============================================
   5. モーダルウインドウ（お知らせ・QR共通）
   ============================================== */
/* --- 1. 背景（オーバーレイ）のアニメーション --- */
.modal-overlay {
    display: none;
    position: fixed !important;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 2147483647 !important;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    /* 閉じるときはパッと消えるのではなく、少し余韻を残す設定（任意） */
    transition: opacity 0.3s ease;
}

/* モーダルがアクティブになった時のフェードイン */
.modal-active {
    display: flex !important;
    animation: fadeInBg 0.3s ease-out forwards;
}

/* --- 2. 白枠（ウィンドウ）の浮き上がりアニメーション --- */
.modal-active .modal-window {
    /* 0.4秒かけて、少し下から（20px）スッと浮き上がってくる */
    animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.modal-window {
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 70vh !important; /* お客様が見つけた黄金比！ */
    display: flex !important;
    flex-direction: column;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    overflow: visible !important;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); /* 影を少し深くして立体感を強調 */
}

/* --- 3. アニメーションの中身（Keyframes） --- */

/* 背景がじわっと暗くなる */
@keyframes fadeInBg {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* 白枠が下からスッと昇ってくる */
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px); /* 最初は30px下に配置 */
    }
    100% {
        opacity: 1;
        transform: translateY(0);    /* 定位置へ */
    }
}

/* 閉じるボタン（装飾解除版：QR用と共通化） */
.modal-close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none !important;
    border: none !important;
    color: #888 !important;
    font-size: 32px !important;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    z-index: 1001;
}

.modal-close-btn:hover {
    color: #333 !important;
}

/* お知らせ詳細の中身 */
#modal-title {
    color: #AA7F00;
    font-size: 1.4em;
    font-weight: bold;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    text-align: center;
}

/* 1. 本文エリア全体の調整 */
#modal-body {
    overflow-y: auto !important;
    flex-grow: 1;
    /* 右側の余白を確保してスクロールバーとの衝突を防ぐ */
    padding-right: 20px !important; 
    
    /* 自然な折り返しの行間（1.5〜1.6が標準的で読みやすいです） */
    line-height: 1.5 !important;
    
    color: #333;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

/* 2. 段落（pタグ）の隙間を詰める */
#modal-body p {
    /* 標準では 1em (1文字分) ほど空いてしまう隙間を 0.3文字分まで圧縮 */
    margin-top: 0 !important;
    margin-bottom: -2.5em !important;
    /* 段落内の行間をリセット */
    line-height: 1.5 !important;
}

/* 3. 連続した改行（br）が広すぎる場合の微調整 */
/* 本来 br に高さはありませんが、親の line-height に引きずられるため、
   1.5倍が広すぎると感じる場合はここを調整します */
#modal-body br {
    content: "";
    display: block;
    margin-top: 0.1em; /* br 自体に僅かな隙間を持たせる（お好みで） */
	margin-bottom: 0.1em;

}

/* 4. リスト（箇条書き）の隙間もついでに最適化 */
#modal-body ul, #modal-body ol {
    margin-top: 0.5em !important;
    margin-bottom: 0.5em !important;
}
#modal-body li {
    margin-bottom: 0.2em !important;
}

/* モーダル全体の右側パディングも少し余裕を持たせる（必要に応じて） */
.modal-window {
    padding: 25px 15px 25px 25px; /* 右側だけ少し詰め、中身の padding-right を活かす */
}

/* リスト表示の復元 */
#modal-body ul {
    list-style-type: disc !important;
    padding-left: 1.5em;
    margin: 0.5em 0;
}

#modal-body li {
    display: list-item !important;
    margin-bottom: 0.3em;
}

#modal-body li p {
    margin: 0 !important;
}

#modal-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

#modal-date {
    color: #888;
    font-size: 0.9em;
    margin-top: 15px;
    text-align: right;
}

/* ==============================================
   6. アニメーション・特殊演出（お辞儀・夜空等）
   ============================================== */
.ojigi-container {
    perspective: 1000px;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}

.ojigi-animation {
    display: inline-block;
    transform-origin: bottom center;
    animation: ojigi-move-3d 2.5s ease-in-out infinite;
    color: #3366A5;
    position: relative;
    z-index: 2;
}

@keyframes ojigi-move-3d {

    0%,
    60%,
    100% {
        transform: rotateX(0deg);
    }

    30% {
        transform: rotateX(45deg);
    }
}

/* 夜空演出 */
.modal-night-sky {
    background-color: #001529 !important;
    border: 2px solid #ffd700 !important;
}

.pts-gold-glow {
    color: #ffd700 !important;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
}

/* 紙吹雪・QR用キャンバス */
canvas {
    z-index: 2000 !important;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
}

#use-qrcode canvas,
#membership-qrcode canvas {
    position: static !important;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto !important;
}

/* ==============================================
   7. その他固定パーツ
   ============================================== */
.fixed-membership-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px 25px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 70%, rgba(255, 255, 255, 0));
    z-index: 1040;
    text-align: center;
}

.btn-membership-card {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    background: #003F84;
    color: white;
    border: none;
}

/* お知らせのタイトルと概要を縦に並べるコンテナ */
.news-content-stack {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0; /* これがないと「…」が効かない場合があります */
    text-align: left;
}

/* タイトル部分 */
.news-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

/* 概要（本文冒頭）部分：ここがポイント！ */
.news-summary {
    font-size: 0.8rem;
    color: #838383; /* 少し薄めの色にして主従をつける */
    
    /* 1行で収めて、はみ出しを「…」にする設定 */
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
    width: 100%;
}

/* 1. 回数券購入（ブルー系） */
.text-skyblue {
    color: #2d8fcc !important; /* もっと濃くしたい場合は #007bb5 など */
}

/* 2. 回数券利用（オレンジ系） */
.text-orange {
    color: #ffa200 !important; /* 朱色っぽくしたい場合は #ff4500 など */
}

/* 3. ポイント利用・マイナス表記（レッド系） */
.text-danger {
    color: #d6000b !important; /* お店のロゴの赤に合わせるのがおすすめ */
}

/* 4. ポイント獲得・特典（グリーン系） */
.text-success {
    color: #008d83 !important; /* 鮮やかにしたい場合は #28a745 など */
}

/* 倍率がついた特別な行（プレミアムカラー） */
.text-premium {
    color: #886401 !important; /* 例：お知らせのタイトルと合わせたゴールド系 */
    font-weight: bold !important; /* さらに少し太くすると特別感が出ます */
}

/* お誕生日モーダルの装飾 */
.birthday-modal-content {
    background: linear-gradient(135deg, #fff 0%, #fff0f5 100%);
    border-radius: 20px !important;
    overflow: hidden;
}

.text-birthday-pink { color: #ff69b4; }
.text-birthday-title {
    color: #d61820; /* お店のイメージカラーに合わせた赤系、またはピンク */
    letter-spacing: 2px;
}

/* ポイントバッジの装飾 */
.bday-points-badge {
    background: #fff;
    border: 3px solid #ff69b4;
    border-radius: 50px;
    display: inline-block;
    padding: 10px 40px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
}

.bday-points-val {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ff1493;
    line-height: 1;
}

.bday-points-unit {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff69b4;
    margin-left: 5px;
}

/* ボタンの装飾 */
.btn-birthday-action {
    background: linear-gradient(to right, #ff69b4, #ff1493);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-birthday-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
}

.btn-birthday-action:disabled {
    background: #ccc;
}

/* アイコンのバウンド演出 */
.bday-visual { position: relative; }
.fa-cake-candles { animation: heartBeat 1.5s infinite; }

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

/* 誕生日登録バナーをより魅力的に */
#birthday-promo-banner {
    border-radius: 15px;
    background: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
    border-left: 5px solid #ff69b4 !important;
}

/* 確認モーダルのボタン */
.btn-birthday-action {
    background-color: #ff69b4;
    color: white;
    border: none;
    border-radius: 10px;
    transition: all 0.2s;
}

.btn-birthday-action:hover {
    background-color: #ff4da6;
    color: white;
    transform: translateY(-1px);
}