/*
 Theme Name:   SunSun不動産
 Description:  SunSun不動産
 Author:       インダストリーネットワーク株式会社
 Author URI:   https://industry.co.jp
 Template:     bootscore
 Version:      1.0.0
 Requires at least: 5.0
 Tested up to: 6.6
 Requires PHP: 7.4
 License: MIT License
 License URI: https://github.com/bootscore/bootscore-child/blob/main/LICENSE
 Text Domain:  bootscore
*/


*,
*::before,
*::after {
    box-sizing: border-box;
}

/* --- ベース設定 --- */
:root {
    --primary-color: #E67E22;
    --primary-dark: #D35400;
    --text-color: #333333;
    --bg-color: #FAFAFA;
    --accent-bg: #F2F2F2;
    --white: #FFFFFF;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.6rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    line-height: 1.8;
    overflow-x: hidden;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
    font-size: 100%;
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* --- ヘッダー --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    font-size: 1.4rem;
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* --- メインビジュアル --- */
.hero {
    position: relative;
    height: 90vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    opacity: 0;
}

.hero h1 {
    font-size: 3.6rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero p {
    font-size: 2.4rem;
    font-weight: 500;
    letter-spacing: 0.2em;
}

/* --- 共通セクション設定 --- */
section:not(.hero) {
    padding: 120px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 80px;
    color: var(--text-color);
}

.section-title .section-title-sub {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-family: 'Noto Sans JP', sans-serif;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media screen and (max-width: 767px) {
    section:not(.hero) {
        padding: 20px;
    }

    .section-title {
        margin-top: 40px;
        margin-bottom: 40px;
    }
}


/* --- 私たちについて --- */
.about {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-img {
    flex: 1;
    height: 500px;
    width: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: 20px 20px 0px rgba(230, 126, 34, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.4rem;
    margin-bottom: 40px;
    line-height: 1.5;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}

.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 40px;
    border: 1px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    border-radius: 50px;
    transition: 0.3s;
    cursor: pointer;
    letter-spacing: 0.1em;
    font-size: 1.6rem;
}

.btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

/* --- サービス --- */
.services-wrapper {
    background-color: var(--accent-bg);
    padding-bottom: 120px;
    margin-top: 100px;
}

.services-wrapper .section-title {
    padding-top: 100px;
}

.service-item {
    display: flex;
    align-items: stretch;
    background: var(--white);
    margin-bottom: 80px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    overflow: hidden;
}

.service-item:nth-child(even) {
    flex-direction: row-reverse;
}

.service-img {
    flex: 1.2;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.service-item:hover .service-img {
    transform: scale(1.03);
}

.service-content {
    flex: 1;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content h3 {
    font-size: 2rem;
    line-height: 30px;
    margin-bottom: 25px;
    color: var(--text-color);
    position: relative;
    padding-left: 20px;
}

.service-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 30px;
    width: 4px;
    background: var(--primary-color);
}

.service-content p {
    margin-bottom: 30px !important;
    color: #666;
}

@media screen and (max-width: 767px) {
    .services-wrapper {
        margin-top: 50px;
        padding-bottom: 0;
    }

    .services-wrapper .section-title {
        padding-top: 50px;
    }

    .service-content p {
        margin-bottom: 0 !important;
    }
}

/* --- 特色 --- */
.features {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 180px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.features h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.feature-box {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 80px 60px !important;
    max-width: 900px;
    text-align: center;
    border-top: 5px solid var(--primary-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 767px) {
    .features {
        padding: 90px 20px;
    }

    .feature-box {
        padding: 40px 30px !important;
    }

    .features h2 {
        font-size: 2rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }
}

/* --- お知らせ --- */
.news-section {
    background-color: var(--white);
}

.news-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
}


.news-list li a {
    border-bottom: 1px solid #eee;
    padding: 25px 20px;
    display: flex;
    gap: 40px;
    align-items: baseline;
    transition: 0.3s;
    cursor: pointer;
}

.news-list li a:hover {
    background-color: #fcfcfc;
    padding-left: 35px;
    border-bottom-color: var(--primary-color);
}

.news-date {
    font-family: 'Noto Serif JP', serif;
    color: #999;
    font-size: 0.95rem;
    min-width: 100px;
}

.news-title {
    font-weight: 500;
}

.news-title .category {
    font-feature-settings: "palt";
}

/* --- フッター --- */
footer {
    background: #222;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    font-size: 1.4rem;
}

.footer-nav {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.footer-nav a {
    color: #ccc;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-logo {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .about {
        flex-direction: column;
        gap: 40px;
    }

    .about-img {
        width: 100%;
        height: 300px;
    }

    .service-item,
    .service-item:nth-child(even) {
        flex-direction: column;
    }

    .service-img {
        width: 100%;
        height: 250px;
        min-height: auto;
    }

    .service-content {
        padding: 40px 20px;
    }

    .feature-box {
        padding: 40px 20px;
    }

    .news-list li {
        flex-direction: column;
        gap: 10px;
    }

    header {
        padding: 15px 20px;
    }

    nav {
        display: none;
    }
}