:root {
  --navy: #1a447e;
  --navy-dark: #0a2240;
  --navy-darker: #102a50;
  --accent: #3f6bb0;
  --bg-light: #f5f7fa;
  --border-light: #e2e8f0;
  --text-main: #2d3748;
  --text-sub: #6b7280;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: var(--text-main);
  margin: 0;
  background: #ffffff;
}

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

/* ===== Header (3段構成) ===== */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* --- 1段目: インフォメーションバー --- */
.header-top {
  background: #eef2f6;
  border-bottom: 1px solid var(--border-light);
}

.header-top-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 6px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--text-sub);
}

.header-top-text i {
  color: var(--navy);
  margin-right: 3px;
}

.header-top-sub {
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- 2段目: ロゴ・会社名・電話番号 --- */
.header-mid-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 50px;
  display: block;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo-title {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: #2b3047;
  line-height: 1;
  white-space: nowrap;
}

.logo-title-kabu {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-right: -2px;
}

.logo-title-main {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.logo-sub {
  font-size: 11px;
  font-weight: 500;
  color: #52525f;
  letter-spacing: 0.2px;
  white-space: nowrap;
  line-height: 1;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
  margin-left: auto;
}

.header-company-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  line-height: 1;
}

.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #16274a;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  line-height: 1.2;
}

.header-tel i {
  font-size: 15px;
  color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

/* --- 3段目: グローバルナビゲーション --- */
.header-nav {
  background: var(--navy);
}

.header-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav-inner > a {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  line-height: 1.3;
  padding: 14px 16px;
  border-bottom: 3px solid transparent;
  transition: background-color 0.15s, border-color 0.15s;
  text-align: center;
}

.header-nav-inner > a .nav-l1,
.header-nav-inner > a .nav-l2 {
  display: block;
}

.header-nav-inner > a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.header-nav-inner > a.is-active {
  border-bottom-color: #9ec2f0;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1100px) {
  .header-nav-inner {
    gap: 0;
  }
  .header-nav-inner > a {
    font-size: 12px;
    padding: 12px 10px;
  }
  .header-tel {
    font-size: 16px;
  }
  .logo-title-main {
    font-size: 17px;
  }
  .header-top-sub {
    display: none;
  }
}

@media (max-width: 900px) {
  .header-top-inner {
    padding: 5px 20px;
    font-size: 11px;
  }
  .header-top-sub {
    display: none;
  }
  .header-mid-inner {
    padding: 12px 20px;
    flex-wrap: wrap;
  }
  .nav-toggle {
    display: block;
    order: 2;
  }
  .header-contact {
    order: 3;
    width: 100%;
    align-items: flex-start;
    margin-left: 0;
  }
  .header-company-name {
    display: none;
  }
  .header-nav {
    display: none;
  }
  .header-nav.open {
    display: block;
  }
  .header-nav-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }
  .header-nav-inner > a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-align: left;
  }
  .header-nav-inner > a.is-active {
    border-bottom-color: rgba(255, 255, 255, 0.15);
  }
  .header-tel {
    align-self: flex-start;
    font-size: 17px;
  }
  .logo-mark {
    width: 38px;
    height: 45px;
  }
  .logo-title-main {
    font-size: 17px;
  }
  .logo-title-kabu {
    font-size: 17px;
    margin-right: -1px;
  }
  .logo-sub {
    font-size: 11px;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 494px;
  margin-top: 0;
  display: flex;
  align-items: flex-start;
  background-size: cover;
  background-position: center 62%;
  color: #fff;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.hero-title,
.hero-sub {
  max-width: 590px;
}

.hero-title {
  font-size: 43px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1.5px;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.55),
    0 4px 14px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.6);
  margin: 109px 0 0 0;
}

.hero-sub {
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.3px;
  margin: 36px 0 0 0;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.55),
    0 3px 12px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.6);
}

@media (max-width: 700px) {
  .hero {
    height: auto;
    min-height: 260px;
    padding: 40px 0;
  }
  .hero-title {
    font-size: 24px;
    margin-top: 0;
  }
  .hero-sub {
    font-size: 13px;
    margin-top: 14px;
  }
}

/* ===== トップ：AI検索 + 売買特集 ===== */
.top-search-row {
  max-width: 1200px;
  margin: 33px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: 577px 1fr;
  gap: 41px;
  align-items: start;
}

@media (max-width: 1000px) {
  .top-search-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* AI賃貸検索カード */
.ai-search-card {
  background: #1e4681;
  border-radius: 12px;
  padding: 0 28px 38px;
  box-shadow: 0 4px 14px rgba(18, 46, 90, 0.18);
}

.ai-search-title {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
  padding: 22px 0 0;
  margin: 0 0 26px;
}

.ai-search-title i {
  font-size: 22px;
}

.ai-search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 26px;
}

.ai-select {
  position: relative;
}

.ai-select select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 7px;
  background: #fdfdfd;
  color: #1b1b1b;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  padding: 0 40px 0 18px;
  cursor: pointer;
}

.ai-select i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #4a4a4a;
  font-size: 13px;
}

.btn-search {
  height: 52px;
  border: none;
  border-radius: 7px;
  background: #c6d1e3;
  color: #14213d;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  transition: background 0.15s;
}

.btn-search:hover {
  background: #d6dfee;
}

.btn-search i {
  font-size: 13px;
}

/* 見出し（アイコン + テキスト + 罫線） */
.block-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 700;
  color: #111111;
  letter-spacing: 0.5px;
  line-height: 1;
  padding: 0 0 16px;
  margin: 0;
  position: relative;
}

.block-heading i {
  color: #3f6bb0;
  font-size: 22px;
}

.block-heading::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    #3c4a5e 0,
    #3c4a5e var(--rule-dark, 199px),
    #c2c3c7 var(--rule-dark, 199px),
    #c2c3c7 100%
  );
}

/* オーナー様向け / 会社情報 見出しは罫線なし・下余白広め */
.owner-block > .block-heading,
.company-block > .block-heading {
  padding-bottom: 20px;
}

.owner-block > .block-heading::after,
.company-block > .block-heading::after {
  display: none;
}

/* 売買物件特集 */
.feature-block {
  min-width: 0;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-top: 0;
}

@media (max-width: 620px) {
  .feature-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-card {
  display: block;
  min-width: 0;
}

.feature-card-img {
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-light);
  height: 129px;
}

.feature-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.feature-card:hover .feature-card-img img {
  transform: scale(1.05);
}

.feature-card-title {
  font-size: 23px;
  font-weight: 700;
  color: #202020;
  margin: 0;
  padding: 6px 0 3px;
  letter-spacing: 0.3px;
  line-height: 1.35;
}

.feature-card-sub {
  font-size: 15px;
  line-height: 1.55;
  color: #575757;
}

.feature-card-sub span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== トップ：オーナー様向け / 会社情報 ===== */
.top-mid-row {
  max-width: 1200px;
  margin: 45px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: 870px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 1000px) {
  .top-mid-row {
    grid-template-columns: 1fr;
  }
}

.owner-block,
.company-block {
  min-width: 0;
}

.owner-box {
  border: 1px solid #dfe4ec;
  border-radius: 10px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  margin-top: 0;
  height: 144px;
}

@media (max-width: 640px) {
  .owner-box {
    grid-template-columns: 1fr;
  }
}

.owner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px;
  border-right: 1px solid #e6eaf1;
  transition: background 0.15s;
}

.owner-item:last-child {
  border-right: none;
}

@media (max-width: 640px) {
  .owner-item {
    border-right: none;
    border-bottom: 1px solid #e6eaf1;
    justify-content: flex-start;
    padding: 18px 20px;
  }
  .owner-item:last-child {
    border-bottom: none;
  }
}

.owner-item:hover {
  background: #f7f9fd;
}

.owner-item i {
  font-size: 32px;
  color: #3f6bb0;
  flex-shrink: 0;
}

.owner-item-label {
  font-size: 20px;
  font-weight: 700;
  color: #1b1b1b;
  line-height: 1.45;
  letter-spacing: 0.3px;
}

.company-box {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  height: 144px;
}

.company-item {
  border: 1px solid #dfe4ec;
  background: #fff;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  text-align: center;
  font-size: 23px;
  font-weight: 700;
  color: #131313;
  letter-spacing: 0.3px;
  transition: background 0.15s;
}

.company-item:first-child {
  border-radius: 10px 10px 0 0;
  border-bottom: none;
}

.company-item:last-child {
  border-radius: 0 0 10px 10px;
}

.company-item:hover {
  background: #f7f9fd;
}

/* ===== 汎用セクション見出し ===== */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}

.section-title i {
  color: var(--navy);
}

.panel {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 22px;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 0;
  background: #ffffff;
}

.footer-scenery {
  line-height: 0;
  background: #ffffff;
}

.footer-svg {
  width: 100%;
  height: 312px;
  display: block;
  object-fit: cover;
  object-position: center bottom;
}

@media (max-width: 900px) {
  .footer-svg {
    height: 150px;
  }
}

.footer-bottom {
  background: var(--navy-darker);
  position: relative;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
  height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  color: #d3dbe8;
  font-size: 16px;
}

.footer-links {
  display: flex;
  gap: 36px;
  margin-right: 52px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-notch {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  background: #ffffff;
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 65% 50%, 0 0);
  pointer-events: none;
}

@media (max-width: 700px) {
  .footer-notch {
    display: none;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links {
    gap: 16px;
  }
}

/* ===== Generic page section ===== */
.page-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--navy);
}

.page-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--navy-dark);
  margin-bottom: 20px;
  border-left: 5px solid var(--navy);
  padding-left: 12px;
}

/* ===== Property list ===== */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 960px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .property-grid {
    grid-template-columns: 1fr;
  }
}

.property-card {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.property-card-img-wrap {
  position: relative;
  height: 190px;
  background: var(--bg-light);
}

.property-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.property-card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.property-card-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy-dark);
}

.property-card-meta {
  font-size: 12px;
  color: var(--text-sub);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.property-card-price {
  font-size: 18px;
  font-weight: 900;
  color: #c0392b;
  margin-top: auto;
}

.property-card-price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
  margin-left: 4px;
}

.no-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0bcc9;
  font-size: 36px;
  background: repeating-linear-gradient(45deg, #f0f2f5, #f0f2f5 10px, #e8ebef 10px, #e8ebef 20px);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  font-size: 14px;
}

.pagination a:hover {
  background: var(--bg-light);
}

.pagination .active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ===== filter bar ===== */
.filter-bar {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 700;
}

.filter-field select,
.filter-field input {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  min-width: 140px;
  font-size: 14px;
}

.btn-filter {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 700;
  cursor: pointer;
  height: 38px;
}

.btn-filter:hover {
  background: var(--navy-dark);
}

.result-count {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.result-count b {
  color: var(--navy-dark);
  font-size: 18px;
}

/* ===== Detail page ===== */
.detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

.detail-gallery-main {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.65);
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  z-index: 2;
}

.gallery-zoom-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

/* ===== 画像ライトボックス(拡大表示) ===== */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lightbox-img-wrap {
  position: relative;
  width: 90vw;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 2001;
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-lightbox .gallery-nav {
  width: 54px;
  height: 54px;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.15);
}

.gallery-lightbox .gallery-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-lightbox .gallery-prev {
  left: 20px;
}

.gallery-lightbox .gallery-next {
  right: 20px;
}

.gallery-lightbox-caption {
  position: absolute;
  bottom: -36px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
}

.gallery-lightbox-counter {
  position: absolute;
  top: 24px;
  left: 24px;
  color: #fff;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 12px;
}

@media (max-width: 640px) {
  .gallery-nav {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .gallery-lightbox .gallery-nav {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

@media (max-width: 640px) {
  .detail-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}

.detail-thumbs img {
  width: 100%;
  height: 60px;
  object-fit: contain;
  background: var(--bg-light);
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.85;
}

.detail-thumbs img:hover,
.detail-thumbs img.active {
  border-color: var(--navy);
  opacity: 1;
}

.detail-thumb-caption {
  font-size: 10px;
  text-align: center;
  color: var(--text-sub);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-info-box {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 20px;
  position: sticky;
  top: 90px;
  align-self: flex-start;
}

.detail-price {
  font-size: 28px;
  font-weight: 900;
  color: #c0392b;
  margin-bottom: 6px;
}

.detail-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 12px;
}

.detail-quick-list {
  font-size: 13px;
  color: var(--text-sub);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.detail-quick-list b {
  color: var(--text-main);
}

.btn-contact {
  display: block;
  text-align: center;
  background: var(--navy);
  color: #fff;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  margin-top: 8px;
}

.btn-contact:hover {
  background: var(--navy-dark);
}

.btn-contact-outline {
  display: block;
  text-align: center;
  border: 1px solid var(--navy);
  color: var(--navy);
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  margin-top: 10px;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  font-size: 14px;
}

.detail-table th {
  background: var(--bg-light);
  text-align: left;
  padding: 10px 14px;
  width: 180px;
  color: var(--text-sub);
  border: 1px solid var(--border-light);
  font-weight: 700;
}

.detail-table td {
  padding: 10px 14px;
  border: 1px solid var(--border-light);
}

.point-box {
  background: #fff7e6;
  border: 1px solid #f0d9a0;
  border-radius: 8px;
  padding: 16px 18px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.7;
}

.point-box-title {
  font-weight: 700;
  color: #b8860b;
  margin-bottom: 6px;
}

/* ===== News ===== */
.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.news-date {
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
  min-width: 100px;
}

/* ===== Company / static pages ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.info-table th {
  background: var(--bg-light);
  width: 160px;
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  color: var(--text-sub);
}

.info-table td {
  padding: 12px 16px;
  border: 1px solid var(--border-light);
}

/* ===== Contact form ===== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 14px;
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
}

.btn-submit {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.btn-submit:hover {
  background: var(--navy-dark);
}

/* ===== Admin ===== */
.admin-shell {
  display: flex;
  min-height: 100vh;
  background: #f1f4f8;
}

.admin-sidebar {
  width: 220px;
  background: var(--navy-dark);
  color: #fff;
  flex-shrink: 0;
}

.admin-sidebar-header {
  padding: 20px;
  font-weight: 900;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 14px;
  color: #cbd5e1;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-main {
  flex: 1;
  padding: 24px 30px;
  overflow-x: auto;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 800px) {
  .stat-cards {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: var(--bg-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.stat-card-value {
  font-size: 26px;
  font-weight: 900;
  color: var(--navy-dark);
}

.stat-card-label {
  font-size: 13px;
  color: var(--text-sub);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  background: var(--bg-light);
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}

.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.admin-table tr:hover {
  background: #fafbfc;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.badge-green {
  background: #dcf5e5;
  color: #1a7a3f;
}

.badge-gray {
  background: #eceff2;
  color: #6b7280;
}

.btn-sm {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn-edit {
  background: #e3edfb;
  color: var(--navy);
}

.btn-delete {
  background: #fde3e3;
  color: #c0392b;
}

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

@media (max-width: 800px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

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

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
}

.login-box {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  width: 360px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.login-box h1 {
  font-size: 20px;
  font-weight: 900;
  color: var(--navy-dark);
  text-align: center;
  margin-bottom: 24px;
}

.img-upload-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.img-upload-row img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bg-light);
}

.img-upload-tile {
  position: relative;
  width: 100px;
  height: 70px;
  flex: none;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-light);
  cursor: pointer;
  border: 1px dashed var(--border-light);
}

.img-upload-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-upload-tile-overlay {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  pointer-events: none;
}

.img-upload-tile.is-uploading .img-upload-tile-overlay {
  background: var(--navy);
}

.img-upload-row.is-empty .img-upload-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0bcc9;
  font-size: 22px;
}

.img-row-remove {
  flex: none;
}

.btn-copy {
  background: #fff4d6;
  color: #946200;
}

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-error {
  background: #fde3e3;
  color: #c0392b;
}

.alert-success {
  background: #dcf5e5;
  color: #1a7a3f;
}

/* ===== 汎用：オーナーカード（下層ページ用） ===== */
.owner-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .owner-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.owner-card {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #fff;
  padding: 22px 12px;
  text-align: center;
  transition: box-shadow 0.15s, transform 0.15s;
}

.owner-card:hover {
  box-shadow: 0 4px 14px rgba(18, 46, 90, 0.1);
  transform: translateY(-2px);
}

.owner-card i {
  font-size: 26px;
  color: var(--navy);
  display: block;
  margin-bottom: 10px;
}

.owner-card-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.5;
}

/* ===== 会社情報リスト ===== */
.company-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.company-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
}

.company-info-item i {
  color: var(--navy);
  margin-top: 3px;
  flex-shrink: 0;
}

.company-mini .company-info-list {
  max-width: 720px;
  margin: 0 auto;
}

/* ===== Q&A / FAQ (AIO・集客対策) ===== */
.lead-text {
  line-height: 1.9;
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 26px;
}

.faq-cat-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.faq-cat-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-dark);
  transition: background-color 0.15s;
}

.faq-cat-nav-item:hover {
  background: #e4ecf8;
}

.faq-cat-nav-item i {
  color: var(--navy);
}

.faq-category-block {
  margin-bottom: 44px;
}

.faq-cat-lead {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
  margin: -4px 0 20px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.faq-item[open] {
  box-shadow: 0 4px 14px rgba(18, 46, 90, 0.08);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-dark);
  cursor: pointer;
  list-style: none;
  line-height: 1.6;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: auto;
  color: var(--text-sub);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
}

.faq-q-mark {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-answer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 20px 18px 20px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-main);
}

.faq-answer p {
  margin: 0;
}

.faq-a-mark {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef2f6;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
}

.faq-cta-box {
  margin-top: 40px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 30px 24px;
  text-align: center;
}

.faq-cta-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy-dark);
  margin-bottom: 12px;
}

.faq-cta-title i {
  color: var(--navy);
  margin-right: 6px;
}

@media (max-width: 640px) {
  .faq-question {
    font-size: 14px;
    padding: 14px 16px;
  }
  .faq-answer {
    font-size: 13px;
    padding: 0 16px 16px 16px;
  }
}
