* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #31007A;
  --secondary-color: #0D35B6;
  --tertiary-color: #CC205C;
  --bg-color: #E9E9E9;
  --text-color: #272148;
  --text-contrast: var(--bg-color);
  --text-light: rgba(39, 33, 72, 0.5);
  --border-color: rgba(39, 33, 72, 0.1);
  --moon-phase-full: #EEC970;
  --moon-phase-new: #929292;
  --button-size: 2.75rem;
  --font-family-serif: "TsukuAOldMinPr6-L", serif;
}

:where(:root) {
  overflow-wrap: anywhere;
  line-break: strict;
  text-autospace: normal;
  text-spacing-trim: trim-start;
}
:where(h1, h2, h3, h4, h5, h6) {
  font-kerning: normal;
  text-wrap: pretty;
  word-break: auto-phrase;
  font-weight: 400;
  font-size: 1rem;
}
:where(pre, time, input, textarea, [contenteditable]) {
  text-autospace: no-autospace;
}
:where(pre) {
  text-spacing-trim: space-all;
}
* {
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.01rem;
}
img {
  width: 100%;
  height: auto;
}
svg {
  width: 100%;
  height: 100%;
}
details > summary:first-of-type  {
  list-style: none;
}
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
body {
  padding: 1rem 1rem 6rem;
  font-family: var(--font-family-serif);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.75;
}
body.home-body {
  padding-bottom: 1rem;
}

:where(a) {
  color: var(--primary-color);
  text-decoration: underline;
}
:where(a:hover) {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ボタン */
.h-button {
  display: block;
  width: var(--button-size);
  height: var(--button-size);
  border-radius: 50%;
  background-color: var(--text-color);
  color: var(--text-contrast);
  font-size: 1.125rem;
  font-weight: 500;
  text-align: center;
  line-height: var(--button-size);
  text-decoration: none;
  border: 1px solid var(--text-color);
  box-sizing: content-box;
  transition: color 0.1s, background-color 0.1s;
}

@media (hover: hover) {
  .h-button:hover {
    color: var(--text-color);
    background-color: var(--bg-color);
  }
}

/* ページタイトル */
.page-title {
  width: var(--button-size);
  height: var(--button-size);
  border-radius: 50%;
  color: var(--text-color);
  border: 1px solid var(--text-color);
  font-size: 1.125rem;
  font-weight: 500;
  text-align: center;
  line-height: var(--button-size);
  text-decoration: none;
  box-sizing: content-box;
  margin-bottom: 2rem;
  
}
.page-title a {
  display: block;
  text-decoration: none;
  color: var(--text-color);
}

/* */
.time-separator {
  display: inline-block;
  position: relative;
  top: -0.07em;
}

/* 印刷用スタイル */
@media print {
  .month-selector,
  nav,
  header {
    display: none;
  }

  .calendar-container,
  .container {
    max-width: 100%;
    padding: 0;
  }

  .calendar-grid {
    page-break-inside: avoid;
  }

  .month-section {
    page-break-after: always;
  }

  .day-cell {
    border: 1px solid #000;
    min-height: auto;
    padding: 0.5rem;
    page-break-inside: avoid;
  }

  .blog-link {
    background: transparent;
    color: #000;
    text-decoration: underline;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .info-card {
    border: 1px solid #000;
    page-break-inside: avoid;
  }
}