/* 株式会社アール — Cloudflare Pages 静的サイト
   完成イメージ（HubSpot版）に合わせたライトテーマ。
   アクセント: #8c5e6a（モーヴ） / hover #c27a7a / active #a45c5c */

:root {
  --color-text: #1a1a1a;
  --color-text-muted: #4a4a4a;
  --color-bg: #ffffff;
  --color-bg-soft: #fafafa;
  --color-bg-section: #eeeeee;
  --color-accent: #8c5e6a;
  --color-accent-hover: #c27a7a;
  --color-accent-active: #a45c5c;
  --color-border: #d9d9d9;
  --color-error: #b3261e;
  --font-body: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 0.6em;
}

/* ---------- ボタン ---------- */

.button {
  display: inline-block;
  background: var(--color-accent);
  color: #ffffff;
  text-decoration: none;
  border: 0;
  border-radius: 6px;
  padding: 14px 36px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.button:hover {
  background: var(--color-accent-hover);
}

.button:active {
  background: var(--color-accent-active);
}

/* ---------- ヒーロー ---------- */

.hero {
  background-image: url("img/hero-mountain.jpg");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 168px 0;
}

.hero__inner {
  max-width: 1080px;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.5625rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  margin-bottom: 0.4em;
}

.hero__lead {
  max-width: 620px;
  font-size: 1.0625rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
  margin: 0 0 2rem;
}

/* ---------- Products 見出し ---------- */

.products-intro {
  text-align: center;
  padding: 72px 0 8px;
}

.products-intro h2 {
  font-size: clamp(1.6rem, 4vw, 2.6875rem);
  margin-bottom: 0.2em;
}

.products-intro p {
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- サービス紹介（画像とテキストの交互配置） ---------- */

.features {
  padding: 40px 0 24px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
}

.feature--reverse .feature__media {
  order: 2;
}

.feature--reverse .feature__body {
  order: 1;
}

.feature__media {
  margin: 0;
}

.feature__media img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.feature__body h3 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.feature__body p {
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

/* ---------- 品質保証 ---------- */

.quality {
  background: var(--color-bg-section);
  text-align: center;
  padding: 88px 0;
}

.quality h2 {
  font-size: clamp(1.6rem, 4vw, 2.6875rem);
  margin-bottom: 0.2em;
}

.quality__kicker {
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

.quality__text {
  max-width: 760px;
  margin: 0 auto;
  color: var(--color-text-muted);
}

/* ---------- お問い合わせ ---------- */

.contact {
  padding: 88px 0 96px;
}

.contact h2 {
  font-size: clamp(1.6rem, 4vw, 2.6875rem);
  text-align: center;
}

.contact__lead {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--color-text-muted);
}

.contact-form {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.field-group {
  display: flex;
  flex-direction: column;
}

.field-group--wide {
  grid-column: 1 / -1;
}

.field-group label {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

.field-group input,
.field-group select,
.field-group textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 12px 14px;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.field-group textarea {
  resize: vertical;
}

.button--form {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 240px;
}

.form-status {
  grid-column: 1 / -1;
  text-align: center;
  margin: 0;
  min-height: 1.5em;
}

.form-status.is-error {
  color: var(--color-error);
}

/* ---------- フッター ---------- */

.footer {
  border-top: 1px solid var(--color-border);
  text-align: center;
  padding: 28px 24px;
}

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

/* ---------- レスポンシブ ---------- */

@media (max-width: 900px) {
  .hero {
    padding: 112px 0;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 0;
  }

  .feature--reverse .feature__media {
    order: 0;
  }

  .feature--reverse .feature__body {
    order: 1;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 88px 0;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
