/*------------------ 共通 ------------------*/
body {
  font-family: "Segoe UI", sans-serif;
  counter-reset: heading-counter;
  color: #333;
  line-height: 1.75;
}
.mt-50 {
  margin-top: 50px;
}

/*------------------ レイアウト ------------------*/
.page-banner .background-image {
  background-size: contain !important;
}
/*右枠内コンテンツを角丸に*/
aside {
  border-radius: 5px;
}
.generic-callout {
  border-radius: 5px;
}
.product-navigation .navbar-header .toggle {
  font-size: 18px !important;
  line-height: 1.5em !important;
  &::before {
    right: 10px !important;
  }
}

@media (min-width: 768px) {
  .page-banner {
    height: 200px !important;
    background: no-repeat top center / contain;
  }
  .product-navigation ul li a {
    white-space: nowrap;
  }
}
@media (min-width: 819px) {
  .page-banner {
    height: 220px !important;
  }
}
@media (min-width: 1024px) {
  .page-banner {
    height: 300px !important;
  }
}
section {
  padding-top: 60px;
  margin-top: -60px;
}
.blog-post {
  width: 100% !important;
}
.blog-layout h1,
.blog-layout .h1 {
  font-size: 30px !important;
  color: #333;
}
.details-wrap {
  color: #333;
  line-height: 1.7;
}
.details-wrap p {
  width: 98%;
  display: block;
}
.details-wrap p.details-attention {
  font-size: 16px;
  color: #818181;
  text-indent: -1em;
  padding-left: 1em;
}
section h3 {
  font-size: 1.3rem !important;
  margin-left: 5rem;
  line-height: 1.5;
}
section p {
  width: 98%;
  display: block;
  padding-left: 5rem;
}
.flex-inner {
  padding-left: 80px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 50px;
  @media screen and (max-width: 767px) {
    padding-left: 0;
  }
  a:hover {
    opacity: 0.8;
  }
  & p {
    padding-left: 0;
    @media screen and (max-width: 1037px) {
      text-align: center;
    }
  }
  & p span {
    display: block;
    text-align: center;
  }
}
.flex-item.flex-item__2column {
  width: 50%;
  max-width: 300px;
  @media screen and (max-width: 1037px) {
    width: 100%;
    max-width: 100%;
  }
}
ol ul.custom-list {
  margin-left: -20px;
}
.blog-layout .blog-post-body .flex-inner img {
  margin: 0 auto !important;
}
.form-inner {
  display: block;
  text-align: center;
  margin-top: 50px;
  padding: 30px 0;
  background-color: #f9f9f9;
  background-image: radial-gradient(circle, #dbdbdb 1px, transparent 1px),
    radial-gradient(circle, #dbdbdb 1px, transparent 1px);
  background-position: 0 0, 3px 6px;
  background-size: 6px 12px;
  border-radius: 15px;
}
.form-title {
  margin: 0 auto 30px !important;
  font-size: 28px !important;
}
iframe {
  width: 90%;
  border-radius: 5px;
}
.row.blog-nav-footer .col-md-6 .btn-secondary {
  padding: 20px;
  border: none;
  text-align: left;
  font-size: 16px;
  &:hover {
    opacity: 0.8;
  }
  @media screen and (max-width: 600px) {
    margin-top: 20px;
  }
}
span.list-attention {
  display: block;
  font-size: 16px;
  text-indent: -1.3em;
  padding-left: 1.3em;
}
.sp_break {
  display: none;
  @media screen and (max-width: 600px) {
    display: block;
  }
}

/*------------------ リンクエリア ------------------*/
.link_area {
  display: block;
  width: 100%;
  padding-top: 2em;
  padding-bottom: 0.5em;
}
.link_area h3 {
  font-size: 1.3rem !important;
  margin-left: 5rem;
  line-height: 1.5;
}
.link_area ul {
  list-style: none;
  padding-left: 0;
}
.link_area a:hover {
  opacity: 0.8;
}
span.link_catch {
  display: block;
  margin: 0 auto 2em 5em;
  font-size: smaller;
}
.blog-layout .blog-post-body .link_area img.vw6bt {
  margin-bottom: 0 !important;
  @media screen and (max-width: 600px) {
    margin: 0 auto !important;
    max-width: 100%;
  }
}
.btn-inner {
  width: 100%;
  margin-left: 30px;
  text-align: center;
  @media screen and (max-width: 600px) {
    margin-left: 0;
  }
}
.anchor-btn {
  width: fit-content;
  margin-top: 20px;
  padding: 0.5em 1em;
  border: none;
  background-color: #428bca;
  border-radius: 6px;
  font-size: 20px;
  & a {
    color: #ffffff;
  }
}
.fa-light.fa-window-restore {
  color: #0076be;
}

/* レスポンシブ */
@media (max-width: 600px) {
  .link_area h3 {
    margin-left: 0;
  }
  span.link_catch {
    display: block;
    margin: 0 auto 2em;
    font-size: smaller;
  }
}

/*------------------ 目次 ------------------*/
#box {
  counter-reset: item;
  margin: 2em auto 3em auto;
  background-color: #f9f9f9;
  border-left: 4px solid #007acc;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 80%;
  padding: 1em 1em 0.5em 5%;
}
#box a {
  color: #007acc;
  text-decoration: none;
}
#box a:hover {
  text-decoration: underline;
}
#box li {
  position: relative;
  padding-left: 3.5em;
  margin-bottom: 0.8em;
  list-style: none;
}
#box li::before {
  content: counter(item) ".";
  counter-increment: item;
  position: absolute;
  left: 1em;
  top: 0.1em;
  width: 1.8em;
  height: 1.8em;
  line-height: 1.8em;
  background: #007acc;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-weight: bold;
  font-size: 0.9em;
}
#box li a {
  text-decoration: none;
  color: #222;
  transition: color 0.3s ease;
}
#box li a:hover {
  color: #007acc;
}

/*------------------ セクション見出し ------------------*/
.subsection-title {
  position: relative;
  counter-increment: heading-counter;
  padding: 0.4em 1em 0.4em 4em;
  margin: 3em 0 2em;
  font-size: 1.5rem !important;
  font-weight: 500;
  color: #222;
  background-color: #f9f9f9;
  border-radius: 1.5em;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  line-height: 1.5;
}
/* 数字部分だけを大きく・印象的に */
.subsection-title::before {
  content: counter(heading-counter) ".";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3em;
  height: 3em;
  line-height: 3em;
  background: #007acc;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-weight: bold;
  font-size: 1em;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

/*------------------ リストスタイル ------------------*/
section ol {
  padding-left: 7rem;
}
section li {
  line-height: 1.6;
  margin-bottom: 1em;
  padding-left: 0.2em;
}
section ul li {
  margin: 0 0 0 2rem;
}
section ol li::marker {
  font-size: 1.1em;
  font-weight: 600;
  color: #007acc;
}
ol ul.custom-list {
  padding-left: 0;
}
ul.custom-list {
  list-style: none;
  padding-left: 4.5rem;
  @media screen and (max-width: 767px) {
    padding-left: 0;
  }
}
ul.custom-list li {
  position: relative;
}
ul.custom-list li::before {
  content: "●"; /* または '▸' など */
  position: absolute;
  left: -1em;
  top: 0;
  color: #007acc;
  font-size: 0.9em;
}

/*------------------ 画像 ------------------*/
.blog-layout .blog-post-body img {
  display: block;
  width: 100%;
  width: -webkit-fill-available;
  width: -moz-available; /* Firefox */
  max-width: 100%;
  height: auto;
  margin: 0 auto 10px 5rem !important;
}
img.full-img {
  width: 100% !important;
}
.custom-inner img.li_image {
  display: block;
  margin: 20px auto 0 !important;
  width: auto;
  height: 100%;
}

/*------------------ 動画 ------------------*/
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 1em auto 0 5rem;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-caption {
  text-align: center;
  font-size: 1rem;
  margin-top: 0.5em;
  color: #333;
}

/*------------------ テーブル ------------------*/
.table-wrapper {
  margin: 0 auto 2em 5em;
  @media screen and (max-width: 767px) {
    margin-left: auto;
  }
}
.custom-table {
  border-collapse: collapse;
  font-family: "Segoe UI", sans-serif;
  font-size: 1rem;
  overflow-x: auto;
}
/* ヘッダー行 */
.custom-table thead tr {
  background-color: #007acc; /* サブ見出しの番号と合わせる */
  color: #fff;
  text-align: center;
}
/* セル共通 */
.custom-table th {
  white-space: nowrap;
}
.custom-table th,
.custom-table td {
  padding: 0.8em 1em;
  border: 1px solid #ddd;
  text-align: center;
  word-break: break-word;
}
/* 偶数行・奇数行交互カラー */
.custom-table tbody tr:nth-child(even) {
  background-color: #f4faff;
}
.custom-table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}
/* モバイル対応：横スクロール */
.table-wrapper {
  overflow-x: auto;
}
/* レスポンシブ調整 */
@media (max-width: 600px) {
  .custom-table {
    font-size: 0.9rem;
    margin: 0 auto 2em 1em;
  }
  .custom-table th,
  .custom-table td {
    padding: 0.6em 0.5em;
  }
}
.custom-table2 {
  border-collapse: collapse;
  font-family: "Segoe UI", sans-serif;
  font-size: 1rem;
  margin: 0;
}
/* 左側見出し（1列目）をヘッダーのように装飾 */
.custom-table2 th {
  background-color: #007acc;
  color: #fff;
  text-align: left;
  width: 25%;
}
/* セル共通（上書き） */
.custom-table2 th,
.custom-table2 td {
  padding: 0.8em 1em;
  border: 1px solid #ddd;
  white-space: nowrap;
  word-break: break-word;
  text-align: left;
}
/* 行の交互カラー（1列目がヘッダー扱いでも有効） */
.custom-table2 tbody tr:nth-child(even) {
  background-color: #f4faff;
}
.custom-table2 tbody tr:nth-child(odd) {
  background-color: #ffffff;
}
/* レスポンシブ */
@media (max-width: 600px) {
  .custom-table2 {
    font-size: 0.9rem;
    margin: 2em auto 2em 1em;
  }
  .custom-table2 th,
  .custom-table2 td {
    padding: 0.6em 0.5em;
  }
}

/*------------------ 埋め込みフォーム ------------------*/
#iframeWrapper {
  background-color: #f5f5f5; /* 背景色を薄いグレーに設定 */
  padding: 20px; /* 内側の余白を追加 */
  border-radius: 8px; /* 角を丸くして柔らかいデザインに */
  margin-top: 20px; /* 上部との間隔を確保 */
  margin-bottom: 20px; /* 下部との間隔を確保 */
  border: 1px solid #ccc; /* 薄い枠線を追加 */
}
input.btn.btn-primary[type="submit"] {
  background-color: #428bca !important;
  color: #ffffff !important;
}

/* モバイル対応 */
@media (max-width: 600px) {
  #box {
    width: 100%;
  }
  .subsection-title {
    font-size: 1.4rem !important;
    padding-left: 4em; /* 数字の大きさに合わせて調整 */
  }
  .subsection-title::before {
    width: 2.4em;
    height: 2.4em;
    line-height: 2.2em;
    font-size: 1.1em;
    left: 10px;
  }
  .details-wrap p {
    width: 100%;
    display: block;
    padding-left: 0;
  }
  section ol {
    padding-left: 2em;
  }
  .custom-inner img.li_img {
    display: block;
    margin: 20px auto 0 !important;
    max-width: 100%;
  }
  section h3 {
    font-size: 1.3rem !important;
    margin-left: 1rem;
    line-height: 1.5;
  }
  .blog-layout .blog-post-body img {
    display: block;
    max-width: 90%;
    height: auto;
    margin: 1em auto 10px 1em !important;
  }
  .video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 1em auto !important;
    width: 90%;
  }
}

/*------------------ トップに戻るボタン ------------------*/
.page-top {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background-color: #b1b1b1;
  border-radius: 100%;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(50px);
  transition: opacity 1s, visibility 1s, transform 1s;
}
.page-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
}
.page-top.absolute {
  position: absolute;
  top: -70px;
  bottom: auto;
}
.page-top:hover {
  opacity: 0.8;
}
.page-top__arrow {
  height: 15px;
  width: 15px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  transform: translateY(3px) rotate(45deg);
}
