/*
 * Round Monolith レイアウト・部品（DESIGN.md §2〜§5・_design/TopA.dc.html）
 * トークンは style.css の :root。ブレークポイントは 960px の 1 本。
 */

/* ============================================================
   共通部品
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}

.btn--primary { background: var(--rm-primary); color: var(--rm-white); }
.btn--primary:hover { background: var(--rm-primary-dark); color: var(--rm-white); }
.btn--dark { background: var(--rm-ink); color: var(--rm-white); }
.btn--dark:hover { background: #000; color: var(--rm-white); }
.btn--outline { background: transparent; color: var(--rm-ink); border-color: var(--rm-ink); height: 48px; padding: 0 24px; }
.btn--outline:hover { background: var(--rm-ink); color: var(--rm-white); }
.btn--outline-light { background: transparent; color: var(--rm-white); border-color: rgba(255, 255, 255, .6); height: 48px; padding: 0 24px; font-weight: 500; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: var(--rm-white); border-color: var(--rm-white); }
.btn--lg { height: 56px; padding: 0 30px; font-size: 15px; }
.btn--xl { height: 60px; min-width: 360px; padding: 0 36px; font-size: 15px; }
.btn--block { width: 100%; }

.section__label {
  display: block;
  font-size: 12px;
  color: var(--rm-primary);
  margin-bottom: 12px;
}

.section__label--light { color: var(--rm-primary-light); }

.section__title {
  font-size: 40px;
  line-height: 1.3;
}

.section__title--sm { font-size: 36px; line-height: 1.35; }
.section__title--light { color: var(--rm-white); }

.section__lead {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--rm-sub);
}

.section {
  padding: 96px 0;
  background: var(--rm-white);
}

.section--soft { background: var(--rm-bg-soft); }
.section--tight { padding: 80px 0; }

.section__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--rm-gutter);
}

.section__head { margin-bottom: 44px; }
.section__head--stack { max-width: 820px; margin-bottom: 48px; }
.section__head--stack .section__lead { font-size: 16px; line-height: 2; }

.section__more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ============================================================
   ヘッダー
   ============================================================ */

.site-header {
  position: relative;
  z-index: 50;
  height: var(--rm-header-h);
  background: var(--rm-dark);
  color: var(--rm-white);
}

.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--rm-gutter);
}

.site-logo { margin: 0; }
.site-logo__link { display: flex; align-items: center; gap: 14px; color: inherit; }
.site-logo__link:hover { color: inherit; }
.site-logo__mark { width: 44px; height: 44px; flex-shrink: 0; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.site-logo__sub { font-size: 10px; letter-spacing: .28em; opacity: .8; }
.site-logo__name { font-size: 22px; font-weight: 700; letter-spacing: .02em; }
.site-logo--footer .site-logo__mark { width: 48px; height: 48px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav .nav__list {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav .nav__list > li { position: relative; display: flex; align-items: center; }
.site-nav .nav__list > li > a { color: var(--rm-white); font-size: 14px; font-weight: 500; line-height: 1; padding: 12px 0; }
.site-nav .nav__list > li > a:hover { color: var(--rm-primary-light); }

.nav__toggle {
  width: 24px;
  height: 24px;
  margin-left: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav__toggle span::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}

.is-open > .nav__toggle span::before { transform: rotate(225deg); top: 10px; }

.site-nav .nav__sub,
.site-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 260px;
  margin: 8px 0 0;
  padding: 10px 0;
  list-style: none;
  background: var(--rm-white);
  border: 1px solid var(--rm-line);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(26, 29, 33, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}

.site-nav .nav__sub a,
.site-nav .sub-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--rm-ink);
  font-size: 14px;
}

.site-nav .nav__sub a:hover,
.site-nav .sub-menu a:hover { color: var(--rm-primary); background: var(--rm-bg-soft); }

.site-nav li:hover > .nav__sub,
.site-nav li:hover > .sub-menu,
.site-nav li.is-open > .nav__sub,
.site-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.site-header__cta { height: 44px; padding: 0 22px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle__bar { display: block; width: 24px; height: 2px; background: var(--rm-white); transition: transform .2s, opacity .2s; }
.is-menu-open .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.is-menu-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.is-menu-open .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* スマホメニュー */
.mobile-menu {
  position: fixed;
  inset: var(--rm-header-h) 0 0;
  z-index: 40;
  overflow-y: auto;
  background: var(--rm-dark);
  color: var(--rm-white);
}

.mobile-menu[hidden] { display: none; }
.is-menu-open { overflow: hidden; }
.is-menu-open .site-header--overlay { background: var(--rm-dark); }

.mobile-menu__inner { padding: 24px var(--rm-gutter) 40px; }
.mobile-menu__list,
.mobile-menu__list ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list > li { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.mobile-menu__list a { display: block; padding: 16px 0; color: var(--rm-white); font-size: 16px; font-weight: 500; }
.mobile-menu__group { padding: 16px 0 8px; }
.mobile-menu__label { display: block; font-size: 11px; color: var(--rm-primary-light); margin-bottom: 4px; }
.mobile-menu__group ul a { padding: 10px 0 10px 16px; font-size: 15px; }
.mobile-menu__contact { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; }
.mobile-menu__tel { font-size: 28px; font-weight: 700; color: var(--rm-white); letter-spacing: .02em; }
.mobile-menu__hours { font-size: 12px; color: rgba(255, 255, 255, .7); margin-bottom: 10px; }

/* ============================================================
   下層タイトル帯・パンくず
   ============================================================ */

.page-header {
  background: var(--rm-dark);
  color: var(--rm-white);
}

.page-header__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  max-width: 1440px;
  min-height: 220px;
  margin: 0 auto;
  padding: 48px var(--rm-gutter);
}

.page-header__label { font-size: 12px; color: var(--rm-primary-light); }
.page-header__title { font-size: 40px; line-height: 1.3; color: var(--rm-white); }
.page-header__lead { max-width: 820px; font-size: 15px; color: rgba(255, 255, 255, .82); }

.page-breadcrumbs { background: var(--rm-white); border-bottom: 1px solid var(--rm-line); }
.page-breadcrumbs__inner { max-width: 1440px; margin: 0 auto; padding: 14px var(--rm-gutter); }
.page-breadcrumbs .breadcrumbs { margin: 0; font-size: 12px; }

/* ============================================================
   トップ: ヒーロー
   ============================================================ */

.hero {
  position: relative;
  min-height: 780px;
  background: var(--rm-hero);
  color: var(--rm-white);
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 45%;
  opacity: .72;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(38, 66, 60, .90) 0%, rgba(38, 66, 60, .72) 42%, rgba(38, 66, 60, .18) 100%);
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  background: linear-gradient(180deg, rgba(38, 66, 60, 0) 0%, rgba(38, 66, 60, .62) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 1440px;
  min-height: 780px;
  margin: 0 auto;
  padding: calc(var(--rm-header-h) + 122px) var(--rm-gutter) 44px;
}

.hero__copy { max-width: 760px; }
.hero__label { display: block; font-size: 12px; color: var(--rm-primary-pale); margin-bottom: 26px; }
.hero__title { font-size: 54px; line-height: 1.32; font-weight: 900; letter-spacing: .01em; color: var(--rm-white); }
.hero__text { max-width: 620px; margin-top: 26px; font-size: 17px; line-height: 2; color: rgba(255, 255, 255, .92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .18);
}

.hero__specs li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  background: rgba(24, 46, 41, .58);
}

.hero__spec-label { font-size: 10px; color: var(--rm-primary-light); }
.hero__spec-value { font-size: 22px; font-weight: 700; line-height: 1.4; }
.hero__spec-note { font-size: 12px; opacity: .75; line-height: 1.6; }

/* ============================================================
   トップ: 3つの技術
   ============================================================ */

.tech { padding-top: 104px; }

.tech__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.tech-card {
  display: flex;
  flex-direction: column;
  color: var(--rm-ink);
  background: var(--rm-white);
  border: 1px solid var(--rm-line);
  transition: border-color .2s, transform .2s;
}

.tech-card:hover { color: var(--rm-ink); border-color: var(--rm-primary); transform: translateY(-2px); }
.tech-card__img { width: 100%; height: 260px; object-fit: cover; }
.tech-card__body { display: flex; flex-direction: column; gap: 12px; padding: 28px 28px 32px; }
.tech-card__label { font-size: 11px; color: var(--rm-primary); }
.tech-card__title { font-size: 24px; }
.tech-card__text { font-size: 14px; line-height: 1.9; color: var(--rm-sub); }
.tech-card__more { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--rm-primary); }

/* ============================================================
   トップ: 製作事例
   ============================================================ */

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.work-card {
  display: flex;
  flex-direction: column;
  color: var(--rm-ink);
  background: var(--rm-white);
  transition: transform .2s, box-shadow .2s;
}

.work-card:hover { color: var(--rm-ink); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(26, 29, 33, .08); }
.work-card__img { width: 100%; height: 230px; object-fit: cover; }
.work-card__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 24px; }
.work-card__category { font-size: 11px; font-weight: 700; color: var(--rm-primary); }
.work-card__title { font-size: 18px; font-weight: 700; line-height: 1.5; }
.work-card__note { font-size: 13px; color: var(--rm-sub); }

/* ============================================================
   トップ: 対応範囲
   ============================================================ */

.capability__inner {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.capability__lead { display: flex; flex-direction: column; align-items: flex-start; }
.capability__lead .section__lead { margin-bottom: 24px; }

.spec-table {
  margin: 0;
  border-top: 2px solid var(--rm-ink);
}

.spec-table__row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rm-line);
}

.spec-table dt { font-family: var(--rm-font-disp); font-weight: 700; }
.spec-table dd { margin: 0; color: var(--rm-text); }

/* ============================================================
   トップ: 設備・工場
   ============================================================ */

.factory {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 640px;
  grid-template-rows: 760px;
  height: 760px;
  overflow: hidden;
  background: var(--rm-dark);
  color: var(--rm-white);
}

.factory__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  padding: 96px 64px 96px max(var(--rm-gutter), calc((100% - 1440px) / 2 + var(--rm-gutter)));
}

.factory__text .section__label { margin-bottom: 0; }
.factory__lead { font-size: 15px; color: rgba(255, 255, 255, .8); }

.factory__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  width: 100%;
  margin: 8px 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: rgba(255, 255, 255, .9);
}

.factory__list li { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }

.factory__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 379px);
  gap: 2px;
  height: 760px;
  overflow: hidden;
  background: var(--rm-dark-line);
}

.factory__photos img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }

/* ============================================================
   トップ: 会社案内
   ============================================================ */

.company__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 560px;
  gap: 72px;
  align-items: start;
}

.company__text { display: flex; flex-direction: column; align-items: flex-start; }

.company__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.company__facts li { display: flex; flex-direction: column; gap: 2px; padding: 18px 0; border-top: 2px solid var(--rm-ink); }
.company__fact-label { font-size: 10px; color: var(--rm-muted); }
.company__fact-value { font-size: 26px; font-weight: 700; line-height: 1.3; }
.company__fact-value small { font-size: 14px; font-weight: 500; }
.company__photo { width: 560px; height: 400px; object-fit: cover; }

/* ============================================================
   トップ: お知らせ・FAQ
   ============================================================ */

.info__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}

.info__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.info__title { font-size: 26px; }
.info__more { font-size: 13px; font-weight: 700; }

.info__list { margin: 0; padding: 0; list-style: none; background: var(--rm-white); }
.info__list li + li { border-top: 1px solid var(--rm-line); }
.info__list a,
.info__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 18px 24px; color: var(--rm-ink); font-size: 14px; }
.info__list a:hover { color: var(--rm-primary); }
.info__list time { color: var(--rm-muted); }
.info__list--faq a { grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
.info__q { color: var(--rm-primary); font-weight: 700; }

/* ============================================================
   CTA 帯
   ============================================================ */

.cta {
  margin: 0;
  padding: 104px 0;
  text-align: left;
  background: var(--rm-primary);
  color: var(--rm-white);
  border-radius: 0;
}

.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 64px;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--rm-gutter);
}

.cta__label { display: block; font-size: 12px; color: rgba(255, 255, 255, .8); margin-bottom: 18px; }
.cta__title { margin: 0; font-size: 38px; line-height: 1.35; color: var(--rm-white); }
.cta__text { margin: 18px 0 0; font-size: 15px; color: rgba(255, 255, 255, .9); }

.cta__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px;
  background: var(--rm-white);
  color: var(--rm-ink);
  border-radius: 4px;
}

.cta__panel-label { font-size: 10px; color: var(--rm-primary); }
.cta__tel { display: block; padding: 0; border: 0; font-size: 38px; font-weight: 700; line-height: 1.2; letter-spacing: .02em; color: var(--rm-ink); }
.cta__tel:hover { color: var(--rm-primary); }
.cta__hours { margin-top: -12px; font-size: 13px; color: var(--rm-sub); }
.cta__button { height: 58px; font-size: 15px; }
.cta__note { font-size: 12px; line-height: 1.7; color: var(--rm-sub); }

/* 本文内に自動挿入される CTA（entry__content 末尾）は全幅に広げる */
.entry__content .cta { margin: 56px calc(50% - 50vw) 0; width: 100vw; }

/* ============================================================
   フッター
   ============================================================ */

.site-footer {
  background: var(--rm-dark);
  color: rgba(255, 255, 255, .78);
  border-top: 0;
  font-size: 13px;
  text-align: left;
}

.site-footer__inner { max-width: 1440px; margin: 0 auto; padding: 72px var(--rm-gutter) 32px; }
.site-footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 64px; }
.site-footer__company { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.site-footer__company .site-logo { color: var(--rm-white); }
.site-footer__address { margin: 0; line-height: 1.9; }
.site-footer__map { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--rm-primary-light); }
.site-footer__map:hover { color: var(--rm-white); }

.site-footer__nav { display: grid; grid-template-columns: repeat(3, 200px); gap: 48px; padding-top: 6px; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col a { color: rgba(255, 255, 255, .78); }
.site-footer__col a:hover { color: var(--rm-white); }
.site-footer__heading { font-size: 10px; color: var(--rm-primary-light); }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}

.site-footer__tag { font-size: 10px; }

/* ============================================================
   スマホ（≤960px）
   ============================================================ */

@media (max-width: 960px) {
  .section { padding: 64px 0; }
  .section--tight { padding: 56px 0; }
  .section__title { font-size: 28px; }
  .section__title--sm { font-size: 26px; }
  .section__head { margin-bottom: 28px; }
  .section__head--stack .section__lead { font-size: 15px; line-height: 1.9; }
  .section__more { margin-top: 28px; }
  .btn--xl { min-width: 0; width: 100%; height: 56px; }

  /* ヘッダー */
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-logo__mark { width: 36px; height: 36px; }
  .site-logo__name { font-size: 18px; }
  .site-logo__sub { font-size: 9px; }

  /* タイトル帯 */
  .page-header__inner { min-height: 0; padding: 36px var(--rm-gutter); }
  .page-header__title { font-size: 28px; }

  /* ヒーロー */
  .hero,
  .hero__inner { min-height: 0; }
  .hero__inner { padding: calc(var(--rm-header-h) + 48px) var(--rm-gutter) 32px; gap: 40px; }
  .hero__label { margin-bottom: 16px; font-size: 11px; }
  .hero__title { font-size: 32px; }
  .hero__title br,
  .section__title br { display: none; }
  .hero__text { margin-top: 18px; font-size: 15px; line-height: 1.9; }
  .hero__actions { margin-top: 24px; }
  .hero__actions .btn { width: 100%; }
  .hero__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
  .hero__specs li { padding: 14px 16px; }
  .hero__spec-value { font-size: 17px; }
  .hero__spec-note { font-size: 11px; }

  /* 技術・事例 */
  .tech { padding-top: 64px; }
  .tech__grid,
  .works__grid { grid-template-columns: 1fr; gap: 20px; }
  .tech-card__img { height: 200px; }
  .tech-card__body { padding: 22px 20px 26px; }
  .tech-card__title { font-size: 20px; }
  .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .work-card__img { height: 150px; }
  .work-card__body { padding: 14px 14px 18px; }
  .work-card__title { font-size: 15px; }
  .work-card__note { font-size: 12px; }

  /* 対応範囲 */
  .capability__inner { grid-template-columns: 1fr; gap: 32px; }
  .spec-table__row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .spec-table dd { font-size: 14px; }

  /* 設備 */
  .factory { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; }
  .factory__text { padding: 56px var(--rm-gutter); gap: 16px; }
  .factory__photos { height: auto; grid-template-rows: repeat(2, 160px); }

  /* 会社 */
  .company__inner { grid-template-columns: 1fr; gap: 32px; }
  .company__photo { width: 100%; height: 240px; }
  .company__facts { gap: 12px; }
  .company__fact-value { font-size: 22px; }

  /* お知らせ・FAQ */
  .info__inner { grid-template-columns: 1fr; gap: 40px; }
  .info__title { font-size: 22px; }
  .info__list a,
  .info__row { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; }
  .info__list--faq a { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }

  /* CTA */
  .cta { padding: 64px 0; }
  .cta__inner { grid-template-columns: 1fr; gap: 32px; }
  .cta__title { font-size: 26px; }
  .cta__title br { display: none; }
  .cta__panel { padding: 24px; }
  .cta__tel { font-size: 30px; }
  .entry__content .cta { margin: 40px calc(50% - 50vw) 0; }

  /* フッター */
  .site-footer__inner { padding: 48px var(--rm-gutter) 24px; }
  .site-footer__top { flex-direction: column; gap: 36px; }
  .site-footer__nav { grid-template-columns: 1fr 1fr; gap: 28px; width: 100%; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; margin-top: 36px; }
}

/* ============================================================
   下層ページ共通（page-body / block）
   ============================================================ */

.page-body { background: var(--rm-white); }
.block { padding: 88px 0; }
.block--soft { background: var(--rm-bg-soft); }
.block__inner { max-width: 1440px; margin: 0 auto; padding: 0 var(--rm-gutter); }
.block__inner--narrow { max-width: 1000px; }
.block__inner--split { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 72px; align-items: center; }
.block__photo { width: 100%; height: 420px; object-fit: cover; }
.block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.block__note { margin-top: 20px; font-size: 13px; color: var(--rm-muted); }
.block__more { margin-top: 28px; font-size: 14px; font-weight: 700; }
.block .section__lead { max-width: 820px; margin-bottom: 36px; }
.block .section__title { margin-bottom: 0; }
.block .section__title + .spec-table,
.block .section__title + .steps,
.block .section__title + .faq-list,
.block .section__title + .timeline,
.block .section__title + .tags,
.block .section__title + .gallery,
.block .section__title + .works__grid,
.block .section__title + .table-scroll { margin-top: 36px; }

.spec-table--block { border-top: 2px solid var(--rm-ink); }
.spec-table--compact .spec-table__row { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; font-size: 14px; }

/* 強み（番号付き） */
.points { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rm-ink); }
.points__item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--rm-line); }
.points__num { font-size: 12px; color: var(--rm-primary); padding-top: 6px; }
.points__title { font-size: 20px; margin-bottom: 6px; }
.points__text { font-size: 14px; line-height: 1.9; color: var(--rm-sub); }

/* 工程 */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.steps__item { position: relative; padding: 24px 22px 26px; background: var(--rm-white); border: 1px solid var(--rm-line); border-top: 3px solid var(--rm-primary); }
.steps__num { display: block; font-size: 11px; color: var(--rm-primary); margin-bottom: 10px; }
.steps__title { font-size: 18px; margin-bottom: 8px; }
.steps__text { font-size: 13px; line-height: 1.8; color: var(--rm-sub); }

/* FAQ（テンプレの faq-item を上書き） */
.faq-list--plain { margin: 0; }
.faq-list--plain .faq-item { margin: 0; border: 0; border-bottom: 1px solid var(--rm-line); border-radius: 0; background: transparent; }
.faq-list--plain .faq-item:first-child { border-top: 1px solid var(--rm-ink); }
.faq-list--plain .faq-item__q { padding: 20px 44px 20px 40px; font-family: var(--rm-font-disp); font-size: 16px; }
.faq-list--plain .faq-item__q::before { left: 4px; top: 18px; font-family: var(--rm-font-disp); font-weight: 700; color: var(--rm-primary); }
.faq-list--plain .faq-item__q::after { right: 4px; top: 16px; }
.faq-list--plain .faq-item__a { padding: 0 20px 22px 40px; font-size: 15px; color: var(--rm-text); }
.faq-list--plain .faq-item__a::before { left: 6px; color: var(--rm-primary); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group__title { font-size: 22px; margin-bottom: 16px; }

/* 絞り込み */
.filter { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; padding: 24px 28px; background: var(--rm-bg-soft); }
.filter__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.filter__label { font-size: 10px; color: var(--rm-muted); }
.filter__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.filter__chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--rm-line); border-radius: 999px; background: var(--rm-white); color: var(--rm-ink); font-size: 13px; }
.filter__chip:hover { border-color: var(--rm-primary); color: var(--rm-primary); }
.filter__chip.is-active { background: var(--rm-ink); border-color: var(--rm-ink); color: var(--rm-white); }
.works__grid--archive { margin-bottom: 40px; }
.page-body .pagination { margin: 40px 0 0; }
.page-body .archive__empty { padding: 40px 0; color: var(--rm-sub); }

/* 製作事例 詳細 */
.work-single { padding: 72px 0 0; }
.work-single__inner { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: start; margin-bottom: 56px; }
.work-single__figure { margin: 0; }
.work-single__figure img { width: 100%; height: 520px; object-fit: cover; background: var(--rm-bg-soft); }
.work-single__side { display: flex; flex-direction: column; gap: 24px; }
.work-single__side .spec-table { border-top: 2px solid var(--rm-ink); }
.work-single__content { padding-bottom: 72px; }
.work-single__content:empty { padding-bottom: 24px; }

/* 設備 */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; flex-direction: column; gap: 2px; padding: 24px 0; border-top: 2px solid var(--rm-ink); }
.facts__label { font-size: 10px; color: var(--rm-muted); }
.facts__value { font-size: 34px; font-weight: 700; line-height: 1.3; }
.facts__value small { font-size: 14px; font-weight: 500; }
.facts__note { font-size: 13px; color: var(--rm-sub); }
.eq-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--rm-white); }
.eq-table th, .eq-table td { padding: 14px 16px; border-bottom: 1px solid var(--rm-line); text-align: left; vertical-align: top; }
.eq-table thead th { font-size: 12px; color: var(--rm-muted); border-bottom: 2px solid var(--rm-ink); background: transparent; }
.eq-table tbody th { font-family: var(--rm-font-disp); font-weight: 700; width: 28%; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery img { width: 100%; height: 280px; object-fit: cover; }

/* 会社案内 */
.message { margin-top: 28px; font-size: 16px; line-height: 2.1; color: var(--rm-text); }
.message p + p { margin-top: 12px; }
.message__sign { margin-top: 24px !important; font-family: var(--rm-font-disp); font-weight: 700; text-align: right; }
.timeline { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rm-ink); }
.timeline__item { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rm-line); }
.timeline__date { font-weight: 700; color: var(--rm-primary); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 10px 18px; background: var(--rm-white); border: 1px solid var(--rm-line); font-size: 14px; font-weight: 500; }

/* アクセス */
.access__inner { display: grid; grid-template-columns: 480px minmax(0, 1fr); gap: 56px; align-items: start; }
.access__info { display: flex; flex-direction: column; align-items: flex-start; }
.access__info .spec-table { width: 100%; margin: 28px 0; }
.access__map iframe { display: block; width: 100%; height: 480px; background: var(--rm-bg-soft); }

/* お知らせ */
.news-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rm-ink); }
.news-list__item { border-bottom: 1px solid var(--rm-line); }
.news-list__item a { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 20px 4px; color: var(--rm-ink); font-size: 15px; }
.news-list__item a:hover { color: var(--rm-primary); }
.news-list time { color: var(--rm-muted); }
.page-body .entry { padding: 64px 0 72px; }
.page-body .entry__meta { margin-bottom: 20px; }
.page-body .entry__content h2 { font-family: var(--rm-font-disp); border-bottom-color: var(--rm-ink); }
.page-body .entry__content h3 { font-family: var(--rm-font-disp); border-left-color: var(--rm-primary); }

/* フォーム */
.page-body--form { padding: 56px 0 80px; }
.page-body--form .mailform { --mf-primary: var(--rm-primary); --mf-text: var(--rm-ink); --mf-border: var(--rm-line); --mf-bg-soft: var(--rm-bg-soft); --mf-radius: 3px; --mf-font-size: 15px; }
.page-body--form .flow__listItem { background: var(--rm-line); color: var(--rm-ink); }
.page-body--form .flow__listItem--active { background: var(--rm-primary); color: var(--rm-white); }
.page-body--form .form__link--submit, .page-body--form .form__link { background: var(--rm-primary); }
.page-body--form .form__link--back { background: transparent; color: var(--rm-ink); border: 1px solid var(--rm-ink); }

@media (max-width: 960px) {
  .block { padding: 56px 0; }
  .block__inner--split { grid-template-columns: 1fr; gap: 28px; }
  .block__photo { height: 240px; }
  .block__head { flex-direction: column; align-items: flex-start; }
  .block .section__lead { margin-bottom: 24px; }
  .points__item { grid-template-columns: 40px minmax(0, 1fr); padding: 16px 0; }
  .points__title { font-size: 17px; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .filter { padding: 16px; }
  .filter__row { grid-template-columns: 1fr; gap: 6px; }
  .work-single { padding-top: 40px; }
  .work-single__inner { grid-template-columns: 1fr; gap: 28px; }
  .work-single__figure img { height: 260px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts li { padding: 16px 0; }
  .facts__value { font-size: 28px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gallery img { height: 140px; }
  .timeline__item { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .access__inner { grid-template-columns: 1fr; gap: 28px; }
  .access__map iframe { height: 320px; }
  .news-list__item a { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .page-body--form { padding: 32px 0 56px; }
}

/* ============================================================
   下層メインビジュアル（写真に白い面を重ねる型）
   ============================================================ */

.page-hero {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: var(--rm-bg-soft);
}

.page-hero__photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  height: 100%;
  object-fit: cover;
}

.page-hero__shade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  background: linear-gradient(90deg, rgba(46, 74, 68, .28) 0%, rgba(46, 74, 68, 0) 40%);
}

.page-hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 38%;
  background: var(--rm-white);
}

.page-hero__inner {
  position: relative;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 72px var(--rm-gutter);
}

.page-hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  width: 760px;
  max-width: 100%;
  height: 100%;
  padding: 56px 64px 56px 40px;
  background: var(--rm-white);
  border-left: 4px solid var(--rm-primary);
}

.page-hero__label { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--rm-primary); }
.page-hero__number { font-size: 44px; font-weight: 900; line-height: 1; }
.page-hero__rule { width: 40px; height: 1px; background: var(--rm-primary); }
.page-hero__title { font-size: 60px; line-height: 1.2; font-weight: 900; letter-spacing: .01em; }
.page-hero__subtitle { font-size: 20px; font-weight: 700; color: var(--rm-sub); }
.page-hero__lead { margin-top: 6px; font-size: 16px; line-height: 2; color: var(--rm-sub); }
.page-hero__caption { position: absolute; right: var(--rm-gutter); bottom: 28px; display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(255, 255, 255, .94); font-size: 12px; color: var(--rm-sub); }
.page-hero__caption .en { font-size: 10px; color: var(--rm-primary); }

/* 写真なしの簡易版（FAQ・お知らせ・検索・404 など） */
.page-hero--plain { height: auto; background: var(--rm-white); border-bottom: 1px solid var(--rm-line); }
.page-hero--plain::before { display: none; }
.page-hero--plain .page-hero__inner { padding: 56px var(--rm-gutter) 48px; }
.page-hero--plain .page-hero__panel { width: 860px; padding: 0 0 0 32px; }
.page-hero--plain .page-hero__title { font-size: 48px; }

/* 旧タイトル帯（他テンプレが参照しても壊れないよう残す） */
.page-header { display: none; }

/* ============================================================
   下層: 強み・対応範囲タイル・工程・他の技術
   ============================================================ */

.section__head--stack .section__lead { margin-top: 4px; }
.block .section__head { margin-bottom: 44px; }
.block .section__head--stack { max-width: 820px; }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; border: 0; }
.points__item { display: flex; flex-direction: column; gap: 14px; padding: 32px 30px 34px; background: #F7F8F9; border-top: 3px solid var(--rm-primary); }
.points__num { font-size: 12px; color: var(--rm-primary); padding: 0; }
.points__title { font-size: 22px; margin: 0; }
.points__text { font-size: 14px; line-height: 1.9; color: var(--rm-sub); }
.photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
.photo-row img { width: 100%; height: 260px; object-fit: cover; }

.spec-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.spec-tile { display: flex; flex-direction: column; gap: 8px; padding: 26px 26px 28px; background: var(--rm-white); border-top: 2px solid var(--rm-ink); }
.spec-tile__en { font-size: 10px; color: var(--rm-primary); }
.spec-tile__label { font-size: 17px; font-weight: 700; }
.spec-tile__value { font-size: 14px; line-height: 1.8; color: var(--rm-text); }

.steps { position: relative; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.steps::before { content: ''; position: absolute; left: 32px; right: 32px; top: 31px; height: 1px; background: var(--rm-line); }
.steps__item { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 0; background: transparent; border: 0; }
.steps__num { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0; border-radius: 50%; background: var(--rm-white); border: 2px solid var(--rm-primary); color: var(--rm-primary); font-size: 20px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.steps__item:first-child .steps__num { background: var(--rm-primary); color: var(--rm-white); }
.steps__title { font-size: 19px; margin: 0; }
.steps__text { font-size: 13px; line-height: 1.8; color: var(--rm-sub); }

.faq-split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; align-items: start; }
.faq-split__main .section__head { margin-bottom: 28px; }
.faq-split__side { display: flex; flex-direction: column; gap: 16px; padding-top: 4px; }
.other-tech { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--rm-dark); color: var(--rm-white); }
.other-tech:hover { color: var(--rm-white); background: #2A3138; }
.other-tech img { width: 120px; height: 100px; object-fit: cover; }
.other-tech__body { display: flex; flex-direction: column; gap: 2px; padding-right: 16px; }
.other-tech__num { font-size: 10px; color: var(--rm-primary-light); }
.other-tech__title { font-size: 17px; font-weight: 700; line-height: 1.4; }
.other-tech__note { font-size: 12px; color: rgba(255, 255, 255, .7); }

/* 会社案内・製作事例詳細は承認後に追加 */

@media (max-width: 960px) {
  .page-hero { height: auto; }
  .page-hero::before { display: none; }
  .page-hero__photo, .page-hero__shade { position: static; width: 100%; height: 240px; display: block; }
  .page-hero__shade { display: none; }
  .page-hero__inner { padding: 0; }
  .page-hero__panel { width: 100%; padding: 28px var(--rm-gutter) 32px; gap: 12px; border-left: 0; border-top: 4px solid var(--rm-primary); }
  .page-hero__number { font-size: 32px; }
  .page-hero__title { font-size: 34px; }
  .page-hero__subtitle { font-size: 16px; }
  .page-hero__lead { font-size: 15px; line-height: 1.9; }
  .page-hero__lead br, .section__lead br, .cta__text br, .hero__text br, .factory__lead br { display: none; }
  .page-hero__caption { display: none; }
  .page-hero--plain .page-hero__inner { padding: 28px var(--rm-gutter) 24px; }
  .page-hero--plain .page-hero__panel { padding: 0 0 0 16px; border-top: 0; border-left: 4px solid var(--rm-primary); }
  .page-hero--plain .page-hero__title { font-size: 30px; }

  .points { grid-template-columns: 1fr; gap: 12px; }
  .points__item { padding: 22px 20px 24px; }
  .photo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 24px; }
  .photo-row img { height: 110px; }
  .spec-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .spec-tile { padding: 18px 16px 20px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps::before { display: none; }
  .steps__item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 16px; }
  .steps__num { width: 56px; height: 56px; grid-row: 1 / 3; font-size: 17px; }
  .faq-split { grid-template-columns: 1fr; gap: 40px; }
}

/* 会社案内: 地図付きアクセス導線 */
.block--tight-top { padding-top: 0; }
.company-access { display: grid; grid-template-columns: minmax(0, 1fr) 520px; background: var(--rm-dark); color: var(--rm-white); }
.company-access__text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: 48px 56px; }
.company-access__text .section__label { margin-bottom: 0; }
.company-access__title { font-size: 26px; color: var(--rm-white); }
.company-access__lead { font-size: 14px; color: rgba(255, 255, 255, .8); }
.company-access__map { display: flex; min-height: 280px; }
.company-access__map iframe { display: block; width: 100%; height: 100%; min-height: 280px; background: var(--rm-bg-soft); }
@media (max-width: 960px) {
  .company-access { grid-template-columns: 1fr; }
  .company-access__text { padding: 28px var(--rm-gutter); }
  .company-access__lead br { display: none; }
  .company-access__map { min-height: 220px; }
  .company-access__map iframe { min-height: 220px; }
}

/* ============================================================
   会社案内・製作事例一覧・製作事例詳細（承認済みキャンバスの型）
   ============================================================ */

.block--message { padding: 104px 0 96px; }
.block__inner--message { max-width: 932px; display: flex; flex-direction: column; gap: 28px; }
.block__inner--message .section__label { margin-bottom: 0; }
.message__title { font-size: 38px; line-height: 1.4; }
.message { display: flex; flex-direction: column; gap: 18px; margin: 0; padding-left: 28px; border-left: 2px solid var(--rm-primary); font-size: 17px; line-height: 2.1; color: var(--rm-text); }
.message p + p { margin-top: 0; }
.message__sign { align-self: flex-end; margin: 0 !important; font-size: 16px; font-weight: 700; text-align: right; }
.message__sign .en { margin-right: 12px; font-size: 10px; color: var(--rm-muted); letter-spacing: .2em; }

.numbers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 40px 0; list-style: none; border-top: 1px solid var(--rm-ink); border-bottom: 1px solid var(--rm-line); }
.numbers li { display: flex; flex-direction: column; gap: 4px; }
.numbers__label { font-size: 10px; color: var(--rm-muted); }
.numbers__value { font-size: 32px; font-weight: 700; line-height: 1.2; }
.numbers__value small { font-size: 14px; font-weight: 500; }
.numbers__note { font-size: 12px; color: var(--rm-muted); }

.profile { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 72px; align-items: start; }
.profile__head { display: flex; flex-direction: column; gap: 14px; }
.profile__head .section__label { margin-bottom: 0; }
.profile__head .section__lead { margin: 0; font-size: 15px; }
.profile__table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 0; border-top: 2px solid var(--rm-ink); }
.profile__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid #D9DDE1; }
.profile__row dt { font-family: var(--rm-font-disp); font-weight: 700; }
.profile__row dd { margin: 0; color: var(--rm-text); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.two-col .section__head { margin-bottom: 28px; }
.timeline__item { grid-template-columns: 140px minmax(0, 1fr); }
.timeline__text { color: var(--rm-text); }
.industries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.industries li { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid var(--rm-line); font-weight: 700; }
.industries li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--rm-primary); }

/* 製作事例 一覧 */
.block--tight-bottom { padding-bottom: 0; }
.cat-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cat-tile { display: flex; flex-direction: column; gap: 10px; color: var(--rm-ink); }
.cat-tile img { width: 100%; height: 130px; object-fit: cover; }
.cat-tile__name { font-size: 15px; font-weight: 700; line-height: 1.5; }
.cat-tile:hover { color: var(--rm-primary); }
.cat-tile.is-active .cat-tile__name { color: var(--rm-primary); }
.cat-tile.is-active img { outline: 3px solid var(--rm-primary); outline-offset: -3px; }
.block--tight-top.block { padding-top: 64px; }
.filter { margin-bottom: 32px; padding: 22px 26px; gap: 14px; }
.filter__row { grid-template-columns: 110px minmax(0, 1fr); align-items: center; }
.filter__chip { height: 36px; padding: 0 16px; }
.works-meta { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; font-size: 14px; color: var(--rm-sub); }
.works-meta strong { font-size: 18px; color: var(--rm-ink); }
.works-meta__sort { font-size: 13px; color: var(--rm-muted); }

/* 製作事例 詳細 */
.page-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--rm-line); border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--rm-sub); }
.chip--primary { border-color: var(--rm-primary); color: var(--rm-primary); }
.work-single { padding: 96px 0; }
.work-single__inner { grid-template-columns: minmax(0, 1fr) 440px; gap: 72px; margin-bottom: 0; }
.work-single__main .section__head { margin-bottom: 28px; }
.work-single__content { padding-bottom: 0; font-size: 16px; line-height: 2; color: var(--rm-text); }
.work-single__content p { margin-bottom: 1.1em; }
.photo-row--sub { margin-top: 32px; }
.photo-row--sub img { height: 200px; }
.consult { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px; background: var(--rm-bg-soft); }
.consult__title { font-size: 16px; font-weight: 700; }
.consult__text { font-size: 13px; line-height: 1.7; color: var(--rm-sub); }
.consult__tel { font-size: 12px; color: var(--rm-muted); }
.post-nav { display: flex; justify-content: space-between; margin-top: 32px; font-size: 14px; font-weight: 700; }

@media (max-width: 960px) {
  .block--message { padding: 64px 0 56px; }
  .message__title { font-size: 26px; }
  .message { padding-left: 16px; font-size: 15px; line-height: 2; }
  .message p br { display: none; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding: 28px 0; }
  .numbers__value { font-size: 26px; }
  .profile { grid-template-columns: 1fr; gap: 28px; }
  .profile__head .section__lead br { display: none; }
  .profile__table { grid-template-columns: 1fr; gap: 0; }
  .profile__row { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 14px 0; font-size: 14px; }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .timeline__text br { display: none; }
  .industries { gap: 8px; }
  .industries li { padding: 12px 14px; font-size: 14px; }
  .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .cat-tile img { height: 90px; }
  .cat-tile__name { font-size: 13px; }
  .block--tight-top.block { padding-top: 40px; }
  .works-meta { margin-bottom: 20px; }
  .work-single { padding: 56px 0; }
  .work-single__inner { grid-template-columns: 1fr; gap: 36px; }
  .photo-row--sub img { height: 110px; }
}

/* 製作事例 詳細: 製品名は48px・行のバランスを取る（デザイン WorkDetail.dc.html） */
.single-works .page-hero__title { font-size: 48px; line-height: 1.25; text-wrap: balance; }
.single-works .page-hero__subtitle { font-size: 18px; }
.single-works .page-hero__lead { font-size: 15px; }
@media (max-width: 960px) { .single-works .page-hero__title { font-size: 30px; } }

/* ============================================================
   汎用固定ページ（プライバシーポリシー等）の本文幅
   ============================================================ */
.block__inner--wide { max-width: 1200px; }
.page-body .entry .entry__content { font-size: 16px; line-height: 2; color: var(--rm-text); }
.page-body .entry .entry__content h2 { margin: 44px 0 14px; padding-bottom: 10px; font-size: 24px; border-bottom: 1px solid var(--rm-ink); }
.page-body .entry .entry__content h3 { margin: 28px 0 10px; font-size: 18px; }

/* ============================================================
   お問い合わせフォーム（inc/mailform/assets/mailform.css の上書き）
   ============================================================ */
.page-body--form { padding: 0 0 96px; }
.page-body--form .mailform { max-width: 1200px; margin: 0 auto; padding: 0 var(--rm-gutter); --mf-width: 100%; }
.page-body--form .form__inner { width: 100%; max-width: 100%; margin: 40px 0 0; }

/* ステップ表示: 黒い丸をやめ、細いピル */
.page-body--form .flow__inner { margin: 48px 0 0; }
.page-body--form .flow__list { display: flex; justify-content: flex-start; gap: 12px; width: auto; margin: 0; padding: 0; }
.page-body--form .flow__list::before { display: none; }
.page-body--form .flow__listItem { width: auto; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--rm-bg-soft); color: var(--rm-muted); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; counter-increment: none; }
.page-body--form .flow__listItem::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--rm-line); }
.page-body--form .flow__listItem--active { background: var(--rm-primary); color: var(--rm-white); }
.page-body--form .flow__listItem--active::before { background: var(--rm-white); }

/* 項目: 左ラベル・右入力の行、罫線区切り */
.page-body--form .form__list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--rm-ink); }
.page-body--form .form__listItem { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px 32px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--rm-line); }
.page-body--form .form__listItem + .form__listItem { margin-top: 0; }
.page-body--form .form__listLabel { display: flex; align-items: center; gap: 12px; padding: 12px 0 0; font-family: var(--rm-font-disp); font-size: 16px; font-weight: 700; }
.page-body--form .form__listLabel .hissu,
.page-body--form .hissu { position: static; top: auto; right: auto; transform: none; display: inline-flex; align-items: center; width: auto; height: 22px; padding: 0 8px; border-radius: 2px; background: var(--rm-primary); color: var(--rm-white); font-size: 11px; font-weight: 700; line-height: 1; vertical-align: middle; }
.page-body--form .form__listInputBox { min-width: 0; }
.page-body--form .form__input,
.page-body--form .form__textarea,
.page-body--form .form__select select { border: 1px solid var(--rm-line); border-radius: 3px; background: var(--rm-white); font-size: 15px; color: var(--rm-ink); }
.page-body--form .form__input { height: 52px; padding: 0 16px; }
.page-body--form .form__textarea { min-height: 200px; padding: 14px 16px; }
.page-body--form .form__input:focus,
.page-body--form .form__textarea:focus { border-color: var(--rm-primary); box-shadow: 0 0 0 3px rgba(26, 138, 110, .15); }
.page-body--form .form__input::placeholder,
.page-body--form .form__textarea::placeholder { color: #A0A6AC; }
.page-body--form .form__radioLabel,
.page-body--form .form__checkLabel { font-size: 15px; }
.page-body--form .file__description { font-size: 13px; color: var(--rm-muted); }
.page-body--form .form__fileButton { border: 1px solid var(--rm-ink); border-radius: 3px; background: var(--rm-white); color: var(--rm-ink); font-weight: 700; }
.page-body--form .privacy__box { padding: 24px; background: var(--rm-bg-soft); border: 0; border-radius: 3px; }
.page-body--form .form__notice { padding: 16px 20px; border-radius: 3px; }

/* ボタン */
.page-body--form .form__submitBox,
.page-body--form .thanks__submitBox { margin-top: 40px; }
.page-body--form .form__link { width: 360px; height: 60px; border-radius: 3px; background: var(--rm-primary); color: var(--rm-white); font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.page-body--form .form__link:hover { background: var(--rm-primary-dark); }
.page-body--form .form__link--back { background: transparent; color: var(--rm-ink); border: 1px solid var(--rm-ink); }
.page-body--form .form__link--back:hover { background: var(--rm-ink); color: var(--rm-white); }
.page-body--form .form__backForm { margin-top: 16px; }

/* 確認画面の表・完了画面 */
.page-body--form .form__text { margin-bottom: 24px; font-size: 15px; color: var(--rm-sub); }
.page-body--form .check__table { border-top: 2px solid var(--rm-ink); }
.page-body--form .check__table th,
.page-body--form .check__table td { padding: 20px 8px; border: 0; border-bottom: 1px solid var(--rm-line); vertical-align: top; }
.page-body--form .check__table th { width: 260px; font-family: var(--rm-font-disp); font-weight: 700; background: transparent; }
.page-body--form .thanks__text { margin: 0; font-size: 16px; line-height: 2; text-align: left; }

@media (max-width: 960px) {
  .page-body--form { padding-bottom: 56px; }
  .page-body--form .flow__inner { margin-top: 28px; }
  .page-body--form .flow__listItem { height: 34px; padding: 0 12px; font-size: 12px; }
  .page-body--form .form__listItem { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .page-body--form .form__listLabel { padding-top: 0; font-size: 15px; }
  .page-body--form .form__link { width: 100%; height: 56px; }
  .page-body--form .check__table th { width: 100%; display: block; padding-bottom: 4px; border-bottom: 0; }
  .page-body--form .check__table td { display: block; padding-top: 0; }
}

/* 添付の注記: 入力欄の列に揃えて全幅で表示 */
.page-body--form .form__listItem--note { padding: 16px 0 0; border-bottom: 0; }
.page-body--form .form__listItem--note .file__description { grid-column: 2; margin: 0; padding: 16px 20px; border-radius: 3px; background: var(--rm-bg-soft); font-size: 13px; line-height: 1.9; color: var(--rm-sub); }
@media (max-width: 960px) { .page-body--form .form__listItem--note .file__description { grid-column: 1; } }
