/* ============================================================
   works.css — Guild Atelier Style (2026 Refined Complete)
============================================================ */

/* ── 1. VARIABLES & RESET ── */
:root {
  --bg-base: #f8f7f3;
  --bg-white: #ffffff;
  --bg-mid: #dddad0;
  --bg-light: #eceae3;
  --bg-paper: #f7f5ee;
  --bg-board: #ccc8bb;

  --color-wood: #8b6b4a;
  --navy: #003366;
  --navy-dark: #002244;
  --navy-mid: #0a4080;
  --navy-tint: rgba(0, 51, 102, 0.06);
  --navy-tint-md: rgba(0, 51, 102, 0.12);

  --gold: #d4af37;
  --gold-muted: rgba(212, 175, 55, 0.35);
  --cyan: #00d4ff;

  --text-ink: #374151;
  --text-body: rgba(55, 65, 81, 0.8);
  --text-muted: rgba(55, 65, 81, 0.45);

  --border: rgba(55, 65, 81, 0.1);
  --border-md: rgba(55, 65, 81, 0.16);

  --font-display: "Cormorant Garamond", "Noto Serif JP", serif;
  --font-serif: "Noto Serif JP", serif;
  --font-body: "Noto Sans JP", sans-serif;

  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
  scroll-behavior: smooth;
}

/* スクロール後に最背層で固定追従するギルド酒場背景 */
body {
  background: url("../assets/bg-works.jpg") center center / cover no-repeat
    fixed;
  color: var(--text-ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ── 2. HEADER NAVIGATION (NAV) ── */
nav.nav,
#nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 16px;
  background: rgba(248, 247, 243, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
  transition: background 0.4s;
}

/* 左側：Worksロゴ */
nav.nav .nav-brand-current {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  height: 100%;
}

nav.nav .nav-brand-current img,
nav.nav img.nav-logo-img {
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

nav.nav .nav-brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #00d4ff 0%, #003366 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 右側：ワープアイコン群 */
nav.nav .nav-sub-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

nav.nav .nav-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px;
  box-sizing: border-box;
}

nav.nav .nav-icon-link img {
  width: 26px;
  height: 26px;
  min-width: 26px;
  max-width: 26px;
  object-fit: contain;
}

/* CONTACTボタン */
nav.nav .nav-cta-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #00d4ff, #003366);
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.8px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

nav.nav .nav-cta-text:active {
  transform: scale(0.94);
  box-shadow: 0 1px 4px rgba(0, 212, 255, 0.2);
}

/* ── 3. HERO SECTION (100vh / #F8F7F3不透明 / 完全中央寄せ) ── */
section.hero {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-base); /* #f8f7f3 100% */
  background-image: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  box-sizing: border-box;
}

section.hero::before,
section.hero::after,
.hero-grain {
  display: none !important;
  content: none !important;
}

section.hero .hero-inner {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.eyebrow-text {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 6px;
  color: var(--color-wood);
  text-transform: uppercase;
}

.eyebrow-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--border-md);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 300;
  letter-spacing: 2px;
  line-height: 1.3;
  color: var(--text-ink);
  margin-bottom: 14px;
}

.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-body);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: #ffffff;
  padding: 14px 36px;
  border-radius: 32px;
  font-size: 14px;
  letter-spacing: 1px;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: var(--navy-mid);
}

.btn-ghost {
  display: inline-block;
  border: 1px solid var(--border-md);
  color: var(--text-ink);
  padding: 14px 36px;
  border-radius: 32px;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--navy-tint);
}

.hero-trilogy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.trilogy-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.trilogy-label,
.trilogy-sub {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.trilogy-sub {
  font-size: 10px;
  letter-spacing: 1px;
}

.trilogy-sep {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--border-md);
  margin-bottom: 14px;
}

.trilogy-current .trilogy-label,
.trilogy-current .trilogy-sub {
  color: var(--navy);
  font-weight: 400;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.hero-scroll span {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--border-md), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── 4. FLOATING CARDS (一律幅統一・隙間チラ見え) ── */
.why,
.board,
.partner,
.persona,
.join {
  position: relative;
  z-index: 1;
  background: transparent;
  padding: 0;
}

.why .container,
.board .container,
.partner .container,
.persona .container,
.join .container {
  width: calc(100% - 40px);
  max-width: 1200px; /* 全カード一律 1200px に統一 */
  margin: 0 auto 30px auto; /* 上下隙間 30px */
  padding: 60px 48px; /* カード内パディング */
  background: var(--bg-base); /* #f8f7f3 */
  border: 1px solid var(--border-md);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.persona-wrap,
.join-inner {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.section-label {
  display: block;
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--color-wood);
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── 5. SECTION CONTENTS ── */
/* WHY */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.why-heading {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 300;
  color: var(--text-ink);
  line-height: 1.4;
}

.why-heading em {
  font-style: italic;
  color: var(--navy);
}

.why-right p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 2;
  margin-bottom: 16px;
}

.why-rule {
  width: 40px;
  height: 1px;
  background: var(--gold-muted);
  margin: 24px 0;
}

.why-quote {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--text-ink);
  line-height: 2;
}

/* BOARD */
.board-masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 20px;
}

.board-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  color: var(--text-ink);
}

.board-lead {
  font-size: 13px;
  color: var(--text-body);
  line-height: 2;
  margin-top: 8px;
}

.board-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--navy);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.board-frame {
  background: var(--bg-board);
  border-radius: 8px;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.board-section-label {
  grid-column: 1 / -1;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.posting {
  position: relative;
  background: var(--bg-paper);
  padding: 32px 24px 24px;
  box-shadow: 2px 4px 14px rgba(26, 31, 46, 0.12);
  transition: transform 0.3s var(--ease-expo);
}

.posting:hover {
  transform: translateY(-2px);
}

.posting-recruit {
  border-top: 2px solid var(--navy-tint-md);
}

.posting-tilt-right {
  transform: rotate(0.8deg);
}
.posting-tilt-left {
  transform: rotate(-0.6deg);
}

.posting-pin {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #e8c84a, var(--gold));
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.5);
}

.card-gold-mark {
  position: absolute;
  bottom: 16px;
  right: 16px;
  color: var(--gold-muted);
  font-size: 14px;
}

.posting-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.posting-badge {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  background: var(--navy-tint);
  color: var(--navy);
}

.posting-id {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--text-muted);
}

.posting-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--text-ink);
  margin-bottom: 10px;
}

.posting-body {
  font-size: 12px;
  color: var(--text-body);
  line-height: 1.9;
  margin-bottom: 16px;
}

.posting-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.ptag {
  font-size: 10px;
  border: 1px solid var(--border-md);
  color: var(--text-body);
  padding: 2px 8px;
  border-radius: 20px;
}

.posting-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.posting-condition {
  font-size: 10px;
  color: var(--text-muted);
}

.posting-link {
  font-size: 11px;
  color: var(--navy);
  letter-spacing: 1px;
}

.board-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 24px;
}

/* PARTNER */
.partner-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  color: var(--text-ink);
  margin-bottom: 12px;
}

.partner-lead {
  font-size: 14px;
  color: var(--text-body);
  line-height: 2;
  margin-bottom: 48px;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.partner-card {
  background: var(--bg-paper);
  border: 1px solid var(--border);
  border-top: 2px solid var(--navy);
  padding: 36px 28px;
  transition: transform 0.3s;
}

.partner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 51, 102, 0.08);
}

.pc-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.pc-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.pc-role {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--navy);
  text-transform: uppercase;
}

.partner-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-ink);
  margin-bottom: 16px;
}

.partner-card > p {
  font-size: 13px;
  color: var(--text-body);
  line-height: 2;
  margin-bottom: 28px;
}

.pc-details {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.pc-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.pc-row:first-child {
  border-top: 1px solid var(--border);
}

.pc-row dt {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.pc-row dd {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.7;
}

.pc-cta {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--navy);
  border-bottom: 1px solid var(--gold-muted);
  padding-bottom: 3px;
}

/* PERSONA */
.persona {
  text-align: center;
}

.persona-heading {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 300;
  color: var(--text-ink);
  margin-bottom: 36px;
}

.persona-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  max-width: 340px;
  margin: 0 auto;
  list-style: none;
}

.persona-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 16px;
  color: var(--text-ink);
  font-family: var(--font-serif);
}

.pmark {
  color: var(--gold);
  font-size: 20px;
}

/* JOIN / FORM */
.join-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.join-left h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  color: var(--text-ink);
  margin-bottom: 20px;
}

.join-left p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 2;
  margin-bottom: 28px;
}

/* 🌟 Works専用：左側カプセル型カードバッジ */
.contact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.contact-badges span {
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--text-ink);
  background: var(--navy-tint); /* 薄いネイビー調の背景 */
  border: 1px solid var(--border-md); /* Worksの標準枠線 */
  padding: 6px 12px;
  border-radius: 14px; /* カプセル形状 */
}
.contact-badges a {
  color: var(--navy); /* 「必須」タグと同じネイビー */
  font-weight: bold;
  text-decoration: underline;
}

.works-form-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ★ 「必須」バッジ：背景 var(--navy-tint) / 文字色 var(--navy) */
.req {
  font-size: 10px;
  background: var(--navy-tint);
  color: var(--navy);
  padding: 2px 6px;
  border-radius: 2px;
}

.works-form-stack input,
.works-form-stack select,
.works-form-stack textarea {
  background: var(--bg-white);
  border: 1px solid var(--border-md);
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--text-ink);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  width: 100%;
}

.works-form-stack input:focus,
.works-form-stack select:focus,
.works-form-stack textarea:focus {
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px var(--navy-tint);
}

/* 🌟 Works専用：プライバシーポリシー注記カード ＆ 「必須」バッジ色（var(--navy)）統一 */
.form-notice-box {
  margin-bottom: 8px;
  padding: 14px 18px;
  background: var(--navy-tint); /* 薄いネイビー調の背景 */
  border: 1px solid var(--border-md); /* Worksの標準枠線 */
  border-radius: 8px; /* カード形状 */
  text-align: center;
  font-size: 13px;
  color: var(--text-ink);
}

.form-notice-box p:first-of-type {
  margin-bottom: 4px;
}

.form-notice-box p:last-of-type {
  font-size: 12px;
  color: var(--text-muted);
}

/* ★ プライバシーポリシーのリンク色を「必須」タグの文字色 (var(--navy)) に完全統一 */
.form-notice-box a {
  color: var(--navy);
  font-weight: bold;
  text-decoration: underline;
}

.btn-submit-guild {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #003366 0%, #00a8e8 100%);
  color: #ffffff;
  border: none;
  padding: 18px 32px;
  border-radius: 40px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s var(--ease-expo);
  margin-top: 12px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(0, 51, 102, 0.2);
}

.btn-submit-guild:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(0, 168, 232, 0.35);
}

.submit-arrow {
  transition: transform 0.3s;
}
.btn-submit-guild:hover .submit-arrow {
  transform: translateX(6px);
}

/* ── 6. FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
}

.footer-logo span {
  background: linear-gradient(135deg, #00d4ff 0%, #003366 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-tagline {
  font-size: 11px;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--navy);
}
.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── 7. RESPONSIVE (MEDIA QUERIES) ── */
@media (max-width: 768px) {
  section.hero {
    min-height: 100dvh;
    padding: 80px 16px 40px;
  }

  .why .container,
  .board .container,
  .partner .container,
  .persona .container,
  .join .container {
    width: calc(100% - 24px); /* スマホは左右 12px のチラ見え隙間 */
    margin-bottom: 40px;
    padding: 36px 20px;
    border-radius: 18px;
  }

  .why-grid,
  .join-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .board-frame,
  .partner-grid {
    grid-template-columns: 1fr;
  }
}
