/* ==========================================================================
   不動産査定サイトの正しい選び方 — 静的ページ共通スタイル
   対象: company.html / contact.html / privacy-policy.html / terms.html
   ========================================================================== */

:root {
  --color-bg:        #f5f7f9;
  --color-surface:   #ffffff;
  --color-text:      #1f2a33;
  --color-text-sub:  #5a6a75;
  --color-border:    #e2e8ee;
  --color-primary:   #1f6f8b;   /* 落ち着いたブルーグリーン（信頼感） */
  --color-primary-d: #175567;
  --color-accent-bg: #eef4f6;
  --radius:          10px;
  --shadow:          0 1px 3px rgba(31, 42, 51, 0.06);
  --max-width:       760px;
}

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

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

body.static-page {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--color-primary-d); }

/* ===== ヘッダー ===== */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  min-height: 60px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.3;
}
.logo-icon { font-size: 1.4rem; }

/* ===== 本文レイアウト ===== */
.static-page-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.static-page-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 8px 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--color-primary);
}

.static-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 18px;
}
.static-section > *:first-child { margin-top: 0; }
.static-section > *:last-child  { margin-bottom: 0; }
.static-section p { margin: 0 0 14px; }
.static-section p:last-child { margin-bottom: 0; }

.static-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--color-primary);
  line-height: 1.5;
}

.static-section ul {
  margin: 0;
  padding-left: 1.3em;
}
.static-section li { margin-bottom: 8px; }
.static-section li:last-child { margin-bottom: 0; }

/* ===== 運営者情報テーブル ===== */
.static-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.static-info-table th,
.static-info-table td {
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.static-info-table th {
  width: 32%;
  background: var(--color-accent-bg);
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}
.static-info-table td { background: var(--color-surface); }

/* ===== お問い合わせ メールアドレス画像ボックス ===== */
.contact-addr-box {
  text-align: center;
  background: var(--color-accent-bg);
  border: 1px dashed var(--color-primary);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.contact-addr-label {
  font-weight: 700;
  margin: 0 0 12px;
}
.contact-addr-img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
.contact-addr-note {
  font-size: 0.82rem;
  color: var(--color-text-sub);
  margin: 12px 0 0;
}

/* ===== フッター ===== */
.site-footer {
  background: #1f2a33;
  color: #cdd6dd;
  padding: 28px 0;
  margin-top: 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  margin-bottom: 14px;
}
.footer-nav a {
  color: #cdd6dd;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-nav a:hover { color: #ffffff; text-decoration: underline; }
.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: #8b99a3;
  margin: 0;
}

/* ===== スマホ対応 ===== */
@media (max-width: 600px) {
  body.static-page { font-size: 15px; }
  .static-page-title { font-size: 1.4rem; }
  .static-section { padding: 18px 16px; }

  /* テーブルを縦積みに */
  .static-info-table,
  .static-info-table tbody,
  .static-info-table tr,
  .static-info-table th,
  .static-info-table td {
    display: block;
    width: 100%;
  }
  .static-info-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
  }
  .static-info-table th,
  .static-info-table td { border: none; }
  .static-info-table th {
    white-space: normal;
    border-bottom: 1px solid var(--color-border);
  }
}
