@charset "UTF-8";
/* ==========================================================================
  Foundation
========================================================================== */
/* Variables */
:root {
    --color-primary: #001752;
    --color-accent: #ffa200;
    --color-accent-gradation: #FFBA43;
    --color-accent-hover: #d36e10;
    --color-text: #333;
    --color-text-light: #666;
    --color-text-white: #fff;
    --color-text-accent: #ffcc00;
    --color-background-light: #E1E6F3;
    --color-background-feature: #BBC7E6;
    --color-background-salary: #FCEEA6;
    --color-banner: #021F68;
    --color-highlight: #d35400;
    --color-border-white: #fff;
    --color-border: #ddd;
    --color-gold: #eebf3b;

    --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    --font-handwriting: 'Dancing Script', cursive;

    --width-inner: 1040px;
    --width-inner-narrow: 900px;
    --breakpoint-pc: 1080px;
}

/*base*/
html {
  font-size: 62.5%;
  scroll-padding-top: 65px;
}

@media screen and (min-width: 1080px) {
  html {
    scroll-padding-top: 100px;
  }
}

html:focus-within {
  scroll-behavior: auto;
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: scroll;
  min-height: 100vh;
  margin: 0;
  color: #1E242C;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 1.5em;
  font-weight: 500;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

:focus:not(:focus-visible) {
  outline: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

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

a[href*="tel:"] {
  cursor: pointer;
}

img {
  height: auto;
}

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

ol {
  margin: 0;
  padding-left: 0;
}

input,
select,
textarea {
  padding: 0;
  font-size: 1.5rem;
}

input::-ms-reveal {
  visibility: hidden;
}

input[type=checkbox], input[type=radio], input[type=button], input[type=submit] {
  cursor: pointer;
}

input[type=submit] {
  -webkit-appearance: none;
}

textarea {
  resize: none;
}

button {
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

select {
  cursor: pointer;
}

hr {
  border: none;
  border-top: 1px solid #35383a;
  margin: 1rem 0;
}

rt {
  padding: 0.2rem;
  text-align: center;
}

/* ==========================================================================
  Layout (l-)
========================================================================== */
.l-wrapper {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  background-color: #fff;
}

.l-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255,255,255,.8);
  z-index: 400;
}

.l-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  margin: 0 auto;
  width: 100%;

  @media screen and (min-width: 1080px) {
    height: 10rem;
    max-width: 192rem;
    padding-inline: clamp(4rem, 50dvw - 55rem, 10rem);
  }
}

.l-header__nav {
  display: flex;
  gap: .5rem;
  position: relative;

  @media screen and (min-width: 1080px) {
    gap: 2.5rem;
  }
}

.l-header__logo {
  height: auto;
  width: 20.7rem;

  @media screen and (min-width: 1080px) {
    width: 23rem;
  }
}

.l-main {
  width: 100%;

  & > * + * {
    margin-top: 50px;
  }

  @media screen and (min-width: 1080px) {
    & > * + * {
      margin-top: 80px;
    }
  }
}

.l-inner {
  padding-inline: 20px;
  margin-inline: auto;

  @media screen and (min-width: 1080px) {
    padding-inline: 0;
    max-width: var(--width-inner);
  }
}

.l-inner--narrow {
  @media screen and (min-width: 1080px) {
    max-width: var(--width-inner-narrow);
  }
}

/* ==========================================================================
  Object > Component (c-)
========================================================================== */
/* arrow */
.c-arrow-link {
  display: block;
  padding-right: 30px;
  position: relative;

  &::after {
    content: '';
    display: inline-block;
    height: .8rem;
    width: .8rem;
    position: absolute;
    top: calc(50% - .4rem);
    right: 16px;
    border-right: 2px solid #ccc;
    border-top: 2px solid #ccc;
    transform: rotate(45deg);
  }
}

.c-arrow-link--second {
  display: block;
  padding-right: 30px;
  position: relative;

  &::after {
  border-color: #000;
  }
}

/* Buttons */
.c-button {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--color-primary);
  width: 100%;
  border-radius: 2px;
  padding: 1rem 1.5rem;
  margin-inline: auto;
  background-color: #fff;
  color: var(--color-primary);

  @media (any-hover: hover) {
    & .c-arrow,
    & .c-arrow > * {
      transition: background-color .3s;
    }

    &:hover .c-arrow{
      background-color: #fff;
    }

    &:hover .c-arrow::before,
    &:hover .c-arrow::after {
      background-color: var(--color-primary);
    }
  }
}

/* Modifier: Primary (Hero Button) */
.c-button--primary {
  border-color: #fff;
  border-radius: .4rem;
  padding-inline: 4.5rem;
  background: linear-gradient(to left, var(--color-accent), var(--color-accent-gradation));
  color: #fff;
  font-weight: bold;
}

.c-button--detail {
  max-width: 300px;
  margin-inline: auto;
}

/* Modifier: Video Button (Black) */
.c-button--video-overlay {
  position: absolute;
  bottom: 10.3rem;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 2rem;
  padding: .6rem 1.5rem;
  width: fit-content;
  max-width: 25.4rem;
  border: none;
  border-radius: 2px;
  background-color: rgba(69,69,69,.8);
  color: #fff;
  line-height: 1.5;

  & .c-button__icon {
    padding-top: .3rem;
  }

  @media screen and (min-width: 768px) {
    top: max(min(calc(100svh - 8.8rem - 32rem), calc(100% - 8.8rem)), 8rem);
    bottom: auto;
    transform: translate(-50%, -100%);
  }

  @media screen and (min-width: 1080px) {
    top: auto;
    bottom: 4rem;
    max-width: 29.2rem;
    font-size: 1.7rem;
    transform: translateX(-50%);
  }
}

.c-button__time {
  grid-area: 2 / 1 / 3 / 3;
}

.p-button-overlay-wrapper {
  position: fixed;
  bottom: 2rem;
  right: 0;
  left: 0;
  margin-inline: auto;
  width: 85%;
  max-width: 40rem;
  z-index: 300;
}

.p-button-overlay-wrapper > a {
  @media screen and (min-width: 1080px) {
    display: none;
  }
}

/* Modifier: Contact Buttons */
.c-button--icon {
  gap: 8px;
  width: 30rem;
}

.c-button--mail {
  padding-inline: 1.5rem;
  color: #fff;

  & .c-button__icon-img {
    width: 1.8rem;
    height: 1.8rem;
    background-image: url(../img/cmn/cmn_icon_mail.svg);
  }

  @media (any-hover: hover) {
    &:hover .c-button__icon-img {
      background-image: url(../img/cmn/cmn_icon_mail-color.svg);
    }
  }
}

.c-button--tel {
  border-color: var(--color-text);
  background-color: #fff;
  color: var(--color-text);

  & .c-button__icon-img {
    width: 1.8rem;
    height: 1.8rem;
    background-image: url(../img/cmn/cmn_icon_tel.svg);
  }
}

/* Section */
.c-section {

  & > * + * {
    margin-top: 1.5rem;
  }

  @media screen and (min-width: 1080px) {
    & > * + * {
      margin-top: 3rem;
    }
  }
}

.c-section--appeal {
  & > * + * {
    margin-top: 5rem;
  }

  @media screen and (min-width: 1080px) {
    & > * + * {
      margin-top: 8rem;
    }
  }
}

.c-section-header {
  color: var(--color-text);
  font-weight: bold;
  line-height: 1.4;

  & + * {
    margin-top: 3rem;
  }

  @media screen and (min-width: 1080px) {
    text-align: center;
  }
}

.c-section-header__english {
  font-size: 4rem;
}

.c-section-header__japanese {
  font-size: 1.6rem;
  line-height: 1.7;

  @media screen and (min-width: 1080px) {
    font-size: 1.8rem;
  }
}

/* Icons */
.c-menu-button {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: .5rem;
  justify-content: center;
  position: relative;
  height: 4.5rem;
  width: 4rem;
  color: var(--color-text);
  font-size: 3rem;

  @media screen and (min-width: 1080px) {
    display: none;
  }
}

.c-button--mail,
.c-button--tel {
  @media screen and (min-width: 1080px) {
    width: 100%;
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 500;
  }
}

@media (any-hover: hover) {
  .c-button,
  .c-hover-brightness,
  .c-hover-color-change {
    &:hover {
      transition: 0.15s;
    }
  }

  .c-arrow-link--second {
    &:hover::after {
      border-color: #ccc;
    }
  }

  .c-button {
    position: relative;
    z-index: 1;

    &::before {
      content: "";
      display: block;
      width: 100%;
      height: calc(100% + 1px);
      position: absolute;
      top: 0;
      left: 0;
      background: var(--color-primary);
      border-radius: 2px;
      transform-origin: 100% 50%;
      transform: scaleX(0);
      transition: transform ease .3s;
      z-index: -1;
    }

    &:hover {
      color: var(--color-text-white);
    }

    &:hover::before {
      transform-origin: 0% 50%;
      transform: scaleX(1);
    }
  }

  .c-button--primary {
    &::before {
      border-radius: .4rem;
      background: var(--color-text-white);
    }

    &:hover {
      border-color: var(--color-accent);
      color: var(--color-accent);
    }

    &:hover::before {
      height: 100%;
    }
  }

  .c-hover-color-change {
    &:hover {
      color: #ccc;
    }
  }

  .c-hover-brightness {
    &:hover {
      filter: brightness(120%);
    }
  }

  .c-button--tel {
    &::before {
      background: #555;
    }

    &:hover::before {
      height: 100%;
    }

    &:hover .c-button__icon-img {
      background-image: url(../img/cmn/cmn_icon_tel-white.svg);
    }
  }

  .c-button--video-overlay {
    position: absolute;

    &:hover::before {
      height: 100%;
    }
  }

  .p-button-overlay-wrapper > a {
    &:hover::after {
      border-color: var(--color-accent);
    }
  }
}

/* ==========================================================================
  Object > Project (p-)
========================================================================== */
/* Logo */
.p-logo {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;

  @media screen and (min-width: 1080px) {
    font-size: 18px;
  }
}

/* ==========================================================================
   Project: Floating Menu (Hamburger Content)
   ========================================================================== */
/* Overlay (背景の暗幕) */
.p-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒 */
  z-index: 900; /* ヘッダーより上、メニューより下 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.p-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}
/* Menu Container (黒いボックス) */
.p-floating-menu {
    position: absolute;
    top: 0;
    right: -5px;
    width: calc(100dvw - 40px); /* 左右余白分引く */
    max-width: 350px; /* PCなどで広がりすぎないように制限 */
    background-color: #111; /* 真っ黒に近いグレー */
    color: #fff;
    border-radius: 16px;
    padding: 60px 30px 30px; /* 上パディングは閉じるボタン用 */
    z-index: 1000; /* 最前面 */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);

    @media screen and (min-width: 1080px) {
      position: static;
      width: 100%;
      height: 100%;
      max-width: none;
      padding: 0;
      background-color: transparent;
      color: #111;
      opacity: 1;
      visibility: visible;
      box-shadow: none;
      transform: none;
      transition: none;
    }
}


/* Active State */
.p-floating-menu.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
/* Close Button (右上の白い丸) */
.p-floating-menu__close-button {
    position: absolute;
    top: 15px;
    right: 10px;
    width: 32px;
    height: 32px;
    background-color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;


    @media screen and (min-width: 1080px) {
      display: none;
    }
}
.p-floating-menu__close-button:active {
    transform: scale(0.9);
}
.p-floating-menu__close-icon {
    font-size: 20px;
    line-height: 1;
    color: #333;
    font-weight: bold;
    margin-top: -2px; /* 視覚調整 */
}
/* Navigation List */

.p-floating-menu__item {
    border-bottom: 1px solid #444; /* 薄いグレーの線 */
}

.p-floating-menu__item:first-child {
    border-top: 1px solid #444;
}

.p-floating-menu__item--pc {
  display: none;
}

.p-floating-menu__link {
  display: flex;
  padding-block: 2rem;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.2s;

  &:hover {
    color: #ccc;
  }
}

@media screen and (min-width: 1080px) {
  .p-floating-menu__list {
    display: flex;
    flex-direction: row;
    align-items: center;

  }
  .p-floating-menu__item {
    position: relative;
    border: none;
    height: 8.2rem;

    &:first-child {
      border: none;
    }

    &:not(:last-child):hover {
      & > * {
        color: var(--color-banner);
      }

      &::before {
        content: "";
        display: block;
        position: absolute;
        right: 0;
        bottom: .2rem;
        left: 0;
        width: 5rem;
        height: .3rem;
        margin-inline: auto;
        background-color: var(--color-primary);
        transform: translateX(-2rem);
      }
    }
  }
  .p-floating-menu__item--pc {
    display: flex;
    align-items: center;
  }

  .p-floating-menu__link {
    display: flex;
    align-items: center;
    padding-right: 4rem;
    height: 100%;
    color: #111;
    font-size: clamp(1.4rem, 1.1rem + 0.45dvw, 1.8rem);

    &::after {
      display: none;
    }
  }
}

/* Top Banner */
.p-main {
  position: relative;
  height: 100%;
  margin-top: 4rem;
}

.p-top-bg {
  position: relative;
  width: 41rem;
  height: 26rem;
  margin-top: 0;
  z-index: 0;
}

.p-top-bg__img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-top-banner {
  position: absolute;
  top: 1.5rem;
  width: 100%;
  z-index: 50;

  @media screen and (min-width: 1080px) {
    position: static;
    z-index: 100;
  }
}

.p-top-banner--sp {
  @media screen and (min-width: 1080px) {
    display: none;
  }
}

.p-top-banner--pc {
  @media screen and (min-width: 1080px) {
    grid-area: 2 / 1 / 3 / 2;
    padding: 10px;
    font-size: 14px;
    flex-direction: column;
    margin-top: 0;
  }
}


.p-top-banner__link {
  display: block;
  position: relative;
  width: 100%;
}

.p-top-banner-wrapper {
  display: none;
  height: 9.6rem;
  width: 25rem;
  z-index: 50;

  @media screen and (min-width: 1080px) {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
  }
}

.p-top-banner-sp-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  height: 5.2rem;
  width: 100%;
  background-color: var(--color-banner);
  z-index: 50;
}

.p-top-banner-sp {
    height: auto;
    width: 100%;
    max-width: 37.5rem;
    margin-inline: auto;

    @media screen and (min-width: 1080px) {
      display: none;
    }
}

.p-top-banner__img {
  height: auto;
  width: 100%;
}

/* Hero Section */
.p-hero {
  padding-top: 10rem;

  @media screen and (min-width: 1080px) {
    display: grid;
    grid-template-columns: 3fr 4fr;
    gap: 4rem clamp(10rem, 10dvw, 18rem);
    position: relative;
    padding-top: 8rem;
    padding-inline: 6rem 9rem;
    height: min(calc(100svh - 7.8rem),calc(75.1rem + 8rem)); /* 動画の高さ+余白 */
    margin-inline: auto;
    max-width: 192rem;
    z-index: 1;

    &::after {
      content: "";
      display: block;
      position: absolute;
      bottom: -7rem;
      width: 60%;
      height: 55%;
      background: url(../../assets/img/top/main_background.webp) no-repeat center / cover;
      z-index: -1;
    }
  }

  @media screen and (min-width: 1300px) {
    padding-inline: 14rem 21rem;
  }
}

.p-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;

  & + * {
    margin-top: 4rem;
  }

  @media screen and (min-width: 1080px) {
    flex-direction: row;
    align-items: end;
  }
}

.p-hero__title {
  width: 100%;
  padding-inline: 6rem;

  @media screen and (min-width: 1080px) {
    width: 62.5rem;
    padding: 0;
  }
}

.p-hero__media {
  position: relative;
  width: 100%;

  & + * {
    margin-top: 8rem;
  }
}

.p-hero__img-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.p-hero__img {
  position: relative;
  left: 50%;
  height: max(calc(100svh - 30rem), 40rem);
  max-height: 68rem;
  width: fit-content;
  margin-inline: auto;
  transform: translateX(-50%);
}

.p-hero__placeholder {
  width: 100%;
}

@media screen and (min-width: 530px) {
  .p-hero__media {
    max-width: 80rem;
    margin-inline: auto;
  }

  .p-hero__img-wrapper {
    height: 100%;
  }

  .p-hero__img {
    width: 100%;
    max-height: calc(100svh - 30rem);
    object-fit: cover;
  }
}

@media screen and (min-width: 1080px) {
  .p-hero__img {
    height: 100%;
    width: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: 16 / 15;
  }

  .p-hero__media {
  grid-area: 1 / 2 / 3 / 3;
  margin-top: 0;
  }
}

.p-lead {
  margin-top: 8rem;

  & > * + * {
    margin-top: 2.5rem;
  }
}

@media screen and (min-width: 1080px) {
  .p-lead {
    margin-top: 20rem;
    margin-bottom: 3rem;
  }
}


.p-bg {
  position: relative;

  &::after {
    content: "";
    display: block;
    position: absolute;
    bottom: -10rem;
    width: 100%;
    height: 50%;
    background-color: #fff;
    z-index: 0;
  }
}

.p-bg--feature {
  &::after {
    background-color: var(--color-background-feature);
  }
}

.p-bg--appeal {
  &::after {
    background-color: var(--color-background-light);
  }
}

.p-bg--salary {
  &::after {
    display: none;
  }
}

@media screen and (min-width: 1080px) {
  .p-bg {
    &::after {
      bottom: -24rem;
      width: 100%;
      height: 50%;
      z-index: 0;
    }

    & + & {
      margin-top: 16rem;
    }
  }
  .p-bg--appeal {
    margin-top: 16rem;
  }

  .p-bg--salary {
    &::after {
      display: block;
      top: -4rem;
      background-color: var(--color-primary);
      width: 110dvw;
      height: 100dvw;
      margin-left: calc(50% - 50dvw);
      transform: translateX(-20rem);
      z-index: 0;
    }
  }
}

/* Feature */
.p-feature {
  position: relative;
  margin-top: 5rem;
  background-color: var(--color-background-feature);
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
  z-index: 1;

  @media screen and (min-width: 1080px) {
    margin-top: 16rem;
    border-top-left-radius: 3rem;
    border-top-right-radius: 3rem;
  }
}

.p-feature__heading-wrapper {
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
  padding-block: 3rem 2rem;
  background-color: var(--color-primary);
  font-weight: bold;
  text-align: center;

  & > * + * {
    margin-top: .6rem;
  }

  @media screen and (min-width: 1080px) {
    padding-block: 4rem;
    border-top-left-radius: 3rem;
    border-top-right-radius: 3rem;
  }
}

.p-feature__heading {
  color: var(--color-text-white);
  font-size: 2.4rem;
  letter-spacing: .08em;
  line-height: 1.5;

  @media screen and (min-width: 1080px) {
    font-size: 4.4rem;
  }
}

.p-feature__heading-dots {
background-image: radial-gradient(circle at center, var(--color-text-accent) 15%, transparent 15%, transparent);
  background-position: top left -1px;
  background-repeat: round no-repeat;
  background-size: 1em 0.3em;
  padding-top: .1em;
}

.p-feature__heading-color {
  color: var(--color-text-accent);
}

.p-feature-card {
  position: relative;
  max-width: calc(100% - 40px);
  margin-inline: auto;

  & + & {
    margin-top: 4rem;
  }

  &:first-of-type {
    padding-top: 3rem;
  }
}

.p-feature-card__title-wrapper {
  & > * + * {
    margin-top: 1rem;
  }
}

.p-feature-card__title {
  font-weight: bold;
  line-height: 1.4;
  font-size: 1.6rem;
}

.p-feature-card__description {
  & + * {
    margin-top: 3rem;
  }
}

.p-image {
  height: auto;
  width: 100%;
  max-width: 67rem;
  margin-inline: auto;
}

.p-feature-card__advertisement {
  font-size: 2.4rem;
}

@media screen and (min-width: 1080px) {
  .p-feature-card__advertisement {
    font-size: 2.8rem;
  }
}

.p-feature-card__button {
  padding: 1.5rem;
}

@media screen and (min-width: 1080px) {
  .p-feature-card {
    display: grid;
    gap: 2rem 4rem;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 6.4rem 1fr;
    min-height: 30rem;
    width: 104rem;
    padding-block: 0;

    &:first-of-type {
      padding-top: 10rem;
    }

    & + & {
      margin-top: 8rem;
    }
  }

  .p-image--pc-small {
    width: 46.8rem;
  }

  .p-feature-card__title-wrapper {
    grid-area: 1 / 2 / 2 / 3;
    height: fit-content;
  }

  .p-image--feature-card {
    grid-area: 1 / 1 / 3 / 2;
    margin-top: 0;
  }

  .p-feature-card__description {
    grid-area: 2 / 2 / 3 / 3;
    margin-top: 0;

    & + * {
      margin-top: 6rem;
    }
  }

  .p-feature-card__button-wrapper {
    grid-area: 3 / 1 / 4 / 3;
  }
}

.p-appeal-lead-wrapper {
  & > * + * {
    margin-top: 2rem;
  }
}

.p-appeal-lead__img-wrapper {
  @media screen and (min-width: 1080px) {
    padding-block: 3.6rem 4.4rem;
    background-color: #fff;
  }
}

.p-appeal-lead__img {
  width: 70%;
  max-width: 40rem;
  margin-inline: auto;
}

.p-appeal-card__title {
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.6;
}

.p-appeal-card__title-large {
  font-size: 2.4rem;
}

.p-appeal-card-contents {
  & + & {
    margin-top: 4rem;
  }

  & img {
    width: 100%;
    aspect-ratio: 5 / 3;
  }
}

.p-appeal-card-text {
  & + & {
    margin-top: 2.5rem;
  }
}

.p-appeal-accordion__heading {
  font-size: 1.6rem;
  font-weight: bold;
  padding-bottom: 1rem;
}

.p-appeal-accordion__summary {
  position: relative;
  border: solid var(--color-border);
  border-width: 0px 1px 1px;
  padding: 1rem;
  background-color: var(--color-primary);
  color: var(--color-text-white);

  &::after {
    content: "";
    display: block;
    position: absolute;
    top: 40%;
    right: 2rem;
    border-bottom: 2px solid var(--color-border-white);
    border-left: 2px solid var(--color-border-white);
    height: 1rem;
    width: 1rem;
    transform: rotate(-45deg);
    transition: border-color 0.3s, transform 0.3s;
  }
}

.p-appeal-accordion:first-of-type .p-appeal-accordion__summary{
  border-top-width: 1px;
}

.p-appeal-accordion[open] .p-appeal-accordion__summary {
  &::after {
    transform: rotate(135deg);
  }
}

.p-appeal-accordion__content {
  border: solid var(--color-border);
  border-width: 0px 1px 1px;
  padding: 1rem;
  background-color: #fff;
}

@media screen and (min-width: 768px) {
  .p-appeal-card__title {
    font-size: 1.6rem;
  }

  .p-appeal-card__title-large {
    font-size: 2.8rem;
  }
  .p-appeal-card-contents {
    display: grid;
    gap: 2rem 4rem;
    grid-template-columns: 3fr 2fr;

    & > * {
      margin-top: 0;
    }
  }

  .p-appeal-card-contents--record {
    display: block;
  }

  .p-appeal-card-content__img {
    grid-area: 1 / 2 / 3 / 3;
  }

  .p-appeal-accordion {
    display: grid;
    grid-template-columns: 1fr 3fr;
  }

  .p-appeal-accordion__summary {
    border-width: 0px 0px 1px 1px;
    pointer-events: none;

    &::after {
      display: none;
    }
  }

  .p-appeal-accordion__content {
    display: block;
  }

  .p-appeal-accordion:first-of-type .p-appeal-accordion__content{
    border-top-width: 1px;
  }
}

.p-salary__summary {
  position: relative;
  border: .4rem solid var(--color-primary);
  margin: 4rem 2rem 3rem;
  padding: 3rem 1.5rem;
  width: calc(100% - 4rem);
  font-weight: bold;
  background-color: #fff;
  box-shadow: 0 .3rem .6rem rgba(0,0,0,.16);
  text-align: center;
  z-index: 50;
}

.p-salary-appeal {
  margin-top: 6.5rem;
}

.p-salary-appeal__img-wrapper {
  position: relative;
  margin-inline: auto;
  background-color: var(--color-banner);
  z-index: 1;
}

.p-salary-appeal__img {
  max-width: 50rem;
  margin-inline: auto;
}

.p-salary--margin-first {
  margin-block: 4rem 5rem;
}

@media screen and (min-width: 1080px) {
  .p-salary-appeal {
    position: relative;
    margin-top: 10rem;
    background-color: var(--color-primary);
    z-index: 1;
  }

  .p-salary__summary {
    display: none;
  }
  .p-salary-appeal__img {
    position: relative;
    max-width: none;

    & img {
      margin-inline: auto;
      width: 100%;
    }
  }
}

.p-salary {
  position: relative;
  border-radius: 30px;
  max-width: calc(100% - 40px);
  margin-inline: auto;
  background-color: var(--color-background-feature);
  box-shadow: 0 -.3rem 1rem rgba(0,23,18,.05);
  z-index: 50;


  @media screen and (min-width: 1080px) {
    border-radius: 0;
    max-width: 100%;
    box-shadow: none;
  }

  &:first-of-type {
    @media screen and (min-width: 1080px) {
      border-radius: 60px 60px 0 0;
      margin-top: calc(clamp(5rem, 5dvw, 8rem) * -1);
    }
  }
}

.p-salary--color-first {
  background-color: var(--color-background-salary);
}

.p-salary__inner {
  margin-inline: auto;
  padding-block: 30px;

  @media screen and (min-width: 1080px) {
    max-width: var(--width-inner);
    padding-block: 12rem;
  }
}

.p-salary-title__catch {
  color: var(--color-primary);
  font-weight: bold;
}

.p-salary-title__catch--bonus {
  line-height: 1.3;
}

.p-salary-title__number {
  font-size: 25px;
}

.p-salary-title__number--space {
  letter-spacing: .12em;
}

@media screen and (min-width: 1080px) {
  .p-salary-title {
    & > .p-salary-title__catch {
      font-size: 2.2rem;
      line-height: 1.2;
    }

    & > .p-salary-title__catch--bonus {
      font-size: 1.8rem;
    }

    & .p-salary-title__number {
      font-size: 3.3rem;
    }
  }

  .p-salary-title__catch + .p-salary-title__copy {
    margin-top: .5rem;
  }
}

.p-salary-title__copy {
  color: #fff;
  font-size: 24px;
  letter-spacing: -.03em;
  font-weight: bold;
  background-color: var(--color-primary);

  @media screen and (min-width: 1080px) {
    padding-block: 2rem;
  }
}

.p-salary-title__copy--color-first {
  display: none;

  @media screen and (min-width: 1080px) {
    display: block;
    padding-block: 1.5rem;
    font-size: 3.3rem;
    letter-spacing: .03em;
    line-height: 1.2;
  }
}

.p-salary__description {
  margin-bottom: 3rem;

  @media screen and (min-width: 1080px) {
    margin-bottom: 1.5rem;
  }
}

.p-salary__content {
  padding: 20px;

  & > .p-salary-title__catch:first-of-type {
    text-align: center;
  }

  @media screen and (min-width: 1080px) {
    padding: 4rem 6.5rem;
    background-color: #fff;

    & > .p-salary-title__catch:first-of-type {
      font-size: 2.2rem;
      text-align: start;
    }
  }
}

.p-salary__image {
  height: auto;
  width: 100%;
  max-width: 44.5rem;
  margin-inline: auto;
}

.p-salary__reason {
  margin-bottom: 4rem;
  background-color: #fff;
  padding: 2rem;

  @media screen and (min-width: 1080px) {
    margin-block: 1rem 4rem;
    padding: 4rem;
    border: 3px solid var(--color-primary);
  }
}

.p-salary-reason-list {
  & > * + * {
    margin-top: 1.5rem;
  }

  @media screen and (min-width: 1080px) {
    & > * + * {
      margin-top: 3rem;
    }
  }
}

.p-salary-reason-list__text {
  font-size: 1.2rem;

  * + & {
    margin-top: .5rem;
  }

  @media screen and (min-width: 1080px) {
    font-size: 1.5rem;
  }
}

.p-salary__simulation {
  display: grid;
  gap: 1.5rem;
  grid-template-columns:  1fr;

  @media screen and (min-width: 1080px) {
    gap: 5rem;
    grid-template-columns: 40rem auto;
    margin-top: 0;
  }
}

.p-salary-simulation-text {
  @media screen and (min-width: 1080px) {
    padding-top: 2rem;
  }
}

.p-salary-graph-title {
  position: absolute;
  top: 0;
  left: 50%;
  display: inline-block;
  border: 1px solid var(--color-primary);
  padding: 5px 20px;
  width: fit-content;
  border-radius: 15px;
  background-color: #fff;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: bold;
  transform: translate(-50%, -50%);

  &::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-primary);
    font-size: 10px;
    background: #fff;
    padding: 0 2px;
  }
}

.p-salary-graph {
  position: relative;
  background-color: #fff;
  border-radius: 10px;
  padding: 40px 20px 15px 20px;
}

.p-salary-graph__x-axis {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;

  &:first-child {
    border-bottom: 1px solid #ddd;
  }
}

.p-salary-graph__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 16%;
  max-width: 50px;
}

.p-salary-graph__amount {
  position: absolute;
  bottom: 10px;
  line-height: 1.2;
  text-align: center;
  font-size: 12px;
}

.p-salary-graph__number {
  font-size: 14px;
}

.p-salary-graph__bar {
  width: 100%;
  border-radius: 3px 3px 0 0;
}

.p-salary-graph__label {
  font-size: 14px;
  margin-top: 5px;
}

.p-salary-graph__bar--wdb {
  height: 100px;
  background-color: var(--color-gold);
}

.p-salary-graph__bar--other {
  background-color: #8ebdd9;
}

.p-salary__flow {
  margin-top: 3rem;

  @media screen and (min-width: 1080px) {
    margin-top: 6rem;
  }
}

.p-salary__flow-title {
  margin-bottom: 1rem;
  font-size: 2.4rem;
  font-weight: bold;
}

.p-salary__flow-list,
.p-salary__flow-list-content {
  width: 100%;

  & * + * {
    margin-top: 1rem;
  }

  & .p-salary__flow-list-link {
    display: inline-block;
    margin-top: 0;
  }
}


.p-salary__flow-list-content {
  &:last-of-type {
    margin-top: 3rem;
  }
}

.p-salary__flow-list {
  display: flex;
  align-items: center;
  flex-direction: column;
}

@media screen and (min-width: 1080px) {
  .p-salary__flow-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .p-salary__flow-list-content {
    height: 17rem;
    width: calc(calc(100% - 11rem) / 4);
    margin-top: 0;

    &:first-child {
      flex: 1;
    }

    &:last-of-type {
      width: 100%;
      height: fit-content;
      margin-top: 7rem;
    }
  }

  .p-salary__flow-list-content--margin-first {
    margin-right: 4rem;
  }

  .p-salary__flow-list-content-triangle {
    margin-inline: 1rem;
  }
}

.p-salary__flow-list-title {
  padding: .1rem 2rem .3rem;
  width: 100%;
  background-color: var(--color-primary);
  color: var(--color-text-white);
  font-weight: bold;
  text-align: center;
}

.p-salary__flow-list-title--petten-first {
  background-color: var(--color-accent);
  color: var(--color-text-white);
  text-align: center;
}

.p-salary__flow-list-title--petten-second {
  background-color: #999;
}

.p-detail-bg-wrapper {
  position: absolute;
  top: 12.6rem;
  left: -5%;
  height: auto;
  width: 110%;
  margin-inline: auto;
  overflow: hidden;
}
@media screen and (min-width: 1080px) {
  .p-detail-bg-wrapper {
    top: -1rem;
    left: 0;
    max-height: 150rem;
    width: 100%;
  }

  .p-detail-bg-wrapper--position-adjust {
    top: 3rem;
  }
}

.p-detail-bg {
  height: auto;
  width: 100%;
}

.p-card {
  position: relative;
  padding-top: 4rem;
  border-radius: 3rem 3rem 0 0;
  box-shadow: 0 -6px 10px -3px rgba(0,0,0,.05);
  z-index: 1;
}

.p-card--detail {
  position: relative;
  margin-top: calc(50dvw + 12.6rem);
  background-color: #fff;
  z-index: 50;
}

.p-card--appeal {
  background-color: var(--color-background-light);
}

.p-card--info {
  background-color: #fff;
}

@media screen and (min-width: 1080px) {
  .p-card {
    padding-top: 10rem;
  }

  .p-card--detail {
    margin-top: 62rem;
  }
}

.p-card__section {
  margin-top: 4rem;
}

@media screen and (min-width: 1080px) {
  .p-card__section {
    margin-top: 2rem;
  }
}

.p-card__heading-wrapper {
  & + * {
    margin-top: 2rem;
  }
}

@media screen and (min-width: 1080px) {
  .p-card__heading-wrapper {
    & + * {
      margin-top: 1.5rem;
    }
  }
}

.p-card__heading {
  color: var(--color-primary);
}

.p-card__heading--top {
  text-align: center;
}

.p-card__number {
  font-family: 'Oswald';
  font-size: 3rem;
  text-align: center;

  @media screen and (min-width: 1080px) {
    font-size: 3.5rem;
    text-align: left;
  }
}

.c-heading {
  font-weight: bold;
  font-size: 3rem;
  line-height: 1.5;
}

.c-heading--under-line {
  color: var(--color-primary);

  &::after {
    content: "";
    display: block;
    width: 5rem;
    height: .3rem;
    margin-top: .8rem;
    background-color: var(--color-primary);
  }
}

.c-heading--appeal {
  & + * {
    margin-top: 2rem;
  }
}

.c-heading--secondary {
  font-size: 24px;
}


@media screen and (min-width: 1080px) {
  .c-heading {
    font-size: 3.6rem;
  }

  .c-heading--appeal {
    & + * {
      margin-top: 5rem;
    }
  }

  .c-heading--secondary {
    font-size: 2.8rem;
  }
}

/* Salary Graph (within Features) */


/* Bonus Banner (within Features) */
.p-bonus-banner {
    margin-inline: auto;
    width: 100%;
    text-align: center;
    font-weight: bold;
}

@media screen and (min-width: 1080px) {
  .p-bonus-banner-pc {
    margin: 0;
    width: 30rem;
  }
}

.p-bonus-banner__img {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;

  & img {
    width: 100%;
    height: 100%;
  }

  @media screen and (min-width: 1080px) {
    border: 3px solid var(--color-primary);
    border-top: none;
  }
}

.c-triangle {
  height: 1.5rem;
  width: 3rem;
  background-color: #A7B4D6;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
}

@media screen and (min-width: 1080px) {
  .c-triangle {
    transform: rotate(-90deg);
  }
}

.p-salary__banner-wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  margin-block: 1rem 3rem;
}

@media screen and (min-width: 1080px) {
  .p-salary__banner-wrapper {
    flex-direction: row;
    gap: 2.5rem;
    justify-content: center;
  }
}

.p-salary__main-banner-wrapper {
  position: relative;
  height: fit-content;
  width: 100%;
  margin-bottom: 3rem;
  background-color: #fff;

  &::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    width: 100%;
    height: 20%;
    background-color: var(--color-primary);
    z-index: 0;
  }
}

.p-salary__main-banner {
  position: relative;
  height: auto;
  width: calc(100% - 2rem);
  max-width: 50rem;
  margin-inline: auto;
  z-index: 1;
}

@media screen and (min-width: 1080px) {
  .p-salary__main-banner-wrapper {
    margin-bottom: 6rem;

    &::after {
      display: none;
    }
  }

  .p-salary__main-banner {
    max-width: none;
  }
}

.p-salary__heading {
  margin-bottom: 1.5rem;

  @media screen and (min-width: 1080px) {
    margin-bottom: .5rem;
  }
}

.p-img-wrapper {
  width: 100%;
  max-width: 670px;
  margin-inline: auto;
}

/* Contact Section */
.p-contact {
  position: relative;
  container-type: inline-size;
  container-name: contact;
  background-color: var(--color-background-feature);
  padding: 40px 0;
  z-index: 50;
  margin-top: 0;
}

.p-contact__description {
  & + * {
    margin-top: 2.5rem;
  }
}

.p-contact__buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  @container contact (width >= 540px) {
    flex-direction: row;
    justify-content: center;
    margin-inline: auto;
    padding-block: 1.2rem;
    max-width: 68rem;
  }
}

.p-contact__hours {
  margin-top: 5px;
  font-size: 11px;
  text-align: center;
}


@media screen and (min-width: 1080px) {
  .p-contact { padding: 80px 0; }

  .p-contact__description {
    text-align: center;
  }

  .p-contact__buttons {
    gap: 4rem;
  }

  .p-contact__hours {
    margin-inline: auto;
    max-width: 64rem;
  }
}


.p-table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  word-break: break-word;
  overflow-wrap: break-word;
  word-wrap: break-word;
  line-break: strict;
}

.p-table__row {
  display: grid;

  @media screen and (min-width: 1080px) {
    grid-template-columns: minmax(0, 1fr);
  }
}

.p-table__item {
  padding: 10px;
}

.p-table__item--header {
  text-align: left;
  background-color: #f5f5f5;
  font-weight: bold;
}

.p-table__item--data {
  font-weight: normal;
}

.p-table__content {
  & + & {
    margin-top: 2.5rem;
  }
}

.p-flow {
  position: relative;
  padding: 5rem 2rem;
  background-color: #f5f5f5;
  z-index: 0;
}

.p-flow__heading {
  margin-bottom: 1rem;
}

@media screen and (min-width: 1080px) {
  .p-flow {
    padding-block: 8rem 10rem;
    margin-top: 14rem;
  }

  .p-flow__heading {
    margin-bottom: 2rem;
  }
}

@media screen and (min-width: 1080px) {
  .p-flow-list {
    display: flex;
    gap: 4rem;
    justify-content: center;
    margin-bottom: 1.6rem;
  }
}

.p-flow-list-content {
  display: flex;
  position: relative;
  justify-content: space-between;
  width: 100%;
}

.p-flow-list-content:not(:last-child) > .p-flow-list-content__step::after {
  content: "";
  display: block;
  position: absolute;
  top: 6rem;
  left: 2.1rem;
  height: var(--after-height);
  width: .2rem;
  background: linear-gradient(to bottom, var(--color-primary) .2rem, transparent .2rem) 0% 0%/0.4rem 0.4rem;
}
@media screen and (min-width: 1080px) {
  .p-flow-list-content {
    flex-direction: column;
    gap: 1.6rem;
    justify-content: flex-start;
  }
  .p-flow-list-content:not(:last-child) > .p-flow-list-content__step::after {
    top: 3.4rem;
    left: 5rem;
    height: .2rem;
    width: 16rem;
    background: linear-gradient(to right, var(--color-primary) .2rem, transparent .2rem) 0% 0%/0.4rem 0.4rem;
  }
}

.p-flow-list-content__step {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: var(--set-width);
  color: var(--color-primary);
  font-family: 'Montserrat';
  font-size: 1rem;
  font-weight: bold;
}
@media screen and (min-width: 1080px) {
  .p-flow-list-content__step {
    font-size: 1.2rem;
  }
}

.p-flow-list-content__step-lower {
  padding-bottom: 1rem;
  font-size: 3.2rem;
  line-height: .8;
}
@media screen and (min-width: 1080px) {
  .p-flow-list-content__step-lower {
    padding: 0;
  }
}

.p-flow-list-content__text {
  padding-bottom: 1.8rem;
  width: calc(100% - 6.2rem);
  font-weight: normal;
}
@media screen and (min-width: 1080px) {
  .p-flow-list-content__text {
    padding: 0;
    width: 100%;
  }
}

.p-flow-list-content__title {
  font-weight: bold;
}

.p-flow-list-content__step-upper,
.p-flow-list-content__text {
  padding-top: 0.6rem;
}
@media screen and (min-width: 1080px) {
  .p-flow-list-content__step-upper,
  .p-flow-list-content__text {
    padding: 0;
  }
}

.p-flow__caution {
  font-size: 1.2rem;
}

.p-navigation {
  display: flex;
  gap: 1.6rem;
  width: fit-content;
}

/* Footer */
.l-footer {
  position: relative;
  padding-bottom: 10rem;
  background-color: #fff;
  z-index: 50;

  @media screen and (min-width: 1080px) {
    padding-bottom: 5rem;
  }
}

.p-footer {
  padding-block: 5rem ;
}

@media screen and (min-width: 1080px) {
  .p-footer {
    padding-block: 10rem 8rem;
  }
}

.p-footer__list {
  border-top: 1px solid #6A778B;
  margin-top: 3rem;
}

@media screen and (min-width: 1080px) {
  .p-footer__list {
    margin-top: 4rem;
  }
}

.p-footer__item {
  border-bottom: 1px solid #6A778B;
}

.p-footer__link {
  display: flex;
  flex-direction: column;
  padding-block: 2.5rem;
  font-weight: bold;
}

@media screen and (min-width: 768px) {
  .p-footer__link {
    flex-direction: row;
  }
}

.p-footer__logo {
  margin-inline: auto;
  width: fit-content;
}

@media screen and (min-width: 1080px) {
  .p-footer__logo {
    height: auto;
    width: 23.4rem;
  }
}

.p-footer-external__nav,
.p-footer-external__nav-content {
  display: flex;
  align-items: center;
}

.p-footer-external__nav {
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 3rem;

  @media screen and (min-width: 1080px) {
    margin-bottom: 1.5rem;
  }
}

.p-footer-external__nav-content {
  gap: 1rem;

  &:not(:last-child)::after {
    content: "";
    display: block;
    height: 15px;
    width: 1px;
    background-color: #6a7788;
  }
}

.p-footer-other-window__link,
.p-footer-external__link {
  font-size: 12px;
}

.p-footer__copyright {
  text-align: center;
  font-size: 12px;

  @media screen and (min-width: 1080px) {
    font-size: 13px;
  }
}

@media screen and (min-width: 1080px) {
  .p-footer-nav__list {
    display: flex;
    gap: 40px;
    border-top: none;
  }

  .p-footer-nav__item {
    border-bottom: none;
  }

  .p-footer-nav__link {
    padding: 0;

    &:hover {
      text-decoration: underline;
    }
  }
}

.c-text-link-wrapper {
  display: inline-block;
}

.c-text-link {
  display: flex;
  align-items: center;

  &:hover {
    text-decoration: underline;
  }
}

.c-text-link--color-first {
  color: #006EFF;
}

.c-text-bold {
  font-weight: bold;
}

.c-arrow {
  display: inline-block;
  position: relative;
  border-radius: 100vmax;
  height: 1.8rem;
  width: 1.8rem;
  margin-left: .5rem;
  background-color: var(--color-primary);

  &::before,
  &::after {
    content: "";
    position: absolute;
    top: calc(50% - .1rem);
    right: .65rem;
    border-radius: 100vmax;
    height: .2rem;
    width: .6rem;
    background-color: #fff;
    transform-origin: calc(100% - .1rem) 50%;
  }

  &::before {
    transform: rotate(45deg);
  }

  &::after {
    transform: rotate(-45deg);
  }
}

.c-arrow--color-first {
  background-color: #fff;

  &::before,
  &::after {
    background-color: var(--color-primary);
  }
}

.c-icon {
  margin-left: .4rem;
}

@media screen and (min-width: 1080px) {
  .c-box-pc {
    padding: 6rem 7rem;
    background-color: #fff;
  }
}

@media screen and (min-width: 1080px) {
  .c-display-pc-none {
    display: none;
  }
}

@media screen and (min-width: 1080px) {
  .p-reason {
    border: .1rem solid #6a778b;
    margin-top: 5rem;
    padding-inline: 5rem;
    padding-bottom: 5rem;
  }
}

.c-margin-reset {
  margin-top: 0;
  margin-left: 0;
}

@media screen and (min-width: 1080px) {
  .c-margin-reset-pc {
    margin-block: 0;
  }
}

/* ==========================================================================
   Object > Utility (u-)
   ========================================================================== */
.u-hidden-pc { display: none !important; }
.u-hidden-sp { display: inline-block !important; }
.u-text-center { text-align: center; }
.u-fw-normal { font-weight: normal; }
.u-margin-bottom-20 { margin-bottom: 20px; }
.u-d-block-sp { display: block;}
@media screen and (min-width: 1080px) {
    .u-hidden-pc { display: inline-block !important; }
    .u-hidden-sp { display: none !important; }
    .u-text-center-pc { text-align: center; }
    .u-d-block-sp{ display: inline; }
}
