/*___________________________
Body
___________________________*/

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}
@media screen and (max-width: 768px) {
  html {
    scroll-padding-top: 53px;
  }
}

body {
  background: #fff;
  font-family: var(--familyNotoSans);
  font-size: var(--fontMax16Min14);
  font-weight: 400;
}

body.navOpen {
  overflow: hidden;
}

.ios-mac {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p,
h5,
h4,
h3,
h2,
h1,
a,
dd,
dt,
li,
figcaption,
button,
label,
input,
address {
  color: var(--colorBlack);
  font-size: var(--fontMax16Min14);
  font-weight: 400;
  line-height: 1.5;
}

/*___________________________
layout
___________________________*/

/* 1280px */
.container {
  box-sizing: content-box;
  margin: 0 auto;
  max-width: 1280px;
  padding-inline: 5.56%;
}
@media screen and (max-width: 768px) {
  .container {
    padding-inline: 1.25rem;
  }
}

/*___________________________
Common
___________________________*/

.for-sp {
  display: none;
}

.en {
  font-family: var(--familyPoppins);
  font-weight: 600;
}

@media screen and (max-width: 768px) {
  .for-sp {
    display: inline-block;
  }
  .for-pc {
    display: none;
  }
}

/* 要素をふわふわ浮かせるアニメーション */
.animation-float {
  animation: float 3s ease-in-out infinite;
}
.animation-floatReverse {
  animation: floatReverse 3s ease-in-out infinite;
}
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes floatReverse {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
  100% {
    transform: translateY(0);
  }
}

.js-copyBtn {
  position: relative;
}

.copy-msg {
  background-color: var(--colorBlack);
  color: var(--colorWhite);
  font-size: 0.86rem;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.3rem 0.5rem;
}

@media (hover: hover) {
  .singleArticleHead-last__links a.js-copyBtn:hover {
    opacity: 1;
  }
  .singleArticleHead-last__links a.js-copyBtn:hover img {
    opacity: 0.7;
  }
}

/*___________________________
Header
___________________________*/

.header {
  backdrop-filter: blur(1px);
  background: linear-gradient(to right, #fff 16%, rgba(255, 255, 255, 0.6) 100%);
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--heightHeaderPC);
  padding: 0.5rem;
  z-index: var(--indexHeader);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
}

.navbar__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 9.3125rem;
  background-color: rgba(255, 255, 255, 1);
  backdrop-filter: blur(1px);
  height: inherit;
  border-radius: 4px;
}
.navbar__logo img {
  width: 140px;
}

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

.navbar__list {
  align-self: center;
  display: flex;
  gap: 1.5rem;
  height: stretch;
  justify-content: flex-end;
  padding-inline: 2rem;
  border-radius: 4px;
  position: relative;
}

.navbar__item {
  position: relative;
}
.navbar__item > p {
  font-family: var(--familyPoppins);
}

.navbar__label {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  height: 100%;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.3s;
}

.button.header__button {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 1em 2.4em;
  height: 56px;
}

/* hover時サブメニュー */
.navbarSubmenu {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(1px);
  border: 1px solid #e7e7e7;
  left: 0;
  opacity: 0;
  padding: 1.5rem 2rem;
  pointer-events: none;
  position: absolute;
  transform: translateY(-20%);
  transition: 0.3s ease;
  visibility: hidden;
  width: fit-content;
  border-radius: 4px;
}
.navbarSubmenu::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 100%;
  width: 100%;
  height: 0.5rem;
}

.navbarSubmenu__list {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

.navbarSubmenu__item {
  width: fit-content;
  display: inline-block;
  line-height: 100%;
  width: 100%;
  white-space: nowrap;
}
.navbarSubmenu__item.first {
  display: block;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e7e7e7;
}

.navbarSubmenu__link {
  color: var(--colorBlack);
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  padding-left: 0.6875rem;
  position: relative;
  transition:
    padding-left 0.3s,
    color 0.3s;
  width: 100%;

  &::before {
    content: "";
    background-color: #a6a6a6;
    width: 0.3125rem;
    height: 0.3125rem;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition:
      width 0.3s,
      height 0.3s,
      background-color 0.3s;
  }
}
@media (hover: hover) {
  a.navbar__label:hover {
    color: var(--linkBlue);
  }
  .navbar__item:hover > .navbarSubmenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0.5rem);
    visibility: visible;
  }
  .navbarSubmenu__item:hover {
    .navbarSubmenu__link {
      padding-left: 1rem;
      color: var(--linkBlue);
      font-weight: 600;

      &::before {
        background-color: var(--linkBlue);
        width: 0.375rem;
        height: 0.375rem;
      }
    }
  }
}
a.navbar__label:focus-visible {
  color: var(--linkBlue);
}
.navbar__item:focus-within > .navbarSubmenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0.5rem);
  visibility: visible;
}
.navbarSubmenu__item .navbarSubmenu__link:focus-visible {
  padding-left: 1rem;
  color: var(--linkBlue);
  font-weight: 600;
}

.navbarSubmenu__item .navbarSubmenu__link:focus-visible::before {
  background-color: var(--linkBlue);
  width: 0.375rem;
  height: 0.375rem;
}

/* ドロワーメニュー背景 */
.drawer__bg {
  width: 100%;
  height: 100vh;
  background-color: rgb(0 0 0 / 0.75);
  position: fixed;
  top: 0;
  left: -100%;
  z-index: var(--indexDrawerBg);
}
body.navOpen .drawer__bg {
  left: 0;
}
/* ドロワーメニュー */
.navdrawer {
  align-items: center;
  background: #fff;
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: flex-start;
  right: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: translateX(80%);
  transition: 0.3s ease-out;
  width: fit-content;
  padding: 1.75rem 1rem 2.5rem 1rem;
  height: 100%;
  z-index: var(--indexDrawer);
}

.navOpen .navdrawer {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.navdrawer__container {
  margin: 0 auto;
  width: fit-content;
  overflow-y: auto;
  padding: 1rem;
}

.navdrawer__label {
  color: var(--colorBlack);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.125rem;
  line-height: 2.7143;
  font-family: var(--familyPoppins);
  font-weight: 600;
  overflow: hidden;
  width: 100%;
}

.js-accordContents .navdrawer__label {
  font-weight: 400;
}

.js-accordContents .navdrawer__label::before {
  content: "";
  background-color: var(--colorBlack);
  width: 0.2rem;
  height: 0.2rem;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  transition:
    width 0.3s,
    height 0.3s,
    background-color 0.3s;
}

.navdrawer__label.js-accordHeading::after {
  content: "";
  background-image: url(../images/common/icon-round-arrow.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  display: inline-block;
  font-weight: 600;
  height: 16px;
  width: 16px;
}

.js-accordItem.open .navdrawer__label.js-accordHeading::after {
  transform: rotate(180deg);
}

.navdrawer__container .js-accordHeading {
  cursor: pointer;
}

.navdrawer__container .js-accordBody {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.navdrawer__list {
  display: flex;
  flex-direction: column;
}

.navdrawer__item {
  position: relative;
  padding-left: 0.675rem;
}
.navdrawer__item > .navdrawer__label {
  border: none;
}

.menu-contact {
  margin-top: 1rem;
}

.nav-button {
  background-color: #002dd1;
  color: var(--colorWhite);
}

.hamburger {
  background: transparent;
  border: none;
  cursor: pointer;
  display: none;
  height: 40px;
  transition: 0.3s;
  width: 40px;
  background-color: #fff;
  padding: 4px;
  border-radius: 4px;
  position: absolute;
  top: 10px;
  right: 10px;
}

.hamburger span {
  background: var(--linkBlue);
  height: 1px;
  position: absolute;
  transform: translateX(-50%);
  transition: transform 0.2s ease-out;
  width: 20px;
  left: 50%;
  border-radius: 100px;
}

.hamburger span:nth-child(1) {
  top: 17px;
}
.hamburger span:nth-child(2) {
  top: calc(17px + 4px);
}

.navOpen .hamburger span:nth-child(1) {
  top: 20px;
  transform: translate(-50%, -50%) rotate(45deg);
}
.navOpen .hamburger span:nth-child(2) {
  top: 20px;
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (hover: hover) {
  .navbar__logo:hover img,
  .navdrawer__label:hover {
    opacity: 0.7;
  }
}
.navbar__logo:focus-visible,
.navdrawer__label:focus-visible {
  opacity: 0.7;
}

@media screen and (max-width: 940px) {
  .navbar {
    gap: 0.5rem;
  }
  .header__inner {
    gap: 1%;
  }
}

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

@media screen and (max-width: 850px) {
  .header {
    background: linear-gradient(to right, #fff 40%, rgba(255, 255, 255, 0.6) 100%);
    height: var(--heightHeaderSP);
    padding-inline: 18px;
  }

  .navbar__logo {
    width: fit-content;
    backdrop-filter: none;
    padding: 0 1rem;
  }

  .navbar__logo img {
    width: 96px;
  }

  .navbar__list,
  .header__button {
    display: none !important;
  }

  .navdrawer {
    display: flex;
    justify-content: space-between;
  }

  .hamburger {
    display: block;
  }

  .menu__icons {
    display: flex;
    align-items: center;
    column-gap: 1.4rem;
  }
}

/*___________________________
Footer
___________________________*/

.footer {
  display: block;
  background-color: var(--colorBlack);
  padding-block: 7.25rem 2.5rem;

  p,
  a {
    color: var(--colorWhite);
  }
}
.footer__logo {
  max-width: 8.0625rem;
  display: inline-block;
  width: fit-content;
  padding-top: 0.5rem;
}
.footer__top-contents {
  display: flex;
  justify-content: space-between;
}
.footer__address {
  display: block;
  margin-top: 1rem;
  font-family: var(--familyZenKakuGothic);
  font-style: normal;

  p,
  a {
    font-size: 0.875rem;
    line-height: 1.71429;
  }
}
.footer__maps {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.25rem;
  padding-top: 0.5rem;

  .en {
    font-size: 0.875rem;
  }
}
.footer__nav {
  display: flex;
  gap: 3rem;

  ul,
  li {
    height: fit-content;
    line-height: 1;
  }
}
.footer__lists {
  display: grid;
  gap: 1.25rem;

  &,
  li {
    height: fit-content;
  }
}
.footer__lists-3 {
  gap: 0;
}
.footerLink {
  display: inline-block;
  padding-block: 0.5rem;
  font-size: 0.875rem;
  line-height: 1;
  font-weight: 600;

  .en {
    font-weight: 500;
  }
}

.footer__lists.child {
  margin-top: 0.25rem;
  gap: 0.25rem;

  li {
    padding-left: 0.675rem;
    position: relative;
  }
  li::before {
    content: "";
    background-color: var(--colorBlack-2);
    width: 0.175rem;
    height: 0.175rem;
    aspect-ratio: 1 / 1;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5.5rem;
}
.footer-bottom__icons {
  display: flex;
  align-items: center;
  gap: 0.8rem;

  a {
    width: 1.5rem;
    box-sizing: content-box;
    padding: 0.25rem;
  }
  a:first-of-type {
    padding-left: 0;
  }
  a:nth-of-type(3) {
    width: 4rem;
  }
  .icon-note {
    width: 4rem;
  }
}

.footer-bottom__links {
  display: flex;
  align-items: center;
  gap: 1rem;

  a {
    font-size: 0.75rem;
    line-height: 1.667;
    padding: 0.5rem;
  }
}
.copyright {
  font-size: 0.75rem;
  line-height: 1.667;
}

@media (hover: hover) {
  .footer a:hover {
    opacity: 0.7;
  }
}
.footer a:focus-visible {
  opacity: 0.7;
}

@media screen and (max-width: 768px) {
  .footer {
    padding-block: 3.5rem 2.5rem;
  }
  .footer__info {
    text-align: center;
  }
  .footer__logo {
    max-width: 7.0625rem;
  }
  .footer__address {
    text-align: center;
  }
  .footer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    gap: 3.5rem;
    width: fit-content;
    margin: 0 auto;
  }
  .footer__lists.parent {
    max-width: 8.71875rem;
  }
  .footer__top-contents {
    flex-direction: column;
    gap: 2rem;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 0;
    margin-top: 4.5rem;
  }
  .footer-bottom__icons {
    gap: 2rem;
  }
  .footer-bottom__links {
    flex-direction: column;
    gap: 0;
  }
}

/* =========================== */
/* 曲線：アニメーションはJS制御 */
/* 親要素にabsoluteをつける */
/* =========================== */
.animationLine-svg {
  position: relative;
  z-index: var(--indexLine);
  width: 100%;
}
.animationLine-path {
  fill: none;
  stroke: var(--textRed);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

/* =========================== */
/* hoverアニメーション
  オレンジグラデーション + img拡大
  imgタグ:親wrapにクラス付与する */
/* =========================== */
.hoverGradation--orange {
  --grad-y: 100%;
  position: relative;
  display: block;
  overflow: hidden;
}

.hoverGradation--orange::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(to right, rgba(255, 165, 48) 8%, rgba(231, 33, 26) 34%);
  opacity: 0.3;

  /* 下に向かって透明 */
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  transform: translateY(var(--grad-y));
}

/* 画像拡大 */
.hoverGradation--orange img {
  transition: transform 0.5s ease;
}
a:hover .hoverGradation--orange img {
  transform: scale(1.03);
}

/* ==================== */
/* ページネーション*/
/* ==================== */
.wp-pagenavi {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  position: relative;

  a.page,
  .current {
    order: 1;
  }
  .extend {
    order: 1;
  }
  a.first {
    order: 1;
  }
  a.last {
    order: 1;
  }

  span.current,
  a.page,
  a.first,
  a.last {
    border-radius: 50%;
    --familyPoppins: var(--familyRoboto);
    line-height: 1;
    font-size: 0.875rem;
    font-weight: 600;
    aspect-ratio: 1 / 1;
    display: inline-block;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    background-color: inherit;
    border: 1px solid #fff;
  }

  span.current,
  a.page:hover,
  a.first:hover,
  a.last:hover,
  a.previouspostslink:hover,
  a.nextpostslink:hover {
    background-color: #f7f7f7;
    border: 1px solid #f7f7f7;
  }

  .previouspostslink,
  .nextpostslink {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    background-color: inherit;
    border: 1px solid #fff;
    border-radius: 50%;
    color: #fff;
  }
  .previouspostslink {
    order: 0;
  }
  .nextpostslink {
    order: 100;
  }
  .previouspostslink::before,
  .nextpostslink::after {
    content: "";
    width: 1.5rem;
    height: 1.5rem;
    position: absolute;
    inset: 0;
  }
  .previouspostslink::before {
    background: url(../images/common/pagenavi-arrow--left.svg) no-repeat center center / contain;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  .nextpostslink::after {
    background: url(../images/common/pagenavi-arrow--right.svg) no-repeat center center / contain;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}
