/*
Theme Name: nissou
Description: 日創工業 WordPressテーマ
Version: 1.0.0
*/

/* ========== デザイントークン（Figma準拠） ========== */
:root {
  --color-primary: #004098;
  --color-primary-dark: #023376;
  --color-accent: #ffcc00;
  --color-accent-light: #fff4c7;
  /* フォーム送信ボタン hover 用（やや濃いめの黄グラデ） */
  --color-accent-hover-light: #ffe566;
  --color-accent-hover-dark: #e6b800;
  --color-text: #1e1e1e;
  --color-text-muted: #4f4f4f;
  --color-gray: #6b6b6b;
  --color-white: #ffffff;
  --color-gray-bg: #f6f6f6;
  --font-serif: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', serif;
  --font-sans: 'Noto Sans JP', 'Yu Gothic', 'YuGothic', sans-serif;
  --font-en: 'Nunito Sans', sans-serif;
  /* About カード番号など（Brush Script MT は環境依存のため Web フォントを先に） */
  --font-script: 'Kaushan Script', 'Brush Script MT', 'Segoe Script', cursive;
  /* 共通余白 */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 60px;
  --space-2xl: 100px;
  --section-padding-top: 120px;
  --section-padding-bottom: 200px;
  --container-max: 1200px;
  --container-padding: 40px;
  /* 白ブロック（フロントp-service・下層p-service-detailなどで共通） */
  --block-radius: 80px;
}

* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease, color 0.3s ease;
}

/* ========== 共通レイアウト ========== */
.l-main {
  position: relative;
}

.l-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* スマホ幅（768px以下）のみ表示 */
.u-sp-only {
  display: none;
}

/* PC幅のみ表示（768px以下は非表示）。改行用 span も同クラスで可 */
@media screen and (max-width: 768px) {
  .u-pc-only {
    display: none !important;
  }
}

/* 共通セクション余白（上180px・下260px） */
.c-section {
  padding: var(--section-padding-top) 0 var(--section-padding-bottom);
}

.c-section--lg {
  padding: 120px 0;
}

/* 共通セクションタイトル（Figma準拠・縦並び） */
.c-section-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.c-section-title__en {
  font-family: var(--font-en);
  font-size: 64px;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.2;
  display: block;
}

.c-section-title__jp {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  margin-top: 4px;
  display: block;
}

.c-section-title--white .c-section-title__en,
.c-section-title--white .c-section-title__jp {
  color: var(--color-white);
}

.c-section-title--white .c-section-title__jp .c-section-title__dot {
  color: var(--color-accent);
}

.c-section-title--primary .c-section-title__en,
.c-section-title--primary .c-section-title__jp {
  color: var(--color-primary-dark);
}

/* 下層ページ共通H2タイトル */
.c-page-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
  margin: 0 0 60px;
}

.c-page-title--detail {
  font-size: 24px;
  text-align: left;
  margin: 0 0 24px;
}

/* 共通ボタン */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 32px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  border-radius: 31px;
  border: none;
  cursor: pointer;
  transition: opacity 0.25s ease, box-shadow 0.25s ease;
}

.c-btn:hover {
  opacity: 0.95;
}

.c-btn--yellow {
  background: linear-gradient(to bottom, var(--color-accent-light), var(--color-accent));
  color: var(--color-primary-dark);
}

.c-btn--yellow:hover {
  box-shadow: 0 4px 12px rgba(0, 64, 152, 0.2);
}

.c-btn--small {
  padding: 12px 28px;
  font-size: 16px;
  border-radius: 100px;
}

/* 共通リンク（アンダーライン） */
.c-link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 500;
  transition: opacity 0.25s ease;
}

.c-link-arrow:hover {
  opacity: 0.8;
}

.c-link-arrow__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.c-link-arrow__icon--lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
}

/* 事業内容ヘッダー：ラベル下線・棒長めの矢印（画像なし） */
.c-link-arrow__text {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-family: var(--font-serif);
}

.c-link-arrow__icon--long {
  width: 56px;
  height: 24px;
  flex-shrink: 0;
}

.c-link-arrow__icon--long svg {
  display: block;
  width: 100%;
  height: 100%;
}

.c-link-arrow--primary {
  color: var(--color-primary-dark);
}

.c-link-arrow--white {
  color: var(--color-white);
}

.c-link-arrow--serif {
  font-family: var(--font-serif);
}

.c-link-arrow--white .c-link-arrow__icon img {
  filter: invert(1);
}

/* 共通：ナビ矢印アイコン（button_bg背景 + SVG） */
.c-nav-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: url(images/button_bg.svg) center / contain no-repeat;
}

.c-nav-icon svg {
  display: block;
  color: var(--color-primary);
}

/* ========== ヘッダー（PC版Figma準拠） ========== */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-primary);
  transition: background 0.4s ease;
}

.l-header--transparent {
  background: transparent;
}

.l-header.l-header--transparent.is-scrolled {
  /* --color-primary #004098 をベースに少し透過 */
  background: rgba(0, 64, 152, 0.88);
}

.l-header.l-header--transparent.is-scrolled.is-menu-open {
  background: transparent;
}

.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1920px;
  margin: 0 auto;
  padding: 16px 32px;
}

.l-header__logo-img {
  height: auto;
  width: auto;
  max-width: 250px;
  max-height: 48px;
}

.l-header__nav-list {
  display: flex;
  align-items: center;
  gap: 40px;
}

.l-header__nav-link {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  transition: opacity 0.25s ease;
}

.l-header__nav-link:hover {
  opacity: 0.8;
}

/* ヘッダー用お問い合わせボタン（Figma: 235×54px, 黄色グラデ, メールアイコン付き） */
.c-btn--header {
  min-width: 235px;
  height: 48px;
  padding: 0 28px;
  gap: 12px;
  font-size: 16px !important;
}

.c-btn--header .c-btn__icon {
  flex-shrink: 0;
  width: 25px;
}

.l-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.l-header.is-menu-open {
  z-index: 10002;
}

.l-header.is-menu-open .l-header__nav-list {
  display: none;
}

.l-header.is-menu-open .l-header__logo {
  display: none;
}

.l-header.is-menu-open .l-header__inner {
  justify-content: flex-end;
}

.l-header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 55px;
  background: var(--color-primary-dark);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: background 0.25s ease, transform 0.25s ease;
}

.l-header__hamburger:hover {
  background: var(--color-primary);
  transform: scale(1.05);
}

.l-header__hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.l-header__hamburger-line+.l-header__hamburger-line {
  margin-top: 6px;
}

.l-header__hamburger.is-active .l-header__hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.l-header__hamburger.is-active .l-header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.l-header__hamburger.is-active .l-header__hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========== ハンバーガーメニューオーバーレイ（Figmaデザイン） ========== */
.l-hamburger-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.l-hamburger-overlay.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.l-hamburger-overlay__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.l-hamburger-overlay__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.l-hamburger-overlay__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 72, 110, 0.6);
  pointer-events: auto;
}

.l-hamburger-overlay__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 550px;
  background: #f5f5f5;
  border-radius: 150px 0 0 0;
  z-index: 1;
  overflow-y: auto;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
}

.l-hamburger-overlay__header {
  padding: 32px 32px 24px;
}

.l-hamburger-overlay__logo img {
  height: 48px;
  width: auto;
  max-width: 320px;
}

.l-hamburger-overlay__content {
  padding: 100px 40px 40px 40px;
}

.l-hamburger-overlay__nav {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 30px 40px;
  margin-bottom: 40px;
}

.l-hamburger-overlay__nav-col {
  font-family: var(--font-serif);
}

/* nav 外に置いたホーム行とメインナビの間隔 */
.l-hamburger-overlay__nav-col--home {
  margin-bottom: 30px;
}

.l-hamburger-overlay__nav-title-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.l-hamburger-overlay__nav-title-link:hover .l-hamburger-overlay__nav-title,
.l-hamburger-overlay__nav-title-link:focus-visible .l-hamburger-overlay__nav-title {
  opacity: 0.88;
}

.l-hamburger-overlay__nav-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.l-hamburger-overlay__nav-icon {
  width: 38px;
  height: 38px;
  text-decoration: none;
  justify-content: center;
}

.l-hamburger-overlay__nav-icon:hover {
  opacity: 0.8;
}

.l-hamburger-overlay__nav-links {
  font-family: var(--font-sans);
  font-size: 16px;
  color: rgba(51, 51, 51, 0.8);
  margin: 0;
  line-height: 1.8;
}

.l-hamburger-overlay__nav-sep {
  margin: 0 4px;
  color: rgba(51, 51, 51, 0.8);
}

.l-hamburger-overlay__contact {
  background: #eaeaea;
  border-radius: 5px;
  padding: 32px 40px 40px;
  margin-bottom: 40px;
}

.l-hamburger-overlay__tel-label {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
}

.l-hamburger-overlay__tel-num {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin: 0 0 24px;
}

.l-hamburger-overlay__tel-num a {
  color: inherit;
}

.l-hamburger-overlay__contact-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 483px;
  padding: 15px;
  background: var(--color-white);
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  transition: box-shadow 0.25s ease;
}

.l-hamburger-overlay__contact-btn:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.l-hamburger-overlay__contact-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--color-primary);
  border-radius: 50%;
  perspective: 100px;
  -webkit-perspective: 100px;
}

.l-hamburger-overlay__contact-btn-icon img,
.l-hamburger-overlay__contact-btn-icon svg {
  color: white;
  width: 20px;
  height: 20px;
}

.l-hamburger-overlay__contact-btn-icon svg {
  display: block;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.34, 1.15, 0.64, 1);
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.l-hamburger-overlay__contact-btn:hover .l-hamburger-overlay__contact-btn-icon svg,
.l-hamburger-overlay__contact-btn:focus-visible .l-hamburger-overlay__contact-btn-icon svg,
.p-footer__contact-btn:hover .l-hamburger-overlay__contact-btn-icon svg,
.p-footer__contact-btn:focus-visible .l-hamburger-overlay__contact-btn-icon svg {
  transform: rotateY(360deg);
}

.l-hamburger-overlay__contact-btn-icon img {
  filter: brightness(0) invert(1);
}

@media (prefers-reduced-motion: reduce) {
  .l-hamburger-overlay__contact-btn-icon {
    perspective: none;
    -webkit-perspective: none;
  }

  .l-hamburger-overlay__contact-btn-icon svg {
    transition: none;
    transform-style: flat;
    -webkit-transform-style: flat;
  }

  .l-hamburger-overlay__contact-btn:hover .l-hamburger-overlay__contact-btn-icon svg,
  .l-hamburger-overlay__contact-btn:focus-visible .l-hamburger-overlay__contact-btn-icon svg,
  .p-footer__contact-btn:hover .l-hamburger-overlay__contact-btn-icon svg,
  .p-footer__contact-btn:focus-visible .l-hamburger-overlay__contact-btn-icon svg {
    transform: none;
  }
}

.l-hamburger-overlay__footer {
  font-size: 14px;
  color: var(--color-text-muted);
}

.l-hamburger-overlay__address {
  margin: 0 0 8px;
  line-height: 1.6;
}

.l-hamburger-overlay__address a {
  color: inherit;
  text-decoration: underline;
}

.l-hamburger-overlay__instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--color-text-muted);
  text-decoration: underline;
}

.l-hamburger-overlay__instagram:hover {
  opacity: 0.8;
}

.l-hamburger-overlay__instagram-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.l-hamburger-overlay__copyright {
  font-size: 10px;
  font-weight: 500;
  color: rgba(158, 158, 158, 0.64);
  letter-spacing: 0.5px;
  margin: 0;
}

/* ========== Hero（背景=動画） ========== */
.p-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 400px;
  overflow: hidden;
}

/* 背景：動画（poster なし：読み込み中は単色。静止画の一瞬表示を避ける） */
.p-hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--color-primary-dark);
}

.p-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-hero__video-fallback {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-video .p-hero__video {
  display: none;
}

.no-video .p-hero__video-fallback {
  display: block;
}

/* ========== 下層ページ共通MV ========== */
.c-subpage-mv {
  position: relative;
  min-height: 550px;
  background: var(--color-primary);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.c-subpage-mv__bg {
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  z-index: 1;
}

.c-subpage-mv__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 120px;
  gap: 40px;
}

.c-subpage-mv__content {
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.c-subpage-mv__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 60px;
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: 0.12em;
  line-height: normal;
}

/* パンくず */
.c-subpage-mv__breadcrumb {
  margin-top: 0;
}

.c-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-white);
}

.c-breadcrumb__sep {
  display: flex;
  align-items: center;
  margin: 0 8px;
}

.c-breadcrumb__sep img {
  display: block;
  opacity: 0.8;
}

.c-breadcrumb__item {
  margin: 0;
}

.c-breadcrumb__link {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.25s ease;
}

.c-breadcrumb__link:hover {
  opacity: 0.8;
}

/* MV画像オーバーレイ（p-service-detailの角丸白の上に表示・最前面） */
.c-subpage-mv__img-overlay {
  position: absolute;
  top: 100px;
  right: 120px;
  width: min(600px, calc(100vw - 280px));
  max-width: 600px;
  height: auto;
  aspect-ratio: 600 / 452;
  z-index: 5;
  pointer-events: none;
}

.c-subpage-mv__img-overlay .c-subpage-mv__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ========== 事業内容詳細（p-service-detail） ========== */
.p-service-detail {
  position: relative;
  background: var(--color-white);
  margin-top: -80px;
  border-radius: var(--block-radius) var(--block-radius) 0 0;
  overflow: hidden;
  z-index: 3;
}

/* イメージマップ等からの #アンカー時、固定ヘッダー分ずらす */
.p-service-detail__item[id] {
  scroll-margin-top: 120px;
}

/* 背景装飾（同じ素材を2つ・幅いっぱいに表示） */
.p-service-detail__bg-deco {
  position: absolute;
  left: 50%;
  top: 0;
  width: 100vw;
  height: 100%;
  min-height: 100%;
  margin-left: -50vw;
  pointer-events: none;
  z-index: 0;
}

.p-service-detail__bg-deco-item {
  position: absolute;
  width: 100%;
  height: 50%;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
  display: block;
  /* 白背景でも見えるように反転して薄いグレーに */
  /* filter: invert(1);
  opacity: 0.1; */
}

/* 上側の装飾（左中→右上の曲線） */
.p-service-detail__bg-deco-item--top {
  top: 0;
  left: 0;
  /* object-position: left top; */
}

/* 下側の装飾（左下→右中の曲線） */
.p-service-detail__bg-deco-item--bottom {
  bottom: 0;
  left: 0;
  object-position: left bottom;
}

/* 下層ページ共通イントロ（detail__intro系） */
.p-detail__intro {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-md);
}

/* 下層ページ共通リード文（detail__lead系） */
.c-detail-lead {
  font-size: 16px;
  line-height: 2;
  color: var(--color-text);
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 80px;
}

.p-service-detail__items {
  margin-top: var(--space-lg);
  position: relative;
  z-index: 1;
}

.p-service-detail__item {
  padding: 80px 0;
  position: relative;
}

.p-service-detail__item+.p-service-detail__item {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.p-service-detail__item:first-child {
  padding-top: 0;
}

.p-service-detail__item:last-child {
  padding-bottom: 0;
}

.p-service-detail__body {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 72px;
  align-items: start;
  position: relative;
}

.p-service-detail__item--img-right .p-service-detail__body {
  grid-template-columns: 1fr 400px;
}

.p-service-detail__item--img-right .p-service-detail__img-wrap {
  order: 2;
}

.p-service-detail__item--img-right .p-service-detail__text {
  order: 1;
}

.p-service-detail__item--img-right .p-service-detail__img-wrap {
  grid-column: 2;
}

.p-service-detail__img-wrap {
  flex-shrink: 0;
  width: 400px;
  height: 444px;
  overflow: hidden;
}

.p-service-detail__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-service-detail__img-wrap--tr {
  border-radius: 4px 80px 4px 4px;
}

.p-service-detail__img-wrap--tl {
  border-radius: 80px 4px 4px 4px;
}

.p-service-detail__text {
  flex: 1;
  min-width: 0;
}

.p-service-detail__title {
  line-height: 1.33;
  text-shadow: 0 4px 4px rgba(2, 51, 118, 0.15);
  color: var(--color-primary-dark);
}

.p-service-detail__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
}

/* 事業内容：リード・本文内の span / .p-service-detail__mark でマーカー風強調 */
.p-service-detail p.c-detail-lead span,
.p-service-detail p.p-service-detail__desc span,
.p-service-detail .c-detail-lead .p-service-detail__mark,
.p-service-detail .p-service-detail__desc .p-service-detail__mark {
  display: inline;
  padding: 0.12em 0.28em;
  border-radius: 2px;
  position: relative;
  z-index: 10;
  vertical-align: baseline;
  background-color: transparent;
  background-image: linear-gradient(180deg, rgba(255, 255, 0, 0) 60%, rgba(255, 239, 77, 0.8) 60%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ========== 設備詳細（p-equipment-detail） ========== */
.p-equipment-detail {
  position: relative;
  background: var(--color-white);
  margin-top: -80px;
  border-radius: var(--block-radius) var(--block-radius) 0 0;
  overflow: hidden;
  z-index: 3;
}

.p-equipment-detail__items {
  margin-top: var(--space-lg);
  position: relative;
  z-index: 1;
}

.p-equipment-detail__item {
  padding: 80px 0;
  position: relative;
}

.p-equipment-detail__item+.p-equipment-detail__item {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.p-equipment-detail__item:first-child {
  padding-top: 0;
}

.p-equipment-detail__item:last-child {
  padding-bottom: 0;
}

.p-equipment-detail__body {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 72px;
  align-items: start;
}

.p-equipment-detail__item--img-right .p-equipment-detail__body {
  grid-template-columns: 1fr 400px;
}

.p-equipment-detail__item--img-right .p-equipment-detail__img-wrap {
  order: 2;
}

.p-equipment-detail__item--img-right .p-equipment-detail__text {
  order: 1;
}

.p-equipment-detail__img-wrap {
  flex-shrink: 0;
  width: 400px;
  height: 444px;
  overflow: hidden;
}

.p-equipment-detail__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-equipment-detail__img-wrap--tr {
  border-radius: 4px 80px 4px 4px;
}

.p-equipment-detail__img-wrap--tl {
  border-radius: 80px 4px 4px 4px;
}

.p-equipment-detail__text {
  flex: 1;
  min-width: 0;
}

.p-equipment-detail__title {
  line-height: 1.33;
  color: var(--color-primary-dark);
}

.p-equipment-detail__desc {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
}

.p-equipment-detail__subtitle {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
}

/* 設備テーブル */
.c-equipment-table {
  overflow: hidden;
}

.c-equipment-table table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border: none;
}

.c-equipment-table th,
.c-equipment-table td {
  padding: 10px 12px;
  font-size: 16px;
  text-align: center;
  border: none;
  border-top: 1px solid var(--color-primary-dark);
  border-left: 1px solid var(--color-primary-dark);
}

.c-equipment-table th:last-child,
.c-equipment-table td:last-child {
  border-right: 1px solid var(--color-primary-dark);
}

.c-equipment-table tr:last-child td,
.c-equipment-table thead tr th {
  border-bottom: 1px solid var(--color-primary-dark);
}

.c-equipment-table thead th {
  background: rgba(206, 227, 255, 0.7);
  font-weight: 700;
  color: var(--color-primary-dark);
}

.c-equipment-table:not(.c-equipment-table--inspection) tbody td:first-child {
  background: rgba(206, 227, 255, 0.7);
  font-weight: 700;
  color: var(--color-primary-dark);
}

.c-equipment-table:not(.c-equipment-table--inspection) tbody tr:nth-child(even) td:first-child {
  background: rgba(206, 227, 255, 0.7);
}

.c-equipment-table tbody td {
  color: var(--color-text);
}

.c-equipment-table small {
  font-size: 14px;
  color: var(--color-text-muted);
}

.c-equipment-table--2col thead {
  display: none;
}

.c-equipment-table--2col tbody td {
  background: transparent;
  font-weight: 400;
  color: var(--color-text);
}

/* 色なしシンプルテーブル（他用途用） */
.c-equipment-table--plain {
  border-color: var(--color-text);
}

.c-equipment-table--plain th,
.c-equipment-table--plain td {
  border-color: var(--color-text);
  background: transparent;
  font-weight: 500;
  color: var(--color-text);
}

.c-equipment-table--plain thead {
  display: none;
}

.c-equipment-table--plain small {
  font-size: 14px;
  color: #4b4b4b;
}

/* 主要検査機器テーブル */
.c-equipment-table--inspection {
  overflow: hidden;
  background: transparent;
}

.c-equipment-table--inspection table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border: none;
  table-layout: fixed;
}

.c-equipment-table--inspection th,
.c-equipment-table--inspection td {
  width: 50%;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  border: none;
  border-top: 1px solid var(--color-text);
  border-left: 1px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
  line-height: 1.3;
  min-height: 72px;
  vertical-align: middle;
}

.c-equipment-table--inspection th:last-child,
.c-equipment-table--inspection td:last-child {
  border-right: 1px solid var(--color-text);
}

.c-equipment-table--inspection tr:last-child td {
  border-bottom: 1px solid var(--color-text);
}

.c-equipment-table--inspection thead {
  display: none;
}

/* 親のtbody td:first-child / tr:nth-child(even) td:first-child を上書き */
.c-equipment-table--inspection tbody td:first-child,
.c-equipment-table--inspection tbody tr:nth-child(even) td:first-child {
  background: transparent;
  font-weight: 500;
  color: var(--color-text);
}

.c-equipment-table--inspection small {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  display: block;
  margin-top: 4px;
  color: var(--color-text-muted);
  text-align: center;
}

/* ========== 製作事例・加工製品素材一覧（p-equipment-products） ========== */
.p-equipment-products {
  background: var(--color-primary-dark);
  color: var(--color-white);
  position: relative;
  z-index: 3;
  margin-top: -80px;
  border-radius: var(--block-radius) var(--block-radius) 0 0;
}

.p-equipment-products__materials {
  margin-top: var(--section-padding-top);
}

.p-equipment-products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px 30px;
}

.p-equipment-products__card {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 5px;
}

button.p-equipment-products__card {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  background: transparent;
  appearance: none;
}

.p-equipment-products__img-wrap {
  aspect-ratio: 330 / 220;
  overflow: hidden;
}

.p-equipment-products__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-equipment-products__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 12px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.85));
  color: var(--color-white);
}

.p-equipment-products__card-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.p-equipment-products__card-desc {
  font-size: 12px;
  opacity: 0.9;
}

.p-equipment-products__nav,
.p-news-archive__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
}

.p-equipment-products__nav .c-pagination,
.p-news-archive__nav .c-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-equipment-products__nav .c-pagination__item a,
.p-equipment-products__nav .c-pagination__item span,
.p-news-archive__nav .c-pagination__item a,
.p-news-archive__nav .c-pagination__item span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: var(--color-white);
  font-size: 16px;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity 0.3s;
}

.p-equipment-products__nav .c-pagination__item a:hover,
.p-news-archive__nav .c-pagination__item a:hover {
  opacity: 0.8;
}

.p-equipment-products__nav .c-pagination__item .current,
.p-news-archive__nav .c-pagination__item .current {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--color-white);
}

.p-equipment-products__nav .c-pagination__item .prev,
.p-equipment-products__nav .c-pagination__item .next,
.p-news-archive__nav .c-pagination__item .prev,
.p-news-archive__nav .c-pagination__item .next {
  font-size: 24px;
}

#p-equipment-products__cases-inner.is-loading {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.2s;
}

/* 製作事例モーダル */
.p-case-modal[hidden] {
  display: none !important;
}

.p-case-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  box-sizing: border-box;
}

.p-case-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}

.p-case-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  background: var(--color-primary-dark);
  color: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  -webkit-overflow-scrolling: touch;
}

.p-case-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.p-case-modal__close:hover {
  opacity: 0.85;
}

.p-case-modal__img-wrap {
  margin: 0;
  background: #000;
}

.p-case-modal__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(50vh, 480px);
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.p-case-modal__img.is-pending {
  opacity: 0;
}

.p-case-modal__body {
  padding: var(--space-lg) var(--space-md);
}

.p-case-modal__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 var(--space-sm);
  line-height: 1.4;
  padding-right: 48px;
}

.p-case-modal__desc {
  margin: 0 0 var(--space-md);
  font-size: 15px;
  line-height: 1.75;
  opacity: 0.92;
  white-space: pre-line;
}

.p-case-modal__desc:empty {
  display: none;
}

/* 加工製品素材一覧 */
.p-equipment-products__box {
  background: var(--color-white);
  border-radius: 5px;
  padding: 50px var(--space-lg);
  max-width: 1080px;
  margin: 0 auto;
}

.p-equipment-products__list {
  margin: 0;
}

.p-equipment-products__row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  align-items: start;
}

.p-equipment-products__row:last-child {
  border-bottom: none;
}

.p-equipment-products__row dt {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  color: var(--color-primary);
}

.p-equipment-products__row dd {
  margin: 0;
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

.p-equipment-products__note {
  margin: 24px 0 0;
  font-size: 14px;
  color: #6f6f6f;
}

/* ========== 工場写真（p-equipment-factory）画面幅いっぱい・ループ ========== */
.p-equipment-factory {
  background: var(--color-white);
  margin-top: -80px;
  border-radius: var(--block-radius) var(--block-radius) 0 0;
  position: relative;
  z-index: 4;
  width: 100%;
}

.p-equipment-factory__title {
  padding: 0 var(--container-padding);
  color: var(--color-primary-dark);
}

.p-equipment-factory__slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  position: relative;
}

.p-equipment-factory__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 90px;
  height: 90px;
  border: none;
  background: url(images/button_bg.svg) center / contain no-repeat;
  color: var(--color-primary-dark);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  z-index: 2;
}

.p-equipment-factory__arrow svg {
  display: block;
}

.p-equipment-factory__arrow--prev {
  left: 25%;
  transform: translateY(-50%) translateX(-50%);
}

.p-equipment-factory__arrow--next {
  right: 25%;
  transform: translateY(-50%) translateX(50%);
}

.p-equipment-factory__arrow:hover {
  opacity: 0.7;
}

.p-equipment-factory__swiper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.p-equipment-factory__swiper .swiper-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}

.p-equipment-factory__swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.4s ease;
}

.p-equipment-factory__swiper .swiper-slide:not(.swiper-slide-active) .p-equipment-factory__img-wrap {
  transform: scale(0.78);
}

.p-equipment-factory__swiper .swiper-slide-active .p-equipment-factory__img-wrap {
  transform: scale(1.12);
}

.p-equipment-factory__img-wrap {
  width: 100%;
  aspect-ratio: 762 / 572;
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.p-equipment-factory__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== 会社情報（page-company） ========== */

/* 会社概要 */
.p-company-overview {
  position: relative;
  background: var(--color-white);
  margin-top: -80px;
  border-radius: var(--block-radius) var(--block-radius) 0 0;
  overflow: hidden;
  z-index: 3;
}

.p-company-overview__title {
  color: var(--color-primary-dark);
}

.p-company-overview__list {
  margin: 0 auto;
  max-width: 760px;
}

.p-company-overview__row {
  display: grid;
  grid-template-columns: 255px 1fr;
  gap: 0;
  padding: 25px 0;
  border-bottom: 1px solid #e0e0e0;
  align-items: start;
}

.p-company-overview__row:last-child {
  border-bottom: none;
}

.p-company-overview__row dt {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text);
}

.p-company-overview__row dd {
  margin: 0;
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.6;
}

.p-company-overview__row dd ul {
  margin: 0;
  list-style: none;
}

.p-company-overview__row dd ul li {
  position: relative;
  padding-left: 1em;
}

.p-company-overview__row dd ul li::before {
  content: "・";
  position: absolute;
  left: 0;
}

/* アクセス */
.p-company-access {
  background: var(--color-primary-dark);
  color: var(--color-white);
  margin-top: -80px;
  border-radius: var(--block-radius) var(--block-radius) 0 0;
  position: relative;
  z-index: 3;
}

.p-company-access__tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.p-company-access__tab {
  width: 540px;
  max-width: 50%;
  padding: 8px;
  border-radius: 5px 5px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.p-company-access__tab--active {
  background: var(--color-white);
  color: var(--color-primary-dark);
}

.p-company-access__panel {
  display: none;
}

.p-company-access__panel--active {
  display: block;
}

.p-company-access__panel[hidden] {
  display: none !important;
}

.p-company-access__map-wrap {
  margin-bottom: 40px;
}

.p-company-access__map {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  aspect-ratio: 1080 / 648;
  border-radius: 5px;
  overflow: hidden;
  background: #e0e0e0;
}

.p-company-access__map iframe {
  display: block;
}

.p-company-access__info {
  max-width: 1080px;
  margin: 0 auto;
}

.p-company-access__name {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.67;
  margin: 0 0 8px;
}

.p-company-access__address {
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 8px;
}

.p-company-access__address a {
  text-decoration: underline;
  color: var(--color-white);
}

.p-company-access__route {
  font-size: 14px;
  margin: 0;
}

.p-company-access__route-inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 1080px;
  margin: 0 auto;
}

.p-company-access__route-image {
  flex: 1;
  min-width: 0;
  border-radius: 5px;
  overflow: hidden;
}

.p-company-access__route-image img {
  width: 100%;
  height: auto;
  display: block;
}

.p-company-access__route-text {
  flex: 1;
  min-width: 0;
  color: var(--color-text);
  padding: 32px;
  background: var(--color-white);
  border-radius: 2px;
}

.p-company-access__route-text p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 8px;
}

.p-company-access__route-blue {
  color: #0071bd;
  font-weight: 600;
}

.p-company-access__route-pink {
  color: #EA5283;
  font-weight: 600;
}

.p-company-access__route-info {
  margin: 24px 0 0;
}

.p-company-access__route-info li {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
  color: var(--color-text);
  border-bottom: 1px solid #D9D9D9;
  padding-bottom: 8px;
  list-style: disc;
  list-style-position: inside;
}

.p-company-access__route-info li:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.p-company-access__route-note {
  font-size: 13px;
  opacity: 0.9;
  margin-left: 4px;
}

/* 沿革 */
.p-company-history {
  background: var(--color-white);
  margin-top: -80px;
  border-radius: var(--block-radius) var(--block-radius) 0 0;
  position: relative;
  z-index: 4;
}

.p-company-history__title {
  color: var(--color-primary-dark);
}

.p-company-history__timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.p-company-history__item {
  display: grid;
  grid-template-columns: 100px 50px 1fr;
  gap: 0 24px;
  align-items: start;
  padding-bottom: 48px;
  position: relative;
}

.p-company-history__item:last-child {
  padding-bottom: 0;
}

.p-company-history__item::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary-dark);
  margin-top: 25px;
  justify-self: center;
  position: relative;
  z-index: 1;
}

.p-company-history__item::after {
  content: "";
  position: absolute;
  left: calc(100px + 24px + 25px - 1px);
  top: 25px;
  bottom: -35px;
  width: 2px;
  background: #d0d0d0;
  z-index: 0;
}

.p-company-history__item:last-child::after {
  display: none;
}

.p-company-history__year {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.5;
  padding-top: 2px;
}


.p-company-history__content {
  grid-column: 3;
  position: relative;
  z-index: 1;
  margin-top: 12px;
}

.p-company-history__date {
  display: block;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 4px;
}

.p-company-history__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
}

/* ========== 採用情報（page-recruit） ========== */

/* 募集要項 */
.p-recruit-detail {
  position: relative;
  background: var(--color-white);
  margin-top: -80px;
  border-radius: var(--block-radius) var(--block-radius) 0 0;
  overflow: hidden;
  z-index: 3;
}

.p-recruit-detail__title {
  color: var(--color-primary-dark);
}

.p-recruit-detail__list {
  margin: var(--space-lg) auto 0;
  max-width: 760px;
}

.p-recruit-detail__row {
  display: grid;
  grid-template-columns: 255px 1fr;
  gap: 0;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
  align-items: start;
}

.p-recruit-detail__row:last-child {
  border-bottom: none;
}

.p-recruit-detail__row:first-child {
  padding-top: 0;
}

.p-recruit-detail__row dt {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text);
}

.p-recruit-detail__row dd {
  margin: 0;
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.56;
}

/* ========== 共通フォーム（Contact Form 7: c-form-*） ========== */
.c-form-note {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
}

.c-form-note__mark {
  color: #c9171e;
  font-weight: 700;
  font-size: 22px;
}

/* 採用フォーム：濃色背景のため注記を白（*マークは .c-form-note__mark で赤のまま） */
.p-recruit-form .c-form-note {
  color: var(--color-white) !important;
}

.c-form-group {
  margin-bottom: 48px;
}

.c-form-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.c-form-required {
  display: inline;
  flex-shrink: 0;
  margin-left: 2px;
  padding: 0;
  background: none;
  color: #c9171e;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.c-form-input,
.c-form-textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.c-form-input {
  height: 48px;
  padding: 0 16px;
}

.c-form-textarea {
  min-height: 200px;
  padding: 16px;
  resize: vertical;
}

.c-form-input:focus,
.c-form-textarea:focus {
  outline: none;
}

.c-form-submit {
  text-align: center;
  margin-top: 60px;
}

input.c-button.c-button--form,
button.c-button.c-button--form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 53px;
  padding: 18px 28px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-sizing: border-box;
  /* 濃色 → ホバーで白（よくある transition） */
  --c-form-btn-dur: 0.35s;
  color: var(--color-white);
  background-color: var(--color-primary);
  background-image: none;
  border: 1px solid var(--color-white);
  box-shadow: 0 2px 8px rgba(2, 51, 118, 0.25);
  transition:
    background-color var(--c-form-btn-dur) ease,
    color var(--c-form-btn-dur) ease,
    border-color var(--c-form-btn-dur) ease,
    box-shadow var(--c-form-btn-dur) ease;
}

input.c-button.c-button--form:hover,
button.c-button.c-button--form:hover {
  color: var(--color-primary-dark);
  background-color: var(--color-white);
  border-color: var(--color-primary-dark);
  box-shadow: 0 4px 16px rgba(0, 64, 152, 0.18);
}

@media (prefers-reduced-motion: reduce) {

  input.c-button.c-button--form,
  button.c-button.c-button--form {
    --c-form-btn-dur: 0.01ms;
  }
}

input.c-button.c-button--form:focus-visible,
button.c-button.c-button--form:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* お問い合わせ：明背景 */
.p-contact .c-form-label {
  color: var(--color-text);
}

.p-contact .c-form-input,
.p-contact .c-form-textarea {
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid #ccc;
}

.p-contact .c-form-input:focus,
.p-contact .c-form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 64, 152, 0.12);
}

/* 採用エントリー：暗背景 */
.p-recruit-form .c-form-label {
  color: var(--color-white);
}

.p-recruit-form .c-form-input,
.p-recruit-form .c-form-textarea {
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid #888;
}


/* CF7 ラッパー・検証メッセージ */
.p-contact .c-form-group .wpcf7-form-control-wrap,
.p-recruit-form .c-form-group .wpcf7-form-control-wrap {
  display: block;
}

.p-contact .wpcf7-not-valid-tip {
  color: #c9171e;
  font-size: 14px;
  margin-top: 8px;
}

.p-recruit-form .wpcf7-not-valid-tip {
  color: #ffb4b4;
  font-size: 14px;
  margin-top: 8px;
}

.p-contact .wpcf7-response-output,
.p-recruit-form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 16px;
  border-radius: 5px;
  font-size: 15px;
  line-height: 1.6;
}

.p-contact .wpcf7-response-output {
  border: 1px solid #ccc;
  background: #f9f9f9;
  color: var(--color-text);
}

.p-recruit-form .wpcf7-response-output {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.2);
  color: var(--color-white);
}

.p-contact .wpcf7-spinner,
.p-recruit-form .wpcf7-spinner {
  margin: 16px auto 0;
}

/* CF7 ラジオ・チェック：プラグイン既定の「全項目に margin-left」で先頭がずれるのを防ぐ */
.wpcf7 .wpcf7-list-item {
  display: inline-block;
  margin: 0;
}

.wpcf7 .wpcf7-list-item+.wpcf7-list-item {
  margin-left: 1em;
}

/* エントリーフォーム */
.p-recruit-form {
  background: var(--color-primary-dark);
  color: var(--color-white);
  margin-top: -80px;
  border-radius: var(--block-radius) var(--block-radius) 0 0;
  position: relative;
  z-index: 3;
}

.p-recruit-form__form,
.p-recruit-form__cf7 {
  max-width: 700px;
  margin: 0 auto;
}

.p-recruit-form__item {
  margin-bottom: 48px;
}

.p-recruit-form__label {
  display: block;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.p-recruit-form__required {
  display: inline-block;
  background: #c9171e;
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

.p-recruit-form__input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #888;
  border-radius: 5px;
  font-size: 16px;
}

.p-recruit-form__textarea {
  display: block;
  width: 100%;
  min-height: 200px;
  padding: 16px;
  border: 1px solid #888;
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
}

.p-recruit-form__radio-group {
  display: flex;
  gap: 32px;
  margin-top: 8px;
}

.p-recruit-form__radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.p-recruit-form__radio input {
  width: 20px;
  height: 20px;
}

.p-recruit-form__submit-wrap {
  text-align: center;
  margin-top: 60px;
}

.p-recruit-form__submit {
  min-width: 220px;
  height: 53px;
  font-size: 16px;
}

/* ========== お問い合わせ（page-contact） ========== */
.p-contact {
  background: var(--color-white);
  margin-top: -80px;
  border-radius: var(--block-radius) var(--block-radius) 0 0;
  position: relative;
  z-index: 3;
}

.p-contact__form {
  max-width: 700px;
  margin: 0 auto;
}

/* Contact Form 7：旧マークアップ用のフォールバック（class なし） */
.p-contact .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 8px;
}

.p-contact .wpcf7 input[type="text"]:not([class*="c-form-"]),
.p-contact .wpcf7 input[type="email"]:not([class*="c-form-"]),
.p-contact .wpcf7 input[type="tel"]:not([class*="c-form-"]),
.p-contact .wpcf7 input[type="url"]:not([class*="c-form-"]),
.p-contact .wpcf7 textarea:not([class*="c-form-"]) {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.p-contact .wpcf7 textarea:not([class*="c-form-"]) {
  min-height: 160px;
  resize: vertical;
}

.p-contact .wpcf7 input[type="submit"]:not([class*="c-button"]) {
  display: inline-block;
  min-width: 220px;
  min-height: 53px;
  padding: 14px 28px;
  background: linear-gradient(to bottom, var(--color-accent-light), var(--color-accent));
  color: var(--color-primary-dark);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity 0.25s ease, box-shadow 0.25s ease;
}

.p-contact .wpcf7 input[type="submit"]:not([class*="c-button"]):hover {
  opacity: 0.95;
  box-shadow: 0 4px 12px rgba(0, 64, 152, 0.2);
}

.p-contact__notice {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted);
}

/* ========== About Us ========== */
.p-about {
  background: var(--color-primary);
  color: var(--color-white);
}

.p-about__lead {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.p-about__desc {
  font-size: 22px;
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  opacity: 0.95;
}

.p-about__features {
  display: flex;
  gap: 80px;
  margin-bottom: var(--space-xl);
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.64);
  border-bottom: 1px solid rgba(255, 255, 255, 0.64);
}

.p-about__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  max-width: 480px;
}

.p-about__feature-img {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
}

.p-about__feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-about__feature-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.p-about__feature-text {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.8;
  margin: 0;
}

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

.p-about__card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.p-about__card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.p-about__card:hover {
  transform: translateY(-4px);
}

.p-about__card-img {
  width: 100%;
  height: 100%;
}

.p-about__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-about__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
}

.p-about__card-num {
  font-family: var(--font-script);
  font-size: 80px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
  margin-bottom: 4px;
}

.p-about__card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px 0;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.p-about__card-desc {
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.64;
  margin: 0;
}

/* ========== Service（白背景・カーブ） ========== */
.p-service {
  background: var(--color-white);
  position: relative;
  margin-top: -80px;
  border-radius: var(--block-radius) var(--block-radius) 0 0;
  z-index: 2;
}

/* ヘッダー：Serviceタイトル + 事業内容一覧を見る（Figma準拠） */
.p-service__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.p-service__pentagon {
  position: relative;
  max-width: 900px;
  margin: 0 auto 80px;
}

.p-service__pentagon-img {
  width: 100%;
  height: auto;
  display: block;
}

/* 主な取扱製品エリア：横余白なし・幅100%（l-container外に配置） */
.p-service__products-wrap {
  width: 100%;
  padding: 0;
  overflow-x: hidden;
}

.p-service__products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid rgba(0, 35, 118, 0.2);
  border-bottom: 1px solid rgba(0, 35, 118, 0.2);
  overflow: hidden;
}

.p-service__product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-right: 1px solid rgba(0, 35, 118, 0.2);
  border-bottom: 1px solid rgba(0, 35, 118, 0.2);
  background: var(--color-white);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.25s ease;
}

.p-service__product-item:nth-child(5n),
.p-service__product-item:last-child {
  border-right: none;
}

/* PC（5列）: 2行目＝6〜10番目は下枠なし（1行目は1〜5番目） */
.p-service__product-item:nth-child(n+6) {
  border-bottom: none;
}

.p-service__product-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.p-service__product-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.p-service__product-name {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-primary-dark);
  text-align: center;
}

/* グリッド内のヘッダーセル（主な取扱製品の例 + 製作事例リンクを1セルに、Figma準拠） */
.p-service__product-item--header {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.p-service__product-name--title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  text-decoration: underline;
  text-align: center;
}

.p-service__cases-link {
  color: var(--color-primary-dark);
  font-size: 14px !important;
}

.p-service__cases-icon {
  width: 30px;
  height: 30px;
}

/* ========== News & Instagram ========== */
.p-news-instagram {
  background: var(--color-primary-dark);
  margin-top: -80px;
  border-radius: var(--block-radius) var(--block-radius) 0 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

/* お知らせ一覧ページ（index / home）：白背景・上のみ大きな角丸（MVとのつなぎ） */
.p-news-archive.p-news-archive--light {
  background: var(--color-white);
  margin-top: -80px;
  border-radius: var(--block-radius) var(--block-radius) 0 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.p-news-archive--light .p-news {
  color: var(--color-text);
}

.p-news-archive--light .p-news__list {
  border-top-color: rgba(30, 30, 30, 0.12);
}

.p-news-archive--light .p-news__item {
  border-bottom-color: rgba(30, 30, 30, 0.12);
}

.p-news-archive--light .p-news__date,
.p-news-archive--light .p-news__date {
  color: var(--color-gray);
}

.p-news-archive--light .p-news__text {
  color: var(--color-text);
}

.p-news-archive--light .p-news__arrow {
  filter: none;
}

.p-news-archive--light .p-news-archive__nav .c-pagination__item a,
.p-news-archive--light .p-news-archive__nav .c-pagination__item span {
  border-color: rgba(2, 51, 118, 0.35);
  color: var(--color-primary-dark);
}

.p-news-archive--light .p-news-archive__nav .c-pagination__item a:hover {
  opacity: 0.75;
}

.p-news-archive--light .p-news-archive__nav .c-pagination__item .current {
  background: rgba(2, 51, 118, 0.12);
  border-color: var(--color-primary-dark);
}

/* Instagram が続かないブロック用の下余白（.p-news に c-section 併用時） */
.p-news-archive .p-news.c-section {
  padding-bottom: var(--section-padding-bottom) !important;
}

.p-news.c-section {
  padding-bottom: 0 !important;
}

.p-news {
  color: var(--color-white);
}

.p-instagram {
  color: var(--color-white);
}

.p-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.p-news__item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--font-sans);
}

/* フロント TOP 等：行全体リンクでない並び（子が time / a / img など） */
.p-news__item:not(:has(> .p-news__link)) {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 12px 0;
  transition: opacity 0.25s ease;
}

.p-news__item:not(:has(> .p-news__link)):hover {
  opacity: 0.8;
}

.p-news__link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 12px 12px;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  transition: background-color 0.25s ease;
}

/* TOP（青セクション）：ホバーで薄い白 */
.p-news-instagram .p-news a.p-news__link:hover {
  background-color: rgba(255, 255, 255, 0.14);
}

/* お知らせ一覧：ホバーで薄い青 */
.p-news-archive--light .p-news a.p-news__link:hover {
  background-color: rgba(0, 64, 152, 0.08);
}

.p-news__link--static {
  cursor: default;
  pointer-events: none;
}

.p-news__date {
  flex-shrink: 0;
  width: 158px;
  height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 18px;
  border-radius: 3px;
}

.p-news__text {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--color-white);
}

.p-news__arrow {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  filter: invert(1);
  /* 青背景で白表示 */
}

.p-news__more {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-lg);
}

/* TOP：お知らせ / Instagram「もっと見る」・事業内容「事業内容一覧を見る」— 下線常時表示・hover は左→右（opacity は共通 .c-link-arrow:hover） */
.p-news__more .c-link-arrow>span:first-child,
.p-instagram__more .c-link-arrow>span:first-child,
.c-link-arrow--primary .c-link-arrow__text {
  position: relative;
  display: inline-block;
  padding-bottom: 0.12em;
}

/* 共通 .c-link-arrow__text の underline をオフ（疑似要素下線に統一） */
.c-link-arrow--primary .c-link-arrow__text {
  text-decoration: none;
  text-underline-offset: 0;
}

.p-news__more .c-link-arrow>span:first-child::after,
.p-instagram__more .c-link-arrow>span:first-child::after,
.c-link-arrow--primary .c-link-arrow__text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(1);
  transform-origin: left center;
  transition: none;
}

/* 左端を基点に 0→1（視覚的に左から右へ線が走る） */
@keyframes c-link-arrow-underline-ltr {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.p-news__more .c-link-arrow:hover>span:first-child::after,
.p-instagram__more .c-link-arrow:hover>span:first-child::after,
.c-link-arrow--primary:hover .c-link-arrow__text::after {
  animation: c-link-arrow-underline-ltr 0.45s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {

  .p-news__more .c-link-arrow:hover>span:first-child::after,
  .p-instagram__more .c-link-arrow:hover>span:first-child::after,
  .c-link-arrow--primary:hover .c-link-arrow__text::after {
    animation: none;
  }
}

/* ========== お知らせ（投稿）詳細 ========== */
.p-news-single {
  background: var(--color-white);
}

/* MV直下：上のみ大きな角丸で重ねる（お知らせ一覧と同系統） */
.p-news-single.p-news-single--below-mv {
  margin-top: -80px;
  border-radius: var(--block-radius) var(--block-radius) 0 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.p-news-single--below-mv .p-news-single__article {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.p-news-single__inner {
  max-width: 900px;
  margin: 0 auto;
}

.p-news-single__article {
  background: var(--color-white);
}

.p-news-single__meta {
  margin-bottom: var(--space-md);
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(30, 30, 30, 0.12);
}

.p-news-single__date {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  color: var(--color-gray);
  font-family: var(--font-sans);
  font-size: 16px;
  margin-bottom: 15px;
}

/* MVに h1 があるため本文見出しは h2（お知らせ詳細） */
.p-news-single--below-mv .p-news-single__title {
  margin: var(--space-md) 0 0;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.45;
}

.p-news-single__thumb {
  margin: 0 0 var(--space-lg);
}

.p-news-single__thumb-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.p-news-single__body.entry-content {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-text);
}

.p-news-single__body.entry-content>*:first-child {
  margin-top: 0;
}

.p-news-single__body.entry-content>*:last-child {
  margin-bottom: 0;
}

.p-news-single__body.entry-content p {
  margin: 0 0 1.25em;
}

.p-news-single__body.entry-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.p-news-single__body.entry-content a:hover {
  opacity: 0.85;
}

.p-news-single__body.entry-content ul,
.p-news-single__body.entry-content ol {
  margin: 0 0 1.25em;
  padding-left: 1.5em;
}

.p-news-single__body.entry-content h2,
.p-news-single__body.entry-content h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 1.5em 0 0.75em;
  color: var(--color-primary-dark);
}

.p-news-single__body.entry-content h2 {
  font-size: 22px;
}

.p-news-single__body.entry-content h3 {
  font-size: 18px;
}

.p-news-single__body.entry-content img {
  max-width: 100%;
  height: auto;
}

.p-news-single__pages {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 14px;
  font-family: var(--font-sans);
}

.p-news-single__pages-label {
  font-weight: 600;
  margin-right: 8px;
}

.p-news-single__post-nav {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(30, 30, 30, 0.12);
}

.p-news-single__post-nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-md);
  align-items: center;
}

.p-news-single__post-nav-col--prev {
  justify-self: start;
}

.p-news-single__post-nav-col--center {
  justify-self: center;
  text-align: center;
}

.p-news-single__post-nav-col--next {
  justify-self: end;
}

.p-news-single__post-nav-link-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.p-news-single__post-nav-arrow {
  flex-shrink: 0;
  display: block;
}

.p-news-single__post-nav-text--short {
  display: none;
}

.p-news-single__post-nav-link {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

a.p-news-single__post-nav-link:hover {
  opacity: 0.82;
}

.p-news-single__post-nav-link.is-disabled {
  color: var(--color-gray);
  text-decoration: none;
  cursor: not-allowed;
  opacity: 0.45;
  pointer-events: none;
}

.p-news-single__post-nav-link--archive {
  font-weight: 600;
}

.p-news-single--generic {
  background: var(--color-white);
}

.p-news-single--generic .p-news-single__title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin: 0 0 var(--space-md);
  line-height: 1.4;
}

.p-instagram__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  /* Figma準拠：余白を広めに */
}

.p-instagram__item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.p-instagram__item:hover {
  transform: scale(1.02);
}

.p-instagram__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-instagram__more {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-lg);
}

/* Instagram Feed プラグイン（ショートコード [instagram-feed]） */
.p-instagram__embed {
  width: 100%;
}

/* ========== Recruit ========== */
.p-recruit {
  position: relative;
  background: var(--color-primary);
  overflow: hidden;
  margin-top: -80px;
  border-radius: var(--block-radius) var(--block-radius) 0 0;
  padding-bottom: calc(var(--section-padding-bottom) + 60px);
  /* footerとの余白を追加 */
  z-index: 5;
}

.p-recruit__bg {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  object-position: right top;
  pointer-events: none;
  z-index: 0;
}

.p-recruit__inner {
  position: relative;
  z-index: 1;
}

.p-recruit__content {
  margin-right: 500px;
}

.p-recruit__lead {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-white);
  margin: 0 0 var(--space-md) 0;
}

.p-recruit__desc {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 var(--space-lg) 0;
}

.p-recruit__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  perspective: 100px;
  -webkit-perspective: 100px;
}

.p-recruit__cta-icon svg {
  display: block;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.34, 1.15, 0.64, 1);
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.p-recruit__cta:hover .p-recruit__cta-icon svg,
.p-recruit__cta:focus-visible .p-recruit__cta-icon svg {
  transform: rotateY(360deg);
}

@media (prefers-reduced-motion: reduce) {
  .p-recruit__cta-icon {
    perspective: none;
    -webkit-perspective: none;
  }

  .p-recruit__cta-icon svg {
    transition: none;
    transform-style: flat;
    -webkit-transform-style: flat;
  }

  .p-recruit__cta:hover .p-recruit__cta-icon svg,
  .p-recruit__cta:focus-visible .p-recruit__cta-icon svg {
    transform: none;
  }
}

.p-recruit__images {
  position: absolute;
  top: 0;
  right: 0;
  width: 420px;
  height: 790px;
}

.p-recruit__img {
  position: absolute;
  overflow: hidden;
  border-radius: 80px 10px 10px 10px;
}

.p-recruit__img--small {
  z-index: 2;
  right: 0;
  top: -30px;
  width: 280px;
  height: 245px;
}

.p-recruit__img--large {
  z-index: 1;
  bottom: 300px;
  left: -30px;
  width: 80%;
  height: 325px;
}

.p-recruit__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== Footer ========== */
.p-footer {
  position: relative;
  background-color: var(--color-primary-dark);
  z-index: 6;
}

.p-footer__upper {
  padding: 0;
  margin-top: -80px;
  position: relative;
  z-index: 2;
}

.p-footer__upper-inner {
  display: flex;
  gap: 0;
  max-width: 1920px;
  margin: 0 auto;
}

.p-footer__left {
  flex: 1;
  max-width: 55%;
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
  position: relative;
  display: flex;
  flex-direction: column;
}

.p-footer__left::after {
  content: "";
  width: 100vw;
  height: calc(100% + 4.5rem);
  background-color: var(--color-gray-bg);
  border-radius: 0 270px 0 0;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -1;
  pointer-events: none;
}

.p-footer__logo {
  margin-bottom: 40px;
}

.p-footer__logo img {
  height: auto;
  max-height: 58px;
  max-width: 400px;
  width: auto;
}

.p-footer__address {
  font-size: 16px;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.p-footer__address a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.p-footer__tel-label {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.p-footer__tel-num {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.p-footer__tel-num a {
  transition: opacity 0.25s ease;
}

.p-footer__tel-num a:hover {
  opacity: 0.85;
}

.p-footer__contact-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 483px;
  padding: 24px;
  margin-top: var(--space-lg);
  background: var(--color-white);
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.p-footer__contact-btn:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.p-footer__instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-lg);
  font-size: 18px;
  color: var(--color-text-muted);
  text-decoration: underline;
}

.p-footer__instagram:hover {
  opacity: 0.8;
}

.p-footer__instagram-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.p-footer__right {
  flex: 1;
  min-width: 380px;
  background: var(--color-primary-dark);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 40px;
  align-content: flex-start;
}

.p-footer__nav-col {
  min-width: 180px;
}

.p-footer__nav-title-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.p-footer__nav-title-link:hover .p-footer__nav-title,
.p-footer__nav-title-link:focus-visible .p-footer__nav-title {
  opacity: 0.9;
}


.p-footer__nav-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-white);
  margin: 0 0 var(--space-xs);
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-footer__nav-links {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.8;
}

/* フッター・ハンバーガー：ホバー・フォーカスで下線が左から伸びる（見出しはタイトル文字のみ） */
.p-footer__nav-links a,
.l-hamburger-overlay__nav-links a,
.p-footer__nav-title-link .p-footer__nav-title>span:first-child,
.l-hamburger-overlay__nav-title-link .l-hamburger-overlay__nav-title>span:first-child {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition:
    color 0.25s ease,
    background-size 0.35s ease;
}

.p-footer__nav-links a {
  color: rgba(255, 255, 255, 0.8);
}

.l-hamburger-overlay__nav-links a {
  color: rgba(51, 51, 51, 0.8);
}

.p-footer__nav-links a:hover,
.p-footer__nav-links a:focus-visible {
  color: var(--color-white);
}

.l-hamburger-overlay__nav-links a:hover,
.l-hamburger-overlay__nav-links a:focus-visible {
  color: #333;
}

.p-footer__nav-links a:hover,
.p-footer__nav-links a:focus-visible,
.p-footer__nav-title-link:hover .p-footer__nav-title>span:first-child,
.p-footer__nav-title-link:focus-visible .p-footer__nav-title>span:first-child,
.l-hamburger-overlay__nav-links a:hover,
.l-hamburger-overlay__nav-links a:focus-visible,
.l-hamburger-overlay__nav-title-link:hover .l-hamburger-overlay__nav-title>span:first-child,
.l-hamburger-overlay__nav-title-link:focus-visible .l-hamburger-overlay__nav-title>span:first-child {
  background-size: 100% 1px;
}

@media (prefers-reduced-motion: reduce) {

  .p-footer__nav-links a,
  .l-hamburger-overlay__nav-links a,
  .p-footer__nav-title-link .p-footer__nav-title>span:first-child,
  .l-hamburger-overlay__nav-title-link .l-hamburger-overlay__nav-title>span:first-child {
    transition-duration: 0.01ms;
  }
}

.p-footer__nav-icon {
  width: 35px;
  height: 35px;
  text-decoration: none;
  justify-content: center;
}

.p-footer__nav-sep {
  margin: 0 4px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.p-footer__copyright {
  font-size: 10px;
  font-weight: 500;
  color: rgba(158, 158, 158, 0.64);
  letter-spacing: 0.5px;
  /* margin: var(--space-xl) 0 0 auto; */
  padding-top: var(--space-md);
}

/* ページトップ（Figma: 円形矢印ボタン） */
.p-footer__pagetop {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 30px 0 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
  text-align: center;
}

.p-footer__pagetop:hover {
  opacity: 0.85;
}

.p-footer__pagetop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.p-footer__pagetop-icon svg {
  display: block;
}

/* ========== スクロール演出用 ========== */
.js-fadein {
  opacity: 0;
  transform: translateY(120px);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-fadein.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* PCのみ：About カードを 01 → 02 → 03 の順にフェードイン（.js-fadein の transition より後に置く） */
@media screen and (min-width: 769px) {
  .p-about__cards .p-about__card.js-fadein:nth-child(1).is-visible {
    transition-delay: 0s;
  }

  .p-about__cards .p-about__card.js-fadein:nth-child(2).is-visible {
    transition-delay: 0.4s;
  }

  .p-about__cards .p-about__card.js-fadein:nth-child(3).is-visible {
    transition-delay: 0.8s;
  }
}

/* セクション単位（背景はアニメーションなし、内側の js-fadein のみスクロールでフェードイン） */
.js-section-fade {
  display: block;
}

/* ========== レスポンシブ（1か所に集約） ========== */
/* 1118px以下：ヘッダーはハンバーガーのみ（スマホ・タブレット）、MV画像オーバーレイ縮小 */
@media screen and (max-width: 1118px) {
  .l-header__nav {
    display: none;
  }

  .c-subpage-mv__img-overlay {
    top: 160px;
    right: 40px;
    width: min(500px, calc(100vw - 320px));
    max-width: 500px;
  }
}

/* 927px以下：c-subpage-mv__innerのパディング調整 */
@media screen and (max-width: 927px) {
  .c-subpage-mv__inner {
    padding: 0 40px;
  }
}

/* 830px以下：タイトル・画像オーバーレイを縮小 */
@media screen and (max-width: 830px) {
  .c-subpage-mv__title {
    font-size: 44px;
  }

  .c-subpage-mv__img-overlay {
    top: 180px;
    right: 30px;
    width: min(360px, calc(100vw - 120px));
    max-width: 360px;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --container-padding: 20px;
    --space-2xl: 64px;
    --section-padding-top: 64px;
    --section-padding-bottom: 160px;
    --block-radius: 40px;
  }

  .u-sp-only {
    display: block;
  }

  .c-page-title {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .l-header__inner {
    padding: 16px var(--container-padding);
  }

  .l-header__logo-img {
    max-width: 180px;
  }

  .l-header__right {
    gap: 0;
  }

  .l-hamburger-overlay__panel {
    max-width: 100%;
    border-radius: 80px 0 0 0;
  }

  .l-hamburger-overlay__content {
    padding: 100px var(--container-padding) 40px;
  }

  .l-hamburger-overlay__contact {
    padding: 24px var(--container-padding) 32px;
  }

  .l-hamburger-overlay__tel-num {
    font-size: 36px;
  }

  .p-hero {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: max(100px, calc(env(safe-area-inset-top, 0px) + 72px));
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    min-height: 100vh;
    min-height: 100dvh;
  }

  .p-hero__video,
  .p-hero__video-fallback {
    object-position: left center;
  }

  /* 下層ページ共通MV（SP） */
  .c-subpage-mv {
    min-height: 400px;
    padding: 80px 0;
    align-items: flex-start;
  }

  .c-subpage-mv__inner {
    padding: 0 40px;
    gap: 32px;
    justify-content: center;
  }

  .c-subpage-mv__content {
    align-items: center;
    gap: 5px;
  }

  .c-subpage-mv__title {
    font-size: 28px;
    letter-spacing: 0.08em;
    text-align: center;
  }

  .c-subpage-mv__breadcrumb {
    justify-content: center;
  }

  .c-breadcrumb {
    font-size: 12px;
  }

  .c-subpage-mv__img-overlay {
    top: 160px;
    right: 50%;
    transform: translateX(50%);
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 600 / 452;
  }

  /* 事業内容詳細（SP） */
  .p-service-detail {
    margin-top: -80px;
  }

  .p-service-detail__bg-deco-item {
    opacity: 0.06;
    min-height: 200px;
  }

  .p-detail__intro {
    padding-bottom: var(--space-sm);
  }

  .c-detail-lead {
    font-size: 14px;
    line-height: 1.9;
    text-align: center;
    margin: 40px auto 60px;
  }

  .p-service-detail__item {
    padding: 48px 0;
  }

  .p-service-detail__body {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 0;
  }

  .p-service-detail__item--img-right .p-service-detail__body {
    grid-template-columns: 1fr;
  }

  .p-service-detail__text {
    display: contents;
  }

  .p-service-detail__title {
    order: 1;
  }

  .p-service-detail__img-wrap {
    order: 2;
  }

  .p-service-detail__desc {
    order: 3;
  }

  .p-service-detail__item--img-right .p-service-detail__img-wrap {
    order: 2;
    grid-column: 1;
  }

  .p-service-detail__img-wrap {
    width: 100%;
    height: auto;
  }

  .p-service-detail__title {
    font-size: 20px;
    margin-bottom: 0;
  }

  .p-service-detail__desc {
    font-size: 14px;
    line-height: 1.75;
  }

  /* 設備ページ */
  .p-equipment-detail {
    margin-top: -80px;
  }

  .p-equipment-detail__item {
    padding: 48px 0;
  }

  .p-equipment-detail__items {
    margin: 0;
    padding: 0;
  }

  .p-equipment-detail__body {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .p-equipment-detail__text {
    display: contents;
  }


  .p-equipment-detail__body .c-equipment-table,
  .p-equipment-detail__body .p-equipment-detail__desc,
  .p-equipment-detail__body .p-equipment-detail__subtitle {
    order: 3;
  }

  .p-equipment-detail__item--img-right .p-equipment-detail__body {
    grid-template-columns: 1fr;
  }

  .p-equipment-detail__img-wrap {
    order: 2;
    width: 100%;
    max-height: 300px;
    height: auto;
    aspect-ratio: 324 / 444;
    margin: 0 auto;
  }

  .p-equipment-detail__title {
    order: 1;
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--color-primary-dark);
  }

  .p-equipment-detail__desc,
  .p-equipment-detail__subtitle {
    font-size: 14px;
  }

  .p-equipment-detail__subtitle {
    margin-bottom: 0;
  }

  .c-equipment-table {
    font-size: 14px;
  }

  .c-equipment-table th,
  .c-equipment-table td {
    padding: 8px;
    font-size: 14px;
  }

  .p-equipment-products__materials {
    margin-top: 90px;
  }

  .p-equipment-products__box {
    padding: var(--space-md);
  }

  .p-equipment-products__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .p-equipment-products__caption {
    padding: 5px;
  }

  .p-equipment-products__card-title {
    margin-bottom: 0;
    line-height: 1;
  }

  .p-case-modal {
    padding: var(--space-sm);
  }

  .p-case-modal__title {
    font-size: 18px;
    padding-right: 40px;
  }

  .p-case-modal__body {
    padding: var(--space-md) var(--space-sm);
  }

  .p-equipment-products__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .p-equipment-factory__slider {
    padding: 0 36px;
  }

  .p-equipment-factory__arrow {
    width: 60px;
    height: 60px;
  }

  .p-equipment-factory__arrow svg {
    width: 18px;
    height: 18px;
  }

  .p-equipment-factory__arrow--prev {
    left: 36px;
  }

  .p-equipment-factory__arrow--next {
    right: 36px;
  }

  .p-equipment-factory__img-wrap {
    aspect-ratio: 513 / 385;
  }

  /* 会社情報ページ */
  .p-company-overview__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  .p-company-access__tab {
    width: 50%;
    font-size: 16px;
    padding: 12px;
  }

  .p-company-access__map-wrap {
    margin-bottom: 20px;
  }

  .p-company-access__route-inner {
    flex-direction: column;
    gap: 24px;
  }

  .p-company-history__item {
    grid-template-columns: 60px 20px 1fr;
    gap: 0 16px;
    padding-bottom: 32px;
  }

  .p-company-history__item::before {
    margin-top: 18px;
  }

  .p-company-history__item::after {
    left: 85px;
    bottom: -30px;
  }

  .p-company-history__year {
    font-size: 28px;
  }

  /* 採用情報ページ */
  .p-recruit-detail__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }

  .p-recruit-detail__row dd {
    font-size: 16px;
  }

  .p-recruit-form__item {
    margin-bottom: 32px;
  }

  .c-form-group {
    margin-bottom: 32px;
  }

  .c-form-note__mark,
  .c-form-required {
    font-size: 20px;
  }

  .c-form-textarea {
    min-height: 160px;
  }

  .c-form-submit {
    margin-top: 40px;
  }

  input.c-button.c-button--form,
  button.c-button.c-button--form {
    width: 100%;
    max-width: 100%;
  }

  .p-recruit-form__radio-group {
    flex-direction: column;
    gap: 16px;
  }

  .c-section-title__en {
    font-size: 40px;
  }

  .c-section-title__jp {
    font-size: 16px;
  }

  .p-about__features {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .p-about__feature {
    max-width: 100%;
  }

  .p-about__feature-img {
    width: 100px;
    height: 100px;
  }

  .p-about__lead {
    font-size: 28px;
  }

  .p-about__desc {
    font-size: 20px;
  }

  .p-about__cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .p-about__card {
    justify-self: center;
    aspect-ratio: 4 / 5;
  }

  .p-service {
    margin-top: -60px;
  }

  .p-service__header {
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
  }

  .p-service__products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .p-service__product-item {
    padding: var(--space-md);
  }

  /* 2列：PC用の「6〜10番目 下枠なし」を上書き。6〜8は下枠あり、最終行9〜10のみなし */
  .p-service__product-item:nth-child(n+6):nth-child(-n+8) {
    border-bottom: 1px solid rgba(0, 35, 118, 0.2);
  }

  .p-service__product-item:nth-child(n+9) {
    border-bottom: none;
  }

  /* 2列表示：右列（2n）は右枠なし、左列の5番目は右枠あり（5nルールを上書き） */
  .p-service__product-item:nth-child(5n):not(:nth-child(2n)) {
    border-right: 1px solid rgba(0, 35, 118, 0.2);
  }

  .p-service__product-item:nth-child(2n) {
    border-right: none;
  }

  .p-service__cases-link {
    font-size: 12px !important;
  }

  .p-service__cases-icon {
    width: 30px;
    height: 30px;
  }

  .p-service__product-name--title {
    font-size: 20px;
  }

  /* .p-service__product-icon {
    width: 80px;
    height: 80px;
  } */

  .p-service__product-name {
    font-size: 16px;
  }

  .p-news-instagram {
    margin-top: -20px;
  }

  .p-news-archive.p-news-archive--light {
    margin-top: -60px;
  }

  .p-news-single.p-news-single--below-mv {
    margin-top: -60px;
  }

  .p-news__item:not(:has(> .p-news__link)) {
    flex-wrap: wrap;
    gap: 12px;
  }

  .p-news__link {
    flex-wrap: wrap;
    gap: 12px;
  }

  .p-news__date {
    width: auto;
    height: auto;
    padding: 8px 16px;
    font-size: 16px;
  }

  .p-news-single__article {
    padding: var(--space-md) var(--space-sm);
  }

  .p-news-single__date {
    min-width: auto;
    min-height: auto;
    padding: 0 0 20px;
    font-size: 16px;
  }

  .p-news-single--below-mv .p-news-single__title {
    font-size: 22px;
  }

  /* 1行目: 前のページ | 次のページ　2行目: お知らせ一覧に戻る */
  .p-news-single__post-nav-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: var(--space-md) var(--space-xs);
    align-items: center;
  }

  .p-news-single__post-nav-col--prev {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    text-align: left;
  }

  .p-news-single__post-nav-col--next {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    text-align: right;
  }

  .p-news-single__post-nav-col--center {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    text-align: center;
  }

  .p-news-single__post-nav-text--full {
    display: none;
  }

  .p-news-single__post-nav-text--short {
    display: inline;
  }

  .p-news-single__post-nav-link {
    font-size: 14px;
  }

  .p-news-single--generic .p-news-single__title {
    font-size: 22px;
  }

  .c-link-arrow {
    font-size: 18px;
  }

  .c-link-arrow__text {
    font-size: 14px !important;
  }

  .c-link-arrow__icon--lg {
    width: 30px;
    height: 30px;
  }

  .p-instagram__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .p-recruit {
    margin-top: -60px;
    padding-bottom: var(--section-padding-bottom);
  }

  .p-recruit__content {
    margin-right: 0;
  }

  .p-recruit__lead {
    font-size: 36px;
  }

  .p-recruit__images {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .p-recruit__img--small {
    position: relative;
    z-index: 2;
    width: 65%;
    align-self: flex-end;
    margin-left: auto;
    margin-top: 0;
    right: auto;
  }

  .p-recruit__img--large {
    position: relative;
    z-index: 1;
    bottom: 80px;
    left: 0;
    width: 95%;
  }

  .p-footer__upper {
    flex-direction: column;
    margin-top: -40px;
  }

  .p-footer__upper-inner {
    flex-direction: column;
  }

  .p-footer__left {
    max-width: 100%;
    padding: 0 var(--space-md) var(--space-xl);
  }

  .p-footer__left::after {
    border-radius: 0 80px 0 0;
  }

  .p-footer__logo img {
    max-width: 250px;
  }

  .p-footer__tel-num {
    font-size: 32px;
  }

  .p-footer__right {
    min-width: 100%;
    padding: var(--space-xl) var(--space-md);
    border-radius: 0 80px 0 0;
  }

  .p-footer__nav-title {
    margin-bottom: var(--space-xs);
  }

  .p-footer__nav-icon {
    width: 32px;
    height: 32px;
  }

  .p-footer__pagetop {
    width: 80px;
    height: 80px;
  }

  .p-footer__pagetop-icon svg {
    width: 25px;
  }

  .p-footer__pagetop span:not(.p-footer__pagetop-icon) {
    display: none;
  }
}
