@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* --------------------------------
 * base＆theme
 * -------------------------------- */
body {
  overflow-x: clip;
}
/* h2 */
.post_content h2.is-style-section_ttl::after {
  height: 2px;
}
/* h3 */
.post_content h3.wp-block-heading.has-text-align-left.is-style-default {
  border-left: solid 2px var(--color_htag);
}
/* h4 */
.post_content h4.wp-block-heading.has-text-align-left.is-style-default {
  border-left: solid 1px var(--color_htag);
}
/* Customize heading*/
.post_content :is(h2, h3, h4).is-style-line-side {
  width: fit-content;
  position: relative;
  border-left: initial;
  padding-inline: 1em;
  margin-inline: auto;
  text-align: center;
  &::before,
  &::after {
    content: '';
    display: block;
    width: calc(100% - 2em);
    height: 1px;
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    bottom: auto;
    pointer-events: none;
    background: var(--color_htag);
  }
  &::before {
    left: auto;
    right: 100%;
  }
  &::after {
    left: 100%;
    right: auto;
  }
}

/* --------------------------------
 * element
 * -------------------------------- */
.el_btn.el_btn_secondary.is-style-btn_line {
  .swell-block-button__link {
    background-color: #fff;
    border: 1px solid var(--the-btn-color, var(--color_main));
    font-weight: 700;
  }
  &:hover,
  &:focus-visible {
    .swell-block-button__link {
      background-color: var(--the-btn-color, var(--color_main));
    }
  }
}
.el_btn.el_btn_primary.is-style-btn_line {
  .swell-block-button__link {
    color: #fff;
    background-color: var(--the-btn-color, var(--color_main));
    border: 1px solid var(--the-btn-color, var(--color_main));
    font-weight: 700;
  }
  &:hover,
  &:focus-visible {
    .swell-block-button__link {
      color: var(--the-btn-color, var(--color_main)) !important;
      background-color: #fff;
    }
  }
}

/* --------------------------------
 * block
 * -------------------------------- */

/* header */
.l-header.-parallel .w-header {
  width: auto;
}
.l-header__inner.l-container {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  grid-template-areas:
    'logo cta'
    'customSPBtn menuSPBtn'
    'gnav gnav';
  .l-header__logo {
    grid-area: logo;
    margin-left: 2rem;
    padding-block: 0.5rem;
  }
  .l-header__gnav.c-gnavWrap {
    grid-area: gnav;
  }
  .w-header.pc_ {
    grid-area: cta;
    margin-right: 3rem;
  }
  .l-header__customBtn.sp_ {
    grid-area: customSPBtn;
  }
  .l-header__menuBtn.sp_ {
    grid-area: menuSPBtn;
  }
  .ly_richColumn > .swell-block-columns__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    & > * {
      width: 100%;
    }
  }
  .el_btn.el_btn_primary {
    & > * {
      padding-block: 1.25em;
      white-space: nowrap;
    }
  }
}
.-parallel .l-header__gnav .c-gnav > li > a {
  padding-block: 1.5em;
}
.c-gnavWrap .c-gnav {
  width: min(1440px, 100%);
  margin-inline: auto;
  display: flex;
  & > * {
    flex: 1;
  }
}

/* main visual */
.p-mainVisual {
  .p-mainVisual__textLayer {
    justify-content: end;
    padding-top: 2rem;
    padding-bottom: 4rem;
    left: 0;
    transform: initial;
  }
  .mv_mainCopy,
  .mv_subCopy,
  p {
    font-weight: 400;
    line-height: 1.3;
  }
  .mv_mainCopy {
    font-size: 3.5rem;
    margin-inline: initial;
    margin-bottom: initial;
    border-left: 5px solid var(--color_main);
    padding-left: 1rem;
  }
  .mv_subCopy {
    font-size: 1.5rem;
    margin-bottom: initial;
  }
  .ly_richColumn {
    width: fit-content;
    .swell-block-columns__inner {
      position: relative;
      &::after {
        content: '';
        display: block;
        height: calc(100% - 20px);
        width: 1px;
        background-color: #fff;
        opacity: 0.7;
        position: absolute;
        top: 50%;
        left: calc(50% + 1rem);
        translate: -50% -50%;
      }
    }
  }
  .el_btn.el_btn_secondary,
  .el_btn.el_btn_primary {
    width: 250px;
    & > * {
      width: 100%;
    }
  }
}

/* footer cta */
.bl_footerCta {
  .ly_richColumn {
    .swell-block-columns__inner {
      position: relative;
      padding-block: 20px;
      &::after {
        content: '';
        display: block;
        height: 100%;
        width: 1px;
        background-color: #37341a;
        opacity: 0.5;
        position: absolute;
        top: 50%;
        left: calc(50% + 1rem);
        translate: -50% -50%;
      }
    }
  }
}
/* footer nav */
.bl_footerNav {
  /* TODO:画面幅によってcolumnの切り替えを綺麗に行うよう調整する */
  & > * {
    padding-inline: 4vw !important;
  }
  .bl_linkList {
    white-space: nowrap;
  }

  .ly_footerNav_column.wp-block-columns {
    justify-content: space-between;
    flex-wrap: wrap !important;
    gap: 2rem !important;
    & > *:nth-of-type(1) {
      flex: 0 1 320px;
    }
    & > *:nth-of-type(2) {
      flex: 0 0 auto;
    }
  }
  .ly_footerNav_2ndColumn.wp-block-columns {
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: nowrap;
    & > .wp-block-column:nth-child(1) {
      flex: 0 0 150px;
    }
    & > .wp-block-column:nth-child(2) {
      flex: 0 0 350px;
    }
    & > .wp-block-column:nth-child(3) {
      flex: 0 0 180px;
    }
  }
  .ly_footerNav_3rdColumn.wp-block-columns {
    gap: 0.5rem;
    flex-wrap: nowrap;
    & > .wp-block-column:nth-child(1) {
      flex: 1;
    }
    & > .wp-block-column:nth-child(2) {
      flex: 1;
    }
  }
}
/* fixed CTA */
.widget_custom_html:has(.bl_fixedCta) {
  position: fixed;
  top: 30%;
  right: -90px;
  z-index: 1;
  opacity: 0;
  transition: all 0.4s ease-in-out;
  .el_btn .swell-block-button__link {
    aspect-ratio: 1/1;
    width: 84px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    span.swl-inline-icon {
      font-size: 24px;
      position: relative;
      &::after {
        position: absolute;
        translate: -50% -50%;
        top: 50%;
        left: 50%;
      }
    }
  }
  &.is_scrolled {
    right: 0;
    opacity: 1;
  }
}

/* footer copy */
.l-footer .copyright {
  font-size: 14px;
  font-weight: 700;
}

/* faq */
.bl_faqList {
  .faq_a {
    padding-bottom: 2em;
    border-bottom: 1px solid rgba(152, 126, 67, 0.5);
  }
}
/* --------------------------------
 * unique
 * -------------------------------- */
.tp_values {
  .wp-block-media-text {
    margin-left: calc(50% - 50vw);
    column-gap: 3%;
  }
  .wp-block-columns {
    flex-wrap: wrap !important;
    justify-content: center;
    & > * {
      min-width: 240px;
      max-width: 300px;
    }
  }
}
.tp_practiceAreas {
  .bl_dlList.is-style-float {
    row-gap: 2rem;
    dt,
    dd {
      display: flex;
      align-items: center;
      word-break: keep-all;
      overflow-wrap: anywhere;
    }
    dt {
      padding-left: 1rem;
      padding-right: 1.5rem;
      font-size: 1.25rem;
      &::after {
        background-color: rgba(152, 126, 67, 0.5);
        width: 1px;
        height: 40%;
        translate: -50% -50%;
        right: 1rem;
        top: 50%;
      }
    }
    /* 2組目以降の dt・dd */
    & > :nth-child(n + 3) {
      position: relative;
      &::before {
        content: '';
        display: block;
        width: 100%;
        height: 1px;
        background-color: rgba(152, 126, 67, 0.1);
        position: absolute;
        left: 0;
        top: -1rem;
      }
    }
  }
}

/* --------------------------------
 * helper
 * -------------------------------- */

.hp_wbr {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.hp_text_nowrap {
  white-space: nowrap;
}
.hp_fw_700 {
  font-weight: 700;
}
.hp_fitCenter {
  width: fit-content;
  margin-inline: auto;
}

@media (width <= 959px) {
  .post_content :is(h2, h3, h4).is-style-line-side {
    &::before,
    &::after {
      width: calc(50vw - (50% + 2em + 2vw));
    }
  }
  .l-header__inner.l-container {
    display: grid;
    grid-template-areas: 'logo customSPBtn menuSPBtn';
    .l-header__logo {
      margin-left: initial;
    }
  }
  .widget_custom_html:has(.bl_fixedCta) {
    display: none;
  }
  .bl_footerCta {
    .ly_richColumn {
      .swell-block-columns__inner {
        padding-block: initial;
        &::after {
          content: none;
        }
      }
    }
  }
}
@media (width <= 599px) {
  .p-mainVisual {
    .mv_mainCopy {
      font-size: 32px;
    }
    .mv_subCopy {
      font-size: 16px;
    }
    .ly_richColumn {
      width: 100%;
    }
    .el_btn.el_btn_secondary,
    .el_btn.el_btn_primary {
      width: 100%;
    }
  }
  .tp_values {
    .wp-block-columns {
      row-gap: 3rem !important;
      & > * {
        min-width: initial;
        max-width: initial;
        &:not(:first-of-type) {
          position: relative;
          &::before {
            content: '';
            display: block;
            height: 1px;
            width: 40%;
            background-color: #987e43;
            opacity: 0.5;
            position: absolute;
            top: -1rem;
            left: 50%;
            translate: -50% 0;
          }
        }
      }
    }
  }
}
