@charset "utf-8";
.solution-cases__lower-heading {
  font-size: 2.0rem;
  line-height: 3.0rem;
  font-weight: 600;
  margin-top: 50px;
}
.solution-cases__wrap {
  width: 95vw;
  max-width: 90%;
  margin: 0 auto;
  padding: 20px 0;
  box-sizing: border-box;
}
.solution-case {
  margin-top: 20px;
}
.solution-case.case-1 {
  margin-top: initial;
}
.solution-case__upper {
  max-width: 625px;
  background-color: #e8e8e8;
  border-radius: 10px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
}
.solution-case__upper h2 {
  font-size: 1.25rem;
  line-height: 1.875rem;
}
.choice-field {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 5px;
  padding-left: 10px;
  box-sizing: border-box;
}
.choice-field__contents {
  width: 100%;
  max-width: 100px;
  font-size: 0.8rem;
  line-height: 1.2rem;
  font-weight: 600;
  color: #fff;
  background-color: #747474;
  border-radius: 3px;
  margin: 5px 10px 0 0;
  padding: 3px 0;
  box-sizing: border-box;
}
.choice-field__contents.on {
  background-color: #1b70d1;
}
.requester-attributes__wrap {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
}
.requester-attributes__content {
  display: flex;
  white-space: nowrap;
  margin-right: 10px;
}
.requester-attributes__small-heading {
  margin-right: 5px;
}
.solution-details__wrap {
  display: flex;
  justify-content: space-around;
  box-sizing: border-box;
}
.solution-details__content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column;
  width: 100%;
  max-width: 285px;
  background-color: #A5A5A5;
  border-radius: 5px;
  margin-top: 10px;
  padding: 10px;
  box-sizing: border-box;
}
.solution-details__content.on {
  background-color: #FFF;
}
.solution-details__small-heading {
  font-size: 0.8rem;
  line-height: 1.2rem;
  font-weight: 600;
  color: #525252;
}
.solution-details__amount {
  font-size: 0.8rem;
  line-height: 1.2rem;
  color: #525252;
}
.amount-emphasis {
  font-size: 1.25rem;
  line-height: 1.875rem;
}
.solution-details__special-notes {
  dispaly: none;
}
.solution-details__special-notes.on {
  display: block;
  width: 100%;
  max-width: 97%;
  background-color: #FFF;
  border-radius: 5px;
  margin: 10px auto 0;
  padding: 10px;
  box-sizing: border-box;
}
.solution-details__content.on .solution-details__small-heading, .solution-details__content.on .solution-details__amount, .solution-details__special-notes.on .solution-details__small-heading, .solution-details__special-notes.on .solution-details__amount {
  color: #333;
}
.solution-details__content.on .amount-emphasis, .solution-details__special-notes.on .amount-emphasis {
  font-weight: 600;
  color: #f96565;
}
.solution-case__more-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 300px;
  background-color: #1b70d1;
  font-size: 1.0rem;
  font-weight: 600;
  color: #FFF;
  white-space: nowrap;
  border-radius: 100px;
  padding: 5px;
  margin: 10px auto 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease-in-out;
  box-sizing: border-box;
  cursor: pointer;
}
.solution-case__more-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  z-index: -1;
  transition: all 0.4s ease-in-out;
  background-color: #5097e3;
}
.solution-cases__description, .solution-cases__individual-description {
  display: none;
  text-align: left;
}
.solution-cases__description.details-open, .solution-cases__individual-description {
  display: block;
}
.solution-cases__description h3, .solution-cases__individual-description h3 {
  width: 100%;
  max-width: 100%;
  font-size: 1.375rem;
  line-height: 2.0625rem;
  color: #1d415f;
  border-left: 0;
  border-bottom: solid 2px #1b70d1;
  margin: 10px 0 15px;
  padding: 12px 5px 6px;
  box-sizing: border-box;
}
.solution-cases__description p, .solution-cases__individual-description p {
  line-height: 1.8rem;
  width: 98%;
  margin: 0 auto 20px;
}
/* PC版のみリンクへのホバー要素 */
@media(min-width: 961px) {
  .solution-case__more-button:hover::before {
    transform: translateX(100%);
  }
}
@media(max-width: 960px) {
  .solution-case__upper h2 {
    text-align: left;
  }
  .choice-field {
    justify-content: flex-start;
  }
  .choice-field__contents {
    display: none;

  }
  .choice-field__contents.on {
    display: block;
  }
  .solution-details__wrap {
    justify-content: space-around;
    margin: 0 auto;
  }
  .solution-details__content.on {
    max-width: 45%;
  }
}
@media(max-width: 540px) {
  .solution-case__upper h2 {
    font-size: 1.0rem;
    line-height: 1.5rem;
  }
  .requester-attributes__content {
    font-size: 0.8rem;
    line-height: 1.2rem;
    margin-right: 5px;
  }
  .requester-attributes__small-heading {
    margin-right: 2px;
  }
}
@media(max-width: 420px) {
  .solution-cases__wrap {
    max-width: 95%;
  }
  .solution-case__upper {
    padding: 10px 5px;
  }
  .requester-attributes__wrap {
    margin-top: 5px;
  }
  .choice-field {
    margin-top: 0;
    padding-left: 5px;
  }
  .choice-field__contents {
    max-width: 85px;
    font-size: 0.8rem;
    line-height: 1.2rem;
    margin: 5px 5px 0 0;
    padding: 1px 0;
  }
  .solution-details__small-heading {
    font-size: 0.75rem;
    line-height: 1.125rem;
    font-weight: 600;
    color: #525252;
  }
  .solution-details__content {
    padding: 5px;
  }
  .solution-details__amount {
    font-size: 0.75rem;
    line-height: 1.125rem;
    color: #525252;
  }
  .amount-emphasis {
    font-size: 1.0rem;
    line-height: 1.5rem;
  }
  .solution-cases__description h3, .solution-cases__individual-description h3 {
    font-size: 1.0rem;
    line-height: 1.5rem;
    margin: 5px 0 10px;
    padding: 6px 5px 3px;
  }
  .solution-cases__description p, .solution-cases__individual-description p {
    font-size: 0.75rem;
    line-height: 1.125rem;
    margin: 0 auto 10px;
  }
}



.edit-toggle {
  display: flex;
  gap: 8px;
  margin: 16px 0 20px;
}
.edit-toggle__button {
  appearance: none;
  border: 1px solid #cfd7e6;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.edit-toggle__button.is-active {
  border-color: #1b70d1;
  box-shadow: 0 0 0 2px rgba(27,112,209,0.12) inset;
  font-weight: 600;
}
.member-status__caution {
  background: #fff8e6;
  border: 1px solid #ffd37a;
  color: #7a5a00;
  padding: 14px;
  border-radius: 8px;
  line-height: 1.7;
}

.acf-true-false:has(.acf-switch) label {
  justify-content: center;
}

/* 説明欄 */
.case-help { 
  margin: 0 0 16px;
}
.case-help__toggle {
  border:1px solid #cfd7e6;
  border-radius:8px;
  background-color:#f8fbff;
}
.case-help__summary {
  display: flex;
  align-items: center;
  gap: .5em;
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  padding: 10px 12px;
}
.case-help__summary::-webkit-details-marker {
  display: none;
}
.case-help__summary::before {
  content: "▶";
  font-size: .9em;
  transition: transform .2s;
}
.case-help__toggle[open] .case-help__summary::before {
  transform: rotate(90deg);
}
.case-help__small-heading {
  font-weight: 600;
  margin-top: 10px;
}

/* アニメさせるのは body 部分だけ */
.case-help__body {
  overflow: hidden;
  height:0; /* JSでheightを制御 */
  padding: 0 12px; /* 上下は閉じ時0にしたいので後でJSで付け替え */
}
.case-help__body > * {
  margin-top: .6em;
}
.case-help__body img {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 20px auto 0;
}

.case-help__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
}
.case-help__table thead th {
  background: #f3f6fb;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e6ebf2;
}
.case-help__table td {
  padding: 10px 12px;
  vertical-align: top;
  border-bottom: 1px solid #f0f3f7;
}
.case-help__table tbody tr:last-child td {
  border-bottom: none;
}
.case-help__table em {
  font-style: normal;
  background: #fff6e6;
  padding: 0 .25em;
  border-radius:4px;
}
.case-help__table strong {
  font-weight: 700;
}

/* スマホ微調整 */
@media (max-width: 640px){
  .case-help__table{ font-size:13px; }
  .case-help__table thead th:first-child{ width: 40%; }
}



/* 閉じているときは入力部を非表示（JSのslideと両立します） */
.acf-field-group.-collapsed > .acf-input {
  display: none;
}
/* 見出しの見た目 */
#panel-case .acf-field-group > .acf-label { 
  display:block;
  gap:0; align-items:normal;
}
/* 親5グループだけ適用 */
#panel-case .acf-field-group[data-key="field_68677632a23a4"] > .acf-label,
#panel-case .acf-field-group[data-key="field_68ccf6cc2c109"] > .acf-label,
#panel-case .acf-field-group[data-key="field_68ccf8109efd1"] > .acf-label,
#panel-case .acf-field-group[data-key="field_68ccf82272e53"] > .acf-label,
#panel-case .acf-field-group[data-key="field_68ccf836a4c1d"] > .acf-label {
  display:flex;
  align-items:center;
  gap:.5em;
}
#panel-case .acf-field-group > .acf-label::before { content: none; }
/* 矢印を出したい親グループだけ指定 */
#panel-case .acf-field-group[data-key="field_68677632a23a4"] > .acf-label::before,
#panel-case .acf-field-group[data-key="field_68ccf6cc2c109"] > .acf-label::before,
#panel-case .acf-field-group[data-key="field_68ccf8109efd1"] > .acf-label::before,
#panel-case .acf-field-group[data-key="field_68ccf82272e53"] > .acf-label::before,
#panel-case .acf-field-group[data-key="field_68ccf836a4c1d"] > .acf-label::before {
  content: "▶";
  font-size: .9em;
  transform: rotate(0deg);
  transition: transform .15s ease;
}
/* 開いている時の向き（JSで .-collapsed を付け外し） */
#panel-case .acf-field-group:not(.-collapsed) > .acf-label::before {
  transform: rotate(90deg);
}
.solution-cases__field .acf-checkbox-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}


.solution-cases__contents {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.solution-cases__contents .solution-cases__wrap {
  width: 100%;
  max-width: 650px;
  margin: 0;
  padding: 20px 0;
  box-sizing: border-box;
}
.solution-cases__banner {
  max-width: 300px;
  padding: 50px 0 0;
  margin-left: 30px;
  box-sizing: border-box;
}
@media(max-width: 960px) {
  .solution-cases__contents .solution-cases__wrap {
    max-width: 98%;
  }  
}

.solution-cases__banner-contents__wrap .button-area {
  flex-flow: initial;
}
.solution-cases__banner-contents__wrap .float-sp {
  display: none;
}
.solution-cases__banner-contents__wrap .float-pc {
  display: flex;
  justify-content: center;
  align-items: center;
}
.solution-cases__banner-contents__wrap .float-pc img {
  width: 40px;
  object-fit: contain;
  margin-right: 10px;
  padding-left: 10px;
}
.solution-cases__banner-contents__wrap .float-pc .tel-number {
  color: #393939;
  font-size: 1.875rem;
  text-decoration: underline;
  white-space: nowrap;
  margin-right: 10px;
}
.solution-cases__banner-contents__wrap .float__support-area {
  font-size: 0.75rem;
  line-height: 1.125rem;
  text-align: left;
  color: #393939;
  margin-bottom: 3px;
  display: -webkit-box; /* 必須: フレックスボックスのような挙動を適用 */
  -webkit-line-clamp: 1; /* 表示する行数を指定 */
  -webkit-box-orient: vertical; /* ボックスの方向を縦に設定 */
  overflow: hidden; /* 余剰部分を隠す */
  text-overflow: ellipsis; /* 必須ではないが、末尾に「…」を表示する場合 */ 
}
.solution-cases__side-button {
  flex-flow: column;
}
.solution-cases__floating-banner .sp__tel-button {
  display: none;
}
@media(max-width: 960px) {
  .solution-cases__banner-contents__wrap .button-area {
    transform: scale(1.0);
  }
  .solution-cases__banner-contents__wrap .float-sp {
    display: flex;
  }
}
@media(max-width: 600px) {
  .solution-cases__floating-banner .banner__contact-area .tel-description {
    display: none;
  }
  .solution-cases__floating-banner .tel-button, .solution-cases__floating-banner .mail-button {
    width: 150px;
    height: 50px;
    border-radius: 5px;
  }
  .solution-cases__floating-banner .tel-button img {
    width: 30px;
    height: 30px;
    margin-right: 0;
    margin-left: 10px;
  }
  .solution-cases__floating-banner .mail-button img {
    width: 32px;
    margin-right: 10px;
  }
  .solution-cases__floating-banner .tel-number, .solution-cases__floating-banner .mail-button p {
    line-height: 1.2rem;
  }
}
@media(max-width: 500px) {
  .solution-cases__floating-banner .tel-number, .solution-cases__floating-banner .tel-description {
    display: none;
  }
  .solution-cases__floating-banner .tel-button, .solution-cases__floating-banner .mail-button {
    width: 120px;
    height: 35px;
    border-radius: 5px;
  }
  .solution-cases__floating-banner .banner__contact-area .button-area a:first-child {
    margin-right: 0;
  }
  .solution-cases__floating-banner .banner__contact-area .button-area a:last-child {
    margin-top: 5px;
  }
  .solution-cases__floating-banner .sp__tel-button {
    display: block;
    font-weight: 600;
  }
  .solution-cases__floating-banner .sp__tel-button, .solution-cases__floating-banner .mail-button p {
    font-size: 0.75rem;
    line-height: 1.0rem;
  }
  .solution-cases__floating-banner .mail-button img {
    width: 22px;
    margin-right: 8px;
  }
}

.solution-cases__author-info {
  padding-bottom: 20px;
  box-sizing: border-box;
}
.solution-cases__author-info .author-title {
  text-align: center;
  padding: 10px 20px;
}
.solution-cases__author-info .author-content {
  padding: 20px 30px 0px;
}
.solution-cases__author-info .author-photo img {
  border-radius: initial;
}
.solution-cases__author-info .author-description {
  text-align: left;
  padding: 0 30px;
  box-sizing: border-box;
}
.other__solution-cases .other__cases-heading {
  font-size: 1.25rem;
  line-height: 1.875rem;
  font-weight: 600;
  margin-top: 10px;
}
@media(max-width: 500px) {
  .solution-cases__author-info {
    padding-bottom: 10px;
  }
  .solution-cases__author-info .author-content {
    padding: 10px 10px 0px;
  }
  .solution-cases__author-info .author-description {
    padding: 0 10px;
  }
}
@media(max-width: 400px) {
  .solution-cases__author-info .mypage-link {
    max-width: 95%;
  }
}

.solution-case__lawyer-info {
  display: flex;
  white-space: nowrap;
  margin-top: 10px;
}
.case-info__small-heading {
  margin-right: 5px;
}
.search-box__solution-cases .search__button {
  margin-top: 15px;
}
.cases-archive__page-wrap .pagenation {
  margin-top: 30px;
}

.solution-case__more-button, .solution-case__more-link, .solution-cases__more-author {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 300px;
  background-color: #1b70d1;
  font-size: 1.0rem;
  font-weight: 600;
  color: #FFF;
  white-space: nowrap;
  border-radius: 100px;
  padding: 5px;
  margin: 10px auto 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease-in-out;
  box-sizing: border-box;
  cursor: pointer;
}
.solution-cases__more-author {
  text-decoration: none;
  margin-top: 20px;
}
.solution-case__more-link {
  text-decoration: none;
}
.solution-case__more-button::before, .solution-case__more-link::before, .solution-cases__more-author::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  z-index: -1;
  transition: all 0.4s ease-in-out;
  background-color: #5097e3;
}
/* PC版のみリンクへのホバー要素 */
@media(min-width: 961px) {
  .solution-case__more-button:hover::before, .solution-case__more-link:hover::before, .solution-cases__more-author:hover::before {
    transform: translateX(100%);
  }
}


.tab-solution-cases {
  display: none;
  margin-top: 30px;
}
.tab-solution-cases.tab-open {
  display: block;
}
.top-page__solution-case__wrap {
  width: 100%;
  max-width: 1000px;
  list-style: none;
  border-top: solid 2px #1b70d1;
  margin: 0 auto;
}
.top-page__solution-case__wrap:last-child {
  border-bottom: solid 2px #1b70d1;
}
.top-page__solution-case__wrap a {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #333;
  text-decoration: none;
  padding: 20px 10px;
  box-sizing: border-box;
}
.top-page__solution-case__wrap a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0; /* 初期状態では幅を0に設定 */
  height: 100%; /* 高さはリンク全体に合わせる */
  background-color: #e1eaf5; /* ホバー時の背景色 */
  transition: all 0.5s ease-in-out; /* 幅のアニメーション */
  z-index: -1; /* 背景をテキストの背後に配置 */
}
/* PC版のみホバー要素 */
@media(min-width: 961px) {
  .top-page__solution-case__wrap a:hover::before {
    width: 100%; /* ホバー時に幅を全体に拡大 */
  }
}
.solution-cases__top-category, .solution-cases__top-category__sp {
  min-width: 110px;  
}
.solution-cases__top-category__sp {
  display: none;
}
.solution-cases__category-line {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 3px;
}
.cases-category__image {
  max-width: 25px;
  margin-right: 5px;
}
.cases-category__image img {
  width: 100%;
  max-width: 25px;
  object-fit: cover;
}
.top-page__solution-case__wrap .solution-cases__top-category p, .top-page__solution-case__wrap .solution-cases__top-category__sp p {
  font-size: 0.8rem;
  line-height: 1.2rem;
  font-weight: 600;
}
.solution-case__info-wrap {
  width: 100%;
  max-width: 700px;
  padding: 0 10px;
  box-sizing: border-box;
}
.solution-case__info-wrap h3 {
  line-height: 1.5rem;
  text-align: left;
}
.top-page__solution-case__wrap .solution-details__content {
  min-width: 130px;
  max-width: 140px;
  background-color: #EAEAEA;
  margin-top: initial;
}
.top-page__solution-case__wrap .amount-emphasis {
  font-size: 1.1rem;
  line-height: 1.65rem;
}
.link-button.solution-cases__link {
  margin-top: 30px;
}
@media (max-width: 1000px) {
  .solution-case__info-wrap {
    max-width: 70%;
  }
}
@media (max-width: 960px) {
  .top-page__solution-case__wrap .solution-details__wrap {
    justify-content: initial;
    margin: initial;
  }
  .top-page__solution-case__wrap .requester-attributes__wrap, .top-page__solution-case__wrap .solution-case__lawyer-info {
    font-size: 0.9rem;
    line-height: 1.35rem;
  }
}
@media (max-width: 500px) {
  .tab-solution-cases {
    margin-top: 20px;
  }
  .top-page__solution-case__wrap a {
    flex-flow: column;
    padding: 8px 2px;
  }
  .solution-case__info-wrap {
    max-width: 98%;
  }
  .top-page__solution-case__wrap .solution-case__lawyer-info {
    margin-top: 5px;
  }
  .solution-case__info-wrap h3 {
    font-size: 0.9rem;
    line-height: 1.2rem;
  }
  .top-page__solution-case__wrap .solution-details__wrap {
    align-items: center;
    margin-top: 5px;
  }
  .top-page__solution-case__wrap .requester-attributes__wrap {
    display: none;
  }
  .top-page__solution-case__wrap .solution-cases__top-category {
    display: none;
  }
  .top-page__solution-case__wrap .solution-cases__top-category__sp {
    display: block;
  }
  .top-page__solution-case__wrap .amount-emphasis {
    font-size: 0.9rem;
    line-height: 1.2rem;
  }
}
@media (max-width: 350px) {
  .link-button.solution-cases__link {
    margin-top: 10px;
  }
}

.matched-solution-cases {
  margin-top: 50px;
}
.matched-solution-cases .lawyer-sarch__cases-heading {
  font-size: 1.2rem;
  line-height: 1.8rem;
  font-weight: 600;
}
@media (max-width: 960px) {
  .matched-solution-cases {
    margin-top: 30px;
  }
}
