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

:root {
  --black: #0d0d0d;
  --white: #fafaf8;
  --gray: #f2f1ee;
  --mid: #999890;
  --dim: #cccab8;
  --gold: #b89a5a;
  --green: #2a8a4a;
  --border: rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: 'Noto Sans JP', 'Jost', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 56px;
  background: rgba(250,250,248,0.95); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo img { height: 28px; width: auto; object-fit: contain; }
.nav-links {
  display: flex; gap: 16px; list-style: none;
}
.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 10px; font-weight: 400; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mid); transition: color 0.2s;
}
.nav-links a:hover { color: var(--black); }

/* ── SECTION EYEBROW ── */
.section-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--dim);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.section-eyebrow::before {
  content: ''; display: block; width: 20px; height: 1px;
  background: var(--dim); flex-shrink: 0;
}

/* ── ABOUT ── */
#about {
  padding-top: 56px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
/* モバイル：ビジュアルが先、テキストが後 */
.about-visual { order: 1; }
.about-main   { order: 2; }

.about-main {
  padding: 48px 20px 48px;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 20px; height: 1px;
  background: var(--mid); flex-shrink: 0;
}

.hero-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(28px, 7vw, 56px); font-weight: 300;
  line-height: 1.4; margin-bottom: 24px; letter-spacing: 0.02em;
}
.hero-title em { font-style: normal; color: var(--gold); font-weight: 400; }

.hero-desc {
  font-size: 14px; color: #444; line-height: 2; margin-bottom: 0;
}

.about-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-image: url('about-bg.jpg');
  background-size: cover; background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.about-visual::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(10,10,10,0.3);
}
.about-visual-inner {
  position: relative; z-index: 1; text-align: right; padding: 20px;
  align-self: flex-end;
  margin-top: auto;
  margin-bottom: 32px;
  margin-right: 20px;
}
.about-visual-inner img {
  max-width: 200px; margin: 0 auto;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.4));
}
.about-visual-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px; font-style: italic;
  color: rgba(255,255,255,0.85); margin-top: 12px; letter-spacing: 0.06em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  text-align: right;
}

.section-heading {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px; font-weight: 300; margin-bottom: 24px; letter-spacing: 0.04em;
}

/* ── WORK ── */
#work { border-bottom: 1px solid var(--border); }

.section-pad { padding: 56px 20px; }

.work-card {
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.work-img { overflow: hidden; aspect-ratio: 1 / 1; }
.work-img img { width: 100%; height: 100%; object-fit: cover; }
.work-detail {
  padding: 28px 20px 32px;
  border-top: 1px solid var(--border);
}
.work-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); background: rgba(42,138,74,0.08);
  border: 1px solid rgba(42,138,74,0.2);
  padding: 4px 10px; border-radius: 2px; margin-bottom: 16px; width: fit-content;
}
.work-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

.work-logo-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.work-logo-row .icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; object-fit: cover;
}
.work-logo-row .title-img {
  max-width: 180px; height: auto;
}

.work-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; font-style: italic; color: var(--mid); margin-bottom: 16px;
}
.work-text {
  font-size: 14px; color: #444; line-height: 2; margin-bottom: 20px;
}
.work-specs {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px;
}
.work-spec {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: #666;
}
.work-spec::before {
  content: ''; width: 12px; height: 1px; background: var(--gold); flex-shrink: 0;
}
.cta-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--black); border-bottom: 1px solid var(--black);
  padding-bottom: 2px; transition: gap 0.2s, color 0.2s;
}
.cta-link:hover { gap: 14px; color: var(--gold); border-color: var(--gold); }

/* ── COMPANY ── */
#company { background: var(--white); border-bottom: 1px solid var(--border); }

.company-grid {
  display: flex; flex-direction: column;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.company-cell { background: var(--white); padding: 16px 20px; }
.company-label {
  font-family: 'DM Mono', monospace; font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--mid); margin-bottom: 4px;
}
.company-value { font-size: 14px; font-weight: 400; color: #222; line-height: 1.7; }

/* ── CONTACT ── */
#contact { background: var(--black); }

.contact-title {
  font-family: 'Cormorant Garamond', serif; font-size: 32px;
  font-weight: 300; color: var(--white); margin-bottom: 28px;
}
.contact-section-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.25);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.contact-section-eyebrow::before {
  content: ''; display: block; width: 20px; height: 1px;
  background: rgba(255,255,255,0.2); flex-shrink: 0;
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 20px;
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 16px;
}
.footer-copy {
  font-family: 'DM Mono', monospace; font-size: 10px;
  color: rgba(255,255,255,0.25);
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 16px; list-style: none;
}
.footer-links a {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.7); }

/* ── POLICY PAGES ── */
.policy-page { padding-top: 56px; min-height: 100vh; }
.policy-hero {
  padding: 48px 20px 36px;
  border-bottom: 1px solid var(--border);
  background: var(--gray);
}
.policy-hero h1 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(24px, 6vw, 40px); font-weight: 300; margin-bottom: 8px;
}
.policy-hero .date {
  font-family: 'DM Mono', monospace; font-size: 11px; color: var(--mid);
}
.policy-body { padding: 36px 20px; max-width: 800px; }
.policy-body h2 {
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; margin: 36px 0 10px; color: var(--black);
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.policy-body h2:first-child { margin-top: 0; }
.policy-body p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px; color: #555; line-height: 1.9; margin-bottom: 10px;
}
.policy-body table {
  width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 12px;
}
.policy-body table th, .policy-body table td {
  padding: 12px 14px; border: 1px solid var(--border);
  vertical-align: top; text-align: left;
}
.policy-body table th {
  background: var(--gray); font-weight: 400; color: var(--mid);
  width: 40%; white-space: nowrap;
}
.policy-body table td { color: #444; line-height: 1.8; }

/* ── TABLET 640px+ ── */
@media (min-width: 640px) {
  nav { padding: 0 40px; height: 64px; }
  .nav-logo img { height: 32px; }
  .nav-links { gap: 28px; }
  .nav-links a { font-size: 11px; }

  .about-main { padding: 80px 40px 60px; }
  .about-visual-inner img { max-width: 260px; }

  .section-pad { padding: 72px 40px; }

  .work-detail { padding: 36px 32px 40px; }
  .work-logo-row .title-img { max-width: 240px; }

  .policy-hero { padding: 60px 40px 48px; }
  .policy-body { padding: 48px 40px; }
  .policy-body table th { width: 200px; }

  footer { padding: 24px 40px; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ── DESKTOP 960px+ ── */
@media (min-width: 960px) {
  nav { padding: 0 60px; height: 68px; }
  .nav-logo img { height: 36px; }
  .nav-links { gap: 40px; }

  /* About: 2カラム */
  #about { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; flex-direction: unset; }
  .about-visual { order: 2; }
  .about-main   { order: 1; }
  .about-main {
    padding: 120px 60px 80px;
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column; justify-content: center;
  }
  .about-visual {
    aspect-ratio: unset; min-height: 100%;
    align-items: flex-end; justify-content: flex-end;
  }
  .about-visual-inner { margin-right: 40px; margin-bottom: 48px; }
  .about-visual-inner img { max-width: 260px; }

  /* Work: 2カラム */
  .section-pad { padding: 100px 80px; }
  .work-card { display: grid; grid-template-columns: 1fr 1fr; }
  .work-img { aspect-ratio: 1/1; }
  .work-detail {
    padding: 56px 48px;
    border-top: none; border-left: 1px solid var(--border);
    display: flex; flex-direction: column; justify-content: center;
  }
  .work-logo-row .title-img { max-width: 280px; }

  /* Company */
  .company-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    max-width: 720px;
  }
  .company-cell.full { grid-column: 1 / -1; }

  .policy-hero { padding: 80px 60px 60px; }
  .policy-body { padding: 60px; }
  footer { padding: 28px 60px; }
}

/* ── LANGUAGE SWITCHER ── */
[data-lang="ja"] .en { display: none !important; }
[data-lang="en"] .ja { display: none !important; }

#lang-toggle {
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--mid);
  padding: 5px 10px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  display: flex; align-items: center; gap: 5px;
}
#lang-toggle:hover { color: var(--black); border-color: var(--black); }
#lang-toggle svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.5; }
