@layer settings, base, generic;

@layer settings {
  :root {
    /* font */
    --font-family-base: "Noto Sans JP", sans-serif;
    --font-family-en: Futura, "Century Gothic", sans-serif;
    --font-size-base: 1rem;
    --font-size-s: .875rem;
    --font-size-xs: .8125rem;

    /* color */
    --primary-color: #FF5577;
    --secondary-color: #808080;
    --attention-color: #E11C45;
    --color-base: #1D1D1D;
    --color-gray-8: #7C7C7C;
    --color-gray-9: #6B6B6B;

    /* icon */
    --arrow-chevron: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="6" height="10" viewBox="0 0 6 10" fill="none"><path d="M0.773865 1.30212L5.00001 5L0.773865 8.69788" stroke="%231D1D1D" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    --arrow-chevron-active: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="6" height="10" viewBox="0 0 6 10" fill="none"><path d="M0.773865 1.30212L5.00001 5L0.773865 8.69788" stroke="%23f57" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    --arrow-chevron-bottom: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" fill="none"><path d="M1 1.5L6 6.5L11 1.5" stroke="%231D1D1D" stroke-width="2"/></svg>');

  }

  @font-face {
    font-family: 'Noto Sans JP';
    font-display: swap;
    font-style: normal;
    src: url('../fonts/NotoSansJP-VariableFont_wght.woff2')  format('woff2');
  }
}

@layer base {
  body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: 400;
    font-variation-settings: "wght" 400;
    color: var(--color-base);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: antialiased;
    text-size-adjust: 100%;
  }
}

@layer generic {
  a:focus-visible,
  button:focus-visible {
    outline: revert;
  }
  :where(h1, h2, h3, h4, h5, h6) {
    font-weight: 700;
    font-variation-settings: "wght" 700;
  }
  :where(strong, b) {
    font-weight: 700;
    font-variation-settings: "wght" 700;
  }
}

/* utility */
@media (width >= 768px) {
  .for-sp {
    display: none;
  }
}
@media (width < 768px) {
  .for-pc {
    display: none;
  }
}

/**/

.globalheader {
  display: flex;
  align-items: center;
  gap: 5rem;
  padding: 0 2rem;
  background: #fff;
  border-bottom: solid 1px rgba(0,0,0,.15);
  & > * {
    position: relative;
    z-index: 10;
  }
}

.globalheader-logo {
  width: 14.2744rem;
  display: flex;
  align-items: center;
  & svg {
    width: 100%;
  }
}

.globalnav {
  flex: 1;
}

.globalnav-container {
  display: flex;
  align-items: center;
}

.globalnav-list {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.globalnav-item {
  position: relative;
}

.globalnav-link {
  padding: .9679rem 0.625rem;
  font-size: 0.9375rem;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  cursor: pointer;
  color: var(--color-base);
}

.globalnav-toggle-button {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--color-base);
  &::after {
    content: "";
    display: block;
    width: 12px;
    height: 8px;
    background: var(--arrow-chevron-bottom) no-repeat center center;
    background-size: 100% 100%;
    transition: .3s;
  }
  &[aria-expanded="true"] {
    --arrow-chevron-bottom: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" fill="none"><path d="M1 1.5L6 6.5L11 1.5" stroke="%23f57" stroke-width="2"/></svg>');
    color: var(--primary-color);
    &::after {
      transform: rotate(180deg);
    }
  }
}

.globalnav-submenu {
  opacity: 1;
  visibility: visible;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: .69rem;
  transition: .3s;
  z-index: 999;
  &[hidden] {
    display: block;
    opacity: 0;
    visibility: hidden;
  }
}

.globalnav-submenu-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0px 15px 20px 0px rgba(84, 84, 113, 0.15);
  padding: 2rem 2.56rem 1.5rem;
  white-space: nowrap;
}

.globalnav-submenu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  color: var(--color-base);
  &::after {
    content: "";
    display: block;
    width: 6px;
    height: 10px;
    background: var(--arrow-chevron) no-repeat center center;
    background-size: 100% 100%;
    transition: .3s;
  }
}

.globalnav-all-service {
  padding: .25rem 0;
  color: var(--primary-color);
  &::after {
    background-image: var(--arrow-chevron-active);
  }
}

.globalnav-login {
  padding: 0.4375rem 1.0625rem 0.375rem 1.0625rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  line-height: 1.7;
  background: #fff;
  border-radius: 1.375rem;
  border: 1px solid #D4D4DA;
  color: var(--color-base);
  margin: 0 0 0 auto;
}

.globalheader-menu {
  display: none;
}

.globalnav-cloase-button {
  display: none;
}

@media (width >= 992px) {
  .globalheader {
    &:not(:has(h1)) {
      justify-content: space-between;
      position: relative;
      z-index: 10000;
      & .globalnav {
        flex: 0 0 auto;
      }
      & .globalnav-login {
        margin: 0 0 0 1.625rem;
      }
    }
  }
  .globalnav-link {
    transition: .3s;
    &:hover {
      text-decoration: none;
      color: var(--primary-color);
    }
  }
  .globalnav-toggle-button {
    &:hover {
      text-decoration: none;
      --arrow-chevron-bottom: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" fill="none"><path d="M1 1.5L6 6.5L11 1.5" stroke="%23f57" stroke-width="2"/></svg>');
    }
  }
  .globalnav-submenu-link {
    transition: .3s;
    &:hover {
      color: var(--primary-color);
      text-decoration: none;
      &::after {
        background-image: var(--arrow-chevron-active);
      }
    }
  }
  .globalnav-all-service {
    &:hover {
      text-decoration: none;
      font-weight: 700;
      font-variation-settings: "wght" 700;
    }
  }
  .globalnav-login {
    transition: .3s;
    &:hover {
      text-decoration: none;
      background: #EFEFF7;
    }
  }
}

@media (width < 992px) {
  body:has(.globalheader-menu[aria-expanded="true"]) {
    overflow: hidden;
  }
  .globalheader {
    padding: 0;
    position: relative;
    z-index: 999;
  }

  .globalheader-bar {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.22rem .5rem .22rem 0;
    background: #fff;
    position: relative;
    z-index: 999;
  }
  .globalheader-logo {
    width: 9.875rem;
  }
  .globalheader-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .31rem;
    width: 2.5rem;
    &::after {
      content: "メニュー";
      font-size: .675rem;
      font-weight: 700;
      font-variation-settings: "wght" 700;
      line-height: 1;
      color: var(--secondary-color);
      font-feature-settings: "palt";
      white-space: nowrap;
    }
    &[aria-expanded="true"] {
      &::after {
        content: "閉じる";
      }
      & .globalheader-menu-icon {
        & span {
          width: .875rem;
          &:first-child {
            transform: rotate(45deg) translate(.5rem, .125rem);
          }
          &:nth-child(2) {
            transform: translateX(100%);
            opacity: 0;
            visibility: hidden;
          }
          &:last-child {
            transform: rotate(-45deg) translate(.375rem, 0);
          }
        }
      }
    }
  }
  .globalheader-menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1.375rem;
    height: 0.875rem;
    & span {
      width: 100%;
      height: 2px;
      background: var(--secondary-color);
      transition: .3s;
    }
  }

  .globalnav {
    display: block;
    position: fixed;
    top: 2.6875rem;
    left: 0;
    width: 100%;
    height: calc(100% - 2.6875rem);
    overflow: auto;
    transition: transform .3s;
    overscroll-behavior: none;
    &[hidden] {
      transform: translateY(calc(-100% - 2.6875rem));
    }
  }

  .globalnav-container {
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.15), 0px 2px 1px 0px #EFEFF7 inset;
  }

  .globalnav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .globalnav-item {
    border-bottom: 1px solid #CCCCCF;
  }

  .globalnav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: .5rem 1.5rem;
    font-size: var(--font-size-s);
    font-weight: 400;
    font-variation-settings: "wght" 400;
    line-height: 2;
    &::after {
      content: "";
      display: block;
      width: 6px;
      height: 10px;
      background: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="6" height="10" viewBox="0 0 6 10" fill="none"><path d="M0.773865 1.30212L5.00001 5L0.773865 8.69788" stroke="%231D1D1D" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center center;
      background-size: 100% 100%;
      margin-left: auto;
    }
  }

  .globalnav-link-services {
    gap: .5rem;
    &::before {
      content: "";
      display: block;
      width: 1rem;
      height: .75rem;
      background: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="12" viewBox="0 0 16 12" fill="none"><circle cx="1.5" cy="6.0625" r="1.5" fill="%23FF5577"/><rect x="4" y="4.5625" width="12" height="3" rx="1.5" fill="%23FF5577"/><circle cx="1.5" cy="1.5625" r="1.5" fill="%23FF5577"/><rect x="4" y="0.0625" width="12" height="3" rx="1.5" fill="%23FF5577"/><circle cx="1.5" cy="10.4375" r="1.5" fill="%23FF5577"/><rect x="4" y="8.9375" width="12" height="3" rx="1.5" fill="%23FF5577"/></svg>') no-repeat center center;
      background-size: 100% 100%;
    }
  }

  .globalnav-toggle-button {
    display: none;
  }

  .globalnav-submenu {
    padding: 0;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .globalnav-submenu-list {
    box-shadow: none;
    background: #F5F5FB;
    border-radius: 0;
    padding: 0;
    gap: 0;
  }

  .globalnav-submenu-item {
    & + .globalnav-submenu-item {
      border-top: 1px solid #DCDCE8;
    }
  }

  .globalnav-submenu-link {
    padding: .5rem 1.5rem .5rem 2.81rem;
    font-size: var(--font-size-s);
    line-height: 2;
  }

  .globalnav-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: auto;
    margin: 1rem 1.47rem;
    text-align: center;
    &::before {
      content: "";
      display: block;
      width: 13px;
      height: 14px;
      background: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="13" height="14" viewBox="0 0 13 14" fill="none"><circle cx="6.5" cy="3.6875" r="3" fill="%23FF5577"/><path d="M0.500001 13.3125C0.500001 12.5246 0.655196 11.7444 0.956724 11.0164C1.25825 10.2884 1.70021 9.62701 2.25736 9.06986C2.81451 8.51271 3.47595 8.07075 4.2039 7.76922C4.93185 7.46769 5.71207 7.3125 6.5 7.3125C7.28793 7.3125 8.06815 7.46769 8.7961 7.76922C9.52405 8.07075 10.1855 8.51271 10.7426 9.06986C11.2998 9.62701 11.7417 10.2884 12.0433 11.0164C12.3448 11.7444 12.5 12.5246 12.5 13.3125L6.5 13.3125L0.500001 13.3125Z" fill="%23FF5577"/></svg>') no-repeat center center;
      background-size: 100% 100%;
    }
  }

  .globalnav-cloase-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .125rem;
    background: var(--secondary-color);
    padding: .6rem 0;
    font-size: 0.625rem;
    font-weight: 700;
    font-variation-settings: "wght" 700;
    line-height: 1;
    color: #fff;
  }
}

/* global footer */
.globalfooter {
  background: #5F5F64;
  color: #F1F1F1;
  & a {
    color: #F1F1F1;
  }
}

.globalfooter-main {
  padding: 2.4rem 2rem 1.5rem;
}

.globalfooter-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 75rem;
  margin: 0 auto;
  gap: 2rem;
}

.globalfooter-logo {
  width: 19.6667%;
}

.global-sitemap {
  flex-shrink: 0;
  display: flex;
  gap: 4.09rem;
}

.global-sitemap-column {
  display: flex;
  flex-direction: column;
  gap: .875rem;
}

.global-sitemap-title {
  font-size: var(--font-size-s);
  font-weight: 700;
  font-variation-settings: "wght" 700;
  line-height: 1.4;
}

.global-sitemap-menu {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  line-height: 1.2;
}

.global-sitemap-link {
  display: block;
  font-size: var(--font-size-s);
}

.globalfooter-mark {
  background: #fff;
}

.globalfooter-mark-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.globalfooter-mark-item {
  display: flex;
  align-items: center;
  line-height: 0;
  & .p-mark {
    width: 4.1047rem;
  }

  & .pci-dss {
    width: 3.1743rem;
  }

  & .iso-mark {
    width: 6.5675rem;
  }
}

.globalfooter-legal {
  padding: 1.5rem 2rem 2.5rem;
  border-top: solid 1px #78787A;
}

.globalfooter-legal-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.globalfooter-legal-link {
  font-size: var(--font-size-xs);
  font-weight: 500;
  font-variation-settings: "wght" 500;
}

.globalfooter-legal-copyright {
  font-size: var(--font-size-s);
  font-weight: 500;
  font-variation-settings: "wght" 500;
}

@media (width >= 992px) {
  .globalfooter {
    & a:not(.globalfooter-logo,.globalfooter-mark-link) {
      transition: opacity .3s;
      &:hover {
        text-decoration: none;
        opacity: .8;
      }
    }
  }
}
@media (width < 992px) {
  .globalfooter {
    padding: 1rem 1rem 2rem;
  }
  .globalfooter-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .globalfooter-main {
    padding: 0;
  }

  .globalfooter-logo {
    width: 14.75rem;
    margin: 0 auto;
  }

  .global-sitemap {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 1.5rem 0;
    padding: 1rem 0 0;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.20);
  }
  .global-sitemap-column {
    grid-column: 1 / 2;
    gap: 1rem;
    &:last-child {
      grid-row: 1 / 3;
      grid-column: 2 / 2;
    }
  }
  .global-sitemap-title {
    font-size: var(--font-family-base);
    line-height: 1.7;
  }
  .global-sitemap-menu {
    gap: .75rem;
    line-height: 1.7;
  }
  .global-sitemap-link {
    font-size: var(--font-family-base);
    font-feature-settings: "palt";
  }
  .globalfooter-mark {
    align-self: center;
    margin: 2rem 0 0;
  }
  .globalfooter-legal {
    margin-top: 1.5rem;
    padding: 1.5rem 0 0;

    & .globalfooter-layout {
      align-items: center;
      gap: 1.5rem;
    }
  }
  .globalfooter-legal-list {
    gap: .56rem 1rem;
    line-height: 1.7;
  }
  .globalfooter-legal-link {
    font-size: var(--font-size-s);
  }
}

/* breadcrumbs */
.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.breadcrumbs-item {
  font-size: var(--font-size-s);
  & + .breadcrumbs-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    &::before {
      content: "";
      display: block;
      width: 12px;
      height: 1px;
      background: #1D1D1D;
      transform: rotate(120.96deg);
    }
  }
}

.breadcrumbs-link {
  color: var(--primary-color);
}
