/*
Theme Name: R's
Theme URI: https://rs.royalcloak.jp
Description: R's 営業代行チーム – Royal Cloak × Re:Origin カスタムテーマ
Version: 1.0.0
Author: Royal Cloak
License: GNU General Public License
License URI: http://www.gnu.org/licenses/gpl.html
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0d1b3e;
  --navy-light: #1a2f5e;
  --navy-mid: #162040;
  --silver: #9aa3b2;
  --silver-light: #c8cdd6;
  --silver-bright: #e2e6ed;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --text: #0d1b3e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Serif JP', serif;
  color: var(--text);
  background: var(--white);
}

/* ===== HEADER ===== */
.rs-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  padding: 0 60px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s;
}

.rs-logo {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 24px; font-weight: 600;
  color: var(--navy); letter-spacing: 0.08em;
  text-decoration: none;
  line-height: 1;
  display: flex; align-items: center;
}
.rs-logo span { color: var(--silver); }

.rs-nav {
  display: flex; gap: 40px; align-items: center;
  height: 100%;
}
.rs-nav a {
  text-decoration: none;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-size: 13px; font-weight: 400;
  color: var(--gray-600); letter-spacing: 0.05em;
  transition: color 0.2s;
  display: flex; align-items: center; height: 100%;
}
.rs-nav a:hover { color: var(--navy); }

.rs-nav-cta {
  background: var(--navy); color: white !important;
  padding: 10px 24px; border-radius: 2px;
  font-size: 12px !important; font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  transition: background 0.2s, transform 0.2s !important;
}
.rs-nav-cta:hover { background: #162a5e !important; transform: translateY(-1px) !important; }

/* ===== HERO ===== */
.rs-hero {
  min-height: 100vh;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  padding: 96px 80px 48px; /* 72px header + 24px gap */
  text-align: center;
  overflow: hidden; /* 波紋SVGの横はみ出しを防ぐ */
}

.rs-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, #f4f6fb 0%, #ffffff 65%);
  pointer-events: none;
}

/* 縦ライン */
.rs-hero-deco {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}

.rs-deco-line {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(13,27,62,0.14) 20%,
    rgba(13,27,62,0.14) 80%,
    transparent 100%
  );
}
.rs-deco-line.l1 { left: 7%; }
.rs-deco-line.l2 { left: 11%; opacity: 0.55; }
.rs-deco-line.l3 { left: 14%; opacity: 0.28; }
.rs-deco-line.r1 { right: 7%; }
.rs-deco-line.r2 { right: 11%; opacity: 0.55; }
.rs-deco-line.r3 { right: 14%; opacity: 0.28; }

/* 波紋ラッパー */
.rs-ripple-wrap {
  position: absolute; inset: 0;
  pointer-events: none;
}
.rs-ripple-wrap.left {
  -webkit-mask-image: linear-gradient(to right,
    rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 20%, rgba(0,0,0,0.4) 42%, rgba(0,0,0,0) 60%);
  mask-image: linear-gradient(to right,
    rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 20%, rgba(0,0,0,0.4) 42%, rgba(0,0,0,0) 60%);
}
.rs-ripple-wrap.right {
  -webkit-mask-image: linear-gradient(to left,
    rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 20%, rgba(0,0,0,0.4) 42%, rgba(0,0,0,0) 60%);
  mask-image: linear-gradient(to left,
    rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 20%, rgba(0,0,0,0.4) 42%, rgba(0,0,0,0) 60%);
}

/* 波紋SVG */
.rs-ripple {
  position: absolute; top: 50%;
  pointer-events: none;
}
.rs-ripple.left  { left: 6%;  transform: translate(-50%, -50%); }
.rs-ripple.right { right: 6%; transform: translate(50%, -50%); }

@keyframes rsRippleOut {
  0%   { r: 4;   opacity: 0; }
  10%  { opacity: 0.7; }
  100% { r: 320; opacity: 0.18; }
}

.rs-ripple-ring {
  fill: none;
  stroke: rgba(13,27,62,1);
  stroke-width: 1.2;
  opacity: 0;
  animation: rsRippleOut 2.4s cubic-bezier(0.15, 0.5, 0.3, 1) forwards;
  animation-play-state: paused;
}
.rs-ripple.left  .rs-ripple-ring:nth-child(1) { animation-delay: 0s; }
.rs-ripple.left  .rs-ripple-ring:nth-child(2) { animation-delay: 0.35s; }
.rs-ripple.left  .rs-ripple-ring:nth-child(3) { animation-delay: 0.7s; }
.rs-ripple.left  .rs-ripple-ring:nth-child(4) { animation-delay: 1.05s; }
.rs-ripple.right .rs-ripple-ring:nth-child(1) { animation-delay: 1.2s; }
.rs-ripple.right .rs-ripple-ring:nth-child(2) { animation-delay: 1.55s; }
.rs-ripple.right .rs-ripple-ring:nth-child(3) { animation-delay: 1.9s; }
.rs-ripple.right .rs-ripple-ring:nth-child(4) { animation-delay: 2.25s; }
.rs-ripple.run .rs-ripple-ring { animation-play-state: running; }

/* ヒーロー中央コンテンツ */
.rs-hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  max-width: 900px;
}

.rs-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.35em; color: var(--silver);
  text-transform: uppercase; margin-bottom: 14px;
}

.rs-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 300; color: var(--navy);
  line-height: 1.5; margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.rs-hero h1 .accent {
  font-weight: 600;
  border-bottom: 1px solid var(--silver-light);
  padding-bottom: 2px;
}

.rs-philosophy {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2vw, 26px);
  font-style: italic; color: var(--silver);
  letter-spacing: 0.08em; margin-bottom: 8px;
}

.rs-hero-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px; color: var(--gray-400);
  line-height: 1.8; margin-bottom: 20px;
  font-weight: 300; letter-spacing: 0.05em;
  max-width: 520px;
}

.rs-hero-btns {
  display: flex; gap: 16px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 24px;
}

.rs-btn-primary {
  background: var(--navy); color: white;
  padding: 15px 40px; border-radius: 2px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px; font-weight: 400;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  letter-spacing: 0.1em;
  min-width: 220px;
}
.rs-btn-primary:hover {
  background: #162a5e; transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(13,27,62,0.2); color: white;
}

.rs-btn-outline {
  border: 1px solid var(--silver-light); color: var(--navy);
  padding: 14px 36px; border-radius: 2px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px; font-weight: 400;
  text-decoration: none; background: white;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.3s; letter-spacing: 0.1em;
  min-width: 220px;
}
.rs-btn-outline:hover { border-color: var(--navy); background: var(--gray-50); color: var(--navy); }

/* 実績数字 */
.rs-metrics {
  display: flex; gap: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}
.rs-metric { text-align: center; }
.rs-metric-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px; font-weight: 300; color: var(--navy);
  line-height: 1; letter-spacing: 0.02em;
}
.rs-metric-num span { font-size: 18px; color: var(--silver); margin-left: 2px; }
.rs-metric-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px; color: var(--gray-400);
  margin-top: 8px; letter-spacing: 0.08em;
}

/* ===== SECTION BASE ===== */
.rs-section { padding: 100px 80px; }
.rs-section-inner { max-width: 1200px; margin: 0 auto; }

.rs-section-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em;
  color: var(--silver); text-transform: uppercase;
  margin-bottom: 12px;
}

.rs-section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600; color: var(--navy);
  line-height: 1.4; margin-bottom: 20px;
}

.rs-section-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px; color: var(--gray-600);
  line-height: 1.9; max-width: 600px;
}

/* ===== WHY R'S ===== */
.rs-why { background: var(--gray-50); }

.rs-why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start; margin-top: 60px;
}

.rs-why-points { display: flex; flex-direction: column; gap: 24px; }

.rs-why-point {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 28px;
  background: white;
  border-radius: 4px;
  border: 1px solid var(--gray-200);
  transition: transform 0.3s, box-shadow 0.3s;
}
.rs-why-point:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.06); }

.rs-why-num {
  width: 40px; height: 40px; border-radius: 2px;
  background: var(--navy); color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; font-weight: 400;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; letter-spacing: 0.05em;
}

.rs-why-point-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px; font-weight: 600;
  margin-bottom: 8px; color: var(--navy);
}
.rs-why-point-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px; color: var(--gray-600); line-height: 1.8;
}

.rs-flow-box {
  background: var(--navy);
  border-radius: 4px;
  padding: 40px 36px;
  color: white;
  position: relative; overflow: hidden;
}
.rs-flow-box::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(154,163,178,0.06);
  pointer-events: none;
}

.rs-flow-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 28px; color: var(--silver-light);
}

.rs-flow-steps { display: flex; flex-direction: column; gap: 0; }

.rs-flow-step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.rs-flow-step:last-child { border-bottom: none; }

.rs-flow-dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--silver);
  color: var(--silver);
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.rs-flow-step-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px; color: rgba(255,255,255,0.4);
  margin-bottom: 3px; letter-spacing: 0.1em;
}
.rs-flow-step-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.88);
}

/* ===== SERVICES ===== */
.rs-services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 60px;
}

.rs-service-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 40px 32px;
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.rs-service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--navy);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s;
}
.rs-service-card:hover::before { transform: scaleX(1); }
.rs-service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(13,27,62,0.1); }

.rs-service-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px; letter-spacing: 0.15em;
  color: var(--silver); text-transform: uppercase;
  margin-bottom: 16px; display: block;
}

.rs-service-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px; font-weight: 600; color: var(--navy);
  margin-bottom: 14px; line-height: 1.5;
}
.rs-service-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px; color: var(--gray-600); line-height: 1.9;
}

.rs-service-items {
  margin-top: 20px;
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
}
.rs-service-item {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px; color: var(--gray-800);
  display: flex; align-items: center; gap: 10px;
}
.rs-service-item::before {
  content: '';
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--silver); flex-shrink: 0;
}

/* ===== RESULTS ===== */
.rs-results { background: var(--navy); }

.rs-results .rs-section-label { color: var(--silver); }
.rs-results .rs-section-title { color: white; }

.rs-results-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 60px;
}

.rs-result-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(154,163,178,0.2);
  border-radius: 4px;
  padding: 36px 24px; text-align: center;
  transition: all 0.3s;
}
.rs-result-card:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-4px);
}

.rs-result-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px; font-weight: 300; color: white;
  line-height: 1; letter-spacing: 0.02em;
}
.rs-result-num .unit {
  font-size: 22px; color: var(--silver); margin-left: 2px;
}
.rs-result-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px; color: rgba(255,255,255,0.5);
  margin-top: 14px; line-height: 1.6; letter-spacing: 0.05em;
}

/* ===== CASES ===== */
.rs-cases-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 60px;
}

.rs-case-card {
  border: 1px solid var(--gray-200);
  border-radius: 4px; overflow: hidden;
  transition: all 0.3s;
}
.rs-case-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(13,27,62,0.1); }

.rs-case-header {
  background: var(--navy);
  padding: 28px; color: white;
}
.rs-case-type {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px; font-weight: 400; letter-spacing: 0.2em;
  color: var(--silver); margin-bottom: 10px; text-transform: uppercase;
}
.rs-case-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px; font-weight: 400; line-height: 1.7; color: white;
}

.rs-case-body { padding: 24px; }
.rs-case-result {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px; color: var(--gray-600); line-height: 1.8;
}

.rs-case-metrics {
  display: flex; gap: 12px; margin-top: 20px;
}
.rs-case-metric {
  flex: 1; text-align: center;
  background: var(--gray-50); border-radius: 4px; padding: 12px 8px;
}
.rs-case-metric-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 400; color: var(--navy);
}
.rs-case-metric-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px; color: var(--gray-400); margin-top: 4px;
}

/* ===== COMPANY ===== */
.rs-company { background: var(--gray-50); }

.rs-company-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; margin-top: 60px;
}

.rs-company-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: 4px; padding: 40px;
}

.rs-company-card-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
  padding-bottom: 28px; border-bottom: 1px solid var(--gray-100);
}

.rs-company-logo {
  width: 52px; height: 52px; border-radius: 4px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  color: var(--silver-light);
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; font-weight: 400; letter-spacing: 0.05em;
  flex-shrink: 0;
}

.rs-company-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px; font-weight: 600; color: var(--navy);
}
.rs-company-role {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px; color: var(--gray-400); margin-top: 4px;
}

.rs-company-table { width: 100%; border-collapse: collapse; }
.rs-company-table tr { border-bottom: 1px solid var(--gray-100); }
.rs-company-table tr:last-child { border-bottom: none; }
.rs-company-table th {
  text-align: left; padding: 12px 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px; font-weight: 500; color: var(--gray-400);
  letter-spacing: 0.05em; width: 90px;
}
.rs-company-table td {
  padding: 12px 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px; color: var(--gray-800); line-height: 1.6;
}

/* ===== CONTACT ===== */
.rs-contact { background: var(--navy); }
.rs-contact .rs-section-label { color: var(--silver); }
.rs-contact .rs-section-title { color: white; }

.rs-contact-inner { max-width: 700px; margin: 0 auto; text-align: center; }

.rs-contact-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px; color: rgba(255,255,255,0.6);
  line-height: 2; margin-bottom: 48px;
}

.rs-contact-form-wrap {
  background: white; border-radius: 4px; padding: 48px;
  text-align: left;
}

/* Contact Form 7 リセット・スタイリング */
.wpcf7 { margin: 0; }
.wpcf7 p { margin: 0; }
.wpcf7 br { display: none; } /* CF7が挿入する改行を非表示 */

/* フォームレイアウト */
.rs-form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-bottom: 20px;
}
.rs-form-group {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 20px;
}
.rs-form-group:last-of-type { margin-bottom: 0; }
.rs-req {
  color: #c0392b; font-size: 11px; margin-left: 4px;
}

.wpcf7 label {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px; font-weight: 500;
  color: var(--navy); margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,27,62,0.08);
}
.wpcf7 textarea { min-height: 120px; resize: vertical; }
.wpcf7 input[type="submit"] {
  width: 100%; padding: 16px;
  background: var(--navy); color: white;
  border: none; border-radius: 2px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.1em; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 8px;
}
.wpcf7 input[type="submit"]:hover {
  background: #162a5e; transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.rs-footer {
  background: #060e1f;
  color: rgba(255,255,255,0.5);
  padding: 60px 80px 40px;
}
.rs-footer-inner { max-width: 1200px; margin: 0 auto; }

.rs-footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.rs-footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 400; color: white;
  margin-bottom: 12px; letter-spacing: 0.08em;
}
.rs-footer-logo span { color: var(--silver); }
.rs-footer-tagline {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px; line-height: 1.9; max-width: 280px;
  color: rgba(255,255,255,0.4);
}

.rs-footer-links { display: flex; gap: 56px; }
.rs-footer-link-group h4 {
  color: rgba(255,255,255,0.7);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px; font-weight: 500;
  margin-bottom: 16px; letter-spacing: 0.08em;
}
.rs-footer-link-group a {
  display: block;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px; margin-bottom: 10px;
  transition: color 0.2s; letter-spacing: 0.03em;
}
.rs-footer-link-group a:hover { color: rgba(255,255,255,0.8); }

.rs-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
}
.rs-footer-copy {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px; color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}
.rs-footer-partners {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px; color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
}

/* ===== FADE-UP ===== */
.rs-fade-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.rs-fade-up.visible { opacity: 1; transform: translateY(0); }
.rs-fade-up:nth-child(2) { transition-delay: 0.1s; }
.rs-fade-up:nth-child(3) { transition-delay: 0.2s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .rs-header { padding: 16px 24px; }
  .rs-nav { display: none; }
  .rs-hero { padding: 100px 24px 60px; }
  .rs-section { padding: 64px 24px; }
  .rs-services-grid,
  .rs-cases-grid { grid-template-columns: 1fr; }
  .rs-results-grid { grid-template-columns: repeat(2, 1fr); }
  .rs-why-grid,
  .rs-company-grid { grid-template-columns: 1fr; }
  .rs-metrics { gap: 32px; }
  .rs-footer { padding: 48px 24px 32px; }
  .rs-footer-top { flex-direction: column; gap: 32px; }
  .rs-contact-form-wrap { padding: 28px; }
}

@media (max-width: 480px) {
  .rs-hero-btns { flex-direction: column; align-items: center; }
  .rs-metrics { flex-direction: column; gap: 24px; padding-top: 28px; }
  .rs-results-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   GROUP SECTION
   ========================================================= */
.rs-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}
.rs-group-card {
  padding: 48px 40px 40px;
  border: 1px solid var(--gray-200);
  border-top: 3px solid transparent;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
  background: var(--white);
}
.rs-group-card.rc { border-top-color: #1d2578; }
.rs-group-card.ro { border-top-color: #0c4a6e; }
.rs-group-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.rs-group-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px; letter-spacing: 0.25em;
  color: var(--silver); text-transform: uppercase;
  margin-bottom: 12px;
}
.rs-group-card-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px; font-weight: 400;
  color: var(--navy); margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.rs-group-card-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px; line-height: 1.9;
  color: var(--gray-400); margin-bottom: 24px;
}
.rs-group-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}
.rs-group-tags span {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px; letter-spacing: 0.06em;
  padding: 4px 12px; border: 1px solid var(--gray-200);
  color: var(--silver);
}
.rs-group-btn {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px; letter-spacing: 0.12em;
  color: var(--navy); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--silver-light);
  padding-bottom: 4px;
  transition: gap 0.3s, border-color 0.3s;
}
.rs-group-btn:hover { gap: 14px; border-color: var(--navy); color: var(--navy); }

/* =========================================================
   ROYAL CLOAK PAGE  (.rc-page-*)
   ========================================================= */
.rc-page {
  font-family: 'Noto Sans JP', sans-serif;
  color: #1a1c21;
  background: #fff;
}
.rc-page-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 72px; padding: 0 60px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e8eaf0;
}
.rc-header-logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px; font-weight: 300;
  color: #1d2578; text-decoration: none;
  letter-spacing: 0.08em;
}
.rc-header-back {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px; letter-spacing: 0.1em;
  color: #6b7280; text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.rc-header-back:hover { color: #1d2578; }
.rc-hero {
  min-height: 80vh;
  background: #1d2578;
  display: flex; align-items: center;
  padding: 120px 80px 80px;
  position: relative;
  overflow: hidden;
}
.rc-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, #0037b1 0%, transparent 70%);
  pointer-events: none;
}
.rc-hero-inner {
  position: relative; z-index: 1;
  max-width: 700px;
}
.rc-hero-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px; letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5); text-transform: uppercase;
  margin-bottom: 24px;
}
.rc-hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 300; color: #fff;
  line-height: 1.6; margin-bottom: 28px;
  letter-spacing: 0.06em;
}
.rc-hero-title strong {
  font-weight: 600;
  border-bottom: 1px solid rgba(255,238,97,0.6);
  padding-bottom: 2px;
}
.rc-hero-desc {
  font-size: 14px; line-height: 2;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px; max-width: 520px;
}
.rc-hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: #ffee61; color: #1d2578;
  padding: 14px 36px; font-weight: 700;
  font-size: 13px; letter-spacing: 0.1em;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.rc-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.rc-section {
  padding: 80px 80px;
  max-width: 1100px; margin: 0 auto;
}
.rc-section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px; letter-spacing: 0.3em;
  color: #9ca3af; text-transform: uppercase;
  margin-bottom: 12px;
}
.rc-section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 300; color: #1d2578;
  line-height: 1.5; margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.rc-section-desc {
  font-size: 14px; line-height: 2;
  color: #4b5563; margin-bottom: 56px;
  max-width: 680px;
}
/* Services */
.rc-services {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; margin-top: 48px;
}
.rc-service {
  background: #f8f9fb; padding: 40px 32px;
  border-top: 3px solid #1d2578;
}
.rc-service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px; letter-spacing: 0.2em;
  color: #1d2578; margin-bottom: 16px;
  text-transform: uppercase;
}
.rc-service-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px; font-weight: 400;
  color: #1d2578; margin-bottom: 16px;
  line-height: 1.4; letter-spacing: 0.04em;
}
.rc-service-desc {
  font-size: 13px; line-height: 1.9;
  color: #6b7280;
}
/* Company table */
.rc-table-wrap {
  background: #f8f9fb; padding: 48px 56px;
}
.rc-company-table {
  width: 100%; border-collapse: collapse;
}
.rc-company-table tr {
  border-bottom: 1px solid #e5e7eb;
}
.rc-company-table tr:first-child {
  border-top: 1px solid #e5e7eb;
}
.rc-company-table th {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; color: #9ca3af;
  width: 180px; padding: 20px 16px 20px 0;
  vertical-align: top; white-space: nowrap;
}
.rc-company-table td {
  font-size: 14px; color: #1a1c21;
  padding: 20px 0; line-height: 1.8;
}
/* CTA band */
.rc-cta-band {
  background: #1d2578; padding: 80px;
  text-align: center;
}
.rc-cta-band h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 26px; font-weight: 300;
  color: #fff; margin-bottom: 20px;
  letter-spacing: 0.06em;
}
.rc-cta-band p {
  font-size: 14px; color: rgba(255,255,255,0.7);
  margin-bottom: 36px; line-height: 2;
}
.rc-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #ffee61; color: #1d2578;
  padding: 14px 40px; font-weight: 700;
  font-size: 13px; letter-spacing: 0.1em;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.rc-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
/* RC footer */
.rc-page-footer {
  background: #0d1228; padding: 40px 80px;
  display: flex; align-items: center;
  justify-content: space-between;
}
.rc-page-footer-logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px; font-weight: 300;
  color: #fff; letter-spacing: 0.08em;
}
.rc-page-footer-copy {
  font-size: 11px; color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
}
.rc-page-footer-back {
  font-size: 12px; color: rgba(255,255,255,0.5);
  text-decoration: none; letter-spacing: 0.08em;
  transition: color 0.2s;
}
.rc-page-footer-back:hover { color: #ffee61; }

/* =========================================================
   RE:ORIGIN PAGE  (.ro-page-*)
   ========================================================= */
.ro-page {
  font-family: 'Noto Sans JP', sans-serif;
  color: #0b0c0e;
  background: #fafaf8;
}
.ro-page-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 72px; padding: 0 60px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250,250,248,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e5e7eb;
}
.ro-header-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 400;
  color: #0b0c0e; text-decoration: none;
  letter-spacing: 0.12em;
}
.ro-header-logo-img {
  display: flex; align-items: center;
  text-decoration: none;
}
.ro-header-logo-img img {
  height: 36px; width: auto;
  object-fit: contain;
  /* 白背景を透過してロゴ部分だけを表示 */
  /* mix-blend-mode: multiply; — trimmed PNG版では不要 */
}
.ro-header-back {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px; letter-spacing: 0.1em;
  color: #9ca3af; text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.ro-header-back:hover { color: #0b0c0e; }
/* Hero */
.ro-hero {
  min-height: 90vh;
  background: #0b0c0e;
  display: flex; align-items: center;
  padding: 120px 80px 80px;
  position: relative; overflow: hidden;
}
.ro-hero-bg-text {
  position: absolute; right: -20px; top: 50%;
  transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(120px, 18vw, 240px);
  font-weight: 400; letter-spacing: -0.02em;
  color: rgba(255,255,255,0.03);
  pointer-events: none; line-height: 1;
  user-select: none;
}
.ro-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.ro-hero-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px; letter-spacing: 0.35em;
  color: rgba(255,255,255,0.35); text-transform: uppercase;
  margin-bottom: 28px;
}
.ro-hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 300; color: #fff;
  line-height: 1.5; margin-bottom: 32px;
  letter-spacing: 0.04em;
}
.ro-hero-title em {
  font-style: normal; font-weight: 600;
  color: #c8a96e;
}
.ro-hero-desc {
  font-size: 14px; line-height: 2;
  color: rgba(255,255,255,0.55);
  margin-bottom: 48px; max-width: 540px;
}
.ro-hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid rgba(255,255,255,0.3); color: #fff;
  padding: 15px 36px; font-size: 13px;
  letter-spacing: 0.12em; text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}
.ro-hero-cta:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}
/* Ro sections */
.ro-section {
  padding: 80px 80px;
  max-width: 1100px; margin: 0 auto;
}
.ro-section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px; letter-spacing: 0.35em;
  color: #c8a96e; text-transform: uppercase;
  margin-bottom: 12px;
}
.ro-section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 300; color: #0b0c0e;
  line-height: 1.5; margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.ro-section-desc {
  font-size: 14px; line-height: 2;
  color: #6b7280; margin-bottom: 56px;
  max-width: 600px;
}
/* RO dark section */
.ro-dark-section {
  background: #0b0c0e; padding: 80px;
}
.ro-dark-section .ro-section { padding: 0; }
.ro-dark-section .ro-section-title { color: #fff; }
.ro-dark-section .ro-section-desc { color: rgba(255,255,255,0.5); }
/* Services */
.ro-services {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.ro-service {
  background: #fff; padding: 40px 32px;
  border: 1px solid #e5e7eb;
  position: relative; overflow: hidden;
  transition: box-shadow 0.3s;
}
.ro-service::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: #c8a96e;
}
.ro-service:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.ro-service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px; font-weight: 300;
  color: #e5e7eb; line-height: 1;
  margin-bottom: 16px; letter-spacing: -0.02em;
}
.ro-service-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px; font-weight: 400;
  color: #0b0c0e; margin-bottom: 14px;
  letter-spacing: 0.04em; line-height: 1.4;
}
.ro-service-desc {
  font-size: 13px; line-height: 1.9;
  color: #6b7280;
}
.ro-service-items {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid #f3f4f6;
}
.ro-service-item {
  font-size: 12px; color: #9ca3af;
  padding: 4px 0; display: flex; align-items: center; gap: 8px;
}
.ro-service-item::before {
  content: '—'; color: #c8a96e; flex-shrink: 0;
}
/* Company table (dark version) */
.ro-table-wrap {
  background: #111218; padding: 48px 56px;
}
.ro-company-table {
  width: 100%; border-collapse: collapse;
}
.ro-company-table tr { border-bottom: 1px solid rgba(255,255,255,0.06); }
.ro-company-table tr:first-child { border-top: 1px solid rgba(255,255,255,0.06); }
.ro-company-table th {
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.3);
  width: 180px; padding: 20px 16px 20px 0;
  vertical-align: top; white-space: nowrap;
}
.ro-company-table td {
  font-size: 14px; color: rgba(255,255,255,0.8);
  padding: 20px 0; line-height: 1.8;
}
/* RO CTA band */
.ro-cta-band {
  background: #c8a96e; padding: 80px;
  text-align: center;
}
.ro-cta-band h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 26px; font-weight: 300;
  color: #0b0c0e; margin-bottom: 20px;
  letter-spacing: 0.06em;
}
.ro-cta-band p {
  font-size: 14px; color: rgba(11,12,14,0.65);
  margin-bottom: 36px; line-height: 2;
}
.ro-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #0b0c0e; color: #fff;
  padding: 15px 40px; font-size: 13px;
  letter-spacing: 0.12em; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ro-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
/* RO footer */
.ro-page-footer {
  background: #0b0c0e; padding: 40px 80px;
  display: flex; align-items: center;
  justify-content: space-between;
}
.ro-page-footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 400;
  color: #fff; letter-spacing: 0.12em;
}
.ro-page-footer-copy {
  font-size: 11px; color: rgba(255,255,255,0.25);
  letter-spacing: 0.08em;
}
.ro-page-footer-back {
  font-size: 12px; color: rgba(255,255,255,0.35);
  text-decoration: none; letter-spacing: 0.08em;
  transition: color 0.2s;
}
.ro-page-footer-back:hover { color: #c8a96e; }

/* Responsive for group/page templates */
@media (max-width: 768px) {
  .rs-group-grid { grid-template-columns: 1fr; }
  .rc-services, .ro-services { grid-template-columns: 1fr; }
  .rc-hero, .ro-hero { padding: 100px 24px 60px; }
  .rc-section, .ro-section { padding: 60px 24px; }
  .rc-table-wrap, .ro-table-wrap { padding: 32px 24px; }
  .rc-cta-band, .ro-cta-band { padding: 60px 24px; }
  .rc-page-header, .ro-page-header { padding: 0 24px; }
  .rc-page-footer, .ro-page-footer { padding: 32px 24px; flex-direction: column; gap: 12px; text-align: center; }
}
