/* common */
:root {
  --text-muted: #666;
  --hero-bg: #0b1526;
}

#container {
  overflow-x: hidden;
}

.breadcrumb {
  margin: 2em auto;
  font-size: calc(1.2em - 3pt);
}

.breadcrumb__text {
  margin: 0;
}

.breadcrumb__page-title {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.ym-wrap {
  width: 100%;
  max-width: 1100px;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
  padding: 0;
}

.only-sp {
  display: none;
}
@media screen and (max-width: 767px) {
  .only-sp {
    display: block;
  }
}

#ymContents {
  font-style: normal;
  font-size: calc(1.6em - 3pt);
  line-height: 1.5;
}
#ymContents img {
  width: 100%;
  height: auto;
}
@media screen and (max-width: 1023px) {
  #ymContents {
    font-size: calc(1.3em - 3pt);
  }
}
@media screen and (max-width: 767px) {
  #ymContents {
    font-size: calc(1.1em - 3pt);
  }
}

.ymTitle {
  margin: auto;
  padding-bottom: 3em;
  max-width: 1920px;
}
.ymTitle .ymLogo:not(.ymLogo--full-bleed) {
  padding: 1em 2em 2.5em;
}
.ymTitle .ymLogo--full-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0;
  box-sizing: border-box;
  background: var(--hero-bg);
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.ymTitle .ymLogo--full-bleed picture {
  display: block;
  width: 77%;
  max-width: 847px;
  margin: 0 auto;
  line-height: 0;
}
.ymTitle .ymLogo--full-bleed img {
  display: block;
  width: 100%;
  height: auto;
}
.ymTitle .intro-lead {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5em 2em;
  align-items: start;
  max-width: 100%;
  margin-top: 2em;
  padding: 0 1em;
  box-sizing: border-box;
}
.ymTitle .intro-lead__body {
  min-width: 0;
  font-size: calc(1em - 3pt);
}
.ymTitle .intro-lead__body p {
  padding-bottom: 1.1em;
  margin: 0;
}
.ymTitle .intro-lead__body p:last-child {
  padding-bottom: 0;
}
.ymTitle .intro-lead__photo {
  min-width: 0;
}
.ymTitle .intro-lead__photo img {
  display: block;
  width: 100%;
  height: auto;
}
.ymTitle .intro-lead__fb-link {
  margin-top: 0.25em;
}
@media screen and (max-width: 767px) {
  .ymTitle {
    padding-bottom: 1em;
  }
  .ymTitle .ymLogo:not(.ymLogo--full-bleed) {
    padding: 0.5em 1em 1.5em;
  }
  .ymTitle .intro-lead {
    grid-template-columns: 1fr;
    margin-top: 1.5em;
    padding-left: max(1rem, 4vw, env(safe-area-inset-left));
    padding-right: max(1rem, 4vw, env(safe-area-inset-right));
    padding-top: 0;
    padding-bottom: 0;
    gap: 1.25em;
  }
  .ymTitle .intro-lead__body {
    font-size: calc(1em - 3pt + 6pt);
  }
}
@media screen and (max-width: 499px) {
  .ymTitle .ymLogo:not(.ymLogo--full-bleed) {
    padding: 0 0 1.5em;
  }
}

.hidden {
  display: none !important;
}

#ymContents .card {
  background: #fff;
  border: 1px solid #ccd;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  box-sizing: border-box;
}

#resultsSection {
  font-size: calc(1em - 3pt);
}
@media screen and (max-width: 767px) {
  #resultsSection {
    font-size: calc(1em - 3pt + 6pt);
  }
}

#ymContents .card-title {
  font-size: 1.15em;
  font-weight: bold;
  margin: 0 0 0.75em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #ddd;
}

#ymContents #resultsSection .card {
  border: none;
  border-radius: 0;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

#ymContents #resultsSection .card-title {
  border-bottom: none;
  padding-bottom: 0;
}

#ymContents .lottery-table-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  align-items: start;
}
@media screen and (max-width: 767px) {
  #ymContents .lottery-table-split {
    grid-template-columns: 1fr;
  }
  #ymContents .lottery-table-split .lottery-table:not(:first-child) thead {
    display: none;
  }
}

#ymContents .lottery-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

#ymContents .lottery-table th,
#ymContents .lottery-table td {
  border: 1px solid #ccc;
  padding: 0.35em 0.5em;
  text-align: left;
  word-wrap: break-word;
}

#ymContents .lottery-table th {
  background: #eef3ff;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75em 1.25em;
  background: #333;
  color: #fff;
  border-radius: 6px;
  z-index: 10000;
  font-size: 14px;
}
@media screen and (max-width: 767px) {
  .toast {
    font-size: calc(14px + 4pt);
  }
}

.toast.success {
  background: #1a7f37;
}

html {
  margin: 0;
  padding: 0;
}

body.index {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.index #wrapper {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  min-height: 0;
}

body.index #container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  min-height: 0;
}

body.index #contents {
  flex: 1 1 auto;
}
@media screen and (max-width: 767px) {
  body.index .breadcrumb.ym-wrap {
    padding-left: max(1rem, 4vw, env(safe-area-inset-left));
    padding-right: max(1rem, 4vw, env(safe-area-inset-right));
    box-sizing: border-box;
  }
  body.index #ymContents > .ym-wrap {
    padding-left: max(1rem, 4vw, env(safe-area-inset-left));
    padding-right: max(1rem, 4vw, env(safe-area-inset-right));
    box-sizing: border-box;
  }
}

#footer {
  clear: both;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  margin-bottom: 0;
  background: #002063;
  color: #fff;
  flex-shrink: 0;
}

.footer_in {
  margin-top: 0;
  padding: 1.25em 1rem 1em;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}
.footer_in address {
  font-style: normal;
  color: #fff;
  font-size: calc(1em - 3pt);
}
@media screen and (max-width: 767px) {
  .footer_in {
    padding: 1em max(0.75rem, 4vw) 1em;
  }
  .footer_in address {
    font-size: calc(0.95em - 3pt + 2pt);
  }
}

#go_top.go-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 10050;
  line-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

#go_top.go-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.go-top__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #002063;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s, transform 0.2s;
}

.go-top__link:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.go-top__link img {
  width: 60%;
  height: auto;
}

@media screen and (max-width: 767px) {
  #go_top.go-top {
    right: 0.75rem;
    bottom: 0.75rem;
  }
  .go-top__link {
    width: 2.75rem;
    height: 2.75rem;
  }
}