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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #0f172a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== Layout ===== */
.container {
  width: min(100%, 1040px);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: #f9fafb;
  padding: 140px 0 160px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(0, 122, 255, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0f172a;
}

/* ===== Language Toggle (page top) ===== */
.lang-toggle-fixed {
  padding: 16px 20px;
  text-align: left;
}

/* ===== Language Toggle ===== */
.lang-toggle {
  background: none;
  border: 1px solid rgba(15, 23, 42, 0.18);
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s;
  font-family: inherit;
}

.lang-toggle:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.3);
}

.lang-toggle--dark {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
}

.lang-toggle--dark:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ===== Legal / Inner Page Header ===== */
.legal-header {
  background: #0f172a;
  padding: 20px 0;
}

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

.legal-brand {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
}

.legal-brand:hover {
  opacity: 0.8;
}

.legal-main {
  padding: 72px 0 96px;
  min-height: calc(100vh - 200px);
}

.legal-content {
  max-width: 680px;
  margin-inline: auto;
}

.legal-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.legal-date {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 24px;
}

.legal-content h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.legal-content h3 {
  font-size: 0.93rem;
  font-weight: 600;
  color: #334155;
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-content p {
  font-size: 0.93rem;
  color: #475569;
  line-height: 1.85;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 1.5em;
  margin-bottom: 12px;
}

.legal-content li {
  font-size: 0.93rem;
  color: #475569;
  line-height: 1.85;
  margin-bottom: 4px;
}

.legal-content a {
  color: #3b82f6;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #1d4ed8;
}

/* プレースホルダー（本文を後日差し替えるまでの仮表示） */
.legal-placeholder {
  margin-top: 32px;
  padding: 28px 24px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
  font-size: 0.93rem;
  text-align: center;
}

/* ===== Contact Form ===== */
.contact-intro {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.85;
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
}

.form-label .required {
  color: #ef4444;
  margin-left: 4px;
  font-weight: 700;
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: #0f172a;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

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

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 13px 32px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.15s;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.26);
  opacity: 0.94;
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

/* ===== Footer ===== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0;
  text-align: center;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.footer-links a {
  color: #94a3b8;
  transition: color 0.15s;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: #475569;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero {
    padding: 120px 0 120px;
  }

  .legal-main {
    padding: 56px 0 72px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .footer-links span[aria-hidden='true'] {
    display: none;
  }

  .footer-links a {
    padding: 4px 8px;
  }
}
