/* === Shared Styles Start === */
:root {
  /* Bootstrap color */
  --body-color: #594f51;
  --primary: #49e2df;
  --warning: #ffe2a6;
  --danger: #f597a8;
  --secondary: #9dafba;
}
body {
  background-color: var(--ssp-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica Neue", "Arial", "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  font-size: 1.125rem;
}
p {
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
a {
  word-wrap: break-word; /* レガシーブラウザ対応 */
  overflow-wrap: break-word; /* 最新仕様 */
  word-break: break-all; /* 長い単語を強制的に折り返す */
  hyphens: auto; /* 自動ハイフネーション（任意） */
}
/* 外部リンクの場合にリンクの後ろにマークを付ける */
a[target="_blank"] {
  &:after {
    font-family: "Font Awesome 6 Free";
    content: "\f08e";
    font-weight: 900;
    margin: 0 0.25rem;
  }
}
a.img-link[target="_blank"] {
  &:after {
    content: none;
  }
}
article header h1 {
  font-size: 2rem;
  color: var(--danger);
  font-weight: bold;
}
@media (max-width: 767.98px) {
  article header h1 {
    font-size: 1.5rem;
  }
}
h2 {
  font-feature-settings: "palt";
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: start;
  justify-content: center;
  text-align: center;
}
h2::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background: url("../img/public/h2-before.svg") no-repeat center center;
  background-size: contain;
  margin-right: 8px;
  flex-shrink: 0; /* 画像のサイズを固定 */
}
/* === Shared Styles End === */

/* === header Styles Start === */
.navbar-brand img {
  height: 34px;
  @media (max-width: 991.98px) {
    height: 50px;
  }
}
.nav-link_button {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  border: var(--warning) 1px solid;
  padding: 0.375rem 1rem;
  border-radius: 50rem;
  color: var(--body-color);
  background-color: var(--warning);
  transition: background-color 0.15s ease-in-out,
    background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  vertical-align: middle;
  user-select: none;
  text-align: center;
  &:hover {
    background-color: #ffd173;
    border-color: #ffc95a;
  }
}
@media (max-width: 991.98px) {
  .nav-link_button {
    padding: 0.5rem 1rem;
    border: unset;
    border-radius: unset;
    background-color: unset;
  }
}
/* === header Styles End === */

/* === front-page Styles Start === */
.hero-pc,
.parallax-wrap {
  height: 850px;
  @media (max-width: 1399.98px) {
    height: 700px;
  }
  @media (max-width: 1199.98px) {
    height: 600px;
  }
  @media (max-width: 1100px) {
    height: 560px;
  }
  @media (max-width: 991.98px) {
    height: 500px;
  }
}
/* parallax */
.parallax {
  border-radius: 8px;
  position: absolute;
  aspect-ratio: 1 / 1;
  z-index: 0;
}
@keyframes parallax-layer-03-anim {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-200px);
  }
}
.layer-03 {
  animation: parallax-layer-03-anim linear;
  animation-timeline: scroll();
}
@keyframes parallax-layer-02-anim {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-50px);
  }
}
.layer-02 {
  animation: parallax-layer-02-anim linear;
  animation-timeline: scroll();
}
/* scroll */
.scroll-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.circles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}
@media (max-width: 1100px) {
  .circles {
    gap: 5px;
  }
}
.circle {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #ccc; /* Default gray */
  animation: scroll-animation 4s infinite;
}
.circle:nth-child(1) {
  animation-delay: 0s;
}
.circle:nth-child(2) {
  animation-delay: 0.5s;
}
.circle:nth-child(3) {
  animation-delay: 1s;
}
.circle:nth-child(4) {
  animation-delay: 1.5s;
}
.circle:nth-child(5) {
  animation-delay: 2s;
}
.circle:nth-child(6) {
  animation-delay: 2.5s;
}
@keyframes scroll-animation {
  0%,
  100% {
    background-color: #e2e2e2; /* Gray */
  }
  50% {
    background-color: #000; /* Black */
  }
}
@keyframes text-animation {
  0%,
  80% {
    opacity: 0;
  }
  90%,
  100% {
    opacity: 1;
  }
}
/* slogan */
.slogan-content-icon img {
  max-height: 5rem;
}
/* about */
.section-grid {
  position: relative;
  background-color: white; /* 背景色（必要に応じて変更） */
  background-image: linear-gradient(#ebebeb 1px, transparent 1px),
    linear-gradient(90deg, #ebebeb 1px, transparent 1px);
  background-size: 20px 20px;
}
.speech-bubble {
  position: relative;
  background-color: white;
  border: 1px solid var(--bs-border-color);
}
/* 左向きの吹き出し（三角を左に配置） */
.speech-bubble::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -29px; /* 三角の位置 */
  transform: translateY(-50%);
  border-width: 15px;
  border-style: solid;
  border-color: transparent var(--warning) transparent transparent; /* 左向きの三角 */
}
/* md以下で上向きの吹き出しに変更 */
@media (max-width: 767.98px) {
  .speech-bubble::before {
    left: 50%;
    top: -29px;
    transform: translateX(-50%);
    border-color: transparent transparent var(--warning) transparent; /* 上向きの三角 */
  }
}
/* topics */
.topics .card-img-top {
  width: 100%;
  height: 0;
  padding-top: 75%; /* 4:3 の比率（3 ÷ 4 = 0.75） */
  background-size: contain; /* 画像の比率を保ったまま、全体を表示 */
  background-position: center; /* 中央に配置 */
  background-repeat: no-repeat; /* 画像が繰り返されるのを防ぐ */
  border-top-left-radius: calc(1rem - 2px);
  border-top-right-radius: calc(1rem - 2px);
}
.topics .card:hover {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  border: var(--warning) 2px solid;
  opacity: 0.7;
}
/* === front-page Styles End === */

/* === company Styles Start === */
.table td.bg-light {
  white-space: nowrap;
  width: 1%;
}
/* === company Styles End === */

/* === footer Styles Start === */
footer {
  /* footer nav-itemのあしらい */
  .nav-item:not(:last-child) {
    border-bottom: 1px solid;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }
}

/* footer .list-unstyled {
  border-block: 1px dashed var(--secondary);
} */

.footer-nav-item {
  padding: 0.25rem 3rem;
}

.footer-nav-item + .footer-nav-item {
  border-top: 1px dashed var(--secondary);
}
/* === footer Styles End === */

/* === Post Styles Start === */
.share-btns a::after {
  content: "";
  margin: 0;
}
.wp-block-table {
  margin-bottom: 3rem;
}
.wp-block-image img {
  border-radius: 1rem;
  width: 100%;
  height: auto;
}
/* === Post Styles End === */
