/* =========================
   和風カラーパレット
========================= */
:root {
  --wa-bg: #f7f5f2;
  --wa-card: #ffffff;
  --wa-border: #e5dfd7;
  --wa-main: #8b1e3f;   /* えんじ */
  --wa-green: #2f5d50;  /* 深緑 */
  --wa-text: #333;
}

/* =========================
   共通セクションBOX
========================= */
.section-box {
  background: var(--wa-card);
  border: 1px solid var(--wa-border);
  border-radius: 10px;
  padding: 24px;
  margin: 28px 0;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.section-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#f6f3ef 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: .35;
  pointer-events: none;
  border-radius: 10px;
}

/* =========================
   トップセクションレイアウト
========================= */
.top-sections {
  width: 860px;
  padding: 20px 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px; /* ←左右にパディング追加 */
  box-sizing: border-box; /* ←padding込みで幅計算 */
}


/* =========================
   セクションタイトル
========================= */
.section-title {
  font-family: "Hiragino Mincho ProN","Yu Mincho",serif;
  font-size: 20px;
  margin-bottom: 18px;
  font-weight: 600;
  color: var(--wa-text);
  border-left: 4px solid #b89b5e;
  padding-left: 10px;
}

/* =========================
   カレンダー
========================= */
.calendar-wrap { width: 100%; }

.calendar-section {
  max-width: 520px;
  margin: 0 auto;
  font-family: "Hiragino Mincho ProN","Yu Mincho",serif;
  color: var(--wa-text);
}

/* ステータス */
.business-status {
  border: 1px solid var(--wa-border);
  background: var(--wa-card);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  font-size: 17px;
  margin-bottom: 16px;
}

.business-status.open { color: var(--wa-green); }
.business-status.closed { color: var(--wa-main); }

.next-business-day {
  margin-top: 6px;
  font-size: 13px;
  opacity: .8;
}

/* 開閉ボタン */
.calendar-toggle {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  background: #f7f3ea;
  border: 1px solid #d8cfc0;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 12px;
}

.toggle-icon {
  margin-left: 8px;
  transition: transform .3s;
}

.calendar-toggle.active .toggle-icon {
  transform: rotate(180deg);
}

/* カレンダー中身 */
.calendar-content {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.calendar-content.open {
  display: block;
  max-height: 2000px;
}

/* ナビ */
.calendar-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
}

.calendar-nav a {
  text-decoration: none;
  color: var(--wa-text);
  padding: 4px 10px;
  border-radius: 6px;
}

.calendar-nav a:hover { background: #f0ece6; }

/* 凡例 */
.calendar-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  margin-top: 10px;
}

.legend-item { display: flex; gap: 6px; align-items: center; }

.legend-box {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-box.open { background: #eef5f1; }
.legend-box.closed { background: #f9eded; }
.legend-box.today { border: 2px solid var(--wa-main); }

/* テーブル */
.calendar {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  font-size: 14px;
}

.calendar th { padding: 6px 0; }

.calendar td {
  height: 92px;
  vertical-align: top;
  background: #faf8f5;
  border-radius: 8px;
  padding: 6px;
  position: relative;
  transition: .15s;
}

.calendar td:hover { background: #f1ede7; }
.calendar td.open { background: #f5faf7; }
.calendar td.closed { background: #fbf1f1; }
.calendar td.today {
  border: 2px solid var(--wa-main);
  background: #fffdf9;
}

.sun { color: var(--wa-main); }
.sat { color: #3a5da8; }

.day-number { font-weight: bold; font-size: 14px; }

.holiday-name {
  font-size: 12px;
  color: #b22222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
}

.holiday-name:hover::after {
  content: attr(data-full);
  position: absolute;
  left: 0;
  bottom: 18px;
  background: rgba(0,0,0,.85);
  color: #fff;
  padding: 4px 6px;
  font-size: 11px;
  border-radius: 4px;
}

/* =========================
   カテゴリー
========================= */
.category-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(140px,1fr));
  gap: 18px;
}

.category-card {
  text-decoration: none;
  background: #fff;
  border-radius: 14px;
  padding: 22px 10px;
  text-align: center;
  border: 1px solid #eee;
  transition: .25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border-color: #d6c6a3;
}

.category-icon { font-size: 34px; margin-bottom: 8px; }
.category-name { font-size: 14px; color: #333; font-weight: 600; }

/* =========================
   お知らせ
========================= */
.news-list { list-style: none; margin: 0; padding: 0; }

.news-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed #eee;
}

.news-date { color: #999; font-size: 13px; min-width: 90px; }

.news-title {
  color: #333;
  text-decoration: none;
  transition: .2s;
}

.news-title:hover { color: #b89b5e; }

.day-chip.after-close {
    /* 例：営業日(緑)と休業日(グレー)の中間として、注意を引く色に */
    border-color: #e0a020;
    background: #fff8e8;
}

.day-chip.before-open {
    /* 例：営業日(緑)と休業日(グレー)の中間として、注意を引く色に */
    border-color: #e0a020;
    background: #fff8e8;
}

/* =========================
   スマホ
========================= */
@media (max-width: 600px) {

  .top-sections {
    width: 100%;
  }
  .section-box {
    padding: 18px;
    margin: 18px 12px;
  }

  .category-icons {
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
  }

  .category-card { padding: 18px 8px; }
  .category-icon { font-size: 28px; }
}

