/*
Theme Name: RISE Factory Child
Theme URI: https://rise-factory.jp
Description: ライズファクトリー株式会社 カスタム子テーマ (Elementor PRO対応)
Author: ライズファクトリー株式会社
Template: hello-elementor
Version: 1.0.0
Text Domain: rise-factory
*/

/* ================================================================
   RISE FACTORY — CHILD THEME CSS
   デザイン: Industrial × Bold × Motion-first
   カラー: Red #E8001A / Slate #243649 / Black #111
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:ital,wght@0,300;0,400;0,600;0,700;0,900&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ─── CSS変数 ─── */
:root {
  --red:    #E8001A;
  --red2:   #b5001a;
  --slate:  #2B4158;
  --slate2: #243649;
  --black:  #111;
  --white:  #fff;
  --lgray:  #F0F1F2;
  --mgray:  #888;
  --border: rgba(255,255,255,.1);
  --ff-d:   'Bebas Neue', sans-serif;
  --ff-c:   'Barlow Condensed', sans-serif;
  --ff-j:   'Noto Sans JP', sans-serif;
}

/* ─── リセット ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-y: scroll; overflow-x: hidden; }
body {
  font-family: var(--ff-j);
  background: #fff;
  color: var(--black);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ─── カーソル (スパナ) ─── */
body {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24'%3E%3Cpath d='M14.7 6.3a1 1 0 000 1.4l1.6 1.6a1 1 0 001.4 0l3.77-3.77a6 6 0 01-7.94 7.94L5.61 21.4A2.1 2.1 0 012.4 18.2l9.27-8.9A6 6 0 0114.7 6.3z' fill='%23E8001A'/%3E%3C/svg%3E") 4 24, auto;
}
a, button, [role="button"] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24'%3E%3Cpath d='M14.7 6.3a1 1 0 000 1.4l1.6 1.6a1 1 0 001.4 0l3.77-3.77a6 6 0 01-7.94 7.94L5.61 21.4A2.1 2.1 0 012.4 18.2l9.27-8.9A6 6 0 0114.7 6.3z' fill='%23ffffff'/%3E%3C/svg%3E") 4 24, pointer;
}

/* ─── アニメーション ─── */
@keyframes gearSpin  { from { transform: rotate(0deg);   } to { transform: rotate(360deg);  } }
@keyframes fadeInUp  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp   { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes marqueeLR { from { transform: translateX(0); }   to { transform: translateX(-50%); } }
@keyframes scrollPulse { 0%,100%{ opacity:.5; transform:scaleY(1); } 50%{ opacity:1; transform:scaleY(1.4); } }
@keyframes loadFill  { to { width: 100%; } }
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes sparkFly  {
  0%   { opacity:0; transform:translate(0,0) scale(0); }
  10%  { opacity:1; transform:translate(var(--dx),var(--dy)) scale(1); }
  40%  { opacity:.6; }
  100% { opacity:0; transform:translate(var(--dx2),var(--dy2)) scale(.3); }
}

/* ================================================================
   LOADER
================================================================ */
#rf-loader {
  position: fixed; inset: 0;
  background: var(--slate2);
  z-index: 100000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  transition: opacity .7s .1s;
}
#rf-loader.out { opacity: 0; pointer-events: none; }
.rf-loader-logo {
  font-family: var(--ff-d);
  font-size: clamp(36px, 6vw, 64px);
  color: #fff; letter-spacing: .08em;
  animation: fadeIn .6s .3s both;
}
.rf-loader-logo em { color: var(--red); font-style: normal; }
.rf-loader-bar {
  width: 180px; height: 2px;
  background: rgba(255,255,255,.12); overflow: hidden;
  animation: fadeIn .4s .5s both;
}
.rf-loader-fill {
  height: 100%; background: var(--red); width: 0;
  animation: loadFill 1.3s .6s ease forwards;
}

/* ================================================================
   HEADER
================================================================ */
.rf-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; height: 80px;
  background: var(--slate2);
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  padding: 0 32px 0 0;
  transition: height .3s, background .3s;
}
.rf-header.scrolled {
  height: 64px;
  background: rgba(36,54,73,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ロゴブロック */
.rf-hd-left {
  background: var(--slate); height: 100%;
  display: flex; align-items: center;
  padding: 0 20px; gap: 12px;
  border-right: 1px solid var(--border);
}
.rf-hd-emblem {
  width: 40px; height: 40px;
  background: var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rf-hd-company-name { font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .04em; white-space: nowrap; }
.rf-hd-company-sub  { font-size: 9px; color: rgba(255,255,255,.5); letter-spacing: .08em; white-space: nowrap; margin-top: 2px; }

/* ナビ */
.rf-hd-nav { display: flex; align-items: center; height: 100%; padding: 0 16px; }
.rf-hd-nav a {
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.7);
  padding: 0 14px; height: 100%;
  display: flex; align-items: center;
  position: relative; letter-spacing: .06em;
  white-space: nowrap; transition: color .2s;
}
.rf-hd-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--red); transform: scaleX(0);
  transition: transform .3s; transform-origin: center;
}
.rf-hd-nav a:hover { color: #fff; }
.rf-hd-nav a:hover::after { transform: scaleX(1); }

/* RISE Factory ロゴ */
.rf-hd-right { display: flex; align-items: center; }
.rf-hd-rise    { font-family: var(--ff-d); font-size: clamp(22px,3vw,36px); color: var(--red);  font-style: italic; letter-spacing: .04em; line-height: 1; }
.rf-hd-factory { font-family: var(--ff-d); font-size: clamp(22px,3vw,36px); color: #fff;        font-style: italic; letter-spacing: .04em; line-height: 1; }

/* ハンバーガー */
.rf-hbg { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.rf-hbg span { display: block; width: 24px; height: 1.5px; background: #fff; transition: transform .3s, opacity .3s; }
.rf-hbg.open span:first-child  { transform: translateY(6.5px) rotate(45deg); }
.rf-hbg.open span:nth-child(2) { opacity: 0; }
.rf-hbg.open span:last-child   { transform: translateY(-6.5px) rotate(-45deg); }

/* モバイルメニュー */
.rf-mob-menu {
  position: fixed; inset: 0; background: var(--slate2); z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  clip-path: circle(0 at calc(100% - 44px) 44px);
  transition: clip-path .7s cubic-bezier(.4,0,.2,1);
}
.rf-mob-menu.open { clip-path: circle(160% at calc(100% - 44px) 44px); }
.rf-mob-menu a {
  font-family: var(--ff-d); font-size: clamp(28px,6vw,48px);
  color: #fff; letter-spacing: .08em;
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s, transform .3s, color .2s;
}
.rf-mob-menu.open a { opacity: 1; transform: translateY(0); }
.rf-mob-menu.open a:nth-child(1){ transition-delay: .25s; }
.rf-mob-menu.open a:nth-child(2){ transition-delay: .32s; }
.rf-mob-menu.open a:nth-child(3){ transition-delay: .39s; }
.rf-mob-menu.open a:nth-child(4){ transition-delay: .46s; }
.rf-mob-menu.open a:nth-child(5){ transition-delay: .53s; }
.rf-mob-menu a:hover { color: var(--red); }

/* ================================================================
   HERO
================================================================ */
.rf-hero {
  position: relative;
  height: 100svh; min-height: 560px;
  background: linear-gradient(145deg, #0d1820 0%, #1a0d0d 60%, #0d1820 100%);
  overflow: hidden;
}
.rf-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 65% 40%, rgba(60,80,100,.8) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 30% 60%, rgba(20,10,10,.9) 0%, transparent 80%);
}
.rf-hero-sparks { position: absolute; inset: 0; overflow: hidden; }
.rf-spark {
  position: absolute; border-radius: 50%;
  background: var(--red); opacity: 0;
  animation: sparkFly var(--d,1.5s) var(--delay,0s) ease-out infinite;
  left: var(--x,50%); top: var(--y,40%);
  width: var(--sz,2px); height: var(--sz,2px);
}
.rf-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,16,25,.8) 0%, rgba(10,16,25,.3) 50%, rgba(10,16,25,.6) 100%);
}
.rf-hero-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to top, #fff, transparent);
  z-index: 2;
}

/* RISE Factory タイトル */
.rf-hero-title {
  position: absolute;
  top: clamp(70px,10vh,110px); right: 0; left: 0;
  padding: 0 clamp(20px,5vw,60px);
  text-align: right; z-index: 3;
}
.rf-hero-rise {
  display: block;
  font-family: var(--ff-d);
  font-size: clamp(56px,10vw,120px);
  color: var(--red); font-style: italic;
  line-height: .88; letter-spacing: .01em;
}
.rf-hero-rise span { display: inline-block; transform: translateY(110%); animation: slideUp .9s .8s cubic-bezier(.4,0,.2,1) forwards; will-change: transform; }
.rf-hero-factory {
  display: block;
  font-family: var(--ff-d);
  font-size: clamp(56px,10vw,120px);
  color: #fff; font-style: italic;
  line-height: .88; letter-spacing: .01em;
}
.rf-hero-factory span { display: inline-block; transform: translateY(110%); animation: slideUp .9s 1.0s cubic-bezier(.4,0,.2,1) forwards; will-change: transform; }

/* サブテキスト */
.rf-hero-sub {
  position: absolute; bottom: clamp(100px,15vh,160px); left: clamp(20px,5vw,60px);
  z-index: 3; animation: fadeInUp .8s 1.4s both;
}
.rf-hero-sub p {
  font-family: var(--ff-c);
  font-size: clamp(12px,1.5vw,15px); font-weight: 300;
  letter-spacing: .25em; text-transform: uppercase;
  color: rgba(255,255,255,.6); line-height: 2;
}

/* スクロールインジケーター */
.rf-hero-scroll {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  z-index: 3; animation: fadeInUp .8s 2s both;
}
.rf-hero-scroll span { font-family: var(--ff-c); font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.rf-hero-scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,.35), transparent);
  animation: scrollPulse 2s 2.3s ease-in-out infinite;
}

/* ================================================================
   GEAR SHOWCASE (ヒーロー直下)
================================================================ */
.rf-gears {
  background: var(--slate2);
  padding: 52px 0 40px;
  position: relative; overflow: hidden;
}
.rf-gears-svg-wrap {
  display: flex; justify-content: center; align-items: center;
  width: 100%; padding: 0 20px;
}
.rf-gears-svg-wrap svg { width: 100%; max-width: 900px; height: auto; overflow: visible; }
.rf-gears-svg-wrap path { will-change: transform; }

.rf-gears-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  margin: 10px 0 0;
}
.rf-gears-tags {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(16px,3.5vw,56px);
  padding: 22px clamp(20px,6vw,80px) 0;
}
.rf-gear-tag { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.rf-gear-tag-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.rf-gear-tag-en {
  font-family: var(--ff-c); font-size: clamp(10px,1.3vw,13px);
  font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.rf-gear-tag-ja { font-size: clamp(9px,.95vw,11px); color: rgba(255,255,255,.3); letter-spacing: .04em; }

/* ================================================================
   MARQUEE
================================================================ */
.rf-marquee {
  background: var(--slate2);
  overflow: hidden; white-space: nowrap;
  padding: 28px 0;
  contain: layout style;
}
.rf-marquee-inner {
  display: inline-flex; white-space: nowrap;
  animation: marqueeLR 16s linear infinite;
  will-change: transform;
}
.rf-marquee-inner.rev { animation-direction: reverse; animation-duration: 14s; }
.rf-marquee-inner span {
  font-family: var(--ff-d);
  font-size: clamp(32px,6vw,72px);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.18);
  letter-spacing: .1em; padding: 0 clamp(20px,3vw,40px); line-height: 1;
}
.rf-marquee-inner .dot { color: var(--red); -webkit-text-stroke: 0; padding: 0 10px; }

/* ================================================================
   OUR COMPANY
================================================================ */
.rf-company { background: #fff; position: relative; overflow: hidden; }
.rf-company-bgtxt {
  position: absolute; top: -10px; left: -20px; right: 0;
  font-family: var(--ff-d);
  font-size: clamp(80px,16vw,200px);
  color: transparent; -webkit-text-stroke: 1px rgba(0,0,0,.05);
  pointer-events: none; user-select: none;
  white-space: nowrap; line-height: 1; z-index: 0;
}
.rf-company-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto; gap: 40px;
  padding: 80px clamp(24px,6vw,80px) 48px; align-items: start;
}
.rf-section-title {
  font-size: clamp(20px,2.5vw,28px); font-weight: 700;
  border-left: 4px solid var(--red); padding-left: 16px;
  margin-bottom: 28px;
}
.rf-company-text { font-size: 13px; line-height: 2.1; color: #444; max-width: 600px; margin-bottom: 14px; }
.rf-company-text strong { color: var(--red); }
.rf-company-badge {
  flex-shrink: 0; width: clamp(100px,14vw,160px); aspect-ratio: 1;
  border: 2px solid rgba(0,0,0,.12); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
}
.rf-company-badge::before {
  content: ''; position: absolute; inset: 8px;
  border: 1px dashed rgba(0,0,0,.15); border-radius: 50%;
}
.rf-badge-rise    { font-family: var(--ff-d); font-size: clamp(18px,2.5vw,28px); letter-spacing: .12em; line-height: 1; }
.rf-badge-factory { font-family: var(--ff-d); font-size: clamp(10px,1.2vw,14px); letter-spacing: .18em; color: var(--mgray); margin-top: 2px; }

/* 3写真 */
.rf-company-photos {
  display: grid; grid-template-columns: repeat(3,1fr);
  padding: 0 clamp(24px,6vw,80px); position: relative; z-index: 1;
}
.rf-cp { position: relative; overflow: visible; }
.rf-cp-inner { aspect-ratio: 4/3; overflow: hidden; }
.rf-cp-inner > * { width: 100%; height: 100%; transition: transform .7s ease; }
.rf-cp:hover .rf-cp-inner > * { transform: scale(1.06); }
.rf-cp-num {
  position: absolute; top: -24px; left: -8px;
  font-family: var(--ff-d); font-size: clamp(60px,9vw,110px);
  color: var(--red); line-height: 1; opacity: .9; font-style: italic;
  pointer-events: none; z-index: 2;
}
.rf-cp:nth-child(1) { z-index: 2; transform: translateY(-20px); }
.rf-cp:nth-child(2) { z-index: 1; transform: translateY(10px); }
.rf-cp:nth-child(3) { z-index: 0; }

/* ボタン */
.rf-company-btns { display: flex; gap: 16px; flex-wrap: wrap; padding: 52px clamp(24px,6vw,80px) 80px; position: relative; z-index: 1; }
.rf-btn-ol, .rf-btn-rd {
  padding: 12px 28px; font-size: 13px; font-weight: 500;
  letter-spacing: .08em; position: relative; overflow: hidden;
  display: inline-block; transition: color .25s;
}
.rf-btn-ol { border: 1.5px solid var(--black); color: var(--black); }
.rf-btn-ol::before { content: ''; position: absolute; inset: 0; background: var(--black); transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.rf-btn-ol:hover { color: #fff; }
.rf-btn-ol:hover::before { transform: scaleX(1); transform-origin: left; }
.rf-btn-rd { background: var(--red); color: #fff; }
.rf-btn-rd::before { content: ''; position: absolute; inset: 0; background: var(--red2); transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.rf-btn-rd:hover::before { transform: scaleX(1); transform-origin: left; }
.rf-btn-ol span, .rf-btn-rd span { position: relative; z-index: 1; }

/* ================================================================
   SERVICE
================================================================ */
.rf-service { background: #fff; position: relative; }
.rf-service-hdr { padding: 60px clamp(24px,6vw,80px) 40px; position: relative; }
.rf-service-hdr-bg {
  position: absolute; top: -20px; left: 0; right: 0;
  font-family: var(--ff-d); font-size: clamp(60px,12vw,150px);
  color: transparent; -webkit-text-stroke: 1px rgba(0,0,0,.04);
  pointer-events: none; user-select: none;
  line-height: 1; text-align: center;
}
.rf-service-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: clamp(24px,4vw,56px) clamp(16px,3vw,40px);
  padding: 0 clamp(24px,6vw,80px) 60px;
}
.rf-srv-item { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rf-gear-wrap {
  position: relative; width: clamp(120px,16vw,200px); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.rf-gear-outer, .rf-gear-inner {
  position: absolute; will-change: transform; transform-origin: center;
}
.rf-gear-outer { inset: -14%; width: 128%; height: 128%; animation: gearSpin 9s  linear infinite; opacity: .15; }
.rf-gear-inner { inset: -5%;  width: 110%; height: 110%; animation: gearSpin 6s  linear infinite reverse; opacity: .1; }
.rf-srv-item:nth-child(even) .rf-gear-outer { animation-direction: reverse; animation-duration: 12s; }
.rf-srv-item:nth-child(even) .rf-gear-inner { animation-direction: normal;  animation-duration: 8s;  }
.rf-srv-circle {
  width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(0,0,0,.08); transition: border-color .3s;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center;
}
.rf-srv-item:hover .rf-srv-circle { border-color: var(--red); box-shadow: 0 12px 40px rgba(232,0,26,.2); }
.rf-srv-circle-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.rf-srv-item:hover .rf-srv-circle-img { transform: scale(1.1); }
.rf-srv-name { font-weight: 700; font-size: clamp(13px,1.6vw,16px); text-align: center; letter-spacing: .04em; }
.rf-srv-en   { font-family: var(--ff-c); font-size: 11px; color: var(--mgray); letter-spacing: .14em; text-transform: uppercase; text-align: center; margin-top: 2px; }

/* ================================================================
   RECRUIT
================================================================ */
.rf-recruit {
  background: var(--slate2);
  padding: 80px clamp(24px,6vw,80px);
  position: relative; overflow: hidden;
}
.rf-recruit-bgtxt {
  position: absolute; top: 10px; left: -20px;
  font-family: var(--ff-d); font-size: clamp(70px,14vw,180px);
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.06);
  pointer-events: none; user-select: none; white-space: nowrap; z-index: 0;
}
.rf-recruit-deco {
  position: absolute; right: -5%; bottom: -5%;
  width: clamp(140px,22vw,280px); aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(232,0,26,.15); border: 2px solid rgba(232,0,26,.3);
  pointer-events: none; z-index: 0;
}
.rf-recruit-deco::before {
  content: ''; position: absolute; inset: 18px;
  border-radius: 50%; border: 1px solid rgba(232,0,26,.2);
}
.rf-recruit-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.rf-recruit-tag {
  font-family: var(--ff-c); font-size: 11px; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase; color: var(--red);
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.rf-recruit-tag::before { content: ''; width: 22px; height: 1.5px; background: var(--red); }
.rf-recruit-title { font-size: clamp(22px,3vw,32px); font-weight: 700; color: #fff; margin-bottom: 16px; }
.rf-recruit-desc  { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.95; margin-bottom: 24px; }
.rf-recruit-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.rf-badge {
  padding: 6px 14px; border: 1px solid rgba(255,255,255,.2);
  font-size: 11px; color: rgba(255,255,255,.7); letter-spacing: .04em;
  transition: border-color .2s, background .2s;
}
.rf-badge:hover { border-color: var(--red); background: rgba(232,0,26,.1); }
.rf-recruit-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; background: var(--red);
  font-size: 13px; font-weight: 500; letter-spacing: .08em; color: #fff;
  position: relative; overflow: hidden;
}
.rf-recruit-btn::before {
  content: ''; position: absolute; inset: 0; background: var(--red2);
  transform: scaleX(0); transform-origin: right; transition: transform .3s;
}
.rf-recruit-btn:hover::before { transform: scaleX(1); transform-origin: left; }
.rf-recruit-btn span { position: relative; z-index: 1; }
.rf-recruit-photos { display: grid; grid-template-columns: 1fr; gap: 12px; }
.rf-recruit-main  { width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.rf-recruit-main > * { width: 100%; height: 100%; transition: transform .7s; }
.rf-recruit-main:hover > * { transform: scale(1.03); }
.rf-recruit-subs  { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.rf-recruit-sub   { aspect-ratio: 1; overflow: hidden; }
.rf-recruit-sub > * { width: 100%; height: 100%; transition: transform .6s; }
.rf-recruit-sub:hover > * { transform: scale(1.08); }

/* ================================================================
   NEWS
================================================================ */
.rf-news { background: var(--lgray); position: relative; overflow: hidden; }
.rf-news-bgtop, .rf-news-bgbtm {
  position: absolute;
  font-family: var(--ff-d); font-size: clamp(60px,12vw,150px);
  color: transparent; -webkit-text-stroke: 1px rgba(0,0,0,.05);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.rf-news-bgtop { top: 10px; right: -20px; }
.rf-news-bgbtm { bottom: 10px; left: -20px; transform: scaleY(-1); }
.rf-news-card {
  background: #fff;
  margin: 60px clamp(24px,6vw,80px);
  padding: 48px;
  box-shadow: 0 4px 40px rgba(0,0,0,.07);
  position: relative; z-index: 1;
}
.rf-news-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.rf-news-title  { font-size: clamp(18px,2.5vw,24px); font-weight: 700; border-left: 4px solid var(--red); padding-left: 14px; }
.rf-news-list   { list-style: none; }
.rf-news-item {
  display: grid; grid-template-columns: 110px 72px 1fr;
  align-items: center; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid rgba(0,0,0,.07);
  position: relative; transition: padding-left .2s;
}
.rf-news-item:hover { padding-left: 8px; }
.rf-news-item::after {
  content: '→'; position: absolute; right: 0;
  color: var(--red); opacity: 0; transform: translateX(-6px);
  transition: opacity .2s, transform .2s;
}
.rf-news-item:hover::after { opacity: 1; transform: translateX(0); }
.rf-news-date { font-family: var(--ff-c); font-size: 13px; color: var(--mgray); letter-spacing: .1em; }
.rf-news-cat  { font-size: 10px; font-weight: 700; letter-spacing: .08em; background: var(--red); color: #fff; padding: 3px 9px; display: inline-block; white-space: nowrap; }
.rf-news-text { font-size: 13px; color: var(--black); transition: color .2s; }
.rf-news-item:hover .rf-news-text { color: var(--red); }
.rf-news-more {
  display: inline-flex; align-items: center; margin-top: 28px;
  padding: 10px 22px; border: 1.5px solid var(--black);
  font-size: 12px; font-weight: 500; letter-spacing: .08em;
  position: relative; overflow: hidden; transition: color .25s;
}
.rf-news-more::before { content: ''; position: absolute; inset: 0; background: var(--black); transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.rf-news-more:hover { color: #fff; }
.rf-news-more:hover::before { transform: scaleX(1); transform-origin: left; }
.rf-news-more span { position: relative; z-index: 1; }

/* ================================================================
   CONTACT
================================================================ */
.rf-contact {
  background: var(--lgray);
  padding: 80px clamp(24px,6vw,80px);
  position: relative; overflow: hidden;
}
.rf-contact-o {
  position: absolute;
  font-family: var(--ff-d); font-size: clamp(150px,25vw,320px);
  color: transparent; -webkit-text-stroke: 1.5px rgba(0,0,0,.06);
  pointer-events: none; user-select: none; line-height: 1;
  top: 50%; transform: translateY(-50%);
}
.rf-contact-o-l { left:  clamp(-60px,-8vw,-20px); }
.rf-contact-o-r { right: clamp(-60px,-8vw,-20px); }
.rf-contact-card {
  background: #fff; max-width: 720px; margin: 0 auto;
  padding: 56px; box-shadow: 0 4px 50px rgba(0,0,0,.08);
  position: relative; z-index: 1; text-align: center;
}
.rf-contact-title { font-size: clamp(18px,2.5vw,24px); font-weight: 700; margin-bottom: 12px; }
.rf-contact-desc  { font-size: 13px; color: #666; line-height: 1.85; margin-bottom: 36px; }
.rf-contact-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(0,0,0,.08); }
.rf-contact-mth {
  background: #fff; padding: 28px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: background .2s;
}
.rf-contact-mth:hover { background: var(--lgray); }
.rf-contact-mth-icon  { width: 32px; height: 32px; color: var(--red); }
.rf-contact-mth-label { font-size: 11px; color: var(--mgray); letter-spacing: .12em; }
.rf-contact-mth-val   { font-family: var(--ff-d); font-size: clamp(18px,3vw,28px); letter-spacing: .06em; line-height: 1.1; }
.rf-contact-mth-note  { font-size: 10px; color: var(--mgray); }

/* ================================================================
   MAP
================================================================ */
.rf-map { height: 360px; overflow: hidden; }
.rf-map iframe { width: 100%; height: 100%; border: none; filter: grayscale(20%) contrast(1.08); }

/* ================================================================
   FOOTER
================================================================ */
.rf-footer {
  background: var(--slate2); color: #fff;
  padding: 56px clamp(24px,6vw,80px) 0;
  position: relative;
}
.rf-footer-gear-deco {
  position: absolute; bottom: -20px; right: -20px;
  width: clamp(100px,15vw,200px); opacity: .06;
  animation: gearSpin 30s linear infinite; will-change: transform;
}
.rf-footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--border);
}
.rf-footer-logo     { font-family: var(--ff-d); font-size: 28px; letter-spacing: .05em; line-height: 1; }
.rf-footer-logo em  { color: var(--red); font-style: normal; }
.rf-footer-logo-sub { font-size: 10px; color: rgba(255,255,255,.4); letter-spacing: .1em; margin-bottom: 14px; margin-top: 3px; }
.rf-footer-addr     { font-size: 11px; color: rgba(255,255,255,.4); line-height: 2.1; font-style: normal; }
.rf-footer-col-h    { font-family: var(--ff-c); font-size: 11px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.rf-footer-links    { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.rf-footer-links a  { font-size: 12px; color: rgba(255,255,255,.45); transition: color .2s, padding-left .2s; }
.rf-footer-links a:hover { color: #fff; padding-left: 6px; }
.rf-footer-sns { display: flex; gap: 8px; margin-top: 16px; }
.rf-footer-sns a {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-family: var(--ff-c); font-weight: 700;
  color: rgba(255,255,255,.4);
  transition: border-color .2s, color .2s, background .2s;
}
.rf-footer-sns a:hover { border-color: var(--red); color: var(--red); background: rgba(232,0,26,.08); }
.rf-footer-btm {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; font-size: 10px; color: rgba(255,255,255,.25);
  letter-spacing: .05em; flex-wrap: wrap; gap: 8px;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1100px) {
  .rf-header { grid-template-columns: 180px 1fr auto; }
  .rf-hd-nav a { padding: 0 10px; font-size: 11px; }
}
@media (max-width: 900px) {
  .rf-hd-nav { display: none; }
  .rf-hbg { display: flex; }
  .rf-recruit-inner { grid-template-columns: 1fr; gap: 40px; }
  .rf-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .rf-service-grid { grid-template-columns: repeat(2,1fr); }
  .rf-company-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rf-header { grid-template-columns: 1fr auto auto; padding: 0 16px 0 0; }
  .rf-hd-left { padding: 0 12px; }
  .rf-company-photos { grid-template-columns: 1fr; }
  .rf-company-btns { flex-direction: column; }
  .rf-service-grid { grid-template-columns: repeat(2,1fr); gap: 18px; }
  .rf-news-item { grid-template-columns: 1fr; gap: 5px; padding: 13px 0; }
  .rf-contact-methods { grid-template-columns: 1fr; }
  .rf-contact-card { padding: 32px 20px; }
  .rf-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .rf-footer-btm { flex-direction: column; text-align: center; }
  .rf-news-card { padding: 28px 20px; margin: 40px 20px; }
  .rf-recruit-subs { grid-template-columns: repeat(2,1fr); }
}
