/*
Theme Name: HOME STAR 空き家売却準備サポート
Theme URI: https://example.com/
Author: 株式会社ホームスター
Description: 空き家売却準備サポートのランディングページ用テーマ（1ページ構成）。電話番号・LINE・住所などは「外観 → カスタマイズ → 会社情報・お問い合わせ」から変更できます。
Version: 1.2.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: homestar-akiya
*/

:root {
  --navy: #1f2547;
  --navy-dark: #151a36;
  --green: #1e5a3a;
  --green-light: #e8f1ec;
  --orange: #e8572a;
  --text: #2b2f3a;
  --muted: #5d6474;
  --line: #d9dce4;
  --bg-soft: #f4f5f8;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(31, 37, 71, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { height: 46px; width: auto; }
.brand .custom-logo { height: 46px; width: auto; }
.brand-text { font-weight: 700; font-size: 15px; line-height: 1.3; }
.brand-text small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.global-nav a { text-decoration: none; font-size: 14px; font-weight: 700; color: var(--navy); }
.global-nav a:hover { color: var(--orange); }
.header-tel { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 20px; color: var(--navy); white-space: nowrap; }
.header-tel small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); line-height: 1; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: transform .15s, box-shadow .15s; line-height: 1.4;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-line { background: #06c755; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn-map { background: #fff; color: var(--navy); padding: 10px 22px; font-size: 14px; }
.btn-map::before { content: ""; width: 14px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath fill='%23e8572a' d='M12 0C5.4 0 0 5.2 0 11.7 0 20.5 12 30 12 30s12-9.5 12-18.3C24 5.2 18.6 0 12 0zm0 16a4.3 4.3 0 110-8.6 4.3 4.3 0 010 8.6z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, #f6f7fa 0%, #fff 100%); padding: 56px 0 64px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-tag { display: inline-block; background: var(--navy); color: #fff; font-weight: 700; padding: 6px 18px; border-radius: 6px; font-size: 15px; letter-spacing: .05em; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.25; margin: 18px 0 14px; color: var(--navy-dark); letter-spacing: .02em; }
.hero-lead { font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; margin: 0 0 6px; }
.hero-lead em { font-style: normal; color: var(--orange); font-size: 1.2em; }
.hero-target { border-left: 6px solid var(--navy); padding: 4px 0 4px 16px; margin: 22px 0 28px; font-size: 16px; font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }
.hero-badges { display: grid; gap: 10px; margin-top: -40px; position: relative; padding: 0 12px; }
.hero-badge {
  background: #fff; border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow);
  font-size: 14px; font-weight: 700; color: var(--green); display: flex; gap: 10px; align-items: center;
}
.hero-badge.is-orange { color: var(--orange); }
.hero-badge svg { flex: none; width: 26px; height: 26px; }

/* ---------- Section common ---------- */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .en { display: block; font-size: 13px; letter-spacing: .2em; color: var(--orange); font-weight: 700; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 6px 0 10px; color: var(--navy-dark); line-height: 1.4; }
.section-head p { margin: 0; color: var(--muted); }

/* ---------- Problem ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.problem-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.problem-card div { padding: 18px 20px 22px; }
.problem-card h3 { font-size: 17px; margin: 0 0 6px; color: var(--navy); }
.problem-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Support (8 items) ---------- */
.support-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.support-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 12px 20px; text-align: center; font-weight: 700; color: var(--navy); font-size: 15px; line-height: 1.5;
}
.support-item svg { display: block; width: 54px; height: 54px; margin: 0 auto 12px; color: var(--navy); }

/* ---------- Plans ---------- */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan-card { background: #fff; border: 2px solid var(--navy); border-radius: 14px; padding: 32px 30px; }
.plan-card h3 { color: var(--green); font-size: 26px; margin: 0 0 6px; }
.plan-card .sub { color: var(--green); font-weight: 700; margin: -4px 0 14px; }
.price { font-weight: 800; color: var(--navy); margin: 0 0 12px; font-size: 20px; }
.price strong { color: var(--orange); font-size: 40px; letter-spacing: .01em; }
.price small { color: var(--orange); font-size: 15px; }
.plan-label { background: var(--bg-soft); text-align: center; font-weight: 700; color: var(--green); padding: 8px; border-radius: 6px; margin: 20px 0 12px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin: 8px 0; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 19px; height: 19px; border-radius: 3px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.dot-list { list-style: none; margin: 0; padding: 0; }
.dot-list li { position: relative; padding-left: 18px; margin: 7px 0; }
.dot-list li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 6px; height: 6px; background: var(--navy); }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.plan-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.plan-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

/* ---------- Interview ---------- */
.interview { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; background: #fff; border: 2px solid var(--navy); border-radius: 14px; padding: 32px; }
.interview-icon svg { width: 120px; height: 100px; color: var(--green); }
.interview h3 { color: var(--green); font-size: 26px; margin: 0 0 6px; }
.interview h3 small { font-size: 15px; color: var(--navy); margin-left: 6px; }
.interview-body p { margin: 0 0 14px; }
.interview-circle {
  width: 150px; height: 150px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-weight: 700; font-size: 14px; line-height: 1.5;
}
.interview-circle svg { display: block; width: 36px; height: 36px; margin-bottom: 4px; }

/* ---------- Options ---------- */
.option-grid { display: grid; grid-template-columns: repeat(6, 1fr); border: 2px solid var(--navy); border-radius: 12px; background: #fff; overflow: hidden; }
.option-item { padding: 24px 8px 18px; text-align: center; font-weight: 700; color: var(--navy); font-size: 15px; }
.option-item + .option-item { border-left: 1px solid var(--line); }
.option-item svg { display: block; width: 44px; height: 44px; margin: 0 auto 10px; color: var(--navy); }
.option-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- Flow ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; counter-reset: flow; }
.flow li { position: relative; background: #e9ecf6; border-radius: 10px; padding: 20px 14px; text-align: center; }
.flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -16px; top: 50%; transform: translateY(-50%);
  border-left: 10px solid var(--navy); border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.flow .num { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 8px; }
.flow h3 { font-size: 15px; margin: 0 0 6px; color: var(--navy); line-height: 1.5; }
.flow p { font-size: 13px; margin: 0; color: var(--muted); line-height: 1.6; }
.flow .tag { display: block; font-size: 11px; color: var(--orange); font-weight: 700; }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: #fff; }
.contact .section-head h2, .contact .section-head p { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.contact-box { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 28px; text-align: center; }
.contact-box h3 { margin: 0 0 8px; font-size: 18px; }
.contact-tel { display: block; color: #fff; text-decoration: none; font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: .02em; line-height: 1.3; }
.contact-hours { font-size: 14px; opacity: .9; margin: 8px 0 0; }
.contact-box .qr { width: 120px; margin: 12px auto; background: #fff; padding: 6px; border-radius: 6px; }
.contact-box.is-line { background: var(--green); border-color: var(--green); }
.contact-form { background: #fff; color: var(--text); border-radius: 14px; padding: 32px; margin-top: 28px; }
.contact-form h3 { color: var(--navy); margin: 0 0 6px; text-align: center; font-size: 22px; }
.contact-form-lead { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.hs-form { max-width: 760px; margin: 0 auto; }
.hs-form .form-row { margin: 0 0 18px; border: 0; padding: 0; }
.hs-form .form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hs-form label, .hs-form legend { display: block; font-weight: 700; font-size: 15px; color: var(--navy); }
.hs-form legend { margin-bottom: 8px; padding: 0; }
.hs-form .req, .hs-form .opt { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 4px; margin-left: 8px; vertical-align: 2px; }
.hs-form .req { background: var(--orange); color: #fff; }
.hs-form .opt { background: var(--bg-soft); color: var(--muted); }
.hs-form input[type="text"], .hs-form input[type="tel"], .hs-form input[type="email"], .hs-form select, .hs-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-weight: 400; color: var(--text);
  background: #fafbfc; border: 1px solid #c9cdd8; border-radius: 8px;
}
.hs-form input:focus, .hs-form select:focus, .hs-form textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; background: #fff; }
.hs-form .form-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hs-form .form-checks label, .form-agree label { font-weight: 500; color: var(--text); display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.hs-form input[type="checkbox"] { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--green); }
.form-agree { background: var(--bg-soft); border-radius: 8px; padding: 14px 16px; font-size: 14px; margin-bottom: 24px; }
.form-submit { text-align: center; }
.form-submit .btn { border: 0; font-size: 17px; padding: 16px 56px; cursor: pointer; font-family: inherit; }
.hs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-message { max-width: 760px; margin: 0 auto 20px; padding: 16px 20px; border-radius: 8px; font-size: 15px; }
.form-message.is-success { background: var(--green-light); color: var(--green); border: 1px solid #b9d6c5; }
.form-message.is-error { background: #fdecea; color: #b3261e; border: 1px solid #f3c1bc; }
@media (max-width: 600px) {
  .hs-form .form-2col { grid-template-columns: 1fr; }
  .hs-form .form-checks { grid-template-columns: 1fr; }
  .form-submit .btn { width: 100%; padding: 16px 20px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #c9cde0; padding: 40px 0 28px; font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 56px; width: auto; background: #fff; border-radius: 8px; padding: 4px; }
.footer-brand strong { color: #fff; display: block; }
.copyright { width: 100%; text-align: center; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; margin-top: 8px; font-size: 12px; }

/* ---------- Fixed CTA (mobile) ---------- */
.fixed-cta { display: none; }

/* ---------- Page (default) ---------- */
.page-content { padding: 60px 0; }
.page-content h1 { color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .support-grid { grid-template-columns: repeat(2, 1fr); }
  .option-grid { grid-template-columns: repeat(3, 1fr); }
  .option-item:nth-child(4) { border-left: 0; }
  .option-item:nth-child(n+4) { border-top: 1px solid var(--line); }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow li:nth-child(3)::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .interview { grid-template-columns: 1fr; text-align: center; }
  .interview-icon, .interview-circle { margin: 0 auto; }
  .interview .dot-list { display: inline-block; text-align: left; }
}
@media (max-width: 860px) {
  .global-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav a { display: block; padding: 14px 20px; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .header-tel { display: none; }
  .hero .container { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 15px; padding-bottom: 64px; }
  .section { padding: 56px 0; }
  .hero { padding: 36px 0 48px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .plan-card { padding: 24px 18px; }
  .price strong { font-size: 26px; white-space: nowrap; }
  .option-grid { grid-template-columns: repeat(2, 1fr); }
  .option-item:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .option-item:nth-child(even) { border-left: 1px solid var(--line); }
  .option-item:nth-child(-n+2) { border-top: 0; }
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow li:not(:last-child)::after { display: block; right: 50%; top: auto; bottom: -20px; transform: translateX(50%); border-top: 10px solid var(--navy); border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 0; }
  .contact-form { padding: 22px 16px; }
  .fixed-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; }
  .fixed-cta a { text-align: center; padding: 14px 6px; color: #fff; font-weight: 700; text-decoration: none; }
  .fixed-cta .tel { background: var(--orange); }
  .fixed-cta .line { background: #06c755; }
}
