/* ===============================================
   基本設計 (高品質化の基盤)
   =============================================== */
:root {
    /* Colors */
    --color-text: #333333;
    --color-text-light: #555555;
    --color-background: #ffffff;
    --color-subtle-bg: #f8f7f5;
    --color-muted: #888888;
    --color-accent: #164af3;
    --color-border: #e5e5e5;
    --color-gold: #bcae88; 

    /* Typography */
    --font-serif: 'Noto Serif JP', serif; 
    --font-sans: 'Noto Sans JP', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 2rem;     /* 32px */
    --space-lg: 4rem;     /* 64px */
    --space-xl: 6rem;     /* 96px */
    --space-section: 3rem; /* 128px */
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--color-background);
    color: var(--color-text);
    overflow-x: hidden;
}

* { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

p { 
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 2.2;
    margin: 0 0 1.5rem; 
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ===============================================
   ヘッダー
   =============================================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: white;
}
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    text-shadow: none;
}
.header .logo img { height: 28px; width: auto; transition: all 0.3s ease; }
.header.scrolled .logo img { height: 24px; }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.header .cta-button {
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    padding: 0.6rem 1.4rem; font-size: 0.8rem;
    font-weight: 500; letter-spacing: 0.02em;
}
.header.scrolled .cta-button.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ===============================================
   ヒーローセクション
   =============================================== */
.hero {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    min-height: 100vh; padding: var(--space-xl) 0.2px;
    text-align: left; color: white;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)),
        url('src/view_7.jpg');
    background-size: cover; background-position: center center; position: relative;
}
.hero .container { width: 100%; }
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-weight: 500; line-height: 1.45; letter-spacing: 0.1em;
    margin: 0 0 var(--space-lg) 0; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.hero-cta { position: absolute; bottom: 12%; left: 50%; transform: translateX(-50%); }
.hero-footer {
    position: absolute; bottom: var(--space-md); left: 0; right: 0;
    text-align: center; font-size: 0.8rem; letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.8);
}
.hero-subsubtitle { font-family: var(--font-sans); line-height: 1.6; }

/* ===============================================
   汎用スタイル
   =============================================== */
.section { padding: var(--space-section) 0; }
.section-header { text-align: left; margin-bottom: var(--space-xs); position: relative; }
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 6vw, 2.8rem);
    font-weight: 500; letter-spacing: 0.1em;
    margin: 0 0 var(--space-md); line-height: 1.5;
}
.section-description {
    font-family: var(--font-serif); font-size: 1rem;
    color: var(--color-text-light); max-width: 600px;
    margin: 0 auto; line-height: 2.2;
}
.cta-button {
    display: inline-block; background-color: var(--color-accent); color: white;
    padding: 1rem 2.5rem; border-radius: 50px; font-weight: 500;
    font-family: var(--font-sans); transition: transform 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 0.05em;
}
.cta-button:hover { transform: translateY(-4px); box-shadow: 0 12px 25px rgba(22, 74, 243, 0.25); }
.cta-button-transparent {
    background-color: transparent; border: 1px solid white; padding: 1rem 2.5rem;
}
.cta-button-transparent:hover { background-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
.fade-in { 
    opacity: 0; transform: translateY(40px); 
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1); 
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ===============================================
   ★★★ コンセプトセクションの再々修正 ★★★
   =============================================== */
#concept { background-color: var(--color-background); }
#concept .section-header::after {
    content: ''; display: block; width: 60px; height: 1px;
    background: var(--color-gold); margin: 2rem auto 0;
}
#concept .intro-text { max-width: 700px; font-size: 1rem; color: var(--color-text-light); line-height: 2.2; }
.feature-list {
    display: flex; flex-direction: column;
    gap: var(--space-lg); /* ★ 上下の間隔を広げる */
    max-width: 800px; margin: var(--space-xl) auto 0;
}
.feature-card {
    position: relative;
    padding: 0 0 0 5rem; /* ★ 左側に余白を確保 */
}
/* ★★★ 英字のキーワードを ::before で表示 ★★★ */
.feature-card::before {
    content: attr(data-title);
    position: absolute;
    top: -0.2em;
    left: 0;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    writing-mode: vertical-rl; /* ★ 縦書きにする */
    text-orientation: mixed;
    opacity: 0.8;
}
.feature-content {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-md);
}
.feature-content h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem; font-weight: 500;
    margin: 0 0 var(--space-md) 0; line-height: 1.6;
    letter-spacing: 0.08em;
}
.feature-content p {
    font-size: 0.95rem; color: var(--color-text-light);
    margin: 0; line-height: 2.2;
}

/* ===============================================
   ★★★ 物件セクションを、よりシャープでスタイリッシュなデザインに ★★★
   =============================================== */
#rooms { 
    background-color: var(--color-subtle-bg); 
    padding-bottom: var(--space-section);
}
/* 位置がズレないように、コンテナの比率を固定 */
.map-container { 
    position: relative;
    width: 90%;
    max-width: 500px; 
    margin: 0 auto;
    /* ★★★ ここからが重要 ★★★ */
    aspect-ratio: 480 / 500; /* ★画像の縦横比（約0.96）をコンテナに設定 */
}

/* 画像をコンテナいっぱいに広げる */
.japan-map-image {
    position: absolute; /* ★追加 */
    top: 0;             /* ★追加 */
    left: 0;            /* ★追加 */
    width: 100%;
    height: 100%;       /* ★追加 */
    opacity: 0.6;
}
.japan-map-image { width: 100%; opacity: 0.6; }
.location-dot {
    position: absolute; width: 14px; height: 14px; background-color: var(--color-accent);
    border-radius: 50%; border: 3px solid white; box-shadow: 0 4px 15px rgba(22, 74, 243, 0.4);
    transform: translate(-50%, -50%); cursor: pointer; transition: transform 0.3s ease;
    animation: pulse 2.5s infinite;
}
.location-dot:hover { transform: translate(-50%, -50%) scale(1.4); animation-play-state: paused; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(22, 74, 243, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(22, 74, 243, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 74, 243, 0); }
}

.property-image-gallery {
    max-width: 900px; /* PCで見た時に広がりすぎないように */
    margin: 0 auto;   /* 中央揃え */
}

/* ギャラリー前のサブタイトルを左揃えに変更 */
.gallery-title {
    text-align: left; /* ★左揃え */
    font-family: var(--font-serif);
    font-size: 1rem; /* ★少しだけサイズを抑え、上品に */
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    letter-spacing: 0.1em; /* ★文字間を広げて優雅さを演出 */
}

/* 画像を並べるグリッド */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px; /* ★画像間の余白をさらに広げる */
}

/* 個々の画像アイテム */
.gallery-item {
    border-radius: 0; /* ★★★ 角丸を完全に廃止 ★★★ */
    overflow: hidden;
    border: 1px solid var(--color-border); /* ★写真に「額縁」のような繊細な線を追加 */
    box-shadow: none; /* ★影をなくし、よりミニマルでクリーンな印象に */
}

/* ★★★ ホバーエフェクトを完全に無効化 ★★★ */
.gallery-item:hover {
    transform: none; 
    box-shadow: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

/* ===============================================
   ★★★ 料金プランセクションのデザインを抜本的に変更 ★★★
   =============================================== */
#pricing { background-color: var(--color-background); }
.pricing-spec {
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: var(--space-md); 
    max-width: 800px;
    margin: 0 auto 0;;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}
.pricing-main .pricing-label {
    font-family: var(--font-sans);
    font-size: 0.9rem; color: var(--color-muted);
    margin: 0 0 var(--space-sm);
}
.pricing-main .pricing-price {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 8vw, 4.5rem);
    font-weight: 500; margin: 0; line-height: 1;
    color: var(--color-text);
}
.pricing-main .pricing-unit {
    font-size: 1rem; font-weight: 400;
    color: var(--color-muted); margin-left: var(--space-sm);
}
.pricing-details {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-md);
}
.pricing-features {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column;
    gap: 1.5rem;
}
.pricing-features li {
    font-family: var(--font-sans); display: flex;
    flex-direction: column; font-size: 0.9rem;
}
.pricing-features li strong {
    color: var(--color-muted);
    font-weight: 500; margin-bottom: 0.5rem;
}
.pricing-features li span {
    font-size: 1.1rem; color: var(--color-text); font-weight: 500;
}


/* ===============================================
   ★★★ こだわりセクションを「画面幅いっぱいの画像」形式に ★★★
   =============================================== */
#facts { 
    background-color: var(--color-subtle-bg); 
}

.facts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-section); 
}

.fact-item {
    /* 親要素が .container 内にあるため、このアイテム自体は幅が制限されている */
}

/* 画像エリア */
.fact-image {
    width: 100vw; /* ★ビューポート（画面）の幅いっぱいに設定 */
    max-width: 100vw; /* ★念のため最大幅も指定 */
    
    /* ★★★ 画面幅いっぱいに広げるためのテクニック ★★★ */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    aspect-ratio: 16 / 9; /* 比率を少しワイドに調整 */
    overflow: hidden;
    /* border-radius: 12px; */
    margin-bottom: var(--space-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.fact-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fact-item:hover img {
    transform: scale(1.05);
}

/* テキストエリア */
.fact-text {
    text-align: left;
    padding: 0; 
}

.fact-item h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 var(--space-md);
    letter-spacing: 0.05em;
}

.fact-item p {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 2.2;
    max-width: 600px;
    margin: 0 auto;
}
/* ★★★ PC用のメディアクエリは不要になったので削除 ★★★ */


/* ===============================================
   資料請求セクション
   =============================================== */
.brochure-section { padding: var(--space-xl) 0; background-color: var(--color-background); text-align: center; }
.brochure-hook { font-family: var(--font-serif); font-size: 1.5rem; color: var(--color-text); margin: 0 0 var(--space-sm); }
.brochure-main {
    font-family: var(--font-serif); font-size: 1rem; color: var(--color-text-light);
    line-height: 2.2; margin: 0 auto var(--space-lg); max-width: 550px;
}

/* ===============================================
   フッター
   =============================================== */
.footer {
    background-color: #1a1a1a; color: #a0a0a0;
    padding: var(--space-xs) 0; font-size: 0.8rem; line-height: 1.7;
}
.footer p { font-family: var(--font-sans); }
.footer-content {
    display: flex; flex-direction: column; justify-content: space-between;
    align-items: center; gap: var(--space-md); margin-bottom: var(--space-xs);
    text-align: center;
}
.footer .company-name { color: white; font-weight: 500; font-size: 0.9rem; margin-bottom: var(--space-xs); }
.footer .logo img { height: 20px; opacity: 0.8; }
.footer-bottom { border-top: 1px solid #444; padding-top: var(--space-md); text-align: center; }
.disclaimer-text { font-size: 0.7rem; color: #777; margin-bottom: var(--space-sm); }
.footer-bottom p:last-child { font-size: 0.75rem; color: #888; }


/* ===============================================
   PC表示 (768px以上)
   =============================================== */
@media (min-width: 768px) {
    .container { padding: 0 2.5rem; }
    .hero { text-align: left; align-items: flex-start; }
    .hero .container { max-width: 1200px; padding-left: 5%; }
    .hero-title { max-width: 800px; }
    .hero-cta { left: auto; right: 5%; transform: none; }
    .hero-footer { text-align: right; padding-right: 5%;}

    .section { padding: var(--space-section) 0; }
    
    #concept .feature-card {
        padding-left: 8rem;
    }
    #concept .feature-card::before {
        font-size: 1.3rem;
    }

    .pricing-spec {
        grid-template-columns: 1fr 0.8fr;
        align-items: center;
        gap: var(--space-xl);
    }
    .pricing-details {
        border-top: none;
        border-left: 1px solid var(--color-border);
        padding-top: 0;
        padding-left: var(--space-xl);
    }

    .footer { padding: var(--space-xl) 0; }
    .footer-content { flex-direction: row; text-align: left; }
    .footer-bottom { display: flex; justify-content: space-between; align-items: center; }
    .disclaimer-text { margin-bottom: 0; max-width: 60%; }
}

/* (モーダルのCSSは変更なし) */
/* ===============================================
   モーダル
   =============================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000; padding: 1rem;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease;
}
.modal-overlay.is-visible { opacity: 1; visibility: visible; }
.modal-content {
    position: relative; background-color: var(--color-subtle-bg);
    padding: var(--space-md); border-radius: 16px;
    max-width: 1000px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    transform: translateY(30px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    margin: auto;
}
.modal-overlay.is-visible .modal-content { transform: translateY(0) scale(1); }
.modal-close-button {
    position: absolute; top: 1rem; right: 1.5rem;
    font-size: 2.5rem; font-weight: 300; color: #aaa;
    background: none; border: none; cursor: pointer; line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}
.modal-close-button:hover { color: var(--color-text); transform: rotate(90deg); }
.modal-content .intro { text-align: center; margin-bottom: var(--space-md); }
.modal-content .intro h1 { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 500; margin-bottom: 1rem; margin-top:2rem}
.modal-content .intro p { font-family: var(--font-serif); color: var(--color-text-light); max-width: 500px; margin: 0; line-height: 1.8; }
.modal-content .pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.modal-content .pricing-card { 
    background-color: var(--color-background); 
    border: 1px solid var(--color-border); border-radius: 12px; 
    padding: 2rem; display: flex; flex-direction: column; text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.modal-content .pricing-card:hover { transform: translateY(-6px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
.modal-content .plan-name { font-family: var(--font-sans); font-weight: 500; font-size: 0.8rem; color: var(--color-gold); letter-spacing: 1.5px; text-transform: uppercase;}
.modal-content .plan-jp-name { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; margin-top: 0.25rem; }
.modal-content .card-price { font-family: var(--font-sans); font-size: 2.5rem; font-weight: 400; margin: 1.5rem 0; color: var(--color-text); }
.modal-content .card-price .currency { font-size: 1.5rem; vertical-align: super; margin-right: 4px;}
.modal-content .card-features { list-style: none; padding:0; margin-bottom: 2rem; flex-grow: 1; }
.modal-content .card-features li { font-family: var(--font-sans); display: flex; align-items: flex-start; margin-bottom: 1rem; color: var(--color-text-light); line-height: 1.7; font-size: 0.9rem;}
.modal-content .card-features li strong { color: var(--color-text); font-weight: 500; }
.modal-content .card-features li::before {
    content: '✓'; color: var(--color-gold); font-weight: bold; margin-right: 0.75rem; flex-shrink: 0;
}
.modal-content .card-button { display: block; width: 100%; padding: 1rem; border-radius: 8px; text-align: center; font-weight: 500; font-size: 1rem; transition: all 0.2s ease; font-family: var(--font-sans); background-color: var(--color-accent); color: white; border: 1px solid transparent;}
.modal-content .pricing-card.free-plan .card-button {
    background-color: transparent; border: 1px solid var(--color-border); color: var(--color-text);
}
.modal-content .pricing-card.free-plan .card-button:hover { background-color: var(--color-accent); border-color: var(--color-accent); color: white; }
.modal-content .card-button:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(22, 74, 243, 0.2); }
.modal-content img.gift-image { border-radius: 8px; margin-bottom: 1.5rem; }

@media (max-width: 768px) {
    .modal-overlay {
        /* 外側の余白を少しだけにする */
        padding: var(--space-sm);
    }

    .modal-content {
        /* 内側の余白をスマホ用に最適化する */
        padding: var(--space-xs);
    }
}