/* =========================================================
   Henceforth — site styles
   色はロゴ（Henceforth ロゴ.ai）のグラデーションから取っています。
   ========================================================= */
:root {
  --accent-1: #6DBCCA;   /* ロゴ：ターコイズ */
  --accent-2: #2B67A8;   /* ロゴ：ブルー */
  --accent-mid: #1574A6; /* ロゴ：中間色 */
  --bg: #050B1A;
  --bg-2: #0A1630;
  --panel: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --text: #E9EEF6;
  --muted: #8C96A8;
  --grad: linear-gradient(100deg, var(--accent-1), var(--accent-mid) 50%, var(--accent-2));
  --font-logo: "Bree Serif", serif;
  --radius: 14px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-jp: "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-en: "Space Grotesk", var(--font-jp);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  line-height: 1.85;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}
html { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.35; font-weight: 700; }
.mono { font-family: var(--font-en); letter-spacing: 0.18em; font-size: 0.75rem; }
.sp { display: none; }
@media (max-width: 640px) { .sp { display: inline; } .pc { display: none; } }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 11, 26, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--font-logo); font-size: 1.3rem; letter-spacing: 0.02em; }
.brand-mark { width: 30px; height: auto; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent-1) 45%, transparent)); }
.nav { display: flex; gap: 32px; align-items: center; font-family: var(--font-en); font-size: 0.85rem; letter-spacing: 0.12em; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav .nav-cta { color: var(--text); border: 1px solid var(--line); padding: 8px 18px; border-radius: 999px; }
.nav .nav-cta:hover { border-color: var(--accent-1); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { height: 2px; background: var(--text); transition: transform .3s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: rgba(5, 11, 26, 0.96); font-size: 1.2rem;
    opacity: 0; pointer-events: none; transition: opacity .3s; z-index: -1;
  }
  .nav.is-open { opacity: 1; pointer-events: auto; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 80px; max-width: var(--max); margin: 0 auto; position: relative; overflow-x: clip;
}
.eyebrow { color: var(--accent-1); margin: 0 0 24px; }
.hero-title { font-size: clamp(2.6rem, 8vw, 6rem); letter-spacing: 0.02em; line-height: 1.2; }
.hero-title .line { display: block; opacity: 0; transform: translateY(30px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-title .line:nth-child(2) { animation-delay: .15s; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: var(--muted); margin: 32px 0 40px; font-size: clamp(0.95rem, 1.6vw, 1.1rem); opacity: 0; animation: rise .9s .35s forwards; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: rise .9s .5s forwards; }
.hero-scroll { position: absolute; bottom: 32px; left: var(--gutter); color: var(--muted); display: flex; align-items: center; gap: 12px; }
.hero-scroll::after { content: ""; width: 60px; height: 1px; background: var(--grad); animation: scan 2.4s infinite; transform-origin: left; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes scan { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

.hero-visual {
  position: absolute; right: var(--gutter); top: 50%; width: min(46vw, 520px); transform: translateY(-50%);
  pointer-events: none; z-index: -1; opacity: 0; animation: wingIn 1.6s .2s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-visual img { width: 100%; filter: drop-shadow(0 0 60px color-mix(in srgb, var(--accent-mid) 55%, transparent)); animation: float 7s ease-in-out infinite; }
.hero-visual::before {
  content: ""; position: absolute; inset: -20% -30% -20% -10%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-mid) 28%, transparent), transparent 62%);
}
.tagline { font-family: "Zen Old Mincho", serif; color: var(--text); font-size: clamp(1rem, 2vw, 1.25rem); letter-spacing: 0.12em; margin: 28px 0 0; opacity: 0; animation: rise .9s .3s forwards; }
@keyframes wingIn { from { opacity: 0; transform: translateY(-46%) scale(.94); } to { opacity: 1; transform: translateY(-50%); } }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
@media (max-width: 860px) { .hero-visual { width: 78vw; right: -14vw; top: 34%; opacity: .35 !important; animation: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent-2) 45%, transparent); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent-1); }
.btn-wide { width: 100%; padding: 18px; font-size: 1rem; }
.btn:disabled { opacity: .5; cursor: wait; transform: none; }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 140px) var(--gutter); }
.section-head { margin-bottom: 56px; }
.section-no { color: var(--accent-1); margin: 0 0 14px; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.section-lead { color: var(--muted); margin: 18px 0 0; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- brands ---------- */
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .brand-grid { grid-template-columns: 1fr; } }
.brand-card {
  --b: var(--accent-1);
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px); min-height: 360px; display: flex; flex-direction: column;
  background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--b) 22%, transparent), transparent 60%), var(--bg-2);
  transition: border-color .3s, transform .3s;
}
.brand-card:hover { border-color: color-mix(in srgb, var(--b) 60%, transparent); transform: translateY(-4px); }
.brand-teftef { --b: #E9E4F2; } /* teftef：ロゴの白に合わせた淡い色 */
.brand-ascreate { --b: #F2A65A; } /* AS create：ロゴの金色 */
.brand-ascreate::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 220px; aspect-ratio: 519/550;
  background: url("logo-mark.svg") no-repeat center / contain; opacity: .12; pointer-events: none;
}
.brand-kind { color: var(--b); margin: 0 0 18px; }
.brand-title { font-family: var(--font-logo); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.4rem); letter-spacing: 0.02em; line-height: 1.1; }
.brand-title { height: 150px; display: flex; align-items: center; }
.brand-logo { max-height: 150px; width: auto; height: auto; max-width: 100%; min-width: 0; object-fit: contain; }
.brand-teftef .brand-logo { max-height: 110px; }
.brand-teftef .brand-title { font-family: "Zen Old Mincho", serif; font-weight: 500; letter-spacing: 0.08em; }
.brand-ja { color: var(--muted); margin: 6px 0 22px; font-size: 0.9rem; }
.brand-text { color: #C3CBD8; font-size: 0.95rem; margin: 0 0 28px; max-width: 30em; }
.brand-link { margin-top: auto; color: var(--b); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.brand-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.brand-links .brand-link { margin-top: 0; }
.brand-link span { transition: transform .2s; }
.brand-link:hover span { transform: translateX(4px); }
.brand-link[hidden] { display: none; }
.brand-link.is-pending { color: var(--muted); font-weight: 400; margin-bottom: 0; }

/* ---------- service ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-card { background: var(--bg-2); padding: 34px 30px; position: relative; transition: background .3s; }
.service-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--grad); transform: scaleY(0); transition: transform .35s; transform-origin: top; }
.service-card:hover { background: #0F2042; }
.service-card:hover::before { transform: scaleY(1); }
.service-card .mono { color: var(--muted); }
.service-card h3 { font-size: 1.2rem; margin: 14px 0 8px; }
.service-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- works ---------- */
.works-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.works-filter button {
  background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-family: inherit; font-size: 0.85rem; cursor: pointer; transition: all .2s;
}
.works-filter button:hover { color: var(--text); }
.works-filter button.is-active { color: #fff; background: var(--grad); border-color: transparent; font-weight: 700; }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 18px; }
.works-grid-full { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 520px) { .works-grid, .works-grid-full { grid-template-columns: 1fr 1fr; gap: 14px 10px; } }
.work.is-hidden { display: none; }
.work-thumb {
  position: relative; display: block; width: 100%; padding: 0; cursor: pointer; font: inherit; color: inherit;
  aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color .3s, transform .3s;
}
.work-thumb:hover, .work-thumb:focus-visible { border-color: color-mix(in srgb, var(--accent-1) 60%, transparent); transform: translateY(-3px); outline: none; }
.work-thumb img, .work-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-thumb video { opacity: 0; transition: opacity .3s; }
.work-thumb.is-playing video { opacity: 1; }
.work-play {
  position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: .7rem; color: #fff; background: rgba(5, 11, 26, .65); border: 1px solid rgba(255,255,255,.3);
  transition: opacity .3s;
}
.work-thumb.is-playing .work-play { opacity: 0; }
.work-cat { color: var(--accent-1); margin: 10px 0 0; font-size: .68rem; }
.works-more { margin: 44px 0 0; text-align: center; }
.works-total { font-size: 1rem; color: var(--muted); font-weight: 400; margin-left: 10px; }
.works-filter small { opacity: .6; margin-left: 2px; }
.works-page { padding-top: 140px; }

.work-modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(3, 6, 15, .92); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 24px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.work-modal.is-open { opacity: 1; pointer-events: auto; }
.work-modal-body { height: min(82vh, 900px); aspect-ratio: 9 / 16; max-width: 100%; }
.work-modal-body video, .work-modal-body img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; background: #000; }
.work-modal-cat { color: var(--accent-1); margin: 14px 0 0; }
.work-modal-close {
  position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid var(--line); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* ---------- company ---------- */
.company-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .company-wrap { grid-template-columns: 1fr; } }
.message { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); }
.message-label { color: var(--accent-1); margin: 0 0 16px; }
.message h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 20px; }
.message p { color: #C3CBD8; font-size: 0.95rem; }
.message .sign { color: var(--text); text-align: right; margin-top: 28px; }
.company-table { margin: 0; }
.company-table div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.company-table div:first-child { border-top: 1px solid var(--line); }
.company-table dt { color: var(--muted); font-size: 0.9rem; }
.company-table dd { margin: 0; }

/* ---------- contact ---------- */
.contact-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); display: grid; gap: 24px; max-width: 860px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 0.9rem; font-weight: 500; padding: 0; margin-bottom: 8px; }
.field em { font-style: normal; font-size: 0.7rem; color: #fff; background: var(--accent-1); border-radius: 4px; padding: 1px 6px; margin-left: 8px; vertical-align: 2px; }
.field input, .field textarea {
  width: 100%; background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 14px 16px; font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-1) 20%, transparent); }
.field input.is-error, .field textarea.is-error { border-color: #FF5C7A; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: 0.85rem; color: var(--muted); cursor: pointer; transition: all .2s; }
.chips input:checked + span { color: var(--text); border-color: var(--accent-1); background: color-mix(in srgb, var(--accent-1) 12%, transparent); }
.chips input:focus-visible + span { outline: 2px solid var(--accent-1); outline-offset: 2px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.agree input { margin-top: 6px; accent-color: var(--accent-1); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; min-height: 1.5em; font-size: 0.9rem; text-align: center; }
.form-status.ok { color: var(--accent-1); }
.form-status.ng { color: #FF5C7A; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px var(--gutter); text-align: center; color: var(--muted); font-size: 0.85rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-logo); font-size: 1.1rem; color: var(--text); margin-bottom: 12px; }
.site-footer p { margin: 4px 0; }
.copy { margin-top: 16px !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero-title .line, .hero-lead, .hero-actions { opacity: 1; transform: none; }
}

/* =========================================================
   teftef スタッフ紹介ページ（teftef-staff.html）
   ========================================================= */
.page-teftef { --t: #E9E4F2; --t2: #C9B6E4; }
.teftef-accent { color: var(--t2) !important; }
.teftef-hero {
  max-width: var(--max); margin: 0 auto; padding: 150px var(--gutter) 40px; position: relative;
}
.teftef-hero::before {
  content: ""; position: absolute; z-index: -1; right: 0; top: 40px; width: min(60vw, 640px); aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--t2) 22%, transparent), transparent 62%);
}
.crumb { color: var(--muted); margin: 0 0 28px; }
.crumb a { color: var(--t2); }
.teftef-logo { width: min(320px, 70vw); height: auto; margin-bottom: 18px; }
.teftef-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-family: "Zen Old Mincho", serif; font-weight: 500; letter-spacing: .12em; }
.teftef-lead { color: #C3CBD8; margin: 22px 0 32px; }
.teftef-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-teftef { background: linear-gradient(100deg, var(--t), var(--t2)); color: #1A1430; }
.btn-teftef:hover { transform: translateY(-2px); box-shadow: 0 10px 30px color-mix(in srgb, var(--t2) 40%, transparent); }

.staff-section { padding-top: 70px; }
.staff-list { display: grid; gap: 32px; }
.staff-card {
  display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px);
}
@media (max-width: 720px) { .staff-card { grid-template-columns: 1fr; } }
.staff-photo {
  width: 100%; max-width: 220px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #fff, var(--t) 35%, var(--t2) 100%);
  border: 1px solid var(--line); box-shadow: 0 0 40px color-mix(in srgb, var(--t2) 25%, transparent);
}
.staff-photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-photo span { font-family: "Zen Old Mincho", serif; font-size: 4.5rem; color: #3B2E5A; }
@media (max-width: 720px) { .staff-photo { max-width: 150px; } }
.staff-role { color: var(--t2); margin: 0 0 8px; }
.staff-name { font-family: var(--font-logo); font-weight: 400; font-size: clamp(2rem, 4vw, 2.6rem); }
.staff-name small { font-family: var(--font-jp); font-size: .9rem; color: var(--muted); margin-left: 10px; letter-spacing: .1em; }
.staff-meta { color: var(--muted); font-size: .9rem; margin: 6px 0 16px; }
.staff-intro { margin: 0 0 18px; }
.staff-dl { margin: 0 0 18px; display: grid; gap: 14px; }
.staff-dl dt { font-size: .82rem; color: var(--t2); font-weight: 700; margin-bottom: 2px; }
.staff-dl dd { margin: 0; color: #C3CBD8; font-size: .93rem; }
.staff-note { color: var(--muted); font-size: .82rem; margin: 0 0 14px; }
.staff-link { display: inline-block; color: var(--t); font-weight: 700; border-bottom: 1px solid color-mix(in srgb, var(--t2) 60%, transparent); padding-bottom: 2px; }
.staff-link:hover { color: #fff; }

.salon-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .salon-wrap { grid-template-columns: 1fr; } }
.salon-points { display: flex; flex-wrap: wrap; gap: 10px; }
.salon-points li { border: 1px solid color-mix(in srgb, var(--t2) 45%, transparent); color: var(--t); border-radius: 999px; padding: 6px 16px; font-size: .88rem; }
.company-table small { color: var(--muted); }
