/* 年ブロック */
.year-block {
  margin-bottom: 16px;
}

/* 折り畳み風（JSなし） */
.year-block.is-closed .year-calendar {
  max-height: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.year-block.is-open .year-calendar {
  max-height: 500px; /* 十分大きければOK */
}

/* カレンダー表示（絶対に壊さない） */
.year-calendar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--color-muted);
  border-radius: var(--radius);
}

/* 月 */
.month {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--color-muted);
  border-bottom: 1px solid var(--color-muted);
  text-decoration: none;
}

.month:nth-child(3n) {
  border-right: none;
}

.month:nth-last-child(-n + 3) {
  border-bottom: none;
}

/* フレーム代替の2カラム */
.sendaiwan-layout {
  display: grid;
  grid-template-columns: 20% 80%;
  gap: 16px;
  min-height: 120vh;
}

/* iframe 共通 */
.sendaiwan-layout iframe {
  width: 100%;
  height: 100%;
  border: 1px solid #ddd;
}

/* 左 */
.sendaiwan-index {
  min-height: 600px;
}

/* 右 */
.sendaiwan-view {
  min-height: 600px;
}