/* お知らせ全体 */
.notice {
  max-width: 1160px;
  padding: 8px 24px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 6px solid #fbbf24;
  border-radius: 8px;
  line-height: 1.8;
  box-sizing: border-box;
}

/* お知らせタイトル */
.notice-title {
  margin: 0 0 8px;
  color: #78350f;
  font-size: 17px;
  font-weight: bold;
}

/* 本文 */
.notice-body {
  margin: 0 0 8px;
  color: #222;
  font-size: 15px;
  line-height: 1.35;
}

/* 通常お知らせリンク部分 */
.notice-link {
  padding-top: 8px;
  font-size: 15px;
}

.notice-date {
  margin-right: 4px;
  color: #92400e;
  font-weight: bold;
}

.notice a {
  color: #005bac;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice a:hover {
  text-decoration-thickness: 2px;
}

/* ---- Accordion (details/summary) ---- */
.notice > summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;margin:0}
.notice > summary::-webkit-details-marker{display:none}
.notice > summary::before{content:"";width:8px;height:8px;flex:0 0 auto;border-right:2px solid #92400e;border-bottom:2px solid #92400e;transform:rotate(-45deg);transition:transform .15s}
.notice[open] > summary::before{transform:rotate(45deg)}
.notice[open] > summary{margin-bottom:8px}

/* ---- Dialog (dialog/showModal) ---- */
.notice-dialog{max-width:560px;width:calc(100% - 32px);padding:0;border:0;border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.notice-dialog::backdrop{background:rgba(0,0,0,.45)}
.notice-dialog__title{margin:0;padding:16px 20px;background:#fffbeb;border-bottom:1px solid #fde68a;color:#78350f;font-size:17px}
.notice-dialog__body{padding:18px 20px;max-height:60vh;overflow:auto;color:#222;line-height:1.7}
.notice-dialog__actions{margin:0;padding:12px 20px;border-top:1px solid #eee;text-align:right}
.notice-dialog__close{padding:8px 20px;border:0;border-radius:8px;background:#fbbf24;color:#78350f;font-weight:bold;cursor:pointer}

/* center modal dialog (override global *{margin:0} reset) */
.notice-dialog{position:fixed;inset:0;margin:auto}
/* long-form notice content inside dialog (.notice-doc). Scoped to .notice-doc only.
   Uses !important to beat legacy .infoBox p{font-weight:bold} / 1.2rem inheritance without affecting the whole site. */
.notice-doc{font-size:14px;color:#333}
.notice-doc > section{padding:16px 0;border-top:1px solid #f1e6cd}
.notice-doc > section:first-child{padding-top:2px;border-top:0}
.notice-doc h4{margin:0 0 8px !important;padding-left:10px;border-left:4px solid #fbbf24;color:#78350f;font-size:17px !important;font-weight:bold !important;line-height:1.5}
.notice-doc p{margin:0 0 8px;font-size:14px !important;font-weight:normal !important;line-height:1.85;color:#333}
.notice-doc p:last-child{margin-bottom:0}
.notice-doc ul{margin:8px 0 !important;padding-left:1.3em !important;list-style:disc !important}
.notice-doc li{font-size:14px !important;font-weight:normal !important;margin:4px 0;line-height:1.75}
.notice-doc .note{margin:8px 0 0;font-size:13px !important;font-weight:normal !important;color:#92400e;line-height:1.7}
.notice-doc strong{font-size:inherit !important;font-weight:bold !important;color:#78350f;background-color:transparent !important;display:inline !important;padding:0 !important}
