@charset "UTF-8";

.guide-receipt {
  --guide-receipt-blue: #003e9a;
  --guide-receipt-pale: #f0f7ff;
  --guide-receipt-border: #bfbfbf;
  width: 100%;
  color: #222;
  font-family: "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

.guide-receipt *,
.guide-receipt *::before,
.guide-receipt *::after {
  box-sizing: border-box;
}

.guide-receipt h1,
.guide-receipt p {
  margin: 0;
  padding: 0;
}

.guide-receipt__inner {
  width: min(calc(100% - 64px), 1200px);
  margin: 0 auto;
  padding: 54px 0 100px;
}

.guide-receipt__header {
  position: relative;
  margin-bottom: 38px;
  padding-bottom: 24px;
}

.guide-receipt__header::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 150vw;
  border-bottom: 1px solid #d0d0d0;
  content: "";
  transform: translateX(-50%);
}

.guide-receipt__title {
  color: #333;
  font: 700 36px/1.4 "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}

.guide-receipt__layout,
.guide-receipt__main {
  min-width: 0;
}

.guide-receipt__content {
  display: grid;
  grid-template-areas: "history issue copy";
  grid-template-columns: 300px 300px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  min-height: 318px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--guide-receipt-border);
}

.guide-receipt__copy {
  grid-area: copy;
  align-self: center;
  margin-left: 20px !important;
  font-size: 18px;
  line-height: 28px;
}

.guide-receipt__copy a {
  color: var(--guide-receipt-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-receipt__image {
  position: relative;
  display: block;
  width: 300px;
  height: 300px;
  padding: 0;
  border: 1px solid #0002;
  background: var(--guide-receipt-pale);
  cursor: zoom-in;
}

.guide-receipt__image--history {
  grid-area: history;
}

.guide-receipt__image--issue {
  grid-area: issue;
}

.guide-receipt__image > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.guide-receipt__image::after {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 32px;
  height: 32px;
  background: url("../../img/usr/static/guide-receipt/search-plus.png") center / contain no-repeat;
  content: "";
}

.guide-receipt__image:focus-visible {
  outline: 3px solid var(--guide-receipt-blue);
  outline-offset: 3px;
}

.guide-receipt-modal {
  position: fixed;
  z-index: 1000000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(0, 0, 0, .78);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.guide-receipt-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.guide-receipt-modal__image {
  display: block;
  width: auto;
  max-width: min(1200px, 94vw);
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

.guide-receipt-modal__close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 24px;
  display: inline-flex;
  min-width: 108px;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 2px solid var(--guide-receipt-blue);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .28);
  color: var(--guide-receipt-blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.guide-receipt-modal__close span {
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.guide-receipt-modal__close:hover,
.guide-receipt-modal__close:focus-visible {
  background: var(--guide-receipt-blue);
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.guide-receipt-modal-open {
  overflow: hidden;
}

@media screen and (min-width: 1536px) {
  .guide-receipt__inner {
    width: min(1503px, calc(100% - 32px));
    max-width: none;
  }

  .guide-receipt__header {
    width: 1200px;
    margin-left: 303px;
  }

  .guide-receipt__header::after {
    left: calc(50% - 151.5px);
  }

  .guide-receipt__layout {
    display: grid;
    grid-template-columns: 256px minmax(0, 1200px);
    gap: 47px;
    align-items: start;
  }

  .guide-receipt__main {
    width: 1200px;
  }
}

@media screen and (max-width: 768px) {
  .guide-receipt {
    font-size: 4.071vw;
    line-height: 7.125vw;
  }

  .guide-receipt__inner {
    width: 100%;
    padding: 0 0 25.445vw;
  }

  .guide-receipt__header {
    margin-bottom: 0;
    padding: 5.598vw 4.326vw;
  }

  .guide-receipt__header::after {
    left: 0;
    width: 100%;
    transform: none;
  }

  .guide-receipt__title {
    font-size: 7.125vw;
    line-height: 10.433vw;
  }

  .guide-receipt__content {
    grid-template-areas:
      "copy"
      "history"
      "issue";
    grid-template-columns: minmax(0, 1fr);
    gap: 5.089vw;
    min-height: 0;
    padding: 12.723vw 4.071vw 0;
    border-bottom: 0;
  }

  .guide-receipt__copy {
    margin: 0 !important;
    font-size: 4.071vw;
    line-height: 7.125vw;
  }

  .guide-receipt__image {
    width: 91.858vw;
    height: 91.858vw;
  }

  .guide-receipt__image::after {
    right: 3.053vw;
    bottom: 3.053vw;
    width: 8.651vw;
    height: 9.16vw;
  }

  .guide-receipt-modal {
    padding: 5.089vw;
  }

  .guide-receipt-modal__close {
    top: 4.58vw;
    right: 4.58vw;
    min-width: 27.481vw;
    height: 12.214vw;
    gap: 2.036vw;
    padding: 0 4.58vw;
    border-width: .509vw;
    border-radius: 6.107vw;
    font-size: 4.071vw;
  }

  .guide-receipt-modal__close span {
    font-size: 7.125vw;
  }
}
