:root {
  --228px: 14.25rem;
  --230px: 14.375rem;
  --233px: 14.5625rem;
}
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 {
  height: 584px;
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-bottom-right-radius: 56px;
  margin-bottom: 56px;
}

#kv .partner {
  position: absolute;
  background-color: #ffffff;
  bottom: 48px;
  left: 0;
  font-weight: 700;
  font-size: 28px;
  line-height: 100%;
  padding: 8px;
}
#kv.multiple .partner {
  bottom: 87px;
}

#kv .caption {
  position: absolute;
  bottom: 48px;
  right: 16px;
  font-weight: 500;
  font-size: 11px;
  line-height: 150%;
  color: #ffffff;
  text-align: right;
}

#kv .caption.black {
  color: #000000;
  filter: drop-shadow(0 0 4px white);
}

#kv .logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 184px;
  height: 64px;
  background-color: #ffffff;
  display: none;
  justify-content: center;
  align-items: center;
  border-radius: 0px 0px 24px 0px;
}

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

#kv .messages .title {
  position: absolute;
  bottom: -16px;
  left: 0;
}

#kv .messages .title {
  background-color: #000000;
  font-weight: 700;
  font-size: 26px;
  line-height: 150%;
  color: #ffffff;
  padding: 0 16px;
}

#about {
  position: relative;
  z-index: 0;
  margin: 55px 0 74px 0;
  padding: 0 24px;
}

#about .bg {
  writing-mode: vertical-rl;
  font-weight: 700;
  font-size: 56px;
  position: absolute;
  color: #ffffff;
  top: -56px;
  right: 8px;
  z-index: -1;
}

#about .title {
  background-color: #f5f5f5;
  position: absolute;
  padding: 0 8px;
  top: -9px;
  left: calc(50% - 70px);
}

#about .content {
  padding: 24px;
  font-weight: 700;
  font-size: 14px;
  line-height: 200%;
  border: 2px solid #000000;
  border-radius: 24px;
}

#about .content p {
  margin-bottom: 8px;
}

#benefit {
  background-color: #ffffff;
  padding: 48px 24px;
  border-radius: 56px 0px;
  margin-bottom: 64px;
}

#benefit .title {
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 24px;
}

#benefit .content {
  border: 2px solid #000000;
  border-radius: 24px;
}

#benefit .content .type {
  padding: 16px;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #000000;
}

#benefit .content .type .icon {
  width: 34px;
  height: 34px;
  border-radius: 17px;
  padding: 4px;
  border: 2px solid #000000;
  display: flex;
  align-items: center;
  margin-right: 8px;
}

#benefit .content .item {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#benefit .content .item .photo {
  width: 100%;
  border-radius: 24px;
  margin-bottom: 24px;
}

#benefit .content .item .name {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}

#benefit .content .item .detail {
  font-size: 14px;
  line-height: 200%;
  margin-bottom: 12px;
}

#benefit .content .item .help {
  padding: 16px 24px;
  background: #f2f4f6;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 175%;
}

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

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

#company {
  background: #ffffff;
  border-radius: 24px;
  position: relative;
  margin: 0 24px 32px 24px;
}

#company .title {
  font-weight: 700;
  font-size: 22px;
  line-height: 27px;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 184px;
  background-color: #ffffff;
  height: 60px;
  border-radius: 30px;
  top: -30px;
  left: calc(50% - 92px);
}

#company .items {
  padding: 32px 24px;
}

#company .row {
  padding: 16px 0;
  border-bottom: 2px dotted #000000;
}

#company .row .label {
  font-weight: 500;
  font-size: 14px;
  line-height: 175%;
  display: flex;
  align-items: center;
}

#company .row .label .head {
  margin-right: 8px;
  width: 4px;
  height: 15px;
  border-radius: 2px;
  background-color: #000000;
}

#company .row .value {
  font-weight: 700;
  font-size: 16px;
  line-height: 175%;
}

#company .row.multiple .value {
  margin-bottom: 8px;
}

#company .row a.value {
  font-weight: 700;
  font-size: 16px;
  line-height: 175%;
  text-decoration: underline;
  display: flex;
  align-items: center;
  overflow-wrap: anywhere;
}

#company .row a.value :is(img, svg) {
  margin-left: 4px;
}

#company .row .value .subtext {
  font-weight: 500;
  font-size: 12px;
  line-height: 175%;
}

#company .row ul {
  margin-bottom: 8px;
  list-style: inside;
  list-style-position: outside;
  margin-left: 20px;
}

#company .row ul > li {
  padding: 4px 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 175%;
  word-break: break-all;
}

#company .row > .annotation {
  font-weight: 500;
  font-size: 14px;
  line-height: 150%;
  padding: 8px 0;
}

#company .row > .annotation > a {
  text-decoration: underline;
}

#company .row > .annotation > a > :is(img, svg) {
  vertical-align: baseline;
}

#company .socials {
  padding: 24px;
  border: 2px solid #f2f4f6;
  border-radius: 24px;
  margin: 0 24px 24px 24px;
}

#company .link {
  display: flex;
  justify-content: center;
  padding-bottom: 48px;
}

#company .link .button {
  width: 180px;
  height: 64px;
  background: #000000;
  border-radius: 32px;
  color: white;
  display: flex;
  align-items: center;
  padding: 16px 16px 16px 32px;
  justify-content: space-between;
}

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

#company .socials .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
  line-height: 175%;
}

#company .socials .icon :is(img, svg) {
  margin-right: 8px;
}

#company .socials a {
  display: flex;
  align-items: baseline;
  font-weight: 700;
  font-size: 14px;
  line-height: 175%;
  text-align: right;
  text-decoration-line: underline;
  color: #888888;
}

#company .socials a :is(img, svg) {
  margin-left: 4px;
}

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

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

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

#articles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 16px 24px;
  gap: 16px;
  margin-bottom: 32px;
}

#articles .item {
  width: 100%;
  height: 100%;
  position: relative;
}

#articles .item .arrow {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  line-height: 100%;
  padding: 16px 0;
}

#articles .next .arrow {
  justify-content: end;
}

#articles .item .arrow .icon {
  background-color: #000000;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#articles .next .arrow .icon {
  margin-left: 8px;
}

#articles .prev .arrow .icon {
  margin-right: 8px;
}

#articles .item .card {
  padding-bottom: 32px;
}

#articles .item .card .title {
  font-weight: 700;
  font-size: 16px;
  line-height: 175%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-bottom: 8px;
}

#articles .item .card .company {
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 8px;
}

#articles .item .card img {
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 8px;
}

#articles .item .card .dates {
  position: absolute;
  bottom: 0;
}

#articles .item .card .dates .tag {
  font-weight: 700;
  font-size: 10px;
  line-height: 13px;
  color: #888888;
  border-radius: 10px;
  height: 20px;
  border: 1px solid #888888;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

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

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

#back .button .icon {
  width: 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: 224px;
  padding: 16px 24px;
  background: #ffffff;
  box-shadow: 0px 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;
  }
}
.tips-decolation {
  text-align: center;
  margin-bottom: -31px;
}
.tips-decolation img {
  width: var(--233px);
}

#tips {
  background: #fff;
  padding-top: 27px;
  border-radius: 56px 0px;
}

#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: 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: 18px;
  line-height: 150%;
}

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

@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: 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: 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);
  }
}

.regional-contribution {
  padding: 40px 24px;
  background-color: #fff;
  margin-bottom: 70px;
  border-radius: 0 0 56px;
}

.regional-contribution h2 {
  font-size: 22px; /* 画像に合わせたフォントサイズ */
  font-weight: 700; /* 太字 */
  line-height: 150%; /* 行間 */
  text-align: center;
  margin-bottom: 20px; /* 下マージン追加 */
}
.regional-contribution h2 span {
  font-size: 16px;
}

.regional-contribution h2 span {
  /* 様のスタイル */
  font-size: 16px;
  font-weight: normal; /* 通常の太さ */
}

.contribution-year-section {
  background-color: #fff;
  border-radius: 24px; /* 角丸 */
  border: 2px solid #000; /* 黒い境界線 */
  padding: 15px;
  margin-bottom: 15px;
}

.contribution-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 16px;
}

.past-year-section .contribution-header {
  margin-bottom: 0;
}

.badge-icon {
  width: 50px;
  height: auto;
}

.contribution-header h3 {
  /* 現在の年のセクションタイトル */
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
  margin: 0;
  flex-grow: 1;
}

.contribution-header h5 {
  /* 過去年のセクションタイトル */
  font-size: 16px; /* 少し小さく */
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
  margin: 0;
  flex-grow: 1;
}

.arrow {
  /* 矢印アイコンのコンテナ */
  background-color: #000000;
  height: 24px;
  width: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100%;
}

.arrow img {
  width: 8px; /* アイコン自体のサイズ調整 */
  height: auto;
  filter: brightness(0) invert(1); /* SVGを白にする場合 */
}

.contribution-details {
  /* 詳細セクション */
  border-radius: 16px;
  background: #f2f4f6; /* 背景色 */
  padding: 16px 24px;
}

.contribution-details p {
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 200%;
  margin-bottom: 10px;
}

.contribution-details .footnote {
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 200%;
}

.year {
  /* 過去年の「2024」などのコンテナ */
  text-align: center;
  position: relative;
  margin-bottom: 10px; /* ヘッダーとの間隔 */
}

.year > p {
  /* 「2024」などのテキスト自体 */
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  font-size: 18px; /* フォントサイズ調整 */
  font-weight: 700;
  display: inline-block;
  position: relative;
  padding: 4px 16px;
  border-radius: 30px;
}

.year > p::after {
  /* 年表示の下の三角形 */
  content: "";
  position: absolute;
  bottom: -8px; /* 三角形の位置 */
  left: 50%; /* 中央揃え */
  transform: translateX(-50%); /* 中央揃えのための調整 */
  border-width: 8px 6px 0px;
  border-style: solid;
  border-color: rgb(0, 0, 0) transparent transparent;
}

/* KV bottom info row */
body.single-favtown-partner #content #kv-info {
  display: flex !important;
  gap: 20px;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 auto;
  padding: 16px 20px 16px 0;
  width: auto !important;
  margin-top: -212px;
  z-index: 1;
  position: relative;
}
/* .multiple と #kv-info が兄弟要素の場合に適用したいので子孫セレクタではなく兄弟セレクタを使用 */
body.single-favtown-partner #content .multiple + #kv-info,
body.single-favtown-partner #content .multiple ~ #kv-info {
  margin-top: -253px;
}
body.single-favtown-partner #content #kv-info .kv-left {
  flex: 1;
  min-width: 0;
}
body.single-favtown-partner #content .partner-name {
  background-color: #000000;
  font-weight: 700;
  font-size: var(--26px);
  line-height: 150%;
  color: #ffffff;
  padding: 0 16px;
  width: fit-content;
  margin: 0;
  z-index: 1;
  position: relative;
}

body.single-favtown-partner #content #kv-info .partner img {
  object-fit: contain !important;
  display: block !important;
}

/* Partner logo container: fixed-height area with content-driven width */
body.single-favtown-partner #content #kv-info .partner .partner-logo {
  display: flex;
  padding: 8px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  width: fit-content;
}

/* Badge area on the right */
body.single-favtown-partner #content #kv-info #partner-badge {
  position: static !important;
  margin-left: auto !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  display: block;
  text-align: right;
}
#partner-badge .badge img {
  width: 80px;
  height: 101px;
  flex-shrink: 0;
  aspect-ratio: 80/101;
}
#partner-badge .furusato-links {
  margin-top: 30px;
}
#partner-badge .furusato-links h4 {
  font-size: 18px;
  margin-bottom: 15px;
}
#partner-badge .furusato-links ul {
  display: inline-block;
  text-align: left;
  padding-left: 0;
  list-style-type: none;
}
#partner-badge .furusato-links li {
  margin-bottom: 8px;
}
#partner-badge .furusato-links li a {
  display: inline-flex;
  align-items: center;
}
#partner-badge .furusato-links li a svg {
  margin-left: 5px;
}

.regions {
  display: flex;
  padding: 8px 16px;
  align-items: flex-start;
  align-content: flex-start;
  gap: 10px;
  align-self: stretch;
  flex-wrap: wrap;
}
.regions .region {
  display: inline-flex;
  padding: 5px 10px;
  align-items: flex-start;
  gap: 10px;
  border-radius: 100px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
}
.region-labels {
  padding: 8px 16px;
}

#partner-badge {
  position: absolute;
  right: 16px;
  bottom: 44px;
}
#partner-badge .badge img {
  width: 80px;
  height: 101px;
  flex-shrink: 0;
  aspect-ratio: 80 / 101;
}
