/*
=========================================================
N1E CREATOR GUILD
=========================================================
コンセプト:
- 明るい
- 親しみやすい
- コミュニティ / 交流感
- N1E Lab本体とは別のサイトに見える

色変更はここだけでOKです。
*/

:root {
  color-scheme: light;

  --bg: #fffaf3;
  --surface: #ffffff;
  --surface-2: #fff0de;
  --text: #261f1a;
  --muted: #786c63;
  --line: #ecddd1;

  --orange: #f47b45;
  --pink: #ef6688;
  --yellow: #f8c95a;
  --green: #58bd8b;

  --header-bg: rgba(255, 250, 243, .90);
  --shadow: 0 20px 55px rgba(105, 70, 48, .10);
}

html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #16120f;
  --surface: #211a16;
  --surface-2: #2b211b;
  --text: #fff8f2;
  --muted: #c7b9ae;
  --line: #3a2d27;

  --orange: #ff9868;
  --pink: #ff87a2;
  --yellow: #ffd675;
  --green: #7bd6a8;

  --header-bg: rgba(22, 18, 15, .90);
  --shadow: 0 20px 55px rgba(0,0,0,.24);
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 12% 5%, rgba(248,201,90,.14), transparent 26rem),
    radial-gradient(circle at 92% 22%, rgba(239,102,136,.10), transparent 25rem),
    var(--bg);
  line-height: 1.75;
}

.guild-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: max(10px, env(safe-area-inset-top));
  pointer-events: none;
}

.guild-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 9px 11px 9px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
}

.guild-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.guild-dot {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 0 0 5px rgba(244,123,69,.12);
}

.guild-nav {
  display: flex;
  gap: 3px;
}

.guild-nav a {
  padding: 8px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.guild-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.guild-actions {
  display: flex;
  gap: 7px;
}

.theme-button,
.menu-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.menu-button {
  display: none;
}

.guild-mobile-menu {
  display: none;
  margin-top: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.guild-mobile-menu.is-open {
  display: grid;
}

.guild-mobile-menu a {
  padding: 12px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 800;
}

.guild-hero {
  padding: 92px 0 82px;
}

.guild-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
}

.guild-eyebrow,
.guild-label {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.guild-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 1;
  letter-spacing: -.055em;
}

.guild-hero h1 span {
  color: transparent;
  background: linear-gradient(110deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
}

.guild-lead {
  max-width: 720px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}

.guild-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.guild-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 900;
}

.guild-button.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.guild-board {
  position: relative;
  min-width: 0;
  min-height: 420px;
  overflow: hidden;
  border: 2px dashed var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 25% 20%, rgba(248,201,90,.22), transparent 17rem),
    var(--surface);
  box-shadow: var(--shadow);
}

.board-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 128px;
  height: 128px;
  place-items: center;
  transform: translate(-50%, -50%) rotate(-5deg);
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-size: 32px;
  font-weight: 1000;
}

.note {
  position: absolute;
  width: 172px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.note small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
}

.note strong {
  font-size: 15px;
}

.note-a { top: 38px; left: 22px; transform: rotate(-4deg); }
.note-b { top: 82px; right: 22px; transform: rotate(5deg); }
.note-c { bottom: 36px; left: 64px; transform: rotate(3deg); }

.guild-section {
  padding: 88px 0;
}

.guild-section-head {
  max-width: 800px;
  margin-bottom: 32px;
}

.guild-section-head h2 {
  margin: 0 0 13px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.guild-section-head p {
  margin: 0;
  color: var(--muted);
}

.guild-cards {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
}

.guild-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.guild-card.large {
  grid-row: span 2;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(145deg, var(--surface), var(--surface-2));
}

.guild-card-number {
  display: block;
  margin-bottom: auto;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.guild-card h3 {
  margin: 0 0 9px;
  font-size: 25px;
}

.guild-card p {
  margin: 0;
  color: var(--muted);
}

.guild-soft {
  background: var(--surface-2);
}

.value-list {
  border-top: 1px solid var(--line);
}

.value-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.value-row > span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.value-row h3 {
  margin: 0 0 5px;
  font-size: 23px;
}

.value-row p {
  margin: 0;
  color: var(--muted);
}

.guild-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: clamp(28px, 5vw, 44px);
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.guild-status h2 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
}

.guild-status p {
  max-width: 700px;
  margin: 0;
  color: rgba(255,255,255,.88);
}

.starting {
  min-width: max-content;
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.17);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.guild-footer {
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.guild-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 900px) {
  .guild-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .guild-hero-grid {
    grid-template-columns: 1fr;
  }

  .guild-board {
    min-height: 360px;
  }

  .guild-cards {
    grid-template-columns: 1fr;
  }

  .guild-card.large {
    grid-row: auto;
    min-height: 290px;
  }

  .guild-status {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .guild-header {
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .guild-brand {
    font-size: 14px;
  }

  .guild-hero {
    padding: 72px 0 54px;
  }

  .guild-hero h1 {
    font-size: clamp(43px, 15vw, 67px);
  }

  .guild-actions-row {
    flex-direction: column;
  }

  .guild-button {
    width: 100%;
  }

  .guild-board {
    min-height: 330px;
  }

  .note {
    width: 150px;
    padding: 13px;
  }

  .note-a { top: 24px; left: 10px; }
  .note-b { top: 74px; right: 10px; }
  .note-c { bottom: 26px; left: 20px; }

  .board-logo {
    width: 108px;
    height: 108px;
    font-size: 27px;
  }

  .guild-section {
    padding: 68px 0;
  }

  .value-row {
    grid-template-columns: 46px 1fr;
  }

  .guild-footer-inner {
    flex-direction: column;
  }
}
