/* スクロールは html に集約し、body に別のスクロール領域を作らない。 */
html.makieng-site-root {
  overflow-x: hidden;
  overflow-y: auto;
}

body.makieng-site {
  overflow: visible;
}

body.makieng-front-page .news h2.widget_ltg_full_wide_title_title {
  margin-bottom: 12px;
}

body.makieng-front-page .news .front-news-caption {
  margin-bottom: 40px;
  text-align: center;
}

body.makieng-front-page .news ul li {
  padding-top: 1.5em;
  padding-bottom: 1.5em;
  border-color: #ccc;
}

body.makieng-front-page .news ul li:first-child {
  border-top-color: #ccc;
}

/* 書籍・資料ダウンロード */
body.makieng-front-page .front-book {
  padding-top: var(--makieng-section-space);
}

body.makieng-front-page .front-book-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 4vw, 56px);
  background: #f7f7f7;
}

body.makieng-front-page .front-book h2 {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: #31254c;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 100;
  line-height: 1.2;
}

body.makieng-front-page .front-book h2::after {
  content: none;
}

body.makieng-front-page .front-book p {
  margin: 0;
}

body.makieng-front-page .front-book-action {
  flex-shrink: 0;
}

body.makieng-front-page .btn.btn-primary.front-book-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 200px;
  padding: 10px 15px;
  border-radius: 25px;
  font-size: 14px;
}

body.makieng-front-page .front-book-download-icon {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  body.makieng-front-page .front-book-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  body.makieng-front-page .front-book-action {
    width: 100%;
  }
}

/* 主な実績の切り替えボタン。 */
body.makieng-front-page .mainSection .nav-tabs > li > a,
body.makieng-front-page .mainSection .nav-tabs > li > a:hover,
body.makieng-front-page .mainSection .nav-tabs > li > a:focus,
body.makieng-front-page .mainSection .nav-tabs > li.active > a,
body.makieng-front-page .mainSection .nav-tabs > li.active > a:hover,
body.makieng-front-page .mainSection .nav-tabs > li.active > a:focus {
  border: 0;
}

body.makieng-front-page .mainSection .nav-tabs > li > a,
body.makieng-front-page .mainSection .nav-tabs > li > a:hover,
body.makieng-front-page .mainSection .nav-tabs > li > a:focus {
  background-color: #f7f7f7;
  color: #000;
}

body.makieng-front-page .btn.btn-primary {
  background-color: #31254c;
  color: #fff;
  border: 1px solid #31254c;
  border-radius: 25px;
  padding: 10px 15px;
  font-size: 14px;
  box-shadow: none;
}

body.makieng-front-page .btn.btn-primary:hover,
body.makieng-front-page .btn.btn-primary:focus,
body.makieng-front-page .btn.btn-primary:active {
  background-color: #fff;
  color: #31254c;
}

body.makieng-front-page .mainSection .nav-tabs > li.active > a,
body.makieng-front-page .mainSection .nav-tabs > li.active > a:hover,
body.makieng-front-page .mainSection .nav-tabs > li.active > a:focus {
  background-color: #31254c;
  border-color: #31254c;
  color: #fff;
}

body.makieng-front-page .mainSection .like-card {
  border: 0;
  background-color: #fff;
  text-align: left;
  justify-content: flex-start;
  padding: clamp(24px, 2.5vw, 32px);
  height: auto;
}

/* 実在するセルだけを囲み、隣接する枠線を1px重ねる。 */
body.makieng-front-page .mainSection .tab-content .row-flex {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0 1px 1px 0;
  border: 0;
  background: transparent;
}

body.makieng-front-page .mainSection .tab-content .row-flex::before,
body.makieng-front-page .mainSection .tab-content .row-flex::after {
  content: none;
}

body.makieng-front-page .mainSection .tab-content .row-flex > div {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0 -1px -1px 0;
  padding: 0;
  border: 1px solid #ccc;
  background: #fff;
}

body.makieng-front-page .mainSection .tab-content .like-card {
  margin: 0;
  height: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  body.makieng-front-page .mainSection .tab-content .row-flex {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (min-width: 992px) {
  body.makieng-front-page .mainSection .tab-content .row-flex {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

/* 実績一覧と特許紹介の間隔。 */
body.makieng-front-page .mainSection > article > .entry-body > .container.mt-3 {
  /* 特許紹介を再表示する場合は、次の display: none; を削除する。本文は固定ページに保持。 */
  display: none;
  margin-top: clamp(48px, 6vw, 80px);
}

/* ウィジェットの背景色・文字色は管理画面のインライン指定を上書きする。 */
body.makieng-front-page .widget_ltg_full_wide_title_outer {
  background: transparent !important;
  padding-top: var(--makieng-section-space);
  padding-bottom: 0;
}

/* 区切りの余白は次の見出し側にまとめ、上下で二重に加算しない。 */
body.makieng-front-page .siteContent .mainSection,
body.makieng-front-page .mainSection > article,
body.makieng-front-page .mainSection > article > .entry-body {
  margin-bottom: 0;
  padding-bottom: 0;
}

body.makieng-front-page .mainSection > article > .entry-body > :last-child,
body.makieng-front-page .news > .container > .row > .col-sm-12 > :last-child {
  margin-bottom: 0 !important;
}

body.makieng-front-page .siteContent > .news {
  padding-top: var(--makieng-section-space);
  padding-bottom: var(--makieng-section-edge-space) !important;
}

body.makieng-front-page .widget_ltg_full_wide_title_title,
body.makieng-front-page .widget_ltg_full_wide_title_caption {
  color: #000 !important;
}

body.makieng-front-page .widget_ltg_full_wide_title_caption {
  font-family: var(--makieng-font-family);
  font-weight: 100;
}

body.makieng-front-page .servive-list .makieng-service-icon {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  object-fit: contain;
  vertical-align: middle;
}

body.makieng-front-page .servive-list .makieng-service-icon + br {
  display: none;
}

body.makieng-front-page .servive-list .servive-list-h3 {
  margin: 0 0 20px;
  font-weight: 400;
  padding: 0;
  border: 0;
  box-shadow: none;
}

body.makieng-front-page .servive-list .servive-list-h3::after {
  content: none;
}

body.makieng-front-page .front-service,
body.makieng-front-page .front-products {
  padding-top: var(--makieng-section-edge-space);
}

body.makieng-front-page .front-products {
  padding-bottom: var(--makieng-section-edge-space);
}

body.makieng-front-page .front-products .front-service-heading {
  margin-bottom: 0;
}

body.makieng-front-page .front-service-heading {
  margin-bottom: 40px;
  text-align: center;
}

body.makieng-front-page .front-service-heading h2 {
  padding: 0;
  border: 0;
  background: transparent;
}

body.makieng-front-page .front-service .servive-list p {
  margin-bottom: 0;
  text-align: left;
}

body.makieng-front-page .servive-list .servive-list-h3 b {
  font-weight: 400;
}

body.makieng-front-page {
  --mv-height: 78vh;
  --mv-height: 78svh;
  --makieng-section-space: clamp(64px, 8vw, 120px);
  --makieng-section-edge-space: clamp(88px, 10vw, 160px);
  --makieng-font-family: 'Roboto', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
  font-family: var(--makieng-font-family);
}

body.makieng-front-page h1,
body.makieng-front-page h2,
body.makieng-front-page h3,
body.makieng-front-page h4,
body.makieng-front-page h5,
body.makieng-front-page h6,
body.makieng-front-page input,
body.makieng-front-page button,
body.makieng-front-page select,
body.makieng-front-page textarea {
  font-family: var(--makieng-font-family);
}

body.makieng-front-page .siteHeader {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  margin-bottom: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.makieng-front-page .siteHeader .siteHeadContainer {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: clamp(16px, 2vw, 32px) clamp(20px, 3vw, 48px);
}

body.makieng-front-page .mv-scroll {
  position: absolute;
  right: clamp(16px, 2vw, 32px);
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-family: var(--makieng-font-family);
  font-size: .75rem;
  font-weight: 200;
  letter-spacing: .15em;
}

.mv-scroll > span:first-child {
  display: block;
  margin: 2em 0;
  line-height: 1;
  transform: rotate(90deg);
}

.mv-scroll-line {
  position: relative;
  width: 1px;
  height: clamp(60px, 12vh, 120px);
  overflow: hidden;
  background: rgba(255, 255, 255, .25);
}

.mv-scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  animation: makieng-scroll-line 2s ease-in-out infinite;
}

@keyframes makieng-scroll-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .mv-scroll-line::after {
    animation: none;
  }
}

body.makieng-front-page .siteHeader_logo {
  display: none;
}

body.makieng-front-page .siteHeader_logo a,
body.makieng-front-page .siteHeader_logo a:visited,
body.makieng-front-page .siteHeader_logo a:hover,
body.makieng-front-page .siteHeader_logo a:focus {
  color: #fff;
  font-family: var(--makieng-font-family);
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: .03em;
  text-decoration: none;
}

body.makieng-front-page.admin-bar .siteHeader {
  top: 32px;
}

body.makieng-front-page .mv {
  margin-top: 0 !important;
}

body.makieng-front-page.admin-bar .mv {
  height: calc(var(--mv-height) - 32px);
}

@media (max-width: 782px) {
  body.makieng-front-page.admin-bar .siteHeader {
    top: 46px;
  }

  body.makieng-front-page.admin-bar .mv {
    height: calc(var(--mv-height) - 46px);
  }
}

/* ========================================
   Main Visual
======================================== */

.mv {
  position: relative;
  width: 100%;
  height: var(--mv-height);
  overflow: hidden;
}

.mv::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;

  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, .45) 0%,
    rgba(0, 0, 0, .28) 28%,
    rgba(0, 0, 0, .08) 55%,
    rgba(0, 0, 0, 0) 75%
  );

  pointer-events: none;
}

.mv-media {
  height: 100%;
  background: url("images/mv01.jpg") center / cover no-repeat;
}

.mv-slider,
.mv-slider .slick-list,
.mv-slider .slick-track,
.mv-slider .mv-slide {
  height: 100%;
}

.mv-slider.slick-slider {
  margin-bottom: 0;
}

.mv-slide {
  overflow: hidden;
}

.mv-slide img,
.mv-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.mv-copy-wrap {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mv-copy {
  /* この値で、大きな文字の左・下の余白をまとめて調整。 */
  --mv-copy-inset: clamp(24px, 5vw, 80px);
  position: absolute;
  z-index: 10;
  bottom: var(--mv-copy-inset);
  left: var(--mv-copy-inset);
  right: 10%;
  color: #fff;
}

.mv-copy-main {
  margin: 0;
  font-family: var(--makieng-font-family);
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 1.08;
  font-weight: 100;
  letter-spacing: .01em;
}

.mv-copy-main span {
  display: block;
}

.mv-copy-lead {
  font-weight: lighter;
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mv-copy-sub {
  margin: 0;
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.9;
  font-weight: lighter;
  letter-spacing: .03em;
}

.mv-bottom-wrapper{
  padding: 0;
}

@media (max-width: 768px) {
  .mv-copy-sub {
    font-size: 1rem;
  }
}

body.makieng-front-page .siteContent {
  padding-top: 0;
}

/* MV下は左右均等に配置し、事業紹介のflexに疑似要素を混ぜない。 */
body.makieng-front-page .siteContent > .container {
  margin-left: auto;
  margin-right: auto;
}
body.makieng-front-page .siteContent > .container > .row > .mainSection {
  float: none;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
body.makieng-front-page .front-service .row-flex::before,
body.makieng-front-page .front-service .row-flex::after {
  content: none;
}
body.makieng-front-page .front-service .servive-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-left: 0;
  margin-right: 0;
}
body.makieng-front-page .front-service .servive-list > .col-sm-4 {
  float: none;
  width: auto;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
}
@media (max-width: 767px) {
  body.makieng-front-page .front-service .servive-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* トップページ専用のハンバーガーメニュー */
body.makieng-front-page .siteHeader .siteHeadContainer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
body.makieng-front-page .siteHeadContainer::before,
body.makieng-front-page .siteHeadContainer::after,
body.makieng-front-page .vk-mobile-nav-menu-btn,
body.makieng-front-page .vk-mobile-nav {
  display: none !important;
}
body.makieng-front-page .siteHeader_logo {
  margin: 0;
  height: auto;
  padding: 0;
}
.front-menu-toggle,
.front-menu-close {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.front-menu-toggle span,
.front-menu-close span {
  position: absolute;
  left: 8px;
  width: 40px;
  height: 2px;
  background: currentColor;
  transition: transform .28s ease, top .28s ease;
}

body.makieng-site .front-menu-toggle {
  position: fixed;
  top: clamp(8px, 1.5vw, 24px);
  right: clamp(12px, 2.5vw, 40px);
  z-index: 2100;
  mix-blend-mode: difference;
}

body.makieng-site.admin-bar .front-menu-toggle {
  top: calc(32px + clamp(8px, 1.5vw, 24px));
}

@media (max-width: 782px) {
  body.makieng-site.admin-bar .front-menu-toggle {
    top: calc(46px + clamp(8px, 1.5vw, 24px));
  }
}

.front-menu-toggle span:first-child { top: 20px; }
.front-menu-toggle span:last-child { top: 34px; }
body.front-menu-open .front-menu-toggle span:first-child {
  top: 27px;
  transform: rotate(45deg);
}
body.front-menu-open .front-menu-toggle span:last-child {
  top: 27px;
  transform: rotate(-45deg);
}
.front-menu-toggle:focus-visible,
.front-menu-close:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}
html.makieng-site-root:has(body.front-menu-open) { overflow-y: hidden; }
.front-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  padding: 100px 10%;
  border: 0;
  background: #171717;
  color: #fff;
  font-family: var(--makieng-font-family);
  overflow-y: auto;
  opacity: 0;
  transition: opacity .28s ease, display .28s allow-discrete, overlay .28s allow-discrete;
}
.front-menu[open] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 1;
}
.front-menu > nav {
  width: 100%;
  margin: 0;
}
.front-menu-brand {
  width: 100%;
  margin: 0 0 40px;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 200;
  line-height: 1.5;
  text-align: center;
}
.front-menu::backdrop {
  background: #171717;
  opacity: 0;
  transition: opacity .28s ease, display .28s allow-discrete, overlay .28s allow-discrete;
}
.front-menu[open]::backdrop { opacity: 1; }
.front-menu-close {
  position: absolute;
  top: clamp(8px, 1.5vw, 24px);
  right: clamp(12px, 2.5vw, 40px);
}
.front-menu-close span:first-child { top: 20px; }
.front-menu-close span:last-child { top: 34px; }
.front-menu[open] .front-menu-close span:first-child {
  top: 27px;
  transform: rotate(45deg);
}
.front-menu[open] .front-menu-close span:last-child {
  top: 27px;
  transform: rotate(-45deg);
}
@starting-style {
  .front-menu[open] { opacity: 0; }
  .front-menu[open]::backdrop { opacity: 0; }
  .front-menu[open] .front-menu-close span:first-child {
    top: 20px;
    transform: rotate(0);
  }
  .front-menu[open] .front-menu-close span:last-child {
    top: 34px;
    transform: rotate(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .front-menu,
  .front-menu::backdrop,
  .front-menu-toggle span,
  .front-menu-close span {
    transition: none;
  }
}
.front-menu-list,
.front-menu-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.front-menu-list li { margin: 0; }
.front-menu .front-menu-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 5vh, 56px) clamp(28px, 5vw, 80px);
}
.front-menu .front-menu-list > li {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.front-menu[open] .front-menu-list > li {
  animation: makieng-menu-reveal .45s ease-out both;
  animation-delay: .15s;
}
.front-menu[open] .front-menu-list > li:nth-child(2) { animation-delay: .19s; }
.front-menu[open] .front-menu-list > li:nth-child(3) { animation-delay: .23s; }
.front-menu[open] .front-menu-list > li:nth-child(4) { animation-delay: .27s; }
.front-menu[open] .front-menu-list > li:nth-child(5) { animation-delay: .31s; }
.front-menu[open] .front-menu-list > li:nth-child(6) { animation-delay: .35s; }
.front-menu[open] .front-menu-list > li:nth-child(n+7) { animation-delay: .39s; }
@keyframes makieng-menu-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .front-menu[open] .front-menu-list > li { animation: none; }
}
.front-menu .front-menu-list a,
.front-menu .front-menu-list a:visited {
  display: inline-block;
  padding: 8px 0;
  background: transparent;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 200;
  line-height: 1.4;
  text-decoration: none;
}
.front-menu .front-menu-list a:hover { opacity: .65; }
.front-menu .front-menu-list a:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 4px;
}
.front-menu .front-menu-list ul {
  margin-top: 12px;
  padding-left: 0;
}
.front-menu .front-menu-list ul a {
  color: rgba(255, 255, 255, .65);
  font-size: .9375rem;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .front-menu .front-menu-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .front-menu {
    padding: 100px 8% 48px;
  }
  .front-menu .front-menu-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* トップページの読み込み表示 */
.front-loader {
  display: none;
}
.front-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.front-loader-spinner {
  display: block;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: makieng-loader-spin 1s linear infinite;
}
@keyframes makieng-loader-spin {
  to { transform: rotate(360deg); }
}
html.front-loading {
  background: #000;
}
html.makieng-site-root.front-loading {
  overflow-y: hidden;
}
html.front-loading body.makieng-front-page > :not(.front-loader):not(#wpadminbar):not(script):not(style),
html.front-loaded body.makieng-front-page > :not(.front-loader):not(#wpadminbar):not(script):not(style) {
  transition: opacity .7s ease;
}
html.front-loading body.makieng-front-page > :not(.front-loader):not(#wpadminbar):not(script):not(style) {
  opacity: 0;
  visibility: hidden;
}
html.front-loaded body.makieng-front-page > :not(.front-loader):not(#wpadminbar):not(script):not(style) {
  opacity: 1;
}
html.front-loading .front-loader,
html.front-loaded .front-loader {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: grid;
  place-items: center;
  background: #000;
  color: #fff;
  font-family: var(--makieng-font-family);
  font-size: .875rem;
  font-weight: 200;
  letter-spacing: .25em;
  transition: opacity .7s ease, visibility .7s;
}
html.front-loaded .front-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .front-loader-spinner { animation: none; }
  html.front-loading body.makieng-front-page > :not(.front-loader),
  html.front-loaded body.makieng-front-page > :not(.front-loader) {
    transition: none;
  }
}

/* プロダクツ：ボックス全体をリンクにする。 */
body.makieng-site .products-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
body.makieng-site .products-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 0;
  padding: 32px 16px;
  border: 0;
  color: #171717;
  text-align: center;
  text-decoration: none;
}
body.makieng-site .products-icon {
  display: block;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}
body.makieng-site .products-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body.makieng-site .products-title {
  font-size: clamp(12px, 1.6vw, 20px);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body.makieng-front-page .front-service .servive-list > .col-sm-4:hover {
  opacity: 1;
}

body.makieng-front-page .makieng-service-icon,
body.makieng-site .products-icon img {
  transition: transform .25s ease;
}

@media (hover: hover) {
  body.makieng-front-page .front-service .servive-list > .col-sm-4:hover .makieng-service-icon,
  body.makieng-site .products-box:hover .products-icon img {
    transform: scale(1.08);
  }
}

body.makieng-site .products-box:focus-visible .products-icon img {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  body.makieng-front-page .makieng-service-icon,
  body.makieng-site .products-icon img {
    transition: none;
    transform: none !important;
  }
}
body.makieng-site .products-box:focus-visible {
  outline: 2px solid #31254c;
  outline-offset: 4px;
}
@media (max-width: 767px) {
  body.makieng-site .products-wrapper { gap: 12px; }
  body.makieng-site .products-box { padding: 24px 8px; gap: 16px; }
  body.makieng-site .products-icon { width: min(100px, 100%); height: auto; aspect-ratio: 1; }
}

/* メニュー内もトップ本文と同じアイコン一覧を使用する。 */
.front-menu,
.front-menu::backdrop { background: #f7f7f7; }
.front-menu { color: #171717; }
.front-menu .front-menu-close { color: #171717; }
.front-menu-heading { width: 100%; }
.front-menu-heading .widget_ltg_full_wide_title_title a {
  color: inherit;
  text-decoration: none;
}
.front-menu-heading .widget_ltg_full_wide_title_title a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}
.front-menu .products-wrapper { margin-top: 0; }
.front-menu-heading .widget_ltg_full_wide_title_title {
  margin-top: 0;
}

/* 開くたびに、社名から各アイコンへ順に表示する。 */
.front-menu[open] .front-menu-heading {
  animation: makieng-menu-reveal .45s ease-out .08s both;
}
.front-menu[open] .products-box {
  animation: makieng-menu-reveal .45s ease-out both;
  animation-delay: .16s;
}
.front-menu[open] .products-box:nth-child(2) { animation-delay: .20s; }
.front-menu[open] .products-box:nth-child(3) { animation-delay: .24s; }
.front-menu[open] .products-box:nth-child(4) { animation-delay: .28s; }
.front-menu[open] .products-box:nth-child(5) { animation-delay: .32s; }
.front-menu[open] .products-box:nth-child(6) { animation-delay: .36s; }
.front-menu[open] .products-box:nth-child(7) { animation-delay: .40s; }
.front-menu[open] .products-box:nth-child(8) { animation-delay: .44s; }
.front-menu[open] .products-box:nth-child(9) { animation-delay: .48s; }
@media (prefers-reduced-motion: reduce) {
  .front-menu[open] .front-menu-heading,
  .front-menu[open] .products-box { animation: none; }
}

/* 下層も同じ位置・内容のハンバーガーメニューに統一する。 */
body.makieng-inner-page .gMenu_outer,
body.makieng-inner-page .vk-mobile-nav-menu-btn,
body.makieng-inner-page .vk-mobile-nav {
  display: none !important;
}
body.makieng-inner-page .siteHeader .siteHeadContainer {
  display: flex;
  align-items: center;
  min-height: calc(56px + clamp(16px, 2vw, 32px) * 2);
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: clamp(20px, 3vw, 48px);
  padding-right: calc(clamp(20px, 3vw, 48px) + 72px);
  padding-top: clamp(16px, 2vw, 32px);
  padding-bottom: clamp(16px, 2vw, 32px);
}
body.makieng-inner-page .siteHeader .navbar-header {
  float: none;
  min-width: 0;
  margin: 0;
}
body.makieng-inner-page .siteHeader_logo {
  float: none;
  height: auto;
  margin: 0;
  padding: 0;
  line-height: 1;
}
body.makieng-inner-page .siteHeader_logo img {
  display: block;
  max-width: 100%;
  height: auto;
}
.front-menu .front-service-heading {
  margin-bottom: 40px;
  text-align: center;
}
.front-menu .widget_ltg_full_wide_title_title {
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
}
.front-menu .widget_ltg_full_wide_title_caption {
  color: #000;
  font-family: var(--makieng-font-family);
  font-weight: 100;
}

body.makieng-inner-page .siteHeader {
  position: relative !important;
  top: auto !important;
  margin-bottom: 0;
  border: 0;
  box-shadow: none;
}

/* スマホの見出しはMVより控えめなサイズにする。 */
@media (max-width: 767px) {
  body.makieng-front-page .front-service .servive-list p {
    font-size: 14px;
    line-height: 1.7;
  }
  body.makieng-front-page .servive-list .servive-list-h3 {
    font-size: 20px;
    line-height: 1.4;
  }
  body.makieng-site .widget_ltg_full_wide_title_title {
    font-size: 24px;
    line-height: 1.4;
  }
  body.makieng-front-page .front-book h2 {
    font-size: 24px;
    line-height: 1.4;
  }
}

/* スマホのメニューボタンを小さくし、右上へ寄せる。 */
@media (max-width: 767px) {
  body.makieng-site .front-menu-toggle {
    top: 4px;
    right: 4px;
    width: 44px;
    height: 44px;
  }
  body.makieng-site.admin-bar .front-menu-toggle {
    top: 50px;
  }
  .front-menu-toggle span {
    left: 8px;
    width: 28px;
  }
  .front-menu-toggle span:first-child { top: 16px; }
  .front-menu-toggle span:last-child { top: 26px; }
  body.front-menu-open .front-menu-toggle span:first-child,
  body.front-menu-open .front-menu-toggle span:last-child { top: 21px; }
  .front-menu .front-menu-close {
    top: 4px;
    right: 4px;
    width: 44px;
    height: 44px;
  }
  .front-menu-close span { left: 8px; width: 28px; }
  .front-menu[open] .front-menu-close span:first-child,
  .front-menu[open] .front-menu-close span:last-child { top: 21px; }
}

/* TOP改修：映像 → 書籍 → 事業・企業情報。 */
.mv-identity-strip {
  --mv-strip-edge: 26px;
  position: absolute;
  inset: 0 0 0 auto;
  width: 76px;
  z-index: 10;
  color: #fff;
  background: transparent;
  pointer-events: none;
}
.mv-identity-copy {
  position: absolute;
  top: 50%;
  left: calc(100% - var(--mv-strip-edge) - 10px);
  width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .08em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: none;
}
.mv-identity-name { font-size: 1.3em; font-weight: 600; letter-spacing: .12em; }
body.makieng-front-page .mv-identity-strip .mv-scroll {
  right: var(--mv-strip-edge);
  width: 12px;
  bottom: 0;
  gap: 12px;
}
body.makieng-front-page .mv-identity-strip .mv-scroll-line {
  height: clamp(30px, 6vh, 60px);
}
body.makieng-front-page .mv-copy-wrap { right: max(10%, 92px); }
body.makieng-front-page .front-book { padding-top: clamp(16px, 2vw, 28px); }
body.makieng-front-page .front-book-inner {
  display: block;
  padding: clamp(24px, 3vw, 40px);
}
body.makieng-front-page .front-book h2 { margin-bottom: 8px; font-size: clamp(24px, 2.5vw, 32px); }
.front-book-list { list-style: none; margin: 24px 0 0; padding: 0; }
body.makieng-front-page .front-book-copy > p {
  font-family: var(--makieng-font-family);
  font-size: 18px;
  font-weight: 100;
}
.front-book-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid #ddd;
}
.front-book-name { font-size: 16px; line-height: 1.6; }
body.makieng-front-page .btn.btn-primary.front-book-view,
.front-book-pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 128px;
  min-width: 128px;
  min-height: 38px;
  box-sizing: border-box;
  padding: 7px 18px;
  border-radius: 24px;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  flex-shrink: 0;
}
.front-book-pending { background: #e4e4e4; color: #666; }
body.makieng-front-page .front-products { padding-block: clamp(32px, 4vw, 56px); }
body.makieng-site .products-wrapper { margin-top: 0; gap: 16px 24px; }
/* TOPとメニューのアイコンは共通の列幅・間隔で中央に配置する。 */
body.makieng-front-page .front-products .products-wrapper,
body.makieng-site .front-menu .products-wrapper {
  --products-column-width: 280px;
  grid-template-columns: repeat(3, minmax(0, var(--products-column-width)));
  justify-content: center;
  column-gap: clamp(8px, 2vw, 24px);
}
body.makieng-site .products-box { padding: 20px 12px; gap: 14px; }
body.makieng-site .products-icon { width: 80px; height: 80px; }
body.makieng-site .products-title { font-size: 16px; line-height: 1.5; }
.service-section-anchor { display: block; scroll-margin-top: 24px; }
@media (max-height: 740px) and (min-width: 768px) {
  .mv-identity-copy { gap: 12px; font-size: 10px; }
}
@media (max-width: 767px) {
  /* 書籍欄の高さを確保し、ブラウザの操作バー表示中も画面内に収める。 */
  body.makieng-front-page {
    --mv-height: calc(100vh - 340px);
    --mv-height: calc(100svh - 340px);
  }
  .mv-copy-main {
    font-size: clamp(2rem, min(8vw, 10vh), 4rem);
    font-size: clamp(2rem, min(8vw, 10svh), 4rem);
  }
  .mv-identity-strip { width: 44px; --mv-strip-edge: 12px; }
  .mv-identity-copy { font-size: 11px; }
  .mv-identity-detail { display: none; }
  body.makieng-front-page .mv-copy-wrap { right: 56px; }
  body.makieng-front-page .mv-identity-strip .mv-scroll { right: var(--mv-strip-edge); }
  body.makieng-front-page .front-book-inner { padding: 24px 16px; }
  .front-book-name { font-size: 14px; }
  .front-book-row { gap: 12px; }
  body.makieng-front-page .btn.btn-primary.front-book-view,
  .front-book-pending { width: 104px; min-width: 104px; padding: 7px 12px; font-size: 13px; }
  body.makieng-site .products-wrapper { gap: 12px 8px; }
  body.makieng-site .products-box { padding: 16px 4px; gap: 12px; }
  body.makieng-site .products-icon { width: min(64px, 100%); height: auto; aspect-ratio: 1; }
  body.makieng-site .products-title { font-size: 13px; min-height: 3em; }
  body.makieng-site .front-menu .products-wrapper { grid-template-columns: repeat(2, minmax(0, var(--products-column-width))); column-gap: 8px; }
  .front-menu .products-title { min-height: auto; font-size: 14px; }
}
