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

  弁護士紹介（/souzoku/lawyer/）

*************************************************/
/* 下層ページ見出し（副題なし。下線は h1 に付ける） */
main > header {
  & h1 {
    color: var(--color-green-dark);
    font-size: var(--font-size-h1);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.08em;

    &::after {
      content: "";
      display: block;
      margin-top: 18px;
      width: 56px;
      height: 3px;
      background: var(--color-green);
    }
  }
}

#contents > article {
  /* 見出し */
  & > h2,
  & section.lawyer-areas h2 {
    margin: var(--space-section) auto 36px;
    font-size: var(--font-size-h2);
    font-weight: 700;
    line-height: var(--line-height-heading);
    letter-spacing: 0.08em;

    &::after {
      margin-top: 18px;
      width: 56px;
      height: 2px;
      background: var(--color-heading-line);
    }
  }

  /* 小見出し（共通の h3 を小さく） */
  & .lawyer-profile h3,
  & .lawyer-stance h3,
  & section.lawyer-areas h3 {
    display: flex;
    align-items: center;
    gap: 0 18px;
    margin: 40px 0 20px;
    border-bottom: solid 1px var(--color-green-dark);
    padding: 0 0 8px 4px;
    color: var(--color-text);
    font-size: var(--font-size-h3);
    font-weight: 700;
    line-height: var(--line-height-heading);
    letter-spacing: 0.1em;

    &::before {
      content: "";
      flex-shrink: 0;
      display: block;
      margin: 0;
      width: 8px;
      height: 8px;
      background: var(--color-green-dark);
    }

    &:first-child {
      margin-top: 0;
    }
  }

  & .lawyer-profile,
  & .lawyer-stance,
  & section.lawyer-areas {
    & p {
      margin: 0 0 22px;
      line-height: var(--line-height-article);
      letter-spacing: 0.05em;
    }
  }

  & .lawyer-lead,
  & section.lawyer-areas .lawyer-lead {
    margin: 0 auto 44px;
    width: 716px;
    max-width: 100%;
    line-height: var(--line-height-article);
    text-align: center;
    letter-spacing: 0.05em;
  }

  & ul.lawyer-career,
  & ul.lawyer-belong,
  & ul.lawyer-fields,
  & ul.lawyer-difficult,
  & ol.lawyer-words,
  & .lawyer-support ul {
    padding: 0;
    list-style: none;
  }

  /* 問い合わせバナー */
  & .widget-inquiry2 {
    width: 832px;
  }

  /*----------------------------------
    導入（写真 + 紹介文）
  ----------------------------------*/
  & .lawyer-intro {
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: center;
    gap: 0 40px;
    margin: 40px auto 64px;
    width: 952px;
    max-width: 100%;

    & .photo img {
      display: block;
      border-radius: 16px;
      width: 100%;
      height: 400px;
      object-fit: cover;
      object-position: center top;
    }

    & p {
      margin: 0;
      line-height: var(--line-height-article);
      letter-spacing: 0.05em;
    }

    & .quote {
      margin-top: 22px;
      border-radius: 12px;
      padding: 18px 24px;
      background: var(--color-bg-green);
    }
  }

  /*----------------------------------
    プロフィール
  ----------------------------------*/
  & .lawyer-profile,
  & .lawyer-stance {
    margin: 0 auto;
    width: 824px;
    max-width: 100%;
  }

  & .lawyer-career {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0 0 24px;

    & li {
      border: solid 1px #ddd;
      border-radius: 12px;
      padding: 28px 24px;
      background: #fff;
      line-height: var(--line-height-li);
      text-align: center;
      letter-spacing: 0.05em;

      &.c1 {
        --icon: url(profile_icon01.min.svg);
      }
      &.c2 {
        --icon: url(profile_icon02.min.svg);
      }
      &.c3 {
        --icon: url(profile_icon03.min.svg);
      }
    }

    & .icon {
      position: relative;
      display: block;
      margin: 0 auto 16px;
      border-radius: 50%;
      width: 60px;
      height: 60px;
      background: var(--color-green-dark);

      &::before {
        content: "";
        position: absolute;
        inset: 0;
        background: #fff;
        mask: var(--icon) no-repeat center / 40% 40%;
      }
    }

    & strong {
      display: block;
      margin-bottom: 4px;
      color: var(--color-green-dark);
      font-size: var(--font-size-h3);
      font-weight: 700;
      line-height: var(--line-height-heading);
      letter-spacing: 0.08em;
    }
  }

  /* 所属 */
  & .lawyer-belong {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;

    & li {
      display: flex;
      align-items: center;
      gap: 0 10px;
      border-radius: 24px;
      padding: 12px 22px;
      background: var(--color-bg-green);
      color: var(--color-green-dark);
      font-size: var(--font-size-article);
      line-height: 1.5;
      letter-spacing: 0.05em;

      &::before {
        content: "";
        display: block;
        width: 20px;
        height: 20px;
        background: var(--color-green-dark);
        mask: url(onestop_icon01.min.svg) no-repeat center / contain;
      }
    }
  }

  /*----------------------------------
    相続分野への取り組み（全幅背景）
  ----------------------------------*/
  & section.lawyer-areas {
    margin-top: var(--space-section);
    padding: 88px 0;
    background: #f3f8f2;

    & .wrapper {
      margin: 0 auto;
      width: 872px;
      max-width: 100%;
    }

    & h2 {
      margin-top: 0;
      color: var(--color-green-dark);

      &::after {
        content: "";
        display: block;
        margin: 18px auto 0;
        height: 2px;
      }
    }

    & h3 {
      border-bottom-color: #666;
    }
  }

  & .lawyer-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 0 48px;

    & li {
      position: relative;
      display: flex;
      align-items: center;
      gap: 0 10px;
      border: solid 1px #dde8dc;
      border-radius: 8px;
      padding: 12px 16px;
      background: #fff;
      line-height: var(--line-height-li);
      letter-spacing: 0.05em;

      /* チェック（::before＝円、::after＝アイコン） */
      &::before {
        content: "";
        flex-shrink: 0;
        display: block;
        border-radius: 50%;
        width: 26px;
        height: 26px;
        background: var(--color-green);
      }

      /* check_icon.min.svg は外周の円付きのため、レ点は線で描く */
      &::after {
        content: "";
        position: absolute;
        top: calc(50% - 7px);
        left: 26px;
        box-sizing: border-box;
        border-right: solid 2px #fff;
        border-bottom: solid 2px #fff;
        width: 6px;
        height: 11px;
        transform: rotate(45deg);
      }
    }
  }

  & .lawyer-difficult {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 0;

    & li {
      display: flex;
      align-items: center;
      gap: 0 16px;
      border-radius: 12px;
      padding: 18px 24px 18px 22px;
      background: var(--color-bg-green);
      line-height: var(--line-height-li);
      letter-spacing: 0.05em;

      &.d1 {
        --icon: url(case_icon01.min.svg);
      }
      &.d2 {
        --icon: url(case_icon02.min.svg);
      }
      &.d3 {
        --icon: url(case_icon03.min.svg);
      }
      &.d4 {
        --icon: url(case_icon04.min.svg);
      }
    }

    & .icon {
      position: relative;
      flex-shrink: 0;
      border-radius: 50%;
      width: 52px;
      height: 52px;
      background: #fff;

      &::before {
        content: "";
        position: absolute;
        inset: 0;
        background: var(--color-green-dark);
        mask: var(--icon) no-repeat center / 44% 44%;
      }
    }
  }

  & section.lawyer-areas .lawyer-note {
    margin: 22px 0 0;
    border-radius: 12px;
    padding: 16px 20px;
    background: var(--color-bg-cream);
    font-family: var(--font-b);
    font-weight: bold;
    line-height: var(--line-height-article);
    text-align: center;
    letter-spacing: 0.08em;
  }

  /*----------------------------------
    取り組み方針（POINT）
  ----------------------------------*/
  & .lawyer-points {
    margin: 0 auto;
    width: 872px;
    max-width: 100%;

    & .point {
      --icon-size: 60px;
      --icon-color: var(--color-green-dark);
      position: relative;
      display: grid;
      grid-template-columns: var(--icon-size) 1fr;
      column-gap: 22px;
      margin-top: 24px;

      &:first-child {
        margin-top: 0;
      }

      /* 縦線 */
      &:not(:last-child)::before {
        content: "";
        position: absolute;
        top: calc(var(--icon-size) + 8px);
        bottom: -16px;
        left: calc(var(--icon-size) / 2 - 1.5px);
        width: 3px;
        background: #c3dab7;
      }

      &.p1 {
        --icon: url(point_icon01.min.svg);
      }
      &.p2 {
        --icon: url(point_icon02.min.svg);
      }
      &.p3 {
        --icon: url(point_icon03.min.svg);
        --icon-color: var(--color-green);
      }
    }

    & .icon {
      position: relative;
      border-radius: 50%;
      width: var(--icon-size);
      height: var(--icon-size);
      background: var(--icon-color);

      &::before {
        content: "";
        position: absolute;
        inset: 0;
        background: #fff;
        mask: var(--icon) no-repeat center / 40% 40%;
      }
    }

    & .box {
      border-radius: 16px;
      padding: 28px 32px;
      background: var(--color-bg-green);
    }

    & .head {
      display: flex;
      align-items: center;
      gap: 0 14px;
      margin: 0;
      border: none;
      padding: 0;
      color: var(--color-green-dark);
      font-size: var(--font-size-h3);
      font-weight: 700;
      line-height: var(--line-height-heading);
      letter-spacing: 0.05em;

      &::before {
        content: none;
      }
    }

    /* POINT番号 */
    & .num {
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      border-radius: 2px;
      width: 44px;
      height: 40px;
      background: #fde27e;
      font-size: 16px;
      line-height: 1;

      & span {
        margin-bottom: 2px;
        color: #a3923f;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.05em;
      }
    }

    & .body {
      margin-top: 20px;

      & p {
        margin: 0;
        line-height: var(--line-height-article);
        letter-spacing: 0.05em;
      }

      & p + p {
        margin-top: 22px;
      }
    }
  }

  /*----------------------------------
    弁護士としての姿勢
  ----------------------------------*/
  & .lawyer-words {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0 0 24px;

    & li {
      border: solid 1px #ddd;
      border-top: solid 4px var(--color-green-dark);
      border-radius: 12px;
      padding: 22px 16px 24px;
      background: #fff;
      font-family: var(--font-b);
      font-size: var(--font-size-article);
      font-weight: bold;
      line-height: var(--line-height-li);
      text-align: center;
      letter-spacing: 0.08em;

      &.w3 {
        border-top-color: var(--color-green);
      }
    }

    & .num {
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 0 auto 12px;
      border-radius: 2px;
      width: 26px;
      height: 26px;
      background: #fde27e;
      color: #7a6a1f;
      font-size: 12px;
      line-height: 1;
      letter-spacing: 0;
    }
  }

  /*----------------------------------
    サポート体制
  ----------------------------------*/
  & .lawyer-support {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 0 auto;
    width: 952px;
    max-width: 100%;

    & .item {
      border: solid 1px #ddd;
      border-top: solid 4px var(--color-green-dark);
      border-radius: 12px;
      padding: 28px 32px;
      background: #fff;

      &.methods {
        border-top-color: var(--color-green);
      }
    }

    & .head {
      margin: 0 0 20px;
      border: none;
      padding: 0;
      color: var(--color-green-dark);
      font-size: var(--font-size-h3);
      font-weight: 700;
      line-height: var(--line-height-heading);
      letter-spacing: 0.08em;

      &::before {
        content: none;
      }
    }

    & p {
      margin: 0;
      line-height: var(--line-height-article);
      letter-spacing: 0.05em;
    }

    /* 弁護士＋税理士＋司法書士 */
    & .experts {
      display: flex;
      justify-content: center;
      gap: 0 60px;
      margin: 0 0 22px;
      border-radius: 12px;
      padding: 16px 20px 18px;
      background: var(--color-bg-green);

      & li {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        font-family: var(--font-b);
        font-size: 16px;
        font-weight: bold;

        &.o1 {
          --icon: url(onestop_icon01.min.svg);
        }
        &.o2 {
          --icon: url(onestop_icon02.min.svg);
        }
        &.o3 {
          --icon: url(onestop_icon03.min.svg);
        }

        /* ＋ */
        &:not(:last-child)::after {
          content: "+";
          position: absolute;
          top: 14px;
          right: -42px;
          color: var(--color-green);
          font-size: 30px;
          font-weight: normal;
          line-height: 1;
        }
      }

      & .icon {
        position: relative;
        box-sizing: border-box;
        border: solid 1px var(--color-green);
        border-radius: 50%;
        width: 56px;
        height: 56px;
        background: #fff;

        &::before {
          content: "";
          position: absolute;
          inset: 0;
          background: var(--color-green-dark);
          mask: var(--icon) no-repeat center / 20px 20px;
        }
      }

      & .o1 .icon {
        border-color: var(--color-green-dark);
        background: var(--color-green-dark);

        &::before {
          background: #fff;
        }
      }
    }

    /* 夜間・オンライン */
    & .method {
      margin: 22px 0 0;

      & li {
        display: grid;
        grid-template-columns: 46px 1fr;
        column-gap: 14px;
        align-items: start;
        margin-top: 12px;
        border-radius: 12px;
        padding: 14px 18px 16px;
        background: var(--color-bg-green);
        line-height: var(--line-height-li);
        letter-spacing: 0.05em;

        &:first-child {
          margin-top: 0;
        }

        &.m1 {
          /* 月（夜間） */
          --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.2A8 8 0 1 1 9.8 4a6.3 6.3 0 0 0 10.2 10.2z'/%3E%3C/svg%3E");
        }
        &.m2 {
          --icon: url(soudan_icon03.min.svg);
        }
      }

      & .icon {
        position: relative;
        grid-row: 1 / 3;
        border-radius: 50%;
        width: 46px;
        height: 46px;
        background: #fff;

        &::before {
          content: "";
          position: absolute;
          inset: 0;
          background: var(--color-green-dark);
          mask: var(--icon) no-repeat center / 42% 42%;
        }
      }

      & strong {
        display: block;
        color: var(--color-green-dark);
        font-size: var(--font-size-h4);
        font-weight: 700;
        line-height: var(--line-height-heading);
        letter-spacing: 0.08em;
      }
    }
  }

  /*----------------------------------
    メッセージ（全幅背景）
  ----------------------------------*/
  & section.lawyer-message {
    margin-top: var(--space-section);
    margin-bottom: 88px;
    padding: 88px 0;
    background: #f3f8f2;

    & .wrapper {
      display: grid;
      grid-template-columns: 445px 1fr;
      align-items: center;
      gap: 0 48px;
      box-sizing: border-box;
      margin: 0 auto;
      width: 1080px;
      max-width: 100%;
    }

    & .photo img {
      display: block;
      border-radius: 16px;
      width: 100%;
      height: 600px;
      object-fit: cover;
      object-position: 50% center;
    }

    & h2 {
      margin: 0;
      color: var(--color-green-dark);
      font-size: var(--font-size-h2);
      font-weight: 700;
      line-height: var(--line-height-heading);
      text-align: left;
      letter-spacing: 0.08em;

      &::after {
        content: "";
        display: block;
        margin: 18px 0 0;
        width: 56px;
        height: 2px;
        background: var(--color-heading-line);
      }
    }

    & p {
      margin: 22px 0 0;
      line-height: var(--line-height-article);
      letter-spacing: 0.05em;
    }

    & em {
      background: linear-gradient(transparent 65%, #fde27e 65%);
      font-family: var(--font-b);
      font-style: normal;
      font-weight: bold;
    }

    & .sign {
      display: flex;
      justify-content: flex-end;
      align-items: baseline;
      gap: 0 16px;
      margin-top: 28px;
      border-top: solid 2px #e3e8e2;
      padding-top: 22px;
      font-family: var(--font-b);
      font-size: 16px;
      font-weight: bold;
      letter-spacing: 0.05em;

      & .title {
        margin-right: -10px;
      }

      & .name {
        color: var(--color-green-dark);
        font-size: 24px;
        letter-spacing: 0.1em;
      }
    }
  }
}

@media screen and (max-width: 768px) {
  main > header {
    & h1 {
      font-size: var(--font-size-h1);

      &::after {
        margin-top: 12px;
        width: 40px;
      }
    }
  }

  #contents > article {
    & > h2,
    & section.lawyer-areas h2 {
      margin: var(--space-section) auto 24px;
      font-size: var(--font-size-h2);
    }

    & .lawyer-profile h3,
    & .lawyer-stance h3,
    & section.lawyer-areas h3 {
      gap: 0 12px;
      margin: 36px 0 16px;
      padding: 0 0 8px 4px;
      font-size: var(--font-size-h3);
    }

    & .lawyer-lead {
      margin-bottom: 28px;
      text-align: left;
    }

    & .widget-inquiry2 {
      & .att {
        margin-top: 18px;
        padding: 0;
      }
    }

    & .lawyer-intro {
      grid-template-columns: 1fr;
      gap: 20px 0;
      margin: 20px 0 40px;

      & .photo {
        margin: 0 auto;
        width: 240px;

        & img {
          height: 320px;
        }
      }

      & .quote {
        padding: 14px 16px;
      }
    }

    & .lawyer-career {
      grid-template-columns: 1fr;
      gap: 12px;

      & li {
        display: grid;
        grid-template-columns: 48px 1fr;
        column-gap: 14px;
        align-items: center;
        padding: 14px 16px;
        text-align: left;
      }

      & .icon {
        grid-row: 1 / 3;
        margin: 0;
        width: 48px;
        height: 48px;
      }

      & strong {
        margin: 0;
      }
    }

    & section.lawyer-areas {
      margin-top: var(--space-section);
      padding: 48px 10px;
    }

    & .lawyer-fields {
      grid-template-columns: 1fr;
      gap: 8px;
      margin-bottom: 32px;

      & li {
        padding: 10px 14px;

        &::after {
          left: 24px;
        }
      }
    }

    & .lawyer-difficult {
      grid-template-columns: 1fr;
      gap: 10px;

      & li {
        gap: 0 12px;
        padding: 14px 16px;
      }

      & .icon {
        width: 44px;
        height: 44px;
      }
    }

    & section.lawyer-areas .lawyer-note {
      padding: 14px 16px;
      text-align: left;
    }

    & .lawyer-points {
      & .point {
        --icon-size: 40px;
        column-gap: 10px;
        margin-top: 16px;

        &:not(:last-child)::before {
          top: calc(var(--icon-size) + 6px);
          bottom: -10px;
          width: 2px;
        }
      }

      & .box {
        border-radius: 10px;
        padding: 16px 16px 18px;
      }

      & .head {
        gap: 0 10px;
      }

      & .num {
        width: 40px;
        height: 36px;
        font-size: 14px;

        & span {
          font-size: 12px;
        }
      }

      & .body {
        margin-top: 16px;

        & p + p {
          margin-top: 16px;
        }
      }
    }

    & .lawyer-words {
      grid-template-columns: 1fr;
      gap: 12px;

      & li {
        padding: 16px 16px 18px;
      }
    }

    & .lawyer-support {
      grid-template-columns: 1fr;
      gap: 16px;

      & .item {
        padding: 20px 16px 22px;
      }

      & .experts {
        gap: 0 40px;
        padding: 14px 10px 16px;

        & li:not(:last-child)::after {
          right: -31px;
          font-size: 24px;
        }

        & .icon {
          width: 48px;
          height: 48px;
        }
      }

      & .method li {
        grid-template-columns: 40px 1fr;
        column-gap: 12px;
        padding: 12px 14px 14px;

        & .icon {
          width: 40px;
          height: 40px;
        }
      }
    }

    & section.lawyer-message {
      margin-top: var(--space-section);
      margin-bottom: 40px;
      padding: 48px 10px;

      & .wrapper {
        grid-template-columns: 1fr;
        gap: 24px 0;
      }

      & .photo img {
        height: auto;
        aspect-ratio: 734 / 542;
      }

      & h2 {
        font-size: var(--font-size-h2);
      }

      & .sign {
        flex-wrap: wrap;
        gap: 0 12px;
        font-size: 12px;

        & .office {
          flex-basis: 100%;
          text-align: right;
        }

        & .name {
          font-size: 20px;
        }
      }
    }
  }
}
