/* ===========================================
   service.css — サービス詳細ページ共通スタイル
   design.md「Dark Sophistication」準拠
   エディトリアル構成: ヒーロー写真 / 交互レイアウト / 画像バンド
   =========================================== */

:root {
  --bg: #f5f2ed;
  --bg-warm: #eee9e1;
  --bg-dark: #1a1a1a;
  --bg-dark-soft: #242424;
  --text: #1a1a1a;
  --text-light: #f5f2ed;
  --text-muted: #6b6560;
  --text-muted-light: #a09890;
  --accent: #c4643a;
  --accent-soft: #d4845e;
  --border: #d4cfc8;
  --border-dark: #3a3a3a;
  --font-ja: 'Noto Sans JP', 'Yu Gothic', sans-serif;
  --font-en: 'Cormorant Garamond', 'Georgia', serif;
  --font-ui: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-ja);
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.9;
  overflow-x: hidden;
}

/* 粒状ノイズ（トップページと共通の質感） */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; border: none; background: none; cursor: pointer; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===========================================
   Header — ダークヒーロー上では白、スクロールで温白帯に
   =========================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: padding 0.4s, background-color 0.4s, border-color 0.4s;
}
.header.is-scrolled {
  padding: 0.8rem 1.5rem;
  background-color: rgba(245, 242, 237, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.header__logo {
  display: flex;
  align-items: center;
  line-height: 0;
  position: relative;
}
.header__logo-img {
  display: block;
  height: 36px;
  width: auto;
  transition: opacity 0.4s;
}
.header__logo-img--dark {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
}
.header.is-scrolled .header__logo-img--light { opacity: 0; }
.header.is-scrolled .header__logo-img--dark { opacity: 1; }

.header__nav { display: none; }

.header__burger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 110;
}
.header__burger span {
  display: block; width: 22px; height: 1px;
  background-color: var(--text-light);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.4s;
}
.header.is-scrolled .header__burger span { background-color: var(--text); }

.mobile-menu {
  position: fixed; inset: 0;
  background-color: var(--bg);
  z-index: 105;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 2rem 2rem 3rem;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--text);
  position: relative;
}
.mobile-menu a::before {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}
.mobile-menu a:hover::before { width: 100%; }

body.menu-open .header__burger { opacity: 0; pointer-events: none; }

.mobile-menu__close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  color: var(--text);
  z-index: 110;
}
.mobile-menu__close-icon {
  position: relative;
  display: block;
  width: 22px; height: 22px;
}
.mobile-menu__close-icon::before,
.mobile-menu__close-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 22px; height: 1.5px;
  background-color: var(--text);
  transition: background-color 0.3s;
}
.mobile-menu__close-icon::before { transform: rotate(45deg); }
.mobile-menu__close-icon::after  { transform: rotate(-45deg); }
.mobile-menu__close-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text);
  transition: color 0.3s;
}
.mobile-menu__close:hover .mobile-menu__close-icon::before,
.mobile-menu__close:hover .mobile-menu__close-icon::after { background-color: var(--accent); }
.mobile-menu__close:hover .mobile-menu__close-label { color: var(--accent); }

/* ===========================================
   Hero（ダーク + 背景写真）
   =========================================== */
.svc-hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 7.5rem 1.5rem 4rem;
  overflow: hidden;
}
.svc-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.svc-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    78deg,
    rgba(26, 26, 26, 0.9) 25%,
    rgba(26, 26, 26, 0.68) 55%,
    rgba(26, 26, 26, 0.25) 100%
  );
}
.svc-hero__watermark {
  position: absolute;
  bottom: -0.18em; right: -0.5rem;
  font-family: var(--font-en);
  font-size: clamp(5rem, 16vw, 13rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1;
  color: rgba(245, 242, 237, 0.05);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.svc-hero__inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  z-index: 1;
}
.svc-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-muted-light);
  margin-bottom: 3rem;
}
.svc-hero__breadcrumb a { transition: color 0.3s; }
.svc-hero__breadcrumb a:hover { color: var(--accent-soft); }
.svc-hero__breadcrumb .sep { opacity: 0.4; }
.svc-hero__breadcrumb .current { color: rgba(245,242,237,0.8); }

.svc-hero__label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.svc-hero__label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.svc-hero__display {
  font-family: var(--font-en);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}
.svc-hero__title {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
}
.svc-hero__lead {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 2.15;
  color: rgba(245, 242, 237, 0.82);
  max-width: 680px;
}
.svc-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  margin-top: 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(245, 242, 237, 0.18);
}
.svc-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.svc-hero__meta-label {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted-light);
}
.svc-hero__meta-value {
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text-light);
}

/* ===========================================
   セクション共通
   =========================================== */
.section { padding: clamp(4rem, 8vw, 6.5rem) 1.5rem; }
.section--alt { background: var(--bg-warm); }
.section--dark {
  background: var(--bg-dark);
  color: var(--text-light);
}
.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section__label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section__label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section__heading {
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
  margin-bottom: 1.2rem;
}
.section__intro {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 2.1;
  color: var(--text-muted);
  max-width: 720px;
}
.section--dark .section__intro { color: rgba(245,242,237,0.7); }

/* 画像のオフセットフレーム（共通ディテール） */
.media-frame {
  position: relative;
  z-index: 0;
}
.media-frame::after {
  content: '';
  position: absolute;
  top: 1.1rem; left: 1.1rem;
  right: -1.1rem; bottom: -1.1rem;
  border: 1px solid var(--accent);
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}
.media-frame__inner {
  overflow: hidden;
  background: var(--bg-warm);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.media-frame:hover img { transform: scale(1.035); }

/* ===========================================
   Issues — 課題リスト × スティッキー画像
   =========================================== */
.issues-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}
.issues {
  border-top: 1px solid var(--border);
}
.issue {
  display: flex;
  gap: 1.1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--border);
}
.issue::before {
  content: '\2014';
  color: var(--accent);
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-weight: 300;
  line-height: 1.9;
}
.issue__text {
  font-size: 0.87rem;
  font-weight: 400;
  line-height: 1.9;
}
.issues-grid__media { align-self: start; }
.issues-grid__media .media-frame__inner { aspect-ratio: 3 / 4; }
.issues-grid__caption {
  margin-top: 1.6rem;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===========================================
   Features — 画像×テキストの交互レイアウト
   =========================================== */
.features {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 8vw, 6rem);
}
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.feature__media .media-frame__inner { aspect-ratio: 4 / 3; }
.feature__label {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.feature__label::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
}
.feature__title {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.6;
  margin-bottom: 0.9rem;
}
.feature__desc {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 2.05;
  color: var(--text-muted);
}

/* ===========================================
   データテーブル（対応プラットフォーム等）
   =========================================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 1rem 1.2rem 1rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table thead th {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.data-table tbody th {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}
.data-table tbody td {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-muted);
}

/* ===========================================
   Works — 実績ハイライト（ダークセクション内）
   =========================================== */
.works { margin-top: 2.5rem; }
.work {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--border-dark);
  position: relative;
}
.work:first-child { border-top: 1px solid var(--border-dark); }
.work__industry {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.8;
}
.work__body { min-width: 0; }
.work__title {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.7;
  margin-bottom: 0.35rem;
}
.work__title a {
  color: inherit;
  border-bottom: 1px solid rgba(245,242,237,0.3);
  transition: color 0.3s, border-color 0.3s;
}
.work__title a:hover { color: var(--accent-soft); border-color: var(--accent-soft); }
.work__result {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.95;
  color: rgba(245, 245, 237, 0.65);
}
.works__note {
  margin-top: 1.2rem;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-muted-light);
}

/* ライトセクション内で使う場合のバリアント */
.works--light .work { border-color: var(--border); }
.works--light .work__result { color: var(--text-muted); }
.works__note--light { color: var(--text-muted); }

/* ===========================================
   Band — フルブリード画像バンド
   =========================================== */
.band {
  position: relative;
  padding: clamp(7rem, 16vw, 11rem) 1.5rem;
  background-color: var(--bg-dark);
  overflow: hidden;
}
.band__bg {
  position: absolute;
  inset: -12% 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.62) 0%,
    rgba(26, 26, 26, 0.42) 50%,
    rgba(26, 26, 26, 0.62) 100%
  );
}
.band__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Band バリアント: 写真を使わないアニメーション背景（AIページ） */
.band--anim::before { background: none; }
.band__glow {
  position: absolute;
  width: 55vw; height: 55vw;
  min-width: 480px; min-height: 480px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.band__glow--a {
  top: -30%; left: -8%;
  background: radial-gradient(circle, rgba(196, 100, 58, 0.55) 0%, transparent 65%);
  animation: glow-drift-a 16s ease-in-out infinite;
}
.band__glow--b {
  bottom: -35%; right: -10%;
  background: radial-gradient(circle, rgba(245, 242, 237, 0.14) 0%, transparent 65%);
  animation: glow-drift-b 21s ease-in-out infinite;
}
@keyframes glow-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12%, 14%) scale(1.18); }
}
@keyframes glow-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-14%, -10%) scale(1.12); }
}
.band__gridlines {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(245, 242, 237, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 242, 237, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
}
@media (prefers-reduced-motion: reduce) {
  .band__glow--a, .band__glow--b { animation: none; }
}
.band__copy {
  font-family: var(--font-en);
  font-size: clamp(1.7rem, 4.5vw, 3.1rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.3;
  color: #fff;
}
.band__sub {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(245, 242, 237, 0.78);
}

/* ===========================================
   Flow — 支援の流れ（ミニマル罫線スタイル）
   =========================================== */
.flow {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
}
.flow-step {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 1.4rem 0 1.8rem;
}
.flow-step::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 2.2rem;
  height: 1px;
  background: var(--accent);
}
.flow-step__num {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.flow-step__title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.45rem;
}
.flow-step__desc {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.95;
  color: var(--text-muted);
  max-width: 560px;
}

/* ===========================================
   FAQ
   =========================================== */
.faq-list { margin-top: 2.5rem; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.6rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item__q {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 0.8rem;
  display: flex;
  gap: 0.8rem;
}
.faq-item__q-mark {
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
}
.faq-item__a {
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 2.05;
  color: var(--text-muted);
  padding-left: 1.8rem;
  max-width: 760px;
}

/* ===========================================
   Other Services — 関連サービス
   =========================================== */
.others { margin-top: 2.5rem; }
.other {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: padding-left 0.4s var(--ease-out);
}
.other:first-child { border-top: 1px solid var(--border); }
.other::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-out);
}
.other__main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.other__tag {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.other__title {
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.other__arrow {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(26,26,26,0.3);
  white-space: nowrap;
  transition: color 0.3s, transform 0.3s;
}
.other__arrow::after { content: ' \2192'; }
@media (hover: hover) {
  .other:hover { padding-left: 1.2rem; }
  .other:hover::before { transform: scaleY(1); }
  .other:hover .other__arrow { color: var(--accent); transform: translateX(4px); }
}

/* ===========================================
   CTA
   =========================================== */
.cta-section {
  background: var(--accent);
  padding: clamp(3.5rem, 7vw, 5rem) 1.5rem;
  text-align: center;
}
.cta-section__inner {
  max-width: 640px;
  margin: 0 auto;
}
.cta-section__heading {
  font-family: var(--font-en);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.cta-section__text {
  font-size: 0.84rem;
  font-weight: 300;
  color: rgba(255,255,255,0.88);
  line-height: 2;
  margin-bottom: 2.2rem;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: #fff;
  padding: 1.05rem 2.6rem;
  transition: background 0.3s var(--ease-out), transform 0.2s;
}
.cta-btn:hover {
  background: var(--bg);
  transform: translateY(-1px);
}
.cta-btn svg { width: 14px; height: 14px; }

/* ===========================================
   AIMEREA ブランドページ専用
   =========================================== */
.brand-hero {
  text-align: center;
  padding-bottom: 5rem;
}
.brand-hero .svc-hero__label {
  justify-content: center;
}
.brand-hero .svc-hero__label::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.brand-hero .svc-hero__lead {
  margin: 0 auto;
}

.capture-section {
  padding: clamp(4rem, 8vw, 6.5rem) 1.5rem;
  background: var(--bg-warm);
}
.browser-frame {
  max-width: 1000px;
  margin: 3rem auto 0;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -30px rgba(26, 26, 26, 0.25);
}
.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.browser-frame__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border);
}
.browser-frame__url {
  margin-left: 1rem;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.browser-frame__view {
  overflow: hidden;
  max-height: 720px;
}
.browser-frame__view img { width: 100%; }

.brand-concept {
  padding: clamp(5rem, 10vw, 8rem) 1.5rem;
  text-align: center;
}
.brand-concept__label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}
.brand-concept__copy {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.8;
  margin-bottom: 1.8rem;
}
.brand-concept__en {
  font-family: var(--font-en);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 2.2rem;
}
/* サブコピーが和文の場合のバリアント */
.brand-concept__en--ja {
  font-family: var(--font-ja);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.88rem, 1.6vw, 1.05rem);
  letter-spacing: 0.2em;
}
.brand-concept__text {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 2.3;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.brand-link {
  position: relative;
  padding: clamp(6rem, 12vw, 9rem) 1.5rem;
  background: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  overflow: hidden;
}
.brand-link__watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-en);
  font-size: clamp(5rem, 18vw, 14rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(245, 242, 237, 0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.brand-link__inner { position: relative; }
.brand-link__heading {
  font-family: var(--font-en);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.brand-link__text {
  font-size: 0.84rem;
  font-weight: 300;
  color: rgba(245, 242, 237, 0.7);
  line-height: 2;
  margin-bottom: 2.4rem;
}
.brand-link__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg-dark);
  background: var(--text-light);
  padding: 1.05rem 2.6rem;
  transition: background 0.3s var(--ease-out), color 0.3s, transform 0.2s;
}
.brand-link__btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.brand-link__btn svg { width: 14px; height: 14px; }
.brand-link__note {
  margin-top: 1.4rem;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-muted-light);
}

/* SPのみ表示する改行 */
.sp-only { display: inline; }
@media (min-width: 768px) {
  .sp-only { display: none; }
}

/* ===========================================
   Footer
   =========================================== */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 3.5rem 1.5rem 2rem;
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer__logo {
  line-height: 0;
  margin-bottom: 1.5rem;
}
.footer__logo-img {
  display: block;
  height: 42px;
  width: auto;
}
.footer__address {
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 2.1;
  color: var(--text-muted-light);
  font-style: normal;
}
.footer__address strong {
  font-weight: 400;
  color: var(--text-light);
  display: block;
  margin-top: 0.8rem;
  margin-bottom: 0.15rem;
}
.footer__address strong:first-child { margin-top: 0; }
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer__nav a {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted-light);
  transition: color 0.3s;
}
.footer__nav a:hover { color: var(--text-light); }
.footer__copy {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-muted-light);
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
}

/* ===========================================
   Animations
   =========================================== */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.animate-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
body.is-loaded .hero-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .animate-in, .hero-in { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ===========================================
   Tablet — 768px
   =========================================== */
@media (min-width: 768px) {
  .container { padding: 0 2.5rem; }
  .header { padding: 1.4rem 2.5rem; }
  .header.is-scrolled { padding: 0.9rem 2.5rem; }

  .svc-hero { padding: 9rem 2.5rem 5rem; }

  .issues-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: start;
  }
  .issues-grid__media {
    position: sticky;
    top: 6.5rem;
  }

  .feature {
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem 0;
  }
  .feature__media { grid-column: 1 / 7; }
  .feature__body { grid-column: 8 / 13; }
  .feature--rev .feature__media { grid-column: 7 / 13; }
  .feature--rev .feature__body { grid-column: 1 / 6; grid-row: 1; }

  .work {
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 2rem 0;
  }

  .flow {
    grid-template-columns: repeat(5, 1fr);
    gap: 0 2.5rem;
  }
  .flow--four { grid-template-columns: repeat(4, 1fr); }
  .flow-step { padding: 1.5rem 0 0; }

  .footer { padding: 4rem 2.5rem 2.5rem; }
  .footer__inner {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 3rem;
  }
}

/* ===========================================
   Terminal — 自社AI実運用のライブデモ風コンポーネント
   =========================================== */
.terminal {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #101010;
  border: 1px solid #2c2c2c;
}
.media-frame__inner--terminal {
  aspect-ratio: 4 / 3;
  background: #101010;
}
.terminal__bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #232323;
}
.terminal__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #2e2e2e;
}
.terminal__title {
  margin-left: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6560;
}
.terminal__body {
  flex: 1;
  padding: 1.1rem 1.2rem;
  font-family: 'Consolas', 'Menlo', 'Courier New', monospace;
  font-size: 0.72rem;
  line-height: 2.1;
  color: rgba(245, 242, 237, 0.85);
  overflow: hidden;
}
.terminal__line { display: block; white-space: pre-wrap; word-break: break-all; }
.terminal__line--cmd { color: #f5f2ed; }
.terminal__line--cmd::before { content: '\276F '; color: var(--accent); }
.terminal__line--out { color: rgba(245, 242, 237, 0.6); }
.terminal__line--out::before { content: '\23FA '; color: var(--accent-soft); font-size: 0.85em; }
.terminal__line--ok { color: #f5f2ed; }
.terminal__line--ok::before { content: '\2713 '; color: var(--accent); font-weight: 700; }
.terminal__caret {
  display: inline-block;
  width: 7px; height: 1em;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: -0.15em;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* ===========================================
   GSAPモード — CSSトランジションを無効化してGSAPに委譲
   =========================================== */
.gsap-on .animate-in,
.gsap-on .hero-in {
  transition: none;
}
.svc-hero__display .char-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.svc-hero__display .char {
  display: inline-block;
  will-change: transform;
}

/* ===========================================
   Desktop — 1024px
   =========================================== */
@media (min-width: 1024px) {
  .container { padding: 0 3rem; }
  .header { padding: 1.5rem 3rem; }
  .header.is-scrolled { padding: 1rem 3rem; }
  .header__nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
  }
  .header__burger { display: none; }
  .header__nav-link {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 2px;
    color: var(--text-light);
    transition: color 0.4s;
  }
  .header.is-scrolled .header__nav-link { color: var(--text); }
  .header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease-out);
  }
  .header__nav-link:hover::after { width: 100%; }

  .svc-hero { padding: 10rem 3rem 5.5rem; }

  .section { padding-left: 3rem; padding-right: 3rem; }

  .footer { padding: 5rem 3rem 3rem; }
}
