/* 株式会社アスパラ 店舗物件サイト（試作版）
   スマホ表示を基準に組み、768px以上でPCレイアウトに広げる */

:root {
  --green: #3b7a35;
  --green-dark: #2a5a26;
  --green-light: #eaf3e6;
  --accent: #e07b24;
  --accent-dark: #c4631a;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --line: #e2e2dc;
  --bg: #ffffff;
  --bg-soft: #f7f6f2;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .07);
  --header-h: 56px;
  --cta-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  padding-bottom: var(--cta-h);
}

img { max-width: 100%; display: block; }
a { color: var(--green-dark); }
h1, h2, h3 { line-height: 1.4; margin: 0; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.logo-mark { width: 36px; height: 36px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text small { font-size: 10px; color: var(--muted); }
.logo-text strong { font-size: 16px; }

.menu-btn {
  width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
}
.menu-btn span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.global-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: #fff; padding: 8px 16px 24px; overflow-y: auto;
  transform: translateX(100%); transition: transform .25s;
}
.menu-open .global-nav { transform: none; }
.global-nav ul { list-style: none; margin: 0; padding: 0; }
.global-nav a {
  display: block; padding: 16px 4px; border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-weight: 500;
}
.global-nav a[aria-current="page"] { color: var(--green); }
.global-nav .nav-tel { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; }
.global-nav .nav-tel a { border: 0; font-size: 22px; font-weight: 700; color: var(--green-dark); padding: 4px; }

/* ---------- スマホ固定CTA ---------- */
.fixed-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: var(--cta-h); display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
  padding: 8px 12px; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
}
.fixed-cta a {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 14px;
}
.fixed-cta .cta-tel { border: 2px solid var(--green); color: var(--green-dark); }
.fixed-cta .cta-mail { background: var(--accent); color: #fff; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 24px; border-radius: 8px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { background: #fff; color: var(--green-dark); border: 2px solid var(--green); }
.btn-block { width: 100%; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; color: #fff;
  background:
    linear-gradient(160deg, rgba(42, 90, 38, .92), rgba(59, 122, 53, .82)),
    url("../images/sample/exterior-a.svg") center / cover;
  padding: 36px 0 28px;
}
.hero-label {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em;
  background: rgba(255, 255, 255, .18); padding: 2px 10px; border-radius: 99px; margin-bottom: 12px;
}
.hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.hero h1 em { font-style: normal; color: #ffe08a; }
.hero p { font-size: 14px; opacity: .95; }
.hero-points { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.hero-points li { font-size: 12px; background: #fff; color: var(--green-dark); padding: 3px 10px; border-radius: 4px; font-weight: 700; }

/* ---------- 検索ボックス ---------- */
.search-box { background: #fff; color: var(--text); border-radius: var(--radius); padding: 16px; box-shadow: 0 6px 24px rgba(0, 0, 0, .15); }
.search-box h2 { font-size: 16px; margin-bottom: 12px; }
.field { margin-bottom: 12px; }
.field label, .field .label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.field .req { color: #fff; background: #c8412d; font-size: 11px; padding: 0 6px; border-radius: 3px; margin-left: 6px; }
.field .opt { color: var(--muted); font-size: 11px; font-weight: 400; margin-left: 6px; }
select, input[type="text"], input[type="tel"], input[type="email"], input[type="number"], textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 16px;
  border: 1px solid #cfcfc6; border-radius: 8px; background: #fff; color: var(--text);
}
select {
  appearance: none; padding-right: 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
}
textarea { min-height: 120px; resize: vertical; }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 8px 14px; border: 1px solid #cfcfc6; border-radius: 99px;
  font-size: 14px; cursor: pointer; background: #fff; user-select: none;
}
.chip input:checked + span { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }

/* ---------- セクション ---------- */
.section { padding: 40px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { font-size: 20px; margin-bottom: 20px; display: flex; align-items: baseline; gap: 10px; }
.section-title::before { content: ""; width: 5px; height: 22px; background: var(--green); border-radius: 3px; align-self: center; }
.section-title small { font-size: 12px; color: var(--muted); font-weight: 400; }
.section-more { text-align: center; margin-top: 24px; }

.page-head { background: var(--green-light); padding: 20px 0; }
.page-head h1 { font-size: 22px; }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.breadcrumb a { color: var(--muted); }

/* ---------- 物件カード ---------- */
.card-list { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s;
}
.card:hover { transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: #eee; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge-new {
  position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
}
.card-body { padding: 14px 16px 16px; }
.card-loc { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; line-height: 1.5; }
.card-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.card-price strong { font-size: 24px; color: #c8412d; line-height: 1; }
.card-price span { font-size: 12px; color: var(--muted); }
.card-spec { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 11px; padding: 1px 8px; border-radius: 4px; background: var(--green-light); color: var(--green-dark); font-weight: 700; }
.tag-use { background: #fff4e8; color: var(--accent-dark); }

/* ---------- 一覧ページ ---------- */
.list-layout { display: grid; gap: 20px; padding-top: 20px; padding-bottom: 40px; }
.filter-toggle { display: flex; }
.filter-panel { background: var(--bg-soft); border-radius: var(--radius); padding: 16px; display: none; }
.filter-panel.open { display: block; }
.filter-panel h2 { font-size: 16px; margin-bottom: 12px; }
.filter-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 8px; }
.filter-actions .btn { padding: 0 12px; white-space: nowrap; }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.list-toolbar .count strong { font-size: 22px; color: var(--green-dark); }
.list-toolbar select { width: auto; min-height: 40px; font-size: 14px; }
.empty { text-align: center; padding: 40px 16px; background: var(--bg-soft); border-radius: var(--radius); }

/* ---------- 詳細ページ ---------- */
.gallery-main { aspect-ratio: 4 / 3; background: #eee; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption { position: absolute; bottom: 8px; left: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 4px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: #eee; }
.gallery-thumbs button[aria-selected="true"] { border-color: var(--green); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-head { padding: 16px 0 8px; }
.detail-head .id { font-size: 12px; color: var(--muted); }
.detail-head h1 { font-size: 20px; margin: 4px 0 10px; }
.price-box { background: #fff7f5; border: 1px solid #f3d6cf; border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-box div { font-size: 12px; color: var(--muted); }
.price-box strong { display: block; font-size: 22px; color: #c8412d; line-height: 1.3; }
.price-box .sub { font-size: 17px; color: var(--text); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.spec-table th { width: 34%; background: var(--bg-soft); font-weight: 700; font-size: 13px; }
.use-ok { color: var(--green-dark); font-weight: 700; }
.use-ng { color: #aaa; }

.map-wrap { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #eee; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.map-note { font-size: 12px; color: var(--muted); margin-top: 6px; }

.inquiry-box { background: var(--green-light); border-radius: var(--radius); padding: 20px 16px; text-align: center; margin: 24px 0; }
.inquiry-box p { font-size: 14px; }
.inquiry-box .btn { width: 100%; margin-bottom: 8px; }
.inquiry-box .tel-big { font-size: 24px; font-weight: 700; color: var(--green-dark); text-decoration: none; display: block; }
.inquiry-box .hours { font-size: 12px; color: var(--muted); }

.detail-block { margin-top: 28px; }
.detail-block h2 { font-size: 17px; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid var(--green); }

/* ---------- 会社紹介 ---------- */
.message { display: grid; gap: 20px; }
.message-photo { width: 140px; aspect-ratio: 3 / 4; border-radius: var(--radius); background: var(--green-light); display: grid; place-items: center; color: var(--green); font-size: 13px; margin: 0 auto; }
.message-sign { text-align: right; font-weight: 700; }
.strengths { display: grid; gap: 12px; }
.strength { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.strength h3 { font-size: 15px; color: var(--green-dark); margin-bottom: 6px; }
.strength p { font-size: 14px; margin: 0; }

/* ---------- 問い合わせ ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; }
.form-error { color: #c8412d; font-size: 12px; margin-top: 4px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c8412d; background: #fff8f7; }
.field.invalid .form-error { display: block; }
.privacy { font-size: 12px; color: var(--muted); background: var(--bg-soft); padding: 12px; border-radius: 8px; margin: 16px 0; }
.confirm-table { margin-bottom: 20px; }
.form-done { text-align: center; padding: 32px 8px; }
.form-done .check { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 28px; margin: 0 auto 16px; }
.demo-note { font-size: 12px; background: #fff8e1; border: 1px solid #f0d58a; padding: 8px 12px; border-radius: 8px; margin-bottom: 16px; }

/* ---------- 業種から探す ---------- */
.use-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.use-links a {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--text); font-weight: 700; font-size: 14px;
}
.use-links .ico { font-size: 26px; line-height: 1; }
.use-links small { font-weight: 400; color: var(--muted); font-size: 11px; }
.area-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.area-links a {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--text); font-weight: 700;
}
.area-links a span { font-size: 12px; color: var(--muted); font-weight: 400; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: flow; }
.flow li { counter-increment: flow; background: #fff; border-radius: var(--radius); padding: 14px 16px 14px 56px; position: relative; border: 1px solid var(--line); }
.flow li::before {
  content: counter(flow); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px;
}
.flow strong { display: block; }
.flow span { font-size: 13px; color: var(--muted); }

/* ---------- フッター ---------- */
.site-footer { background: #24331f; color: #dfe6dc; padding: 32px 0 24px; font-size: 13px; }
.site-footer a { color: #fff; }
.footer-company strong { font-size: 16px; color: #fff; display: block; margin-bottom: 6px; }
.footer-company p { margin: 0 0 4px; }
.footer-nav { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { text-decoration: none; }
.copyright { font-size: 11px; opacity: .7; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 16px; margin-top: 16px; }

.loading { text-align: center; color: var(--muted); padding: 24px; }
.pc-only { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- タブレット・PC ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 0; font-size: 16px; }
  .pc-only { display: grid; }
  .sp-only { display: none; }
  .fixed-cta { display: none; }
  .menu-btn { display: none; }
  .global-nav { position: static; transform: none; padding: 0; background: none; overflow: visible; }
  .global-nav ul { display: flex; gap: 4px; align-items: center; }
  .global-nav a { border: 0; padding: 8px 12px; font-size: 14px; }
  .global-nav .nav-contact a { background: var(--accent); color: #fff; border-radius: 6px; margin-left: 8px; }
  .global-nav .nav-tel { display: none; }
  :root { --header-h: 68px; }

  .hero { padding: 64px 0 56px; }
  .hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 15px; }

  .card-list { grid-template-columns: repeat(2, 1fr); }
  .use-links { grid-template-columns: repeat(4, 1fr); }
  .area-links { grid-template-columns: repeat(4, 1fr); }
  .flow { grid-template-columns: repeat(4, 1fr); }
  .flow li { padding: 52px 16px 16px; }
  .flow li::before { top: 16px; }

  .list-layout { grid-template-columns: 280px 1fr; align-items: start; }
  .filter-toggle { display: none; }
  .filter-panel { display: block; position: sticky; top: calc(var(--header-h) + 16px); }

  .detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
  .detail-side { position: sticky; top: calc(var(--header-h) + 16px); }

  .message { grid-template-columns: 180px 1fr; align-items: start; }
  .message-photo { width: 100%; }
  .strengths { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { display: flex; justify-content: space-between; gap: 40px; }
  .footer-nav { flex-direction: column; margin: 0; }
}

@media (min-width: 1024px) {
  .card-list { grid-template-columns: repeat(3, 1fr); }
  .list-layout .card-list { grid-template-columns: repeat(2, 1fr); }
}
