@charset "UTF-8";
@font-face {
  font-family: "KakuGyo";
  src: url("../fonts/A-OTF-KakuGyoStd-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "KakuGyo";
  src: url("../fonts/A-OTF-KakuGyoStd-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "A1Mincho";
  src: url("../fonts/A-OTF-A1MinchoStd-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "KyokaICA";
  src: url("../fonts/A-OTF-KyokaICAPro-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "KyokaICA";
  src: url("../fonts/A-OTF-KyokaICAPro-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "KyokaICA";
  src: url("../fonts/A-OTF-KyokaICAPro-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "ZenKakuGothicNew";
  src: url("../fonts/ZenKakuGothicNew-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "ZenKakuGothicNew";
  src: url("../fonts/ZenKakuGothicNew-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "ZenKakuGothicNew";
  src: url("../fonts/ZenKakuGothicNew-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "ZenKakuGothicNew";
  src: url("../fonts/ZenKakuGothicNew-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "ZenKakuGothicNew";
  src: url("../fonts/ZenKakuGothicNew-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}
header#mainHeader {
  background-color: rgba(130, 28, 33, 0.8);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}
header#mainHeader.fixed {
  background-color: rgba(130, 28, 33, 0.8);
}
header#mainHeader .hamburger-menu.active span {
  background-color: #000 !important;
}
header#mainHeader .hamburger-menu span {
  background-color: white !important;
}
header#mainHeader .header-nav.active .globalMenu {
  color: black;
}
header#mainHeader .header-nav .globalMenu {
  color: white;
}
header#mainHeader .header-nav .globalMenu .nav li {
  border-color: white !important;
}
header#mainHeader .header-nav {
  color: white;
}

/* section#kv #main {
  background-image: url("../img/top/kv.jpg");
  background-size: 105%;
  background-position: center center;
  aspect-ratio: 200/120;
  animation: zoomIn 15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  position: relative;
  z-index: 5;
} */

section#kv {
  overflow: hidden;
}
section#kv #main {
  position: relative;
  width: 100vw;
  height: 75vh;
  overflow: hidden; 
}
section#kv #main .kv-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  filter: grayscale(1) blur(10px);
  transform: scale(1.05);
  transition:
    opacity 1s ease,
    filter 0.6s ease,
    transform 0.6s ease;
}

section#kv #main .flash {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: white;
  opacity: 0;
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
section#kv #main #noiseCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  opacity: 1;
  transition: opacity 1s ease;
}
@media screen and (max-width: 768px) {
  section#kv #main {
    height: 60vh;
  }
}
section#kv .upper {
  overflow: hidden;
  position: relative;
  z-index: 10;
  height: 350px;
  transform: translateY(-50%);
}
@media screen and (max-width: 992px) {
  section#kv .upper {
    height: 280px;
  }
}
@media screen and (max-width: 768px) {
  section#kv .upper {
    height: 200px;
  }
}
@media screen and (max-width: 576px) {
  section#kv .upper {
    height: 140px;
  }
}
section#kv .upper .deco {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 350px;
  clip-path: polygon(0 0, 0 100%, 80% 50%);
  background-image: url(../img/top/deco.jpg);
  background-size: 3800px;
  background-position: center center;
  z-index: 10;
  animation: leftIn 1s 2.5s forwards;
}
@media screen and (max-width: 992px) {
  section#kv .upper .deco {
    height: 280px;
    background-size: 3500px;
  }
}
@media screen and (max-width: 768px) {
  section#kv .upper .deco {
    height: 200px;
    background-size: 3000px;
  }
}
@media screen and (max-width: 576px) {
  section#kv .upper .deco {
    height: 140px;
    background-size: 2700px;
  }
}
section#kv .upper .color {
  z-index: 10;
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 350px;
  background-color: #8e1e23;
  opacity: 0.8;
  clip-path: polygon(100% 40%, 60% 65%, 100% 100%);
  animation: rightIn 0.7s 3s forwards;
}
@media screen and (max-width: 992px) {
  section#kv .upper .color {
    height: 280px;
  }
}
@media screen and (max-width: 768px) {
  section#kv .upper .color {
    height: 200px;
    clip-path: polygon(100% 40%, 55% 70%, 100% 100%);
  }
}
@media screen and (max-width: 576px) {
  section#kv .upper .color {
    height: 140px;
    clip-path: polygon(100% 40%, 40% 80%, 100% 100%);
  }
}
section#kv .upper .color .contact {
  position: absolute;
  top: 60%;
  right: 5%;
}
@media screen and (max-width: 992px) {
  section#kv .upper .color .contact {
    top: 62%;
    right: -76%;
    width: 100%;
    font-size: 14px;
  }
}
@media screen and (max-width: 768px) {
  section#kv .upper .color .contact {
    top: 61%;
    right: -71%;
    width: 100%;
    font-size: 12px;
  }
}
@media screen and (max-width: 576px) {
  section#kv .upper .color .contact {
    top: 67%;
    right: -65%;
    width: 100%;
    font-size: 10px;
  }
}
section#kv .upper .color .contact a {
  display: flex;
  color: white;
  text-decoration: none;
  align-items: center;
  gap: 10px;
}
section#kv .upper .color .contact a span.circle {
  position: relative;
  width: 50px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: solid 2px white;
}
@media screen and (max-width: 992px) {
  section#kv .upper .color .contact a span.circle {
    width: 35px;
  }
}
@media screen and (max-width: mb) {
  section#kv .upper .color .contact a span.circle {
    width: 25px;
  }
}
@media screen and (max-width: 576px) {
  section#kv .upper .color .contact a span.circle {
    width: 20px;
  }
}
section#kv .upper .color .contact a span.circle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40%;
  transform: translate(-70%, -50%) rotate(-45deg);
  aspect-ratio: 1/1;
  border-right: solid 3px;
  border-bottom: solid 3px;
  border-color: white;
}
/* section#kv .upper .bgc {
  z-index: 5;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 350px;
  background-color: white;
  clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 62.5%);
} */
@keyframes zoomIn {
  0% {
    background-size: 105%;
  }
  100% {
    background-size: 120%;
  }
}
@keyframes leftIn {
  0% {
    left: -100%;
  }
  100% {
    left: 0;
  }
}
@keyframes rightIn {
  0% {
    left: 100%;
  }
  100% {
    left: 0;
  }
}
@keyframes kvShow {
  0% {
    opacity: 0;
  } 
  100% {
    opacity: 1;
  }
}
section#philosophy {
  width: fit-content;
  margin: 50px auto;
  display: flex;
  gap: 80px;
  align-items: flex-start;
}
@media screen and (max-width: 992px) {
  section#philosophy {
    flex-direction: column;
    gap: 20px;
  }
}
section#philosophy .title {
  display: flex;
  align-items: center;
  font-family: "KakuGyo", sans-serif;
  color: #7e0000;
  font-size: 35px;
  flex-direction: column;
  width: fit-content;
}
@media screen and (max-width: 992px) {
  section#philosophy .title {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
section#philosophy .title h2 {
  padding-bottom: 15px;
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  text-orientation: upright;
  -webkit-text-orientation: upright;
}
@media screen and (max-width: 992px) {
  section#philosophy .title h2 {
    writing-mode: horizontal-tb;
    -webkit-writing-mode: horizontal-tb;
    -ms-writing-mode: lr-tb;
    text-orientation: mixed;
    -webkit-text-orientation: mixed;
  }
}
section#philosophy .title .line {
  width: 1.7px;
  margin: 0 auto;
}
@media screen and (max-width: 992px) {
  section#philosophy .title .line {
    display: none;
  }
}
section#philosophy .title .line img {
  display: block;
  max-width: 100%;
}
section#philosophy .main-content {
  position: relative;
}
section#philosophy .main-content::before {
  content: "";
  position: absolute;
  aspect-ratio: 500/217;
  width: 100%;
  background-image: url("../img/top/fuji.webp");
  z-index: -1;
  background-size: 100%;
  right: 0;
  bottom: 0px;
}
section#philosophy .main-content .top {
  display: flex;
  justify-content: space-between;
}
@media screen and (max-width: 992px) {
  section#philosophy .main-content .top {
    flex-direction: column-reverse;
    align-items: center;
    gap: 20px;
  }
}
section#philosophy .main-content .top .text {
  padding: 10px 5px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 2.6;
  letter-spacing: 0.3em;
  font-family: "KakuGyo", sans-serif;
  font-size: 19px;
}
section#philosophy .main-content .top .image {
  width: 320px;
  margin-right: 50px;
}
@media screen and (max-width: 992px) {
  section#philosophy .main-content .top .image {
    margin-right: 0;
  }
}
section#philosophy .main-content .top .image img {
  display: block;
  width: 100%;
}
section#philosophy .main-content .bottom {
  padding-right: 100px;
}
@media screen and (max-width: 992px) {
  section#philosophy .main-content .bottom {
    padding-left: 3%;
    padding-right: 3%;
  }
}
section#philosophy .main-content .bottom .message {
  text-align: left;
  line-height: 2;
  letter-spacing: 0.03em;
  font-family: "A1Mincho", sans-serif;
}
section#philosophy .main-content .bottom .signature {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "A1Mincho", sans-serif;
}
section#philosophy .main-content .bottom .signature .sign-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
section#philosophy .main-content .bottom .signature .sign-wrap .sign {
  width: 120px;
}

section#about {
  background-image: url("../img/top/bgimg.webp");
  background-size: cover;
  padding: 200px 0 400px;
  position: relative;
  background-position: center;
  clip-path: url(#clip-shape-about);
}
@media screen and (max-width: 992px) {
  section#about {
    clip-path: url(#clip-shape-about-sp);
    flex-direction: column;
    gap: 20px;
  }
}
section#about::before {
  content: "";
  position: absolute;
  background-image: url("../img/top/deco.webp");
  background-size: 100%;
  aspect-ratio: 500/5122;
  width: 100px;
  top: 0;
  left: 0;
}
section#about .circles {
  background-image: url("../img/top/circle.webp");
  aspect-ratio: 1000/936;
  background-size: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  font-family: "ZenKakuGothicNew", sans-serif;
  font-weight: 500;
}
section#about .circles::before {
  content: "";
  position: absolute;
  background-image: url("../img/top/circlelogo.webp");
  background-size: 100%;
  aspect-ratio: 500/429;
  width: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@media screen and (max-width: 768px) {
  section#about .circles::before {
    width: 180px;
  }
}
section#about .circles span {
  position: absolute;
  text-align: center;
  transform: translate(-50%, -50%);
  color: #7e0000;
  font-size: 1rem;
}
@media screen and (max-width: 576px) {
  section#about .circles span {
    font-size: 13px;
  }
}
section#about .circles span a {
  color: inherit;
  text-decoration: none;
}
section#about .circles span:nth-child(1) {
  top: 13%;
  left: 72%;
}
section#about .circles span:nth-child(2) {
  top: 49%;
  left: 89%;
}
section#about .circles span:nth-child(3) {
  top: 87%;
  left: 72%;
}
section#about .circles span:nth-child(4) {
  top: 87%;
  left: 28%;
}
section#about .circles span:nth-child(5) {
  top: 49%;
  left: 11%;
}
section#about .circles span:nth-child(6) {
  top: 13%;
  left: 28%;
}

section#content {
  background-image: url("../img/top/bgi-3.webp");
  background-size: cover;
  background-position: bottom center;
  padding: 200px 0 0px;
  z-index: 50;
  margin-top: -15%;
  /* 定義した clipPath を適用 */
  clip-path: url(#clip-shape-content);
}
@media screen and (max-width: 992px) {
  section#content {
    margin-top: -20%;
  }
}
@media screen and (max-width: 992px) {
  section#content {
    clip-path: url(#clip-shape-content-sp);
  }
}
section#content .center {
  display: flex;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  justify-content: space-between;
  padding-bottom: 50px;
}
@media screen and (max-width: 992px) {
  section#content .center {
    flex-direction: column-reverse;
    align-items: center;
    gap: 40px;
  }
}
section#content .img {
  position: relative;
}
section#content .img nav {
  width: 498px;
  font-family: "ZenKakuGothicNew", sans-serif;
  height: 820px;
}
@media screen and (max-width: 992px) {
  section#content .img nav {
    width: 375px;
    margin: 0 auto;
    height: 620px;
  }
}
section#content .img nav a {
  display: block;
  position: relative;
  width: 200px;
  height: 200px;
  transform: rotate(45deg) skew(-10deg, -10deg);
  overflow: hidden;
  transition: 0.4s;
}
@media screen and (max-width: 992px) {
  section#content .img nav a {
    width: 150px;
    height: 150px;
  }
}
section#content .img nav a:hover {
  opacity: 0.6;
}
section#content .img nav a:nth-child(1) {
  top: 17px;
  left: 14%;
}
section#content .img nav a:nth-child(1)::before {
  background-image: url("../img/top/会計六法.jpg");
}
section#content .img nav a:nth-child(1) span {
  background-color: rgba(126, 0, 0, 0.8);
}
section#content .img nav a:nth-child(2) {
  top: -65px;
  left: 48%;
}
@media screen and (max-width: 992px) {
  section#content .img nav a:nth-child(2) {
    top: -45px;
    left: 49%;
  }
}
section#content .img nav a:nth-child(2)::before {
  background-image: url("../img/top/会計・税務.jpg");
}
section#content .img nav a:nth-child(2) span {
  background-color: rgba(126, 0, 0, 0.8);
}
section#content .img nav a:nth-child(3) {
  top: -147px;
  left: 14%;
}
@media screen and (max-width: 992px) {
  section#content .img nav a:nth-child(3) {
    top: -107px;
    left: 14%;
  }
}
section#content .img nav a:nth-child(3)::before {
  background-image: url("../img/top/相続.jpg");
}
section#content .img nav a:nth-child(3) span {
  background-color: rgba(61, 78, 87, 0.8);
}
section#content .img nav a:nth-child(4) {
  top: -229px;
  left: 48%;
}
@media screen and (max-width: 992px) {
  section#content .img nav a:nth-child(4) {
    top: -169px;
    left: 49%;
  }
}
section#content .img nav a:nth-child(4)::before {
  background-image: url("../img/top/労務・人事.jpg");
}
section#content .img nav a:nth-child(4) span {
  background-color: rgba(61, 78, 87, 0.8);
}
section#content .img nav a:nth-child(5) {
  top: -311px;
  left: 14%;
}
@media screen and (max-width: 992px) {
  section#content .img nav a:nth-child(5) {
    top: -231px;
    left: 14%;
  }
}
section#content .img nav a:nth-child(5)::before {
  background-image: url("../img/top/登記.jpg");
}
section#content .img nav a:nth-child(5) span {
  background-color: rgba(61, 78, 87, 0.8);
}
section#content .img nav a:nth-child(6) {
  top: -393px;
  left: 48%;
}
@media screen and (max-width: 992px) {
  section#content .img nav a:nth-child(6) {
    top: -293px;
    left: 49%;
  }
}
section#content .img nav a:nth-child(6)::before {
  background-image: url("../img/top/法律問題.jpg");
}
section#content .img nav a:nth-child(6) span {
  background-color: rgba(61, 78, 87, 0.8);
}
section#content .img nav a::before {
  content: "";
  position: absolute;
  background-size: cover;
  top: -36%;
  bottom: -36%;
  right: -36%;
  left: -36%;
  transform: skew(10deg, 10deg) rotate(-45deg);
}
section#content .img nav a span {
  position: absolute;
  bottom: -16px;
  right: -79px;
  transform: skew(10deg, 10deg) rotate(-45deg);
  width: 104%;
  text-align: center;
  padding: 10px 0 50px;
  color: white;
}
@media screen and (max-width: 992px) {
  section#content .img nav a span {
    bottom: -27px;
    right: -66px;
    width: 109%;
  }
}
section#content .text {
  display: flex;
  flex-direction: row-reverse;
  gap: 40px;
}
@media screen and (max-width: 992px) {
  section#content .text {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    gap: 30px;
    width: 100%;
  }
}
section#content .text .title {
  display: flex;
  align-items: center;
  font-family: "KakuGyo", sans-serif;
  color: #7e0000;
  font-size: 35px;
  flex-direction: column;
  width: fit-content;
}
@media screen and (max-width: 992px) {
  section#content .text .title {
    width: 100%;
    display: block;
    text-align: center;
  }
}
section#content .text .title h2 {
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  text-orientation: upright;
  -webkit-text-orientation: upright;
}
@media screen and (max-width: 992px) {
  section#content .text .title h2 {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }
}
section#content .text .title .line {
  width: 1.7px;
  margin: 0 auto;
}
@media screen and (max-width: 992px) {
  section#content .text .title .line {
    display: none;
  }
}
section#content .text .title .line img {
  width: 100%;
  display: block;
}
section#content .text .description {
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 2.5;
  letter-spacing: 0.5em;
  font-size: 18px;
  font-family: "KyokaICA", sans-serif;
}
@media screen and (max-width: 992px) {
  section#content .text .description {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    letter-spacing: 0.3em;
    padding-right: 3%;
    padding-left: 3%;
    font-size: 17px;
    width: fit-content;
  }
}