.inline-frame{
    height: 300px;
    border: solid 1px #ddd;
    padding: 1.2vw;
    background: #fff;
}

.yamazaki-lede{
    line-height: 2.0;
    margin: 40px 0 60px;
}
@media (max-width: 768px) {
  .yamazaki-lede{
      line-height: 1.6;
      margin: 0 0 20px;
  }
}
.yamazaki-tower {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 45px;
  width: 100%;
  margin-top: 40px;
  padding: 40px;
  color: #1a1a1a;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.yamazaki-tower__info {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.yamazaki-tower__logos {
  display: flex;
  align-items: center;
  gap: 34px;
}

.yamazaki-tower__yamazaki-logo {
  display: block;
  width: 100px;
  height: 72px;
}

.yamazaki-tower__tower-logo {
  display: block;
  width: 163px;
  height: auto;
}

@media (max-width: 768px) {
  .yamazaki-tower__logos {
    scale: .8;
  }
}

.yamazaki-tower__description {
  max-width: 640px;
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
  overflow-wrap: break-word;
}

.yamazaki-tower__image {
  flex: 0 0 276px;
  width: 276px;
  height: 276px;
  margin: 0;
  overflow: hidden;
}

.yamazaki-tower__image img {
  display: block;
  width: 180.4%;
  max-width: none;
  height: 120.3%;
  margin-top: -16.7%;
  margin-left: -51.45%;
}

@media (max-width: 768px) {
  .yamazaki-tower {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
    margin-top: 30px;
    padding: 30px 20px;
    border-radius: 15px;
  }

  .yamazaki-tower__info {
    gap: 25px;
  }

  .yamazaki-tower__logos {
    justify-content: center;
    width: 100%;
    gap: 20px;
  }

  .yamazaki-tower__yamazaki-logo {
    width: 86px;
    height: auto;
  }

  .yamazaki-tower__tower-logo {
    width: 140px;
  }

  .yamazaki-tower__description {
    max-width: none;
    font-size: 16px;
  }

  .yamazaki-tower__image {
    flex-basis: auto;
    align-self: center;
    width: 100%;
    max-width: 276px;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 374px) {
  .yamazaki-tower__logos {
    gap: 15px;
  }

  .yamazaki-tower__yamazaki-logo {
    width: 76px;
  }

  .yamazaki-tower__tower-logo {
    width: 124px;
  }
}

.yamazaki-anchor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 0 64px;
}

.yamazaki-anchor__icon {
  display: block;
  width: 60px;
  height: 72px;
}

.yamazaki-anchor__title {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding-bottom: 16px;
  color: #000;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.23;
  letter-spacing: 0.09em;
  text-align: center;
}

.yamazaki-anchor__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yamazaki-anchor__item {
  flex: 0 0 207px;
  width: 207px;
}

.yamazaki-anchor__item a {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 51px;
  padding: 11px 36px 12px;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.23;
  letter-spacing: 0.09em;
  text-align: center;
  text-decoration: none;
  background-color: #e60012;
  border: 2px solid #e60012;
  border-radius: 103px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.yamazaki-anchor__item a > img {
  position: absolute;
  top: 50%;
  right: 14px;
  display: block;
  width: 10px;
  height: 15px;
  transform: translateY(-50%) rotate(90deg);
}

@media (hover: hover) {
  .yamazaki-anchor__item a:hover {
    color: #e60012;
    background-color: #fff;
  }

  .yamazaki-anchor__item a:hover > img {
    content: url("/assets/images/ic-arrow-red.png");
  }
}

@media (max-width: 768px) {
  .yamazaki-anchor {
    padding: 0 0 50px;
  }

  .yamazaki-anchor__icon {
    width: 50px;
    height: 60px;
  }

  .yamazaki-anchor__title {
    padding-bottom: 12px;
    font-size: 22px;
  }

  .yamazaki-anchor__list {
    flex-wrap: wrap;
    gap: 12px;
  }

  .yamazaki-anchor__item {
    flex-basis: calc((100% - 12px) / 2);
    width: calc((100% - 12px) / 2);
  }

  .yamazaki-anchor__item a {
    min-height: 48px;
    padding: 10px 28px 11px;
    font-size: 17px;
  }

  .yamazaki-anchor__item a > img {
    right: 12px;
    width: 8px;
    height: 12px;
  }
}

.yamazaki-present {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  overflow: visible;
  color: #1a1a1a;
  scroll-margin-top: 100px;
}

.yamazaki-back-button {
  position: relative;
}

.yamazaki-back-button > img {
  position: absolute;
  top: 50%;
  right: 20px;
  display: block;
  width: 10px;
  height: 15px;
  transform: translateY(-50%) rotate(-90deg);
}

@media (hover: hover) {
  .yamazaki-back-button:hover > img {
    content: url("/assets/images/ic-arrow-white.png");
  }
}

@media (max-width: 768px) {
  .yamazaki-back-button > img {
    right: 16px;
    width: 8px;
    height: 12px;
  }
}

.yamazaki-present__wrap{
    margin-bottom: 100px;
}

.yamazaki-present__body {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: 40px;
  overflow: hidden;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 0 11px rgba(0, 0, 0, 0.05);
}

.yamazaki-present + .yamazaki-present {
  margin-top: 40px;
}

.yamazaki-present--b .yamazaki-present__prize,
.yamazaki-present--c .yamazaki-present__prize,
.yamazaki-present--d .yamazaki-present__prize {
  top: -34px;
  right: -34px;
  width: 172px;
  height: 172px;
}

.yamazaki-present__course-label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: block;
  width: 228px;
  height: 221px;
}

.yamazaki-present__prize {
  position: absolute;
  top: -34px;
  right: -34px;
  z-index: 3;
  display: block;
  width: 172px;
  height: 172px;
}

.yamazaki-present__title {
  position: relative;
  margin: 0;
  padding: 0 120px 24px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-align: center;
}

.yamazaki-present__summary {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 20px;
  padding: 30px 20px;
  text-align: center;
  background-color: #f8f8f8;
}

.yamazaki-present__summary::before,
.yamazaki-present__summary::after {
  position: absolute;
  width: 64px;
  height: 1px;
  content: "";
  background-color: #ccc;
  transform: rotate(-45deg);
}

.yamazaki-present__summary::before {
  top: 15px;
  left: -17px;
}

.yamazaki-present__summary::after {
  right: -17px;
  bottom: 15px;
}

.yamazaki-present__summary p {
  margin: 19px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.07em;
}

.yamazaki-present__heading {
  display: table;
  margin: 0 auto;
  padding: 5px 14px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.07em;
  text-align: center;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
}

.yamazaki-present__detail-heading {
  margin-bottom: 20px;
}

.yamazaki-present__product {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.yamazaki-present__product + .yamazaki-present__product {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.yamazaki-present__product-image {
  flex: 0 0 400px;
  width: 400px;
  margin: 0;
}

.yamazaki-present__product-image img {
  display: block;
  width: 100%;
  height: auto;
}

.yamazaki-gallery__main {
  position: relative;
  width: 100%;
  height: 225px;
  overflow: hidden;
}

.yamazaki-gallery__main:not(.slick-initialized) > div:not(:first-child) {
  display: none;
}

.yamazaki-gallery__main .slick-list,
.yamazaki-gallery__main .slick-track,
.yamazaki-gallery__main .slick-slide,
.yamazaki-gallery__main .slick-slide > div {
  height: 100%;
}

.yamazaki-gallery__main .slick-slide img {
  width: 100%;
  height: 225px;
  object-fit: cover;
}

.yamazaki-gallery__main .slick-slide img.yamazaki-gallery__contain {
  object-fit: contain;
  background-color: #fff;
}

.yamazaki-gallery--tall .yamazaki-gallery__main,
.yamazaki-gallery--tall .yamazaki-gallery__main .slick-slide img {
  height: 262px;
}

.yamazaki-gallery--x-tall .yamazaki-gallery__main,
.yamazaki-gallery--x-tall .yamazaki-gallery__main .slick-slide img {
  height: 276px;
}

.yamazaki-gallery__zoom {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.yamazaki-gallery__zoom:focus {
  outline: none;
}

.yamazaki-gallery__nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 10px 0 0;
  overflow: hidden;
}

.yamazaki-gallery__thumbnail {
  box-sizing: border-box;
  flex: 0 0 calc((100% - 24px) / 4);
  width: calc((100% - 24px) / 4);
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.yamazaki-gallery__thumbnail img {
  box-sizing: border-box;
  width: 100%;
  height: 53px;
  object-fit: cover;
  border: 3px solid transparent;
}

.yamazaki-gallery__thumbnail img.yamazaki-gallery__contain {
  background-color: #fff;
}

.yamazaki-gallery__thumbnail.is-current img {
  border-color: #ddd;
}

.yamazaki-gallery__thumbnail:focus {
  outline: none;
}

.yamazaki-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 43px;
  height: 43px;
  padding: 0;
  font-size: 0;
  background: url("./images/course-a-slider-arrow.svg") no-repeat center / 43px 43px;
  border: 0;
  cursor: pointer;
  transform: translateY(-50%) rotate(-45deg);
}

.yamazaki-gallery__arrow--prev {
  left: 10px;
  transform: translateY(-50%) rotate(135deg);
}

.yamazaki-gallery__arrow--next {
  right: 10px;
}

.yamazaki-gallery__arrow:focus {
  outline: none;
  box-shadow: none;
}

.yamazaki-gallery__arrow.slick-disabled {
  display: none !important;
}

body.is-yamazaki-modal-open {
  overflow: hidden;
}

.yamazaki-image-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 40px;
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.78);
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.yamazaki-image-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.yamazaki-image-modal__content {
  position: relative;
  width: 100%;
  max-width: 800px;
}

.yamazaki-image-modal__image {
  display: block;
  width: 100%;
  max-width: 800px;
  max-height: calc(100vh - 80px);
  object-fit: contain;
}

.yamazaki-image-modal__close {
  position: absolute;
  top: -42px;
  right: -8px;
  z-index: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 40px;
  font-weight: 300;
  line-height: 36px;
  text-align: center;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.yamazaki-image-modal__close:focus {
  outline: none;
  box-shadow: none;
}

.yamazaki-present__product-text,
.yamazaki-present__product-list {
  flex: 1 1 auto;
  min-width: 0;
}

.yamazaki-present__product-text h4 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.07em;
}

.yamazaki-present__product-text p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.07em;
}

.yamazaki-present__product-list {
  margin: 0;
  padding: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  list-style: none;
}
.yamazaki-present__product-list li{
  text-indent: -1em;
  padding-left: 1em;
}
.yamazaki-present__product-list li::before {
  content: "・";
}

.yamazaki-corp {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 30px;
  width: 100%;
  margin: 60px 0;
  padding: 40px;
  color: #000;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
}

.yamazaki-corp__lead {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.07em;
  text-align: center;
}

.yamazaki-corp__lead a {
  color: inherit;
  text-decoration: underline;
}

.yamazaki-corp__lead a img {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-left: 5px;
  vertical-align: baseline;
}

.yamazaki-corp__visual {
  margin: 0;
}

.yamazaki-corp__visual img {
  display: block;
  width: 100%;
  height: auto;
}

.yamazaki-corp__description {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.07em;
}

.yamazaki-corp__button {
  display: block;
  align-self: center;
  width: 436px;
  max-width: 100%;
}

.yamazaki-corp__button img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 1200px) {
  .yamazaki-present__prize {
    right: 8px;
  }
}

@media (max-width: 768px) {
  .yamazaki-corp {
    gap: 20px;
    margin: 40px 0;
    padding: 25px 20px;
    border-radius: 15px;
  }

  .yamazaki-corp__lead {
    font-size: 18px;
  }

  .yamazaki-corp__lead br {
    display: none;
  }

  .yamazaki-corp__description {
    font-size: 16px;
    line-height: 1.7;
  }

  .yamazaki-present__body {
    /* iPhone SE幅ではラベルとの間隔を確保し、広い画面ほど余白を詰める */
    padding: clamp(80px, calc(304px - 51.2vw), 112px) 20px 30px;
    border-radius: 15px;
  }

  .yamazaki-present {
    scroll-margin-top: 80px;
  }

  .yamazaki-present__course-label {
    width: clamp(110px, 29.333vw, 140px);
    height: auto;
  }

  .yamazaki-present__prize,
  .yamazaki-present--b .yamazaki-present__prize,
  .yamazaki-present--c .yamazaki-present__prize,
  .yamazaki-present--d .yamazaki-present__prize {
    top: -14px;
    right: 8px;
    width: clamp(86px, 22.933vw, 108px);
    height: auto;
  }

  .yamazaki-present__title {
    padding: 0 0 20px;
    font-size: 24px;
    line-height: 1.5;
    letter-spacing: -0.05px;
  }

  .yamazaki-present__summary {
    padding: 25px 15px;
  }

  .yamazaki-present__summary p {
    font-size: 15px;
    letter-spacing: -0.05px;
    font-feature-settings: "palt";
  }

  .yamazaki-present__heading {
    font-size: 18px;
  }

  .yamazaki-present__product {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .yamazaki-present__product-image {
    flex-basis: auto;
    width: 100%;
    max-width: 400px;
    margin-right: auto;
    margin-left: auto;
  }

  .yamazaki-present__product-text h4 {
    font-size: 20px;
    letter-spacing: -0.05px;
  }

  .yamazaki-present__product-text p {
    font-size: 16px;
  }

  .yamazaki-present__product-list {
    font-size: 16px;
  }

  .yamazaki-image-modal {
    padding: 50px 15px 20px;
  }

  .yamazaki-image-modal__image {
    max-height: calc(100vh - 70px);
  }

  .yamazaki-image-modal__close {
    top: -42px;
    right: 0;
  }
}
