@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font: 'Noto Sans JP', -apple-system, BlinkMacSystemFont,
          "Hiragino Kaku Gothic ProN", "Yu Gothic UI", sans-serif;
}

body {
  font-family: var(--font);
  background: #fff;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* ---- Language ---- */
[data-lang="en"] .ja { display: none; }
[data-lang="ja"] .en { display: none; }

/* ---- Lang switch ---- */
.lang-switch {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 14px;
}
.lang-switch button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
  font-weight: 400;
}
[data-lang="ja"] .lang-switch [data-lang="ja"],
[data-lang="en"] .lang-switch [data-lang="en"] {
  color: #222;
  font-weight: 600;
}

/* ---- Header ---- */
header {
  padding: 56px 24px 8px;
  text-align: center;
}
header h1 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
  color: #333;
}
.header-meta {
  margin-top: 6px;
  font-size: 11px;
  color: #aaa;
}

/* ---- Main ---- */
main {
  flex: 1;
}

/* ---- Footer ---- */
footer {
  padding: 20px 0 28px;
  text-align: center;
}
footer a {
  font-size: 11px;
  color: #aaa;
  letter-spacing: 0.02em;
  text-decoration: none;
  margin: 0 14px;
}
footer a:hover {
  text-decoration: underline;
}

/* ---- Top page ---- */
.top-main {
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-main p {
  font-size: 14px;
  color: #888;
  margin: 0;
}

/* ---- Privacy / Contact shared container ---- */
.policy-body,
.contact-body {
  margin: 0 auto;
  padding: 32px 24px 40px;
  width: 100%;
}
.policy-body { max-width: 480px; }

/* ---- Privacy ---- */
.policy-body section {
  margin-bottom: 28px;
}
.policy-body h2 {
  font-size: 12.5px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px;
}
.policy-body p,
.policy-body li {
  font-size: 12.5px;
  color: #666;
  line-height: 1.95;
  margin: 0;
}
.policy-body ul {
  padding-left: 1.4em;
}
.policy-body li {
  margin-top: 4px;
}

/* ---- Contact form ---- */
.contact-body { max-width: 380px; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-size: 11px;
  color: #999;
}
.field input,
.field select,
.field textarea {
  border: none;
  border-bottom: 1px solid #e5e5e5;
  padding: 6px 0;
  font-size: 13px;
  background: transparent;
  color: #333;
  width: 100%;
  font-family: var(--font);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: #999;
}
.field textarea {
  resize: vertical;
  height: 96px;
}
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23bbb'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 8px;
  padding-right: 18px;
}
.submit-btn {
  margin-top: 8px;
  padding: 10px 0;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  border-radius: 4px;
  font-size: 12.5px;
  cursor: pointer;
  width: 100%;
  font-family: var(--font);
}
.submit-btn:hover {
  background: #fafafa;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.submit-btn:disabled {
  color: #aaa;
  cursor: default;
  animation: blink 1s ease-in-out infinite;
}
.form-error {
  color: #c00;
  font-size: 12.5px;
  margin-bottom: 16px;
}
.form-success {
  font-size: 12.5px;
  color: #666;
  line-height: 1.9;
  text-align: center;
}
