/* ========================================
   D-Research Corporate Site - Stylesheet
   ======================================== */

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #4a4a4a;
  --color-accent: #c9b98a;
  --color-accent-dark: #a8966a;
  --color-dark: #2c2c2c;
  --color-navy: #0d1c3a;
  --color-navy-deep: #081428;
  --color-navy-soft: #1a2c4d;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-bg-gray: #f5f5f3;
  --color-bg-cream: #f7f3eb;
  --color-bg-dark: #2c2c2c;
  --color-border: #e0e0e0;
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Noto Serif JP', serif;
  --max-width: 1100px;
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s;
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ========================================
   Hero
   ======================================== */
.hero {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy-deep);
  position: relative;
  overflow: hidden;
}

.hero::before {
  /* depth gradients (sit BEHIND canvas) */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(201, 185, 138, 0.10), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(60, 90, 130, 0.18), transparent 55%),
    radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.hero::after {
  /* Center spotlight: darker behind text, transparent at edges so particles still show */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 75% at center, rgba(10, 12, 18, 0.72) 0%, rgba(10, 12, 18, 0.55) 45%, rgba(10, 12, 18, 0.2) 80%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-inner {
  text-align: center;
  padding: 80px 24px;
  position: relative;
  z-index: 3;
}

.hero-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  color: var(--color-accent);
  margin-bottom: 22px;
  letter-spacing: 0.18em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-tagline::before,
.hero-tagline::after {
  content: '';
  display: block;
  width: clamp(28px, 4vw, 56px);
  height: 1px;
  background: var(--color-accent);
  opacity: 0.85;
}

.hero-tagline-text {
  display: inline-block;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.7),
    0 0 32px rgba(0, 0, 0, 0.4);
}

.hero-pillars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 18px;
}

.hero-pillar {
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.1em;
  padding: 12px 30px;
  border: 1px solid rgba(201, 185, 138, 0.6);
  border-radius: 999px;
  background: transparent;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.hero-cross {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  font-weight: 300;
  color: var(--color-accent);
  line-height: 1;
}

.hero-sub {
  font-size: clamp(0.9375rem, 1.2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 2;
  margin-bottom: 48px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.05em;
}

/* Button */
.btn {
  display: inline-block;
  padding: 18px 64px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s;
  letter-spacing: 0.1em;
  min-width: 240px;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(201, 185, 138, 0.25);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 185, 138, 0.4);
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 100px 0;
}

.section-gray {
  background: var(--color-bg-gray);
}

.section-navy {
  background: var(--color-navy-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.section-label-light {
  text-align: center;
}

.section-dark {
  background: var(--color-bg-dark);
  color: #fff;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 4px;
}

.section-subtitle {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 56px;
  color: var(--color-dark);
}

.section-title-light {
  color: var(--color-accent);
}

.section-subtitle-light {
  color: #fff;
}

/* ========================================
   Section variants
   ======================================== */
.section-cream {
  background: var(--color-bg-cream);
}

/* Section heading variant: left-aligned label + serif heading (About / Contact) */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 3.4vw, 2.625rem);
  font-weight: 700;
  color: var(--color-navy-deep);
  margin-bottom: 32px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* Outline button (used on cream sections) */
.btn-outline {
  background: transparent;
  color: var(--color-navy-deep);
  border: 1px solid var(--color-navy-deep);
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 16px 44px;
  min-width: 220px;
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--color-navy-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 28, 58, 0.25);
}

.btn-navy {
  background: var(--color-navy-deep);
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 16px 44px;
  min-width: 220px;
  box-shadow: 0 4px 16px rgba(13, 28, 58, 0.2);
}

.btn-navy:hover {
  background: var(--color-navy);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(13, 28, 58, 0.35);
}

/* ========================================
   About
   ======================================== */
.about-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: center;
}

.about-text {
  text-align: left;
}

.about-body {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 2;
  margin-bottom: 18px;
}

.about-body strong {
  color: var(--color-navy-deep);
  font-weight: 700;
}

.about-text .btn-outline,
.about-text .btn-navy {
  margin-top: 24px;
}

.about-visual {
  position: relative;
  min-height: 480px;
}

/* Gold dotted pattern behind photos, bottom-right */
.about-dot-grid {
  position: absolute;
  width: 140px;
  height: 140px;
  background-image: radial-gradient(var(--color-accent) 1.4px, transparent 1.4px);
  background-size: 14px 14px;
  bottom: -10px;
  right: -10px;
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

.about-photos {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 480px;
}

.about-photo {
  position: absolute;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 18px 44px rgba(13, 28, 58, 0.22);
  background: #ddd;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Photo 1: top-left, gentle clockwise tilt (right-leaning) */
.about-photo-1 {
  width: 54%;
  height: 320px;
  top: 0;
  left: 4%;
  transform: rotate(3deg);
  z-index: 1;
}

/* Photo 2: bottom-right, gentle counter-clockwise tilt (left-leaning) — overlaps photo 1 */
.about-photo-2 {
  width: 54%;
  height: 320px;
  bottom: 0;
  right: 0;
  transform: rotate(-3deg);
  z-index: 2;
}

.about-photo:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 24px 56px rgba(13, 28, 58, 0.32);
  z-index: 3;
}


/* ========================================
   Services
   ======================================== */
.services-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 3.4vw, 2.625rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 64px;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.services-heading-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.85;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  position: relative;
  background: #fff;
  padding: 44px 40px 36px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  min-height: 440px;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

/* Large background silhouette — fills right portion of card */
.service-card-bg {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: 60%;
  max-width: 280px;
  height: 88%;
  z-index: 0;
  pointer-events: none;
  fill: #b8bdc7;
  opacity: 0.18;
}

.service-card-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Image-based silhouette variant — transparent PNG, sits naturally on white card */
.service-card-bg-image {
  right: 12px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: 55%;
  max-width: 280px;
  height: 80%;
  opacity: 0.12;
  overflow: visible;
}

.service-card-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  display: block;
}

/* Laptop variant — landscape photo, fills wider area, can crop right edge */
.service-card-bg-laptop {
  right: -40px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: 80%;
  max-width: 440px;
  height: 70%;
  opacity: 0.45;
  overflow: hidden;
}

.service-card-bg-laptop img {
  object-fit: cover;
  object-position: center center;
}

.service-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.service-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(201, 185, 138, 0.35);
  margin-bottom: 0;
}

.service-title {
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  color: var(--color-navy-deep);
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.service-list {
  margin-bottom: 28px;
}

.service-list li {
  padding: 7px 0 7px 28px;
  position: relative;
  color: var(--color-text);
  font-size: 0.9375rem;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23c9b98a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='10' cy='10' r='8.5'/><path d='M6 10l3 3 5-6'/></svg>") no-repeat center;
  background-size: 100% 100%;
  border-radius: 0;
  transform: translateY(-50%);
}

.service-link {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-navy-deep);
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--color-navy-deep);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.service-link:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  transform: translateX(2px);
}

/* ========================================
   Company Table
   ======================================== */
.company-table {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid var(--color-border);
}

.company-table th,
.company-table td {
  padding: 20px 16px;
  text-align: left;
  font-size: 0.9375rem;
  vertical-align: top;
}

.company-table th {
  width: 160px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

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

/* ========================================
   Page Hero (sub-pages)
   ======================================== */
.page-hero {
  margin-top: var(--header-height);
  padding: 72px 24px 56px;
  background: var(--color-bg-gray);
  text-align: center;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* ========================================
   Contact
   ======================================== */
.contact-container {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: 64px;
  align-items: start;
}

.contact-info {
  text-align: left;
}

.contact-lead {
  text-align: left;
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 2;
  margin-bottom: 36px;
}

.contact-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-feature {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(13, 28, 58, 0.06);
  border: 1px solid rgba(201, 185, 138, 0.25);
}

.contact-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-cream);
  border: 1px solid rgba(201, 185, 138, 0.5);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-feature-text {
  flex: 1;
  min-width: 0;
}

.contact-feature-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-navy-deep);
  margin: 0 0 4px;
  letter-spacing: 0.05em;
}

.contact-feature-desc {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

.contact-form-wrapper {
  position: relative;
}

.contact-form {
  margin: 0;
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(13, 28, 58, 0.08);
  border: 1px solid rgba(201, 185, 138, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

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

.required {
  display: inline-block;
  font-size: 0.6875rem;
  background: var(--color-accent);
  color: var(--color-dark);
  padding: 2px 8px;
  border-radius: 2px;
  margin-left: 6px;
  font-weight: 700;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 185, 138, 0.18);
}

.form-group textarea {
  resize: vertical;
  line-height: 1.7;
  min-height: 140px;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin: 8px 0 20px;
  text-align: center;
}

.form-actions {
  text-align: center;
  margin-top: 8px;
}

.form-actions .btn {
  min-width: 240px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.contact-mail-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-top: 24px;
  margin-bottom: 0;
}

.contact-mail-note a {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-accent);
}

/* Privacy policy consent checkbox */
.form-consent {
  margin: 20px 0 24px;
  text-align: center;
}

.form-consent-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--color-text);
  cursor: pointer;
  line-height: 1.6;
}

.form-consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--color-accent);
  flex-shrink: 0;
  cursor: pointer;
}

.form-consent-label a {
  color: var(--color-navy-deep);
  border-bottom: 1px solid var(--color-accent);
}

.form-consent-label a:hover {
  color: var(--color-accent);
}

/* Spam honeypot — hidden from users, visible to bots */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Confirmation panel before final submit */
.form-confirm {
  background: #fff;
  border: 1px solid rgba(201, 185, 138, 0.3);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 6px 24px rgba(13, 28, 58, 0.08);
}

.form-confirm-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-navy-deep);
  margin: 0 0 8px;
  letter-spacing: 0.05em;
  text-align: center;
}

.form-confirm-lead {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin: 0 0 28px;
}

.form-confirm-list {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 14px 24px;
  margin: 0 0 32px;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.form-confirm-list dt {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-navy-deep);
  letter-spacing: 0.04em;
  padding-top: 2px;
}

.form-confirm-list dd {
  font-size: 0.9375rem;
  color: var(--color-text);
  margin: 0;
  word-break: break-word;
  line-height: 1.7;
}

.form-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-back {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 16px 36px;
  min-width: 200px;
  box-shadow: none;
}

.btn-back:hover {
  background: var(--color-bg-cream);
  border-color: var(--color-text-light);
  transform: translateY(-2px);
}

/* Confirmation panel after successful submit */
.form-success {
  background: #fff;
  border: 1px solid rgba(201, 185, 138, 0.3);
  border-radius: 8px;
  padding: 60px 32px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(13, 28, 58, 0.08);
}

.form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(201, 185, 138, 0.15);
  color: var(--color-accent);
  margin-bottom: 24px;
}

.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy-deep);
  margin: 0 0 16px;
  letter-spacing: 0.05em;
}

.form-success p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 2;
  margin: 0;
}

/* ========================================
   Works (開発実績)
   ======================================== */
.works-intro {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
  color: var(--color-text-light);
  line-height: 2;
  font-size: 0.9375rem;
}

.works-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 880px;
  margin: 0 auto;
}

.work-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 40px 44px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s, box-shadow 0.3s;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
}

.work-card-feature {
  background: linear-gradient(180deg, #fff 0%, var(--color-bg-gray) 100%);
  border-color: var(--color-accent);
}

.work-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.work-no {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  text-transform: uppercase;
}

.work-industry {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  padding: 3px 10px;
  background: var(--color-bg-gray);
  border-radius: 999px;
}

.work-card-feature .work-industry {
  background: #fff;
}

.work-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--color-dark);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
}

.work-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.5;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.work-summary {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--color-border);
}

.work-desc {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 2;
  margin-bottom: 24px;
}

.work-desc strong {
  color: var(--color-text);
  font-weight: 700;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.work-tags li {
  font-size: 0.75rem;
  color: var(--color-text-light);
  padding: 6px 12px;
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.work-card-feature .work-tags li {
  background: #fff;
}

.works-cta {
  text-align: center;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.works-cta-note {
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-size: 0.9375rem;
}

/* Services -> Works CTA */
.services-cta {
  text-align: center;
  margin-top: 56px;
}

.btn-navy-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--color-accent);
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 16px 44px;
  min-width: 240px;
  box-shadow: none;
}

.btn-navy-outline:hover {
  background: var(--color-accent);
  color: var(--color-navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(201, 185, 138, 0.35);
}

/* ========================================
   Legal documents (Privacy / Terms)
   ======================================== */
.legal-doc {
  max-width: 820px;
  margin: 0 auto;
  color: var(--color-text);
  line-height: 2;
  font-size: 0.9375rem;
}

.legal-doc .legal-intro {
  margin-bottom: 40px;
  color: var(--color-text-light);
}

.legal-doc h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy-deep);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  letter-spacing: 0.04em;
}

.legal-doc p {
  margin-bottom: 14px;
  color: var(--color-text-light);
}

.legal-doc ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 18px;
}

.legal-doc li {
  color: var(--color-text-light);
  padding: 4px 0;
}

.legal-doc a {
  color: var(--color-navy-deep);
  border-bottom: 1px solid var(--color-accent);
}

.legal-contact {
  background: var(--color-bg-cream);
  border-left: 3px solid var(--color-accent);
  padding: 20px 24px;
  border-radius: 4px;
  margin: 16px 0;
}

.legal-contact p {
  margin-bottom: 6px;
  color: var(--color-text);
}

.legal-revision {
  margin-top: 48px;
  text-align: right;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* ========================================
   404 error page
   ======================================== */
.error-content {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.error-code {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin: 0 0 24px;
  letter-spacing: 0.05em;
}

.error-message {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 2;
  margin: 0;
}

/* Company page extras */
.company-tel-note {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.company-cta {
  text-align: center;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.company-cta-note {
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-size: 0.9375rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.55);
  padding: 48px 0 32px;
  border-top: 1px solid rgba(201, 185, 138, 0.12);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  /* Force logo to pure white so it stands out on the navy footer */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer-nav-link:hover {
  color: var(--color-accent);
}

.footer-copy {
  font-size: 0.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

/* Scroll-to-top circular button */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(13, 28, 58, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s, box-shadow 0.3s;
  z-index: 900;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 8px 24px rgba(13, 28, 58, 0.35);
  transform: translateY(-3px);
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.125rem;
  }

  .section {
    padding: 72px 0;
  }

  .section-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .contact-features {
    max-width: 480px;
    margin: 0 auto;
  }

  .contact-form,
  .form-confirm {
    padding: 32px 20px;
  }

  .form-confirm-list {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  .form-confirm-list dt {
    margin-top: 16px;
  }

  .form-confirm-list dt:first-child {
    margin-top: 0;
  }

  .form-confirm-actions {
    flex-direction: column;
  }

  .form-confirm-actions .btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .company-table th {
    width: 120px;
  }

  .page-hero {
    padding: 56px 24px 40px;
  }

  .work-card {
    padding: 28px 24px;
  }

  .work-title {
    font-size: 1.1875rem;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    min-height: auto;
  }

  .about-visual {
    min-height: auto;
  }

  .about-photos {
    height: 420px;
    max-width: 460px;
    margin: 0 auto;
  }

  .about-photo-1 {
    width: 60%;
    height: 260px;
    transform: rotate(2.5deg);
  }

  .about-photo-2 {
    width: 60%;
    height: 260px;
    transform: rotate(-2.5deg);
  }

  .about-dot-grid {
    width: 110px;
    height: 110px;
  }

  .about-dot-grid {
    width: 160px;
    height: 160px;
    bottom: 0;
    right: 0;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-nav {
    gap: 16px 24px;
  }

  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .hero-inner {
    padding: 60px 24px;
  }

  .hero-pillars {
    flex-direction: column;
    gap: 10px;
  }

  .hero-cross {
    font-size: 2rem;
  }

  .hero-pillar {
    padding: 8px 22px;
  }
}

@media (max-width: 480px) {
  .company-table th,
  .company-table td {
    display: block;
    padding: 8px 0;
  }

  .company-table th {
    padding-top: 20px;
    font-weight: 700;
    width: 100%;
  }

  .company-table td {
    padding-bottom: 20px;
  }
}
