.yhtgv-shell,
.yhtgv-shell * {
  box-sizing: border-box;
}

.yhtgv-shell {
  width: 100vw;
  max-width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-bottom: var(--yhtgv-desktop-margin, 100px);
  margin-left: calc(50% - 50vw);
  overflow: clip;
  color: #1b1b1b;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.yhtgv-shell p {
  margin-top: 0;
}

.yhtgv-visual {
  position: relative;
  width: 100%;
  height: var(--yhtgv-desktop-height, 500px);
  overflow: hidden;
  background: #f6f6f6;
}

.yhtgv-visual picture,
.yhtgv-visual__image {
  display: block;
  width: 100%;
  height: 100%;
}

.yhtgv-visual__image {
  object-fit: cover;
  object-position: var(--yhtgv-desktop-x, 50%) var(--yhtgv-desktop-y, 50%);
}

.yhtgv-lower {
  position: relative;
  background-color: var(--yhtgv-lower-bg, transparent);
  background-image: var(--yhtgv-bg-image, none);
  background-repeat: repeat;
}

.yhtgv-inner {
  position: relative;
  width: min(100%, var(--yhtgv-inner-width, 1200px));
  min-height: 1px;
  margin: 0 auto;
  padding: calc(var(--yhtgv-desktop-overlap, 80px) + 20px) 24px 0;
}

.yhtgv-label {
  position: absolute;
  z-index: 2;
  top: calc(-1 * var(--yhtgv-desktop-overlap, 80px));
  left: 24px;
  display: flex;
  width: var(--yhtgv-desktop-label, 180px);
  height: var(--yhtgv-desktop-label, 180px);
  margin: 0;
  padding: 18px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #4b7d55;
  background-image: var(--yhtgv-label-image, none);
  background-position: center;
  background-size: cover;
  box-shadow: 0 5px 14px rgba(20, 49, 27, 0.2);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
}

.yhtgv-label span {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.yhtgv-label--en {
  font-size: 17px;
  line-height: 1.55;
  text-align: center;
}

.yhtgv-label--en span {
  white-space: normal;
  writing-mode: horizontal-tb;
}

.yhtgv-desc {
  width: 100%;
  text-align: center;
}

.yhtgv-desc--jp {
  padding: 0 0 10px;
}

.yhtgv-jp-lines {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 0;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: center;
  font-size: var(--yhtgv-desktop-font, 15px);
  font-weight: 400;
  text-align: left;
}

.yhtgv-jp-mobile {
  display: none;
}

.yhtgv-jp-line {
  display: block;
  flex: 0 0 auto;
  line-height: var(--yhtgv-desktop-leading, 2.5);
  letter-spacing: 0.02em;
  text-orientation: mixed;
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.yhtgv-jp-line.is-paragraph-end {
  margin-left: 0.45em;
}

.yhtgv-desc--en {
  max-width: 780px;
  margin: 0 auto;
  padding: 8px 0 20px;
  font-size: var(--yhtgv-desktop-font, 15px);
  line-height: 2.05;
  text-align: left;
}

.yhtgv-desc--en p {
  margin-bottom: 1.25em;
}

@media (max-width: 991px) {
  .yhtgv-shell {
    margin-bottom: var(--yhtgv-tablet-margin, 100px);
  }

  .yhtgv-visual {
    height: var(--yhtgv-tablet-height, 500px);
  }

  .yhtgv-inner {
    padding-top: calc(var(--yhtgv-tablet-overlap, 80px) + 20px);
  }

  .yhtgv-label {
    top: calc(-1 * var(--yhtgv-tablet-overlap, 80px));
    width: var(--yhtgv-tablet-label, 145px);
    height: var(--yhtgv-tablet-label, 145px);
    padding: 14px;
    font-size: 21px;
  }

  .yhtgv-label--en {
    font-size: 15px;
  }

  .yhtgv-jp-lines,
  .yhtgv-desc--en {
    font-size: var(--yhtgv-tablet-font, 14px);
  }

  .yhtgv-jp-line {
    line-height: var(--yhtgv-tablet-leading, 2.3);
  }
}

@media (max-width: 767px) {
  .yhtgv-shell {
    margin-bottom: var(--yhtgv-mobile-margin, 23px);
  }

  .yhtgv-visual {
    height: var(--yhtgv-mobile-height, 250px);
  }

  .yhtgv-visual__image {
    object-position: var(--yhtgv-mobile-x, 50%) var(--yhtgv-mobile-y, 50%);
  }

  .yhtgv-inner {
    width: 100%;
    padding: 0 20px;
  }

  .yhtgv-label {
    position: relative;
    top: auto;
    left: auto;
    width: var(--yhtgv-mobile-label, 110px);
    height: var(--yhtgv-mobile-label, 110px);
    margin: 30px auto 23px;
    padding: 12px;
    font-size: 20px;
  }

  .yhtgv-label--en {
    font-size: 14px;
  }

  .yhtgv-desc,
  .yhtgv-desc--jp,
  .yhtgv-desc--en {
    max-width: none;
    padding: 0;
    font-size: var(--yhtgv-mobile-font, 14px);
    line-height: var(--yhtgv-mobile-leading, 2);
    text-align: left;
  }

  .yhtgv-jp-lines {
    display: none;
  }

  .yhtgv-jp-mobile {
    display: block;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    text-align: left;
    line-break: strict;
    overflow-wrap: anywhere;
  }

  .yhtgv-jp-mobile p {
    margin: 0 0 1em;
  }

  .yhtgv-jp-mobile p:last-child {
    margin-bottom: 0;
  }

  .yhtgv-desc--en p {
    margin-bottom: 1em;
  }
}

@supports not (overflow: clip) {
  .yhtgv-shell {
    overflow: hidden;
  }
}
