/*
Theme Name: Nanachika Washing CTA Child
Description: nanachikaテーマの洗濯機・クリーニング関連カテゴリー記事に、PC追従・スマホ固定の問い合わせCTAを追加する子テーマです。
Template: nanachika
Version: 1.1.3
Text Domain: nanachika-washing-cta-child
*/

/* CTA is rendered for washing-machine or selected cleaning-related blog categories. */
.washing-cta,
.washing-cta *,
.washing-cta *::before,
.washing-cta *::after {
  box-sizing: border-box;
}

.washing-cta__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.washing-cta__action {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  min-height: 140px;
  padding: 24px 34px;
  border: 0;
  border-radius: 0;
  color: #101618;
  text-decoration: none;
  transition: filter 160ms ease;
}

.washing-cta__action:hover,
.washing-cta__action:focus-visible {
  color: #101618;
  filter: brightness(0.98);
}

.washing-cta__action:active {
  filter: brightness(0.94);
}

.washing-cta__action--service {
  background: linear-gradient(110deg, #54d68b 0%, #61db97 62%, #4dce83 100%);
}

.washing-cta__action--line {
  background: #ffffff;
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.04);
}

.washing-cta__icon {
  display: inline-flex;
  flex: 0 0 62px;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  overflow: hidden;
}

.washing-cta__icon--line {
  border-radius: 12px;
}

.washing-cta__icon-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.washing-cta__copy {
  display: grid;
  gap: 13px;
  min-width: 0;
}

.washing-cta__copy strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
}

.washing-cta__copy small {
  display: block;
  width: fit-content;
  min-width: 100%;
  padding: 7px 12px;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: #101618;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

@media (min-width: 1024px) {
  .contents.has-service-cta-container {
    overflow: visible !important;
  }

  .page._single.has-service-cta .single._inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 48px;
  }

  .page._single.has-service-cta .single_blog {
    min-width: 0;
  }

  .washing-cta--desktop {
    position: sticky;
    top: 104px;
    display: block;
    align-self: start;
  }

  .washing-cta--desktop .washing-cta__actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .washing-cta--desktop .washing-cta__action {
    min-height: 112px;
    padding: 16px 18px;
    border: 1px solid #d9dde0;
    border-radius: 8px;
    gap: 13px;
  }

  .washing-cta--desktop .washing-cta__icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .washing-cta--desktop .washing-cta__icon--line {
    border-radius: 8px;
  }

  .washing-cta--desktop .washing-cta__copy {
    gap: 7px;
  }

  .washing-cta--desktop .washing-cta__copy strong {
    font-size: 16px;
  }

  .washing-cta--desktop .washing-cta__copy small {
    padding: 4px 7px;
    border-width: 1px;
    font-size: 12px;
  }

  .washing-cta--mobile {
    display: none;
  }
}

@media (max-width: 1023px) {
  .washing-cta--desktop {
    display: none;
  }

  .page._single.has-service-cta {
    padding-bottom: 98px;
  }

  .washing-cta--mobile {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 -4px 16px rgba(31, 66, 94, 0.12);
  }

  .washing-cta--mobile .washing-cta__actions {
    gap: 0;
  }

  .washing-cta--mobile .washing-cta__action {
    gap: 8px;
    min-height: 82px;
    padding: 10px 9px;
    border-radius: 0;
    text-align: left;
  }

  .washing-cta--mobile .washing-cta__icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .washing-cta--mobile .washing-cta__icon--line {
    border-radius: 7px;
  }

  .washing-cta--mobile .washing-cta__copy {
    gap: 5px;
    width: 100%;
  }

  .washing-cta--mobile .washing-cta__copy strong {
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .washing-cta--mobile .washing-cta__copy small {
    padding: 3px 4px;
    border-width: 1px;
    font-size: 9px;
    line-height: 1.1;
  }
}

@media print {
  .washing-cta--mobile {
    display: none !important;
  }
}
/* ナナチカ トップ画面：作業写真の切替メインビジュアル */
.top .fv {
  min-height: 660px;
  height: min(760px, 71vw);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13, 28, 30, .78), rgba(13, 28, 30, .48) 43%, rgba(13, 28, 30, .18) 73%, rgba(13, 28, 30, .35)),
    linear-gradient(0deg, rgba(9, 20, 22, .36), rgba(9, 20, 22, 0) 52%),
    url('https://nanachica.co.jp/wp-content/uploads/2026/08/ひでとくん-10.webp') center / cover no-repeat;
}

.top .fv::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  content: '';
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(13, 28, 30, .78), rgba(13, 28, 30, .48) 43%, rgba(13, 28, 30, .18) 73%, rgba(13, 28, 30, .35)),
    linear-gradient(0deg, rgba(9, 20, 22, .36), rgba(9, 20, 22, 0) 52%),
    url('https://nanachica.co.jp/wp-content/uploads/2026/08/ひでとくん-2.webp') center / cover no-repeat;
  animation: nanachika-hero-fade 11s ease-in-out infinite;
}

.top .fv_img { display: none; }
.top .fv_text { z-index: 2; color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .36); }
.top .fv_text h2 { margin-bottom: 14px; }
.top .fv_text h2 span { padding: 0; color: #fff; background: transparent; }
.top .fv_text p { margin-top: 22px; padding: 17px 20px; border-left: 3px solid #b8ecee; color: #fff; background: rgba(8, 25, 27, .35); }

@keyframes nanachika-hero-fade {
  0%, 42% { opacity: 0; }
  50%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

@media (max-width: 899px) {
  .top .fv { min-height: 620px; height: 76svh; padding-bottom: 0; background-position: 67% center; }
  .top .fv::after {
    background:
      linear-gradient(90deg, rgba(10, 25, 27, .62), rgba(10, 25, 27, .2)),
      linear-gradient(0deg, rgba(8, 20, 22, .82), rgba(8, 20, 22, .25) 67%, rgba(8, 20, 22, .1)),
      url('https://nanachica.co.jp/wp-content/uploads/2026/08/ひでとくん-2.webp') 46% center / cover no-repeat;
  }
  .top .fv_text { position: absolute; right: 22px; bottom: 96px; left: 22px; margin: 0; }
  .top .fv_text h2, .top .fv_text h2 span { width: auto; margin: 0; color: #fff; text-align: left; }
  .top .fv_text h2 { font-size: clamp(31px, 8.7vw, 45px); line-height: 1.31; }
  .top .fv_text p { width: auto; margin: 18px 0 0; padding: 13px 15px; font-size: 12px; line-height: 1.7; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .top .fv::after { animation: none; opacity: 0; }
/* スマホ版トップメインビジュアル：元の読みやすい構成へ戻す */
@media (max-width: 899px) {
  .top .fv {
    height: auto;
    min-height: 0;
    padding-bottom: .8rem;
    background: #fff;
  }

  .top .fv_img {
    display: block;
    height: 50vh;
    background:
      linear-gradient(90deg, rgba(13, 28, 30, .38), rgba(13, 28, 30, .10) 70%),
      url('https://nanachica.co.jp/wp-content/uploads/2026/08/ひでとくん-10.webp') 67% center / cover no-repeat;
  }

  .top .fv_img img {
    width: 100%;
    height: 50vh;
    opacity: 0;
  }

  .top .fv::after {
    inset: 0 auto auto 0;
    width: 100%;
    height: 50vh;
    opacity: 0;
    background:
      linear-gradient(90deg, rgba(13, 28, 30, .38), rgba(13, 28, 30, .10) 70%),
      url('https://nanachica.co.jp/wp-content/uploads/2026/08/ひでとくん-2.webp') 46% center / cover no-repeat;
    animation: nanachika-hero-fade 11s ease-in-out infinite;
  }

  .top .fv_text {
    position: static;
    z-index: auto;
    margin-top: .2rem;
    color: #71b8ba;
    text-align: left;
    text-shadow: none;
  }

  .top .fv_text h2,
  .top .fv_text h2 span {
    width: 90%;
    margin: 0 auto;
    padding: 0;
    color: #71b8ba;
    background: transparent;
    font-size: 0;
    line-height: 1.55;
    text-align: left;
  }

  .top .fv_text h2 span::before {
    display: block;
    content: '洗濯機・エアコン\A 分解清掃＆修理・メンテナンス';
    color: #71b8ba;
    font-size: clamp(18px, 5.5vw, 22px);
    font-weight: 700;
    line-height: 1.55;
    white-space: pre;
  }

  .top .fv_text p {
    width: 90%;
    margin: 0 auto;
    padding: 19px 0;
    border-left: 0;
    color: #71b8ba;
    background: #fff;
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
  }
}/* 直前の prefers-reduced-motion メディアクエリを閉じる */
}

/* スマホ版トップメインビジュアル：写真と文字を上下に分離 */
@media (max-width: 899px) {
  .top .fv {
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible;
    padding-bottom: .8rem;
    background: #fff !important;
  }

  .top .fv_img {
    position: relative;
    display: block !important;
    height: 50svh;
    overflow: hidden;
    background:
      linear-gradient(90deg, rgba(13, 28, 30, .38), rgba(13, 28, 30, .10) 70%),
      url('https://nanachica.co.jp/wp-content/uploads/2026/08/ひでとくん-10.webp') 67% center / cover no-repeat;
  }

  .top .fv_img img {
    display: block;
    width: 100vw;
    height: 50svh;
    object-fit: cover;
    object-position: 67% center;
    opacity: 0;
  }

  .top .fv::after {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    display: block;
    width: 100%;
    height: 50svh;
    opacity: 0;
    background:
      linear-gradient(90deg, rgba(13, 28, 30, .38), rgba(13, 28, 30, .10) 70%),
      url('https://nanachica.co.jp/wp-content/uploads/2026/08/ひでとくん-2.webp') 46% center / cover no-repeat;
    animation: nanachika-hero-fade 11s ease-in-out infinite;
  }

  .top .fv_text {
    position: relative !important;
    z-index: 2 !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    margin: .2rem 0 0 !important;
    color: #71b8ba;
    text-align: left;
    text-shadow: none;
  }

  .top .fv_text h2 {
    width: 90%;
    margin: 0 auto !important;
    padding: 0;
    color: #71b8ba;
    background: transparent;
    line-height: 1.55;
    text-align: left;
  }

  .top .fv_text h2:first-of-type span {
    display: block;
    padding: 0;
    color: transparent !important;
    background: transparent;
    font-size: 0 !important;
  }

  .top .fv_text h2:first-of-type span::before {
    display: block;
    content: '洗濯機・エアコン\A 分解清掃＆修理・メンテナンス';
    color: #71b8ba;
    font-size: clamp(18px, 5.5vw, 22px);
    font-weight: 700;
    line-height: 1.55;
    white-space: pre;
  }

  .top .fv_text h2:nth-of-type(2) {
    display: none !important;
  }

  .top .fv_text p {
    width: 90%;
    margin: 0 auto;
    padding: 19px 0;
    border-left: 0;
    color: #71b8ba;
    background: #fff;
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
  }
}