/* ============================================================
   LogiBuddy LP — style.css
   Phase A1: 静的LP 一式
   ============================================================ */

/* -----------------------------------------------------------
   1. CSS変数
   ----------------------------------------------------------- */
:root {
  /* カラー */
  --color-primary: #0F2A4A;
  --color-primary-light: #1F4576;
  --color-primary-dark: #08172E;
  --color-accent: #FF6B35;
  --color-accent-light: #FF8A5C;
  --color-accent-dark: #E5491A;

  --color-bg: #F5F7FA;
  --color-bg-alt: #FFFFFF;
  --color-text: #2C3E50;
  --color-text-sub: #6B7C93;
  --color-text-light: #94A3B8;
  --color-border: #E1E8ED;
  --color-border-strong: #CBD5E0;

  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --color-info: #3B82F6;

  /* タイポグラフィ */
  --font-en: 'Inter', system-ui, sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-base: var(--font-jp), var(--font-en);

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.5rem;
  --fs-hero: 3.5rem;

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

  --lh-tight: 1.3;
  --lh-base: 1.7;
  --lh-caption: 1.5;

  /* スペーシング */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* レイアウト */
  --container-max: 1200px;
  --header-h: 60px;
  --header-h-pc: 80px;

  /* シャドウ */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* 角丸 */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* トランジション */
  --transition: all 0.2s ease;
}

/* -----------------------------------------------------------
   2. リセット
   ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg-alt);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; line-height: var(--lh-tight); font-weight: var(--fw-bold); color: var(--color-primary); }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* -----------------------------------------------------------
   3. レイアウト共通
   ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
}
@media (min-width: 768px) {
  .container { padding-left: var(--sp-8); padding-right: var(--sp-8); }
}

.section {
  padding: var(--sp-16) 0;
}
@media (min-width: 1024px) {
  .section { padding: var(--sp-24) 0; }
}

.section--alt { background: var(--color-bg); }
.section--dark {
  background: var(--color-primary);
  color: #fff;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.section__head {
  text-align: center;
  margin-bottom: var(--sp-12);
}
.section__title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-4);
}
@media (min-width: 1024px) {
  .section__title { font-size: var(--fs-4xl); }
}
.section__lead {
  color: var(--color-text-sub);
  font-size: var(--fs-base);
}
.section--dark .section__lead { color: rgba(255, 255, 255, 0.85); }

/* -----------------------------------------------------------
   4. ボタン
   ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  transition: var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
  text-align: center;
}
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
}
.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}
.btn--secondary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--secondary:hover { background: var(--color-primary-light); border-color: var(--color-primary-light); }

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--ghost:hover { background: var(--color-primary); color: #fff; }

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--ghost-light:hover { background: #fff; color: var(--color-primary); }

.btn--lg { padding: 16px 36px; font-size: var(--fs-lg); }
.btn--sm { padding: 8px 18px; font-size: var(--fs-sm); }

/* -----------------------------------------------------------
   5. ヘッダー
   ----------------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  z-index: 100;
  transition: box-shadow 0.2s, background 0.2s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-border);
}
@media (min-width: 1024px) {
  .header { height: var(--header-h-pc); }
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.header__logo { display: flex; align-items: center; flex-shrink: 0; }
.header__logo img { height: 40px; width: auto; }
@media (min-width: 1024px) {
  .header__logo img { height: 48px; }
}

.header__nav {
  display: none;
}
@media (min-width: 1024px) {
  .header__nav {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    margin-left: auto;
    margin-right: var(--sp-4);
  }
}
.header__nav a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  position: relative;
}
.header__nav a:hover { color: var(--color-accent); }

.header__cta {
  display: none;
  align-items: center;
  gap: var(--sp-3);
}
@media (min-width: 1024px) { .header__cta { display: flex; } }

.header__menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  align-items: center;
}
@media (min-width: 1024px) { .header__menu-btn { display: none; } }
.header__menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
  border-radius: 2px;
}
.header__menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__menu-btn.is-open span:nth-child(2) { opacity: 0; }
.header__menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* SP メニュー */
.sp-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: #fff;
  padding: var(--sp-8) var(--sp-6);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 99;
  overflow-y: auto;
}
.sp-menu.is-open { transform: translateX(0); }
.sp-menu__nav { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-8); }
.sp-menu__nav a {
  display: block;
  padding: var(--sp-4) 0;
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  border-bottom: 1px solid var(--color-border);
}
.sp-menu__cta { display: flex; flex-direction: column; gap: var(--sp-3); }
@media (min-width: 1024px) { .sp-menu { display: none; } }

main { padding-top: var(--header-h); }
@media (min-width: 1024px) { main { padding-top: var(--header-h-pc); } }

/* -----------------------------------------------------------
   6. ヒーロー
   ----------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: var(--sp-16) 0 var(--sp-16);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero { padding: var(--sp-24) 0; }
}
.hero::before {
  content: "";
  position: absolute;
  bottom: -80px; left: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle at center, rgba(255, 107, 53, 0.4) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-12); }
}

.hero__visual { order: -1; max-width: 480px; margin: 0 auto; }
@media (min-width: 1024px) {
  .hero__visual { order: 0; max-width: none; }
}

.hero__title {
  font-size: clamp(2rem, 6vw, var(--fs-hero));
  color: #fff;
  margin-bottom: var(--sp-6);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.hero__title .accent { color: var(--color-accent-light); }

.hero__sub {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-3);
  font-weight: var(--fw-medium);
}
.hero__note {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--sp-8);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* -----------------------------------------------------------
   7. 課題提起
   ----------------------------------------------------------- */
.problems__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 768px) {
  .problems__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}

.problem-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.problem-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.problem-card__label {
  display: inline-block;
  background: var(--color-bg);
  color: var(--color-primary);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-4);
  letter-spacing: 0.05em;
}
.problem-card__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-4);
}
.problem-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.problem-card__list li {
  position: relative;
  padding-left: 28px;
  color: var(--color-text);
  font-size: var(--fs-base);
}
.problem-card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 16px; height: 16px;
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M18 6L6 18M6 6l12 12'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M18 6L6 18M6 6l12 12'/></svg>") no-repeat center / contain;
}

.problems__conclusion {
  margin-top: var(--sp-12);
  text-align: center;
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  position: relative;
}
.problems__conclusion::before {
  content: "";
  display: block;
  width: 48px; height: 3px;
  background: var(--color-accent);
  margin: 0 auto var(--sp-6);
  border-radius: 2px;
}

/* -----------------------------------------------------------
   8. 特徴(Features)
   ----------------------------------------------------------- */
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 768px) {
  .features__grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.feature-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15, 42, 74, 0.08), rgba(255, 107, 53, 0.12));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-5);
  color: var(--color-accent);
}
.feature-card__num {
  display: inline-block;
  font-family: var(--font-en);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-2);
}
.feature-card__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-4);
  line-height: 1.4;
}
.feature-card__body {
  color: var(--color-text-sub);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
}

/* -----------------------------------------------------------
   9. 利用フロー(Steps)
   ----------------------------------------------------------- */
.steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  position: relative;
}
@media (min-width: 768px) {
  .steps__grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
}

.step-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step-card__num {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 36px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en);
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}
.step-card__icon {
  width: 56px; height: 56px;
  margin: var(--sp-4) auto var(--sp-4);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
}
.step-card__title { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.step-card__body { font-size: var(--fs-sm); color: var(--color-text-sub); }

/* 矢印 */
.step-card::after {
  content: "";
  display: block;
  width: 16px; height: 16px;
  margin: var(--sp-4) auto 0;
  background: var(--color-text-light);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M12 5v14M5 12l7 7 7-7'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M12 5v14M5 12l7 7 7-7'/></svg>") no-repeat center / contain;
}
.step-card:last-child::after { display: none; }
@media (min-width: 768px) {
  .step-card::after {
    position: absolute;
    top: 50%; right: -16px;
    transform: translate(50%, -50%);
    margin: 0;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M12 5l7 7-7 7'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M12 5l7 7-7 7'/></svg>") no-repeat center / contain;
  }
}

/* -----------------------------------------------------------
   10. 審査・必要書類(Screening)
   ----------------------------------------------------------- */
.screening__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: start;
}
@media (min-width: 1024px) {
  .screening__layout { grid-template-columns: 1fr 1fr; gap: var(--sp-12); }
}

.screening__lead {
  font-size: var(--fs-base);
  color: var(--color-text);
  margin-bottom: var(--sp-6);
  line-height: var(--lh-base);
}
.screening__note {
  background: rgba(255, 107, 53, 0.06);
  border-left: 4px solid var(--color-accent);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--color-text);
  margin-bottom: var(--sp-6);
}
.screening__note p + p { margin-top: var(--sp-2); }
.screening__note a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  font-weight: var(--fw-semibold);
}
.screening__note a:hover { color: var(--color-accent); }

.docs-list {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.docs-list h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-4);
  display: flex; align-items: center; gap: var(--sp-2);
}
.docs-list ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.docs-list li {
  position: relative;
  padding-left: 32px;
  font-size: var(--fs-base);
  line-height: 1.5;
}
.docs-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  background: var(--color-success);
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M9 12l2 2 4-4'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M9 12l2 2 4-4'/></svg>") no-repeat center / contain;
}
.docs-list__note {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--color-border);
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
}
.docs-list__note::before {
  content: "ℹ ";
  color: var(--color-info);
  font-weight: var(--fw-bold);
}

/* -----------------------------------------------------------
   11. 料金(Pricing)
   ----------------------------------------------------------- */
.pricing__notice {
  background: #fff;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--sp-8);
}
.pricing__notice-title {
  display: inline-block;
  background: var(--color-warning);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-4);
  letter-spacing: 0.05em;
}
.pricing__notice-text {
  font-size: var(--fs-lg);
  color: var(--color-text);
  font-weight: var(--fw-medium);
}

.pricing__list {
  max-width: 480px;
  margin: 0 auto var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.pricing__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.pricing__row dt { font-weight: var(--fw-medium); }
.pricing__row dd {
  margin: 0;
  color: var(--color-accent);
  font-weight: var(--fw-semibold);
}

.pricing__cta { text-align: center; }

/* -----------------------------------------------------------
   12. FAQ
   ----------------------------------------------------------- */
.faq {
  max-width: 800px;
  margin: 0 auto;
}
.faq__item {
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-3);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq__item.is-open { border-color: var(--color-accent); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  text-align: left;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  color: var(--color-text);
  line-height: 1.5;
}
.faq__q::before {
  content: "Q";
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
}
.faq__icon {
  margin-left: auto;
  width: 20px; height: 20px;
  color: var(--color-text-sub);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq__item.is-open .faq__icon { transform: rotate(180deg); color: var(--color-accent); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner {
  overflow: hidden;
  display: flex;
  gap: var(--sp-4);
  padding: 0 var(--sp-6);
}
.faq__item.is-open .faq__a-inner {
  padding: 0 var(--sp-6) var(--sp-5);
}
.faq__a-inner::before {
  content: "A";
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  margin-top: 2px;
}
.faq__a-text {
  color: var(--color-text-sub);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
}

/* -----------------------------------------------------------
   13. CTA セクション
   ----------------------------------------------------------- */
.cta-section {
  position: relative;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  color: #fff;
  padding: var(--sp-20) 0;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle at center, rgba(255, 107, 53, 0.5) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section__inner { position: relative; z-index: 1; }
.cta-section__title { font-size: clamp(1.75rem, 4vw, 2.5rem); color: #fff; margin-bottom: var(--sp-6); }
.cta-section__lead {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--sp-8);
  max-width: 640px;
  margin-left: auto; margin-right: auto;
  line-height: var(--lh-base);
}
.cta-section__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
}

/* -----------------------------------------------------------
   14. フッター
   ----------------------------------------------------------- */
.footer {
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--sp-16) 0 var(--sp-6);
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}
@media (min-width: 768px) {
  .footer__top { grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--sp-8); }
}

.footer__brand p {
  font-size: var(--fs-sm);
  color: rgba(245, 247, 250, 0.7);
  margin-top: var(--sp-4);
  max-width: 280px;
}
.footer__brand img { height: 44px; width: auto; }

.footer__col h4 {
  font-size: var(--fs-sm);
  color: #fff;
  margin-bottom: var(--sp-4);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
}
.footer__col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__col a {
  font-size: var(--fs-sm);
  color: rgba(245, 247, 250, 0.7);
}
.footer__col a:hover { color: var(--color-accent-light); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: rgba(245, 247, 250, 0.55);
}

/* -----------------------------------------------------------
   15. アニメーション(IntersectionObserver用)
   ----------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* -----------------------------------------------------------
   15.5 フォーム
   ----------------------------------------------------------- */
.lb-form { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--sp-8); box-shadow: var(--shadow-sm); }
.lb-form__section { padding: var(--sp-6) 0; border-bottom: 1px solid var(--color-border); }
.lb-form__section:first-child { padding-top: 0; }
.lb-form__section:last-child { border-bottom: 0; padding-bottom: 0; }
.lb-form__section-title { font-size: var(--fs-lg); margin-bottom: var(--sp-5); color: var(--color-primary); }
.lb-form__field { margin-bottom: var(--sp-5); }
.lb-form__field:last-child { margin-bottom: 0; }
.lb-form__field label { display:block; font-weight: var(--fw-medium); font-size: var(--fs-sm); margin-bottom: var(--sp-2); color: var(--color-text); }
.lb-form__field input[type="text"],
.lb-form__field input[type="tel"],
.lb-form__field input[type="email"],
.lb-form__field input[type="password"],
.lb-form__field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: var(--fs-base);
  background: #fff;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lb-form__field input:focus,
.lb-form__field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 42, 74, 0.1);
}
.lb-form__field .required { color: var(--color-danger); margin-left: 4px; }
.lb-form__hint { font-size: var(--fs-xs); color: var(--color-text-sub); margin-top: var(--sp-2); }
.lb-form__row { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 640px) { .lb-form__row { grid-template-columns: 1fr 1fr; gap: var(--sp-5); } }
.lb-form__check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  font-size: var(--fs-sm);
  cursor: pointer;
}
.lb-form__check input[type="checkbox"] { margin-top: 4px; transform: scale(1.2); cursor: pointer; }
.lb-form__check a { color: var(--color-accent-dark); text-decoration: underline; }
.lb-form__submit { text-align: center; margin-top: var(--sp-8); }

.form-errors {
  background: rgba(239, 68, 68, 0.06);
  border-left: 4px solid var(--color-danger);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-6);
  color: var(--color-text);
  font-size: var(--fs-sm);
}
.form-errors ul { margin-top: var(--sp-2); padding-left: var(--sp-5); list-style: disc; }
.form-errors li { margin-bottom: var(--sp-1); }

/* -----------------------------------------------------------
   15.6 書類アップロード UI
   ----------------------------------------------------------- */
.upload-list { display: flex; flex-direction: column; gap: var(--sp-4); margin: var(--sp-8) 0; }
.upload-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-6);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.upload-item.is-uploaded { border-color: var(--color-success); box-shadow: 0 1px 4px rgba(16, 185, 129, 0.12); }
.upload-item__head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.upload-item__num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-weight: var(--fw-bold); font-size: var(--fs-sm);
}
.upload-item.is-uploaded .upload-item__num { background: var(--color-success); color: #fff; }
.upload-item__title { flex: 1 1 auto; }
.upload-item__title h3 { font-size: var(--fs-base); color: var(--color-text); margin: 0; line-height: 1.4; }
.upload-item__hint { font-size: var(--fs-xs); color: var(--color-text-sub); margin-top: 2px; }
.upload-item__status { flex-shrink: 0; }
.upload-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}
.upload-status--ok { background: rgba(16, 185, 129, 0.12); color: var(--color-success); }
.upload-status--pending { background: rgba(107, 124, 147, 0.12); color: var(--color-text-sub); }

.upload-item__body { margin-top: var(--sp-4); }
.upload-item__file {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-4);
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-sm);
}
.upload-item__file a { color: var(--color-primary); font-weight: var(--fw-medium); text-decoration: underline; }
.upload-item__size { color: var(--color-text-sub); font-size: var(--fs-xs); margin-left: auto; }
.upload-item__delete {
  font-size: var(--fs-xs);
  color: var(--color-danger);
  text-decoration: underline;
  cursor: pointer;
}
.upload-item__drop {
  display: block;
  border: 2px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  position: relative;
}
.upload-item__drop:hover { border-color: var(--color-primary); color: var(--color-primary); background: rgba(15, 42, 74, 0.02); }
.upload-item__drop.is-dragover { border-color: var(--color-accent); background: rgba(255, 107, 53, 0.05); color: var(--color-accent-dark); }
.upload-item__drop input[type="file"] { position:absolute; opacity: 0; pointer-events: none; }
.upload-item__progress {
  margin-top: var(--sp-3);
  height: 6px;
  background: var(--color-bg);
  border-radius: 999px;
  overflow: hidden;
}
.upload-item__progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  transition: width 0.2s ease;
}
.upload-item__error { color: var(--color-danger); font-size: var(--fs-sm); margin-top: var(--sp-2); }

.upload-summary {
  display: flex; flex-direction: column; gap: var(--sp-4);
  align-items: center;
  margin-top: var(--sp-8);
  padding: var(--sp-6);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.upload-summary__count { font-weight: var(--fw-medium); color: var(--color-text); }

/* -----------------------------------------------------------
   15.7 セレクト・チェックボックスグリッド
   ----------------------------------------------------------- */
.lb-form__field select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: var(--fs-base);
  background: #fff;
  font-family: inherit;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
  padding: var(--sp-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  max-height: 220px;
  overflow-y: auto;
}
@media (min-width: 640px) { .checkbox-grid { grid-template-columns: repeat(4, 1fr); } }
.checkbox-grid--md { max-height: none; }
@media (min-width: 640px) { .checkbox-grid--md { grid-template-columns: repeat(3, 1fr); } }
.checkbox-grid__item {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-sm);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
}
.checkbox-grid__item:hover { background: rgba(255,255,255,0.6); }
.checkbox-grid__item input[type="checkbox"] { transform: scale(1.05); cursor: pointer; }

/* -----------------------------------------------------------
   15.8 案件検索 + リスト
   ----------------------------------------------------------- */
.lb-search {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-6);
}
.lb-search__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 768px) { .lb-search__row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .lb-search__row { grid-template-columns: repeat(6, 1fr); } }
.lb-search__field label { display:block; font-size: var(--fs-xs); color: var(--color-text-sub); margin-bottom: 4px; font-weight: var(--fw-medium); }
.lb-search__field input,
.lb-search__field select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  font-size: var(--fs-sm);
  background: #fff;
  font-family: inherit;
}
.lb-search__submit { margin-top: var(--sp-4); display: flex; gap: var(--sp-3); }
.lb-search__count { font-size: var(--fs-sm); color: var(--color-text-sub); margin-bottom: var(--sp-4); }

.project-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 768px) { .project-list { grid-template-columns: 1fr 1fr; } }

.project-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--shadow-sm);
}
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.project-card__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--sp-3);
}
.project-card__date { font-size: var(--fs-xs); color: var(--color-text-sub); }
.project-card__title { font-size: var(--fs-lg); margin-bottom: var(--sp-4); line-height: 1.4; }
.project-card__title a { color: var(--color-primary); }
.project-card__title a:hover { color: var(--color-accent); }
.project-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
}
.project-card__meta div { display: flex; gap: 8px; }
.project-card__meta dt { color: var(--color-text-sub); font-size: var(--fs-xs); min-width: 56px; padding-top: 2px; }
.project-card__meta dd { margin: 0; color: var(--color-text); flex: 1; }
.project-card__author { font-size: var(--fs-xs); color: var(--color-text-sub); padding-top: var(--sp-3); border-top: 1px solid var(--color-border); margin: 0; }

.project-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--sp-6);
}
.project-detail div {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-bottom: 1px solid var(--color-border);
}
.project-detail div:last-child { border-bottom: 0; }
.project-detail dt {
  background: var(--color-bg);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-sub);
}
.project-detail dd { margin: 0; padding: var(--sp-3) var(--sp-4); color: var(--color-text); }
@media (max-width: 640px) {
  .project-detail div { grid-template-columns: 100px 1fr; }
}
.project-detail__body { padding: var(--sp-6); background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); margin-bottom: var(--sp-6); }
.project-detail__body h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.project-detail__cta {
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-6);
  background: linear-gradient(135deg, rgba(15, 42, 74, 0.04), rgba(255, 107, 53, 0.04));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.lb-pagination {
  margin-top: var(--sp-8);
  display: flex; justify-content: center; gap: 6px;
}
.lb-pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--color-border);
  font-size: var(--fs-sm);
  color: var(--color-text);
}
.lb-pagination .page-numbers.current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.lb-pagination .page-numbers:hover { background: var(--color-bg); }

/* -----------------------------------------------------------
   15.9 タブ
   ----------------------------------------------------------- */
.lb-tabs {
  display: flex;
  gap: var(--sp-2);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}
.lb-tabs__item {
  padding: var(--sp-3) var(--sp-5);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lb-tabs__item:hover { color: var(--color-primary); }
.lb-tabs__item.is-active {
  color: var(--color-accent-dark);
  border-bottom-color: var(--color-accent);
}

/* -----------------------------------------------------------
   15.10 応募カード
   ----------------------------------------------------------- */
.app-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.app-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.app-card__head { display:flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-3); }
.app-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.app-card__meta { font-size: var(--fs-sm); color: var(--color-text-sub); }
.app-card__msg {
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--color-bg);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--color-text);
}

/* -----------------------------------------------------------
   15.11 メッセージ画面
   ----------------------------------------------------------- */
.msg-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 560px;
}
@media (min-width: 768px) {
  .msg-layout { grid-template-columns: 280px 1fr; }
}
.msg-list { background: var(--color-bg); border-right: 1px solid var(--color-border); display: flex; flex-direction: column; }
.msg-list__item {
  display: flex; flex-direction: column; gap: 4px;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-sm);
  color: var(--color-text);
  transition: background 0.15s;
}
.msg-list__item:hover { background: rgba(15, 42, 74, 0.04); }
.msg-list__item.is-active { background: #fff; border-left: 3px solid var(--color-accent); padding-left: calc(var(--sp-5) - 3px); }
.msg-list__item strong { color: var(--color-primary); }
.msg-list__time { font-size: var(--fs-xs); color: var(--color-text-light); }

.msg-pane { display: flex; flex-direction: column; min-height: 560px; }
.msg-empty { padding: var(--sp-12); text-align: center; color: var(--color-text-sub); font-size: var(--fs-sm); flex: 1; display:flex; align-items:center; justify-content:center; }
.msg-header {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.msg-header h2 { font-size: var(--fs-lg); color: var(--color-primary); margin: 0; }
.msg-header p { font-size: var(--fs-xs); color: var(--color-text-sub); margin: 4px 0 0 0; }
.msg-header a { color: var(--color-accent-dark); text-decoration: underline; }

.msg-stream {
  flex: 1;
  padding: var(--sp-5) var(--sp-6);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  background: #fff;
  max-height: 480px;
}
.msg-row { display: flex; }
.msg-row--self { justify-content: flex-end; }
.msg-bubble {
  max-width: 78%;
  padding: var(--sp-3) var(--sp-4);
  border-radius: 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--color-text);
}
.msg-row--self .msg-bubble {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.msg-bubble__sender { font-size: var(--fs-xs); color: var(--color-text-sub); margin-bottom: 4px; font-weight: var(--fw-medium); }
.msg-bubble__meta { font-size: var(--fs-xs); margin-top: 4px; opacity: 0.7; text-align: right; }

.msg-form {
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.msg-form textarea {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: var(--fs-sm);
  font-family: inherit;
  resize: vertical;
  background: #fff;
  min-height: 56px;
}
.msg-form textarea:focus { outline: none; border-color: var(--color-primary); }
.msg-form__actions {
  display: flex; gap: var(--sp-2); align-items: center; justify-content: flex-end;
}
.msg-form__att-btn {
  cursor: pointer;
  font-size: 22px; line-height: 1;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--color-border);
  color: var(--color-text-sub);
  transition: all .15s ease;
}
.msg-form__att-btn:hover { background: var(--color-bg-sub, #f5f5f5); border-color: var(--color-primary); }

/* 添付プレビュー(送信前) */
.msg-form__attachment-preview {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  position: relative;
}
.msg-form__att-icon { font-size: 18px; }
.msg-form__att-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.msg-form__att-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-form__att-size { font-size: var(--fs-xs); color: var(--color-text-sub); }
.msg-form__att-remove {
  background: transparent; border: 0; font-size: 20px; cursor: pointer;
  color: var(--color-text-sub); padding: 4px 8px; line-height: 1;
}
.msg-form__att-remove:hover { color: var(--color-danger); }
.msg-form__att-progress {
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 4px; background: var(--color-border); border-radius: 2px; overflow: hidden;
}
.msg-form__att-progress-bar {
  height: 100%; width: 0%; background: var(--color-primary);
  transition: width .15s ease;
}

/* 受信メッセージ内の添付 */
.msg-attachment { margin-top: 6px; }
.msg-attachment--image img {
  max-width: 100%; max-height: 280px;
  border-radius: var(--radius-sm);
  display: block;
}
.msg-attachment__file {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
  font-size: var(--fs-sm);
}
.msg-row--self .msg-attachment__file {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}
.msg-attachment__file:hover { background: rgba(255,255,255,0.85); }
.msg-row--self .msg-attachment__file:hover { background: rgba(255,255,255,0.25); }
.msg-attachment__icon { font-size: 22px; }
.msg-attachment__info { display: flex; flex-direction: column; min-width: 0; }
.msg-attachment__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.msg-attachment__size { font-size: var(--fs-xs); opacity: 0.7; }

/* -----------------------------------------------------------
   15.13 会員ランクバッジ
   ----------------------------------------------------------- */
.member-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.4;
}
.member-badge--sm { padding: 1px 6px; font-size: 10px; }
.member-badge--md { padding: 3px 10px; font-size: var(--fs-sm); }
.member-badge--verified {
  background: linear-gradient(135deg, #2b88d8, #1d6cba);
}
.member-badge--verified::before { content: "✓ "; }
.member-badge--premium {
  background: linear-gradient(135deg, #f1c12e, #d4a017);
  color: #3a2a00;
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.3);
}
.member-badge--premium::before { content: "★ "; }
.member-badge--standard {
  background: #9aa3ad;
}

/* -----------------------------------------------------------
   15.12 通知センター
   ----------------------------------------------------------- */
.notification-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.notification-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  list-style: none;
  transition: box-shadow 0.15s;
}
.notification-item.is-unread { border-left: 4px solid var(--color-accent); }
.notification-item:hover { box-shadow: var(--shadow-sm); }
.notification-item a { color: var(--color-text); display: block; }
.notification-item__head { display:flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.notification-item h3 { font-size: var(--fs-base); margin: 0 0 4px; color: var(--color-primary); }
.notification-item p { font-size: var(--fs-sm); color: var(--color-text-sub); margin: 0; }

/* -----------------------------------------------------------
   15.13 取引成立確認書(印刷対応)
   ----------------------------------------------------------- */
.confirm-doc {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-10) var(--sp-12);
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--color-text);
}
.confirm-doc__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: var(--sp-6);
  margin-bottom: var(--sp-8);
}
.confirm-doc__no, .confirm-doc__date { margin: 0; font-size: var(--fs-sm); }
.confirm-doc__h2 {
  font-size: var(--fs-lg);
  color: var(--color-primary);
  margin: var(--sp-8) 0 var(--sp-4);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--sp-2);
}
.confirm-doc__table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-6); }
.confirm-doc__table th, .confirm-doc__table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}
.confirm-doc__table th {
  width: 200px;
  background: var(--color-bg);
  font-weight: var(--fw-medium);
  color: var(--color-text-sub);
  font-size: var(--fs-sm);
}
.confirm-doc__parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}
@media (max-width: 640px) { .confirm-doc__parties { grid-template-columns: 1fr; } }
.confirm-doc__party {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
}
.confirm-doc__party h3 { font-size: var(--fs-base); margin: 0 0 var(--sp-3); color: var(--color-primary); }
.confirm-doc__party dl { margin: 0; }
.confirm-doc__party dl div { display: flex; gap: var(--sp-3); padding: 6px 0; border-bottom: 1px solid var(--color-border); }
.confirm-doc__party dl div:last-child { border-bottom: 0; }
.confirm-doc__party dt { color: var(--color-text-sub); font-size: var(--fs-xs); min-width: 76px; }
.confirm-doc__party dd { margin: 0; font-size: var(--fs-sm); color: var(--color-text); }
.confirm-doc__notice {
  margin-top: var(--sp-8);
  padding: var(--sp-5);
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  color: var(--color-text-sub);
}
.confirm-doc__notice p { margin: 0 0 4px; }
.confirm-doc__foot {
  margin-top: var(--sp-8);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--color-border);
  text-align: right;
  font-size: var(--fs-xs);
  color: var(--color-text-sub);
}

@media print {
  .header, .footer, .header__menu-btn, .sp-menu { display: none !important; }
  body { background: #fff; }
  main { padding: 0 !important; }
  .section { padding: 0 !important; }
  .container { max-width: 100% !important; padding: 0 !important; }
  .btn, .lb-tabs, .lb-search, form button { display: none !important; }
  .confirm-doc { border: none; box-shadow: none; padding: 0; }
}

/* -----------------------------------------------------------
   16. ユーティリティ
   ----------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.no-scroll { overflow: hidden; }
