.webdesign-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ヒーローセクション */
.webdesign-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.webdesign-hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.webdesign-hero-title {
  position: absolute;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.1em;
  margin: 0;
}

/* メインコンテンツラッパー */
.webdesign-content-wrapper {
  max-width: var(--container-width-standard);
  margin: 0 auto;
  padding: 0 2rem;
  flex: 1;
}

/* イントロセクション */
.webdesign-intro {
  text-align: center;
  padding: 4rem 2rem 2rem;
  background-color: #fff;
}

.webdesign-main-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #333;
  line-height: 1.6;
  margin: 0;
  letter-spacing: 0.05em;
}

/* 2カラムセクション */
.webdesign-feature {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  padding: 60px 0;
  align-items: center;
}

.webdesign-feature-image {
  width: 100%;
}

.webdesign-feature-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.webdesign-feature-title {
  font-size: 1.5rem;
}
.webdesign-feature-text {
  line-height: 2;
}

.webdesign-feature-content {
  padding-left: 20px;
}

.webdesign-feature-text:last-child {
  margin-bottom: 0;
}

/* 特徴・機能セクション全体（枠で囲む） */
.webdesign-features-container {
  padding: 50px 40px;
  background-color: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  margin: 40px 0;
}

.features-main-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin: 0 0 40px 0;
}

/* サービス画像（3枚） */
.service-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.service-image-only {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.service-image-only img {
  width: 100%;
  height: auto;
  display: block;
}

/* 機能セクション（枠なし） */
.webdesign-functions {
  padding: 0;
}

.wd-func-header {
  display: flex;
  align-items: center;
  gap: 15px; /* アイコンとタイトルの間隔 */
}

.functions-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.functions-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.function-item {
  padding: 20px 0;
}

.function-icon {
  width: 30px;
  height: 30px;
  margin: 0 0 15px 0;
}

.function-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.function-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px 0;
}

.function-divider {
  height: 3px;
  background: linear-gradient(to right, #666 0%, #666 50%, #ccc 50%, #ccc 100%);
  margin: 1px 0;
}

.function-text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
  margin: 0;
}

/* フローセクション */
.webdesign-flow {
  padding: 60px 0;
  background-color: #fff;
}

.flow-title {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin: 0 0 50px 0;
}

.flow-container {
  max-width: 900px;
  margin: 0 auto;
}

.flow-step {
  display: flex;
  gap: 30px;
  margin-bottom: 0;
}

.flow-cta-button-icon {
  flex-shrink: 0;
  width: 100px;
  position: relative;
  margin-top: 2%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}


.cta-button-icon-number {
  color: #333;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  line-height: 1.4;
}

.flow-content {
  flex: 1;
  padding: 20px 0 40px 0;
}

.flow-step-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
}

.flow-divider {
  height: 2px;
  background-color: #e0e0e0;
  margin: 10px 0 15px 0;
}

.flow-step-text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
  margin: 0;
}

.flow-step-text .highlight {
  color: #4A90E2;
  font-weight: 600;
}

/* CTAボタン */
.webdesign-cta {
  text-align: center;
  padding: 4rem 0;
}

/* ----------------------------------------------------------------------------------- */
/* 親（背景が白で間の白を見せる） */
.step-list {
  width: 260px;
  margin: 40px auto;
  padding: 0;
  list-style: none;
  background: #fff;
  font-family: "Yu Gothic", sans-serif;
  text-align: center;
}

/* 各ステップ */
.gqvexd {
  position: relative;
  height: 80px;
  line-height: 80px;
  margin: 0 auto 22px; /* 三角の高さ分（ここでは22px）だけ余白をとる */
  background-color: #d8d6d4;
  font-weight: 600;
  overflow: visible; /* 擬似要素がはみ出すのを許可 */
}

/* 左右を斜めに見せるための擬似要素（親と同色で伸ばす） */
.gqvexd::before,
.gqvexd::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 40px;                 /* 横幅（調整可） */
  background-color: inherit;   /* 親と同じ色にする */
  z-index: 0;
}

/* 左側 */
.gqvexd::before {
  left: 0;
  transform-origin: bottom left;
  transform: skew(30deg) rotate(30deg);
}

/* 右側 */
.gqvexd::after {
  right: 0;
  transform-origin: bottom right;
  transform: skew(-30deg) rotate(-30deg);
}

/* --- ここで「白い先端（三角）」を中央下に作る --- */
.gqvexd .tip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -22px; /* margin-bottom と合わせる */
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 22px solid #fff; /* ← これが下向きの白い三角 */
  z-index: 2; /* 親より前面に出す */
}

/* 最後の要素は下の三角と余白を消す */
.gqvexd:last-child {
  margin-bottom: 0;
}
.gqvexd:last-child .tip {
  display: none;
}

/* 色サンプル */
.step1 { background-color: #d0cecc; }
.step2 { background-color: #d8d6d4; }
.step3 { background-color: #e0dedc; }
.step4 { background-color: #e8e6e4; }

/* ----------------------------------------------------------------------------------- */

/* レスポンシブ */
@media (max-width: 1024px) {
  .service-images-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .features-grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .functions-grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .functions-grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .webdesign-hero-title {
    font-size: 2rem;
    left: 5%;
  }

  .webdesign-content-wrapper {
    padding: 0 1rem;
  }

  .webdesign-intro {
    padding: 2rem 1rem 1rem;
  }

  .webdesign-main-title {
    font-size: 1.6rem;
  }

  .webdesign-feature {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0;
  }

  .webdesign-feature-content {
    padding-left: 0;
  }

  .webdesign-feature-text {
    font-size: 0.9rem;
  }

  .webdesign-features-container {
    padding: 30px 20px;
    margin: 20px 0;
  }

  .features-main-title {
    font-size: 1.4rem;
    margin-bottom: 30px;
  }

  .function-icon {
    width: 50px;
    height: 50px;
  }

  .function-title {
    font-size: 1.1rem;
  }

  .function-text {
    font-size: 0.85rem;
  }

  .flow-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .flow-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
  }

  .flow-cta-button-icon {
    width: 50px;
    padding: 0;
    margin-top: 0;
  }

  .step-number-image {
    width: 50px;
    height: auto;
  }

  .flow-content {
    flex: 1;
    padding: 0 0 20px 0;
  }

  .flow-step-title {
    font-size: 1rem;
  }

  .flow-step-text {
    font-size: 0.85rem;
  }
  
  .step-number-svg {
    width: 10px;
    height: 10px;
  }

  .step-flow-image {
    width: 10%;
    height: 0px;
  }

  .webdesign-cta {
    padding: 3rem 0;
  }

  .cta-button {
    padding: 1rem 3rem;
    font-size: 1rem;
  }
}
