@charset "utf-8";

/* =========================================================
Gemslinks Contact Page Stylesheet
File: /css/contact.css

Purpose:
* Standalone CSS for /en/contact/
* Does not depend on /css/style.css or /css/knowledge.css
========================================================= */

/* =========================================================
0. Variables
========================================================= */

:root {
  --gl-black: #1f1f1f;
  --gl-dark: #222222;
  --gl-orange: #f28c28;
  --gl-orange-dark: #d96f12;
  --gl-cream: #f5f5f2;
  --gl-cream-dark: #f1eee9;
  --gl-card: #ffffff;
  --gl-text: #333333;
  --gl-muted: #666666;
  --gl-border: #dddddd;
  --gl-border-dark: #bbbbbb;
  --gl-soft-orange: #fff8ef;
  --gl-soft-orange-border: #f2d7b6;

  --contact-content-width: 1180px;
  --contact-radius-lg: 20px;
  --contact-radius-md: 16px;
  --contact-radius-sm: 10px;
  --contact-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --contact-shadow-soft: 0 8px 18px rgba(0, 0, 0, 0.05);
}

/* =========================================================
1. Reset / Base
========================================================= */

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

html,
body {
  min-height: 100%;
}

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

body {
  margin: 0;
  padding: 0;
  color: var(--gl-text);
  background: var(--gl-cream);
  font-family:
    "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo,
    Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-size: 16px;
  line-height: 2;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
h4,
h5,
p,
ul,
ol,
li,
form {
  margin: 0;
  padding: 0;
  font-size: 100%;
  font-weight: normal;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--gl-text);
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

a:hover {
  color: var(--gl-orange);
  text-decoration: none;
}

strong {
  font-weight: 700;
}

/* =========================================================
2. Header
========================================================= */

header {
  width: 100%;
  position: relative;
  background: var(--gl-black);
  border-bottom: 4px solid var(--gl-orange);
}

.sub-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

#logo {
  margin: 0;
  padding: 0;
}

#logo img {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
}

#menubar {
  flex: 1;
  text-align: right;
}

#menubar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#menubar li {
  display: inline-block;
  margin-left: 18px;
}

#menubar li a {
  display: block;
  padding: 0 0 5px;
  color: #ffffff;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
}

#menubar li a:hover,
#menubar li a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

#language-switch {
  order: 3;
}

#language-switch .language-disabled {
  display: inline-block;
  padding: 6px 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0.75;
}

/* =========================================================
3. Layout
========================================================= */

#container {
  max-width: var(--contact-content-width);
  margin: 0 auto;
}

#contents {
  padding: 35px 3% 60px;
}

.breadcrumb {
  margin-bottom: 18px;
  padding: 0 20px;
  color: var(--gl-muted);
  font-size: 13px;
  line-height: 1.7;
}

.breadcrumb a {
  color: var(--gl-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gl-orange);
}

/* =========================================================
4A. Return to Source Guide
========================================================= */

.source-back {
  margin: 0 0 14px;
  padding: 0 4px;
}

.source-back[hidden] {
  display: none;
}

.source-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gl-muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
  text-decoration: none;
}

.source-back a:hover {
  color: var(--gl-orange-dark);
}

.source-back a span[aria-hidden="true"] {
  color: var(--gl-orange);
  font-size: 16px;
  line-height: 1;
}

/* =========================================================
4. Hero
========================================================= */

.contact-hero {
  margin-bottom: 34px;
  padding: 38px 38px 34px;
  background: #ffffff;
  border: 1px solid var(--gl-border);
  border-radius: var(--contact-radius-lg);
  box-shadow: var(--contact-shadow);
}

.contact-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 14px;
  color: #ffffff;
  background: var(--gl-orange);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-hero h1 {
  margin-bottom: 14px;
  color: var(--gl-dark);
  font-size: 34px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-lead {
  margin-bottom: 8px;
  color: var(--gl-dark);
  font-size: 19px;
  line-height: 1.7;
  font-weight: 700;
}

.contact-note {
  max-width: 900px;
  color: var(--gl-muted);
  line-height: 1.8;
}

/* =========================================================
5. Main Contact Area
========================================================= */

.contact-main {
  display: grid;
  gap: 22px;
}

.topic-context {
  padding: 18px 22px;
  background: var(--gl-dark);
  border-radius: var(--contact-radius-md);
  box-shadow: var(--contact-shadow-soft);
}

.topic-context-label,
.topic-context strong {
  display: block;
}

.topic-context-label {
  margin-bottom: 4px;
  color: var(--gl-orange);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topic-context strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.5;
}

.contact-form-card {
  padding: 34px;
  background: #ffffff;
  border: 1px solid var(--gl-border);
  border-radius: var(--contact-radius-lg);
  box-shadow: var(--contact-shadow);
}

.contact-form-intro {
  margin-bottom: 26px;
}

.contact-kicker {
  margin-bottom: 7px;
  color: var(--gl-orange);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-form-intro h2,
.contact-backup h2 {
  margin-bottom: 10px;
  color: var(--gl-dark);
  font-size: 24px;
  line-height: 1.45;
  font-weight: 700;
}

.contact-form-intro > p:last-child {
  max-width: 860px;
  color: var(--gl-muted);
  line-height: 1.7;
}

/* =========================================================
6. Form
========================================================= */

.contact-form {
  padding: 28px;
  background: var(--gl-soft-orange);
  border: 1px solid var(--gl-soft-orange-border);
  border-radius: var(--contact-radius-md);
  box-shadow: inset 0 0 0 1px rgba(242, 140, 40, 0.06);
}

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

.form-row:last-of-type {
  margin-bottom: 0;
}

.form-row label {
  display: block;
  margin-bottom: 7px;
  padding-left: 12px;
  color: var(--gl-dark);
  border-left: 5px solid var(--gl-orange);
  font-weight: 700;
  line-height: 1.5;
}

.required,
.optional {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  vertical-align: 0.08em;
}

.required {
  color: #ffffff;
  background: var(--gl-orange);
}

.optional {
  color: var(--gl-muted);
  background: #ffffff;
  border: 1px solid var(--gl-border);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  color: var(--gl-dark);
  background: #ffffff;
  border: 1px solid var(--gl-border-dark);
  border-radius: var(--contact-radius-sm);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form input,
.contact-form select {
  min-height: 50px;
  padding: 11px 14px;
}

.contact-form textarea {
  min-height: 430px;
  padding: 16px;
  line-height: 1.65;
  resize: vertical;
  white-space: pre-wrap;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gl-orange);
  box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.18);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999999;
}

.message-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 7px;
}

.message-label-row label {
  margin-bottom: 0;
}

.text-button {
  padding: 4px 0;
  color: var(--gl-orange-dark);
  background: transparent;
  border: 0;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button:hover {
  color: var(--gl-dark);
}

.form-help {
  margin: 0 0 10px 17px;
  color: var(--gl-muted);
  font-size: 12px;
  line-height: 1.6;
}

/* =========================================================
7. Actions
========================================================= */

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn-primary-action,
.btn-secondary-action {
  min-width: 220px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.04em;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.btn-primary-action {
  color: #ffffff;
  background: var(--gl-orange);
  border: 2px solid var(--gl-orange);
}

.btn-secondary-action {
  color: var(--gl-dark);
  background: #ffffff;
  border: 2px solid var(--gl-dark);
}

.btn-primary-action:hover,
.btn-secondary-action:hover {
  color: #ffffff;
  background: var(--gl-dark);
  border-color: var(--gl-dark);
  transform: translateY(-1px);
}

.copy-status {
  min-height: 1.6em;
  margin-top: 14px;
  color: var(--gl-muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

/* =========================================================
8. Backup / Manual Email
========================================================= */

.contact-backup {
  padding: 28px 32px;
  background: var(--gl-cream-dark);
  border: 1px solid var(--gl-border);
  border-radius: var(--contact-radius-lg);
}

.contact-backup > p:not(.contact-kicker):not(.backup-note) {
  margin-bottom: 18px;
  line-height: 1.75;
}

.email-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid var(--gl-border);
  border-radius: var(--contact-radius-md);
}

.email-copy-row a {
  min-width: 0;
  color: var(--gl-orange-dark);
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.email-copy-row a:hover {
  color: var(--gl-dark);
  text-decoration: underline;
}

.copy-email-button {
  flex: 0 0 auto;
  padding: 8px 14px;
  color: var(--gl-dark);
  background: #ffffff;
  border: 1px solid var(--gl-dark);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
}

.copy-email-button:hover {
  color: #ffffff;
  background: var(--gl-dark);
}

.backup-note {
  margin-top: 12px;
  color: var(--gl-muted);
  font-size: 12px;
  line-height: 1.6;
}

/* =========================================================
9. Footer
========================================================= */

footer {
  margin-top: 30px;
  padding: 1.1rem 1rem;
  color: #ffffff;
  background: var(--gl-dark);
  font-size: 85%;
  text-align: center;
}

/* =========================================================
10. Responsive
========================================================= */

@media screen and (max-width: 900px) {
  .sub-header-inner {
    display: block;
    text-align: center;
  }

  #logo img {
    margin: 0 auto 16px;
  }

  #menubar {
    text-align: center;
  }

  #menubar li {
    margin: 0 8px 8px;
  }

  #language-switch {
    margin-top: 10px;
  }
}

@media screen and (max-width: 600px) {
  #contents {
    padding: 28px 4% 46px;
  }

  .breadcrumb {
    padding: 0;
  }

  .contact-hero,
  .contact-form-card,
  .contact-backup {
    border-radius: 16px;
  }

  .contact-hero {
    padding: 26px 22px;
  }

  .contact-hero h1 {
    font-size: 24px;
  }

  .contact-lead {
    font-size: 16px;
  }

  .contact-form-card {
    padding: 22px 18px;
  }

  .contact-form {
    padding: 22px 18px;
  }

  .contact-form-intro h2,
  .contact-backup h2 {
    font-size: 19px;
  }

  .contact-form textarea {
    min-height: 500px;
    font-size: 14px;
  }

  .message-label-row {
    align-items: flex-start;
  }

  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn-primary-action,
  .btn-secondary-action {
    width: 100%;
    min-width: 0;
  }

  .contact-backup {
    padding: 24px 20px;
  }

  .email-copy-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .copy-email-button {
    justify-self: start;
  }
}

@media screen and (max-width: 420px) {
  body {
    font-size: 14px;
  }

  #menubar li {
    margin: 0 5px 7px;
  }

  #menubar li a {
    font-size: 12px;
  }

  .contact-hero h1 {
    font-size: 21px;
  }

  .topic-context strong {
    font-size: 16px;
  }

  .contact-form {
    padding: 18px 14px;
  }

  .form-help {
    margin-left: 0;
  }

  .contact-form textarea {
    min-height: 540px;
  }
}
