@charset "utf-8";
@import url('https://fonts.googleapis.com/css?family=Varela+Round&display=swap');

html {
  font-size: 62.5%;
  /*ベースを10pxにしています*/
}

body {
  font-size: 1.8rem;
  line-height: 1.4;
  color: #666;
  font-family: "游ゴシック Medium", YuGothic, YuGothicM, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

:root {
  --color-main: #e50012;
  --font-en: "Varela Round", "游ゴシック Medium", YuGothic, YuGothicM, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, sans-serif;
  --newtab-hover: url('data:image/svg+xml;charset=utf8,%3Csvg%20version%3D%221.1%22%20id%3D%22_x32_%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22width%3A%20256px%3B%20height%3A%20256px%3B%20opacity%3A%201%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%20.st0%7Bfill%3A%23e50012%3B%7D%3C%2Fstyle%3E%3Cg%3E%20%3Cpath%20class%3D%22st0%22%20d%3D%22M96%2C0v416h416V0H96z%20M472%2C376H136V112h336V376z%22%3E%3C%2Fpath%3E%20%3Cpolygon%20class%3D%22st0%22%20points%3D%2240%2C472%2040%2C296%2040%2C136%2040%2C96%200%2C96%200%2C512%20416%2C512%20416%2C472%20376%2C472%20%22%3E%3C%2Fpolygon%3E%3C%2Fg%3E%3C%2Fsvg%3E');

}

.link {
  border-bottom: solid 1px;
}

.newtab::after {
  content: '';
  display: inline-block;
  margin-inline: .25em .5em;
  width: .8em;
  height: .8em;
  background: url(/img/ico_newtab.svg) no-repeat center / cover;
}

.align-center {
  text-align: center;
}

/* 以下　header　*/
.header-menu {
  background: #fff;
  box-shadow: 0 2px 6px #aaa;
  width: 100%;
  padding: 2rem 0;
  position: fixed;
  left: 0;
  top: -76px;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .header-menu {
    transition: top .3s;
  }
}

.header-menu.is-show,
.header-menu:has(.header-menu-link:focus-visible) {
  top: 0;
}

.header-menu-list {
  display: flex;
  justify-content: center;
  gap: 3rem 4rem;
  font-family: var(--font-en);
  font-size: 2rem;
  text-transform: uppercase;
}

.menu-button {
  display: none;
}

/* 以下　eyecatch　*/
.main-visual {
  height: 100vh;
  height: 100dvh;
  position: relative;
}

.main-title {
  width: 100%;
  height: 100%;
  background: url(/img/top_img.png) center 20% / cover, #fff;
}

#main-title-text {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.main-catch {
  position: absolute;
  bottom: 10%;
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
}

.main-catch-text {
  font-size: 5rem;
  line-height: 1.3;
  color: #fff;
  background: var(--color-main);
  padding: 0 2rem 0 8rem;
  width: max-content;
}

/* 以下　ABOUT　*/
.section {
  padding-bottom: 100px;
}

.section.is-bg-red {
  background-color: var(--color-main);
  color: white;
}

.section.is-bg-gray {
  background-color: #f2f2f2;
}

.head01 {
  font-family: var(--font-en);
  font-size: 5.6rem;
  text-transform: uppercase;
  padding: 1em 0 1em 8rem;
}

.head01.is-red {
  color: var(--color-main);
}

.head01.is-bg-gray {
  background: #f2f2f2;
}

.about-container {
  max-width: 950px;
  padding: 0 3rem;
  margin: 0 auto;
}

.about-text {
  line-height: 2.5;
  letter-spacing: .6rem;
  margin-top: 3rem;
}

.about-video-modal-trigger {
  width: 100%;
  max-width: 600px;
  display: block;
  margin: 0 auto;
  background: #fff;
}

.about-video-caption {
  text-align: center;
  font-size: 1.5rem;
  margin-top: 1rem;
}

.about-video-img {
  height: auto;
}

.about-video-modal {
  padding: 3.5rem 0 0;
  border: none;
  width: 1000px;
  max-width: calc(100% - 20px);
  height: max-content;
  max-height: 90vh;
  background: none;
  overscroll-behavior: contain;
}

.about-video-modal::backdrop {
  background: rgb(0 0 0 / .8);
}

.about-video-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 35px;
  height: 35px;
}

.about-video-modal-close::before,
.about-video-modal-close::after {
  content: '';
  width: 12px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: left;
}

.about-video-modal-close::before {
  transform: rotate(45deg) translateX(-50%);
}

.about-video-modal-close::after {
  transform: rotate(-45deg) translateX(-50%);
}

.about-video {
  width: 100%;
  display: block;
}

/* 以下　works　*/
.works-container {
  max-width: 1200px;
  margin: 0 auto;
}

.works-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3.6rem 3%;
  margin-inline: 3%;
}

.works-list-item {
  font-family: var(--font-en);
}

.works-list-item-img {
  box-shadow: 2px 2px 6px #dbdbdb;
  margin-bottom: 1.2rem;
}

.works-modal-trigger {
  width: 100%;
}

.works-list-button-img-wrapper {
  display: block;
  padding-bottom: 100%;
  position: relative;
  box-shadow: 2px 2px 6px #dbdbdb;
  margin-bottom: 1.2rem;
}

.works-list-item-img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: none;
  width: 90%;
}

.micromodal__overlay {
  background: rgb(0 0 0 / .8);
  z-index: 2;
}

.micromodal__container {
  width: 1000px;
  max-width: calc(100% - 20px);
  max-height: 90vh;
  position: relative;
}

.works-close-button {
  position: absolute;
  top: 0;
  right: 0;
  width: 35px;
  height: 35px;
}

.works-close-button::before,
.works-close-button::after {
  content: '';
  width: 12px;
  height: 2px;
  background: #95979c;
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: left;
}

.works-close-button::before {
  transform: rotate(45deg) translateX(-50%);
}

.works-close-button::after {
  transform: rotate(-45deg) translateX(-50%);
}

.works-content-logo {
  width: 270px;
  margin: 0 auto 1.2rem;
}

.works-content-img {
  width: 700px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  box-shadow: 2px 2px 6px #dbdbdb;
}

.works-content-img-caption {
  font-family: var(--font-en);
  font-size: 1.5rem;
  text-align: center;
  margin-top: 1.2rem;
}

.works-content-text {
  font-size: 1.5rem;
  line-height: 1.6;
  padding: 3rem 2rem;
}

.works-content-flex-wrapper {
  display: flex;
  justify-content: center;
}

.conan .works-content-img {
  width: 200px;
}

.works-content-flex {
  padding: 0 3rem;
}

.haimus .works-content-img {
  width: 290px;
}

.hikaru .works-content-img {
  width: 350px;
}

.works-content-head::before {
  content: '';
  display: inline-block;
  width: .8em;
  height: .8em;
  background: #666;
  margin-right: .2rem;
}

.works-content-head:not(:first-of-type) {
  margin-top: 2rem;
}

.works-content-list-head:not(:first-of-type) {
  margin-top: 1em;
}

.works-content-list-item {
  padding-left: 1em;
  position: relative;
}

.works-content-list-item::before {
  content: '';
  width: .3rem;
  height: .3rem;
  border-radius: .3rem;
  background: #666;
  position: absolute;
  left: .4em;
  top: .65em;
}

/* 以下　COMPANY　*/
.company-container {
  margin: 0 auto;
  max-width: 900px;
  padding: 0 3rem;
}

.company-outline {
  background: url(/img/company_image.png) no-repeat right center / 40% auto;
}

.company-outline-head,
.company-outline-text {
  border-bottom: .1rem solid #666;
  letter-spacing: .3rem;
  text-align: left;
  padding: 1rem 0;
}

.company-outline-head {
  font-weight: bold;
  padding-right: 3.5rem;
}

.company-outline-text p + p {
  margin-top: 1em;
}

.company-affiliate {
  margin-top: 3rem;
}

.company-affiliate-head {
  font-size: 2.5rem;
}

.company-affiliate-list-item {
  margin-top: 5rem;
}

.company-affiliate-list-item-link {
  display: inline-flex;
  align-items: center;
  column-gap: 3rem;
}

.company-affiliate-list-item-img-wrap {
  width: 83px;
}

.company-affiliate-list-item-img {
  margin-inline: auto;
}

/* 以下　HISTORY　*/
.history-container {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
}

.history-year {
  text-align: left;
  padding-right: 3rem;
  white-space: nowrap;
  position: relative;
}

.history-year::after {
  content: '';
  width: 3rem;
  border-top: solid 1px #666;
  position: absolute;
  right: -1.5rem;
  top: .65em;
}

.history-list-item:nth-child(even) .history-year::after {
  border-color: #ccc;
}

.history-event {
  padding: 0 0 3rem 3rem;
  position: relative;
}

.history-list-item:last-child .history-event {
  padding-bottom: 0;
}

.history-event::before {
  content: '';
  height: 100%;
  border-left: solid 1px #666;
  position: absolute;
  left: 0;
  bottom: 0
}

.history-list-item:first-child .history-event::before {
  height: calc(100% - .65em);
}

/* 以下　ACCESS　*/
.access-container {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
}

.access-text {
  margin-top: 1rem;
  line-height: 2;
}

.access-googlemap iframe {
  width: 100%;
}

/* 以下　CONTACT　*/
.contact-container {
  width: 80%;
  max-width: 80rem;
  margin: 0 auto;
}

.contact-subhead {
  font-size: 2.5rem;
  margin-bottom: .8rem;
}

.contact-form {
  margin-top: 3rem;
}

.contact-form-list {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  line-height: 2;
}

.requred-label {
  display: inline-block;
  background: var(--color-main);
  color: #fff;
  border-radius: .4rem;
  padding: .2em 1rem;
  margin-left: 1rem;
  font-size: 1.5rem;
  line-height: 1.4;
}

.input-text {
  width: 100%;
  font-size: 1.6rem;
  font-family: inherit;
  padding: 1rem;
  border-radius: .8rem;
  border: 1px solid #999;
  background: #fff;
  box-sizing: border-box;
}

.checkbox {
  position: absolute;
  opacity: 0;
  margin: .3rem;
  transform: translateY(1rem);
}

.checkbox-text {
  padding-left: 2rem;
  position: relative;
  cursor: pointer;
}

.checkbox-text::before {
  content: '';
  width: 1.5rem;
  height: 1.5rem;
  border: solid 1px #999;
  border-radius: .4rem;
  position: absolute;
  left: 0;
  top: 3px;
}

.checkbox:focus-visible + .checkbox-text::before {
  outline: auto;
}

.checkbox:checked + .checkbox-text::after {
  content: '';
  width: 1.5rem;
  height: .5rem;
  border-left: solid 3px var(--color-main);
  border-bottom: solid 3px var(--color-main);
  transform: rotate(-45deg);
  position: absolute;
  left: 0;
  top: 3px;
}

.button-wrapper {
  margin: 2rem auto 0;
  display: flex;
  justify-content: center;
  column-gap: 2rem;
}

.button {
  border-radius: .4rem;
  padding: .6rem 4.2rem;
  background: #666;
  border: solid 2px #666;
  color: #fff;
  box-shadow: 2px 2px 8px #a5a5a5;
}

/* 以下　PRIVACY, accessibility　*/
.container {
  max-width: 950px;
  padding: 7rem 3rem;
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  font-size: 1.6rem;
  text-transform: uppercase;
}

.breadcrumbs-item:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: .5em;
  height: .5em;
  border-right: solid 1px;
  border-top: solid 1px;
  transform: rotate(45deg);
  margin-inline: 1rem;
}

.breadcrumbs-link {
  border-bottom: solid 1px;
}

.head02 {
  font-size: 2.2rem;
  font-weight: bold;
  line-height: 1.3;
  padding-bottom: 1rem;
  border-bottom: solid 2px var(--color-main);
}

.head02:not(:first-of-type) {
  margin-top: 7rem;
}

.head03 {
  font-size: 2rem;
  line-height: 1.3;
  margin-top: 4rem;
  padding: 0.8rem;
  border-left: solid 5px var(--color-main);
  border-bottom: solid 1px var(--color-main);
}

.section-text {
  line-height: 1.8;
  margin-top: 1rem;
}

.section-text.is-smaller {
  font-size: 1.3rem;
}

.accessibility-list-item {
  list-style: disc;
  line-height: 1.8;
  margin: 1rem 0 0 2rem;
}

.accessibility-table-wrapper {
  overflow-x: auto;
}

.accessibility-table {
  width: 100%;
  margin-top: 1rem;
}

.accessibility-table thead th {
  padding: .5em;
  background: #666;
  color: #fff;
  font-size: .85em;
  font-weight: bold;
  white-space: nowrap;
}

.accessibility-table thead th:not(:first-child) {
  border-left: solid 1px;
}

.accessibility-table tbody th,
.accessibility-table tbody td {
  padding: .5em;
  border: solid 1px;
}

.accessibility-table tbody th {
  text-align: left;
}

.accessibility-table:not(.is-result) tbody td {
  text-align: center;
}

.privacy-list {
  list-style: disc;
}

.privacy-list-item {
  line-height: 1.8;
  text-indent: 0;
  margin-left: 2rem;
  margin-top: 1rem;
}

.privacy-number-list {
  counter-reset: ol_counter;
}

.privacy-number-list-item {
  line-height: 1.8;
  text-indent: -2.6em;
  margin-left: 2.6em;
  margin-top: 1rem;
}

.privacy-number-list-item::before {
  counter-increment: ol_counter;
  content: '（'counter(ol_counter)'）';
}

.privacy-katakana-list {
  counter-reset: kanalist_counter;
}

.privacy-katakana-list-item {
  line-height: 1.8;
  text-indent: -2em;
  margin-left: 2em;
  margin-top: 1rem;
}

.privacy-katakana-list-item::before {
  counter-increment: kanalist_counter;
  content: counter(kanalist_counter, katakana);
  margin-right: 1em;
}

/* 以下　Footer　*/
.footer-top {
  background: #f2f2f2;
  padding: 2rem 0 3rem;
}

.footer-logo {
  margin-inline: auto;
  width: 100px;
}

.footer-menu {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  column-gap: 4rem;
  font-size: 2rem;
}

.footer-menu-link {
  font-family: var(--font-en);
  text-transform: uppercase;
}

.footer-bottom {
  background-color: #212121;
  color: white;
  text-align: center;
  padding: 1rem 0;
  font-size: 1.5rem;
}

.footer-bottom-list {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

.footer-bottom-link {
  font-size: 1.3rem;
  border-bottom: solid 1px #fff;
}

.footer-copyright {
  font-family: var(--font-en);
  font-size: 1.3rem;
}

/* ウィンドウ幅が0〜767pxの場合に適用するCSS */
@media screen and (max-width: 767px) {
  body {
    font-size: 1.5rem;
  }

  /*headerに関して*/
  .header-menu {
    visibility: hidden;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
  }

  @media (prefers-reduced-motion: no-preference) {
    .header-menu {
      transition: opacity .3s;
    }
  }

  .header-menu[aria-hidden="false"] {
    top: 0;
    visibility: visible;
    opacity: 1;
  }

  .header-menu-list {
    flex-direction: column;
    text-align: center;
  }

  .menu-button {
    display: block;
    position: fixed;
    right: 0;
    top: -6rem;
    width: 6rem;
    height: 6rem;
    background: var(--color-main);
    border-left: solid 1px rgb(255 255 255 / .7);
    border-bottom: solid 1px rgb(255 255 255 / .7);
    z-index: 2;
  }

  @media (prefers-reduced-motion: no-preference) {
    .menu-button {
      transition: top .2s ease-in;
    }
  }

  .menu-button.is-show,
  .menu-button:focus-visible {
    top: 0;
  }

  .menu-button-line,
  .menu-button-line::before,
  .menu-button-line::after {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: .2rem;
    background: #fff;
  }

  @media (prefers-reduced-motion: no-preference) {
    .menu-button-line,
    .menu-button-line::before,
    .menu-button-line::after {
      transition: transform .3s, top .3s, background .3s;
    }
  }

  .menu-button-line::before {
    content: '';
    left: 0;
    top: -.8rem;
  }

  .menu-button-line::after {
    content: '';
    left: 0;
    top: 1rem;
  }

  .menu-button[aria-expanded="true"] {
    top: 0;
  }

  .menu-button[aria-expanded="true"] .menu-button-line {
    background: none;
  }

  .menu-button[aria-expanded="true"] .menu-button-line::before {
    transform: rotate(45deg);
    top: 50%;
  }

  .menu-button[aria-expanded="true"] .menu-button-line::after {
    transform: rotate(-45deg);
    top: 50%;
  }

  /*eyecatchに関して*/
  .main-catch {
    row-gap: 1.5rem;
  }

  .main-catch-text {
    padding-left: 3rem;
    row-gap: 1.5rem;
    font-size: 3rem;
  }

  /*各見出しに関して*/
  .head01 {
    text-align: center;
    font-size: 4.5rem;
    padding-left: 0;
  }

  /*aboutに関して*/
  .about-text {
    line-height: 1.8;
    letter-spacing: .3rem;
  }

  /*worksに関して*/
  .works-list {
    grid-template-columns: repeat(2, 1fr);
    margin-inline: 8.5%;
  }

  .micromodal__container {
    max-height: calc(100% - 120px);
  }

  .works-content-text {
    padding: 2rem 0 0;
  }

  .works-content-flex-wrapper {
    flex-direction: column;
    row-gap: 2rem;
  }

  .works-content-flex {
    padding: 0;
  }

  /*COMPANYに関して*/
  .company-outline {
    padding-bottom: 30rem;
    background-position: bottom center;
    background-size: auto 26rem;
  }

  .company-outline-table {
    margin-inline: auto;
    width: 100%;
    max-width: 450px;
  }

  .company-outline-head,
  .company-outline-text {
    display: block;
  }

  .company-outline-head {
    border-bottom: none;
    padding-bottom: 0;
  }

  /*ACCESSに関して*/
  .access-container {
    width: 85%;
  }

  .access-text {
    line-height: 1.4;
  }

  /*contactに関して*/
  .contact-container {
    width: 85%;
  }

  .contact-subhead {
    margin-bottom: 1rem;
  }

  .checkbox-text::before {
    top: 0;
  }

  .accessibility-table {
    width: max-content;
    min-width: 100%;
  }

  /*footerに関して*/
  .footer-menu {
    width: 200px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }

  .footer-menu-link {
    font-size: 1.5rem;
  }
}

/* SPのみの表示 */
@media screen and (max-width:599px) {
  .head01.is-bg-gray {
    font-size: 2.25rem;
  }

  .history-year,
  .history-event {
    display: block;
  }

  .history-event {
    padding-left: 0;
  }

  .history-year::after,
  .history-event::before {
    display: none;
  }
}

@media screen and (max-width:374px) {
  .main-catch-text {
    font-size: 2.6rem;
  }
}

@media (any-hover: hover) {
  .link:hover,
  .link:focus-visible {
    color: var(--color-main);
    border-bottom: none;
  }

  .link:hover + .newtab::after,
  .link:focus-visible + .newtab::after {
    background-image: var(--newtab-hover);
  }

  .header-menu-link:hover,
  .header-menu-link:focus-visible {
    color: var(--color-main);
    border-bottom: solid 2px;
  }

  .about-video-modal-trigger:hover .about-video-img,
  .about-video-modal-trigger:focus-visible .about-video-img {
    opacity: .5;
  }

  .works-modal-trigger:hover,
  .works-modal-trigger:focus-visible {
    color: var(--color-main);
  }

  .works-modal-trigger:hover .works-list-item-img,
  .works-modal-trigger:focus-visible .works-list-item-img {
    opacity: .5;
  }

  .works-close-button:hover::before,
  .works-close-button:hover::after,
  .works-close-button:focus-visible::before,
  .works-close-button:focus-visible:after {
    background: #2b2e38;
  }

  .works-content-link:hover,
  .works-content-link:focus-visible {
    color: var(--color-main);
  }

  .works-content-link:hover .works-content-img,
  .works-content-link:focus-visible .works-content-img {
    opacity: .5;
  }

  .works-content-link:hover .link,
  .works-content-link:focus-visible .link {
    border-bottom: none;
  }

  .works-content-link:hover .newtab::after,
  .works-content-link:focus-visible .newtab::after {
    background-image: var(--newtab-hover);
  }

  .company-affiliate-list-item-link:hover,
  .company-affiliate-list-item-link:focus-visible {
    color: var(--color-main);
  }

  .company-affiliate-list-item-link:hover .company-affiliate-list-item-img,
  .company-affiliate-list-item-link:focus-visible .company-affiliate-list-item-img {
    opacity: .5;
  }

  .company-affiliate-list-item-link:hover .link,
  .company-affiliate-list-item-link:focus-visible .link {
    border-bottom: none;
  }

  .company-affiliate-list-item-link:hover .newtab::after,
  .company-affiliate-list-item-link:focus-visible .newtab::after {
    background-image: var(--newtab-hover);
  }

  .button:hover,
  .button:focus-visible {
    color: #666;
    background: #fff;
  }

  .breadcrumbs-link:hover,
  .breadcrumbs-link:focus-visible {
    border-bottom: none;
  }

  .footer-menu-link:hover,
  .footer-menu-link:focus-visible {
    color: var(--color-main);
    border-bottom: solid 2px;
  }

  .footer-bottom-link:hover,
  .footer-bottom-link:focus-visible {
    border-bottom: none;
  }
}
