:root {
  --navy: #071a33;
  --navy-2: #0d2748;
  --navy-3: #13375f;
  --gold: #caa45d;
  --gold-2: #e3c579;
  --white: #fffdf8;
  --paper: #f7f2e8;
  --ink: #142033;
  --muted: #647087;
  --line: rgba(202, 164, 93, 0.28);
  --shadow: 0 24px 80px rgba(7, 26, 51, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans JP", system-ui, sans-serif;
}

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(7, 26, 51, 0.96);
  border-bottom: 1px solid rgba(227, 197, 121, 0.34);
  backdrop-filter: blur(18px);
}

.brand,
.top-nav a {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--navy);
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.top-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
}

.top-nav a {
  opacity: 0.88;
}

.top-nav a:hover {
  color: var(--gold-2);
  opacity: 1;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("./assets/guild-hero-mobile.jpg");
  background-image: image-set(
    url("./assets/guild-hero-mobile.jpg") 1x,
    url("./assets/guild-hero.jpg") 2x
  );
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 26, 51, 0.96) 0%, rgba(7, 26, 51, 0.82) 42%, rgba(7, 26, 51, 0.3) 100%),
    linear-gradient(0deg, rgba(7, 26, 51, 0.34), rgba(7, 26, 51, 0.14));
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 84px);
  padding: 48px 0 96px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(38px, 6.4vw, 78px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

h3 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 18px;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 32px;
  color: rgba(255, 253, 248, 0.88);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.seo-copy {
  max-width: 680px;
  margin: -16px 0 28px;
  color: rgba(255, 253, 248, 0.76);
  font-size: 14px;
  line-height: 1.8;
}

.hero-search {
  max-width: 720px;
}

.hero-search label,
.filters label,
.post-box label,
.auth-box label,
.creator-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 8px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(7, 26, 51, 0.14);
  border-radius: 6px;
  outline: none;
  padding: 11px 13px;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(202, 164, 93, 0.2);
}

.tag-editor {
  display: flex;
  min-height: 46px;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 7px;
  background: var(--white);
  border: 1px solid rgba(7, 26, 51, 0.14);
  border-radius: 6px;
}

.tag-editor:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(202, 164, 93, 0.2);
}

.tag-editor input {
  flex: 1 1 150px;
  min-height: 30px;
  padding: 4px 6px;
  border: 0;
  box-shadow: none;
}

.tag-editor input:focus {
  box-shadow: none;
}

.tag-editor-list {
  display: contents;
}

.editable-tag {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  background: #f7f0df;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: var(--white);
  border: 1px solid rgba(7, 26, 51, 0.14);
  border-radius: 6px;
}

.choice-grid label {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  background: rgba(7, 26, 51, 0.03);
  border: 1px solid rgba(7, 26, 51, 0.06);
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 800;
}

.choice-grid input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--gold);
}

.hero input {
  background: rgba(255, 253, 248, 0.96);
  border-color: rgba(227, 197, 121, 0.45);
}

.hero-search button,
.gold-button,
.post-box button,
.auth-box button,
.creator-form button {
  min-height: 46px;
  color: var(--navy);
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  border: 0;
  border-radius: 6px;
  padding: 0 20px;
  font-weight: 800;
}

.quick-needs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px clamp(18px, 4vw, 56px);
  background: var(--navy);
  border-top: 1px solid rgba(227, 197, 121, 0.28);
}

.quick-needs button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(227, 197, 121, 0.4);
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 700;
}

.quick-needs button:hover {
  color: var(--navy);
  background: var(--gold-2);
}

.seo-band {
  padding: 40px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: var(--navy-2);
  border-top: 1px solid rgba(227, 197, 121, 0.22);
}

.seo-band h2 {
  max-width: 820px;
  color: var(--white);
  font-size: clamp(24px, 3vw, 34px);
}

.seo-band p {
  max-width: 980px;
  margin: 16px 0 0;
  color: rgba(255, 253, 248, 0.8);
  line-height: 1.9;
}

.panel,
.register {
  padding: 72px clamp(18px, 4vw, 56px);
}

.panel {
  background: var(--paper);
}

.board-panel {
  background: var(--white);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.count {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

.filters {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  background: var(--white);
  border: 1px solid rgba(7, 26, 51, 0.08);
  box-shadow: var(--shadow);
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.creator-card,
.job-card,
.post-box {
  background: var(--white);
  border: 1px solid rgba(7, 26, 51, 0.08);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(7, 26, 51, 0.08);
}

.creator-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.creator-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.creator-name {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
}

.role {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.status {
  align-self: start;
  white-space: nowrap;
  color: var(--navy);
  background: rgba(202, 164, 93, 0.16);
  border: 1px solid rgba(202, 164, 93, 0.42);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.review-badge {
  width: fit-content;
  color: #7a5400;
  background: rgba(227, 197, 121, 0.24);
  border: 1px solid rgba(202, 164, 93, 0.48);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.bio {
  margin: 0;
  color: #334158;
  line-height: 1.75;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  color: var(--navy-2);
  background: #f7f0df;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 700;
}

.meta-list {
  display: grid;
  gap: 9px;
  margin: 0;
  color: #334158;
  font-size: 13px;
}

.meta-list div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
}

.meta-list dt {
  color: var(--muted);
  font-weight: 800;
}

.meta-list dd {
  margin: 0;
}

.creator-links {
  display: flex;
  gap: 10px;
}

.creator-links a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

.owner-actions,
.form-actions,
.application-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.owner-actions button,
.application-actions button,
.subtle-button {
  min-height: 38px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 800;
}

.application-actions button {
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
}

.notice {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.notice[data-tone="warn"] {
  color: #8a5f00;
}

.admin-panel[hidden] {
  display: none;
}

.admin-review {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.review-list {
  display: grid;
  gap: 14px;
}

.admin-actions button:first-child {
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
}

.published-state {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  color: var(--navy);
  background: rgba(7, 26, 51, 0.05);
  border: 1px solid rgba(7, 26, 51, 0.08);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 20px;
  align-items: start;
}

.post-box {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.board-list {
  display: grid;
  gap: 14px;
}

.job-card {
  padding: 22px;
}

.job-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.job-card h3 {
  margin-bottom: 6px;
}

.job-company,
.job-card p {
  margin: 0;
}

.job-company {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.job-card p {
  color: #334158;
  line-height: 1.7;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.job-meta span {
  color: var(--navy);
  background: rgba(7, 26, 51, 0.05);
  border: 1px solid rgba(7, 26, 51, 0.08);
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 800;
}

.deadline {
  white-space: nowrap;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.register {
  color: var(--white);
  background: var(--navy);
}

.register h2 {
  color: var(--white);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 28px;
}

.auth-box,
.creator-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(227, 197, 121, 0.34);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
}

.auth-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.auth-box h4 {
  margin: 10px 0 0;
  color: var(--navy);
}

.google-button {
  position: relative;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(7, 26, 51, 0.16);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(7, 26, 51, 0.12);
}

.reset-area {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(7, 26, 51, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.auth-state {
  margin: 0;
  color: var(--gold-2);
  font-weight: 800;
}

.empty {
  grid-column: 1 / -1;
  padding: 28px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid rgba(7, 26, 51, 0.08);
  border-radius: 8px;
}

.site-footer {
  display: grid;
  gap: 22px;
  padding: 48px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: #051225;
  border-top: 1px solid rgba(227, 197, 121, 0.3);
}

.site-footer h2 {
  color: var(--white);
  font-size: clamp(24px, 3vw, 34px);
}

.operator-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.operator-info div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(227, 197, 121, 0.28);
  border-radius: 8px;
}

.operator-info dt {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 800;
}

.operator-info dd {
  margin: 8px 0 0;
  font-weight: 800;
}

.operator-info a {
  color: var(--white);
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

.footer-note {
  max-width: 980px;
  margin: 0;
  color: rgba(255, 253, 248, 0.76);
  font-size: 13px;
  line-height: 1.8;
}

@media (max-width: 980px) {
  .filters,
  .creator-grid,
  .board-layout,
  .admin-layout,
  .admin-review,
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .filters label:first-child,
  .post-box,
  .auth-box,
  .creator-form {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
  }

  .hero {
    min-height: calc(100vh - 112px);
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(7, 26, 51, 0.96), rgba(7, 26, 51, 0.74));
  }

  .hero-content {
    margin: 0 auto;
  }

  .search-row,
  .filters,
  .creator-grid,
  .board-layout,
  .admin-layout,
  .admin-review,
  .operator-info,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .creator-top,
  .job-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
