/* 基本設定 */
:root {
  --c-bg: #000000;
  --c-text: #ffffff;
  --c-accent: #53beb7;
  --c-accent-hover: #d49139;
  --c-line: #7cd8c5;
  --c-news-date: #5be3cc;
  --c-news-border: #414141;
  --c-works-bg: #323a38;
  --c-service-title: #5be3cc;
  --c-footer-bg: #27312f;
  --f-ja: "Noto Sans JP", sans-serif;
  --f-en: "Jost", sans-serif;
  --site-max: 56rem;
  --site-gutter: 1.6rem;
  --header-height: 6.4rem;
}

@media (min-width: 768px) {
  :root {
    --site-gutter: 3.2rem;
  }
}

/* ベース */
html {
  font-size: 62.5%;
}

body {
  font-family: var(--f-ja);
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--c-text);
  background: #212121;
  overflow-x: hidden;
  font-feature-settings: "palt"1;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

body.is-drawer-open {
  overflow: hidden;
}

/* サイト全体 */
.site {
  position: relative;
  max-width: var(--site-max);
  min-height: 100svh;
  margin-inline: auto;
  padding-top: var(--header-height);
  overflow: hidden;
  background: var(--c-bg);
}

/* ヘッダー */
.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100vw, var(--site-max));
  height: var(--header-height);
  padding-inline: 1.2rem;
  background: var(--c-bg);
  transform: translateX(-50%);
}

.site-header__logo {
  width: 15.5rem;
}

.site-header__logo img,
.site-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.menu-button {
  position: relative;
  width: 4.8rem;
  height: 4.8rem;
}

/* ハンバーガーボタン */
.menu-button::before,
.menu-button::after {
  position: absolute;
  right: 0;
  width: 3.2rem;
  height: 0.1rem;
  background: var(--c-text);
  transition: top 0.3s ease, transform 0.3s ease;
  content: "";
}

.menu-button::before {
  top: 1.8rem;
}

.menu-button::after {
  top: 2.5rem;
}

.is-drawer-open .menu-button::before {
  top: 2.2rem;
  transform: rotate(45deg);
}

.is-drawer-open .menu-button::after {
  top: 2.2rem;
  transform: rotate(-45deg);
}

/* ドロワー */
.drawer-overlay {
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  left: 50%;
  z-index: 20;
  width: min(100vw, var(--site-max));
  background: rgba(0, 0, 0, 0.74);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.site-drawer {
  position: fixed;
  top: var(--header-height);
  right: max(0rem, calc((100vw - var(--site-max)) / 2));
  z-index: 30;
  width: min(88vw, 49.2rem);
  height: calc(100dvh - var(--header-height));
  padding: var(--site-gutter) var(--site-gutter) 4rem;
  overflow-y: auto;
  background: var(--c-bg);
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.34s ease, visibility 0.34s ease;
}

.is-drawer-open .drawer-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.is-drawer-open .site-drawer {
  visibility: visible;
  transform: translateX(0);
}

/* ドロワー内ナビゲーション */
.site-drawer__list {
  margin-top: 4rem;
}

.site-drawer__item+.site-drawer__item {
  margin-top: 3.2rem;
}

.site-drawer__link {
  display: block;
  font-family: var(--f-en);
  font-size: clamp(3.2rem, 15vw, 4.2rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  text-align: right;
}

.site-drawer__link:hover {
  color: var(--c-accent-hover);
}

/* 共通CTAボタン */
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 1.2rem;
  min-height: 6.4rem;
  border-radius: 999rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--c-text);
  background: var(--c-accent);
}

.contact-button::after {
  content: "→";
}

.contact-button:hover {
  background-color: var(--c-accent-hover);
}

.site-drawer__button {
  width: calc(100% - 4rem);
  margin: 8rem 2rem 0;
  /* font-size: clamp(1.8rem, 5vw, 2.4rem); */
}

/* ファーストビュー */
.hero {
  position: relative;
  min-height: 72vh;
  padding: 13.6rem var(--site-gutter) 6.4rem;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  inset: 0;
  background: rgba(28, 43, 39, 0.48);
  content: "";
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  /* opacity: 0.72; */
}

.hero__body {
  position: relative;
  z-index: 1;
}

.hero__title,
.section-heading__en {
  font-family: var(--f-en);
  font-style: italic;
  font-weight: 800;
}

.hero__title {
  font-size: clamp(4.8rem, 10.4vw, 7.2rem);
  line-height: 0.92;
}

.hero__text {
  max-width: 40rem;
  margin-top: 1.6rem;
  font-size: clamp(1.45rem, 4.1vw, 1.7rem);
  font-weight: 600;
  line-height: 1.72;
}

.hero__button {
  display: flex;
  width: min(31.2rem, 78vw);
  margin: 4rem auto 0;
}


/* お知らせ */
.news {
  padding: 6.4rem var(--site-gutter) 7.2rem;
}

/* セクション見出し */
.section-heading {
  position: relative;
  padding-left: 2.2rem;
}

.section-heading::before {
  position: absolute;
  top: 0.2rem;
  left: 0.4rem;
  width: 0.4rem;
  height: 7.2rem;
  background: var(--c-line);
  transform: skewX(-8deg);
  content: "";
}

.section-heading__en {
  font-size: clamp(5.4rem, 14vw, 7.2rem);
  line-height: 0.9;
}

.section-heading__ja {
  margin-top: 0.4rem;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
}

/* お知らせ一覧 */
.news-list {
  margin-top: 5.6rem;
}

.news-list__item {
  border-bottom: 0.1rem solid var(--c-news-border);
}

.news-list__link {
  display: block;
  padding-block: 0 2.4rem;
}

.news-list__link:hover {
  opacity: 0.8;
}

.news-list__item+.news-list__item .news-list__link {
  padding-top: 2.4rem;
}

.news-list__date {
  display: block;
  color: var(--c-news-date);
  font-family: var(--f-en);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.news-list__title {
  margin-top: 1.2rem;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.7;
}

/* 一覧リンク */
.view-more {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 1.2rem;
  width: fit-content;
  font-family: var(--f-en);
  font-size: 2rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
}

.view-more::after {
  content: "→";
  display: inline-grid;
  width: 4.8rem;
  height: 4.8rem;
  place-items: center;
  border-radius: 50%;
  font-family: var(--f-ja);
  font-style: normal;
  background: #252525;
}

.view-more:hover {
  opacity: 0.8;
}

.news__more {
  margin: 4.8rem auto 0;
}

/* ニュース一覧ページ */
.news-page {
  padding: 4rem var(--site-gutter) 10.4rem;
}

.news-page__list {
  margin-top: 6.4rem;
}

.news-page .news-list__link {
  padding-bottom: 3.2rem;
}

.news-page .news-list__title {
  overflow-wrap: anywhere;
}

.news-page .news-list__item+.news-list__item .news-list__link {
  padding-top: 3.2rem;
}

/* ページャー */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  margin-top: 6.4rem;
}

.pager__link,
.pager__arrow {
  display: grid;
  place-items: center;
  font-weight: 800;
  line-height: 1;
}

.pager__link {
  min-width: 2.4rem;
  color: var(--c-text);
  font-family: var(--f-en);
  font-size: 2.4rem;
}

.pager__link.is-current {
  color: var(--c-news-date);
}

.pager__arrow {
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  font-family: var(--f-ja);
  font-size: 2.4rem;
  background: #252525;
}

/* ニュース詳細ページ */
.news-detail {
  padding: 4rem var(--site-gutter) 0;
}

.news-detail__head {
  margin-top: 6.4rem;
}

.news-detail__date {
  display: block;
  color: var(--c-news-date);
  font-family: var(--f-en);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.news-detail__title {
  /* max-width: 35rem; */
  margin-top: 1.6rem;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.news-detail__image {
  /* aspect-ratio: 358 / 176; */
  margin-top: 2.4rem;
  border-radius: 0.8rem;
  background: #c9c9c9;
}

.news-detail__body {
  margin-top: 2.4rem;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.news-detail__body>*+* {
  margin-top: 2.4rem;
}

.news-detail__body h1,
.news-detail__body h2,
.news-detail__body h3,
.news-detail__body h4 {
  font-weight: 600;
  line-height: 1.55;
}

.news-detail__body h1 {
  margin-top: 5.6rem;
  padding-bottom: 1rem;
  border-bottom: 0.1rem solid var(--c-news-border);
  font-size: 2.1rem;
}

.news-detail__body h2 {
  margin-top: 4.8rem;
  padding-bottom: 1rem;
  border-bottom: 0.1rem solid var(--c-news-border);
  font-size: 1.9rem;
}

.news-detail__body h3 {
  margin-top: 4rem;
  color: var(--c-news-date);
  font-size: 1.7rem;
}

.news-detail__body h4 {
  margin-top: 3.2rem;
  font-size: 1.55rem;
}

.news-detail__body h1+*,
.news-detail__body h2+*,
.news-detail__body h3+*,
.news-detail__body h4+* {
  margin-top: 1.6rem;
}

.news-detail__body ul,
.news-detail__body ol {
  padding-left: 1.6em;
}

.news-detail__body ul {
  list-style: disc;
}

.news-detail__body ol {
  list-style: decimal;
}

.news-detail__body li+li {
  margin-top: 0.8rem;
}

.news-detail__body blockquote {
  padding: 1.6rem;
}

.news-detail__body blockquote>*+* {
  margin-top: 1.2rem;
}

.news-detail__body figure {
  max-width: 100%;
}

.news-detail__body figcaption,
.news-detail__body .wp-caption-text {
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.25rem;
  line-height: 1.6;
  text-align: center;
}

.news-detail__body .wp-caption {
  max-width: 100%;
}

.news-detail__body .aligncenter {
  display: block;
  margin-inline: auto;
}

.news-detail__body .alignleft,
.news-detail__body .alignright {
  display: block;
  margin-inline: auto;
}

.news-detail__body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.news-detail__body th,
.news-detail__body td {
  min-width: 12rem;
  padding: 1.2rem;
  border: 0.1rem solid var(--c-news-border);
  text-align: left;
  vertical-align: top;
}

.news-detail__body th {
  color: var(--c-news-date);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
}

.news-detail__body hr {
  height: 0.1rem;
  border: 0;
  background: var(--c-news-border);
}

.news-detail__body iframe,
.news-detail__body video,
.news-detail__body embed {
  display: block;
  max-width: 100%;
}

.news-detail__body .wp-block-embed__wrapper {
  width: 100%;
}

.news-detail__body .wp-block-embed-youtube .wp-block-embed__wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
}

.news-detail__body .wp-block-embed-youtube .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.news-detail__body .wp-block-embed-twitter,
.news-detail__body .wp-block-embed-instagram,
.news-detail__body .wp-block-embed-tiktok {
  max-width: 100%;
}

.news-detail__body .wp-block-embed-twitter .wp-block-embed__wrapper,
.news-detail__body .wp-block-embed-instagram .wp-block-embed__wrapper,
.news-detail__body .wp-block-embed-tiktok .wp-block-embed__wrapper {
  display: flex;
  justify-content: center;
}

.news-detail__body .wp-block-embed-twitter .wp-block-embed__wrapper iframe,
.news-detail__body .wp-block-embed-instagram .wp-block-embed__wrapper iframe {
  position: static;
  width: min(100%, 55rem) !important;
  height: auto;
}

.news-detail__body .wp-block-embed-tiktok .wp-block-embed__wrapper iframe {
  position: static;
  width: min(100%, 60.5rem) !important;
  max-width: 100%;
}

.news-detail__body .twitter-tweet,
.news-detail__body .instagram-media,
.news-detail__body .tiktok-embed {
  max-width: 100% !important;
  min-width: 0 !important;
  margin-inline: auto !important;
}

.news-detail__body .instagram-media {
  width: min(100%, 54rem) !important;
}

.news-detail__body .tiktok-embed {
  width: min(100%, 60.5rem) !important;
}

@media (min-width: 768px) {
  .news-detail__body .alignleft {
    float: left;
    max-width: 46%;
    margin: 0.8rem 2.4rem 1.6rem 0;
  }

  .news-detail__body .alignright {
    float: right;
    max-width: 46%;
    margin: 0.8rem 0 1.6rem 2.4rem;
  }
}

/* 最新のお知らせ */
.latest-news {
  padding: 12rem var(--site-gutter) 8rem;
}

.latest-news__list {
  margin-top: 5.6rem;
}

.latest-news .news-list__title {
  max-width: 35rem;
  overflow-wrap: anywhere;
}

.latest-news__more {
  margin: 4.8rem auto 0;
}

/* 会社概要ページ */
.company-page {
  padding: 4rem var(--site-gutter) 13.6rem;
}

.company-list {
  margin-top: 8rem;
}

.company-list__item {
  padding: 2.4rem 0.8rem 3.2rem;
  border-bottom: 0.1rem solid var(--c-news-border);
}

.company-list__item:first-child {
  padding-top: 0;
}

.company-list__term {
  color: var(--c-service-title);
  font-weight: 600;
  line-height: 1.5;
}

.company-list__desc {
  margin-top: 1.2rem;
  font-weight: 500;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* お問い合わせページ */
.contact-page {
  padding: 4rem var(--site-gutter) 17.6rem;
}

.contact-form {
  margin-top: 8rem;
}

.contact-form__field+.contact-form__field {
  margin-top: 4rem;
}

.contact-form__label {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.5;
}

.contact-form__input,
.contact-form__textarea {
  display: block;
  width: 100%;
  margin-top: 1.2rem;
  border: 0.1rem solid transparent;
  border-radius: 0;
  color: var(--c-text);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.6;
  background: #707070;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: var(--c-line);
  outline: none;
}


.contact-form__input {
  height: 5.6rem;
  padding-inline: 1.6rem;
}

.contact-form__textarea {
  min-height: 24rem;
  padding: 1.6rem;
  resize: vertical;
}

.contact-form__submit {
  display: grid;
  place-items: center;
  width: min(31.2rem, 80vw);
  min-height: 6.4rem;
  margin: 6.4rem auto 0;
  border-radius: 999rem;
  color: var(--c-text);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  background: var(--c-accent);
  cursor: pointer;
}

.contact-form__submit:hover {
  background: var(--c-accent-hover);
}

.contact-form .wpcf7-form.is-confirming .contact-form__field {
  display: none;
}

.contact-form .wpcf7-form.is-confirming .contact-form__submit {
  margin-top: 3.2rem;
}

.contact-confirm[hidden] {
  display: none;
}

.contact-confirm__item {
  padding: 2.4rem 0.8rem 3.2rem;
  border-bottom: 0.1rem solid var(--c-news-border);
}

.contact-confirm__item:first-child {
  padding-top: 0;
}

.contact-confirm__term {
  color: var(--c-service-title);
  font-weight: 600;
  line-height: 1.5;
}

.contact-confirm__desc {
  margin-top: 1.2rem;
  font-weight: 500;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.contact-confirm__back {
  display: grid;
  place-items: center;
  width: min(31.2rem, 80vw);
  min-height: 6.4rem;
  margin: 4rem auto 0;
  border: 0.1rem solid var(--c-accent);
  border-radius: 999rem;
  color: var(--c-text);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.contact-confirm__back:hover {
  border-color: var(--c-accent-hover);
}

/* 制作実績 */
.works {
  padding: 5.6rem 0 6.4rem;
  background: var(--c-works-bg);
}

.works__heading {
  margin-inline: var(--site-gutter);
}

.works-slider {
  margin-top: 4rem;
}

/* slick上書き */
.works-slider .slick-list {
  overflow: visible;
}

.works-slider .slick-slide {
  opacity: 0.38;
  transition: opacity 0.3s ease;
}

.works-slider .slick-center {
  opacity: 1;
}

/* 制作実績カード */
.works-card {
  width: min(64vw, 28rem);
  margin-inline: 0.8rem;
  text-align: center;
}

.works-card__image {
  width: 100%;
  aspect-ratio: 241 / 434;
  border-radius: 0.8rem;
  object-fit: cover;
  object-position: center top;
}

.works-card__title {
  margin-top: 1.6rem;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.4;
}

.works-slider .slick-dots {
  position: static;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.4rem;
}

.works-slider .slick-dots li {
  width: auto;
  height: auto;
  margin: 0;
}

.works-slider .slick-dots button {
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  color: transparent;
  background: rgba(255, 255, 255, 0.38);
}

.works-slider .slick-dots .slick-active button {
  background: var(--c-news-date);
}

/* 事業紹介 */
.service {
  padding: 6.4rem var(--site-gutter) 8rem;
}

.service__list {
  display: grid;
  gap: 5.6rem;
  margin-top: 4rem;
}

.service-card__media {
  aspect-ratio: 358 / 180;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #c9c9c9;
}

.service-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__title {
  margin-top: 1.6rem;
  color: var(--c-service-title);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.5;
}

.service-card__text {
  margin-top: 1.2rem;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.8;
}

/* フッター */
.site-footer {
  padding: 4.8rem var(--site-gutter) 2.4rem;
  text-align: center;
  background: var(--c-footer-bg);
}

.site-footer__logo {
  display: block;
  width: 8.8rem;
  margin: 0 auto 3.2rem;
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
}

.site-footer__link {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
}

.site-footer__link:hover {
  opacity: 0.8;
}

.site-footer__copy {
  display: block;
  margin-top: 3.2rem;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1;
}

/* WordPress */
body.admin-bar .site-header {
  top: 32px;
}

body.admin-bar .drawer-overlay,
body.admin-bar .site-drawer {
  top: calc(var(--header-height) + 32px);
}

body.admin-bar .site-drawer {
  height: calc(100dvh - var(--header-height) - 32px);
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  body.admin-bar .drawer-overlay,
  body.admin-bar .site-drawer {
    top: calc(var(--header-height) + 46px);
  }

  body.admin-bar .site-drawer {
    height: calc(100dvh - var(--header-height) - 46px);
  }
}

.empty-message {
  margin-top: 4rem;
  font-size: 1.45rem;
  font-weight: 500;
}

.works__empty {
  margin-inline: var(--site-gutter);
}

.page-content-page {
  padding: 4rem var(--site-gutter) 13.6rem;
}

.page-content {
  margin-top: 6.4rem;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.85;
}

.page-content p+p,
.page-content ul+p,
.page-content ol+p {
  margin-top: 2.4rem;
}

.page-content a,
.news-detail__body a {
  color: var(--c-news-date);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.page-content img,
.news-detail__body img {
  max-width: 100%;
  height: auto;
}

.news-detail__image img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  /* object-fit: cover; */
}

.contact-form .wpcf7-form-control-wrap {
  display: block;
}

.contact-form .wpcf7-not-valid-tip {
  margin-top: 0.8rem;
  font-size: 1.3rem;
}

.contact-form .wpcf7-response-output {
  margin: 3.2rem 0 0;
  color: var(--c-text);
  font-size: 1.4rem;
}

.grecaptcha-badge {
  visibility: hidden;
}
