/*
Theme Name: GrandHome Demo
Author: PC Atelier / CIT
Description: 不動産コラム・お知らせサイト デモテンプレート
Version: 1.0
*/

/* =====================
   VARIABLES & RESET
===================== */
:root {
    --gold: #F6B300;
    --gold-light: #FFF8E1;
    --dark: #1C1C2E;
    --text: #333333;
    --muted: #777777;
    --border: #E8E8E8;
    --bg: #F8F8F5;
    --white: #FFFFFF;
    --radius: 4px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans JP', sans-serif; color: var(--text); background: var(--white); font-size: 15px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* =====================
   DEMO BANNER
===================== */
.demo-banner { background: var(--dark); color: var(--gold); text-align: center; padding: 7px; font-size: 12px; letter-spacing: 0.1em; font-weight: 700; }

/* =====================
   HEADER
===================== */
.site-header { background: var(--white); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.site-logo { display: flex; flex-direction: column; }
.logo-main { font-size: 22px; font-weight: 700; color: var(--dark); letter-spacing: 0.05em; }
.logo-main span { color: var(--gold); }
.logo-sub { font-size: 10px; color: var(--muted); letter-spacing: 0.08em; }
.site-nav { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.site-nav a { font-size: 14px; font-weight: 500; color: var(--dark); padding: 4px 0; border-bottom: 2px solid transparent; transition: border-color 0.2s; white-space: nowrap; }
.site-nav a:hover, .site-nav a.active { border-bottom-color: var(--gold); }
.header-cta { background: var(--gold); color: var(--dark) !important; padding: 8px 16px !important; border-radius: var(--radius); font-size: 13px; font-weight: 700; border-bottom: none !important; white-space: nowrap; }
.mobile-actions { display: none; align-items: center; gap: 8px; }
.nav-mail-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--gold); border-radius: 50%; font-size: 17px; color: var(--dark); text-decoration: none; }
.nav-toggle { background: none; border: none; font-size: 24px; color: var(--dark); cursor: pointer; padding: 6px; line-height: 1; display: flex; align-items: center; }

/* =====================
   HOME: HERO
===================== */
.hero { background: var(--dark); position: relative; overflow: hidden; padding: 100px 0 90px; }
.hero::before { content: ''; position: absolute; top: -80px; right: -80px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(246,179,0,0.12) 0%, transparent 70%); }
.hero::after { content: ''; position: absolute; bottom: -60px; left: 10%; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(246,179,0,0.07) 0%, transparent 70%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-label { display: inline-block; background: var(--gold); color: var(--dark); font-size: 11px; font-weight: 700; letter-spacing: 0.15em; padding: 4px 12px; border-radius: 2px; margin-bottom: 20px; text-transform: uppercase; }
.hero h1 { font-size: 40px; font-weight: 700; color: var(--white); line-height: 1.4; margin-bottom: 20px; letter-spacing: 0.02em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.9; margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 14px; }
.btn-primary { background: var(--gold); color: var(--dark); padding: 14px 32px; border-radius: var(--radius); font-size: 14px; font-weight: 700; transition: opacity 0.2s; display: inline-block; }
.btn-primary:hover { opacity: 0.88; }
.btn-outline { border: 2px solid rgba(255,255,255,0.3); color: var(--white); padding: 14px 32px; border-radius: var(--radius); font-size: 14px; font-weight: 500; transition: all 0.2s; display: inline-block; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.hero-image-wrapper { position: absolute; right: 0; top: 0; bottom: 0; width: 52%; overflow: hidden; mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.55) 22%, black 48%); -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.55) 22%, black 48%); }
.hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =====================
   HOME: SECTIONS
===================== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg); }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; }
.section-title { font-size: 26px; font-weight: 700; color: var(--dark); }
.section-title::after { content: ''; display: block; width: 40px; height: 4px; background: var(--gold); margin-top: 8px; }
.section-desc { font-size: 13px; color: var(--muted); margin-top: 8px; }
.section-more { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; padding-bottom: 4px; border-bottom: 1px solid var(--border); transition: all 0.2s; }
.section-more:hover { color: var(--gold); border-color: var(--gold); }

/* =====================
   ARTICLE CARDS (共通)
===================== */
.article-card { background: var(--white); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.article-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); transform: translateY(-2px); }
.card-thumb-placeholder { width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 12px; color: rgba(255,255,255,0.4); letter-spacing: 0.05em; }
.card-body { padding: 20px; }
.card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-cat { background: var(--gold); color: var(--dark); font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 2px; }
.card-date { font-size: 12px; color: var(--muted); }
.card-title { font-size: 15px; font-weight: 700; color: var(--dark); line-height: 1.5; margin-bottom: 8px; }
.card-excerpt { font-size: 13px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.card-link { font-size: 13px; font-weight: 700; color: var(--gold); }
.card-link::after { content: ' →'; }

/* =====================
   HOME: FEATURED GRID
===================== */
.featured-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.featured-grid .card-main { grid-column: 1 / 3; display: grid; grid-template-columns: 1fr 1fr; }
.card-main .card-thumb-placeholder { aspect-ratio: unset; height: 100%; min-height: 220px; }
.card-main .card-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.card-main .card-title { font-size: 19px; margin-bottom: 12px; }
.side-cards { display: flex; flex-direction: column; gap: 24px; }
.article-card.small .card-thumb-placeholder { aspect-ratio: 16/7; }

/* =====================
   HOME: CATEGORY GRID
===================== */
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.category-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 8px; padding: 24px 12px 20px; text-align: center; cursor: pointer; transition: all 0.2s; display: block; }
.category-card:hover { border-color: var(--gold); background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(246,179,0,0.15); }
.cat-icon { font-size: 32px; margin-bottom: 10px; display: block; }
.cat-name { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.cat-count-badge { font-size: 11px; color: var(--muted); }

/* =====================
   NEWS LIST (共通)
===================== */
.news-list { list-style: none; }
.news-item { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.news-item:first-child { border-top: 1px solid var(--border); }
.news-date { font-size: 13px; color: var(--muted); white-space: nowrap; }
.news-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 2px; white-space: nowrap; }
.news-tag.info { background: var(--gold); color: var(--dark); }
.news-tag.important { background: #D32F2F; color: white; }
.news-tag.event { background: var(--dark); color: white; }
.news-title { font-size: 14px; }
.news-title:hover { color: var(--gold); }

/* =====================
   HOME: CTA SECTION
===================== */
.cta-section { background: var(--gold); padding: 72px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-text h2 { font-size: 28px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.cta-text p { font-size: 14px; color: rgba(28,28,46,0.7); line-height: 1.8; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; min-width: 240px; }
.btn-dark { background: var(--dark); color: var(--white); padding: 16px 32px; border-radius: var(--radius); font-size: 15px; font-weight: 700; text-align: center; transition: opacity 0.2s; display: block; }
.btn-dark:hover { opacity: 0.85; }
.btn-ghost-dark { border: 2px solid rgba(28,28,46,0.3); color: var(--dark); padding: 14px 32px; border-radius: var(--radius); font-size: 14px; font-weight: 500; text-align: center; transition: border-color 0.2s; display: block; }
.btn-ghost-dark:hover { border-color: var(--dark); }

/* =====================
   COLUMN LIST: PAGE TITLE
===================== */
.page-title-section { background: var(--bg); padding: 40px 0; border-bottom: 1px solid var(--border); }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb span { margin: 0 6px; }
.page-title-section h1 { font-size: 28px; font-weight: 700; color: var(--dark); }
.page-title-section h1::after { content: ''; display: block; width: 48px; height: 4px; background: var(--gold); margin-top: 10px; margin-bottom: 12px; }
.page-title-section p { font-size: 14px; color: var(--muted); }

/* =====================
   COLUMN LIST: CATEGORY NAV
===================== */
.category-nav { padding: 18px 0; border-bottom: 1px solid var(--border); }
.category-nav-inner { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-btn { padding: 6px 16px; border-radius: 20px; font-size: 13px; border: 1.5px solid var(--border); color: var(--muted); cursor: pointer; transition: all 0.2s; background: var(--white); }
.cat-btn.active, .cat-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); font-weight: 700; }

/* =====================
   COLUMN LIST: LAYOUT
===================== */
.main-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding: 48px 0 80px; align-items: start; }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.article-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.article-card.featured .card-thumb-placeholder { aspect-ratio: unset; height: 100%; min-height: 240px; }
.article-card.featured .card-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.article-card.featured .card-title { font-size: 20px; margin-bottom: 12px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 14px; color: var(--text); cursor: pointer; }
.page-btn.active { background: var(--gold); border-color: var(--gold); color: var(--dark); font-weight: 700; }

/* =====================
   SIDEBAR (共通)
===================== */
.sidebar { position: sticky; top: 90px; }
.sidebar-widget { margin-bottom: 36px; }
.widget-title { font-size: 15px; font-weight: 700; color: var(--dark); padding-bottom: 10px; border-bottom: 2px solid var(--gold); margin-bottom: 16px; }
.cat-list { list-style: none; }
.cat-list li { border-bottom: 1px solid var(--border); }
.cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px; font-size: 14px; transition: color 0.2s; }
.cat-list a:hover { color: var(--gold); }
.cat-count { font-size: 12px; color: var(--muted); background: var(--bg); padding: 2px 8px; border-radius: 10px; }
.news-sidebar-list { list-style: none; }
.news-sidebar-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.news-sidebar-item:last-child { border-bottom: none; }
.news-sidebar-date { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.news-sidebar-title { font-size: 13px; line-height: 1.5; display: block; }
.news-sidebar-title:hover { color: var(--gold); }
.cta-banner { background: var(--dark); color: var(--white); border-radius: 6px; padding: 24px; text-align: center; }
.cta-banner h3 { font-size: 16px; margin-bottom: 8px; }
.cta-banner p { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.cta-btn { display: block; background: var(--gold); color: var(--dark); padding: 10px; border-radius: var(--radius); font-size: 13px; font-weight: 700; }

/* =====================
   ARTICLE DETAIL: HERO
===================== */
.article-hero { position: relative; height: 420px; overflow: hidden; background: var(--dark); }
.article-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.55; }
.article-hero-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; background: linear-gradient(to top, rgba(28,28,46,0.85) 0%, transparent 60%); }
.article-hero-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hero-cat { background: var(--gold); color: var(--dark); font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 2px; }
.hero-date { font-size: 13px; color: rgba(255,255,255,0.7); }
.article-hero h1 { font-size: 30px; font-weight: 700; color: var(--white); line-height: 1.45; max-width: 760px; }
.breadcrumb-bar { background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 0; }
.breadcrumb-bar .breadcrumb { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb-bar .breadcrumb a:hover { color: var(--gold); }

/* =====================
   ARTICLE DETAIL: BODY
===================== */
.article-body { min-width: 0; }
.toc { background: var(--gold-light); border: 1px solid rgba(246,179,0,0.3); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 40px; }
.toc-title { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.toc ol { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.toc li { font-size: 13px; }
.toc a { color: var(--dark); }
.toc a:hover { color: var(--gold); text-decoration: underline; }
.article-content { line-height: 1.9; }
.article-content p { margin-bottom: 24px; font-size: 15px; color: var(--text); }
.article-content h2 { font-size: 22px; font-weight: 700; color: var(--dark); margin: 52px 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--gold); display: flex; align-items: center; gap: 10px; }
.article-content h2 .h2-num { background: var(--gold); color: var(--dark); font-size: 13px; font-weight: 700; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.article-content h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin: 36px 0 14px; padding-left: 12px; border-left: 3px solid var(--gold); }
.article-content ul, .article-content ol { margin: 0 0 24px 20px; }
.article-content li { font-size: 15px; margin-bottom: 8px; line-height: 1.8; }
.article-content ul li::marker { color: var(--gold); }
.article-content blockquote { background: var(--bg); border-left: 4px solid var(--gold); margin: 28px 0; padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 14px; color: var(--muted); font-style: italic; line-height: 1.8; }
.info-box { background: var(--gold-light); border: 1px solid rgba(246,179,0,0.4); border-radius: 6px; padding: 20px 24px; margin: 28px 0; }
.info-box-title { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.info-box ul { margin: 0 0 0 18px; }
.info-box li { font-size: 14px; margin-bottom: 6px; }
.article-img-wrapper { margin: 32px 0; }
.article-img-placeholder { width: 100%; height: 260px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: rgba(255,255,255,0.5); border-radius: 6px; }
.img-caption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }
.share-bar { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--border); }
.share-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.share-buttons { display: flex; gap: 10px; }
.share-btn { padding: 8px 20px; border-radius: var(--radius); font-size: 13px; font-weight: 700; border: 1.5px solid var(--border); color: var(--text); cursor: pointer; background: var(--white); }
.share-btn.x { background: #000; color: #fff; border-color: #000; }
.share-btn.line { background: #06C755; color: #fff; border-color: #06C755; }
.share-btn.copy:hover { border-color: var(--gold); color: var(--gold); }
.author-box { display: flex; gap: 20px; align-items: flex-start; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 24px; margin-top: 36px; }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--gold) 0%, #C98E00 100%); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.author-name { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.author-role { font-size: 12px; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.author-bio { font-size: 13px; color: var(--muted); line-height: 1.7; }
.related-section { margin-top: 56px; padding-top: 36px; border-top: 2px solid var(--gold); }
.related-title { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; display: block; }
.related-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.09); transform: translateY(-2px); }
.related-thumb { width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 11px; color: rgba(255,255,255,0.4); }
.related-body { padding: 14px; }
.related-cat { font-size: 10px; font-weight: 700; background: var(--gold); color: var(--dark); padding: 1px 8px; border-radius: 2px; display: inline-block; margin-bottom: 6px; }
.related-ttl { font-size: 13px; font-weight: 700; color: var(--dark); line-height: 1.5; }
.related-date { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* =====================
   FOOTER
===================== */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.8); padding: 52px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-main { color: var(--white); display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.9; color: rgba(255,255,255,0.55); }
.footer-nav h4 { font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.35); }

/* =====================
   PRIVACY / STATIC PAGES
===================== */
.privacy-body h2 { font-size: 17px; font-weight: 700; color: var(--dark); border-left: 3px solid var(--gold); padding-left: 12px; margin: 36px 0 12px; }
.privacy-body p, .privacy-body ul { line-height: 1.9; margin-bottom: 16px; }
.privacy-body ul { padding-left: 24px; }
.privacy-body ul li { margin-bottom: 6px; }
.privacy-body ul li::marker { color: var(--gold); }

/* =====================
   COMPANY PAGE
===================== */
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.company-table th { width: 160px; font-weight: 700; color: var(--dark); background: var(--bg); white-space: nowrap; }
.company-table td { color: var(--text); line-height: 1.8; }
.company-table a { color: var(--gold); }
@media (max-width: 768px) {
    .company-table th { display: block; width: 100%; border-bottom: none; padding-bottom: 4px; }
    .company-table td { display: block; width: 100%; padding-top: 4px; }
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
    /* ハンバーガーメニュー */
    .mobile-actions { display: flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: 73px; left: 0; right: 0;
        background: var(--white);
        border-bottom: 3px solid var(--gold);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 6px 16px rgba(0,0,0,0.1);
        z-index: 99;
    }
    .site-nav.nav-open { display: flex; }
    .site-nav a { padding: 14px 24px; border-bottom: 1px solid var(--border); font-size: 15px; }
    .site-nav a:last-child { border-bottom: none; }
    .header-cta { margin: 8px 16px; text-align: center; padding: 12px; border-radius: var(--radius); }

    .hero-inner { grid-template-columns: 1fr; }
    .hero-image-wrapper { display: none; }
    .hero h1 { font-size: 28px; }
    .main-layout { grid-template-columns: 1fr; }
    .article-grid { grid-template-columns: 1fr; }
    .article-card.featured { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr; }
    .featured-grid .card-main { grid-column: auto; grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .related-grid { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; }
    .footer-inner { grid-template-columns: 1fr; }
}
