/* =========================
   Base / Reset
========================= */

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

html,
body {
  overflow-x: hidden; /* 横はみ出し防止 */
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Arial, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.7;
  position: relative; /* Safari保険 */
}

/* =========================
   Layout
========================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

.section {
  padding: 160px 0;
}

.section--soft {
  background: #f7f7f7;
}

@media (max-width: 768px) {
  .section {
    padding: 100px 0;
  }
}

/* =========================
   Header
========================= */

.header {
  border-bottom: 1px solid #e5e5e5;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.05em;
}

.nav a {
  margin-left: 24px;
  text-decoration: none;
  color: #111;
  font-size: 14px;
}

/* =========================
   Hero
========================= */

.hero {
  padding: 120px 0 160px;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  color: #777;
}

.hero-title {
  font-size: 48px;
  line-height: 1.4;
  font-weight: 600;
  margin: 0 0 32px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 34px;
  }
}

.hero-text {
  font-size: 16px;
  line-height: 1.9;
  max-width: 640px;
  margin: 0 0 22px;
  color: #444;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.9;
  max-width: 640px;
  margin: 0 0 40px;
  color: #111;
}

.hero-links a {
  margin-right: 24px;
  text-decoration: none;
  font-size: 14px;
}

.link-primary {
  color: #111;
  font-weight: 500;
  border-bottom: 1px solid #111;
}

.link-secondary {
  color: #666;
  border-bottom: 1px solid #ddd;
}

/* =========================
   Hero Background
========================= */

.hero--bg {
  position: relative;
  overflow: hidden;
}

.hero--bg .hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero_pc.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero--bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.hero--bg .container {
  position: relative;
  z-index: 2;
}

/* =========================
   Typography
========================= */

h2.section-title {
  font-size: 32px;
  margin: 0 0 32px;
}

h3 {
  font-size: 18px;
  margin: 48px 0 8px;
}

p {
  margin: 0 0 16px;
}

ul {
  padding-left: 18px;
}

li {
  margin-bottom: 8px;
}

/* =========================
   Section Title（英字見出し共通）
========================= */

.section-title-en {
  margin: 0;
  font-size: 72px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.section-title-en::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.12);
  z-index: -1;
}

@media (max-width: 1024px) {
  .section-title-en {
    font-size: 60px;
  }
}

@media (max-width: 768px) {
  .section-title-en {
    font-size: 48px;
  }
}

/* =========================
   Service Heading（基準）
========================= */

.service-head,
.message-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid #e6e6e6;
  margin-bottom: 56px;
}

.service-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #9a9a9a;
}

.service-title {
  margin: 0;
  font-size: 72px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.service-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.12);
  z-index: -1;
}

.service-lead,
.message-lead {
  margin: 22px 0 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 2;
  color: #222;
}

@media (max-width: 1024px) {
  .service-head,
  .message-head {
    flex-direction: column;
  }

  .service-lead,
  .message-lead {
    max-width: 720px;
    margin-top: 0;
  }

  .service-title {
    font-size: 60px;
  }
}

@media (max-width: 768px) {
  .service-head,
  .message-head {
    padding-bottom: 32px;
    margin-bottom: 32px;
  }

  .service-title {
    font-size: 48px;
  }
}

/* =========================
   Message
========================= */

.message-body {
  max-width: 720px;
}

.message-body p {
  font-size: 14px;
  line-height: 2;
  margin: 0 0 32px;
  color: #222;
}

.message-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .message-body p {
    font-size: 15px;
    line-height: 1.9;
  }
}

/* =========================
   Service（3 columns）
========================= */

.service {
  position: relative;
  overflow: hidden;
}

.service::after {
  content: "";
  position: absolute;
  top: 0;
  right: -120px;
  width: 52%;
  height: 100%;
  background: rgba(0, 0, 0, 0.03);
  transform: skewX(-12deg);
  transform-origin: top;
  pointer-events: none;
}

.service .container {
  position: relative;
  z-index: 1;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.service-card {
  padding-top: 10px;
}

.service-no {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #b5b5b5;
}

.service-name {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.5;
}

.service-desc {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 2;
  color: #333;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.service-list li {
  position: relative;
  padding-left: 1.2em;
  font-size: 14px;
  line-height: 1.8;
  color: #222;
  margin: 0;
}

.service-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: #999;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .service::after {
    display: none;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* =========================
   Visual Divider（B案：少しだけ重ねる）
   - グレー(上) → 白(下)の境界に “少しだけ” 乗せる
   - PC：左20%余白／右ベタ付け
   - SP：左右20px
========================= */

:root {
  --divider-h: 160px;
  --divider-overlap: 56px; /* ← 重ねたい量（PC） */
}

/* グレー帯（Serviceの直後） */
.section--visual-divider {
  background: #f7f7f7;
  padding: 0 0 var(--divider-overlap); /* ←グレー側に“受け”を作る */
  margin: 0;                            /* 変な隙間を作らない */
  position: relative;
  z-index: 2;
}

/* 画像本体：下に overlap 分だけはみ出す */
.section--visual-divider .visual-divider {
  width: calc(100vw - 20vw); /* 左20%空けて右ベタ */
  margin-left: 20vw;
  height: var(--divider-h);
  overflow: hidden;

  margin-bottom: calc(var(--divider-overlap) * -1); /* ←これが白側への重なり */
}

.section--visual-divider picture,
.section--visual-divider img {
  width: 100%;
  height: 100%;
  display: block;
}

.section--visual-divider img {
  object-fit: cover;
  object-position: 50% 50%;
}

/* Process側：重なり分だけ “上余白を減らす” */
.process {
  padding-top: calc(160px - var(--divider-overlap));
}

/* ===== SP ===== */
@media (max-width: 768px) {
  :root {
    --divider-h: 150px;
    --divider-overlap: 48px;
  }

  .section--visual-divider {
    padding-bottom: var(--divider-overlap);
  }

  .section--visual-divider .visual-divider {
    width: calc(100vw - 40px);
    margin-left: 20px;
  }

  .section--visual-divider img {
    object-position: 60% 50%;
  }

  .process {
    padding-top: calc(100px - var(--divider-overlap));
  }
}

/* =========================
   Process（center aligned）
========================= */

.process {
  padding: 160px 0; /* ここは通常の余白のまま（重なり分は上の negative margin で吸収） */
}

.process-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding-bottom: 56px;
  border-bottom: 1px solid #e6e6e6;
  margin-bottom: 56px;
}

.process-lead {
  margin: 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 2;
  color: #222;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 820px;
  display: grid;
  gap: 28px;
}

.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.step-no {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #333;
  margin-top: 2px;
}

.step-body {
  text-align: left;
}

.step-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.6;
}

.step-text {
  margin: 0;
  font-size: 14px;
  line-height: 2;
  color: #333;
}

/* =========================
   Works（統合ブロック）
========================= */

.works-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding-bottom: 56px;
  border-bottom: 1px solid #e6e6e6;
  margin-bottom: 56px;
}

.works-lead {
  margin: 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 2;
  color: #222;
}

.works-note {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

#works .works-note p,
#works .contact-mini,
#works .contact-mini-text {
  text-align: center;
}

.works-note-cta {
  margin-top: 32px;
  font-weight: 500;
  color: #111;
  position: relative;
  display: inline-block;
}

.works-note-cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 160px;
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  z-index: -1;
}

.contact-mini {
  max-width: 820px;
  margin: 40px auto 0;
}

.contact-mini-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================
   Footer
========================= */

.footer {
  padding: 40px 0;
  border-top: 1px solid #e5e5e5;
  font-size: 12px;
  color: #777;
}

/* =========================
   Responsive（SP）
========================= */

@media (max-width: 768px) {
  .process {
    padding: 100px 0;
  }

  .process-head {
    padding-bottom: 32px;
    margin-bottom: 32px;
  }

  .steps {
    gap: 20px;
  }

  .step {
    gap: 14px;
  }

  .step-no {
    width: 40px;
    height: 40px;
  }

  .step-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .step-text {
    font-size: 13px;
    line-height: 1.9;
  }

  .works-head {
    padding-bottom: 32px;
    margin-bottom: 32px;
  }

  .works-note-cta::after {
    width: 120px;
    height: 5px;
  }

  /* Visual Divider（SP） */
  :root {
    --divider-h: 150px;
    --divider-overlap: 48px;
  }

  .section--visual-divider .visual-divider {
    width: calc(100vw - 40px);
    margin-left: 20px;
  }

  .section--visual-divider img {
    object-position: 60% 50%; /* ←切り取り位置はここで微調整 */
  }
}

/* =========================
   Contact：お問い合わせボタン（単体・中央）
========================= */

.contact-mini-links{
  justify-content: center;
}

.contact-main-btn{
  display: inline-block;
  padding: 12px 40px;
  font-size: 14px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  border: 1px solid #111;
  transition: background .2s ease, color .2s ease;
}

.contact-main-btn:hover{
  background: #111;
  color: #fff;
}

/* =========================
   Button（お問い合わせ）
========================= */

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid #111;
  color: #111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #111;
  color: #fff;
}