/*
 * 岸本国際社労士事務所 — トップページ
 */

/* =========================
Section Padding
========================= */

.p-top-worry,
.p-top-risk,
.p-top-service,
.p-top-feature,
.p-top-flow,
.p-top-news,
.p-top-contact {
  padding-block: var(--section-padding-sp);
}

@media (min-width: 768px) {
  .p-top-worry,
  .p-top-risk,
  .p-top-service,
  .p-top-feature,
  .p-top-flow,
  .p-top-news,
  .p-top-contact {
    padding-block: var(--section-padding-pc);
  }
}

/* =========================
Shared
========================= */

.p-top-worry,
.p-top-flow {
  background-color: var(--c-bg-gray);
}

.p-top-service,
.p-top-feature,
.p-top-news {
  background-color: var(--c-bg-white);
}

.p-top-worry__list,
.p-top-service__list,
.p-top-feature__list,
.p-top-flow__list,
.p-top-news__list,
.p-top-risk__warn-list {
  list-style: none;
  padding: 0;
}

.p-top-worry__list > li,
.p-top-service__list > li,
.p-top-feature__list > li,
.p-top-flow__item,
.p-top-news__list > li {
  display: flex;
}

.p-top-worry__ttl::after,
.p-top-news__ttl::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-inline: auto;
  background-color: var(--c-accent);
}

.p-top-worry__ttl::after {
  margin-top: 20px;
}

.p-top-news__ttl::after {
  margin-top: 16px;
}

.p-top-service__card-ttl,
.p-top-flow__card-ttl {
  margin-bottom: 12px;
}

.p-top-worry__ttl,
.p-top-news__ttl {
  margin-bottom: 40px;
  text-align: center;
}

.p-top-worry__icon,
.p-top-flow__icon {
  flex-shrink: 0;
  display: block;
  width: 80px;
  height: 80px;
}

.p-top-risk__ttl,
.p-top-profile__ttl {
  position: relative;
  padding-bottom: 16px;
  font-size: var(--fz-h2-lg);
  color: var(--c-white);
}

.p-top-fv__ttl::after,
.p-top-risk__ttl::after,
.p-top-profile__ttl::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  background-color: var(--c-accent);
}

/* =========================
FV
========================= */

.p-top-fv {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  margin-top: 0;
  padding: 120px 0 64px;
  overflow: hidden;
}

.p-top-fv__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.p-top-fv__bg::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  z-index: 2;
  width: 200%;
  height: 200%;
  background-color: rgba(255, 255, 255, 0.8);
  transform: translate(-100%, -100%) rotate(-12deg);
  animation: p-top-fv-curtain 1.1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  will-change: transform;
}

.p-top-fv__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: var(--c-bg-white);
  transform: translateX(0);
  animation: p-top-fv-curtain 1.1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  will-change: transform;
}

.p-top-fv__bg picture,
.p-top-fv__bg-img {
  display: block;
  width: 100%;
  height: 100%;
}

.p-top-fv__bg-img {
  object-fit: cover;
}

.p-top-fv__inner {
  position: relative;
  z-index: 1;
}

.p-top-fv__content {
  max-width: 800px;
  opacity: 0;
  transform: translateX(-32px);
  animation: p-top-fv-content-in 0.9s ease 0.65s forwards;
}

.p-top-fv__sub {
  margin-bottom: 16px;
  font-family: var(--font-family-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-main);
}

.p-top-fv__ttl {
  position: relative;
  margin-bottom: 32px;
  padding-bottom: 20px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--ls-heading);
}

.p-top-fv__ttl-em {
  font-size: 36px;
}

.p-top-fv__ttl-body {
  font-size: 24px;
}

.p-top-fv__txt {
  margin-bottom: 32px;
  font-size: 18px;
  line-height: var(--lh-body);
  color: var(--c-text-sub);
}

.p-top-fv__content .c-btn--primary {
  margin-top: 8px;
}

@keyframes p-top-fv-curtain {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(100%);
  }
}

@keyframes p-top-fv-content-in {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (min-width: 768px) {
  .p-top-fv {
    padding: 120px 0 100px;
  }

  .p-top-fv__ttl {
    line-height: 1.5;
  }

  .p-top-fv__sub {
    margin-bottom: 24px;
    font-size: 22px;
  }

  .p-top-fv__ttl-em {
    font-size: 66px;
  }

  .p-top-fv__ttl-body {
    font-size: 50px;
  }

  .p-top-fv__txt {
    margin-bottom: 40px;
  }
}

@media (max-width: 767.98px) {
  .p-top-fv {
    display: block;
    min-height: auto;
    padding: var(--header-height) 0 0;
  }

  .p-top-fv__bg {
    position: relative;
    height: clamp(440px, 65vh, 600px);
  }

  .p-top-fv__bg::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0) 70%,
      rgba(255, 255, 255, 0.5) 100%
    );
    transform: none;
    animation: none;
  }

  .p-top-fv__bg::after {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--c-bg-white);
    transform: translateX(0);
    animation: p-top-fv-curtain 1.1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  }

  .p-top-fv__bg-img {
    object-position: center center;
  }

  .p-top-fv__inner {
    position: relative;
    margin-top: -20px;
    padding: 24px 24px 48px;
    border-radius: 20px 20px 0 0;
    background-color: var(--c-bg-white);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
  }

  .p-top-fv__inner::before {
    display: none;
  }

  .p-top-fv__content {
    max-width: none;
    padding: 0 8px;
  }

  .p-top-fv__txt {
    font-size: var(--fz-body);
    line-height: 1.9;
  }

  .p-top-fv__content .c-btn--primary {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-top-fv__bg::before,
  .p-top-fv__bg::after {
    animation: none;
    display: none;
  }

  .p-top-fv__content {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* =========================
お悩み
========================= */

.p-top-worry__ttl-em {
  color: var(--c-main);
}

.p-top-worry__list {
  margin: 0 0 48px;
}

.p-top-worry__card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 100%;
}

.p-top-worry__card-txt {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--c-text);
}

.p-top-worry__message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.p-top-worry__message-icon,
.p-top-worry__message-visual {
  flex-shrink: 0;
  display: block;
}

.p-top-worry__message-icon {
  width: 64px;
  height: 64px;
}

.p-top-worry__message-visual {
  width: 88px;
  height: 88px;
}

.p-top-worry__message-body {
  flex: 1;
  max-width: 640px;
}

.p-top-worry__message-ttl {
  margin-bottom: 12px;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-main);
}

.p-top-worry__message-txt {
  margin: 0;
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--c-text-sub);
}

@media (min-width: 768px) {
  .p-top-worry__ttl,
  .p-top-news__ttl {
    margin-bottom: 56px;
  }

  .p-top-worry__list {
    margin-bottom: 64px;
  }

  .p-top-worry__icon {
    width: 80px;
    height: 80px;
  }

  .p-top-worry__message {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: left;
  }

  .p-top-worry__message-icon {
    width: 80px;
    height: 80px;
  }

  .p-top-worry__message-visual {
    width: 100px;
    height: 100px;
  }
}

/* =========================
任せっぱなしリスク
========================= */

.p-top-risk {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--c-main) 43%,
    #6ac6ff 84%,
    #2884ff 100%
  );
}

.p-top-risk .container {
  position: relative;
  z-index: 1;
}

.p-top-risk__ttl {
  margin-bottom: 24px;
}

.p-top-risk__lead {
  margin-bottom: 20px;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-white);
}

.p-top-risk__txt {
  margin-bottom: 32px;
  font-size: var(--fz-body);
  color: var(--c-white-muted);
}

.p-top-risk__warn {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.p-top-risk__warn-ttl {
  margin-bottom: 20px;
  color: var(--c-main);
}

.p-top-risk__warn-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-top-risk__warn-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text);
}

.p-top-risk__warn-icon {
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
  margin-top: 4px;
  color: var(--c-accent);
}

.p-top-risk__media {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  width: min(52vw, 560px);
  pointer-events: none;
}

.p-top-risk__photo-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

.p-top-risk__diagram-img {
  display: block;
  width: min(78%, 360px);
  height: auto;
  margin-right: 24%;
}

.p-top-risk__note {
  width: min(88%, 400px);
  margin: 0;
  padding-right: 28%;
  font-size: 14px;
  line-height: 1.8;
  text-align: right;
  color: var(--c-white-muted);
}

@media (min-width: 768px) {
  .p-top-risk__ttl {
    margin-bottom: 28px;
    font-size: var(--fz-h2-lg-md);
  }

  .p-top-risk__lead {
    margin-bottom: 24px;
  }

  .p-top-risk__txt {
    margin-bottom: 40px;
  }

  .p-top-risk__media {
    gap: 24px;
    width: clamp(550px, 46vw, 750px);
  }

  .p-top-risk__diagram-img {
    width: min(82%, 400px);
  }

  .p-top-risk__note {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .p-top-risk {
    display: flex;
    flex-direction: column;
  }

  .p-top-risk .container {
    order: 1;
  }

  .p-top-risk__media {
    position: relative;
    order: 2;
    width: 100%;
    max-width: 400px;
    margin: 32px 0 0 auto;
    align-items: center;
    gap: 16px;
  }

  .p-top-risk__diagram-img {
    width: min(92%, 320px);
    margin-right: 0;
  }

  .p-top-risk__note {
    width: 100%;
    padding-right: 0;
    text-align: center;
  }
}

/* =========================
ご提供サービス
========================= */

.p-top-service__head {
  margin-bottom: 40px;
}

.p-top-service__ttl-em {
  font-size: 1.2em;
  color: var(--c-main);
}

.p-top-service__head-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 13 / 6;
  object-fit: cover;
}

.p-top-service__list {
  margin: 0 0 24px;
}

.p-top-service__list--sub {
  margin-bottom: 32px;
}

.p-top-service__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.p-top-service__card--primary {
  border-color: var(--c-main);
}

.p-top-service__icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
}

.p-top-service__card-ttl {
  text-align: center;
}

.p-top-service__card--primary .p-top-service__card-ttl {
  padding-bottom: 12px;
}

.p-top-service__card--primary .p-top-service__card-ttl::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 12px auto 0;
  background-color: var(--c-accent);
}

.p-top-service__card-txt {
  flex: 1;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--c-text-sub);
}

.p-top-service__card-price {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--c-text);
}

.p-top-service__note {
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-text-sub);
}

.p-top-service__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px 24px;
  border-radius: 10px;
  background-color: var(--c-bg-blue);
  text-align: center;
}

.p-top-service__cta-txt {
  margin: 0;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--c-text);
}

@media (min-width: 768px) {
  .p-top-service__head {
    margin-bottom: 56px;
  }

  .p-top-service__list {
    margin-bottom: 32px;
  }

  .p-top-service__list--sub {
    margin-bottom: 40px;
  }

  .p-top-service__icon {
    width: 64px;
    height: 64px;
  }

  .p-top-service__note {
    margin-bottom: 40px;
  }

  .p-top-service__cta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 40px 48px;
    text-align: left;
  }

  .p-top-service__cta .c-btn--primary {
    flex-shrink: 0;
  }
}

/* =========================
当事務所の特徴
========================= */

.p-top-feature__inner {
  padding: 40px 24px;
  border-radius: 20px;
  background-color: var(--c-bg-gray);
}

.p-top-feature__head {
  margin-bottom: 32px;
  text-align: center;
}

.p-top-feature__card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 8px;
  align-items: start;
  width: 100%;
  height: 100%;
}

.p-top-feature__icon {
  grid-row: 1 / 3;
  display: block;
  width: 56px;
  height: 56px;
}

.p-top-feature__card-ttl {
  line-height: 1.7;
  letter-spacing: 0.05em;
}

.p-top-feature__card-txt {
  margin: 0;
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--c-text-sub);
}

@media (min-width: 768px) {
  .p-top-feature__inner {
    padding: 64px 48px;
  }

  .p-top-feature__head {
    margin-bottom: 48px;
  }

  .p-top-feature__icon {
    width: 100px;
    height: 100px;
  }

  .p-top-feature__card {
    column-gap: 20px;
    row-gap: 12px;
  }
}

/* =========================
代表プロフィール
========================= */

.p-top-profile {
  background-color: var(--c-profile-bg);
  overflow: hidden;
}

.p-top-profile__content {
  padding: 48px 24px;
}

.p-top-profile__ttl {
  margin-bottom: 32px;
}

.p-top-profile__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 24px;
  margin-bottom: 28px;
}

.p-top-profile__name {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--c-white);
}

.p-top-profile__role {
  margin: 0 0 0 clamp(0rem, 2vw, 2rem);
  font-size: var(--fz-small);
  line-height: 1.8;
  color: var(--c-white-muted);
}

.p-top-profile__bio-ttl {
  margin-bottom: 12px;
  color: var(--c-white);
}

.p-top-profile__txt {
  margin-bottom: 20px;
  font-size: var(--fz-body);
  color: var(--c-white-muted);
}

.p-top-profile__txt:last-child {
  margin-bottom: 0;
}

.p-top-profile__visual {
  min-height: 320px;
}

.p-top-profile__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center top;
}

@media (min-width: 768px) {
  .p-top-profile__content {
    padding: 80px 48px;
  }

  .p-top-profile__intro {
    margin-bottom: 32px;
  }

  .p-top-profile__visual {
    min-height: 100%;
  }

  .p-top-profile__img {
    min-height: 100%;
  }
}

@media (min-width: 992px) {
  .p-top-profile__content {
    padding: 100px 64px 100px clamp(24px, 12vw, 400px);
  }

  .p-top-profile__img {
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* =========================
ご相談の流れ
========================= */

.p-top-flow__head {
  margin-bottom: 48px;
  text-align: center;
}

.p-top-flow__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  margin-top: 16px;
  padding-top: 40px;
  text-align: center;
}

.p-top-flow__step {
  position: absolute;
  top: -16px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--c-main);
  font-family: var(--font-family-en);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-white);
  transform: translateX(-50%);
}

.p-top-flow__icon {
  margin-bottom: 16px;
}

.p-top-flow__card-txt {
  margin: 0;
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--c-text-sub);
}

@media (min-width: 768px) {
  .p-top-flow__icon {
    width: 100px;
    height: 100px;
  }
}

@media (min-width: 992px) {
  .p-top-flow__item {
    position: relative;
  }

  .p-top-flow__item:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: -10px;
    z-index: 1;
    font-size: 20px;
    line-height: 1;
    color: var(--c-main);
    transform: translateY(-50%);
  }
}

/* =========================
お知らせ
========================= */

.p-top-news__ttl {
  color: var(--c-main);
}

.p-top-news__link {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 8px;
  align-items: start;
  width: 100%;
  height: 100%;
  padding: 20px;
  color: inherit;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.p-top-news__link:hover {
  color: inherit;
  background-color: var(--c-bg-blue);
}

.p-top-news__link:hover .p-top-news__card-ttl {
  color: var(--c-main);
}

.p-top-news__thumb {
  grid-row: 1 / span 3;
  flex-shrink: 0;
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
  background-color: var(--c-bg-gray);
}

.p-top-news__date,
.p-top-news__card-ttl,
.p-top-news__card-txt {
  grid-column: 2;
  min-width: 0;
}

.p-top-news__date {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-family-en);
  font-size: var(--fz-small);
  line-height: 1.6;
  color: var(--c-text-sub);
}

.p-top-news__card-ttl {
  margin-bottom: 8px;
  font-size: var(--fz-h3-sm);
  transition: color 0.3s ease;
}

.p-top-news__card-txt {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-text-sub);
}

@media (min-width: 768px) {
  .p-top-news__link {
    padding: 24px;
  }

  .p-top-news__thumb {
    width: 120px;
    height: 120px;
  }

  .p-top-news__card-ttl {
    font-size: var(--fz-h3-md);
  }
}

/* =========================
お問い合わせ
========================= */

.p-top-contact {
  position: relative;
  overflow: hidden;
  background-color: var(--c-main);
}

.p-top-contact__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.p-top-contact__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(10, 91, 200, 0.96) 0%,
    rgba(10, 91, 200, 0.9) 42%,
    rgba(10, 91, 200, 0.55) 100%
  );
}

.p-top-contact__bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.p-top-contact__inner {
  position: relative;
  z-index: 1;
}

.p-top-contact__ttl {
  margin-bottom: 24px;
  font-size: var(--fz-h2-lg);
  line-height: 1.5;
  color: var(--c-white);
}

.p-top-contact__txt {
  margin-bottom: 20px;
  font-size: var(--fz-body);
  color: var(--c-white-muted);
}

.p-top-contact__txt:last-child {
  margin-bottom: 0;
}

.p-top-contact .c-form__label,
.p-top-contact .c-form__check-txt,
.p-top-contact .c-form__link {
  color: var(--c-white);
}

.p-top-contact .c-form__required {
  color: #ffd4d4;
}

.p-top-contact .c-form__link:hover,
.p-top-contact .c-form__link:focus {
  color: rgba(255, 255, 255, 0.85);
}

.p-top-contact .form-control:focus,
.p-top-contact .form-select:focus {
  border-color: transparent;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.35);
}

@media (min-width: 768px) {
  .p-top-contact__ttl {
    margin-bottom: 32px;
  }
}

@media (max-width: 767.98px) {
  .p-top-contact__bg::before {
    background: linear-gradient(
      180deg,
      rgba(10, 91, 200, 0.95) 0%,
      rgba(10, 91, 200, 0.88) 100%
    );
  }
}
