/* ==============================
   OrangeJacket Corporate Site
   style.css - 共通スタイル
   ============================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  line-height: 2.2;
  color: #1a1a1a;
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Grain Texture: Safariパフォーマンス問題のため削除 */

/* ---------- Colors & Gradients ---------- */
:root {
  --orange-main: #D55E12;
  --orange-bright: #FF6B00;
  --orange-yellow: #FFB347;
  --grad: linear-gradient(135deg, #D55E12 0%, #FF6B00 40%, #FFB347 100%);
  --text: #1a1a1a;
  --bg-warm: #FFF9F4;
  --bg-light: #FFF3EB;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.em-orange {
  color: var(--orange-bright);
  font-weight: 900;
}

/* ---------- Orange Blob ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  background: rgba(255, 138, 51, 0.07);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Typography ---------- */
.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--orange-bright);
  display: block;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 900;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 24px;
}

.section-title.white { color: #fff; }

.section-title-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 24px;
}

.section-text {
  font-size: 19px;
  line-height: 2.4;
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 18px 48px;
  border-radius: 4px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-grad {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(213,94,18,0.35);
}

/* ファーストビューのお問い合わせボタンの背景図形を横長に（約1.5倍） */
.hero .btn-grad {
  padding-left: 96px;
  padding-right: 96px;
}

.btn-grad:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(213,94,18,0.45);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--orange-bright);
  border: 2px solid var(--orange-bright);
}

.btn-outline:hover {
  background: var(--orange-bright);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--orange-main);
  font-weight: 700;
}

.btn-white:hover {
  background: var(--bg-warm);
}

.btn-wide {
  width: 100%;
  max-width: 480px;
  text-align: center;
  padding: 22px 48px;
  font-size: 18px;
}

.btn-center {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ---------- Looqr Banner ---------- */
.looqr-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 48px;
  border-radius: 20px;
  overflow: hidden;
  background: #1a1a1a;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.looqr-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}
.looqr-banner-bg {
  position: relative;
  overflow: hidden;
}
.looqr-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.looqr-banner-content {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.looqr-banner-title {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.4;
}
.looqr-banner-title span {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #FFB347;
  margin-top: 8px;
}
.looqr-banner-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 2;
  margin-bottom: 24px;
}
.looqr-banner-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #FFB347;
  letter-spacing: 1px;
}
.looqr-banner-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #FF6B00;
  margin-bottom: 8px;
  display: block;
}
.looqr-banner-sub {
  font-size: 13px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 24px;
}
/* Looqr banner: 白背景・黒文字に強制上書き */
.looqr-banner { background: #fff !important; }
.looqr-banner-content { background: #fff !important; }
.looqr-banner-title { color: #1a1a1a !important; }
.looqr-banner-desc { color: #1a1a1a !important; }
.looqr-banner-sub { color: #1a1a1a !important; font-size: 14px; line-height: 1.8; margin-bottom: 24px; }

@media (max-width: 768px) {
  .looqr-banner {
    grid-template-columns: 1fr;
  }
  .looqr-banner-bg {
    aspect-ratio: 16/9;
  }
  .looqr-banner-content {
    padding: 32px 24px;
  }
  .looqr-banner-title {
    font-size: 20px;
  }
}

/* ---------- Header / Navigation ---------- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(213,94,18,0.1);
  transition: box-shadow 0.3s;
}

#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 36px;
  width: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.desktop-nav > li {
  position: relative;
}

.desktop-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.desktop-nav a:hover { color: var(--orange-bright); }

.desktop-nav a.nav-cta {
  background: var(--grad);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff !important;
}

/* Service dropdown */
.nav-service-toggle {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
  -webkit-user-select: none;
  user-select: none;
}

.nav-service-toggle:hover { color: var(--orange-bright); }

.nav-service-toggle .arrow {
  transition: transform 0.3s;
  font-size: 10px;
}

.nav-service-toggle.open .arrow { transform: rotate(180deg); }

.service-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
}

.service-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.service-dropdown a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

.service-dropdown a:hover {
  background: var(--bg-warm);
  color: var(--orange-bright);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
  border-radius: 2px;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.97);
  z-index: 999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  display: block;
  padding: 14px 40px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  text-align: center;
  border-radius: 4px;
  transition: color 0.2s;
  width: 100%;
  max-width: 320px;
}

.mobile-menu a:hover { color: var(--orange-yellow); }

/* ---------- Footer ---------- */
#site-footer {
  background: #1a1a1a;
  color: #fff;
  padding: 64px 40px 32px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-brand .footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 15px;
  line-height: 2;
  color: rgba(255,255,255,0.7);
}

.footer-nav-group {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-nav-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer-nav-col a {
  display: block;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-nav-col a:hover { color: var(--orange-bright); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--orange-bright); }

/* ---------- Hero (Video Background) ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero h1 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(30px, 6vw, 52px);
  font-weight: 900;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 24px;
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.88);
  line-height: 2;
  margin-bottom: 40px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll span {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---------- Page Hero (Sub Pages) ---------- */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.page-hero-content h1 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(26px, 5vw, 46px);
  font-weight: 900;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 20px;
}

.page-hero-content p {
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(255,255,255,0.85);
  line-height: 2;
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- Section Wrapper ---------- */
.section {
  padding: 96px 40px;
  position: relative;
  overflow: hidden;
}

.section-warm { background: var(--bg-warm); }
.section-white { background: #fff; }
.section-dark { background: #1a1a1a; color: #fff; }
.section-grad { background: var(--grad); color: #fff; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.container-wide {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.text-center { text-align: center; }

/* ---------- Grid Background ---------- */
.grid-bg {
  position: relative;
}

.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(213,94,18,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(213,94,18,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Overview Section ---------- */
.overview-section {
  padding: 96px 40px;
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
}

.overview-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.overview-inner .section-text {
  font-size: 20px;
  line-height: 2.5;
}

/* ---------- Strength (left/right alternating) ---------- */
.strengths-section {
  padding: 96px 40px;
  background: #fff;
}

.strength-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 96px;
}

.strength-item:last-child { margin-bottom: 0; }

.strength-item.reverse { direction: rtl; }
.strength-item.reverse > * { direction: ltr; }

.strength-img {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}

.strength-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.strength-img:hover img { transform: scale(1.04); }

.strength-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  opacity: 0.5;
}

.strength-title {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.5;
}

.strength-text {
  font-size: 18px;
  line-height: 2.3;
  color: var(--text);
}

/* ---------- Tag Pills ---------- */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.pill {
  background: var(--grad);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Noto Sans JP', sans-serif;
  white-space: nowrap;
}

/* ---------- Works Cards ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.14);
}

.work-card-thumb {
  aspect-ratio: 16/9;
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
}

.work-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-light), #ffe8d6);
  color: var(--orange-main);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}

.work-card-body {
  padding: 20px;
}

.work-card-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-bright);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.work-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
}

/* ---------- Timeline (Flow) ---------- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange-bright), var(--orange-yellow));
}

.timeline-item {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  background: var(--grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  position: relative;
  z-index: 1;
}

.timeline-body {
  flex: 1;
  padding-top: 12px;
}

.timeline-step {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 17px;
  color: var(--text);
  line-height: 2;
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 96px 40px;
  text-align: center;
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 40px;
  line-height: 2.2;
}

/* ---------- Philosophy Banner ---------- */
.philosophy-banner {
  position: relative;
  padding: 80px 40px;
  overflow: hidden;
  text-align: center;
}

.philosophy-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.philosophy-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(213, 94, 18, 0.85);
  z-index: 1;
}

.philosophy-banner-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.philosophy-banner-content h3 {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.6;
}

.philosophy-banner-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  line-height: 2.4;
}

.philosophy-banner-content .em-white {
  text-decoration: underline;
  font-weight: 900;
}

/* ---------- Worries Section ---------- */
.worries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.worry-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.worry-check {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.worry-check svg {
  width: 16px;
  height: 16px;
}

.worry-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.8;
}

.worry-text .em-orange {
  color: var(--orange-bright);
  font-weight: 900;
}

/* ---------- Platform Buttons ---------- */
.platform-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}

.platform-btn {
  background: var(--grad);
  color: #fff;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
}

/* ---------- Service List ---------- */
.service-list {
  max-width: 820px;
  margin: 0 auto;
}

.service-list-item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid rgba(213,94,18,0.12);
}

.service-list-item:first-child { border-top: 1px solid rgba(213,94,18,0.12); }

.service-num {
  flex-shrink: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  padding-top: 4px;
  min-width: 56px;
}

.service-list-body h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 10px;
}

.service-list-body p {
  font-size: 17px;
  color: var(--text);
  line-height: 2;
}

/* ---------- Company Table ---------- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 20px;
}

.company-table th,
.company-table td {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(213,94,18,0.1);
  line-height: 2;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange-bright);
  width: 180px;
  white-space: nowrap;
}

.company-table td {
  color: var(--text);
}

/* ---------- Profile Section ---------- */
.profile-section {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
}

.profile-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.profile-img img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.profile-name {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
}

.profile-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--orange-bright);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.profile-text {
  font-size: 19px;
  line-height: 2.4;
  color: var(--text);
}

/* ---------- Vision Section ---------- */
.vision-text {
  font-size: 20px;
  line-height: 2.6;
  color: var(--text);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- Raccoon Section ---------- */
.raccoon-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.raccoon-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  overflow: hidden;
}

.raccoon-card-header {
  background: var(--grad);
  padding: 24px;
  color: #fff;
}

.raccoon-card-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 4px;
}

.raccoon-card-header p {
  font-size: 14px;
  opacity: 0.85;
}

.raccoon-card-body {
  padding: 24px;
}

.raccoon-card-img {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.raccoon-card-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.raccoon-stats {
  display: flex;
  gap: 24px;
}

.raccoon-stat {
  text-align: center;
}

.raccoon-stat .num {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.raccoon-stat .label {
  font-size: 13px;
  color: var(--text);
}

.raccoon-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.raccoon-thumb {
  aspect-ratio: 16/9;
  background: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--orange-main);
  font-weight: 600;
}

/* ---------- Contact Form ---------- */
.contact-form-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group label .required {
  color: var(--orange-bright);
  font-size: 13px;
  margin-left: 6px;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid rgba(213,94,18,0.2);
  border-radius: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 17px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange-bright);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.12);
}

.form-group textarea {
  height: 200px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--orange-bright);
  cursor: pointer;
}

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

.form-submit .btn-grad {
  padding: 20px 80px;
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
}

/* ---------- Privacy Page ---------- */
.privacy-section h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  border-left: 4px solid var(--orange-bright);
  padding-left: 16px;
  margin: 48px 0 16px;
  line-height: 1.6;
}

.privacy-section p {
  font-size: 17px;
  color: var(--text);
  line-height: 2.2;
  margin-bottom: 16px;
}

.privacy-section ul {
  list-style: disc;
  padding-left: 32px;
  margin-bottom: 16px;
}

.privacy-section ul li {
  font-size: 17px;
  color: var(--text);
  line-height: 2;
}

.privacy-meta {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
}

/* ---------- TOP Page Specific ---------- */
.top-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.14);
}

.service-card-icon {
  height: 180px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
  overflow: hidden;
}

/* imgを::afterの上に出す */
.service-card-icon img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1);
  z-index: 2;
  pointer-events: none;
}

.service-card-body {
  padding: 28px 28px 36px;
}

.service-card-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange-bright);
  margin-bottom: 10px;
}

.service-card-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 14px;
}

.service-card-text {
  font-size: 16px;
  color: var(--text);
  line-height: 2;
  margin-bottom: 24px;
}

.service-card-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-bright);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.service-card-link:hover { gap: 12px; }

/* TOP Company section */
.top-company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.top-company-img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.top-company-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-company-content .section-text {
  font-size: 19px;
  margin-bottom: 32px;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 100%;
  max-width: 960px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: -52px;
  right: 0;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover { background: rgba(255,255,255,0.22); }

.modal-title {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 1px;
}

.modal-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 16px;
  font-family: 'Noto Sans JP', sans-serif;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 1;
}
.modal-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: #FF6B00;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

#modalVideo {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  background: #000;
  display: block;
  position: relative;
  z-index: 2;
}

/* ---------- Work card clickable ---------- */
.work-card[onclick] {
  cursor: pointer;
}

.work-card[onclick] .work-card-thumb::after {
  content: '動画を見る';
  position: absolute;
  inset: 0;
  background: rgba(213,94,18,0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}

.work-card[onclick]:hover .work-card-thumb::after { opacity: 1; }

/* ---------- SVG Placeholder ---------- */
.strength-placeholder {
  background: linear-gradient(135deg, #FFF3EB 0%, #FFE0C4 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}

.placeholder-inner {
  text-align: center;
  padding: 24px;
}

.placeholder-inner svg {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.placeholder-inner p {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #D55E12;
  margin: 0;
}

/* YouTube thumbnail placeholders */
.yt-thumb-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #FFF3EB, #FFE0C4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #D55E12;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---------- AOS Animations ---------- */
[data-aos] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-aos="fade-up"] { transform: translateY(32px); }
[data-aos="fade-right"] { transform: translateX(-32px); }
[data-aos="fade-left"] { transform: translateX(32px); }
[data-aos="fade-in"] { transform: none; }

[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .section { padding: 64px 24px; }
  .overview-section { padding: 64px 24px; }
  .cta-section { padding: 64px 24px; }
  .philosophy-banner { padding: 56px 24px; }

  #site-header .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .header-inner { padding: 0 24px; }

  .strength-item,
  .strength-item.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }

  .strength-item.reverse { direction: ltr; }

  .top-service-grid { grid-template-columns: 1fr; }
  .top-company-grid { grid-template-columns: 1fr; }

  .works-grid { grid-template-columns: 1fr 1fr; }

  .worries-grid { grid-template-columns: 1fr; }

  .profile-section { grid-template-columns: 1fr; }
  .profile-img { max-width: 320px; }

  .raccoon-section { grid-template-columns: 1fr; }

  .company-table th {
    width: 120px;
    font-size: 12px;
    padding: 16px 12px;
  }
  .company-table td { font-size: 17px; padding: 16px 12px; }

  .footer-top { flex-direction: column; }
  .footer-nav-group { gap: 32px; }

  .works-grid { grid-template-columns: 1fr; }

  .strength-number { font-size: 56px; }

  .service-list-item { flex-direction: column; gap: 8px; }
}

/* ---------- Utility ---------- */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.pt-72 { padding-top: 72px; } /* offset for fixed header */

/* ---------- 資料BG 共通背景クラス ---------- */
.bg-portfolio {
  position: relative;
  overflow: hidden;
}
.bg-portfolio::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../Footage/portfolio-bg.jpg') center / cover no-repeat;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}
.bg-portfolio > .container {
  position: relative;
  z-index: 1;
}

/* ---------- 再生アイコン ---------- */
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(213, 94, 18, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(213, 94, 18, 0.3);
  pointer-events: none;
}
.work-card:hover .play-icon {
  background: rgba(255, 107, 0, 0.95);
  transform: translate(-50%, -50%) scale(1.1);
}

/* ---------- 強みセクション画像 ---------- */
.strength-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-lg);
}

/* ---------- 対応ジャンル表 ---------- */
.genre-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 36px;
}
.genre-table td {
  padding: 18px 24px;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  border-bottom: 1px solid rgba(213, 94, 18, 0.12);
  width: 50%;
}
.genre-table tr:first-child td {
  border-top: 1px solid rgba(213, 94, 18, 0.12);
}
@media (max-width: 768px) {
  .genre-table td {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
  }
  .genre-table tr:first-child td:first-child {
    border-top: 1px solid rgba(213, 94, 18, 0.12);
  }
}

/* ---------- モバイル：ヒーロー動画を非表示（PCのみ動画再生） ---------- */
@media (max-width: 768px) {
  .hero-vid {
    display: none !important;
  }
  .hero {
    background: linear-gradient(135deg, #D55E12 0%, #FF6B00 40%, #FFB347 100%);
  }
  .page-hero {
    background: linear-gradient(135deg, #D55E12 0%, #FF6B00 40%, #FFB347 100%);
  }
}

/* ---------- モバイル：サービスカードのz-index修正 ---------- */
@media (max-width: 768px) {
  .service-card {
    position: relative;
    z-index: 2;
  }
  .service-card-icon {
    position: relative;
    z-index: 2;
  }
}

/* ==============================
   News list & News modal
   ============================== */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #EADFD3;
}

.news-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 8px;
  background: none;
  border: none;
  border-bottom: 1px solid #EADFD3;
  cursor: pointer;
  text-align: left;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background 0.2s, padding-left 0.2s;
}

.news-item:hover {
  background: var(--bg-light);
  padding-left: 16px;
}

.news-item-date {
  flex: 0 0 auto;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--orange-bright);
}

.news-item-title {
  flex: 1 1 auto;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
}

.news-item-arrow {
  flex: 0 0 auto;
  color: #C9BCAD;
  display: inline-flex;
  transition: transform 0.2s, color 0.2s;
}

.news-item:hover .news-item-arrow {
  color: var(--orange-bright);
  transform: translateX(4px);
}

.news-modal-content {
  width: 100%;
  max-width: 720px;
  max-height: 82vh;
  background: #fff;
  border-radius: 16px;
  position: relative;
  padding: 48px 48px 44px;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}

.news-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-light);
  border: none;
  border-radius: 50%;
  color: var(--orange-main);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.news-modal-close:hover { background: #FFE0C4; }

.news-modal-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--orange-bright);
  margin-bottom: 10px;
}

.news-modal-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--bg-light);
}

.news-modal-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 2;
  color: #333;
}

.news-modal-body p { margin: 0 0 18px; }
.news-modal-body p:last-child { margin-bottom: 0; }
.news-modal-body ul { margin: 0 0 18px; padding-left: 1.4em; }
.news-modal-body li { margin-bottom: 8px; }
.news-modal-body a { color: var(--orange-bright); font-weight: 700; }
.news-modal-body a:hover { text-decoration: underline; }

/* ---------- モバイル：パフォーマンス最適化 ---------- */
@media (max-width: 768px) {
  /* backdrop-filterを無効化（Safariで重い） */
  #site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.98);
  }
  .modal-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 4px;
    position: relative;
  }
  .news-item:hover { padding-left: 4px; }
  .news-item-arrow { position: absolute; right: 4px; top: 20px; }
  .news-item-title { font-size: 16px; padding-right: 28px; }
  .news-modal-content { padding: 40px 24px 32px; max-height: 88vh; }
  /* decorative blob非表示 */
  .blob {
    display: none;
  }
  /* ハンバーガー表示（メニューオーバーレイより上に） */
  .hamburger {
    position: relative;
    z-index: 1001;
  }
  /* 開いた状態のハンバーガーを白に（ダーク背景の上） */
  .hamburger.open span {
    background: #fff;
  }
  /* AOSアニメーションを軽量化 */
  [data-aos] {
    transition-duration: 0.4s !important;
  }
}
