/* サービスセクション - services.css */

.services-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232c3e50' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.05;
    z-index: 0;
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #E74C3C, #ec7063);
    z-index: 2;
}

.service-inner {
    display: flex;
    flex-direction: row;
}

.service-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.service-visual {
    flex: 1;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.service-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2C3E50;
    position: relative;
    padding-bottom: 15px;
}

.service-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #E74C3C, #ec7063);
    border-radius: 2px;
}

.service-description {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* 更新された service-features スタイル */
.service-features {
    margin-bottom: 30px;
    display: grid;
    gap: 20px;
}

.feature-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px 32px;
    position: relative;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-item::before {
    content: "✓";
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #E74C3C;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.feature-item:hover {
    background: white;
    border-left-color: #E74C3C;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    padding-left: 40px;
}

/* 古いfeature-iconは非表示にし、feature-textを新しいスタイルに更新 */
.feature-icon {
    display: none;
}

.feature-text {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.service-cta {
    margin-top: auto;
}

.btn-service {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #E74C3C, #d35400);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
    text-align: center;
}

.btn-service:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.btn-service i {
    margin-right: 8px;
}

/* 賃貸物件仲介カードの特別スタイル */
.rental-comparison {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.comparison-title {
    font-size: 1.2rem;
    color: #2C3E50;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    table-layout: fixed;
}

.comparison-table th, .comparison-table td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #dee2e6;
    word-wrap: break-word;
}

.comparison-table th {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 600;
}

.comparison-table th:first-child, .comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    width: 40%;
}

.comparison-table th:not(:first-child), .comparison-table td:not(:first-child) {
    width: 30%;
}

.comparison-total {
    font-weight: 700;
    background-color: #e9ecef;
}

.comparison-note {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
}

/* 売買物件仲介カードの特別スタイル */
.sale-comparison {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.sale-benefits {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.benefits-title {
    font-size: 1.2rem;
    color: #E74C3C;
    margin-bottom: 15px;
    font-weight: 600;
}

.benefits-description {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* LINE相談カードの特別スタイル */
.line-chat-preview {
    background-color: #222;
    border-radius: 12px;
    padding: 20px;
    color: white;
    position: relative;
    margin-bottom: 25px;
}

.line-chat-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.line-chat-benefits {
    padding: 12px;
}

.highlight-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #E74C3C, #d35400);
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
    transform: rotate(5deg);
}

.service-visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.visual-title {
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.3;
}

.visual-subtitle {
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    line-height: 1.5;
}

.cta-container {
    text-align: center;
    margin-top: 50px;
    position: relative;
    padding: 30px;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.05) 0%, rgba(231, 76, 60, 0.05) 100%);
    border-radius: 12px;
}

.cta-title {
    font-size: 1.5rem;
    color: #2C3E50;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn-cta {
    padding: 15px 40px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #E74C3C, #d35400);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.2);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,0));
    transform: skewX(-25deg);
    transition: all 0.75s ease;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(231, 76, 60, 0.3);
}

.btn-cta:hover::before {
    left: 100%;
}

.btn-cta i {
    margin-right: 10px;
}

/* セクションヘッダー */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #E74C3C, #ec7063);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* 初期費用比較テーブルのスタイル調整 */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    table-layout: fixed;
    font-size: 0.95rem;
}

.comparison-table th, .comparison-table td {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #dee2e6;
    word-wrap: break-word;
    vertical-align: middle;
}

.comparison-table th {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
}

.comparison-table th:first-child, .comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    width: 40%;
}

.comparison-table th:not(:first-child), .comparison-table td:not(:first-child) {
    width: 30%;
}

.comparison-total {
    font-weight: 700;
    background-color: #e9ecef;
    font-size: 1.05rem;
}

.comparison-note {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    font-style: italic;
    margin-top: 10px;
}

/* 強調表示されたセル */
.comparison-table td[style*="background-color: #ffe6e6"] {
    background-color: #ffe6e6 !important;
    color: #E74C3C !important;
    font-weight: 700 !important;
    font-size: 1.1rem;
}

/* 売買比較テーブルの特別スタイル */
.sale-comparison .comparison-table {
    font-size: 0.9rem;
}

.sale-comparison .comparison-table th, 
.sale-comparison .comparison-table td {
    padding: 10px 6px;
}

/* ベネフィット説明文の強調 */
.benefits-description strong {
    color: #E74C3C;
    font-weight: 700;
}

.benefits-description {
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* サービス説明文の強調 */
.service-description strong {
    color: #E74C3C;
    font-weight: 700;
}

/* アンダーライン効果 */
.service-description span[style*="position: relative"] {
    position: relative;
    display: inline-block;
}

.service-description span[style*="position: relative"] span {
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 6px;
    background-color: rgba(231, 76, 60, 0.2);
    z-index: -1;
    border-radius: 2px;
}

/* ハイライトバッジの改良 */
.highlight-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #E74C3C, #d35400);
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 10;
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
    transform: rotate(3deg);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ビジュアルオーバーレイのテキスト調整 */
.visual-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.5);
    line-height: 1.2;
    font-weight: 700;
}

.visual-subtitle {
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.4;
    font-weight: 500;
}

/* CTAコンテナの改良 */
.cta-container {
    text-align: center;
    margin-top: 60px;
    position: relative;
    padding: 40px;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.05) 0%, rgba(231, 76, 60, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(231, 76, 60, 0.1);
}

.cta-title {
    font-size: 1.8rem;
    color: #2C3E50;
    margin-bottom: 25px;
    font-weight: 700;
}

.cta-description {
    font-size: 1.15rem;
    color: #555;
    max-width: 750px;
    margin: 0 auto 35px;
    line-height: 1.6;
}

/* ボタンスタイルの改良 */
.btn-service {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #E74C3C, #d35400);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(231, 76, 60, 0.25);
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-service:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(231, 76, 60, 0.35);
    background: linear-gradient(135deg, #d63031, #c0392b);
}

.btn-service i {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* LINE相談特別スタイルの改良 */
.line-chat-benefits {
    padding: 24px;
    border-radius: 12px;
}

.line-chat-benefits h4 {
    margin-bottom: 18px;
}

.line-chat-benefits p {
    margin-bottom: 0;
}

/* レスポンシブデザイン */
@media (max-width: 992px) {
    .service-inner {
        flex-direction: column;
    }
    
    .service-visual {
        min-height: 250px;
    }
    
    .highlight-badge {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 40px 0;
    }
    
    .service-content {
        padding: 30px;
    }
    
    .service-title {
        font-size: 1.6rem;
    }
    
    .service-description {
        font-size: 1rem;
    }
    
    .visual-title {
        font-size: 1.8rem;
    }
    
    .visual-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-title {
        font-size: 1.3rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .btn-cta {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    
    .comparison-table th, .comparison-table td {
        padding: 6px 4px;
        font-size: 0.8rem;
    }
    
    .line-chat-preview {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .line-chat-image {
        margin-bottom: 15px;
    }
    
    /* モバイル版：feature-textのフォントサイズ調整 */
    .feature-text {
        font-size: 0.95rem;
    }
    
    /* モバイル版：sale-benefitsの余白を削減 */
    .sale-benefits {
        padding: 12px;
        margin-top: 15px;
    }
    
    .benefits-description {
        margin-bottom: 10px;
    }
    
    /* モバイル版：rental-comparisonの余白調整 */
    .rental-comparison {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    /* モバイル版：sale-comparisonの余白調整 */
    .sale-comparison {
        padding: 12px;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .service-content {
        padding: 25px;
    }
    
    .service-title {
        font-size: 1.4rem;
    }
    
    .visual-title {
        font-size: 1.5rem;
    }
    
    .visual-subtitle {
        font-size: 1rem;
    }
    
    .cta-container {
        padding: 20px;
    }
    
    .btn-cta {
        width: 100%;
    }
    
    .comparison-table th, .comparison-table td {
        padding: 4px 2px;
        font-size: 0.7rem;
    }
    
    /* 小画面：feature-textをさらに小さく */
    .feature-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* 小画面：feature-itemのパディング調整 */
    .feature-item {
        padding: 16px 20px;
    }
    
    /* 小画面：sale-benefitsをさらに詰める */
    .sale-benefits {
        padding: 8px;
        margin-top: 10px;
    }
    
    .benefits-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .benefits-description {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    /* 小画面：比較テーブル周りの余白調整 */
    .rental-comparison,
    .sale-comparison {
        padding: 8px;
        margin-bottom: 10px;
    }
    
    .comparison-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
}

/* ✔ 丸アイコンとテキストが重ならない安定版 */
.feature-item{
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid transparent;
  transition: all .3s ease;
  /* ← 丸アイコンのぶん左に常に余白を確保 */
  padding: 18px 16px 18px 56px;
}

.feature-item::before{
  content: "✓";
  position: absolute;
  left: 20px;              /* 常に内側に置く（はみ出さない） */
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E74C3C;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.feature-item:hover{
  background: #fff;
  border-left-color: #E74C3C;
  box-shadow: 0 8px 25px rgba(0,0,0,.1);
  /* モバイルでのズレ防止のため、hoverでの左余白は維持 */
  padding-left: 56px;
}

/* ── モバイル最適化 ───────────────────────── */
@media (max-width: 768px){
  .feature-item{
    padding: 16px 14px 16px 48px;   /* ひと回りコンパクト */
  }
  .feature-item::before{
    left: 14px;
    width: 20px; height: 20px;      /* 丸も小さく */
    font-size: 12px;
  }
  .feature-item:hover{              /* タッチ環境での跳ねを防止 */
    box-shadow: none;
    padding-left: 48px;
  }
}

@media (max-width: 420px){
  .feature-item{ padding: 14px 12px 14px 44px; }
  .feature-text{ font-size: .95rem; line-height: 1.55; }
}
/* --- VSバッジを中央に固定配置（PC/スマホ共通） --- */
.professional-comparison .comparison-container{
  position: relative;        /* VSの基準にする */
  padding-block: 40px;       /* バッジが重なっても切れない余白を確保 */
}

.professional-comparison .vs-divider{
  position: absolute;
  left: 50%;
  top: calc(50% - 36px);     /* コンテナ中央 - 半径分でど真ん中 */
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;      /* クリックを邪魔しないように */
}

.professional-comparison .vs-circle{
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(135deg,#E74C3C,#d35400);
  border: 6px solid #fff;    /* カードとの境界をくっきり */
  box-shadow: 0 10px 24px rgba(231,76,60,.25);
}

/* スマホは少し小さく */
@media (max-width: 576px){
  .professional-comparison .comparison-container{ padding-block: 32px; }
  .professional-comparison .vs-circle{ width: 64px; height: 64px; font-size: 22px; }
  .professional-comparison .vs-divider{ top: calc(50% - 32px); }
}
/* 1) 「ポリシー」→「仕組みの違いを比較」の間を広げる */
.fee-zero-section .elegant-header{
  margin-bottom: 72px;       /* ここで調整：PC */
}
@media (max-width: 576px){
  .fee-zero-section .elegant-header{
    margin-bottom: 56px;     /* スマホは少し詰める */
  }
}

/* 2) 「仕組みの違いを比較」にハイライト（マーカー風） */
.professional-comparison .comparison-header{
  text-align: center;        /* 既に入っていれば不要 */
}

.professional-comparison .comparison-title{
  display: inline-block;     /* テキスト幅だけにハイライトを当てる */
  padding: 0 .25em;
  line-height: 1.25;
  background:
    linear-gradient(transparent 62%, rgba(231,76,60,.22) 0); /* マーカー */
  border-radius: 4px;        /* 角を少し丸く */
}

/* 下線も欲しい場合（任意でONに） */
.professional-comparison .comparison-title::after{
  content:"";
  position: relative; display:block;
  height: 4px; margin-top: 6px;
  background: linear-gradient(90deg,#E74C3C,#ec7063);
  border-radius: 2px;
  opacity: .9;
}


@media (max-width: 576px){
  /* ポリシー → 次ブロックの間を広げる */
  #fee-zero .elegant-header{
    margin-bottom: 90px;   /* ここを好みで 48〜72px くらいに */
  }
  #fee-zero .professional-comparison{
    margin-top: 12px;      /* 念のため少しだけ足す */
  }
}

/* 間を開ける：ポリシー → 仕組みの違いを比較 */
#fee-zero .elegant-header{
  display: flow-root;          /* marginの相殺防止 */
  margin-bottom: 48px;         /* PCデフォルトの間 */
}

/* スマホでさらに広げる */
@media (max-width: 576px){
  #fee-zero .elegant-header{
    margin-bottom: 72px;       /* ←ここを好みで 64–96px に調整可 */
  }
  /* 念のため次ブロック側の上マージンはゼロに */
  #fee-zero .professional-comparison{
    margin-top: 0;
  }
}
