/* Frejuno Website Styles - 案A: サンドカラー・アートギャラリー風 */

/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 変数定義 */
:root {
    --color-primary: #C9A87C;      /* サンドベージュ（メイン） */
    --color-secondary: #A48B6F;    /* ダークサンド */
    --color-accent: #D4AF37;       /* ゴールド */
    --color-text: #4A4A4A;         /* チャコールグレー */
    --color-bg: #FFFFFF;
    --color-gray: #F8F6F3;         /* ライトサンド */
    --max-width: 1200px;
    --spacing: 2rem;
}

/* 基本スタイル */
body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    color: var(--color-text);
    line-height: 1.8;
    background-color: var(--color-bg);
    letter-spacing: 0.03em;
    font-weight: 300;
    overflow-x: hidden;
}

/* エレガントなタイポグラフィ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ヘッダー */
.header {
    background-color: var(--color-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-primary);
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 50px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 400;
    transition: color 0.3s ease;
    letter-spacing: 0.05em;
}

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

.btn-contact {
    background-color: var(--color-primary);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ヒーローセクション（Swiperスライダー） */
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

.hero-slide.swiper-slide-active {
    visibility: visible;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(164, 139, 111, 0.65) 0%, rgba(121, 103, 85, 0.65) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.98;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Swiperナビゲーション矢印 */
.hero-nav-btn {
    color: white !important;
    background: rgba(255, 255,255, 0.15) !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1);
}

.hero-nav-btn::after {
    font-size: 1.2rem !important;
    font-weight: bold;
}

.swiper-button-next.hero-nav-btn {
    right: 30px;
}

.swiper-button-prev.hero-nav-btn {
    left: 30px;
}

/* Swiperページインジケーター */
.hero-pagination {
    bottom: 30px !important;
    z-index: 10;
}

.hero-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* スマホ用ヒーロー */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        aspect-ratio: 16 / 9;
        min-height: auto;
    }

    .hero-image {
        background-size: cover;
        background-position: center;
        height: 100%;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.4;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-nav-btn {
        width: 40px !important;
        height: 40px !important;
    }

    .hero-nav-btn::after {
        font-size: 0.8rem !important;
    }

    .swiper-button-next.hero-nav-btn {
        right: 10px;
    }

    .swiper-button-prev.hero-nav-btn {
        left: 10px;
    }

    .hero-pagination {
        bottom: 10px !important;
    }

    .hero-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
}

/* ボタン - エレガント */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: rgba(255, 255, 255, 0.98);
    color: #A48B6F;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-3px);
}

/* セクション */
section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--color-text);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: var(--color-primary);
    margin: 1.5rem auto 0;
}

/* 特徴 */
.features {
    background-color: var(--color-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background-color: white;
    border-radius: 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border: 1px solid transparent;
}

/* 下線エフェクト */
.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    transition: width 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(212, 175, 55, 0.2);
}

.feature-card:hover::after {
    width: 80%;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
    font-weight: 400;
    letter-spacing: 0.05em;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
    font-weight: 300;
}

/* サービス */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.service-card {
    padding: 2.5rem;
    background-color: var(--color-gray);
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 124, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 168, 124, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    position: relative;
    z-index: 1;
}

.btn-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover .btn-link {
    color: white;
    transform: translateX(5px);
}

/* 物件カード */
.property-card {
    background-color: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(201, 168, 124, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.property-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.property-card:hover::before {
    opacity: 1;
}

.property-image {
    width: 100%;
    min-height: 250px;
    max-height: 400px;
    background-color: var(--color-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.property-info {
    padding: 1.5rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #A48B6F;
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.property-details {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.property-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.property-tag {
    background-color: var(--color-gray);
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 3px;
}

/* フッター */
.footer {
    background-color: #2C2C2C;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

/* ハンバーガーアイコン（PCでは非表示） */
.hamburger {
    display: none;
}

/* レスポンシブ */
@media (max-width: 768px) {
    /* ヘッダー - スマホ対応 */
    .header {
        padding: 0.5rem 0;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        position: relative;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo img {
        height: 40px;
    }

    .nav {
        width: auto;
    }

    /* ハンバーガーアイコン */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        z-index: 1001;
        gap: 5px;
        padding: 8px;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }

    .hamburger:hover {
        background-color: rgba(201, 168, 124, 0.1);
    }

    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--color-text);
        transition: all 0.3s ease;
        transform-origin: center;
    }

    /* ハンバーガーアイコン（開いている状態） */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* ナビゲーションメニュー（スマホ用） */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        gap: 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.4s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--color-gray);
    }

    .nav-menu li a {
        display: block;
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
        text-align: left;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .nav-menu li a:hover {
        background-color: var(--color-gray);
        color: var(--color-primary);
    }

    .nav-menu .btn-contact {
        background-color: var(--color-primary);
        color: white;
        text-align: center;
        padding: 1.2rem 1.5rem;
        border-radius: 0;
    }

    .nav-menu .btn-contact:hover {
        background-color: var(--color-secondary);
    }

    /* オーバーレイ */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* スクロールロック（メニュー開いている時） */
    body.menu-open {
        overflow: hidden;
    }

    /* 元のPC用nav ulスタイルを非表示に */
    .nav > ul {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.4;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* 物件一覧ページのグリッド - 3カラム固定 */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.properties-grid .property-card {
    width: 100%;
}

.properties-grid .property-image img {
    max-height: 400px;
    width: 100%;
    height: auto;
}

/* タブレット：2カラム */
@media (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* スマホ：1カラム */
@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .properties-grid .property-card {
        max-width: 100%;
    }
}
