/* =========================
   Ami Simple Calendar
   ※ div構造専用CSS（table版は使わない）
========================= */

/* ===== カレンダー全体 ===== */
.ami-calendar {
    max-width: 1100px;
    margin: 0 auto;
    font-size: 16px; /* ← 全体文字サイズ調整ここ */
}

/* カレンダー全体幅を広げる */
.ami-calendar {
    max-width: 1200px; /* 幅を広げる */
}

/* 列幅を個別に変える場合 */
.ami-calendar-body {
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr 1fr 1fr; /* 日曜だけ広くした例 */
}


/* =========================
   月ナビ（← 年月 →）
========================= */
.ami-calendar-title-wrap {
    display: flex;                  /* ★ 横並びの要 */
    justify-content: space-between; /* ← 左右配置 */
    align-items: center;            /* ← 縦中央 */
    margin-bottom: 12px;
}

.ami-prev-month,
.ami-next-month {
    font-size: 20px;   /* ← 矢印サイズ調整 */
    padding: 0 10px;
    text-decoration: none;
    cursor: pointer;
}

.ami-calendar-title {
    font-weight: bold;
    font-size: 16px;  /* ← 年月サイズ調整 */
}

/* =========================
   曜日ヘッダ
========================= */
.ami-calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    padding-bottom: 6px;
}

/* =========================
   カレンダー本体
========================= */
.ami-calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

/* =========================
   日付セル
========================= */
.ami-cal-day,
.ami-cal-empty {
    border: 1px solid #eee;
    height: 60px;          /* ← マスの高さ調整 */
    text-align: center;
    line-height: 60px;     /* ← 数字の縦中央 */
    box-sizing: border-box;
}

/* =========================
   ウィジェット用（小型）
========================= */
.ami-widget-calendar .ami-calendar {
    font-size: 12px;
}

.ami-widget-calendar .ami-cal-day,
.ami-widget-calendar .ami-cal-empty {
    height: 45px;
    line-height: 45px;
}

/* =========================
   ⚠ 不要・事故防止メモ
========================= */
/*
以下は使わない：
- table, th, td 系のCSS
- display: table / border-collapse
- .ami-calendar th, td

div構造と混ぜると
「縦並び・崩れ」の原因になる
*/