@charset "UTF-8";

/* カレンダーコンテナ */
.calender-container {
    max-width: 900px;
    margin: 20px auto;
}

/* ナビゲーション */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}
.calendar-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}
.nav-btn {
    text-decoration: none;
    font-size: 1.2rem;
    color: #555;
    padding: 5px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    transition: all 0.2s;
}
.nav-btn:hover {
    background: #e9ecef;
}
.nav-disabled {
    pointer-events: none;
    opacity: 0.3;
    background-color: #eee;
    color: #999;
    border-color: #eee;
}

/* カレンダーテーブル */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.calendar-table th {
    padding: 10px;
    text-align: center;
    border-bottom: 2px solid #ddd;
    background: #fff;
    color: #666;
}
.calendar-table td {
    height: 100px;
    border: 1px solid #eee;
    vertical-align: top;
    padding: 5px;
    background: #fff;
    position: relative;
    cursor: pointer;
    transition: background 0.1s;
}
.calendar-table td:hover {
    background-color: #fcfcfc;
}

/* 日付セル内部 */
.date-num {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    display: block;
    line-height: 1;
}
.ganzhi-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
}

/* 曜日・祝日色 */
.th-sun { color: #dc3545; }
.th-sat { color: #0d6efd; }
.td-sun .date-num, .date-holiday { color: #dc3545 !important; }
.td-sat .date-num { color: #0d6efd; }

/* 今日のセル */
.td-today {
    background-color: #fff8e1 !important;
    border: 2px solid #ffc107 !important;
}

/* 当月以外 */
.td-other-month {
    background-color: #f9f9f9;
    color: #adb5bd;
}
.td-other-month .date-num { color: #ccc; }
.td-other-month .ganzhi-label { color: #e0e0e0; }
/* style.cssのバッジクラスに対する透過処理 */
.td-other-month .common-badge { opacity: 0.6; }

/* カレンダー内月画像 */
.moon-phase-img {
    width: 20px;
    height: 20px;
    margin-left: 5px;
}


/* --- 有料/無料プラン制限レイアウト --- */

/* カレンダー全体を包むラッパー（オーバーレイの配置基準） */
.calendar-wrapper {
    position: relative;
    overflow: hidden; /* はみ出し防止 */
}

/* ぼかしエフェクト（モザイク） */
.blur-effect {
    filter: blur(5px);
    -webkit-filter: blur(5px);
    pointer-events: none; /* クリック無効化 */
    user-select: none;    /* 選択無効化 */
    opacity: 0.6;
}

/* 無料会員用の行ボカシ (2行目以降) */
.blur-row td {
    filter: blur(5px);
    -webkit-filter: blur(5px);
    user-select: none;
    opacity: 0.5;
    pointer-events: none; /* クリック無効化 */
}

/* 無料会員用のオーバーレイ (カレンダー内絶対配置) */
.free-plan-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    /* topの位置調整:
       ヘッダー行の高さ(約45px) + 1行目の高さ(100px) + α
       ※PC表示時を基準。スマホはメディアクエリで調整
    */
    top: 145px; 
    
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center; /* 上下中央配置 */
    /* 背景色は不要（モザイクが透けて見えるのがおしゃれ） */
}

/* 制限オーバーレイ（誘導メッセージ） */
.restriction-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    /* 無料会員の場合は部分的なので背景色は透明、非会員は少し暗くしてもよい */
}

/* 非会員用の全画面カバー */
.overlay-full {
    background-color: rgba(255, 255, 255, 0.4);
}

/* 無料会員用の配置（中央より少し下など調整可能ですが、今回はflex centerでOK） */
.overlay-partial {
    /* 必要なら調整 */
}

/* メッセージボックスのデザイン */
.cta-box {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 90%;
    border: 1px solid #ddd;
    pointer-events: auto;
}

.cta-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.cta-text {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* ボタン共通スタイル */
.cta-btn {
    display: inline-block;
    padding: 10px 40px; /* 横幅を少し広げました */
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: transform 0.2s;
    min-width: 200px; /* ボタン幅を揃えるため */
}

/* 青色ボタン (ログイン用・有料プラン用) */
.cta-btn-secondary {
    background-color: #0d6efd; /* 青色 */
    color: white;
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.4);
}

/* ボタンホバー時 */
.cta-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: white;
}

/* ▼▼▼ 追加: 新規登録などの文字リンク用 ▼▼▼ */
.cta-text-link {
    margin-top: 15px;
    display: block;
    font-size: 0.9rem;
    color: #0d6efd;
    text-decoration: underline;
}
.cta-text-link:hover {
    color: #0a58ca;
}

/* ナビゲーションの無効化スタイル */
.nav-disabled {
    pointer-events: none;
    opacity: 0.3;
    background-color: #eee;
    color: #999;
    border-color: #eee;
}

/* ▼▼▼ 追加: 月画像のスタイル ▼▼▼ */
.moon-phase-img {
    width: 20px;  /* 大きすぎず小さすぎないサイズ */
    height: 20px;
    object-fit: contain; /* アスペクト比を保持 */
    margin-left: 5px; /* 日付との間隔（念のため） */
    
    /* 少しだけ透明度を下げて、日付より目立ちすぎないようにする場合（お好みで） */
    /* opacity: 0.9; */
}

/* 日付セルのレイアウト微調整 */
.date-num {
    line-height: 1; /* 行の高さを詰める */
}

/* スマホ対応 */
@media (max-width: 768px) {
    .calendar-table td { height: 70px; }
    .calendar-title { font-size: 1.4rem; }
    .ganzhi-label { font-size: 0.6rem; }
    .date-num { font-size: 1rem; }
    .btn-today { font-size: 0.9rem; padding: 0.2rem 0.5rem; }

    .free-plan-overlay {
        top: 115px;
    }
    
    .cta-box {
        padding: 20px;
    }
}