@charset "utf-8";

:root {
  --orange: #ea5a43;
  --gray: #333;
}

.image-center {
  display: block;
  margin-inline: auto;
}

/* article */

.news-article {
  padding: clamp(2rem, 5vw, 5rem);
  background: #fff;
  box-shadow: 0 0 1rem #33333315;
  border-radius: 3px;
}

.news-article-header {
  border-bottom: 3px solid var(--orange);
}

.news-article-header .c-heading {
  margin-top: 2rem;
}

.news-heading-3 {
  display: grid;
  grid-template-columns: .6em 1fr;
  column-gap: .5em;
  margin-top: 2em;
  margin-bottom: 1em;
}

.news-article .c-heading--l {
  font-size: clamp(2rem, 1rem + 5vw, 2.6rem);
  line-height: 1.5;
}

.news-heading-3::before {
  content: '';
  display: inline-block;
  width: 100%;
  height: 100%;
  background: linear-gradient(150deg, var(--orange) 63%, #333 63%);
}

.news-article-footer {
  margin-top: 3em;
  padding-top: 3em;
  border-top: 1px solid #33333315;
}

/* SNS Share buttons */

.share-buttons {
  --share-icon-size: 44px;
  --share-gap: 12px;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--share-gap);
}

.share-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 100vw;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .3s;
}

.share-button:hover {
  opacity: .6;
}

.share-button:active {
  transform: scale(0.97);
}

.share-button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.share-button__icon {
  display: inline-flex;
  flex: 0 0 var(--share-icon-size);
  align-items: center;
  justify-content: center;
  width: var(--share-icon-size);
  height: var(--share-icon-size);
  border-radius: 50%;
  color: #fff;
}

.share-button__icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* X */
.share-button--x .share-button__icon {
  background-color: #000;
}

/* LINE */
.share-button--line .share-button__icon {
  background-color: #06c755;
}

.share-button--line .share-button__icon-cutout {
  fill: #06c755;
}

/* URLコピー */
.share-button--copy .share-button__icon {
  background-color: #3478f6;
}

.share-button__label {
  white-space: nowrap;
  font-weight: 500;
}

/* コピー結果のメッセージ */
.share-message {
  position: absolute;
  top: 0;
  left: 50%;
  opacity: 0;
  visibility: hidden;
  width: max-content;
  max-width: 180px;
  min-height: 1.5em;
  margin: 8px 0 0;
  padding: .5em;
  background: #ddd;
  box-shadow: 0 0 1em #33333315;
  border-radius: 3px;
  translate: -50% .3em;
  pointer-events: none;
  transition: opacity .3s, translate .3s, visibility 0s linear .3s;
  color: #333;
  font-size: 11px;
  line-height: 1.2em;
}

.share-message:empty {
  opacity: 0;
  visibility: hidden;
}

.share-message.is-show {
  opacity: 1;
  visibility: visible;
  translate: -50% -2em;
  transition: opacity .3s, translate .3s, visibility 0s;
}

@media (max-width: 480px) {
  .share-buttons {
    --share-icon-size: 40px;
    --share-gap: 8px;
  }

  .share-button {
    gap: 8px;
    padding-right: 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .share-button {
    transition: none;
  }
}