/* Design Studio by FRONTIER DIRECT — Figma「FDデザインチームサイト刷新」準拠の共通スタイル */

:root {
  --red: #e94d38;
  /* ボタン・セクションタイトル */
  --orange: #f29c13;
  /* DDくん・引用符 */
  --orange-deep: #F19217;
  /* フッターの丘 */
  --orange-icon: #ffa93d;
  /* Flow/Estimateアイコン */
  --accent: #eb5c01;
  /* ヒーローサブコピー */
  --yellow: #ffd754;
  /* About帯 */
  --yellow-dd: #f9b902;
  /* フッターDDくん */
  --cream: #f9f5ee;
  /* ナビピル・カード背景 */
  --cloud: #f1ece4;
  /* もやもや雲の縁 */
  --tan: #cdbb9f;
  /* タグ・矢印 */
  --gray-pill: #e6e6e6;
  /* 非選択フィルタ */
  --ink: #211c16;
  --jp: "Noto Sans JP", sans-serif;
  --en: "Poppins", sans-serif;
}

/* 改行制御用クラス */
.pc-only {
  display: inline;
}

.sp-only {
  display: none;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--jp);
  color: #000;
  background: #fff;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ヘッダー（TOP用: 左ロゴ + 右ピルナビ） ===== */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 66px 60px 0 66px;
  max-width: 1440px;
  margin: 0 auto;
}

.header-top .logo img {
  width: 200px;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--cream);
  border-radius: 100px;
  padding: 35px 50px;
}

.nav-pill a {
  font-family: var(--en);
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
}

.nav-pill .btn-contact {
  background: var(--red);
  color: #fff;
  border-radius: 4px;
  padding: 10px 20px;
}

/* ===== ヘッダー（下層用: 全幅ピルバー） ===== */
.header-bar {
  position: fixed;
  top: 30px;
  left: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(4px);
  border-radius: 100px;
  padding: 7px 50px;
  height: 80px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-bar .logo img {
  width: 90px;
}

.header-bar .nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-bar .nav-links a {
  font-family: var(--en);
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  color: inherit;
  text-decoration: none;
}

.header-bar .nav-links .btn-contact {
  background: var(--red);
  color: #fff;
  border-radius: 4px;
  padding: 10px 20px;
}

/* TOP用ヘッダーのスクロール時の切り替え挙動 */
body[data-page="top"] .header-bar {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

body[data-page="top"] .header-bar.fixed-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body[data-page="top"] .header-top {
  transition: opacity 0.3s ease, visibility 0.3s;
}

body[data-page="top"] .header-top.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* ===== 共通ボタン（赤ピル + 丸矢印） ===== */
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  border-radius: 30px;
  padding: 10px 10px 10px 28px;
  font-family: var(--en);
  font-weight: 700;
  font-size: 16px;
  line-height: 26px;
}

.btn-more .arr,
.btn-white .arr {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  position: relative;
  flex: none;
}

.btn-more .arr::after,
.btn-white .arr::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 8px;
  height: 2px;
  background: var(--red);
}

.btn-more .arr::before,
.btn-white .arr::before {
  content: "";
  position: absolute;
  right: 5px;
  top: 6.5px;
  width: 5px;
  height: 5px;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
  transform: rotate(45deg);
}

/* ===== セクション見出し（〝Title〟+ サブ） ===== */
.sec-head {
  display: flex;
  align-items: center;
  gap: 31px;
}

.sec-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.sec-title {
  font-family: var(--en);
  font-weight: 700;
  font-size: 46px;
  line-height: 69px;
  color: var(--red);
}

.sec-quote {
  width: 18px;
  margin-top: 22px;
}

.sec-quote.open {
  transform: rotate(180deg);
}

.sec-quote.close {
  align-self: flex-end;
  margin-bottom: 14px;
}

/* DDくんのまばたき（Figma「まばたき」フレーム準拠: 黒目2つが消え、両目をまたぐ1本の横線になる） */
.dd-pupil {
  animation: blinkPupil 4.2s infinite;
}

.dd-blinkline {
  opacity: 0;
  animation: blinkLine 4.2s infinite;
}

@keyframes blinkPupil {

  0%,
  94%,
  98%,
  100% {
    opacity: 1;
  }

  94.5%,
  97.5% {
    opacity: 0;
  }
}

@keyframes blinkLine {

  0%,
  94%,
  98%,
  100% {
    opacity: 0;
  }

  94.5%,
  97.5% {
    opacity: 1;
  }
}

.dd-track svg:nth-child(2n) .dd-pupil,
.dd-track svg:nth-child(2n) .dd-blinkline {
  animation-delay: 1.4s;
}

.dd-track svg:nth-child(3n) .dd-pupil,
.dd-track svg:nth-child(3n) .dd-blinkline {
  animation-delay: 2.6s;
}

.sec-sub {
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
}

/* ===== ヒーロー（もやもや雲アニメーション） ===== */
.hero {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 700px;
  padding: 60px 60px 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  margin-left: 160px;
}

.hero-copy h1 {
  /* 表示幅に応じて文字も「もやもや」画像も同率で縮むようem基準にする */
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.45;
  letter-spacing: .02em;
}

.hero-copy h1 .l1 {
  white-space: nowrap;
}

/* もやもや画像: Figma実測（文字40px/行57pxに対し 画像39px・ベースライン+3px）をem換算で再現。
   引用符は絶対配置にして、行の基準線計算に影響させない */
.moya-w {
  position: relative;
  display: inline-block;
  margin: 0 .55em 0 .7em;
  vertical-align: -.08em;
}

.moya-w .word {
  display: block;
  height: .975em;
  width: auto;
}

.moya-w .q-open {
  position: absolute;
  left: -.68em;
  top: .025em;
  width: .46em;
  transform: rotate(180deg);
}

.moya-w .q-close {
  position: absolute;
  right: -.53em;
  bottom: -.03em;
  width: .46em;
}

.hero-copy .sub {
  margin-top: 20px;
  color: var(--accent);
  font-weight: 700;
  font-size: 24px;
  line-height: 38px;
}

.hero-anim {
  position: relative;
  width: 640px;
  height: 620px;
  margin-left: auto;
  flex: none;
}

.moyacloud {
  position: absolute;
  inset: 0;
  transition: transform 1s ease-in, opacity 1s ease-in;
}

.moyacloud .c-outer {
  position: absolute;
  left: 0;
  top: 0;
  width: 603px;
}

.moyacloud .c-inner {
  position: absolute;
  left: 33px;
  top: 39px;
  width: 539px;
}

.moya-part {
  position: absolute;
  left: calc(var(--px) * 1px);
  top: calc(var(--py) * 1px);
  width: calc(var(--pw) * 1px);
  transition: transform 1s ease-in, opacity 1s ease-in;
  animation: bob 3.6s ease-in-out infinite;
  animation-delay: var(--bd, 0s);
}

.moya-part img {
  width: 100%;
}

@keyframes bob {

  0%,
  100% {
    margin-top: 0;
  }

  50% {
    margin-top: -14px;
  }
}

/* 回転・縮小しながら消える */
.phase-out .moya-part {
  transform: rotate(360deg) scale(0);
  opacity: 0;
}

.phase-out .moyacloud {
  transform: scale(.55);
  opacity: 0;
}

.phase-align .moya-part {
  transform: scale(0);
  opacity: 0;
  transition: none;
}

.phase-align .moyacloud {
  opacity: 0;
  transition: none;
}

/* ピシッと整列 */
.align-cluster {
  position: absolute;
  left: 73px;
  top: 110px;
  width: 426px;
  opacity: 0;
  transform: scale(.5);
}

.phase-align .align-cluster {
  opacity: 1;
  transform: scale(1);
  transition: transform .5s cubic-bezier(.18, .89, .32, 1.28), opacity .25s ease-out;
}

.phase-out2 .align-cluster {
  opacity: 0;
  transform: rotate(180deg) scale(0);
  transition: transform 1s ease-in, opacity 1s ease-in;
}

.phase-out2 .moya-part {
  opacity: 0;
  transition: none;
}

.phase-float .align-cluster {
  opacity: 0;
}

.phase-out2 .moyacloud {
  opacity: 0;
  transition: none;
}

/* DDくん（のぞき込み。?/!付きポーズSVGをフェーズで切替） */
.hero-dd {
  position: absolute;
  left: 520px;
  top: -19px;
  z-index: 3;
}

.hero-dd span {
  display: block;
}

.hero-dd svg {
  width: 131px;
  height: auto;
  display: block;
}

.hero-dd .dd-e {
  display: none;
}

.hero-dd .dd-e svg {
  width: 124px;
}

.phase-align .hero-dd .dd-q,
.phase-out2 .hero-dd .dd-q {
  display: none;
}

.phase-align .hero-dd .dd-e,
.phase-out2 .hero-dd .dd-e {
  display: block;
}

/* ===== About帯 ===== */
.about-band {
  background: var(--yellow);
  padding: 100px 0;
  margin-top: 100px;
}

.about-band-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.about-diagram-wrap {
  position: relative;
  width: 431px;
  flex: none;
}

.about-diagram {
  width: 100%;
}

/* 図解内のDDくん（Figma書き出しの正確な角度のSVGを実座標%で重ねる） */
.diagram-dd {
  position: absolute;
}

.diagram-dd svg {
  width: 100%;
  height: auto;
  display: block;
}

.diagram-dd.pc {
  left: 0;
  top: 38.3%;
  width: 30.9%;
}

.diagram-dd.sp {
  display: none;
  left: -5%;
  top: 42.4%;
  width: 26.6%;
}

.about-diagram.sp {
  display: none;
}

.about-text {
  width: 351px;
  flex: none;
}

.about-text p {
  font-weight: 500;
  font-size: 16px;
  line-height: 40px;
}

.about-text .btn-more {
  margin-top: 20px;
}

/* ===== セクション共通 ===== */
.section {
  margin-top: 160px;
}

.sec-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== Works ===== */
.works-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 50px;
  row-gap: 60px;
}

.work-card {
  display: block;
}

.work-thumb {
  border-radius: 10px;
  overflow: hidden;
  /* background: var(--cream); */
}

.work-thumb img {
  width: 100%;
  aspect-ratio: 300 / 185;
  object-fit: cover;
  transition: transform .35s;
}

.work-card:hover .work-thumb img {
  transform: scale(1.05);
}

.work-title {
  margin-top: 14px;
  font-weight: 500;
  font-size: 20px;
  line-height: 33px;
}

.work-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.work-tags span {
  background: var(--tan);
  color: #fff;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  line-height: 26px;
  padding: 2px 12px;
}

/* ===== DDくんマーキー ===== */
.dd-marquee {
  overflow: hidden;
  margin-top: 160px;
}

.dd-track {
  display: flex;
  gap: 50px;
  width: max-content;
  animation: marquee 36s linear infinite;
  padding-left: 50px;
}

.dd-track svg {
  width: 100px;
  height: 72px;
  flex: none;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ===== Flow ===== */
.flow-steps {
  margin-top: 70px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.flow-step {
  width: 150px;
  flex: none;
}

.flow-icon {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-icon img {
  max-height: 90px;
  width: auto;
}

.flow-step h3 {
  margin-top: 20px;
  text-align: center;
  font-weight: 700;
  font-size: 22px;
  line-height: 30px;
}

.flow-step p {
  margin-top: 20px;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
}

.flow-arrow {
  flex: 1;
  display: flex;
  justify-content: center;
  margin-top: 120px;
}

.flow-arrow::after {
  content: "";
  display: block;
  width: 28px;
  height: 38px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='49' viewBox='0 0 36 49' fill='none'%3E%3Cpath d='M34.44 25.7541C35.5672 24.9571 35.5672 23.2848 34.44 22.4879L3.15454 0.370341C1.82986 -0.56616 2.34904e-06 0.381152 2.27813e-06 2.00345L3.44554e-07 46.2385C2.73641e-07 47.8608 1.82985 48.8081 3.15454 47.8716L34.44 25.7541Z' fill='%23CDBB9F'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ===== Estimate ===== */
.estimate-grid {
  margin-top: 70px;
  display: flex;
  gap: 50px;
}

.estimate-card {
  width: 213px;
  flex: none;
  background: var(--cream);
  border-radius: 10px;
  padding: 30px 20px;
}

.estimate-icon {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.estimate-icon img {
  max-height: 100px;
  width: auto;
}

.estimate-card h3 {
  margin-top: 20px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 30px;
}

.estimate-card .price {
  text-align: center;
  font-family: var(--en);
  font-weight: 600;
  font-size: 22px;
  line-height: 30px;
}

.estimate-card .note {
  margin-top: 2px;
  text-align: center;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
}

/* ===== フッター（オレンジの丘CTA + 下部バー） ===== */
.site-cta {
  position: relative;
  margin-top: 230px;
}

.site-cta .hill {
  position: relative;
  background: var(--orange-deep);
  padding: 90px 20px 100px;
}

.site-cta .hill::before {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  top: -140px;
  height: 290px;
  background: var(--orange-deep);
  /* 画面幅に依存しない楕円弧: 水平方向は十分大きく、垂直方向は固定値で安定したカーブを維持 */
  border-radius: 9999px 9999px 0 0 / 1000px 1000px 0 0;
}

.cta-inner {
  position: relative;
  max-width: 1440px;
  margin: -40px auto 0;
  text-align: center;
  color: #fff;
}

.cta-title-row {
  display: inline-flex;
  align-items: flex-start;
  position: relative;
}

.cta-title {
  font-weight: 700;
  font-size: 28px;
  line-height: 43px;
}

.cta-dd {
  position: absolute;
  left: calc(100% + 108px);
  top: -46px;
}

.cta-dd svg {
  width: 124px;
  height: auto;
  display: block;
}

.cta-text {
  margin-top: 40px;
  font-weight: 500;
  font-size: 14px;
  line-height: 30px;
}

.cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--orange-deep);
  border-radius: 30px;
  padding: 10px 10px 10px 30px;
  font-weight: 700;
  font-size: 16px;
  line-height: 26px;
  font-family: var(--en);
}

.btn-white .arr {
  background: var(--orange-deep);
}

.btn-white .arr::after {
  background: #fff;
}

.btn-white .arr::before {
  border-color: #fff;
}

.btn-white .ext {
  width: 15px;
  height: 15px;
  flex: none;
  border: 2px solid var(--orange-deep);
  border-radius: 2px;
  position: relative;
}

.btn-white .ext::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -5px;
  width: 7px;
  height: 7px;
  background: #fff;
  border-top: 2px solid var(--orange-deep);
  border-right: 2px solid var(--orange-deep);
}

.site-footer {
  background: var(--cream);
  height: 50px;
  padding: 0 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer .links {
  font-weight: 500;
  font-size: 12px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer .copy {
  font-family: var(--en);
  font-weight: 500;
  font-size: 12px;
}

/* ===== 改行 ===== */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

/* ===== 下層ページ共通 ===== */
.page-main {
  padding-top: 160px;
}

.page-title {
  font-family: var(--en);
  font-weight: 700;
  font-size: 64px;
  line-height: 96px;
}

/* ===== スクロールボタン　===== */
#scroll-top {
  position: fixed;
  bottom: 58px;
  right: 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e94d38;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 100;
}

#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ===== Works一覧（絞り込み） ===== */
.filter-block {
  margin-top: 100px;
}

.filter-title {
  text-align: center;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.filter-row:first-of-type {
  margin-top: 46px;
}

.filter-label {
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  width: 90px;
  flex: none;
}

.filter-tag {
  background: var(--gray-pill);
  color: #000;
  border-radius: 30px;
  padding: 10px 30px;
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  transition: background .2s, color .2s;
}

.filter-tag.active {
  background: var(--red);
  color: #fff;
}

.filter-clear {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 22px auto 0;
  border: 2px solid #b9b9b9;
  border-radius: 30px;
  padding: 10px 30px;
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  color: #000;
}

.filter-clear::after {
  content: "×";
  color: #b9b9b9;
  font-weight: 700;
}

.works-empty {
  grid-column: 1 / -1;
  font-size: 16px;
  color: #666;
  padding: 40px 0;
}

/* ===== ページネーション（サンプル） ===== */
.pagination {
  margin: 100px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  font-family: var(--en);
  font-weight: 500;
  font-size: 24px;
  line-height: 36px;
}

.pagination .pg-arrow {
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}

.pagination .pg-prev {
  border-right: 18px solid var(--red);
}

.pagination .pg-next {
  border-left: 18px solid var(--red);
}

/* ===== 事例詳細 ===== */
.detail-title {
  font-weight: 700;
  font-size: 46px;
  line-height: 66px;
}

.detail-tags {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-tags span {
  background: var(--tan);
  color: #fff;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  line-height: 26px;
  padding: 2px 12px;
}

.detail-desc {
  margin-top: 100px;
  font-weight: 400;
  font-size: 16px;
  line-height: 30px;
}

.detail-client {
  margin-top: 20px;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
}

.carousel {
  position: relative;
  margin-top: 50px;
}

.carousel-frame {
  /* background: var(--cream); */
  border-radius: 10px;
  aspect-ratio: 1000 / 618;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-slide {
  display: none;
  width: 80%;
}

.carousel-slide.show {
  display: block;
}

.carousel-slide img {
  width: 100%;
  border-radius: 6px;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 49px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: pointer;
  background-color: transparent;
  z-index: 10;
}

.carousel-nav.prev {
  left: -70px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='49' viewBox='0 0 36 49' fill='none'%3E%3Cpath d='M34.44 25.7541C35.5672 24.9571 35.5672 23.2848 34.44 22.4879L3.15454 0.370341C1.82986 -0.56616 2.34904e-06 0.381152 2.27813e-06 2.00345L3.44554e-07 46.2385C2.73641e-07 47.8608 1.82985 48.8081 3.15454 47.8716L34.44 25.7541Z' fill='%23CDBB9F'/%3E%3C/svg%3E");
  transform: translateY(-50%) scaleX(-1);
}

.carousel-nav.next {
  right: -70px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='49' viewBox='0 0 36 49' fill='none'%3E%3Cpath d='M34.44 25.7541C35.5672 24.9571 35.5672 23.2848 34.44 22.4879L3.15454 0.370341C1.82986 -0.56616 2.34904e-06 0.381152 2.27813e-06 2.00345L3.44554e-07 46.2385C2.73641e-07 47.8608 1.82985 48.8081 3.15454 47.8716L34.44 25.7541Z' fill='%23CDBB9F'/%3E%3C/svg%3E");
}

@media (max-width: 1240px) {
  .carousel-nav {
    width: 40px;
    height: 33px;
  }
  .carousel-nav.prev {
    left: 15px;
    transform: translateY(-50%) scaleX(-1);
  }
  .carousel-nav.next {
    right: 15px;
    transform: translateY(-50%);
  }
}

.related-head {
  margin-top: 160px;
  font-weight: 700;
  font-size: 30px;
  line-height: 43px;
}

#related-grid {
  margin-top: 20px;
}

/* ===== About ===== */
.about-sec {
  margin-top: 100px;
}

.value-grid {
  margin-top: 70px;
  display: flex;
  align-items: center;
  gap: 53px;
}

.value-grid .illust {
  width: 402px;
  flex: none;
}

.value-grid h3 {
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
}

.value-grid .text p {
  margin-top: 20px;
  font-weight: 400;
  font-size: 16px;
  line-height: 30px;
}

.member-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 50px;
  row-gap: 70px;
}

.member-card .avatar {
  border-radius: 50%;
  overflow: hidden;
}

.member-card .role {
  margin-top: 20px;
  font-family: var(--en);
  font-weight: 700;
  font-size: 18px;
  line-height: 27px;
}

.member-card .name {
  margin-top: 10px;
  font-family: var(--en);
  font-weight: 700;
  font-size: 30px;
  line-height: 40px;
}

.member-card .bio {
  margin-top: 10px;
  font-weight: 400;
  font-size: 14px;
  line-height: 26px;
}

.access-grid {
  margin-top: 70px;
  display: flex;
  gap: 50px;
}

.access-info {
  width: 390px;
  flex: none;
  font-weight: 500;
  font-size: 20px;
  line-height: 50px;
}

.access-map {
  flex: 1;
}

.access-map iframe {
  width: 100%;
  height: 434px;
  border: 0;
  border-radius: 4px;
}

/* ===== Contact ===== */
.contact-lead-title {
  margin-top: 100px;
  color: var(--red);
  font-weight: 700;
  font-size: 30px;
  line-height: 43px;
}

.contact-lead {
  margin-top: 20px;
  font-weight: 400;
  font-size: 16px;
  line-height: 30px;
}

.contact-form-head {
  margin-top: 100px;
  font-weight: 700;
  font-size: 30px;
  line-height: 43px;
}

.contact-form-note {
  margin-top: 20px;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
}

.required-note {
  margin-top: 44px;
  color: var(--red);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
}

/* 必須項目のアスタリスクを赤色に */
.form-field>label .req {
  color: var(--red);
}

.form-field {
  margin-top: 20px;
}

.form-field>label {
  display: block;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #000;
  background: transparent;
  font-family: var(--jp);
  font-size: 16px;
  padding: 16px 2px 12px;
  outline: none;
  resize: vertical;
}

.form-field.error input,
.form-field.error textarea {
  border-bottom-color: #ff0000;
}

.field-error {
  display: none;
  color: #ff0000;
  font-size: 13px;
  margin-top: 6px;
}

.form-field.error .field-error {
  display: block;
}

.check-group {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.check-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
}

.check-group input {
  width: 14px;
  height: 14px;
  accent-color: var(--red);
}

.form-submit {
  margin-top: 100px;
  text-align: center;
}

.form-submit .btn-more {
  min-width: 200px;
  justify-content: center;
}

.thanks-title {
  margin-top: 100px;
  font-weight: 700;
  font-size: 30px;
  line-height: 43px;
  color: var(--red);
}

.thanks-text {
  margin-top: 40px;
  font-weight: 400;
  font-size: 16px;
  line-height: 36px;
}

/* ===== SPメニュー（Figma「SP_menu」「SP_メニュー」準拠。PCでは非表示） ===== */
.sp-burger {
  display: none;
  width: 25px;
  padding: 0;
  flex: none;
}

.sp-burger svg {
  display: block;
}

.works-more-sp {
  display: none;
}

.sp-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: var(--cream);
  z-index: 2000;
  overflow: auto;
  transition: transform 0.3s ease;
}

.sp-menu.open {
  transform: translateX(-100%);
}

.sp-menu-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 7px 14px;
}

.sp-menu-bar .logo img {
  width: 65px;
}

.sp-close {
  width: 25px;
  height: 25px;
  padding: 0;
  flex: none;
}

.sp-close svg {
  display: block;
}

.sp-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 30px 42px 20px;
}

.sp-menu-nav .link {
  font-family: var(--en);
  font-weight: 700;
  font-size: 24px;
  line-height: 36px;
  color: #000;
}

.sp-menu-nav .btn-more {
  font-size: 14px;
  padding: 7px 10px 7px 20px;
}

.sp-menu-nav .btn-more .ext {
  width: 12px;
  height: 12px;
  flex: none;
  border: 2px solid #fff;
  border-radius: 2px;
  position: relative;
}

.sp-menu-nav .btn-more .ext::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -4px;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.sp-menu-legal {
  padding: 20px 42px 40px;
}

.sp-menu-legal p {
  font-size: 10px;
  line-height: 12px;
  margin-top: 10px;
}

.sp-menu-legal p:last-child {
  font-family: var(--en);
  font-weight: 500;
}

.sp-menu-legal a {
  color: inherit;
  text-decoration: none;
}

/* ===== レスポンシブ（タブレット） ===== */
@media (max-width: 1100px) and (min-width: 761px) {
  .header-top {
    padding: 30px 4% 0;
    align-items: center;
  }

  .header-top .logo {
    width: 20%;
  }

  .header-top .logo img {
    width: 100%;
    max-width: 200px;
  }

  .nav-pill {
    width: 60%;
    justify-content: space-between;
    padding: 20px 40px;
    gap: 16px;
  }

  .nav-pill a {
    font-size: 16px;
  }

  .nav-pill .btn-contact {
    font-size: 14px;
    padding: 8px 14px;
    white-space: nowrap;
  }

  .hero {
    flex-direction: column;
    min-height: 0;
    padding-top: 30px;
  }

  .hero-copy {
    margin-left: 0;
  }

  .hero-anim {
    order: -1;
    transform: scale(.8);
    transform-origin: top center;
    margin: 0 auto;
    height: 520px;
  }

  .about-band-inner {
    flex-direction: column;
  }

  .flow-steps {
    flex-wrap: wrap;
  }

  .flow-arrow {
    display: none;
  }

  .estimate-grid {
    flex-wrap: wrap;
  }
}

/* ===== レスポンシブ（SP: Figma *_SPフレーム準拠） ===== */
@media (max-width: 760px) {

  /* ヘッダー: TOP=ロゴ+ハンバーガー / 下層=高さ60pxのバー */
  .header-top {
    padding: 20px;
    align-items: center;
  }

  .header-top .logo img {
    width: 100px;
  }

  .nav-pill,
  .header-bar .nav-links {
    display: none;
  }

  .sp-burger {
    display: flex;
  }

  .header-bar {
    left: 0;
    right: 0;
    top: 0;
    border-radius: 0;
    height: 60px;
    padding: 7px 14px;
  }

  .header-bar .logo img {
    width: 65px;
  }

  /* ヒーロー: 雲が上、コピーが下（TOP_SP準拠） */
  .hero {
    flex-direction: column;
    min-height: 0;
    padding: 10px 20px 0;
    align-items: flex-start;
  }

  .hero-anim {
    order: -1;
    transform-origin: top left;
    height: 360px;
    margin: 0 auto;
  }

  .hero-copy {
    margin-left: 0;
    width: 100%;

  }

  .hero-copy h1 {
    font-size: 24px;
    line-height: 42px;
  }

  .hero-copy .sub {
    margin-top: 10px;
    font-size: 16px;
    line-height: 27px;
  }

  /* About帯（図解はSP専用画像+SP角度のDDに切替） */
  .about-band {
    padding: 50px 0 60px;
    margin-top: 80px;
  }

  .about-band-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .about-diagram-wrap {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .about-diagram.pc,
  .diagram-dd.pc {
    display: none;
  }

  .about-diagram.sp {
    display: block;
    padding: 0 20px;
  }

  .diagram-dd.sp {
    display: block;
  }

  .about-text {
    width: 100%;
  }

  .about-text p {
    font-size: 14px;
    line-height: 38px;
  }

  .btn-more {
    font-size: 14px;
    padding: 7px 10px 7px 20px;
  }

  /* セクション見出し */
  .section {
    margin-top: 80px;
  }

  .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .sec-title {
    font-size: 36px;
    line-height: 54px;
  }

  .sec-quote {
    width: 15px;
    margin-top: 14px;
  }

  .sec-quote.close {
    margin-bottom: 10px;
  }

  .sec-sub {
    font-size: 14px;
    line-height: 17px;
  }

  .sec-head-row {
    align-items: flex-start;
  }

  .sec-head-row>.btn-more {
    display: none;
  }

  .works-more-sp {
    display: flex;
    justify-content: flex-end;
    margin-top: 50px;
  }

  /* Works */
  .works-grid {
    grid-template-columns: 1fr;
    margin-top: 50px;
    row-gap: 50px;
  }

  #top-works .work-card:nth-child(n+4) {
    display: none;
  }

  .work-title {
    font-size: 16px;
    line-height: 26px;
  }

  .work-tags span {
    font-size: 10px;
  }

  /* マーキー */
  .dd-marquee {
    margin-top: 80px;
  }

  .dd-track {
    gap: 30px;
    padding-left: 30px;
  }

  .dd-track svg {
    width: 60px;
    height: 43px;
  }

  /* Flow: アイコン左+テキスト右の横並びカード、矢印は下向き */
  .flow-steps {
    flex-direction: column;
    gap: 10px;
    margin-top: 50px;
  }

  .flow-step {
    width: 100%;
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }

  .flow-icon {
    width: 84px;
    height: auto;
    flex: none;
    justify-content: center;
  }

  .flow-icon img {
    max-height: 76px;
    max-width: 84px;
  }

  .flow-step h3 {
    margin-top: 0;
    text-align: left;
    font-size: 20px;
    line-height: 22px;
  }

  .flow-step p {
    margin-top: 10px;
    font-size: 12px;
    line-height: 22px;
  }

  .flow-text {
    flex: 1;
  }

  .flow-arrow {
    margin: 0 auto;
    flex: none;
  }

  .flow-arrow::after {
    width: 32px;
    height: 26px;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='49' viewBox='0 0 36 49' fill='none'%3E%3Cpath d='M34.44 25.7541C35.5672 24.9571 35.5672 23.2848 34.44 22.4879L3.15454 0.370341C1.82986 -0.56616 2.34904e-06 0.381152 2.27813e-06 2.00345L3.44554e-07 46.2385C2.73641e-07 47.8608 1.82985 48.8081 3.15454 47.8716L34.44 25.7541Z' fill='%23CDBB9F'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    transform: rotate(90deg);
  }

  /* Estimate: 縦積み */
  .estimate-grid {
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
  }

  .estimate-card {
    width: 100%;
    padding: 20px;
  }

  .estimate-icon {
    height: 84px;
  }

  .estimate-icon img {
    max-height: 84px;
  }

  .estimate-card h3 {
    margin-top: 10px;
    font-size: 14px;
    line-height: 20px;
  }

  .estimate-card .price {
    font-size: 20px;
    line-height: 30px;
  }

  .estimate-card .note {
    font-size: 10px;
    line-height: 15px;
  }

  .estimate-card .note br {
    display: none;
  }

  /* フッターCTA（SPフッター準拠: DDくんは右上に表示） */
  .site-cta {
    margin-top: 140px;
  }

  .site-cta .hill {
    padding: 30px 20px 70px;
  }

  .site-cta .hill::before {
    top: -55px;
    height: 112px;
    left: -8%;
    right: -8%;
    /* SP: 丸くなりすぎないよう垂直方向の曲率を抑える */
    border-radius: 50% 50% 0 0 / 50% 50% 0 0;
  }

  .cta-inner {
    margin-top: 0;
  }

  .cta-title-row {
    position: static;
    display: block;
  }

  .cta-dd {
    position: absolute;
    left: calc(58%);
    top: -58px;
  }

  .cta-dd svg {
    width: 88px;
  }

  .cta-title {
    font-size: 20px;
    line-height: 43px;
  }

  .cta-text {
    margin-top: 10px;
    font-size: 12px;
    line-height: 23px;
  }

  /* .cta-text br {
    display: none;
  } */

  .cta-buttons {
    margin-top: 25px;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .btn-white {
    font-size: 14px;
    padding: 7px 10px 7px 20px;
  }

  .site-footer {
    height: auto;
    padding: 13px 20px;
    flex-direction: column;
    gap: 5px;
    align-items: center;
  }

  .site-footer .links,
  .site-footer .copy {
    font-size: 10px;
  }


  /* 改行 */
  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  /* 下層ページ共通 */
  .page-main {
    padding-top: 100px;
  }

  .page-title {
    font-size: 40px;
    line-height: 60px;
  }

  /* Works一覧 */
  .filter-block {
    margin-top: 80px;
  }

  .filter-title {
    text-align: left;
    font-size: 16px;
    line-height: 19px;
  }

  .filter-row {
    margin-top: 14px;
    gap: 10px;
  }

  .filter-row:first-of-type {
    margin-top: 30px;
  }

  .filter-label {
    width: 100%;
    font-size: 14px;
    line-height: 17px;
  }

  .filter-tag {
    font-size: 14px;
    padding: 8px 20px;
  }

  .filter-clear {
    font-size: 14px;
    margin-top: 30px;
  }

  .page-main .works-grid {
    margin-top: 80px;
  }

  .pagination {
    gap: 18px;
    font-size: 20px;
    margin-top: 60px;
  }

  /* 事例詳細 */
  .detail-title {
    font-size: 26px;
    line-height: 36px;
  }

  .detail-tags {
    margin-top: 30px;
  }

  .detail-desc {
    margin-top: 50px;
    font-size: 14px;
    line-height: 26px;
  }

  .carousel {
    margin-top: 30px;
  }

  .carousel-slide {
    width: 90%;
  }

  .carousel-nav {
    width: 20px;
    height: 16px;
  }

  .carousel-nav.prev {
    left: -20px;
    transform: translateY(-50%) scaleX(-1);
  }

  .carousel-nav.next {
    right: -20px;
    transform: translateY(-50%);
  }

  .related-head {
    margin-top: 80px;
    font-size: 24px;
    line-height: 43px;
  }

  /* About */
  .about-sec {
    margin-top: 80px;
  }

  .value-grid {
    flex-direction: column;
    gap: 50px;
    margin-top: 50px;
  }

  .value-grid .illust {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .value-grid h3 {
    font-size: 22px;
    line-height: 26px;
  }

  .value-grid .text p {
    font-size: 14px;
    line-height: 26px;
  }

  .member-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 33px;
    row-gap: 40px;
    margin-top: 50px;
  }

  .member-card .role {
    margin-top: 14px;
    font-size: 12px;
    line-height: 16px;
  }

  .member-card .name {
    margin-top: 6px;
    font-size: 20px;
    line-height: 26px;
  }

  .member-card .bio {
    font-size: 12px;
    line-height: 22px;
  }

  .access-grid {
    flex-direction: column;
    gap: 50px;
    margin-top: 50px;
  }

  .access-info {
    width: 100%;
    font-size: 14px;
    line-height: 26px;
  }

  .access-map iframe {
    height: 260px;
  }

  /* Contact */
  .contact-lead-title {
    margin-top: 80px;
    font-size: 22px;
    line-height: 26px;
  }

  .contact-lead {
    font-size: 14px;
    line-height: 26px;
  }

  .contact-form-head {
    margin-top: 100px;
    font-size: 22px;
    line-height: 26px;
  }

  .contact-form-note {
    font-size: 14px;
    line-height: 24px;
  }

  .required-note {
    margin-top: 30px;
    font-size: 14px;
  }

  .form-field>label {
    font-size: 14px;
  }

  .check-group {
    margin-top: 30px;
  }

  .check-group label {
    font-size: 12px;
  }

  .form-submit {
    margin-top: 80px;
  }

  .form-submit .btn-more {
    min-width: 0;
    padding: 7px 10px 7px 30px;
  }

  .thanks-title {
    margin-top: 60px;
    font-size: 22px;
    line-height: 32px;
  }

  .thanks-text {
    font-size: 14px;
    line-height: 30px;
  }

  /* SP用改行制御 */
  .pc-only {
    display: none;
  }

  .sp-only {
    display: inline;
  }
}

.page-main .mw_wp_form .horizontal-item + .horizontal-item {
  margin-left: 0;
}

/* ===== MW WP Form Error Styles ===== */
.form-field span.error,
.form-field span.mwform-error-message {
  display: block;
  color: #ff0000;
  font-size: 13px;
  margin-top: 6px;
}

.form-field:has(span.error) input,
.form-field:has(span.error) textarea,
.form-field:has(span.mwform-error-message) input,
.form-field:has(span.mwform-error-message) textarea {
  border-bottom-color: #ff0000;
}

/* ===== アンカーリンク遷移時のスクロール位置微調整 (ヘッダーの高さ分の余白) ===== */
#about,
#works,
#flow,
#estimate {
  scroll-margin-top: 130px;
}

@media (max-width: 760px) {
  #about,
  #works,
  #flow,
  #estimate {
    scroll-margin-top: 80px;
  }
}

/* ===== 縦並び表示用のスタイル ===== */
.stacked-images {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.stacked-image-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}