/* 告知枠だけに適用する。既存のヘッダー・画像リンク・フッターは元のCSSで表示する。 */
.notice {
  --notice-green: #36592d;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  width: 80%;
  min-height: 38rem;
  margin: 0 auto 1rem;
  padding: 1rem;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 1.25rem;
  background: rgba(248, 245, 238, .82);
  box-shadow: 0 .625rem 1.875rem rgba(12, 44, 28, .15);
  color: #263329;
  font-size: 1rem;
  line-height: 1.7;
}
.notice *,
.notice *::before,
.notice *::after {
  box-sizing: border-box;
}
.notice[hidden],
.notice [hidden] {
  display: none !important;
}
.notice .notice-leaf {
  position: absolute;
  z-index: 2;
  width: clamp(6rem, 12vw, 9rem);
  height: auto;
  opacity: .3;
  pointer-events: none;
  user-select: none;
}
.notice .notice-leaf--top {
  top: .25rem;
  left: .25rem;
}
.notice .notice-leaf--bottom {
  right: .25rem;
  bottom: 3rem;
  transform: rotate(180deg);
}
.notice .notice-viewport {
  display: flex;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #ccd5c7;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .48);
  touch-action: pan-y pinch-zoom;
}
.notice .notice-track {
  display: flex;
  width: 100%;
  transition: transform .32s ease;
}
.notice .notice-slide {
  display: grid;
  flex: 0 0 100%;
  min-width: 0;
  grid-template-columns: 42% 1fr;
}
.notice .notice-media {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 1rem;
  background: #e9efe5;
}
.notice .notice-media img {
  position: absolute;
  inset: 1rem;
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  object-fit: contain;
  object-position: center;
}
.notice .notice-copy {
  align-self: center;
  min-width: 0;
  padding: 1rem;
}
.notice .notice-copy h1,
.notice .notice-copy h2 {
  margin: 0 0 1rem;
  padding: 0;
  color: var(--notice-green);
  line-height: 1.5;
  font-weight: 700;
}
.notice .notice-copy h1 {
  font-size: 1.75rem;
}
.notice .notice-copy h2 {
  font-size: 1.25rem;
}
#main .notice .notice-copy p {
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  color: #263329;
  font-size: .9375rem;
  line-height: 1.85;
  text-align: left;
  word-break: normal;
  overflow-wrap: break-word;
}
#main .notice .notice-copy p:last-child {
  margin-bottom: 0;
}
.notice .controls,
.notice .dots {
  display: flex;
  align-items: center;
  justify-content: center;
}
.notice .controls {
  gap: 1rem;
  margin: 1rem 0 0;
}
.notice .arrow,
.notice .dot {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
.notice .arrow {
  width: 1.4375rem;
  height: 1.4375rem;
  border: 1px solid #ccd5c7;
  border-radius: 50%;
  background: white;
  color: #0c2c1c;
  font-size: .6rem;
}
.notice .dot {
  width: 1.25rem;
  height: 1.375rem;
  border: 0;
  background: transparent;
}
.notice .dot::after {
  content: "";
  width: .34375rem;
  height: .34375rem;
  border: 1px solid var(--notice-green);
  border-radius: 50%;
}
.notice .dot[aria-current="true"]::after {
  background: var(--notice-green);
}
.notice :focus-visible {
  outline: 3px solid #27704f;
  outline-offset: .1875rem;
}
.notice .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .notice {
    width: 92%;
    min-height: 0;
    height: auto;
    grid-template-rows: auto auto;
  }
  .notice .notice-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 7fr 3fr;
  }
  .notice .notice-copy {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
  .notice .notice-copy h1 {
    font-size: 1.5rem;
  }
  .notice .notice-copy h2 {
    font-size: 1.125rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .notice .notice-track {
    transition: none;
  }
}

