/* =========================================================
   LIFEMEAL Inc. — Corporate Site
   Style Sheet
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --color-bg: #fafaf8;
  --color-bg-alt: #f3f3f0;
  --color-surface: #ffffff;
  --color-text: #0a0a0a;
  --color-text-2: #4a4a4a;
  --color-muted: #8a8a8a;
  --color-border: #e7e7e3;
  --color-border-strong: #d0d0cc;

  /* Signature Green — "ライフミールらしさ" */
  --color-accent: #1f8a4c;
  --color-accent-strong: #146b39;
  --color-accent-soft: rgba(31, 138, 76, 0.08);
  --color-accent-line: rgba(31, 138, 76, 0.2);

  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-jp: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-display: 'Playfair Display', 'Inter', serif;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);

  --header-h: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-feature-settings: "palt";
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
input, textarea { font: inherit; color: inherit; background: transparent; border: 0; outline: none; width: 100%; }
::selection { background: var(--color-accent); color: #fff; }

/* ---------- Utilities ---------- */
.sp-only { display: none; }
.pc-only { display: inline; }
@media (max-width: 767px) {
  .sp-only { display: inline; }
  .pc-only { display: none; }
}

.dot {
  display: inline-block;
  color: var(--color-accent);
  margin-left: 2px;
  transform: translateY(-2px);
}
.accent { color: var(--color-accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-radius: 999px;
  transition: all 0.4s var(--ease-out);
  white-space: nowrap;
}
.btn span {
  transition: transform 0.4s var(--ease-out);
  display: inline-block;
}
.btn:hover span { transform: translateX(4px); }

.btn--primary {
  background: var(--color-text);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-accent);
  color: #fff;
}
.btn--ghost {
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
}
.btn--ghost:hover {
  border-color: var(--color-text);
  background: var(--color-text);
  color: #fff;
}
.btn--lg {
  padding: 20px 38px;
  font-size: 15px;
}

/* =========================================================
   Loader
   ========================================================= */
.loader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader__inner { text-align: center; }
.loader__logo {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.18em;
  margin-bottom: 24px;
}
.loader__bar {
  width: 240px;
  height: 1px;
  background: var(--color-border);
  position: relative;
  overflow: hidden;
}
.loader__bar span {
  position: absolute;
  inset: 0 100% 0 0;
  background: var(--color-accent);
  animation: loaderBar 1.6s var(--ease-out) infinite;
}
@keyframes loaderBar {
  0% { inset: 0 100% 0 0; }
  50% { inset: 0 0 0 0; }
  100% { inset: 0 0 0 100%; }
}

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  z-index: 100;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(250, 250, 248, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--color-border);
}

.header__logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.16em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header__logo-icon {
  width: 28px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.header__nav ul {
  display: flex;
  gap: 32px;
}
.header__nav a {
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 500;
  position: relative;
  padding: 4px 6px;
  transition: color 0.3s;
}
.header__nav ul a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--color-text);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.5s var(--ease-out);
}
.header__nav ul a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.header__cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-text);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s, transform 0.3s;
}
.header__cta:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
}

.header__menu {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.header__menu span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}
.header__menu.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.header__menu.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .header__nav { display: none; }
  .header__menu { display: flex; }
}

/* ---------- Drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__nav { text-align: center; }
.drawer__nav li {
  margin: 24px 0;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--header-h) var(--gutter) 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}

.hero__tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-text-2);
  margin-bottom: 40px;
}
.hero__tagline-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title .line__inner {
  display: inline-block;
  transform: translateY(110%);
}
.hero__title .line:nth-child(2) {
  font-style: italic;
  font-weight: 400;
}

.hero__lead {
  font-family: var(--font-jp);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 2;
  max-width: 560px;
  color: var(--color-text);
  margin-bottom: 56px;
  font-weight: 400;
}
.hero__lead em {
  font-style: normal;
  color: var(--color-accent);
  font-weight: 500;
  border-bottom: 1px solid var(--color-accent-line);
  padding-bottom: 1px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--color-text-2);
  z-index: 1;
}
.hero__scroll i {
  display: block;
  width: 1px;
  height: 56px;
  background: var(--color-border-strong);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::before {
  content: '';
  position: absolute;
  top: -56px;
  left: 0;
  width: 1px;
  height: 56px;
  background: var(--color-text);
  animation: scrollLine 2s var(--ease-in-out) infinite;
}
@keyframes scrollLine {
  0% { top: -56px; }
  100% { top: 100%; }
}

.hero__meta {
  position: absolute;
  bottom: 40px;
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--color-text-2);
  z-index: 1;
}
@media (max-width: 880px) {
  .hero__meta { display: none; }
  .hero__scroll { left: var(--gutter); transform: none; }
}

/* ─── Hero Dark Mode (IT Evolution background) ─────────── */
.hero--dark {
  background: #050507;
}
.hero--dark .hero__tagline {
  color: rgba(255, 255, 255, 0.5);
}
.hero--dark .hero__tagline-dot {
  background: var(--color-accent);
  box-shadow: 0 0 8px rgba(31, 138, 76, 0.6);
}
.hero--dark .hero__title .line__inner {
  color: #ffffff;
}
.hero--dark .hero__lead {
  color: rgba(255, 255, 255, 0.72);
}
.hero--dark .hero__lead em {
  color: var(--color-accent);
  border-color: rgba(31, 138, 76, 0.4);
}
.hero--dark .hero__scroll {
  color: rgba(255, 255, 255, 0.35);
}
.hero--dark .hero__scroll i {
  background: rgba(255, 255, 255, 0.12);
}
.hero--dark .hero__scroll i::before {
  background: rgba(255, 255, 255, 0.55);
}
.hero--dark .hero__meta {
  color: rgba(255, 255, 255, 0.28);
}
.hero--dark .btn--ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
}
.hero--dark .btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  background: var(--color-text);
  color: #fff;
  padding: 28px 0;
  overflow: hidden;
  border-top: 1px solid var(--color-text);
  border-bottom: 1px solid var(--color-text);
}
.marquee__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
}
.marquee__track span:nth-child(even) {
  color: var(--color-accent);
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 300;
  display: inline-flex;
  align-items: center;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================
   Section common
   ========================================================= */
.section {
  padding: clamp(96px, 14vw, 200px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}
.section__head {
  margin-bottom: clamp(56px, 8vw, 96px);
}
.section__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 28px;
}
.section__label span {
  width: 32px;
  height: 1px;
  background: var(--color-accent);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 6vw, 88px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-align: left;
}
.section__title .char {
  display: inline-block;
}
.section__desc {
  font-family: var(--font-jp);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 2;
  color: var(--color-text-2);
}
@media (max-width: 767px) {
  .section__desc { max-width: 560px; }
}

/* =========================================================
   Service
   ========================================================= */
.service__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}
@media (min-width: 1024px) {
  .service__grid { grid-template-columns: repeat(4, 1fr); }
}
.service__card {
  background: var(--color-bg);
  padding: 20px 12px;
  position: relative;
  transition: background 0.5s var(--ease-out);
  cursor: pointer;
  overflow: hidden;
}
.service__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.service__card:hover {
  background: #fff;
}
.service__card:hover::before {
  transform: scaleX(1);
}
.service__num {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 28px;
  font-weight: 500;
}
.service__card h3 {
  font-family: var(--font-jp);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.service__card p {
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-2);
  margin-bottom: 24px;
}
.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service__tags li {
  padding: 4px 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  font-size: 11px;
  color: var(--color-text-2);
  letter-spacing: 0.04em;
}

/* =========================================================
   Strengths
   ========================================================= */
.strengths {
  background: var(--color-text);
  color: #fff;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.strengths .section__head,
.strengths__list {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.strengths .section__title { color: #fff; }
.strengths .section__label { color: var(--color-accent); }

.strengths__list {
  display: flex;
  flex-direction: column;
}
.strengths__item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding: 64px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  align-items: start;
}
.strengths__item:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 767px) {
  .section__title {
    text-align: center;
  }
  .strengths__item {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 0;
  }
}
.strengths__num {
  font-family: var(--font-display);
  font-size: clamp(80px, 10vw, 140px);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: var(--color-accent);
  display: block;
}
.strengths__body h3 {
  font-family: var(--font-jp);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.strengths__body p {
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 2;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
}

/* =========================================================
   Works
   ========================================================= */

/* Controls */
/* Works セクション背景 */
.works {
  border-radius: 0;
}

.works__controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.works__search-wrap {
  position: relative;
  max-width: 480px;
}
.works__search-wrap::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center/cover;
  pointer-events: none;
}
.works__search {
  width: 100%;
  padding: 9px 14px 9px 36px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-jp);
  font-size: 13px;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.25s;
}
.works__search::placeholder { color: var(--color-muted); }
.works__search:focus { border-color: var(--color-accent); }
.works__search::-webkit-search-cancel-button { cursor: pointer; }

/* Filter row */
.works__filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.works__filters {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.works__filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-2);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.works__filter em {
  font-style: normal;
  font-size: 10px;
  color: var(--color-muted);
  transition: color 0.2s;
}
.works__filter:hover { border-color: var(--color-accent); color: var(--color-accent); }
.works__filter.is-active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.works__filter.is-active em { color: rgba(255,255,255,0.72); }

/* System tag filters — タイプ下に独立配置 */
.works__tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.works__tag-filter {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.works__tag-filter:hover { border-color: var(--color-accent); color: var(--color-accent); }
.works__tag-filter.is-active {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

/* Carousel */
.works__carousel { position: relative; overflow: hidden; }

.works__viewport {
  overflow: hidden;
  border-radius: 6px;
  transition: height 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}
.works__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.works__page {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
  /* スマホ: カード間に余白を確保しスワイプヒント */
  padding: 0 0 4px;
}
@media (max-width: 880px) {
  .works__page { grid-template-columns: repeat(2, 1fr); }
}
/* スマホ: 1列フルカード表示（スワイプ式） */
@media (max-width: 540px) {
  .works__page {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Card */
.works__card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s;
}
.works__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.09);
  border-color: var(--color-accent-line);
}
/* Thumbnail — hidden for now */
.works__thumb { display: none; }
.works__canvas { display: none; }

/* Card body */
.works__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 22px;
  flex: 1;
}
.works__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.works__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border: 1px solid var(--color-accent-line);
}
.works__card-title {
  font-family: var(--font-jp);
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
}
.works__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.works__tag {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.works__tag--primary {
  background: var(--color-accent);
  color: #fff;
}
.works__tag--sub {
  border: 1px solid var(--color-border-strong);
  color: var(--color-muted);
}
.works__desc {
  font-family: var(--font-jp);
  font-size: 12px;
  line-height: 1.85;
  color: var(--color-text-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* Empty state */
.works__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 0;
  color: var(--color-muted);
  font-size: 14px;
}

/* Carousel footer */
.works__carousel-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}
.works__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-2);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
  flex-shrink: 0;
}
.works__nav:hover:not(:disabled) {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.works__nav:disabled { opacity: 0.3; cursor: default; }
.works__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.works__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border-strong);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.works__dot.is-active {
  background: var(--color-accent);
  transform: scale(1.4);
}

@media (max-width: 767px) {
  .works__search-wrap { max-width: 100%; }
  .works__filter-row { gap: 10px; }
}

/* =========================================================
   Company
   ========================================================= */
.company {
  background: var(--color-bg-alt);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.company__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) {
  .company__inner { grid-template-columns: 1fr; gap: 56px; }
}
.company__message {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 2.1;
  color: var(--color-text);
  margin-top: 32px;
}
.company__dl {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border-strong);
}
.company__dl > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border-strong);
  font-family: var(--font-jp);
}
.company__dl dt {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  font-weight: 500;
  padding-top: 4px;
}
.company__dl dd {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
  font-weight: 500;
}
@media (max-width: 540px) {
  .company__dl > div { grid-template-columns: 100px 1fr; gap: 16px; }
  .company__dl dd { font-size: 14px; }
}

/* =========================================================
   Contact
   ========================================================= */
.contact {
  text-align: center;
  padding-bottom: clamp(120px, 16vw, 220px);
}
.contact__inner {
  max-width: 720px;
  margin: 0 auto;
}
.contact .section__label {
  justify-content: center;
}
.contact .section__label span:first-child {
  display: none;
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 6vw, 80px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.contact__title .char { display: inline-block; }
.contact__lead {
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-2);
  margin-bottom: 64px;
}
.contact__form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.field {
  position: relative;
}
.field label {
  display: block;
  font-family: var(--font-jp);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 12px;
  font-weight: 500;
}
.field input,
.field textarea {
  font-family: var(--font-jp);
  font-size: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-strong);
  transition: border-color 0.3s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--color-accent);
}
.contact__form button {
  align-self: center;
  margin-top: 24px;
}

/* ─── Honeypot (Bot 対策) ─── */
.field--honey {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  tabindex: -1;
}

/* ─── フォーム送信結果メッセージ ─── */
.form__result {
  display: none;
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  font-family: var(--font-jp);
  outline: none;
}
.form__result--ok {
  background: rgba(31, 138, 76, 0.08);
  border-left: 3px solid var(--color-accent);
  color: var(--color-accent-strong);
}
.form__result--error {
  background: rgba(220, 50, 50, 0.06);
  border-left: 3px solid #c0392b;
  color: #c0392b;
}

/* ─── 送信中スピナー ─── */
.form__spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--color-text);
  color: #fff;
  padding: 56px var(--gutter);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__logo {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.16em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer__logo-icon {
  width: 24px;
  height: auto;
  display: block;
  flex-shrink: 0;
}
.footer__copy {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}
.footer__links a:hover { color: var(--color-accent); }

/* =========================================================
   Animation primitives (initial state)
   ========================================================= */
[data-fade] {
  opacity: 0;
  transform: translateY(24px);
}
[data-card] {
  opacity: 0;
  transform: translateY(40px);
}
[data-strength] {
  opacity: 0;
  transform: translateY(40px);
}
[data-work] {
  opacity: 0;
  transform: translateY(40px);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-fade], [data-card], [data-strength], [data-work] {
    opacity: 1; transform: none;
  }
}
