:root {
  --red: #b60b1d;
  --black: #1d1d1d;
  --ink: #3f3f3f;
  --muted: #5d5d5d;
  --line: #e3e3e3;
  --gray: #f6f6f6;
  --white: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans JP", YuGothic, Meiryo, sans-serif;
  font-size: 1.6rem;
  line-height: 1.8;
}

body[data-lang="en"] .lang-ja,
body[data-lang="ja"] .lang-en {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

p + p {
  margin-top: 1em;
}

.c-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  background: var(--white);
  text-align: center;
  transition: border-color 0.3s;
}

.c-header.is-shrinked {
  border-bottom: 1px solid var(--line);
}

.c-header__inner {
  display: flex;
  justify-content: space-between;
  height: 100px;
  transition: height 0.3s;
}

.c-header.is-shrinked .c-header__inner {
  height: 70px;
}

.c-header__logo {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: 30px;
  color: #000;
  text-align: left;
}

.uipc-logo {
  width: auto;
  height: 64px;
  max-width: 230px;
  object-fit: contain;
}

.c-header__nav {
  display: flex;
}

.c-gnav {
  display: flex;
  align-items: center;
}

.c-gnav ul {
  display: flex;
  height: 100%;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.c-gnav li {
  height: 100%;
}

.c-gnav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 15px;
  color: #1e1d1d;
}

.c-gnav a:hover {
  color: var(--red);
}

.c-header__lang-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 100%;
  background: var(--black);
  color: #fff;
}

.lang-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.lang-text {
  margin-top: 7px;
  font-family: "Roboto", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.c-header__menu-btn {
  display: none;
}

.c-lang-nav {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.86);
  color: #fff;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.c-lang-nav.is-open {
  visibility: visible;
  opacity: 1;
}

.c-lang-nav__close-btn {
  position: fixed;
  top: 28px;
  right: 32px;
  font-size: 4rem;
  line-height: 1;
}

.c-lang-nav-list button {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px;
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 3.8rem;
}

.p-main {
  padding-top: 100px;
}

.p-home-hero {
  position: relative;
  height: min(820px, calc(100vh - 100px));
  min-height: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: #fff;
}

.p-home-hero > img {
  width: min(1100px, calc(100% - 40px));
  height: auto;
  max-height: calc(100% - 210px);
  object-fit: contain;
  object-position: center center;
  padding: 0;
  margin-top: 118px;
}

.p-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.p-home-hero__text {
  position: absolute;
  left: 50%;
  top: clamp(34px, 7vw, 78px);
  transform: translateX(-50%);
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  padding: 14px 28px 16px;
  border-left: 0;
  background: transparent;
  box-shadow: none;
  color: #000;
  text-align: center;
}

.p-home-hero__text p {
  margin-bottom: 18px;
  color: var(--red);
  font-family: "Roboto", sans-serif;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.p-home-hero__text h1 {
  font-family: "Roboto", sans-serif;
  font-size: clamp(3.8rem, 5.3vw, 6.8rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 #fff, 0 8px 24px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}

.p-home-hero-belief {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  background: transparent;
}

.p-home-hero-belief__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 20px;
  text-align: center;
}

.p-home-hero-belief__lead {
  color: #000;
  font-family: "Roboto", sans-serif;
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  font-weight: 500;
  line-height: 1.2;
}

.p-home-hero-belief__text {
  max-width: 100%;
  margin-top: 8px;
  color: var(--muted);
  text-align: center;
}

body[data-lang="ja"] .p-home-hero-belief__text {
  transform: translateX(-18px);
}

.p-home-about {
  padding: 100px 40px 24px;
}

.p-home-about__inner,
.p-home-staff__inner,
.p-detail__inner,
.c-recruit__inner,
.c-portal__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.p-home-about-block {
  display: flex;
  gap: 40px;
}

.p-home-about-block.is-single {
  justify-content: center;
}

.p-home-about-item {
  position: relative;
  display: flex;
  width: 50%;
  min-height: 390px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.p-home-about-block.is-single .p-home-staff-item {
  width: 100%;
}

.p-home-about-item > div {
  width: 50%;
}

.p-home-about-item__img {
  overflow: hidden;
}

.p-home-about-item__img img,
.p-home-staff-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.p-home-about-item__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5%;
}

.p-home-about-item::after,
.p-home-staff-item::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: 0;
  background: var(--red);
  transition: width 0.5s;
}

.p-home-about-item > *,
.p-home-staff-item > * {
  position: relative;
  z-index: 1;
}

.p-home-about-item:hover,
.p-home-staff-item:hover {
  color: #fff;
}

.p-home-about-item:hover::after,
.p-home-staff-item:hover::after {
  width: 100%;
}

.p-home-about-item:hover img,
.p-home-staff-item:hover img {
  transform: scale(1.08);
}

.p-home-about-item:hover .c-heading02__main,
.p-home-staff-item:hover .c-heading02__main {
  color: #fff;
}

.p-home-about-item:hover .c-heading02__main::first-letter,
.p-home-staff-item:hover .c-heading02__main::first-letter {
  color: #fff;
}

.p-home-about-item__text {
  margin: 28px 0 0;
}

.c-heading01 {
  margin-bottom: 42px;
  line-height: 1;
  letter-spacing: 0.05em;
}

.c-heading01__main {
  position: relative;
  padding-left: 35px;
  color: #000;
  font-family: "Roboto", sans-serif;
  font-size: 4rem;
  font-weight: 500;
}

.c-heading01__main::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--red);
}

.c-heading01__sub {
  margin-top: 10px;
  padding-left: 35px;
  color: var(--muted);
  font-size: 1.5rem;
}

.c-heading02__main {
  color: #000;
  font-family: "Roboto", sans-serif;
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.c-heading02__main::first-letter {
  color: var(--red);
}

.c-btn01 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  min-height: 60px;
  border: 1px solid var(--line);
  background: #fff;
  color: #3f3f3f;
}

.c-btn01::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--red);
  transition: width 0.5s;
}

.c-btn01:hover {
  color: #fff;
}

.c-btn01:hover::after {
  width: 100%;
}

.c-btn01 span {
  position: relative;
  z-index: 1;
}

.c-btn01__arrow,
.c-arrow {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 10px;
  margin-left: 14px;
}

.c-btn01__arrow::before,
.c-arrow::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 36px;
  height: 1px;
  background: currentColor;
}

.c-btn01__arrow::after,
.c-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 10px;
  height: 1px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: right center;
}

.p-home-staff {
  padding: 0 40px 100px;
}

.p-home-staff-item {
  position: relative;
  display: flex;
  min-height: 360px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.p-home-staff-item > div {
  width: 50%;
}

.p-home-staff-item__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4% 5%;
}

.p-home-staff-item__inner p {
  margin: 28px 0 0;
}

.p-detail {
  padding: 88px 40px;
}

.section-lead-card {
  margin-bottom: 58px;
  text-align: left;
}

.p-home-about .section-lead-card {
  margin-bottom: 0;
}

#firm-detail {
  padding-top: 28px;
}

.p-detail.is-gray {
  background: var(--gray);
}

.p-detail__columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.practice-grid,
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.people-grid {
  grid-template-columns: repeat(4, 1fr);
}

.practice-grid article,
.people-grid article {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
}

.people-grid article {
  padding-top: 0;
  overflow: hidden;
}

.person-photo {
  width: calc(100% + 56px);
  height: auto;
  margin: 0 -28px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--gray);
}

.person-link {
  display: block;
}

.person-link:hover h3 {
  color: var(--red);
  text-decoration: underline;
}

.practice-grid h3,
.people-grid h3 {
  margin-bottom: 16px;
  color: #000;
  font-size: 2rem;
  font-weight: 500;
}

body[data-lang="ja"] .practice-grid h3 {
  text-align: center;
}

.practice-grid h3::first-letter,
.people-grid h3::first-letter {
  color: var(--red);
}

.c-recruit {
  padding: 0 40px 95px;
}

.c-recruit-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: #fff;
}

.c-recruit-item {
  min-height: 170px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
    url("assets/practice-card.png") center/cover;
}

.c-recruit-item:nth-child(2) {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
    url("assets/firm-card.png");
}

.c-recruit-item:nth-child(3) {
  border-right: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
    url("assets/people-card.png");
}

.c-recruit-item__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 34px;
}

.c-recruit-item h2 {
  color: #000;
  font-family: "Roboto", sans-serif;
  font-size: 2.4rem;
  font-weight: 500;
}

.c-recruit-item h2::first-letter {
  color: var(--red);
}

.access-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 40px;
}

.access-grid a {
  color: var(--red);
  text-decoration: underline;
}

iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
}

.c-portal {
  padding: 80px 40px;
  border-top: 1px solid var(--line);
}

.c-portal__inner {
  max-width: 1200px;
  text-align: center;
}

.c-portal .p-home-staff-item__img img {
  object-position: 80% center;
}

.c-portal .p-home-staff-item:hover img {
  transform: none;
}

.united-gips {
  color: #000;
  font-family: "Roboto", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
}

.c-pagetop {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 20;
  width: 65px;
  height: 65px;
  border: 1px solid var(--line);
  background: #fff;
}

.c-pagetop span::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 22px;
  width: 20px;
  height: 20px;
  border-top: 1px solid #000;
  border-left: 1px solid #000;
  transform: rotate(45deg);
}

.c-footer {
  background: var(--black);
  color: #fff;
}

.c-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.c-footer__nav,
.c-footer__lang-btn {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 40px;
}

.c-footer__lang-btn {
  gap: 0;
}

.c-footer__lang-btn li {
  width: 70px;
  height: 30px;
  border: 1px solid #fff;
  border-right: 0;
}

.c-footer__lang-btn li:last-child {
  border-right: 1px solid #fff;
}

.c-footer__lang-btn button {
  width: 100%;
  height: 100%;
}

.c-footer__lang-btn button.active {
  background: #fff;
  color: var(--black);
}

.c-footer__info {
  margin-bottom: 30px;
  text-align: center;
}

.c-footer__info div:first-child {
  margin-bottom: 5px;
  font-size: 2rem;
  font-weight: 500;
}

.c-footer__info div:last-child {
  color: #acacac;
  font-size: 1.4rem;
}

.c-footer__copy {
  text-align: center;
  font-family: "Roboto", sans-serif;
  font-size: 1.2rem;
}

.profile-hero {
  padding: 90px 40px 70px;
  background: var(--gray);
}

.profile-hero__inner,
.profile-detail__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.profile-hero__inner {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

.profile-hero__photo {
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
}

.profile-hero__photo img {
  width: 100%;
  height: auto;
}

.profile-hero__content .c-heading01 {
  margin-bottom: 28px;
}

.profile-detail {
  padding: 70px 40px 90px;
}

.profile-text {
  max-width: 920px;
  font-size: 1.7rem;
}

.profile-back {
  margin-top: 46px;
}

@media (max-width: 1080px) {
  .c-gnav ul {
    font-size: 1.35rem;
  }

  .c-gnav a {
    padding: 0 10px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 1.4rem;
  }

  .c-header {
    z-index: 40;
  }

  .c-header__inner {
    height: 58px;
  }

  .c-header.is-shrinked .c-header__inner {
    height: 58px;
  }

  .c-header__logo {
    margin-left: 14px;
  }

  .uipc-logo {
    height: 44px;
    max-width: 120px;
  }

  .c-header__nav {
    position: fixed;
    top: 58px;
    left: 0;
    display: block;
    width: 100%;
  }

  .c-header__nav.is-open {
    background: rgba(0, 0, 0, 0.85);
  }

  .c-gnav {
    display: none;
  }

  .c-header__nav.is-open .c-gnav,
  .c-gnav ul {
    display: block;
  }

  .c-gnav li {
    height: 52px;
    border-top: 1px solid var(--line);
    background: #fff;
  }

  .c-gnav a {
    padding-left: 20px;
  }

  .c-header__lang-btn {
    position: fixed;
    top: 0;
    right: 58px;
    width: 58px;
    height: 58px;
  }

  .lang-text {
    display: none;
  }

  .lang-icon img {
    width: 28px;
    height: 28px;
  }

  .c-header__menu-btn {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    background: #fff;
  }

  .c-header__menu-btn span {
    width: 24px;
    height: 2px;
    background: #000;
  }

  .p-main {
    padding-top: 58px;
  }

  .p-home-hero {
    height: auto;
    min-height: 0;
  }

  .p-home-hero > img {
    width: calc(100% - 20px);
    max-height: none;
    margin-top: 88px;
    padding: 0;
  }

  .p-home-hero::after {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.04));
  }

  .p-home-hero__text {
    left: 50%;
    right: auto;
    top: 26px;
    width: calc(100% - 20px);
    padding: 10px 12px 12px;
  }

  .p-home-hero__text h1 {
    font-size: clamp(2.1rem, 7vw, 3.5rem);
  }

  .p-home-hero-belief__inner {
    padding: 18px 18px 22px;
  }

  .p-home-hero-belief {
    position: relative;
    margin-top: 4px;
  }

  .p-home-about,
  .p-home-staff,
  .p-detail,
  .c-recruit,
  .c-portal {
    padding-left: 15px;
    padding-right: 15px;
  }

  .p-home-about {
    padding-top: 56px;
  }

  .p-home-about-block,
  .p-home-about-item,
  .p-home-staff-item,
  .p-detail__columns,
  .access-grid {
    display: block;
  }

  .p-home-about-item,
  .p-home-about-item > div,
  .p-home-staff-item > div {
    width: 100%;
  }

  .p-home-about-item {
    margin-bottom: 28px;
  }

  .p-home-about-block.is-single .p-home-staff-item {
    width: 100%;
  }

  .p-home-about-item__img,
  .p-home-staff-item__img {
    height: 230px;
  }

  .p-home-about-item__inner,
  .p-home-staff-item__inner {
    padding: 30px 22px;
  }

  .section-lead-card {
    margin-bottom: 36px;
  }

  .p-home-about .section-lead-card {
    margin-bottom: 0;
  }

  #firm-detail {
    padding-top: 24px;
  }

  .c-heading01__main {
    padding-left: 25px;
    font-size: 2.8rem;
  }

  .c-heading01__main::before {
    width: 15px;
  }

  .c-heading01__sub {
    padding-left: 25px;
  }

  .c-heading02__main {
    font-size: 2.2rem;
  }

  .practice-grid,
  .people-grid,
  .c-recruit-block {
    grid-template-columns: 1fr;
  }

  .person-card--todd {
    order: 3;
  }

  .person-card--naoko {
    order: 4;
  }

  .c-recruit-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .c-recruit-item:last-child {
    border-bottom: 0;
  }

  iframe {
    min-height: 260px;
    margin-top: 24px;
  }

  .c-portal .c-heading01 {
    margin-bottom: 30px;
  }


  .c-pagetop {
    right: 15px;
    bottom: 20px;
    width: 48px;
    height: 48px;
  }

  .c-pagetop span::before {
    top: 20px;
    left: 16px;
    width: 16px;
    height: 16px;
  }

  .profile-hero,
  .profile-detail {
    padding-left: 15px;
    padding-right: 15px;
  }

  .profile-hero {
    padding-top: 54px;
  }

  .profile-hero__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .profile-hero__photo {
    max-width: 360px;
  }

  .profile-text {
    font-size: 1.5rem;
  }
}
