/* ============================================
   株式会社オフィスＲＫ コーポレートサイト
   Concept: Simple & Advanced（シンプル×先進的）
   ============================================ */

:root {
  --color-base: #ffffff;
  --color-base-sub: #f5f7f9;
  --color-ink: #0f1c2e;        /* 濃紺（テキスト・メイン） */
  --color-ink-sub: #5a6b7d;    /* サブテキスト */
  --color-accent: #0e6fff;     /* 先進的なブルー */
  --color-accent-dark: #0a56c8;
  --color-line: #e2e8ee;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
  --radius: 8px;
  --shadow: 0 8px 32px rgba(15, 28, 46, 0.08);
  --container: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-jp);
  color: var(--color-ink);
  background: var(--color-base);
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
  z-index: 100;
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(15, 28, 46, 0.06); }

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
}
.site-logo .logo-mark {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}
.site-logo .logo-text { font-size: 15px; letter-spacing: 0.06em; }

.global-nav ul { display: flex; gap: 32px; align-items: center; }
.global-nav a {
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
  transition: color 0.25s;
}
.global-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}
.global-nav a:hover, .global-nav a.is-current { color: var(--color-accent); }
.global-nav a:hover::after, .global-nav a.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  background: var(--color-ink);
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 999px;
  font-size: 13px !important;
  transition: background 0.25s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--color-accent); }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-ink);
  margin: 6px auto;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (Top) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #dbe9f7;
}
/* 都市写真（メインビジュアル背景・全面） */
.hero-skyline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-skyline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  filter: saturate(1.04);
  animation: heroZoom 18s ease-out both;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
/* 明るい写真に合わせた白ベール（左→右）。濃色テキストの可読性を確保 */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.5) 42%, rgba(255, 255, 255, 0.12) 72%, rgba(255, 255, 255, 0) 100%);
}
.hero-accent-orb { display: none; }
/* コンテンツを左に寄せる（中央寄せコンテナを解除） */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: clamp(24px, 8vw, 150px);
  padding-right: 24px;
  text-align: left;
}
.hero-inner > * { max-width: 640px; margin-left: 0; margin-right: 0; }
.hero-actions { justify-content: flex-start; }
.hero .hero-label { color: var(--color-accent); }
.hero .hero-label::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 14px;
  background: linear-gradient(90deg, #0e6fff, #7fd4ff);
  transform-origin: left;
  animation: lineGrow 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
@keyframes lineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.hero .hero-title {
  color: var(--color-ink);
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.7);
}
.hero-title .accent {
  color: var(--color-accent-dark);
  -webkit-text-fill-color: var(--color-accent-dark);
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.7);
}
.hero .hero-lead {
  color: #34465c;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.8);
}
.hero .btn-outline {
  color: var(--color-ink);
  border-color: rgba(15, 28, 46, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.45);
}
.hero .btn-outline:hover { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }
.hero-label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.hero-title .accent { color: var(--color-accent); }
.hero-lead {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--color-ink-sub);
  max-width: 820px;
  margin-bottom: 40px;
}
/* PCのみ有効な改行（スマホでは無効化） */
.br-pc { display: inline; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
/* リード文が複数段落のときの間隔 */
.hero-lead { margin-bottom: 16px; }
.hero-lead:last-of-type { margin-bottom: 40px; }

.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--color-ink-sub);
  text-transform: uppercase;
  padding-bottom: 48px;
}
.hero-scroll::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 1px; height: 40px;
  background: var(--color-ink-sub);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
  border: none;
  cursor: pointer;
  font-family: var(--font-jp);
}
.btn .arrow { transition: transform 0.25s; font-family: var(--font-en); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(14, 111, 255, 0.3);
}
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-ink);
}
.btn-outline:hover { background: var(--color-ink); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-sub { background: var(--color-base-sub); }

.section-head { margin-bottom: 56px; }
.section-label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
  background: linear-gradient(92deg, var(--color-accent) 0%, #38b6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
}
.section-head.is-center { text-align: center; }
.section-lead { margin-top: 20px; color: var(--color-ink-sub); max-width: 640px; }
.section-head.is-center .section-lead { margin-left: auto; margin-right: auto; }
/* セクション見出し直下のキャッチ文 */
.section-catch {
  margin-top: 20px;
  font-size: clamp(16px, 1.9vw, 19px);
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-ink);
  max-width: 920px;
}
.section-head.is-center .section-catch { margin-left: auto; margin-right: auto; }
.section-catch + .section-lead { margin-top: 16px; }

/* ---------- About preview ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: #cfe6fb;
}
.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-text p { color: var(--color-ink-sub); margin-bottom: 20px; }
.about-text .about-catch {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 48px 36px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #38b6ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-num {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 20px;
}
.service-icon {
  width: 56px; height: 56px;
  margin-bottom: 24px;
  color: var(--color-ink);
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.service-card p { font-size: 14.5px; color: var(--color-ink-sub); }
.service-card p + p { margin-top: 14px; }

/* ---------- Works ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.work-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
  transition: transform 0.3s, box-shadow 0.3s;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-thumb {
  aspect-ratio: 16 / 10;
  background: #cfe6fb;
  overflow: hidden;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover .work-thumb img { transform: scale(1.05); }
.work-body { padding: 28px; }
.work-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-accent);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 14px;
  margin-bottom: 14px;
}
.work-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.work-body p { font-size: 13.5px; color: var(--color-ink-sub); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #0f1c2e 0%, #16324f 100%);
  color: #fff;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 111, 255, 0.35), transparent 65%);
  top: -160px; right: -100px;
}
.cta-inner { position: relative; text-align: center; }
.cta-inner .section-label {
  background: linear-gradient(92deg, #7fb0ff 0%, #7fe3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-inner h2 {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.cta-inner > p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 auto 16px;
  max-width: 780px;
  text-align: left;
}
.cta-inner > p:last-of-type { margin-bottom: 40px; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-contact {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0 !important;
}
.cta-contact a {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}
.cta-contact a:hover { color: #7fd4ff; }
.cta-tel {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0 !important;
}
.cta-tel strong {
  font-family: var(--font-en);
  font-size: 20px;
  color: #fff;
  letter-spacing: 0.04em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: #fff;
  padding: 72px 0 32px;
}
/* フッターは中央寄せ（ロゴ1行 → 住所2行 → 連絡先1行 → ナビ） */
.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-bottom: 56px;
  text-align: center;
}
.footer-brand { text-align: center; }
.footer-brand .site-logo { justify-content: center; }
.footer-brand .site-logo .logo-text { color: #fff; }
.footer-brand address {
  font-style: normal;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 20px;
  line-height: 2;
}
.footer-brand address a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s;
}
.footer-brand address a:hover { color: var(--color-accent); }
.footer-nav { display: flex; gap: 64px; justify-content: center; }
.footer-nav-col h4 {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 18px;
}
.footer-nav-col li { margin-bottom: 12px; }
.footer-nav-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s;
}
.footer-nav-col a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom small {
  font-family: var(--font-en);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

/* ---------- Page hero (下層) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 88px) 0 88px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef3f8 100%);
  position: relative;
  overflow: hidden;
}
.page-hero .hero-grid-bg { mask-image: none; -webkit-mask-image: none; opacity: 0.6; }
.page-hero-inner { position: relative; }
.page-hero .page-label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.page-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.breadcrumb {
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--color-ink-sub);
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a:hover { color: var(--color-accent); }

/* ---------- Company table ---------- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 800px;
  margin: 0 auto;
}
.company-table th, .company-table td {
  padding: 24px 16px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}
.company-table th {
  width: 200px;
  font-weight: 700;
  color: var(--color-ink);
  white-space: nowrap;
}
.company-table td { color: var(--color-ink-sub); }

/* ---------- Service detail ---------- */
.service-detail { display: grid; gap: 80px; }
.service-detail-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.service-detail-item:nth-child(even) .service-detail-visual { order: 2; }
.service-detail-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dfe8f2, #cbd9ea);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.service-detail-visual .visual-icon { width: 88px; height: 88px; color: #8fa6bf; }
.service-detail-visual .visual-icon svg { width: 100%; height: 100%; }
.service-detail-text .service-num { margin-bottom: 12px; }
.service-detail-text h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.service-detail-text p { color: var(--color-ink-sub); margin-bottom: 16px; }
.service-feature-list { margin-top: 24px; display: grid; gap: 12px; }
.service-feature-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: var(--color-ink);
  font-weight: 500;
}
.service-feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(-45deg);
}

/* ---------- Contact form ---------- */
.contact-wrap { max-width: 720px; margin: 0 auto; }
.contact-intro { text-align: center; color: var(--color-ink-sub); margin-bottom: 56px; }
.contact-tel {
  text-align: center;
  background: var(--color-base-sub);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 56px;
}
.contact-tel .tel-number {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: 0.04em;
}
.contact-tel .tel-note { font-size: 13px; color: var(--color-ink-sub); margin-top: 4px; }

.form-group { margin-bottom: 32px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}
.required-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 10px;
  vertical-align: 2px;
}
.optional-badge {
  display: inline-block;
  background: #b0bdc9;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 10px;
  vertical-align: 2px;
}
.form-control {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-jp);
  background: var(--color-base-sub);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 111, 255, 0.12);
}
.form-control.is-error { border-color: #e0245e; background: #fff5f8; }
textarea.form-control { min-height: 180px; resize: vertical; }
select.form-control { appearance: none; cursor: pointer; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 20px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--color-ink-sub);
  border-bottom: 2px solid var(--color-ink-sub);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.error-message {
  display: none;
  color: #e0245e;
  font-size: 12.5px;
  margin-top: 6px;
}
.error-message.is-visible { display: block; }

.form-privacy {
  text-align: center;
  font-size: 13.5px;
  color: var(--color-ink-sub);
  margin-bottom: 32px;
}
.form-submit { text-align: center; }
.form-result {
  display: none;
  text-align: center;
  background: #eefaf2;
  border: 1px solid #bfe8cd;
  color: #1c7c40;
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 32px;
  font-weight: 500;
}
.form-result.is-visible { display: block; }

/* ---------- Access map ---------- */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}
.access-map {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-base-sub);
  border: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-sub);
  font-size: 13px;
}
.access-info h3 { font-size: 18px; margin-bottom: 16px; }
.access-info p { font-size: 14.5px; color: var(--color-ink-sub); margin-bottom: 12px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- More link ---------- */
.section-more { text-align: center; margin-top: 56px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .service-grid, .works-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-detail-item { grid-template-columns: 1fr; gap: 32px; }
  .service-detail-item:nth-child(even) .service-detail-visual { order: 0; }
  .access-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  /* backdrop-filter は fixed 子要素の包含ブロックを作ってしまい、
     全画面メニューがヘッダー内に閉じ込められるため無効化する */
  .site-header {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .global-nav {
    position: fixed;
    inset: 0;
    background: rgba(15, 28, 46, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
    z-index: 105;
  }
  .global-nav.is-open { opacity: 1; visibility: visible; }
  .global-nav ul { flex-direction: column; gap: 28px; text-align: center; }
  .global-nav a { color: #fff; font-size: 18px; }
  .global-nav a.is-current { color: var(--color-accent); }
  .nav-toggle.is-open span { background: #fff; }

  .service-grid, .works-grid { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; padding-top: calc(var(--header-h) + 40px); padding-bottom: 48px; }
  .hero-inner { padding-left: 5%; padding-right: 5%; }
  /* モバイルは縦長になるため上部を強めに白ベール */
  .hero-grid-bg {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.6) 55%, rgba(255, 255, 255, 0.25) 100%);
  }
  .company-table th { width: auto; display: block; padding-bottom: 4px; border-bottom: none; }
  .company-table td { display: block; padding-top: 0; }
  .footer-nav { gap: 40px; }
  /* PC専用の改行はスマホでは無効化 */
  .br-pc { display: none; }
}

/* ============================================
   WordPress 固有スタイル
   ============================================ */

/* スクリーンリーダー用テキスト */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed !important;
  top: 8px; left: 8px;
  z-index: 200;
  width: auto; height: auto;
  clip: auto;
  margin: 0;
  padding: 12px 24px;
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  text-decoration: none;
}

/* 管理バー表示時の固定ヘッダー位置調整 */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* カスタムロゴ */
/* ロゴ画像 ＋ 会社名の並び（画像なしの場合は「RK」マーク ＋ 会社名） */
.site-logo--image { align-items: center; }
.site-logo-image {
  max-height: 40px;
  width: auto;
  display: block;
}
.site-footer .site-logo-image { max-height: 48px; }
@media (max-width: 720px) {
  .site-logo-image { max-height: 32px; }
}

/* 固定ページ本文（エディタ出力） */
.entry-content { max-width: 800px; margin: 0 auto; }
.entry-content > * + * { margin-top: 1.5em; }
.entry-content h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 2em;
}
.entry-content h3 {
  font-size: clamp(18px, 2.1vw, 21px);
  font-weight: 700;
  margin-top: 1.8em;
}
.entry-content p { color: var(--color-ink-sub); }
.entry-content a { color: var(--color-accent); text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; color: var(--color-ink-sub); }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: 8px; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
  color: var(--color-ink-sub);
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td {
  padding: 12px 16px;
  border: 1px solid var(--color-line);
  text-align: left;
}

/* WordPress 標準の配置クラス */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: none; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption {
  font-size: 13px;
  color: var(--color-ink-sub);
  text-align: center;
  margin-top: 8px;
}

/* ページネーション */
.pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-size: 14px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ---------- 折り返し制御（途中で改行させない単位） ---------- */
/* 受付時間・電話番号は1かたまりで、入りきらなければまるごと次の行へ */
.nowrap { white-space: nowrap; }
/* フッターの TEL / FAX / MAIL は項目ごとに折り返す（中央寄せを崩さないよう左右対称の余白） */
.contact-item {
  display: inline-block;
  white-space: nowrap;
  margin: 0 0.6em;
}
