/*
Theme Name: HomeTech Real Estate
Author: 株式会社ホーム・テック
Description: 空き家・相続不動産の相談窓口として、解体と売却の両面から出口戦略を提案する株式会社ホーム・テック専用テーマ。
Version: 0.1.10
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hometech-realestate
*/
:root {
  --navy: #1f3140;
  --navy-2: #2f4352;
  --green: #28785e;
  --green-dark: #1f604b;
  --gold: #b99752;
  --ink: #172331;
  --muted: #667684;
  --line: #dbe4e8;
  --soft: #f4f7f8;
  --soft-blue: #eaf1f4;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.8;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
}

.brand-name {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #344553;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone {
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  color: var(--navy);
  background: #fff;
  border-color: var(--navy);
}

.button.light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
}

.hero {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.97), rgba(255,255,255,0.9) 48%, rgba(255,255,255,0.28)),
    linear-gradient(135deg, #f8fbfa 0%, #dce8e8 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 42px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 68px 0 42px;
}

.sub-hero .hero-inner {
  padding: 58px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--gold);
}

h1,
h2,
h3 {
  color: var(--navy);
  letter-spacing: 0;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.9vw, 58px);
  line-height: 1.18;
}

.sub-hero h1 {
  font-size: clamp(31px, 4vw, 48px);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.34;
}

h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.lead {
  margin: 0 0 28px;
  color: #40515f;
  font-size: 17px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 16px;
}

.support {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-visual {
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-blue);
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(31,49,64,0.06), rgba(40,120,94,0.1)),
    repeating-linear-gradient(135deg, #edf4f3 0, #edf4f3 22px, #e1ecea 22px, #e1ecea 44px);
}

.hero-visual.visual-photo {
  background: #dfe8e8;
}

.hero-visual.visual-photo img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual.visual-photo::before {
  z-index: 1;
  background: linear-gradient(180deg, rgba(31,49,64,0.04), rgba(31,49,64,0.22));
}

.hero-photo-card {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  left: 24px;
  padding: 20px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-photo-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 17px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

section {
  padding: 76px 0;
}

.section-soft {
  background: var(--soft);
}

.section-head {
  max-width: 800px;
  margin-bottom: 34px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.section-lead {
  margin: 0;
  color: #4d5c69;
  font-size: 16px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card p,
.content-block p,
.faq p {
  margin: 0;
  color: #50616e;
  font-size: 14px;
}

.card ul,
.content-block ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: #50616e;
  font-size: 14px;
}

.route-card {
  border-top: 4px solid var(--green);
}

.entry-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.entry-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.entry-card span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.entry-card strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 16px;
}

.formula {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.formula-row {
  padding: 20px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.gold {
  color: var(--gold);
}

.message {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: center;
}

.message img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.flow {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.flow-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  counter-increment: step;
}

.flow-item::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
  font-weight: 900;
}

.faq {
  display: grid;
  gap: 10px;
}

details {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 900;
}

details p {
  margin-top: 12px;
}

.content-block {
  display: grid;
  gap: 14px;
  max-width: 880px;
}

.compare {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}

th,
td {
  padding: 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--navy);
  background: #edf3f4;
  font-weight: 900;
}

.contact-box {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.final-cta {
  color: #fff;
  background: var(--navy);
}

.final-cta h2,
.final-cta .kicker,
.final-cta .section-lead {
  color: #fff;
}

.footer {
  padding: 34px 0 96px;
  color: #d7e0e6;
  background: #14222f;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 24px;
}

.footer a {
  display: block;
  margin: 6px 0;
  color: #d7e0e6;
}

.mobile-cta {
  display: none;
}

@media (max-width: 980px) {
  .nav,
  .phone,
  .header-actions .button {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .nav.open {
    position: absolute;
    top: 74px;
    right: 20px;
    left: 20px;
    display: grid;
    gap: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(20, 34, 47, 0.14);
  }

  .nav.open a {
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }

  .nav.open a:last-child {
    border-bottom: 0;
  }

  .hero-inner,
  .message,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 48px 0 34px;
  }

  .hero-visual {
    min-height: 260px;
  }
  /* Mobile hero image priority */
  .hero-visual.visual-photo {
    order: -1;
    min-height: 220px;
  }

  .hero-visual.visual-photo .hero-photo-card {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 15px;
  }

  .hero-visual.visual-photo .hero-photo-card strong {
    font-size: 15px;
  }

  .grid-2,
  .grid-3,
  .entry-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 56px 0;
  }

  .mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
  }

  .mobile-cta a {
    display: grid;
    place-items: center;
    min-height: 58px;
    color: #fff;
    background: var(--green);
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-cta a:first-child {
    background: var(--navy);
  }
}

@media (max-width: 560px) {
  .header-inner,
  .container,
  .hero-inner {
    width: min(100% - 28px, 1180px);
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    font-size: 15px;
  }

  h1 {
    font-size: 34px;
  }

  .button {
    width: 100%;
  }
}





.form-notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 6px;
  font-weight: 800;
}

.form-notice.success {
  color: #1f604b;
  background: #e8f5ef;
  border: 1px solid #b7ddcc;
}

.form-notice.error {
  color: #8a2f2f;
  background: #fff0f0;
  border: 1px solid #efc2c2;
}

.hometech-field-check {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


.blog-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.blog-card a {
  display: grid;
  min-height: 100%;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.blog-card h3 {
  margin-bottom: 10px;
}

.blog-card p {
  margin: 0 0 18px;
  color: #50616e;
  font-size: 14px;
}

.blog-meta {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.blog-more {
  align-self: end;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
}

.empty-state {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page-hero.compact {
  padding: 54px 0;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--green-dark);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}

.article-content {
  max-width: 760px;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content p,
.article-content li {
  color: #40515f;
  font-size: 16px;
}

.article-content h2 {
  margin-top: 44px;
  font-size: 30px;
}

.article-content h3 {
  margin-top: 28px;
}

.article-side {
  position: sticky;
  top: 96px;
}

.article-side .button {
  margin-top: 16px;
  width: 100%;
}

@media (max-width: 980px) {
  .blog-list,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-side {
    position: static;
  }
}
.article-main-image {
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-main-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}