@charset "utf-8";

/* common.css — 共通（トークン / ヘッダー / CTA / フッター / 基盤）
   split from style.css
*/

/* =========================================================
   Design tokens (Figma: テキストスタイル / コンポーネント)
   ========================================================= */
:root {
  --color-black: #000000;
  --color-text: #1c1c1c;
  --color-white: #ffffff;
  --color-green: #1e8e3c;
  --color-green-accent: #36ab53;
  --color-green-logo: #00803c;
  --color-brown: #806432;
  --color-orange: #cf5514;
  --color-blue: #003a80;
  --color-asbestos: #036eb8;
  --color-disposal: #788282;
  --color-red: #b71c24;
  --color-yellow: #e3d900;
  --color-gray: #eaeaea;
  --font-sans: "Yu Gothic", YuGothic, "游ゴシック", "游ゴシック体", "Hiragino Sans W3",
    "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック",
    "MS PGothic", sans-serif;
  --font-en: "Montserrat", sans-serif;
  --header-height-sp: 60px;
  --header-height-pc: 140px;
  --header-height-fixed: 100px;
}

.load-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000; /* 管理バー・ヘッダーより手前で全面を覆う */
  background: #1e8e3c;
  visibility: hidden;
}
.load-wrap.visible {
  visibility: visible;
}
/* 初回TOP: オーバーレイの裏も緑。再訪・終了後は戻す */
body.body:not(.load-done) {
  background: #1e8e3c;
}
html.skip-load .load-wrap {
  display: none;
}
body.body:not(.load-done) #wpadminbar {
  visibility: hidden;
}
.load-logo {
  width: 230px;
  opacity: 0;
}
/* 緑は固定。ロゴだけ 0.7秒で出て、0.8秒止まって、0.7秒で消える */
.load-wrap.visible .load-logo {
  animation: load-logo-in-out 2.2s ease-in-out forwards;
}
@keyframes load-logo-in-out {
  0% { opacity: 0; }
  31.82% { opacity: 1; }
  68.18% { opacity: 1; }
  100% { opacity: 0; }
}

html {
  font-size: 62.5%;
  overflow-x: hidden; /* ビューポート横スクロール防止（子のはみ出し吸収） */
  max-width: 100%;
  scroll-behavior: smooth; /* ページ内リンクのスムーススクロール */
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  padding: 0;
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.85;
  letter-spacing: 0.05em;
  color: var(--color-black);
  font-family: var(--font-sans);
  font-weight: 500;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  padding: 0;
  margin: 0;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2.2rem;
}
h3 {
  font-size: 1.8rem;
}
h4 {
  font-size: 1.4rem;
}
h5 {
  font-size: 1.2rem;
}
h6 {
  font-size: 1rem;
}
p {
  padding: 0;
  margin: 0;
}

/* Typography utilities (SP = default) */
.c-en-lg {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 3.6rem;
  line-height: 1;
}
.c-en-md {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
}
.c-en-sm {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
}
.c-en-xs {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}
.c-heading-1 {
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
}
.c-heading-2 {
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
}
.c-lead {
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1.5;
}
.c-body-strong {
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.43;
}
.c-body {
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.85;
}
.c-body-sm {
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.67;
}
.c-breadcrumb {
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1;
}

/* Buttons (Figma コンポーネント)
 * TOP の company / service / sdgs / news「詳しく見る」系もこれをベースに使う
 */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  position: relative;
  box-sizing: border-box;
  min-height: 5.6rem;
  padding: 0.8rem 2.4rem;
  border: 1px solid var(--color-black);
  border-radius: 999px;
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 700;
  font-size: 2rem;
  line-height: 4rem;
  letter-spacing: 0;
  text-decoration: none;
  transition: background 0.3s ease-out, color 0.3s ease-out, border-color 0.3s ease-out;
}
/* 右端矢印（通常 / ホバー差し替え） */
.c-btn-arrow {
  position: absolute;
  top: 50%;
  right: 2.4rem;
  width: 2rem;
  height: auto;
  transform: translateY(-50%);
  flex-shrink: 0;
  transition: opacity 0.3s ease-out;
}
.c-btn-hover {
  display: none;
}
.c-btn-nohover {
  display: block;
}
.c-btn:hover,
.c-btn:active {
  background: var(--color-white);
  color: var(--color-black);
}
.c-btn:hover .c-btn-hover,
.c-btn:active .c-btn-hover {
  display: block;
}
.c-btn:hover .c-btn-nohover,
.c-btn:active .c-btn-nohover {
  display: none;
}
/* .fadeIn の transition:all 1s がホバーを遅くするため、出現は1s・ホバーは0.3sに分離 */
.c-btn.fadeIn {
  transition: transform 1s ease-out, opacity 1s ease-out, background 0.3s ease-out, color 0.3s ease-out, border-color 0.3s ease-out;
}
/* 矢印を flex 並び（company-more など） */
.c-btn--flow {
  gap: 4rem;
}
.c-btn--flow .c-btn-arrow {
  position: static;
  top: auto;
  right: auto;
  transform: none;
  width: 2rem;
}
.c-btn--sm {
  min-height: 4.8rem;
  padding: 0 2.4rem;
  font-size: 1.8rem;
  line-height: 1;
}
.c-btn--orange {
  background: var(--color-orange);
  border-color: var(--color-orange);
}
.c-btn--orange:hover,
.c-btn--orange:active {
  background: var(--color-white);
  color: var(--color-orange);
}
.c-btn--green {
  background: var(--color-green);
  border-color: var(--color-green);
}
.c-btn--green:hover,
.c-btn--green:active {
  background: var(--color-white);
  color: var(--color-green);
}
.c-btn--outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.c-btn--outline:hover,
.c-btn--outline:active {
  background: var(--color-white);
  color: var(--color-black);
}
img,
video {
  width: 100%;
  margin: 0;
  vertical-align: bottom;
}
a {
  text-decoration: none;
  color: var(--color-black);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  tap-highlight-color: rgba(0, 0, 0, 0);
  transition: opacity 0.3s ease-out;
}
a:hover {
  opacity: 0.8;
}
/* ボタン系は色反転ホバーのため opacity をかけない */
a.c-btn:hover,
a.c-btn:active,
a.group-link:hover,
a.group-link:active,
a.vision-more:hover,
a.vision-more:active,
a.contact-mail:hover,
a.contact-mail:active,
a.article-more:hover,
a.article-more:active,
a.service-jump-btn:hover,
a.service-jump-btn:active {
  opacity: 1;
}
ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
table {
  border-collapse: collapse;
}
input,
select,
button,
textarea {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  tap-highlight-color: rgba(0, 0, 0, 0);
}
input:focus,
textarea:focus,
select:focus,
button:focus {
  outline: 0;
}
.pc {
  display: none;
}
/* common */
/* <picture> はレイアウトに介在させず、中の img が従来どおり配置される */
picture {
  display: contents;
}
/* display:contents 時、<source> が flex/grid 子になり gap が画像上に空くのを防ぐ */
picture > source {
  display: none;
}
.wrapper {
  overflow-x: hidden; /* clip 非対応ブラウザ向け */
  overflow-x: clip; /* 対応ブラウザ: 祖先の scrollable overflow に寄与しない */
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.main {
  padding-top: 60px;
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}
/* ページ内リンク（#service-demolition 等）: 固定ヘッダーに隠れないようオフセット */
[id] {
  scroll-margin-top: var(--header-height-sp); /* SP 60px */
}
@media screen and (min-width: 1000px) {
  [id] {
    /* ジャンプ時は追尾ヘッダー(.header-fixed.active)が出ている想定 */
    scroll-margin-top: var(--header-height-fixed); /* PC 100px */
  }
}
.section-head {
  text-align: center;
  margin-bottom: 4rem;
}
.section-ttl {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 3.6rem;
  line-height: 3.6rem;
  margin-bottom: 1rem;
}
.section-ttl-cap {
  font-weight: 700;
}
.slick-slide:focus {
  outline: none;
}
.fadeIn {
  transition: all 1s ease-out;
  transform: translateY(50px);
  opacity: 0;
}
.fadeIn.show {
  transform: translateY(0);
  opacity: 1;
}
/* header */
.header-pc {
  display: none;
}
.header-sp {
  height: var(--header-height-sp);
  padding: 0 2rem;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-white);
  z-index: 997;
  border-bottom: 1px solid #e5e5e5;
}
.header-wrap-sp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}
.header-logo-sp {
  display: block;
  width: 150px;
}
.header-logo-sp img {
  display: block;
  line-height: 1;
}
.hamburger {
  width: 20px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.hamburger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-black);
}
/* メニュー開閉中は背景ページのスクロールを止める（メニュー内は .menu-body で可） */
html.menu-open,
body.menu-open {
  overflow: hidden;
  overscroll-behavior: none;
}
/*
 * TOP の .header-sp-top は transform で出し入れする。
 * transform 付き祖先の中では .menu（fixed）もその基準になるため、
 * メニュー開時は transform を外してビューポート基準に戻す。
 */
body.menu-open .header-sp-top {
  transform: none;
  transition: none;
}
/* SPメニュー: 右上からブワッと広がる .menu-bg アニメ（元実装） */
.menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 2;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  display: flex;
  flex-direction: column;
}
.menu-bg {
  width: 0;
  height: 0;
  content: "";
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  background: var(--color-green);
  z-index: 1;
  opacity: 1;
  transition: all 0.5s ease-out;
  border-radius: 0 0 0 15vh;
}
.menu-bg.open {
  width: 120%;
  height: 120vh;
}
.menu.open {
  opacity: 1;
  visibility: visible;
}
.menu-head {
  flex-shrink: 0;
  height: var(--header-height-sp);
  padding: 0 1.7rem 0 2rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-logo {
  display: block;
  width: 150px;
  margin-top: 0.2rem;
}
.menu-hamburger span {
  background: var(--color-white);
}
/* Figma 499:2168: list inset L10% R30.75% / justify-center / gap24 / sub gap16 pl24 */
.menu-inner {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.menu-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 40px;
  box-sizing: border-box;
  width: auto;
  margin: 40px 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.header-list-sp {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.header-item-sp {
  padding: 0;
}
.header-link-sp,
.header-link2-sp {
  display: block;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--color-white);
}
/* Figma 499:2168: main 28/28, sub 16/17 */
.header-link-sp {
  font-size: 2.8rem;
  line-height: 2.8rem;
}
.header-link2-sp {
  font-size: 1.6rem;
  line-height: 1.7rem;
}
.header-list2-sp {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 2.4rem;
  padding-left: 2.4rem;
}
.header-item2-sp {
  margin-left: 0;
  padding: 0;
}
.menu-hamburger {
  width: 25px;
}
.menu-hamburger span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-hamburger span:nth-child(2) {
  transform: translateY(-9px) rotate(-45deg);
}

/* contact section — Figma CTA_SP 495:1676（bg 495:1645）
   padding T48/B48 L/R5% / head↔本文 gap40 / CONTACT 36/36 ls0 /
   cap 14/24 Bold ls0 / 見出し20/30 / tel 40/40 icon25×32 gap8 /
   時間16/30 Medium / 区切り線上下gap16 / ボタン260×56 16/40 */
.contact-section {
  padding: 4.8rem 5%;
  box-sizing: border-box;
  background: var(--color-brown);
}
.contact-section .section-head {
  color: #fff;
  margin-bottom: 4rem;
}
.contact-section .section-ttl {
  font-size: 3.6rem;
  line-height: 3.6rem;
  margin-bottom: 0.8rem;
  color: #fff;
  letter-spacing: 0;
}
.contact-section .section-ttl-cap {
  font-size: 1.4rem;
  line-height: 2.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
}
.contact-block {
  text-align: center;
}
/* SP: 電話↔WEB 区切り（Figma Vector 7 / 上下 gap 16） */
.contact-block:nth-child(1) {
  width: 100%;
  padding-bottom: 1.6rem;
  margin-bottom: 1.6rem;
  box-sizing: border-box;
  border-bottom: 1px solid #fff;
}
.tel-icon {
  width: 25px;
  height: 32px;
  margin-right: 0;
  flex-shrink: 0;
}
.contact-mail-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 15px;
  flex-shrink: 0;
}
.mail-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 15px;
  margin: 0;
}
.mail-icon-hover {
  opacity: 0;
  visibility: hidden;
}
.contact-tel-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  height: 4rem;
  margin-bottom: 0.7rem;
}
.contact-ttl {
  font-size: 2rem;
  font-weight: 700;
  line-height: 3rem;
  color: #fff;
  margin-bottom: 0.8rem;
  letter-spacing: 0;
}
.contact-block:nth-child(2) .contact-ttl {
  margin-bottom: 1.6rem;
}
.contact-tel {
  font-size: 4rem;
  font-weight: 700;
  line-height: 4rem;
  color: #fff;
  letter-spacing: 0;
}
.contact-time {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 3rem;
  color: #fff;
  letter-spacing: 0;
}
.contact-mail {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  width: 26rem;
  height: 5.6rem;
  padding: 0.8rem 1.6rem;
  box-sizing: border-box;
  border: 1px solid #fff;
  border-radius: 50px;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 4rem;
  letter-spacing: 0;
  position: relative;
  transition: all 0.3s ease-out;
}
/* ホバー反転 — SP / PC 共通 */
.contact-mail:hover {
  background: #fff;
  color: var(--color-brown);
}
.contact-mail:hover .mail-icon-hover {
  opacity: 1;
  visibility: visible;
}
.contact-mail:hover .mail-icon-nohover {
  opacity: 0;
  visibility: hidden;
}
/* footer — Figma 355:686 / 499:1833 */
.footer {
  background: var(--color-green);
  color: var(--color-white);
  padding: 4rem 2rem;
  box-sizing: border-box;
}
.footer-container {
  display: flex;
  flex-direction: column;
}
.footer-wrap--info {
  padding-bottom: 4rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--color-white);
  box-sizing: border-box;
}
.footer-wrap--nav {
  margin-bottom: 4rem;
}
.footer-logo {
  display: block;
  width: 252px;
  max-width: 70%;
  margin-bottom: 2.4rem;
}
.footer-name {
  font-size: 2rem;
  font-weight: 700;
  line-height: 2rem;
  margin-bottom: 0.8rem;
}
.footer-txt {
  line-height: 2.4rem;
  font-weight: 500;
  font-size: 1.4rem;
}
.footer-nav-wrap {
  display: flex;
}
.footer-nav-block:nth-child(1) {
  width: 55%;
}
.footer-nav-block:nth-child(2) {
  width: 45%;
}
.footer-item:not(:last-child),
.footer-item2:not(:last-child) {
  margin-bottom: 1.6rem;
}
.footer-item span {
  margin-bottom: 0.8rem;
  display: block;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.4rem;
}
.footer-link,
.footer-link2 {
  display: block;
  color: var(--color-white);
}
.footer-link {
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.4rem;
}
.footer-link2 {
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.1rem;
  margin-left: 1.6rem;
}
.footer-sns {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0;
  margin-bottom: 1.6rem;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.4rem;
}
.footer-sns-icon {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
}
.footer-sns-icon path {
  fill: var(--color-white);
}
.copyright {
  margin-top: 0;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2rem;
}

@media screen and (min-width: 768px) {
  body {
    font-size: 1.6rem;
  }
  .sp {
    display: none;
  }
  .pc {
    display: block;
  }
  a[href^="tel:"] {
    pointer-events: none;
  }
  /* common — Figmaコンテンツ幅 1040px（例: CTA 1440 - 左右200） */
  .section-inner {
    max-width: 1040px;
    margin: auto;
  }
  .section-head {
    margin-bottom: 6rem;
  }
  .section-ttl {
    font-size: 7rem;
    line-height: 7rem;
  }
  /* contact section — 元PCレイアウト（37% / 63%、電話57% + WEB43%） */
  .contact-section {
    padding: 12rem 2rem;
    box-sizing: border-box;
  }
  .contact-section .section-inner {
    width: 100%;
    overflow: visible;
  }
  .contact-container {
    display: flex;
    align-items: center;
    min-width: 0;
  }
  .contact-section .section-head {
    text-align: left;
    margin-top: -1rem;
    margin-bottom: 0;
  }
  .contact-section .section-ttl {
    font-size: 7rem;
    line-height: 1;
    letter-spacing: 0;
  }
  .contact-section .section-ttl-cap {
    font-size: 1.6rem;
    letter-spacing: 0;
  }
  .contact-wrap:nth-child(1) {
    width: 37%;
    flex-shrink: 0;
    min-width: 0;
  }
  .contact-wrap:nth-child(2) {
    display: flex;
    align-items: flex-start; /* stretch だと高い方に引き伸ばされ、中の余白が開く */
    width: 63%;
    min-width: 0;
  }
  .contact-block:nth-child(1) {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
    border-right: 1px solid #fff;
    padding: 0 1.2rem;
    margin-right: 2rem;
    width: 57%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .contact-block:nth-child(2) {
    display: flex;
    flex-direction: column;
    justify-content: center; /* space-between は見出し〜ボタン間を空けすぎる */
    align-items: center;
    gap: 2.8rem;
    width: 43%;
    min-width: 0;
    box-sizing: border-box;
  }
  .contact-block:nth-child(2) .contact-ttl {
    margin-bottom: 0;
  }
  .contact-ttl {
    font-size: 2rem;
    margin-bottom: 0;
    line-height: 30px;
    letter-spacing: 0;
  }
  .contact-tel-box {
    height: auto;
    margin-bottom: 0;
  }
  .tel-icon {
    width: 24px;
    height: auto;
    margin-right: 0.8rem;
  }
  .contact-tel {
    font-size: 4rem;
    line-height: 40px;
    letter-spacing: 0;
  }
  .contact-time {
    font-size: 1.6rem;
    line-height: 30px;
    letter-spacing: 0;
  }
  .contact-mail {
    width: auto;
    height: auto;
    font-size: 1.6rem;
    letter-spacing: 0;
    max-width: 100%;
  }
  /* contact-mail:hover は SP 共通定義を流用 */
  /* footer — Figma PC: info | nav / sns .... copyright */
  .footer {
    padding: 6rem 2rem 5rem;
  }
  .footer-container {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr);
    grid-template-rows: auto auto;
    column-gap: 4rem;
    row-gap: 4rem;
    align-items: start;
  }
  .footer-wrap--info {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    padding-bottom: 0;
    padding-right: 4rem;
    margin-bottom: 0;
    border-bottom: none;
    /* info列の実高さに追従（Figma 224px はデザイン時の結果値） */
    border-right: 1px solid var(--color-white);
    box-sizing: border-box;
  }
  .footer-wrap--nav {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    position: relative;
    margin-bottom: 0;
  }
  .footer-sns {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    margin-bottom: 0;
    font-size: 1.6rem;
    line-height: 3.5rem;
  }
  .copyright {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-self: end;
    text-align: right;
    margin-top: 0;
  }
  .footer-logo {
    width: 318px;
    max-width: 100%;
    margin-bottom: 2.8rem;
  }
  .footer-name {
    font-size: 2.6rem;
    line-height: 4rem;
    margin-bottom: 1.6rem;
  }
  .footer-txt {
    font-size: 1.6rem;
    line-height: 3rem;
  }
  .footer-item:not(:last-child) {
    margin-bottom: 1.6rem;
  }
  .footer-item2:not(:last-child) {
    margin-bottom: 0.8rem;
  }
  .footer-nav-block:nth-child(1) {
    width: 55%;
  }
  .footer-nav-block:nth-child(2) {
    width: 45%;
  }
  .footer-link,
  .footer-item span {
    font-size: 1.6rem;
    line-height: 1.6rem;
  }
  .footer-link2 {
    font-size: 1.2rem;
    line-height: 1.2rem;
    font-weight: 500;
  }
  .footer-sns-icon {
    width: 4rem;
    height: 4rem;
  }
}

@media screen and (min-width: 1000px) {
  /* common */
  .main {
    padding-top: 0;
  }
  body {
    font-size: 1.6rem;
  }
  h1 {
    font-size: 4.5rem;
  }
  h2 {
    font-size: 3rem;
  }
  h3 {
    font-size: 2.6rem;
  }
  .c-en-lg {
    font-size: 7rem;
  }
  .c-en-md {
    font-size: 4rem;
  }
  .c-en-sm {
    font-size: 2.6rem;
  }
  .c-heading-1 {
    font-size: 4.5rem;
  }
  .c-heading-2 {
    font-size: 3rem;
  }
  .c-lead {
    font-size: 2.6rem;
  }
  .c-body-strong {
    font-size: 1.6rem;
    line-height: 2.19;
  }
  .c-body {
    font-size: 1.6rem;
    line-height: 1.875;
  }
  .c-body-sm {
    font-size: 1.6rem;
    line-height: 1.875;
  }
  /* header — Figma 比率でナビ1行を維持（改行禁止） */
  .header-sp {
    display: none;
  }
  .header-pc {
    display: block;
    height: var(--header-height-pc);
    /* Figma 下層 297:940: left 31 / right 30 */
    padding: 0 3rem 0 3.1rem;
    box-sizing: border-box;
    background: var(--color-white);
  }
  .header-fixed {
    width: 100%;
    height: var(--header-height-fixed);
    /* Figma TOP 284:55: left 31 / right 40（nav 396+1004=1400） */
    padding: 0 4rem 0 3.1rem;
    background: var(--color-white);
    position: fixed;
    top: calc(var(--header-height-fixed) * -1);
    left: 0;
    z-index: 997;
    transition: all 0.3s ease-out;
    opacity: 0;
    visibility: hidden;
  }
  .header-fixed.active {
    top: 0;
    opacity: 1;
    visibility: visible;
  }
  .header-wrap-pc {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0; /* 列間gapはFigmaにない。比率を崩すので禁止 */
    box-sizing: border-box;
  }
  /*
   * Figma MCP get_metadata 実寸（1440基準 → flex-basis% + max-width）
   * TOP 284:55 … logo x31 w260 / nav x396 w1004 gap32
   * 下層 297:940 … 左〜nav x562 / nav w848
   * 中間幅では左列を縮めてナビ1行を優先（文字折り返し禁止）
   */
  .header-block:nth-child(1) {
    flex: 0 1 26.66%;
    max-width: 365px;
    min-width: 0;
  }
  .header-block:nth-child(2) {
    flex: 1 1 73.34%;
    min-width: 0;
  }
  .header-logo-pc {
    display: block;
    width: 100%;
    max-width: 260px; /* Figma design 260×45 */
  }
  .header-desc {
    /* 1440で約12px → 0.83vw。幅に連動して1行を維持 */
    font-size: 0.83vw;
    font-weight: 500;
    font-feature-settings: "palt";
    letter-spacing: 0.01em;
    margin-bottom: 1.2rem;
    color: var(--color-text);
    white-space: nowrap;
  }
  .header-list-pc {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    /* 1440では32px、狭い幅では自動で詰める */
    gap: 0 clamp(1.2rem, 2.2vw, 3.2rem);
  }
  .header-pc {
    border-bottom: none;
  }
  .header-fixed {
    border-bottom: 1px solid #e5e5e5;
  }
  /* 下層ヘッダーのみ比率を切り替え（297:940） */
  .header-pc:not(.header-fixed) .header-block:nth-child(1) {
    flex-basis: 38.5%;
    max-width: 531px;
  }
  .header-pc:not(.header-fixed) .header-block:nth-child(2) {
    flex-basis: 61.5%;
  }
  .header-item-pc {
    position: relative;
    flex: 0 0 auto; /* 文字幅で確保。shrinkingで1文字折り返ししない */
    white-space: nowrap;
  }
  .header-item-pc:hover {
    cursor: pointer;
  }
  .header-item-pc:not(:last-child) {
    margin-right: 0;
  }
  .header-link-pc,
  .header-link2-pc {
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0;
    line-height: 1.5;
    white-space: nowrap;
  }
  .header-link-pc:hover,
  .header-link2-pc {
    cursor: pointer;
  }
  .header-hover-content {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 3.5rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
    z-index: 1;
  }
  /* Figma 294:824 Frame23 に揃える（224 / pad32·16 / gap8 / fs12 / radius15） */
  .header-list2-pc {
    background: var(--color-green);
    padding: 1.6rem 3.2rem;
    box-sizing: border-box;
    border-radius: 1.5rem;
    width: 22.4rem;
    position: relative;
  }
  .header-hover-content.visible {
    opacity: 1;
    visibility: visible;
  }
  .header-link2-pc {
    color: var(--color-white);
    display: block;
    font-size: 1.2rem;
    line-height: 1.2rem;
  }
  .header-item2-pc:not(:last-child) {
    margin-bottom: 0.8rem;
  }
  .header-list2-pc::before {
    content: "";
    display: block;
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 15px 15px 15px;
    border-color: transparent transparent var(--color-green) transparent;
  }
}

/* header responsive — 〜1360px: 左列を縮めナビ1行を維持（1178付近の崩れ対策） */
@media screen and (min-width: 1000px) and (max-width: 1360px) {
  .header-block:nth-child(1) {
    flex: 0 1 auto;
    max-width: 280px;
  }
  .header-pc:not(.header-fixed) .header-block:nth-child(1) {
    max-width: 300px;
  }
  .header-logo-pc {
    max-width: clamp(180px, 18vw, 240px);
  }
  .header-list-pc {
    gap: 0 clamp(1rem, 1.6vw, 2.4rem);
  }
}
@media screen and (min-width: 1000px) and (max-width: 1049px) {
  .header-link-pc {
    font-size: 1.2rem;
  }
}
@media screen and (min-width: 1050px) and (max-width: 1199px) {
  .header-link-pc {
    font-size: 1.3rem;
  }
}
@media screen and (min-width: 1200px) and (max-width: 1269px) {
  .header-link-pc {
    font-size: 1.4rem;
  }
}

/* other responsive */
@media screen and (min-width: 768px) and (max-width: 1039px) {
  html {
    font-size: 1vw;
  }
  /* 〜1039px: 電話番号を縮め、CTA右のはみ出しを防ぐ */
  .contact-tel {
    font-size: 3.2rem;
  }
  .contact-block:nth-child(1) {
    width: 55%;
    padding: 0 0.8rem;
    margin-right: 1.2rem;
  }
  .contact-block:nth-child(2) {
    width: 45%;
  }
  .footer-container {
    column-gap: 3rem;
  }
  .footer-wrap--info {
    padding-right: 3rem;
  }
}

@media screen and (max-width: 374px) {
  .contact-tel {
    font-size: 2.6rem;
  }
  .footer-txt {
    font-size: 1.2rem;
  }
  .footer-link,
  .footer-link2 {
    font-size: 1.4rem;
  }
  .footer-nav-wrap {
    display: block;
  }
  .footer-nav-block:nth-child(1),
  .footer-nav-block:nth-child(2) {
    width: 100%;
  }
  .footer-nav-block:nth-child(1) {
    margin-bottom: 1.5rem;
  }
}

@media screen and (min-width: 415px) and (max-width: 767px) {
  .contact-section {
    padding: 4.8rem 10vw;
  }
  .footer {
    padding: 5rem 10vw;
  }
}

/* contact form 7 */
.wpcf7 .ajax-loader,
.wpcf7 .wpcf7-spinner {
  display: none !important;
}
.wpcf7-list-item {
  margin-left: 0 !important;
}
.wpcf7-not-valid-tip {
  font-size: 1.2rem !important;
  margin-top: 1rem;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border: none;
  font-size: 1.2rem;
  color: #dc3232;
  text-align: center;
}
.wpcf7 form.sent .wpcf7-response-output {
  color: #46b450;
  font-size: 1.4rem;
  text-align: center;
  border: none;
}
/* CF7 6.x: autop で入る p / br 対策 */
.wpcf7-form .form-head p,
.wpcf7-form .form-data p,
.wpcf7-form .submit-box p {
  margin: 0;
}
.wpcf7-form .form-head p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0;
  width: 100%;
}
.wpcf7-form .form-head label {
  display: inline;
  line-height: 1.5;
}
.wpcf7-form .form-head span {
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}
.wpcf7-form .submit-box p {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.wpcf7-form .submit-box br {
  display: none;
}
