@charset "UTF-8";
:root {
  --color-bg: #f5f5f5;
  --color-fg: #111111;
  --color-accent: #0070f3;
  --color-gray: #e9e9e9;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont,
      "Helvetica Neue", Arial, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --container-width: 1120px;
  --fs-xs: 0.875rem;
  --fs-sm: 1rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.75rem;
  --fs-xl: 2.5rem;
}

br.sp {
  display: none;
}
@media (max-width: 768px) {
  br.sp {
    display: block;
  }
}

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--color-fg);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.main-container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

.main-container {
  max-width: 960px;
  padding-inline: var(--space-md);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-xg);
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.section-lead,
.section-body {
  max-width: 680px;
  line-height: 1.8;
}

/*スティッキーフッター*/
html,
body {
  height: 100%;
}

body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

main {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #fff;
  padding-block: var(--space-md);
  border-bottom: 1px solid #ddd;
}

.header-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.site-branding img {
  height: 28px;
  width: auto;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: var(--space-md);
}
.nav-list > li {
  position: relative;
}
.nav-list a {
  text-decoration: none;
  color: var(--color-fg);
  opacity: 0.8;
  display: inline-block;
  padding: 0.2em 0;
}
.nav-list a:hover {
  opacity: 1;
}
.nav-list .sub-menu {
  top: 100%;
  margin-top: 10px;
  list-style: none;
  margin: 0;
  padding: 0.6rem 0;
  min-width: 220px;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ddd;
  -webkit-box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
          box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-transition: opacity 0.2s ease, -webkit-transform 0.2s ease;
  transition: opacity 0.2s ease, -webkit-transform 0.2s ease;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transition: opacity 0.2s ease, transform 0.2s ease, -webkit-transform 0.2s ease;
}
.nav-list .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.nav-list .sub-menu a {
  display: block;
  padding: 0.45rem 1rem;
  white-space: nowrap;
}
.nav-list .sub-menu a:hover {
  background: rgba(0, 0, 0, 0.04);
}
.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  -webkit-transform: translateX(-50%) translateY(0);
          transform: translateX(-50%) translateY(0);
}

/* ===== PC（デフォルト） ===== */
.site-nav .nav-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 24px;
}

.nav-toggle {
  display: none;
}

/* ===== SP ===== */
@media (max-width: 768px) {
  .nav-toggle {
    position: relative;
    /* ←これが無いと暴れます */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    width: 40px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }
  .nav-toggle span {
    width: 100%;
    height: 2px;
    background: #000;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-transform-origin: center;
            transform-origin: center;
  }
  .site-nav {
    position: fixed;
    inset: 0;
    background: #fff;
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
    padding: 80px 24px;
    z-index: 1000;
  }
  .site-nav .nav-list {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 20px;
  }
  .site-nav.is-open {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
  /* ハンバーガー → × */
  .nav-toggle.is-active span:nth-child(1),
  .nav-toggle.is-active span:nth-child(3) {
    position: absolute;
    top: 50%;
    left: 0%;
  }
  .nav-toggle.is-active span:nth-child(1) {
    -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
    width: 94%;
  }
  .nav-toggle.is-active span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
    width: 94%;
  }
  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }
}
/* SP：子メニューは親の下に押し出し */
@media (max-width: 768px) {
  .site-nav .nav-list > li {
    position: relative;
  }
  .site-nav li.menu-item-has-children > .sub-menu {
    position: static;
    /* 閉じた状態：空白を完全に消す */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    -webkit-transform: translateY(-4px);
            transform: translateY(-4px);
    margin-top: 0;
    /* ← ここ重要 */
    padding: 0;
    /* ← ここ重要 */
    -webkit-transition: max-height 0.28s ease, opacity 0.22s ease, margin-top 0.28s ease, padding 0.28s ease, -webkit-transform 0.28s ease;
    transition: max-height 0.28s ease, opacity 0.22s ease, margin-top 0.28s ease, padding 0.28s ease, -webkit-transform 0.28s ease;
    transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.28s ease, margin-top 0.28s ease, padding 0.28s ease;
    transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.28s ease, margin-top 0.28s ease, padding 0.28s ease, -webkit-transform 0.28s ease;
    /* PCドロップダウンの残骸対策 */
    visibility: visible;
    pointer-events: auto;
    border: none;
    -webkit-box-shadow: none;
            box-shadow: none;
    background: transparent;
  }
  .site-nav li.menu-item-has-children.is-open > .sub-menu {
    max-height: 600px;
    /* 子が多ければ増やす */
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
    margin-top: 8px;
    padding: 8px 0 0 16px;
    /* ← “開いた時だけ” 下げる */
  }
  /* 親リンクは右端にボタンぶん余白を作る */
  .site-nav li.menu-item-has-children > a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    /* 右端へ */
    gap: 12px;
    padding-right: 0;
    /* もう余白で逃がさない */
  }
  .site-nav .submenu-toggle {
    position: static;
    /* absoluteをやめる */
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 44px;
            flex: 0 0 44px;
    display: -ms-grid;
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .site-nav .submenu-toggle::before {
    content: "▼";
    font-size: 12px;
    line-height: 1;
    display: inline-block;
    -webkit-transition: -webkit-transform 0.2s ease;
    transition: -webkit-transform 0.2s ease;
    transition: transform 0.2s ease;
    transition: transform 0.2s ease, -webkit-transform 0.2s ease;
  }
  .site-nav li.menu-item-has-children.is-open > a .submenu-toggle::before {
    -webkit-transform: rotate(180deg);
            transform: rotate(180deg);
  }
}
.footer-upper {
  padding-block: var(--space-md);
  border-bottom: 1px solid #ddd;
  padding-bottom: 80px;
}
.footer-upper .site-nav a {
  color: white;
}

.footer-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.site-branding svg {
  fill: #fff;
  height: 28px;
  width: auto;
}

.copyright {
  font-size: 0.875rem;
  color: var(--color-fg-muted);
  text-align: center;
  width: 100%;
  padding: var(--space-sm) 0;
}

.site-footer {
  line-height: 2;
  background-color: black;
  color: white;
}

.site-footer .nav-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: var(--space-md);
}
.site-footer .sub-menu {
  display: none !important;
}
.site-footer li:hover > .sub-menu,
.site-footer li:focus-within > .sub-menu {
  display: none;
}

@media (max-width: 768px) {
  .site-footer .footer-inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    gap: var(--space-md);
  }
  .site-footer .site-nav {
    position: static;
    -webkit-transform: none;
            transform: none;
    padding: 0;
    background: transparent;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .site-footer .nav-list {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: var(--space-sm);
  }
  .site-footer .sub-menu,
  .site-footer .submenu-toggle {
    display: none !important;
  }
}
.page-top .service-block {
  margin-bottom: var(--space-xl);
}
.page-top .service-block h2 {
  margin-bottom: var(--space-sm);
}
.page-top .service-block p {
  max-width: 600px;
}

.hero-image {
  width: 100%;
  margin: 0;
  padding: 0;
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

h1.page-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  text-align: center;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

main.space {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.page-top .hero {
  padding-block: var(--space-xl);
}
.page-top .hero-title {
  font-size: var(--fs-xl);
  line-height: 1.4;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
  text-align: center;
}
.page-top .hero-tagline {
  font-size: var(--fs-md);
  margin-bottom: var(--space-md);
  text-align: center;
}
.page-top .hero-lead {
  text-align: center;
}

/* ===== Services grid ===== */
.services-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 960px) {
  .services-grid {
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
  }
}
/* 1サービス項目 */
.services-grid > .wp-block-group {
  margin: 0;
}

/* Gutenbergが勝手に付ける制約幅を無効化 */
.services-grid .wp-block-group__inner-container {
  max-width: none;
  padding: 0;
}

/* 英語タイトル（.service-title-en 相当） */
.services-grid h2.wp-block-heading {
  font-size: var(--fs-md);
  font-weight: 600;
  margin: 0 0 var(--space-sm);
}

/* 日本語タイトル（.service-title-ja 相当） */
.services-grid h3.wp-block-heading a {
  display: block;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 700;
  margin: 0 0 var(--space-sm);
  background-color: #000;
  color: #fff;
  text-align: right;
  padding: 0.25rem 0.5rem;
}

.services-grid h4 {
  text-align: right;
  margin-top: 0;
  padding-right: 1rem;
  border-bottom: dotted 1px #000;
  padding-bottom: 3px;
}
.services-grid h4 a {
  color: #000;
  text-decoration: none;
}

/* 本文（.service-text 相当） */
.services-grid p {
  line-height: 1.8;
  margin: 0;
}

/* 末尾の空 <p> を消す */
.services-grid > p:empty {
  display: none;
}

.works-page {
  line-height: 1.8;
  max-width: 650px;
  width: 100%;
  margin-inline: auto;
  margin-bottom: 80px;
}
.works-page h2 {
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
  background-color: #000;
  color: #fff;
  padding: 0.25rem 0.5rem;
}
.works-page h3 {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}
.works-page p {
  margin-bottom: var(--space-sm);
}

.page-profile table th {
  width: 130px;
  background-color: var(--color-gray);
}

/* =========================
   Contact Form 7 (simple)
   ========================= */
.wpcf7 form {
  max-width: 720px;
  margin: 0 auto;
}

.wpcf7 form p {
  margin: 0 0 18px;
}

.wpcf7 form label {
  display: block;
  font-size: 0.95rem;
  line-height: 1.5;
}

.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  margin-top: 8px;
}

/* inputs */
.wpcf7 input[type=text],
.wpcf7 input[type=email],
.wpcf7 textarea {
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1rem;
  line-height: 1.5;
  background: transparent;
  outline: none;
  -webkit-transition: border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
  transition: border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, -webkit-box-shadow 0.15s ease;
}

.wpcf7 textarea {
  min-height: 180px;
  resize: vertical;
}

/* focus */
.wpcf7 input[type=text]:focus,
.wpcf7 input[type=email]:focus,
.wpcf7 textarea:focus {
  border-color: rgba(0, 0, 0, 0.45);
  -webkit-box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
          box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

/* placeholder */
.wpcf7 input::-webkit-input-placeholder, .wpcf7 textarea::-webkit-input-placeholder {
  color: rgba(0, 0, 0, 0.45);
}
.wpcf7 input::-moz-placeholder, .wpcf7 textarea::-moz-placeholder {
  color: rgba(0, 0, 0, 0.45);
}
.wpcf7 input:-ms-input-placeholder, .wpcf7 textarea:-ms-input-placeholder {
  color: rgba(0, 0, 0, 0.45);
}
.wpcf7 input::-ms-input-placeholder, .wpcf7 textarea::-ms-input-placeholder {
  color: rgba(0, 0, 0, 0.45);
}
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

/* submit */
.wpcf7 input[type=submit] {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.55);
  background: transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 1rem;
  cursor: pointer;
  -webkit-transition: background 0.15s ease, opacity 0.15s ease, -webkit-transform 0.05s ease;
  transition: background 0.15s ease, opacity 0.15s ease, -webkit-transform 0.05s ease;
  transition: transform 0.05s ease, background 0.15s ease, opacity 0.15s ease;
  transition: transform 0.05s ease, background 0.15s ease, opacity 0.15s ease, -webkit-transform 0.05s ease;
}

.wpcf7 input[type=submit]:hover {
  background: rgba(0, 0, 0, 0.06);
}

.wpcf7 input[type=submit]:active {
  -webkit-transform: translateY(1px);
          transform: translateY(1px);
}

/* spinner */
.wpcf7 .wpcf7-spinner {
  margin-left: 10px;
}

/* validation (CF7 adds these) */
.wpcf7 .wpcf7-not-valid {
  border-color: rgba(180, 0, 0, 0.55) !important;
  -webkit-box-shadow: 0 0 0 4px rgba(180, 0, 0, 0.12) !important;
          box-shadow: 0 0 0 4px rgba(180, 0, 0, 0.12) !important;
}

.wpcf7 .wpcf7-not-valid-tip {
  font-size: 0.85rem;
  margin-top: 8px;
}

/* response message */
.wpcf7 .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.03);
}

/* accessibility: keep it readable on small screens */
@media (max-width: 640px) {
  .wpcf7 form p {
    margin-bottom: 16px;
  }
}
/* 必須マーク */
.wpcf7 .wpcf7-validates-as-required::after {
  content: " *";
  color: rgba(180, 0, 0, 0.8);
  font-weight: normal;
}

/* 任意項目（会社名） */
.wpcf7 [data-name=your-company] input {
  opacity: 0.8;
}

/* PC：右寄せ */
.wpcf7 form p:last-of-type {
  text-align: right;
}

/* SP：幅いっぱい */
@media (max-width: 640px) {
  .wpcf7 input[type=submit] {
    width: 100%;
  }
}
.home .site-main {
  margin-bottom: 80px;
}

/* =========================
   Back to Top Button
   ========================= */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(20px);
          transform: translateY(20px);
  -webkit-transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease, -webkit-transform 0.3s ease;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease, -webkit-transform 0.3s ease;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease, -webkit-transform 0.3s ease;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}
.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.back-to-top:hover {
  background-color: rgba(0, 0, 0, 0.9);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}
/*# sourceMappingURL=style.css.map */