/* 全体共通 */
html, body {
  font-family: 'Playfair Display', serif;
  background-color: #f4f2f8;
  color: black;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
html::-webkit-scrollbar {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

h4 {
  font-size: 0.8rem;
  font-weight: normal;
  text-align: right;
}

header {
    background-color: transparent;
    color: black;
    min-height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width:90%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 120px 80px 20px 80px; 
}

header h1 {
    font-size: 2rem;
    font-weight: 500;
    margin: 0; /* デフォルト余白を消す */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

nav {
    position: relative;  
    top: 20px; 
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1000;     /* バナーの下に隠れないように */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;             /* ボタンとリンクの間隔 */
}

nav ul li {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ボタンとリンクを同じデザインに統一 */
nav ul li a,
nav ul li button {
    color: #444; /* デフォルトの文字色 */
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 4px 8px;      /* 任意の余白 */
    transition: color 0.3s ease;
    font-family: inherit;
}

/* 下線アニメーション */
nav ul li a::after,
nav ul li button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background: #7d6bc5; /* 下線の色 */
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

/* ホバー時の色と下線 */
nav ul li a:hover,
nav ul li button:hover {
    color: #7d6bc5;
}

nav ul li a:hover::after,
nav ul li button:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* main */
main {
  flex-grow: 1;
  padding: 2rem 5%;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* カレンダー全体 */
.calendar-container {
  width: 100%;
  max-width: 2000px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.calendar {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.calendar th,
.calendar td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  vertical-align: top;
  height: 120px;
  position: relative;
  box-sizing: border-box;
}
.calendar th {
  background-color: #f9f9f9;
  font-weight: lighter;
}
.date-number {
  position: absolute;
  top: 6px;
  left: 8px;
  font-weight: bold;
  font-size: 0.9rem;
  user-select: none;
}
.calendar td.today {
  background-color: #ece4f3;
}

/* イベントカード */
.calendar td a.event {
  display: block;
  margin-top: 28px;
  padding: 6px 8px;
  background-color: #fafafa;
  border: 1px solid #ccc;
  border-radius: 8px;
  text-decoration: none;
  color: black;
  font-size: 0.85rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  word-break: break-word;
  transition: background-color 0.3s, transform 0.2s;
}
.calendar td a.event + a.event {
  margin-top: 6px;
}
.calendar td a.event:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* 曜日の行の高さを小さく */
.calendar th {
  background-color: #f9f9f9;
  font-weight: lighter;
  height: 30px;       /* 縦の高さを小さく調整 */
  line-height: 30px;  /* 文字の縦位置調整 */
  padding: 0;         /* 余白も減らす */
  text-align: center; /* 中央寄せ */
}

/* 日曜日（1列目）の文字を赤に */
.calendar th:nth-child(1) {
  color: red;
}

/* 土曜日（7列目）の文字を青に */
.calendar th:nth-child(7) {
  color: blue;
}

/* カレンダーヘッダー */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.month-label {
  font-size: 1.75rem;
  margin: 0;
  font-weight: normal;
  padding-left: 0.5rem;
}
.calendar-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.select-wrapper {
  position: relative;
  display: inline-block;
}

.styled-select {
  font-family: 'Playfair Display', serif;
  padding-left: 0.5em;
  padding-right: 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: white;
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.select-arrow {
  position: absolute;
  pointer-events: none; /* 矢印はクリックできない */
  right: 0.8em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.4rem;
  color: black;
  user-select: none;
}


.styled-select:hover {
  border-color: #888;
}

footer {
  background: none;
  border-top: 1px solid #e2deeb; /* さらに薄い線 */
  color: #888;                   /* 文字色も淡く */
  padding: 0.15rem 0;            /* 高さを極限まで抑える */
  text-align: center;
  font-size: 0.8rem;             /* かなり小さめに */
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  line-height: 1.1;              /* 行間も最小限 */
}

footer .footer-inner {
  width: 95%;                    /* 横幅も少し縮めて控えめに */
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  opacity: 0.8;                  /* 薄くして背景となじませる */
}


.site-banner {
  background: linear-gradient(135deg, #dcd6f7, #e7e9f9, #f0f1f6);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  color: #111; /* 少し落ち着いた文字色 */
  text-align: center;
  font-size: 1rem;
  min-height: 20px; /* バナーの目安 */
  padding: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
