@charset "UTF-8";
html{
  scroll-behavior: smooth;
}
/* ===== Loading ===== */
.loader{
  position: fixed;
  inset: 0;
  background: hsl(222, 70%, 29%);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 9999;
  opacity: 1;
  pointer-events: all;
  transition: opacity 520ms ease, visibility 0s linear 520ms;
  visibility: visible;
  min-height: 100svh;
  height: 100svh;
}
.loader.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader__inner{
  width: min(520px, 86vw);
  display: grid;
  gap: 14px;
  justify-items: center;
  transition: transform 520ms ease, opacity 520ms ease;
  transform: translateY(-4vh);
  opacity: 1;
}
.loader.is-hiding .loader__inner{
  transform: translateY(-10px);
  opacity: 0;
}
/* フェードイン担当（外側） */
.loader__logo{
  width: 120px;
  opacity: 1;
  animation: logoFadeUp 700ms ease forwards;
  animation-delay: 120ms;
}
/* ふわふわ担当（内側） */
.loader__logoFloat{
  animation: floatLogo 3s ease-in-out infinite;
  animation-delay: 1.2s; /* ロゴが出た後にふわっと開始 */
}
/* 白ロゴ化（imgのまま） */
.loader .loader__logoImg{
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}
.loader__logo img,
.loader__logoSvg{
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}
/* 線が伸びる：A要素 */
.loader__line{
  width: 160px;
  height: 1px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  opacity: .6;
  animation: none;
  margin: 0 auto;
}
/* 下のメタ表示（控えめに） */
.loader__meta{
  display: grid;
  justify-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(-2px);
  animation: metaIn 600ms ease forwards;
  animation-delay: 320ms;
}
.loader__text{
  margin: 0;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #fff;
}
/* 点滅ドット */
.loader__dots{
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}
.loader__dots span{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
  opacity: .25;
  transform: translateY(0);
  animation: dotPulse 900ms ease-in-out infinite;
}
.loader__dots span:nth-child(2){ animation-delay: 150ms; }
.loader__dots span:nth-child(3){ animation-delay: 300ms; }
.loader.is-hiding .loader__dots span{
  animation: none;
}
/* 初回のみローディング*/
.loading-skip .loader{
  display:none;
}
/* Animations */
@keyframes lineGrow{
  from{ width: 0%; 
        opacity: 0;}
  to{ width: 160px;
    opacity: .6; }
}
@keyframes logoFadeUp{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes floatLogo{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-6px); }
}
@keyframes metaIn{
  from{ opacity: 0; transform: translateY(-2px); }
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes dotPulse{
  0%,100%{ opacity: .25; transform: translateY(0); }
  50%{ opacity: .9; transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce){
  .loader__logo,
  .loader__line,
  .loader__meta,
  .loader__dots span{
    animation: none !important;
  }
  .loader__logo{ opacity: 1; transform: none; }
  .loader__line{ width: min(420px, 76vw); }
  .loader__meta{ opacity: 1; transform: none; }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }
p { overflow-wrap: anywhere; word-break: break-word; }
#works, #about, #process, #contact{
  scroll-margin-top: 100px; /* ヘッダー80px + ちょい余白 */
}
body {
 font-family: 'Zen Kaku Gothic New', sans-serif;
 padding-top: 0px;
 color:#2c2c2c;
 margin: 0;
}
.wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}
.header{
  width: min(1200px, calc(100% - 32px));
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  box-sizing: border-box;
  background: transparent;
  z-index: 1000;
}
.header__nav{
  display: flex;
  align-items: center;
  margin-left: auto;
  order: 2;
}
.header__logo{
  position: static;
  transform: none;
  order: 1;
}
h2, .about__greetingTitle, .access__title {
  font-family: 'Zen Old Mincho', serif;
}
.menu {
  display: none !important; 
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header__logo img {
  width: 120px;
  height: auto;
}
nav li {
  text-align: center;
  font-size: 16px;
}
nav li a {
  text-decoration: none;
  color: #59595a;
  font-weight: bold;
}
/* =========================
   Hamburger (SP/Tablet)
   ========================= */
.navToggle{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color:  #000000;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.navToggle__label{
  font-weight: 600;
  letter-spacing: 0.04em;
}
.navToggle__icon,
.navToggle__icon::before,
.navToggle__icon::after{
  background: currentColor;
}
.navToggle__label--close{ display:none; }
/* 三本線（シンプルに） */
.navToggle__icon{
  display: inline-block;
  width: 26px;
  height: 2px;
  background: currentColor;
  vertical-align: middle;
  margin-left: 10px;
  position: relative;
}
.navToggle__icon::before,
.navToggle__icon::after{
  content:"";
  position:absolute;
  left:0;
  width:26px;
  height:2px;
  background: currentColor;
}
.navToggle__icon::before{ top:-8px; }
.navToggle__icon::after { top: 8px; }
.navOverlay{
  position: fixed;
  inset: 0;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

body.navOpen .navOverlay{
  opacity: 1;
  pointer-events: auto;
}

/* いったん擬似要素は止める */
.navOverlay::before{
  content: none;
}
.spNav{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  z-index: 1200;
  width: min(300px, calc(100vw - 20px));
  padding: 88px 32px 36px;
  box-sizing: border-box;
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);

  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 220ms ease, transform 220ms ease;
}
body.navOpen .spNav{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.spNav__list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 26px;
}
.spNav__list a{
  text-decoration: none;
  color: #111;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 16px;
  line-height: 1.4;
  display: inline-block;
}
.spNav__list a::after{
  content:"";
  position:absolute;
  left:0;
  right:auto;
  bottom:-4px;
  width:0%;
  height:1px;
  background:#535353;
  transition: width 0.3s ease;
}
.spNav__list a:hover::after{
  width:100%;
}
.spNav__list a:hover::after{
  width:100%;
}
/* OPEN状態 */
body.navOpen .spNav{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
body.navOpen{
  overflow: hidden; /* 開いてる間スクロール止める */
}

body.navOpen .navToggle__label--open{ display:none; }
body.navOpen .navToggle__label--close{ display:inline-block; }
/* CLOSEボタン */
.spNav__close{
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;

  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: #111;
  color: #fff;
  cursor: pointer;
}
.spNav__close::after{
  content: "×";
  font-size: 16px;
  line-height: 1;
}
body.navOpen .navToggle__icon{
  background: transparent;
}
body.navOpen .navToggle__icon::before{
  top:0;
  transform: rotate(45deg);
}
body.navOpen .navToggle__icon::after{
  top:0;
  transform: rotate(-45deg);
}
.main-visual{
  position: relative;
  height: 100vh;      /* PC保険 */
  height: 100svh;     /* スマホ安定 */
  min-height: 100svh;
  overflow: hidden;
}
.main-visual::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.18);
  z-index: 2;
  pointer-events: none;
}
/* スライダー土台 */
.mv_slider{
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}
/* 各画像 */
.mv_slide{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  opacity: 0;
  transform: scale(1.08);
  transition:
    opacity 1.5s ease,
    transform 12s ease-in-out;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
/* 表示中 */
.mv_slide.active{
  opacity: 1;
  transform: scale(1.02);
}
/* 黒フィルター（実要素で管理） */
.mv_black{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
  opacity: 1;
  pointer-events: none;
  z-index: 2;
}

.mv_black.is-dark{
  opacity:0.40; /* ←暗さ調整 */
}
@keyframes mvKenBurns{
  from{ transform: scale(1.08); }
  to{ transform: scale(1.16); }
}
.main-visual__logo {
  position: absolute;
  top: 5px;      /* 上からの距離 */
  right: 40px;    /* 右からの距離 */
  z-index: 2;     /* 画像より前に出す */
}
.main-visual__logo img {
  width: 140px;   /* 好きなサイズに微調整 */
  height: auto;
  display: block;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}
/* 文字エリア */
.main-visual__message{
  position: absolute;
   left: clamp(22px, 6vw, 80px);
  top:60%;
  transform: translateY(-50%);
  z-index:3;
  width: 320px;
  height: 420px;
  pointer-events: none;
}
.mv_copy{
  position: absolute;
  top: -100px;
  left: 65px;
  margin: 0;
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
  font-family: 'Zen Old Mincho', serif;
  font-weight: 300;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.20);
}
.mv_texts{
  position: absolute;
  left: 70px;          /* ← 縦書きからどれだけ右に出すか */
  top: 310px;          /* ← 英語開始位置 */ 
  width: max-content;      /* ← 英語ブロック全体の開始位置 */
  display: flex;
  flex-direction: column;
  gap:50px;          /* ← 英語と日本語の間隔 */
}
.mv_en{
  margin: 0;
  font-size: clamp(12px, 1.2vw, 15px);
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.92);
  text-shadow: 1px 1px 6px rgba(0,0,0,.22);
  white-space: nowrap;
  display: inline-block;
}
/* 日本語サブ */
.mv_copysub{
  margin: 0;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.96);
  text-shadow: 1px 1px 6px rgba(0,0,0,.22);
}
/* 見えない見出し（SEO/アクセシビリティ用） */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* =========================
   top intro（トップページ施工事例エリア）
========================= */
.top-intro{
  padding: 56px 20px 72px;
  background: #f3f3f3;
  overflow: hidden;
}
.top-intro__inner{
  width: min(1100px, 100%);
  margin: 0 auto;
}
.top-intro__layout{
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  column-gap: 48px;
  align-items: center;
}
.top-intro__logo{
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-intro__logo img{
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
}
.top-intro__content{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.top-intro__lead{
  margin: 0 0 28px;
  width: 100%;
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: #666;
  margin-bottom: 40px;
  opacity: 0; 
  transform: translateY(24px); 
  transition:
    opacity 1s cubic-bezier(.22,1,.36,1),
    transform 1s cubic-bezier(.22,1,.36,1);
  transition-delay: 0.18s;
}
.top-intro__photo{
  margin: 0;
  width: 100%;

  opacity: 1;
  transform: none;
}
/* ===== intro slider ===== */
.top-intro__slider{
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 700;
  overflow: hidden;
}
.top-intro__slider img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease, transform 8s ease;
}
.top-intro__slider img.is-active{
  opacity: 1;
  transform: scale(1);
}
.top-intro__slider::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
}
.top-intro__photo.is-visible,
.top-intro__lead.is-visible{
  opacity: 1;
  transform: translateY(0);
}
/* ===== intro ボタン ===== */
.top-intro__cta{
  margin-top: 32px;
  display: flex;
  justify-content: flex-end; /* ←中央配置 */
  width: 100%; 
}
.top-intro__content{
  width: 100%;
}
.top-intro__button{
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid #5c5c5c;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: #5c5c5c;
  background: transparent;
  transition: all 0.3s ease;
}
/* ホバー */
.top-intro__button:hover{
  background: #5c5c5c;
  color: #fff;
  transform: translateY(-2px);
}
/* =========================
   top feature links(トップページ工場案内・会社概要エリア)
========================= */
.top-feature-links{
  position: relative;
  padding: 90px 20px 110px;
  overflow: hidden;
}
.top-feature-links__bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.top-feature-links__bg img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(0.82);
}
.top-feature-links::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.10);
  z-index: 1;
}
.top-feature-links__inner{
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  justify-content: center;
}
.feature-card{
  background: rgba(60, 56, 52, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px 24px 26px;
  min-height: 500px;
  box-shadow: 0 18px 40px rgba(0,0,0,.16);
}
.feature-card__link{
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #fff;
  text-decoration: none;
}
.feature-card__title{
  margin: 0 0 22px;
  text-align: center;
  font-family: 'Zen Old Mincho', serif;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.92);
}
.feature-card__image{
  margin: 0 0 18px;
  overflow: hidden;
}
.feature-card__image img{
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.feature-card__body{
  width: min(100%, 320px);
  margin: 0 auto 20px;
  text-align: left;
  align-self: center;
  line-height: 1.9;
}
.feature-card__body p{
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.8);
  text-shadow: 0 1px 4px rgba(0,0,0,.15);
}

.feature-card__button{
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 32px;
  background: rgba(255,255,255,.92);
  color: #666;
  font-size: 11px;
  letter-spacing: 0.12em;
  transition: transform .3s ease, opacity .3s ease;
}
.feature-card__link:hover .feature-card__button{
  transform: translateY(-2px);
  opacity: .92;
}
.feature-card__link:hover .feature-card__image img{
  transform: scale(1.04);
  transition: transform .7s ease;
}
/* =========================
   top contact banner（トップページコンタクトエリア）
========================= */
.top-contact-banner{
  position: relative;
  margin-top: 60px;
}
.top-contact-banner__link{
  position: relative;
  display: block;
  min-height: 420px;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}
.top-contact-banner__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .7s ease;
}
.top-contact-banner__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.34);
}
.top-contact-banner__content{
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
}
.top-contact-banner__eyebrow{
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
}
.top-contact-banner__title{
  margin: 0 0 18px;
  font-family: 'Zen Old Mincho', serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
}
.top-contact-banner__text{
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.05em;
}
.top-contact-banner__button{
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 40px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.78);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
   margin-left: auto;
}
.top-contact-banner__link:hover .top-contact-banner__bg{
  transform: scale(1.04);
}
/* =========================
 footer↑エリア
========================= */
.page_top{
  position:fixed;
  right:32px;
  bottom:32px;
  width:40px;
  height:40px;
  font-size:16px;
  border:1px solid #bbb;   /* 枠 */
  color:#777;              /* 矢印色 */
  background:transparent;  /* 背景なし */
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
   z-index: 9999;
}

.page_top.show{
  opacity:1;
  pointer-events:auto;
}
.page_top:hover{
  border-color:#666;
  color:#ffffff;
}
.footer{
  padding:32px 0;
  background: #f3f3f3;
  text-align:center;
}
.footer_inner{
  width: 100%;
  max-width: 1000px;   /* ←ちょい狭めるのがコツ */
  margin: 0 auto;
  padding: 0 20px;     /* ←これ超大事（スマホ余白） */
  text-align: center;
}
.footer_logo{
  font-size:14px;
  letter-spacing:0.08em;
  margin-bottom:10px;
   color:#7c7c7c;
}
.footer_copy{
   margin-top: 16px;
  font-size:12px;
  color:#7c7c7c;
}
.footer_nav{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
}
.footer_nav a{
  color:#7c7c7c;
  text-decoration:none;
}
.footer_nav li{
  list-style: none;
}
/* =========================
  各ページの共通設定)
========================= */
/* Sub Hero 各ページのメインビジュアル*/
/* ===== Sub Hero（共通）===== */
.sub-hero{
  position: relative;
  background:#f3f3f3;
}

/* コンテナ */
.sub-hero__inner{
  position: relative;
  width: min(100%, 1280px);
  margin: 0 auto;
  height: clamp(530px, 66vh, 830px);
  overflow: hidden;
  isolation: isolate;
}
/* 左の青い帯（半透明） */
.sub-hero__content{
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(90px, 20vw, 220px);
  height: 100%;

  background: linear-gradient(
    to bottom,
    #2f4fa3,
    #18317c
  );

  opacity: 0.9;
  mix-blend-mode: multiply;

  z-index: 2;
}
/* 画像 */
.sub-hero__image{
  position: absolute;
  inset: 0;
  height: 100%;
  overflow: hidden;
  background: #ddd;
}
.sub-hero__image img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
/* 左にほんのり暗いグラデ（文字見やすくする用） */
.sub-hero__image::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.25) 20%,
    rgba(0, 0, 0, 0.1) 35%,
    rgba(0, 0, 0, 0) 50%
    );
}
/* テキスト */
.sub-hero__overlay{
  position: absolute;
  left: clamp(28px, 4vw, 52px);
  bottom: clamp(80px, 12vw, 140px);
  z-index: 3;
  color: #fff;
  max-width: 680px;
  text-shadow: 
  0 2px 8px rgba(0,0,0,0.6),
  0 6px 24px rgba(0,0,0,0.4);
}
.sub-hero__title,
.sub-hero__lead{
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  backface-visibility: hidden;
}
.sub-hero__title{
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 42px);
  letter-spacing: 0.08em;
  font-family: "Zen Old Mincho", serif;
  line-height: 1.15;
  animation: subHeroFadeUp 1.6s cubic-bezier(.16, 1, .3, 1) .2s both;
}
.sub-hero__lead{
  margin: 0;
  font-size: clamp(0.95rem, 1vw, 1.02rem);
  line-height: 2;
  letter-spacing: 0.04em;
  animation: subHeroFadeUp 1.6s cubic-bezier(.16, 1, .3, 1) .5s both;
}
@keyframes subHeroFadeUp{
  0%{
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  100%{
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.sub-hero__label{
  display: block;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 48px 20px 56px;
  text-align: center;
  background:#f3f3f3;
}
.sub-hero__label-en{
  margin: 0;
  color: #243b7f;
  line-height: 1.1;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 150;
  letter-spacing: 0.06em;
}
.sub-hero__label-ja{
  margin: 14px 0 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #222;
}
.sub-hero__label::after{
  content: "";
  display: block;
  width: 1px;
  height: 56px;
  margin: 28px auto 0;
  background: #243b7f;
  opacity: 0.35;
}
@media (max-width: 900px){
  .sub-hero__inner{
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
  }
  .sub-hero__content{
    min-height: 220px;
  }
  .sub-hero__image{
    min-height: 280px;
  }
  .sub-hero__overlay{
    left: 24px;
    right: 24px;
    bottom: 28px;
    max-width: none;
  }
  .sub-hero__title{
    font-size: clamp(2rem, 9vw, 3rem);
  }
  .sub-hero__label{
    width: calc(100% - 32px);
    padding: 36px 16px 40px;
  }
}
/*各ページのセクションタイトル背景英文字薄グレー*/
.section-bg-text{
  position: absolute;
  left: 0;
  top: 18px;
  z-index: 1;
  font-size: clamp(52px, 8vw, 120px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.02);
  opacity: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
/*各ページのセクションタイトル*/
.section-title{
  position: relative;
  z-index: 2;
}
/* =========================
   case portfolio(施工事例)
========================= */
.case-portfolio{
  padding: 150px 0 120px;
  background: #f7f7f7;
}
.case-portfolio__inner{
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}
.case-portfolio__lead{
  max-width: 800px;
  margin: 26px 0 56px;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: #444;
}
.case-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px 42px;
}
.case-card{
  margin: 0;
}
.case-card a{
  display: block;
  color: inherit;
  text-decoration: none;
}
.case-card__image{
  margin: 0;
  overflow: hidden;
  background: #ececec;
  aspect-ratio: 4 / 5.2;   /* ← 縦長長方形 */
}
.case-card__image img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.4s ease;
}
.case-card a:hover .case-card__image img{
  transform: scale(1.04);
}
.case-card__body{
  padding-top: 18px;
}
.case-card__meta{
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7a7a7a;
}
.case-card__title{
  margin: 0;
  font-family: 'Zen Old Mincho', serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: #222;
}
/* =========================
   works page / base
========================= */
.works{
  padding-top: 0;
  padding-bottom: 140px;
}
/* 各部署ブロック */
.work--dept-kv,
.work--mokko-kv{
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
  display: block;
}
.work--dept-kv + .work--dept-kv,
.work--dept-kv + .work--mokko-kv,
.work--mokko-kv + .work--dept-kv{
  margin-top: 140px;
}
/* =========================
   works hero
========================= */
.work__hero{
  position: relative;
  height: 430px;
  margin-bottom: 36px;
  overflow: visible;
}
.work__bg{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 1280px;
  height: 350px;
  overflow: hidden;
  z-index: 0;
}
.work__bg img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
}
.work__heroBadge{
  position: absolute;
  top: 230px;
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  height: 88px;
  background: linear-gradient(to bottom, #2f4fa3, #18317c);
  opacity: 0.86;
  mix-blend-mode: multiply;
  z-index: 3;
}
.work__title{
  position: absolute;
  top: 240px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 4;
}
.work__title img{
  width: 138px;
  height: auto;
  display: block;
}
.work__heroPanel{
  position: absolute;
  top: 280px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 82px;
  background: #fff;
  z-index: 1;
}
.work__lead{
  position: absolute;
  top: 334px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  width: 100%;
  max-width: 500px;
  text-align: center;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.08em;
  color: #222;
  z-index: 2;
}
/* =========================
   works content layout
========================= */
.work__content{
  display: grid;
  align-items: start;
  justify-content: center;
  padding-left: 20px;
  padding-right: 20px;
}
/* 通常版（木工・塗装） */
.work--mokko-kv .work__content,
.work--dept-kv:not(.work--dept-kv-reverse) .work__content{
  grid-template-columns: 360px 500px;
  column-gap: 96px;
}
/* 反転版（鉄工・組立） */
.work--dept-kv-reverse .work__content{
  grid-template-columns: 500px 360px;
  column-gap: 90px;
}
.work__text{
  width: 100%;
  max-width: 360px;
  min-height: auto;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 50px;
  position: relative;
  z-index: 2;
}
/* 通常版 */
.work--mokko-kv .work__text,
.work--dept-kv:not(.work--dept-kv-reverse) .work__text{
  grid-column: 1;
  justify-self: start;
  align-self: start;
  margin-left: -12px;
  margin-top: 50px;
}
/* 反転版 */
.work--dept-kv-reverse .work__text{
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  margin-right: -12px;
  transform: translateY(40px);
}
.work__body{
  display: block;
  width: 100%;
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  line-height: 2;
  color: #444;
  background: transparent;
  position: relative;
  z-index: 2;
}
.work__main{
  width: 500px;
  max-width: 500px;
  margin: 0;
  display: block;
  z-index: 2;
}
.work--mokko-kv .work__main,
.work--dept-kv:not(.work--dept-kv-reverse) .work__main{
  grid-column: 2;
  justify-self: end;
}
.work--dept-kv-reverse .work__main{
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
}
/* =========================
   works accent / base
========================= */
.work__accent{
  display: block;
  width: 100%;
  max-width: 360px;
  min-height: 300px;
  margin: 0;
  padding: 24px 32px;
  background: none;
  color: hsl(235, 16%, 29%);
  font-size: 10px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  text-align: left;
  z-index: 2;
}
.work__accent h2{
  margin: 0 0 12px;
  text-align: center;
  font-family: 'Zen Old Mincho', serif;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.work__accent ul{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 36px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.work__accent li{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 12px;
  line-height: 1.8;
  color: #555;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.work__accent li::before{
  content: "";
  flex: 0 0 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #56576a;
  transform: translateY(1px);
}
/* =========================
   works accent / tosou
========================= */
#accent-tosou{
  min-height: auto;
}
#accent-tosou .accent__cols{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
  margin-top: 12px;
  margin-left: -12px;
  padding-left: 0;
}
#accent-tosou .accent__col{
  min-width: 0;
}
#accent-tosou .accent__col h3{
  margin: 0 0 10px 15px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: left;
}
#accent-tosou .accent__col ul{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
#accent-tosou .accent__col li{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 8px 10px;
  line-height: 1.8;
  word-break: keep-all;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
/* =========================
   works accent / tekko
========================= */
#tekko .work__accent ul{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}
#tekko .work__accent li{
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 12px;
  line-height: 1.8;
  white-space: nowrap;
  border-bottom: none;
}
#tekko .work__accent li::after{
  content: "";
  position: absolute;
  left: 0;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: rgba(0,0,0,0.08);
}
#tekko .work__accent h2{
  margin: 0 0 12px -40px;
  text-align: center;
}
/* =========================
   works slider
========================= */
.work__slider{
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  box-shadow: none;
}
.work__slider img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  opacity: 0;
  filter: contrast(1.04) saturate(1.03);
  transform: scale(1);
  transition: opacity .9s ease, filter .6s ease;
  will-change: transform, opacity, filter;
}
.work__slider > img{
  height: 100%;
}
.work__slider img.is-active{
  opacity: 1;
  animation: workZoomSoft 8000ms ease forwards;
}
.work__slider img.is-leaving{
  opacity: 0;
}
.slider-count{
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  z-index: 3;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(2px);
}
.slider-count__item{
  position: relative;
  min-width: 32px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.22);
}
.slider-count__item:last-child{
  border-right: none;
}
.slider-count__item.is-active{
  color: #ffffff;
}
.slider-count__item::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
}
.slider-count__item.is-active::after{
  animation: sliderLine 6.2s linear forwards;
}
@keyframes sliderLine{
  from{ transform: scaleX(0); }
  to{ transform: scaleX(1); }
}
@keyframes workZoomSoft{
  from{ transform: scale(1); }
  to{ transform: scale(1.035); }
}
/* 部署ごとの画像位置 */
#mokkou .work__slider img{
  object-position: center 52%;
}
#tekko .work__slider img{
  object-position: center 40%;
}
#tosou .work__slider img{
  object-position: center 38%;
}
#kumitate .work__slider img{
  object-position: center 40%;
}
/* =========================
   works marquee
========================= */
.works-marquee{
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 140px 0 0;
}
.works-marquee__track{
  display: flex;
  width: max-content;
  animation: worksMarquee 85s linear infinite;
  will-change: transform;
}
.works-marquee__list{
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}
.works-marquee__list + .works-marquee__list{
  margin-left: 4px;
}
.works-marquee__item{
  flex: 0 0 auto;
  width: 280px;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #f4f4f4;
}
.works-marquee__item img{
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
}
@keyframes worksMarquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
/* =========================
   works animation
========================= */
.work__lead{
  opacity: 0;
  transform: translateX(-50%) translateY(16px);
  transition: opacity .8s ease, transform .8s ease;
}
.work__lead.is-active{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.work__body{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s ease .22s, transform .9s ease .22s;
}
.work__body::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 1px;
  background: rgba(0,0,0,0.28);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.2s cubic-bezier(.4,0,.2,1) .5s;
}
.work__text.is-active .work__body{
  opacity: 1;
  transform: translateY(0);
  transition-delay: .1s;
}
.work__text.is-active .work__body::before{
  transform: scaleY(1);
}
/* =========================
   works responsive / small desktop
========================= */
@media (max-width: 1184px){
  .work--mokko-kv .work__content{
    grid-template-columns: 360px 420px;
    column-gap: 80px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .work--mokko-kv .work__main{
    width: 420px;
    max-width: 420px;
  }
  .work--dept-kv-reverse .work__content{
    grid-template-columns: 420px 360px;
    column-gap: 72px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .work--dept-kv-reverse .work__main{
    width: 420px;
    max-width: 420px;
  }
}

@media (max-width: 767px){
   /* header logoなくす */
.header{
    height: 72px;
    padding: 0 16px;
  }
  .header__logo{
    display: none;
  }
  .header__nav{
    margin-left: auto;
  }
  .spNav{
    width: 34%;
    min-width: 260px;
    padding: 110px 28px 40px;
  }
  .spNav__list a{
    font-size: 18px;
    line-height: 1.9;
  }
  .navToggle{
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .navToggle__label{
    font-size: 14px;
    letter-spacing: 0.08em;
  }
  .navToggle__icon{
    width: 24px;
  }
  .navToggle__icon::before,
  .navToggle__icon::after{
    width: 24px;
  }
  /* mainフィルターズレ防止 */
.main-visual{
    height: 100svh;
    min-height: 100svh;
  }
  .mv_slide{
    object-position: center center;
    transform: scale(1.05);
  }
  .mv_slide.active{
    transform: scale(1);
  }
  .mv_black{
    background: rgba(0,0,0,0.22);
  }
  .main-visual__message{
    left: 18px;
    top: 55%;
    width: 220px;
    height: auto;
  }
  /* works responsive */
  .works{
    padding-top: 90px;
    padding-bottom: 90px;
  }
  .work--dept-kv,
  .work--mokko-kv{
    padding: 0 16px;
  }
  .work__hero{
    height: 300px;
    margin-bottom: 28px;
  }
  .work__bg{
    height: 180px;
  }
  .work__heroBadge{
    top: 110px;
    width: 132px;
    height: 58px;
  }
  .work__title{
    top: 118px;
  }
  .work__title img{
    width: 108px;
  }
 .work__heroPanel{
    top: 160px;
    width: calc(100% - 40px);
    height: 64px;
  }
  .work__lead{
    top: 182px;
    max-width: calc(100% - 56px);
    font-size: 14px;
  }
  .work__content,
  .work--dept-kv-reverse .work__content{
    display: block;
    padding-left: 0;
    padding-right: 0;
  }
  .work__main{
    width: 100%;
    max-width: 360px;
    margin: 0 auto 24px;
    justify-self: center;
  }
  .work__slider{
    max-width: 360px;
  }
  .work__text,
  .work--mokko-kv .work__text,
  .work--dept-kv:not(.work--dept-kv-reverse) .work__text,
  .work--dept-kv-reverse .work__text{
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 0;
    gap: 28px;
    transform: none;
    justify-self: center;
  }
  .work__accent{
    max-width: 320px;
    min-height: 220px;
    padding: 20px 18px;
  }
  .work__accent ul{
    grid-template-columns: 1fr;
    gap: 0;
  }
  #tekko .work__accent ul{
    grid-template-columns: 1fr;
    gap: 0;
  }
  .works-marquee{
    margin-top: 80px;
  }
  .works-marquee__item{
    width: 180px;
  }
}
 /* =========================
   process
========================= */
.process{
  background: #f3f3f3;
  padding: 120px 0;
}
.process-inner{
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}
.process-head{
  position: relative;
  margin-bottom: 72px;
  overflow: visible;
}
.process-title{
  position: relative;
  z-index: 2;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: #111;
}
.process-bg-text{
  position: absolute;
  left: 0;
  top: 18px;
  z-index: 1;
  font-size: clamp(52px, 8vw, 120px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  color: rgba(0, 0, 0, 0.035);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
/* ナビ */
.process-nav{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 52px;
  position: relative;
  margin-bottom: 72px;
  padding-bottom: 26px;
}
.process-nav::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #d6d6d6;
}
.process-tab{
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: center;
  position: relative;
  min-width: 64px;
}
.tab-num{
  display: block;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: #9c9186;
  transition: color 0.35s ease, transform 0.35s ease;
}
.tab-label{
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    color 0.35s ease;
  pointer-events: none;
}
.process-tab.is-active .tab-num{
  color: #111;
}
.process-tab.is-active .tab-label{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  color: #111;
    transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    color 0.35s ease,
    visibility 0s linear 0s;
}
.process-indicator{
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 26px;
  height: 1px;
  background: #111;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.3s ease;
}
/* パネル */
.process-panel{
  display: none;
  max-width: 760px;
  height: 340px; 
  margin: 0 auto;
  padding: 64px 56px;
  background: #f8f8f8;
  line-height: 2;
}
.process-panel h3{
  margin-bottom: 18px;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.08em;
}
.process-panel p{
  margin: 0;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
}
.process-panel.is-active{
  display: block;
}
.process-panel h3,
.process-panel p{
  opacity: 0;
  transform: translateY(16px);
}
.process-panel.is-active h3,
.process-panel.is-active p{
  animation: textFadeUp 0.5s ease forwards;
}
.process-panel.is-active p:nth-of-type(1){
  animation-delay: 0.08s;
}
.process-panel.is-active p:nth-of-type(2){
  animation-delay: 0.16s;
}
.process-panel.is-active p:nth-of-type(3){
  animation-delay: 0.24s;
}
.process-panel.is-active h3{
  animation-delay:0.05s;
}
.process-panel.is-active p{
  animation: textFadeUp 0.5s ease forwards;
}
@keyframes textFadeUp{
  from{
    opacity:0;
    transform:translateY(16px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes processFadeUp{
  from{
    opacity: 0;
    transform: translateY(18px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================
   about
========================= */
  /* ----- ご挨拶・アクセスの外箱 ----- */
 a[href^="tel:"]{
  color: inherit;
  text-decoration: none;
}
.section-inner{
  width: min(1100px, calc(100% - 56px));
  margin: 0 auto;
  padding: 0 ;
}
.about{
  padding: 120px 10px 80px;
}
/* sectionタイトル設定 */
.section-head{
  position: relative;
  display: inline-block;
}
/* 薄い背景英字 */
.about .section-bg-text{
  position: absolute;
  z-index: 1;
  font-size: 80px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.02);
  opacity: 0.9;
  white-space: nowrap;
  left: 4px;
  top: 18px;
}
/* 沿革エリア */
.about-history{
  padding: 90px 0 40px;
  background: #fafafa;
  overflow: hidden;
}
.about-history__inner{
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}
.about-history__head{
  margin-bottom: 42px;
}
.about-history__title{
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.history-slider{
  position: relative;
}
.history-slider__viewport{
  overflow: hidden;
  border-top: 1px solid #d8d3cc;
  border-bottom: 1px solid #e5e1db;
  background: #fff;
}
.history-slider__track{
  display: flex;
  gap: 0;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(.22,.61,.36,1);
}
.history-card{
  flex: 0 0 25%;
  min-width: 25%;
  padding: 26px 24px 34px;
  position: relative;
  min-height: 290px;
  border-right: 1px solid #ece7e0;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
}
.history-card.is-show{
  opacity: 1;
  transform: translateY(0);
}
.history-card:last-child{
  border-right: none;
}
.history-card__dot{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #081d7a;
  margin-bottom: 22px;
  position: relative;
}
.history-card__dot::after{
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: calc(100% + 24px);
  height: 1px;
  background: #d8d3cc;
  transform: translateY(-50%);
}
.history-card:last-child .history-card__dot::after{
  display: none;
}
.history-card__year{
  display:flex;
  align-items:flex-end;
  gap:10px;
  margin:0;
  flex-wrap: nowrap;
}
.history-card__seireki{
  font-family:'Zen Old Mincho', serif;
  font-size:clamp(28px,3vw,40px);
  line-height: 1.1;
  letter-spacing:0.04em;
  color:#222;
  font-weight:500;
}
.history-card__wareki{
  font-size:14px;
  line-height:1.2;
  color:#555;
  letter-spacing:0.06em;
  padding-bottom:2px;
}
.history-card__month{
  margin: 6px 0 28px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: #555;
}
.history-card__body{
  margin: 0;
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.03em;
  color: #444;
  max-width: 15em;
}
.history-slider__controls{
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.history-slider__btn{
  appearance: none;
  border: none;
  background: #2c2c2c;
  color: #fff;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: opacity .25s ease, transform .25s ease;
}
.history-slider__btn:hover{
  opacity: .85;
}
.history-slider__btn:disabled{
  opacity: .35;
  cursor: default;
}
/* 会社概要 */
.about-profile-wrap{
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
  position: relative;
  margin-bottom: 12px;
}
.about-visual{
  position: relative;
}
.about__titlewrap{
  position: relative;
  margin-bottom: 20px;
  overflow: visible;
}
.about__title{
  margin: 0;
  position: relative;
  z-index: 2;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  color: #111;
}
.about__photo{
  margin-top: 35px;
}
.about__photo img{
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.about-inner{
  grid-column: 2;
  grid-row: 1;
  width: 100%;
}

/* 情報パネル */
.about-profile{
  margin: 0;
  background: #fafafa;
  border: 1px solid #d7d7d7;
  padding: 0 40px;
}
.profile-row{
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid #e1e1e1;
}
.profile-row:last-child{
  border-bottom: none;
}
.profile-row dt,
.profile-row dd{
  margin: 0;
}
.profile-row dt{
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color:#777;;
}
.profile-row dd{
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.03em;
  color: #1f1f1f;
}
.profile-row strong{
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 450;
  color: #111;
}
.about-profile-wrap{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}
/* ここまで会社概要 */
/* ここからご挨拶 */
.about__greeting{
  max-width: none;
  margin: 0;
  padding: 0;
}
.about__greeting > .section-inner{
  width: min(1100px, calc(100% - 56px));
  margin: 0 auto;
  padding: 0;
}
.about__greeting > .section-inner > .about__titlewrap.section-head{
  position: relative;
  margin: 0 0 28px;
  overflow: visible;
}
.about__greeting > .section-inner > .about__titlewrap.section-head .about__title{
  position: relative;
  margin: 0;
  left: 0;
  transform: none;
  text-align: left;
}
.about__greeting > .section-inner > .about__titlewrap.section-head .section-bg-text{
  position: absolute;
  left: 0;
  top: 18px;
}
.about__greetingBody{
  width: min(100%, 860px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.about__president{
  width: 220px;
  margin: 0;
  justify-self: center;
}
.about__president img{
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #ddd;
}
.about__presidentName{
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.08em;
}
.role{
  font-size: 13px;
  color: #777;
  letter-spacing: 0.06em;
}
.name{
  font-size: 16px;
  letter-spacing: 0.1em;
}
.about__greetingText{
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.9;
  text-align: left;
}
.about__greetingText p{
  margin: 0 0 1.4em;
  font-size: 14px;
  line-height: 1.9;
}
.about__greetingText p:last-child{
  margin-bottom: 0;
}
/* ここからアクセス */
.access{
  padding: 20px 0;
  margin-top: 120px;
  padding-left: 0;
  padding-right: 0;
}
.access__maps{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;         /* まずはPCは60で固定 */
  max-width: none;
  width: 100%;
  margin: 0 ;
  padding: 0 ;
}
.access__maps > *{
  min-width: 0;  /* これ超重要 */
}
.access__item iframe{
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 8px;
  display: block;
}
.access__label{
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 500;
}
/* タイトル位置合わせ*/
.about .about__titlewrap.section-head,
.about__greeting .about__titlewrap.section-head,
.access .about__titlewrap.section-head{
  position: relative;
  margin: 0 0 34px;
  overflow: visible;
}

.about .about__titlewrap.section-head .about__title,
.about__greeting .about__titlewrap.section-head .about__title,
.access .about__titlewrap.section-head .about__title{
  position: relative;
  margin: 0;
  left: 0;
  transform: none;
  text-align: left;
}

.about .about__titlewrap.section-head .section-bg-text,
.about__greeting .about__titlewrap.section-head .section-bg-text,
.access .about__titlewrap.section-head .section-bg-text{
  position: absolute;
  left: 8px;
  top: 18px;
}
/* =========================
   contact
========================= */
.sub-hero--contact{
  height: 45vh !important;
  max-height: 420px;
}
.sub-hero__contact-box{
  margin-top: 24px;
}
.sub-hero__contact-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  padding: 14px 24px;
  border: 1px solid rgba(255,255,255,.78);
  color: #fff;
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.sub-hero__contact-btn:hover{
  opacity: 0.86;
  transform: translateY(-2px);
}
.contact-section{
  background: #f7f7f5;
  padding: 110px 0 40px;
}
.contact-area{
  background: #fafafa;
  margin: 140px auto 72px;
  max-width: 860px;
  width: 100%; 
 padding: 64px 72px;
  box-sizing: border-box;
  border: 1px solid #e7e2db;
}
.contact-bg {
    background: #e4eeef;
    padding: 100px 0;
    margin: 100px auto 0;
}
.contact-inner{
  margin-top: 48px;
}
.contact-message{
  text-align: center;
  font-size: 15px;
  line-height: 2.1;
  color: #4a4a4a;
  margin: 0;
}
.message-notice{
  display: inline-block;
  margin-top: 10px;
  color: #777;
  font-size: 13px;
  letter-spacing: 0.04em;
}
/* 必須ラベル：ベタ塗りやめる */
.essential{
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid #9aa0aa;
  background: transparent;
  color: #5c616b;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  vertical-align: middle;
}
.contact-form{
  width: min(720px, 100%);
  margin: 0 auto;
}
.contact-form__row{
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  column-gap: 40px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid #ece7e0;
}
.contact-form__row:last-of-type{
  border-bottom: 1px solid #ece7e0;
}
.contact-form__head label{
  display: inline-block;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #3f3f3f;
}
.contact-form__field{
  width: 100%;
}
.input-area,
.contact-form textarea{
  width: 100%;
  display: block;
  box-sizing: border-box;
  border: none;
  border-bottom: 1px solid #cfc8bf;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  color: #2f2f2f;
}
.input-area{
  height: 46px;
  padding: 10px 0;
}
.input-area,
textarea {
  width: 100%;
  box-sizing: border-box;
}
.input-area::placeholder,
.contact-form textarea::placeholder{
  color: #b5afa6;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.contact-form textarea{
  min-height: 140px;
  padding: 12px 0;
  max-width: 100%;
  resize: none;
}
.input-area:focus,
textarea:focus{
  border-color:#424244;
  background: #fff;
  outline: none;
}
.input-area:focus,
.contact-form textarea:focus{
  border-bottom-color:  #424244;
}
textarea::placeholder {
    color: #bfbfbf;
    font-size: 12px;
}
input::placeholder,
textarea::placeholder{
  color: #b9b9b9;
  font-size: 12px;
  font-weight: 400;
}
.contact-area .text {
    font-size: 13px;
    text-align: center;
    margin-bottom: 100px;
}
.contact-area .text a {
    color: #000;
    border-bottom: 1px solid #000;
    transition: all .3s;
    text-decoration: none;
}
input[type="text"] {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.submit-button{
  box-sizing: border-box;
  display: block;
  margin: 36px auto 0;
  min-width: 220px;
  appearance: none;
  border: 1px solid #2f2f2f;
  background: transparent;
  color: #2f2f2f;
  min-width: 220px;
  height: 52px;
  padding: 0 32px;
  font-size: 13px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background-color .28s ease, color .28s ease, transform .28s ease;
  text-decoration: none;
  line-height: 1.5;
}
.contact-table td {
  width: 100%;
}
.submit-button:hover{
  background: #f2f2f2;
  color: #222;
  transform: translateY(-2px);
}
.submit-button:focus-visible{
  outline: none;
  background: #2f2f2f;
  color: #fff;
}
.contact-form__actions{
  text-align: center;
  margin-top: 40px;
}

.contact-area .text a:hover {
    border-bottom: 1px solid #777;
    padding-bottom: 5px;
    color: #777;
}
.contact-table{
  width: 100%;
  border-collapse: collapse;
}
.table-list{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  letter-spacing: 0.05em;
  width: 100%;
  margin-bottom: 32px;
  color: #4f4f4f;
  font-weight: 500;
}
.table-list th{
  font-size: 14px;
  font-weight: 600;
  width: 220px;
  text-align: left;
  color: #3f3f3f;
  padding-top: 14px;
}
.table-list td{
  font-size: 13px;
  width: calc(100% - 220px);
}
.table-list-address {
    flex-wrap: wrap;
}
.table-list-address .input-area {
    margin-bottom: 10px;
}

.table-list td {
    font-size: 13px;
    width: calc(100% - 250px);
}
/* 確認ページ*/
.contact-confirm{
  background: #f7f7f5;
  padding: 90px 0 40px;
}
.contact-confirm__inner{
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e7e2db;
  padding: 72px 80px;
  box-sizing: border-box;
}
.contact-confirm__lead{
  text-align: center;
  margin: 0 0 40px;
  font-size: 15px;
  line-height: 2;
  color: #4a4a4a;
}
.privacy-box__body h4{
   margin: 12px 0 4px;
}
.privacy-box__body h4 + br{
  display: none;
}
.confirm-box{
  border-top: 1px solid #ece7e0;
  border-bottom: 1px solid #ece7e0;
}
.confirm-row{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 24px 0;
  border-top: 1px solid #ece7e0;
}
.confirm-row:first-child{
  border-top: none;
}
.confirm-row__head{
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #3f3f3f;
}
.confirm-row__body{
  font-size: 14px;
  line-height: 2;
  color: #444;
}
.privacy-box{
  margin-top: 36px;
  padding: 28px 28px 32px;
  background: #fbfbfa;
  border: 1px solid #ece7e0;
}
.privacy-box__title{
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 500;
}
.privacy-box__body{
  max-height: 180px;
  overflow-y: auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #ece7e0;
  line-height: 2;
  font-size: 14px;
  color: #444;
}
.privacy-box__check{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 14px;
  color: #333;
}
.confirm-actions{
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}
.confirm-btn{
  min-width: 220px;
  height: 52px;
  border: 1px solid #2f2f2f;
  background: transparent;
  font-size: 13px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: .28s ease;
  appearance: none;
  -webkit-appearance: none;
  color: #2f2f2f;
}
.confirm-btn--submit{
  background: #2f2f2f;
  color: #fff;
}
.confirm-btn--back{
  color: #2f2f2f;
}
.confirm-btn:hover{
  transform: translateY(-2px);
}
.hp-field{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}
@keyframes lineGrow{
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: .6;
  }}
/* =========================
   thanks page
========================= */
.contact-confirm{
  padding: 140px 20px 120px;
  background: #f3f3f3;
}
.contact-confirm__inner{
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}
.contact-confirm .section-head{
  position: relative;
  margin-bottom: 34px;
}
.contact-confirm .section-title{
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: 'Zen Old Mincho', serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: #222;
}
.contact-confirm .section-bg-text{
  position: absolute;
  left: 18px;
  top: 8px;
  z-index: 1;
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.02);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.contact-confirm__lead{
  margin: 0 auto 42px;
  text-align: center;
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: 0.05em;
  color: #444;
}
.confirm-box{
  margin: 0 0 42px;
  padding: 34px 24px;
  border-top: 1px solid #ddd8d2;
  border-bottom: 1px solid #ddd8d2;
}
.confirm-box .confirm-row{
  display: block;
  padding: 0;
  border: none;
}
.confirm-box .confirm-row__body{
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  text-align: center !important;
  font-size: 15px;
  line-height: 2.2;
  letter-spacing: 0.04em;
  color: #444;
}
.confirm-box .confirm-row__body br{
  display: block;
  content: "";
  margin-top: 6px;
}
.confirm-actions{
  display: flex;
  justify-content: center;
  margin-top: 0;
}
.confirm-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 56px;
  padding: 0 28px;
  background: #2c2c2c;
  color: #fff;
  border: 1px solid #2c2c2c;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: background .3s ease, transform .3s ease, opacity .3s ease;
}
.confirm-btn:hover{
  background: #444;
  border-color: #444;
  text-decoration: none;
  transform: translateY(-2px);
}
/* thanksページだけ文章を1行ずつ自然に見せる */
@media (min-width: 768px){
  .confirm-box .confirm-row__body{
    white-space: nowrap;
  }
}
/* tablet */
@media (max-width: 1024px){
  .contact-confirm{
    padding: 130px 20px 110px;
  }
  .contact-confirm__lead{
    margin-bottom: 36px;
    font-size: 15px;
  }
  .confirm-box{
    padding: 30px 20px;
  }
}
/* =========================================
   Responsive Layout Map
   0. Base styles = desktop first
   1. Large desktop(1280-)
   2. Small desktop（1025px - 1279px）
   (901-1080)
   3. Tablet（768px - 1024px)
   (768-799)
   4. Mobile large (700-767)
   5. Mobile (<=699)
========================================= */


/* =========================
   1) Large desktop
   1280px and up
========================= */
@media (min-width: 1280px){
  /* main visual */
  .main-visual__message{
    left: clamp(40px, 7vw, 110px);
    width: 380px;
    height: 520px;
  }
  .mv_copy{
    font-size: clamp(36px, 3.2vw, 48px);
    line-height: 1.12;
  }
  .mv_texts{
    left: 80px;
    top: 300px;
    width: 340px;
    gap: 92px;
  }
  .mv_en{
    font-size: 14px;
  }
  .mv_copysub{
    font-size: 15px;
  }
  .menu{ display:none; 
    }
  .navToggle{ display:inline-flex; align-items:center;
    }/* ↑ハンバーガーメニュー */
}


@media(max-width:1200px) {
  /* レスポンシブ問合せ（スマホで縦積み） */
  .contact-area {
    width: 80%;
    padding: 60px;
  }
  /* ご挨拶文位置調整 */
  .about__greetingText{
    justify-self: start;
  }
}
/* =========================
   2) Small desktop
   1025px - 1279px
========================= */
@media (min-width: 1025px) and (max-width: 1279px){

  .work,
  .work--odd{
    grid-template-columns: minmax(300px, 1fr) minmax(440px, 500px);
    column-gap: 24px;
    padding-inline: 24px;
  }
  .work--even{
    grid-template-columns: minmax(440px, 500px) minmax(300px, 1fr);
    column-gap: 24px;
    padding-inline: 24px;
  }
  .work__main,
  .work__slider{
    max-width: 500px;
  }
  .work__text{
    max-width: 350px;
  }
}
/* =========================
   Small Desktop
========================= */
@media (min-width: 901px) and (max-width: 1024px){
  .main-visual__message{
    left: 9%;
    top: 46%;
    width: 320px;
    height: 430px;
  }
  .mv_texts{
    left: 68px;
    top: 255px;
    width: 300px;
    gap: 74px;
  }
  .mv_copy{
    font-size: 32px;
  }
  .mv_en{
    font-size: 13px;
  }
  .mv_copysub{
    font-size: 13px;
  }
  .work::before{
    font-size: clamp(80px, 11vw, 160px);
    opacity: 0.16;
  }
  .process-panel{
    max-width: 88%;
    padding: 56px 40px;
  }
}
/* =========================
   3) Tablet
   768px - 1024px
   ※タブレット共通の本体
========================= */
@media (min-width: 768px) and (max-width: 1024px){

  /* loader */
    .top-contact-banner__button{
    margin-top: 80px;
    }
    .loader{
    min-height: 100svh;
    height: 100svh;
    }
    .loader__inner{
    transform: translateY(-10vh) 
    }
  
  /* main visual */
    .main-visual{
      height: 100svh;
      height: 100dvh;
    }
    .mv_slide{
      object-position: 40% 35%;
    }
    .mv_slide--2{
      object-position: 60% center;
    }
    .mv_slide--3{
      object-position: 50% center;
    }
    .mv_slide--4{
    object-position: 40% center;
    }
      .mv_slide--5{
    object-position: 35% center;
    }
    .main-visual__message{
      left: 10%;
      top: 45%;
      transform: translateY(-50%);
      width: 300px;
      height: 420px;
    }

    /* 縦コピー */
    .mv_copy{
      top: -30px;
      font-size: 40px;
      letter-spacing: 0.10em;
    }
    /* 英語＋説明 */
    .mv_texts{
      left: 65px;
      top: 340px;
      gap: 70px;
      width: 280px;
    }
   .mv_en{
      font-size: 12px;
      white-space: nowrap;
    }
    .mv_copysub{
      font-size: 12px;
      white-space: nowrap;
    }
  /* sub hero */
/* 各ページメイン画像 */
  .sub-hero{
    background: #f5f4f1;
  }
  .sub-hero__inner{
    width:calc(100% - 40px);
    margin: 0 auto;
    grid-template-columns: 110px 1fr;
    column-gap: 0;
  }
  .sub-hero__content,
  .sub-hero__image{
    height: clamp(420px, 58vw, 500px);
    min-height: auto;
  }
  .sub-hero__content{
    background: #243b7f;
  }
  .sub-hero__image{
    object-position: center center;
  }
  .sub-hero__image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
  }
  .sub-hero__overlay{
    left: 34px;
    right: 28px;
    bottom: 58px;
    max-width: 520px;
  }
  .sub-hero__title{
    font-size: clamp(2.8rem, 5.6vw, 4rem);
    line-height: 1.08;
    margin: 0 0 20px;
  }
  .sub-hero__lead{
    font-size: 1rem;
    line-height: 1.9;
  }
  /* top page */
  /* portfolio */
    .case-portfolio{
      padding: 72px 0 72px;
  }
  /* works */
 .works{
    padding-top: 110px;
    padding-bottom: 110px;
    }
  .work{
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "main"
      "text";
    row-gap: 40px;
    }
    .work__main{
      justify-self: center;
    }
    .work::before{
      left: 50%;
      right: auto;
      transform: translateX(-50%);
      font-size: clamp(72px, 14vw, 140px);
      opacity: 0.18;
    }
      .work.is-active::before{
      transform: translateX(-50%) translateY(var(--wm-scroll, 0px));
    }
    .work--odd,
    .work--even,
    #mokkou,
    #tekko,
    #kumitate{
      --wm-x: 0px;
      --wm-in: 0px;
    }
    .work__text{
      padding-left: 30px;
    }
    .work__text::before{
      top: 78px;
    }
    .work__text.is-active::before{
      height: calc(100% - 78px);
    }
    .work__text .work__lead{
      margin: 16px 0 28px;
    }
  /* process */
    .process-head{
    margin-bottom: 56px;
    }
    .process-panel{
    max-width: 100%;
    padding: 56px 40px;
    }
    .process{
    padding: 100px 0;
    }
    .process-nav{
    gap: 34px;
    margin-bottom: 60px
    }
    .process-panel{
    max-width: 86%;
    margin: 0 auto;
    padding: 70px 36px 50px;
    background: #f8f8f8;
    }
    .process-panel h3{
    margin-top: 0;
    margin: 28px 0 28px;
    }
    .process-panel p{
      margin-top: 12px !important;
    }
   /* about */
    .about-profile-wrap{
    width: calc(100% - 64px);
    gap: 32px;
    }
    .about__photo{
    margin-top: 20px;
    }
    .about-profile{
    padding: 0 30px;
    }
    .profile-row{
    grid-template-columns: 150px 1fr;
    padding: 24px 0;
    }
    .history-card{
    flex: 0 0 50%;
    min-width: 50%;
    }
  .about__greetingBody{
    width: min(100%, 820px);
    margin: 0 auto;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 56px;
  }
  .about__president{
    width: 180px;
    margin: 0;
    justify-self: center;
  }
  .about__greetingText{
    min-width: 0;
    width: 100%;
    max-width: 520px;
    justify-self: center;
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 2;
  }
      /* aboutページの見出し左位置を統一 */
  .about__greeting .section-head,
  .access .section-head{
    padding-left: 32px;
  }
  .about__greeting .section-head .section-bg-text,
  .access .section-head .section-bg-text{
    left: 40px;
  }
  /* access */
    .access__maps{
    gap: 20px;
    }
    .access__item iframe{
      height: 300px;
    }
  /* contact */
    .contact-area{
    padding: 70px 60px;
    }
    .contact-section{
    padding: 90px 0 24px;
    }
    .contact-area{
    width: calc(100% - 40px);
    padding: 64px 40px 56px;
    }
    .contact-form__row{
    grid-template-columns: 180px minmax(0, 1fr);
    column-gap: 28px;
    }
    .submit-button{
    width: 280px !important;
    }
  /* footer */
    .footer_nav{
      font-size: 13px;
    }
}
/* ---------- worksスライダー鉄工組立縮む値境目の補正 ---------- */
@media (min-width: 901px) and (max-width: 1080px){
  .work,
  .work--odd,
  .work--even{
    grid-template-columns: minmax(280px, 420px) minmax(320px, 1fr);
    column-gap: 24px;
    align-items: start;
  }
  .work--odd{
    grid-template-areas:
      "title main"
      "text  main";
  }
  .work--even{
    grid-template-columns: minmax(320px, 1fr) minmax(280px, 420px);
    grid-template-areas:
      "main title"
      "main text";
  }
  .work__main{
    width: 100%;
    max-width: 420px;
  }
  .work__slider{
    width: 100%;
    max-width: 420px;
  }
  .work__text{
    max-width: 100%;
  }
  .sub-hero__content,
  .sub-hero__image{
  height: 100%;
  min-height: 0;
  }
  .sub-hero__overlay{
    left: 34px;
    right: 28px;
    bottom: 58px;
    max-width: 520px;
  }
  .sub-hero__title{
    font-size: clamp(2.4rem, 5.2vw, 3.4rem);
    line-height: 1.08;
    margin: 0 0 16px;
  }
  .sub-hero__lead{
    font-size: 0.95rem;
    line-height: 1.8;
  }
    .work--dept-kv-reverse .work__content{
    grid-template-columns: 400px 320px;
    column-gap: 36px;
  }

  .work--dept-kv-reverse .work__main{
    max-width: 400px;
  }

  .work--dept-kv-reverse .work__text{
    max-width: 320px;
    margin-right: 0;
  }
  #tosou .work__content{
    grid-template-columns: 400px 500px;
    column-gap: 0;
}
}
/* ホームの工場案内・会社概要リンク */
@media screen and (max-width: 900px){
  
  .top-feature-links{
    padding: 80px 16px;
  }
  .top-feature-links__inner{
    grid-template-columns: 1fr;
    gap: 24px;
    width: min(560px, 100%);
  }
  .feature-card{
    min-height: auto;
    padding: 24px 20px 26px;
  }
  .feature-card__title{
    margin-bottom: 20px;
    font-size: 30px;
  }
  .feature-card__body p{
    font-size: 12px;
    line-height: 2;
  }
    .sub-hero__inner{
  width: calc(100% - 40px);
  height: clamp(360px, 46vw, 460px);
  }
  /* 工場案内works */
  /* 外側 */
  .work--mokko-kv,
  .work--dept-kv,
  .work--dept-kv-reverse{
    padding-left: 28px;
    padding-right: 28px;
  }

  /* ===== 通常版（木工・塗装） ===== */
  .work--mokko-kv .work__content,
  .work--dept-kv:not(.work--dept-kv-reverse) .work__content{
    display: grid ;
    grid-template-columns: 0.9fr 1fr ;
    column-gap: 26px ;
    align-items: start ;
  }

  .work--mokko-kv .work__text,
  .work--dept-kv:not(.work--dept-kv-reverse) .work__text{
    grid-column: 1 ;
    width: 100% ;
    max-width: none ;
    margin-top: 18px ;
    transform: none ;
    padding: 0 ;
  }

  .work--mokko-kv .work__main,
  .work--dept-kv:not(.work--dept-kv-reverse) .work__main{
    grid-column: 2 ;
    width: 100% ;
    max-width: 420px ;
    margin: 0 ;
    justify-self: end ;
  }

  .work--mokko-kv .work__slider,
  .work--dept-kv:not(.work--dept-kv-reverse) .work__slider{
    max-width: 420px ;
  }

  /* ===== 反転版（鉄工・組立） ===== */
  .work--dept-kv-reverse .work__content{
    display: grid ;
    grid-template-columns: 1fr 0.9fr ;
    column-gap: 26px ;
    align-items: start ;
  }

  .work--dept-kv-reverse .work__main{
    grid-column: 1 ;
    width: 100% ;
    max-width: 420px ;
    margin: 0 ;
    justify-self: start ;
    align-self: start ;
  }

  .work--dept-kv-reverse .work__text{
    grid-column: 2 ;
    width: 100% ;
    max-width: none ;
    margin-top: 18px ;
    transform: none ; /* ← 40px下げを打ち消す */
    padding: 0 ;
    justify-self: end ;
  }

  /* 共通 */
  .work__body{
    width: 100% ;
    max-width: none ;
  }
    /* ヒーロー下の余白を詰める */
  .work__hero{
    margin-bottom: 5px ;
  }
  /* セクション上の余白を詰める */
  .work__content{
    margin-top: 0 ;
  }
  /* 念のため最初の画像も */
  .work__main{
    margin-top: 0 ;
  }
  .work__content{
    align-items: stretch ;
  }
  .work__main{
    height: 100% ;
    align-self: stretch ;
  }
  .work__slider,
  .work__photo{
    height: 100% ;
  }
  .work__photo img,
  .work__slide img{
    width: 100% ;
    height: 100% ;
    object-fit: cover ;
    display: block;
  }
  .work__accent{
    width: 100% ;
    max-width: 320px ;
    margin-top: 20px ;
  }
}
@media(max-width:834px) {
    .contact-bg {
        margin: 50px auto 0;
        padding: 50px 0;
    }
    .contact-area {
        margin: 50px auto;
        padding: 50px 20px;
    }
    .check-box label {
        width: 100%;
    }
    .input-area {
        width: 100%;
        height: 30px;
    }
    .table-list {
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
    .table-list th {
        font-size: 12px;
        width: 200px;
        margin-bottom: 10px;
    }
    .table-list td {
        font-size: 12px;
    }
    .table-list td {
        width: 100%;
    }
    .contact-message {
        font-size: 13px;
    }
    .contact-area .text {
        font-size: 13px;
    }
}
  @media screen and (min-width: 800px) and (max-width: 900px){
  /* ---------- tablet---------- */
  .sub-hero__inner{
  width: calc(100% - 40px);
  height: clamp(420px, 58vw, 500px);
  }
  .sub-hero__content,
  .sub-hero__image{
  height: 100%;
  min-height: 0;
  }
  .sub-hero__overlay{
    left: 34px;
    right: 28px;
    bottom: 58px;
    max-width: 520px;
  }
  .sub-hero__title{
    font-size: clamp(2.4rem, 5.2vw, 3.4rem);
    line-height: 1.08;
    margin: 0 0 16px;
  }
  .sub-hero__lead{
    font-size: 0.95rem;
    line-height: 1.8;
  }

  #tosou .work__text{
    justify-content: flex-start ;
    min-height: auto ;
    gap: 16px ;
  }
  #tosou .work__accent{
    margin: 0 ;
  }
 .accent__cols{
    grid-template-columns: 1fr ;
    gap: 16px;
  }
  .accent__col h3{
    text-align: left;
  }
  .work__accent{
    font-size: 10px;
  }
  #tosou .accent__col h3{
    margin: 0 0 10px ;
    text-align: left ;
  }
  #tosou .accent__col ul{
    column-count: 1 ; 
    list-style: disc outside ;
    padding-left: 1.4em ;
    margin: 0 ;
    text-align: left ;
  }
  #tosou .accent__col li{
    break-inside: avoid ;
    margin-bottom: 8px ;
    text-align: left ;
    padding-left: 1px !important;
  }
  #accent-tosou .accent__col h3{
  transform: translateX(20px);
}
  #accent-tosou .accent__col li::before{
  margin-left: -2px;
}
  .work__body{
    font-size: 12px ;
    line-height: 1.95 ;
  }
  .work__accent{
    font-size: 12px ;
    padding: 20px 20px
  }
  .work__accent li{
    line-height: 1.8 ;
  }
  .accent__col h3{
    font-size: 13px ;
    line-height: 1.4 ;
  }
  .work--mokko-kv .work__accent ul,
  #tosou .work__accent ul,
  #kumitate .work__accent ul{
  gap: 0 20px !important;
  }

  .work--mokko-kv .work__accent li,
  #tosou .work__accent li,
  #kumitate .work__accent li{
  gap: 8px !important;
font-size: 11px !important;
}
}
@media screen and (min-width: 745px) and (max-width: 900px){
  .work__hero{
    height: 240px ;
    margin-bottom: 8px ;
  }
  .work__bg{
    height: 200px ;
  }
  .work__title{
    top: 94px ;
  }
  .work__heroBadge{
    top: 80px ;
  }
  .work__heroPanel{
    top: 128px ;
    height: 72px ;
  }
  .work__lead{
    top: 190px ;
  }
.work--mokko-kv .work__bg img{
  object-position: center 23% ;
}
}
/* =========================
   3-1) Tablet narrow
   768px - 860px
   ※必要なら使う。表・プロセスなど崩れやすい帯だけ
========================= */
@media (min-width: 768px) and (max-width: 860px){
  /* sub hero */
  .sub-hero__inner{
    height: clamp(440px, 50vh, 600px);
  }
  .sub-hero__overlay{
    left: 32px;
    right: 32px;
    bottom: 48px;
    max-width: 520px;
  }
  .sub-hero__title{
    font-size: clamp(30px, 5.2vw, 45px);
    line-height: 1.08;
    margin-bottom: 10px;
  }
  .sub-hero__lead{
    font-size: 14px;
    line-height: 1.8;
  }
  /* process */
  .process-nav{
    justify-content: center;
    gap: 28px;
  }
  .process-tab{
    flex: 0 0 auto;
    min-width: 60px;
    align-items: flex-start;
  }
  .tab-label{
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
  }
  .process-panel{
    max-width: 680px;
    margin: 0 auto;
    padding: 36px 32px;
  }
  /* about */
  .about-profile-wrap{
    grid-template-columns: 220px 1fr;
    gap: 28px;
  }
  .about-profile{
    padding: 0 24px;
  }
  .profile-row{
    grid-template-columns: 130px 1fr;
    gap: 18px;
    padding: 22px 0;
  }
  .profile-row dt{
    font-size: 13px;
    line-height: 1.8;
  }
  .profile-row dd{
    font-size: 14px;
    line-height: 1.8;
  }
  .about__greetingBody{
    width: min(100%, 760px);
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 44px;
  }
  .about__president{
    width: 170px;
  }
  .about__greetingText{
    max-width: 460px;
    justify-self: center;
    font-size: 14px;
    line-height: 1.95;
  }
  .about__greetingText p{
    line-height: 1.95;
  }
/* contact */
  .contact-bg {
      margin: 50px auto 0;
      padding: 50px 0;
  }
  .contact-area{
  width: calc(100% - 24px);
  padding: 46px 20px 40px;
  margin: 50px auto;
  padding: 50px 20px;
  }
  .check-box label {
      width: 100%;
  }
  .input-area {
      width: 100%;
      height: 42px;
  }
  .table-list {
      flex-wrap: wrap;
      margin-bottom: 20px;
  }
  .table-list th {
      font-size: 12px;
      width: 200px;
      margin-bottom: 10px;
  }
  .table-list td {
      font-size: 12px;
  }
  .table-list td {
      width: 100%;
  }
  .contact-message {
      font-size: 13px;
  }
  .contact-area .text {
        font-size: 13px;
    }
  .contact-message{
    font-size: 13px;
    line-height: 2;
  }
  .message-notice{
    font-size: 12px;
  }
  .contact-inner{
    margin-top: 32px;
  }
  .contact-form__row{
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 10px;
    padding: 18px 0;
  }
  .contact-form__head label{
    padding-top: 0;
    font-size: 12px;
  }
  .contact-form textarea{
    width: 100%;
    box-sizing: border-box;
    min-height: 150px;
  }
  .submit-button{
    min-width: 0;
    height: 48px;
    font-size: 12px;
  }
}

/* =========================
   3-2) Tablet wide
   901px - 1024px
   ※必要なら使う。タブレット大きめだけ微調整
========================= */
@media (min-width: 901px) and (max-width: 1024px){

  /* main visual */
  .sub-hero__inner{
    height: clamp(460px, 58vh, 620px);
  }
  .sub-hero__overlay{
    left: 32px;
    right: 32px;
    bottom: 48px;
    max-width: 520px;
  }
  .sub-hero__title{
    font-size: clamp(30px, 5.2vw, 45px);
    line-height: 1.08;
    margin-bottom: 10px;
  }
  .sub-hero__lead{
    font-size: 14px;
    line-height: 1.8;
  }
}
  /* process */

  /* works */
/*works accentの二列化やめる*/
@media (min-width: 768px) and (max-width: 799px){

  .work__accent ul,
  #tekko .work__accent ul,
  #accent-tosou .accent__cols{
    grid-template-columns: 1fr;
  }
  #accent-tosou .accent__cols{
    gap: 16px 0;
  }
  /*sabhero隙間ズレ*/
 .sub-hero__title{
    font-size: clamp(28px, 4.2vw, 36px);
  }
  .sub-hero__overlay{
    left: 32px;
    right: 32px;
    bottom: 64px;
    max-width: 480px;
  }
  .sub-hero__label{
    padding: 5px 20px 32px;
  }
}
/* =========================
   4) Mobile large / small tablet bridge
   700px - 767px
   ※744px付近の補正専用
========================= */
@media (min-width: 700px) and (max-width: 767px){

  /* sub hero */
.work__heroBadge{
  top: 115px;
}
 .sub-hero__title{
    font-size: clamp(25px, 4.2vw, 28px);
  }
  /* works */

.work--dept-kv + .work--dept-kv,
.work--dept-kv + .work--mokko-kv,
.work--mokko-kv + .work--dept-kv{
margin-top: 0 ;
}
.work__heroPanel{
  width: 300px;
}
#tekko{
margin-top: 200px ;
}
#tosou{
margin-top: 100px ;
}
#kumitate{
margin-top: 250px ;
}
.work:last-child{
margin-bottom: 0;
}
.work__body{
font-size: 11px ;
line-height: 1.75 ;
}
.work__accent{
font-size: 11px ;
padding: 28px 20px;
margin-top: 14px ;
}
.work__accent h2{
font-size: 15px ;
margin-bottom: 8px ;
}
.accent__col h3{
font-size: 14px ;
margin-bottom: 6px ;
line-height: 1.35 ;
}
.work__accent li{
margin-bottom: 4px ;
line-height: 1.6 ;
}
.accent__cols{
gap: 12px ;
}
#tosou .accent__cols{
grid-template-columns: 1fr !important;
gap: 16px ;
}
#accent-tosou .accent__col h3{
  margin: 0 0 8px 15px !important;
}
#accent-tosou .accent__col ul{
  grid-template-columns: 1fr ;
}
#accent-tosou .accent__col li{
  padding: 6px 0 6px 10px ;
}
#tosou + .work--dept-kv{
  margin-top: 120px;
}
  /* スライダー位置調整 */
  /* 木工 */
  #mokkou .work__slider img.pos-mokko-1{
    object-position: 80% center;
  }
  #mokkou .work__slider img.pos-mokko-2{
    object-position: 60% center ;
  }
  #mokkou .work__slider img.pos-mokko-4{
    object-position: 80% center ;
  }
  /* 鉄工 */
  #tekko .work__slider img.pos-tekko-1{
    object-position: 35% center ;
  }
  #tekko .work__slider img.pos-tekko-2{
    object-position: 70% center ;
  }
  #tekko .work__slider img.pos-tekko-4{
    object-position: 70% center; 
  }
  /* 塗装 */
  #tosou .work__slider img.pos-tosou-1{
    object-position: 70% center ;
  }
   #tosou .work__slider img.pos-tosou-2{
    object-position: 70% 90% ;
  }
  #tosou .work__slider img.pos-tosou-3{
    object-position: 80% center ;
  }
  /* process */
  .process-panel{
    max-width: 640px;
  }
  /* about */
.history-card{
    padding: 22px 14px 24px;
  }
  .history-card__dot{
    width: 260px;
    max-width: none;
    margin: 0 auto 18px;
    position: relative;
    height: 12px;
    background: none !important;
    border-radius: 0 !important;
  }
 .history-card__dot::before{
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #17308d;
    transform: translateY(-50%);
  }
  /* 横線 */
  .history-card__dot::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 18px;
    width: 44px;
    height: 1px;
    background: rgba(0, 0, 0, 0.22);
    transform: translateY(-50%);
  }
  .history-card__year,
  .history-card__month,
  .history-card__body{
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }
  .history-card__year{
    margin-bottom: 4px;
  }
  .history-card__month{
    margin-bottom: 14px;
  }
  .history-card__body{
    margin-top: 0;
    line-height: 1.85;
  }
   .history-card{
    flex: 0 0 48% !important;
    min-width: 48% !important;
  }
  .history-slider__track{
    display: flex;
    flex-wrap: nowrap;
    gap: 0 !important;
    column-gap: 0 !important;
    justify-content: space-between;
  }
  .about-profile-wrap{
    width: calc(100% - 64px);
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .about__photo img{
    width: 100%;
    max-height: 200px;
    object-fit: cover;
  }
  .about-visual,
  .about-inner{
    width: 100%;
  
  }
  .about-profile{
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 0 24px;
  }
  .profile-row{
    padding: 14px 0;
    gap: 6px;
  }
  .profile-row dt{
    font-size: 12px;
    margin-bottom: 2px;
  }
  .profile-row dd{
    font-size: 14px;
    line-height: 1.8;
  }
  .about__greetingText{
    max-width: 75ch;
    margin: 0 auto;
  }
  .about__greetingText p{
    line-height: 2;
  }
  .about-history__inner,
  .about-profile-wrap,
  .about__greeting,
  .access{
    width: calc(100% - 64px);
    margin-left: auto;
    margin-right: auto;
  }
  .about__greeting,
  .access{
    padding-inline: 0;
  }
  .about__titlewrap,
  .about__greeting > .about__titlewrap.section-head,
  .access > .about__titlewrap.section-head{
    margin-left: 0;
    padding-left: 0;
  }
  /* contact */
  /* footer */
.footer_nav{
 font-size: 13px;
}
}
/* =========================
   5) Mobile
   699px and below
   ※スマホ本体
========================= */
@media (max-width: 699px){

  /* loader */

  /* header */
  .header{
  padding: 0 14px;
}
  .spNav__close{
    top: 18px;
    left: 18px;
    padding: 10px 16px;
  }

  .spNav__list{
    gap: 24px;
  }

  .spNav__list a{
    font-size: 16px;
    line-height: 1.4;
  }
  /* main visual */
    .mv_slide{
    object-position: 40% 35%;
  }
  .mv_slide--2{
    object-position: 60% center;
  }
  .mv_slide--3{
    object-position: 20% center;
  }
  .mv_slide--4{
  object-position: 21% center;
  }
    .mv_slide--5{
  object-position: 35% center;
  }
  .main-visual__message{
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(72vw, 260px);
  height: 420px;
  }
  .mv_copy{
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: clamp(28px, 8vw, 34px);
  }
  .mv_texts{
  position: absolute;
  top: 280px;
  left: 20px;
  }
  .top-intro__logo{
    display: none;
  }
    .top-intro{
    padding: 40px 16px 56px;
  }
  .top-intro__layout{
    grid-template-columns: 1fr;
    row-gap: 20px;
  }
  .top-intro__logo{
    justify-content: flex-start;
    transform: none;
  }
  .top-intro__logo img{
    max-width: 180px;
  }
  .top-intro__lead{
    margin: 0 0 28px;
    font-size: 11px;
    line-height: 1.8;
  }
  .top-intro__photo{
    width: 100%;
  }
  .top-intro__content{
    margin-top: 0;
  }
  .feature-card__body{
    width: min(100%, 240px);
    text-align: left;
  }
  .feature-card__body p{
    text-align: left;
  }
  /* sub hero */
  .sub-hero__inner{
    width: 100%;
    grid-template-columns: 88px 1fr; /* 左に細い青帯を残す */
    column-gap: 0; 
    height: 460px;
    bottom: 52px;
  }
  .sub-hero__content,
  .sub-hero__image{
    height: 470px;   /* 少し高さを詰める */
    min-height: 470px;
  }
  .sub-hero__content{
    background: #243b7f;
  }
  .sub-hero__image{
      margin: 0;
    }
  .sub-hero__image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
  }
  .sub-hero__overlay{
    left: 28px;
    right: 18px;
    bottom: 56px;
    max-width: none;
  }
  .sub-hero__title{
    font-size: clamp(2.1rem, 8.8vw, 3rem);
    line-height: 1.08;
    margin: 0 0 20px;
  }
  .sub-hero__lead{
    font-size: 0.8rem;
    line-height: 1.8;
  }
  .sub-hero__label{
    width: 100%;
    padding: 28px 16px 22px;
  }
  .sub-hero__label-en{
    margin: 0;
    font-size: clamp(2rem, 8vw, 2.6rem);
    line-height: 1.1;
  }
  .sub-hero__label-ja{
    margin: 10px 0 0;
  }
  .sub-hero__label::after{
    height: 34px;
    margin: 16px auto 0;
  }
  /* 透け文字設定 */
.about .section-bg-text{
  color: rgba(0, 0, 0, 0.012);
}
  /* portfolio */
.case-portfolio{
  padding: 56px 0 56px;
}
.case-portfolio__lead{
  margin: 16px 0 24px;
  font-size: 12px;
  line-height: 1.9;
}
.case-grid{
  grid-template-columns: 1fr;
  gap: 36px;
}
.case-card__body{
  padding-top: 12px;
}

.case-card__meta{
  margin: 0 0 6px;
}
.case-card__image{
  aspect-ratio: 4 / 5;
}
.case-card__title{
  font-size: 20px;
  line-height: 1.5;
}
.process{
  padding: 80px 0;
}
.process-inner{
  width: min(100%, calc(100% - 32px));
}
.process-head{
  margin-bottom: 44px;
}
.process .section-head{
  margin-bottom: 28px;
}
.process-title{
  font-size: 28px;
}
.process-bg-text{
  top: 14px;
  font-size: 54px;
}
.process-nav{
  gap: 12px;
  margin-bottom: 44px;
  padding-bottom: 18px;
  justify-content: center;
  gap: 18px;
  flex-wrap: nowrap;
}
.process-tab{
  flex: 0 0 auto;
  min-width: 56px;
  padding-bottom: 10px;
}
.tab-num{
  font-size: 12px;
  margin-bottom: 5px;
}
.tab-label{
  font-size: 13px;
  letter-spacing: 0.04em;
}
.process-tab.is-active::after{
  width: 22px;
  bottom: -13px;
}
.process-panels{
  padding-inline: 12px;
}
.process-panel{
  width: 100%;
  max-width: 640px;
  height: auto;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 36px 50px;
  min-height: 240px;
}
.process-panel h3,
.process-panel p{
  width: 100%;
  margin-left: 0;
 margin-right: 0;
}
.process-panel h3{
  width: min(100%, 30em);
  margin-left: 0;
  margin-right: auto;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-align: left;
}
.process-panel p{
  width: 100%;
  margin: 0;
  line-height: 1.95;
  font-size: 12px;
}
  /* works */
  .sub-hero--works .sub-hero__image img{
    object-position: 18% center;
  }
  .works{
    padding-top: 90px;
    padding-bottom: 90px;
  }
  .work{
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "main"
      "text";
    row-gap: 24px;
    padding-inline: 16px;
    --wm-x: 0vw;
  }
  .work + .work{
    margin-top: 88px;
  }
   .work::before{
    right: auto;
    transform: translateX(-50%);
    font-size: clamp(40px, 14vw, 72px);
    opacity: .11;
    top: 4%;
  }
    .work__hero{
    height: 240px ;
    margin-bottom: 8px ;
  }
  .work--mokko::before{
    font-size: clamp(38px, 16vw, 56px);
    left: 73%;
    right: auto;
  }
  .work--tekko::before{
    font-size: clamp(38px, 16vw, 54px);
    left: 14%;
    right: auto;
  }
  .work--paint::before{
    left: 50%;
    right: auto;
  }
  .work--kumitate::before {
    left: 26%;
    right: auto;
  }
  .work__title{
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 48px;
    margin-bottom: 10px;
  }
  .work__title img{
    width: clamp(140px, 42vw, 190px);
  }
  .work__main{
    width: 100%;
    max-width: 100%;
    justify-self: center;
  }
  .work__slider{
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 4.6;
  }
  .work__slider img{
    object-position: center 30%;
  }

  .work__text .work__lead{
   font-size: clamp(14px, 4vw, 20px);
    line-height: 1.7;
    margin: 0 0 20px;
  }
  .work__body{
    padding-left: 20px;
    font-size: 14px;
    line-height: 2;
  }
  .work__bg{
    height: 180px ;
  }
  .work__title{
    top: 85px ;
  }
  .work__heroBadge{
    top: 80px ;
  }
  .work__heroPanel{
    top: 128px ;
    height: 72px ;
    width: 80% ;
  }
  .work__lead{
    top: 175px ;
  }
   /* ---------- worksテキスト中心・フォントサイズ変化調整 ---------- */
  
  .work--dept-kv,
  .work--mokko-kv{
    padding: 0 16px;
  }

  .work--dept-kv + .work--dept-kv,
  .work--dept-kv + .work--mokko-kv,
  .work--mokko-kv + .work--dept-kv{
    margin-top: 96px;
  }

  /* ===== ヒーロー部 ===== */
  .work--dept-kv .work__hero,
  .work--mokko-kv .work__hero{
    height: 200px;          /* ③ 全体を少し詰める */
    margin-bottom: 18px;
  }

  .work--dept-kv .work__bg,
  .work--mokko-kv .work__bg{
    height: 180px;
  }

  .work--dept-kv .work__heroBadge,
  .work--mokko-kv .work__heroBadge{
    top: 88px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 72px; 
  }

  /* ① タイトルずれ修正 */
  .work--dept-kv .work__title,
  .work--mokko-kv .work__title{
    top:100px;
    left: 50%;
    transform: translateX(-50%) !important;
    width: auto;
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .work--dept-kv .work__title img,
  .work--mokko-kv .work__title img{
    width: 118px;
    margin: 0 auto;
    display: block;
  }

  .work--dept-kv .work__heroPanel,
  .work--mokko-kv .work__heroPanel{
    top: 148px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    height: 64px;
  }

  .work--dept-kv .work__lead,
  .work--mokko-kv .work__lead{
    top: 180px;
    left: 50%;
    transform: translateX(-50%) !important;
    width: calc(100% - 56px);
    max-width: 320px;
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
  }

  /* ===== 下段：画像→本文→青箱 ===== */
  .work--dept-kv .work__content,
  .work--mokko-kv .work__content,
  .work--dept-kv-reverse .work__content{
    display: flex ;
    flex-direction: column ;
    align-items: center ;
    gap: 24px ;
    padding-left: 0 ;
    padding-right: 0 ;
  }

  .work--dept-kv .work__main,
  .work--mokko-kv .work__main,
  .work--dept-kv-reverse .work__main{
    order: 1;
    width: 100% ;
    max-width: 320px ;
    margin: 0 auto ;
    justify-self: center ;
  }

  .work--dept-kv .work__slider,
  .work--mokko-kv .work__slider{
    max-width: 320px ;
  }

  .work--dept-kv .work__text,
  .work--mokko-kv .work__text,
  .work--dept-kv-reverse .work__text{
    order: 2;
    width: 100% ;
    max-width: 320px ;
    margin: 0 auto ;
    margin-top: 20px ;
    padding: 0 ;
    display: flex ;
    flex-direction: column ;
    gap: 24px ;
    transform: none ;
    justify-self: center ;
  }

  .work--dept-kv .work__body,
  .work--mokko-kv .work__body{
    order: 1;
    width: 100% ;
    padding-left: 14px ;
    font-size: 12px ;
    line-height: 2 ;
  }
  .work--dept-kv .work__accent,
  .work--mokko-kv .work__accent{
    order: 2;
    width: 100% ;
    max-width: 320px ;
    min-height: 200px ;
    padding: 18px 16px ;
  }
  .work--dept-kv .work__content,
  .work--mokko-kv .work__content{
    gap: 20px ;
  }
  .work__main{
    margin-bottom: 0 ;
  }
  /* 塗装だけ画像～テキスト間を詰める */

  #tosou .work__slider{
    width: 100% ;
    max-width: 320px ;
  }

  #tosou .work__body{
    display: block ;
    width: 100% ;
    max-width: none ;
    margin: 0 0 24px ;
    padding-left: 14px ;
    font-size: 12px ;
    line-height: 2 ;
    writing-mode: horizontal-tb ;
  }
  #tosou .work__accent{
    display: block ;
    width: 100% ;
    max-width: 320px ;
    min-height: 220px ;
    margin: 0 auto ;
  } 
 #tosou .work__content{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  #tosou .work__main{
    width: 100%;
    max-width: 360px;
    margin: 0 auto 24px !important;
  }
  #tosou .work__slider{
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  #tosou .work__slider img{
    object-position: center center;
  }
  #tosou .work__text{
  display: block ;
  width: 100% ;
  max-width: 320px ;
  margin: 0 auto ;
  padding: 0 ;
  transform: none ;
  min-height: auto ;
  order: 2;
  }
  .works-marquee{
    margin-top: 80px ;
  }
 /* ③ マルキー画像を小さく */
  .works-marquee__track{
    animation-duration: 75s ;
  }
  .works-marquee__item{
    width: 140px ;
  }
  .works-marquee__list{
    gap: 3px ;
  }
  .works-marquee__list + .works-marquee__list{
    margin-left: 3px ;
  }
 
  /* process */

  /* about */
.about{
    padding: 80px 16px;
  }
  /* ----- 沿革 ----- */
  .about-history{
    padding: 86px 0 20px;
  }
  .about-history__inner{
    width: calc(100% - 32px);
  }
  .history-slider__viewport{
    overflow: hidden;
  }
  .history-card{
    flex: 0 0 100%;
    min-width: 100%;
    padding: 20px 18px 28px;
    min-height: auto;
    border-right: none;
  }
  .history-card__dot::after{
    width: 42px;
  }
  .history-card__year{
    font-size: 32px;
  }
  .history-card__month{
    font-size: 13px;
    margin-bottom: 20px;
  }
  .history-card__body{
    font-size: 14px;
    line-height: 1.9;
    max-width: none;
  }
  /* ----- 会社概要 ----- */
  .about-profile-wrap{
    display: block;
    width: calc(100% - 32px);
    margin: 0 auto;
  }
  .about-visual{
    display: block;
    margin-bottom: 20px;
  }
  .about__titlewrap{
    position: relative;
    margin-bottom: 14px;
  }
  .about__title{
    margin: 0;
    font-size: 28px;
    line-height: 1.3;
  }
  .about .section-bg-text{
    top: 12px;
    left: 0;
    font-size: 60px;
    line-height: 1;
  }
  .about__photo{
    display: none;
  }
  .about-inner{
    width: 100%;
    display: block;
    grid-column: auto;
    grid-row: auto;
  }
  .about-profile{
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
  }
  .profile-row{
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }
  .profile-row dt{
    font-size: 12px;
  }
  .profile-row dd{
    font-size: 14px;
    line-height: 1.9;
  }

  /* ----- ご挨拶 / アクセス見出し共通 ----- */
  .about__greeting,
  .access{
    padding-inline: 16px;
  }
  .about__greeting{
    grid-template-columns: 1fr;
    margin-bottom: 24px;
    row-gap: 16px;
    max-width: 100%;
  }
  .about__greeting > .about__titlewrap.section-head,
  .access > .about__titlewrap.section-head{
    display: block;
    width: 100%;
    margin: 0 0 20px 0;
    padding: 0;
    position: relative;
    left: 0;
    transform: none;
    text-align: left;
  }
  .about__greeting > .about__titlewrap.section-head .about__title,
  .access > .about__titlewrap.section-head .about__title{
    margin: 0;
    position: relative;
    left: 0;
    transform: none;
    text-align: left;
  }
  .about__greeting > .about__titlewrap.section-head .section-bg-text,
  .access > .about__titlewrap.section-head .section-bg-text{
    left: 0;
    top: 10px;
    transform: none;
    font-size: 50px;
    white-space: nowrap;
  }
  .about__greetingBody{
    display: block;
    transform: none;
  }
  .about__president{
    width: min(100%, 220px);
    margin: 0 auto;
  }
  .about__greetingText{
    max-width: 34ch;
    margin: 0 auto;
  }
  .about__greetingText p{
    line-height: 2.1;
  }
  .about__greetingText p:last-child{
    margin-bottom: 0;
  }
  
  /* access */
  .access{
    margin-top: 0;
    padding-top: 24px;
  }
   .access__maps{
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .access__item iframe{
    width: 100%;
    height: 240px;
  }

  /* contact */
    .sub-hero__contact-box{
    margin-top: 18px;
  }
  .sub-hero__contact-btn{
    min-width: 0;
    width: 100%;
    max-width: 200px;
    font-size: 13px;
    padding: 12px 18px;
  }
 .contact-confirm__inner{
    width: calc(100% - 24px);
    padding: 44px 20px;
  }
  .confirm-row{
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 0;
  }
  .confirm-actions{
    flex-direction: column;
  }
  .confirm-btn{
    width: 100%;
    min-width: 0;
  }
  .contact-confirm__lead {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
  }
  .privacy-box__body {
    font-size: 13px;
  }
  .privacy-box__body h2{
    font-size: 16px;
  }
  .privacy-box__body h3{
    font-size: 14px;
  }
  .confirm-actions{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .confirm-btn{
  width: 260px;
 }
  .contact-confirm{
    padding: 110px 16px 90px;
  }
  .contact-confirm__inner{
    width: min(100%, calc(100% - 8px));
  }
  .contact-confirm .section-head{
    margin-bottom: 26px;
  }
  .contact-confirm .section-title{
    font-size: clamp(26px, 7vw, 38px);
  }
  .contact-confirm .section-bg-text{
    left: 10px;
    top: 10px;
    font-size: clamp(44px, 14vw, 80px);
  }
  .contact-confirm__lead{
    margin-bottom: 28px;
    font-size: 12px;
    line-height: 2;
  }
  .confirm-box{
    margin-bottom: 32px;
    padding: 24px 16px;
  }
  .confirm-box .confirm-row__body{
    max-width: 100%;
    font-size: 11px;
    line-height: 2;
    white-space: normal;
  }
  .confirm-btn{
    min-width: 200px;
    height: 52px;
    font-size: 13px;
  }
  /* footer */
  .footer_nav{
    font-size: 13px;
    }
}
