:root {
  --red: #c71918;
  --red2: #e02321;
  --dark: #303030;
  --ink: #303030;
  --muted: #777;
  --line: #d9d9d9;
  --gold: #c9a449;
  --serif: "Noto Serif JP", serif;
  --sans: "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 1100px;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: .02em;
  background: #fff;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

a,
button {
  transition:
    opacity .28s ease,
    transform .28s ease,
    background-color .28s ease,
    color .28s ease;
}

.story-card,
.voice-card,
.journal-card,
.consultant-card {
  transition: opacity .28s ease;
}

@media (hover: hover) {
  .global-nav a:hover,
  .sp-menu a:hover,
  .footer-nav a:hover {
    opacity: .7;
  }

  .header-btn:hover,
  .round-btn:hover,
  .hero-btn:hover,
  .search-submit:hover {
    opacity: .72;
    transform: translateY(-1px);
  }

  .carousel-arrow:hover {
    opacity: .7;
    transform: translateY(-1px);
  }

  .condition-tag:hover,
  .more-toggle:hover {
    opacity: .72;
  }

  .slider-dots button:hover,
  .story-card:hover,
  .voice-card:hover,
  .journal-card:hover,
  .consultant-card:hover {
    opacity: .7;
  }

  main a:not(.round-btn):not(.hero-btn):not(.fv-conversion):hover,
  .condition-tags a:hover,
  .area-row a:hover,
  .general-job-link:hover,
  .general-dropdown a:hover {
    opacity: .7;
  }

  .fv-conversion:hover {
    opacity: .72;
    transform: translate(-50%, -36px);
  }

  .header-btn-primary:hover,
  .fv-conversion:hover {
    opacity: 1;
  }

  .header-btn-primary:hover img,
  .fv-conversion:hover img {
    opacity: 0;
  }

  .page-general .has-dropdown:hover > .general-nav-link,
  .page-general .has-dropdown:focus-within > .general-nav-link {
    opacity: 1;
  }
}

a:active,
button:active {
  transform: translateY(1px);
}

.fv-conversion:active {
  transform: translate(-50%, -34px);
}

.container { width: 1080px; margin: 0 auto; }
.narrow { width: 900px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.header-inner {
  display: flex;
  align-items: center;
  width: 1280px;
  height: 86px;
  margin: 0 auto;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  width: 156px;
}

.site-logo img { display: block; width: 156px; height: auto; }
.footer-logo { width: 199px; }
.footer-logo img { width: 199px; }

.global-nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
  font-weight: 700;
  font-size: 15px;
}

.global-nav a { padding: 31px 0; }

.header-actions {
  display: flex;
  gap: 20px;
  margin-left: 52px;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 46px;
}

.header-btn img { display: block; height: 46px; width: auto; }
.header-btn-primary,
.fv-conversion {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.header-btn-primary {
  background-image: url("../images/cover/header_btn_hover.png");
}
.fv-conversion {
  background-image: url("../images/cover/fv_btn_hover.png");
}
.header-btn-primary img,
.fv-conversion img {
  transition: opacity .2s ease;
}
.header-btn-red { background: transparent; }
.header-btn-dark { background: transparent; }
.menu-button, .sp-menu { display: none; }
.page-general .header-inner .sp-menu-cta { display: none; }

.first-view {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1440 / 700;
  background: #fff url("../images/cover/fv.png") center top / min(100vw, 1440px) auto no-repeat;
}

.first-view .number {
    position: absolute;
    top: 357px;
    left: 50%;
    z-index: 9999;
    font-family: "Noto Serif JP", serif;
    font-size: 44px;
    font-weight: 600;
    line-height: 1em;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    z-index: 20;
}

body.page-general .first-view .number {
    position: absolute;
    top: 363px;
    left: 0%;
    z-index: 9999;
    font-family: "Noto Serif JP", serif;
    font-size: 44px;
    font-weight: 600;
    line-height: 1em;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    z-index: 2;
}


.first-view .number small {
    font-size: 24px;
    line-height: 1;
}

.first-view .number.v_2 {
    left: calc(50% + 154px);
}

.first-view .number.v_3 {
    left: calc(50% + 323px);
    top: 368px;
}

body.page-lawyer .first-view .number {
    left: 48.25%;
}

body.page-lawyer .first-view .number.v_2 {
    left: calc(48.25% + 154px);
}

body.page-lawyer .first-view .number.v_3 {
    left: calc(48.25% + 323px);
    top: 368px;
}

body.page-general .first-view .number {
    left: calc(48.25% - 497px);
}

body.page-general .first-view .number.v_2 {
    left: calc(48.25% - 346px);
}

body.page-general .first-view .number.v_3 {
    left: calc(48.25% - 173px);
}

/* 1460px以下はvwで可変 */
@media (max-width: 1460px) {
  
body.page-legal .first-view .number {
        top: 24.9vw;
        font-size: 3.014vw;
        gap: 0.137vw;
    }
    
body.page-lawyer .first-view .number {
            top: 25vw;
            font-size: 3.014vw;
            gap: 0.137vw;
}

body.page-general .first-view .number {
            top: 25vw;
            font-size: 3.014vw;
            gap: 0.137vw;
            left: calc(48.25% - 35vw);
}


body.page-legal .first-view .number.v_2 {
        left: calc(50% + 10.548vw);
    }

 body.page-lawyer .first-view .number.v_2
     {
       left: calc(50% + 8.7vw);
}

body.page-general .first-view  .number.v_2
     {
       left: calc(48.25% - 24.5vw);
}


body.page-legal .first-view .number.v_3
 {
        left: calc(50% + 22.123vw);
        top: 25.205vw;
    }
    
body.page-lawyer .first-view .number.v_3 {
        left: calc(50% + 20.2vw);
        top: 25.5vw;
    }

body.page-general .first-view .number.v_3 {
        left: calc(48.25% - 12.5vw);
        top: 25.5vw;
    }
    
    
body.page-legal .first-view .number small,
body.page-lawyer .first-view .number small
{
    font-size: 1.644vw; /* 24px ÷ 1460 × 100 */
 }
    
}

@media (max-width: 767px) {
body.page-legal .first-view .number,
body.page-lawyer .first-view .number,
body.page-general .first-view .number {
      position: absolute;
      left: 12vw;
      z-index: 9999;
      font-family: "Noto Serif JP", serif;
      font-size: 44px;
      line-height: 1em;
      display: flex;
      align-items: flex-end;
      gap: 2px;
  }

body.page-legal .first-view .number {
        top: 76vw;
        font-size: 8.014vw;
        gap: 0.137vw;
    }
body.page-lawyer .first-view .number {
        top: 76.7vw;
        font-size: 8.014vw;
        gap: 0.137vw;
    }
body.page-general .first-view .number {
        top: 75vw;
        font-size: 8.014vw;
        gap: 0.137vw;
    }

body.page-legal .first-view .number small,
body.page-lawyer .first-view .number small,
body.page-general .first-view .number small {
        font-size: 4.644vw;
    }

body.page-legal .first-view .number.v_2,
body.page-lawyer .first-view .number.v_2,
body.page-general .first-view .number.v_2 {
        left: 39vw;
    }

body.page-legal .first-view .number.v_3 {
        top: 77.5vw;
        left: 69vw;
    }

body.page-lawyer .first-view .number.v_3 {
    top: 78.5vw;
    left: 69vw;
}
body.page-general .first-view .number.v_3 {
    top: 77vw;
    left: 69vw;
}

}




.page-legal .first-view {
  background-image: url("../images/cover/fv_legal.png");
}

.page-general .first-view {
  background-image: url("../images/cover/fv_general.png");
}

.page-general .fv-conversion {
  position: absolute;
  left: calc(59% + 45px);
  bottom: 19%;
  display: block;
  width: min(34.93vw, 503px);
  min-width: 0;
  transform: translate(-148%, -35px);
}

@media (max-width: 767px) {
  .page-general .first-view {
    aspect-ratio: 1000 / 1207 !important;
    background-image: url("../images/cover/fv_general_sp.png") !important;
    background-position: center top !important;
    background-size: 100% 100% !important;
  }

  .page-legal .first-view {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    aspect-ratio: 1000 / 1083 !important;
    overflow: visible;
    background-image: url("../images/cover/fv_legal_sp.png") !important;
    background-position: center top !important;
    background-size: 100% 100% !important;
  }

  .page-legal .fv-conversion {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: 4vw !important;
    z-index: 8;
    display: block !important;
    width: 80vw !important;
    min-width: 0 !important;
    transform: translateX(-50%) !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .page-legal .fv-conversion img {
    display: block;
    width: 100%;
    height: auto;
  }

  .page-general .search-area {
    margin-top: -7vw;
    padding-bottom: 48px;
  }

  .page-general .general-search-card {
    width: calc(100% - 48px);
    padding: 20px 20px 30px;
  }

  .page-general .general-search-card h2 {
    margin: 0 0 24px;
    font-size: 24px;
    line-height: 1.35;
  }

  .page-general .general-search-card > h2:first-child {
    margin-top: 50px;
  }

  .page-general .general-job-block {
    margin-top: 28px;
  }

  .page-general .general-job-block h3 {
    gap: 14px;
    margin-bottom: 12px;
    font-size: 14px;
  }

  .page-general .general-job-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 8px;
  }

  .page-general .general-job-link {
    min-height: 34px;
    padding: 5px 22px 5px 10px;
    font-size: 12px;
    line-height: 1.2;
  }

  .page-general .general-job-link::after {
    right: 9px;
    border-top-width: 4px;
    border-bottom-width: 4px;
    border-left-width: 8px;
  }

  .page-general .job-icon {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
    margin-right: 7px;
  }

  .page-general .job-icon img {
    width: 22px;
    height: 22px;
  }

  .page-general .general-search-card h2.general-office-title {
    margin: 50px 0 24px;
    font-size: 24px;
  }

  .page-general .general-office-grid .general-job-link {
    font-size: 12px;
    white-space: normal;
  }
}

@media (min-width: 901px) and (max-width: 1199px) {
  .page-general .intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 40px;
  }

  .page-general .intro-title {
    grid-column: 1 / -1;
    grid-row: auto;
    text-align: center;
  }

  .page-general .reason-card h3 {
    white-space: normal;
  }

  .voice-card {
    flex: 0 0 calc((100% - 76px) / 3);
  }
}

@media (min-width: 1441px) {
  .first-view {
    height: 700px;
    aspect-ratio: auto;
  }

  .fv-conversion {
    left: calc(50% + 175px);
  }

  .page-general .fv-conversion {
    left: calc(50% + 175px);
  }

  .search-area {
    margin-top: -122px;
  }

  .page-general .search-area {
    margin-top: -104px;
  }
}

.header-actions,
.header-btn,
.header-btn img {
  flex-shrink: 0;
}

.header-btn img {
  object-fit: contain;
}

.header-btn-primary img {
  aspect-ratio: 216 / 46;
}

.header-actions .header-btn:not(.header-btn-primary) img {
  aspect-ratio: 168 / 46;
}

@media (min-width: 901px) and (max-width: 1050px) {
  .header-inner {
    width: calc(100% - 28px);
  }

  .page-general .site-logo {
    width: 124px;
  }

  .page-general .site-logo img {
    width: 124px;
  }

  .page-general .general-nav {
    gap: 16px;
    font-size: 13px;
  }

  .page-general .general-nav-link {
    gap: 5px;
  }

  .header-actions {
    gap: 8px;
    margin-left: 18px;
  }

  .header-btn,
  .header-btn img {
    height: 38px;
  }
}

.intro-title span:last-child {
  display: inline-block;
}

@media (max-width: 767px) {
  .page-general .first-view {
    aspect-ratio: 1000 / 1207 !important;
    background-image: url("../images/cover/fv_general_sp.png") !important;
    background-position: center top !important;
    background-size: 100% 100% !important;
  }

  .page-legal .first-view {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    aspect-ratio: 1000 / 1083 !important;
    background-image: url("../images/cover/fv_legal_sp.png") !important;
    background-position: center top !important;
    background-size: 100% 100% !important;
  }

  .page-general .search-area {
    margin-top: -7vw;
    padding-bottom: 48px;
  }

  .page-general .general-search-card {
    width: calc(100% - 48px);
    padding: 20px 20px 30px;
  }

  .page-general .general-search-card h2 {
    margin: 0 0 24px;
    font-size: 24px;
    line-height: 1.35;
  }

  .page-general .general-job-block {
    margin-top: 28px;
  }
  
  .page-general .general-job-block a,
  .general-job-grid.general-office-grid a{
    min-height: 50px;
}

  .page-general .general-job-block h3 {
    gap: 14px;
    margin-bottom: 12px;
    font-size: 14px;
  }

  .page-general .general-job-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 8px;
  }

  .page-general .general-job-link {
    min-height: 34px;
    padding: 5px 22px 5px 10px;
    font-size: 12px;
    line-height: 1.2;
  }

  .page-general .general-job-link::after {
    right: 9px;
    border-top-width: 4px;
    border-bottom-width: 4px;
    border-left-width: 8px;
  }

  .page-general .job-icon {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
    margin-right: 7px;
  }

  .page-general .job-icon img {
    width: 22px;
    height: 22px;
  }

  .page-general .general-office-title {
    margin: 42px 0 24px;
    font-size: 24px;
  }

  .page-general .general-office-grid .general-job-link {
    font-size: 12px;
    white-space: normal;
  }
}

@media (max-width: 900px) {
  .page-general .general-sp-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    width: 100%;
    min-height: 100dvh;
    padding: 10px 20px 42px;
    overflow-y: auto;
    border: 0;
    background: #fff;
  }

  .page-general .general-sp-menu.is-open {
    display: block;
  }

  .page-general .general-sp-menu-head {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .page-general .general-sp-menu-head .site-logo {
    width: 112px;
    margin-right: auto;
  }

  .page-general .general-sp-menu-head .site-logo img {
    width: 112px;
  }

  .page-general .general-sp-menu-head .header-btn {
    width: 164px;
    height: auto;
  }

  .page-general .general-sp-menu-head .header-btn img {
    width: 164px;
    height: auto;
  }

  .page-general .sp-menu-close {
    position: relative;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .page-general .sp-menu-close::before,
  .page-general .sp-menu-close::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 13px;
    width: 21px;
    height: 1px;
    background: #333;
  }

  .page-general .sp-menu-close::before {
    transform: rotate(45deg);
  }

  .page-general .sp-menu-close::after {
    transform: rotate(-45deg);
  }


  .page-general .general-sp-menu-body details,
  .page-general .general-sp-menu-body > a {
    display: block;
    border-bottom: 1px solid #ddd;
  }

  .page-general .general-sp-menu-body summary {
    position: relative;
    padding: 18px 34px 12px 0;
    list-style: none;
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.3;
    cursor: pointer;
  }

  .page-general .general-sp-menu-body summary::-webkit-details-marker {
    display: none;
  }

  .page-general .general-sp-menu-body summary::before,
  .page-general .general-sp-menu-body summary::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 20px;
    height: 1px;
    background: #333;
  }

  .page-general .general-sp-menu-body summary::after {
    transform: rotate(90deg);
  }

  .page-general .general-sp-menu-body details[open] summary::after {
    display: none;
  }

  .page-general .general-sp-menu-body details a,
  .page-general .general-sp-menu-body > a {
    display: block;
    padding: 9px 0 8px;
    border-top: 1px solid #ddd;
    color: #333;
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.35;
  }

  .page-general .general-sp-menu-body > a {
    padding: 20px 0 13px;
    border-top: 0;
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .page-general .first-view {
    aspect-ratio: 1000 / 1207 !important;
    background-image: url("../images/cover/fv_general_sp.png") !important;
    background-position: center top !important;
    background-size: 100% 100% !important;
  }

  .page-legal .first-view {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    aspect-ratio: 1000 / 1083 !important;
    background-image: url("../images/cover/fv_legal_sp.png") !important;
    background-position: center top !important;
    background-size: 100% 100% !important;
  }

  .page-general .search-area {
    margin-top: -7vw;
    padding-bottom: 48px;
  }

  .page-general .general-search-card {
    width: calc(100% - 48px);
    padding: 20px 20px 30px;
  }

  .page-general .general-search-card h2 {
    margin: 0 0 24px;
    font-size: 24px;
    line-height: 1.35;
  }

  .page-general .general-job-block {
    margin-top: 28px;
  }

  .page-general .general-job-block h3 {
    gap: 14px;
    margin-bottom: 12px;
    font-size: 14px;
  }

  .page-general .general-job-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 8px;
  }

  .page-general .general-job-link {
    min-height: 34px;
    padding: 5px 22px 5px 10px;
    font-size: 12px;
    line-height: 1.2;
  }

  .page-general .general-job-link::after {
    right: 9px;
    border-top-width: 4px;
    border-bottom-width: 4px;
    border-left-width: 8px;
  }

  .page-general .job-icon {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
    margin-right: 7px;
  }

  .page-general .job-icon img {
    width: 22px;
    height: 22px;
  }

  .page-general .general-office-title {
    margin: 42px 0 24px;
    font-size: 24px;
  }

  .page-general .general-office-grid .general-job-link {
    font-size: 12px;
    white-space: normal;
  }
}

.page-general .general-nav {
  align-self: stretch;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
}

.page-general .general-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.page-general .general-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 31px 0;
  white-space: nowrap;
}

.page-general .has-dropdown > .general-nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 33px;
  height: 3px;
  background: #b41417;
  opacity: 0;
  transform: scaleX(.7);
  transform-origin: center;
  transition: opacity .2s ease, transform .2s ease;
}

.page-general .has-dropdown > .general-nav-link::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.page-general .has-dropdown:hover > .general-nav-link::before,
.page-general .has-dropdown:focus-within > .general-nav-link::before {
  opacity: 1;
  transform: scaleX(1);
}

.page-general .has-dropdown:hover > .general-nav-link::after,
.page-general .has-dropdown:focus-within > .general-nav-link::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.page-general .general-dropdown {
  position: absolute;
  top: 70%;
  left: 50%;
  z-index: 40;
  display: grid;
  min-width: 148px;
  padding: 8px 16px 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.page-general .general-dropdown a {
  padding: 7px 0 6px;
  border-bottom: 1px solid #a7a7a7;
  color: #222;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}

.page-general .general-dropdown a:last-child {
  border-bottom: 0;
}

.page-general .has-dropdown:hover .general-dropdown,
.page-general .has-dropdown:focus-within .general-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.page-general .search-area {
  min-height: 0;
  margin-top: -7.2vw;
  padding: 0 0 86px;
}

.page-general .general-search-card {
  width: min(100% - 48px, 1140px);
  margin: 0 auto;
  padding: 1px 100px 51px;
  color: #fff;
  background: var(--dark);
  border-radius: 7px;
}

.page-general .general-search-card h2 {
  margin: 50px 0 48px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.page-general .general-job-block {
  margin-top: 38px;
}

.page-general .general-job-block:first-of-type {
  margin-top: 0;
}

.page-general .general-job-block h3 {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.page-general .general-job-block h3::before,
.page-general .general-job-block h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .85);
}

.page-general .general-job-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 6px;
}

.page-general .general-job-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 55px;
  padding: 10px 42px 10px 20px;
  color: #333;
  background: #fff;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.35;
}

.page-general .general-job-link::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 11px solid #b41417;
  transform: translateY(-50%);
}

.page-general .job-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin-right: 12px;
}

.page-general .job-icon img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.page-general .general-office-title {
  margin-top: 92px;
  margin-bottom: 28px;
}

.page-general .general-office-grid {
  gap: 20px 6px;
}

.page-general .general-office-grid .general-job-link {
  font-size: 14px;
  white-space: nowrap;
}

.fv-conversion {
  position: absolute;
  left: calc(59% + 45px);
  bottom: 19%;
  display: block;
  width: min(34.93vw, 503px);
  min-width: 0;
  transform: translate(-50%, -35px);
}

.fv-conversion img {
  display: block;
  width: 100%;
  height: auto;
}

.round-btn,
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 455px;
  height: 84px;
  background: transparent;
}

.round-btn img { display: block; width: 455px; height: auto; }
.round-btn picture { display: block; line-height: 0; }

.search-area {
  position: relative;
  z-index: 4;
  min-height: 405px;
  margin-top: -8.5vw;
  padding-bottom: 80px;
}

.search-card {
  width: min(100% - 48px, 1140px);
  min-height: 380px;
  margin: 0 auto;
  padding: 1px 100px 51px;
  color: #fff;
  background: var(--dark);
  border-radius: 7px;
}

.search-card h2 {
  margin: 50px 0 36px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  text-align: center;
}

.page-lawyer .search-card h2,
.page-legal .search-card h2 {
  margin-top: 50px;
}

.search-row select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background: #fff url(../images/cover/select-arrow.svg) no-repeat right 16px center / 12px 8px;
}

.search-row {
  display: grid;
  grid-template-columns: 210px 210px 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.page-legal .search-row {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.page-legal .search-row.search-row--no-secondary {
  grid-template-columns: repeat(2, 1fr);
}

.page-legal .search-row input {
  grid-column: 1 / -1;
}

.search-row select,
.search-row input {
  width: 100%;
  height: 40px;
  padding: 0 20px;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  color: #333;
  font-size: 14px;
}

.condition-title {
  margin: 0 0 14px;
  font-family: var(--serif);
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}

.tag-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  padding: 18px 40px 20px;
  margin-bottom: 46px;
  background: #fff;
  color: #333;
  border-radius: 3px;
}

.condition-tag {
  min-width: 96px;
  height: 26px;
  padding: 0 14px;
  border: 1px solid #8c8c8c;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.condition-tag.is-active {
  color: #fff;
  border-color: #8c8c8c;
  background: #8c8c8c;
}

.tag-box:not(.is-open) .is-more { display: none; }

.more-toggle {
  flex-basis: 100%;
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: #333;
  cursor: pointer;
}

.more-toggle::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 2px auto 0;
  border-right: 1px solid #333;
  border-bottom: 1px solid #333;
  transform: rotate(45deg);
}

.tag-box.is-open .more-toggle::after {
  margin-top: 7px;
  transform: rotate(225deg);
}

.search-submit {
  position: relative;
  display: block;
  width: 335px;
  height: 47px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}

.search-submit img { display: block; width: 335px; height: auto; }

.intro-section {
  min-height: 705px;
  padding: 86px 0 112px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px 56px;
}

.intro-title {
  grid-row: 1 / span 2;
  padding-top: 12px;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.65;
  letter-spacing: .08em;
}

.intro-title span {
  display: block;
}

.intro-title span:last-child {
  display: inline-block;
  background: linear-gradient(transparent 72%, #eee 72%);
}

.sp-office-break {
  display: none;
}

.reason-card {
  position: relative;
  min-height: 230px;
  padding-left: 20px;
}

.reason-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  margin-left: -20px;
  padding-left: 16px;
  border-left: solid 4px #b41417;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: .02em;
  white-space: nowrap;
}

.reason-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 16px;
  line-height: 2.05;
}

.reason-card span {
  position: absolute;
  right: -12px;
  bottom: -28px;
  color: rgba(221, 67, 67, .08);
  font-family: Georgia, serif;
  font-size: 148px;
  line-height: 1;
}

.cta-band {
  min-height: 248px;
  padding: 64px 20px 58px;
  color: #fff;
  text-align: center;
  background: var(--dark);
}

.cta-band p {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.55;
  letter-spacing: .06em;
}

.cta-band p img {
  display: block;
  width: min(789px, 100%);
  height: auto;
  margin: 0 auto;
}

.cta-band strong {
  color: #d0ae61;
  font-weight: 600;
  font-size: 40px;
  letter-spacing: .04em;
}

.data-section {
  min-height: 570px;
  padding: 78px 0 76px;
}

.section-title {
  display: table;
  margin: 0 auto 50px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.3;
  background: linear-gradient(transparent 68%, #eee 68%);
}

.section-lead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: -34px 0 54px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}

.section-lead::before,
.section-lead::after {
  content: "";
  width: 48px;
  height: 1px;
  background: #aaa;
}

.data-panel {
  width: 900px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  padding: 38px 0 36px;
  border-top: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
}

.data-item {
  margin: 0;
  text-align: center;
}

.data-item + .data-item {
  border-left: 0;
}

.data-item dt {
  margin: 0 0 24px;
  color: #333;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
}

.data-item dd {
  margin: 0;
  color: #a91318;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.data-item dd span {
  font-size: 64px;
  letter-spacing: .02em;
}

.data-item dd small {
  margin-left: 5px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
}

.note {
  width: 900px;
  margin: 31px auto 0;
  color: #555;
  font-size: 12px;
  line-height: 1.8;
}

.note span,
.note small {
  display: block;
}

.note span {
  font-size: 16px;
}

.note small {
  font-size: 14px;
}

.note small:first-of-type {
  margin-top: 10px;
}



.case-section {
  padding: 92px 0 0 ;
}

.case-heading {
  margin: 0 0 22px;
  padding-left: 16px;
  border-left: 4px solid #b41417;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.case-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 32px;
  margin-bottom: 48px;
}

.case-card { min-width: 0; }
.case-age { margin: 0 0 5px; text-align: center; font-family: var(--serif); font-size: 18px; }

.case-card > div {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 118px;
  overflow: hidden;
  border-radius: 4px;
  background: #fafafa;
}

.case-card > div > span {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 12px 8px;
  clip-path: polygon(0 0, 86% 0, 100% 50%, 86% 100%, 0 100%);
  color: #fff;
  background: #989898;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.12;
  text-align: center;
}

.case-card > div > span em {
  margin-top: 2px;
}

.case-card b {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 11px 6px 10px 4px;
  color: #b41417;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.22;
  text-align: center;
  font-weight: 600;
}

.case-card b > span {
  display: block;
  font-size: 18px;
}

.case-card .case-income-value {
  display: flex;
  align-items: baseline;
  gap: 0.2em;
}

.case-card .case-income-label,
.case-card .case-income-unit {
  font-size: inherit;
}

.case-card em {
  display: block;
  margin-top: 1px;
  font-style: normal;
  font-size: 20px;
  font-weight: 600;
}

.case-card > div > span em {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.case-card strong {
  font-size: 30px;
  font-weight: 600;
}

.case-card > div > span strong {
  font-size: 20px;
  font-weight: 600;
}

.story-section {
  min-height: 690px;
  padding: 86px 0 120px;
}

.carousel { position: relative; }
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 38px;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.story-card {
  flex: 0 0 calc((100% - 76px) / 3);
  min-width: 0;
}

.article-thumb {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 205px;
  padding: 22px;
  overflow: hidden;
  color: #08294b;
  background:
    linear-gradient(135deg, #0b315a 0 4%, transparent 4% 92%, #0b315a 92%),
    linear-gradient(135deg, transparent 0 7%, #d4a02f 7% 9%, transparent 9% 88%, #d4a02f 88% 90%, transparent 90%),
    #fff;
  border: 1px solid #eee;
  font-family: var(--serif);
  font-size: 20px;
  text-align: center;
  line-height: 1.5;
}

.article-thumb strong {
  display: block;
  margin-top: 8px;
  font-size: 38px;
  line-height: 1.2;
}

.article-thumb small {
  display: block;
  margin-top: 10px;
  font-size: 17px;
}

.story-card p {
  min-height: 0;
  margin: 16px 0 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
  font-size: 15px;
  line-height: 1.7;
}

.journal-section .container {
  width: min(100%, 1440px);
  overflow: hidden;
}

.journal-carousel .carousel-viewport {
  overflow: hidden;
}

.journal-carousel .carousel-track {
  gap: 38px;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}

.journal-card p {
  min-height: 0;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid #333;
  font-size: 16px;
  line-height: 1.65;
}

.story-card img {
  display: block;
  width: 100%;
  aspect-ratio: 315 / 210;
  object-fit: cover;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  margin-top: 32px;
}

.carousel-arrow {
  display: grid;
  place-items: center;
  width: 50px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #333;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.slider-dots,
.simple-dots {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.slider-dots button,
.simple-dots span {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c7c7c7;
}

.slider-dots button.is-active { background: #333; }

.voice-section {
  min-height: 780px;
  padding: 94px 0 110px;
  overflow: hidden;
}

.wide-slider { 
    width: min(100%, 1440px);
    overflow: hidden;
 }
.voice-carousel .carousel-viewport { overflow: hidden; }

.voice-card {
  flex: 0 0 calc((100% - 152px) / 4);
  min-height: 250px;
  padding: 24px 14px 22px;
  border-top: 1px solid #aaa;
  background: #fff;
}

.voice-card h3 {
  position: relative;
  margin: 0 0 22px;
  padding-left: 58px;
  padding-bottom: 22px;
  border-bottom: 1px solid #aaa;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: .01em;
}

.voice-card h3::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 40px;
  height: 40px;
  background: url("../images/cover/icon_1.png") center / contain no-repeat;
}

.voice-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
}

.voice-card strong {
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  background: linear-gradient(transparent 58%, rgba(199, 25, 24, .28) 58%);
}

@media (min-width: 901px) {
  .voice-card { min-width: 370px; }
  .voice-card h3 { font-size: 20px; }
  .voice-card p { font-size: 16px; }
  .voice-card strong { font-size: 24px; }
  .journal-card { min-width: 330px; }
  .consultant-card { min-width: 292px; }
}

.journal-section {
  min-height: 640px;
  padding: 86px 0 100px;
}

.journal-card {
  flex: 0 0 calc((100% - 152px) / 4);
}

.journal-card img {
  width: 100%;
  aspect-ratio: 330 / 200;
  object-fit: cover;
}

.consultant-section {
  min-height: 760px;
  padding: 88px 0 104px;
}

.consultant-section .container{
  width: auto!important;
  max-width: 1440px;
  margin: 0 auto;
}

.consultant-list { gap: 34px; }

.consultant-carousel .carousel-track {
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}

.carousel.consultant-carousel{
  max-width: 1440px;
  overflow: hidden;
}

.consultant-card {
  flex: 0 0 calc((100% - 102px) / 4);
  min-width: 0;
}

.consultant-card img {
  display: block;
  width: 290px;
  height: 340px;
  margin: 0 auto;
  object-fit: cover;
  object-position: center top;
  background: #dfe4e8;
}

.consultant-name {
  margin-top: 12px;
  padding: 8px 0 9px;
  border-top: 1px solid #999;
  border-bottom: 1px solid #999;
  text-align: center;
}

.consultant-name small {
  display: block;
  margin-bottom: 1px;
  font-size: 10px;
  line-height: 1.2;
}

.consultant-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.consultant-card h3 span {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 400;
}

.consultant-card p {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.95;
}

@media (min-width: 901px) {
  .consultant-name small { font-size: 12px; }
  .consultant-card h3 { font-size: 20px; }
  .consultant-card h3 span { font-size: 16px; }
  .consultant-card p { font-size: 16px; }
}

.consultant-carousel .carousel-controls { margin-top: 34px; }

.faq-section {
  padding: 88px 0 116px;
}

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  position: relative;
  padding: 19px 54px 19px 48px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 23px;
  height: 28px;
  transform: translateY(-50%);
  background: url("../images/cover/q.png") center / contain no-repeat;
}

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 17px;
  height: 17px;
  margin-top: -8px;
  color: #777;
  background:
    linear-gradient(#555, #555) center / 17px 1px no-repeat,
    linear-gradient(#555, #555) center / 1px 17px no-repeat;
  font-size: 0;
}

.faq-list details[open] summary::after {
  background: linear-gradient(#555, #555) center / 17px 1px no-repeat;
}
.faq-list p {
  max-height: 0;
  margin: 0;
  padding-left: 48px;
  overflow: hidden;
  opacity: 0;
  color: #666;
  font-size: 16px;
  transition: max-height .35s ease, opacity .25s ease, margin .35s ease;
}

.faq-list details[open] p {
  margin: -3px 0 18px;
  opacity: 1;
}

.bottom-search {
  padding: 118px 0 150px;
}

.bottom-title {
  display: inline-block;
  margin: 0 0 36px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.3;
  background: linear-gradient(transparent 68%, #eee 68%);
}

.condition-block {
  position: relative;
  margin-top: 56px;
  padding: 17px 14px 15px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
}

.condition-block h3 {
  position: absolute;
  left: 0;
  top: -40px;
  display: inline-block;
  width: fit-content;
  margin: 0;
  padding-left: 14px;
  border-left: 4px solid var(--red);
  font-size: 20px;
  line-height: 1.5;
  background: #fff;
}

.condition-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 19px;
  font-size: 14px;
  line-height: 1.65;
}

.condition-tags a { text-decoration: underline; text-underline-offset: 3px; }

.area-list {
  display: grid;
  gap: 9px;
  font-size: 14px;
  line-height: 1.65;
}

.area-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: center;
}

.area-row b {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 3px;
  color: #fff;
  text-align: center;
  background: #999;
  font-weight: 400;
}

.area-row p {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin: 0;
}

.area-row a { text-decoration: underline; text-underline-offset: 3px; }

.site-footer {
  color: #fff;
  background: var(--dark);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 80px, 1360px);
  min-height: 143px;
  padding: 60px 0;
  margin: 0 auto;
}

.footer-logo-wrap {
  display: block;
}

.copyright {
  display: block;
  margin-top: 12px;
  color: #ddd;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .04em;
}

.footer-nav {
  display: block;
  max-width: 780px;
  color: #ddd;
  font-size: 12px;
  line-height: 1.6;
}

.footer-nav-main {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: end;
  gap: 12px 30px;
  font-size: 16px;
}

.footer-nav-sub {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  margin-top: 14px;
  font-size: 14px;
}

@media (max-width: 1199px) {
  body { min-width: 0; }

  .container,
  .narrow,
  .wide-slider,
  .header-inner,
  .footer-inner {
    width: min(100% - 48px, 1040px);
  }

  .header-inner { height: 72px; }
  .site-logo { width: 156px; }
  .global-nav { gap: 22px; font-size: 14px; }
  .header-actions { gap: 10px; margin-left: 26px; }
  .header-btn { height: 42px; }
  .header-btn img { height: 42px; }

  .first-view { height: auto; min-height: 0; padding-bottom: 0; }
  .fv-conversion { width: 35vw; bottom: 18%; }
  .round-btn, .hero-btn { width: min(100%, 455px); height: auto; }
  .round-btn img { width: min(455px, 100%); }

  .search-card {
    width: min(100% - 48px, 1040px);
    padding-right: 60px;
    padding-left: 60px;
  }
  .search-row {
    grid-template-columns: 180px 180px 1fr;
    gap: 22px;
  }
  .page-legal .search-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .page-legal .search-row.search-row--no-secondary {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-legal .search-row input {
    grid-column: 1 / -1;
  }
  .data-panel,
  .note { width: 100%; }

  .intro-grid {
    grid-template-columns: 230px 1fr 1fr;
    gap: 48px 44px;
  }
  .reason-card h3 { font-size: 18px; }
  .reason-card p { font-size: 13px; }

  .case-list { grid-template-columns: repeat(2, 1fr); }
  .story-card { flex-basis: calc((100% - 38px) / 2); }
  .journal-card,
  .consultant-card { flex-basis: calc((100% - 68px) / 3); }
}

@media (max-width: 900px) {
  .container,
  .narrow,
  .wide-slider,
  .header-inner,
  .footer-inner {
    width: min(100% - 40px, 760px);
  }

  .global-nav,
  .header-actions { display: none; }
  .menu-button {
    display: grid;
    gap: 5px;
    width: 40px;
    margin-left: auto;
    padding: 8px;
    border: 0;
    background: transparent;
  }
  .menu-button span { display: block; height: 2px; background: #333; }
  .sp-menu { display: none; padding: 12px 24px 18px; background: #fff; }
  .sp-menu.is-open {
    display: grid;
    align-content: start;
    min-height: 100vh;
  }
  .sp-menu a {
      padding: 12px 0;
      border-bottom: 1px solid #EBEBEB;
      font-family: var(--serif);
  }

  .sp-menu .sp-menu-cta {
    display: none;
    width: 164px;
    margin: 0;
    padding: 0;
    border-bottom: 0;
    font-family: inherit;
    line-height: 1;
  }

  .sp-menu.is-open .sp-menu-cta {
    display: block;
    position: fixed;
    top: 14px;
    right: 63px;
    z-index: 10002;
  }

  .sp-menu .sp-menu-cta img {
    display: block;
    width: 100%;
    height: auto;
  }

  .first-view { min-height: 0; padding: 0; }
  .fv-conversion { width: 42vw; bottom: 14%; }

  .search-row { grid-template-columns: 1fr 1fr; }
  .page-legal .search-row { grid-template-columns: 1fr 1fr; }
  .search-row input { grid-column: 1 / -1; }
  .intro-grid { grid-template-columns: 1fr 1fr; }
  .intro-title { grid-column: 1 / -1; grid-row: auto; text-align: center; }
  .voice-carousel .carousel-viewport { overflow: hidden; }
  .voice-card,
  .story-card,
  .journal-card,
  .consultant-card { flex-basis: calc((100% - 20px) / 2); }
  .carousel-track,
  .consultant-list { gap: 20px; }
  .area-row { grid-template-columns: 132px 1fr; gap: 14px; }
  .footer-inner { min-height: 0; padding: 40px 0; }
  .footer-nav { margin-top: 24px; padding-left: 25px; }
  .footer-nav-main { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, auto); grid-auto-flow: column; justify-content: start; font-size: 16px; row-gap: 24px; column-gap: 20px; }
  .footer-nav-sub { justify-content: flex-start; font-size: 14px; }
}

@media (max-width: 767px) {
  body { font-size: 14px; }
  .container, .narrow, .wide-slider, .header-inner, .footer-inner { width: min(100% - 32px, 560px); }
  .header-inner { height: 62px; }
  .site-logo { width: 132px; }
  .site-logo img { width: 132px; }
  .first-view { height: auto; min-height: 0; padding: 0; }
  .fv-conversion { width: 48vw; bottom: 11%; }
  .round-btn, .hero-btn { width: 100%; height: auto; }
  .round-btn img { width: min(455px, 100%); }
  .search-area { min-height: 0; padding: 0 0 48px; }
  .search-card { width: min(100% - 32px, 520px); min-height: 0; padding: 28px 18px 32px; }
  .search-card h2 { margin-bottom: 22px; font-size: 24px; }
  .search-row, .intro-grid, .case-list, .consultant-list { grid-template-columns: 1fr; }
  .page-legal .search-row { grid-template-columns: 1fr; }
  .search-row { gap: 12px; margin-bottom: 22px; }
  .page-lawyer .search-area {
    position: relative;
    z-index: 4;
    min-height: 0;
    margin-top: -17vw;
    padding-bottom: 54px;
  }
  .page-lawyer .first-view {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    aspect-ratio: 520 / 627;
    background-image: url("../images/cover/fv_lawyer_sp.png");
    background-position: center top;
    background-size: 100% 100%;
  }
  .page-general .first-view {
    aspect-ratio: 1440 / 700;
    background-image: url("../images/cover/fv_general.png");
    background-size: cover;
  }
  .page-general .search-area {
    margin-top: -9vw;
    padding-bottom: 58px;
  }
  .page-general .general-search-card {
    width: calc(100% - 32px);
    padding: 38px 18px 34px;
    border-radius: 4px;
  }
  .page-general .general-search-card h2 {
    margin-bottom: 30px;
    font-size: 26px;
  }
  .page-general .general-job-block {
    margin-top: 34px;
  }
  .page-general .general-job-block h3 {
    gap: 14px;
    margin-bottom: 16px;
    font-size: 16px;
  }
  .page-general .general-job-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .page-general .general-job-link {
    min-height: 54px;
    padding-left: 18px;
    font-size: 15px;
  }
  .page-general .general-office-title {
    margin-top: 50px;
    margin-bottom: 22px;
  }
  .page-lawyer .fv-conversion {
    display: none;
  }
  .page-lawyer .search-card {
    width: calc(100% - 32px);
    padding: 30px 18px 34px;
    border-radius: 4px;
  }
  .page-lawyer .search-card h2 {
    margin-bottom: 24px;
    font-size: 24px;
    line-height: 1.5;
  }
  .page-lawyer .search-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 22px;
  }
  .page-lawyer .tag-box {
    padding: 18px 12px 20px;
  }
  .tag-box { padding: 14px 10px 16px; }
  .condition-tag { min-width: auto; height: 30px; font-size: 12px; }
  .search-submit { width: min(335px, 100%); height: auto; }
  .search-submit img { width: 100%; }
  .intro-section, .data-section, .case-section, .story-section, .voice-section, .journal-section, .consultant-section, .faq-section, .bottom-search {
    min-height: 0;
    padding: 58px 0;
  }
  .intro-title { grid-row: auto; text-align: center; }
  .intro-title span { display: block; }
  .reason-card { min-height: 0; }
  .reason-card h3 { font-size: 19px; }
  .reason-card h3 { white-space: normal; }
  .reason-card p { margin-left: -20px; font-size: 14px; line-height: 1.9; }
  .reason-card span { font-size: 96px; }
  .cta-band { min-height: 0; padding: 50px 16px; }
  .cta-band p { font-size: 20px; line-height: 1.7; }
  .cta-band p picture { display: block; line-height: 0; }
  .cta-band p img { width: min(357px, 100%); }
  .cta-band .round-btn { width: min(386px, 100%); }
  .cta-band .round-btn img { width: 100%; }
  .section-title { margin-bottom: 34px; font-size: 25px; }
  .section-lead { margin: -18px 0 34px; gap: 12px; font-size: 13px; }
  .section-lead::before,
  .section-lead::after { width: 28px; }
  .carousel-track { gap: 18px; }
  .story-card, .journal-card, .voice-card, .consultant-card { flex-basis: 100%; }
  .article-thumb { min-height: 180px; }
  .article-thumb strong { font-size: 30px; }
  .carousel-controls { gap: 22px; }
  .data-panel { grid-template-columns: 1fr; }
  .data-panel dl + dl { border-left: 0; border-top: 1px solid var(--line); }
  .note { width: auto; }
  .note span { font-size: 14px; }
  .note small { font-size: 12px; }
  .case-list { gap: 28px; }
  .case-card > div { min-height: 108px; }
  .voice-carousel .carousel-viewport { overflow: hidden; }
  .voice-card { min-height: 0; }
  .consultant-list { gap: 34px; }
  .faq-list summary { padding-right: 50px; line-height: 1.7; }
  .bottom-title { font-size: 19px; line-height: 1.7; }
  .condition-block { padding: 18px 16px 20px; }
  .area-list { gap: 14px; font-size: 14px; }
  .area-row { grid-template-columns: 1fr; gap: 8px; }
  .area-row b { width: 100%; font-size: 14px; }
  .area-row p { gap: 6px 14px; }
  .footer-inner { display: block; padding: 34px 0; }
  .footer-nav { display: grid; gap: 10px; margin-top: 24px; }
  .footer-nav-main { grid-template-columns: 1fr; gap: 10px; }
  .footer-nav-sub { display: grid; justify-content: start; gap: 10px; margin-top: 10px; }
}

/* Mobile tuning for the lawyer page */
.carousel a,
.carousel article,
.carousel button {
  transition: opacity 0.25s ease;
}

.carousel a:hover,
.carousel article:not(.case-card):hover,
.carousel button:hover {
  opacity: 0.7;
}

.case-slider {
  margin-bottom: 48px;
}

.case-slider .case-list {
  margin-bottom: 0;
}

.case-mobile-controls {
  display: none;
}

@media (min-width: 1200px) {
  .page-lawyer .case-slider .case-mobile-viewport,
  .page-legal .case-slider .case-mobile-viewport {
    overflow: visible;
  }

  .page-lawyer .case-slider .case-list,
  .page-legal .case-slider .case-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 44px 32px;
    transition: none;
    transform: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .page-lawyer .case-slider .case-mobile-viewport,
  .page-legal .case-slider .case-mobile-viewport {
    overflow: visible;
  }

  .page-lawyer .case-slider .case-list,
  .page-legal .case-slider .case-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 44px 32px;
    transition: none;
    transform: none !important;
  }
}

@media (max-width: 1439px) {
  .case-age { font-size: 1.25vw; }
  .case-card > div > span { font-size: 0.97vw; }
  .case-card > div > span em { font-size: 1.11vw; }
  .case-card > div > span strong { font-size: 1.39vw; }
  .case-card b { font-size: 1.32vw; }
  .case-card b > span { font-size: 1.25vw; }
  .case-card em { font-size: 1.39vw; }
  .case-card strong { font-size: 2.08vw; }
}

@media (max-width: 767px) {
  .page-lawyer .case-slider .case-mobile-viewport,
  .page-legal .case-slider .case-mobile-viewport {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    padding: 0;
  }

  .page-lawyer .case-slider .case-list,
  .page-legal .case-slider .case-list {
    display: flex;
    gap: 36px;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
  }

  .page-lawyer .case-slider .case-card,
  .page-legal .case-slider .case-card {
    flex: 0 0 calc(100vw - 172px);
    max-width: calc(100vw - 172px);
  }

  .case-age { font-size: 3.6vw; }

  .case-card > div {
    grid-template-columns: 1fr 1.12fr;
  }

  .case-card > div > span {
    padding: 10px 6px;
    font-size: 2.8vw;
  }

  .case-card > div > span em {
    font-size: 3.2vw;
  }

  .case-card > div > span strong {
    font-size: 4vw;
  }

  .case-card b {
    padding: 10px 4px 9px 2px;
    font-size: 3.8vw;
  }

  .case-card b > span {
    font-size: 3.6vw;
  }

  .case-card em {
    font-size: 4vw;
  }

  .case-card strong {
    font-size: 6vw;
  }

  .page-lawyer .case-slider .case-mobile-controls,
  .page-legal .case-slider .case-mobile-controls {
    display: flex;
  }

  .page-lawyer .story-section .carousel-viewport,
  .page-lawyer #voice .carousel-viewport,
  .page-lawyer #journal .carousel-viewport,
  .page-lawyer #consultant .carousel-viewport,
  .page-legal .story-section .carousel-viewport,
  .page-legal #voice .carousel-viewport,
  .page-legal #journal .carousel-viewport,
  .page-legal #consultant .carousel-viewport {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    padding: 0;
  }

  .page-lawyer .story-section .carousel-track,
  .page-lawyer #voice .carousel-track,
  .page-lawyer #journal .carousel-track,
  .page-lawyer #consultant .carousel-track,
  .page-legal .story-section .carousel-track,
  .page-legal #voice .carousel-track,
  .page-legal #journal .carousel-track,
  .page-legal #consultant .carousel-track {
    gap: 36px;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
  }

  .page-lawyer .story-section .story-card,
  .page-lawyer #voice .voice-card,
  .page-lawyer #journal .journal-card,
  .page-lawyer #consultant .consultant-card,
  .page-legal .story-section .story-card,
  .page-legal #voice .voice-card,
  .page-legal #journal .journal-card,
  .page-legal #consultant .consultant-card {
    flex: 0 0 calc(100vw - 172px);
    max-width: calc(100vw - 172px);
  }

  .page-lawyer .story-section .story-card img,
  .page-lawyer #journal .journal-card img,
  .page-lawyer #consultant .consultant-card img,
  .page-legal .story-section .story-card img,
  .page-legal #journal .journal-card img,
  .page-legal #consultant .consultant-card img {
    width: 100%;
  }

  .page-lawyer #consultant .consultant-card img,
  .page-legal #consultant .consultant-card img {
    aspect-ratio: 1 / 1.16;
    height: auto;
    object-fit: cover;
  }

  .page-lawyer .condition-area .area-list,
  .page-legal .condition-area .area-list {
    display: grid;
    gap: 12px;
    background: #fff;
  }

  .page-lawyer .condition-area .area-row,
  .page-legal .condition-area .area-row {
    display: block;
  }

  .page-lawyer .condition-area .area-row b,
  .page-legal .condition-area .area-row b {
    display: inline-block;
    width: auto;
    min-width: 96px;
    margin: 0 auto 8px;
    padding: 4px 10px;
    border-radius: 3px;
    background: #9d9d9d;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
  }

  .page-lawyer .condition-area .area-row p,
  .page-legal .condition-area .area-row p {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin: 0;
  }

  .page-lawyer .condition-area .area-row a,
  .page-legal .condition-area .area-row a {
    font-size: 12px;
    line-height: 1.6;
  }

  .page-lawyer .footer-inner,
  .page-legal .footer-inner {
    width: min(100% - 50px, 500px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 42px 0 34px;
  }

  .page-lawyer .footer-nav,
  .page-legal .footer-nav {
    order: 1;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .page-lawyer .footer-nav-main,
  .page-legal .footer-nav-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    justify-content: start;
    column-gap: 20px;
    row-gap: 24px;
    font-size: 16px;
  }

  .page-lawyer .footer-nav-sub,
  .page-legal .footer-nav-sub {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: start;
    gap: 14px;
    margin-top: 28px;
    font-size: 14px;
  }

  .page-lawyer .footer-nav a,
  .page-legal .footer-nav a {
    line-height: 1.5;
    white-space: nowrap;
  }

  .page-lawyer .footer-logo-wrap,
  .page-legal .footer-logo-wrap {
    order: 2;
    margin: 42px 0 0;
  }

  .page-lawyer .footer-logo,
  .page-lawyer .footer-logo img,
  .page-legal .footer-logo,
  .page-legal .footer-logo img {
    width: 172px;
  }

  .page-lawyer .copyright,
  .page-legal .copyright {
    display: block;
    margin-top: 10px;
    font-size: 10px;
    line-height: 1.4;
  }
}

@media (max-width: 767px) {
  .page-lawyer .condition-area .area-row b,
  .page-legal .condition-area .area-row b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
    vertical-align: top;
  }

  .page-lawyer .condition-area .area-row p,
  .page-legal .condition-area .area-row p {
    gap: 5px 7px;
  }

  .page-lawyer .condition-area .area-row a,
  .page-legal .condition-area .area-row a {
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: -0.02em;
  }
}

@media (max-width: 767px) {
  .page-lawyer .first-view {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
  }

  .page-lawyer .first-view > img,
  .page-lawyer .first-view > picture,
  .page-lawyer .first-view > picture > img {
    display: block;
    width: 100%;
    max-width: none;
  }

  .page-lawyer .fv-conversion {
    display: block !important;
    visibility: visible;
    opacity: 1;
    left: 50%;
    bottom: 58px;
    width: min(72vw, 300px);
    transform: translateX(-50%);
    z-index: 6;
  }

  .page-lawyer .fv-conversion img {
    display: block;
    width: 100%;
    height: auto;
  }
}

/* Integrated first-view adjustments formerly loaded as separate CSS files. */
@media (max-width: 767px) {
  body.page-lawyer .first-view {
    position: relative;
    width: 100vw;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: visible;
    background-size: 100% auto !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
  }

  body.page-lawyer .first-view > img,
  body.page-lawyer .first-view > picture,
  body.page-lawyer .first-view > picture > img {
    display: block;
    width: 100vw;
    max-width: none;
    height: auto !important;
  }

  body.page-lawyer .first-view > img,
  body.page-lawyer .first-view > picture > img {
    object-fit: contain !important;
    object-position: center top;
  }

  body.page-lawyer .first-view .fv-conversion {
    display: block !important;
    visibility: visible !important;
    opacity: 1;
    position: absolute;
    left: 50%;
    bottom: 7vw;
    width: min(76vw, 330px);
    min-width: 0;
    transform: translateX(-50%);
    z-index: 3;
  }

  body.page-lawyer .first-view .fv-conversion img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto !important;
  }

  body.page-lawyer .search-area {
    position: relative;
    z-index: 4;
    min-height: 0;
    margin-top: -17vw;
    padding-bottom: 54px;
  }
}

@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
  }

  body.page-lawyer .first-view {
    position: relative !important;
    width: 100vw !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 calc(50% - 50vw) !important;
    padding: 0 !important;
    overflow: visible !important;
    aspect-ratio: 522 / 628 !important;
    background-size: 100% auto !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
  }

  body.page-lawyer .first-view::before,
  body.page-lawyer .first-view::after {
    display: none !important;
  }

  body.page-lawyer .first-view > picture {
    display: block !important;
    width: 100vw !important;
    max-width: none !important;
    height: auto !important;
    line-height: 0 !important;
  }

  body.page-lawyer .first-view > picture > img,
  body.page-lawyer .first-view > img {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100vw !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 522 / 628 !important;
    object-fit: contain !important;
    object-position: center top !important;
  }

  body.page-lawyer .first-view .fv-conversion {
    position: absolute !important;
    left: 50% !important;
    bottom: 13vw !important;
    z-index: 8 !important;
    display: block !important;
    width: 80vw !important;
    min-width: 0 !important;
    transform: translateX(-50%) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.page-lawyer .first-view .fv-conversion img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
  }

  body.page-lawyer .search-area {
    position: relative;
    z-index: 4;
    min-height: 0;
    margin-top: -17vw;
    padding-bottom: 54px;
  }
}

@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
  }

  body.page-lawyer .first-view {
    position: relative !important;
    width: 100vw !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 calc(50% - 50vw) !important;
    padding: 0 !important;
    overflow: visible !important;
    aspect-ratio: 522 / 628 !important;
    background-size: 100% auto !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
  }

  body.page-lawyer .first-view::before,
  body.page-lawyer .first-view::after {
    display: none !important;
  }

  body.page-lawyer .first-view > picture {
    display: block !important;
    width: 100vw !important;
    max-width: none !important;
    height: auto !important;
    line-height: 0 !important;
  }

  body.page-lawyer .first-view > picture > img,
  body.page-lawyer .first-view > img {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100vw !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center top !important;
  }

  body.page-lawyer .first-view .fv-conversion {
    position: absolute !important;
    left: 50% !important;
    bottom: 13vw !important;
    z-index: 8 !important;
    display: block !important;
    width: 80vw !important;
    min-width: 0 !important;
    transform: translateX(-50%) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.page-lawyer .first-view .fv-conversion img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
  }

  body.page-lawyer .search-area {
    position: relative;
    z-index: 4;
    min-height: 0;
    margin-top: -17vw;
    padding-bottom: 54px;
  }
}

@media (max-width: 767px) {
  body.page-lawyer .first-view {
    position: relative;
    width: 100vw;
    max-width: none;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 523 / 628;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 !important;
    overflow: visible;
    background-size: 100% auto !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
  }

  body.page-lawyer .first-view picture,
  body.page-lawyer .first-view .fv-picture {
    display: block;
    width: 100%;
    height: auto;
    line-height: 0;
  }

  body.page-lawyer .first-view picture img,
  body.page-lawyer .first-view > img,
  body.page-lawyer .first-view .fv-image {
    position: relative !important;
    inset: auto !important;
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center top !important;
  }

  body.page-lawyer .fv-conversion {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: 13vw !important;
    z-index: 8;
    display: block !important;
    width: 80vw !important;
    min-width: 0 !important;
    transform: translateX(-50%) !important;
    opacity: 1;
    visibility: visible;
  }

  body.page-lawyer .fv-conversion img {
    display: block;
    width: 100%;
    height: auto;
  }
}

.page-general .fv-conversion {
  position: absolute;
  left: calc(59% + 45px);
  bottom: 19%;
  display: block;
  width: min(34.93vw, 503px);
  min-width: 0;
  transform: translate(-148%, -35px);
}

@media (max-width: 767px) {
  .page-general .first-view {
    aspect-ratio: 1000 / 1207 !important;
    background-image: url("../images/cover/fv_general_sp.png") !important;
    background-position: center top !important;
    background-size: 100% 100% !important;
  }

  .page-legal .first-view {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    aspect-ratio: 1000 / 1083 !important;
    background-image: url("../images/cover/fv_legal_sp.png") !important;
    background-position: center top !important;
    background-size: 100% 100% !important;
  }

  .page-general .search-area {
    margin-top: -7vw;
    padding-bottom: 48px;
  }

  .page-general .general-search-card {
    width: calc(100% - 48px);
    padding: 20px 20px 30px;
  }

  .page-general .general-search-card h2 {
    margin: 0 0 24px;
    font-size: 24px;
    line-height: 1.35;
  }

  .page-general .general-job-block {
    margin-top: 28px;
  }

  .page-general .general-job-block h3 {
    gap: 14px;
    margin-bottom: 12px;
    font-size: 14px;
  }

  .page-general .general-job-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 8px;
  }

  .page-general .general-job-link {
    min-height: 34px;
    padding: 5px 22px 5px 10px;
    font-size: 12px;
    line-height: 1.2;
  }

  .page-general .general-job-link::after {
    right: 9px;
    border-top-width: 4px;
    border-bottom-width: 4px;
    border-left-width: 8px;
  }

  .page-general .job-icon {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
    margin-right: 7px;
  }

  .page-general .job-icon img {
    width: 22px;
    height: 22px;
  }

  .page-general .general-office-title {
    margin: 42px 0 24px;
    font-size: 24px;
  }

  .page-general .general-office-grid .general-job-link {
    font-size: 12px;
    white-space: normal;
  }

  .page-general .general-office-grid .sp-office-break {
    display: block;
  }

  .page-general .general-office-grid .br-ios-tablet {
    display: block;
  }

  .page-general .intro-title {
    font-size: 0;
  }

  .page-general .intro-title span {
    font-size: 22px;
  }


}

@media screen and (max-width: 1024px) {
  
.page-general .intro-title span:nth-child(2),
.page-lawyer .intro-title span:nth-child(2),
.page-legal .intro-title span:nth-child(2)
{
  display: inline-block;
  white-space: nowrap;
  background: linear-gradient(transparent 72%, #eee 72%);
}

.page-general .intro-title span:nth-child(3),
.page-lawyer .intro-title span:nth-child(3),
.page-legal .intro-title span:nth-child(3)
{
  display: inline-block;
}

.page-general .intro-title,
.page-lawyer .intro-title,
.page-legal .intro-title
{
    font-size: 0;
}

.page-lawyer  .intro-title span,
.page-legal  .intro-title span
 {
    font-size: 25px;
}

.page-general  .intro-title span {
    font-size: 23px;
}

}

@media (min-width: 901px) and (max-width: 1199px) {
  .page-general .intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 40px;
  }

  .page-general .intro-title {
    grid-column: 1 / -1;
    grid-row: auto;
    text-align: center;
  }

  .page-general .reason-card h3 {
    white-space: normal;
  }

  .voice-card {
    flex: 0 0 calc((100% - 76px) / 3);
  }
}

@media (min-width: 1441px) {
  .first-view {
    height: 700px;
    aspect-ratio: auto;
  }

  .fv-conversion {
    left: calc(50% + 175px);
  }

  .page-general .fv-conversion {
    left: calc(50% + 175px);
  }

  .search-area {
    margin-top: -122px;
  }

  .page-general .search-area {
    margin-top: -104px;
  }
}

.header-actions,
.header-btn,
.header-btn img {
  flex-shrink: 0;
}

.header-btn img {
  object-fit: contain;
}

.header-btn-primary img {
  aspect-ratio: 216 / 46;
}

.header-actions .header-btn:not(.header-btn-primary) img {
  aspect-ratio: 168 / 46;
}

@media (min-width: 901px) and (max-width: 1050px) {
  .header-inner {
    width: calc(100% - 28px);
  }

  .page-general .site-logo {
    width: 124px;
  }

  .page-general .site-logo img {
    width: 124px;
  }

  .page-general .general-nav {
    gap: 16px;
    font-size: 13px;
  }

  .page-general .general-nav-link {
    gap: 5px;
  }

  .header-actions {
    gap: 8px;
    margin-left: 18px;
  }

  .header-btn,
  .header-btn img {
    height: 38px;
  }
}

@media (hover: hover) {
  .page-general .fv-conversion:hover {
    transform: translate(-148%, -35px);
  }
}

@media (min-width: 901px) and (max-width: 1199px) {
  .intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 40px;
  }

  .intro-title {
    grid-column: 1 / -1;
    grid-row: auto;
    text-align: center;
  }

  .reason-card h3 {
    white-space: normal;
  }

  .voice-card {
    flex: 0 0 calc((100% - 76px) / 3);
  }
}

@media (min-width: 901px) and (max-width: 1050px) {
  .site-logo,
  .site-logo img {
    width: 124px;
  }

  .global-nav {
    gap: 16px;
    font-size: 13px;
  }

  .global-nav a {
    padding-right: 0;
    padding-left: 0;
  }

  .header-actions {
    gap: 8px;
    margin-left: 18px;
  }

  .header-btn,
  .header-btn img {
    height: 38px;
  }
}

@media (max-width: 767px) {
  .page-legal .first-view {
    position: relative;
    margin-right: calc(50% - 50vw);
    overflow: visible;
  }

  .page-legal .fv-conversion {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: 4vw !important;
    z-index: 8;
    display: block !important;
    width: 80vw !important;
    min-width: 0 !important;
    transform: translateX(-50%) !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .page-legal .fv-conversion img {
    display: block;
    width: 100%;
    height: auto;
  }

  .search-card,
  .page-lawyer .search-card,
  .page-legal .search-card,
  .page-general .general-search-card {
    width: 100% !important;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    border-radius: 7px;
  }
  

}

@media (min-width: 768px) {
  body.page-lawyer:not(.page-general) .first-view {
    background-image: url("../images/cover/fv.png"), url("../images/cover/fv_lawyer_wide.png");
    background-position: center top, center top;
    background-size: min(100vw, 1440px) auto, cover;
    background-repeat: no-repeat, no-repeat;
    background-color: #fff;
  }

  .page-legal .first-view {
    background-image: url("../images/cover/fv_legal.png"), url("../images/cover/fv_legal_wide.png");
    background-position: center top, center top;
    background-size: min(100vw, 1440px) auto, cover;
    background-repeat: no-repeat, no-repeat;
    background-color: #fff;
  }

  .page-general .first-view {
    background-image: url("../images/cover/fv_general.png"), url("../images/cover/fv_general_wide.png");
    background-position: center top, center top;
    background-size: min(100vw, 1440px) auto, cover;
    background-repeat: no-repeat, no-repeat;
    background-color: #fff;
  }

  .reason-card span {
    width: 218px;
    height: 182px;
    overflow: hidden;
    color: transparent;
    font-size: 0;
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: contain;
  }

  .reason-card:nth-of-type(1) span {
    background-image: url("../images/cover/reason_num_01.png");
  }

  .reason-card:nth-of-type(2) span {
    background-image: url("../images/cover/reason_num_02.png");
  }

  .reason-card:nth-of-type(3) span {
    background-image: url("../images/cover/reason_num_03.png");
  }

  .reason-card:nth-of-type(4) span {
    background-image: url("../images/cover/reason_num_04.png");
  }

  .case-section > .container {
    width: min(100% - 48px, 1260px);
  }

  .story-section .carousel-viewport,
  .voice-carousel .carousel-viewport,
  .journal-carousel .carousel-viewport,
  .consultant-carousel .carousel-viewport {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .story-section .carousel-track,
  .voice-carousel .carousel-track,
  .journal-carousel .carousel-track,
  .consultant-carousel .carousel-track {
    padding-right: max(24px, calc((100vw - 1260px) / 2));
    padding-left: max(24px, calc((100vw - 1260px) / 2));
  }

  .page-lawyer .story-section .carousel-viewport,
  .page-legal .story-section .carousel-viewport {
    width: 100%;
    margin-left: 0;
  }

  .page-lawyer .story-section .carousel-track,
  .page-legal .story-section .carousel-track {
    padding-right: 0;
    padding-left: 0;
  }
}

@media (min-width: 1350px) {
  .intro-grid {
    grid-template-columns: 250px 450px 450px;
    width: min(calc(100% - 80px), 1262px);
  }

  .reason-card {
    width: 450px;
  }
}

.reason-card span {
  width: 270px;
  height: 110px;
  overflow: hidden;
  color: transparent;
  font-size: 0 !important;
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: auto 100%;
}

.reason-card:nth-of-type(1) span {
  background-image: url("../images/cover/reason_num_01.png");
}

.reason-card:nth-of-type(2) span {
  background-image: url("../images/cover/reason_num_02.png");
}

.reason-card:nth-of-type(3) span {
  background-image: url("../images/cover/reason_num_03.png");
}

.reason-card:nth-of-type(4) span {
  background-image: url("../images/cover/reason_num_04.png");
}

@media (max-width: 767px) {
  .reason-card span {
    width: 185px;
    height: 126px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .reason-card span {
    right: 0;
  }
}

.font_small{ font-size: 80%;}


@media (max-width: 767px) {
  .case-card span,
  .case-card b,
  .case-card em {
    white-space: nowrap;
  }

  body.is-android .case-card .case-income-label,
  body.is-android .case-card .case-income-value {
    display: block;
    line-height: 1.12;
    text-align: center;
    white-space: nowrap;
  }

  body.is-android .case-card > div > span > strong,
  body.is-android .case-card b > span {
    display: block;
    line-height: 1.12;
    text-align: center;
    white-space: nowrap;
  }

  body.is-android .case-card b .case-income-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1px;
  }

  body.is-android .case-card b .case-income-value strong {
    line-height: 1;
  }

  body.is-android.page-lawyer .case-slider .case-card > div,
  body.is-android.page-legal .case-slider .case-card > div {
    overflow: hidden;
    border-radius: 4px;
  }

  body.is-android.page-lawyer .case-slider .case-card,
  body.is-android.page-legal .case-slider .case-card {
    flex-basis: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
  }

  body.is-android.page-lawyer .case-slider .case-card > div > span em,
  body.is-android.page-legal .case-slider .case-card > div > span em {
    font-size: 16px;
    line-height: 1.2;
  }

  body.is-android.page-lawyer .case-slider .case-card > div > span .case-income-label,
  body.is-android.page-legal .case-slider .case-card > div > span .case-income-label {
    font-size: 16px;
    line-height: 1.2;
  }

  body.is-android.page-lawyer .case-slider .case-card > div > span .case-income-number,
  body.is-android.page-legal .case-slider .case-card > div > span .case-income-number {
    font-size: 20px;
    line-height: 1.1;
  }

  body.is-android.page-lawyer .case-slider .case-card b em,
  body.is-android.page-legal .case-slider .case-card b em {
    font-size: 20px;
    line-height: 1.2;
  }

  body.is-android.page-lawyer .case-slider .case-card b .case-income-label,
  body.is-android.page-lawyer .case-slider .case-card b .case-income-unit,
  body.is-android.page-legal .case-slider .case-card b .case-income-label,
  body.is-android.page-legal .case-slider .case-card b .case-income-unit {
    font-size: 18px;
    line-height: 1.2;
  }

  body.is-android.page-lawyer .case-slider .case-card b .case-income-value strong,
  body.is-android.page-legal .case-slider .case-card b .case-income-value strong {
    font-size: 30px;
  }
}

.sticky-fv-conversion {
  display: none !important;
}

@media (max-width: 767px) {
  body.page-lawyer .sticky-fv-conversion,
  body.page-legal .sticky-fv-conversion {
    position: fixed !important;
    right: auto !important;
    bottom: max(16px, env(safe-area-inset-bottom)) !important;
    left: 50% !important;
    z-index: 9998 !important;
    display: block !important;
    width: min(80vw, 330px) !important;
    min-width: 0 !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: visible !important;
    transform: translate(-50%, calc(100% + 24px)) !important;
    transition: transform .32s ease, opacity .32s ease;
    background-image: url("../images/cover/fv_btn_hover.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }

  body.page-lawyer .sticky-fv-conversion img,
  body.page-legal .sticky-fv-conversion img {
    display: block;
    width: 100%;
    height: auto;
  }

  body.page-lawyer.is-sticky-fv-conversion-visible .sticky-fv-conversion,
  body.page-legal.is-sticky-fv-conversion-visible .sticky-fv-conversion {
    pointer-events: auto !important;
    opacity: 1 !important;
    transform: translate(-50%, 0) !important;
  }
}



.br-ios-tablet {
  display: none;
}

/* タブレット */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .br-ios-tablet {
    display: block;
  }
}

/* iPhone / iOS Safari */
@supports (-webkit-touch-callout: none) {
  @media screen and (max-width: 767px) {
    .br-ios-tablet {
      display: block;
    }
  }
}



@media (max-width: 767px) {
  .page-general #voice .voice-carousel .carousel-viewport,
  .page-legal #voice .voice-carousel .carousel-viewport,
  .page-lawyer #voice .voice-carousel .carousel-viewport {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .page-general #voice .voice-carousel .carousel-track,
  .page-legal #voice .voice-carousel .carousel-track,
  .page-lawyer #voice .voice-carousel .carousel-track {
    gap: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-general #voice .voice-carousel .voice-card,
  .page-legal #voice .voice-carousel .voice-card,
  .page-lawyer #voice .voice-carousel .voice-card {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 767px) {
  .carousel {
    z-index: 90;
  }

  .carousel-viewport,
  .carousel-controls,
  .carousel-arrow,
  .slider-dots {
    position: relative;
    z-index: 91;
  }

  .carousel-viewport {
    touch-action: pan-y;
  }

  .data-panel {
    width: 100%;
    grid-template-columns: 1fr;
    padding: 0;
  }

  .data-item {
    padding: 30px 0 28px;
  }

  .data-item + .data-item {
    border-top: 1px solid #aaa;
  }

  .data-item dt {
    margin-bottom: 16px;
    font-size: 22px;
  }

  .data-item dd span {
    font-size: 58px;
  }

  .data-item dd small {
    font-size: 28px;
  }
}

@media (max-width: 900px) {
  .site-header {
    z-index: 10000;
  }

  .menu-button {
    position: relative;
    z-index: 10002;
  }

  .sp-menu {
    z-index: 10001;
  }

  .sp-menu:not(.general-sp-menu).is-open {
    position: fixed;
    top: 62px;
    right: 0;
    left: 0;
    max-height: calc(100dvh - 62px);
    overflow-y: auto;
  }

  .page-general .general-sp-menu {
    z-index: 10001;
  }

  .menu-button span {
    transition: transform 0.22s ease, opacity 0.18s ease;
    transform-origin: center;
  }

  .menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .page-general .general-sp-menu-head,
  .page-general .sp-menu-close {
    position: relative;
    z-index: 10003;
  }

  body.is-sp-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 900px) {
  .page-general .general-sp-menu.is-open {
    position: fixed;
    top: 62px;
    right: 0;
    left: 0;
    inset: 62px 0 auto;
    display: block;
    min-height: calc(100dvh - 62px);
    max-height: calc(100dvh - 62px);
    padding: 18px 24px;
    overflow-y: auto;
  }

  .page-general .general-sp-menu-head {
    display: none;
  }

  .page-general .header-inner .sp-menu-cta {
    display: none;
    position: absolute;
    top: 14px;
    right: 63px;
    z-index: 10002;
    width: 164px;
    margin: 0;
    padding: 0;
    line-height: 1;
  }

  .page-general .header-inner .sp-menu-cta img {
    display: block;
    width: 100%;
    height: auto;
  }

  body.is-sp-menu-open.page-general .header-inner .sp-menu-cta {
    display: block;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .page-general .general-job-link .land-surveyor-label {
    font-size: 10px;
    line-height: 1.28;
    letter-spacing: -0.08em;
    white-space: nowrap;
  }

  .page-general .general-office-grid .general-job-link .land-surveyor-label {
    font-size: 9.5px;
  }

  .page-general .general-office-grid .sp-office-break,
  .page-general .general-office-grid .br-ios-tablet {
    display: block;
  }
}
