/* GLASS GLOBAL — glass-global.net */
:root {
  --ink: #1A1C1D;
  --ink-2: #3E4246;
  --muted: #5E6366;
  --line: #D4D3CE;
  --field: #C9C8C3;
  --paper: #FFFFFF;
  --stone: #F2F1EE;
  --dark-text: #EDEDEA;
  --dark-muted: #A3A8AB;
  --dark-line: #3A3D40;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --latin: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; } /* clears the sticky header */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--muted); }
[hidden] { display: none !important; }

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }
.container--form { max-width: 600px; }

/* Logo (SVG from the official artwork, C100 → #00A0E9) */
.site-header__logo { display: inline-flex; align-items: center; min-height: 44px; }
.site-header__logo img { height: 32px; width: auto; }
.brand__logo { width: clamp(150px, 22vw, 200px); height: auto; margin: 0 auto; }
.site-footer__logo { width: 88px; height: auto; }

/* Header — sticky on desktop/tablet, static on phones (they have the bottom bar) */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 24px;
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 16px 32px;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 13px; letter-spacing: 0.06em; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

/* Brand + hero */
.brand { padding: 72px 24px 64px; text-align: center; }
.brand__kana { margin: 28px 0 0; font-size: 13px; letter-spacing: 0.24em; }
.hero-photo { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.hero-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 55%; }

.about { max-width: 640px; margin: 0 auto; padding: 72px 24px 112px; text-align: center; }
.about { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.about__label { font-size: 13px !important; letter-spacing: 0.12em; color: var(--muted) !important; }
.about h1 { margin: 0 0 8px; font-size: clamp(24px, 4.4vw, 30px); letter-spacing: 0.08em; line-height: 1.6; }
.about p { margin: 0; line-height: 2.1; color: var(--ink-2); }
.about__body { width: fit-content; max-width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; text-align: left; }
.about__cta { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.about__cta .btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-width: 0; }
.about__cta .btn:not(.btn--ghost) { color: #FFFFFF; }
.nobr { display: inline-block; }

/* Section heading */
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 56px; text-align: center; }
.sec-head::after { content: ""; width: 24px; height: 1px; background: currentColor; margin-top: 6px; }
.sec-head__en { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: var(--muted); }
.sec-head h2, .sec-head h1 { margin: 0; font-size: 24px; letter-spacing: 0.1em; line-height: 1.4; }
.sec-head--light .sec-head__en { color: var(--dark-muted); }

/* Services */
.services { background: var(--ink); color: var(--dark-text); padding: 104px 0 112px; }
.service-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); column-gap: 48px;
  border-top: 1px solid var(--dark-line);
}
.service-list li { display: flex; align-items: baseline; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--dark-line); font-size: 16px; }
.service-list span { font-family: var(--mono); font-size: 12px; color: var(--dark-muted); }
.services__note { margin: 48px 0 0; text-align: center; font-size: 14px; color: var(--dark-muted); }

/* Works */
.works { padding: 112px 0; }
.works figure { margin: 0; text-align: center; }
.works figcaption { margin-top: 14px; font-size: 14px; letter-spacing: 0.08em; }
.works__wide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 45%; }
.works__grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; }
.works__grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* Company */
.company { background: var(--stone); padding: 112px 0; }
.profile { margin: 0; border-top: 1px solid var(--ink); }
.profile > div { display: grid; grid-template-columns: minmax(88px, 160px) minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.profile dt { font-size: 14px; color: var(--muted); }
.profile dd { margin: 0; }
.map { margin-top: 48px; height: clamp(280px, 50vw, 400px); background: #E2E1DC; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.3); }

/* Contact */
.contact { padding: 112px 0; }
.contact__tel { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin-bottom: 48px; font-size: 14px; color: var(--ink-2); }
.contact__tel-num { font-family: var(--latin); font-size: 36px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); text-decoration: none; line-height: 1.3; }
.muted { color: var(--muted); font-size: 13px; }

.form { display: flex; flex-direction: column; gap: 22px; }
.steps { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.steps li { padding-top: 10px; border-top: 2px solid var(--line); }
.steps li[aria-current="step"] { border-top-color: var(--ink); color: var(--ink); font-weight: 500; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; }
.hint { font-size: 12px; color: var(--muted); }
.req { font-size: 11px; padding: 1px 6px; margin-left: 6px; border: 1px solid var(--ink); vertical-align: 1px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--field); border-radius: 0;
}
textarea { resize: vertical; line-height: 1.8; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #B3261E; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.agree { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; font-size: 14px; }
.agree input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.form__error { margin: 0; padding: 12px 14px; font-size: 14px; color: #B3261E; border: 1px solid #B3261E; }
.btn {
  align-self: center; min-width: 240px; min-height: 52px; padding: 0 32px;
  font: inherit; font-size: 15px; letter-spacing: 0.1em;
  background: var(--ink); color: #FFFFFF; border: 1px solid var(--ink); cursor: pointer;
}
.btn:hover { background: #33373A; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--stone); }
.btn-row { display: flex; flex-wrap: wrap-reverse; justify-content: center; gap: 12px; }
.btn-row .btn { min-width: 200px; }
.lead { margin: 0; color: var(--ink-2); }
.confirm-list { margin: 0; border-top: 1px solid var(--ink); }
.confirm-list > div { display: grid; grid-template-columns: minmax(96px, 170px) minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.confirm-list dt { font-size: 14px; color: var(--muted); }
.confirm-list dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.done { text-align: center; }
.done h3 { margin: 16px 0 0; font-size: 20px; letter-spacing: 0.06em; }
.done p { margin: 0; color: var(--ink-2); }
/* Spam trap: present for bots, hidden from people and screen readers */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Form pages (inquiry/check.php, inquiry/submit.php) */
.contact--page { min-height: 50vh; }
.confirm-list dd { white-space: pre-wrap; }
.btn:disabled { opacity: 0.6; cursor: default; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: #FFFFFF; }
a.btn--ghost { color: var(--ink); }
.result { text-align: center; }
.result__title { margin: 16px 0 0; font-size: 20px; letter-spacing: 0.06em; }
.result__message { margin: 0; line-height: 2; color: var(--ink-2); }
.result__note { text-align: left; font-size: 13px; line-height: 1.9; color: var(--ink-2); padding: 20px; background: var(--stone); }
.result__note p { margin: 0; }
.result__note p + p, .result__note ul + p { margin-top: 8px; }
.result__note ul { margin: 4px 0 0; padding-left: 1.4em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 24px 40px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.site-footer p { margin: 0; font-size: 13px; line-height: 2; color: var(--ink-2); }
.map-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.site-footer small { margin-top: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--muted); }

/* Mobile call/contact bar */
.cta-bar { display: none; }
@media (max-width: 640px) {
  body { padding-bottom: 56px; }
  html { scroll-padding-top: 16px; }
  .site-header { position: static; border-bottom: 0; }
  .site-header__inner { padding: 6px 20px; }
  .site-nav { flex-wrap: nowrap; gap: 0 18px; }
  .site-nav__contact { display: none !important; } /* the bottom bar covers it */
  .brand { padding: 32px 24px 36px; }
  .brand__logo { width: 110px; }
  .brand__kana { margin-top: 18px; font-size: 12px; }
  .about { padding: 56px 24px 80px; }
  .about__cta { width: 100%; flex-direction: column; align-items: stretch; }
  .about__cta .btn { align-self: stretch; }
  .services, .works, .company, .contact { padding-top: 80px; padding-bottom: 80px; }
  .sec-head { margin-bottom: 40px; }
  .hero-photo { padding: 0; }
  .contact__tel-num { font-size: 32px; }
  .cta-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    height: 56px; border-top: 1px solid var(--line);
  }
  .cta-bar a { display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; }
  .cta-bar a:first-child { background: var(--paper); color: var(--ink); }
  .cta-bar a:last-child { background: var(--ink); color: #FFFFFF; }
}
