body {
  box-sizing: border-box;
  font-family: "Yu Gothic", "游ゴシック体", "YuGothic", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", "Meiryo", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Arial;
}



/* header */
header {
  width: 100%;
  height: 60px;
  /*background-color: rgba(255,255,255,0.9);*/
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.header-logo-link {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.header-logo {
  height: 40px;
  margin: 10px auto;
}

/* PC only */
.pc-header {
  display: none;
}

body {
  background-image: url("../img/common/buzzworks_haikei.jpg");
  background-size: cover;
  background-attachment: fixed; /* ← 固定 */
  background-position: center;
  margin: 0;
}

/* drawer */
.drawer-nav {
  right: -50rem!important;
  width: 100%;
  background-color: black;
  color: white;
}

.drawer-open .drawer-nav {
  right: 0px!important;
}

.drawer-toggle {
 right: 0!important;
}

.drawer-hamburger-icon, .drawer-hamburger-icon:after, .drawer-hamburger-icon:before {
  background-color: white;
}

.drawer-open .drawer-hamburger-icon:after, .drawer-open .drawer-hamburger-icon:before {
  background-color: white;
}

header.scrolled .drawer-hamburger-icon, header.scrolled .drawer-hamburger-icon:after, header.scrolled .drawer-hamburger-icon:before {
  background-color: black;
}

.drawer-open .drawer-hamburger-icon:after, .drawer-open .drawer-hamburger-icon:before {
  background-color: white!important;
}

.drawer-nav {
  padding-top: 80px;
  padding-left: 30px;
}

.drawer-menu-item {
  color: white;
  font-size: 1.2rem;
}

.drawer-menu-contact-button {
  display: block;
  text-align: center;
  margin: 50px 30px;
  margin-left: 0;
  padding: 15px;
  font-size: 1.2rem;
  border: 1px solid white;
}

/* main */
main {
  position: relative;
  z-index: 1;
  overflow-y: auto;
  margin:0 auto;
  max-width: 500px;
  background-color: white;
}

/* btn */
.btn-page {
  text-align: center;
  margin: 40px auto;
}

.btn, .btn-link {
  width: 220px;
  height: 40px;
  display: block;
  padding: 10px 60px;
  margin: 20px auto;
  color: black;
  text-decoration: none;
  border: 1px solid black;
  font-family: 'Yu Gothic';
  background-color: white;
}

.btn-jumper-list {
  margin: 20px auto;
  text-align: center;
}

.btn-jumper-list .card-title {
  text-align: center;
  margin: 0 auto;
}

.btn-jumper-list li { 
  width: 90%;
  margin: 20px auto;
  padding: 15px;
  border: none;
  border-radius: 5px;
  background-color: #F1F1F1;
}

.btn-fixed-right {
  position: fixed;
  top: 10%;
  right: 10%;
  display: none;
}

.btn-fixed-right-list {
  display: flex;
  flex-flow: column;
  color: white;
  gap: 30px;
}

.btn-fixed-right-item {
  height: 40px;
  line-height: 40px;
  width: 200px;
  border-radius: 5px;
  display: flex;
  flex-flow: row;
  justify-content: center;
}

.btn-fixed-right-item img {
  height: 30px;
  width: 30px;
  object-fit: contain;
  margin: auto 0;
  margin-right: 10px;
}


.btn-fixed-right-item:first-child {
  background-color: #FEA903;
}

.btn-fixed-right-item:last-child {
  background-color: #00B900;
}

.card-jumpers li.white {
  background-color: white;
  border: 1px solid #999999;
  width: 200px;
}

.card-jumpers li a {
  font-size: 20px;
}

.btn-fixed {
  position: fixed;
  bottom:0;
  width: 100%;
  height: 70px;
  background-color: #000000;
  z-index: 10;
}

.btn-fixed-list {
  height: 60px;
  display: flex;
  flex-flow: row;
  margin: 5px;
}

.btn-fixed-item {
  text-align: center;
  line-height: 35px;
  margin: 10px auto;
  color: white;
  border-radius: 5px;
}

.btn-fixed-item img {
  width: 20px;
  height: 33px;
  margin-right: 5px;
  object-fit: contain;
}

.card-jumpers li.white {
  background-color: white;
  border: 1px solid #999999;
  width: 200px;
}

.card-jumpers li a {
  font-size: 20px;
}

/* swiper */
.swiper-slide {
  width: 90%!important;
}

/* card */
.card {
  margin: 20px auto;
  padding: 10px 15px;
}

.card-title {
  margin: 20px auto;
  max-width: 400px;
  text-align: left;
  font-weight: bold;
  font-size: 1.6rem;
}


.card-bigtitle {
  max-width: 400px;
  margin: 20px 0 40px;
  font-size: 2.4rem;
  font-weight: bold;
}

.card-text {
  max-width: 400px;
  font-size: 1rem;
  margin: 20px auto;
  line-height: 1.6;
}

.card-img {
  display:block;
  margin: 20px auto;
  max-width: 100%;
  height: auto;
}

.card-dynamic-img {
  display:block;
  margin: 40px auto 60px;
  height: 165px;
}

.card-dynamic-title{
  text-align: center;
  margin: 40px auto;
  font-size: 2rem;
  font-weight: bold;
}

.card-enum-list {
  margin: 50px auto;
}

.card-enum-item:not(:last-child) {
  margin-bottom: 50px;
}

.card-enum-item-title {
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 1.2rem;
}

.card-enum-item-text {
  line-height: 1.8;
}

.card-news-text-item {
  padding: 15px 0;
  margin-bottom: 5px;
  border-bottom: 1px solid black;
}

.card-news-text-date {
  margin-bottom: 10px;
}

.card-library {
  padding: 40px 10px 100px;
  background-color: #FAFAFA;
}

.card-library-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 20px;
}
.card-library-image {
  width: calc(50% - 10px);
  height: auto;
}

.card-news-thumb-link {
  border-bottom: 1px solid black;
  margin: 20px 0;
  padding: 20px 0;
  display: block;
}

.card-news-thumb-flex {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 20px;
  margin-top: 20px;
}

.card-news-thumb-image {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
}

.card-news-thumb-title {
  font-size: 20px;
  font-weight: bold;
  margin: 20px auto;
}

.card-cta-recruit {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 40px;
}

.card-image img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.card-h2 {
  margin: 60px auto 0;
}

.card-h2 h2 {
  font-size: 30px;
}

.card-profile-title, .card-enum-num .card-title {
  margin: 20px 0;
  margin-bottom: 40px;
}

.card-profile-info {
  display: flex;
  flex-flow: row;
  gap: 30px;
  margin: 20px 0;
}

.card-profile-info p:first-child {
  width: 50px;;
}

.card-enum-num-list {
  margin: 20px 0;
}

.card-enum-num-item {
  margin: 10px 0;
}

.card-works-list-item, .card-news-list-item {
  margin-bottom: 40px;
  padding-bottom: 30px;
}

.card-works-list-item:not(:last-child), .card-news-list-item:not(:last-child) {
  border-bottom: 3px solid #E2E3E5;
}

.card-works-list-date, .card-news-list-date {
  display: block;
  margin: 10px;
}

.card-works-list-title, .card-news-list-title {
  margin:20px 10px;
}

.card-works-list-image, .card-news-list-image {
  height: 100%;
  width: 100%;
  border: 1px solid #CCC;
  object-fit: contain;
  aspect-ratio: 3/2;
}

.card-category-switch-title {
  margin-bottom: 20px;
}

.card-category-switch-list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 10px;
}

.card-category-switch-item {
  display: flex;
}

.card-category-switch-item a {
  display: block;
  text-decoration: none;
  color: #AAA; /* 薄めの文字色 */
}

.card-category-switch-item.is-active a {
  color: black; /* 濃い文字色 */
}

.card-category-switch-item .separator {
  color: #999; /* / の色 */
  margin-left: 0.4rem;
}

.card-tit .card-title {
  text-align: center;
}

.card-tit .card-bigtitle {
  font-size: 21px;
}

.card-single-news {
  margin-top: 40px;
}

.card-single-news-img {
  border: 1px solid #CCC;
  width: 100%;
}

.card-single-news-text {

}

.card-single-works-date {
  margin-bottom: 20px;
}

.card-single-works-border {
  display: block;
  width: 100%;
  margin: 40px auto;
  border: 3px solid #999;
}

.card-single-works-text-title {
  margin: 10px 0;
  font-weight: bold;
  font-size: 20px;
}

.card-recruit {
  padding: 60px 20px;
  margin-bottom: 0;
  background-color: #F1F1F1;
}

.card-recruit .card-title {
  text-align: center;
  margin-bottom: 0;
}

.card-recruit .card-subtitle {
  margin-top: 40px;
  font-size: 21px;
}

.card-recruit-border {
  display: block;
  border: 1px solid #666666;
  margin: 10px auto 40px;
}

.card-recruit-list li {
  margin: 30px 0;
}

.card-recruit-list li p:first-child {
  font-weight: bold;
  margin-bottom: 10px;
}

.card-tit {
  padding: 0;
}

.card-tit .card-text {
  margin: 20px;
}

.card-tit .card-bigtitle {
  margin: 20px;
}

.card-carousel {
  margin: 20px auto;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  scrollbar-width: none;  /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.card-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.card-carousel.dragging {
  cursor: grabbing;
}

.card-carousel-item {
  width: 85%;               /* li の幅 */
  flex: 0 0 auto;           /* 横幅固定 */
  scroll-snap-align: start; /* ✅ 修正 */
  list-style: none;
}

.card-carousel-img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  pointer-events: none;     /* 画像に邪魔されずドラッグ可能 */
  user-select: none;
}


main .card-detail:last-child {
  margin-bottom: -20px;
}

.card-detail {
  padding: 20px;
}

.card-detail-link {
  background-color: black;
  color: white;
  margin: 0 auto;
}

.card-detail-link.white {
  background-color: white;
  color: black;
}

.card-detail-link.black .btn-page a {
  background-color: white;
  color: black;
}

main section.card-detail:ntd-last-child(1) {
  margin-bottom: 0;
}

.card.card-flow {
  padding: 40px;
}

.card-flow.black {
  background-color: black;
  color: white;
}

.card-flow.white {
  background-color: white;
  color: black;
}

.card-flow .card-title {
  text-align: center;
}

.card-flow-img:first-child {
  border: 1px solid gray;
}

.card-flow-img-arrow {
  height: 60px;
  width: 60px;
  border: none;
}

.card-h1-title {
  font-size: 53px;
  font-weight: bold;
  margin:5px 0;
}

.card-h1-text {
  margin: 5px 0;
}

.card-form {
  margin-bottom: 80px;
}

.card-form-title {
  text-align: center;
  padding: 20px;
  margin: 20px auto;
  font-size: 25px;
  background-color: #CCC;
  color: white;
}

.card-cta.black {
  background-color: black;
  color: white;
  margin-bottom: 0;
}

.card-form-tel {
  font-size: 2.5rem;
  font-weight: bold;
  font-family: arial;
  text-align: center;
  display: block;
}

.nav-post {
  margin: 40px 20px;
}

.nav-post-list {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  margin-top: 2em;
  font-size: 14px;
}

.nav-post-item a {
  color: black;
  text-decoration: none;
  padding: 0.5em 1em;
}

.nav-post-item.prev, .nav-post-item.next {
  line-height: 40px;
  min-width: 100px;
}

.nav-post-item.home {
  width: 200px;
  border: 1px solid black;
  text-align: center;
  padding: 10px;
}

.nav-post-item.next {
  text-align: right;
}

.nav-post-item a:hover {
  background: #ddd;
}


/* footer */
footer {
  width: 100%;
  max-width: 500px;
  height: 600px;
  background-color: #E2E3E5;
  margin: 0 auto;
  margin-bottom: 50px;
}

.footer-logo-link {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.footer-logo {
  height: 136px;
  margin: 10px auto;
  opacity: 1;
}

.footer-nav {
  width: 70%;
  margin: 20px auto 50px;
  transform: translateX(10%);
}

.footer-menu {
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  grid-auto-flow: column;
  gap: 10px ;
}

.footer-menu-item {
  width: 100px;
}

.footer-info {
  text-align: center;
}

.footer-info * {
  margin: 10px auto;
}

/* eyecatch */
.eyecatch {
  width: 100%;
  height: 90%;
}

.eyecatch-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyecatch-image {
  height: 700px;
}

.eyecatch-image img{
  width: 100%;
  height: 100%;
  max-height: 700px;
  object-fit: cover;
}

.eyecatch-image-title {
  position: relative;
  bottom: 200px;
  color: white;
  margin-left: 20px;
}

.eyecatch-image-title h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom:20px;
}

.breadcrumb {
  margin: 20px 10px;
}

.breadcrumb a:first-child {
  text-decoration: underline;
}

/* gotop */
.gotop {
  position: fixed;
  z-index: 1;
  right: 1rem;
  bottom: -30rem;
  transition: all 1s;
}

.scrolled .gotop {
  bottom: 80px;
}

@media screen and (min-width: 500px) {
  .drawer-nav {
    right: -70rem!important;
  }

  .pc-header {
    display: none;
  }

  .card-title, .card-text, .card-tit .card-bigtitle {
    max-width: 500px;
  }

  footer {
    display: block
  }

  .gotop {
    right: calc((100vw - 500px - 150px) / 2);
  }

  .scrolled .gotop {
    bottom: 3%;
    right: calc((100vw - 500px - 150px) / 2);
  }
}

@media screen and (min-width: 1050px) {
  header {
    width: calc((100vw - 420px) / 2);
    height: 500px;
    top: auto;
    bottom: 0;
    background-color: inherit!important;
  }

  .header-logo-link {
    display: none;
  }

  .drawer-toggle {
    display: none;
  }

  .drawer-nav {
    display: none;
  }

  .pc-header {
    display: flex;
    flex-flow: column;
    color: white;
  }

  .pc-logo {
    height: 10rem;
  }

  .pc-logo-link {
    text-align :center;
  }

  .pc-menu {
    margin: 30px auto;
    width: 300px;
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    gap: 10px 30px;
    justify-content: center;
  }

  .pc-menu-contact-button {
    text-align: center;
    border: 1px solid white;
    width: 260px;
    padding: 10px;
    margin: 0 auto;
  }

  .pc-menu-social-link {
    width: auto;
    margin: 30px auto;
    text-align: center;
  }

  .btn-fixed {
    display: none;
  }

  .btn-fixed-right {
    display: block;
  }
}
