/* =========================================
   NEWS SECTION (Integrated & Fixed)
   ========================================= */
#news {
  background-color: #0a0a0a !important; /* 背景色を強制的に固定 */
  padding: 140px 0 !important;         /* 余白を強制的に固定 */
  position: relative;
  overflow: hidden;
}

/* 上下の極細ライン */
#news::before,
#news::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  z-index: 1;
}
#news::before { top: 0; }
#news::after { bottom: 0; }

.news-header {
  margin-bottom: 60px;
}

/* リスト全体の枠組み */
.news-list {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

/* 記事1行のリンクエリア */
.news-item-link {
  display: block;
  text-decoration: none;
  padding: 32px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.news-item-link:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

/* 横並びのレイアウト制御 */
.news-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* 日付 */
.news-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #888;
  min-width: 110px;
  letter-spacing: 0.05em;
}

/* 記事タイトル */
.news-title-only {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.news-item-link:hover .news-title-only {
  color: #ff5722; 
}

/* 右端の矢印 */
.news-arrow {
  color: #ff5722;
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.news-item-link:hover .news-arrow {
  transform: translateX(8px);
}

/* 下部「一覧を見る」ボタン */
.news-footer {
  margin-top: 40px;
  text-align: right;
}

.btn-text {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid #ff5722;
  padding-bottom: 4px;
  transition: opacity 0.3s;
}

/* ===== スマホ対応 (768px以下) ===== */
@media (max-width: 768px) {
  #news {
    padding: 80px 0 !important;
  }
  .news-header {
    margin-bottom: 40px;
  }
  .news-row {
    gap: 20px;
  }
  .news-item-link {
    padding: 24px 5px;
  }
  .news-date {
    min-width: 85px;
    font-size: 0.8rem;
  }
  .news-title-only {
    font-size: 0.95rem;
  }
  .news-arrow {
    display: none;
  }
}

.about-footer {
  margin-top: 30px;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid #ff5722; /* オレンジのライン */
  padding-bottom: 5px;
  transition: all 0.3s ease;
}

.btn-more i {
  font-size: 0.8rem;
  color: #ff5722;
  transition: transform 0.3s ease;
}

.btn-more:hover {
  opacity: 0.8;
  border-bottom-color: #fff; /* ホバーでラインの色を変える */
}

.btn-more:hover i {
  transform: translateX(5px); /* ホバー時に矢印を少し右に動かす */
}

/* スマホ対応 */
@media (max-width: 768px) {
  .about-footer {
    text-align: right; /* スマホでは右寄せにするとバランスが良い */
  }
}


/* ============================ */
/* ============================ */
/* ===== SERVICES SECTION ===== */
/* ============================ */
/* ============================ */
#services {
    padding: 120px 0;
    background: var(--black);
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
    gap: 40px;
}

.services-lead {
    max-width: 500px;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(245, 245, 240, 0.6);
    margin: 0;
}

/* グリッドレイアウト（PCは2カラム） */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    border-color: rgba(255, 87, 34, 0.4);
    transform: translateY(-5px);
}

.service-name {
    margin: 0 0 20px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
}

.service-num {
    color: #ff5722;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    margin-right: 12px;
}

.service-num::after {
    content: ".";
}

.service-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #bbb;
    margin-bottom: 25px;
}

.service-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(245, 245, 240, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}

/* 不動産セクションの仕切りラベル */
.service-divider-label {
    grid-column: 1 / -1;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #ff5722;
    margin: 40px 0 10px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.service-divider-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 87, 34, 0.2);
}

/* 不動産カード（PCは横長） */
.service-card.realestate {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    border-left: 4px solid #ff5722;
}

/* 下部CTAボックス */
.service-feat {
    grid-column: 1 / -1;
    margin-top: 40px;
    background: var(--gray-dk);
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-feat h3 {
    font-size: 1.6rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.service-feat p {
    color: rgba(245, 245, 240, 0.5);
    font-size: 14px;
    max-width: 600px;
}

/* =========================================
    📱 スマホ対応 (768px以下)
   ========================================= */
@media (max-width: 991px) { /* 768pxから991px（タブレット含）に広げて判定を確実に */

    /* 事業内容セクション */
    #services .services-grid {
        grid-template-columns: 1fr !important; /* 強制的に1列 */
        display: flex !important;              /* Gridで効かない場合はFlexで縦積みに */
        flex-direction: column !important;
        gap: 20px !important;
    }

    #services .service-card.realestate {
        grid-column: span 1 !important; /* 2マス分使う設定を解除 */
        width: 100% !important;
    }
}


/* ========================= */
/* ========================= */
/* ===== WORKS SECTION ===== */
/* ========================= */
/* ========================= */
#works {
    padding: 120px 0;
    background: var(--black);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PC・タブレットは2カラム */
    gap: 30px;
}

/* PCで大きく見せたいカードの指定 */
.work-card.large {
    grid-column: span 2;
}

/* --- カード内部の構造 --- */
.work-thumb {
    position: relative;
    overflow: hidden;
    height: 400px;
    background-color: #1a1a1a;
}

.work-image-container {
    width: 100%;
    height: 100%;
}

.work-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1);
}

.work-card:hover .work-image-container img {
    transform: scale(1.1);
}

.work-thumb-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}

.work-thumb-label {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    font-size: 2.5rem;
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 3;
}

.work-cat {
    font-size: 11px;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.work-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

/* カード下部のテキストエリア */
.work-body {
    padding: 24px;
}

.work-desc {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.work-tag {
    font-size: 10px;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    border-radius: 2px;
}

/* =========================================
    📱 スマホ対応 (768px以下)
   ========================================= */
@media (max-width: 768px) {
    #works {
        padding: 80px 0;
    }

    .works-grid {
        grid-template-columns: 1fr; /* 1カラムに変更 */
        gap: 40px; /* カード同士の間隔を少し広げる */
    }

    .work-card.large {
        grid-column: span 1; /* largeの横幅いっぱい指定を解除 */
    }

    .work-thumb {
        height: 300px; /* スマホでは高さを抑えてスクロールしやすく */
    }

    .work-overlay {
        padding: 20px;
    }

    .work-title {
        font-size: 1.15rem; /* タイトルを少し小さく */
    }

    .work-thumb-label {
        font-size: 1.8rem;
        top: 15px;
        right: 15px;
    }

    .work-body {
        padding: 20px 5px;
    }

    .work-desc {
        font-size: 13px;
        margin-bottom: 15px;
    }
}

/* --- Works Footer --- */
.works-footer {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}



/* =============================== */
/* =============================== */
/* ===== CONTACT CTA SECTION ===== */
/* =============================== */
/* =============================== */
#contact {
    padding: 120px 0;
    background: var(--black);
}

/* 誘導用ボックス本体 */
.contact-cta-box {
    background: var(--gray-dk);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

/* ボックス上部のアクセントライン（グラデーション） */
.contact-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d42b2b, #ff5722);
}

/* テキスト周りの調整 */
.contact-cta-box .tag {
    margin-bottom: 24px;
}

.contact-cta-box .section-title {
    margin-bottom: 30px;
}

.cta-text {
    color: rgba(245, 245, 240, 0.6);
    margin-bottom: 48px;
    line-height: 1.8;
    font-size: 16px;
}

/* 改行コントロール（PCのみ有効にする） */
.pc-only {
    display: block;
}

/* 誘導ボタン（グラデーション & 角切りデザイン） */
.cta-footer {
    display: flex;
    justify-content: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, #d42b2b 0%, #ff5722 100%);
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .1em;
    padding: 20px 50px;
    text-decoration: none;
    /* 特徴的な角のカット */
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: transform 0.3s, opacity 0.3s;
}

.btn-primary i {
    font-size: 0.9em;
    transition: transform 0.3s;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

/* ホバー時に矢印を少し右に動かす */
.btn-primary:hover i {
    transform: translateX(5px);
}

/* =========================================
    📱 スマホ対応
   ========================================= */
@media (max-width: 768px) {
    #contact {
        padding: 80px 0;
    }

    .contact-cta-box {
        padding: 60px 20px;
    }

    .cta-text {
        font-size: 14px;
        margin-bottom: 36px;
    }

    .pc-only {
        display: none; /* スマホでは強制改行を解除 */
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 18px 20px;
        font-size: 15px;
    }
}