.test-box {
    position: relative;
    padding-left: 25px;
    transition: all 0.3s; /* smooth transition */
}

.test-box-header {
    background-color: #F7F4F4; /* 背景グレー */
    height: 55px; /* 高さ30px */
    width: 100%; /* 親要素の幅に合わせる */
    position: absolute; /* 絶対位置指定 */
    top: 0;
    left: 0;
}

/* .test-box内のテキストスタイル */
.test-box p {
    margin: 0; /* デフォルトのマージンを削除 */
    /* その他のテキストスタイル */
}

.ginou-box-outline {
  margin: 12px 0;
}

.ginou-box {
    background-color: #FFFFFF;
    width: 100%;
    min-height: 194px;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid #E7ECF4;
    box-shadow: 0 10px 26px rgba(27, 39, 51, 0.08) !important;
    cursor: default;
    outline: none;
}

.ginou-box-body {
  min-height: 194px;
  padding: 0.18rem 0.9rem 0.62rem;
  box-sizing: border-box;
}

.ginou-box:hover {
    box-shadow: 0 14px 30px rgba(27, 39, 51, 0.12) !important;
}

.ginou-icon-wrap {
  min-height: 42px;
  margin-top: -0.08rem;
  margin-bottom: 0.14rem;
}

.home-sector-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.ginou-sector-title {
  width: 100%;
  min-height: 2.95rem;
  margin: 0;
  padding: 0 0.2rem;
  color: #1A2433;
  font-size: clamp(0.98rem, 1.1vw, 1.12rem);
  font-weight: 500;
  line-height: 1.16;
  display: block;
  text-align: center;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  text-wrap: balance;
}

html:not([lang^="ja"]):not([lang^="zh"]) .home-sector-grid .ginou-sector-title {
  min-height: 3.35rem;
  font-size: clamp(0.86rem, 0.96vw, 0.98rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.ginou-card-divider {
  width: 100%;
  margin: 0.18rem 0 0.34rem;
  border-top: 1px solid #E6EAF0;
}

.ginou-level-actions {
  gap: 0.5rem;
  margin-top: auto;
}

.ginou-level-actions-double {
  flex-wrap: nowrap;
}

.ginou-level-actions-single .ginou-level-button {
  min-width: 88px;
}

.ginou-level-actions-double .ginou-level-button {
  flex: 1 1 0;
  min-width: 0;
  max-width: calc((100% - 0.5rem) / 2);
}

.ginou-level-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.38rem 0.72rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
}

.flow-compact-card {
  background-color: #FFFFFF;
  border: 1px solid #EAEAEA;
  min-height: 156px;
  padding-top: 0.7rem !important;
}

.flow-compact-badge {
  transform: none;
  border-radius: 100%;
  background-color: #25A7B3;
  color: #F5FCFC;
  font-size: 0.9rem;
  font-weight: 700;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;

}

.flow-compact-step-inline {
  display: none;
}

.flow-compact-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.flow-compact-desc {
  line-height: 1.35;
  min-height: 0;
  margin-bottom: 0 !important;
}

.flow-compact-button {
  padding: 6px 10px;
}

.flow-compact-subbutton {
  font-size: 0.78rem;
}

.flow-compact-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-compact-icon svg {
  width: 28px;
  height: 28px;
  stroke: #25A7B3;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.flow-guide-card,
.flow-faq-card {
  background-color: #FFFFFF;
  border: 1px solid #EAEAEA;
}

.flow-guide-kicker {
  color: #25A7B3;
  font-weight: 700;
}

.flow-guide-desc {
  line-height: 1.55;
}

.flow-guide-button {
  min-width: 180px;
  padding: 8px 14px;
}

.flow-guide-subbutton {
  background-color: #FFFFFF;
  border: 1px solid #25A7B3;
  color: #25A7B3 !important;
}

.flow-guide-subbutton:hover {
  background-color: #25A7B3;
  color: #FFFFFF !important;
}

@media (max-width: 767.98px) {
  .ginou-box-outline {
    margin: 6px 0;
  }

  .ginou-box {
    min-height: 158px;
    height: 158px;
  }

  .ginou-box-body {
    min-height: 158px;
    height: 158px;
    padding: 0 0.4rem 0.22rem;
    display: flex !important;
    flex-direction: column;
    align-items: center;
  }

  .ginou-icon-wrap {
    min-height: 32px;
    margin-top: -0.12rem;
    margin-bottom: 0;
  }

  .home-sector-icon {
    width: 48px;
    height: 48px;
  }

  .ginou-sector-title {
    min-height: 1.9rem;
    padding: 0 0.1rem;
    font-size: 0.96rem;
    line-height: 1;
  }

  html:not([lang^="ja"]):not([lang^="zh"]) .home-sector-grid .ginou-sector-title {
    min-height: 2.24rem;
    font-size: 0.81rem;
    line-height: 1.01;
  }

  .ginou-card-divider {
    margin: 0 0 0.08rem;
  }

  .ginou-level-button {
    min-height: 30px;
    padding: 0.18rem 0.48rem;
    font-size: 0.8rem;
  }

  .ginou-level-actions {
    gap: 0.18rem;
    margin-top: 0.08rem;
  }

  .ginou-level-actions-single .ginou-level-button {
    min-width: 78px;
  }

  .ginou-level-actions-double {
    flex-direction: column;
    align-items: center;
  }

  .ginou-level-actions-double .ginou-level-button {
    flex: 0 0 auto;
    max-width: none;
    min-width: 78px;
    min-height: 24px;
    padding: 0.12rem 0.42rem;
    font-size: 0.75rem;
  }

  .flow-compact-card {
    min-height: 156px;
    padding: 0.55rem !important;
  }

  .flow-compact-badge {
    display: none !important;
  }

  .flow-compact-step-inline {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #25A7B3;
    color: #F5FCFC;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
  }

  .flow-compact-head {
    gap: 6px !important;
    margin-bottom: 4px !important;
  }

  .flow-compact-title {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .flow-compact-desc {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .flow-compact-icon,
  .flow-compact-icon svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }

  .flow-compact-main {
    margin-bottom: 0.5rem !important;
    padding-top: 0 !important;
  }

  .flow-compact-action {
    padding-top: 0 !important;
  }

  .flow-compact-button {
    width: 100% !important;
    padding: 5px 4px;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .flow-compact-subbutton {
    font-size: 0.68rem;
  }

  .flow-guide-card,
  .flow-faq-card {
    padding: 1rem !important;
  }

  .flow-guide-button {
    width: 100%;
    min-width: 0;
    padding: 7px 10px;
  }
}

@media (min-width: 768px) {
  .flow-compact-card {
    min-height: 156px;
    padding-top: 1rem !important;
  }

  .flow-compact-step-inline {
    display: none !important;
  }

  .flow-compact-head {
    justify-content: flex-start !important;
  }

  .flow-compact-title {
    font-size: 0.88rem;
  }


  .flow-compact-icon,
  .flow-compact-icon svg {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }

  .flow-compact-main {
    margin-bottom: 0.6rem !important;
  }

  .flow-compact-button {
    padding: 6px 8px;
  }

  .flow-compact-subbutton {
    font-size: 0.74rem;
  }

  .flow-compact-head-center-md {
    justify-content: center !important;
  }
}
