/* ========================================
   株式会社サンプル7 企業サイト メインスタイル
   （中小企業・不動産デベロッパー向け）
   ======================================== */

/* --- カスタムプロパティ（白基調・明るい清潔なトーン） --- */
:root {
  --color-primary: #1a1a1a;
  --color-primary-light: #333;
  --color-accent: #c41e3a;
  --color-accent-light: #d94a5c;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f8f8;
  --color-border: #e8e8e8;
  --color-text: #333333;
  --color-text-muted: #666666;
  --font-heading: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --max-width: 960px;
  --header-height: 72px;
}

/* --- リセット・ベース --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.85;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* --- ヘッダー（白ベース・薄い境界線） --- */
.p-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: #fff;
  color: var(--color-primary);
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.p-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.p-header__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin: 0;
}

.p-header__logo a {
  color: inherit;
  text-decoration: none;
}

.p-header__logo a:hover {
  text-decoration: none;
  opacity: 0.85;
}

.p-header__nav {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-header__nav a {
  display: block;
  padding: 0 1rem;
  color: var(--color-primary);
  font-size: 0.9rem;
  text-decoration: none;
}

.p-header__nav a:hover {
  color: var(--color-accent);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.03);
}

/* --- メイン（ヘッダー高さ分オフセット） --- */
.p-main {
  padding-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

/* --- トップ用ヒーロー（ハイキー・明るい写真を活かす） --- */
.p-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background-color: #f0f0f0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ヒーロー：フィルター・オーバーレイなし。写真をそのまま表示 */
.p-hero__overlay {
  display: none;
}

.p-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 24px;
  text-align: center;
  width: 100%;
}

.p-hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
  color: #fff;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.p-hero__lead {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin: 0;
  font-weight: 500;
  color: #fff;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* --- 共通セクション（余白多めで清潔に） --- */
.p-section {
  padding: 5rem 24px;
}

.p-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.p-section__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin: 0 0 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-border);
  letter-spacing: 0.05em;
}

.p-section__body p {
  margin: 0 0 1rem;
  color: var(--color-text);
}

.p-section__body p:last-child {
  margin-bottom: 0;
}

/* --- トップ下段：紹介ブロック（白ベース） --- */
.p-intro {
  background: #fff;
}

.p-intro__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.p-intro__card {
  background: #fff;
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.p-intro__card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
}

.p-intro__card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* --- ページタイトル（下層・白ベース） --- */
.p-page-title {
  background: #fff;
  color: var(--color-primary);
  padding: 4rem 24px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.p-page-title h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  margin: 0;
}

/* --- コンテンツエリア（下層・白ベース） --- */
.p-content {
  padding: 4rem 24px 5rem;
  background: #fff;
}

.p-content__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  word-break: break-word;
}

.p-content h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.p-content h2:first-child {
  margin-top: 0;
}

.p-content p,
.p-content ul {
  margin: 0 0 1rem;
  color: var(--color-text);
}

.p-content ul {
  padding-left: 1.5rem;
}

.p-content li {
  margin-bottom: 0.5rem;
}

/* --- 事業内容：サービス一覧 --- */
.p-services {
  list-style: none;
  padding: 0;
  margin: 0;
}

.p-services__item {
  background: #fff;
  padding: 2rem 1.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 4px;
}

.p-services__item h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}

.p-services__item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* --- 会社概要：定義リスト --- */
.p-dl {
  background: #fff;
  padding: 2rem 1.75rem;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.p-dl dt {
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.p-dl dt:first-child {
  margin-top: 0;
}

.p-dl dd {
  margin: 0.25rem 0 0;
  padding-left: 0;
  color: var(--color-text);
}

/* --- 代表メッセージ --- */
.p-message__figure {
  margin: 0 0 1.5rem;
}

.p-message__figure img {
  width: 100%;
  max-width: 320px;
  display: block;
  border-radius: 4px;
}

.p-message__sign {
  margin-top: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* --- 問い合わせ（メールのみ） --- */
.p-contact__mail {
  font-size: 1.15rem;
  margin: 1.5rem 0;
}

.p-contact__mail a {
  color: var(--color-primary);
  font-weight: 600;
  word-break: break-all;
}

.p-contact__note {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--color-bg-alt);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border-radius: 4px;
}

/* --- フッター（明るいトーン） --- */
.p-footer {
  background: var(--color-bg-alt);
  color: var(--color-text);
  padding: 2.5rem 24px;
  margin-top: auto;
  border-top: 1px solid var(--color-border);
}

.p-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.p-footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

.p-footer__nav a {
  color: var(--color-text);
  font-size: 0.9rem;
}

.p-footer__nav a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.p-footer__copy {
  font-size: 0.85rem;
  margin: 0;
  color: var(--color-text-muted);
}

/* --- 規約・ポリシーページ --- */
.p-terms h2 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.p-terms h2:first-child {
  margin-top: 0;
}

.p-terms ol,
.p-terms ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0 1rem;
}

.p-terms li {
  margin-bottom: 0.35rem;
}

/* --- ユーティリティ --- */
.u-mt-lg { margin-top: 2rem; }
.u-mb-0 { margin-bottom: 0; }

/* ========================================
   レスポンシブ：タブレット（768px以下）
   ======================================== */
@media (max-width: 768px) {
  .p-header__inner {
    padding: 0 16px;
  }
  .p-header__logo {
    font-size: 1rem;
  }
  .p-header__nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0;
  }
  .p-header__nav a {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
  }
  .p-hero {
    min-height: 55vh;
    justify-content: center;
  }
  .p-hero__inner {
    padding: 2rem 16px;
  }
  .p-hero__title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
  .p-hero__lead {
    font-size: 0.875rem;
  }
  .p-section {
    padding: 3rem 16px;
  }
  .p-section__title {
    font-size: 1.25rem;
  }
  .p-intro__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  .p-intro__card {
    padding: 1.5rem;
  }
  .p-page-title {
    padding: 3rem 16px;
  }
  .p-page-title h1 {
    font-size: 1.5rem;
  }
  .p-content {
    padding: 3rem 16px 4rem;
  }
  .p-content h2 {
    font-size: 1.1rem;
  }
  .p-services__item,
  .p-dl {
    padding: 1.25rem 1rem;
  }
  .p-footer {
    padding: 2rem 16px;
  }
  .p-footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .p-footer__nav {
    justify-content: center;
  }
}

/* ========================================
   レスポンシブ：スマートフォン（480px以下）
   ======================================== */
@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }
  html {
    font-size: 15px;
  }
  .p-header__inner {
    padding: 0 12px;
  }
  .p-header__logo {
    font-size: 0.9rem;
    letter-spacing: 0.03em;
  }
  .p-header__nav a {
    padding: 0.5rem 0.4rem;
    font-size: 0.75rem;
  }
  .p-hero {
    min-height: 50vh;
  }
  .p-hero__inner {
    padding: 1.5rem 12px;
  }
  .p-hero__title {
    letter-spacing: 0.05em;
  }
  .p-section {
    padding: 2.5rem 12px;
  }
  .p-section__inner {
    padding: 0;
  }
  .p-section__title {
    margin: 0 0 1.25rem;
    font-size: 1.15rem;
  }
  .p-section__body p {
    margin: 0 0 0.875rem;
  }
  .p-intro__card {
    padding: 1.25rem;
  }
  .p-intro__card h3 {
    font-size: 1rem;
  }
  .p-page-title {
    padding: 2.5rem 12px;
  }
  .p-page-title h1 {
    font-size: 1.35rem;
    letter-spacing: 0.05em;
  }
  .p-content {
    padding: 2.5rem 12px 3.5rem;
  }
  .p-content__inner {
    padding: 0;
  }
  .p-content h2 {
    margin: 2rem 0 0.75rem;
    font-size: 1.05rem;
  }
  .p-services__item {
    padding: 1.25rem 1rem;
    margin-bottom: 1rem;
  }
  .p-dl {
    padding: 1.25rem 1rem;
  }
  .p-dl dt {
    font-size: 0.85rem;
  }
  .p-dl dd {
    font-size: 0.9rem;
  }
  .p-contact__mail {
    font-size: 1rem;
  }
  .p-contact__mail a {
    word-break: break-all;
  }
  .p-footer {
    padding: 1.75rem 12px;
  }
  .p-footer__nav {
    gap: 0 1rem;
  }
  .p-footer__nav a {
    font-size: 0.8rem;
  }
  .p-footer__copy {
    font-size: 0.8rem;
  }
  .p-terms h2 {
    font-size: 1rem;
  }
  .p-terms ol,
  .p-terms ul {
    padding-left: 1.25rem;
  }
}
