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

:root {
  --color-primary: #0d4f8b;
  --color-primary-dark: #083a66;
  --color-primary-light: #1a6cb5;
  --color-accent: #0891b2;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-bg: #ffffff;
  --color-bg-alt: #f1f5f9;
  --color-border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius: 8px;
  --radius-lg: 12px;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: var(--color-primary-light);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-right .nav {
  order: 1;
}

.header-right .nav-lang {
  order: 2;
}

.header-right .nav-toggle {
  order: 3;
}

.nav-lang {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 104px;
  height: 36px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background-color: var(--color-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.2 1.2L6 6l4.8-4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  color: var(--color-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

.lang-select:hover,
.lang-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13,79,139,.12);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.logo:hover {
  color: inherit;
}

.logo-mark-img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-mark-img--footer {
  width: 40px;
  height: 40px;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  border-radius: var(--radius);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 700;
  font-size: 30px;
  line-height: 1.3;
}

html[lang="en"] .logo-name {
  font-size: 22px;
  letter-spacing: 0.06em;
}

.logo-sub {
  font-size: 10px;
  color: var(--color-text-muted);
  letter-spacing: .05em;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}

.nav a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.nav-cta {
  background: var(--color-primary) !important;
  color: #fff !important;
}

.nav-cta:hover {
  background: var(--color-primary-dark) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform .3s, opacity .3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(13,79,139,.92) 0%, rgba(8,58,102,.88) 50%, rgba(8,145,178,.75) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  color: #fff;
  padding: 80px 24px;
}

.hero-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(255,255,255,.15);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.8;
  opacity: .92;
  margin-bottom: 40px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}

.btn-primary {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.btn-primary:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  color: #fff;
}

.btn-full {
  width: 100%;
}

/* ===== Stats ===== */
.stats {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  margin-top: -1px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
}

.stat-item {
  background: var(--color-bg);
  text-align: center;
  padding: 32px 16px;
}

.stat-num {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

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

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

.section-header {
  margin-bottom: 48px;
}

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.3;
}

.section-desc {
  margin-top: 12px;
  color: var(--color-text-muted);
  max-width: 560px;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text .lead {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-text p {
  color: var(--color-text-muted);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow .2s, transform .2s;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  opacity: .2;
  line-height: 1;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.service-card ul {
  list-style: none;
  font-size: 13px;
  color: var(--color-text);
}

.service-card li {
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
}

.service-card li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* ===== Brands ===== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.brand-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}

.brand-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.brand-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.brand-ja {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.brand-card p:last-child {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===== Flow ===== */
.flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.flow-step {
  flex: 1;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--color-border);
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.flow-step h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.flow-arrow {
  flex-shrink: 0;
  align-self: center;
  color: var(--color-accent);
  font-size: 20px;
  font-weight: 700;
  padding-top: 20px;
}

.flow-notes {
  margin-top: 40px;
  padding: 24px 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.flow-notes h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.flow-notes ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.flow-notes li {
  position: relative;
  padding-left: 1em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.flow-notes li::before {
  content: "・";
  position: absolute;
  left: 0;
}

/* ===== Company Table ===== */
.company-table-wrap {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.company-table th {
  width: 160px;
  background: var(--color-bg-alt);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.company-table td {
  font-size: 15px;
  line-height: 1.7;
}

.company-table .en {
  font-size: 13px;
  color: var(--color-text-muted);
}

.company-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===== Contact ===== */
.section-contact {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--color-accent);
}

.contact-item a {
  font-size: 20px;
  font-weight: 600;
}

.contact-sub {
  font-size: 13px;
  color: var(--color-text-muted);
}

.contact-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.required {
  font-size: 11px;
  font-weight: 600;
  color: #dc2626;
  margin-left: 6px;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13,79,139,.12);
}

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

.file-upload {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.file-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.file-upload-btn:hover {
  border-color: var(--color-primary);
  background: #fff;
}

.file-upload-input:focus + .file-upload-btn {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13,79,139,.12);
}

.file-upload-name {
  flex: 1;
  min-width: 140px;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  word-break: break-all;
}

.file-upload-name.has-files {
  color: var(--color-primary);
  font-weight: 500;
}

.file-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.contact-form .btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.contact-form .btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

.form-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
}

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.6;
}

.honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.contact-form .btn-primary:disabled {
  opacity: .65;
  cursor: not-allowed;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.85);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-name {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

.footer-sub {
  font-size: 11px;
  opacity: .7;
}

html[lang="en"] .footer-sub {
  display: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  color: rgba(255,255,255,.75);
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 12px;
  opacity: .5;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.15);
}

/* ===== Privacy Page ===== */
.page-header {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 48px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
}

.page-content {
  padding: 64px 0 96px;
  max-width: 760px;
}

.page-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.page-content p,
.page-content li {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.page-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-steps {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding: 0;
  }
}

@media (max-width: 768px) {
  .logo-name {
    font-size: 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s, opacity .3s;
    box-shadow: var(--shadow-md);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .nav a {
    padding: 12px 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid,
  .brands-grid {
    grid-template-columns: 1fr;
  }

  .company-table th {
    width: 100px;
    font-size: 13px;
  }

  .company-table th,
  .company-table td {
    padding: 14px 16px;
    display: block;
    width: 100%;
  }

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

  .company-table tr:last-child {
    border-bottom: none;
  }

  .company-table th {
    border-bottom: none;
    padding-bottom: 4px;
  }

  .section {
    padding: 64px 0;
  }
}
