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

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

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;
}

/* =========================
   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;
}

/* =========================
   Service Heading (基準)
   ※ Messageもこの見出しトーンに合わせる
========================= */

.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;
}

.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; /* ← Serviceの文章トーンに統一 */
  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 like sample)
========================= */

.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;
  }
}

/* =========================
   Process (最低限の形だけ付ける)
   ※ ここは次のステップで整える前提
========================= */

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

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

.step-no {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #999;
  margin-top: 6px;
  flex: 0 0 auto;
}

.step-title {
  margin: 0 0 6px;
  font-size: 18px;
}

.step-text {
  margin: 0;
  color: #444;
  line-height: 1.9;
}


.contact-text {
  max-width: 720px;
  color: #444;
  line-height: 1.9;
}

.contact-links {
  margin-top: 24px;
}

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

/* =========================
   Process (center aligned)
========================= */

.process{
  padding: 160px 0;
}

/* 見出し：センター寄せ */
.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;
}

/* 1ステップ */
.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: .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;
}

/* Responsive */
@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;
  }
}

/* =========================
   Process fix (center + title size)
========================= */

/* Processセクション自体を中央基準に */
#process.process{
  padding: 160px 0;
}

/* 見出しブロックは「必ず」センター */
#process .process-head{
  width: 100%;
  max-width: 900px;          /* 見出し全体の幅を制御 */
  margin: 0 auto 56px;       /* これで中央に固定 */
  padding-bottom: 56px;
  border-bottom: 1px solid #e6e6e6;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

/* kicker は共通トーン */
#process .process-head .section-kicker{
  margin: 0;
}

/* タイトルをService/Messageの英字見出しと同格に */
#process .process-head .section-title-en{
  font-size: 72px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

/* タイトルの下の影ライン */
#process .process-head .section-title-en::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  height: 12px;
  background: #e9e9e9;
  z-index: -1;
}

/* リード文も中央 */
#process .process-lead{
  margin: 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 2;
  color: #222;
}

/* ステップ全体を「確実に」中央配置 */
#process .steps{
  max-width: 820px;
  margin: 0 auto;
}

/* スマホ */
@media (max-width: 768px){
  #process.process{ padding: 100px 0; }

  #process .process-head{
    max-width: 100%;
    margin-bottom: 32px;
    padding-bottom: 32px;
  }

  #process .process-head .section-title-en{
    font-size: 48px;
  }

  #process .process-head .section-title-en::after{
    height: 10px;
    bottom: 6px;
  }
}

/* =========================
   Process title underline fix
========================= */

#process .section-title-en{
  position: relative;
  z-index: 1; /* 文字を前に */
}

#process .section-title-en::after{
  z-index: -1;
}

/* =========================
   Works（非公開案内）
========================= */

.works-note{
  max-width: 720px;
  margin: 0 auto;       /* ←これが効く：本文ブロック自体を中央へ */
}

.works-note p{
  font-size: 14px;
  line-height: 2;
  margin: 0 0 24px;
  color:#222;
}

.works-note p:last-child{
  margin-bottom: 0;
}

/* CTA文を軽く強調（Contactへ流す） */
.works-note-cta{
  margin-top: 32px;
  font-weight: 500;
  color: #111;
  position: relative;
}

/* うっすら下線（サイトの統一感） */
.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;
}

/* Works → Contact の導線（ここも中央に寄せる） */
.works-to-contact{
  margin-top: 40px;
  text-align: center;   /* ←導線だけ中央寄せ */
}

.works-to-contact .link-primary,
.works-to-contact .link-secondary{
  display:inline-block;
  margin: 0 12px;
}

/* SP調整 */
@media (max-width: 768px){
  .works-note-cta{
    margin-top: 24px;
  }

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

  .works-to-contact{
    margin-top: 28px;
  }
}

/* =========================
   Works head（center aligned）
========================= */

.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;
}

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


/* =========================
   Title Style Fix（Process / Works：Service/Messageと揃える）
========================= */

/* 英字タイトルを Service-title と同格に */
.section-title-en{
  margin: 0;
  font-size: 72px;
  line-height: 1;
  font-weight: 600;          /* Serviceと合わせる */
  letter-spacing: -0.02em;
  display: inline-block;
  position: relative;
  z-index: 1;
}

/* 下の影（Service-title と同じ表現） */
.section-title-en::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;               /* Service-titleと合わせる */
  width: 100%;
  height: 10px;              /* Service-titleと合わせる */
  background: rgba(0,0,0,0.12);
  z-index: -1;
}

/* Works本文：ブロックは中央、文字組みは左 */
.works-note{
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.works-note p{
  text-align: center;
}

/* Contact統合部：全部センター */
.contact-mini{
  max-width: 820px;
  margin: 40px auto 0;
  text-align: center;
}

.contact-mini-links{
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
/* Contact統合部：文字は左、リンクだけ整える */
.contact-mini{
  max-width: 820px;
  margin: 40px auto 0;       /* Works-noteと同じ幅で中央に */
  text-align: left;
}

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

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

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

/* =========================
   Title Style Fix（Process / Works：Service/Messageと揃える）
========================= */

.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;
}

/* Works本文：中央に置いた左組み */
.works-note{
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

.works-note p{
  text-align: left;
}

/* Contact統合部 */
.contact-mini{
  max-width: 820px;
  margin: 40px auto 0;
  text-align: left;
}

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

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

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

/* =========================
   Service → Process Visual Divider（完成形）
   ・角丸なし
   ・右はベタ付け
   ・左は常に画面20%余白
   ・Serviceに少し重なる
   ・Processとの余白は詰める
========================= */

.section--visual-divider{
  padding: 0;

  /* Serviceとの距離（近すぎ問題を解消） */
  margin-top: 72px;

  /* Processとの距離（空きすぎ問題を解消） */
  margin-bottom: 56px;
}

.visual-divider{
  margin-left: 20vw;
  margin-right: -64px;

  height: 160px;
  overflow: hidden;
  border-radius: 0;
}

.visual-divider img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* スマホ */
@media (max-width: 768px){
  .section--visual-divider{
    margin-top: 48px;
    margin-bottom: 40px;
  }

  .visual-divider{
    margin-left: 20px;
    margin-right: -20px;
    height: 200px;
  }
}

/* =========================
   Visual Divider : FINAL（高さ固定 + 左20%余白 + 右ベタ付け）
========================= */

.section--visual-divider{
  padding: 0 !important;

  /* 上：Serviceと近すぎ → 離す */
  margin-top: 72px !important;

  /* 下：Processと空きすぎ → 詰める */
  margin-bottom: 56px !important;
}

/* containerの右padding(64px)を無視して右端までベタ付けさせる */
.section--visual-divider .visual-divider{
  margin-left: 20vw !important;     /* 左余白は常に画面の20% */
  margin-right: -64px !important;   /* 右をベタ付け（PC） */

  height: 160px !important;         /* ←ここが「半分」 */
  overflow: hidden !important;

  border-radius: 0 !important;
}

/* これがないと「中の画像」が高さに合わせてくれない */
.section--visual-divider .visual-divider img{
  width: 100% !important;
  height: 100% !important;          /* ←強制 */
  object-fit: cover !important;     /* ←縦横比は保ってトリミング */
  display: block !important;
}

@media (max-width: 768px){
  .section--visual-divider{
    margin-top: 48px !important;
    margin-bottom: 40px !important;
  }

  .section--visual-divider .visual-divider{
    margin-left: 20px !important;
    margin-right: -20px !important;

    height: 160px !important; /* スマホも同じ高さにするなら160 */
  }
}

/* =========================
   Visual Divider : 高さがデカく見える問題の最終修正
========================= */

/* section のデフォルト余白を完全に殺す */
.section.section--visual-divider{
  padding: 0 !important;
}

/* Serviceとの距離（上） */
.section--visual-divider{
  margin-top: 72px;
  margin-bottom: 56px;
}

/* 画像ブロック */
.section--visual-divider .visual-divider{
  margin-left: 20vw;
  margin-right: -64px;

  height: 160px;          /* ← 見せたい実寸の高さ */
  overflow: hidden;
  border-radius: 0;
}

/* 中の画像を「枠の高さに合わせてトリミング」 */
.section--visual-divider .visual-divider img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SP */
@media (max-width: 768px){
  .section.section--visual-divider{
    padding: 0 !important;
  }

  .section--visual-divider{
    margin-top: 48px;
    margin-bottom: 40px;
  }

  .section--visual-divider .visual-divider{
    margin-left: 20px;
    margin-right: -20px;
    height: 160px;
  }
}