@charset "UTF-8";
/*
Theme Name:  yStandard Child
Template:    ystandard
Description: ERA LIXIL不動産ショップ 阿波住 集客特化型カスタマイズ（完全統合版）
*/

/* ==========================================================================
   1. デザインシステム（共通変数）
   ========================================================================== */
:root {
    --era-blue: #003366; 
    --era-accent: #f39800;
    --bg-base: #f8f9fa;
    --text-main: #333333;
}

/* ==========================================================================
   2. 全体・タイポグラフィ
   ========================================================================== */
body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* リンク色 */
a { color: var(--era-blue); transition: 0.3s; }
a:hover { opacity: 0.7; text-decoration: none; }

/* ==========================================================================
   3. 以前から設定されていたスタイル（移行・統合分）
   ========================================================================== */
/* フォーム・ポリシー関連 */
.hissu { color: red; font-size: 0.8rem; }

.policy {
    font-size: 0.8rem;
    box-sizing: border-box;
    overflow: auto;
    height: 200px;
}

/* 概要テーブル */
.gaiyo_table table tr td { border-color: #CCCDC8; }
.gaiyo_table table tr td:nth-of-type(1) { 
    text-align: center; 
    background-color: #CEECFD; 
}

/* VKボタンカスタマイズ */
.vk_button .vk_button_link.btn, 
.editor-styles-wrapper .vk_button .vk_button_link.btn .satei_button {
    padding: 2rem; 
    font-size: 2rem;
}

/* recaptcha v3 非表示・ポリシー表示 */
.recaptcha_policy {
    padding: 0; margin: 0; text-align: center; font-size: 11px !important; color: #444 !important;
}
.recaptcha_policy a {
    font-size: 11px !important; color: #111 !important;
}
.grecaptcha-badge { visibility: hidden; }

/* フッター・ブランディング調整 */
.footer-poweredby { display: none; }
.footer-main { padding-top: 1em; }
.site-branding .site-description { margin: 7px 0 0 50px; }

/* ==========================================================================
   4. 分譲問い合わせボタン（専用パーツ）
   ========================================================================== */
a.contact-button-bunjo {
    display: block;
    max-width: 80%;
    margin: 0 auto;
    padding: 1.5rem 3.0rem;
    background-color: #ff9633;
    border-radius: 8px;
    box-sizing: border-box;
    text-decoration: none;
    transition: 0.3s;
}
a.contact-button-bunjo span.bl__text {
    display: block;
    position: relative;
    color: #fff;
    font-size: 30px;
    text-align: center;
    padding-left: 30px;
}
a.contact-button-bunjo span.bl__text:before {
    content: ''; width: 20px; height: 20px; background: #ffffff; border-radius: 50%;
    position: absolute; top: 0; left: 0; bottom: 0; margin: auto;
}
a.contact-button-bunjo span.bl__text:after {
    content: ''; width: 8px; height: 8px; border-top: 3px solid #dd7600; border-right: 3px solid #dd7600;
    box-sizing: border-box; transform: rotate(45deg);
    position: absolute; top: 0; left: 5px; bottom: 0; margin: auto; transition: 0.3s;
}
a.contact-button-bunjo:hover { background-color: #ff7300; }
a.contact-button-bunjo:hover span.bl__text:after { border-top: 3px solid #ff7300; border-right: 3px solid #ff7300; }

@media (max-width: 736px) {
    a.contact-button-bunjo { max-width: 280px; padding: 1.5rem 2.0rem; }
    a.contact-button-bunjo span.bl__text { font-size: 14px; }
}

/* ==========================================================================
   5. 新規：集客サイト用モダンデザイン（yStandard拡張）
   ========================================================================== */
/* ヘッダー上部にERAカラーのアクセントライン */
.ys-header {
    border-top: 4px solid var(--era-blue);
    padding: 20px 0;
}

/* カード型レイアウト（施工事例・準備中物件用） */
.custom-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 24px;
    transition: transform 0.3s;
}
.custom-card:hover { transform: translateY(-5px); }

.works-spec-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.gaiyo_table table tr td {
    padding: 12px 15px;
    border: 1px solid #eee;
}

.gaiyo_table table tr td:first-child {
    background-color: #f1f5f9; /* ERAブルーの超薄い版 */
    font-weight: bold;
    color: var(--era-blue);
}

/* ==========================================================================
   施工事例・スペック表の最終調整
   ========================================================================== */
/* メインコンテンツ全体の幅を安定させる */
.single-works .content__wrap {
    display: flex;
    flex-wrap: wrap;
}

/* タイトルや本文の領域が潰れないようにする */
.single-works .content__main {
    width: 100%;
    flex: 1;
    min-width: 0; /* 文字の突き抜け防止 */
}

/* スペック表のセクション */
.works-spec-section {
    clear: both; 
    display: block;
    width: 100%; /* 横幅いっぱい */
    margin: 50px 0;
    padding: 30px;
    background: #fff;
    border: 1px solid #eee;
    box-sizing: border-box; /* パディングを含める */
}

.works-spec-section table {
    width: 100% !important;
    margin: 0 auto;
    border-collapse: collapse;
}

/* 左側のラベル列の背景色をERAブルー系統に（視認性アップ） */
.works-spec-section table td:first-child {
    background-color: #f1f7fa !important;
    color: var(--era-blue) !important;
    width: 30%;
    font-weight: bold;
    text-align: center;
}

/* リンクボタンを中央寄せ */
.works-spec-section .btn-cv-wrap {
    text-align: center;
    margin-top: 20px;
}

/* ギャラリー画像の装飾 */
.wp-block-gallery .wp-block-image img {
    border-radius: 8px; /* 角を少し丸く */
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* 軽い影 */
    transition: transform 0.3s ease;
}

.wp-block-gallery .wp-block-image img:hover {
    transform: scale(1.02); /* ホバーで少し大きく */
}

/* サイドバー全体のベース */
.sidebar-awa {
    width: 300px;
    flex-shrink: 0;
    margin-left: 30px;
}

/* 各ボックス：白ベースで清潔感を出す */
.sidebar-box {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px; /* 角を少し丸く */
    overflow: hidden;
    border: 1px solid #e1e1e1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* タイトル：ベタ塗りではなく、左線などのアクセントにする */
.sidebar-title {
    background: #f8f8f8; /* 薄いグレーで品良く */
    color: #333 !important;
    padding: 15px;
    font-size: 0.95rem;
    font-weight: bold;
    margin: 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

/* タイトルの左側に赤い棒を入れる */
.sidebar-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 1.2em;
    background: #e60012; /* ERAレッドをここだけに使う */
    margin-right: 10px;
    border-radius: 2px;
}

.sidebar-content {
    padding: 20px;
}

/* メインボタン：ここぞという場所で赤を使う */
.btn-primary-awa {
    display: block;
    background: #e60012;
    color: #fff !important;
    padding: 14px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    transition: 0.3s;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.btn-primary-awa:hover {
    background: #c50010;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230,0,18,0.2);
}

/* 施工事例のリスト：線を細くしてスッキリ */
.side-work-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    text-decoration: none;
    color: #444 !important;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.side-work-item:last-child {
    border-bottom: none;
}

.side-work-thumb {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.side-work-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.5;
}

/* スタッフ紹介エリア：ここもガチャガチャさせない */
.sidebar-staff-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
}

.sidebar-staff-card a {
    display: inline-block;
    margin-top: 10px;
    color: #e60012;
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid #e60012;
}

/* トップページ施工事例グリッド */
.top-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.top-work-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.top-work-card:hover {
    transform: translateY(-5px);
}

.top-work-card a {
    text-decoration: none;
    color: inherit;
}

.top-work-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.top-work-body {
    padding: 20px;
}

.top-work-body h3 {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    font-weight: bold;
    line-height: 1.5;
    height: 3em; /* 2行分確保して高さを揃える */
    overflow: hidden;
}

.top-work-meta {
    font-size: 0.85rem;
    color: #e60012; /* ERAレッド */
    font-weight: bold;
    margin: 0;
}

/* --- トップページ：ヒーローエリア --- */
.top-hero {
    height: 70vh;
    min-height: 400px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('メイン画像のURLをここに') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.top-hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.btn-top-cta {
    display: inline-block;
    background: #e60012;
    color: #fff !important;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(230,0,18,0.3);
}

/* --- セクションヘッダー --- */
.top-section { margin-bottom: 80px; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
.section-title {
    font-size: 1.5rem;
    margin: 0;
    position: relative;
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #e60012;
}

/* --- 自社分譲地プロモーション --- */
.top-bunjo-promo {
    background: #fdf2f2;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px dashed #e60012;
}
.top-bunjo-promo h2 { font-size: 1.4rem; margin-bottom: 15px; }

/* --- フルワイドヒーローエリア --- */
.top-hero-full {
    position: relative;
    width: 100%;
    height: 85vh; /* 画面の85%の高さ */
    min-height: 500px;
    background: url('メイン画像のURL') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 画像の上に少し影を落として文字を読みやすくする */
.top-hero-vignette {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
}

.top-hero-text {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
}

.top-sub-copy {
    display: block;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    margin-bottom: 15px;
    font-weight: 500;
}

.top-hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); /* スマホ〜PCで可変 */
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 30px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* --- セクションタイトル周り --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.view-all {
    font-size: 0.8rem;
    font-weight: bold;
    color: #888;
    text-decoration: none;
    letter-spacing: 0.1em;
}

.view-all:hover { color: #e60012; }

/* スライダー全体のコンテナ */
.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 各スライドの共通設定 */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0; /* 最初は透明 */
    animation: crossfade 15s infinite; /* 15秒かけて1ループ */
}

/* 各スライドの開始タイミングをずらす (15秒を3枚で割る) */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }

/* クロスフェードのアニメーション設定 */
@keyframes crossfade {
    0% { opacity: 0; transform: scale(1); } /* 開始 */
    10% { opacity: 1; }                      /* 表示完了 */
    33% { opacity: 1; }                      /* 表示キープ */
    43% { opacity: 0; transform: scale(1.05); } /* 消えながら少しズーム（高級感） */
    100% { opacity: 0; }                     /* 待機 */
}

/* ヒーローエリア内の文字がスライドの上にくるように調整 */
.top-hero-text {
    z-index: 10;
}
.top-hero-vignette {
    z-index: 5;
}