html {
  scroll-behavior: smooth;
}

body {
  font-family: "Mulish", "Zen Kaku Gothic New", sans-serif;
}

#bg {
  display: flex;
  justify-content: center;
  background-color: #f5f5f5;
}

#content {
  z-index: 1;
  background-color: #f5f5f5;
  width: 100%;
  max-width: 500px;
}

.footer_area {
  background-color: #000000;
}

#kv {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  /* Use .logo height to anchor supporter logo position */
  --kv-logo-height: 64px; /* must match #kv .logo height */
  /* distance from .logo bottom (increase to raise logo higher) */
  --supporterLogo-offset: calc(var(--kv-logo-height) + 64px);
}

#kv .bg img {
  width: 100%;
}

#kv .bg p {
  position: absolute;
  background-color: #ffffff;
  top: 160px;
  left: 24px;
  font-weight: 700;
  font-size: var(--28px);
  line-height: 100%;
  padding: var(--4px);
}

#kv .logo {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--184px);
  height: 64px;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0 0 24px 0;
  /* Always above supporter logo and circle */
  z-index: 5;
}

#kv > .title {
  writing-mode: vertical-rl;
  font-weight: 700;
  font-size: var(--56px);
  line-height: 100%;
  position: absolute;
  color: #ffffff;
  margin-top: 16px;
  top: 0;
  right: 0;
}

#kv .icon {
  position: absolute;
  top: 16px;
  right: 16px;
}

/* stack icon and year badge */
body.single-furusato-gift .furusato-gift-detail #kv .icon {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* =============================
   New markup support (scoped)
   for single-furusato-gift.php
   ============================= */
body.single-furusato-gift #content.furusato-gift-detail {
  /* Keep theme background; allow vertical flow */
  background-color: #f5f5f5;
}

/* KV */
body.single-furusato-gift .furusato-gift-detail .kv {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}
/* Place kv-main over kv-bg and rotating circle */
body.single-furusato-gift .furusato-gift-detail .kv .kv-main {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 32%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  width: calc(100% - 32px);
  max-width: 360px;
}
@media screen and (min-width: 500px) {
  body.single-furusato-gift .furusato-gift-detail .kv .kv-main {
    top: 38%;
  }
}
body.single-furusato-gift .furusato-gift-detail .kv .kv-bg {
  width: 100%;
  height: 42vh;
  min-height: 240px;
  max-height: 420px;
  background-size: cover;
  background-position: center;
}
body.single-furusato-gift .furusato-gift-detail .kv .kv-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px 32px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 35%,
    #fff 35%,
    #fff 100%
  );
  margin-top: -40px;
}

/* KV main: partner/gift image box */
body.single-furusato-gift .furusato-gift-detail .kv .kv-main {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  width: calc(100% - 32px);
  max-width: 360px;
}
body.single-furusato-gift .furusato-gift-detail .kv .kv-main .gift-image {
  display: block;
  max-width: 88%;
  max-height: 300px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Ensure band style and detail text apply in kv-main (override any legacy) */
#kv .kv-main .details .title.item {
  background: #000 !important;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 900;
}
#kv .kv-main .details .detail .text {
  font-size: 14px !important;
  line-height: 1.9 !important;
}

/* Top-right icon and year badge */
body.single-furusato-gift .furusato-gift-detail #kv .icon img {
  width: 64px;
  height: auto;
}
body.single-furusato-gift .furusato-gift-detail #kv .icon .year-badge {
  margin-top: 6px;
  background: #000;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
  width: fit-content;
  margin-left: auto;
}
body.single-furusato-gift .furusato-gift-detail .kv .kv-info .title {
  font-weight: 700;
  font-size: var(--24px);
  line-height: 150%;
  text-align: center;
}
body.single-furusato-gift .furusato-gift-detail .kv .partner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
body.single-furusato-gift .furusato-gift-detail .kv .partner-logo {
  max-height: 48px;
  max-width: 160px;
  object-fit: contain;
}
body.single-furusato-gift .furusato-gift-detail .kv .partner-name {
  font-weight: 700;
  font-size: var(--14px);
}

/* Rotating circle background */
body.single-furusato-gift .furusato-gift-detail .kv .description {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  z-index: 0;
}
/* Supporter: KVを内容の高さに追従させる（descriptionをフローに） */
body.single-furusato-gift #content.furusato-gift-detail .kv .description {
  position: relative;
}
body.single-furusato-gift .furusato-gift-detail #kv .description .content {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

body.single-furusato-gift
  .furusato-gift-detail
  .kv
  .description
  .circle_wrapper {
  position: absolute;
  width: 120vw;
  height: 80vw;
  max-width: 600px;
  max-height: 350px;
  overflow: hidden;
  z-index: -1;
}
@media screen and (min-width: 500px) {
  body.single-furusato-gift
    .furusato-gift-detail
    .kv
    .description
    .circle_wrapper {
    top: -30rem;
  }
}
body.single-furusato-gift .furusato-gift-detail .kv .description .circle {
  z-index: -1;
  float: left;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  width: 120vw;
  height: 120vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  background-image: url("/wp-content/uploads/sites/2/2024/06/circle-main-copy.svg");
  background-repeat: no-repeat;
  background-size: cover;
  border: inset 10px transparent;
  animation: rotate 60s linear infinite;
}

/* Supporter DOM details (wakayama DOM) */
body.single-furusato-gift
  .furusato-gift-detail
  #kv
  .description
  .content
  .details {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: start;
  flex-direction: column;
  top: -200px;
  width: 100%;
  min-height: 26rem;
  background: linear-gradient(
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgb(255, 255, 255) 50%,
    rgb(255, 255, 255) 100%
  );
}
/* Supporter: detailsもフローにして高さを確保（見た目の重なりは負のmarginで再現） */
body.single-furusato-gift
  #content.furusato-gift-detail
  #kv
  .description
  .content
  .details {
  position: relative;
  top: 0;
  margin-top: -26rem;
  z-index: 1;
  margin-bottom: 0;
}

body.single-furusato-gift
  .furusato-gift-detail
  #kv
  .description
  .content
  .details
  .supporterLogo {
  margin-top: -51%;
  margin-bottom: 96px;
  width: 100%;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

body.single-furusato-gift
  .furusato-gift-detail.item
  #kv
  .description
  .content
  .details
  .supporterLogo {
  margin-top: -34%;
  margin-bottom: 12px;
}

body.single-furusato-gift
  .furusato-gift-detail
  #kv
  .description
  .content
  .details
  .title {
  font-weight: 700;
  font-size: 18px;
  line-height: 150%;
  padding: 2px 4px;
  margin-bottom: 8px;
}
body.single-furusato-gift
  .furusato-gift-detail
  #kv
  .description
  .content
  .details
  .title {
  text-align: center;
  white-space: nowrap;
}
body.single-furusato-gift
  .furusato-gift-detail
  #kv
  .description
  .content
  .details
  .title
  .partner {
  display: inline; /* 同一行に配置 */
  font-weight: 700;
  font-size: 24px;
  line-height: 150%;
  padding: 2px 4px;
  margin-bottom: 0; /* 改行を生む余計な下余白を除去 */
  margin-right: 0.25em; /* 「様から」との間に少し余白 */
}
body.single-furusato-gift
  .furusato-gift-detail
  #kv
  .description
  .content
  .details
  .subtitle {
  margin-bottom: 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 150%;
}
body.single-furusato-gift
  .furusato-gift-detail
  #kv
  .description
  .content
  .details
  .subtitle
  .item-name-band {
  display: inline-block; /* テキスト幅に合わせ、親の text-align:center で中央配置 */
  font-weight: 700;
  font-size: 24px;
  line-height: 150%;
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  margin-bottom: 8px;
  text-align: center;
  padding: 2px 4px;
}
body.single-furusato-gift
  .furusato-gift-detail
  #kv
  .description
  .content
  .details
  .messageWrapper {
  width: fit-content;
  padding: 8px 16px;
  margin: 0 auto;
}
body.single-furusato-gift
  .furusato-gift-detail
  #kv
  .description
  .content
  .details
  .wrapper {
  width: 100%;
  background: #fff;
}
body.single-furusato-gift
  .furusato-gift-detail
  #kv
  .description
  .content
  .details
  .message {
  padding: 8px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 200%;
  border-radius: 16px;
  border: 2px dotted #000;
}
body.single-furusato-gift
  .furusato-gift-detail
  #kv
  .description
  .content
  .details
  .detail {
  padding-bottom: 20px;
  background: #fff;
}
body.single-furusato-gift
  .furusato-gift-detail
  #kv
  .description
  .content
  .details
  .detail
  .text,
body.single-furusato-gift
  .furusato-gift-detail
  #kv
  .description
  .content
  .details
  .detail
  p.text {
  margin-top: 24px;
  font-weight: 500;
  font-size: 16px;
  line-height: 200%;
  padding: 0 24px;
  margin-bottom: 8px;
}
/* 注釈用の見た目 */
body.single-furusato-gift
  .furusato-gift-detail
  #kv
  .description
  .content
  .details
  .detail
  .text
  .note {
  display: block;
  background: rgb(242, 244, 246);
  border-radius: 12px;
  padding: 12px 14px;
  color: #333;
  font-size: 14px;
}
/* 内部の段落にも余白を適用 */
body.single-furusato-gift
  .furusato-gift-detail
  #kv
  .description
  .content
  .details
  .detail
  .text
  p {
  margin: 0 0 8px;
}
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* About */
body.single-furusato-gift .furusato-gift-detail .about {
  background: #fff;
  border-radius: 24px;
}
body.single-furusato-gift .furusato-gift-detail .about .title {
  text-align: center;
  font-weight: 700;
  font-size: var(--18px);
  margin-bottom: 12px;
}
body.single-furusato-gift .furusato-gift-detail .about .content {
  font-weight: 500;
  font-size: var(--16px);
  line-height: 190%;
}

/* Slider */
body.single-furusato-gift .furusato-gift-detail .slider {
  margin: 24px 0 0;
}
body.single-furusato-gift .furusato-gift-detail .slider .items {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 0 16px;
}
body.single-furusato-gift
  .furusato-gift-detail
  .slider
  .items::-webkit-scrollbar {
  display: none;
}
body.single-furusato-gift .furusato-gift-detail .slider .item {
  flex: 0 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid #eee;
}
body.single-furusato-gift .furusato-gift-detail .slider .item img {
  max-height: 240px;
  max-width: 72vw;
  object-fit: contain;
}

/* Links: old cards styles removed (unified to list layout) */

/* Messages */
body.single-furusato-gift .furusato-gift-detail .messages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 32px 16px 0;
}
body.single-furusato-gift .furusato-gift-detail .messages .message {
  background: #fff;
  border: 2px solid #000;
  border-radius: 16px;
  padding: 16px;
}
body.single-furusato-gift .furusato-gift-detail .messages .head {
  font-weight: 700;
  font-size: var(--16px);
  margin-bottom: 8px;
  text-align: center;
}
body.single-furusato-gift .furusato-gift-detail .messages .body {
  font-weight: 500;
  font-size: var(--16px);
  line-height: 190%;
}

/* Links intro (between tips and links) */
body.single-furusato-gift .furusato-gift-detail .links-intro {
  padding: 24px 24px 0;
  background-color: #fff;
}
body.single-furusato-gift .furusato-gift-detail .links-intro .text {
  font-weight: 500;
  font-size: var(--16px);
  line-height: 190%;
}

/* Partner link */
body.single-furusato-gift .furusato-gift-detail .partner-link {
  margin: 40px 16px 0;
}
body.single-furusato-gift .furusato-gift-detail .partner-link .title {
  text-align: center;
  font-weight: 700;
  font-size: var(--18px);
  margin-bottom: 12px;
}
body.single-furusato-gift .furusato-gift-detail .partner-link .partner-card {
  background: #fff;
  border: 2px solid #000;
  border-radius: 24px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
body.single-furusato-gift .furusato-gift-detail .partner-link .partner-logo {
  max-height: 56px;
  max-width: 220px;
  object-fit: contain;
}
body.single-furusato-gift .furusato-gift-detail .partner-link .partner-name {
  font-weight: 700;
  font-size: var(--16px);
}
body.single-furusato-gift .furusato-gift-detail .partner-link .button {
  margin-top: 6px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  background-color: #000;
  color: #fff;
  padding: 10px 14px 10px 18px;
  border-radius: 24px;
  gap: 8px;
  font-weight: 700;
  font-size: var(--14px);
}
body.single-furusato-gift .furusato-gift-detail .partner-link .button .arrow {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Knowledge */
body.single-furusato-gift .furusato-gift-detail .knowledge {
  margin: 40px 16px 0;
}
/* Knowledge head (lead + stamp) */
body.single-furusato-gift .furusato-gift-detail .knowledge .knowledge-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
body.single-furusato-gift
  .furusato-gift-detail
  .knowledge
  .knowledge-head
  .lead-note {
  font-size: 12px;
  font-weight: 800;
  color: #222;
}
body.single-furusato-gift
  .furusato-gift-detail
  .knowledge
  .knowledge-head
  .stamp {
  display: inline-block;
  font-weight: 900;
  border: 3px solid #000;
  padding: 8px 16px;
  border-radius: 12px;
  background: #fff;
  transform: rotate(-6deg);
  box-shadow: 0 3px 0 #000;
}
body.single-furusato-gift .furusato-gift-detail .knowledge .title {
  text-align: center;
  font-weight: 700;
  font-size: var(--18px);
  margin-bottom: 12px;
}
body.single-furusato-gift .furusato-gift-detail .knowledge .items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
body.single-furusato-gift .furusato-gift-detail .knowledge .item {
  background: #fff;
  border: 2px solid #000;
  border-radius: 16px;
  padding: 14px 16px;
}
/* speech-bubble like */
body.single-furusato-gift .furusato-gift-detail .knowledge .item.bubble {
  position: relative;
  border-radius: 999px;
  padding: 12px 16px 12px 44px;
}
body.single-furusato-gift
  .furusato-gift-detail
  .knowledge
  .item.bubble::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #000;
  border-radius: 50%;
  background: #fff;
}

/* ========================
   closing (items only)
   ======================== */
body.single-furusato-gift #content.furusato-gift-detail.item #closing {
  margin: 20px 16px 0;
}
body.single-furusato-gift #content.furusato-gift-detail.item #closing .detail {
  text-align: center;
  font-weight: 700;
  font-size: var(--14px);
  line-height: 1.9;
  margin-bottom: 12px;
}
body.single-furusato-gift #content.furusato-gift-detail.item #closing .item a {
  display: grid;
  grid-template-columns: 72px 1fr 32px;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  border-radius: 16px;
  padding: 10px 12px;
  text-decoration: none;
}
body.single-furusato-gift
  #content.furusato-gift-detail.item
  #closing
  .item
  .thumbnail
  img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}
body.single-furusato-gift
  #content.furusato-gift-detail.item
  #closing
  .item
  .name {
  font-weight: 800;
}
body.single-furusato-gift
  #content.furusato-gift-detail.item
  #closing
  .item
  .link
  .icon
  img {
  width: 20px;
  height: 20px;
}
body.single-furusato-gift .furusato-gift-detail .knowledge .item .head {
  font-weight: 700;
  font-size: var(--16px);
  margin-bottom: 6px;
}
body.single-furusato-gift .furusato-gift-detail .knowledge .item .body {
  font-weight: 500;
  font-size: var(--16px);
  line-height: 180%;
}

#tips {
  background: #ffffff;
  width: 100%;
}

#tips .links {
  list-style: inside;
}

/* @media (390px < width <= 1200px) {
  #tips {
    margin-top: -6vw;
  }
}

@media (1200px < width) {
  #tips {
    margin-top: -8vw;
  }
} */

#tips .item {
  position: relative;
  margin: 0;
  padding-bottom: 54px;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 0 50px;
}

#tips .item .chat {
  width: 90%;
  margin-top: 32px;
  display: flex;
}

#tips .item .chat .icon {
  width: 16%;
}

#tips .item .chat .talk {
  width: 84%;
}

#tips .item .chat .talk .bubble {
  position: relative;
  background-color: #ffffff;
  border-radius: 32px;
  padding: 16px 24px;
}

#tips .item .chat .talk .bubble::before {
  content: "";
  width: var(--24px);
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg width='22' height='26' viewBox='0 0 22 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.0663 4.86633L19.5573 25.6001C19.5573 25.6001 13.5372 24.48 7.45637 18.6872C-0.742816 10.8621 0.3589 0.000419123 0.3589 0.000419123C0.3589 0.000419123 5.41933 7.10987 12.5625 6.84927C18.3085 6.64253 21.0663 4.86633 21.0663 4.86633Z' fill='white'/%3E%3C/svg%3E%0A");
  position: absolute;
  top: 0;
  left: 0;
}

#tips .item .chat .talk .bubble.title {
  margin-top: 0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

#tips .item .chat .talk .bubble.title .text {
  width: 90%;
  touch-action: none;
  pointer-events: none;
  font-weight: 700;
  font-size: var(--18px);
  line-height: 150%;
}

#tips .item .chat .talk .bubble.title .pointer {
  width: 10%;
  display: flex;
  justify-content: right;
  touch-action: none;
  pointer-events: none;
}

/* chat: 初期は閉じる（説明を非表示）、. -active で表示 */
#tips .item .chat .talk .bubble.description {
  display: none;
}
#tips .item .chat .talk .bubble.description.-active {
  display: block;
}

@keyframes pulseMotion {
  0% {
    transform: translate(-50%, -50%) scale(1, 1);
    background-color: rgba(0, 0, 0, 0.4);
  }
  100% {
    transform: translate(-50%, -50%) scale(5, 5);
    background-color: rgba(0, 0, 0, 0);
  }
}

#tips .item .chat .talk .bubble.title .dot {
  display: block;
  position: relative;
  width: var(--10px);
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  transition: background-color cubic-bezier(0.215, 0.61, 0.355, 1) 0.4s;
  cursor: pointer;
}

#tips .item .chat .talk .bubble.title .dot.-active {
  background-color: #000000;
}

#tips .item .chat .talk .bubble.title .dot:focus {
  outline: none;
}

#tips .item .chat .talk .bubble.title .dot:after {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  border-radius: 50%;
  transition: opacity linear 0.4s;
  content: "";
}

#tips .item .chat .talk .bubble.title .dot.-active:after {
  animation: pulseMotion 1.4s linear infinite;
}

#tips .item .chat .talk .bubble.description {
  display: none;
  margin-top: 8px;
  margin-bottom: 32px;
  font-weight: 500;
  font-size: var(--16px);
  line-height: 200%;
}

#tips .item .chat .talk .bubble.description p {
  margin-bottom: 12px;
}

#tips .item .chat .talk .bubble.description a {
  text-decoration-line: underline;
}

#tips .item .chat .talk .bubble.description a img {
  margin-bottom: 10px;
}

#tips .item .chat .talk .bubble.description.-active {
  display: block;
  animation: bubbleMotion 0.8s linear;
}

@keyframes bubbleMotion {
  0% {
    transform: translate(-50%, -50%) scale(0, 0);
  }
  25% {
    transform: translate(1%, 1%) scale(1.02, 1.02);
  }
  50% {
    transform: translate(0, 0) scale(1, 1);
  }
  75% {
    transform: translate(1%, 1%) scale(1.02, 1.02);
  }
  100% {
    transform: translate(0, 0) scale(1, 1);
  }
}

#closing {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  background-color: #ffffff;
  padding: var(--24px);
  border-radius: 0 0 56px 0;
  padding-bottom: 56px;
}

#closing .detail {
  font-weight: 500;
  font-size: var(--16px);
  line-height: 200%;
}

#closing .item {
  width: 100%;
  margin-top: 32px;
  padding: 12px 0;
  border-top: 2px solid #000000;
  border-bottom: 2px solid #000000;
}

#closing .item > a {
  /* サムネ有無で位置がずれないよう3カラムのグリッドにする */
  display: grid;
  grid-template-columns: var(--link-thumb-col, 120px) 1fr 72px; /* thumb / text / icon */
  align-items: center;
  column-gap: 12px;
  height: 100%;
}
/* サムネなし時は1列目を0にしてテキストを左端に */
#closing .item > a.no-thumb {
  grid-template-columns: 0 1fr 72px;
}

#closing .item .thumbnail {
  grid-column: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#closing .item .name {
  grid-column: 2;
  margin-left: 12px;
  font-weight: 700;
  font-size: var(--18px);
  line-height: 175%;
}
/* no-thumb は余白を無くす */
#closing .item > a.no-thumb .name {
  margin-left: 0;
}

#closing .item .link {
  grid-column: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  border-left: 2px dotted #000000; /* サムネの有無に関わらずこの位置で固定 */
  margin: 15px 0;
}

#closing .item .link .icon {
  padding: var(--15px);
  width: var(--30px);
  height: 30px;
  border-radius: 15px;
  background-color: #000000;
  flex-basis: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#closing .item .link .icon svg {
  position: absolute;
}

#closing .item .link .icon svg.icon-window-white {
  width: var(--13px);
  height: 13px;
}

#partner {
  margin-top: 54px;
}

/* Links section styled similar to #closing */
#links {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 0 var(--24px) 56px;
  border-radius: 0 0 56px 0;
}
#links .title {
  font-weight: 800;
  font-size: var(--18px);
}
#links .list .item {
  width: 100%;
  margin-top: 32px;
  padding: 12px 0;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
}
#links .list .item > a {
  /* サムネ有無で位置がずれないよう3カラムのグリッドにする */
  display: grid;
  grid-template-columns: var(--link-thumb-col, 120px) 1fr 72px; /* thumb / text / icon */
  align-items: center;
  column-gap: 12px;
  height: 100%;
}
/* サムネなし時は1列目を0にしてテキストを左端に */
#links .list .item > a.no-thumb {
  grid-template-columns: 0 1fr 72px;
}
#links .list .thumbnail {
  grid-column: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#links .list .thumbnail img {
  max-width: 100%;
  height: auto;
}
#links .list .name {
  grid-column: 2;
  margin-left: 12px;
  font-weight: 700;
  font-size: var(--18px);
  line-height: 175%;
}
/* no-thumb は余白を無くす */
#links .list .item > a.no-thumb .name {
  margin-left: 0;
}
#links .list .link {
  grid-column: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  border-left: 2px dotted #000; /* サムネの有無に関わらずこの位置で固定 */
  margin: 15px 0;
}
#links .list .link .icon {
  padding: var(--15px);
  width: var(--30px);
  height: 30px;
  border-radius: 15px;
  background-color: #000;
  flex-basis: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
#links .list .link .icon svg.icon-window-white {
  width: var(--13px);
  height: 13px;
  position: absolute;
}
#links .list .link .icon img {
  width: 13px;
  height: 13px;
}

#partner .bg {
  display: flex;
  justify-content: center;
}

#partner .bg .title {
  text-align: center;
  font-weight: 700;
  line-height: 60px;
  font-size: var(--70px);
  color: #ffffff;
}

#partner .content {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 48px 24px;
  margin: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#partner .content .kv {
  width: 80%;
  margin-top: -100px;
  border-radius: 24px;
}

#partner .content .flag {
  margin-top: -28px;
  z-index: 1;
}

#partner .content .about {
  position: relative;
  z-index: 0;
  margin: 24px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#partner .content .about .title {
  font-size: var(--14px);
  background-color: #ffffff;
}

#partner .content .about .title::before {
  display: inline-block;
  content: "";
  border-bottom: 2px dotted #000000;
  width: var(--16px);
  transform: rotate(60deg);
  position: relative;
  top: -4px;
}

#partner .content .about .title::after {
  display: inline-block;
  content: "";
  border-bottom: 2px dotted #000000;
  width: var(--16px);
  transform: rotate(120deg);
  position: relative;
  top: -4px;
}

#partner .content .about .name {
  font-weight: 700;
  font-size: var(--24px);
  line-height: 200%;
}

#partner .content .about .name > span {
  font-weight: 500;
  font-size: var(--16px);
  line-height: 200%;
}

#partner .content .about .description {
  margin-top: 16px;
  padding: 16px 24px 24px;
  font-weight: 500;
  font-size: var(--16px);
  line-height: 200%;
  border: 2px solid #000000;
  border-radius: 24px;
}

#partner .content .about .description p {
  margin-bottom: 12px;
}
#partner .content .about .description::before {
  display: block;
  content: "";
  border-top: 2px solid #000000;
  border-left: 2px solid #000000;
  width: var(--16px);
  height: 16px;
  background-color: #ffffff;
  transform: rotate(45deg);
  position: relative;
  left: calc(50% - 8px);
  top: -25px;
}

#partner .content .more {
  display: flex;
  justify-content: center;
}

#partner .content .group a {
  display: flex;
  padding: 17px 16px 19px 40px;
  justify-content: flex-end;
  align-items: center;
  gap: var(--37px);
  border-top: 1px solid #000;
}

#partner .content .group a:last-child {
  border-bottom: 1px solid #000;
}

#partner .content .group .item {
  width: 12rem;
  text-align: center;
}

#partner .content .arrow {
  width: var(--30px);
  height: 30px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000000;
}

#partner .content .more .button {
  height: 62px;
  display: flex;
  align-items: center;
  background-color: #000000;
  color: #ffffff;
  padding: 16px 16px 16px 32px;
  border-radius: 31px;
  width: var(--180px);
  justify-content: space-between;
  font-weight: 700;
  font-size: var(--14px);
  line-height: 150%;
}

#partner .content .more .arrow {
  width: var(--30px);
  height: 30px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
}

#share {
  margin: 32px;
  font-weight: 700;
  font-size: var(--18px);
  line-height: 26px;
  text-align: center;
  color: #000000;
}

#share .socials {
  margin-top: 16px;
  display: flex;
  gap: var(--16px);
  justify-content: center;
}

#share .socials .icon {
  background-color: #ffffff;
  height: 54px;
  width: var(--54px);
  border-radius: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#other {
  margin: 0 0 54px;
}

#other .title {
  margin: 32px 0;
  font-weight: 700;
  font-size: var(--24px);
  line-height: 42px;
  text-align: center;
  color: #000000;
}

#other .list {
  display: flex;
  justify-content: flex-start;
  overflow-x: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
  align-items: flex-start;
  padding: 0 16px;
}

#other .list .item:last-child {
  margin-right: 16px;
}

#other .list::-webkit-scrollbar {
  display: none;
}

#other .item {
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin-left: 16px;
}

#other .item .img {
  display: inline-flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border-radius: 16px;
  padding: var(--16px);
}

@media screen and (max-width: 500px) {
  #other .item .img {
    width: calc((100vw - 48px) / 2.6);
    height: calc((100vw - 48px) / 2.6);
  }
}
#other .item .img {
  height: calc((500px - 48px) / 2.6);
}
#other .item .img img {
  max-height: 100%;
  max-width: 100%;
}

#other .item .name {
  font-weight: 700;
  font-size: var(--16px);
  line-height: 150%;
  margin-top: 16px;
}

#other .item .partner {
  width: 100%;
  font-weight: 700;
  font-size: var(--14px);
  line-height: 150%;
  margin-top: 8px;
}

#back {
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
}

#back .button {
  display: flex;
  background-color: #000000;
  width: var(--236px);
  padding: 16px 32px 16px 16px;
  height: 64px;
  border-radius: 32px;
  align-items: center;
  font-weight: 700;
  font-size: var(--14px);
  line-height: 150%;
  color: #ffffff;
  justify-content: space-between;
}

#back .button .icon {
  width: var(--30px);
  height: 30px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
}

#toast {
  visibility: hidden;
  z-index: 2;
  position: fixed;
  top: 24px;
  left: calc(50% - 112px);
  width: var(--224px);
  padding: 16px 24px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
}

#toast.show {
  visibility: visible;
  -webkit-animation: fadein 0.2s, fadeout 0.2s 3.5s;
  animation: fadein 0.2s, fadeout 0.2s 3.5s;
}

@-webkit-keyframes fadein {
  from {
    top: 0;
    opacity: 0;
  }
  to {
    top: 24px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    top: 0;
    opacity: 0;
  }
  to {
    top: 24px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    top: 24px;
    opacity: 1;
  }
  to {
    top: 0;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    top: 24px;
    opacity: 1;
  }
  to {
    top: 0;
    opacity: 0;
  }
}
