/*文字間詰め*/
p,
h1,
h2,
h3,
a,
label,
.title,
li {
  font-feature-settings: "palt";
  letter-spacing: 0.05em;
}

.flex {
  display: flex;
}
.pc {
  display: block;
}
.mob {
  display: none;
}
#about_field,
#strong,
#contents_dtl,
#field_link,
#estimate {
  margin: 4.5em 0 0 0;
}
.wrap,
.wrap2 {
  padding: 5% 10% 10%;
}
#bnr {
  display: none;
}

#about_field i {
  font-style: normal;
  margin-right: 0.3em;
}

#about_field h3,
#about_field p {
  text-align: center;
}
.info_area .B_ttl {
  line-height: 120%;
}

.pan {
  padding: 2% 0 5%; /*15*/
}

#page_menu {
  width: 80%;
  height: 4vw;
  margin: 0em 75px 0 16%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: hwb(0deg 100% 0% / 80%);
  z-index: 10;
  gap: 0;
}

.page_ttl {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0;
  margin: 0;
  border-right: 1px solid #c7e0fa;
}
.page_ttl:last-child {
  border-right: none;
}

/* リンク文字 */
.page_ttl a {
  height: 100%;
  padding: 1em 0;
  text-decoration: none;
  color: #000;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 背景ラインのベース（全項目に薄青バー） */
.page_ttl .highlight {
  position: relative; /* ←修正: これが重要 */
  display: block;
  width: 100%;
  height: 4px;
  background: rgba(0, 123, 255, 0.2);
  overflow: hidden;
  z-index: 1;
}

/* 疑似要素：濃い青バー（current時だけ動く） */
.page_ttl .highlight::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: #007bff;
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}

/* currentの文字色 */
.page_ttl.current a {
  color: #007bff;
}

/* currentアニメーション */
.page_ttl.current .highlight::after {
  opacity: 1;
  animation: barSlide 0.4s ease forwards;
}

@keyframes barSlide {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.step3 {
  border: 1px solid #097fe3;
  background: #fff;
  height: 3em;
  width: 14em; /*20%*/
  margin: 5em auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5em;
  filter: drop-shadow(2px 2px 3px #999);
  color: #097fe3 !important;
  font-size: 120%;
  webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}

.step3:hover {
  background: #097fe3;
  color: #fff !important;
  transform: scale(0.95);
  filter: drop-shadow(1px 1px 2px #555);
  webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}
/* --- レスポンシブ切替 Tablet--- */
@media screen and (max-width: 1024px) {
  .flex {
  }

  #page_menu {
    width: 100%;
    display: flex;
    top: 5em;
    margin: 0;
    display: flex;
  }
  .page_ttl a {
    padding: 1em 0.9em;
    line-height: 120%;
  }
  .wrap {
    padding: 15% 10% 10%;
  }
}

/***********************************************************************/

/* --- レスポンシブ切替 Mobile--- */
@media screen and (max-width: 480px) {
  .flex {
    display: block;
  }
  .pc {
    display: none;
  }
  .mob {
    display: block;
  }

  #about_field,
  #strong,
  #contents_dtl,
  #field_link,
  #estimate {
    margin: 7.4em 0 0 0;
  }
  #page_menu {
    top: 5em;
    width: 92%;
    margin: 0 1em 1em 1em;
    position: relative;
    display: block !important;
    height: 14em;
  }
  .wrap {
    padding: 5% 5% 10%;
  }
  .wrap2 {
    padding: 5% 0% 10% 0;
  }
  .step3 {
    width: 80%;
  }

  /*STEP1*/
  /*STEP2*/
  /*STEP3*/

  #about_field i,
  #strong i,
  #field_link i {
    display: block;
    margin-bottom: 0.5em;
  }

  #about_field p {
    text-align: left;
  }
  .info_area .B_ttl,
  #strong .B_ttl,
  #field_link .B_ttl {
    line-height: 120%;
    font-size: 150%;
    margin-bottom: 3em;
  }

  #about_field h3 {
    text-align: left;
    font-size: 140%;
    font-weight: bold;
    line-height: 160%;
    margin-bottom: 8%;
  }
  #page_menu_mob {
    position: fixed;
    z-index: 1;
    width: 100%;
    background: #fff;
  }
  #page_menu_mob select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    margin-top: 4.5em;
    /*safari reset*/
    -webkit-appearance: none; /* iOS Safari 標準スタイルを無効化 */
    appearance: none;

    /*arrow*/
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='gray' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
  }
  /* フォーカス時（クリックやタップした瞬間） */
  #page_menu_mob select:focus {
    outline: none;
    box-shadow: none;
    border-color: #ccc; /* 任意：色を変えたくない */
  }
}
