@charset "UTF-8";

/* =========================================================
   UFDマーケティング — 共通スタイル
   ========================================================= */
:root {
  --orange: #ff8400;
  --orange-dark: #e57500;
  --blue: #29a6ff;
  --blue-dark: #1b8fe0;
  --ink: #222222;
  --ink-strong: #1a1a1a;
  --ink-body: #2a2a2a;
  --ink-muted: #666666;
  --ink-faq: #57585d;
  --line: #e6e6e6;
  --bg: #ffffff;
  --bg-gray: #f6f6f6;
  --bg-card: #fafafa;
  --footer-bg: #3e3e3e;

  --container: 1280px;
  --gutter: 40px;
  --measure: 880px;          /* 読み物の最大幅 */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;

  --header-h: 72px;
  --section-pad: 128px;

  /* 可変タイポグラフィ */
  --fs-body: 15px;
  --fs-lead: 16px;
  --lh-body: 1.9;

  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium",
          "游ゴシック Medium", YuGothic, "Noto Sans JP", Meiryo, sans-serif;
}

/* =========================================================
   base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: #333;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
hr { border: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =========================================================
   layout helpers
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--measure { max-width: calc(var(--measure) + var(--gutter) * 2); }

.section { padding-block: var(--section-pad); }
.section--gray { background: var(--bg-gray); }
.section--tight { padding-block: calc(var(--section-pad) * .6); }

.section-title {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--ink-strong);
  text-align: center;
}
.section-lead {
  margin-top: 12px;
  font-size: var(--fs-lead);
  line-height: 1.9;
  color: var(--ink-strong);
  text-align: center;
}
.section-action { margin-top: 72px; display: flex; justify-content: center; }

/* =========================================================
   icons
   ========================================================= */
.icon { width: 20px; height: 20px; flex: none; fill: currentColor; }
.icon--xs { width: 12px; height: 12px; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }

/* =========================================================
   buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .12); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn--orange { background: var(--orange); }
.btn--orange:hover { background: var(--orange-dark); }
.btn--blue { background: var(--blue); }
.btn--blue:hover { background: var(--blue-dark); }

/* セカンダリ：CTA（無料相談）以外の遷移ボタン。主張を控えめに */
.btn--ghost {
  background: #fff;
  color: var(--orange);
  border: 1px solid #e0c4a3;
  font-weight: 700;
  box-shadow: none;
}
.btn--ghost:hover {
  background: #fff8f0;
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255, 132, 0, .12);
}
.btn--ghost .btn__divider { background: rgba(255, 132, 0, .3); }
.btn--ghost.btn--lg { min-height: 54px; min-width: 260px; font-size: clamp(16px, 1.8vw, 18px); }
.btn--ghost.btn--wide { min-height: 46px; font-size: 15px; font-weight: 700; }

.btn--sm { min-height: 44px; padding: 9px 18px; font-size: 15px; }
.btn--block { width: 100%; padding: 14px 24px; border-radius: var(--radius); }
.btn--lg {
  min-width: 323px;
  min-height: 62px;
  padding: 10px 20px;
  font-size: clamp(18px, 2.2vw, 24px);
}
.btn--wide { width: 100%; max-width: 400px; min-height: 50px; font-weight: 500; }

.btn__divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, .55);
  margin-inline: 6px;
}

/* =========================================================
   header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }

.site-header__inner {
  height: var(--header-h);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo { display: block; }
.site-header__logo img { width: auto; height: 40px; }

.site-header__right { display: flex; align-items: center; gap: 32px; }

.gnav ul { display: flex; align-items: center; gap: 4px; }
.gnav a {
  position: relative;
  display: block;
  padding: 6px 18px;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}
.gnav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transform: translateX(-50%);
  transition: width .25s ease;
}
.gnav a:hover::after,
.gnav a[aria-current="page"]::after { width: calc(100% - 36px); }
.gnav a[aria-current="page"] { font-weight: 700; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   hero（トップ）
   ========================================================= */
.hero__media img {
  width: 100%;
  height: clamp(300px, 52vw, 669px);
  object-fit: cover;
}

.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 580px) minmax(0, 435px);
  justify-content: space-between;
  gap: 40px;
  padding-block: 72px;
}
.hero__eyebrow {
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--ink);
}
.hero__title {
  margin-top: 8px;
  font-size: clamp(27px, 3.8vw, 48px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .01em;
  color: var(--ink);
}
.hero__title-accent {
  display: inline-block;
  margin-top: 4px;
  font-size: clamp(30px, 4.3vw, 54px);
  color: var(--orange);
}
.hero__side { align-self: center; }
.hero__desc { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink); }
.hero__side .btn { margin-top: 24px; }

/* =========================================================
   works（トップ内）
   ========================================================= */
.works__list { margin-top: 64px; display: grid; gap: 56px; }

.works__item {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}
.works__item--reverse .works__media { order: 2; }

.works__media img {
  width: 100%;
  aspect-ratio: 580 / 420;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.works__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  padding: 3px 16px;
  border-radius: 32px;
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.works__name {
  margin-top: 16px;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.works__desc {
  margin-top: 16px;
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--ink);
}

/* CTA bar */
.cta-bar {
  margin-top: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-gray);
  transition: background-color .2s ease;
}
.cta-bar:hover { background: #efefef; }
.cta-bar__text { display: block; }
.cta-bar__title { display: block; font-size: clamp(18px, 2vw, 20px); font-weight: 700; color: var(--ink); line-height: 1.5; }
.cta-bar__desc { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-muted); line-height: 1.6; }
.cta-bar__circle {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  transition: transform .2s ease;
}
.cta-bar:hover .cta-bar__circle { transform: translateX(4px); }

/* =========================================================
   about（トップ内）
   ========================================================= */
.about__title {
  font-size: clamp(26px, 4.4vw, 48px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .02em;
  color: var(--orange);
}
.about__body { margin-top: 40px; max-width: var(--measure); }
.about__body p {
  font-size: var(--fs-lead);
  line-height: 2;
  color: var(--ink-body);
}
.about__body p + p { margin-top: 2em; }
.about__body .about__accent { font-weight: 900; color: var(--blue); }

/* =========================================================
   service（トップ内）
   ========================================================= */
.service__list {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
.service-card { flex: 0 1 calc((100% - 96px) / 4); min-width: 0; }
.service-card__media img {
  width: 100%;
  aspect-ratio: 373 / 240;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.service-card__title {
  margin-top: 28px;
  font-size: clamp(18px, 1.9vw, 20px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}
.service-card__desc {
  margin-top: 12px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-muted);
}

/* =========================================================
   service detail（トップ / サービスページ共通）
   ========================================================= */
.detail + .detail { padding-top: 0; }
.detail__title {
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}
.detail__desc {
  margin-top: 24px;
  max-width: var(--measure);
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--ink);
}
.detail__sub {
  margin-top: 56px;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

.reco {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.reco__item {
  padding: 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}
.reco__icon { color: var(--orange); }
.reco__text {
  margin-top: 8px;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}

/* marquee（画像の横流し） */
.marquee {
  margin-top: 56px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: marquee 40s linear infinite;
}
.marquee[data-reverse] .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  width: min(672px, 74vw);
  aspect-ratio: 672 / 440;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 24px)); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* =========================================================
   column carousel（トップ内）
   ========================================================= */
.carousel { margin-top: 64px; }
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex;
  gap: 12px;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.column-card {
  flex: 0 0 840px;
  max-width: 90vw;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}
.column-card > a { display: block; padding: 24px 24px 40px; }
.column-card__media img {
  width: 100%;
  aspect-ratio: 800 / 460;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.column-card__title {
  margin-top: 20px;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.5;
  color: #333;
  text-align: center;
}
.column-card .btn { margin: 20px auto 0; display: flex; }

.carousel__controls {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.carousel__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.carousel__btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .14); }

/* =========================================================
   faq
   ========================================================= */
.faq__head { display: grid; justify-items: center; }
.faq__list { margin-top: 56px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }

.faq__q { margin: 0; }
.faq__btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  text-align: left;
}
.faq__mark {
  flex: none;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--orange);
}
.faq__mark--a { color: var(--ink-faq); }
.faq__label {
  flex: 1;
  padding-top: 3px;
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 700;
  line-height: 1.6;
  color: #353537;
}
.faq__toggle {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
}
.faq__toggle::before,
.faq__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--ink-body);
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .2s ease;
}
.faq__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__btn[aria-expanded="true"] .faq__toggle::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }

.faq__a {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 0 0 28px;
}
.faq__a p {
  max-width: var(--measure);
  padding-top: 4px;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--ink-faq);
}
/* [hidden] を確実に効かせる（display 指定より後ろに置く） */
.faq__a[hidden] { display: none; }

/* =========================================================
   contact（トップ内の導線カード）
   ========================================================= */
.contact__head { display: grid; justify-items: center; }

.contact__list {
  margin-top: 48px;
  margin-inline: auto;
  max-width: 816px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.contact-card {
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.contact-card > a { position: relative; display: block; padding: 28px 56px 28px 24px; min-height: 171px; }
.contact-card__icon { color: var(--orange); }
.contact-card--blue .contact-card__icon,
.contact-card--blue .contact-card__arrow { color: var(--blue); }
.contact-card__title {
  margin-top: 10px;
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.contact-card__desc {
  margin-top: 8px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
}
.contact-card__arrow {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--orange);
  transition: transform .2s ease;
}
.contact-card:hover .contact-card__arrow { transform: translate(4px, -50%); }

/* =========================================================
   下層ページ共通
   ========================================================= */
.page-head {
  padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px);
  background: var(--bg-gray);
}
.page-head__title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--ink-strong);
}
.page-head__lead {
  margin-top: 20px;
  max-width: var(--measure);
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--ink-body);
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-muted); }
.breadcrumb li + li::before { content: "／"; margin-right: 8px; color: #bbb; }
.breadcrumb a:hover { text-decoration: underline; }
.page-head .breadcrumb { margin-bottom: 20px; }

/* サービスページ：■付きの見出し */
.detail__title--marker {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-weight: 800;
}
.detail__title--marker::before {
  content: "";
  flex: none;
  width: .62em;
  height: .62em;
  border-radius: 2px;
  background: var(--orange);
  transform: translateY(-.06em);
}

/* サービスページ：冒頭のサービス一覧 */
.svc-index {
  margin-top: 32px;
  display: grid;
  gap: 10px;
  max-width: var(--measure);
}
.svc-index li { display: flex; }
.svc-index a {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: clamp(16px, 1.9vw, 19px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  transition: border-color .2s ease, transform .2s ease;
}
.svc-index a::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--orange);
}
.svc-index a:hover { border-color: var(--orange); transform: translateX(3px); }
.svc-index .icon { margin-left: auto; color: var(--orange); }

/* 下層ページの本文画像 */
.detail__media { margin-top: 40px; }
.detail__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.mvv__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* 画像プレースホルダー（枠のみ） */
.ph-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: var(--ph-ratio, 16 / 9);
  border: 1px dashed #cccccc;
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(-45deg, #f4f4f4 0 12px, #efefef 12px 24px);
  color: #9a9a9a;
  font-size: 13px;
  letter-spacing: .04em;
}
.ph-frame span { padding: 5px 12px; background: rgba(255, 255, 255, .85); border-radius: 999px; }

/* MVV（私たちについて） */
.mvv { display: grid; gap: clamp(56px, 8vw, 88px); margin-top: 8px; }
.mvv__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.mvv__item:nth-child(even) .mvv__media { order: 2; }
.mvv__title {
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}
.mvv__text {
  margin-top: 20px;
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--ink);
}
.mvv__list { margin-top: 20px; display: grid; gap: 16px; }
.mvv__list li {
  position: relative;
  padding-left: 22px;
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--ink);
}
.mvv__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .8em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

/* 会社概要 */
.company { margin-top: 48px; max-width: 900px; margin-inline: auto; }
.company__row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
}
.company__row:first-child { border-top: 1px solid var(--line); }
.company__key { font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.company__val { font-size: var(--fs-lead); font-weight: 700; line-height: 1.9; color: var(--ink); }

/* 記事・実績カード */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}
.entry-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.entry-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, .08); }
.entry-card > a { display: flex; flex-direction: column; height: 100%; padding: 20px 20px 24px; }
.entry-card .ph-frame { --ph-ratio: 16 / 9; }
.entry-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.entry-card__title {
  margin-top: 20px;
  font-size: clamp(17px, 1.9vw, 20px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}
.entry-card__more {
  margin-top: auto;
  padding-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
}
.entry-card__more .icon { transition: transform .2s ease; }
.entry-card:hover .entry-card__more .icon { transform: translateX(3px); }

/* =========================================================
   お問い合わせフォーム
   ========================================================= */
.form { margin-top: 40px; max-width: var(--measure); margin-inline: auto; }
.form__note {
  margin-bottom: 32px;
  padding: 16px 20px;
  border-left: 4px solid var(--orange);
  background: var(--bg-gray);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-body);
}
.field { display: grid; gap: 10px; padding-block: 24px; border-bottom: 1px solid var(--line); }
fieldset.field { display: block; min-width: 0; margin: 0; padding-inline: 0;
  border: 0; border-bottom: 1px solid var(--line); }
fieldset.field > .field__label { padding: 0; margin-bottom: 12px; }
.form__note + .field { border-top: 1px solid var(--line); }
.field__label { display: flex; align-items: center; gap: 12px; font-size: var(--fs-lead); font-weight: 700; color: var(--ink); }
.badge {
  flex: none;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
  background: var(--orange);
}
.badge--optional { background: #9a9a9a; }

.input, .textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d5d5d5;
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}
.input:focus, .textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(41, 166, 255, .18); }
.textarea { min-height: 180px; resize: vertical; }

.choices { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.choice { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-lead); cursor: pointer; }
.choice input { width: 18px; height: 18px; accent-color: var(--orange); }

.form__consent { margin-top: 28px; display: flex; justify-content: center; text-align: center; }
.form__submit { margin-top: 28px; display: flex; justify-content: center; }
.form__submit .btn { min-width: 280px; }
.form__status { margin-top: 20px; font-size: 15px; font-weight: 700; color: var(--orange); text-align: center; }

/* =========================================================
   footer
   ========================================================= */
.site-footer { padding-block: 64px 24px; background: var(--footer-bg); color: #fff; }
.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.site-footer__logo {
  display: inline-block;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: #fff;
}
.site-footer__logo img { width: auto; height: 28px; }

.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.site-footer__nav a {
  position: relative;
  display: block;
  padding: 6px 12px;
  font-size: 15px;
  font-weight: 700;
}
.site-footer__nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: #fff;
  transform: translateX(-50%);
  transition: width .25s ease;
}
.site-footer__nav a:hover::after { width: calc(100% - 24px); }

.site-footer__line { margin: 28px 0; height: 1px; background: rgba(255, 255, 255, .25); }
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer__copy,
.site-footer__privacy { font-size: 12px; }
.site-footer__privacy { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   スマホ固定CTA
   ========================================================= */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
}
.mobile-cta .btn { width: 100%; min-height: 54px; font-size: 17px; }

/* =========================================================
   scroll reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 1180px) {
  :root { --section-pad: 104px; --gutter: 32px; }
  .gnav a { padding: 6px 12px; font-size: 14px; }
  .site-header__right { gap: 20px; }
  .site-header__logo img { height: 36px; }

  .service__list { gap: 40px; }
  .service-card { flex-basis: calc((100% - 40px) / 2); }
}

@media (max-width: 960px) {
  :root { --section-pad: 80px; --gutter: 24px; --fs-body: 15.5px; }

  body { padding-bottom: 78px; }
  .mobile-cta { display: block; }

  .nav-toggle { display: flex; }

  .site-header__right {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 28px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-header__right.is-open { opacity: 1; visibility: visible; transform: none; }

  .gnav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .gnav a { padding: 15px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .gnav a::after { display: none; }
  .site-header__right .btn { margin-top: 20px; }

  .hero__body { grid-template-columns: minmax(0, 1fr); padding-block: 48px; gap: 32px; }

  .works__item { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .works__item--reverse .works__media { order: 0; }
  .works__list { gap: 48px; }

  .service__list { gap: 48px; }
  .service-card { flex-basis: 100%; }
  .service-card__media img { aspect-ratio: 16 / 9; }

  .reco { grid-template-columns: minmax(0, 1fr); gap: 16px; }

  .contact__list { grid-template-columns: minmax(0, 1fr); }
  .contact-card > a { min-height: 0; }

  .column-card { flex-basis: 86vw; }
  .column-card > a { padding: 16px 16px 28px; }

  .mvv__item { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .mvv__item:nth-child(even) .mvv__media { order: 0; }

  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }

  .company__row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px 4px; }

  .site-footer__top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .site-footer__nav { margin-inline: -12px; }
}

@media (max-width: 600px) {
  :root { --section-pad: 64px; --gutter: 20px; --fs-body: 16px; --lh-body: 1.95; }

  .section-action { margin-top: 48px; }
  .btn--lg { min-width: 0; width: 100%; }

  .cta-bar { padding: 20px; gap: 16px; }
  .cta-bar__circle { width: 40px; height: 40px; }

  .hero__desc br { display: none; }
  .hero__title { letter-spacing: 0; }

  .about__body { margin-top: 32px; }

  .faq__btn { gap: 12px; padding: 18px 0; }
  .faq__a { gap: 12px; }
  .faq__toggle { width: 28px; height: 28px; }

  .form__submit .btn { width: 100%; min-width: 0; }
  .choices { gap: 12px 18px; }
}

/* =========================================================
   コラム記事ページ
   ========================================================= */
.article { padding-block: clamp(48px, 6vw, 80px) clamp(64px, 8vw, 104px); }
.article__inner { max-width: calc(var(--measure) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-muted);
}
.tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}
.article__title {
  margin-top: 16px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .01em;
  color: var(--ink-strong);
}
.article__lead {
  margin-top: 24px;
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--ink-body);
}
.article__hero { margin-top: 32px; }
.article__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.article__hero figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-muted); }

/* 目次 */
.toc {
  margin-top: 40px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-gray);
}
.toc__title { font-size: 16px; font-weight: 700; color: var(--ink); }
.toc ol { margin-top: 12px; display: grid; gap: 10px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; font-size: 15px; line-height: 1.7; color: var(--ink-body); }
.toc a::before { content: counter(toc) "."; flex: none; font-weight: 700; color: var(--orange); }
.toc a:hover { color: var(--orange); text-decoration: underline; }

/* 本文 */
.article__body { margin-top: 56px; }
.article__body > h2 {
  margin-top: 64px;
  padding-left: 16px;
  border-left: 5px solid var(--orange);
  font-size: clamp(21px, 2.8vw, 28px);
  font-weight: 800;
  line-height: 1.55;
  color: var(--ink-strong);
}
.article__body > h2:first-child { margin-top: 0; }
.article__body h3 {
  margin-top: 40px;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}
.article__body p {
  margin-top: 20px;
  font-size: var(--fs-lead);
  line-height: 2;
  color: var(--ink-body);
}
.article__body strong { font-weight: 700; background: linear-gradient(transparent 62%, rgba(255, 132, 0, .28) 0); }
.article__body figure { margin-top: 32px; }
.article__body figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.article__body figcaption { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--ink-muted); }

.article__body ul.list,
.article__body ol.list { margin-top: 20px; display: grid; gap: 14px; }
.article__body ul.list li,
.article__body ol.list li {
  position: relative;
  padding-left: 30px;
  font-size: var(--fs-lead);
  line-height: 1.9;
  color: var(--ink-body);
}
.article__body ul.list li::before {
  content: "";
  position: absolute;
  left: 8px; top: .8em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.article__body ol.list { counter-reset: li; }
.article__body ol.list li { counter-increment: li; padding-left: 44px; }
.article__body ol.list li::before {
  content: counter(li);
  position: absolute;
  left: 0; top: .25em;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* 補足ボックス */
.callout {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.callout__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.callout__title .icon { color: var(--orange); }
.callout p:first-of-type { margin-top: 12px; }
.callout p, .callout li { font-size: 15px; }

/* 比較テーブル */
.table-wrap { margin-top: 32px; overflow-x: auto; }
.table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.8;
}
.table th, .table td { padding: 14px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { background: var(--bg-gray); font-weight: 700; color: var(--ink); }
.table tbody th { background: #fff; font-weight: 700; width: 34%; color: var(--ink); }
.table td { color: var(--ink-body); }

/* 執筆者 */
.author {
  margin-top: 56px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.author__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}
.author__label { font-size: 12px; font-weight: 700; color: var(--ink-muted); }
.author__name { margin-top: 4px; font-size: 18px; font-weight: 700; color: var(--ink); }
.author__desc { margin-top: 8px; font-size: 14px; line-height: 1.9; color: var(--ink-body); }

/* 記事内CTA */
.article-cta {
  margin-top: 56px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-gray);
  text-align: center;
}
.article-cta__title { font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; color: var(--ink); line-height: 1.6; }
.article-cta__desc { margin-top: 12px; font-size: 15px; line-height: 1.9; color: var(--ink-body); }
.article-cta .btn { margin-top: 20px; }

/* 関連記事 */
.related { margin-top: 64px; }
.related__title { font-size: 20px; font-weight: 700; color: var(--ink); }
.related ul { margin-top: 20px; display: grid; gap: 12px; }
.related a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink);
  transition: border-color .2s ease, transform .2s ease;
}
.related a:hover { border-color: var(--orange); transform: translateX(3px); }
.related a .icon { color: var(--orange); }

@media (max-width: 600px) {
  .toc { padding: 20px; }
  .callout, .article-cta { padding: 20px; }
  .author { flex-direction: column; gap: 14px; padding: 20px; }
  .article__body > h2 { padding-left: 12px; border-left-width: 4px; }
}
