/*
Theme Name: DEMO HOME
Description: 注文住宅会社向けデモテーマ(エルクホームズ様サイトを参考にした構成)。モデルハウス・イベント情報・施工実例・SEOコラムをTOPページに表示します。
Version: 1.1.0
Author: 一括マーケティング
Text Domain: demo-home
*/

:root {
	--c-text: #333330;
	--c-muted: #8a877e;
	--c-bg: #fdfcfa;
	--c-bg-alt: #f4f2ec;
	--c-green: #27563e;
	--c-green-dark: #1d4230;
	--c-wood: #a3794f;
	--c-line: #e4e0d5;
	--ff-serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;
	--ff-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--ff-sans); color: var(--c-text); background: var(--c-bg); line-height: 1.9; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.inner { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(253, 252, 250, .96); border-bottom: 1px solid var(--c-line); backdrop-filter: blur(6px); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.site-logo { font-family: var(--ff-serif); font-size: 25px; font-weight: 700; letter-spacing: .1em; color: var(--c-green); }
.site-logo small { display: block; font-family: var(--ff-sans); font-size: 10px; color: var(--c-muted); letter-spacing: .22em; font-weight: 400; }
.gnav ul { display: flex; gap: 26px; list-style: none; }
.gnav a { font-size: 14px; letter-spacing: .05em; padding: 8px 0; }
.gnav a:hover { color: var(--c-green); }
.header-cta { background: var(--c-green); color: #fff; padding: 11px 24px; border-radius: 999px; font-size: 13px; letter-spacing: .1em; }
.header-cta:hover { background: var(--c-green-dark); color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 82vh; display: flex; align-items: flex-end; overflow: hidden; background: #ddd5c6 center / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 30, 22, .55), rgba(20, 30, 22, 0) 55%); }
.hero .inner { position: relative; z-index: 2; padding-bottom: 72px; }
.hero-copy { font-family: var(--ff-serif); font-size: clamp(30px, 4.6vw, 50px); font-weight: 600; letter-spacing: .14em; line-height: 1.7; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.hero-sub { margin-top: 14px; font-size: 15px; letter-spacing: .16em; color: #f2eee5; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero-btns { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* news bar */
.news-bar { background: var(--c-green); color: #fff; }
.news-bar .inner { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; font-size: 13.5px; }
.news-bar .label { font-family: var(--ff-serif); letter-spacing: .3em; font-size: 14px; border-right: 1px solid rgba(255,255,255,.4); padding-right: 24px; }
.news-bar a { color: #fff; }
.news-bar a:hover { text-decoration: underline; }

.btn { display: inline-block; padding: 14px 38px; border-radius: 999px; font-size: 14px; letter-spacing: .12em; transition: .25s; }
.btn-primary { background: var(--c-green); color: #fff; }
.btn-primary:hover { background: var(--c-green-dark); }
.btn-outline { border: 1px solid var(--c-green); color: var(--c-green); background: rgba(255,255,255,.6); }
.btn-outline:hover { background: var(--c-green); color: #fff; }
.hero .btn-outline { border-color: #fff; color: #fff; background: rgba(255,255,255,.12); }
.hero .btn-outline:hover { background: #fff; color: var(--c-green); }
.btn:hover { transform: translateY(-2px); }

/* ---------- sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--c-bg-alt); }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head .en { display: block; font-family: var(--ff-serif); font-size: 26px; letter-spacing: .28em; color: var(--c-green); text-transform: uppercase; margin-bottom: 6px; }
.sec-head h2 { font-size: 15px; font-weight: 500; letter-spacing: .18em; color: var(--c-muted); }
.sec-lead { text-align: center; font-size: 14.5px; margin: -28px 0 44px; color: var(--c-text); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(60, 70, 50, .14); }
.card-thumb { aspect-ratio: 4/3; background: linear-gradient(135deg, #d8d2c2, #b0a586); position: relative; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); }
.card-badge { position: absolute; top: 12px; left: 12px; background: var(--c-green); color: #fff; font-size: 11px; letter-spacing: .1em; padding: 4px 12px; border-radius: 3px; }
.card-body { padding: 20px 22px 24px; flex: 1; }
.card-body h3 { font-size: 15.5px; font-weight: 600; line-height: 1.7; margin-bottom: 8px; }
.card-meta { font-size: 12.5px; color: var(--c-muted); line-height: 1.8; }
.card-meta span { display: inline-block; margin-right: 12px; }
.card-tags { font-size: 12px; color: var(--c-green); margin-top: 8px; line-height: 1.7; }
.card-owner { font-size: 12.5px; color: var(--c-muted); margin-bottom: 6px; }
.card-date { font-size: 12px; color: var(--c-wood); letter-spacing: .08em; margin-bottom: 6px; }
.more-wrap { text-align: center; margin-top: 46px; }

/* event list */
.event-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 960px; margin: 0 auto; }
.event-item { display: flex; gap: 0; background: #fff; border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; transition: .2s; }
.event-item:hover { box-shadow: 0 10px 24px rgba(60, 70, 50, .12); transform: translateY(-3px); }
.event-thumb { width: 38%; min-height: 150px; background: linear-gradient(135deg, #d8d2c2, #b0a586); position: relative; }
.event-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-body { flex: 1; padding: 18px 20px; }
.event-badges { margin-bottom: 8px; }
.event-badges span { display: inline-block; font-size: 11px; letter-spacing: .08em; padding: 3px 10px; border-radius: 3px; margin-right: 6px; }
.badge-open { background: var(--c-green); color: #fff; }
.badge-reserve { background: #fff; border: 1px solid var(--c-green); color: var(--c-green); }
.event-body h3 { font-size: 15px; line-height: 1.7; margin-bottom: 6px; }
.event-body .card-meta { font-size: 12.5px; }

/* about */
.about { background: var(--c-bg-alt); }
.about .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about h2 { font-family: var(--ff-serif); font-size: clamp(24px, 3vw, 32px); letter-spacing: .12em; line-height: 1.9; color: var(--c-green); margin-bottom: 24px; }
.about p { font-size: 14.5px; margin-bottom: 14px; }
.about-img { border-radius: 10px; overflow: hidden; box-shadow: 12px 12px 0 var(--c-line); }

/* column list */
.col-list .card-thumb { aspect-ratio: 16/9; }

/* cta */
.cta { background: linear-gradient(120deg, var(--c-green), var(--c-green-dark)); color: #fff; text-align: center; padding: 84px 20px; }
.cta h2 { font-family: var(--ff-serif); font-size: 28px; letter-spacing: .12em; margin-bottom: 16px; }
.cta p { font-size: 14px; opacity: .85; margin-bottom: 32px; }
.cta .btn-outline { border-color: #fff; color: #fff; background: transparent; }
.cta .btn-outline:hover { background: #fff; color: var(--c-green); }

/* ---------- footer ---------- */
.site-footer { background: #23281f; color: #cfccc0; padding: 56px 0 32px; font-size: 13px; }
.site-footer .inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.f-logo { font-family: var(--ff-serif); font-size: 20px; color: #fff; letter-spacing: .12em; margin-bottom: 12px; }
.f-nav ul { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.f-nav a:hover { color: #fff; }
.copyright { text-align: center; margin-top: 40px; font-size: 11px; color: #8a877e; letter-spacing: .1em; }

/* ---------- single / archive ---------- */
.page-title-band { background: var(--c-bg-alt); padding: 56px 0; text-align: center; }
.page-title-band .en { display: block; font-family: var(--ff-serif); font-size: 22px; letter-spacing: .26em; color: var(--c-green); margin-bottom: 4px; text-transform: uppercase; }
.page-title-band h1 { font-size: 16px; font-weight: 500; letter-spacing: .16em; color: var(--c-muted); }
.entry { max-width: 820px; margin: 0 auto; padding: 60px 20px; }
.entry-title { font-family: var(--ff-serif); font-size: 28px; line-height: 1.6; margin-bottom: 12px; }
.entry-date { color: var(--c-muted); font-size: 13px; margin-bottom: 28px; }
.entry-thumb { border-radius: 10px; overflow: hidden; margin-bottom: 32px; }
.entry-content h2 { font-family: var(--ff-serif); font-size: 24px; margin: 48px 0 20px; padding: 10px 16px; border-left: 4px solid var(--c-green); background: var(--c-bg-alt); }
.entry-content h3 { font-size: 19px; margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--c-line); }
.entry-content p { margin-bottom: 1.4em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.4em 1.5em; }
.entry-content img { border-radius: 8px; margin: 1em 0; }
.entry-content table { border-collapse: collapse; width: 100%; margin: 1.4em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--c-line); padding: 10px 14px; }
.entry-content th { background: var(--c-bg-alt); }
.spec-table { width: 100%; border-collapse: collapse; margin: 0 0 36px; }
.spec-table th, .spec-table td { border: 1px solid var(--c-line); padding: 12px 16px; font-size: 14px; }
.spec-table th { background: var(--c-bg-alt); width: 30%; text-align: left; font-weight: 600; }
.archive-grid { padding: 70px 0; }

/* ---------- 下層ページ用パーツ ---------- */
.concept-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 36px 0; }
.concept-card { background: #fff; border: 1px solid var(--c-line); border-radius: 10px; padding: 28px; }
.concept-card .en { font-family: var(--ff-serif); font-size: 13px; letter-spacing: .26em; color: var(--c-wood); text-transform: uppercase; }
.concept-card h3 { font-family: var(--ff-serif); font-size: 20px; color: var(--c-green); margin: 8px 0 12px; }
.concept-card p { font-size: 13.5px; margin: 0; }

.lineup-card { display: grid; grid-template-columns: 42% 1fr; gap: 0; background: #fff; border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; margin: 28px 0; }
.lineup-card img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; border-radius: 0 !important; }
.lineup-body { padding: 28px; }
.lineup-body h3 { font-family: var(--ff-serif); font-size: 26px; color: var(--c-green); letter-spacing: .1em; margin: 0 0 10px; }
.lineup-body h3 small { font-size: 12px; color: var(--c-muted); margin-left: 10px; letter-spacing: .2em; }
.lineup-body p { font-size: 14px; }
.spec-tags span { display: inline-block; background: var(--c-bg-alt); border: 1px solid var(--c-line); color: var(--c-green); font-size: 12px; padding: 4px 12px; border-radius: 999px; margin: 0 6px 6px 0; }

.demo-form { background: #fff; border: 1px solid var(--c-line); border-radius: 10px; padding: 32px; }
.demo-form label { font-size: 14px; font-weight: 600; }
.demo-form input, .demo-form select, .demo-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: 6px; font-family: inherit; font-size: 14px; margin-top: 6px; background: var(--c-bg); }
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus { outline: 2px solid var(--c-green); }
.demo-form p { margin-bottom: 18px; }

/* 固定CTAバー */
.fixed-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; display: flex; box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
.fixed-cta a { flex: 1; text-align: center; padding: 14px 8px; font-size: 13px; letter-spacing: .08em; color: #fff; }
.fixed-cta .cta-visit { background: var(--c-green); }
.fixed-cta .cta-doc { background: var(--c-wood); }
.fixed-cta a:hover { opacity: .9; }
body { padding-bottom: 50px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
	.card-grid { grid-template-columns: repeat(2, 1fr); }
	.gnav { display: none; }
	.event-list { grid-template-columns: 1fr; }
	.about .inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.card-grid { grid-template-columns: 1fr; }
	.hero { min-height: 66vh; }
	.section { padding: 60px 0; }
	.event-item { flex-direction: column; }
	.event-thumb { width: 100%; }
}
