/* =============================================================
   〔会社名〕 コーポレートサイト  共通スタイル（ボルドー版）
   -------------------------------------------------------------
   色・フォントはすべてこの :root で一括管理しています。
   ブランドカラーを変えたいときはここの値だけ書き換えればOK。
   別パターン(暗色/クラシック)は assets/css/theme-*.css を参照。
   ============================================================= */

:root {
  /* --- 色（コーポレートカラー：ボルドー） ------------------- */
  --ink:        #2A1D20;  /* 見出し・主要テキスト（温かみのある黒） */
  --ink-soft:   #4A3A3D;  /* 本文                                 */
  --muted:      #837173;  /* 補足テキスト                         */
  --paper:      #F8F5F3;  /* ページ背景（温かい白）               */
  --surface:    #FFFFFF;  /* カード等の面                         */
  --line:       #E8DEDD;  /* 罫線・境界                           */
  --accent:     #7B1E2D;  /* ボルドー：ブランドの主役色           */
  --accent-ink: #5E1622;  /* 明るい背景に乗せる濃いボルドー       */
  --accent-bg:  #F4E8EA;  /* ボルドーの淡い面                     */
  --accent-on-dark: #E3A7AF; /* 暗い面に乗せるローズ              */
  --accent-gd:  #b8860b;  /* ゴールド：艶匠ブランドカラー     */
  --signal:     #9A8589;  /* 旧数値の取り消し線など（控えめ）     */
  
  /* --- 文字 -------------------------------------------------- */
  --font-display: "Noto Sans JP", sans-serif;
  --font-body:    "Noto Sans JP", sans-serif;
  --font-mono:    "Roboto Mono", monospace;

  /* --- 余白・形 ---------------------------------------------- */
  --wrap:   1396px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(42,29,32,.05), 0 16px 44px -24px rgba(42,29,32,.34);
}

/* ---------- リセット ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; font-family: var(--font-body); color: var(--ink-soft);
  background: var(--paper); line-height: 1.85; font-size: 16px; letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.sticky-footer-layout {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.sticky-footer-layout > #common_footer {
  margin-top: auto;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.4; margin: 0; font-weight: 700; }
p { margin: 0; }

/* ---------- 共通レイアウト --------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 116px); }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }
.section--ink  { background: var(--ink); color: #D8C9CC; }
.section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink); display: inline-flex; align-items: center; gap: .6em; margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block; }
.section--ink .eyebrow { color: var(--accent-on-dark); }
.section--ink .eyebrow::before { background: var(--accent-on-dark); }

.section-head { max-width: 810px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(1.55rem, 3.4vw, 2.4rem); letter-spacing: .01em; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 1.02rem; }
.section--ink .section-head p { color: #B9A6AA; }

.backimg { background-image: url("../../assets/images/backimg.webp");background-size: cover;}

/* ---------- ボタン ----------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: .55em; font-family: var(--font-display); font-weight: 700; font-size: .95rem; padding: 14px 26px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(123,30,45,.85); }
.btn--primary:hover { background: var(--accent-ink); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--ghost:hover {background:var(--accent-bg); border-color: var(--accent-ink); color: var(--accent-ink); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--accent-ink); }
.btn--light:hover { background:var(--accent-bg);transform: translateY(-2px); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- ヘッダー --------------------------------------- */
.logo { display: inline-flex; align-items: baseline; gap: .5em; font-family: var(--font-display); font-weight: 900; color: var(--ink); font-size: 1.18rem; letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: .92rem; color: var(--ink-soft); font-weight: 500; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--accent); transition: width .2s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s ease, opacity .2s ease; }

@media (min-width: 768px) and (max-width: 1279px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 4px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 18px var(--gutter) 26px; align-items: stretch; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .22s ease, opacity .22s ease; }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 12px; justify-content: center; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 4px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 18px var(--gutter) 26px; align-items: stretch; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .22s ease, opacity .22s ease; }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 12px; justify-content: center; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- 共通ヘッダー・フッター --------------------------- */
#header {
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  height: 80px;
  background-color: #F8F5F3;
  box-shadow: rgba(0, 0, 0, .25) 0 0 6px 2px;
}
#header #logo {
  width: auto;
  height: 78px;
  margin: 1px 0 1px 10px;
}
#header a {
  color: #000;
  font-weight: 700;
  text-decoration: none;
}
#header ul {
  list-style: none;
}
#header .hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  margin-top: 27px;
  margin-right: 5vw;
}
#header .hamburger span {
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: .3s;
}
#header .hamburger.active span {
  margin: 2px 0;
}
#header .hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#header .hamburger.active span:nth-child(2) {
  opacity: 0;
}
#header .hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
#header .mobile-menu {
  display: none;
}
#header .mobile-menu.active {
  display: block;
  position: fixed;
  width: 100%;
  height: 300px;
  margin-top: 80px;
  background-color: rgba(255, 255, 255, .9);
  color: #000;
  font-size: 18px;
  transition: width .3s ease;
  z-index: 9999;
}
#header .mobile-menu.active ul {
  height: 100%;
  padding-left: 5vw;
  padding-right: 5vw;
}
#header .mobile-menu.active li {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #000;
}
#header .mobile-menu.active li a {
  display: block;
  padding-left: 5vw;
  color: #000;
  font-weight: 700;
}

#common_footer footer {
  background-color: #333;

}
#common_footer footer p {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin: 0 auto;
}
#common_footer #footer a {
  color: #747474;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
#common_footer #footer_about {
  color: #fff;
}
#common_footer #footer_about h3 {
  color: #fff;
}
#common_footer #footer_about p {
  text-align: left;
  margin-bottom: 5px;
}
#common_footer .footer_common {
  color: #333;
}
#common_footer .footer_common li {
  margin-bottom: 8px;
}
#common_footer #page_top {
  position: fixed;
  right: 2vw;
  bottom: 2vw;
  background: #000;
  opacity: .8;
}
#common_footer #page_top::before {
  content: "";
  width: 25px;
  height: 25px;
  border-top: 5px solid #fff;
  border-left: 5px solid #fff;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

@media (min-width: 1280px) {
  #header .hamburger,
  #header .mobile-menu {
    display: none;
  }
  #header ul {
    display: flex;
    height: 80px;
    align-items: center;
    margin: 1px 0 0 0;
    padding-right: 120px;
  }
  #header ul li {
    padding-right: 30px;
  }
  #common_footer footer {
    height: 300px;
    padding:16px 0 16px 0;

  }
  #common_footer footer p {
    max-width: 800px;
    padding: 0;
  }
  #common_footer #footer {
    display: flex;
    justify-content: left;
    height: 243px;
    line-height: 2;
  }
  #common_footer .footer_nav_wrapper {
    display: flex;
    justify-content: left;
  }
  #common_footer #footer_about {
    width: 40vw;
  }
  #common_footer #footer_about h3 {
    padding-left: 50px;
    margin-block: 1em;
  }
  #common_footer #footer_about p {
    padding-left: 100px;
  }
  #common_footer .footer_common {
    width: 16vw;
  }
  #common_footer #page_top {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 40px;
  }
  #header .default-menu {
    display: none;
  }
  #header #logo {
    width: auto;
    height: 60px;
    margin: 10px 0 0 10px;
  }
  #header .hamburger span {
    width: 30px;
  }
  #common_footer footer {
    height: 556px;
    padding: 16px 0 16px 0;
  }
  #common_footer footer p {
    font-size: 14px;
  }
  #common_footer #footer {
    display: block;
    height: 502px;
  }
  #common_footer #footer a {
    font-size: 14px;
  }
  #common_footer .footer_nav_wrapper {
    margin-bottom: 20px;
  }
  #common_footer #footer_about {
    width: 80vw;
  }
  #common_footer #footer_about h3 {
    padding-left: 35px;
    padding-block: 1em;
  }
  #common_footer #footer_about p {
    width: 75vw;
    padding-left: 70px;
  }
  #common_footer .footer_common {
    width: 28vw;
    margin-left: 5vw;
  }
  #common_footer .footer_common li {
    width: 75vw;
  }
  #common_footer #page_top {
    width: 50px;
    height: 50px;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  body {
    padding-top: 20px;
  }
  #header .default-menu {
    display: none;
  }
  #header #logo {
    width: auto;
    height: 70px;
    margin: 5px 0 0 10px;
  }
  #header .hamburger span {
    width: 40px;
  }
  #common_footer footer {
    height: 412px;
    padding: 16px 0 16px 0;
  }
  #common_footer footer p {
    font-size: 14px;
  }
  #common_footer #footer {
    display: block;
    height: 358px;
  }
  #common_footer #footer a {
    font-size: 14px;
  }
  #common_footer .footer_nav_wrapper {
    display: flex;
    justify-content: left;
    margin-left: 5vw;
  }
  #common_footer #footer_about {
    width: 80vw;
  }
  #common_footer #footer_about h3 {
    padding-left: 50px;
    padding-block: 1em;
  }
  #common_footer #footer_about p {
    padding-left: 100px;
  }
  #common_footer .footer_common {
    width: 33vw;
  }
  #common_footer #page_top {
    width: 60px;
    height: 60px;
  }
}

/* ---------- Policy Pages ----------------------------------- */
.policy-layout {
  display: flex;
  flex-direction: column;
}
.content-title {
    margin-top: 172px;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}

.content-title h1 {
    margin-top: 0px;
    width: 91vw;
    height: 50px;
    text-align: center;
}

.pp-sec {
  margin-top: 75px;
  line-height: 2.0;
}
.pp-sec p,
.pp-sec ul {
  text-align: left;
}
.pp-title {
  margin-bottom: 30px;
  padding-bottom: 15px;
  text-align: left;
  border-bottom: 2px solid #800020;
}
.pp-r {
  text-align: right;
}
.pp-sec-mark {
  list-style-type: disc;
}
.pp-sec ul li::marker {
  font-size: 10px;
}
.pp-sec a {
  transition: color .25s ease;
}
.pp-sec a:hover {
  color: #ff0000;
}
#pp-no-m {
  margin-top: 0;
}
.asf-tb {
  text-align: left;
}
.policy--footer { 

  margin-bottom: 116px;

}

@media (min-width: 1280px) {
  .pp-sec p,
  .pp-sec ul {
    margin-left: 25vw;
    margin-right: 25vw;
  }
  .pp-title {
    margin-left: 24vw;
    margin-right: 24vw;
  }
  .pp-r {
    margin-right: 26vw;
  }
  .asf-tb {
    margin-left: 25vw;
    margin-right: 25vw;
  }
  .asf-top {
    margin-top: 10px;
  }
  .asf-bottom {
    margin-top: 70px;
    margin-bottom: 20px;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .content-title {
    margin-top: 120px;
  }
  .pp-sec p,
  .pp-sec ul {
    margin-left: 10vw;
    margin-right: 10vw;
  }
  .pp-title {
    margin-left: 9vw;
    margin-right: 9vw;
  }
  .pp-r {
    margin-right: 11vw;
  }
  .asf-tb {
    margin-left: 10vw;
    margin-right: 10vw;
  }
  .asf-top {
    margin-top: 10px;
  }
  .asf-bottom {
    margin-top: 70px;
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  .content-title {
    margin-top: 90px;
  }
  .pp-sec p,
  .pp-sec ul {
    margin-left: 7vw;
    margin-right: 7vw;
  }
  .pp-title {
    margin-left: 6vw;
    margin-right: 6vw;
  }
  .pp-r {
    margin-right: 8vw;
  }
  .asf-tb {
    margin-left: 6vw;
    margin-right: 6vw;
  }
  .asf-top {
    margin-top: 30px;
  }
  .asf-bottom {
    margin-top: 70px;
    margin-bottom: 20px;
  }
}

/* ---------- HERO ------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(620px 320px at 88% -8%, rgba(123,30,45,.10), transparent 70%), linear-gradient(180deg, #fff 0%, var(--paper) 100%); z-index: -1; }
.hero__grid { display: grid; grid-template-columns: 1.16fr .98fr; gap: clamp(32px, 5vw, 60px); align-items: center; padding-block: clamp(56px, 8vw, 92px); }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.25rem); line-height: 1.32; letter-spacing: .005em; }
.hero h1 .hl { color: var(--accent-ink); }
.hero__lead { margin-top: 24px; font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--ink-soft); max-width: 30em; }
.hero__cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: .82rem; color: var(--muted); font-family: var(--font-mono); }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 11 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero__header-padding { padding-top: 172px }
@media (min-width: 768px) and (max-width: 1279px) { .hero__grid { grid-template-columns: 1fr; } .hero__header-padding { padding-top: 120px }}
@media (max-width: 767px) { .hero__grid { grid-template-columns: 1fr; } .hero__header-padding { padding-top: 90px }}

/* before/after カード（実績ページのフラッグシップで使用） */
.casestudies-feature-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.transform-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 3vw, 34px); }
.transform-card__label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.transform-row { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.tr-key { flex: 1; }
.tr-key .tr-cap { font-size: .8rem; color: var(--muted); }
.tr-before .tr-num { font-family: var(--font-mono); font-size: clamp(1.4rem,3vw,2rem); font-weight: 500; color: var(--signal); text-decoration: line-through; text-decoration-thickness: 2px; }
.tr-after .tr-num { font-family: var(--font-mono); font-size: clamp(2.4rem,6vw,3.6rem); font-weight: 500; color: var(--accent-ink); line-height: 1; }
.tr-after .tr-unit { font-size: 1rem; color: var(--accent-ink); margin-left: 4px; }
.tr-arrow { color: var(--accent); font-size: 1.4rem; }
.transform-card__divider { height: 1px; background: var(--line); margin: 20px 0; }
.transform-card__foot { font-size: .86rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.transform-card__foot .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: none; }
@media (max-width: 767px) {
  .casestudies-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 共感ストリップ --------------------------------- */
.pain-strip { background: var(--surface); border-block: 1px solid var(--line); }
.pain-strip__inner { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; padding-block: 26px; }
.pain-strip__lead { font-family: var(--font-display); font-weight: 700; color: var(--ink); white-space: nowrap; }
.pain-chip { font-size: .9rem; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }

/* ---------- 横長イメージバンド ----------------------------- */
.band { overflow: hidden; }
.band img { width: 100%; height: clamp(200px, 30vw, 380px); object-fit: cover; border-radius: var(--radius); }

/* ---------- 3本柱（強み） ---------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.pillar__no { font-family: var(--font-mono); font-size: .78rem; color: var(--accent-ink); letter-spacing: .12em; }
.pillar h3 { font-size: 1.18rem; margin: 12px 0 12px; }
.pillar p { font-size: .95rem; color: var(--muted); }
@media (min-width: 768px) and (max-width: 1279px) { .pillars { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- サービス --------------------------------------- */
.svc-list { display: grid; gap: 18px; }
.svc { display: grid; grid-template-columns: 56px 1fr auto; gap: 22px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; transition: border-color .2s ease, transform .2s ease; }
.svc__ico { width: 52px; height: 52px; border-radius: 12px; background: var(--accent-bg); display: grid; place-items: center; color: var(--accent-ink); }
.svc__ico svg { width: 26px; height: 26px; }
.svc h3 { font-size: 1.16rem; }
.svc p { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.svc__tag { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; white-space: nowrap; align-self: center; }
.svc--muted { background: var(--paper); }
.svc--muted .svc__ico { background: #EFE7E6; color: var(--muted); }
@media (max-width: 767px) { .svc { grid-template-columns: 48px 1fr; } .svc__tag { grid-column: 2; justify-self: start; margin-top: 6px; } }

/* ---------- 実績 ------------------------------------------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.case__thumb { width: 100%; height: 168px; object-fit: cover; }
.case__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.case__cat { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; color: var(--accent-ink); text-transform: uppercase; }
.case h3 { font-size: 1.12rem; margin: 10px 0 12px; }
.case p { color: var(--muted); font-size: .93rem; }
.case__metric { font-family: var(--font-mono); font-weight: 500; font-size: 1.5rem; color: var(--accent-ink); margin-top: auto; padding-top: 18px; line-height: 1.15; }
.case__metric small { font-size: .78rem; color: var(--muted); display: block; font-family: var(--font-body); margin-top: 4px; }
@media (min-width: 768px) and (max-width: 1279px) { .cases { grid-template-columns: 1fr; } .case__thumb { height: 430px;  }}
@media (max-width: 767px) { .cases { grid-template-columns: 1fr; } }

/* 担当領域グリッド（実績ページ：大手メーカーでの業務） */
.scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scope { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 22px; }
.scope h4 { font-size: 1rem; color: var(--ink); margin-bottom: 8px; }
.scope p { font-size: .88rem; color: var(--muted); }
@media (max-width: 767px) { .scope-grid { grid-template-columns: 1fr; } }

/* ---------- 流れ（4ステップ） ------------------------------ */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flow__step { position: relative; padding: 28px 22px 28px 22px;border:1px solid var(--line); border-radius: var(--radius);}
.flow__step:not(:last-child)::after { content: ""; position: absolute; top: 40px; right: 16px; width: 8px; height: 8px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
.flow__no { font-family: var(--font-mono); font-size: .9rem; color: var(--accent-ink); letter-spacing: .1em; }
.flow__step h3 { font-size: 1.08rem; margin: 14px 0 10px; }
.flow__step p { font-size: .9rem; color: var(--muted); }
@media (min-width: 768px) and (max-width: 1279px) { .flow { grid-template-columns: 1fr 1fr; } .flow__step::after { display: none; } }
@media (max-width: 767px) { .flow { grid-template-columns: 1fr; } .flow__step::after { display: none; } }

/* ---------- プロダクト（艶匠Web） -------------------------- */
.product { display: grid; grid-template-columns: 103fr 100fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.product__badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; color: var(--accent-on-dark); border: 1px solid rgba(227,167,175,.4); border-radius: 999px; padding: 6px 14px; }
.product h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 22px 0 18px; }
.product p { color: #B9A6AA; }
.product__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.14); }
@media (max-width: 767px) { .product { grid-template-columns: 1fr; } }

/* ---------- CTA 帯 ----------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.cta-band p { color: var(--muted); margin: 18px auto 32px; max-width: 48em; }
.cta-band__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- フッター --------------------------------------- */
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 767px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 下層ページ見出し ------------------------------- */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(48px, 7vw, 84px); padding-top: 172px; }
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
.page-hero p { margin-top: 16px; color: var(--muted); max-width: 40em; }
.crumb { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; color: var(--muted); margin-bottom: 18px; text-transform: uppercase; }
.crumb a:hover { color: var(--accent-ink); }
@media (min-width: 768px) and (max-width: 1279px) { .page-hero { padding-top: 120px; } }
@media (max-width: 767px) { .page-hero { padding-top: 90px; } }

/* ---------- about 図版 ------------------------------------- */
.about-message-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  margin-bottom: 80px;
}
.about-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-prose {
  margin-right: 170px;
}
.about-prose--message {
  align-self: stretch;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}
.about-prose--message .about-prose-CEO-message {
  grid-row: 2;
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  justify-self: end;
}
.about-prose-profile {
  grid-row: 3;
  align-self: end;
  justify-self: end;
}
.about-prose-profile p {
  margin: 0;
}
.about-prose-title {
  font-size: 16px;
}
.about-prose-name {
  font-size: 23px;
}

@media (min-width: 768px) and (max-width: 1279px) { 
  .about-message-grid {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }
  .about-prose--message {
    grid-template-rows: 1fr 77px; 
  }
  .about-message-grid .about-prose {
    order: 2;
    margin-right: 0;
  }
  .about-message-grid .about-figure {
    order: 1;
  }
  .about-prose--message .about-prose-CEO-message {
    grid-row: 1;
    font-size: 32px;
    justify-self: start;
    margin-left: 5%;
  }
  .about-prose-profile {
    grid-row: 2;
    margin-right: 10%;
  }
}

@media (max-width: 767px) {
  .about-message-grid {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }
  .about-prose--message {
    grid-template-rows: 1fr 90px; 
  }
  .about-message-grid .about-prose {
    order: 2;
    margin-right: 0;
  }
  .about-message-grid .about-figure {
    order: 1;
  }
  .about-prose--message .about-prose-CEO-message {
    grid-row: 1;
    font-size: 24px;
    justify-self: start;
  }
  .about-prose-profile {
    grid-row: 2;
  }
  .about-prose-name {
  font-size: 22px;
  }
}

/* ---------- 会社概要テーブル ------------------------------- */
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; padding: 18px 4px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .96rem; }
.spec th { width: 200px; font-family: var(--font-display); color: var(--ink); font-weight: 700; }
.spec td { color: var(--ink-soft); }
@media (max-width: 767px) { .spec th, .spec td { display: block; width: 100%; } .spec th { border-bottom: 0; padding-bottom: 4px; } .spec td { padding-top: 4px; } }

/* ---------- フォーム --------------------------------------- */
.google-map { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
.google-map iframe { display: block; width: 100%; height: clamp(300px, 42vw, 460px); filter: grayscale(100%); }

.form { display: grid; gap: 22px; max-width: 640px; }
.form input, .form textarea, .form select { font-family: var(--font-body); font-size: 1rem; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-soft); }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form .note { font-size: .82rem; color: var(--muted); }

/* ---------- Contact Page ----------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-layout--single {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}
.contact-layout--single .contact-side {
  position: static;
}
.contact-margintop {
  margin-top: 56px;
}
.contact-margintop-complete {
  margin-top: 122px;
}
.contact-panel {
  padding: 0;
}
.contact-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 30px;
  position: sticky;
  top: 104px;
  box-shadow: 0 18px 50px -36px rgba(55, 35, 39, .45);
}
.contact-page .content-title {
  display: block;
  margin: 0 0 24px;
}
.contact-page .content-title h1 {
  width: auto;
  height: auto;
  text-align: left;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}
.contact-page .contents {
  text-align: left;
}
.contact-page .summary-container {
  margin: 0;
}
.contact-page .base-container {
  background: transparent;
}
.contact-page .contact-us-info-container,
.contact-page .contact-us-info-check-container {
  background: transparent;
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 18px 0;
}
.contact-page .contact-us-info-container {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.contact-page .contact-us-info-title {
  width: auto;
  padding: 0;
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.contact-page .contact-us-info-title br {
  display: block;
}
.contact-page .contact-us-info-input,
.contact-page .contact-us-info-output {
  padding: 0;
  text-align: left;
}
.contact-page .contact-us-info-output {
  word-break: break-word;
  overflow-wrap: break-word;
}
.contact-page input[type="text"],
.contact-page input[type="email"],
.contact-page textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
}
.contact-page textarea {
  min-height: 150px;
}
.contact-page ::placeholder {
  color: #999;
}
.contact-page input:focus,
.contact-page textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.contact-page input.error,
.contact-page textarea.error {
  border-color: #ff0000;
  background: rgb(255, 218, 218);
}
.contact-page input[disabled],
.contact-page textarea[disabled] {
  background-color: #f0f0f0;
  border-color: #ccc;
}
.contact-page .error-message {
  display: block;
  color: #ff0000;
}
.contact-page .contact-us-info-check-container {
  padding-left: 0;
}
.contact-page .contact-us-info-check {
  min-width: 0;
  width: auto;
  padding-left: 0;
  font-size: .95rem;
}
.contact-page input[type=checkbox] {
  display: none;
}
.contact-page .subscribe {
  box-sizing: border-box;
  cursor: pointer;
  display: inline-block;
  padding: 5px 30px;
  position: relative;
  width: auto;
}
.contact-page .subscribe::before {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  content: "";
  display: block;
  height: 16px;
  left: 5px;
  margin-top: -8px;
  position: absolute;
  top: 50%;
  width: 16px;
}
.contact-page .subscribe::after {
  border-right: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  content: "";
  display: block;
  height: 20px;
  left: 7px;
  margin-top: -16px;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: rotate(45deg);
  width: 9px;
}
.contact-page input[type=checkbox]:checked + .subscribe::before {
  border-color: #666;
}
.contact-page input[type=checkbox]:checked + .subscribe::after {
  opacity: 1;
}
.contact-page .required {
  color: red;
  padding: 2px;
  font-weight: bolder;
  font-size: 13px;
}
.contact-page .recaptcha-area {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}
.contact-page .local-turnstile {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  min-height: 74px;
  padding: 16px;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  background-color: #fafafa;
  box-sizing: border-box;
  cursor: pointer;
}
.contact-page .local-turnstile-checkbox {
  width: 26px;
  height: 26px;
  margin: 0;
  flex: 0 0 auto;
}
.contact-page .privacy-policy {
  display: block;
  margin: 24px 0 0;
}
.contact-page .privacy-policy p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}
.contact-page .button-container {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}
.contact-page .button-container-double {
  margin-left: 0;
  margin-right: 0;
  gap: 18px;
}
.contact-page .base-button-style {
  width: auto;
  min-width: 190px;
  height: auto;
  padding: 14px 26px;
  border-radius: 999px;
  color: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-block;
  transition: background-color .3s, border-color .3s, color .3s, transform .15s ease;
  box-shadow: 0 10px 24px -12px rgba(123,30,45,.85);
  font-size: 16px;
}
.contact-page .forward-button,
.contact-page .forward-button:disabled {
  background: var(--accent);
}
.contact-page .forward-button:hover {
  background: var(--accent-ink);
}
.contact-page .back-button,
.contact-page .back-button:disabled {
  background: #9A8589;
}
.contact-page .back-button:not(:disabled):hover {
  background: #725a5e;
  border-color: #9A8589;
}
.contact-page .contact-input-error {
  margin: 0 0 20px;
  font-size: 1rem;
  color: #ff0000;
  text-align: left;
}
.contact-page .thanks-text {
  margin-top: 30px;
  text-align: center;
}
.contact-side h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.contact-side__list {
  margin: 0;
}
.contact-side__list dt {
  color: var(--muted);
  font-size: .94rem;
  margin-bottom: 6px;
}
.contact-side__list dd {
  margin: 0 0 20px;
  color: var(--ink-soft);
}
.contact-side__list dd:last-child {
  margin-bottom: 0;
}
.contact-side__list a {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}
@media (min-width: 768px) and (max-width: 1279px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-side {
    position: static;
  }
}
@media (max-width: 767px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-side {
    position: static;
  }
}
@media (max-width: 767px) {
  .contact-side {
    border-radius: var(--radius-sm);
    padding: 22px;
  }
  .contact-page .contact-us-info-container {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .contact-page .contact-us-info-title br {
    display: none;
  }
  .contact-page .button-container-double {
    flex-direction: column-reverse;
    align-items: center;
  }
}

/* ---------- スクロール表示・フォーカス --------------------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0ms); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
/* 画像はフェード＋わずかに上へ（環境を選ばない確実な方式） */
.reveal-img { opacity: 0; transform: translateY(22px) scale(1.02); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0ms); }
.reveal-img.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img { opacity: 1; transform: none; transition: none; }
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- ユーティリティ --------------------------------- */
.lead-list { display: grid; gap: 16px; margin-top: 22px; }
.lead-list li { list-style: none; display: flex; gap: 12px; color: var(--ink-soft); font-size: .98rem; }
.lead-list .check { color: var(--accent); flex: none; margin-top: 4px; }
.prose p + p { margin-top: 18px; }
.prose { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.section--ink .prose {
  color: #B9A6AA;
}
.section--ink .prose strong {
  color: #fff;
}
.section--ink .prose a {
  color: var(--accent-on-dark);
}

/* ---------- アイコン（強み・流れ・担当領域に追加） --------- */
.pillar__ico, .flow__ico, .scope__ico {
  width: 46px; height: 46px; border-radius: 11px; background: var(--accent-bg);
  display: grid; place-items: center; color: var(--accent-ink); margin-bottom: 16px;
}
.pillar__ico svg, .flow__ico svg, .scope__ico svg { width: 24px; height: 24px; }
.flow__ico { width: 42px; height: 42px; margin-bottom: 14px; }
.scope__ico { width: 40px; height: 40px; border-radius: 9px; margin-bottom: 12px; }

/* ---------- 見出しウェイト強化（Noto Sans JP 900/800で“ドカン”） --------- */
.hero h1 { font-weight: 900; }
.section-head h2, .page-hero h1, .cta-band h2, .product h2 { font-weight: 800; }
.logo { font-weight: 900; }

/* ---------- マーキー（共感ストリップの流れる動き） --------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee-scroll 30s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- 見出しの行ごとせり上がり（マスク表示） --------- */
.reveal-lines .ln { display: block; overflow: hidden; }
.reveal-lines .ln__i { display: block; transform: translateY(112%); transition: transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--li, 0) * 0.09s); }
.reveal-lines.in .ln__i { transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-lines .ln__i { transform: none; transition: none; } }

/* ---------- ローディング演出 ------------------------------- */
#preloader { position: fixed; inset: 0; z-index: 999; background: var(--ink); display: grid; place-items: center; transition: opacity .6s ease, visibility .6s ease; }
#preloader.done { opacity: 0; visibility: hidden; }
#preloader .pl-logo { font-family: var(--font-display); font-weight: 900; color: #fff; font-size: 1.6rem; letter-spacing: .04em; display: flex; align-items: center; gap: .5em; }
#preloader .pl-logo .dot { color: var(--accent-on-dark); animation: pl-pulse 1s ease-in-out infinite; }
#preloader .pl-bar { width: 140px; height: 2px; background: rgba(255,255,255,.18); margin: 18px auto 0; overflow: hidden; border-radius: 2px;}
#preloader .pl-bar i { display: block; height: 100%; width: 40%; background: var(--accent-on-dark); animation: pl-load 1.1s ease-in-out infinite; }
@keyframes pl-pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes pl-load { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }
@media (prefers-reduced-motion: reduce) { #preloader .pl-logo .dot, #preloader .pl-bar i { animation: none; } }

/* ---------- HEROスクロール誘導 ----------------------------- */
.scroll-cue { position: relative; left: 50%; bottom: 22px; transform: translateX(-50%); font-family: var(--font-mono); font-size: .64rem; letter-spacing: .2em; color: var(--muted); text-align: center; }
.scroll-cue .line { display: block; width: 1px; height: 40px; background: var(--line); margin: 8px auto 0; position: relative; overflow: hidden; }
.scroll-cue .line::after { content: ""; position: absolute; left: 0; top: -40px; width: 100%; height: 40px; background: var(--accent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { top: -40px; } 60%,100% { top: 40px; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .line::after { animation: none; } }

/* ---------- 大きめ英字セクションラベル --------------------- */
.section-head .eyebrow { font-size: .78rem; }
