@charset "UTF-8";

/* 実績・事例：7サービスの分類ナビゲーション。 */
.case-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.case-category-nav a {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #075454;
  border-radius: 6px;
  background: #fff;
  color: #075454;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.case-category-nav a[aria-current="page"],
.case-category-nav a:hover {
  background: #075454;
  color: #fff;
}
.case-category-nav a:focus-visible,
.case-card__services a:focus-visible {
  outline: 2px solid #0f7f7f;
  outline-offset: 3px;
}
.case-category-count {
  margin-bottom: 30px;
}
.case-card__services a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sec--case .case-result__text {
  max-width: 100%;
  width: 100%;
}
/*
 * 2026/06 文言再修正に伴うレイアウト調整をまとめたファイル。
 * style02.css の後に読み込まれ、上書きする。
 * 既存ファイルを汚さず、変更点をここに集約して管理する。
 */

/* スマートフォンの施策例：丸アイコンを左上に重ね、本文の横幅を確保する。 */
@media only screen and (max-width: 767px) {
  .sec--service-example__rows,
  .sec--service-example__row {
    gap: 27px;
  }
  .sec--service-example__card {
    position: relative;
    display: block;
    padding: 38px 15px 15px;
  }
  .sec--service-example__icon {
    position: absolute;
    top: -12px;
    left: -10px;
  }
}

/* 創業精神：既存の理念セクションの書式を使い、背景なしで画像を添える。 */
.sec--mission--founding .mission-content {
  background-color: transparent;
  align-items: center;
}
.sec--mission--founding .mission-text {
  min-width: 0;
}
.sec--mission--founding .founding-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media only screen and (min-width: 768px) {
  .sec--mission--founding .mission-content {
    padding-right: 0;
    gap: calc(40 * var(--vwPC));
  }
  .sec--mission--founding .mission-image {
    flex: 0 0 40%;
    height: auto;
  }
  .sec--mission--founding .mission-image picture {
    display: block;
  }
  .sec--mission--founding .founding-photo {
    height: auto;
    object-fit: contain;
  }
}
@media only screen and (max-width: 767px) {
  .sec--mission--founding .mission-content {
    align-items: flex-start;
    gap: calc(30 * var(--vwSP));
  }
}

/* 成果カード下のボタンは全列を使って中央に配置する（サービス6ページ共通）。 */
.sec--service-results__cards > .sec-btn {
  grid-column: 1 / -1;
  justify-self: center;
}

/* 実績の支援内容：Word原稿の文言を表示し、区切りで折り返す。 */
.case-card__services {
  margin: 0;
  color: #0f7f7f;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
}
@media only screen and (max-width: 767px) {
  .case-card__services {
    font-size: 13px;
  }
}

/* TOPの支援内容：PCは中央画像を囲む7枚、SPは既存の1列表示。 */
.sec--support__list--seven > .sec--support__card {
  min-width: 0;
}
.sec--support__card--agentic .sec--support__card__ttl {
  overflow-wrap: anywhere;
}
@media only screen and (min-width: 768px) {
  .sec--support__list--seven {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 32px 20px;
  }
  .sec--support__list--seven > .sec--support__card {
    grid-column: span 2;
  }
  .sec--support__list--seven > .sec--support__card:nth-of-type(4) {
    grid-area: 2 / 1 / 3 / 3;
  }
  .sec--support__list--seven > .sec--support__card:nth-of-type(5) {
    grid-area: 2 / 5 / 3 / 7;
  }
  .sec--support__list--seven > .sec--support__card:nth-of-type(6) {
    grid-area: 3 / 2 / 4 / 4;
  }
  .sec--support__list--seven > .sec--support__card:nth-of-type(7) {
    grid-area: 3 / 4 / 4 / 6;
  }
  .sec--support__list--seven > .sec--support__img-wrapper {
    grid-area: 2 / 3 / 3 / 5;
    width: 100%;
    align-self: center;
  }
  .sec--support__list--seven .sec--support__img {
    width: 100%;
    height: auto;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1100px) {
  .sec--support__list--seven {
    gap: 24px 12px;
  }
  .sec--support__list--seven > .sec--support__card {
    padding: 20px 16px 0;
  }
  .sec--support__list--seven .sec--support__card__ttl {
    font-size: 1.25rem;
  }
  .sec--support__list--seven .sec--support__card__btn {
    margin-right: -16px;
  }
}

/* ===== サービスナビ ショートコード [fractal_service_nav] ===== */
/* 下部表示（pos="bottom" / pos未指定）は上に余白を確保する */
.sec--service-nav--bottom {
  margin-top: 100px;
}
@media only screen and (max-width: 767px) {
  .sec--service-nav--bottom {
    margin-top: 70px;
  }
}

.sec--service-nav__top {
  text-align: center;
  margin-top: 32px;
}
.sec--service-nav__top .sec-btn {
  display: inline-flex;
  max-width: 100%;
}

/* 7番目のサービス追加。PCは7列、スマートフォンは既存と同じ3列。 */
.sec--service-skills__list--seven {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: calc(18 * var(--vwPC));
}
.sec--service-skills__list--seven .sec--service-skills__item {
  width: 100%;
  min-width: 0;
}
.sec--service-skills__list--seven .sec--service-skills__en {
  font-size: calc(17 * var(--vwPC));
}
.sec--service-skills__list--seven .sec--service-skills__jp {
  font-size: calc(11 * var(--vwPC));
  overflow-wrap: anywhere;
}
@media only screen and (max-width: 767px) {
  .sec--service-skills__list--seven {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(24 * var(--vwSP)) calc(10 * var(--vwSP));
  }
  .sec--service-skills__list--seven .sec--service-skills__en {
    font-size: calc(14 * var(--vwSP));
  }
  .sec--service-skills__list--seven .sec--service-skills__jp {
    font-size: calc(11 * var(--vwSP));
  }
  .sec--service-skills__list--seven .sec--service-skills__item:last-child {
    grid-column: 2;
  }
}

/* ===== C2: 導入プロセス／制作フローのステップ番号(01〜04)と見出しの重なり修正 =====
 * SP表示でカード上余白が0のため、左上の番号バッジと中央寄せ見出しが重なっていた。
 * SP時のみ上余白を確保し、見出しをバッジの下へ送る（PCは元から42pxで問題なし）。
 * service / service-writing / service-owned-media など sec--service-process を共通修正。 */
@media only screen and (max-width: 767px) {
  .sec--service-process__step {
    padding-top: 34px;
  }
  .sec--service-process__step-title {
    margin-top: 0;
  }
}

/* 長いサービス名を区切りで改行し、タブレットの工程カードの幅を確保する。 */
.page-template-service-agentic-commerce .hero-title .sp {
  display: block;
}
@media only screen and (max-width: 767px) {
  .page-template-service-agentic-commerce .sec--hero .hero-title {
    font-size: 6vw;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1100px) {
  .page-template-service-agentic-commerce .sec--service-process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}



/* v2.1: 単一フォームをPCでは右列、SPでは導入と連絡先の間に配置。 */
.sec--contact__inner { column-gap: 60px; row-gap: 0; }
.sec--contact__intro { grid-column: 1; grid-row: 1; }
.sec--contact__details { grid-column: 1; grid-row: 2; }
.sec--contact__inner > .sec--contact__form { grid-column: 2; grid-row: 1 / 3; align-self: end; }
@media only screen and (max-width: 767px) {
  .sec--contact__intro, .sec--contact__details,
  .sec--contact__inner > .sec--contact__form { grid-column: 1; grid-row: auto; }
}
