:root {
  --bg: #f5f7f9;
  --card: #ffffff;
  --accent: #407b8e;
  --muted: #6b747b;
  --radius: 10px;
  --shadow: 0 6px 20px rgb(15 23 30 / 0.06);
  --maxw: 820px;
  --gap: 24px;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* ------------------------
   共通設定
------------------------ */
html,
body {
  background: linear-gradient(180deg, #f5f7f9, #eef3f6);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #1f2933;
  scroll-padding-top: 160px;
}

.sp {
  display: none;
}
.pc {
  display: inline-block;
}

section {
  margin-bottom: 80px;
}

/* PC用：改行 */
.br-pc {
  display: inline;
}

@media screen and (max-width: 768px) {
  .sp {
    display: block;
  }
  .pc {
    display: none;
  }

  /* SP用：改行 */
  .br-pc {
    display: none;
  }
}

.navbar-nav .nav-link {
  color: #1f2933;
  font-weight: 600;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent);
}

.navbar-toggler {
  border-color: rgba(0, 0, 0, 0.1);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.caution {
  font-size: 0.9em;
  color: #dc3545;
}

/* ナビゲーション影・境界 */
.navbar.fixed-top {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-bottom: 3px solid var(--accent);
}

/* --- タイトル色 --- */
.text-primary {
  color: var(--accent) !important;
}

.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: #4b93a3;
  border-color: #4b93a3;
}

.btn-outline-primary {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline-primary:hover {
  background-color: var(--accent);
  color: #fff;
}

.msaction {
  transition-duration: 0.4s !important;
}

.msaction:hover {
  transform: scale(1.1) !important;
  display: inline-block;
}

/* メインナビ */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: #1f2933;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--accent);
}

/* ハンバーガーメニュー */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ハンバーガー開閉時のアニメーション */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ------------------------
   レスポンシブ対応
------------------------ */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  main {
    padding-top: 80px;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    right: 0;
    background: #fff;
    width: 100%;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .main-nav li {
    width: 100%;
    border-top: 1px solid #eee;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
  }
}

/*
    ページトップ
*/
.pagetop a {
  display: block;
  text-decoration: none;
  text-align: center;
  z-index: 99;
  position: fixed; /*スクロールに追従しない(固定で表示)為の設定*/
  right: 10px; /*右からの配置場所指定*/
  bottom: 10px; /*下からの配置場所指定*/
  color: #fff; /*文字色*/
  font-size: 1.2em; /*文字サイズ*/
  background: rgba(0, 0, 0, 0.2); /*背景色。0,0,0は黒の事で0.2は色が20%出た状態。*/
  width: 60px; /*幅*/
  line-height: 60px; /*高さ*/
  border-radius: 50%; /*円形にする*/
}

/* ------------------------
   メインコンテンツ
------------------------ */
main {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 16px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  box-sizing: border-box;
  margin: 18px 0 40px;
  border-radius: 12px;
}

h2 {
  text-align: center;
  margin: 6px 0 22px;
  font-size: 36px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 20px;
  }
}

/* ------------------------
   フォーム要素
------------------------ */
form {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.basic-input-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.basic-input-section-title {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  font-size: 18px;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  padding-left: 4px;
}

.type-select-basic {
  display: flex;
  justify-content: center;
  width: 100%;
}

.fancy-select {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.type-text-basic {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 520px;
}

.type-text-basic input {
  appearance: none;
  width: 100%;
  padding: 14px 48px 14px 18px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #e1e7ea;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6);
  color: #0f1720;
}

.note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.c-pager {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 6px;
  flex-wrap: wrap;
}

.c-pager .c-pager-button,
.c-pager .c-submit {
  border: 0;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  min-width: 120px;
}

.c-pager .c-pager-button {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgb(86 165 183 / 1);
  text-align: center;
}

.c-pager .c-submit {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 20px rgb(86 165 183 / 0.16);
  text-align: center;
}

.c-pager .c-submit:disabled {
  background: #aaaaaa;
  cursor: default;
}

.form-check-input {
  border: solid 2px #444;
}

/* ------------------------
   フッター
------------------------ */
footer {
  text-align: center;
  color: #6b747b;
  font-size: 13px;
  margin: 32px 0;
  margin-top: 60px;
}

/* ------------------------
   トップページ　
------------------------ */

.hero-section {
  background: #407b8e;
  min-height: 30vh;
  padding: 30px 0;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 2rem;
  text-align: center;
}
.hero-title img {
  width: 80%;
}
.hero-subtitle {
  font-size: 1.8rem;
  color: white;
  line-height: 1.5;
  text-align: center;
  font-family: "BIZ UDPGothic";
  margin-top: 20px;
}
.hero-subtitle br {
  display: block;
  content: "";
}
.feature-box {
  position: relative;
  padding: 0.25em 1em;
  width: 84%;
  margin: 0 auto;
}
.feature-box:before,
.feature-box:after {
  content: "";
  width: 30px;
  height: 40px;
  position: absolute;
  display: inline-block;
}
.feature-box:before {
  border-left: solid 1px #fff;
  border-top: solid 1px #fff;
  top: -10px;
  left: 0;
}
.feature-box:after {
  border-right: solid 1px #fff;
  border-bottom: solid 1px #fff;
  bottom: 0;
  right: 0;
}
.feature-box p {
  margin: 0;
  padding: 0;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  font-family: "BIZ UDPGothic";
}
.feature-list li:before {
  content: "●";
  position: absolute;
  left: 0;
  color: #f18d00;
  font-weight: bold;
}

.cta-button {
  margin-top: 40px;
}

.cta-button a {
  background: #ffce2b;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  padding: 8px 25px;
  color: #313131;
  transition: 0.3s ease-in-out;
  font-weight: 600;
  z-index: 0;
  border-radius: 30px;
  width: 70%;
  font-size: 1.4rem;
  text-decoration: none;
  font-family: "BIZ UDPGothic";
}

.cta-button a:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  display: block;
  background: #f18d00;
  transition: 0.3s;
  left: 0;
  border-radius: 30px;
}
.cta-button a:hover {
  color: #fff;
}
.cta-button a:hover:before {
  width: 100%;
  z-index: -1;
}

.hero-image img {
  max-width: 90%;
  height: auto;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(255, 193, 7, 0.6);
  }
  100% {
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
  }
}

.tostart {
  font-size: 3.2vh !important;
}

.explanation {
  font-size: 1em;
}

#toppage h2 {
  position: relative;
}

#toppage h2:before {
  content: "";
  position: absolute;
  bottom: -10px;
  display: inline-block;
  width: 60px;
  height: 3px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #e0481d;
}

#toppage h3 {
  font-size: 1.5rem;
}

#about .toabout a.btn2 {
  background: #407b8e;
  color: #ffffff;
  display: inline-block;
  text-decoration: none;
  letter-spacing: 0;
  padding: 8px 20px;
  font-size: 1.2em;
  font-weight: 500;
}

#about .toabout {
  text-align: center;
  margin-top: 2em;
}

#news dl dd {
  border-bottom: dashed 1px;
  margin-bottom: 1em;
  padding-bottom: 10px;
}

/* --- お知らせ共通（トップ・お知らせ一覧） --- */

#newslist {
  margin: 0;
  padding: 0;
}

#newslist dt,
#newslist dd {
  margin: 0;
  padding: 0;
}

#newslist dt {
  float: left;
  width: 130px;
  color: #407b8e;
  font-weight: 600;
}

#newslist dd {
  margin-left: 130px;
  margin-bottom: 14px;
  border: none !important;
}

#newslist dt time {
  color: #407b8e;
}

#newslist dt,
#newslist dd {
  border: none;
  border-top: none;
  border-bottom: none;
}

@media (max-width: 767px) {
  .explanation {
    font-size: 0.8em;
  }

  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .hero-title img {
    width: 60%;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .feature-list li {
    font-size: 1rem;
  }

  .cta-button {
    padding: 15px 10px;
    font-size: 1.1rem;
    margin-top: 10px;
  }

  .hero-image img {
    max-width: 60%;
  }

  .feature-box {
    padding: 20px;
  }

  .feature-box:before {
    top: 10px;
  }

  .feature-box:after {
    bottom: 25px;
  }

  .feature-box:before,
  .feature-box:after {
    font-size: 3rem;
  }

  #toppage h2 {
    font-size: 24px;
  }

  #toppage h3 {
    font-size: 1.25rem;
  }

  #newslist dt {
    float: none;
    width: auto;
  }

  #newslist dd {
    margin-left: 0;
    margin-bottom: 20px;
  }
}

.radius {
  border-radius: 100px !important;
}
a.btn1 {
  background: #ffce2b;
  color: #444;
  display: inline-block;
  text-decoration: none;
  letter-spacing: 0;
  padding: 5px 30px;
  box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.2);
}

.btn-wrap {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-wrap .btn2 {
  width: 100%;
  max-width: 40%;
  text-align: center;
}

.btn-wrap .btn2 {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 40%;
  padding: 14px 20px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  background-color: #407b8e;
  overflow: hidden;
  z-index: 1;
}

.btn-wrap .btn2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #f18d00;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn-wrap .btn2:hover::before {
  transform: scaleX(1);
}

#toppage .jirei .card-body {
  padding: 2px 0 0 0;
}

#toppage .card.jirei {
  margin: 0 0 20px;
  padding: 10px;
}

#toppage .card.jirei .card-text {
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .btn-wrap {
    flex-direction: column;
    align-items: center;
  }

  .btn-wrap .btn2 {
    width: 100%;
    max-width: 90%;
  }
}

#toppage .card.jirei .card-text {
  text-align: center;
  margin-top: 0.5em;
}

#toppage .jirei-items > div {
  padding: 0 5px;
}

#toppage .flex-wrap {
  display: flex;
  margin: 50px 0 10px 0;
}

#toppage .jirei-items hr {
  flex: 1;
  display: block;
  margin-left: 20px;
}

#toppage .jirei-items .flex-wrap hr {
  height: 3px;
  border: none;
  background-color: #56a5b7;
  opacity: 1;
}

#toppage .gyosyu-items {
  padding: 0 2em;
}

#toppage .gyosyu-items ul.filter {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 16px;
  padding: 0;
  margin: 0;
}

#toppage .gyosyu-items ul li {
  list-style: none;
  margin: 0;
  width: 100%;
  border: 1px solid #56a5b7;
  border-radius: 10px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1.2;
  min-height: 56px;
  padding: 5px 12px;
  
  word-break: keep-all;    /* 日本語の行中での不要な分割を抑制 */
  overflow-wrap: anywhere; /* どうしても収まらない長語を強制改行 */
  white-space: normal;     /* <br> を効かせる */
  font-size: 1rem
}

#toppage .gyosyu-items .small-text {
  font-size: 0.85em;
}

#toppage .filter li.is-active {
  background: #56a5b7;
  color: #fff;
  border-color: #56a5b7;
}

/* 大きめタブレット：4列 */
@media (max-width: 1200px) {
  #toppage .gyosyu-items ul.filter {
    grid-template-columns: repeat(4, 1fr);
  }

  #toppage .gyosyu-items .small-text {
    font-size: 0.75em;
  }
}

/* タブレット：3列 */
@media (max-width: 992px) {
  #toppage .gyosyu-items ul.filter {
    grid-template-columns: repeat(3, 1fr);
  }

  #toppage .gyosyu-items .small-text {
    font-size: 0.75em;
  }
}

/* スマホ横・小さめタブレット：2列 */
@media (max-width: 768px) {
  #toppage .gyosyu-items ul.filter {
    grid-template-columns: repeat(2, 1fr);
  }

  #toppage .gyosyu-items .small-text {
    font-size: 0.75em;
  }
}

/* スマホ縦：1列（全幅） */
@media (max-width: 480px) {
  #toppage .gyosyu-items ul.filter {
    grid-template-columns: 1fr;
  }

  #toppage .gyosyu-items .small-text {
    font-size: 0.75em;
  }
}

/*
  基本情報入力
*/
#after h1,
#before h1,
#Gbizid h1,
#selectinfo h1 {
  text-align: center;
  margin: 6px 0 22px;
  font-size: 36px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

#kiyaku {
  margin: 0 auto;
  overflow: auto;
  max-width: 1000px;
  width: 100%;
}

#kiyaku .kiyaku-head {
  margin-top: 40px;
  border-top: solid 1px #ddd;
  padding-top: 20px;
}

#kiyaku .kiyaku-head strong {
  font-size: 1.1em;
}

#kiyaku .title {
  text-align: center;
  font-size: 1.1em;
  font-weight: 600;
}

#kiyaku .info-text {
  text-align: left;
}

#kiyaku .kiyaku-area {
  max-width: 1000px;
  width: 100%;
  height: 300px;
  margin: 0 auto;
  border: solid 1px;
  overflow: auto;
  padding: 10px;
}

#kiyaku .kiyaku-area ul {
  list-style: none;
}

#kiyaku .kiyaku-agree-area {
  text-align: center;
  padding: 10px 0;
}

#kiyaku .kiyaku-area ol.article-num  > li {
  font-weight: 700;
  font-size: 18px;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

#kiyaku .kiyaku-area ol ul li {
  margin-left: -1em;
}

#kiyaku .kiyaku-area ol .subcount  {
  position: relative;
  margin: 0;
  padding: 0
}

#kiyaku .kiyaku-area ol .subcount li  {
  list-style: none;
  list-style-position: outside;
  margin: 0;
  padding-left: 1.25em
}

#kiyaku .kiyaku-area ol .subcount li span {
  position: absolute;
  left: 0;
  margin-left: -1em;
}

/*
  GビズID
*/
.gbizComment {
  font-size: 1em;
  color: #ee3838;
}

span .marker-yel {
  background: linear-gradient(transparent 0%, #ffef00 90%);
  border-bottom: solid 3px;
  padding: 0 10px;
}

/* 
  Before 
*/
/* before after 画像 */
.selectable {
  cursor: pointer;
}

.highlight {
  fill: none;
  stroke: red;
  stroke-width: 3;
  pointer-events: none; /* 枠はクリック対象にしない */
}

.inactive {
  opacity: 0.2;
}
/*  こっちに置き換える  */
.selected-counter {
  border-radius: 20px;
  display: inline-block;
  padding: 0px 13px;
  background-color: red;
  color: #ffffff;
}

#selection-counter {
  font-size: 30px;
}

#before .selectable:hover {
  opacity: 0.5;
}

#before .selectable:hover {
  opacity: 0.5;
}

#before .onlychk {
  display: none;
}

#before .is_selected .onlychk {
  display: block;
}

#before .is_selected .my_color_orange {
  fill: #d32f2f;
}

#before .is_selected .fukidashi text {
  fill: #ffffff;
}

#before .content-row {
  position: relative;
}

#before .left-area {
  position: absolute;
  top: 10px;
  left: 10px;
}

/* モバイルでは縦積み */
@media (max-width: 768px) {
  #before .content-row {
    position: relative;
  }

  #before .left-area {
    position: relative;
  }

  #before .left-area {
    display: flex;
  }

  #before .left-area div {
    margin: 0 5px;
  }
}

/* 
  After 
*/
/*  after 画像 */
#after .clickable {
  cursor: pointer;
}

#after .clickable .pict {
  opacity: 0.7;
}

#after .clickable .fukidashi {
  opacity: 0.7;
  fill: #a6d8f7;
}

#after .clickable .fukidashi text {
  color: #4f6881;
  fill: #4f6881;
}

#after .clickable.is_selected .fukidashi {
  opacity: 1;
}

#after .clickable.is_selected .my_color_blue {
  fill: #0078d4;
}

#after .clickable.is_selected .fukidashi text {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* イラスト内のマウスオーバー */
#after .clickable:hover .pict {
  opacity: 1 !important;
}

#after .clickable:hover .fukidashi {
  opacity: 1 !important;
}

#after .clickable.is_selected:hover .my_color_blue {
  fill: #004e9e;
}

#after .clickable.is_selected:hover .pict {
  opacity: 1;
}

#after .is_selected .onlybadge {
  display: block;
}

#after .onlybadge {
  display: none;
}

/* 横スクロール */
#photo-area {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

#photo-area svg {
  min-width: 680px;
  height: auto;
  display: block;
  max-height: 580px;
  margin: 0 auto;
}

/* 左側 選択された課題表示 */
#after .selected-items .selected-title {
  font-size: 1.2em;
  color: #fd7e14;
  font-weight: 600;
}

#checkedCount {
  font-size: 30px;
}

.before-kindindustry span.small-text,
.after-kindindustry span.small-text {
    font-size: 0.6em;
}

#before .before-kindindustry {
  color: #fff;
  background-color: #f07700;
  display: inline-block;
  padding: 5px 7px;
}

#after .after-kindindustry {
  color: #fff;
  background-color: #0071bc;
  display: inline-block;
  padding: 5px 7px;

}

/*
#after .selected-items ul {
  list-style: none;
  display: inline-block;
}

#after ol#selected-list {
  background: #e3e3e3;
  border-radius: 8px;
  padding: 0.5em 0.5em 0.5em 2em;
}

#after ol#selected-list li {
  border-bottom: dashed 2px #fff;
  padding-top: 10px;
}
*/

#after .selected-before-01:hover,
#after .selected-before-02:hover,
#after .selected-before-03:hover,
#after .selected-before-04:hover,
#after .selected-before-05:hover,
#after .selected-before-06:hover {
  background-color: #ffc325;
}

#photo-wrap:has(.selected-before-01:hover) svg #after-01.clickable .pict,
#photo-wrap:has(.selected-before-02:hover) svg #after-02.clickable .pict,
#photo-wrap:has(.selected-before-03:hover) svg #after-03.clickable .pict,
#photo-wrap:has(.selected-before-04:hover) svg #after-04.clickable .pict,
#photo-wrap:has(.selected-before-05:hover) svg #after-05.clickable .pict,
#photo-wrap:has(.selected-before-06:hover) svg #after-06.clickable .pict {
  opacity: 1 !important;
}

#photo-wrap:has(.selected-before-01:hover) svg #after-01.clickable .my_color_blue,
#photo-wrap:has(.selected-before-02:hover) svg #after-02.clickable .my_color_blue,
#photo-wrap:has(.selected-before-03:hover) svg #after-03.clickable .my_color_blue,
#photo-wrap:has(.selected-before-04:hover) svg #after-04.clickable .my_color_blue,
#photo-wrap:has(.selected-before-05:hover) svg #after-05.clickable .my_color_blue,
#photo-wrap:has(.selected-before-06:hover) svg #after-06.clickable .my_color_blue {
  fill: #004e9e;
}

#photo-wrap:has(svg #after-01.clickable :hover) .selected-before-01,
#photo-wrap:has(svg #after-02.clickable :hover) .selected-before-02,
#photo-wrap:has(svg #after-03.clickable :hover) .selected-before-03,
#photo-wrap:has(svg #after-04.clickable :hover) .selected-before-04,
#photo-wrap:has(svg #after-05.clickable :hover) .selected-before-05,
#photo-wrap:has(svg #after-06.clickable :hover) .selected-before-06 {
  background-color: #ffc325;
}

/*  暫定 */
#after .kanban .text-danger {
  font-size: 1em;
}

#after .content-row {
  display: flex;
}

#after .left-area {
  width: 200px;
}

#after .right-area {
  flex: 1;
}

/* モバイルでは縦積み */
@media (max-width: 992px) {
  #after .content-row {
    display: block;
    position: relative;
  }

  #after .left-area {
    width: 100%;
    position: relative;
    display: flex;
  }

  #after .left-area div {
    margin: 0 5px;
  }
}

/*
  検討ステップ　見出し
*/

#result h1 {
  text-align: center;
  margin: 6px 0 22px;
  font-size: 36px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  #result h1 {
    font-size: 28px;
  }
}

#result h2 {
  font-size: 1.7em;
  text-align: left;
  margin: 1em 0;
  padding: 0.5em; /*文字周りの余白*/
  color: var(--accent); /*文字色*/
  background: #e6f4fe; /*背景色*/
  border-left: solid 5px var(--accent); /*左線（実線 太さ 色）*/
}

#result h3 {
  display: inline-block;
  font-size: 1.3em;
  margin: 0.5em 0;
}

#result .caution {
  margin: 10px 5%;
}

.selected-kadai-wrap {
  text-align: center;
}

#result .selected-kadai {
  position: relative;
  padding: 1rem 2rem;
  text-align: center;
  border: 3px solid #56a5b7;
  border-radius: 0 10px 10px 10px;
  font-weight: 600;
  font-size: 1.5em;
  width: auto;
  margin: 30px auto;
  min-width: 60%;
  display: inline-block;
}

#result .selected-kadai:before {
  font-size: 15px;
  font-size: 1.5rem;
  position: absolute;
  top: -36px;
  left: -3px;
  /*  height: 24px; */
  padding: 0 1em;
  content: "課題";
  color: #fff;
  border-radius: 10px 10px 0 0;
  background: #fd7e14;
}

@media (max-width: 768px) {
  #result .selected-kadai {
    width: 100%;
    margin: 40px auto 30px auto;
  }
}

/* 
  ステップフロー
*/

#result .stepwrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 2em;
}

.step_flow {
  padding-left: 0;
  width: 100%;
  max-width: 900px;
}

.step_flow > li {
  list-style-type: none;
  border: 2px solid #4d9bc1;
  padding: 20px;
  border-radius: 20px;
}

.step_flow > li:not(:last-child) {
  margin-bottom: 40px;
  position: relative;
}

.step_flow > li:not(:last-child)::after {
  content: "";
  position: absolute;
  border: 20px solid transparent;
  width: 0;
  height: 0;
  bottom: -53px;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  border-top-color: #4d9bc1;
}

.step_flow > li dl dt {
  font-size: 1.3em;
  font-weight: bold;
  border-bottom: 2pt dashed #ccc;
  padding-bottom: 0.5em;
  margin-bottom: 0.5em;
  color: #023c97;
  padding-left: 3.8em;
  text-indent: -3.8em;
}

.step_flow > li .icon10 {
  color: #fd7e14;
  margin-right: 0.8em;
}

.step_flow > li dl dd {
  margin: 0 0 0 1em;
  position: relative;
}

#result dd:before {
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-family: "Font Awesome 5 free";
  font-weight: 600;
  content: "\f00c";
  margin-left: -1.5em;
  color: #4d9bc1;
  margin-right: 5px;
  position: absolute;
}

.link_out:after {
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  content: "\f24d";
  margin-left: 5px;
}

@media (max-width: 768px) {
  #result .stepwrap {
    margin: 0;
  }
}

/*
  事例
*/

#result .jire-gaiyo {
  padding: 0.5em 1em;
  margin: 2em 0;
  font-weight: 400;
  color: #494949; /*文字色*/
  background: #fff;
  border: solid 3px var(--accent); /*線*/
  border-radius: 10px; /*角の丸み*/
}

#result .jire-gaiyo p {
  margin: 0;
  padding: 0;
}

/*
  導入ツール
*/
#result .imple-tools-item {
  margin: 1em 0 1.8em 0;
  border: 1px solid #dfdfdf;
  padding: 10px;
}

#result .imple-tools-item .toollink {
    margin-left:3em;
}

#result .imple-tools-item .tooltitle h3 {
    display: flex  !important;
    align-items: center;
    gap: .5em;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: #407b8e;
    font-weight: 600;
}

#result .tool-block {
    margin-bottom: 1.5em;
}

#result .tool-block .tool-mark {
    display: inline-flex !important;
    align-items: center;      /* 自分の内側で上下中央 */
    justify-content: center;  /* 水平中央 */
    padding: .2em 1.4em;       /* 上下に少し余白を付けて“高さ”を作る */
    border: 1px solid #fd7e14;
    background-color: #fd7e14;
    font-size: 14px;
    line-height: 1 !important;           /* 行間の“ブレ”を抑える */
    border-radius: .25em;
    color: #ffffff;
}

#result .tool-block .tool-comment {
    font-size: 1.1rem;
    margin: 0 0 0 1em !important;
}

#result .tool-block .tool-comment a{
    margin: 0 0 0 1em;
}


#result .tool-comment span,
#result .imple-cost-title span {
  color: #407b8e;
  padding-right: 4px;
  font-size: 1.1rem;
  margin-left: -1em;
}

#result .imple-cost-item {
    margin: 0.5em 0 0.5em 1em  !important;
}

#result .imple-cost-title {
    font-size: 1.1rem;
    color: #407b8e;
    padding-right: 4px;
    font-weight: 600;
}

#result .imple-cost {
    margin: 0 0 0 1em;
    font-size: 18px;
}

#result .tooltitle {
    font-size: 1.3em;
    margin: 0;
    color: #407b8e;
    font-weight: 600;
}

.tooltitle .fa-hand-point-right {
  color: #fd7e14;
}

@media (max-width: 768px) {
    #result .imple-tools-item .tooltitle h3 {
      font-size: 1.2em  !important;
    }

}

#result .info-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* 補助金 */
#result .hojyokin-hosoku table {
  width: 50%;
  margin: 0.1em 0 0.1em 1em;
}

#result .hojyokin-hosoku th {
  padding: 0;
  font-weight: normal;
  width: 6.5em;
}

#result .hojyokin-hosoku td {
  padding: 0;
  font-weight: normal;
  text-align: left;
  width: 6em;
}

#result .hojyokin-item {
  margin: 1em 0 1.8em 0;
}

#result .hojyokin-item .toolinfo {
  color: #cb2c00;
  margin: 0;
}

#result .hojyokin-hosoku ul {
  list-style: none;
  padding-left: 1em;
}

@media (max-width: 768px) {
  #result .hojyokin-hosoku table {
    width: 100%;
    margin-left: 0;
  }
}

/* もっと相談したい場合 */
#result .support-org-table .telno {
  width: 8em;
  vertical-align: middle;
}

/* ------------------------
   お知らせ
------------------------ */

#news h1 {
  margin: 6px 0 22px;
  font-size: 36px;
  color: #000000;
}

@media (max-width: 768px) {
  #news h1 {
    font-size: 28px;
  }
}

/* 見出し */

.container .heading01 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 36px;
  text-align: center;
  margin: 0px 0px 50px 0px;
  color: var(--accent);
}

@media screen and (max-width: 767px) {
  .container .heading01 {
    font-size: 22px;
    margin: 0px 0px 50px 0px;
  }
}

/* ------------------------
   お知らせ詳細
------------------------ */

#news-details h1 {
  font-size: 24px;
  text-align: left;
}

.top-bar {
  height: 100px;
  background-color: #407b8e; /* 任意の色コードを指定 */
  width: 100%;
  display: flex;
  align-items: center;
}

.top-bar span {
  display: inline-block;
  margin: 0 auto;
  color: #fff;
  font-size: 32px;
  font-weight: 600;
}

#news-details time {
  font-weight: bold;
}

#news-details .newslist-time {
  color: #56a5b7;
  width: 100%;
  font-weight: 600;
}

#news-details ul {
  list-style: none;
  padding-left: 0px;
}

#news-details li:before {
  list-style: none;
  font-family: "Font Awesome 5 Free";
  content: "\f138";
  font-weight: 600;
  color: #56a5b7;
}

.link_pdf:after {
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  content: "\f1c1";
  margin-left: 5px;
}

#news-details ul li a {
  text-decoration: underline;
  color: #1f2933;
}

#news-details ul li a:hover {
  text-decoration: none;
  color: #cb2c00;
}

.btn-area {
  margin-top: 75px;
  margin-bottom: 50px;
}

@media screen and (max-width: 767px) {
  .top-bar {
    height: 75px;
  }

  .top-bar span {
    font-size: 24px;
  }

  #news-details h1 {
    font-size: 20px;
  }
}

/* ------------------------
   お知らせ一覧ページ
------------------------ */

#news-list .top-bar h1 {
  display: inline-block;
  margin: 0 auto;
  color: #fff;
  font-size: 32px;
  font-weight: 600;
}

#news-list ul li {
  border-bottom: 1px solid #d6dce1;
  border: none;
}

#news-list .newslist_item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 0rem 1rem 0rem;
  justify-content: flex-start;
  width: 100%;
  border-bottom: 1px solid #d8dde3;
  /* cursor: pointer; */
  text-decoration: none;
}

#news-list .newslist-time {
  color: #56a5b7;
  width: 100%;
  font-weight: 600;
}

#news-list h2 {
  font-size: 1rem;
  text-align: left;
  color: #1f2933;
  margin-bottom: 0px;
}

#news-list ul {
  list-style: none;
  padding-left: 0rem;
}

#news-list ul li .newslist_item a {
  text-decoration: underline;
  color: #1f2933;
}

#news-list ul li .newslist_item a:hover h2 {
  color: #cb2c00;
}

#news-list ul li .newslist_item a:hover {
  text-decoration: none;
}

@media screen and (max-width: 767px) {
  #news-list .top-bar h1 {
    font-size: 24px;
  }
}

/* ------------------------
   省力化ナビとはページ
------------------------ */

#about-all .top-bar h1 {
  display: inline-block;
  margin: 0 auto;
  color: #fff;
  font-size: 32px;
  font-weight: 600;
}

#about-all h2 {
  font-size: 30px;
  text-align: center;
  position: relative;
  margin-bottom: 1em;
  color: #407b8e;
  line-height: 1.4em;
}

#about-all h2:before {
  content: "";
  position: absolute;
  bottom: -10px;
  display: inline-block;
  width: 60px;
  height: 3px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #e0481d;
}

#about-all h3 {
  font-size: 24px;
  text-align: left;
}

#about-all img {
  max-width: 100%;
  height: auto;
  border: solid 1px #dfdfdf;
}

#about-all .about-kei {
  border: 2px solid #407b8e;
  padding: 20px;
  border-radius: 20px;
}

#about-all .about-maintext p {
  line-height: 2em;
}

#about-all .mark {
  background: linear-gradient(transparent 60%, yellow 0%);
  font-weight: 600;
}

#about-all .about-flowwrap {
  margin: 0 auto;
  width: 90%;
}

#about-all .about-flow {
  padding-left: 0;
  width: 100%;
  padding-top: 0.5em;
}

#about-all .about-flow > li {
  list-style-type: none;
  /* border-radius: 15px; */
  background: #fff;
  position: relative;
  padding: 20px;
  border-top: solid 5px #5d627b;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.22);
  margin-top: 40px;
}

#about-all .about-flow > li:not(:last-child) {
  margin-bottom: 30px;
}

#about-all .about-flow > li dl dt {
  font-size: 1.4em;
  font-weight: 700;
  width: 100%;
  min-width: 7em;
  color: #023c97;
  text-align: left;
}

#about-all .about-flow > li .icon08 {
  color: #fd7e14;
  margin-right: 0.5em;
}

#about-all .about-flow > li dl dd {
  /* margin: 0 0 0 4.5em; */
  /* width: 90%; */
  text-align: left;
  margin-top: 0.5em;
}

#about-all .u-strong {
  display: inline-flex;
  background: #f6f2ec;
  color: #f18d00;
  font-weight: 700;
  line-height: 2.5;
}

.flow-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.flow-text {
  flex: 1;
}

.flow-image img {
  width: 300px;
  height: auto;
  display: block;
}

/* Step1内の各ブロック */
#about-all .flow-block {
  padding: 20px 0;
  border-bottom: 1px dashed;
}

/* 最後のブロックは線を消す */
#about-all .flow-block:last-child {
  border-bottom: none;
}

/* ボタン全体 */
#about-all .flyer-download-wrapper {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

#about-all .flyer-download-btn {
  width: 50%;
  max-width: 500px;
  min-width: 260px;
  padding: 18px 24px;
  background: #407b8e;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #f18d00 50%, #407b8e 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  transition: background-position 0.3s ease;
}

#about-all .flyer-download-btn a {
  background: #ffce2b;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  padding: 8px 25px;
  color: #313131;
  transition: 0.3s ease-in-out;
  font-weight: 600;
  z-index: 0;
  border-radius: 30px;
  width: 70%;
  font-size: 1.4rem;
  text-decoration: none;
  font-family: "BIZ UDPGothic";
}

#about-all .flyer-download-btn a:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  display: block;
  background: #f18d00;
  transition: 0.3s;
  left: 0;
  border-radius: 30px;
}

/* ホバー時 必要*/
#about-all .flyer-download-btn:hover {
  background-position: left bottom;
}

/* 矢印丸 */
#about-all .arrow-circle {
  width: 42px;
  aspect-ratio: 1 / 1; /* 常に正円を保つ */
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto; /* 伸縮を防ぐ */
  align-self: center; /* 縦伸び防止 */
}

/* 矢印本体 */
#about-all .arrow {
  width: 10px;
  height: 10px;
  border-top: 3px solid #407b8e;
  border-right: 3px solid #407b8e;
  transform: rotate(45deg);
}

/* ホバー時矢印アニメーション */

#about-all .flyer-download-btn:hover .arrow {
  border-top: 3px solid #f18d00;
  border-right: 3px solid #f18d00;
}

#about-all .flyer-download-btn:hover .arrow-circle {
  background: #ffffff;
}

@media screen and (max-width: 767px) {
  #about-all .top-bar h1 {
    font-size: 24px;
  }

  #about-all h2 {
    font-size: 24px;
    margin-bottom: 1em;
  }

  #about-all h3 {
    font-size: 20px;
  }

  #about-all ul {
    font-size: 16px;
  }

  #about-all .about-kei {
    padding: 10px;
    border-radius: 10px;
  }

  #about-all .about-flow > li dl dt {
    font-size: 1.2em;
    margin-bottom: 10px;
  }

  #about-all .about-flow > li dl dd {
    margin: 0 0 0 0;
  }

  .flow-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .flow-image img {
    width: 100%;
    max-width: 300px;
  }

  #about-all .flyer-download-btn {
    width: 80%;
    font-size: 16px;
    padding: 16px 20px;
  }

  #about-all .arrow-circle {
    width: 36px;
    aspect-ratio: 1 / 1;
  }
}

/* ------------------------
   404ページ
------------------------ */

.btn-home {
  padding: 1rem 2rem;
  /* font-weight: bold; */
  background-color: #56a5b7;
  /* border: 2px solid #2178c4; */
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
}

.btn-home:hover {
  background-color: #407b8e;
  color: #fff;
}

#result .info-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

#result .support-org-table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1rem;
  border: 2px solid #808080;
}

#result .support-org-table th,
#result .support-org-table td {
  padding: 5pt 5pt;
  vertical-align: middle;
  border: 1px solid #808080;
  text-align: left;
}

#result .support-org-table th {
  background-color: #f8d7da;
}

#result .support-org-table .telno {
  width: 8em;
  vertical-align: middle;
}

#result .tooltitle {
    font-size: 1.3em;
    margin: 0;
    color: #407b8e;
    font-weight: 600;
}



