/* =======================
   お問い合わせ
======================= */

html {
    scroll-behavior: smooth;
}

.cta-btn{
    display:inline-block;
    padding:15px 30px;
    background:#c49a6c;
    color:#fff;
    text-decoration:none;
    border-radius:50px;
    font-weight:bold;
    transition:0.3s;
}

.cta-btn:hover{
    opacity:0.8;
}

.cta-wrap{
    text-align:center;
    margin-top:40px;
}


/* =======================
   メインビジュアル
======================= */
.hiraya-hero{
    background:url('yy_img/hirayanohouse.png') center/cover no-repeat;
    height:100vh;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    position:relative;
}

/* 少し暗くして文字見やすく */
.hiraya-hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.3);
}

.hiraya-hero-inner{
    position:relative;
    z-index:2;
}

.hiraya-hero h1{
    font-size:3em;
    margin-bottom:10px;  
    color:#fff;
}

.hiraya-hero p{
    font-size:1.2em;
}

/* =======================
   セクション
======================= */
.hiraya-section{
    padding:80px 20px;
    max-width:900px;
    margin:auto;
}

.hiraya-section h2{
    text-align:center;
    margin-bottom:30px;
}

/* リード文 */
.hiraya-lead{
    font-size:1.1em;
    margin-bottom:20px;
}

/* =======================
   メリット・デメリット
======================= */
.hiraya-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.hiraya-card{
    padding:25px;
    border-radius:12px;
    background:#fff;
}

.hiraya-merit{
    background:#ccdddd;
}

.hiraya-demerit{
    background:#ccc;
}

.hiraya-card h3{
    margin-top:0;
}

.hiraya-card ul{
    padding-left:20px;
}

/* =======================
   Q&A
======================= */
.hiraya-qa{
    margin-bottom:25px;
}

.hiraya-qa h3{
    margin-bottom:5px;
}

/* =======================
   ギャラリー
======================= */
.hiraya-gallery-section{
    padding:80px 0;
    background:#f7f7f7;
}

.hiraya-gallery-section h2{
    text-align:center;
    margin-bottom:40px;
}

.hiraya-gallery{
    overflow:hidden;
}

.hiraya-gallery-track{
    display:flex;
    gap:20px;
    width:max-content;
    animation:hiraya-scroll 25s linear infinite;
}

.hiraya-gallery img{
    width:300px;
    height:200px;
    object-fit:cover;
    border-radius:4px;
}

/* アニメーション */
@keyframes hiraya-scroll{
    0%{ transform:translateX(0); }
    100%{ transform:translateX(-50%); }
}

/* =======================
   スマホ対応
======================= */
@media (max-width:768px){

    .hiraya-hero h1{
        font-size:2em;
    }

    .hiraya-grid{
        grid-template-columns:1fr;
    }

    .hiraya-gallery img{
        width:220px;
        height:150px;
    }
}
