/*
 * Front Page Styles - New Kumehome Theme
 * トップページ専用スタイル
 */

/* ======= トップページ用ヘッダー調整 ======= */
.home .site-header {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.home .site-shell {
  gap: 0 !important;
}

.home #top_fbox {
  margin-bottom: 0 !important;
}

.home .site-content {
  margin-top: 0 !important;
}

@media (max-width: 960px) {
  .home .site-layout {
    padding: 0 !important;
    padding-top: 0 !important;
  }

  /* トップページ：コンテンツを横幅いっぱいに */
  .home #top_fbox {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
  }

  .home .services {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .home .services-list {
    margin-left: 8px !important;
    margin-right: 8px !important;
  }

  /* 物件一覧ウィジェット */
  .home .widget_fudo_top_r {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ======= フロントページヒーロー ======= */
.front-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
}

.front-hero-slideshow {
  position: absolute;
  inset: 0;
}

.front-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.front-hero-slide.is-active {
  opacity: 1;
}

.front-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.front-hero-overlay img {
  max-width: 80%;
  max-height: 60%;
  object-fit: contain;
}

/* レスポンシブ - ヒーロー */
@media (max-width: 768px) {
  .front-hero {
    height: 50vh;
    min-height: 300px;
  }

  .front-hero-overlay img {
    max-width: 90%;
  }
}

/* ======= 事業内容セクション ======= */
.services {
  padding: 24px;
  background: #FEFEFE;
}

.services > .section-title {
  margin-bottom: 36px;
}

/* 共通：セクションタイトルをウィジェットタイトルに揃える */
.services > .section-title.is-lined,
.contact > .section-title.is-lined {
  font-size: var(--font-size-3xl);
  padding-left: 40px;
  padding-right: 30px;
  gap: 24px;
}

.services > .section-title.is-lined::before,
.contact > .section-title.is-lined::before {
  flex-grow: 1;
  width: auto;
  margin-left: 10px;
}

.services > .section-title.is-lined::after,
.contact > .section-title.is-lined::after {
  flex-grow: 1;
  width: auto;
  margin-right: 10px;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0 16px 16px 16px;
  padding: 0;
}

@media (min-width: 768px) {
  .services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

.services-list li {
  position: relative;
  background: #fff;
  border: 1px solid #e2ecf8;
  color: #2f3f4b;
  padding: 16px 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: var(--font-size-md);
  letter-spacing: .05em;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

@media (min-width: 768px) {
  .services-list li {
    width: 180px;
    flex: 0 0 180px;
  }
}

.services-note {
  margin: 24px;
  color: #3e5463;
  font-size: var(--font-size-note);
  line-height: 1.8;
  text-align: center;
}

/* ======= 清掃管理セクション ======= */
.cleaning-management {
    padding: 24px;
    background-color: #eef4fb;
}

.cleaning-management > .section-title {
    margin-bottom: 36px;
}

.cleaning-management > .section-title.is-lined {
    font-size: var(--font-size-3xl);
    padding-left: 40px;
    padding-right: 30px;
    gap: 24px;
}

.cleaning-management .section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

.cleaning-management .section-content p {
    margin-bottom: 0.5em;
    color: #333;
}

/* ======= 空き家・リフォーム相談セクション ======= */
.renovation-consultation {
    padding: 24px;
    background-color: #FEFEFE;
}

.renovation-consultation > .section-title {
    margin-bottom: 36px;
}

.renovation-consultation > .section-title.is-lined {
    font-size: var(--font-size-3xl);
    padding-left: 40px;
    padding-right: 30px;
    gap: 24px;
}

.renovation-consultation .section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

.renovation-consultation .section-content p {
    margin-bottom: 0.5em;
    color: #333;
}

/* ======= お問い合わせセクション ======= */
.contact {
  background: #eef4fb;
  padding: 24px 24px;
  font-family: var(--font-base);
}

.contact > .section-title {
  margin-bottom: 48px;
}

/* お問い合わせカード */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  max-width: 750px;
  margin: 24px auto 0;
}

@media (max-width: 767px) {
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.contact-card {
  background: #fff;
  border: 1px solid #e7eef7;
  border-radius: 16px;
  padding: 34px 10px 30px;
  position: relative;
  box-shadow: 0 10px 24px rgba(0,0,0,.07);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background: linear-gradient(90deg, rgba(140,186,243,.0), rgba(140,186,243,.6), rgba(140,186,243,.0));
}

.contact-card:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
  border-color: #d6e6fb;
}

.card-icon {
  width: auto;
  height: auto;
  margin: 6px auto 10px;
  display: grid;
  place-items: center;
}

.card-icon img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
  border-radius: 16px;
}

.badge {
  position: static;
  margin: 12px auto 10px;
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #005BAC;
  font-weight: 700;
  width: fit-content;
  box-shadow: none;
  letter-spacing: .02em;
  font-size: var(--font-size-badge);
  line-height: 1.2;
}

.badge-call {
  color: #143161;
}

.badge-line {
  color: #11B451;
}

.badge-mail {
  color: #143161;
}

/* CTAボタン */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
  min-width: 80%;
  max-width: 480px;
  margin: 4px auto 0;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  white-space: nowrap;
  font-size: var(--font-size-cta);
}

.cta-call {
  background: #143161;
  color: #fff;
}

.cta-line {
  background: #11B451;
  color: #fff;
}

.cta-mail {
  background: #143161;
  color: #fff;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.14);
  filter: brightness(1.05);
}

.cta:focus-visible {
  outline: 3px solid #8fbaf3;
  outline-offset: 3px;
}

/* お問い合わせ情報 */
.contact-info {
  max-width: 750px;
  margin: 40px auto 0;
  text-align: center;
  padding: 0 20px;
}

.contact-hours-wrapper {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 0 0 8px;
  flex-wrap: wrap;
}

.contact-hours-item {
  color: #3e5463;
  padding: 0;
  font-size: var(--font-size-base);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.02em;
}

.contact-hours-chip {
  background: #e0e6ed;
  color: #3e5463;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #c9d6e4;
  font-size: var(--font-size-xs);
  line-height: 1;
  display: inline-block;
}

.contact-message {
  color: #3e5463;
  font-size: var(--font-size-md);
  line-height: 1.9;
  margin: 0 auto;
  max-width: 600px;
}

.nowrap {
  white-space: nowrap;
}

/* ======= ゲームサムネイル ======= */

/* top_widgets内のゲームウィジェットを非表示（PHPで出力するため） */
#top_fbox .widget_block,
.home .site-main > .widget_block {
  display: none;
}

.game-thumbs {
  padding: 100px 0 100px;
  background: #FEFEFE;
}

.game-thumbs img {
  width: 260px;
  max-width: 48vw;
  height: auto;
  display: block;
  margin: 0 auto;
}

.game-thumbs-inner,
.game-thumbs .wp-block-columns {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.game-thumbs-inner a,
.game-thumbs .wp-block-column {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
}

.game-thumbs .wp-block-image,
.game-thumbs figure {
  margin: 0 !important;
}

/* ======= トップページ用フッター ======= */
.home .site-footer {
  background: #EEF4FB;
  color: #3e5463;
  padding: 40px 24px 25px;
  font-family: var(--font-base);
  border-top: 1px solid #e0e6ed;
}

.footer-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.footer-main {
  margin-bottom: 14px;
}

.footer-company {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: #2c3e50;
  margin: 10px 0 4px;
}

.footer-contact {
  font-size: var(--font-size-sm);
  margin: 6px 0;
  color: #555;
  line-height: 1.4;
}

.footer-contact a {
  color: #1a73e8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: #1557b0;
  text-decoration: underline;
}

.footer-line-link {
  color: #06c755 !important;
  font-weight: 600;
}

.footer-line-link:hover {
  color: #05b04b !important;
}

.footer-address {
  font-size: var(--font-size-xs);
  line-height: 1.4;
  margin: 6px 0;
  color: #7f8c8d;
}

.footer-hours {
  font-size: var(--font-size-xs);
  margin: 4px 0 0;
  color: #7f8c8d;
  line-height: 1.4;
}

.footer-links-section {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px 0 6px;
  flex-wrap: wrap;
}

.footer-link {
  color: #555;
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color 0.2s;
  padding: 0 8px;
  border-right: 1px solid #d0d7de;
}

.footer-link:last-child {
  border-right: none;
}

.footer-link:hover {
  color: #1a73e8;
}

.footer-license {
  font-size: var(--font-size-xs);
  color: #95a5a6;
  margin-top: 12px;
}

/* ======= レスポンシブ（タブレット・モバイル） ======= */
@media (max-width: 960px) {
  /* 清掃管理セクション */
  .cleaning-management {
    padding: 24px 16px;
  }

  /* 空き家・リフォーム相談セクション */
  .renovation-consultation {
    padding: 24px 16px;
  }

  /* 事業内容セクション */
  .services {
    padding: 30px 16px 8px;
  }

  .services > .section-title {
    margin-bottom: 24px;
  }

  /* セクションタイトル：全て統一 */
  .home .section-title.is-lined,
  .home .widget_fudo_top_r > h3 {
    padding-left: 30px !important;
    padding-right: 30px !important;
    gap: 24px;
  }

  .home .section-title.is-lined::before,
  .home .widget_fudo_top_r > h3::before {
    flex-grow: 1;
    width: auto;
    margin-left: 10px;
  }

  .home .section-title.is-lined::after,
  .home .widget_fudo_top_r > h3::after {
    flex-grow: 1;
    width: auto;
    margin-right: 10px;
  }

  .services-list {
    margin: 0 8px 16px;
    gap: 10px;
  }

  .services-note {
    margin: 6px 16px 30px;
    font-size: var(--font-size-base);
  }

  /* お問い合わせセクション */
  .contact {
    padding: 30px 16px 40px;
  }

  .contact > .section-title {
    margin-bottom: 32px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 400px;
  }

  .contact-card {
    padding: 24px 16px 20px;
  }

  .card-icon img {
    width: 72px;
    height: 72px;
  }

  .badge {
    font-size: var(--font-size-xl);
    margin: 10px auto 8px;
  }

  .cta {
    padding: 12px 20px;
    font-size: var(--font-size-base);
    min-width: 90%;
  }

  .contact-info {
    margin-top: 30px;
    padding: 0 10px;
  }

  .contact-hours-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .contact-hours-item {
    font-size: var(--font-size-sm);
  }

  .contact-message {
    font-size: var(--font-size-base);
    line-height: 1.8;
  }

  .contact-message .nowrap {
    white-space: normal;
  }

  /* ゲームサムネイル */
  .game-thumbs {
    padding: 50px 16px;
  }

  .game-thumbs-inner,
  .game-thumbs .wp-block-columns {
    gap: 16px;
  }

  .game-thumbs img {
    width: 200px;
    max-width: 45vw;
  }

  /* トップページ用フッター */
  .home .site-footer {
    padding: 30px 16px 20px;
  }

  .footer-company {
    font-size: var(--font-size-lg);
  }

  .footer-contact {
    font-size: var(--font-size-xs);
  }

  .footer-address,
  .footer-hours {
    font-size: var(--font-size-xs);
  }

  .footer-links-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }

  .footer-link {
    border-right: none;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
  }

  .footer-license {
    font-size: var(--font-size-xs);
    margin-top: 16px;
  }
}

/* ======= さらに小さい画面（スマホ縦向き） ======= */
@media (max-width: 480px) {
  /* セクションタイトル：小型画面用調整 - 全てのタイトルに適用 */
  .home .section-title.is-lined,
  .home .widget_fudo_top_r > h3 {
    padding-left: 16px !important;
    padding-right: 16px !important;
    gap: 12px;
  }

  .services-list {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .services-list li {
    padding: 12px 8px;
    font-size: var(--font-size-base);
  }

  .contact-cards {
    max-width: 100%;
  }

  .card-icon img {
    width: 64px;
    height: 64px;
  }

  .game-thumbs img {
    width: 160px;
  }
}

/* セクション背景色（JS自動割り当て用） */
.section-bg-white { background-color: #FEFEFE !important; }
.section-bg-blue  { background-color: #eef4fb !important; }

/* ======= fudoページでのsite-header padding削除 ======= */
body.single-fudo .site-header,
body.post-type-archive-fudo .site-header {
    padding-top: 0;
    padding-bottom: 0;
}
