/*
Theme Name: ハウスドゥ千住曙町
Description: 足立区の不動産売買・賃貸専門サイト。SEO最適化済みカスタムテーマ
Version: 1.0
Author: ハウスドゥ千住曙町
Text Domain: housedo-theme
*/

/* ==========================================================================
   SEO対策：Core Web Vitals最適化
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* パフォーマンス最適化 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    font-display: swap; /* フォント読み込み最適化 */
}

/* SEO対策：適切な見出し階層 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

/* アクセシビリティ対策 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* パフォーマンス：画像最適化 */
img {
    max-width: 100%;
    height: auto;
    loading: lazy; /* 遅延読み込み */
}

/* ヘッダー */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 5px;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.phone-btn {
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 14px;
}

.phone-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.contact-btn {
    background: #ff6b35;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 14px;
}

.contact-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

/* メインコンテンツ */
.main-content {
    margin-top: 80px;
}

/* ヒーローセクション */
.hero {
    background: url('img/FV.jpg') center/cover no-repeat;
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-50px) translateY(-50px); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(12 12 12);
}

.hero p {
    font-size: 1.5rem;!important
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 2px 2px 4px rgba(0, 0, 0);
}

.badge {
	background: rgb(0 69 255 / 64%);
    padding: 30px 40px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 20px;
    backdrop-filter: blur(10px);
	font-size: 1.1rem;
}

/* ご紹介物件セクション */
.properties {
    padding: 80px 20px;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #ff6b35;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.properties-slider {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.properties-track {
    display: flex;
    animation: slide 25s linear infinite;
    width: calc(300px * 10);
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 5)); }
}

.property-card {
    width: 280px;
    margin-right: 20px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

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

.property-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

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

.property-info {
    padding: 20px;
}

.property-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.property-details {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* おすすめポイントセクション */
.features {
    padding: 120px 20px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgb(53 78 255 / 21%) 0%, #00000000 50%), radial-gradient(circle at 80% 80%, rgb(74 105 226 / 32%) 0%, #00000000 50%);
}

.features-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.features .section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 80px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.features .section-title::after {
    display: none;
}

.section-title-gradient {
    background: linear-gradient(130deg, #6335ff 0%, #1eabf7 50%, #4435ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.features-grid {
    display: grid;
    gap: 40px;
}

.feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 40px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.feature-card:nth-child(even) {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.feature-card:nth-child(even) > * {
    direction: ltr;
}

.feature-card img {
    width: 100%!important;
    height: auto;
}

.feature-content {
    padding: 20px;
}

.feature-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.feature-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #333;
}

.feature-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

/* よくあるご質問 */
.faq {
    padding: 80px 20px;
    background: #f8f9fa;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 20px;
    background: #2f93e7;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #357abd;
}

.faq-answer {
    padding: 20px;
    background: white;
    display: none;
    color: #666;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-toggle {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

/* 店舗・アクセス情報 */
.store-info {
    padding: 80px 20px;
    background: white;
}

.store-content {
    max-width: 1200px;
    margin: 0 auto;
}

.store-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.store-image {
    position: relative;
}

.store-photo {
    width: 100%;
    height: 250px;
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 10px;
}

.store-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-btn {
    width: 100%;
    background: #ff6b35;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.store-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.store-details {
    padding: 20px 0;
}

.store-name {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.store-info-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.info-label {
    font-weight: bold;
    color: #666;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 5px;
    text-align: center;
}

.info-value {
    color: #333;
    padding-left: 15px;
}

.map-container {
    margin: 40px 0;
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* キャンペーンバナー */
.campaign-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%), linear-gradient(135deg, #fcff03 0%, #ffaa00 100%);
    border-radius: 24px;
    margin: 60px auto;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3), 
                0 8px 16px rgba(0, 0, 0, 0.1);
    width: 90%;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: campaignFloat 6s ease-in-out infinite;
}

@keyframes campaignFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.campaign-content {
    display: grid;
    grid-template-columns: 50px 1fr 400px;
    align-items: center;
    padding: 30px;
    position: relative;
    z-index: 2;
}

.campaign-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #444444;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.campaign-subtitle {
    font-size: 1.9rem;
    font-weight: 900;
    background: linear-gradient(45deg, #e83535, #41428b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    text-shadow: none;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

.reserve-btn {
    background: linear-gradient(135deg, #ff3e3e 0%, #ff4400 100%);
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
}

.reserve-btn:hover {
    background: linear-gradient(135deg, #ee5a24 0%, #ff6b6b 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.5);
}

/* 来店までの流れ */
.visit-flow {
    margin-top: 60px;
}

.flow-title {
    text-align: center;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 40px;
}

.flow-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.flow-step {
    background: white;
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    width: 180px;
    position: relative;
    transition: all 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.flow-step.final {
    background: #095bf4;
    color: #fff400;
    border-color: #333;
}

.step-number {
    background: #ff6b35;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 15px;
}

.flow-step.final .step-number {
    background: white;
    color: #333;
}

.step-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 15px;
}

.flow-step.final .step-desc {
    color: #ccc;
}

.step-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
}

.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

span.stepsize {
    font-size: 1rem;
}

/* お問い合わせフォーム */
.contact-form {
    padding: 80px 20px;
    background: url(https://housedo-senjyuakebono.com/img/a.jpg) center / cover no-repeat;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    position: relative;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 2px;
}

.form-subtitle {
    color: #7f8c8d;
    font-size: 16px;
    margin-top: 15px;
}

/* フッター */
.footer {
    background: #333;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    margin-left: auto;
}

.modal-body {
    padding: 20px;
    display: flex;
    gap: 20px;
}

.modal-image {
    width: 400px;
    height: 300px;
    border-radius: 0;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.nav-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: white;
    transform: scale(1.1);
}

.nav-btn-prev::after {
    content: '‹';
    font-size: 24px;
    font-weight: bold;
}

.nav-btn-next::after {
    content: '›';
    font-size: 24px;
    font-weight: bold;
}

.modal-info {
    flex: 1;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.modal-details {
    color: #666;
    line-height: 1.6;
}

.sp-only {
    display: none;
}

/* SEO最適化：スクロールバー */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55a2b;
}

/* パフォーマンス最適化：アニメーション */
.properties-track:hover {
    animation-play-state: paused;
}

.property-card:active {
    transform: translateY(-5px) scale(0.98);
}

/* レスポンシブ対応 */
@media (max-width: 968px) {
    .sp-only {
        display: inline;
    }

    .feature-card {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .feature-card:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .store-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .campaign-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }

    .flow-steps {
        flex-direction: column;
        gap: 20px;
    }

    .flow-step {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0;
    }

    .logo img {
        height: 30px;
    }

    .header-buttons {
        gap: 10px;
    }

    .phone-btn, .contact-btn {
        padding: 8px 15px;
        font-size: 10px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

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

    .properties-track {
        animation-duration: 20s;
    }

    .property-card {
        width: 250px;
    }

    .features {
        padding: 80px 20px;
    }

    .features .section-title {
        font-size: 2rem;
        margin-bottom: 50px;
    }

    .feature-card {
        padding: 20px;
        gap: 30px;
    }

    .feature-title {
        font-size: 1.5rem;
    }

    .feature-description {
        font-size: 1rem;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-image {
        width: 100%;
        height: 250px;
    }

    .info-row {
        grid-template-columns: 100px 1fr;
    }

    .info-label {
        font-size: 0.9rem;
        padding: 6px 8px;
    }

    .flow-title {
        font-size: 1.1rem;
    }

    .form-container {
        padding: 30px 20px;
        margin: 10px;
    }

    .form-title {
        font-size: 24px;
    }

    .campaign-banner {
        width: 95%;
    }

    .campaign-content {
        padding: 20px;
    }

    .campaign-title {
        font-size: 1.2rem;
    }

    .campaign-subtitle {
        font-size: 1.4rem;
    }
}