/* style-nagasaki.css */

/* --- 0. カラーパレット定義 --- */
:root {
    --color-header-bg: #fdfbf7;   /* ヘッダー背景 */
    --color-text: #4a4a4a;        /* 基本文字色 */
    --color-accent: #2c3e50;      /* アクセントカラー（ネイビー） */
    --color-border: #e8e4e0;      /* 境界線 */
    --font-main: 'M PLUS Rounded 1c', sans-serif;
}

/* --- 1. 基本設定 --- */
html, body {
    margin: 0;
    padding: 0;
    color: var(--color-text);
    background-color: #fcfcfc;
    font-family: var(--font-main) !important;
    line-height: 1.8;
}

h1, h2, h3 {
    font-weight: 700;
}

/* --- 2. ヘッダー --- */
.l-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-header-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    padding: 10px 5%;
}

.l-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    width: 100px; /* 100pxに統一 */
    height: auto;
    display: block;
}

/* --- 3. ヒーロースライダー --- */
.hero-slider { width: 100%; position: relative; overflow: hidden; }

.hero-content {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); z-index: 10;
    width: 100%; text-align: center; pointer-events: none;
}

.animate-text {
    color: #fff; font-size: 4rem; font-weight: bold; letter-spacing: 0.1em;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3); margin: 0;
    animation: gentleFadeUp 2s ease-out forwards, floatEffect 4s ease-in-out infinite;
    animation-delay: 0s, 2s; 
}

.swiper-slide img { width: 100%; height: auto; object-fit: cover; }

/* --- 4. ナビゲーションメニュー --- */
.hamburger {
    display: none; cursor: pointer; width: 30px; height: 20px; position: relative;
    z-index: 1000;
}
.hamburger span {
    display: block; width: 100%; height: 3px; background: var(--color-accent);
    position: absolute; transition: all 0.3s ease-in-out; border-radius: 3px;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

/* アイコンクリック時のアニメーション */
.hamburger.is-active span:nth-child(1) { transform: rotate(45deg); top: 8px; }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: rotate(-45deg); top: 8px; }

/* スマホ用メニューの設定 */
@media (max-width: 767px) {
    .hamburger { display: block; }
    
    .nav-menu {
        display: block; /* opacityで制御 */
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: var(--color-header-bg); /* ヘッダーとお揃いの背景色 */
        padding: 100px 20px; text-align: center;
        opacity: 0; visibility: hidden; /* 初期状態は非表示 */
        transition: all 0.4s ease; /* ふんわり表示 */
        z-index: 999;
    }
    
    .nav-menu.is-active { opacity: 1; visibility: visible; }
    
    .nav-menu ul { flex-direction: column; gap: 40px; list-style: none; padding: 0; }
    
    .nav-menu a {
        font-size: 1.4rem; color: var(--color-accent);
        display: block; padding: 10px;
        transition: 0.3s;
    }
    
    /* ホバー時のエフェクト */
    .nav-menu a:hover { color: #d4af37; transform: scale(1.05); }
    
    /* ハンバーガーメニュー内のLINEボタン */
    .mobile-menu-line { margin-top: 40px; }
    .mobile-menu-line a { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--color-accent); font-weight: bold; text-decoration: none; }
    .mobile-menu-line img { width: 50px; }

    

}

/* PC：横並びのミニマルスタイル */
@media (min-width: 768px) {
    .nav-menu ul {
        display: flex; 
        list-style: none; 
        margin: 0; 
        padding: 0;
        gap: 30px; /* 少し間隔を広げます */
        align-items: center;
    }

    .nav-menu a {
        position: relative;
        text-decoration: none;
        color: var(--color-accent);
        font-weight: bold;
        font-size: 0.95rem; /* 少し大きく */
        padding: 5px 0;
        transition: opacity 0.3s;
    }

    /* 下線の演出 */
    .nav-menu a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--color-accent);
        transition: width 0.3s ease;
    }

    /* マウスを乗せた時の動き */
    .nav-menu a:hover {
        opacity: 0.7;
    }
    .nav-menu a:hover::after {
        width: 100%; /* 下線がスッと伸びる */
    }
    
    /* PCではメニュー内のLINEボタンを非表示にする場合 */
    .mobile-menu-line { display: none; }
}

/* --- 5. コンテンツ・その他 --- */
/* ボタンエリアの余白を調整 */
.btn-area {
    margin-top: 80px; /* 40pxから80pxに広げて余裕を持たせます */
    text-align: center;
}
.content-body { padding: 80px 5%; text-align: center; }
.l-footer { padding: 40px 5%; background-color: #f5f5f5; margin-top: 50px; }
.copyright { font-size: 0.8rem; text-align: center; margin: 0; color: #888; }

/* アニメーション */
@keyframes gentleFadeUp {
    0% { opacity: 0; transform: translateY(30px); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes floatEffect {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* レスポンシブ調整 */
@media (min-width: 768px) { .swiper-slide { height: 80vh; } }
@media (max-width: 767px) {
    .swiper-slide { height: auto; }
    .animate-text { font-size: 2rem; letter-spacing: 0.05em; }
    @keyframes floatEffect { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
}

.sp-only { display: none; }
@media (max-width: 767px) { .sp-only { display: block; } }

/* --- 6. 新着情報・物件リスト --- */
.news-list { 
    display: flex; 
    gap: 30px; /* カード同士の間隔 */
    justify-content: center; 
    flex-wrap: wrap; 
}

.news-item {
    display: block;
    width: 300px;
    padding: 15px;            /* カード内部の余白 */
    background-color: #ffffff; /* カードの背景色（白） */
    border: 1px solid #f0edea; /* 薄い枠線 */
    border-radius: 12px;      /* 角を丸く */
    transition: all 0.3s ease;
    text-decoration: none;    /* 下線を消す */
    color: inherit;           /* 文字色を継承 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* ほんのり影 */
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); /* ホバーで浮き上がる */
}

.news-thumb {
    margin-bottom: 15px;
    overflow: hidden;         /* 画像が枠からはみ出さないように */
    border-radius: 8px;       /* 画像の角も丸く */
}

.news-thumb img { 
    width: 100%; 
    height: 180px;            /* 画像の高さを調整 */
    object-fit: cover; 
}

.news-title {
    font-weight: bold;
    font-size: 1.05rem;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

/* 記事詳細ページ用（修正不要ならそのままでOK） */
.single-news-container { display: flex; flex-wrap: wrap; gap: 40px; padding: 50px 5%; }
@media (min-width: 768px) { .single-news-container { align-items: center; } }
.news-image-area { flex: 1 1 400px; }
.news-image-area img { width: 100%; height: auto; border-radius: 8px; }
.news-content-area { flex: 2 1 400px; }

@media (max-width: 767px) { .news-image-area, .news-content-area { flex: 1 1 100%; } }

/* --- 7. 物件詳細 --- */
.bukken-single-container { width: 90%; margin: 0 auto; }
@media (min-width: 768px) { .bukken-single-container { width: 70%; } }
.bukken-wrapper { display: flex; gap: 40px; align-items: flex-start; }
.bukken-image { flex: 1.2; }
.bukken-info { flex: 0.8; }
.bukken-image img { width: 100%; height: auto; }
.property-specs { width: 100%; border-collapse: collapse; }
.property-specs th, .property-specs td { padding: 15px; border-bottom: 1px solid #ddd; text-align: left; }
.property-specs th { background-color: #f9f9f9; width: 30%; font-weight: bold; }
.bukken-price {
    margin-top: 10px !important;
    font-size: 1rem;
    font-weight: bold;
    color: #e67e22;
}
@media (max-width: 767px) { .bukken-wrapper { flex-direction: column; gap: 20px; } }

/* ボタン類 */
.c-btn-home, .c-btn-secondary {
    display: inline-block; padding: 12px 20px; text-decoration: none;
    transition: 0.3s; border-radius: 50px;
}
.c-btn-home { background-color: #f5f5f5; color: #666; border: 1px solid #e0e0e0; }
.c-btn-secondary { background-color: #fff; border: 1px solid #555; color: #555; }
.c-btn-secondary:hover { background-color: #555; color: #fff; }

/* --- 8. プライバシーポリシー --- */
.p-policy__inner { width: 80%; max-width: 900px; margin: 0 auto; padding: 60px 0; }
@media screen and (max-width: 767px) { .p-policy__inner { width: 92%; padding: 30px 0; } }
.p-policy__text, .p-policy__list { line-height: 2.0; margin-bottom: 1.5em; font-size: 16px; }
.p-policy__list { padding-left: 20px; margin-bottom: 2em; }
.p-policy__list li { margin-bottom: 0.5em; }
.p-policy__group { margin-bottom: 50px; }
.p-policy__title { margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #ccc; }

/* --- 追加: ページ共通のコンテンツ幅制限 --- */
.l-page-container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

/* 会社概要テーブルのスタイル調整 */
.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
}
.company-table th, 
.company-table td {
    padding: 20px;
    border-bottom: 1px solid #e8e4e0;
    text-align: left;
}
.company-table th {
    width: 30%;
    background-color: #f9f9f9;
    color: #4a4a4a;
    font-weight: 700;
}

/* --- 9. フォームの調整 --- */
.wpcf7-form {
    text-align: left;
    background: #fff;
    padding: 0;
    border: none;
    box-shadow: none;
}

.wpcf7-form label {
    display: block;
    text-align: left !important;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.wpcf7-form p {
    margin-bottom: 25px; 
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Turnstileを送信ボタンのすぐ上に配置 */
.wpcf7-form .wpcf7-turnstile {
    display: flex;
    justify-content: center; /* ここで右寄せ */
    margin: 15px 0;
}

.wpcf7-submit {
    display: block;
    padding: 12px 30px;
    background-color: #535252;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

/* --- 10. フッター --- */
.l-footer { padding: 60px 15% 40px; background-color: #f5f5f5; margin-top: 50px; }
.l-footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
@media (max-width: 767px) { .footer-grid { flex-direction: column; text-align: center; } }
.footer-info h3 { margin: 0 0 10px; font-size: 1.2rem; }
.footer-info p { margin: 5px 0; font-size: 0.9rem; }
.footer-line h3 { margin: 0 0 10px; font-size: 1.2rem; }
.footer-line a { display: flex; align-items: center; text-decoration: none; color: #333; }
@media (max-width: 767px) { .footer-line a { justify-content: center; } }
.footer-line img { width: 80px; height: auto; margin-right: 15px; }
.footer-line span { font-weight: bold; border-bottom: 1px solid #333; }
.copyright { font-size: 0.8rem; text-align: center; margin: 20px 0 0; color: #888; border-top: 1px solid #ddd; padding-top: 20px; }