@charset "utf-8";

:root {
  --maincolor: #333333;
  --subcolor: #f5f5f5;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  color: var(--maincolor);
  background-color: var(--subcolor);
}

p {
  font-size: 15px;
  font-weight: bold;
  line-height: 1.7;
  font-feature-settings: "palt";
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 30px;
}

#header .logo {
  width: 200px;
  padding-top: 80px;
  margin: 0 auto;
}

.hamburger {
  display: none;
}

.header__nav-sp {
  display: none;
}

.header__nav {
  /* ++++++追加++++++ */
  position: absolute;
  top: 680px;
  /* ++++++++++++++++ */
  width: 100%;
  height: 80px;
  background-color: var(--maincolor);
  z-index: 99999;
}

.header__nav.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.header__nav ul {
  display: flex;
  justify-content: center;
  padding: 0;
  font-family: "WDXL Lubrifont JP N", sans-serif;
}

.header__nav li {
  font-size: 30px;
  color: #f5f5f5;
  padding: 0 36px;
}

.header__nav ul li a {
  display: inline-block;
  line-height: 80px;
  text-transform: capitalize;
}

.header__nav ul li a:last-child {
  padding-right: 0;
}

.header__nav ul li a:hover {
  opacity: 0.5;
}

@media (max-width: 767px) {
  .header__nav {
    display: none;
  }

  /* --- ハンバーガーアイコン（猫ちゃんボタン） --- */
  .hamburger {
    display: block !important;
    position: fixed; /* 画面の右上に常に固定 */
    top: 20px;
    right: 20px;
    z-index: 10000; /* 黒い背景よりも手前に表示 */
    cursor: pointer;
    width: 40px; /* 画像のサイズに合わせて適宜調整してください */
    height: auto;
  }

  /* 通常時の画像表示制御 */
  .hamburger .icon-close {
    display: none !important;
  }
  .hamburger .icon-open {
    display: block !important;
  }

  /* メニューが開いたとき（.openがついたとき）の画像切り替え */
  .hamburger.open .icon-open {
    display: none !important;
  }
  .hamburger.open .icon-close {
    display: block !important;
  }

  /* --- ドロワーメニュー（黒い背景） --- */
  .header__nav-sp {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85); /* 透過の黒 */
    z-index: 9999; /* 猫ちゃんの一歩後ろに配置 */
    display: none; /* ★重要：最初は非表示にして隠しておく */
  }

  .header__nav-sp ul {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    justify-content: center; /* 画面の上下中央にナビを配置 */
  }

  .header__nav-sp a {
    font-family: "WDXL Lubrifont JP N", sans-serif;
    color: #fff;
    font-size: 2.4rem;
    text-decoration: none;
    display: block;
  }
}

.main {
  width: 60%;
  display: flex;
  align-items: center;
}

.concept {
  overflow: hidden;
}

.concept .main-img {
  width: 1100px;
  padding-top: 30px;
  margin: 0 auto;
  /*display: block;*/
  position: relative;
}

/* この下 ネコモニター浮かび上がるアニメーション */
.main-img {
  /* 初期状態：透明で少し下に配置 */
  opacity: 0;
  transform: translateY(30px);

  /* アニメーションの設定（1.5秒かけてスッと動く） */
  animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(30px); /* 開始位置（下） */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* 終了位置（元の場所） */
  }
}
/* この上 ネコモニター浮かび上がるアニメーション */

.concept-inner {
  position: absolute;
  top: 500px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 800px;
  width: 100%;
  /*height: 80%;*/
}

.img-laptop {
  display: none;
}

.img-tablet {
  display: none;
}

.img-sp {
  display: none;
}

/* pcサイズ モニターの中身 ここから */

.concept-inner h2 .concept_title_pc {
  width: 540px;
  padding: 10px 0 170px 0;
}

.concept_title_sp {
  display: none;
}

.concept-inner h3 {
  font-family: "WDXL Lubrifont JP N", sans-serif;
  font-size: 40px;
  font-weight: 400;
}

.concept-inner .concept-text {
  font-size: 16px;
  line-height: 130%;
  padding: 30px 0 30px 0;
}

.concept-inner .point {
  font-size: 20px;
  line-height: 150%;
  font-weight: 900;
  width: 120%;
}

.container {
  padding: 30px 0 30px 0;
}

.container h3 {
  font-family: "WDXL Lubrifont JP N", sans-serif;
  font-size: 40px;
  font-weight: 400;
}

.subtitle {
  font-family: "WDXL Lubrifont JP N", sans-serif;
  font-size: 36px;
  line-height: 120%;
  font-weight: 400;
}

#concept h2 {
  max-width: 540px;
}

/* pcサイズ モニターの中身 ここまで */

/* pcサイズ モニターの Worksボタン ここから */

.concept-inner .btn-works {
  font-family: "WDXL Lubrifont JP N", sans-serif;
  color: var(--subcolor);
  display: flex;
  justify-content: center;
  /* margin: 0 auto; */
  font-size: 62px;
  font-weight: 400;
  position: absolute;
  top: 750px;
  left: 25%;
  width: 50%;
}
.btn-works:hover {
  transform: scale(1.5);
  transition: transform 0.3s ease;
}

/* pcサイズ モニターの Worksボタン ここまで */

/* laptopサイズ ここから */

@media (768px <= width < 1099px) {
  .header__nav {
    /* ++++++追加++++++ */
    position: absolute;
    top: 614px;
    /* ++++++++++++++++ */
    width: 100%;
    height: 74px;
    background-color: var(--maincolor);
  }

  .header__nav.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
  }

  .header__nav li {
    font-size: 28px;
    color: #f5f5f5;
    padding: 0 25px;
  }

  .concept .main-img {
    width: 900px;
    padding-top: 50px;
    margin: 0 auto;
    /*display: block;*/
    position: relative;
  }
  .img-pc {
    display: none;
  }
  .img-laptop {
    display: block;
  }
  .img-tablet {
    display: none;
  }
  .img-sp {
    display: none;
  }

  .concept-inner {
    position: absolute;
    top: 450px;
    left: 55%;
    transform: translateX(-60%);
    max-width: 600px;
    width: 100%;
    /*height: 80%;*/
  }

  /* laptopサイズ ねこモニター ここまで */

  .service,
  .about,
  .h3-title {
    padding-top: 20px;
  }

  .heading__text {
    padding-bottom: 10px;
  }
}

/* laptopサイズ ここまで */

/* tabletサイズ ここから */

@media (480px <= width < 767px) {
  .concept .main-img {
    width: 600px;
    padding-top: 50px;
    margin: 0 auto;
    /*display: block;*/
    position: relative;
  }
  .img-pc {
    display: none;
  }
  .img-laptop {
    display: none;
  }
  .img-tablet {
    display: block;
  }
  .img-sp {
    display: none;
  }
  /* ねこモニター ここまで */

  .concept-inner {
    position: absolute;
    top: 360px;
    left: 50%;
    /* transform: translateX(-50%); */
    max-width: 400px;
    width: 100%;
    /*height: 80%;*/
  }

  .container {
    max-width: 767px;
    margin: 0 auto;
    padding: 0 30px;
  }

  .concept-inner h2 .concept_title_sp {
    width: 380px;
    padding: 50px 0 70px 0;
  }

  .concept_title_sp {
    display: block;
  }

  .concept_title_pc {
    display: none;
  }

  .concept-inner .point {
    font-size: 22px;
    line-height: 200%;
    font-weight: 900;
    width: 100%;
  }

  /* タブレットサイズ モニターの Worksボタン ここから */

  .concept-inner .btn-works {
    font-family: "WDXL Lubrifont JP N", sans-serif;
    color: var(--subcolor);
    display: flex;
    justify-content: center;
    /* margin: 0 auto; */
    font-size: 50px;
    font-weight: 400;
    position: absolute;
    top: 960px;
    left: 25%;
    width: 50%;
  }
  .btn-works:hover {
    transform: scale(1.3);
    transition: transform 0.3s ease;
  }

  /* タブレットサイズ モニターの Worksボタン ここまで */
}

/* tabletサイズ ここまで */

/* spサイズ ここから */

@media (max-width: 479px) {
  .concept .main-img {
    width: 390px;
    padding-top: 50px;
    margin: 0 auto;
    /*display: block;*/
    position: relative;
  }
  .img-pc {
    display: none;
  }
  .img-laptop {
    display: none;
  }
  .img-tablet {
    display: none;
  }
  .img-sp {
    display: block;
  }

  /* ねこモニター ここまで */

  #header .logo {
    width: 200px;
    padding-top: 50px;
    margin: 0 auto;
  }

  .container {
    max-width: 390px;
    margin: 0 auto;
    padding: 0 30px;
  }

  .concept-inner {
    position: absolute;
    top: 240px;
    left: 48%;
    /* transform: translateX(-50%); */
    max-width: 270px;
    width: 100%;
    /*height: 80%;*/
  }

  .concept-inner h2 .concept_title_sp {
    width: 280px;
    padding: 50px 0 70px 0;
  }

  .concept_title_sp {
    display: block;
  }

  .concept_title_pc {
    display: none;
  }

  .concept-inner .concept-text {
    font-size: 16px;
    line-height: 150%;
    padding: 30px 0 30px 0;
  }

  .concept-inner .point {
    font-size: 21px;
    line-height: 200%;
    font-weight: 900;
    width: 100%;
  }
  /* spサイズ モニターの Worksボタン ここから */

  .concept-inner .btn-works {
    font-family: "WDXL Lubrifont JP N", sans-serif;
    color: var(--subcolor);
    display: flex;
    justify-content: center;
    /* margin: 0 auto; */
    font-size: 50px;
    font-weight: 400;
    position: absolute;
    top: 1066px;
    left: 25%;
    width: 50%;
  }
  .btn-works:hover {
    transform: scale(1.3);
    transition: transform 0.3s ease;
  }
  /* spサイズ モニターの Worksボタン ここまで */
} /* spサイズ ここまで */

.staffs {
  padding-top: 20px;
  margin-top: 20px;
}

.staff {
  width: 750px;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 10px;
  padding: 10px;
}

.staff-box {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
}

.staff-position {
  font-family: "WDXL Lubrifont JP N", sans-serif;
  font-size: 20px;
  font-weight: 400;
}

.staff-name {
  font-family: "WDXL Lubrifont JP N", sans-serif;
  font-size: 40px;
  font-weight: 400;
}

.staff-profile {
  padding: 10px;
}

.staff-image .base-image img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;

  max-width: 80%;
  height: auto;
  display: block;
}

.staff-image {
  position: relative;
}

.staff-image .hover-image {
  position: absolute;
  top: 0;
  left: 0;
}

.staff-image .base-image {
  opacity: 1;
}

.staff-image .hover-image {
  opacity: 0;
}

.staff-image:hover .base-image {
  opacity: 0;
}

.staff-image:hover .hover-image {
  opacity: 1;
}

.footer__nav-sp {
  display: none;
}

/* 画面幅が 768px 以下のときに縦並びにする設定 */
@media screen and (max-width: 768px) {
  /* IDセレクタ（#付き）は元々優先度が非常に高いため、importantは不要です */
  #service,
  #about,
  #contact {
    padding-top: 100px;
    margin-top: 40px;
  }

  /* 通常時の .staff（width: 750px）と同じクラス同士なので、
     下に記述されているこちらが最優先されます */
  .staff {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 10px;
    box-sizing: border-box;
  }

  /* --- イラスト（img）の縮小調整 --- */
  .staff-image {
    width: 100%;
    max-width: 160px;
    margin: 0 auto;
  }

  /* 通常時の .staff-image .base-image img よりセレクタの文字数を長く
     具体的に（.staffを加えるなど）指定することで、important無しで上書きしています */
  .staff .staff-image .base-image img,
  .staff .staff-image .hover-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 0;
    margin: 0 auto;
  }
}

.footer__nav ul {
  width: 960px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  padding: 60px 0 130px 0;
}

.footer__nav li {
  width: 100px;
  height: 135px;
  /*font-family: "WDXL Lubrifont JP N", sans-serif;*/
  /*font-size: 30px;*/
  /*text-align: center;*/
  display: flex;
  flex-direction: column;
}

.hover-container {
  position: relative;
  width: 100px;
}

.hover-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  /*transition: opacity 0.1s;*/
}

.hover-container .base-image {
  opacity: 1;
}

.hover-container .hover-image {
  opacity: 0;
}

.hover-container:hover .base-image {
  opacity: 0;
}

.hover-container:hover .hover-image {
  opacity: 1;
}

.icon-name {
  font-family: "WDXL Lubrifont JP N", sans-serif;
  font-size: 30px;
  text-align: center;
  padding-top: 100px;
}

.icon-name:hover {
  transform: scale(1.1);
  transition: transform 0.1s ease;
}

.footer_logo {
  width: 200px;
  padding-bottom: 45px;
  margin: 0 auto;
}

/* sp フッターナビ */
@media screen and (max-width: 768px) {
  .footer__nav {
    display: none;
  }

  .footer__nav-sp,
  .footer__nav-sp ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    margin: 0 auto;
    list-style: none;
  }

  .footer__nav-sp li,
  .footer__nav-sp a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 1.8rem;
    font-family: "WDXL Lubrifont JP N", sans-serif;
    color: var(--maincolor);
  }

  .footer__nav-sp ul li a:hover {
    opacity: 0.5;
  }
}

.copyright {
  font-family: "Zen Kaku Gothic New", sans-serif;
  color: var(--maincolor);
  font-size: 12px;
  padding-bottom: 20px;
  text-align: center;
}

.pagetop {
  animation: pagetop 3s ease-in-out infinite alternate;
  background: url(./images/icon_pagetop.svg) no-repeat center center / 60px auto;
  display: inline-block;
  transition: 1.5s ease-in-out;
  position: fixed;
  right: 10px; /* 右からの位置 */
  bottom: 20px; /* 下からの位置 */
  z-index: 100; /* 他の要素より上に表示 */
}

.pagetop img {
  width: 100px; /* 画像の幅 */
  height: auto; /* 高さは自動調整 */
}

.pagetop :hover {
  animation: shake 0.5s; /* 0.5秒間動く */
  animation-iteration-count: infinite; /* 無限にループ */
  display: inline-block; /* インライン要素の場合必要 */
}

@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }
  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }
  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }
  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }
  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }
  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }
  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }
  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }
  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }
  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }
  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}

@keyframes pagetop {
  0% {
    transform: translate(0, 0) rotate(-7deg);
  }
  50% {
    transform: translate(0, -7px) rotate(0deg);
  }
  100% {
    transform: translate(0, 0) rotate(7deg);
  }
}

/* pagetopが 768px 以下のときにふわふわする設定 */
@media screen and (max-width: 768px) {
  .pagetop {
    position: fixed;
    right: 10px; /* 右からの位置 */
    bottom: 40px; /* 下からの位置 */
    z-index: 100; /* 他の要素より上に表示 */
    animation: pagetop 3s ease-in-out infinite alternate;
    background: url(./images/icon_pagetop.svg) no-repeat center center / 60px
      auto;
    display: inline-block;
    transition: 1.5s ease-in-out;
    width: 70px;
    height: 70px;
  }

  .pagetop img {
    width: 80px; /* 画像の幅 */
    height: auto; /* 高さは自動調整 */
  }

  @keyframes pagetop {
    0% {
      transform: translate(0, 0) rotate(-7deg);
    }
    50% {
      transform: translate(0, -7px) rotate(0deg);
    }
    100% {
      transform: translate(0, 0) rotate(7deg);
    }
  }

  .pagetop :hover {
    animation: none;
  }
}
