/*
Theme Name: ze-theme
Theme URI: 
Author: TSUGU
Description: ZEエナジー様のオリジナルブロックテーマ
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ze-theme
*/

:root {
  --base-white: #ffffff;
  --text-primary: #111111;
  --text-gray: #666666;
  --text-green: #036635;
  --state-disabled: #c4c4c4;
  --gray-F5F5F5: #f5f5f5;
  --gray-EEEEEE: #eeeeee;
  --gray-ECECEC: #ececec;
  --bg-main: #f4f4f4;
  --bg-green: #e4f3e4;
}

/* オリジナル上書き用 */
.is-style-btn-has-arrow > * {
  transition: all 0.3s ease-out;
  padding: 12px 56px 12px 16px;
  color: var(--text-primary);
  display: block;
  border: 1px solid var(--text-primary);
  border-radius: 25px;
  background: var(--base-white) url("assets/images/link-arrow.svg") no-repeat
    92% 50%;
}
.is-style-btn-has-arrow > *:hover {
  background-color: var(--gray-F5F5F5);
}

.wp-block-button.btn-hover-green a {
  transition: all 0.3s ease-out;
}

.wp-block-button.btn-hover-green > a:hover {
  background-color: var(--text-green);
}

.wp-block-table.is-style-table-border-bottom table {
  border-collapse: collapse;
  border-top: 1px solid var(--text-primary);
}

.wp-block-table.is-style-table-border-bottom th,
.wp-block-table.is-style-table-border-bottom td {
  border: 0;
  border-bottom: 1px solid var(--text-primary);
  padding: 16px;
}

.is-style-btn-primary > a {
  transition: all 0.3s ease-out;
  text-align: left;
  min-width: 224px;
  display: block;
  background: var(--text-primary) url("assets/images/button_arrow_bl.png")
    no-repeat 95% 50%;
  background-size: 32px auto;
}

.is-style-btn-primary > a:hover {
  background-color: var(--text-green);
}

.is-style-btn-secondary > a {
  padding: 13px 12px 12px 24px;
  text-align: left;
  transition: all 0.3s ease-out;
  min-width: 224px;
  display: block;
  background: var(--base-white) url("assets/images/button_arrow_wh.png")
    no-repeat 95% 50%;
  background-size: 32px auto;
}

.is-style-btn-secondary > a:hover {
  background-color: var(--bg-green) !important;
}

.is-style-table-border-bottom tr td + td {
  width: 76%;
}

.is-style-table-case table {
  border-collapse: collapse;
  border-top: 1px solid var(--text-primary);
}

.is-style-table-case thead {
  border: none;
}

.is-style-table-case th,
.is-style-table-case td {
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--text-primary);
}

.is-style-table-case thead th {
  background: var(--bg-main);
}

.is-style-table-case table + .wp-element-caption {
  margin-top: 16px;
  text-align: left;
}
.is-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.is-pager .wp-block-query-pagination-numbers {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.is-pager .page-numbers,
.is-pager .wp-block-query-pagination-next,
.is-pager .wp-block-query-pagination-previous {
  width: 48px;
  height: 48px;
  border: 1px solid #000;
  border-radius: 9999px;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  transition: 0.3s;
}

/* current */
.is-pager .page-numbers.current {
  background: #000;
  color: #fff;
}

/* 次へ */
.is-pager .wp-block-query-pagination-next {
  font-size: 0;
}

.is-pager .wp-block-query-pagination-next::before {
  content: ">";
  font-size: 16px;
}

/* 前へ */
.is-pager .wp-block-query-pagination-previous {
  font-size: 0;
}

.is-pager .wp-block-query-pagination-previous::before {
  content: "<";
  font-size: 16px;
}

.parts-hyperlink-block,
.parts-hyperlink-block > * {
  display: block;
  text-decoration: none;
}

.w-100p {
  width: 100%;
}

/* component */
.c-contents-bg {
  background: var(--bg-main) url("assets/contents_bg.jpg") no-repeat center
    bottom;
  background-size: 100% auto;
}
.c-heading-1 {
  position: relative;
}
.c-heading-1::after {
  content: "";
  position: absolute;
  left: 0;
  top: -4px;
  display: block;
  width: 150px;
  height: 4px;
  background: var(--text-primary);
}

.c-main-image {
  position: relative;
}

.c-main-image .c-main-image-category {
  width: fit-content;
  position: absolute;
  top: 20px;
  left: 30px;
  border-radius: 33px;
}

.c-line-heading-2 {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
}

.c-line-heading-2::before {
  content: "";
  width: 40px;
  height: 1px;
  display: block;
  background: var(--text-primary);
}

.c-line-heading-2 h2 {
  width: fit-content;
}

/* home */
.home {
  background: var(--bg-main);
}
.home .top-intro-image {
  margin-top: 56px !important;
}

.home .top-products-link {
  transition: all 0.3s ease-out;
  opacity: 0.4;
}

.home .top-products-link:hover {
  opacity: 1;
}

.home .top-about-card {
  transition: all 0.3s ease-out;
  position: relative;
  padding: 28px 32px !important;
  box-sizing: border-box;
  height: 230px;
  display: block;
  border-radius: 4px;
  background-image: url("assets/images/icon_card_arrow.png");
  background-repeat: no-repeat;
  background-position: 94% 92%;
  background-size: 48px auto;
}

.home .top-about-card:hover {
  background-color: var(--bg-green);
}

.home .top-case-list > a {
  transition: all 0.3s ease-out;
  display: block;
}

.home .top-case-list > a:hover {
  opacity: 0.7;
}

.home .top-case-list .is-relative {
  position: relative;
}

.home .top-case-list .is-absolute {
  position: absolute;
  padding: 8px 12px;
  top: 8px;
  left: 8px;
  color: var(--base-white);
  background: var(--text-primary);
}

.home .top-blog-list > a {
  transition: all 0.3s ease-out;
  display: block;
}

.home .top-blog-list > a:hover {
  opacity: 0.7;
}

.home .top-news-list {
  transition: all 0.3s ease-out;
}

.home .top-news-list:hover > div {
  color: var(--text-green);
}

.home .top-link-google-map {
  transition: all 0.3s ease-out;
}

.home .top-link-google-map:hover {
  color: var(--text-green);
}

.home .top-products-links {
  flex: 1;
  width: 100%;
}
.home .top-products-links .category-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}
.home .top-products-links .category-list-item {
  font-size: 14px;
  line-height: 1;
  padding: 6px 16px;
  border: 1px solid var(--base-white);
}

.home .top-products-links > a {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--base-white);
  font-family: var(--wp--preset--font-family--noto-serif-jp) !important;
  width: 100%;

  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  text-decoration: none;
  gap: 33px;
  color: var(--base-white);
  background: url("assets/images/icon-arrow-wh.png") no-repeat 100% 30%;
  background-size: 12px auto;
}

.home .top-products-links > a + a {
  padding-top: 32px;
}

.home .top-products-links > a .heading-3 {
  margin: 8px 0 0;
  line-height: 1.4;
  font-size: 24px;
}

.home .is-top-products-flex {
  gap: 80px;
}

.home .top-products-links .number {
  margin: 0;
}

.home .js-top-products-image {
  width: 514px;
  aspect-ratio: 514 / 536;
}

.home .js-top-products-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;

  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.home .js-top-products-image img.is-changing {
  opacity: 0;
  transform: scale(1.02);
}

.home .section-case .taxonomy-case_category {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
}

.home .section-case .taxonomy-case_category a {
  text-decoration: none;
  pointer-events: none;
}

.home .section-news .taxonomy-news_category a {
  text-decoration: none;
  pointer-events: none;
}

.home .section-blog .taxonomy-blog_category a {
  text-decoration: none;
  pointer-events: none;
}

.home .section-blog .wp-block-post-featured-image {
  overflow: hidden;
  border-radius: 16px;
}

.home .section-blog .wp-block-post-featured-image a {
  display: block;
  overflow: hidden;
  border-radius: 16px;
}

.home .section-blog .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.home .section-blog .wp-block-post:hover .wp-block-post-featured-image img {
  transform: scale(1.08);
}

/* 導入事例：画像ホバー拡大 */
.home .section-case .wp-block-post-featured-image {
  overflow: hidden;
  border-radius: 8px;
}

.home .section-case .wp-block-post-featured-image a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.home .section-case .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 373 / 240;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.home .section-case .wp-block-post:hover .wp-block-post-featured-image img {
  transform: scale(1.08);
}

/* case */
.post-type-archive-case .taxonomy-case_category a {
  pointer-events: none;
  text-decoration: none;
}

.post-type-archive-case .wp-block-post-featured-image {
  overflow: hidden;
  border-radius: 8px;
}

.post-type-archive-case .wp-block-post-featured-image img {
  transition: transform 0.5s ease;
}

.post-type-archive-case .wp-block-post-featured-image:hover img {
  transform: scale(1.06);
}

.single-case a[rel="tag"] {
  text-decoration: none;
} /* case image ratio */
.post-type-archive-case .wp-block-post-featured-image {
  aspect-ratio: 570 / 380;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.post-type-archive-case .wp-block-post-featured-image a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.post-type-archive-case .wp-block-post-featured-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 16px;
}

.single-case .taxonomy-case_category a {
  pointer-events: none;
  text-decoration: none;
  cursor: default;
} /* case list image ratio */
.single-case .wp-block-post-featured-image {
  aspect-ratio: 67 / 49;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.single-case .wp-block-post-featured-image a {
  width: 100%;
  height: 100%;
  display: block;
}

.single-case .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* news */
.post-type-archive-news .news-tag-list a {
  text-decoration: none;
}

.single-news a[rel="tag"] {
  text-decoration: none;
} /* news list image ratio */
.single-news .wp-block-post-featured-image {
  aspect-ratio: 67 / 49;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.single-news .wp-block-post-featured-image a {
  width: 100%;
  height: 100%;
  display: block;
}

.single-news .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.single .taxonomy-news_category a {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}

/* blog */
.post-type-archive-blog .taxonomy-news_category a {
  pointer-events: none;
  text-decoration: none;
}

.post-type-archive-blog .wp-block-post-featured-image {
  overflow: hidden;
  border-radius: 8px;
}

.post-type-archive-blog .wp-block-post-featured-image img {
  transition: transform 0.5s ease;
  aspect-ratio: 373 / 210;
  display: block;
  width: 100%;
}

.post-type-archive-blog .wp-block-post-featured-image:hover img {
  transform: scale(1.06);
}

.post-type-archive-blog .blog-tag-list a {
  text-decoration: none;
}

.single-blog .taxonomy-blog_category a {
  text-decoration: none;
}

/* products 一覧 */
.page-id-29 .products-list-image {
  width: 570px;
}

.page-id-29 .products-list-image img {
  width: 100% !important;
  aspect-ratio: 570 / 380;
  object-fit: cover;
  display: block;
  height: 380px;
}

/* header / footer */
header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 999;
}
header .header-nav a {
  transition: all 0.3s ease-out;
}
header .header-nav a:hover > span {
  color: var(--text-green);
}

footer {
  margin-top: 0;
}
.footer-link-card-arrow {
  display: block;
  min-width: 15px;
}

.footer-link-policy a {
  text-decoration: none;
}
.p-hero {
  margin-top: 0;
  position: relative;
  overflow: hidden;

  width: 100%;
  max-height: 818px;

  aspect-ratio: 1440 / 818;

  background: #111;
}

.p-hero .c-hero-h1-wrap {
  position: relative;
  z-index: 10;
  padding-inline: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.p-hero .c-hero-h1 {
  max-width: fit-content;
  margin: 0;
  font-family: var(--wp--preset--font-family--noto-serif-jp) !important;
  font-weight: 400;
  font-size: 64px;
  line-height: 1.6;
  color: var(--base-white);
}

.p-hero .c-hero-h1 + .c-text {
  position: relative;
  z-index: 10;
  line-height: 1.8;
  padding-inline: 8px;
  font-family: var(--wp--preset--font-family--noto-serif-jp) !important;
  font-weight: 400;
  font-size: 14px;
  max-width: 1200px;
  margin: 25px auto 0;
  color: var(--base-white);
}

/* 背景 */
.p-hero__bg {
  position: absolute;
  inset: 0;

  background: url("assets/images/home/main_bg.jpg") center / cover no-repeat;

  transform: scale(1.03);
}

/* wave */
.p-hero__wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 20;

  width: 100%;
  height: auto;

  display: block;

  pointer-events: none;
}

/* 0マスク */
.p-hero__mask {
  position: absolute;
  inset: 0;

  mask-image: url("assets/images/home/mask-0.svg");
  mask-repeat: no-repeat;
  mask-position: right 100px bottom -52px;

  mask-size: 584px auto;

  -webkit-mask-image: url("assets/images/home/mask-0.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: right 100px bottom -52px;
  -webkit-mask-size: 584px auto;

  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.9))
    drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.18));
}

/* 動画 */
.p-hero__video {
  position: absolute;

  width: 723px;
  height: 723px;

  right: 100px;
  top: 150px;

  object-fit: cover;
  transform: scale(1.26) translate(110px, 30px);

  filter: grayscale(1) brightness(0.72) contrast(1.45);
}

/* 黒ガラス */
.p-hero__glass {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.25);

  pointer-events: none;
}

/* 上部のガラス感 */
.p-hero__mask::before {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(160, 205, 255, 0.28) 0%,
    rgba(160, 205, 255, 0.12) 10%,
    rgba(255, 255, 255, 0.04) 18%,
    rgba(255, 255, 255, 0) 30%
  );

  opacity: 0.82;

  pointer-events: none;
}

/* 内側の奥行き */
.p-hero__mask::after {
  content: "";

  position: absolute;
  inset: 0;

  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.82),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);

  pointer-events: none;
}

/* 質感画像 */
.p-hero__texture {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 0.15;

  mix-blend-mode: screen;

  pointer-events: none;
}
.p-hero__mask-shadow {
  position: absolute;
  inset: 0;

  background: #000;

  mask-image: url("assets/images/home/mask-0.svg");
  mask-repeat: no-repeat;
  mask-position: right 101px bottom -53px;
  mask-size: 584px auto;

  -webkit-mask-image: url("assets/images/home/mask-0.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: right 101px bottom -53px;
  -webkit-mask-size: 584px auto;
  filter: blur(48px);
  opacity: 0.65;
  pointer-events: none;
}

.page-id-35 .section-top-message {
  position: relative;
  background: url("assets/images/company/top_message_bg.webp") no-repeat top
    center;
  background-size: 100% auto;
  border-radius: 16px;
}

.page-id-1689 .c-contact-box {
  max-width: 880px;
}

.page-id-1689 .c-contact-box .formrun-embed iframe {
  padding-block: 40px;
  border-radius: 16px;
  font-weight: 400px;
  font-family: var(--wp--preset--font-family--noto-serif-jp);
}
.footer-link-card {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  will-change: transform;
}

.footer-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}
footer .wp-block-navigation a {
  transition: opacity 0.35s ease-out;
}

footer .wp-block-navigation a:hover {
  opacity: 0.7;
}
.footer-link-policy a {
  transition: opacity 0.3s ease;
}

.footer-link-policy a:hover {
  opacity: 0.7;
}
/* media */
@media screen and (max-width: 1024px) {
  header .pc-only {
    display: none;
  }
}

@media screen and (max-width: 900px) {
  .is-inner {
    padding-inline: 30px !important;
  }

  .is-sp-w100p {
    max-width: 100% !important;
    width: 100% !important;
    flex-basis: 100% !important;
  }

  .is-sp-w100p > * {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .is-style-btn-primary > a {
    max-width: 224px;
    height: 48px;
  }
  .c-heading-1::after {
    width: 85px;
  }

  .home .p-hero {
    overflow: hidden;
    aspect-ratio: 390 / 650;
  }

  /* 背景 */
  .home .p-hero__bg {
    position: absolute;
    inset: 0;

    background: url("assets/images/home/hero-bg-sp.png") no-repeat right bottom;
  }

  /* wave */
  .home .p-hero__wave {
    left: -5px;
    width: 101%;
  }
  .home .p-hero__mask {
    mask-position: right -50px top 150px;
    mask-size: 368px 444px;

    -webkit-mask-position: right -50px top 150px;
    -webkit-mask-size: 368px 444px;
  }

  /* shadow */
  .home .p-hero__mask-shadow {
    mask-position: right -49px top 156px;
    mask-size: 368px 444px;

    -webkit-mask-position: right -49px top 156px;
    -webkit-mask-size: 368px 444px;

    filter: blur(32px);
  }

  /* 動画 */
  .home .p-hero__video {
    width: 444px;
    height: 444px;

    right: -50px;
    top: 150px;

    transform: scale(1.22) translate(40px, 12px);
  }

  .home .p-hero .c-hero-h1 {
    padding-top: 380px;
    font-size: 34px;
    padding-inline: 30px;
  }

  .home .p-hero .c-hero-h1 + .c-text {
    margin-top: 15px;
    padding-inline: 30px;
  }

  .home .section-hero .wp-block-cover__image-background {
    display: none;
  }

  .home .section-intro .wp-block-group-is-layout-flex {
    gap: 24px;
  }

  .home .section-movie {
    padding-block: 64px !important;
  }

  .home .section-movie .is-inner {
    margin-right: 30px !important;
    margin-left: 30px !important;
  }

  .home .section-products > .wp-block-cover {
    margin: 0 8px !important;
    padding: 40px 24px !important;
  }

  .home .section-products .is-title-flex .is-layout-flex {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
  }
  .home .section-products .is-top-products-flex .wp-container-content-98b30160,
  .home .section-products .is-top-products-flex .wp-container-content-5f9b1f8a {
    flex-basis: 100%;
    width: 100%;
  }

  .home .js-top-products-image {
    aspect-ratio: none;
    height: auto;
    width: 100%;
  }

  .home .js-top-products-image img {
    width: 100%;
    height: auto;
  }

  .home .section-products .is-top-products-flex {
    gap: 40px;
    flex-direction: column;
  }

  .home .section-products .top-products-link {
    opacity: 1;
  }

  .home .section-products .is-btn-right {
    display: flex !important;
    justify-content: flex-end !important;
  }

  .home .section-biochar > .wp-block-cover {
    margin: 0 8px !important;
    padding: 40px 24px !important;
  }

  .home .section-biochar .top-title {
    padding-bottom: 45px !important;
  }

  .home .section-biochar .wp-block-columns-is-layout-flex {
    gap: 16px;
  }

  .home .section-biochar .top-about-card {
    padding: 16px !important;
    height: auto;
    background-size: 40px auto;
    background-position: 94% 50%;
  }

  .home .section-biochar .top-about-card p br {
    display: none;
  }

  .home .section-biochar .is-btn-right {
    display: flex !important;
    justify-content: flex-end !important;
  }

  .home .section-news {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  .home .section-news .news-flex {
    flex-direction: column;
    gap: 30px;
  }

  .home .section-news .top-news-list {
    display: flex;
    gap: 24px;
    width: 100%;
  }

  .home .section-news .top-news-list .top-news-title {
    font-size: 14px;
  }

  .home .section-news .wp-container-core-group-is-layout-dcb1baac {
    gap: 32px;
  }

  .home .section-news .is-btn-right {
    display: flex !important;
    justify-content: flex-end !important;
  }

  .home .section-case {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  .home .section-case .is-btn-right {
    display: flex !important;
    justify-content: flex-end !important;
  }

  .home .section-blog .is-btn-right {
    display: flex !important;
    justify-content: flex-end !important;
  }

  .home .section-case .top-case-list-wrap {
    margin-top: 32px !important;
  }

  .home .section-blog {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  .home .section-blog .top-blog-list-wrap {
    margin-top: 32px !important;
  }

  .home .section-access {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  .home .section-access .top-access-list {
    flex-direction: column;
    gap: 32px;
  }

  .home .section-access .top-access-list .top-access-cards {
    gap: 40px;
  }

  .home .section-access .top-access-list .top-access-card {
    flex-direction: column;
  }

  .home .section-access .top-access-box {
    padding: 32px !important;
  }

  .home .section-access .top-acccess-box-ttl + .wp-block-group {
    margin-top: 8px !important;
  }

  .home .article-recruit .wp-block-cover {
    padding: 56px 24px 40px !important;
    margin-inline: 8px !important;
  }

  .home .section-case .wp-block-query .wp-block-group {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .home .section-blog .wp-block-query .wp-block-group {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .home .top-products-links > a .heading-3 {
    font-size: 20px;
  }

  .home .top-products-links > a {
    gap: 18px;
  }

  .home .top-access-line {
    gap: 24px;
  }

  .home .top-access-card {
    width: 100%;
  }

  .home .top-access-card iframe {
    width: 100%;
  }

  .home .top-access-card > .wp-block-group {
    width: 100%;
  }

  .page-id-29 .products-list-image {
    width: 100%;
  }

  .page-id-29 .products-list-image img {
    height: 250px;
  }

  .page-id-29 .products-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .post-type-archive-case .wp-block-query .is-layout-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .post-type-archive-blog .wp-block-query .is-layout-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .l-page-title {
    min-height: 380px !important;
  }
  .l-page-title > .wp-block-group {
    min-height: 155px !important;
  }

  footer .footer-links {
    margin-top: 56px !important;
    flex-direction: column;
    gap: 64px;
  }

  footer .footer-links .footer-links-right {
    order: 1;
    flex-direction: column;
    width: 100%;
  }

  footer .footer-links .footer-links-right .footer-links-clms {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 16px;
    width: 100%;
  }
  footer .footer-links .footer-links-right .footer-links-clms .wp-block-column {
    width: 49%;
  }

  footer .footer-links .footer-links-left {
    width: 100%;
    order: 2;
  }

  footer .footer-links .footer-links-right .footer-links-clm1 {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }

  footer .footer-links .footer-links-right .footer-links-clm1 > p {
    margin: 0 !important;
  }

  footer .footer-links .footer-links-right .footer-links-clm2,
  footer .footer-links .footer-links-right .footer-links-clm3,
  footer .footer-links .footer-links-right .footer-links-clm4 {
    width: 100% !important;
    flex-basis: 100% !important;
  }

  footer .footer-link-policy {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .home .p-hero__mask {
    mask-position: right 60px bottom -52px;
    mask-size: 500px auto;

    -webkit-mask-position: right 60px bottom -52px;
    -webkit-mask-size: 500px auto;
  }

  .home .p-hero__mask-shadow {
    mask-position: right 61px bottom -53px;
    mask-size: 500px auto;

    -webkit-mask-position: right 61px bottom -53px;
    -webkit-mask-size: 500px auto;
  }

  .home .p-hero__video {
    width: 620px;
    height: 620px;

    right: 60px;
    top: 120px;

    transform: scale(1.2) translate(80px, 20px);
  }
}

/* PC */
@media (min-width: 768px) {
  .p-sp-menu {
    display: none !important;
  }
}

/* SPハンバーガーメニュー */ /* SP */
@media (max-width: 767px) {
  .p-sp-menu {
    display: none;
  }

  /* デフォルトメニューだけ消す */
  .wp-block-navigation__responsive-container .wp-block-navigation__container {
    display: none !important;
  }

  /* WP overlay */
  .wp-block-navigation__responsive-container {
    background: transparent !important;
    bottom: auto;
  }

  /* WP menu content */
  .wp-block-navigation__responsive-container-content {
    pointer-events: none;
  }

  /* dialog */
  .wp-block-navigation__responsive-dialog {
    background: transparent !important;
  }

  .p-sp-menu .p-sp-menu__list {
    padding: 0;
    list-style: none;
  }

  .p-sp-menu .p-sp-menu__list li {
    border-bottom: 1px solid #cdd0cf;
  }

  .p-sp-menu .p-sp-menu__list a {
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    padding-block: 16px;
    font-weight: 600;
    font-family: var(--wp--preset--font-family--noto-serif-jp);
  }

  /* 独自メニュー */
  .has-modal-open .p-sp-menu {
    margin: 0;
    display: block;
    position: fixed;
    inset: 0;
    z-index: 30;

    padding: 60px 30px 40px;
    background: var(--base-white);
    overflow-y: auto;
  }

  /* 独自メニュー */
  .has-modal-open .p-sp-menu .p-sp-menu__logo {
    margin-top: 60px;
  }
  .has-modal-open .p-sp-menu .p-sp-menu__logo a {
    display: block;
    width: 160px;
    margin: 0 auto;
  }
  .has-modal-open .p-sp-menu .p-sp-menu__logo a img {
    width: 100%;
    height: auto;
  }
  .has-modal-open .p-sp-menu .p-sp-menu__buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .has-modal-open .p-sp-menu .p-sp-menu__buttons a {
    display: block;
    padding: 13px 58px 13px 12px;
    font-size: 16px;
    font-family: var(--wp--preset--font-family--noto-serif-jp);
    text-decoration: none;
    width: 250px;
    text-align: center;
    box-sizing: border-box;
  }
  .has-modal-open .p-sp-menu .p-sp-menu__buttons a.is-download {
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    border-radius: 25px;
    background: var(--base-white) url(assets/images/link-arrow.svg) no-repeat
      92% 50%;
  }
  .has-modal-open .p-sp-menu .p-sp-menu__buttons a.is-contact {
    padding: 13px 26px;
    color: var(--base-white);
    border-radius: 25px;
    background: var(--text-green);
  }

  .wp-block-navigation__responsive-close {
    position: relative;
    z-index: 999;
  }
}

@media screen and (min-width: 768px) {
  .sp-only {
    display: none !important;
  }

  .pc-only {
    display: block !important;
  }
}

@media screen and (max-width: 767px) {
  .sp-only {
    display: block !important;
  }

  .pc-only {
    display: none !important;
  }
}
