/*
  株式会社たつみ コーポレートサイト 共通スタイル
*/

/* =============================================
   VARIABLES
============================================= */
:root {
  --color-primary:      #1A1A1A;
  --color-accent:       #CC1414;
  --color-accent-dark:  #a50f0f;
  --color-bg:           #FFFFFF;
  --color-bg-soft:      #F8F8F8;
  --color-bg-dark:      #1E2A3A;
  --color-text:         #222222;
  --color-muted:        #222222;
  --color-border:       #E5E7EB;
  --color-white:        #FFFFFF;

  --font-sans: 'Noto Sans JP', sans-serif;

  --container-max: 1080px;
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 6px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.12);

  --transition: .25s ease;
}

/* =============================================
   RESET / BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* =============================================
   TYPOGRAPHY
============================================= */
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.2; letter-spacing: .04em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.3; letter-spacing: .04em; font-weight: 700; }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.4; font-weight: 700; }
p  { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* =============================================
   LAYOUT
============================================= */
.container {
  width: min(100% - 80px, var(--container-max));
  margin-inline: auto;
}
/* SPのみ有効になる改行 */
.br-sp { display: none; }
@media (max-width: 767px) {
  .br-sp { display: inline; }
}
.section { padding-block: 6rem; }
.section:has(+ .cta-section) { padding-bottom: 12rem; }
.section--soft { background: var(--color-bg-soft); }
.section--dark { background: var(--color-bg-dark); color: var(--color-white); }
.section--accent { background: var(--color-accent); color: var(--color-white); }
.text-accent { color: var(--color-accent); font-weight: 700; }

/* =============================================
   SECTION HEADING
============================================= */
.section-head { text-align: center; margin-bottom: 4rem; }
.section-head .en-label {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .875rem;
}
.section-head .en-label::before,
.section-head .en-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
}
.section--dark .section-head .en-label { color: rgba(255,255,255,.5); }
.section-head h2 { margin-bottom: .75rem; }
.section-head .lead {
  color: var(--color-muted);
  font-size: .9375rem;
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.85;
}
.section--dark .section-head .lead { color: rgba(255,255,255,.55); }
.section-head--left { text-align: left; }
.section-head--left .en-label::before { display: none; }

/* grids */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.split  { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }

/* =============================================
   CARD
============================================= */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: rgba(204,20,20,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 1.375rem; height: 1.375rem; stroke: var(--color-accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* =============================================
   BUTTON
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 3rem;
  padding: 0 2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .04em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn--primary  { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-dark); }
.btn--outline  { background: transparent; border: 2px solid var(--color-accent); color: var(--color-accent); }
.btn--outline:hover { background: var(--color-accent); color: #fff; }
.btn--white    { background: #fff; color: var(--color-primary); }
.btn--white:hover { background: #f0f0f0; }
.btn--dark     { background: var(--color-primary); color: #fff; }
.btn--dark:hover { background: #333; }
.btn--lg { min-height: 3.5rem; padding: 0 2.5rem; font-size: 1rem; }
.btn svg { width: 1em; height: 1em; }
.btn-icon { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; border-radius: 50%; order: 1; }

/* arrow decoration */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: .04em;
  transition: gap var(--transition);
}
.btn-arrow:hover { gap: .875rem; }
.btn-arrow::after {
  content: '→';
  font-size: 1em;
}

/* =============================================
   HEADER
============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: #111111;
  border-bottom: 3px solid var(--color-accent);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.3); }
.site-header .container,
.site-footer .container { width: 90%; max-width: none; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo img { height: 48px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 0; }
.site-nav a {
  position: relative;
  color: #fff;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .06em;
  padding: .375rem .9rem;
  transition: color var(--transition);
  white-space: nowrap;
}
.site-nav a:hover { color: rgba(255,255,255,.65); }
.site-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}
.site-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.15);
  margin-inline: .25rem;
}
.nav-cta-wrap { display: flex; gap: .5rem; margin-left: 3.5rem; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  margin-left: 1.5rem;
  padding: 0 1.125rem;
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  background: var(--color-accent);
  color: #fff;
  transition: background var(--transition);
}
.nav-cta,
.site-nav .nav-cta { color: #fff; }
.nav-cta:hover { background: var(--color-accent-dark); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: var(--transition);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0;
  width: 100%;
  height: calc(100dvh - 68px);
  background: var(--color-bg-dark);
  z-index: 999;
  padding: 1.5rem;
  overflow-y: auto;
  flex-direction: column;
}
.mobile-menu.is-open {
  display: flex;
  animation: mobileMenuIn .3s ease both;
}
@keyframes mobileMenuIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}
.mobile-menu a {
  display: block;
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  font-weight: 600;
  padding: .875rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  letter-spacing: .06em;
  transition: color var(--transition);
}
.mobile-menu a:hover { color: #fff; }
.mobile-menu .mobile-cta {
  margin-top: 1.5rem;
  background: var(--color-accent);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-sm);
  padding: .875rem;
  border-bottom: none;
  font-weight: 700;
}

/* =============================================
   HERO
============================================= */
.hero {
  background: var(--color-white);
  padding-top: calc(68px + clamp(24px, 4vw, 56px));
  padding-bottom: clamp(24px, 4vw, 56px);
  position: relative;
}

.hero-frame {
  position: relative;
  margin-left: clamp(32px, 5vw, 72px);
  margin-right: 56px;
  height: clamp(400px, calc(100svh - 68px - 2 * clamp(24px, 4vw, 56px)), 920px);
  overflow: hidden;
  border-radius: 16px;
  background: #0d0d0d;
}

.hero-bg-slider {
  position: absolute; inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute; inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 5s ease;
}

.hero-bg-slide.is-active { opacity: 1; }

.hero-bg-slide--1 { background-image: url('../images/hero-01.webp'); }
.hero-bg-slide--2 { background-image: url('../images/hero-02.webp'); }
.hero-bg-slide--3 { background-image: url('../images/hero-03.webp'); }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.22) 100%);
  z-index: 1;
}

.hero-accent-bar {
  position: absolute;
  right: 0;
  top: calc(68px + clamp(24px, 4vw, 56px));
  bottom: clamp(24px, 4vw, 56px);
  width: 56px;
  background: var(--color-accent);
  z-index: 2;
}

.hero-mark {
  position: absolute;
  right: clamp(2.5rem, 6vw, 5rem);
  bottom: clamp(2rem, 5vw, 4rem);
  width: clamp(180px, 27vw, 390px);
  height: auto;
  fill: var(--color-accent);
  opacity: .55;
  z-index: 2;
  pointer-events: none;
  animation: hero-mark-float 5s ease-in-out infinite;
}

@keyframes hero-mark-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark { animation: none; }
}

.hero-content {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(2rem, 5vw, 4rem);
}

.hero-eyebrow-ja {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero-eyebrow-ja::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  font-weight: 900;
}
.hero-title-en,
.hero-title-ja {
  display: block;
  position: relative;
  width: fit-content;
  max-width: 100%;
}
.hero-h1-outline {
  display: block;
  height: clamp(3rem, 8vw, 7rem);
  width: auto;
  max-width: 100%;
  overflow: visible;
  animation: heroTitleReveal 1.1s ease both;
}
.hero-h1-outline text {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 84px;
  letter-spacing: -0.01em;
}
/* タイトル英語部分を横切る帯アニメーション（帯が通り過ぎて文字が現れる） */
.hero-title-band {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--color-accent);
  animation: heroBandPass 1.1s ease both;
}
.hero-title-en .hero-title-band { top: 16%; bottom: 16%; }
/* your factory! は少し遅れて続く */
.hero-h1-solid { animation: heroTitleReveal 1.1s ease .3s both; }
.hero-title-ja .hero-title-band { animation-delay: .3s; }
/* PCは1本の帯、SPは行ごとの帯（.hero-title-band--sp）に切り替える */
.hero-title-line { display: inline-block; position: relative; }
.hero-title-band--sp { display: none; }
@keyframes heroBandPass {
  0%        { left: 0;    width: 0; }
  50%, 51%  { left: 0;    width: 100%; }
  100%      { left: 100%; width: 0; }
}
@keyframes heroTitleReveal {
  0%, 50% { opacity: 0; }
  100%    { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-h1-outline,
  .hero-h1-solid { animation: none; opacity: 1; }
  .hero-title-band { display: none; animation: none; }
}
.hero-h1-solid {
  display: block;
  color: var(--color-accent);
  -webkit-text-stroke: 0;
}
.hero-body {
  font-size: clamp(.875rem, 1.2vw, 1rem);
  color: rgba(255,255,255,.8);
  line-height: 1.95;
  max-width: 480px;
}

/* =============================================
   NEWS TICKER
============================================= */
.news-ticker {
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  padding-block: .875rem;
}
.news-ticker-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.news-ticker-label {
  flex-shrink: 0;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-accent);
  padding: .2rem .75rem;
  border-radius: var(--radius-sm);
}
.news-ticker-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .875rem;
  overflow: hidden;
}
.news-ticker-item .date { color: var(--color-muted); flex-shrink: 0; }
.news-ticker-item .title {
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================
   STATS BAR
============================================= */
.stats-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding-block: 2.75rem;
}
.stats-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stats-item {
  text-align: center;
  padding: 0 2rem;
  border-right: 1px solid var(--color-border);
}
.stats-item:last-child { border-right: none; }
.stats-num {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  display: block;
}
.stats-num em {
  font-style: normal;
  font-size: .4em;
  font-weight: 500;
  color: var(--color-muted);
  vertical-align: baseline;
}
.stats-label {
  font-size: .8rem;
  color: var(--color-muted);
  margin-top: .5rem;
  letter-spacing: .04em;
}

/* =============================================
   LOCATIONS BAR
============================================= */
.locations-bar {
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  padding-block: 3rem;
}
.locations-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.location-item {
  padding: 0 2.5rem;
  border-right: 1px solid var(--color-border);
}
.location-item:first-child { padding-left: 0; }
.location-item:last-child  { border-right: none; }
.location-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid rgba(204,20,20,.4);
  padding: .15rem .6rem;
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
}
.location-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: .5rem;
  letter-spacing: .04em;
}
.location-address {
  font-size: .8375rem;
  color: var(--color-muted);
  line-height: 1.75;
  font-style: normal;
}

@media (max-width: 767px) {
  .locations-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .location-item {
    padding: 1.25rem 0;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .location-item:last-child { border-bottom: none; }
}

/* =============================================
   ABOUT SPLIT
============================================= */
.about-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}
.about-tag::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
}
.about-lead {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}
.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1A1A1A 0%, #CC1414 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.2);
  font-size: .75rem;
  letter-spacing: .1em;
}
.about-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* スクロールフェードイン（画像用） */
.fade-in-img {
  opacity: 0;
  transform: translateY(32px) scale(.98);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in-img.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.about-visual { position: relative; }
.about-badge {
  position: absolute;
  bottom: -1.25rem; left: -1.25rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
}
.about-badge .num {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}
.about-badge .num em { font-style: normal; font-size: .5em; font-weight: 500; color: var(--color-muted); }
.about-badge .lbl { font-size: .75rem; color: var(--color-muted); margin-top: .25rem; }

/* =============================================
   STRENGTH CARDS
============================================= */
.strength-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.strength-card-illust {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(200px, 68%);
  aspect-ratio: 1;
  margin-bottom: 1.5rem;
  padding: 2rem;
  background: var(--color-accent);
  border-radius: 50%;
  transition: transform var(--transition), box-shadow var(--transition);
}
.strength-card:hover .strength-card-illust {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(204, 20, 20, .25);
}
.strength-card-illust img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
.strength-card-body {
  padding: 0 .5rem;
}
.strength-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: .625rem;
  font-family: Georgia, serif;
}
.strength-card h3 { font-size: 1.05rem; margin-bottom: .75rem; }
.strength-card p  { font-size: .875rem; color: var(--color-muted); margin: 0; line-height: 1.8; }
.strength-card p.strength-statement {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.55;
  margin: 0;
  letter-spacing: .01em;
}

/* =============================================
   SERVICE CARDS
============================================= */
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1A1A1A 0%, #CC1414 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.2);
  font-size: .75rem;
  letter-spacing: .1em;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body {
  padding: 1.125rem 1.25rem;
  background: var(--color-primary);
  border-bottom: 4px solid var(--color-accent);
}
.service-card-body h3 {
  font-size: 1rem;
  margin: 0;
  color: var(--color-white);
  text-align: center;
  letter-spacing: .04em;
}

/* TOP事業内容: 5枚を3列で並べ、端数行は中央寄せ */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.services-grid .service-card { width: calc((100% - 4rem) / 3); }
@media (max-width: 1023px) {
  .services-grid .service-card { width: calc((100% - 2rem) / 2); }
}
@media (max-width: 767px) {
  .services-grid { gap: 1.25rem; }
  .services-grid .service-card { width: 100%; }
}

/* =============================================
   PHILOSOPHY BAND
============================================= */
.philosophy-band {
  background:
    linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)),
    url('../images/philosophy-bg.webp') center / cover no-repeat;
  border-top: 4px solid var(--color-accent);
  padding-block: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.philosophy-band .en-label { color: var(--color-white); }
.philosophy-band h2        { color: var(--color-white); }
.philosophy-band p         { color: var(--color-white) !important; }
.philosophy-text {
  background: rgba(204,20,20,.88);
  padding: 2.5rem 3rem;
  border-radius: 8px;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  max-width: 680px;
  margin-inline: auto;
}
.philosophy-quote {
  position: relative;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.4;
  color: var(--color-white);
  max-width: 660px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  font-weight: 700;
}
.philosophy-quote::before {
  content: '';
  display: block;
  width: 36px; height: 3px;
  background: var(--color-white);
  margin: 0 auto 2rem;
}

/* =============================================
   NEWS SECTION
============================================= */
.news-grid { display: grid; grid-template-columns: 320px 1fr; gap: 4rem; align-items: start; }
.news-list  { display: flex; flex-direction: column; }
.news-item  {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition);
  cursor: pointer;
}
.news-item:first-child { border-top: 1px solid var(--color-border); }
.news-item:hover .news-title { color: var(--color-accent); }
.news-date  { font-size: .8rem; color: var(--color-muted); flex-shrink: 0; white-space: nowrap; }
.news-tag   {
  font-size: .7rem; font-weight: 700;
  padding: .1rem .55rem;
  border-radius: 100px;
  background: rgba(204,20,20,.08);
  color: var(--color-accent);
  flex-shrink: 0;
}
.news-title { font-size: .9rem; font-weight: 500; line-height: 1.5; }

/* =============================================
   SNS BANNER
============================================= */
.sns-banner {
  background: var(--color-bg);
  padding-block: 4rem;
}
.sns-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 3rem;
  flex-wrap: wrap;
  background: var(--color-white);
  border: 2px solid var(--color-accent);
  border-radius: 20px;
  padding: 3rem 3.5rem;
}
.sns-banner-text {
  flex: 1 1 300px;
  min-width: 0;
}
.sns-banner-en {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--color-accent);
  margin-bottom: .25rem;
}
.sns-banner-title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: .5rem;
  color: var(--color-text);
}
.sns-banner-lead {
  font-size: .9rem;
  color: var(--color-muted);
  margin-bottom: 0;
}
.sns-banner-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.sns-btn {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  min-height: 48px;
  padding: .75rem 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.sns-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.sns-btn-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.sns-btn-icon svg { width: 100%; height: 100%; display: block; }
.sns-btn-name {
  display: block;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.35;
}
.sns-btn-id {
  display: block;
  font-size: .78rem;
  color: var(--color-muted);
  line-height: 1.35;
}

/* =============================================
   CTA SECTION
============================================= */
.cta-section {
  background: var(--color-accent);
  padding-block: 5.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: 'CONTACT';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 9rem;
  font-weight: 700;
  color: rgba(255,255,255,.18);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: .15em;
}
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section .cta-lead { color: rgba(255,255,255,.85); font-size: 1rem; margin-bottom: 2.5rem; line-height: 1.9; }
.cta-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* =============================================
   PAGE HERO
============================================= */
.page-hero {
  background:
    linear-gradient(135deg, #233141 0%, var(--color-bg-dark) 45%, #131c26 100%);
  padding: 8rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
/* 斜めの赤アクセント帯（右端エッジ） */
.page-hero::before {
  content: '';
  position: absolute;
  top: -10%; bottom: -10%;
  right: -40px;
  width: 120px;
  background: var(--color-accent);
  transform: skewX(-14deg);
  box-shadow: -36px 0 0 rgba(255,255,255,.05);
}
/* ブランドマークの透かし */
.page-hero::after {
  content: '';
  position: absolute;
  right: clamp(1.5rem, 7vw, 7rem);
  bottom: 50%;
  transform: translateY(55%);
  width: clamp(120px, 16vw, 210px);
  aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M22 9H15V22H0V7H13V0H22V9Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: .08;
}
.page-hero .breadcrumb {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  margin-bottom: .875rem;
  letter-spacing: .04em;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.5); }
.page-hero .breadcrumb a:hover { color: rgba(255,255,255,.8); }
.page-hero .en-label {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .5rem;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  position: relative;
  padding-left: 1.5rem;
}
.page-hero h1::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 1.1em;
  background: var(--color-accent);
  border-radius: 3px;
}

/* =============================================
   PHILOSOPHY TITLE (赤黒グラデ・明朝体・FVと同じ帯アニメ)
============================================= */
.philosophy-title {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 1.75rem;
}
.philosophy-title-text {
  display: inline-block;
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', serif;
  font-weight: 900;
  background: linear-gradient(105deg, var(--color-accent) 0%, #a81010 50%, #700a0a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroTitleReveal 1.1s ease both;
}
.philosophy-title .hero-title-band {
  top: 8%;
  bottom: 8%;
}
@media (prefers-reduced-motion: reduce) {
  .philosophy-title-text { animation: none; opacity: 1; }
  .philosophy-title .hero-title-band { display: none; }
}

/* =============================================
   PAGE CONTENT
============================================= */
.page-content { padding-block: 5rem; }
.page-content h2 { margin-bottom: 1rem; padding-top: 2.5rem; }
.page-content h2:first-child { padding-top: 0; }
.page-content h3 { margin-bottom: .75rem; margin-top: 2rem; }
.page-content p  { color: var(--color-muted); line-height: 1.9; }

/* =============================================
   TABLE
============================================= */
.info-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--color-border); }
.info-table th,
.info-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: .9375rem;
  vertical-align: top;
  line-height: 1.7;
}
.info-table th {
  width: 180px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-bg-soft);
  white-space: nowrap;
}
.info-table td { color: var(--color-muted); }

/* =============================================
   COMPANY PHOTOS
============================================= */
.company-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.company-photos img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* =============================================
   BUSINESS PAGE
============================================= */

/* イントロ */
.biz-intro {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  padding: 1rem 0;
}
.biz-intro-catch {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1.25rem;
}
.biz-intro-body {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.9;
}

/* サービス 交互レイアウト（エディトリアル型） */
.biz-services { overflow: hidden; }

.biz-service-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
  margin-bottom: clamp(4.5rem, 9vw, 7rem);
}
.biz-service-item:last-of-type { margin-bottom: 0; }
.biz-service-item--rev { direction: rtl; }
.biz-service-item--rev > * { direction: ltr; }

/* 画像 ＋ 赤のオフセットフレーム ＋ 巨大ナンバー */
.biz-service-img {
  position: relative;
  aspect-ratio: 16 / 10;
}
.biz-service-img::before {
  content: '';
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  border-radius: var(--radius-lg);
  transform: translate(-1.25rem, -1.25rem);
  transition: transform .8s cubic-bezier(.22, 1, .36, 1) .35s;
}
.biz-service-item--rev .biz-service-img::before {
  inset: 1.25rem 1.25rem -1.25rem -1.25rem;
  transform: translate(1.25rem, -1.25rem);
}
.biz-service-item.is-visible .biz-service-img::before { transform: none; }
.biz-service-img img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.biz-service-num {
  position: absolute;
  z-index: 2;
  top: -.72em;
  left: -.35rem;
  font-family: Georgia, serif;
  font-size: clamp(4.25rem, 8.5vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 2px var(--color-accent);
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transform: translateY(.3em);
  transition: opacity .6s ease .55s, transform .6s cubic-bezier(.22, 1, .36, 1) .55s;
}
.biz-service-item--rev .biz-service-num {
  left: auto;
  right: -.35rem;
}
.biz-service-item.is-visible .biz-service-num {
  opacity: 1;
  transform: none;
}

/* テキスト側 */
.biz-service-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.biz-service-en {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.125rem;
}
.biz-service-en::before {
  content: '';
  width: 34px;
  height: 2px;
  background: currentColor;
}
.biz-service-name {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.45;
  margin-bottom: 1.125rem;
}
.biz-service-catch {
  position: relative;
  width: 100%;
  font-size: .9375rem;
  color: var(--color-muted);
  line-height: 1.8;
  padding-top: 1.125rem;
  border-top: 1px solid var(--color-border);
  margin: 0 0 1.375rem;
}
.biz-service-catch::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-accent);
  transition: width .6s cubic-bezier(.22, 1, .36, 1) .7s;
}
.biz-service-item.is-visible .biz-service-catch::before { width: 48px; }
.biz-service-index {
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--color-text);
}
.biz-service-index span {
  font-size: .8125rem;
  color: #9CA3AF;
  font-weight: 400;
}

/* 対応素材 */
.biz-materials {
  padding-block: 2.25rem;
}
.biz-materials .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  background: var(--color-accent);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
}
.biz-materials-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: #fff;
  white-space: nowrap;
}
.biz-materials-label::after {
  content: '▶';
  font-size: .75em;
  line-height: 1;
}
.biz-materials-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  list-style: none;
  margin: 0; padding: 0;
}
.biz-materials-list li {
  font-size: 1.0625rem;
  color: #fff;
  font-weight: 600;
  position: relative;
  padding-left: 1rem;
}
.biz-materials-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
}

/* 注文フロー */
.biz-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.biz-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: .625rem;
}
.biz-flow-label {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--color-accent);
  font-family: Georgia, serif;
  line-height: 1.4;
  margin: 0 0 .875rem;
}
.biz-flow-icon-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}
.biz-flow-step + .biz-flow-step .biz-flow-icon-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -50%;
  width: 100%;
  border-top: 3px dotted var(--color-accent);
  transform: translateY(-50%);
}
.biz-flow-icon {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  display: grid;
  place-items: center;
}
.biz-flow-icon svg {
  width: 36px;
  height: 36px;
}
.biz-flow-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 1rem 0 .875rem;
}
.biz-flow-desc {
  flex: 1;
  width: 100%;
  font-size: .8125rem;
  color: var(--color-muted);
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: .875rem .75rem;
  margin: 0;
  line-height: 1.7;
}

/* ご注文の流れ: 左から順につながるアニメーション */
.biz-flow .biz-flow-label,
.biz-flow .biz-flow-icon,
.biz-flow .biz-flow-title,
.biz-flow .biz-flow-desc {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1);
}
.biz-flow.is-visible .biz-flow-label,
.biz-flow.is-visible .biz-flow-icon,
.biz-flow.is-visible .biz-flow-title,
.biz-flow.is-visible .biz-flow-desc {
  opacity: 1;
  transform: none;
}
.biz-flow.is-visible .biz-flow-step:nth-child(1) .biz-flow-label,
.biz-flow.is-visible .biz-flow-step:nth-child(1) .biz-flow-icon,
.biz-flow.is-visible .biz-flow-step:nth-child(1) .biz-flow-title,
.biz-flow.is-visible .biz-flow-step:nth-child(1) .biz-flow-desc { transition-delay: 0s; }
.biz-flow.is-visible .biz-flow-step:nth-child(2) .biz-flow-label,
.biz-flow.is-visible .biz-flow-step:nth-child(2) .biz-flow-icon,
.biz-flow.is-visible .biz-flow-step:nth-child(2) .biz-flow-title,
.biz-flow.is-visible .biz-flow-step:nth-child(2) .biz-flow-desc { transition-delay: .3s; }
.biz-flow.is-visible .biz-flow-step:nth-child(3) .biz-flow-label,
.biz-flow.is-visible .biz-flow-step:nth-child(3) .biz-flow-icon,
.biz-flow.is-visible .biz-flow-step:nth-child(3) .biz-flow-title,
.biz-flow.is-visible .biz-flow-step:nth-child(3) .biz-flow-desc { transition-delay: .6s; }
.biz-flow.is-visible .biz-flow-step:nth-child(4) .biz-flow-label,
.biz-flow.is-visible .biz-flow-step:nth-child(4) .biz-flow-icon,
.biz-flow.is-visible .biz-flow-step:nth-child(4) .biz-flow-title,
.biz-flow.is-visible .biz-flow-step:nth-child(4) .biz-flow-desc { transition-delay: .9s; }
.biz-flow.is-visible .biz-flow-step:nth-child(5) .biz-flow-label,
.biz-flow.is-visible .biz-flow-step:nth-child(5) .biz-flow-icon,
.biz-flow.is-visible .biz-flow-step:nth-child(5) .biz-flow-title,
.biz-flow.is-visible .biz-flow-step:nth-child(5) .biz-flow-desc { transition-delay: 1.2s; }

/* 点線コネクタを前のステップから右へ描画 */
.biz-flow-step + .biz-flow-step .biz-flow-icon-wrap::before {
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  transition: transform .35s ease;
}
.biz-flow.is-visible .biz-flow-step + .biz-flow-step .biz-flow-icon-wrap::before {
  transform: translateY(-50%) scaleX(1);
}
.biz-flow.is-visible .biz-flow-step:nth-child(2) .biz-flow-icon-wrap::before { transition-delay: .15s; }
.biz-flow.is-visible .biz-flow-step:nth-child(3) .biz-flow-icon-wrap::before { transition-delay: .45s; }
.biz-flow.is-visible .biz-flow-step:nth-child(4) .biz-flow-icon-wrap::before { transition-delay: .75s; }
.biz-flow.is-visible .biz-flow-step:nth-child(5) .biz-flow-icon-wrap::before { transition-delay: 1.05s; }

@media (prefers-reduced-motion: reduce) {
  .biz-flow .biz-flow-label,
  .biz-flow .biz-flow-icon,
  .biz-flow .biz-flow-title,
  .biz-flow .biz-flow-desc { opacity: 1 !important; transform: none !important; transition: none !important; }
  .biz-flow-step + .biz-flow-step .biz-flow-icon-wrap::before { transform: translateY(-50%) !important; transition: none !important; }
}

@media (max-width: 1023px) {
  .biz-flow-icon { width: 68px; height: 68px; }
  .biz-flow-icon svg { width: 28px; height: 28px; }
  .biz-flow-step { padding-inline: .375rem; }
}

/* SP対応 */
@media (max-width: 767px) {
  .biz-service-item {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    direction: ltr !important;
    margin-bottom: 5rem;
  }
  .biz-service-img::before,
  .biz-service-item--rev .biz-service-img::before {
    inset: .875rem -.875rem -.875rem .875rem;
    transform: translate(-.875rem, -.875rem);
  }
  .biz-service-item.is-visible .biz-service-img::before { transform: none; }
  .biz-service-num,
  .biz-service-item--rev .biz-service-num {
    font-size: 3.75rem;
    top: -.68em;
    left: 0;
    right: auto;
    -webkit-text-stroke-width: 1.5px;
  }
  .biz-materials .container { gap: 1rem; }
  .biz-flow { grid-template-columns: 1fr; }
  .biz-flow-step { padding-inline: 0; }
  .biz-flow-step + .biz-flow-step .biz-flow-icon-wrap::before { display: none; }
  .biz-flow-step + .biz-flow-step::before {
    content: '';
    height: 28px;
    border-left: 3px dotted var(--color-accent);
    margin: 1rem 0 1.5rem;
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform .35s ease;
  }
  .biz-flow.is-visible .biz-flow-step + .biz-flow-step::before { transform: scaleY(1); }
  .biz-flow.is-visible .biz-flow-step:nth-child(2)::before { transition-delay: .15s; }
  .biz-flow.is-visible .biz-flow-step:nth-child(3)::before { transition-delay: .45s; }
  .biz-flow.is-visible .biz-flow-step:nth-child(4)::before { transition-delay: .75s; }
  .biz-flow.is-visible .biz-flow-step:nth-child(5)::before { transition-delay: 1.05s; }
  @media (prefers-reduced-motion: reduce) {
    .biz-flow-step + .biz-flow-step::before { transform: none !important; transition: none !important; }
  }
  .biz-flow-icon { width: 76px; height: 76px; }
  .biz-flow-icon svg { width: 32px; height: 32px; }
  .biz-flow-title { margin: .875rem 0 .625rem; }
  .biz-flow-desc { max-width: 420px; }
}

/* =============================================
   PROJECTS PAGE
============================================= */
.case-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.case-img-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.case-img-pair:hover img { transform: scale(1.03); }

@media (max-width: 767px) {
  .case-img-pair img { aspect-ratio: 1 / 1; }
}

/* =============================================
   EQUIPMENT PAGE
============================================= */
.equip-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 260px;
  gap: 6px;
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* 1段目: 左大 (4/6) + 右小 (2/6) */
.equip-gallery-item--1 { grid-column: span 4; }
.equip-gallery-item--2 { grid-column: span 2; }
/* 2〜3段目: 左に横長2枚を縦積み、右に縦画像を2段ぶち抜き */
.equip-gallery-item--3 { grid-column: span 4; }
.equip-gallery-item--4 { grid-column: 1 / 5; grid-row: 3; }
.equip-gallery-item--6 { grid-column: 5 / 7; grid-row: 2 / 4; }

.equip-gallery-item {
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(20px) scale(.96);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1);
}
/* バラバラの順番で表示するためのランダムなディレイ */
.equip-gallery.is-visible .equip-gallery-item {
  opacity: 1;
  transform: none;
}
.equip-gallery.is-visible .equip-gallery-item--1 { transition-delay: .3s; }
.equip-gallery.is-visible .equip-gallery-item--2 { transition-delay: 0s; }
.equip-gallery.is-visible .equip-gallery-item--3 { transition-delay: .6s; }
.equip-gallery.is-visible .equip-gallery-item--4 { transition-delay: .15s; }
.equip-gallery.is-visible .equip-gallery-item--6 { transition-delay: .45s; }
.equip-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.equip-table thead tr {
  background: var(--color-bg-soft);
  border-top: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}
.equip-table thead th {
  color: var(--color-accent);
  font-size: .875rem;
}

@media (max-width: 767px) {
  .equip-gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }
  .equip-gallery-item--1 { grid-column: span 2; }
  .equip-gallery-item--2 { grid-column: 1; grid-row: 2; }
  .equip-gallery-item--3 { grid-column: 1; grid-row: 3; }
  .equip-gallery-item--4 { grid-column: span 2; grid-row: 4; }
  .equip-gallery-item--6 { grid-column: 2; grid-row: 2 / 4; }
}

/* =============================================
   CONTACT FORM
============================================= */
.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem 2.25rem;
  margin-bottom: 3.5rem;
}
.form-row {
  margin-bottom: 1.5rem;
}
.form-row label {
  display: block;
  font-weight: 700;
  font-size: .9375rem;
  margin-bottom: .5rem;
  color: var(--color-text);
}
.form-required {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1;
  padding: .25em .55em;
  border-radius: var(--radius-sm);
  margin-left: .4rem;
  vertical-align: middle;
  letter-spacing: .04em;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: inherit;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(204,20,20,.12);
}
.contact-form [aria-invalid="true"] { border-color: var(--color-accent); }
.form-error {
  display: block;
  color: var(--color-accent);
  font-size: .8125rem;
  font-weight: 700;
  margin-top: .4rem;
}
.form-alert {
  background: rgba(204,20,20,.07);
  border: 1px solid rgba(204,20,20,.3);
  color: var(--color-accent);
  font-weight: 700;
  font-size: .9rem;
  padding: .875rem 1.125rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
}
.form-submit {
  text-align: center;
  margin-top: 2rem;
}
.form-submit .btn { min-width: 220px; }
/* ハニーポット：画面外に隠す（display:none は一部ボットに検知されるため） */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-or {
  text-align: center;
  color: var(--color-muted);
  font-size: .9375rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}

/* =============================================
   THANKS PAGE
============================================= */
.thanks-box {
  text-align: center;
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--color-accent);
  padding: 3.5rem 2rem;
}
.thanks-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 1.5rem;
}
.thanks-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 1.25rem;
}
.thanks-text {
  color: var(--color-muted);
  line-height: 1.95;
  margin-bottom: 2.25rem;
}
.thanks-actions { display: flex; justify-content: center; }

@media (max-width: 767px) {
  .contact-form { padding: 1.75rem 1.25rem; }
}

/* =============================================
   CONTACT PAGE
============================================= */
.contact-intro {
  text-align: center;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 3rem;
}

.contact-main {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--color-accent);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}
.contact-location-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  padding: .2em .75em;
  margin-bottom: 1rem;
}
.contact-tel-label {
  font-size: .875rem;
  color: var(--color-muted);
  margin-bottom: .75rem;
  letter-spacing: .04em;
}
.contact-tel-number {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: .04em;
  line-height: 1;
  text-decoration: none;
  transition: color var(--transition);
}
.contact-tel-number:hover { color: var(--color-accent); }
.contact-tel-icon { color: var(--color-accent); font-size: .85em; }
.contact-tel-note {
  font-size: .8125rem;
  color: var(--color-muted);
  margin-top: .875rem;
}

.contact-branches {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.contact-branches-title {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--color-muted);
  background: var(--color-bg-soft);
  padding: .875rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin: 0;
}
.contact-branch-list { display: flex; flex-direction: column; }
.contact-branch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  gap: 1rem;
}
.contact-branch-item:last-child { border-bottom: none; }
.contact-branch-name {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--color-text);
  min-width: 120px;
}
.contact-branch-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.contact-branch-tel {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color var(--transition);
}
.contact-branch-tel:hover { color: var(--color-accent); }
.contact-branch-fax {
  font-size: .875rem;
  color: var(--color-muted);
}

@media (max-width: 767px) {
  .contact-branch-item { flex-direction: column; align-items: flex-start; }
  .contact-branch-info { justify-content: flex-start; gap: .75rem; }
}

/* =============================================
   ACCESS MAP
============================================= */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; }

.map-tabs {
  display: flex;
  gap: .75rem;
  margin-bottom: 1rem;
}
.map-tab {
  padding: .625rem 1.5rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-muted);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.map-tab:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.map-tab.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}
.map-frame-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
}
.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* =============================================
   FOOTER
============================================= */
.site-footer { background: #111111; color: #fff; }
.footer-top { padding: 4rem 0 3rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-top-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 64px;
}
.footer-brand { max-width: none; }
.footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 64px;
}
.footer-logo img {
  height: 44px; width: auto;
  margin-bottom: 1.25rem;
}
.footer-desc { font-size: .875rem; line-height: 1.8; white-space: nowrap; }
.footer-address { font-size: .8rem; color: #fff; margin-top: .75rem; }
.footer-tel {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .75rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: color var(--transition);
}
.footer-tel:hover { color: var(--color-accent); }
.footer-tel-icon { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; }
.footer-nav-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-cta {
  width: clamp(260px, 24vw, 320px);
  padding: 1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
}
.footer-cta-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--color-accent);
  margin-bottom: .85rem;
}
.footer-cta-text {
  font-size: .85rem;
  line-height: 1.8;
  color: #fff;
  margin-bottom: 1.25rem;
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 1.5rem;
  background: var(--color-accent);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  transition: background var(--transition), border-color var(--transition);
}
.footer-cta-btn:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }
.footer-nav h4 {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.footer-nav ul { display: flex; flex-direction: row; flex-wrap: wrap; gap: .625rem 1.5rem; }
.footer-nav a {
  font-size: .875rem;
  color: #fff;
  transition: color var(--transition);
}
.footer-nav a:hover { color: rgba(255,255,255,.7); }
.footer-bottom {
  padding-block: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: #fff;
}

/* =============================================
   SCROLL ANIMATION
============================================= */
.fade-up,
.fade-left,
.fade-right,
.fade-scale {
  opacity: 0;
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1);
}
.fade-up    { transform: translateY(28px); }
.fade-left  { transform: translateX(-36px); }
.fade-right { transform: translateX(36px); }
.fade-scale { transform: scale(.93); }

.fade-up.is-visible,
.fade-left.is-visible,
.fade-right.is-visible,
.fade-scale.is-visible {
  opacity: 1;
  transform: none;
}

/* =============================================
   SCROLL PROGRESS BAR
============================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--color-accent);
  z-index: 1200;
  transition: width .1s linear;
  pointer-events: none;
}

/* =============================================
   下層ページ見出しの登場アニメ
============================================= */
.page-hero h1 { animation: pageHeroIn .8s ease both; }
.page-hero .en-label,
.page-hero .breadcrumb { animation: pageHeroIn .8s ease .12s both; }
@keyframes pageHeroIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* =============================================
   ホバー微動（控えめ）
============================================= */
.btn { will-change: transform; }
.btn--primary:hover,
.btn--white:hover,
.btn--dark:hover,
.btn--outline:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .fade-left,
  .fade-right,
  .fade-scale { opacity: 1 !important; transform: none !important; transition: none !important; }
  .mobile-menu.is-open { animation: none; }
  .service-card:hover .service-card-img img,
  .case-img-pair:hover img { transform: none; }
  .page-hero h1,
  .page-hero .en-label,
  .page-hero .breadcrumb { animation: none !important; }
  .scroll-progress { display: none; }
  .btn--primary:hover,
  .btn--white:hover,
  .btn--dark:hover,
  .btn--outline:hover { transform: none; }
  .biz-service-img::before,
  .biz-service-num {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .biz-service-catch::before {
    transition: none !important;
    width: 48px;
  }
}

/* =============================================
   PAGE TOP
============================================= */
#page-top {
  position: fixed;
  bottom: 1.75rem; right: 1.75rem;
  width: 46px; height: 46px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), background var(--transition);
  z-index: 900; border: none;
  box-shadow: 0 4px 12px rgba(204,20,20,.4);
}
#page-top.is-show { opacity: 1; pointer-events: auto; }
#page-top:hover { background: var(--color-accent-dark); }
#page-top svg { width: 18px; height: 18px; }

/* =============================================
   RESPONSIVE — TABLET (≤1023px)
============================================= */
@media (max-width: 1023px) {
  .grid-3  { grid-template-columns: repeat(2,1fr); }
  .grid-4  { grid-template-columns: repeat(2,1fr); }
  .split   { gap: 3rem; }
  .stats-item { padding: 0 1.5rem; }
  .news-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-top-inner { gap: 2.5rem 3rem; }
}

/* =============================================
   RESPONSIVE — SP (≤767px)
============================================= */
@media (max-width: 767px) {
  .container { width: min(100% - 40px, 100%); }
  .section { padding-block: 3.5rem; }
  .section:has(+ .cta-section) { padding-bottom: 7rem; }
  body { font-size: 15px; }

  .site-nav  { display: none; }
  .nav-cta-wrap { display: none; }
  .hamburger { display: flex; }

  .hero {
    padding-top: calc(68px + 24px);
  }
  .hero-frame {
    margin-left: 16px;
    margin-right: 16px;
    height: clamp(460px, calc(100svh - 68px - 48px), 720px);
    border-radius: 6px;
  }
  .hero-bg-slide {
    background-position: center 20%;
  }
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,.65) 0%, rgba(0,0,0,.4) 55%, rgba(0,0,0,.5) 100%);
  }
  .hero-content {
    justify-content: flex-start;
    padding: 3rem 1.5rem 2rem;
  }
  .hero-accent-bar {
    width: 8px;
    top: calc(68px + 24px);
  }
  .hero-eyebrow-ja { font-size: .65rem; margin-bottom: 1.5rem; }
  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
    margin-bottom: 2rem;
    letter-spacing: -.02em;
  }
  .hero-h1-outline {
    height: clamp(3rem, 15vw, 4.4rem);
  }
  .hero-h1-outline text { stroke-width: 2.5px; }
  /* SPは行ごとに帯が走る */
  .hero-title-ja .hero-title-line { display: block; width: fit-content; }
  .hero-title-band--pc { display: none; }
  .hero-title-band--sp { display: block; }
  .hero-title-line:nth-child(2) .hero-title-band--sp,
  .hero-title-line:nth-child(2) .hero-h1-solid { animation-delay: .6s; }
  .hero-body {
    font-size: .875rem;
    max-width: 100%;
  }

  .stats-list { grid-template-columns: repeat(2,1fr); }
  .stats-item { border-right: none; border-bottom: 1px solid var(--color-border); padding: 1.25rem; }
  .stats-item:nth-child(odd)  { border-right: 1px solid var(--color-border); }
  .stats-item:nth-child(3), .stats-item:nth-child(4) { border-bottom: none; }

  .grid-3 { grid-template-columns: 1fr; gap: 1.25rem; }
  .grid-2 { grid-template-columns: 1fr; gap: 1.25rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .split  { grid-template-columns: 1fr; gap: 2rem; }
  .split .about-visual { order: -1; }
  .about-badge { bottom: .75rem; left: .75rem; }

  .news-grid { grid-template-columns: 1fr; gap: 2rem; }

  .sns-banner { padding-block: 2.75rem; }
  .sns-banner-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 1.5rem;
    border-radius: 16px;
    padding: 2rem 1.25rem;
  }
  .sns-banner-text { flex: 0 0 auto; }
  .sns-banner-lead { font-size: .8rem; }
  .sns-banner-btns {
    flex-direction: column;
    gap: .75rem;
  }
  .sns-btn { justify-content: center; }

  .cta-btns { flex-direction: column; align-items: center; }
  .cta-section::before {
    font-size: 14vw;
    letter-spacing: .04em;
  }

  .footer-top-inner { gap: 2.5rem; }
  .footer-brand { max-width: none; flex-basis: 100%; }
  .footer-desc { white-space: normal; }
  .footer-nav-grid  {
    gap: 1.5rem;
    flex-basis: 100%;
    padding-inline: 0;
    border-left: none;
    border-right: none;
  }
  .footer-cta { width: 100%; max-width: none; flex-basis: 100%; }

  .info-table th { width: 100px; font-size: .875rem; }
  .info-table td { font-size: .875rem; }
  .info-table th, .info-table td { padding: .875rem 1rem; }

  .company-photos { grid-template-columns: 1fr; gap: 1rem; }

  .page-hero { padding: 6.5rem 0 2.5rem; }

  #page-top { bottom: 1.25rem; right: 1.25rem; }

  .map-tabs { gap: .5rem; }
  .map-tab  { padding: .625rem 1rem; font-size: .8125rem; }
}
