
/* ========================================
   Creative Service
   制作サービス 3カード
======================================== */

.cs-featured-services {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto 58px;
}

.cs-featured-services,
.cs-featured-services * {
  box-sizing: border-box;
}

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

/* カード全体 */
.cs-feature-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #f1f4f7;
  border-radius: 15px;
}

/* 画像エリア */
.cs-feature-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.cs-feature-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 画像左上の紺色ラベル */
.cs-feature-card__title {
	
  font-weight: 700;	
  position: absolute;
  top: 6px;
  left: 7px;
  padding: 5px 12px;
  border-radius: 5px;
  background: #092f77;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

/* カード下部 */
.cs-feature-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 128px;
  padding: 26px 18px 12px;
}

.cs-feature-card__content p {
  margin: 0;
  color: #333333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

/* 詳しく見る */
.cs-feature-card__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 22px;
  margin: auto 0 0;
  padding-top: 9px;
  text-align: center;
  color: #07357f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.cs-feature-card__link::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
}

.cs-feature-card__link:hover {
  color: #1761ad;
}





/* スマートフォン */
@media (max-width: 620px) {
  /* スマホのbody余白をリセットし、セクション側で左右余白を指定 */
  body {
    margin: 0;
  }

  .cs-featured-services {
    width: calc(100% - 10px);
    margin-bottom: 42px;
  }

  .cs-featured-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* 3枚とも画像の左上端にラベルを揃える（スマホのみ） */
  .cs-feature-card__title {
    font-size: 16px;
    top: 0;
    left: 0;
  }

  .cs-feature-card__content {
    min-height: 122px;
    padding: 20px 16px 12px;
  }

  .cs-feature-card__content p {
    font-size: 16px;
  }

  /* 3カード：スマホ幅で文字と矢印の縦位置を揃える */
  .cs-feature-card__link {
    min-height: 24px;
    padding-top: 0;
    font-size: 16px;
  }

  .cs-feature-card__link::after {
    right: auto;
    left: calc(50% + 65px);
    top: 50%;
    width: 9px;
    height: 9px;
    transform: translateY(-50%) rotate(45deg);
  }
}


.cs-feature-card__title {
  font-family: sans-serif !important;
}

/* 3列表示が狭くなったときのラベル調整 */
@media (min-width: 621px) and (max-width: 900px) {
  .cs-feature-card__title {
    font-size: clamp(12px, 1.85vw, 16px);
    padding: 5px 7px;
    white-space: nowrap;
  }
}



/* ========================================
   Creative Service
   サービス一覧 6カード
======================================== */

/* 外側の細いライン */
.cs-service-catalog {
  position: relative;
  box-sizing: border-box;
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto 38px;
  padding: 20px 12px 23px;
  border: 1px solid #dce3ed;
  border-radius: 10px;
  background: #ffffff;
  font-family: sans-serif;
}

/* 見出し：枠線の上に重ねる */
.cs-service-catalog__heading {
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 12px;
  background: #ffffff;
  white-space: nowrap;
}

.cs-service-catalog__heading h2 {
  margin: 0;
  color: #123c87;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

.cs-service-catalog__heading p {
  margin: 0;
  color: #333333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

/* 6列グリッド */
.cs-service-catalog__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

/* 個別カード */
.cs-service-tile {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-width: 0;
  min-height: 284px;
  padding: 8px;
  border: 1px solid #e8edf3;
  border-radius: 9px;
  background: #ffffff;
}

/* 写真 */
.cs-service-tile__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 17px;
}

.cs-service-tile__visual > img:first-child {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* 写真左下の円形SVGアイコン */
.cs-service-tile__icon {
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 38px;
  height: 38px;
  object-fit: contain;
  z-index: 1;
}

/* カードタイトル */
.cs-service-tile h3 {
  margin: 0 0 9px;
  color: #123c87;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

/* 説明文 */
.cs-service-tile p {
  margin: 0 0 14px;
  color: #333333;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* 詳しく見る */
.cs-service-tile__link {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 24px;
  margin-top: auto;
  padding-right: 16px;
  color: #123c87;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.5;
}

/* 右側の矢印 */
.cs-service-tile__link::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.cs-service-tile__link:hover {
  color: #2764b5;
}

/* ========================================
   レスポンシブ
======================================== */

/* 幅が狭くなると3列 */
@media (max-width: 1100px) {
  .cs-service-catalog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* タブレット・小型画面 */
@media (max-width: 750px) {
  .cs-service-catalog {
    padding-top: 60px;
  }

  .cs-service-catalog__heading {
    top: -16px;
    width: calc(100% - 30px);
    flex-direction: column;
    gap: 0;
    white-space: normal;
    text-align: center;
  }

  .cs-service-catalog__heading h2 {
    font-size: 20px;
  }

  .cs-service-catalog__heading p {
    font-size: 12px;
  }
}

/* スマートフォン */
@media (max-width: 620px) {
  .cs-service-catalog {
    width: calc(100% - 10px);
    padding: 72px 10px 15px;
    border-width: 2px;
  }

  .cs-service-catalog__heading p {
    font-size: 16px;
  }

  .cs-service-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cs-service-tile {
    min-height: 0;
  }

  .cs-service-tile h3 {
    font-size: 15px;
  }

  .cs-service-tile p {
    font-size: 16px;
  }

  .cs-service-tile__link {
    font-size: 16px;
  }

  .cs-service-tile__link::after {
    width: 9px;
    height: 9px;
    top: calc(50% - 1px);
  }
}

/* 小さなスマートフォン */
@media (max-width: 420px) {
  .cs-service-catalog__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 340px) {
  .cs-service-catalog {
    padding-top: 98px;
  }
}


/* ========================================
   サービス一覧：アイコンとリンク位置調整
======================================== */

/* SVGアイコンを10%拡大 */
.cs-service-tile__icon {
  width: 41.8px;
  height: 41.8px;
}

/* 詳しく見るをカード中央に配置 */
.cs-service-tile__link {
  justify-content: center;
  text-align: center;
}

/* 矢印を文字の近くへ */
.cs-service-tile__link::after {
  right: auto;
  left: calc(50% + 45px);
}

/* サービス一覧：狭い画面でも枠線を表示 */
@media (max-width: 750px) {
  .cs-service-catalog__heading {
    width: max-content;
    max-width: calc(100% - 20px);
    box-sizing: border-box;
    padding: 0 10px;
  }
}


/* ========================================
   Creative Service
   こんなシーンにおすすめ
======================================== */

/* ブロック全体 */
.cs-scenes {
  position: relative;
  box-sizing: border-box;
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto 40px;
  padding: 18px 10px 18px;
  background: #f3f5f9;
  border-radius: 9px;
  font-family: sans-serif;
}

.cs-scenes * {
  box-sizing: border-box;
}

/* 上部の見出し */
.cs-scenes__heading {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0 12px;
  background: #ffffff;
  color: #333333;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

/* 6列のカード配置 */
.cs-scenes__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  align-items: stretch;
}

/* 個別カード */
.cs-scenes__card {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border-radius: 7px;
  text-align: center;
}

/* カード画像 */
.cs-scenes__card > img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  border-radius: 7px 7px 0 0;
}

/* 画像下のテキストエリア */
.cs-scenes__content {
  padding: 7px 6px 11px;
}

/* 青いタイトル */
.cs-scenes__content h3 {
  margin: 0;
  color: #123c87;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

/* 説明文 */
.cs-scenes__content p {
  margin: 2px 0 0;
  color: #333333;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

/* ========================================
   レスポンシブ
======================================== */

/* タブレット：3列 */
@media (max-width: 1100px) {
  .cs-scenes__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

/* スマートフォン：2列 */
@media (max-width: 620px) {
  .cs-scenes {
    width: calc(100% - 10px);
    padding: 20px 9px 12px;
    margin-bottom: 35px;
  }

  .cs-scenes__heading {
    font-size: 18px;
  }

  .cs-scenes__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cs-scenes__content h3 {
    font-size: 14px;
  }

  .cs-scenes__content p {
    font-size: 16px;
  }
}

/* 小さなスマートフォン */
@media (max-width: 360px) {
  .cs-scenes__grid {
    grid-template-columns: 1fr;
  }
}

.cs-scenes__heading {
  top: -15px;
  padding: 0;
  background: transparent;
}


/* ========================================
   Creative Service
   選ばれる理由
======================================== */

/* 外側のライン */
.cs-reasons {
  position: relative;
  box-sizing: border-box;
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto 48px;
  padding: 52px 24px 49px;
  background: #ffffff;
  border: 1px solid #cbd9f2;
  border-radius: 8px;
  font-family: sans-serif;
}

.cs-reasons * {
  box-sizing: border-box;
}

/* 枠線の上に重なる見出し */
.cs-reasons__heading {
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0 10px;
  background: #ffffff;
  color: #10377f;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
}

/* 4列グリッド */
.cs-reasons__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 各項目 */
.cs-reasons__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0 16px;
}

/* 4項目の間にある縦ライン */
.cs-reasons__item:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: #d6e0f0;
}

/* アイコンとタイトルの横並び */
.cs-reasons__header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  gap: 10px;
}

/* SVGアイコン */
.cs-reasons__icon {
  display: block;
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  object-fit: contain;
}

/* タイトル */
.cs-reasons__header h3 {
  margin: 0;
  color: #10377f;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
}

/* 説明文 */
.cs-reasons__item p {
  width: 100%;
  margin: 12px 0 0;
  color: #333333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
}

/* ========================================
   レスポンシブ
======================================== */

/* タブレット：2列 */
@media (max-width: 1000px) {
  .cs-reasons {
    padding: 42px 16px 30px;
  }

  .cs-reasons__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
  }

  .cs-reasons__item:nth-child(3)::before {
    display: none;
  }

  .cs-reasons__item:nth-child(n+3) {
    border-top: 1px solid #d6e0f0;
    padding-top: 22px;
  }

  .cs-reasons__item:nth-child(4)::before {
    top: 22px;
  }

  .cs-reasons__header h3 {
    font-size: 16px;
  }
}

/* スマートフォン：1列 */
@media (max-width: 620px) {
  .cs-reasons {
    width: calc(100% - 10px);
    padding: 35px 18px 25px;
  }

  .cs-reasons__heading {
    font-size: 20px;
  }

  .cs-reasons__grid {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .cs-reasons__item {
    padding: 0 8px;
  }

  .cs-reasons__item::before {
    display: none !important;
  }

  .cs-reasons__item:not(:first-child) {
    border-top: 1px solid #d6e0f0;
    padding-top: 20px;
  }

  .cs-reasons__icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .cs-reasons__header {
    min-height: 50px;
  }

  .cs-reasons__header h3 {
    font-size: 16px;
  }

  .cs-reasons__item p {
    font-size: 16px;
    margin-top: 10px;
  }
}

/* ========================================
   Creative Service
   制作実績
======================================== */

.cs-works {
  box-sizing: border-box;
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto 48px;
  font-family: sans-serif;
}

.cs-works * {
  box-sizing: border-box;
}

/* 見出しとボタン */
.cs-works__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

/* 左側：タイトルと説明文 */
.cs-works__heading-group {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 36px;
}

.cs-works__heading-group h2 {
  margin: 0;
  color: #10377f;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.cs-works__heading-group p {
  margin: 0;
  color: #10377f;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

/* すべての実績を見る */
.cs-works__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-shrink: 0;
  min-height: 43px;
  padding: 8px 17px;
  border: 2px solid #10377f;
  border-radius: 999px;
  background: #ffffff;
  color: #10377f;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

/* ボタンの矢印 */
.cs-works__all-arrow {
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.cs-works__all:hover {
  background: #10377f;
  color: #ffffff;
}

/* ========================================
   6枚の実績画像
======================================== */

.cs-works__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

/* 個別画像 */
.cs-works__item {
  position: relative;
  min-width: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 12px;
  background: #eef1f6;
}

/* 写真 */
.cs-works__item > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 写真下部のグラデーション */
.cs-works__item::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.06) 35%,
    rgba(0, 0, 0, 0.58) 100%
  );
  pointer-events: none;
}

/* タイトルと再生アイコン */
.cs-works__overlay {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 5px;
  padding: 8px 9px;
}

/* 白いタイトル */
.cs-works__overlay h3 {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.65);
}

/* 丸い再生アイコン */
.cs-works__play {
  position: relative;
  display: block;
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
}

/* 三角形 */
.cs-works__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #ffffff;
}

/* ========================================
   レスポンシブ
======================================== */

/* タブレット：3列 */
@media (max-width: 1100px) {
  .cs-works__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .cs-works__heading-group {
    gap: 8px 20px;
  }

  .cs-works__heading-group p {
    font-size: 14px;
  }
}

/* スマートフォン：2列 */
@media (max-width: 620px) {
  .cs-works {
    width: calc(100% - 10px);
    margin-bottom: 36px;
  }

  .cs-works__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }

  .cs-works__heading-group {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
  }

  .cs-works__heading-group h2 {
    font-size: 22px;
  }

  .cs-works__heading-group p {
    font-size: 16px;
  }

  .cs-works__all {
    align-self: flex-end;
    min-height: 38px;
    padding: 6px 14px;
    font-size: 14px;
  }

  .cs-works__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cs-works__overlay {
    padding: 6px;
  }

  .cs-works__overlay h3 {
    font-size: 14px;
  }

  .cs-works__play {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .cs-works__play::after {
    border-top-width: 5px;
    border-bottom-width: 5px;
    border-left-width: 7px;
  }
}

/* 小さなスマートフォン */
@media (max-width: 360px) {
  .cs-works__grid {
    grid-template-columns: 1fr;
  }
}


/* ========================================
   Creative Service
   お問い合わせ案内バナー
======================================== */

.cs-contact-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns:
    clamp(145px, 15vw, 215px)
    minmax(0, 1.55fr)
    minmax(0, 0.9fr)
    auto;
  align-items: center;
  column-gap: clamp(12px, 1.5vw, 28px);

  box-sizing: border-box;

  /* 上のブロックより左右を広く */
  width: min(1520px, 100%);

  min-height: clamp(116px, 9.8vw, 146px);
  margin: 0 auto 28px;
  padding: 12px clamp(14px, 2vw, 30px) 15px 0;

  overflow: hidden;
  border-radius: 12px;

  background: #062866
    url("img/creative_footer_background.webp")
    center center / 100% 100% no-repeat;

  color: #ffffff;
  font-family: sans-serif;
}

.cs-contact-banner * {
  box-sizing: border-box;
}

/* 女性 */
.cs-contact-banner__woman {
  position: absolute;
  left: 95px;
  bottom: 0;
  z-index: 1;
  width: auto;
  height: 108%;
  max-width: 24%;
  object-fit: contain;
  object-position: bottom;
}

/* メッセージ */
.cs-contact-banner__message {
  grid-column: 2;
  min-width: 0;
}

.cs-contact-banner__message h2 {
  margin: 0 0 7px;
  color: #ffffff;
  font-size: clamp(15px, 1.5vw, 23px);
  font-weight: 700;
  line-height: 1.4;
}

.cs-contact-banner__message p {
  margin: 0;
  color: #ffffff;
  font-size: clamp(10px, 0.9vw, 13px);
  line-height: 1.6;
}

/* 電話番号 */
.cs-contact-banner__phone {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cs-contact-banner__phone > svg {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  fill: #ffffff;
  stroke: #ffffff;
  stroke-width: 1;
}

.cs-contact-banner__phone-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
}

.cs-contact-banner__phone-text a {
  color: #ffffff;
  font-size: clamp(17px, 1.7vw, 25px);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.cs-contact-banner__phone-text span {
  color: #ffffff;
  font-size: 11px;
  white-space: nowrap;
}

/* お問い合わせボタン */
.cs-contact-banner__button {
  grid-column: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 16px;

  border: 1.5px solid #ffffff;
  border-radius: 999px;

  color: #ffffff;
  background: rgba(0, 25, 80, 0.18);
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.cs-contact-banner__button > svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cs-contact-banner__arrow {
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.cs-contact-banner__button:hover {
  background: #ffffff;
  color: #10377f;
}

/* ========================================
   レスポンシブ
======================================== */

@media (max-width: 850px) {
  .cs-contact-banner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    padding: 22px 18px 20px 155px;
  }

  .cs-contact-banner__woman {
    height: 165px;
    left: 0;
  }

  .cs-contact-banner__message {
    grid-column: 1 / -1;
  }

  .cs-contact-banner__phone {
    grid-column: 1;
  }

  .cs-contact-banner__button {
    grid-column: 2;
    min-height: 42px;
    padding: 8px 12px;
  }

  .cs-contact-banner__message h2 {
    font-size: 18px;
  }

  .cs-contact-banner__message p {
    font-size: 12px;
  }

  .cs-contact-banner__phone-text a {
    font-size: 18px;
  }
}

/* スマートフォン */
@media (max-width: 620px) {
  .cs-contact-banner {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 22px 16px 20px 125px;
    border-radius: 9px;

    background-image:
      linear-gradient(135deg, #06377e, #031b52);
  }

  .cs-contact-banner__woman {
    height: 155px;
    left: -12px;
  }

  .cs-contact-banner__message,
  .cs-contact-banner__phone,
  .cs-contact-banner__button {
    grid-column: 1;
  }

  .cs-contact-banner__message h2 {
    font-size: 16px;
  }

  .cs-contact-banner__phone > svg {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }

  .cs-contact-banner__phone-text a {
    font-size: 17px;
  }

  .cs-contact-banner__phone-text span {
    font-size: 10px;
    white-space: normal;
  }

  .cs-contact-banner__button {
    width: 100%;
    min-height: 40px;
    gap: 6px;
    font-size: 11px;
    padding: 8px;
  }
}



/* =========================================
 Creative Service
 共通フッター CSS 完全版
========================================= */

.csf3-footer {

  /* 調整用 */
  --csf3-title-size: 40px;
  --csf3-button-size: 16px;
  --csf3-blue: #082b70;

  width: min(1400px, calc(100% - 40px));
  margin: 36px auto 0;

  box-sizing: border-box;
  overflow: hidden;

  border-radius: 12px 12px 0 0;

  color: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
}

.csf3-footer,
.csf3-footer * {
  box-sizing: border-box;
}

/* =========================================
 上段：お問い合わせ
========================================= */

.csf3-contact {
  display: grid;

  grid-template-columns:
    clamp(165px, 21%, 230px)
    minmax(0, 1fr)
    clamp(240px, 27%, 285px);

  grid-template-areas:
    "woman message button";

  align-items: center;

  gap: clamp(16px, 2vw, 26px);

  min-height: 200px;
  padding: 0 28px 0 12px;

  background-color: #082b70;
  background-image:
    url("img/contact_banner_bg.webp");

  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;

  border-bottom: 1px solid
    rgba(255,255,255,0.65);
}

/* -----------------------------------------
 女性画像
----------------------------------------- */

.csf3-contact__woman {
  grid-area: woman;

  align-self: end;
  display: flex;
  justify-content: center;
  align-items: flex-end;

  min-width: 0;
}

.csf3-contact__woman img {
  display: block;

  width: 100%;
  height: 200px;

  object-fit: contain;
  object-position: center bottom;
}

/* -----------------------------------------
 中央テキスト
----------------------------------------- */

.csf3-contact__message {
  grid-area: message;

  display: flex;
  flex-direction: column;
  justify-content: center;

  align-self: center;
  min-width: 0;
}

.csf3-contact__message h2 {
  margin: 0 0 12px;

  color: #ffffff;
  font-size: var(--csf3-title-size);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.csf3-contact__message p {
  margin: 0;

  color: #ffffff;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

/* PC幅のみ：お問い合わせ上段とフッターメニューの位置調整 */
@media (min-width: 1101px) {
  /* 女性を現在の位置から右へ20px */
  .csf3-contact__woman img {
    transform: translateX(70px);
  }

  .csf3-contact__message {
    text-align: center;
  }

  /* お問い合わせボタンを左へ15px */
  .csf3-contact__button {
    transform: translateX(-15px);
  }

  /* ホームはそのまま。ご依頼の流れとReaLinkを右へ移動 */
  .csf3-nav__group:nth-child(2) {
    position: relative;
    transform: translateX(15px);
  }

  /* ホーム列とご依頼の流れ列の間に、既存の線と同じ縦線 */
  .csf3-nav__group:nth-child(2)::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.55);
  }

  .csf3-bottom__columns > .csf3-business {
    padding-left: 40px;
  }
}

/* -----------------------------------------
 お問い合わせボタン
----------------------------------------- */

.csf3-contact__button {
  grid-area: button;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 11px;

  width: 100%;
  min-width: 0;
  min-height: 60px;

  padding: 13px 19px;

  border: 1px solid #ffffff;
  border-radius: 999px;

  background: #ffffff;
  color: #082b70;

  text-decoration: none;
  text-align: center;

  font-size: var(--csf3-button-size);
  font-weight: 700;
  line-height: 1.4;
}

.csf3-contact__button svg {
  display: block;
  flex-shrink: 0;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.csf3-contact__mail {
  width: 23px;
  height: 23px;
}

.csf3-contact__arrow {
  width: 17px;
  height: 17px;
  margin-left: auto;
}

.csf3-contact__button:hover {
  background: #eaf3ff;
}

/* =========================================
 下段：フッター本体
========================================= */

.csf3-bottom {
  padding: 30px 32px 64px;

  background-color: #071f58;
  background-image:
    url("img/footer_bg.webp");

  background-position: center bottom;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* -----------------------------------------
 4列レイアウト
----------------------------------------- */

.csf3-bottom__columns {
  display: grid;

  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(0, 1.15fr)
    minmax(0, 1.1fr)
    minmax(0, 1fr);

  align-items: start;
}

.csf3-bottom__columns > * {
  min-width: 0;

  padding: 0 20px;

  border-left: 1px solid
    rgba(255,255,255,0.55);
}

.csf3-bottom__columns > :first-child {
  padding-left: 0;
  border-left: none;
}

/* =========================================
 ロゴと企業理念
========================================= */

.csf3-brand__heading {
  display: flex;
  align-items: center;

  gap: 12px;
  margin-bottom: 12px;
}

/* 正式ロゴ画像 */
.csf3-brand__logo {
  display: block;

  width: 52px;
  height: 52px;
  flex: 0 0 52px;

  object-fit: contain;
}

.csf3-brand__name {
  min-width: 0;
}

.csf3-brand__name strong {
  display: block;

  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.csf3-brand__name span {
  display: block;

  color: #ffffff;
  font-size: 12px;
  line-height: 1.4;
}

/* 企業理念 */
.csf3-brand__text {
  margin: 0 0 0 64px;

  color: #ffffff;
  font-size: 14.67px;
  font-weight: 400;
  line-height: 1.65;

  overflow-wrap: anywhere;
}

/* =========================================
 電話・受付時間・住所
========================================= */

.csf3-info__phone {
  display: flex;
  align-items: center;

  gap: 10px;

  color: #ffffff;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;

  text-decoration: none;
  white-space: nowrap;
}

.csf3-info__phone svg {
  display: block;

  width: 26px;
  height: 26px;
  flex: 0 0 26px;

  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.csf3-info__hours {
  margin: 9px 0 8px 36px;

  color: #ffffff;
  font-size: 13.67px;
  line-height: 1.6;
}

.csf3-info__address {
  margin: 0 0 0 36px;

  color: #ffffff;
  font-size: 14.67px;
  font-style: normal;
  line-height: 1.65;

  overflow-wrap: anywhere;
}

/* =========================================
 サイトメニュー
========================================= */

.csf3-nav {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 14px;
}

.csf3-nav__group,
.csf3-business {
  display: flex;
  flex-direction: column;

  gap: 14px;
}

.csf3-nav a,
.csf3-business a {
  display: block;

  color: #ffffff;
  font-size: 14.67px;
  font-weight: 600;
  line-height: 1.5;

  text-decoration: none;
  overflow-wrap: anywhere;
}

.csf3-bottom a:hover {
  text-decoration: underline;
}

/* =========================================
 コピーライト
========================================= */

.csf3-copyright {
  margin: 30px 0 0;

  color: #ffffff;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

/* =========================================
 タブレット：1100px以下
========================================= */

@media (max-width: 1100px) {

  .csf3-contact {
    grid-template-columns:
      160px minmax(0, 1fr);

    grid-template-areas:
      "woman message"
      "woman button";

    gap: 12px 22px;

    min-height: 0;
    padding: 18px 24px 0 8px;
  }

  .csf3-contact__woman img {
    height: 205px;
  }

  .csf3-contact__message h2 {
    font-size: 24px;
  }

  .csf3-contact__message p {
    font-size: 13px;
  }

  .csf3-contact__button {
    justify-self: start;

    width: min(100%, 290px);
    min-height: 48px;

    margin-bottom: 22px;
    font-size: 14px;
  }

  .csf3-bottom {
    padding: 30px 24px 60px;
  }

  .csf3-bottom__columns {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 28px 0;
  }

  .csf3-bottom__columns > * {
    padding: 0 20px;
  }

  .csf3-bottom__columns > :nth-child(odd) {
    border-left: none;
    padding-left: 0;
  }

  .csf3-bottom__columns > :nth-child(n+3) {
    padding-top: 25px;

    border-top: 1px solid
      rgba(255,255,255,0.35);
  }
}

/* =========================================
 iPad mini 4 横表示（1024×768 CSS px）専用
 PC・スマホ・iPad縦向きの既存指定を維持
========================================= */
@media (min-width: 1023px) and (max-width: 1025px)
       and (orientation: landscape) and (hover: none) and (pointer: coarse) {

  /* 上段：PCと同じく女性・案内・ボタンを横一列にする */
  .csf3-contact {
    /* 文字を1.5倍にしても収まるよう、案内文とボタンを女性の右で2段に */
    grid-template-columns: 225px minmax(0, 1fr);
    grid-template-areas:
      "woman message"
      "woman button";
    gap: 17px 18px;
    min-height: 238px;
    padding: 16px 20px 0 8px;
  }

  /* 女性を囲むボックスを右へ移動。画像への二重移動はしない */
  .csf3-contact__woman {
    transform: translateX(70px);
  }

  .csf3-contact__woman img {
    width: 185px;
    height: 222px;
    transform: none;
  }

  .csf3-contact__message {
    align-self: end;
    text-align: center;
  }

  .csf3-contact__message h2 {
    margin-bottom: 10px;
    font-size: 36px; /* 24px → 1.5倍 */
    white-space: nowrap;
  }

  .csf3-contact__message p {
    font-size: 19.5px; /* 13px → 1.5倍 */
    line-height: 1.5;
    white-space: nowrap;
  }

  .csf3-contact__button {
    justify-self: center;
    align-self: start;
    width: 225px;
    min-height: 50px;
    margin: 0 0 22px;
    padding: 10px 13px;
    gap: 8px;
    font-size: 13px;
    transform: translateY(10px);
  }

  .csf3-contact__mail {
    width: 20px;
    height: 20px;
  }

  .csf3-contact__arrow {
    width: 14px;
    height: 14px;
  }

  /* 下段：PC版に近い企業理念・連絡先・サイトメニュー・事業の一列構成 */
  .csf3-bottom {
    padding: 27px 22px 62px;
  }

  .csf3-bottom__columns {
    grid-template-columns:
      minmax(0, 1.42fr)
      minmax(0, 1.27fr)
      minmax(0, 1.22fr)
      minmax(0, 0.95fr);
    gap: 0;
    align-items: start;
  }

  .csf3-bottom__columns > * {
    position: relative;
    padding: 0 12px;
    border-left: none;
    border-top: none;
  }

  /* 区切り線3本だけ、住所・メニューの最下行付近までに短縮 */
  .csf3-bottom__columns > :not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 96px;
    background: rgba(255,255,255,0.55);
  }

  /* タブレット2列用の奇数列・下段区切りを、この向きだけ解除 */
  .csf3-bottom__columns > :nth-child(odd) {
    padding-left: 12px;
    border-left: none;
  }

  .csf3-bottom__columns > :first-child {
    padding-left: 0;
    border-left: none;
  }

  .csf3-bottom__columns > :nth-child(n+3) {
    padding-top: 0;
    border-top: none;
  }

  .csf3-brand__heading {
    gap: 9px;
    margin-bottom: 10px;
  }

  .csf3-brand__logo {
    width: 47px;
    height: 47px;
    flex-basis: 47px;
  }

  .csf3-brand__name strong {
    font-size: 14px;
    white-space: nowrap;
  }

  .csf3-brand__name span {
    font-size: 11px;
  }

  .csf3-brand__text {
    margin-left: 56px;
    font-size: 12px;
    line-height: 1.55;
  }

  .csf3-info__phone {
    gap: 7px;
    font-size: 18px;
  }

  .csf3-info__phone svg {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .csf3-info__hours {
    margin: 8px 0 6px 29px;
    font-size: 11px;
    white-space: nowrap;
  }

  .csf3-info__address {
    margin-left: 29px;
    font-size: 11.5px;
    line-height: 1.55;
  }

  .csf3-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .csf3-nav__group,
  .csf3-business {
    gap: 12px;
  }

  /* ホームとご依頼の流れの間にも同じ縦線 */
  .csf3-nav__group:nth-child(2) {
    padding-left: 11px;
    border-left: 1px solid rgba(255,255,255,0.55);
  }

  .csf3-nav a,
  .csf3-business a {
    font-size: 12.5px;
    white-space: nowrap;
  }

  .csf3-copyright {
    margin-top: 23px;
  }
}

/* =========================================
 iPad mini 4 縦表示（CSSビューポート768px）
 他の幅・横向きには影響させない
========================================= */
@media (min-width: 767px) and (max-width: 769px) and (orientation: portrait) {
  /* iPad mini 4縦表示：女性画像だけ右へ15px */
  .csf3-contact__woman img {
    transform: translateX(15px);
  }

  /* 見出しはそのまま。説明文のみ見出しの文字幅を目安に中央揃え */
  .csf3-contact__message p {
    width: min(100%, 408px);
    text-align: center;
  }

  /* お問い合わせボタンを、上の説明文（408px幅）の中央に配置 */
  .csf3-contact__button {
    width: min(100%, 260px);
    margin-left: 74px;
  }

  /* メニュー領域の左右に20px */
  .csf3-bottom {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* 上段は2等分、下段は等幅3列 */
  .csf3-bottom__columns {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .csf3-bottom__columns > .csf3-brand {
    grid-column: 1 / span 3;
  }

  .csf3-bottom__columns > .csf3-info {
    grid-column: 4 / span 3;
    /* 左の理念の文章の下端まで中央の縦線を伸ばす */
    align-self: stretch;
  }

  .csf3-bottom__columns > .csf3-nav {
    grid-column: 1 / span 4;
    padding: 25px 0 0;
    border-left: none;
  }

  .csf3-bottom__columns > .csf3-business {
    grid-column: 5 / span 2;
    position: relative;
    padding: 25px 0 0 20px;
    border-left: none;
  }

  .csf3-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  /* ホーム列を上段の企業理念テキストの左端（64px）と揃える */
  .csf3-nav__group:first-child {
    padding-left: 64px;
  }

  .csf3-nav__group:nth-child(2) {
    position: relative;
    padding-left: 20px;
  }

  /* 2本とも上の横線から25px離して、開始位置・太さを統一 */
  .csf3-nav__group:nth-child(2)::before,
  .csf3-business::before {
    content: "";
    position: absolute;
    left: 0;
    width: 1px;
    background: rgba(255,255,255,0.55);
    height: calc(100% - 25px);
  }

  .csf3-nav__group:nth-child(2)::before {
    top: 0;
    height: 100%;
  }

  .csf3-business::before {
    top: 25px;
  }
}

/* =========================================
 スマートフォン横向き：621〜900px／高さ500px以下
 外側余白とお問い合わせエリアのみ調整（縦向き・他の幅は変更しない）
========================================= */

@media (orientation: landscape) and (min-width: 621px) and (max-width: 900px) and (max-height: 500px) {

  /* ページ本体の標準余白を解除し、各セクション側で左右5pxを確保 */
  body {
    margin: 0;
  }

  .cs-featured-services,
  .cs-service-catalog,
  .cs-scenes,
  .cs-reasons,
  .cs-works {
    width: calc(100% - 10px);
  }

  /* 制作実績：見出しと説明文をボタンと同じ高さに（横向きスマホのみ） */
  .cs-works__header {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(0, 2fr) minmax(190px, 1fr);
    align-items: center;
    gap: 0;
  }

  .cs-works__heading-group {
    grid-column: 2;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
  }

  .cs-works__heading-group p {
    font-size: 16px;
  }

  .cs-works__all {
    grid-column: 3;
    justify-self: end;
    align-self: center;
  }

  /* 横向きフッター：先頭列は維持し、2列目だけ左へ30px */
  .csf3-nav {
    column-gap: 40px;
  }

  .csf3-nav__group:first-child {
    margin-left: 64px;
  }

  .csf3-nav__group:nth-child(2) {
    margin-left: 34px;
  }

  /* ReaLink列を上段の住所（左余白20px＋36px）と揃える */
  .csf3-bottom__columns > .csf3-business {
    padding-left: 56px;
  }

  /* フッターだけ左右の余白なし */
  .csf3-footer {
    width: 100%;
  }

  /* 横向きスマホ：iPhone 13で確認した女性画像の位置を維持 */
  .csf3-contact__woman img {
    transform: translateX(50px);
  }

  /* 実機確認に基づき、Android側の横幅でのみさらに50px右へ */
  @media (min-width: 836px) {
    .csf3-contact__woman img {
      transform: translateX(100px);
    }
  }

  /* 見出しと説明文は右側のコンテンツ列で中央揃え */
  .csf3-contact__message {
    text-align: center;
  }

  .csf3-contact__message p {
    font-size: 15px;
  }

  /* ボタンも同じ列の中央へ／文字を2px大きく */
  .csf3-contact__button {
    position: relative;
    justify-self: center;
    font-size: 16px;
  }

  /* メールアイコン＋お問い合わせ文を中央に保ち、矢印だけ右端へ */
  .csf3-contact__button .csf3-contact__arrow {
    position: absolute;
    top: 50%;
    right: 15px;
    margin-left: 0;
    transform: translateY(-50%);
  }
}

/* =========================================
 スマートフォン：620px以下
========================================= */

@media (max-width: 620px) {

  .csf3-footer {
    width: 100%;
    margin-top: 28px;
  }

  .csf3-contact {
    grid-template-columns:
      minmax(85px, 30%)
      minmax(0, 1fr);

    grid-template-areas:
      "woman message";

    gap: 0 10px;

    padding: 18px 16px 0 4px;
  }

  .csf3-contact__woman img {
    height: 165px;
  }

  /* 見出し・説明文をセットで30px上へ移動し、中央揃え */
  .csf3-contact__message {
    transform: translateY(-30px);
    text-align: center;
  }

  .csf3-contact__message h2 {
    margin-bottom: 9px;
    font-size: 18px;
  }

  /* 「お気軽にどうぞ」だけスマホ縦向きで改行 */
  .csf3-contact__mobile-break {
    display: block;
  }

  .csf3-contact__message p {
    font-size: 12px;
    line-height: 1.6;
  }

  /* スマホ縦向き：女性と同じ行に配置し、ボタンの下端を女性より10px上に */
  .csf3-contact__button {
    grid-area: 1 / 1 / 2 / -1;
    align-self: end;
    justify-self: center;
    position: relative;
    left: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 180px);
    min-height: 36px;
    margin-top: 0;
    margin-bottom: 10px;
    padding: 8px 10px;
    font-size: 14px;
  }

  /* 矢印は中央グループから分離し、右端より30px内側へ */
  .csf3-contact__button .csf3-contact__arrow {
    position: absolute;
    top: 50%;
    right: 49px;
    margin-left: 0;
    transform: translateY(-50%);
  }

  .csf3-bottom {
    padding: 28px 20px 60px;
    /* スマホ縦向きだけ、低くなめらかな水色の波に差し替え */
    background-image: url("img/footer_mobile_wave.webp");
  }

  .csf3-bottom__columns {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1.7fr);
    gap: 0;
    padding-left: 30px;
  }

  /* 会社情報の2段は全幅のまま、下のリンク3列のみ横並び */
  .csf3-bottom__columns > .csf3-brand,
  .csf3-bottom__columns > .csf3-info {
    grid-column: 1 / -1;
  }

  /* 住所の下に、上段と同じ全幅・太さの横線を設ける */
  .csf3-bottom__columns > .csf3-info {
    border-bottom: 1px solid rgba(255,255,255,0.35);
  }

  .csf3-bottom__columns > .csf3-nav {
    grid-column: 1 / 3;
  }

  .csf3-bottom__columns > .csf3-business {
    grid-column: 3;
    margin-left: 0;
    transform: translateX(30px); /* ReaLink列と区切り線を前回より10px右へ */
  }

  .csf3-bottom__columns > *,
  .csf3-bottom__columns > :nth-child(odd) {
    padding: 22px 0;

    border-left: none;
    border-top: 1px solid
      rgba(255,255,255,0.35);
  }

  .csf3-bottom__columns > :first-child {
    padding-top: 0;
    border-top: none;
  }

  /* メニュー列の分断された上線は削除し、住所下の1本線に統一 */
  .csf3-bottom__columns > .csf3-nav,
  .csf3-bottom__columns > .csf3-business {
    border-top: none;
  }

  /* スマートフォン：ロゴ画像だけ5px上へ（文字はそのまま） */
  .csf3-brand__logo {
    transform: translateY(-5px);
  }

  .csf3-brand__text {
    margin-left: 0;
  }

  .csf3-info__hours,
  .csf3-info__address {
    margin-left: 0;
  }

  .csf3-nav {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    gap: 6px;
  }

  /* 中央列の文字のみ5px右へ、区切り線の位置を維持 */
  .csf3-nav__group:nth-child(2) {
    position: relative;
    transform: translateX(15px);
  }

  .csf3-business {
    position: relative;
  }

  /* 両方の区切り線は同じ長さ・太さで表示 */
  .csf3-nav__group:nth-child(2)::before,
  .csf3-business::before {
    content: "";
    position: absolute;
    top: 0;
    height: 91px;
    left: -8px;
    width: 1px;
    background: rgba(255,255,255,0.48);
  }

  /* 中央列の区切り線は動かさず、右列の線は文字と一緒に移動 */
  .csf3-nav__group:nth-child(2)::before {
    left: -23px;
  }

  .csf3-business::before {
    top: 22px;
  }

  .csf3-nav a,
  .csf3-business a {
    font-size: 14px;
  }

  /* 欧文だけ小さく見えるReaLinkを、和文メニューと視覚上の高さに揃える */
  .csf3-business a:first-child {
    font-size: 16px;
    line-height: 21px;
  }

  .csf3-copyright {
    margin-top: 18px;
    font-size: 10px;
  }
}

/* =========================================
 小型スマートフォン：400px以下
========================================= */

@media (max-width: 400px) {

  .csf3-contact {
    grid-template-columns:
      85px minmax(0, 1fr);

    gap: 0 9px;
    padding: 15px 12px 0;
  }

  /* 400px以下も現在の位置からさらに20px右へ */
  .csf3-contact__button {
    left: 60px;
  }

  .csf3-contact__woman img {
    height: 140px;
  }

  .csf3-contact__message h2 {
    font-size: 16px;
  }

  .csf3-contact__message p {
    font-size: 11px;
  }

  .csf3-contact__button {
    font-size: 12px;
  }

  .csf3-brand__name strong {
    font-size: 15px;
  }

  .csf3-info__phone {
    font-size: 19px;
  }
}







/* ========================================
   TOPページ限定：ホバー色・PC版3カードの矢印
   共通フッターと既存レスポンシブ設定は変更しない
======================================== */
@media (hover: hover) and (pointer: fine) {
  body.cs-top-page a[href]:hover {
    color: #e60012 !important;
  }

  /* 既存のボタンは赤背景・白文字で視認性を維持 */
  body.cs-top-page .ca-header__contact:hover,
  body.cs-top-page .cs-top-actions a:hover,
  body.cs-top-page .cs-works__all:hover,
  body.cs-top-page .cs-contact-banner__button:hover,
  body.cs-top-page .csf3-contact__button:hover {
    background: #e60012 !important;
    border-color: #e60012 !important;
    color: #ffffff !important;
    filter: none;
  }

  body.cs-top-page .csf3-info__phone:hover svg {
    stroke: currentColor;
  }

  body.cs-top-page .ca-header__toggle:hover span {
    background-color: #e60012;
  }
}

/* PC幅のみ：3カードの矢印を「詳しく見る」の近くに揃える */
@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
  body.cs-top-page .cs-feature-card__link::after {
    right: auto;
    left: calc(50% + 65px);
  }
}
