/*
Theme Name: 株式会社仲介王 最終完成・完全無欠フル統合Version
Description: 全文章復元・ロゴ透過・実績3列・スマホボタン最適化・許認可統合・History非表示・CF7固定
Version: 134.0
Author: Gemini
*/

/* --- 基本設定 --- */
body {
  font-family: 'Noto Sans JP', sans-serif;
  scroll-behavior: smooth;
  font-style: normal !important;
  color: #1e293b;
  line-height: 1.8;
}
.font-inter { font-family: 'Inter', sans-serif; }

.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid #f1f5f9;
  position: fixed;
  width: 100%;
  top: 0;
  height: 80px;
}

.gradient-text-green {
  background: linear-gradient(135deg, #4d7c0f 0%, #84cc16 50%, #a3e635 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

* { font-style: normal !important; text-transform: none !important; }

/* 内部リンク位置調整 */
section[id] { scroll-margin-top: 100px; }

/* --- 【最重要】回転アニメーション & ロゴ背景透過 --- */
@keyframes slow-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-slow-spin { animation: slow-spin 40s linear infinite !important; }

.hero-visual-container {
  position: relative;
  width: 100%;
  max-width: 650px;
  aspect-ratio: 1;
  isolation: auto !important;
  background: transparent !important;
}

.blend-logo {
  mix-blend-mode: multiply !important;
  width: 85% !important;
  height: auto;
  display: block !important;
  background-color: transparent !important;
  filter: brightness(1.05) contrast(1.05) drop-shadow(0 0 20px rgba(132, 204, 22, 0.1)) !important;
}

/* --- ヒーローボタン：スマホ横並び & サイズ最適化 --- */
.hero-btn-container {
  display: flex !important;
  flex-direction: row !important; /* スマホでも横並びを強制 */
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 1024px) {
  .hero-btn-container { justify-content: flex-start; gap: 2.5rem; }
}

.btn-pill-green {
  background: linear-gradient(135deg, #4d7c0f 0%, #65a30d 100%) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -5px rgba(101, 163, 13, 0.4);
  font-size: 0.85rem !important;
  width: auto !important;
  min-width: 160px;
  text-decoration: none;
}
@media (min-width: 1024px) {
  .btn-pill-green { padding: 1.25rem 3.5rem !important; font-size: 1.1rem !important; min-width: 0; }
}

.btn-text-link {
  font-size: 0.85rem !important;
  font-weight: 900;
  color: #475569;
  text-decoration: none;
}
@media (min-width: 1024px) { .btn-text-link { font-size: 1.1rem !important; } }

/* --- 上場グループ所属ステータス・バナー（緑枠 & 最適化余白） --- */
.group-status-banner { margin: 0 auto 5rem; max-width: 900px; text-align: center; }
.status-badge-wrap {
  display: inline-block;
  background: #ffffff;
  border: 2px solid #84cc16 !important;
  padding: 2.5rem 4rem;
  border-radius: 24px;
  box-shadow: 0 20px 40px -10px rgba(132, 204, 22, 0.1);
  position: relative;
}
.status-badge-wrap::before {
  content: "LIVING TECHNOLOGIES GROUP";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #84cc16;
  color: white;
  padding: 2px 16px;
  font-size: 0.7rem;
  font-weight: 900;
  border-radius: 99px;
  letter-spacing: 0.1em;
}
.status-badge-wrap p {
  font-size: 1.25rem;
  font-weight: 900;
  color: #1e293b;
  margin: 0;
  line-height: 1.5;
}
.market-info {
  display: block;
  margin-top: 0.75rem;
  color: #65a30d;
  font-size: 0.95rem;
  font-weight: 800;
}

/* --- 2026告知バッジ --- */
.launch-badge {
  display: inline-block !important;
  background: linear-gradient(135deg, #84cc16 0%, #4d7c0f 100%) !important;
  color: #ffffff !important;
  padding: 6px 20px !important;
  border-radius: 9999px !important;
  font-size: 0.85rem !important;
  font-weight: 900 !important;
  margin-bottom: 1.5rem !important;
  letter-spacing: 0.15em !important;
  box-shadow: 0 4px 15px rgba(132, 204, 22, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* --- システム実績：PC 3列グリッド修復（省略なし） --- */
.service-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .service-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 3rem; }
}
.service-card {
  text-align: center;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100%;
}
.service-image-box {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8fafc;
}
.service-image-box img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}
.service-text-jp {
  font-size: 1rem;
  font-weight: 800;
  color: #334155;
  line-height: 1.7;
  display: block !important;
  width: 100%;
}
.highlight-text {
  font-weight: 900;
  color: #1e293b;
  display: block;
  margin: 0.2rem 0;
  font-size: 1.1rem;
}

/* --- 採用セクション・アクセント --- */
.recruit-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 48px;
  padding: 3.5rem;
  text-decoration: none;
  display: block;
}
.recruit-card .job-type-badge {
  font-size: 1.2rem;
  font-weight: 900;
  color: #a3e635 !important;
  border: 2px solid #a3e635 !important;
  padding: 4px 15px;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: inline-block;
}
.recruit-card .link-text-green { color: #84cc16 !important; font-weight: 900; }
.recruit-card .link-text-purple { color: #a855f7 !important; font-weight: 900; }

/* --- Contact Form 7 スタイル完全固定 --- */
.custom-form .wpcf7-form-control:not([type="submit"]):not([type="checkbox"]) {
  width: 100% !important;
  padding: 1.25rem !important;
  border: 2px solid #cbd5e1 !important;
  border-radius: 0.75rem !important;
  background: #ffffff !important;
  margin-bottom: 0.5rem !important;
}
.custom-form input.wpcf7-submit {
  display: block !important;
  margin: 2.5rem auto 0 !important;
  background: linear-gradient(135deg, #4d7c0f 0%, #65a30d 100%) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 1.3rem !important;
  width: 100% !important;
  max-width: 450px !important;
  height: 5.5rem !important;
  border-radius: 1.5rem !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 15px 30px -10px rgba(101, 163, 13, 0.5) !important;
}
.wpcf7-not-valid-tip {
  color: #ef4444 !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  margin-top: 0.5rem !important;
  display: block !important;
  text-align: left;
}
.wpcf7-response-output {
  margin: 2rem 0 0 !important;
  padding: 1.5rem !important;
  border: 3px solid #ef4444 !important;
  color: #ef4444 !important;
  border-radius: 1rem !important;
  font-weight: 900 !important;
  background: #fff5f5 !important;
}

/* 固定ページ・コンテナ */
.fixed-page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 140px 24px 100px;
  text-align: left;
}
.prose { max-width: none !important; }


/* スマホだけ：PC用を消してスマホ用（2行）を出す */
@media (max-width: 640px){
  .hero-pc { display: none !important; }
  .hero-sp { display: block !important; }

  /* 重要：インライン font-size:4.7rem をスマホだけ強制上書き */
  .hero-mesh h1{
    font-size: clamp(2.4rem, 9vw, 3.1rem) !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
  }

  /* 2行目（緑）は1行固定＆画面内に収める */
  .hero-mesh h1 .hero-sp-line2{
    font-size: clamp(2.7rem, 10vw, 3.4rem) !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    letter-spacing: 0 !important;
  }

  /* iPhoneでグラデが滲む/よれるならスマホだけ単色（任意：効きが強い） */
  .hero-mesh h1 .hero-sp-line2.gradient-text-green{
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: #84cc16 !important;
  }
}


/* iPhone幅では2行を「必ず」成立させる */
@media (max-width: 480px){
  .hero-sp-line1{
    font-size: clamp(2.2rem, 8.6vw, 2.8rem) !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important; /* 1行目を絶対1行に */
  }
  .hero-sp-line2{
    font-size: clamp(2.6rem, 10.6vw, 3.3rem) !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important; /* 2行目を絶対1行に */
  }
}

/* --- 認定アイコン（Certification Badges）の調整 --- */

/* 会社概要の表内のアイコン枠 */
.certification-badge-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.certification-badge-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* レスポンシブ調整：画面幅が狭い時は表の中で縦並びにならないよう最小幅を確保 */
@media (max-width: 1279px) {
    .certification-badge-item {
        padding: 6px;
    }
    .certification-badge-item img {
        height: 50px;
    }
}

/* フッター用：通常は少し薄く、ホバーで鮮明に */
footer .certification-badge-item {
    border: none;
    box-shadow: none;
    background: transparent;
    opacity: 0.7;
}

/* テキスト位置の微調整 */
.text-top {
    vertical-align: top !important;
    padding-top: 1.5rem !important;
}

/* --- 底地解決ナビ：AI物件物語セクションに横幅を合わせる --- */

/* --- 底地解決ナビ：AI物件物語セクションに横幅を合わせる --- */

.sokochi-product-section {
  width: min(1380px, calc(100vw - 48px)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.sokochi-product-card {
  width: 100% !important;
  max-width: 1380px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* 本文は広がりすぎないようにする */
.sokochi-product-card p {
  max-width: 620px;
}

/* 横スクロール防止 */
.sokochi-product-section *,
.sokochi-product-section *::before,
.sokochi-product-section *::after {
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .sokochi-product-section {
    width: calc(100vw - 32px) !important;
	max-width: 100% !important;
  }

  .sokochi-product-card {
    max-width: 100% !important;
  }

  .sokochi-product-card p {
    max-width: 100%;
  }
}
/* --- 底地解決ナビ：スマホ横スクロール防止 --- */

@media (max-width: 768px) {

  /* 底地解決ナビ全体 */
  #product-sokochi {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  #product-sokochi > .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* 濃紺カード */
  #product-sokochi .bg-slate-900 {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    border-radius: 36px !important;
    box-sizing: border-box !important;
  }

  /* 問い合わせ枠の親：横スクロールを止める */
  #product-sokochi .mb-10.overflow-x-auto {
    overflow-x: visible !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 問い合わせ枠本体：1行固定をやめて折り返す */
  #product-sokochi .mb-10.overflow-x-auto > div {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  /* For Partners ラベル */
  #product-sokochi .mb-10.overflow-x-auto > div > span {
    flex-shrink: 0 !important;
    margin-right: 0 !important;
  }

  /* 問い合わせ文の本文 */
  #product-sokochi .mb-10.overflow-x-auto > div > div {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
  }

  #product-sokochi .mb-10.overflow-x-auto > div > div span {
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  #product-sokochi .mb-10.overflow-x-auto a {
    white-space: nowrap !important;
  }
}
